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
4a0e3fa6cd9a1adff0cb564e3ccc11f5d4ae339b
3,327
py
Python
examples/v2/sqladmin/python/sqladmin.py
cdmello-g/deploymentmanager-samples
9931f1c8881f353e0156a809da1b909604053fa0
[ "Apache-2.0" ]
930
2015-07-30T19:02:32.000Z
2022-03-09T18:02:11.000Z
examples/v2/sqladmin/python/sqladmin.py
cdmello-g/deploymentmanager-samples
9931f1c8881f353e0156a809da1b909604053fa0
[ "Apache-2.0" ]
426
2015-05-06T17:25:41.000Z
2022-03-09T16:13:41.000Z
examples/v2/sqladmin/python/sqladmin.py
cdmello-g/deploymentmanager-samples
9931f1c8881f353e0156a809da1b909604053fa0
[ "Apache-2.0" ]
812
2015-05-06T15:43:05.000Z
2022-03-24T18:35:37.000Z
# Copyright 2017 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 a...
39.141176
92
0.526601
4a0e40b29fe4d69ea1824340bddb117dc9a78dec
155
py
Python
venv/lib/python3.8/site-packages/crispy_forms/templates/bootstrap4/layout/field_errors_block.html.py
Solurix/Flashcards-Django
03c863f6722936093927785a2b20b6b668bb743d
[ "MIT" ]
1
2021-05-16T03:20:23.000Z
2021-05-16T03:20:23.000Z
venv/lib/python3.8/site-packages/crispy_forms/templates/bootstrap4/layout/field_errors_block.html.py
Solurix/Flashcards-Django
03c863f6722936093927785a2b20b6b668bb743d
[ "MIT" ]
4
2021-03-30T14:06:09.000Z
2021-09-22T19:26:31.000Z
venv/lib/python3.8/site-packages/crispy_forms/templates/bootstrap4/layout/field_errors_block.html.py
Solurix/Flashcards-Django
03c863f6722936093927785a2b20b6b668bb743d
[ "MIT" ]
null
null
null
BB BBBBBBBBBBBBBBBB BBB BBBBBBBBBBBB BBB BBBBB BB BBBBBBBBBBBB XX XXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX BBBBBB BBBBB
25.833333
70
0.812903
4a0e41348af36c5f41c60e6be48882ddb2971da8
41,393
py
Python
discord/ext/menus/__init__.py
Tari-dev/discord-ext-menus
881b4dbe8aeb3ca70a7cba5757210b03764f589b
[ "MIT" ]
1
2022-02-04T10:20:31.000Z
2022-02-04T10:20:31.000Z
discord/ext/menus/__init__.py
Tari-dev/discord-ext-menus
881b4dbe8aeb3ca70a7cba5757210b03764f589b
[ "MIT" ]
null
null
null
discord/ext/menus/__init__.py
Tari-dev/discord-ext-menus
881b4dbe8aeb3ca70a7cba5757210b03764f589b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2019 Rapptz 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 u...
33.900901
116
0.601865
4a0e415749c832725ca2a111d666c1495a7aacd2
827
py
Python
Mission_to_Mars/app.py
emerette/web-scraping-challenge
117b59155726ac376cbbdbac295f20009ef80a88
[ "ADSL" ]
null
null
null
Mission_to_Mars/app.py
emerette/web-scraping-challenge
117b59155726ac376cbbdbac295f20009ef80a88
[ "ADSL" ]
null
null
null
Mission_to_Mars/app.py
emerette/web-scraping-challenge
117b59155726ac376cbbdbac295f20009ef80a88
[ "ADSL" ]
null
null
null
# Import Libraries from flask import Flask, render_template, redirect from flask_pymongo import PyMongo import scrape_mars # Flask App app = Flask(__name__) mongo = PyMongo(app, uri="mongodb://localhost:27017/mars_DB") # Route that renders index.html @app.route("/") def index(): scraped_data = mongo.db.scraped...
25.060606
69
0.721886
4a0e4185eaf82e6a02dca62c091613886e408d84
1,470
py
Python
tests/__init__.py
csaranbalaji/kedro
8968f95bf22322c19f8ddc8838589a2d1384b01c
[ "Apache-2.0" ]
2
2020-07-27T12:20:55.000Z
2020-08-15T17:06:15.000Z
tests/__init__.py
csaranbalaji/kedro
8968f95bf22322c19f8ddc8838589a2d1384b01c
[ "Apache-2.0" ]
1
2021-05-11T19:22:42.000Z
2021-05-11T19:22:42.000Z
tests/__init__.py
csaranbalaji/kedro
8968f95bf22322c19f8ddc8838589a2d1384b01c
[ "Apache-2.0" ]
1
2021-08-22T08:16:22.000Z
2021-08-22T08:16:22.000Z
# Copyright 2020 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS",...
49
77
0.779592
4a0e419f44ca1a1bb3aced94e757853aef800ce3
832
py
Python
util/chplenv/chpl_make.py
vasslitvinov/chapel
53feadfc838e7f36ef863b1cd8cd5200d2d92ec8
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-22T07:51:04.000Z
2019-01-22T07:51:04.000Z
util/chplenv/chpl_make.py
vasslitvinov/chapel
53feadfc838e7f36ef863b1cd8cd5200d2d92ec8
[ "ECL-2.0", "Apache-2.0" ]
1
2016-11-29T18:21:05.000Z
2016-12-07T15:59:31.000Z
util/chplenv/chpl_make.py
vasslitvinov/chapel
53feadfc838e7f36ef863b1cd8cd5200d2d92ec8
[ "ECL-2.0", "Apache-2.0" ]
1
2020-05-03T22:17:08.000Z
2020-05-03T22:17:08.000Z
#!/usr/bin/env python from distutils.spawn import find_executable import os import sys chplenv_dir = os.path.dirname(__file__) sys.path.insert(0, os.path.abspath(chplenv_dir)) import chpl_platform, overrides from utils import memoize @memoize def get(): make_val = overrides.get('CHPL_MAKE') if not make_val:...
22.486486
73
0.626202
4a0e41a04f29075988d34977962fdb3424983ba2
1,280
py
Python
compile.py
TOMODOcom/TOMODO-ChromeExtension
fcc44aa79b23fe4ddc6e23c98483b3ee8b8d1593
[ "BSD-3-Clause" ]
1
2019-02-05T15:18:37.000Z
2019-02-05T15:18:37.000Z
compile.py
TOMODOcom/TOMODO-ChromeExtension
fcc44aa79b23fe4ddc6e23c98483b3ee8b8d1593
[ "BSD-3-Clause" ]
null
null
null
compile.py
TOMODOcom/TOMODO-ChromeExtension
fcc44aa79b23fe4ddc6e23c98483b3ee8b8d1593
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/python from json import load, dump from os import chdir, remove, getcwd, popen, system from os.path import dirname, abspath from shutil import copytree, copy2, rmtree from subprocess import call from sys import argv def increment_version(version): v = version.split(".") v = map(int, v) v.rever...
21.333333
70
0.648438
4a0e42ed0a14898842cda5180e3f08dec3fbb342
625
py
Python
post/api/urls.py
agiledesign2/drf-blog-post
a0dc7457e9e85e6b1a1f3aa81036b81f7054734f
[ "MIT" ]
null
null
null
post/api/urls.py
agiledesign2/drf-blog-post
a0dc7457e9e85e6b1a1f3aa81036b81f7054734f
[ "MIT" ]
null
null
null
post/api/urls.py
agiledesign2/drf-blog-post
a0dc7457e9e85e6b1a1f3aa81036b81f7054734f
[ "MIT" ]
null
null
null
from django.urls import path, include #from rest_framework.routers import DefaultRouter from post.api import views # Create a router and register viewsets with it. #router = DefaultRouter() #router.register(r"posts", PostViewSet) #router.register(r"users", UserViewSet) # The API URLs are now determined automatically ...
27.173913
62
0.6976
4a0e4385feee5b082d039782fa2c1d0dd7885247
17,745
py
Python
voicetools/ttslab_make_halfphones.py
jkleczar/ttslabdev
52a7515734fd59e1a16dece8e2d567a33c435a27
[ "BSD-3-Clause" ]
null
null
null
voicetools/ttslab_make_halfphones.py
jkleczar/ttslabdev
52a7515734fd59e1a16dece8e2d567a33c435a27
[ "BSD-3-Clause" ]
null
null
null
voicetools/ttslab_make_halfphones.py
jkleczar/ttslabdev
52a7515734fd59e1a16dece8e2d567a33c435a27
[ "BSD-3-Clause" ]
1
2019-02-25T10:27:34.000Z
2019-02-25T10:27:34.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Creates a ttslab halfphone catalogue using aligned utterances and corresponding wave files... DEMITASSE: THIS NEEDS A SERIOUS REWRITE... """ from __future__ import unicode_literals, division, print_function #Py2 __author__ = "Daniel van Niekerk" __email__ = "d...
33.168224
123
0.601691
4a0e44a24314921e37a5895eee40735865cde1de
882
py
Python
Labs/AI and Machine Learning/Cognitive Toolkit/resources/images2cntk.py
varunjha089/computerscience
bd90079e4a8701e92c9f88f598bfa86203b6cbb7
[ "MIT" ]
24
2017-06-08T01:16:28.000Z
2017-08-24T06:49:52.000Z
Labs/AI and Machine Learning/Cognitive Toolkit/resources/images2cntk.py
varunjha089/computerscience
bd90079e4a8701e92c9f88f598bfa86203b6cbb7
[ "MIT" ]
null
null
null
Labs/AI and Machine Learning/Cognitive Toolkit/resources/images2cntk.py
varunjha089/computerscience
bd90079e4a8701e92c9f88f598bfa86203b6cbb7
[ "MIT" ]
6
2017-06-08T05:32:27.000Z
2019-03-12T02:47:10.000Z
#This script converts the MNIST Data files into PNG files for each respective image in the file set. from os import walk from PIL import Image imagePath = "input-images" files = [] for (dirpath, dirnames, filenames) in walk(imagePath): files.extend(filenames) break cntkfile = open('Custom-Test-28x28_cntk_t...
19.173913
100
0.653061
4a0e451da6406f82110644e823f7c993e63a624e
5,569
py
Python
pdict/special.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
4
2016-12-17T20:06:10.000Z
2021-11-19T04:45:29.000Z
pdict/special.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
11
2021-01-06T05:35:11.000Z
2022-03-11T23:28:31.000Z
pdict/special.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
3
2015-06-12T10:44:16.000Z
2021-07-26T18:39:47.000Z
"""Special dicts""" __author__ = 'thor' from collections import defaultdict, UserDict from ut.pdict.get import set_value_in_nested_key_path val_unlikely_to_be_value_of_dict = (1987654321, 8239080923) class keydefaultdict(defaultdict): def __missing__(self, key): ret = self[key] = self.default_factory(ke...
35.698718
135
0.543006
4a0e45a30481a2e3fa4a663d257495f6a431ea4e
36,240
py
Python
mmdet/models/dense_heads/vfnet_head.py
zimoqingfeng/UMOP
16af670ee10b95015296d4a8da56a10fb7b89f72
[ "Apache-2.0" ]
27
2021-09-16T11:24:43.000Z
2022-03-29T06:52:20.000Z
mmdet/models/dense_heads/vfnet_head.py
zimoqingfeng/UMOP
16af670ee10b95015296d4a8da56a10fb7b89f72
[ "Apache-2.0" ]
9
2021-09-16T08:51:01.000Z
2022-01-05T10:37:47.000Z
mmdet/models/dense_heads/vfnet_head.py
zimoqingfeng/UMOP
16af670ee10b95015296d4a8da56a10fb7b89f72
[ "Apache-2.0" ]
4
2021-09-16T11:24:58.000Z
2021-12-18T01:13:30.000Z
import numpy as np import torch import torch.nn as nn from mmcv.cnn import ConvModule, Scale from mmcv.ops import DeformConv2d from mmcv.runner import force_fp32 from mmdet.core import (bbox2distance, bbox_overlaps, build_anchor_generator, build_assigner, build_sampler, distance2bbox, ...
44.249084
105
0.57489
4a0e46f2597b03f623f94d34fbae84f0ddc9ff76
7,284
py
Python
test/scripts/run_test.py
ZhiguoZh/oms-client-android
c278e866408cfe08fae068645b7bb83478646822
[ "Apache-2.0" ]
1
2020-08-03T16:03:53.000Z
2020-08-03T16:03:53.000Z
test/scripts/run_test.py
ZhiguoZh/oms-client-android
c278e866408cfe08fae068645b7bb83478646822
[ "Apache-2.0" ]
null
null
null
test/scripts/run_test.py
ZhiguoZh/oms-client-android
c278e866408cfe08fae068645b7bb83478646822
[ "Apache-2.0" ]
null
null
null
import argparse import json import os import shutil import subprocess import sys import time HOME_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')) TEST_PATH = os.path.join(HOME_PATH, 'test') BASE_TEST_PATH = os.path.join(TEST_PATH, 'base') CONF_TEST_PATH = os.path.join(TEST_PATH, 'conference/ap...
36.42
98
0.630972
4a0e46fb7232c6ef10c8de5d01f12524b86cb16d
5,207
py
Python
src/m3r_accumulating_sequences.py
mccormtj/MoreSequences
8460701671afaa5d7620c8bbb41f88ff85291189
[ "MIT" ]
null
null
null
src/m3r_accumulating_sequences.py
mccormtj/MoreSequences
8460701671afaa5d7620c8bbb41f88ff85291189
[ "MIT" ]
null
null
null
src/m3r_accumulating_sequences.py
mccormtj/MoreSequences
8460701671afaa5d7620c8bbb41f88ff85291189
[ "MIT" ]
null
null
null
""" This module demonstrates BUILDING-UP a new SEQUENCE, one item at a time, using the ACCUMULATOR pattern. -- We will later see a more efficient way to build-up and/or modify sequences, namely by MUTATING their elements. Authors: David Mutchler, Dave Fisher, Valerie Galluzzi, Amanda Stouder, their ...
38.007299
72
0.48262
4a0e47af2b0afd3e04a62df700cf850c3576a93e
419
py
Python
models/model_configs.py
AkibMashrur/AI-Finbot
ba2a6f876d5a8dcbc19b713219ddc5574e4032de
[ "Apache-2.0" ]
null
null
null
models/model_configs.py
AkibMashrur/AI-Finbot
ba2a6f876d5a8dcbc19b713219ddc5574e4032de
[ "Apache-2.0" ]
null
null
null
models/model_configs.py
AkibMashrur/AI-Finbot
ba2a6f876d5a8dcbc19b713219ddc5574e4032de
[ "Apache-2.0" ]
1
2021-11-09T13:01:51.000Z
2021-11-09T13:01:51.000Z
class SDEnet_configs(): # structure configs drift_depth = 8 diffusion_depth = 8 in_nodes = 20 latent_nodes = 64 diffusion_nodes = 128 # compilation configs lr_1 = 1e-6 momentum_1 = 0.9 lr_2 = 0.01 momentum_2 = 0.9 weight_decay = 5e-4 # train configs noise_scale ...
17.458333
25
0.622912
4a0e4813b944ca5e9624035d311108a4792bb240
2,950
py
Python
backend/news/settings/base.py
FreelanceDev217/news
c6ab00622883a1b6b4cdc7034fbabb62d2a66c5e
[ "MIT" ]
null
null
null
backend/news/settings/base.py
FreelanceDev217/news
c6ab00622883a1b6b4cdc7034fbabb62d2a66c5e
[ "MIT" ]
7
2020-06-06T01:29:43.000Z
2022-02-10T09:54:45.000Z
backend/news/settings/base.py
FreelanceDev217/news
c6ab00622883a1b6b4cdc7034fbabb62d2a66c5e
[ "MIT" ]
null
null
null
# https://docs.djangoproject.com/en/1.10/ref/settings/ import os from decouple import config # noqa BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) def base_dir_join(*args): return os.path.join(BASE_DIR, *args) SITE_ID = 1 SECURE_HSTS_PRELOAD = True DEBUG = True AD...
23.6
91
0.665763
4a0e486daa851f7ad2b8b79ec7634739b69b33c3
1,737
py
Python
aliyun-python-sdk-devops-rdc/aliyunsdkdevops_rdc/request/v20200303/GetPipelineInstanceBuildNumberStatusRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-devops-rdc/aliyunsdkdevops_rdc/request/v20200303/GetPipelineInstanceBuildNumberStatusRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-devops-rdc/aliyunsdkdevops_rdc/request/v20200303/GetPipelineInstanceBuildNumberStatusRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.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...
36.1875
96
0.751295
4a0e4a63b3bb32e2ff62485d3d8dabc33406befd
872
py
Python
catalyst/utils/tests/test_image.py
sergeyshilin/catalyst
f4dfaac7bc3fe98b2a0a9cf0b4347b100750f82f
[ "Apache-2.0" ]
3
2019-11-02T05:37:06.000Z
2020-01-13T02:26:07.000Z
catalyst/utils/tests/test_image.py
sergeyshilin/catalyst
f4dfaac7bc3fe98b2a0a9cf0b4347b100750f82f
[ "Apache-2.0" ]
null
null
null
catalyst/utils/tests/test_image.py
sergeyshilin/catalyst
f4dfaac7bc3fe98b2a0a9cf0b4347b100750f82f
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch from torchvision.transforms.functional import normalize, to_tensor from catalyst.utils.image import tensor_to_ndimage, \ _IMAGENET_MEAN, _IMAGENET_STD def test_tensor_to_ndimage(): orig_images = np.random.randint(0, 255, (2, 20, 10, 3), np.uint8) torch_images = torch.stac...
27.25
77
0.678899
4a0e4ad9791c16168237c8c61eee456a06753b75
1,003
py
Python
test/crawler/user_info.py
coding-voyage/insta-crawler
c5a50af867f3ebbcfaf96379dd615393f4908b0c
[ "MIT" ]
null
null
null
test/crawler/user_info.py
coding-voyage/insta-crawler
c5a50af867f3ebbcfaf96379dd615393f4908b0c
[ "MIT" ]
null
null
null
test/crawler/user_info.py
coding-voyage/insta-crawler
c5a50af867f3ebbcfaf96379dd615393f4908b0c
[ "MIT" ]
null
null
null
import logging import unittest from crawler.user_info import get_user_info_html_doc, get_followers, search_related_to, get_related_users_by logger = logging.getLogger(__file__) TEST_USER_ID = "zuck" class UserInfoTest(unittest.TestCase): def test_get_user_info_html_doc(self): content = get_user_info_ht...
31.34375
108
0.743769
4a0e4b0f5b4adf9975b07fd27de07f6eaaf71be8
3,690
py
Python
parlai/tasks/opensubtitles_ko/build.py
hwaranlee/ParlAI
5efebdd889851cf80e496d45f0ebc324e0fde001
[ "BSD-3-Clause" ]
1
2017-11-05T13:16:53.000Z
2017-11-05T13:16:53.000Z
parlai/tasks/opensubtitles_ko/build.py
hwaranlee/ParlAI
5efebdd889851cf80e496d45f0ebc324e0fde001
[ "BSD-3-Clause" ]
null
null
null
parlai/tasks/opensubtitles_ko/build.py
hwaranlee/ParlAI
5efebdd889851cf80e496d45f0ebc324e0fde001
[ "BSD-3-Clause" ]
1
2019-01-12T03:37:12.000Z
2019-01-12T03:37:12.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. # Download and build the da...
36.176471
84
0.513008
4a0e4b12ad0efe6ce52590fbf9eda61fe9fbc6b0
6,681
py
Python
anaconda_project/project_file.py
nbublikov/depcheck
2b232382c86f26b7de4d9c50312a647b185f373b
[ "Apache-2.0" ]
null
null
null
anaconda_project/project_file.py
nbublikov/depcheck
2b232382c86f26b7de4d9c50312a647b185f373b
[ "Apache-2.0" ]
null
null
null
anaconda_project/project_file.py
nbublikov/depcheck
2b232382c86f26b7de4d9c50312a647b185f373b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2016, Anaconda, Inc. All rights reserved. # # Licensed under the terms of the BSD 3-Clause License. # The full license is in the file LICENSE.txt, distributed with this software. # -------------------...
33.572864
108
0.673402
4a0e4bfe6cd4ec16dea8b7daced9d8738ad3bc6a
8,970
py
Python
userbot/modules/offline.py
ClownSkyz/Man-Userbot
f85add4707dab2af1dcf232737ed8ab98f32ceed
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/offline.py
ClownSkyz/Man-Userbot
f85add4707dab2af1dcf232737ed8ab98f32ceed
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/offline.py
ClownSkyz/Man-Userbot
f85add4707dab2af1dcf232737ed8ab98f32ceed
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # import time from datetime import datetime from random import choice, randint from telethon.events import NewMessage, ...
33.470149
91
0.508919
4a0e4f5c733b4cfa84e960bfc196a92a17fb75ea
5,939
py
Python
cli/src/rnpfind/postar_data_load.py
mnahinkhan/RNPFind
8b561e087f943421c847dcb708ee386ee6439fa5
[ "MIT" ]
1
2020-03-07T18:58:06.000Z
2020-03-07T18:58:06.000Z
cli/src/rnpfind/postar_data_load.py
mnahinkhan/RNPFind
8b561e087f943421c847dcb708ee386ee6439fa5
[ "MIT" ]
null
null
null
cli/src/rnpfind/postar_data_load.py
mnahinkhan/RNPFind
8b561e087f943421c847dcb708ee386ee6439fa5
[ "MIT" ]
null
null
null
""" This module contains functions for loading data from the postar database. """ import bisect import os from .config import ANNOTATION_COLUMN_DELIMITER, POSTAR_PATH postar_all_column_names = [ "chrom", "chromStart", "chromEnd", "postarID", "nil", "strand", "rbpName", "dataSource", ...
32.102703
80
0.646573
4a0e4f8f8184de0cb0c0300099b9fcd9cdce07ee
4,704
py
Python
scripts/azurerm_function_app.py
x280852/Testing123
afbf0b08a1a45afcfa5022270e31c7d146b7f467
[ "MIT" ]
null
null
null
scripts/azurerm_function_app.py
x280852/Testing123
afbf0b08a1a45afcfa5022270e31c7d146b7f467
[ "MIT" ]
null
null
null
scripts/azurerm_function_app.py
x280852/Testing123
afbf0b08a1a45afcfa5022270e31c7d146b7f467
[ "MIT" ]
null
null
null
# azurerm_function_app def azurerm_function_app(crf,cde,crg,headers,requests,sub,json,az2tfmess,cldurl): tfp="azurerm_function_app" tcode="620-" azr="" if crf in tfp: # REST or cli # print "REST Function App" url="https://" + cldurl + "/subscriptions/" + sub + "/providers/Mic...
35.908397
113
0.429422
4a0e503f2bc0cfdc7db01a3485aecab82a290793
1,678
py
Python
tensorflow_model_analysis/evaluators/counter_util_test.py
BioGeek/model-analysis
03db02c21e21b092bc409c8bf263174b90c4e2ae
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/evaluators/counter_util_test.py
BioGeek/model-analysis
03db02c21e21b092bc409c8bf263174b90c4e2ae
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/evaluators/counter_util_test.py
BioGeek/model-analysis
03db02c21e21b092bc409c8bf263174b90c4e2ae
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
35.702128
79
0.779499
4a0e51066c7de0885d2671df4db0433583a553b3
9,133
py
Python
built-in/PyTorch/Official/cv/image_classification/DenseNet169_ID0454_for_Pytorch/torchvision/datasets/folder.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/PyTorch/Official/cv/image_classification/DenseNet161_ID0455_for_Pytorch/torchvision/datasets/folder.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/PyTorch/Official/cv/image_classification/DenseNet169_ID0454_for_Pytorch/torchvision/datasets/folder.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# # BSD 3-Clause License # # Copyright (c) 2017 xxxx # All rights reserved. # Copyright 2021 Huawei Technologies Co., Ltd # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain ...
37.584362
113
0.647323
4a0e5222158a61e769b331e2821bdc5075f1d52d
32,492
py
Python
htf/test-py/test_tensorflow.py
whitead/hoomd-tf
d0fae8aac17c5affa2a415f66fa99bb7cd2fc9b9
[ "MIT" ]
28
2019-04-02T11:05:07.000Z
2021-09-30T23:51:35.000Z
htf/test-py/test_tensorflow.py
whitead/hoomd-tf
d0fae8aac17c5affa2a415f66fa99bb7cd2fc9b9
[ "MIT" ]
263
2019-04-01T05:32:27.000Z
2022-01-26T13:38:18.000Z
htf/test-py/test_tensorflow.py
whitead/hoomd-tf
d0fae8aac17c5affa2a415f66fa99bb7cd2fc9b9
[ "MIT" ]
7
2019-07-22T22:57:12.000Z
2022-01-09T11:17:54.000Z
# Copyright (c) 2020 HOOMD-TF Developers import hoomd import hoomd.md import hoomd.htf as htf import unittest import os import tempfile import shutil import pickle import glob import numpy as np import math import tensorflow as tf import build_examples from hoomd.htf.simmodel import _make_reverse_indices def comput...
37.347126
85
0.562939
4a0e52fc6d8fe57865d9020d5daab348abb55688
495
py
Python
.history/ClassFiles/PythonModulesPackages/NameAttribute_20210107134607.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/PythonModulesPackages/NameAttribute_20210107134607.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/PythonModulesPackages/NameAttribute_20210107134607.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
''' Python name attribute Every module in Python has a special variable called name. The value of the name attribute is set to main when the module is executed as the main program. The value of the name can be set to another module if imported or module it is called from. The if statement prevents certa...
45
104
0.729293
4a0e539126e345ff890a1ac93f73d313321a1590
5,678
py
Python
lib_pypy/cffi/setuptools_ext.py
pypyjs/pypy
2c2c5c73d780ff71f03adc2f1bf2c1c4bb7cc031
[ "Apache-2.0", "OpenSSL" ]
34
2015-07-09T04:53:27.000Z
2021-07-19T05:22:27.000Z
lib_pypy/cffi/setuptools_ext.py
pypyjs/pypy
2c2c5c73d780ff71f03adc2f1bf2c1c4bb7cc031
[ "Apache-2.0", "OpenSSL" ]
6
2015-05-30T17:20:45.000Z
2017-06-12T14:29:23.000Z
lib_pypy/cffi/setuptools_ext.py
pypyjs/pypy
2c2c5c73d780ff71f03adc2f1bf2c1c4bb7cc031
[ "Apache-2.0", "OpenSSL" ]
11
2015-09-07T14:26:08.000Z
2020-04-10T07:20:41.000Z
import os try: basestring except NameError: # Python 3.x basestring = str def error(msg): from distutils.errors import DistutilsSetupError raise DistutilsSetupError(msg) def execfile(filename, glob): # We use execfile() (here rewritten for Python 3) instead of # __import__() to load the ...
37.111111
78
0.637548
4a0e5479654c8bb457218e99ce5facb786eab588
1,237
py
Python
website/addons/box/views.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
website/addons/box/views.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
website/addons/box/views.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
"""Views for the node settings page.""" # -*- coding: utf-8 -*- from flask import request from website.addons.base import generic_views from website.addons.box.serializer import BoxSerializer from website.project.decorators import must_have_addon, must_be_addon_authorizer SHORT_NAME = 'box' FULL_NAME = 'Box' box_acc...
22.490909
80
0.756669
4a0e54aaf82ac6afebe684406233be898902f103
5,792
py
Python
jacket/objects/compute/notification.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
null
null
null
jacket/objects/compute/notification.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
null
null
null
jacket/objects/compute/notification.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
2
2016-08-10T02:21:49.000Z
2020-07-24T01:57:21.000Z
# 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 agreed to in...
38.357616
80
0.672997
4a0e55be85e971c3f6a32baa1002042dc5e38e4c
1,531
py
Python
deeplearning/chainer/chainer_trainer_example.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
deeplearning/chainer/chainer_trainer_example.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
deeplearning/chainer/chainer_trainer_example.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import unicode_literals import chainer import chainer.datasets from chainer import training from chainer.training import extensions import chainer.links as L import chainer.functions as F class MLP(chainer.Chain): """docstring for MLP""" def __init__(...
34.022222
96
0.706728
4a0e55c5cac64b8df4f9147b92e766fd9436a38f
3,053
py
Python
cafebot/bot.py
saccho/my_linebot
a606e2f2b333a8d678c8b6cc4c4ce7ee5e60ce62
[ "MIT" ]
null
null
null
cafebot/bot.py
saccho/my_linebot
a606e2f2b333a8d678c8b6cc4c4ce7ee5e60ce62
[ "MIT" ]
null
null
null
cafebot/bot.py
saccho/my_linebot
a606e2f2b333a8d678c8b6cc4c4ce7ee5e60ce62
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 import os import sys import urllib3 from cafebot import settings from cafebot.gnavi import Gnavi from flask import Flask, request, abort from linebot.models import ( MessageEvent, TextMessage, TextSendMessage, SourceUser, SourceGroup, SourceRoom, TemplateS...
33.184783
84
0.649198
4a0e568d1d9769308a5e82825d077e49b697c11b
36,719
py
Python
src/transformers/models/openai/modeling_openai.py
studytutorials/transformers
27b1516d32b691533fc497e7ee4ceb88c39cdfdf
[ "Apache-2.0" ]
2
2022-01-11T19:17:40.000Z
2022-01-11T19:49:48.000Z
src/transformers/models/openai/modeling_openai.py
feifeivv/transformers
08a5f57567d8a975d900b66658bfd3c28c9dbec5
[ "Apache-2.0" ]
1
2021-11-11T16:16:49.000Z
2021-11-12T17:49:08.000Z
src/transformers/models/openai/modeling_openai.py
feifeivv/transformers
08a5f57567d8a975d900b66658bfd3c28c9dbec5
[ "Apache-2.0" ]
2
2021-02-18T03:12:51.000Z
2021-04-16T13:16:58.000Z
# coding=utf-8 # Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License...
42.896028
168
0.652169
4a0e56ad34608c756cd26053499bbb524c9a3bf6
1,319
py
Python
semkov/apps/pages/models.py
manti-by/Semkov
c48d3c21d1b39aa7e02b6c31c2cf5ad385a62723
[ "BSD-3-Clause" ]
null
null
null
semkov/apps/pages/models.py
manti-by/Semkov
c48d3c21d1b39aa7e02b6c31c2cf5ad385a62723
[ "BSD-3-Clause" ]
2
2021-04-13T21:30:21.000Z
2021-04-13T21:32:45.000Z
semkov/apps/pages/models.py
manti-by/Semkov
c48d3c21d1b39aa7e02b6c31c2cf5ad385a62723
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from taggit.models import TaggedItemBase from modelcluster.fields import ParentalKey from modelcluster.contrib.taggit import ClusterTaggableManager from wagtail.core.models import Page from wagtail.admin.edit_handlers import FieldPanel from wagtail.documents.edit_handlers import DocumentC...
27.479167
81
0.727824
4a0e57ff0839725f00f92a18c3f177bba9ec5f02
563
py
Python
bot_links.py
Eduardo-Barreto/Marselo-Bot
7f8faf372b06419c0f8731156fd6c64bbcb6755f
[ "MIT" ]
2
2021-07-11T21:50:01.000Z
2021-10-01T11:04:17.000Z
bot_links.py
Eduardo-Barreto/Marselo-Bot
7f8faf372b06419c0f8731156fd6c64bbcb6755f
[ "MIT" ]
null
null
null
bot_links.py
Eduardo-Barreto/Marselo-Bot
7f8faf372b06419c0f8731156fd6c64bbcb6755f
[ "MIT" ]
null
null
null
banido = 'https://tenor.com/view/ednaldo-pereira-banido-desbanido-meme-meme-banido-gif-19429642' desbanido = 'https://tenor.com/view/desbanido-ednaldo-pereira-ednaldo-pereira-banido-gif-19443137' repositorio = 'https://github.com/Eduardo-Barreto/Marselo-Bot' readme = 'https://github.com/Eduardo-Barreto/Marselo-Bot/blob...
70.375
98
0.797513
4a0e5859941055924180004569e4fd20c451f01c
181
py
Python
oface/__init__.py
007gzs/oface
9e4ca8ee572783cff4417c58217cdcb8c7af07f4
[ "MIT" ]
2
2021-06-01T01:33:32.000Z
2021-11-23T10:39:35.000Z
oface/__init__.py
007gzs/oface
9e4ca8ee572783cff4417c58217cdcb8c7af07f4
[ "MIT" ]
null
null
null
oface/__init__.py
007gzs/oface
9e4ca8ee572783cff4417c58217cdcb8c7af07f4
[ "MIT" ]
1
2021-07-16T22:42:55.000Z
2021-07-16T22:42:55.000Z
# encoding: utf-8 from __future__ import absolute_import, unicode_literals from .face_analysis import FaceAnalysis, Face __all__ = ['FaceAnalysis', 'Face'] __version__ = '0.1.12'
22.625
56
0.773481
4a0e59a92ea1eafe46ee66c57c01043972053585
3,705
py
Python
kisa.py
Kagami/kisa
2597f67e519b8d66fec2684ff5a7726436bb029b
[ "CC0-1.0" ]
7
2015-04-28T13:26:11.000Z
2020-02-09T17:01:04.000Z
kisa.py
Kagami/kisa
2597f67e519b8d66fec2684ff5a7726436bb029b
[ "CC0-1.0" ]
null
null
null
kisa.py
Kagami/kisa
2597f67e519b8d66fec2684ff5a7726436bb029b
[ "CC0-1.0" ]
3
2015-03-10T20:56:17.000Z
2021-08-21T02:44:24.000Z
#!/usr/bin/env python import sys import os.path try: import twisted.words except ImportError: path = os.path.join(os.path.dirname(__file__), "lib") sys.path.insert(0, path) import random import optparse from twisted.python import log try: from twisted.internet import epollreactor epollreactor.insta...
33.378378
78
0.666937
4a0e5aa1a5cdddc2f8433300afd067c32145aeba
1,651
py
Python
vpc_hyp2/hyp2_vm.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
vpc_hyp2/hyp2_vm.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
vpc_hyp2/hyp2_vm.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
import re import commands import json import sys import os tenant_check = int(sys.argv[1]) domain_name = sys.argv[2] each = int(sys.argv[3]) print("GETTING EXECUTED DA DEI BAADE") def spin_vms(tenant_check,domain_name,each): print("Am I even getting called??") domain_name = "tenant" + str(tenant_check) + "vm" ...
39.309524
103
0.619624
4a0e5ae6841d6b90f5ec8d10824ab511984f2a30
1,578
py
Python
2018/day10.py
tcbegley/advent-of-code
e293d06e9cd994b26c0d10619672a6d8d2d65377
[ "MIT" ]
6
2021-12-05T11:21:17.000Z
2021-12-07T03:04:24.000Z
2018/day10.py
tcbegley/advent-of-code
e293d06e9cd994b26c0d10619672a6d8d2d65377
[ "MIT" ]
null
null
null
2018/day10.py
tcbegley/advent-of-code
e293d06e9cd994b26c0d10619672a6d8d2d65377
[ "MIT" ]
null
null
null
import re import sys class Particle: def __init__(self, px, py, vx, vy): self.px = px self.py = py self.vx = vx self.vy = vy def pos(self, time): return (self.px + time * self.vx, self.py + time * self.vy) def answer(path): with open(path) as f: data = f....
22.869565
67
0.473384
4a0e5afe84e2a25f5b780fadb06e66edcb0c799b
39,604
py
Python
cinder/tests/unit/backup/drivers/test_backup_swift.py
wzhou007/stx-cinder
bdc6cc8ae5466f218de5af835e9ec040d537c541
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/backup/drivers/test_backup_swift.py
wzhou007/stx-cinder
bdc6cc8ae5466f218de5af835e9ec040d537c541
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/backup/drivers/test_backup_swift.py
wzhou007/stx-cinder
bdc6cc8ae5466f218de5af835e9ec040d537c541
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2012 Hewlett-Packard Development Company, L.P. # 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/LICEN...
45.784971
78
0.594056
4a0e5b1b4e71ec75e8f72bbd6cb251fd6c90fc3c
2,065
py
Python
hbkit/config.py
saintdoo/hbkit
7acfe1a825aa5c2a07e3c92e31d5c36d75cb789c
[ "MIT" ]
1
2021-07-22T05:25:35.000Z
2021-07-22T05:25:35.000Z
hbkit/config.py
saintdoo/hbkit
7acfe1a825aa5c2a07e3c92e31d5c36d75cb789c
[ "MIT" ]
37
2017-07-27T06:07:25.000Z
2020-12-11T12:57:31.000Z
hbkit/config.py
saintdoo/hbkit
7acfe1a825aa5c2a07e3c92e31d5c36d75cb789c
[ "MIT" ]
1
2019-04-02T08:36:32.000Z
2019-04-02T08:36:32.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from builtins import * # noqa import click @click.group('config') def cli(): """Commands about configuration management.""" @cli.command('list') @click.option('--local', is_flag=True, help='Only local configurations.') @click.option('--default'...
30.367647
73
0.620823
4a0e5b4e22ca803d3bf911bf494c30fcac33c59a
3,535
py
Python
hood/settings.py
AbdimulhinYussuf3675/home-watch
d0009d2adcd6fa112fc6a775e72a41ea12c619fc
[ "MIT" ]
1
2021-08-06T04:29:38.000Z
2021-08-06T04:29:38.000Z
hood/settings.py
AbdimulhinYussuf3675/home-watch
d0009d2adcd6fa112fc6a775e72a41ea12c619fc
[ "MIT" ]
null
null
null
hood/settings.py
AbdimulhinYussuf3675/home-watch
d0009d2adcd6fa112fc6a775e72a41ea12c619fc
[ "MIT" ]
null
null
null
import os import django_heroku import dj_database_url from decouple import config,Csv MODE=config("MODE", default="dev") SECRET_KEY = config('SECRET_KEY') DEBUG = config('DEBUG', default=False, cast=bool) # development if config('MODE')=="dev": DATABASES = { 'default': { 'ENGINE': 'django.db.backe...
25.431655
91
0.680905
4a0e5bc5c9f97ecf82398a9852158f401744623e
1,700
py
Python
plugins/virtualkeyboard/qt.py
lazyboozer/electrum-desire
42d204d9e7deef17b18bf9d7f43ce5c45cda5fc8
[ "MIT" ]
null
null
null
plugins/virtualkeyboard/qt.py
lazyboozer/electrum-desire
42d204d9e7deef17b18bf9d7f43ce5c45cda5fc8
[ "MIT" ]
null
null
null
plugins/virtualkeyboard/qt.py
lazyboozer/electrum-desire
42d204d9e7deef17b18bf9d7f43ce5c45cda5fc8
[ "MIT" ]
null
null
null
from PyQt4.QtGui import * from electrum_desire.plugins import BasePlugin, hook from electrum_desire.i18n import _ import random class Plugin(BasePlugin): vkb = None vkb_index = 0 @hook def password_dialog(self, pw, grid, pos): vkb_button = QPushButton(_("+")) vkb_button.setFixedWidth(...
27.868852
69
0.545882
4a0e5bc9b76124085534879cf5f1264900c99a26
1,012
py
Python
python-datastructure-exercise/python-ds-practice/31_truncate/truncate.py
ryankrdh/Springboard-Assignments
9c9b132a814fc818810978dce1f33c4052028353
[ "MIT" ]
null
null
null
python-datastructure-exercise/python-ds-practice/31_truncate/truncate.py
ryankrdh/Springboard-Assignments
9c9b132a814fc818810978dce1f33c4052028353
[ "MIT" ]
null
null
null
python-datastructure-exercise/python-ds-practice/31_truncate/truncate.py
ryankrdh/Springboard-Assignments
9c9b132a814fc818810978dce1f33c4052028353
[ "MIT" ]
null
null
null
def truncate(phrase, n): """Return truncated-at-n-chars version of phrase. If the phrase is longer than, or the same size as, n make sure it ends with '...' and is no longer than n. >>> truncate("Hello World", 6) 'Hel...' >>> truncate("Problem solving is the best!...
27.351351
97
0.52668
4a0e5beb987d9ffa64fa51d1849ee6a04ff403fa
1,229
py
Python
model_zoo/inception_v3/load_model_save_graph.py
KonduitAI/ImportTests
1b05adac04d1b04fe4492d3fd35f3c4573774ceb
[ "Apache-2.0" ]
6
2019-11-24T01:48:22.000Z
2021-09-26T12:49:00.000Z
model_zoo/inception_v3/load_model_save_graph.py
KonduitAI/ImportTests
1b05adac04d1b04fe4492d3fd35f3c4573774ceb
[ "Apache-2.0" ]
19
2019-11-19T23:12:53.000Z
2022-02-10T00:27:44.000Z
model_zoo/inception_v3/load_model_save_graph.py
KonduitAI/ImportTests
1b05adac04d1b04fe4492d3fd35f3c4573774ceb
[ "Apache-2.0" ]
1
2019-11-19T08:27:51.000Z
2019-11-19T08:27:51.000Z
import tensorflow as tf import tensorflow.contrib.slim as slim from tensorflow.contrib.slim.python.slim.nets import inception_v3 import numpy as np from tfoptests import persistor from model_zoo.inception_v3 import save_dir, get_input height = 299 width = 299 channels = 3 # Create graph X = tf.placeholder(tf.float32...
38.40625
148
0.786005
4a0e5d2b3f07b2545c2c72811134dafe9c142f43
1,363
py
Python
tests/test_json.py
ysegorov/jukoro
8be1d01b471c6091056df77ffacaee5cc8c470d0
[ "MIT" ]
null
null
null
tests/test_json.py
ysegorov/jukoro
8be1d01b471c6091056df77ffacaee5cc8c470d0
[ "MIT" ]
null
null
null
tests/test_json.py
ysegorov/jukoro
8be1d01b471c6091056df77ffacaee5cc8c470d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import decimal from unittest import TestCase from jukoro import arrow from jukoro import json from jukoro import pg A = arrow.JuArrow D = decimal.Decimal class TestJson(TestCase): def test_arrow(self): utcnow = arrow.utcnow() now = arrow.now() a...
23.912281
63
0.517241
4a0e5fd39b7ab5342c73af15a91785a3a6b5f534
7,341
py
Python
examples/deep_dream.py
mokaruu/moka
72f1ce4ed4396a308f831c717d8c2856a7a4e86b
[ "MIT" ]
7
2017-01-16T23:12:00.000Z
2021-03-11T04:39:14.000Z
examples/deep_dream.py
mokaruu/moka
72f1ce4ed4396a308f831c717d8c2856a7a4e86b
[ "MIT" ]
null
null
null
examples/deep_dream.py
mokaruu/moka
72f1ce4ed4396a308f831c717d8c2856a7a4e86b
[ "MIT" ]
1
2017-08-02T01:47:54.000Z
2017-08-02T01:47:54.000Z
'''Deep Dreaming in Keras. Run the script with: ``` python deep_dream.py path_to_your_base_image.jpg prefix_for_results ``` e.g.: ``` python deep_dream.py img/mypic.jpg results/dream ``` It is preferable to run this script on GPU, for speed. If running on CPU, prefer the TensorFlow backend (much faster). Example res...
33.217195
103
0.643509
4a0e619cb589227bfdb5b638bbc4fcf0743dfcd3
1,257
py
Python
app/crud.py
ridhanf/python-fastapi-challenge
041a2156c222dbd84805d6b6ee1d9b88b8227db3
[ "MIT" ]
null
null
null
app/crud.py
ridhanf/python-fastapi-challenge
041a2156c222dbd84805d6b6ee1d9b88b8227db3
[ "MIT" ]
null
null
null
app/crud.py
ridhanf/python-fastapi-challenge
041a2156c222dbd84805d6b6ee1d9b88b8227db3
[ "MIT" ]
null
null
null
from sqlalchemy.orm import Session from app import models, schemas from app.constants import Role def get_users(db: Session, skip: int = 0, limit: int = 100): return db.query(models.User).offset(skip).limit(limit).all() def get_user(db: Session, user_id: int): return db.query(models.User).filter(models.Use...
27.933333
80
0.694511
4a0e61c22b82753627ea864e6e0fe50ee65208dd
5,104
py
Python
deepchem/models/multitask.py
cjgalvin/deepchem
64993a129e7f0f78fed9500298b1828ac8a0757a
[ "MIT" ]
3
2019-05-29T19:18:25.000Z
2021-01-25T05:44:05.000Z
deepchem/models/multitask.py
cjgalvin/deepchem
64993a129e7f0f78fed9500298b1828ac8a0757a
[ "MIT" ]
10
2017-02-23T19:39:22.000Z
2017-08-31T22:21:18.000Z
deepchem/models/multitask.py
cjgalvin/deepchem
64993a129e7f0f78fed9500298b1828ac8a0757a
[ "MIT" ]
1
2018-09-22T00:53:53.000Z
2018-09-22T00:53:53.000Z
""" Convenience class that lets singletask models fit on multitask data. """ import os import sklearn import tempfile import numpy as np import shutil import logging from deepchem.models import Model from deepchem.data import DiskDataset from deepchem.trans import undo_transforms logger = logging.getLogger(__name__) ...
33.359477
80
0.676528
4a0e62476acf9e9f74d203ad4b97d181f69db729
6,864
py
Python
path_tracing/jit/pathtracer.py
vincentbonnetcg/Toy-Code1
633b37482bc470fd144fceb0d74bc6a89e8309a6
[ "MIT" ]
14
2019-05-04T00:42:47.000Z
2021-09-07T09:57:44.000Z
path_tracing/jit/pathtracer.py
vincentbonnetcg/Toy-Code
633b37482bc470fd144fceb0d74bc6a89e8309a6
[ "MIT" ]
null
null
null
path_tracing/jit/pathtracer.py
vincentbonnetcg/Toy-Code
633b37482bc470fd144fceb0d74bc6a89e8309a6
[ "MIT" ]
5
2020-12-07T21:44:41.000Z
2021-09-13T05:29:54.000Z
""" @author: Vincent Bonnet @description : basic render routines """ import time import math import random import numba import numpy as np from . import core as jit_core from .maths import dot, copy, axpy, gamma_correction, clamp, tri_interpolation, normalize from . import intersect # pathtracer settings BLACK = np.z...
35.020408
107
0.629808
4a0e62918756b321b31485f3d9ee74a339c5d541
15,816
py
Python
solc/install.py
circleclick-labs/py-solc
fc76877f5b9bb577b2cd66abcb6d1df443156d0d
[ "MIT" ]
153
2017-11-23T20:33:35.000Z
2022-03-20T22:26:11.000Z
solc/install.py
circleclick-labs/py-solc
fc76877f5b9bb577b2cd66abcb6d1df443156d0d
[ "MIT" ]
31
2017-11-29T01:01:28.000Z
2022-02-20T05:13:48.000Z
solc/install.py
circleclick-labs/py-solc
fc76877f5b9bb577b2cd66abcb6d1df443156d0d
[ "MIT" ]
57
2017-11-23T00:50:09.000Z
2022-03-28T18:55:52.000Z
""" Install solc """ import functools import os import stat import subprocess import sys import contextlib import zipfile V0_4_1 = 'v0.4.1' V0_4_2 = 'v0.4.2' V0_4_6 = 'v0.4.6' V0_4_7 = 'v0.4.7' V0_4_8 = 'v0.4.8' V0_4_9 = 'v0.4.9' V0_4_11 = 'v0.4.11' V0_4_12 = 'v0.4.12' V0_4_13 = 'v0.4.13' V0_4_14 = 'v0.4.14' V0_4_15...
30.183206
140
0.714719
4a0e630efb5c991d2b0dc11279f0fd81235d517c
8,152
py
Python
options/base_options.py
natsala13/FinalProject
10e3e3550e574f07f9e2eec0b5891fa09a822f4d
[ "BSD-3-Clause" ]
null
null
null
options/base_options.py
natsala13/FinalProject
10e3e3550e574f07f9e2eec0b5891fa09a822f4d
[ "BSD-3-Clause" ]
null
null
null
options/base_options.py
natsala13/FinalProject
10e3e3550e574f07f9e2eec0b5891fa09a822f4d
[ "BSD-3-Clause" ]
null
null
null
import argparse import os from util import util import torch import models import data class BaseOptions(): """This class defines options used during both training and test time. It also implements several helper functions such as parsing, printing, and saving the options. It also gathers additional opti...
58.647482
235
0.660329
4a0e6339dfa009ee53402336cb76b5b58a7b2e17
1,472
py
Python
sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_trusted_id_provider_with_account_parameters.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_trusted_id_provider_with_account_parameters.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_trusted_id_provider_with_account_parameters.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# 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 ...
35.047619
84
0.616848
4a0e643fabd0bde2efea8265fc35d6f0a91757b3
1,076
py
Python
dimka/test/core/test_config.py
madmis/dimka-binance
8a9173ac923d2fb122afeb68f85e4aba07d08c5b
[ "MIT" ]
null
null
null
dimka/test/core/test_config.py
madmis/dimka-binance
8a9173ac923d2fb122afeb68f85e4aba07d08c5b
[ "MIT" ]
null
null
null
dimka/test/core/test_config.py
madmis/dimka-binance
8a9173ac923d2fb122afeb68f85e4aba07d08c5b
[ "MIT" ]
null
null
null
import unittest import os.path import tempfile import argparse import dimka.core.config as config class TestConfig(unittest.TestCase): def test_correct_config(self): file = os.path.join(tempfile.gettempdir(), "conf.yaml") if os.path.isfile(file): os.remove(file) f = open(fil...
27.589744
81
0.627323
4a0e65237a51569d0111fbfbc885bd1d8461852c
325
py
Python
docs/src/tutorial/path/code010.py
eadwinCode/django-ninja
4033b70399f3f58db747fa1a41075488306accb7
[ "MIT" ]
2,809
2020-06-21T08:48:40.000Z
2022-03-30T16:42:11.000Z
docs/src/tutorial/path/code010.py
eadwinCode/django-ninja
4033b70399f3f58db747fa1a41075488306accb7
[ "MIT" ]
311
2020-06-22T07:59:27.000Z
2022-03-31T18:01:23.000Z
docs/src/tutorial/path/code010.py
eadwinCode/django-ninja
4033b70399f3f58db747fa1a41075488306accb7
[ "MIT" ]
178
2020-07-08T00:40:43.000Z
2022-03-29T02:05:20.000Z
import datetime from ninja import Schema, Path class PathDate(Schema): year: int month: int day: int def value(self): return datetime.date(self.year, self.month, self.day) @api.get("/events/{year}/{month}/{day}") def events(request, date: PathDate = Path(...)): return {"date": date.valu...
19.117647
61
0.64
4a0e6644c5a29485562e8ba7598a6739ddbce649
6,616
py
Python
configs/cascade_mask_rcnn_r50_fpn_1x.py
minhnvl/Worms_Detection
a809e3926538b9b777538994fc32fde475dc2796
[ "Apache-2.0" ]
null
null
null
configs/cascade_mask_rcnn_r50_fpn_1x.py
minhnvl/Worms_Detection
a809e3926538b9b777538994fc32fde475dc2796
[ "Apache-2.0" ]
null
null
null
configs/cascade_mask_rcnn_r50_fpn_1x.py
minhnvl/Worms_Detection
a809e3926538b9b777538994fc32fde475dc2796
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='CascadeRCNN', num_stages=3, pretrained='modelzoo://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, style='pytorch'), neck=dict( type='FPN', ...
29.017544
77
0.535973
4a0e66d5a7f64efb5fd6cf787d9e85a448730118
9,455
py
Python
airport/utils/cache/heap.py
zen-xu/airport
fb5cfdd885f3f78b9be0abc90c04199b24d5560e
[ "Apache-2.0" ]
null
null
null
airport/utils/cache/heap.py
zen-xu/airport
fb5cfdd885f3f78b9be0abc90c04199b24d5560e
[ "Apache-2.0" ]
null
null
null
airport/utils/cache/heap.py
zen-xu/airport
fb5cfdd885f3f78b9be0abc90c04199b24d5560e
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from dataclasses import field from threading import Condition from threading import Lock from threading import RLock from typing import Callable from typing import Dict from typing import Generic from typing import List from typing import Optional from typing import TypeVar from typin...
23.578554
90
0.553464
4a0e69437e143c877d4893d3d34ccdb63f050c04
8,090
py
Python
test.py
MOONJOOYOUNG/CutMix-PyTorch
e54b8387ad6f63d2b9cb2c1f9dc332aad2d185e1
[ "MIT" ]
1
2021-07-09T21:01:08.000Z
2021-07-09T21:01:08.000Z
test.py
MOONJOOYOUNG/CutMix-PyTorch
e54b8387ad6f63d2b9cb2c1f9dc332aad2d185e1
[ "MIT" ]
null
null
null
test.py
MOONJOOYOUNG/CutMix-PyTorch
e54b8387ad6f63d2b9cb2c1f9dc332aad2d185e1
[ "MIT" ]
null
null
null
# original code: https://github.com/dyhan0920/PyramidNet-PyTorch/blob/master/train.py import argparse import os import shutil import time import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data import torch.utils.data.distributed impo...
35.79646
108
0.617553
4a0e696393fe47f38ef6cca7ae376f29c6f83d29
13,589
py
Python
src/azure-cli/azure/cli/command_modules/util/custom.py
major/azure-cli
13c46f6e1d94a2eddf31539a0bbf1d5f2f28f63a
[ "MIT" ]
7
2020-04-26T09:54:05.000Z
2021-07-22T16:54:41.000Z
src/azure-cli/azure/cli/command_modules/util/custom.py
major/azure-cli
13c46f6e1d94a2eddf31539a0bbf1d5f2f28f63a
[ "MIT" ]
2
2020-05-04T22:45:39.000Z
2021-12-02T22:45:10.000Z
src/azure-cli/azure/cli/command_modules/util/custom.py
major/azure-cli
13c46f6e1d94a2eddf31539a0bbf1d5f2f28f63a
[ "MIT" ]
13
2020-06-30T16:23:36.000Z
2022-03-29T17:12:05.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
49.414545
198
0.618221
4a0e6a60e8a99e8eb9c37445f80b55bb3bfcf3b8
190,172
py
Python
pysnmp/LIEBERT-GP-FLEXIBLE-CONDITIONS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/LIEBERT-GP-FLEXIBLE-CONDITIONS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/LIEBERT-GP-FLEXIBLE-CONDITIONS-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 LIEBERT-GP-FLEXIBLE-CONDITIONS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/LIEBERT-GP-FLEXIBLE-CONDITIONS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:56:10 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using...
129.017639
18,904
0.818233
4a0e6b36b4823312027c99ce9d03c8b9c8956d6c
4,130
py
Python
train.py
BaoLocPham/hum2song
706b7fdf838944e2aabe0ae331c0867cb67f6fbc
[ "MIT" ]
null
null
null
train.py
BaoLocPham/hum2song
706b7fdf838944e2aabe0ae331c0867cb67f6fbc
[ "MIT" ]
null
null
null
train.py
BaoLocPham/hum2song
706b7fdf838944e2aabe0ae331c0867cb67f6fbc
[ "MIT" ]
null
null
null
from __future__ import print_function from data.dataset import Dataset from torch.utils import data from models.focal_loss import FocalLoss from models.metrics import * from utils.visualizer import Visualizer import time from config.config import Config from torch.nn import DataParallel from torch.optim.lr_scheduler im...
37.889908
125
0.602179
4a0e6b63e5738fc90ac76b998a2d1e69f00bd0d0
1,399
py
Python
deletetweets/removefollows.py
vitorpy/delete-tweets
f8117d47c60f66a899b235d917007e7014ee8a08
[ "0BSD" ]
null
null
null
deletetweets/removefollows.py
vitorpy/delete-tweets
f8117d47c60f66a899b235d917007e7014ee8a08
[ "0BSD" ]
null
null
null
deletetweets/removefollows.py
vitorpy/delete-tweets
f8117d47c60f66a899b235d917007e7014ee8a08
[ "0BSD" ]
null
null
null
import io import os import sys import json import twitter from datetime import datetime from dateutil import parser class TweetUnfollower(object): def __init__(self, twitter_api, dry_run=False): self.twitter_api = twitter_api self.dry_run = dry_run def destroy(self, all, tweet_id): tr...
30.413043
84
0.639743
4a0e6be0911ea0caa75263fd0b9a11fc9780e97a
433
py
Python
ex072.py
JuuzouMarques/CursoEmVideo-Python
8fdeae09f69d4047b6532a4759af115beedb8545
[ "MIT" ]
null
null
null
ex072.py
JuuzouMarques/CursoEmVideo-Python
8fdeae09f69d4047b6532a4759af115beedb8545
[ "MIT" ]
null
null
null
ex072.py
JuuzouMarques/CursoEmVideo-Python
8fdeae09f69d4047b6532a4759af115beedb8545
[ "MIT" ]
null
null
null
numeros = ('zero', 'um', 'dois', 'tres', 'quatro', 'cinco', 'seis', 'sete', 'oito', 'nove', 'dez', 'onze', 'doze', 'treze', 'quatorze', 'quinze', 'dezesseis', 'dezessete', 'dezoito', 'dezenove', 'vinte') while True: num = int(input('Digite um número entre 0 e 20: ')) if 0 <...
36.083333
69
0.526559
4a0e6c2f0eea35bce47a1b6c86ea76be63a794b8
7,764
py
Python
tests/devices/test_open_channel.py
timgates42/python-library
453ebd674513e934420dde2e35ac99fd2308be82
[ "Apache-2.0" ]
26
2015-01-05T21:08:07.000Z
2021-05-13T07:27:19.000Z
tests/devices/test_open_channel.py
timgates42/python-library
453ebd674513e934420dde2e35ac99fd2308be82
[ "Apache-2.0" ]
32
2015-01-08T23:46:36.000Z
2022-02-02T18:17:58.000Z
tests/devices/test_open_channel.py
timgates42/python-library
453ebd674513e934420dde2e35ac99fd2308be82
[ "Apache-2.0" ]
33
2015-01-21T08:02:40.000Z
2022-03-25T06:02:04.000Z
import datetime import json import mock import unittest import requests import urbanairship as ua from tests import TEST_KEY, TEST_SECRET class TestOpenChannel(unittest.TestCase): def test_create_channel(self): channel_id = "37b4f6e9-8e50-4400-8246-bdfcbf7ed3be" address = "some_address" ...
38.82
98
0.574704
4a0e6c92c7981ca8f7ff912ff59593ee1ac840b0
1,667
py
Python
game/audio.py
alex-marcozzi/Interithmetic
861cd85ae82861430d6ed637945af610f4bd2e41
[ "MIT" ]
null
null
null
game/audio.py
alex-marcozzi/Interithmetic
861cd85ae82861430d6ed637945af610f4bd2e41
[ "MIT" ]
null
null
null
game/audio.py
alex-marcozzi/Interithmetic
861cd85ae82861430d6ed637945af610f4bd2e41
[ "MIT" ]
null
null
null
# Title: audio.py # Description: Module file for audio used in Interithmetic. # Author: Alexander Marcozzi # Date: 11/19/2021 import pyglet import random # sound effects drums = pyglet.media.load('./assets/sfx/drumroll.mp3', streaming=False) cheer = pyglet.media.load('./assets/sfx/cheer.mp3', streaming=False) awwww =...
47.628571
115
0.70186
4a0e6ce32a9e8f184b80ed8b370a7982ef7b79c0
22,359
py
Python
sep_gui.py
cccaaannn/easy-sep
b76ed4d3853dd1fa1f75c45873a64f0aae8795d0
[ "MIT" ]
null
null
null
sep_gui.py
cccaaannn/easy-sep
b76ed4d3853dd1fa1f75c45873a64f0aae8795d0
[ "MIT" ]
null
null
null
sep_gui.py
cccaaannn/easy-sep
b76ed4d3853dd1fa1f75c45873a64f0aae8795d0
[ "MIT" ]
null
null
null
import os import sys import shutil import datetime from PIL import Image from PyQt5 import QtWidgets, QtCore from PyQt5.QtWidgets import QFileDialog, QFrame import threading """ checks the existence of a file and renames it if it exists on the destination and returns the abs path of destination """ def check_exis...
35.889246
192
0.607138
4a0e6d1e7a18e69b03db22388cc263b866a8319c
1,296
py
Python
math/0400-第 N 个数字.py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-01-10T17:03:21.000Z
2021-01-10T17:03:21.000Z
math/0400-第 N 个数字.py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
null
null
null
math/0400-第 N 个数字.py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-07-25T07:53:14.000Z
2021-07-25T07:53:14.000Z
class Solution: def findNthDigit(self, n: int) -> int: # 特判:如果 n 小于 10 ,直接返回就可以了 if n < 10: return n # 表示几位数 # 2 位数,从 10 到 99 一共 ( 99 - 10 + 1) * 2 = 90 * 2 = 180 位 # 3 位数,从 100 到 999 一共 ( 999 - 100 + 1) * 2 = 900 * 3 = 2700 位 # 4 位数,从 1000 到 9999 一共 ( 99...
25.411765
74
0.46142
4a0e6d5e1f701c49558cfe1ea1df61e9b4180a89
821
py
Python
StyleText/tools/synth_dataset.py
cy333/PaddleOCR
75b9feb0a69c0a3be05836605fc00d466fb1eaa1
[ "Apache-2.0" ]
1
2020-12-16T06:46:03.000Z
2020-12-16T06:46:03.000Z
StyleText/tools/synth_dataset.py
cy333/PaddleOCR
75b9feb0a69c0a3be05836605fc00d466fb1eaa1
[ "Apache-2.0" ]
null
null
null
StyleText/tools/synth_dataset.py
cy333/PaddleOCR
75b9feb0a69c0a3be05836605fc00d466fb1eaa1
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
34.208333
74
0.763703
4a0e6eac6238a6287595861d2b91b18b3789b130
15,796
py
Python
unet_vgg4_cc.py
TopoXLab/TopoCount
eb93de2bc40d4421ea39c1b80d5c4c4829f3e369
[ "MIT" ]
18
2020-12-18T02:54:55.000Z
2022-02-26T01:52:22.000Z
unet_vgg4_cc.py
TopoXLab/TopoCount
eb93de2bc40d4421ea39c1b80d5c4c4829f3e369
[ "MIT" ]
2
2021-01-13T09:15:38.000Z
2021-03-26T08:43:43.000Z
unet_vgg4_cc.py
TopoXLab/TopoCount
eb93de2bc40d4421ea39c1b80d5c4c4829f3e369
[ "MIT" ]
8
2020-12-25T01:50:55.000Z
2021-06-08T05:21:48.000Z
import torch.nn as nn import torch.nn.functional as F import torch from torchvision import models import collections from distutils.util import strtobool; from sa_net_arch_utilities_pytorch import CNNArchUtilsPyTorch; class Upsample(nn.Module): def __init__(self, scale_factor): super(Upsample, self).__i...
50.954839
164
0.627374
4a0e6f0614ca4d84980d8650a67d00c7b0ccef10
2,312
py
Python
draco/js.py
domoritz/small-vis-constraints
efc77bed9cc0f431c7d5082adfab490663291e07
[ "BSD-3-Clause" ]
179
2018-06-07T21:32:35.000Z
2022-01-21T06:10:27.000Z
draco/js.py
domoritz/small-vis-constraints
efc77bed9cc0f431c7d5082adfab490663291e07
[ "BSD-3-Clause" ]
61
2017-10-30T23:54:41.000Z
2018-05-29T07:14:17.000Z
draco/js.py
domoritz/small-vis-constraints
efc77bed9cc0f431c7d5082adfab490663291e07
[ "BSD-3-Clause" ]
24
2018-06-20T17:01:48.000Z
2022-02-27T08:13:29.000Z
import json import logging import os import subprocess from typing import Dict, List, Optional, Tuple logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) def absolute_path(p: str) -> str: return os.path.join(os.path.dirname(os.path.abspath(__file__)), p) def vl2asp(vl: Dict) -> List[st...
26.272727
72
0.629325
4a0e70320157bb00f705fcd62bd9874a542e95e7
1,383
py
Python
display/getweather.py
Hegelim/twitterweather
fb509da7413878d6088d7545fef870e0e721e87a
[ "BSD-3-Clause" ]
null
null
null
display/getweather.py
Hegelim/twitterweather
fb509da7413878d6088d7545fef870e0e721e87a
[ "BSD-3-Clause" ]
null
null
null
display/getweather.py
Hegelim/twitterweather
fb509da7413878d6088d7545fef870e0e721e87a
[ "BSD-3-Clause" ]
null
null
null
from pyowm.owm import OWM from . import utils APIKEY = '' def get_realtime_weather(): """Get realtime weather as dict. """ owm = OWM(APIKEY) mgr = owm.weather_manager() weather = mgr.weather_at_place('New York').weather temp_dict_celsius = weather.temperature('celsius') wind_dict_in_meters_pe...
28.8125
72
0.640636
4a0e71d8ba37e8d71f3bf95259615bd99e82b0e1
140
py
Python
resultadoOperaciones/urls.py
jaimevz001/profiles-rest-api
88bb3cfc15c7d6787938812b1e6f0a4ec010173b
[ "MIT" ]
null
null
null
resultadoOperaciones/urls.py
jaimevz001/profiles-rest-api
88bb3cfc15c7d6787938812b1e6f0a4ec010173b
[ "MIT" ]
null
null
null
resultadoOperaciones/urls.py
jaimevz001/profiles-rest-api
88bb3cfc15c7d6787938812b1e6f0a4ec010173b
[ "MIT" ]
null
null
null
from django.urls import path from resultadoOperaciones import views urlpatterns = [ path('resultado/', views.Resultados.as_view()) ]
15.555556
50
0.75
4a0e7384564ae43185236b45d9f0d99803ef4f25
70,931
py
Python
src/virtual-wan/azext_vwan/vendored_sdks/v2021_03_01/v2021_03_01/operations/_application_gateways_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/virtual-wan/azext_vwan/vendored_sdks/v2021_03_01/v2021_03_01/operations/_application_gateways_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/virtual-wan/azext_vwan/vendored_sdks/v2021_03_01/v2021_03_01/operations/_application_gateways_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# 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 may ...
50.163366
240
0.672203
4a0e73860c10b2b7b915104a849fc5365f1bf58f
825
py
Python
src/adafruit-circuitpython-bundle-4.x-mpy-20190713/examples/st7735r_minitft_simpletest.py
mbaaba/solar_panel
42059d8c61320494ad1298065dbc50cd9b3bd51e
[ "MIT" ]
1
2020-04-13T16:10:53.000Z
2020-04-13T16:10:53.000Z
infra/libs-400rc2-20190512/examples/st7735r_minitft_simpletest.py
jadudm/feather-isa
b7419e6698c3f64be4d8122656eb8124631ca859
[ "MIT" ]
null
null
null
infra/libs-400rc2-20190512/examples/st7735r_minitft_simpletest.py
jadudm/feather-isa
b7419e6698c3f64be4d8122656eb8124631ca859
[ "MIT" ]
null
null
null
""" This example will test out the display on the Mini TFT Breakout """ import board import displayio from adafruit_st7735r import ST7735R spi = board.SPI() tft_cs = board.D5 tft_dc = board.D6 displayio.release_displays() display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=boar...
25.78125
90
0.688485
4a0e74d8d8d5291b061da40ab516c89aa12b6fa5
106
py
Python
tests/test_serilizers.py
TobiasRosskopf/django_backend_template
1de5ea6b9006b0cc3898873b26ea251313cfe61d
[ "MIT" ]
null
null
null
tests/test_serilizers.py
TobiasRosskopf/django_backend_template
1de5ea6b9006b0cc3898873b26ea251313cfe61d
[ "MIT" ]
null
null
null
tests/test_serilizers.py
TobiasRosskopf/django_backend_template
1de5ea6b9006b0cc3898873b26ea251313cfe61d
[ "MIT" ]
null
null
null
from django.test import TestCase class UserSerializerTests(TestCase): def setUp(self): pass
15.142857
36
0.716981
4a0e7677fe8f49c430bf2fc2fe3ccda9ed3bdb62
33,422
py
Python
paleomix/common/makefile.py
jfy133/paleomix
f7f687f6f69b2faedd247a1d289d28657710a8c2
[ "MIT" ]
null
null
null
paleomix/common/makefile.py
jfy133/paleomix
f7f687f6f69b2faedd247a1d289d28657710a8c2
[ "MIT" ]
null
null
null
paleomix/common/makefile.py
jfy133/paleomix
f7f687f6f69b2faedd247a1d289d28657710a8c2
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2012 Mikkel Schubert <MikkelSch@gmail.com> # # 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 #...
37.259755
88
0.591676
4a0e779f4886806f6b5604b540bcdf9057436418
13,195
py
Python
Doc/tools/docutils/parsers/rst/roles.py
cocoatomo/Python3.2_C_API_Tutorial
e33d4a285429935aca3178dc2a97aca3ab484232
[ "PSF-2.0" ]
2
2019-03-03T00:04:36.000Z
2020-10-06T16:22:38.000Z
Doc/tools/docutils/parsers/rst/roles.py
cocoatomo/Python3.2_C_API_Tutorial
e33d4a285429935aca3178dc2a97aca3ab484232
[ "PSF-2.0" ]
null
null
null
Doc/tools/docutils/parsers/rst/roles.py
cocoatomo/Python3.2_C_API_Tutorial
e33d4a285429935aca3178dc2a97aca3ab484232
[ "PSF-2.0" ]
1
2019-03-03T00:04:38.000Z
2019-03-03T00:04:38.000Z
# $Id: roles.py 78909 2010-03-13 10:49:23Z georg.brandl $ # Author: Edward Loper <edloper@gradient.cis.upenn.edu> # Copyright: This module has been placed in the public domain. """ This module defines standard interpreted text role functions, a registry for interpreted text roles, and an API for adding to and retrievi...
37.592593
79
0.667753
4a0e79a7916f85ce67852c024d1d76accd8319eb
2,618
py
Python
Lab2_Hanoi_Style/backtrack_hanoi_solver.py
marianfx/ai-labs
f9d780c2d453294e423d3ca1b54bb8895209f402
[ "MIT" ]
1
2017-10-26T04:23:36.000Z
2017-10-26T04:23:36.000Z
Lab2_Hanoi_Style/backtrack_hanoi_solver.py
marianfx/ai-labs
f9d780c2d453294e423d3ca1b54bb8895209f402
[ "MIT" ]
9
2016-10-17T12:20:40.000Z
2016-12-21T18:29:07.000Z
Lab2_Hanoi_Style/backtrack_hanoi_solver.py
marianfx/ai-labs
f9d780c2d453294e423d3ca1b54bb8895209f402
[ "MIT" ]
null
null
null
from hanoi_solver import HanoiSolver import sys class BacktrackHanoiSolver(HanoiSolver): """Solves the Hanoi Towers Problem using backtrack. :param n: The number of towers. :param m: The number of disks. :param only_first: Specifies if alg. should stop at first solution. """ de...
34
80
0.576012
4a0e7bcbcee7f6828a5ded9bdda42268968d6132
19,637
py
Python
test/test_client.py
boralyl/aioynab
6814c4da8450671f01b03236ca384c602e8660de
[ "MIT" ]
1
2021-09-06T07:52:54.000Z
2021-09-06T07:52:54.000Z
test/test_client.py
boralyl/aioynab
6814c4da8450671f01b03236ca384c602e8660de
[ "MIT" ]
null
null
null
test/test_client.py
boralyl/aioynab
6814c4da8450671f01b03236ca384c602e8660de
[ "MIT" ]
null
null
null
import asyncio from unittest import mock import aiohttp import pytest from aioresponses import aioresponses from aioynab.client import BASE_URL, Client, YNABAPIError @pytest.fixture(scope='module') def client(): loop = asyncio.get_event_loop() client = Client('access-token', loop=loop) yield client ...
33.625
80
0.598207
4a0e7bcc1e386f9ed6f976c80a94f2ec792ddb96
755
py
Python
src/vendor/configrpc/crpc/configrpc.py
radomirklacza/C-BAS
5005cf43f57302dc0f58b9d1b9cf7e4e3ab70e32
[ "BSD-3-Clause" ]
null
null
null
src/vendor/configrpc/crpc/configrpc.py
radomirklacza/C-BAS
5005cf43f57302dc0f58b9d1b9cf7e4e3ab70e32
[ "BSD-3-Clause" ]
null
null
null
src/vendor/configrpc/crpc/configrpc.py
radomirklacza/C-BAS
5005cf43f57302dc0f58b9d1b9cf7e4e3ab70e32
[ "BSD-3-Clause" ]
2
2017-08-07T15:24:05.000Z
2018-10-11T10:53:23.000Z
import eisoil.core.pluginmanager as pm import eisoil.core.log logger=eisoil.core.log.getLogger('configrpc') xmlrpc = pm.getService('xmlrpc') config = pm.getService("config") # TODO IMPORTANT: add authentication / authorization here class ConfigRPC(xmlrpc.Dispatcher): """ """ def __init__(self): ...
26.034483
76
0.607947
4a0e7d74e62f2dcc1f51246a9e189556b83c0ef4
9,056
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_06_01/operations/_network_interface_ip_configurations_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_06_01/operations/_network_interface_ip_configurations_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_06_01/operations/_network_interface_ip_configurations_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# 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 may ...
48.951351
220
0.675795
4a0e7e160f6f1ba1359c6eec91741b730bd70dd4
7,261
py
Python
contrib/py/pycoiniclesnet/pycoiniclesnet/instance.py
coiniclesdev/coinicles-network
32a817d174de4b597d96cd6204c0ede1cab04788
[ "Zlib" ]
null
null
null
contrib/py/pycoiniclesnet/pycoiniclesnet/instance.py
coiniclesdev/coinicles-network
32a817d174de4b597d96cd6204c0ede1cab04788
[ "Zlib" ]
null
null
null
contrib/py/pycoiniclesnet/pycoiniclesnet/instance.py
coiniclesdev/coinicles-network
32a817d174de4b597d96cd6204c0ede1cab04788
[ "Zlib" ]
null
null
null
#!/usr/bin/env python3 # # coiniclesnet runtime wrapper # from ctypes import * import configparser import signal import time import threading import os import sys import requests from pycoiniclesnet import rc lib_file = os.path.join(os.path.realpath('.'), 'libcoiniclesnet-shared.so') def log(msg): sys.stderr.w...
32.271111
127
0.549649
4a0e7e7f60b9bf86ecb377c6a8279a8e514464de
757
py
Python
back_flask/src/app.py
thibaud-c/3DperceptionUX
04707986e98ced9d121083263ce6a6e09f747666
[ "MIT" ]
null
null
null
back_flask/src/app.py
thibaud-c/3DperceptionUX
04707986e98ced9d121083263ce6a6e09f747666
[ "MIT" ]
2
2022-01-27T16:11:48.000Z
2022-02-27T02:54:50.000Z
back_flask/src/app.py
thibaud-c/3DperceptionUX
04707986e98ced9d121083263ce6a6e09f747666
[ "MIT" ]
null
null
null
from flask import Flask from flask_cors import CORS import logging from .config import app_config from .models import db # import user_api blueprint from .views.UserView import user_api as user_blueprint def create_app(env_name): """ Create app """ #init log logging.basicConfig(filename='Flask.log', level...
21.027778
138
0.704095
4a0e7f91cdf93f93dea667bded806c86d417a7c9
22,657
py
Python
test/test_functionalization.py
jeejakp12/pytorch
043cf1f9c746b4dda2c404ba6c76c6ccad5e2cbe
[ "Intel" ]
null
null
null
test/test_functionalization.py
jeejakp12/pytorch
043cf1f9c746b4dda2c404ba6c76c6ccad5e2cbe
[ "Intel" ]
null
null
null
test/test_functionalization.py
jeejakp12/pytorch
043cf1f9c746b4dda2c404ba6c76c6ccad5e2cbe
[ "Intel" ]
1
2022-03-26T14:42:50.000Z
2022-03-26T14:42:50.000Z
# Owner(s): ["module: codegen"] import torch from torch.testing._internal.common_utils import TestCase, run_tests from torch.testing._internal.logging_tensor import LoggingTensor, LoggingTensorReentrant, capture_logs, log_input from torch.utils._pytree import tree_map import logging def are_aliased(x, y): if x._...
39.61014
129
0.600697
4a0e80faa8147ee154ce90191e52e77fc78def3c
36,246
py
Python
sdks/python/apache_beam/transforms/ptransform.py
rehmanmuradali/beam
de8ff705145cbbc41bea7750a0a5d3553924ab3a
[ "Apache-2.0" ]
1
2022-01-24T22:07:52.000Z
2022-01-24T22:07:52.000Z
sdks/python/apache_beam/transforms/ptransform.py
rehmanmuradali/beam
de8ff705145cbbc41bea7750a0a5d3553924ab3a
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/transforms/ptransform.py
rehmanmuradali/beam
de8ff705145cbbc41bea7750a0a5d3553924ab3a
[ "Apache-2.0" ]
1
2019-05-21T11:30:31.000Z
2019-05-21T11:30:31.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 us...
36.20979
158
0.703747
4a0e80ffe148cd3b76bb22e63fb28a631d1700e3
191
py
Python
05/hijo.py
nogand/py0122
05d8b00bb1b8018ae6e616599adf4ef07196121a
[ "CC0-1.0" ]
null
null
null
05/hijo.py
nogand/py0122
05d8b00bb1b8018ae6e616599adf4ef07196121a
[ "CC0-1.0" ]
null
null
null
05/hijo.py
nogand/py0122
05d8b00bb1b8018ae6e616599adf4ef07196121a
[ "CC0-1.0" ]
null
null
null
import time def main(): print("starting work") time.sleep(1) print("work work work work work") time.sleep(1) print("done working") if __name__ == '__main__': main()
15.916667
37
0.612565
4a0e810a3b1b8d8b4f1eff010f6b40a8daff7208
1,848
py
Python
common_widgets/dialogs/get_file_dialog.py
shuge/Qt-Python-Binding-Examples
efe40c8af6c3e0805a5a7c3d053b8c8bf893a803
[ "BSD-3-Clause" ]
179
2015-01-08T10:21:28.000Z
2020-03-24T07:03:04.000Z
common_widgets/dialogs/get_file_dialog.py
tonytony2020/Qt-Python-Binding-Examples
efe40c8af6c3e0805a5a7c3d053b8c8bf893a803
[ "BSD-3-Clause" ]
1
2019-12-23T17:14:37.000Z
2020-01-09T16:45:58.000Z
common_widgets/dialogs/get_file_dialog.py
shuge/Qt-Python-Binding-Examples
efe40c8af6c3e0805a5a7c3d053b8c8bf893a803
[ "BSD-3-Clause" ]
57
2015-01-05T09:34:15.000Z
2019-11-18T06:12:08.000Z
#!/usr/bin/env python #-*- coding:utf-8 -*- """ Provides a dialog widget for selecting a file Tested environment: Mac OS X 10.6.8 http://www.pyside.org/docs/pyside/PySide/QtGui/QFileDialog.html """ import os import sys try: from PySide import QtCore from PySide import QtGui except ImportError: from P...
27.176471
83
0.584416
4a0e8157b6ced320f1ae025a60de198765418cbb
8,204
py
Python
tests/ut/python/parallel/parallel_end_to_end/prelu/_test_prelu_parallel_4p.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
1
2020-05-13T11:31:21.000Z
2020-05-13T11:31:21.000Z
tests/ut/python/parallel/parallel_end_to_end/prelu/_test_prelu_parallel_4p.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
null
null
null
tests/ut/python/parallel/parallel_end_to_end/prelu/_test_prelu_parallel_4p.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 a...
41.434343
149
0.656875
4a0e816e4323ab0c85b66f4b14b8e5322f9758d9
1,813
py
Python
code.py
nikhilmate07/python-mini-challenges
0c7ef7518344bbf13ed9e93970ec0970af96607b
[ "MIT" ]
null
null
null
code.py
nikhilmate07/python-mini-challenges
0c7ef7518344bbf13ed9e93970ec0970af96607b
[ "MIT" ]
null
null
null
code.py
nikhilmate07/python-mini-challenges
0c7ef7518344bbf13ed9e93970ec0970af96607b
[ "MIT" ]
null
null
null
# -------------- #Code starts here #Function to check for palindrome def palindrome_check(num): num=str(num) return (num[::-1]==num) #Function to find the smallest palindrome def palindrome(num): while(1): num=num+1 if palindrome_check(num): return num ...
19.287234
120
0.562052
4a0e8332fe8f717deec8aed8828f0a3547c1addd
1,191
py
Python
tests/testapp/management/commands/runserver.py
AgDude/gargoyle
2ead9ad412f0f29eb5b82fc5b9083f30e36ac870
[ "Apache-2.0" ]
138
2016-01-08T13:37:53.000Z
2022-03-25T10:41:06.000Z
tests/testapp/management/commands/runserver.py
AgDude/gargoyle
2ead9ad412f0f29eb5b82fc5b9083f30e36ac870
[ "Apache-2.0" ]
39
2015-12-28T23:16:17.000Z
2018-05-26T09:30:29.000Z
tests/testapp/management/commands/runserver.py
AgDude/gargoyle
2ead9ad412f0f29eb5b82fc5b9083f30e36ac870
[ "Apache-2.0" ]
11
2018-07-13T10:10:24.000Z
2020-12-28T20:24:29.000Z
""" Exists to ensure you can always log in with admin/password when running in 'dev' mode - see tests/README.rst """ from __future__ import absolute_import, division, print_function, unicode_literals from django.contrib.auth.models import User from django.contrib.staticfiles.management.commands.runserver import Comman...
35.029412
100
0.655751
4a0e8335950a9f443b1dc7e74184c6107bb906c4
204
py
Python
vgg/model/loss.py
mhd53/vgg-from-torch
fbcca53432648a492550fb14d2c42c10230d76f5
[ "MIT" ]
null
null
null
vgg/model/loss.py
mhd53/vgg-from-torch
fbcca53432648a492550fb14d2c42c10230d76f5
[ "MIT" ]
null
null
null
vgg/model/loss.py
mhd53/vgg-from-torch
fbcca53432648a492550fb14d2c42c10230d76f5
[ "MIT" ]
null
null
null
import torch.nn.functional as F import torch.nn as nn def nll_loss(output, target): return F.nll_loss(output, target) def cross_entropy(output, target): return F.cross_entropy(output, target)
18.545455
42
0.75
4a0e84457055fd493e71267701641c911879ad57
13,043
py
Python
Final_THE/final1.py
BengisuA14/METU-ImageProcessing
a955b8c123ea33a20c0fa8d75aa1989e1c078bee
[ "MIT" ]
null
null
null
Final_THE/final1.py
BengisuA14/METU-ImageProcessing
a955b8c123ea33a20c0fa8d75aa1989e1c078bee
[ "MIT" ]
null
null
null
Final_THE/final1.py
BengisuA14/METU-ImageProcessing
a955b8c123ea33a20c0fa8d75aa1989e1c078bee
[ "MIT" ]
null
null
null
import numpy as np import cv2 from sklearn.cluster import MeanShift, estimate_bandwidth from skimage.color import label2rgb, lab2rgb from skimage import segmentation, filters, color from skimage.future import graph from skimage.util import img_as_float import matplotlib.pyplot as plt from scipy import ndimage a...
32.6075
185
0.628843
4a0e84bf7be22a389d7642d51a3d29a9f52dc496
4,415
py
Python
pollenNotifier/pollenNotifier.py
eifinger/appdaemon-scripts
e4a113a27a8501104c23330c4a7ea6aaf6f35939
[ "MIT" ]
122
2018-08-17T07:07:10.000Z
2022-03-14T03:16:44.000Z
pollenNotifier/pollenNotifier.py
eifinger/appdaemon-scripts
e4a113a27a8501104c23330c4a7ea6aaf6f35939
[ "MIT" ]
4
2018-08-16T06:37:10.000Z
2020-10-04T11:17:23.000Z
pollenNotifier/pollenNotifier.py
eifinger/appdaemon-scripts
e4a113a27a8501104c23330c4a7ea6aaf6f35939
[ "MIT" ]
19
2018-09-24T01:07:40.000Z
2022-02-15T21:10:11.000Z
import appdaemon.plugins.hass.hassapi as hass import datetime # # App which notifies you when there is a pollen forecast for today # Used with sensors getting data from https://opendata.dwd.de/climate_environment/health/alerts/s31fg.json # # # Args: # # app_switch: on/off switch for this app. example: input_boolean.tu...
35.604839
106
0.619706
4a0e84db2c82b2797aca396125d62ee176b9a43a
34,790
py
Python
base/tests/test_views/outline_initial_views/test_initial_form.py
rafsaf/Tribal-Wars-Planer
083af9b1efe814be3abe975b9ac8faccc00ebb09
[ "Apache-2.0" ]
1
2021-12-01T18:20:08.000Z
2021-12-01T18:20:08.000Z
base/tests/test_views/outline_initial_views/test_initial_form.py
rafsaf/Tribal-Wars-Planer
083af9b1efe814be3abe975b9ac8faccc00ebb09
[ "Apache-2.0" ]
21
2021-11-01T14:04:19.000Z
2022-03-25T06:31:03.000Z
base/tests/test_views/outline_initial_views/test_initial_form.py
rafsaf/Tribal-Wars-Planer
083af9b1efe814be3abe975b9ac8faccc00ebb09
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Rafał Safin (rafsaf). All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
42.272175
103
0.657689
4a0e85832047f73106bd79717d91f80b339c6e44
3,654
py
Python
cmlkit/model.py
sirmarcel/cmlk
e099bf3e255b60675e8e1b3ad29db750dbd6faf3
[ "MIT" ]
24
2018-06-22T17:31:20.000Z
2022-03-29T14:52:49.000Z
cmlkit/model.py
sirmarcel/cmlk
e099bf3e255b60675e8e1b3ad29db750dbd6faf3
[ "MIT" ]
8
2019-06-06T14:51:57.000Z
2021-06-30T19:43:13.000Z
cmlkit/model.py
sirmarcel/cmlk
e099bf3e255b60675e8e1b3ad29db750dbd6faf3
[ "MIT" ]
5
2018-07-30T18:53:08.000Z
2022-02-10T09:12:15.000Z
"""Model class. A Model is a combination of representation and regression method, and can be regarded as a rudimentary pipeline. It essentially wraps these two components, and takes care of passing the computed representation around to the regressor. The only additional task a Model has is to make sure the property ...
32.336283
85
0.664751
4a0e859535215247f61281d9224c50c708dcd801
15,270
py
Python
scripts/validate_unwanted_patterns.py
Abishek15592/pandas
6929e262dd22ac35baabf87a5236d451255fb66d
[ "BSD-3-Clause" ]
1
2020-09-15T01:39:01.000Z
2020-09-15T01:39:01.000Z
scripts/validate_unwanted_patterns.py
Abishek15592/pandas
6929e262dd22ac35baabf87a5236d451255fb66d
[ "BSD-3-Clause" ]
null
null
null
scripts/validate_unwanted_patterns.py
Abishek15592/pandas
6929e262dd22ac35baabf87a5236d451255fb66d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Unwanted patterns test cases. The reason this file exist despite the fact we already have `ci/code_checks.sh`, (see https://github.com/pandas-dev/pandas/blob/master/ci/code_checks.sh) is that some of the test cases are more complex/imposible to validate via regex. So this file is somewhat a...
28.811321
87
0.584676
4a0e869c98e559b927116894b415a7de5b42e91d
16,638
py
Python
rhasspywake_snowboy_hermes/__init__.py
rhasspy/rhasspy-wake-snowboy-hermes
72d970350f4ba7a764427724c015d1cbb18e6c67
[ "MIT" ]
1
2020-05-27T02:20:19.000Z
2020-05-27T02:20:19.000Z
rhasspywake_snowboy_hermes/__init__.py
rhasspy/rhasspy-wake-snowboy-hermes
72d970350f4ba7a764427724c015d1cbb18e6c67
[ "MIT" ]
2
2020-04-27T14:54:19.000Z
2021-06-05T19:36:37.000Z
rhasspywake_snowboy_hermes/__init__.py
rhasspy/rhasspy-wake-snowboy-hermes
72d970350f4ba7a764427724c015d1cbb18e6c67
[ "MIT" ]
4
2020-07-25T14:01:24.000Z
2021-04-29T21:08:17.000Z
"""Hermes MQTT server for Rhasspy wakeword with snowboy""" import asyncio import io import logging import queue import socket import threading import typing import wave from dataclasses import dataclass, field from pathlib import Path from rhasspyhermes.audioserver import AudioFrame from rhasspyhermes.base import Mess...
37.138393
88
0.527888
4a0e86ec9769b17eaba5a143c010b2228ac8f1bd
10,693
py
Python
netapp/santricity/models/symbol/thermal_sensor.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
5
2016-08-23T17:52:22.000Z
2019-05-16T08:45:30.000Z
netapp/santricity/models/symbol/thermal_sensor.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
2
2016-11-10T05:30:21.000Z
2019-04-05T15:03:37.000Z
netapp/santricity/models/symbol/thermal_sensor.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
7
2016-08-25T16:11:44.000Z
2021-02-22T05:31:25.000Z
# coding: utf-8 """ ThermalSensor.py The Clear BSD License Copyright (c) – 2016, NetApp, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: ...
34.05414
844
0.627046
4a0e875a33527ccbcf6a55b02585e70b1e64fa58
350
py
Python
pms-docking-demo/backend/manage.py
fish2018/openpms
88ca124ba0980aef5dd5474af03209f2dbefdcca
[ "Apache-2.0" ]
40
2019-09-12T00:41:22.000Z
2022-03-25T03:29:28.000Z
pms-docking-demo/backend/manage.py
fish2018/openpms
88ca124ba0980aef5dd5474af03209f2dbefdcca
[ "Apache-2.0" ]
null
null
null
pms-docking-demo/backend/manage.py
fish2018/openpms
88ca124ba0980aef5dd5474af03209f2dbefdcca
[ "Apache-2.0" ]
14
2019-09-07T11:49:55.000Z
2022-03-25T03:36:20.000Z
from app.models import db from app.utils.factory import create_app from flask_script import Manager, Shell from flask_migrate import Migrate, MigrateCommand app = create_app() manager = Manager(app) migrate = Migrate(app, db, compare_type=True) manager.add_command('db', MigrateCommand) if __name__ == '_...
23.333333
50
0.745714