hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 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 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 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.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4654a308feea7ad07bf6af611b62104666bd4e8d | 5,087 | py | Python | shfl/data_distribution/data_distribution_non_iid.py | SSSuperTIan/Sherpa.ai-Federated-Learning-Framework | a30d73a018526f1033ee0ec57489c4c6e2f15b0a | [
"Apache-2.0"
] | 1 | 2021-03-18T07:31:36.000Z | 2021-03-18T07:31:36.000Z | shfl/data_distribution/data_distribution_non_iid.py | SSSuperTIan/Sherpa.ai-Federated-Learning-Framework | a30d73a018526f1033ee0ec57489c4c6e2f15b0a | [
"Apache-2.0"
] | null | null | null | shfl/data_distribution/data_distribution_non_iid.py | SSSuperTIan/Sherpa.ai-Federated-Learning-Framework | a30d73a018526f1033ee0ec57489c4c6e2f15b0a | [
"Apache-2.0"
] | null | null | null | import numpy as np
import random
import tensorflow as tf
from shfl.data_base.data_base import shuffle_rows
from shfl.data_distribution.data_distribution_sampling import SamplingDataDistribution
| 36.597122 | 113 | 0.612149 |
4656ff804d82461f52d5fb2b608b15a88f9feeb7 | 1,298 | py | Python | example/0_Basic_usage_of_the_library/python_pymongo/2_select.py | AndersonHJB/learning_spider | b855b7808fb5268e9564180cf73ba5b1fb133f58 | [
"MIT"
] | 2 | 2021-09-07T13:28:34.000Z | 2021-12-13T06:17:10.000Z | example/0_Basic_usage_of_the_library/python_pymongo/2_select.py | AndersonHJB/learning_spider | b855b7808fb5268e9564180cf73ba5b1fb133f58 | [
"MIT"
] | null | null | null | example/0_Basic_usage_of_the_library/python_pymongo/2_select.py | AndersonHJB/learning_spider | b855b7808fb5268e9564180cf73ba5b1fb133f58 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
'''
@Time : 2021-06-08
@Author : EvilRecluse
@Contact : https://github.com/RecluseXU
@Desc :
'''
# here put the import lib
from pymongo import MongoClient
from bson import ObjectId
connection: MongoClient = MongoClient('mongodb://localhost:27017')
collection = connection['lo... | 22 | 80 | 0.743451 |
4657a986bf5b4eb76c1f27d0639731c4204bb162 | 4,428 | py | Python | install-b9s.py | ihaveamac/hardmod-b9s-installer | 4b26cfff76bb00430aacbe80679623e3cc5bb46d | [
"MIT"
] | 13 | 2017-05-20T03:54:55.000Z | 2021-10-09T22:10:09.000Z | install-b9s.py | ihaveamac/hardmod-b9s-installer | 4b26cfff76bb00430aacbe80679623e3cc5bb46d | [
"MIT"
] | 2 | 2017-06-09T06:40:20.000Z | 2017-09-17T14:29:28.000Z | install-b9s.py | ihaveamac/hardmod-b9s-installer | 4b26cfff76bb00430aacbe80679623e3cc5bb46d | [
"MIT"
] | 3 | 2017-12-24T19:10:09.000Z | 2020-12-04T09:01:53.000Z | #!/usr/bin/env python3
import hashlib
import os
import shutil
import subprocess
import sys
import time
if not os.path.isfile('NAND.bin'):
doexit('NAND.bin not found.', errcode=1)
if os.path.isfile('firm0firm1.bak'):
doexit('firm0firm1.bak was found.\n'
'In order to prevent writing a good backup ... | 35.709677 | 78 | 0.626016 |
46586eef963ebf4f9bbb1677b780f95787d3e23e | 6,329 | py | Python | pygazebo/connection.py | robobe/pygazebo | 0ab53034c9cc5bf23bae46bf0e9c984349bdfa5a | [
"Apache-2.0"
] | null | null | null | pygazebo/connection.py | robobe/pygazebo | 0ab53034c9cc5bf23bae46bf0e9c984349bdfa5a | [
"Apache-2.0"
] | null | null | null | pygazebo/connection.py | robobe/pygazebo | 0ab53034c9cc5bf23bae46bf0e9c984349bdfa5a | [
"Apache-2.0"
] | 1 | 2020-12-09T17:27:34.000Z | 2020-12-09T17:27:34.000Z | import concurrent
import time
import math
import sys
import asyncio
import logging
from . import msg
from .parse_error import ParseError
from . import DEBUG_LEVEL
logger = logging.getLogger(__name__)
logger.setLevel(DEBUG_LEVEL)
| 32.623711 | 137 | 0.613367 |
4658a352b7ba7209186ef3d47f169f46b8660613 | 2,182 | py | Python | src/visualization/visualize_dataset.py | ivangarrera/MachineLearning | c13584cdcb7c4df1ab2814cf42a3c2bd3c203e75 | [
"MIT"
] | null | null | null | src/visualization/visualize_dataset.py | ivangarrera/MachineLearning | c13584cdcb7c4df1ab2814cf42a3c2bd3c203e75 | [
"MIT"
] | null | null | null | src/visualization/visualize_dataset.py | ivangarrera/MachineLearning | c13584cdcb7c4df1ab2814cf42a3c2bd3c203e75 | [
"MIT"
] | null | null | null | from common_clustering import CommonClustering
#clustering_features = CommonClustering(r'C:\Users\ivangarrera\Desktop\T2_cleaned.csv')
clustering_features = CommonClustering('D:\Ing. Informatica\Cuarto\Machine Learning\T2_cleaned_gyroscope.csv')
attr = list(clustering_features.data_set)[0][:list(clustering_features.d... | 36.983051 | 110 | 0.779102 |
465a22b29f2bfae5b6e8e5e3348394868002ce0f | 1,483 | py | Python | app.py | Geo-Gabriel/REST-Api-Hotels | e065f4725507e11a11480118f326e79aded533d5 | [
"MIT"
] | null | null | null | app.py | Geo-Gabriel/REST-Api-Hotels | e065f4725507e11a11480118f326e79aded533d5 | [
"MIT"
] | null | null | null | app.py | Geo-Gabriel/REST-Api-Hotels | e065f4725507e11a11480118f326e79aded533d5 | [
"MIT"
] | null | null | null | from blacklist import BLACKLIST
from flask import Flask, jsonify
from flask_restful import Api
from resources.hotel import Hoteis, Hotel
from resources.user import User, UserLogin, UserLogout, UserRegister, Users
from resources.site import Site, Sites
from flask_jwt_extended import JWTManager
app = Flask(__name__)
ap... | 26.017544 | 80 | 0.766689 |
465a6321a407b2ead52a83060d6a413f0b6c0e5a | 316 | py | Python | scdlbot/__init__.py | samillinier/habesha-skin-pack | 74d1c84b207c8d598f124a91dce11fb09109c772 | [
"MIT"
] | null | null | null | scdlbot/__init__.py | samillinier/habesha-skin-pack | 74d1c84b207c8d598f124a91dce11fb09109c772 | [
"MIT"
] | null | null | null | scdlbot/__init__.py | samillinier/habesha-skin-pack | 74d1c84b207c8d598f124a91dce11fb09109c772 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for Music Downloader Telegram Bot."""
# version as tuple for simple comparisons
VERSION = (0, 9, 16)
__author__ = """George Pchelkin"""
__email__ = 'george@pchelk.in'
# string created from tuple to avoid inconsistency
__version__ = ".".join([str(x) for x in VERSION])
| 26.333333 | 58 | 0.696203 |
465afd4dc993d8e9672e85b05bdf2dd73ac767b6 | 4,355 | py | Python | uPython/lopyhelper.py | somervda/ourLora | 8ee21a3eefd13464ad5063174a7a7cab57229e0d | [
"MIT"
] | null | null | null | uPython/lopyhelper.py | somervda/ourLora | 8ee21a3eefd13464ad5063174a7a7cab57229e0d | [
"MIT"
] | 3 | 2022-02-14T19:32:32.000Z | 2022-02-24T18:22:28.000Z | uPython/lopyhelper.py | somervda/ourLora | 8ee21a3eefd13464ad5063174a7a7cab57229e0d | [
"MIT"
] | null | null | null | import struct
import pycom
import time
from network import LoRa
def setUSFrequencyPlan(lora):
""" Sets the frequency plan that matches the TTN gateway in the USA """
# remove all US915 channels
for channel in range(0, 72):
lora.remove_channel(channel)
# set all channels to the same frequency... | 35.406504 | 105 | 0.665901 |
465b3dc1f585b6b0356f07d08239e727188800e8 | 2,980 | py | Python | configs/efficientnet/retinanet_effb3_fpn_crop896_8x4_1x_coco.py | chenxinfeng4/mmdetection | a99a1aaa5e4a7614f2f89f2350e1b917b2a8ca7e | [
"Apache-2.0"
] | 6 | 2021-12-18T07:23:35.000Z | 2022-02-26T04:38:26.000Z | configs/efficientnet/retinanet_effb3_fpn_crop896_8x4_1x_coco.py | wondervictor/mmdetection | c72bc707e661d61cf09aca0a53ad21812ef874d0 | [
"Apache-2.0"
] | null | null | null | configs/efficientnet/retinanet_effb3_fpn_crop896_8x4_1x_coco.py | wondervictor/mmdetection | c72bc707e661d61cf09aca0a53ad21812ef874d0 | [
"Apache-2.0"
] | 1 | 2021-12-12T13:35:22.000Z | 2021-12-12T13:35:22.000Z | _base_ = [
'../_base_/models/retinanet_r50_fpn.py',
'../_base_/datasets/coco_detection.py', '../_base_/default_runtime.py'
]
cudnn_benchmark = True
norm_cfg = dict(type='BN', requires_grad=True)
checkpoint = 'https://download.openmmlab.com/mmclassification/v0/efficientnet/efficientnet-b3_3rdparty_8xb32-aa_in1k... | 31.702128 | 147 | 0.645638 |
465d72bc64541d0735329d0bb15e70e1a6c30e99 | 2,265 | py | Python | tests/test_model.py | Sebastiencreoff/mongo_tool | 048171ba2c172c0e8962a5408edbaec26cfdf4ca | [
"MIT"
] | null | null | null | tests/test_model.py | Sebastiencreoff/mongo_tool | 048171ba2c172c0e8962a5408edbaec26cfdf4ca | [
"MIT"
] | null | null | null | tests/test_model.py | Sebastiencreoff/mongo_tool | 048171ba2c172c0e8962a5408edbaec26cfdf4ca | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import datetime
import mock
import mom
| 25.449438 | 74 | 0.63532 |
46604f1fc90b7c0ea8ac8ed35c4082c5ab9f172f | 247 | py | Python | src/koeda/utils/stopwords.py | toriving/KoEDA | 5dfbb0e88ede13da2e5e72ac94fe7cb12c0b7cd1 | [
"MIT"
] | 48 | 2021-04-23T16:13:41.000Z | 2022-03-24T09:03:26.000Z | src/koeda/utils/stopwords.py | toriving/KoEDA | 5dfbb0e88ede13da2e5e72ac94fe7cb12c0b7cd1 | [
"MIT"
] | 6 | 2020-11-19T13:56:29.000Z | 2021-09-26T12:13:23.000Z | src/koeda/utils/stopwords.py | toriving/KoEDA | 5dfbb0e88ede13da2e5e72ac94fe7cb12c0b7cd1 | [
"MIT"
] | 3 | 2021-09-13T07:14:29.000Z | 2021-12-29T09:52:36.000Z | import os
import json
STOPWORDS_JSON_PATH = os.path.join(
os.path.dirname(os.path.abspath(__file__)), os.pardir, "corpora/stopwords.json"
)
with open(STOPWORDS_JSON_PATH, "r", encoding="utf-8") as f:
STOPWORD = json.load(f)["stopwords"]
| 24.7 | 83 | 0.720648 |
4660b825bf1a5e031627c3620c78b68944deb5c7 | 652 | py | Python | glue/core/tests/test_message.py | ejeschke/glue | 21689e3474aeaeb70e258d76c60755596856976c | [
"BSD-3-Clause"
] | 3 | 2015-09-10T22:23:55.000Z | 2019-04-04T18:47:33.000Z | glue/core/tests/test_message.py | ejeschke/glue | 21689e3474aeaeb70e258d76c60755596856976c | [
"BSD-3-Clause"
] | null | null | null | glue/core/tests/test_message.py | ejeschke/glue | 21689e3474aeaeb70e258d76c60755596856976c | [
"BSD-3-Clause"
] | 1 | 2019-08-04T14:10:12.000Z | 2019-08-04T14:10:12.000Z | from __future__ import absolute_import, division, print_function
import pytest
from .. import message as msg
| 27.166667 | 74 | 0.739264 |
4660df17d48e40efbff3c55617fa7393819b5977 | 1,358 | py | Python | fabfile/config.py | kurochan/config-collector | 656da97eb219eb5bcf913173dd7aa76d0cedd44c | [
"MIT"
] | 1 | 2017-07-30T17:35:10.000Z | 2017-07-30T17:35:10.000Z | fabfile/config.py | kurochan/config-collector | 656da97eb219eb5bcf913173dd7aa76d0cedd44c | [
"MIT"
] | null | null | null | fabfile/config.py | kurochan/config-collector | 656da97eb219eb5bcf913173dd7aa76d0cedd44c | [
"MIT"
] | 1 | 2015-03-01T08:52:14.000Z | 2015-03-01T08:52:14.000Z | # -*- coding: utf-8 -*-
import os
import util
from fabric.api import *
from fabric.state import output
from fabric.colors import *
from base import BaseTask
from helper.print_helper import task_puts
collect = CollectConfig()
| 33.121951 | 156 | 0.690722 |
4661333ffeca10b7026c68a47b44fc3be83ff093 | 2,334 | py | Python | python/paddle/fluid/tests/unittests/ir/inference/test_trt_transpose_flatten_concat_fuse_pass.py | LWhite027/PaddleBox | b14bcdf285dd8829e11ab12cc815ac1b1ab62694 | [
"Apache-2.0"
] | 10 | 2021-05-12T07:20:32.000Z | 2022-03-04T08:21:56.000Z | python/paddle/fluid/tests/unittests/ir/inference/test_trt_transpose_flatten_concat_fuse_pass.py | AFLee/Paddle | 311b3b44fc7d51d4d66d90ab8a3fc0d42231afda | [
"Apache-2.0"
] | 1 | 2020-09-10T09:05:52.000Z | 2020-09-10T09:06:22.000Z | python/paddle/fluid/tests/unittests/ir/inference/test_trt_transpose_flatten_concat_fuse_pass.py | AFLee/Paddle | 311b3b44fc7d51d4d66d90ab8a3fc0d42231afda | [
"Apache-2.0"
] | 25 | 2019-12-07T02:14:14.000Z | 2021-12-30T06:16:30.000Z | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 40.947368 | 83 | 0.673522 |
46627a350df5177a8548cf67ff0c02d30e501fb7 | 2,183 | py | Python | src/stage_02_base_model_creation.py | TUCchkul/Dog-Cat-Classification-with-MLflow | 543f55bd88c048da88f343ff4b1b15b3f84ec20f | [
"MIT"
] | null | null | null | src/stage_02_base_model_creation.py | TUCchkul/Dog-Cat-Classification-with-MLflow | 543f55bd88c048da88f343ff4b1b15b3f84ec20f | [
"MIT"
] | null | null | null | src/stage_02_base_model_creation.py | TUCchkul/Dog-Cat-Classification-with-MLflow | 543f55bd88c048da88f343ff4b1b15b3f84ec20f | [
"MIT"
] | null | null | null | import argparse
import os
import shutil
from tqdm import tqdm
import logging
from src.utils.common import read_yaml, create_directories
import random
from src.utils.model import log_model_summary
import tensorflow as tf
STAGE= "Base Model Creation"
logging.basicConfig(
filename=os.path.join("logs",'running_logs.... | 33.584615 | 81 | 0.633532 |
46628dc5cc0651a6487fc8978ac7257bc4e97455 | 3,774 | py | Python | test_calculator.py | Kidatoy/Advanced-Calculator | ebd3e436894116ec35b08872ffecdf762b079670 | [
"MIT"
] | null | null | null | test_calculator.py | Kidatoy/Advanced-Calculator | ebd3e436894116ec35b08872ffecdf762b079670 | [
"MIT"
] | null | null | null | test_calculator.py | Kidatoy/Advanced-Calculator | ebd3e436894116ec35b08872ffecdf762b079670 | [
"MIT"
] | null | null | null | import unittest # https://docs.python.org/3/library/unittest.html
from modules.calculator import Calculator as Calc
| 36.640777 | 75 | 0.560943 |
4662eb3534b543f9d1857e55e3d0e8669cf078e7 | 9,315 | py | Python | pddf_psuutil/main.py | deran1980/sonic-utilities | a6ae218238e7e552f49191f81451bd55ff56ba51 | [
"Apache-2.0"
] | null | null | null | pddf_psuutil/main.py | deran1980/sonic-utilities | a6ae218238e7e552f49191f81451bd55ff56ba51 | [
"Apache-2.0"
] | 4 | 2020-04-17T06:53:05.000Z | 2020-12-01T02:37:34.000Z | pddf_psuutil/main.py | deran1980/sonic-utilities | a6ae218238e7e552f49191f81451bd55ff56ba51 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# main.py
#
# Command-line utility for interacting with PSU Controller in PDDF mode in SONiC
#
try:
import sys
import os
import click
from tabulate import tabulate
from utilities_common.util_base import UtilHelper
except ImportError as e:
raise ImportError("%s - require... | 31.05 | 117 | 0.646914 |
466394d9212459110bd5519845967eacdfeb9888 | 758 | py | Python | gifbox/core/serializers.py | timmygee/gifbox | ccdd88ad9424c8e2c519415cde619af3a61daf66 | [
"MIT"
] | null | null | null | gifbox/core/serializers.py | timmygee/gifbox | ccdd88ad9424c8e2c519415cde619af3a61daf66 | [
"MIT"
] | null | null | null | gifbox/core/serializers.py | timmygee/gifbox | ccdd88ad9424c8e2c519415cde619af3a61daf66 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from versatileimagefield.serializers import VersatileImageFieldSerializer
from .models import Image, AnimatedGif
| 23.6875 | 73 | 0.631926 |
466460f359120dda2e7fd00e3c8bae00cdec4a39 | 4,930 | py | Python | ginga/canvas/coordmap.py | saimn/ginga | 9daf1875b4c1b0fad0a053c5f258bf7d4c0f3455 | [
"BSD-3-Clause"
] | null | null | null | ginga/canvas/coordmap.py | saimn/ginga | 9daf1875b4c1b0fad0a053c5f258bf7d4c0f3455 | [
"BSD-3-Clause"
] | null | null | null | ginga/canvas/coordmap.py | saimn/ginga | 9daf1875b4c1b0fad0a053c5f258bf7d4c0f3455 | [
"BSD-3-Clause"
] | null | null | null | #
# coordmap.py -- coordinate mappings.
#
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
from ginga import trcalc
from ginga.util import wcs
from ginga.util.six.moves import map
__all__ = ['CanvasMapper', 'DataMapper', 'OffsetMapper', 'WCSMapper']
#... | 30.245399 | 71 | 0.631034 |
46656e54aaab662adced0d0bfa04fce707df2e88 | 6,658 | py | Python | train.py | zpc-666/Paddle-Stochastic-Depth-ResNet110 | bb8b5b90052feef39fafd2a790f08b80b45fbe41 | [
"Apache-2.0"
] | null | null | null | train.py | zpc-666/Paddle-Stochastic-Depth-ResNet110 | bb8b5b90052feef39fafd2a790f08b80b45fbe41 | [
"Apache-2.0"
] | null | null | null | train.py | zpc-666/Paddle-Stochastic-Depth-ResNet110 | bb8b5b90052feef39fafd2a790f08b80b45fbe41 | [
"Apache-2.0"
] | 1 | 2021-08-07T14:56:44.000Z | 2021-08-07T14:56:44.000Z | # coding: utf-8
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Un... | 47.899281 | 169 | 0.615801 |
466669f55fd94ab7691c895cf787adfe7eec635c | 1,204 | py | Python | dataloader/EDSR/video.py | pidan1231239/SR-Stereo2 | 8e7ef8f33a10c9d857cc5383c02d126ee6ab8a29 | [
"MIT"
] | 1 | 2020-03-11T12:19:13.000Z | 2020-03-11T12:19:13.000Z | dataloader/EDSR/video.py | pidan1231239/SR-Stereo2 | 8e7ef8f33a10c9d857cc5383c02d126ee6ab8a29 | [
"MIT"
] | null | null | null | dataloader/EDSR/video.py | pidan1231239/SR-Stereo2 | 8e7ef8f33a10c9d857cc5383c02d126ee6ab8a29 | [
"MIT"
] | null | null | null | import os
from . import common
import cv2
import numpy as np
import imageio
import torch
import torch.utils.data as data
| 26.755556 | 77 | 0.623754 |
46674d12a75c726caab7f069ff51c1295884c1f4 | 67 | py | Python | backend/views/__init__.py | chriamue/flask-unchained-react-spa | 610e099f3ece508f4c8a62d3704e4cc49f869194 | [
"MIT"
] | 5 | 2018-10-15T15:33:32.000Z | 2021-01-13T23:03:48.000Z | backend/views/__init__.py | chriamue/flask-unchained-react-spa | 610e099f3ece508f4c8a62d3704e4cc49f869194 | [
"MIT"
] | 18 | 2019-12-10T22:11:27.000Z | 2021-12-13T20:42:58.000Z | backend/views/__init__.py | chriamue/flask-unchained-react-spa | 610e099f3ece508f4c8a62d3704e4cc49f869194 | [
"MIT"
] | 4 | 2018-10-15T15:59:25.000Z | 2020-04-11T17:48:35.000Z | from .contact_submission_resource import ContactSubmissionResource
| 33.5 | 66 | 0.925373 |
4667ccf5ef5c78e64a0eadc56411d4151f24e864 | 6,395 | py | Python | blink_handler.py | oyiptong/chromium-dashboard | c94632a779da0c8ab51c2e029fdcceffad6ab4c1 | [
"Apache-2.0"
] | null | null | null | blink_handler.py | oyiptong/chromium-dashboard | c94632a779da0c8ab51c2e029fdcceffad6ab4c1 | [
"Apache-2.0"
] | null | null | null | blink_handler.py | oyiptong/chromium-dashboard | c94632a779da0c8ab51c2e029fdcceffad6ab4c1 | [
"Apache-2.0"
] | 1 | 2020-09-29T19:23:59.000Z | 2020-09-29T19:23:59.000Z | # -*- coding: utf-8 -*-
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 34.945355 | 124 | 0.70086 |
46687db58d5ce22cf64d16f65406c0bb8f14b56a | 2,756 | py | Python | OBlog/blueprint/pages/main.py | OhYee/OBlog | a9d7e4fda5651cf9c5afd4c128c4df4442794e97 | [
"BSD-3-Clause"
] | 23 | 2018-02-23T12:56:43.000Z | 2021-12-20T13:21:47.000Z | OBlog/blueprint/pages/main.py | OhYee/OBlog | a9d7e4fda5651cf9c5afd4c128c4df4442794e97 | [
"BSD-3-Clause"
] | 17 | 2018-02-23T12:52:39.000Z | 2018-12-04T05:50:58.000Z | OBlog/blueprint/pages/main.py | OhYee/OBlog | a9d7e4fda5651cf9c5afd4c128c4df4442794e97 | [
"BSD-3-Clause"
] | 2 | 2018-06-16T20:52:23.000Z | 2021-04-08T15:29:44.000Z | from OBlog import database as db
from flask import g, current_app
import re
import os
| 22.590164 | 96 | 0.576197 |
4669e171fec58193272f58bd7b305ba7d5f7aed0 | 78,232 | py | Python | lib/rabbitmq-dotnet-client-rabbitmq_v3_4_4/docs/pyle2-fcfcf7e/Cheetah/Compiler.py | CymaticLabs/Unity3d.Amqp | 42ca5de66fcda21ef6a4040bade99118b2ad6374 | [
"MIT"
] | 83 | 2017-03-15T12:43:25.000Z | 2022-03-31T12:38:44.000Z | lib/rabbitmq-dotnet-client-rabbitmq_v3_4_4/docs/pyle2-fcfcf7e/Cheetah/Compiler.py | CymaticLabs/Unity3d.Amqp | 42ca5de66fcda21ef6a4040bade99118b2ad6374 | [
"MIT"
] | 18 | 2017-03-20T14:12:58.000Z | 2021-07-28T09:11:55.000Z | lib/rabbitmq-dotnet-client-rabbitmq_v3_4_4/docs/pyle2-fcfcf7e/Cheetah/Compiler.py | CymaticLabs/Unity3d.Amqp | 42ca5de66fcda21ef6a4040bade99118b2ad6374 | [
"MIT"
] | 25 | 2017-04-01T01:40:02.000Z | 2022-02-20T11:08:12.000Z | #!/usr/bin/env python
# $Id: Compiler.py,v 1.148 2006/06/22 00:18:22 tavis_rudd Exp $
"""Compiler classes for Cheetah:
ModuleCompiler aka 'Compiler'
ClassCompiler
MethodCompiler
If you are trying to grok this code start with ModuleCompiler.__init__,
ModuleCompiler.compile, and ModuleCompiler.__getattr__.
Meta-Data
==... | 39.631206 | 117 | 0.585323 |
466a34ecb0421da1e44f26b4a2ebb96b4fc1273b | 1,267 | py | Python | tests/simple_cmd_checks.py | Rhoynar/plmn-regression | fa58819a405b45430bbde28e52b356e04867aaa3 | [
"MIT"
] | 11 | 2019-02-07T16:13:59.000Z | 2021-08-14T03:53:14.000Z | tests/simple_cmd_checks.py | Rhoynar/plmn-regression | fa58819a405b45430bbde28e52b356e04867aaa3 | [
"MIT"
] | null | null | null | tests/simple_cmd_checks.py | Rhoynar/plmn-regression | fa58819a405b45430bbde28e52b356e04867aaa3 | [
"MIT"
] | 3 | 2019-02-07T16:14:09.000Z | 2021-08-14T05:09:17.000Z | # -*- coding: utf-8 -*-
import compat
import unittest
import sys
from plmn.utils import *
from plmn.results import *
from plmn.modem_cmds import *
from plmn.simple_cmds import *
if __name__ == '__main__':
nargs = process_args()
unittest.main(argv=sys.argv[nargs:], exit=False)
Results.print_results()
| 31.675 | 89 | 0.750592 |
466a6d9821a84e031f7dcd282011c9bf05adc133 | 13,877 | py | Python | mogan/tests/unit/notifications/test_notification.py | GURUIFENG9139/rocky-mogan | 6008c1d12b00e70d2cc651f7bd5d47968fc3aec7 | [
"Apache-2.0"
] | null | null | null | mogan/tests/unit/notifications/test_notification.py | GURUIFENG9139/rocky-mogan | 6008c1d12b00e70d2cc651f7bd5d47968fc3aec7 | [
"Apache-2.0"
] | null | null | null | mogan/tests/unit/notifications/test_notification.py | GURUIFENG9139/rocky-mogan | 6008c1d12b00e70d2cc651f7bd5d47968fc3aec7 | [
"Apache-2.0"
] | null | null | null | # 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... | 41.423881 | 79 | 0.64906 |
466b2847bd0a3e11bd815c4ef8485277011347fd | 1,208 | py | Python | plash/macros/packagemanagers.py | 0xflotus/plash | 9dd66a06413d5c1f12fd9a7e7b56a05b797ad309 | [
"MIT"
] | null | null | null | plash/macros/packagemanagers.py | 0xflotus/plash | 9dd66a06413d5c1f12fd9a7e7b56a05b797ad309 | [
"MIT"
] | null | null | null | plash/macros/packagemanagers.py | 0xflotus/plash | 9dd66a06413d5c1f12fd9a7e7b56a05b797ad309 | [
"MIT"
] | null | null | null | from plash.eval import eval, register_macro, shell_escape_args
eval([[
'defpm',
'apt',
'apt-get update',
'apt-get install -y {}',
], [
'defpm',
'add-apt-repository',
'apt-get install software-properties-common',
'run add-apt-repository -y {}',
], [
'defpm',
'apk',
'apk upd... | 18.875 | 69 | 0.537252 |
466ccc900104e36f636478253e917a965c1df4d3 | 371 | py | Python | app/schemas/email.py | waynesun09/notify-service | 768a0db264a9e57eecce283108878e24e8d3b740 | [
"MIT"
] | 5 | 2020-12-20T17:10:46.000Z | 2021-08-20T05:00:58.000Z | app/schemas/email.py | RedHatQE/notify-service | 579e995fae0c472f9fbd27471371a2c404d94f66 | [
"MIT"
] | 13 | 2021-01-07T14:17:14.000Z | 2022-01-05T20:36:36.000Z | app/schemas/email.py | RedHatQE/notify-service | 579e995fae0c472f9fbd27471371a2c404d94f66 | [
"MIT"
] | 1 | 2022-01-06T22:21:09.000Z | 2022-01-06T22:21:09.000Z | from typing import Optional, List
from pydantic import BaseModel, EmailStr
from . import result
| 18.55 | 40 | 0.719677 |
466d26384d26ffba4886645e21f0b784ab726d0b | 470 | py | Python | example.py | ErikPel/rankedchoicevoting | 7ea9149d2d7f48d5b4c323537a701b7ccf8a8616 | [
"MIT"
] | 1 | 2021-11-25T07:50:10.000Z | 2021-11-25T07:50:10.000Z | example.py | ErikPel/rankedchoicevoting | 7ea9149d2d7f48d5b4c323537a701b7ccf8a8616 | [
"MIT"
] | null | null | null | example.py | ErikPel/rankedchoicevoting | 7ea9149d2d7f48d5b4c323537a701b7ccf8a8616 | [
"MIT"
] | null | null | null | from rankedchoicevoting import Poll
candidatesA = {"Bob": 0, "Sue": 0, "Bill": 0}
#votes in array sorted by first choice to last choice
votersA = {
"a": ['Bob', 'Bill', 'Sue'],
"b": ['Sue', 'Bob', 'Bill'],
"c": ['Bill', 'Sue', 'Bob'],
"d": ['Bob', 'Bill', 'Sue'],
"f": ['Sue', 'Bob', 'Bill']
}
el... | 24.736842 | 53 | 0.576596 |
466d4b83456bbb93d38bc63179c0f99d00a30a62 | 2,422 | py | Python | DeployScript.py | junoteam/TelegramBot | 3e679637a5918c4f9595beaa2f0f67c9e4467056 | [
"Apache-2.0"
] | 3 | 2015-04-08T18:41:02.000Z | 2015-10-28T09:54:47.000Z | DeployScript.py | junoteam/TelegramBot | 3e679637a5918c4f9595beaa2f0f67c9e4467056 | [
"Apache-2.0"
] | null | null | null | DeployScript.py | junoteam/TelegramBot | 3e679637a5918c4f9595beaa2f0f67c9e4467056 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- author: Alex -*-
from Centos6_Bit64 import *
from SystemUtils import *
# Checking version of OS should happened before menu appears
# Check version of CentOS
SystemUtils.check_centos_version()
# Clear screen before to show menu
os.system('clear')
answer = True
whi... | 31.051282 | 77 | 0.604872 |
466dad9d3b71c7956f19885bfc3e8b7004d94303 | 1,923 | py | Python | distributed/register/application.py | ADKosm/concurrency | e3bda762ec12d8988ffda060f8842ffda5526f2b | [
"MIT"
] | null | null | null | distributed/register/application.py | ADKosm/concurrency | e3bda762ec12d8988ffda060f8842ffda5526f2b | [
"MIT"
] | null | null | null | distributed/register/application.py | ADKosm/concurrency | e3bda762ec12d8988ffda060f8842ffda5526f2b | [
"MIT"
] | null | null | null | import asyncio
import os
import time
from dataclasses import dataclass
import requests_unixsocket
from aiohttp import ClientSession, web
replicas = replicas_discovery()
self_id = next(filter(lambda x: x.is_self, replicas)).replica_id
print(replicas, flush=True)
app = web.Application()
app.add_routes([web.get('... | 28.279412 | 115 | 0.651586 |
466e8b57966faf4a0cc17febbe2a82c29fab5e61 | 802 | py | Python | setup.py | greenaddress/txjsonrpc | 272d44db43d36645ba981c6e7fa73e33c1fbb7d5 | [
"MIT"
] | null | null | null | setup.py | greenaddress/txjsonrpc | 272d44db43d36645ba981c6e7fa73e33c1fbb7d5 | [
"MIT"
] | 1 | 2019-10-16T14:00:25.000Z | 2019-11-11T16:23:20.000Z | setup.py | greenaddress/txjsonrpc | 272d44db43d36645ba981c6e7fa73e33c1fbb7d5 | [
"MIT"
] | 2 | 2017-05-15T06:03:27.000Z | 2019-07-21T09:04:24.000Z | from __future__ import absolute_import
from setuptools import setup
from txjsonrpc import meta
from txjsonrpc.util import dist
setup(
name=meta.display_name,
version=meta.version,
description=meta.description,
author=meta.author,
author_email=meta.author_email,
url=meta.url,
license=meta.... | 24.30303 | 50 | 0.63591 |
466e8e7393dfb5f6f03f625478a37ff5c418e4db | 28,135 | py | Python | gsflow/gsflow.py | pygsflow/pygsflow | 83860cd58078017a65e1633b1192469777f1ce15 | [
"CC0-1.0",
"BSD-3-Clause"
] | 17 | 2019-11-11T02:49:29.000Z | 2022-02-17T03:45:19.000Z | gsflow/gsflow.py | pygsflow/pygsflow | 83860cd58078017a65e1633b1192469777f1ce15 | [
"CC0-1.0",
"BSD-3-Clause"
] | 21 | 2019-07-10T21:45:11.000Z | 2022-02-22T17:57:20.000Z | gsflow/gsflow.py | pygsflow/pygsflow | 83860cd58078017a65e1633b1192469777f1ce15 | [
"CC0-1.0",
"BSD-3-Clause"
] | 8 | 2019-11-11T02:49:36.000Z | 2021-09-30T18:43:45.000Z | # -*- coding: utf-8 -*-
import os
from .control import ControlFile
from .prms import PrmsModel
from .utils import gsflow_io, GsConstant
from .prms import Helper
from .modflow import Modflow
from .modsim import Modsim
import flopy
import subprocess as sp
import platform
import warnings
warnings.simplefilter("always", P... | 33.816106 | 95 | 0.530087 |
466e94eb6dad2cfea42284bb23559a0aba280ee0 | 6,818 | py | Python | tests/integration/storage_memory/test_storage_memory_write.py | Sam-Martin/cloud-wanderer | 1879f9bb150054be5bf33fd46a47414b4939529e | [
"MIT"
] | 1 | 2020-12-07T10:37:41.000Z | 2020-12-07T10:37:41.000Z | tests/integration/storage_memory/test_storage_memory_write.py | Sam-Martin/cloud-wanderer | 1879f9bb150054be5bf33fd46a47414b4939529e | [
"MIT"
] | null | null | null | tests/integration/storage_memory/test_storage_memory_write.py | Sam-Martin/cloud-wanderer | 1879f9bb150054be5bf33fd46a47414b4939529e | [
"MIT"
] | null | null | null | import logging
import pytest
from moto import mock_ec2, mock_iam, mock_sts
from cloudwanderer.cloud_wanderer_resource import CloudWandererResource
from cloudwanderer.storage_connectors import MemoryStorageConnector
from cloudwanderer.urn import URN
from tests.pytest_helpers import create_ec2_instances
logger = loggi... | 34.434343 | 109 | 0.661044 |
466f047e17e0d6d7208910c763a4df77317279f9 | 4,596 | py | Python | tt/satisfiability/picosat.py | fkromer/tt | b4dfc90f7d0f9b5794e1f5054b640e22f6f75bf7 | [
"MIT"
] | 233 | 2016-02-05T20:13:06.000Z | 2022-03-26T13:01:10.000Z | tt/satisfiability/picosat.py | fkromer/tt | b4dfc90f7d0f9b5794e1f5054b640e22f6f75bf7 | [
"MIT"
] | 8 | 2017-12-20T17:07:58.000Z | 2020-08-06T15:44:55.000Z | tt/satisfiability/picosat.py | fkromer/tt | b4dfc90f7d0f9b5794e1f5054b640e22f6f75bf7 | [
"MIT"
] | 15 | 2016-03-22T23:37:56.000Z | 2022-02-27T17:51:08.000Z | """Python wrapper around the _clibs PicoSAT extension."""
import os
from tt.errors.arguments import (
InvalidArgumentTypeError,
InvalidArgumentValueError)
if os.environ.get('READTHEDOCS') != 'True':
from tt._clibs import picosat as _c_picosat
VERSION = _c_picosat.VERSION
def sat_one(clauses, assump... | 37.672131 | 79 | 0.650131 |
466f1e4523ee66d1060bcbe9b327e33221329528 | 3,745 | py | Python | tests/test_text_visualization.py | dianna-ai/dianna | 88bcaec001e640c35e5e1e08517ef1624fd661cb | [
"Apache-2.0"
] | 9 | 2021-11-16T09:53:47.000Z | 2022-03-02T13:28:53.000Z | tests/test_text_visualization.py | dianna-ai/dianna | 88bcaec001e640c35e5e1e08517ef1624fd661cb | [
"Apache-2.0"
] | 340 | 2021-03-03T12:55:37.000Z | 2022-03-31T13:53:44.000Z | tests/test_text_visualization.py | dianna-ai/dianna | 88bcaec001e640c35e5e1e08517ef1624fd661cb | [
"Apache-2.0"
] | 5 | 2021-08-19T08:14:35.000Z | 2022-03-17T21:12:46.000Z | import os
import re
import shutil
import unittest
from pathlib import Path
from dianna.visualization.text import highlight_text
def _split_text_into_words(text):
# regex taken from
# https://stackoverflow.com/questions/12683201/python-re-split-to-split-by-spaces-commas-and-periods-but-not-in-cases-like
... | 42.556818 | 131 | 0.646996 |
466fca56f7b6e59caf823a738ec5c36d18b27c25 | 2,983 | py | Python | setup.py | guilhermeleobas/rbc | 4b568b91c6ce3ef7727fee001169302c3803c4fd | [
"BSD-3-Clause"
] | null | null | null | setup.py | guilhermeleobas/rbc | 4b568b91c6ce3ef7727fee001169302c3803c4fd | [
"BSD-3-Clause"
] | null | null | null | setup.py | guilhermeleobas/rbc | 4b568b91c6ce3ef7727fee001169302c3803c4fd | [
"BSD-3-Clause"
] | null | null | null | import os
import sys
import builtins
import versioneer
if sys.version_info[:2] < (3, 7):
raise RuntimeError("Python version >= 3.7 required.")
builtins.__RBC_SETUP__ = True
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
CONDA_BUILD = int(os.environ.get('CONDA_BUILD', '0'))
CONDA_ENV = os.environ.get('... | 32.78022 | 76 | 0.650352 |
46701c0193cfd9ee406763922c026176cc2a2fc9 | 1,126 | py | Python | src/prefect/schedules/adjustments.py | concreted/prefect | dd732f5990ee2b0f3d816adb285168fd63b239e4 | [
"Apache-2.0"
] | 8,633 | 2019-03-23T17:51:03.000Z | 2022-03-31T22:17:42.000Z | src/prefect/schedules/adjustments.py | concreted/prefect | dd732f5990ee2b0f3d816adb285168fd63b239e4 | [
"Apache-2.0"
] | 3,903 | 2019-03-23T19:11:21.000Z | 2022-03-31T23:21:23.000Z | src/prefect/schedules/adjustments.py | ngriffiths13/prefect | 7f5613abcb182494b7dc12159277c3bc5f3c9898 | [
"Apache-2.0"
] | 937 | 2019-03-23T18:49:44.000Z | 2022-03-31T21:45:13.000Z | """
Schedule adjustments are functions that accept a `datetime` and modify it in some way.
Adjustments have the signature `Callable[[datetime], datetime]`.
"""
from datetime import datetime, timedelta
from typing import Callable
import pendulum
import prefect.schedules.filters
def add(interval: timedelta) -> Calla... | 24.478261 | 90 | 0.683837 |
4671817d5486f1ffa5048135771d27e1109e5cdd | 12,349 | py | Python | src/pyfmodex/sound.py | Loodoor/UnamedPy | 7d154c3a652992b3c1f28050f0353451f57b2a2d | [
"MIT"
] | 1 | 2017-02-21T16:46:21.000Z | 2017-02-21T16:46:21.000Z | src/pyfmodex/sound.py | Loodoor/UnamedPy | 7d154c3a652992b3c1f28050f0353451f57b2a2d | [
"MIT"
] | 1 | 2017-02-21T17:57:05.000Z | 2017-02-22T11:28:51.000Z | src/pyfmodex/sound.py | Loodoor/UnamedPy | 7d154c3a652992b3c1f28050f0353451f57b2a2d | [
"MIT"
] | null | null | null | from .fmodobject import *
from .fmodobject import _dll
from .structures import TAG, VECTOR
from .globalvars import get_class
class Sound(FmodObject):
def get_length(self, ltype):
len = c_uint()
ckresult(_dll.FMOD_Sound_GetLength(self._ptr, byref(len), ltype))
return len.value
def ge... | 31.745501 | 128 | 0.639809 |
4671cf40aee848a7cf0a11db6406cdad41f3981d | 7,667 | py | Python | src/pynwb/retinotopy.py | weiglszonja/pynwb | 441c64f332b32eb8141a9d03d92e0fda2fd1ad83 | [
"BSD-3-Clause-LBNL"
] | 132 | 2017-08-05T00:35:18.000Z | 2022-03-22T08:14:18.000Z | src/pynwb/retinotopy.py | weiglszonja/pynwb | 441c64f332b32eb8141a9d03d92e0fda2fd1ad83 | [
"BSD-3-Clause-LBNL"
] | 1,273 | 2017-08-04T05:14:47.000Z | 2022-03-28T13:00:27.000Z | src/pynwb/retinotopy.py | weiglszonja/pynwb | 441c64f332b32eb8141a9d03d92e0fda2fd1ad83 | [
"BSD-3-Clause-LBNL"
] | 68 | 2017-08-04T16:45:19.000Z | 2022-03-22T08:14:15.000Z | from collections.abc import Iterable
import warnings
from hdmf.utils import docval, popargs, call_docval_func, get_docval
from . import register_class, CORE_NAMESPACE
from .core import NWBDataInterface, NWBData
| 52.513699 | 119 | 0.626842 |
46725864f7a8f29464ea63af729e3e78c2a1218d | 370 | py | Python | GreenMoon/forms.py | ma010/green-moon | 25ed395f1e19c180995b22508143c8819bf40fae | [
"CNRI-Python"
] | null | null | null | GreenMoon/forms.py | ma010/green-moon | 25ed395f1e19c180995b22508143c8819bf40fae | [
"CNRI-Python"
] | null | null | null | GreenMoon/forms.py | ma010/green-moon | 25ed395f1e19c180995b22508143c8819bf40fae | [
"CNRI-Python"
] | null | null | null | """
Implement a class function for user to put in a zip-code and
search relevant information about business entities in that zip-code area.
"""
from flask.ext.wtf import Form
from wtforms import StringField, BooleanField
from wtforms.validators import DataRequired
| 28.461538 | 78 | 0.77027 |
46750d2f3ef713a053808ca00fc559cb70158512 | 283 | py | Python | Phase-2/Linked List/Day-70.py | CodedLadiesInnovateTech/python-challenges | 22ce26c68fea6c7c243ada831e47c52e27a62127 | [
"MIT"
] | 11 | 2020-05-11T08:41:21.000Z | 2022-02-27T08:21:37.000Z | Phase-2/Linked List/Day-70.py | CodedLadiesInnovateTech/python-challenges | 22ce26c68fea6c7c243ada831e47c52e27a62127 | [
"MIT"
] | 9 | 2020-05-12T10:46:06.000Z | 2020-05-28T17:37:19.000Z | Phase-2/Linked List/Day-70.py | CodedLadiesInnovateTech/python-challenges | 22ce26c68fea6c7c243ada831e47c52e27a62127 | [
"MIT"
] | 44 | 2020-05-10T20:53:32.000Z | 2021-04-25T18:47:08.000Z | '''
1. Write a Python program to access a specific item in a singly linked list using index value.
2. Write a Python program to set a new value of an item in a singly linked list using index value.
3. Write a Python program to delete the first item from a singly linked list.
'''
| 31.444444 | 98 | 0.749117 |
46759a54fd059282243dcf32a6f899667fd72ec3 | 25 | py | Python | ngboost/version.py | dsharpc/ngboost | 8c05e0cb3b95bb23d8f30f17042d2fd8926c4014 | [
"Apache-2.0"
] | null | null | null | ngboost/version.py | dsharpc/ngboost | 8c05e0cb3b95bb23d8f30f17042d2fd8926c4014 | [
"Apache-2.0"
] | null | null | null | ngboost/version.py | dsharpc/ngboost | 8c05e0cb3b95bb23d8f30f17042d2fd8926c4014 | [
"Apache-2.0"
] | null | null | null | __version__ = "0.3.4dev"
| 12.5 | 24 | 0.68 |
467608de6f71ab4b616b2d09915c4d849b7654e0 | 624 | py | Python | premailer/tests/test_utils.py | p12tic/premailer | ebfd310dbd0a88b465e811411f67a360e11f3292 | [
"BSD-3-Clause"
] | null | null | null | premailer/tests/test_utils.py | p12tic/premailer | ebfd310dbd0a88b465e811411f67a360e11f3292 | [
"BSD-3-Clause"
] | 1 | 2018-11-23T11:58:22.000Z | 2018-11-23T13:58:13.000Z | premailer/tests/test_utils.py | lavr/premailer | ebfd310dbd0a88b465e811411f67a360e11f3292 | [
"BSD-3-Clause"
] | null | null | null | import unittest
from premailer.premailer import capitalize_float_margin
| 31.2 | 70 | 0.639423 |
4676a784f66c68a2faf6e33e2c3d3bf09c476661 | 1,652 | py | Python | home/vscode/extensions/ms-python.python-2021.12.1559732655/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py | qwertzy-antonio-godinho/dots | 65cd657f785e7da3a3ccb1a808c0fc1b8496e5b1 | [
"Apache-2.0"
] | 6 | 2021-12-26T13:34:32.000Z | 2022-02-08T22:09:38.000Z | src/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py | ev3dev/ptvsd | cea22767dd78a812a14e2330a540a368f615224e | [
"MIT"
] | 8 | 2020-07-19T23:39:31.000Z | 2022-02-27T01:38:46.000Z | vscode/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/old_ptvsd/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py | Adespinoza/dotfiles | e2509402a7fd2623a3ea401b6f9fcbf6a372fc60 | [
"CC0-1.0"
] | 3 | 2020-08-04T02:48:32.000Z | 2020-08-17T01:20:09.000Z | import sys
try:
try:
from _pydevd_bundle_ext import pydevd_cython as mod
except ImportError:
from _pydevd_bundle import pydevd_cython as mod
except ImportError:
import struct
try:
is_python_64bit = (struct.calcsize('P') == 8)
except:
# In Jython this ... | 31.169811 | 107 | 0.725787 |
4677191c1771ec77d8d7c68a2a88766f05fcf790 | 2,843 | py | Python | tests/test_thumbnails.py | pypeclub/openpype4-tests | c0c32b643f63e66609772270fff71e88dcd5b922 | [
"Apache-2.0"
] | null | null | null | tests/test_thumbnails.py | pypeclub/openpype4-tests | c0c32b643f63e66609772270fff71e88dcd5b922 | [
"Apache-2.0"
] | null | null | null | tests/test_thumbnails.py | pypeclub/openpype4-tests | c0c32b643f63e66609772270fff71e88dcd5b922 | [
"Apache-2.0"
] | null | null | null | from tests.fixtures import api, PROJECT_NAME
assert api
THUMB_DATA1 = b"thisisaveryrandomthumbnailcontent"
THUMB_DATA2 = b"thisihbhihjhuuyiooanothbnlcontent"
| 23.890756 | 86 | 0.65248 |
4677247e7b07ffee44bb30042c587480349f229e | 914 | py | Python | POO/Heranca/aula107_classes.py | pinheirogus/Curso-Python-Udemy | d6d52320426172e924081b9df619490baa8c6016 | [
"MIT"
] | 1 | 2021-09-01T01:58:13.000Z | 2021-09-01T01:58:13.000Z | POO/Heranca/aula107_classes.py | pinheirogus/Curso-Python-Udemy | d6d52320426172e924081b9df619490baa8c6016 | [
"MIT"
] | null | null | null | POO/Heranca/aula107_classes.py | pinheirogus/Curso-Python-Udemy | d6d52320426172e924081b9df619490baa8c6016 | [
"MIT"
] | null | null | null | # Generalizando para no repetir o cdigo!
| 28.5625 | 100 | 0.63895 |
467742b9ee49da3193dfeffba9fb6976ebe7eb72 | 2,391 | py | Python | nncf/experimental/onnx/algorithms/quantization/default_quantization.py | vuiseng9/nncf_pytorch | c2b1f069c867327203629201aecae3b7815e7895 | [
"Apache-2.0"
] | 136 | 2020-06-01T14:03:31.000Z | 2020-10-28T06:10:50.000Z | nncf/experimental/onnx/algorithms/quantization/default_quantization.py | vuiseng9/nncf_pytorch | c2b1f069c867327203629201aecae3b7815e7895 | [
"Apache-2.0"
] | 133 | 2020-05-26T13:48:04.000Z | 2020-10-28T05:25:55.000Z | nncf/experimental/onnx/algorithms/quantization/default_quantization.py | vuiseng9/nncf_pytorch | c2b1f069c867327203629201aecae3b7815e7895 | [
"Apache-2.0"
] | 36 | 2020-05-28T08:18:39.000Z | 2020-10-27T14:46:58.000Z | """
Copyright (c) 2022 Intel Corporation
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 writin... | 49.8125 | 89 | 0.79632 |
46779bc59fb8e412188640c04f3538454363b415 | 13,483 | py | Python | Package/CONFIG.py | YuanYuLin/samba | ef8aaca2c539b0d241414e7f335b4ff939461558 | [
"MIT"
] | null | null | null | Package/CONFIG.py | YuanYuLin/samba | ef8aaca2c539b0d241414e7f335b4ff939461558 | [
"MIT"
] | null | null | null | Package/CONFIG.py | YuanYuLin/samba | ef8aaca2c539b0d241414e7f335b4ff939461558 | [
"MIT"
] | null | null | null | import ops
import iopc
TARBALL_FILE="samba-4.8.4.tar.gz"
TARBALL_DIR="samba-4.8.4"
INSTALL_DIR="samba-bin"
pkg_path = ""
output_dir = ""
tarball_pkg = ""
tarball_dir = ""
install_dir = ""
install_tmp_dir = ""
cc_host = ""
tmp_include_dir = ""
dst_include_dir = ""
dst_lib_dir = ""
dst_usr_local_lib_dir = ""
| 42.533123 | 112 | 0.705555 |
4677cd39827e65c98f0ade72fd58eb0f79b2c0cc | 671 | py | Python | packages/pyre/tracking/Chain.py | lijun99/pyre | 004dfd4c06489b4ba5b32877338ca6440f2d523b | [
"BSD-3-Clause"
] | 3 | 2019-08-02T21:02:47.000Z | 2021-09-08T13:59:43.000Z | packages/pyre/tracking/Chain.py | lijun99/pyre | 004dfd4c06489b4ba5b32877338ca6440f2d523b | [
"BSD-3-Clause"
] | null | null | null | packages/pyre/tracking/Chain.py | lijun99/pyre | 004dfd4c06489b4ba5b32877338ca6440f2d523b | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# michael a.g. avzis
# orthologue
# (c) 1998-2019 all rights reserved
#
# declaration
# end of file
| 18.638889 | 88 | 0.593145 |
467ab5f703a873dbd5ce9a6760742fdfbfa8b614 | 30 | py | Python | tests/resources/accepted/res_0_minpyversion_3_0.py | matteogabburo/python-ast-utils | 5069e9e53e8ed1f5305167254139b95967102aeb | [
"MIT"
] | 3 | 2020-12-22T10:43:39.000Z | 2021-01-01T16:42:32.000Z | tests/resources/accepted/res_0_minpyversion_3_0.py | matteogabburo/python-ast-utils | 5069e9e53e8ed1f5305167254139b95967102aeb | [
"MIT"
] | null | null | null | tests/resources/accepted/res_0_minpyversion_3_0.py | matteogabburo/python-ast-utils | 5069e9e53e8ed1f5305167254139b95967102aeb | [
"MIT"
] | null | null | null | import os
x = 7
print(x + 1)
| 6 | 12 | 0.566667 |
467b69ecaf5ca591ddc3465f82457df4ea005caa | 448 | py | Python | Mod 03/03 Prova.py | SauloCav/CN | e8de20dbcf1b3ff043743728b7dde2eff1ae8f87 | [
"MIT"
] | null | null | null | Mod 03/03 Prova.py | SauloCav/CN | e8de20dbcf1b3ff043743728b7dde2eff1ae8f87 | [
"MIT"
] | null | null | null | Mod 03/03 Prova.py | SauloCav/CN | e8de20dbcf1b3ff043743728b7dde2eff1ae8f87 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import math
print(int(1.9,9.7))
| 18.666667 | 58 | 0.504464 |
467ea3052543109008b133a68620b40cb725a84a | 2,055 | py | Python | almetro/al.py | arnour/almetro | 7d00b1bb746b49dc9dd464395abdf4fe93f028fe | [
"Apache-2.0"
] | null | null | null | almetro/al.py | arnour/almetro | 7d00b1bb746b49dc9dd464395abdf4fe93f028fe | [
"Apache-2.0"
] | 1 | 2019-08-21T23:02:49.000Z | 2019-08-21T23:02:49.000Z | almetro/al.py | arnour/almetro | 7d00b1bb746b49dc9dd464395abdf4fe93f028fe | [
"Apache-2.0"
] | null | null | null | from almetro.instance import growing
from almetro.metro import Metro
import timeit
| 34.830508 | 139 | 0.685158 |
467fe487527b89370f3c2d1bfc1b416969557a05 | 31,434 | py | Python | yt_dlp/extractor/archiveorg.py | mrBliss/yt-dlp | aecd021656b672dbb617e5bae54a8986f9c4ebaf | [
"Unlicense"
] | 80 | 2021-05-25T11:33:49.000Z | 2022-03-29T20:36:53.000Z | yt_dlp/extractor/archiveorg.py | mrBliss/yt-dlp | aecd021656b672dbb617e5bae54a8986f9c4ebaf | [
"Unlicense"
] | 53 | 2017-04-12T19:53:18.000Z | 2022-02-22T10:33:13.000Z | yt_dlp/extractor/archiveorg.py | mrBliss/yt-dlp | aecd021656b672dbb617e5bae54a8986f9c4ebaf | [
"Unlicense"
] | 22 | 2021-05-07T05:01:27.000Z | 2022-03-26T19:10:54.000Z | # coding: utf-8
from __future__ import unicode_literals
import re
import json
from .common import InfoExtractor
from .youtube import YoutubeIE, YoutubeBaseInfoExtractor
from ..compat import (
compat_urllib_parse_unquote,
compat_urllib_parse_unquote_plus,
compat_HTTPError
)
from ..utils import (
bug_rep... | 46.776786 | 213 | 0.558822 |
4680d6848613dfb9b8af98b8d4dd6e1f33bd4389 | 1,008 | py | Python | Interfas Grafica XI (GUI)/InterfasGraficaXI.py | BrianMarquez3/Python-Course | 2622b4ddfd687505becfd246e82a2ed0cb9b76f3 | [
"MIT"
] | 20 | 2020-08-19T23:27:01.000Z | 2022-02-03T12:02:17.000Z | Interfas Grafica XI (GUI)/InterfasGraficaXI.py | BrianMarquez3/Python-Course | 2622b4ddfd687505becfd246e82a2ed0cb9b76f3 | [
"MIT"
] | 1 | 2021-04-10T18:06:05.000Z | 2021-04-10T18:06:05.000Z | Interfas Grafica XI (GUI)/InterfasGraficaXI.py | BrianMarquez3/Python-Course | 2622b4ddfd687505becfd246e82a2ed0cb9b76f3 | [
"MIT"
] | 2 | 2020-12-03T19:35:36.000Z | 2021-11-10T14:58:39.000Z | # Interfas Grafica XI
# Menu
from tkinter import *
root=Tk()
barraMenu=Menu(root)
root.config(menu=barraMenu, width=600, height=400)
archivoMenu=Menu(barraMenu, tearoff=0)
archivoMenu.add_command(label="Nuevo")
archivoMenu.add_command(label="Guardar")
archivoMenu.add_command(label="Guardar Como")
archivoMenu.add_s... | 28 | 68 | 0.8125 |
46812ee3bdef976af898f29d2c99337fc3788ea0 | 91 | py | Python | virtual/lib/python3.6/site-packages/macaroonbakery/tests/__init__.py | marknesh/pitches | 0a480d9bc2beafaefa0121393b1502cc05edab89 | [
"MIT"
] | null | null | null | virtual/lib/python3.6/site-packages/macaroonbakery/tests/__init__.py | marknesh/pitches | 0a480d9bc2beafaefa0121393b1502cc05edab89 | [
"MIT"
] | 11 | 2020-06-05T20:57:31.000Z | 2021-09-22T18:35:03.000Z | flask/lib/python3.6/site-packages/macaroonbakery/tests/__init__.py | JOFLIX/grapevines | 34576e01184570d79cc140b42ffb71d322132da6 | [
"MIT",
"Unlicense"
] | 1 | 2020-11-04T06:48:34.000Z | 2020-11-04T06:48:34.000Z | # Copyright 2017 Canonical Ltd.
# Licensed under the LGPLv3, see LICENCE file for details.
| 30.333333 | 58 | 0.78022 |
4681cb44945ca44b04cb55846c39c0d1d3ca721a | 5,589 | py | Python | 08/postgresql_demo.py | catcherwong-archive/2019 | f9672920113b1ec0a5fcd6a6bde681f62d805763 | [
"MIT"
] | 27 | 2019-04-07T15:31:53.000Z | 2021-08-28T16:18:34.000Z | 08/postgresql_demo.py | hca1120/2019 | 09e5f49407b8239409e857f8117877eedb6b0134 | [
"MIT"
] | 5 | 2019-08-10T08:19:28.000Z | 2022-02-11T02:38:41.000Z | 08/postgresql_demo.py | hca1120/2019 | 09e5f49407b8239409e857f8117877eedb6b0134 | [
"MIT"
] | 31 | 2019-04-07T15:31:57.000Z | 2022-02-02T20:36:58.000Z | # -*- coding: UTF-8 -*-
import psycopg2 #postgresql
import time
import datetime
if __name__ == "__main__":
pg = PgDemo("127.0.0.1", 5432, "demo", "postgres", "123456")
print("===========insert_one==============")
pg.insert_one("wong", 1)
print("===========query_all==============")
... | 35.598726 | 138 | 0.429236 |
46820f0e1937a8a50c1292d89054f263875a439f | 686 | py | Python | examples/convert/pipe2sparky_2d.py | thegooglecodearchive/nmrglue | 34ffb5247f457c19b93c584e048df4042dea0482 | [
"BSD-3-Clause"
] | 1 | 2019-04-22T06:08:13.000Z | 2019-04-22T06:08:13.000Z | examples/convert/pipe2sparky_2d.py | thegooglecodearchive/nmrglue | 34ffb5247f457c19b93c584e048df4042dea0482 | [
"BSD-3-Clause"
] | null | null | null | examples/convert/pipe2sparky_2d.py | thegooglecodearchive/nmrglue | 34ffb5247f457c19b93c584e048df4042dea0482 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
import nmrglue as ng
# read in the varian data
dic,data = ng.pipe.read("../common_data/2d_pipe/test.ft2")
# Set the parameters
u = ng.pipe.guess_udic(dic,data)
# create the converter object and initilize with varian data
C = ng.convert.converter()
C.from_pipe(dic,data,u)
# create pipe data ... | 29.826087 | 67 | 0.759475 |
46821c4a15686b2fb3b7ea49bee70f910667b4c7 | 36,931 | py | Python | jaqs/trade/analyze/analyze.py | WayneWan413/JAQS | e7362fc261f49dd7a4353c9a9a3f98d6ef9a78b4 | [
"Apache-2.0"
] | null | null | null | jaqs/trade/analyze/analyze.py | WayneWan413/JAQS | e7362fc261f49dd7a4353c9a9a3f98d6ef9a78b4 | [
"Apache-2.0"
] | null | null | null | jaqs/trade/analyze/analyze.py | WayneWan413/JAQS | e7362fc261f49dd7a4353c9a9a3f98d6ef9a78b4 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
from __future__ import print_function
import os
import json
from collections import OrderedDict
import numpy as np
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib.ticker import Formatter
from jaqs.trade.analyze.report import Report
from jaqs.data import ... | 39.583065 | 139 | 0.584198 |
4682bbaf850d64b54a79c88a195b6f6e2f183e48 | 114 | py | Python | lightnet/data/transform/__init__.py | eavise-kul/lightnet | d2d5d3fff8f929c3683c34f176217649375b98e1 | [
"MIT"
] | 6 | 2019-10-10T05:42:50.000Z | 2022-02-27T04:59:29.000Z | lightnet/data/transform/__init__.py | eavise-kul/lightnet | d2d5d3fff8f929c3683c34f176217649375b98e1 | [
"MIT"
] | null | null | null | lightnet/data/transform/__init__.py | eavise-kul/lightnet | d2d5d3fff8f929c3683c34f176217649375b98e1 | [
"MIT"
] | 4 | 2020-01-25T20:16:23.000Z | 2021-04-29T13:02:34.000Z | #
# Lightnet data transforms
# Copyright EAVISE
#
from .pre import *
from .post import *
from .util import *
| 12.666667 | 28 | 0.684211 |
46830865694c3242ec731476bef2c0bab11ffa36 | 420 | py | Python | ufdl-core-app/src/ufdl/core_app/exceptions/_BadSource.py | waikato-ufdl/ufdl-backend | 776fc906c61eba6c2f2e6324758e7b8a323e30d7 | [
"Apache-2.0"
] | null | null | null | ufdl-core-app/src/ufdl/core_app/exceptions/_BadSource.py | waikato-ufdl/ufdl-backend | 776fc906c61eba6c2f2e6324758e7b8a323e30d7 | [
"Apache-2.0"
] | 85 | 2020-07-24T00:04:28.000Z | 2022-02-10T10:35:15.000Z | ufdl-core-app/src/ufdl/core_app/exceptions/_BadSource.py | waikato-ufdl/ufdl-backend | 776fc906c61eba6c2f2e6324758e7b8a323e30d7 | [
"Apache-2.0"
] | null | null | null | from rest_framework import status
from rest_framework.exceptions import APIException
| 28 | 60 | 0.719048 |
468313da2c3cc1e70694859bf5264667fcd82781 | 8,935 | py | Python | build_tools/docker/manage_images.py | BernhardRiemann/iree | 471349762b316f7d6b83eb5f9089255d78052758 | [
"Apache-2.0"
] | 1 | 2021-03-15T13:53:30.000Z | 2021-03-15T13:53:30.000Z | build_tools/docker/manage_images.py | BernhardRiemann/iree | 471349762b316f7d6b83eb5f9089255d78052758 | [
"Apache-2.0"
] | null | null | null | build_tools/docker/manage_images.py | BernhardRiemann/iree | 471349762b316f7d6b83eb5f9089255d78052758 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 32.140288 | 80 | 0.675993 |
4684141f6543556bf465b101be71f060f3b08131 | 27,570 | py | Python | suncasa/pygsfit/gsutils.py | wyq24/suncasa | e6ed6d8b9bd2186c4af6d0354d03af5fff9aef7a | [
"BSD-2-Clause"
] | null | null | null | suncasa/pygsfit/gsutils.py | wyq24/suncasa | e6ed6d8b9bd2186c4af6d0354d03af5fff9aef7a | [
"BSD-2-Clause"
] | null | null | null | suncasa/pygsfit/gsutils.py | wyq24/suncasa | e6ed6d8b9bd2186c4af6d0354d03af5fff9aef7a | [
"BSD-2-Clause"
] | null | null | null | import numpy as np
# import sys
import math
import os, sys, platform
import astropy.units as u
from sunpy import map as smap
from astropy.coordinates import SkyCoord
from suncasa.io import ndfits
import lmfit
from astropy.time import Time
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import matplot... | 40.784024 | 145 | 0.551904 |
4685248be49c1c014500014593ebd58e99994652 | 1,496 | py | Python | msgvis/apps/questions/migrations/0001_initial.py | hds-lab/textvis-drg | bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe | [
"MIT"
] | 10 | 2015-12-04T07:43:11.000Z | 2021-01-23T00:44:56.000Z | msgvis/apps/questions/migrations/0001_initial.py | hds-lab/textvis-drg | bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe | [
"MIT"
] | 200 | 2015-02-11T05:41:57.000Z | 2015-11-13T03:47:25.000Z | msgvis/apps/questions/migrations/0001_initial.py | hds-lab/textvis-drg | bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe | [
"MIT"
] | 6 | 2015-10-02T18:01:09.000Z | 2021-01-23T00:44:58.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
| 36.487805 | 114 | 0.556818 |
4685622823bb3cb792b6697fa854e6d940a37ece | 7,412 | py | Python | test/test_check_alert.py | russ-lewis/cs120-queuebot | 6b121ef9b0d7db7bbb1810f71129d995ce6a1659 | [
"MIT"
] | null | null | null | test/test_check_alert.py | russ-lewis/cs120-queuebot | 6b121ef9b0d7db7bbb1810f71129d995ce6a1659 | [
"MIT"
] | null | null | null | test/test_check_alert.py | russ-lewis/cs120-queuebot | 6b121ef9b0d7db7bbb1810f71129d995ce6a1659 | [
"MIT"
] | 1 | 2021-05-18T02:32:54.000Z | 2021-05-18T02:32:54.000Z | import io
import sys
import unittest
import asyncio
import random
from contextlib import redirect_stdout
from .utils import *
from queuebot import QueueBot, QueueConfig, DiscordUser
config = {
"SECRET_TOKEN": "NOONEWILLEVERGUESSTHISSUPERSECRETSTRINGMWAHAHAHA",
"TA_ROLES": ["UGTA"],
"LISTEN_CHANNELS": ["jo... | 34.314815 | 91 | 0.625472 |
4685d4b1728860e781a678cd76d788dda6fe260b | 236 | py | Python | iam/__init__.py | dataday/aws-utilities-sdk | 7b1236f27a27e2830ccbbf905bbc05f864a1aecf | [
"MIT"
] | null | null | null | iam/__init__.py | dataday/aws-utilities-sdk | 7b1236f27a27e2830ccbbf905bbc05f864a1aecf | [
"MIT"
] | null | null | null | iam/__init__.py | dataday/aws-utilities-sdk | 7b1236f27a27e2830ccbbf905bbc05f864a1aecf | [
"MIT"
] | null | null | null | """
.. module:: aws_utilities_cli.iam
:platform: OS X
:synopsis: Small collection of utilities that
use the Amazon Web Services (AWS) SDK
.. moduleauthor:: dataday
"""
__all__ = ['generate_identity', 'generate_policy']
| 23.6 | 50 | 0.686441 |
46869ee7c4058bcc60c1e873b09ca6bac3bb10d7 | 2,556 | py | Python | tests/common/test_run/triangle_run.py | KnowingNothing/akg-test | 114d8626b824b9a31af50a482afc07ab7121862b | [
"Apache-2.0"
] | null | null | null | tests/common/test_run/triangle_run.py | KnowingNothing/akg-test | 114d8626b824b9a31af50a482afc07ab7121862b | [
"Apache-2.0"
] | null | null | null | tests/common/test_run/triangle_run.py | KnowingNothing/akg-test | 114d8626b824b9a31af50a482afc07ab7121862b | [
"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 agreed to... | 35.5 | 114 | 0.711659 |
4686dbf11ea2488f7a45d2ed0c1748432a5a0064 | 394 | py | Python | profiles/migrations/0018_auto_20180514_2106.py | brentfraser/geotabloid | 772106b2d39b5405045814b5f013ece5713469b1 | [
"MIT"
] | 2 | 2018-12-03T09:19:31.000Z | 2020-02-11T15:32:12.000Z | {{cookiecutter.project_slug}}/profiles/migrations/0018_auto_20180514_2106.py | brentfraser/cookiecutter-geopaparazzi-server | f9cd705991879deac67365007e9589142afc09bf | [
"BSD-3-Clause"
] | 2 | 2019-02-20T17:50:55.000Z | 2019-02-21T15:19:51.000Z | profiles/migrations/0018_auto_20180514_2106.py | GeoAnalytic-code/geotabloid | af017d470ef4553d5fbd24d865cb22ca643fd999 | [
"MIT"
] | 2 | 2018-10-19T17:07:01.000Z | 2021-01-13T06:54:55.000Z | # Generated by Django 2.0.3 on 2018-05-14 21:06
from django.db import migrations, models
| 20.736842 | 58 | 0.598985 |
46873638ac399bb3c28bf800bc92bbfd39940934 | 15,189 | py | Python | orio/main/tuner/tuner.py | parsabee/Orio | 64de0f7ee422483b60a9f02793472e20e864aa08 | [
"MIT"
] | 24 | 2015-01-26T03:14:19.000Z | 2021-09-27T23:10:12.000Z | orio/main/tuner/tuner.py | parsabee/Orio | 64de0f7ee422483b60a9f02793472e20e864aa08 | [
"MIT"
] | 30 | 2015-04-17T18:14:27.000Z | 2021-05-30T15:01:47.000Z | orio/main/tuner/tuner.py | parsabee/Orio | 64de0f7ee422483b60a9f02793472e20e864aa08 | [
"MIT"
] | 20 | 2015-02-11T08:20:19.000Z | 2022-01-15T17:55:00.000Z | #
# The tuner class to initiate the empirical performance tuning process
#
import re, sys, os
from orio.main.util.globals import *
import orio.main.dyn_loader, orio.main.tspec.tspec, orio.main.tuner.ptest_codegen, orio.main.tuner.ptest_driver
#--------------------------------------------------
# the name of the mo... | 43.397143 | 169 | 0.55448 |
46882caba8a1bc1cb57f8753adac56b5f9b622b8 | 1,862 | py | Python | verify_data.py | goowell/DrAdvice | d1f9d70671500599b3a36eb9c83390e39c521d25 | [
"MIT"
] | null | null | null | verify_data.py | goowell/DrAdvice | d1f9d70671500599b3a36eb9c83390e39c521d25 | [
"MIT"
] | null | null | null | verify_data.py | goowell/DrAdvice | d1f9d70671500599b3a36eb9c83390e39c521d25 | [
"MIT"
] | null | null | null | from transformer import *
from logger import logger
def verify_data(collection):
'verify the data format is correct or not.'
for d in collection.find():
info = d.get('d').get('info')
if len(info) <12 and info[0] != '1':
logger.error('invalid patient info:' + d['_id']+str(info))
... | 29.09375 | 119 | 0.538131 |
46885ee1267724c58d93c90bd0626ea4f768c7c7 | 1,904 | py | Python | jvm-packages/cudautils.py | NVIDIA/spark-xgboost | 983159f52784e3d9dfd8e9957c5f8ca18e64f934 | [
"Apache-2.0"
] | 15 | 2020-06-11T02:20:26.000Z | 2022-03-09T07:18:23.000Z | jvm-packages/cudautils.py | NVIDIA/spark-xgboost | 983159f52784e3d9dfd8e9957c5f8ca18e64f934 | [
"Apache-2.0"
] | 4 | 2021-01-20T03:24:23.000Z | 2021-11-01T05:33:38.000Z | jvm-packages/cudautils.py | NVIDIA/spark-xgboost | 983159f52784e3d9dfd8e9957c5f8ca18e64f934 | [
"Apache-2.0"
] | 6 | 2020-06-24T03:28:58.000Z | 2021-10-01T16:04:11.000Z | #!/usr/bin/env python
import os
import re
import subprocess
import sys
# version -> classifier
# '' means default classifier
cuda_vers = {
'11.2': ['cuda11', '']
}
def check_classifier(classifier):
'''
Check the mapping from cuda version to jar classifier.
Used by maven build.
'''
cu_ver = detec... | 25.386667 | 108 | 0.644958 |
4688b12d1b22b922d562bb53aed309b70230470c | 294 | py | Python | hitchhikeproject/hitchhikeapp/migrations/0011_delete_dog.py | AlexW57/HitchHikeProject | 54e02a82fb322cb7ea5d4fdc323e2e3c9d1e9b89 | [
"MIT"
] | null | null | null | hitchhikeproject/hitchhikeapp/migrations/0011_delete_dog.py | AlexW57/HitchHikeProject | 54e02a82fb322cb7ea5d4fdc323e2e3c9d1e9b89 | [
"MIT"
] | null | null | null | hitchhikeproject/hitchhikeapp/migrations/0011_delete_dog.py | AlexW57/HitchHikeProject | 54e02a82fb322cb7ea5d4fdc323e2e3c9d1e9b89 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-03-29 19:11
from django.db import migrations
| 17.294118 | 49 | 0.602041 |
4689c871990ae00114397708dbcc29fc3f6a6ac6 | 5,087 | py | Python | support/models.py | gurupratap-matharu/django-tickets-app | 8200af606e382f8806511c318961589f34375cdf | [
"MIT"
] | 1 | 2020-10-16T16:37:04.000Z | 2020-10-16T16:37:04.000Z | support/models.py | gurupratap-matharu/django-tickets-app | 8200af606e382f8806511c318961589f34375cdf | [
"MIT"
] | null | null | null | support/models.py | gurupratap-matharu/django-tickets-app | 8200af606e382f8806511c318961589f34375cdf | [
"MIT"
] | null | null | null | import pytz
from datetime import date, time, datetime, timedelta
from django.core.exceptions import ValidationError
from django.db import models
START_HOUR = 9
END_HOUR = 18
workingHours = END_HOUR - START_HOUR
def findExpiryDate(sla):
"""
Finds the expiry date for a ticket based on
1. Severity of the... | 30.279762 | 98 | 0.649892 |
4689fd0a503a48da1fc4fb1000e346ebf2f7be93 | 605 | py | Python | tests/port_tests/point_tests/test_bounding_box.py | skrat/martinez | 86db48324cb50ecb52be8ab2e4278a6d5cdd562b | [
"MIT"
] | 7 | 2020-05-07T08:13:44.000Z | 2021-12-17T07:33:51.000Z | tests/port_tests/point_tests/test_bounding_box.py | skrat/martinez | 86db48324cb50ecb52be8ab2e4278a6d5cdd562b | [
"MIT"
] | 17 | 2019-11-29T23:17:26.000Z | 2020-12-20T15:47:17.000Z | tests/port_tests/point_tests/test_bounding_box.py | skrat/martinez | 86db48324cb50ecb52be8ab2e4278a6d5cdd562b | [
"MIT"
] | 1 | 2020-12-17T22:44:21.000Z | 2020-12-17T22:44:21.000Z | from hypothesis import given
from tests.port_tests.hints import (PortedBoundingBox,
PortedPoint)
from tests.utils import equivalence
from . import strategies
| 31.842105 | 77 | 0.707438 |
468a1af4f4a7334446b0e0152db92174a4f3295b | 424 | py | Python | test/conftest.py | alexandonian/lightning | 90350fd454cd7a51c35adadf5b9753868ac6dccd | [
"Apache-2.0"
] | null | null | null | test/conftest.py | alexandonian/lightning | 90350fd454cd7a51c35adadf5b9753868ac6dccd | [
"Apache-2.0"
] | null | null | null | test/conftest.py | alexandonian/lightning | 90350fd454cd7a51c35adadf5b9753868ac6dccd | [
"Apache-2.0"
] | null | null | null | import pytest
# import station
| 23.555556 | 66 | 0.625 |
468ce700bfaf82c4969d9da9bf954d79c010ee00 | 7,960 | py | Python | pytorch_translate/dual_learning/dual_learning_models.py | dzhulgakov/translate | 018d3eed8d93ff32e86c912e68045c7a3f4ed0b7 | [
"BSD-3-Clause"
] | 1 | 2020-07-24T10:59:17.000Z | 2020-07-24T10:59:17.000Z | pytorch_translate/dual_learning/dual_learning_models.py | dzhulgakov/translate | 018d3eed8d93ff32e86c912e68045c7a3f4ed0b7 | [
"BSD-3-Clause"
] | null | null | null | pytorch_translate/dual_learning/dual_learning_models.py | dzhulgakov/translate | 018d3eed8d93ff32e86c912e68045c7a3f4ed0b7 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import logging
import torch.nn as nn
from fairseq import checkpoint_utils
from fairseq.models import BaseFairseqModel, register_model
from pytorch_translate import rnn
from pytorch_translate.rnn import (
LSTMSequenceEncoder,
RNNDecoder,
RNNEncoder,
RNNModel,
base_architectur... | 38.829268 | 91 | 0.650377 |
468d721e5802a550fe36c1b0efccab7310faf51c | 697 | py | Python | thgsp/sampling/__init__.py | qiuyy20/thgsp | 2cd09ba09716cc716a3d4e125d2d0b20f5cc942d | [
"BSD-3-Clause"
] | null | null | null | thgsp/sampling/__init__.py | qiuyy20/thgsp | 2cd09ba09716cc716a3d4e125d2d0b20f5cc942d | [
"BSD-3-Clause"
] | null | null | null | thgsp/sampling/__init__.py | qiuyy20/thgsp | 2cd09ba09716cc716a3d4e125d2d0b20f5cc942d | [
"BSD-3-Clause"
] | null | null | null | from ._utils import construct_dia, construct_hth, construct_sampling_matrix
from .bsgda import bsgda, computing_sets, recon_bsgda, solving_set_covering
from .ess import ess, ess_sampling, recon_ess
from .fastgsss import fastgsss, recon_fastssss
from .rsbs import cheby_coeff4ideal_band_pass, estimate_lk, recon_rsbs, rsb... | 25.814815 | 76 | 0.71736 |
468df8250e372c77ba85fdae3eaf93df4bca1fda | 3,382 | py | Python | h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_glm.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 1 | 2022-03-15T06:08:14.000Z | 2022-03-15T06:08:14.000Z | h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_glm.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 58 | 2021-10-01T12:43:37.000Z | 2021-12-08T22:58:43.000Z | h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_glm.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | null | null | null | import tempfile
import os
import sys
sys.path.insert(1,"../../")
import h2o
from h2o.estimators import H2OGeneralizedLinearEstimator, H2OGenericEstimator
from tests import pyunit_utils
from tests.testdir_generic_model import compare_output, Capturing, compare_params
if __name__ == "__main__":
pyunit_utils.... | 46.328767 | 136 | 0.77262 |
468f2faee1688669d20b891ff6fb1ee641d68824 | 9,160 | py | Python | test/HPE3ParClient_base.py | jyotsnalothe/python-3parclient | aa6ece402c2e3e83cae102f04ffc83f9e2421bf3 | [
"Apache-2.0"
] | 35 | 2015-12-03T16:46:11.000Z | 2022-01-19T10:50:35.000Z | test/HPE3ParClient_base.py | jyotsnalothe/python-3parclient | aa6ece402c2e3e83cae102f04ffc83f9e2421bf3 | [
"Apache-2.0"
] | 57 | 2015-12-01T00:34:39.000Z | 2022-03-25T12:00:50.000Z | test/HPE3ParClient_base.py | jyotsnalothe/python-3parclient | aa6ece402c2e3e83cae102f04ffc83f9e2421bf3 | [
"Apache-2.0"
] | 64 | 2016-04-24T00:22:43.000Z | 2021-08-06T09:29:38.000Z | # (c) Copyright 2015 Hewlett Packard Enterprise Development LP
#
# 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... | 37.235772 | 78 | 0.533188 |
468fc07953c8147b25a2f944027c5638901e823c | 4,452 | py | Python | test/drivers/second_quantization/hdf5d/test_driver_hdf5.py | jschuhmac/qiskit-nature | b8b1181d951cf8fa76fe0db9e5ea192dad5fb186 | [
"Apache-2.0"
] | null | null | null | test/drivers/second_quantization/hdf5d/test_driver_hdf5.py | jschuhmac/qiskit-nature | b8b1181d951cf8fa76fe0db9e5ea192dad5fb186 | [
"Apache-2.0"
] | null | null | null | test/drivers/second_quantization/hdf5d/test_driver_hdf5.py | jschuhmac/qiskit-nature | b8b1181d951cf8fa76fe0db9e5ea192dad5fb186 | [
"Apache-2.0"
] | null | null | null | # This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | 39.75 | 99 | 0.655885 |
469076a38899f95c1e7c8c2bdfb61492327f8f5d | 11,269 | py | Python | 01_test_pytorch.py | yokaji/dcase2021_task2_baseline_ae | 47b621e6abd0502fed2123c31c61b081bce5c223 | [
"MIT"
] | null | null | null | 01_test_pytorch.py | yokaji/dcase2021_task2_baseline_ae | 47b621e6abd0502fed2123c31c61b081bce5c223 | [
"MIT"
] | null | null | null | 01_test_pytorch.py | yokaji/dcase2021_task2_baseline_ae | 47b621e6abd0502fed2123c31c61b081bce5c223 | [
"MIT"
] | null | null | null | ########################################################################
# import default libraries
########################################################################
import os
import csv
import sys
import gc
########################################################################
####################... | 50.308036 | 151 | 0.460112 |
4690da1c3b97e01a8795122d75752b424704a346 | 1,706 | py | Python | Replace Downloads/replace_downloads.py | crake7/Defensor-Fortis- | 086b055a10b9ac55f444e8d13b4031f998415438 | [
"MIT"
] | null | null | null | Replace Downloads/replace_downloads.py | crake7/Defensor-Fortis- | 086b055a10b9ac55f444e8d13b4031f998415438 | [
"MIT"
] | null | null | null | Replace Downloads/replace_downloads.py | crake7/Defensor-Fortis- | 086b055a10b9ac55f444e8d13b4031f998415438 | [
"MIT"
] | 1 | 2021-12-20T11:44:51.000Z | 2021-12-20T11:44:51.000Z | #!/usr/bin/env python
import netfilterqueue
import scapy.all as scapy
ack_list = []
def process_packet(packet):
"""Modify downloads files on the fly while target uses HTTP/HTTPS.
Do not forget to choose the port you will be using in line 22/29.
Do not forget to modify line 24 and 35 and uncomment them a... | 37.086957 | 193 | 0.654162 |
46917396382ee9f0addf54bb780182338681e694 | 1,757 | py | Python | tmpmodels.py | firaan1/iamgrateful | 445260313ab94dfdaf310a6766e848c8df94b624 | [
"MIT"
] | null | null | null | tmpmodels.py | firaan1/iamgrateful | 445260313ab94dfdaf310a6766e848c8df94b624 | [
"MIT"
] | null | null | null | tmpmodels.py | firaan1/iamgrateful | 445260313ab94dfdaf310a6766e848c8df94b624 | [
"MIT"
] | null | null | null | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, String, Text, ForeignKey, DateTime, func, Boolean
from sqlalchemy.orm import relation, sessionmaker, relationship, backref
from datetime import datetime
import os
# Database
DATABASE = ... | 30.824561 | 89 | 0.712009 |
4691f105e7b4e6d56ef7ec3a85a8060f44a867c1 | 579 | py | Python | doc/filters.py | CargobaseDev/openpyxl | 782ba90d26be452379fc06f45227e12bca9bade4 | [
"MIT"
] | 6 | 2018-05-15T05:08:52.000Z | 2021-12-23T12:31:28.000Z | doc/filters.py | CargobaseDev/openpyxl | 782ba90d26be452379fc06f45227e12bca9bade4 | [
"MIT"
] | 1 | 2022-01-01T15:08:26.000Z | 2022-01-01T15:08:36.000Z | doc/filters.py | CargobaseDev/openpyxl | 782ba90d26be452379fc06f45227e12bca9bade4 | [
"MIT"
] | 6 | 2020-03-23T15:59:14.000Z | 2021-09-18T09:54:57.000Z | from openpyxl import Workbook
wb = Workbook()
ws = wb.active
data = [
["Fruit", "Quantity"],
["Kiwi", 3],
["Grape", 15],
["Apple", 3],
["Peach", 3],
["Pomegranate", 3],
["Pear", 3],
["Tangerine", 3],
["Blueberry", 3],
["Mango", 3],
["Watermelon", 3],
["Blackberry", 3],
... | 18.09375 | 63 | 0.544041 |
4692314ed6b0b1046dcbfa825a3d464141899b16 | 1,150 | py | Python | Bleak/two_devices.py | mbdev2/MIS_FindMyProfessor | fa6a8e9b787013b2eadbc021b0d74210de689872 | [
"MIT"
] | null | null | null | Bleak/two_devices.py | mbdev2/MIS_FindMyProfessor | fa6a8e9b787013b2eadbc021b0d74210de689872 | [
"MIT"
] | null | null | null | Bleak/two_devices.py | mbdev2/MIS_FindMyProfessor | fa6a8e9b787013b2eadbc021b0d74210de689872 | [
"MIT"
] | null | null | null | from bleak import BleakClient
import asyncio
import functools
notify_uuid = "00002a19-0000-1000-8000-00805f9b34fb".format(0x2A19)
if __name__ == "__main__":
run(
["96E8409A-F2EB-4029-B3DC-615FADE0C838","D31CB0CA-890E-476B-80D9-80ED8A3AA69A"]
)
| 27.380952 | 100 | 0.691304 |
4692c2ff5367cf7fc52d9c66cbd5187236f80e7d | 655 | py | Python | binary search tree insertion.py | buhuhaha/python | 4ff72ac711f0948ae5bcb0886d68e8df77fe515b | [
"MIT"
] | null | null | null | binary search tree insertion.py | buhuhaha/python | 4ff72ac711f0948ae5bcb0886d68e8df77fe515b | [
"MIT"
] | null | null | null | binary search tree insertion.py | buhuhaha/python | 4ff72ac711f0948ae5bcb0886d68e8df77fe515b | [
"MIT"
] | null | null | null | if __name__ == '__main__':
keys = [15, 10, 20, 8, 12, 16, 25]
root = constructBST(keys)
inorder(root) | 22.586207 | 44 | 0.58626 |
469393ea6c4b1c5c7b78ca579da1a18fef848cb3 | 625 | py | Python | tests/test_env_helpers.py | Azraeht/py-ndebug | b7d13b39adc6c0ece6b0d527752869fd94eb9f8a | [
"MIT"
] | null | null | null | tests/test_env_helpers.py | Azraeht/py-ndebug | b7d13b39adc6c0ece6b0d527752869fd94eb9f8a | [
"MIT"
] | 1 | 2020-03-24T17:29:40.000Z | 2020-03-24T17:29:40.000Z | tests/test_env_helpers.py | Azraeht/py-ndebug | b7d13b39adc6c0ece6b0d527752869fd94eb9f8a | [
"MIT"
] | 1 | 2020-03-24T16:41:31.000Z | 2020-03-24T16:41:31.000Z | from ndebug import env_helpers
| 31.25 | 91 | 0.5536 |
4693fb42192c5502c57c49f8441c5cf7ba66b002 | 1,709 | py | Python | relay_lib_seeed_test_2.py | johnwargo/seeed-studio-relay-v2 | ce1b84b0f0001baa7ec4729dc2967531da3bdc22 | [
"MIT"
] | 1 | 2021-05-07T07:40:27.000Z | 2021-05-07T07:40:27.000Z | relay_lib_seeed_test_2.py | johnwargo/seeed-studio-relay-v2 | ce1b84b0f0001baa7ec4729dc2967531da3bdc22 | [
"MIT"
] | null | null | null | relay_lib_seeed_test_2.py | johnwargo/seeed-studio-relay-v2 | ce1b84b0f0001baa7ec4729dc2967531da3bdc22 | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''*****************************************************************************************************************
Seeed Studio Relay Board Library V2
Test Application #2
By John M. Wargo (https://www.johnwargo.com)
************************************************************************... | 26.703125 | 119 | 0.504389 |
469452474a032213255cf5547c78a4dee27d7d79 | 2,087 | py | Python | quasar/sa_database.py | stevencyrway/quasar | db8ff733ec1becf95defc7097890232cd5944d48 | [
"MIT"
] | 12 | 2017-05-17T17:22:47.000Z | 2021-05-24T17:24:42.000Z | quasar/sa_database.py | stevencyrway/quasar | db8ff733ec1becf95defc7097890232cd5944d48 | [
"MIT"
] | 484 | 2015-12-02T19:24:34.000Z | 2022-02-22T16:36:47.000Z | quasar/sa_database.py | stevencyrway/quasar | db8ff733ec1becf95defc7097890232cd5944d48 | [
"MIT"
] | 8 | 2017-04-27T20:42:05.000Z | 2022-01-11T19:43:57.000Z | import os
from sqlalchemy import bindparam, create_engine, exc
from sqlalchemy.dialects.postgresql.json import JSONB
from sqlalchemy.engine.url import URL
from sqlalchemy.sql import text
from .utils import log, logerr
# Setup SQL Alchemy vars.
pg_opts = {
'drivername': os.getenv('PG_DRIVER'),
'username': os.... | 32.107692 | 75 | 0.632966 |
4694573c6edf0ff0ed4f4786ad3fb6ae431575db | 29,122 | py | Python | commands/__init__.py | CorneliaXaos/Command-Block-Assembly | 6ed002c7df856d95d8cb2b8e5346c2bb807bf4bc | [
"MIT"
] | 1 | 2020-06-13T13:57:11.000Z | 2020-06-13T13:57:11.000Z | commands/__init__.py | CorneliaXaos/Command-Block-Assembly | 6ed002c7df856d95d8cb2b8e5346c2bb807bf4bc | [
"MIT"
] | null | null | null | commands/__init__.py | CorneliaXaos/Command-Block-Assembly | 6ed002c7df856d95d8cb2b8e5346c2bb807bf4bc | [
"MIT"
] | null | null | null | import abc
def make_selector(selector, **kwargs):
output = '@' + selector
if not kwargs:
return output
return '%s[%s]' % (output, str_pairs(kwargs.items()))
GlobalEntity = _GlobalEntity()
PosUtil = _PosUtil()
def StackFrame(index):
return StackFramePath
StackFrameHead = StackFrame(0)
def ... | 29.327291 | 86 | 0.588215 |
46950a30a497c84732798b48f44483d04a01233a | 217 | py | Python | top/clearlight/reptile/bilibili/bj_tech_mooc/example_04_360.py | ClearlightY/Python_learn | 93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232 | [
"Apache-2.0"
] | 1 | 2020-01-16T09:23:43.000Z | 2020-01-16T09:23:43.000Z | top/clearlight/reptile/bilibili/bj_tech_mooc/example_04_360.py | ClearlightY/Python_learn | 93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232 | [
"Apache-2.0"
] | null | null | null | top/clearlight/reptile/bilibili/bj_tech_mooc/example_04_360.py | ClearlightY/Python_learn | 93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232 | [
"Apache-2.0"
] | null | null | null | import requests
keyword = "python"
try:
kv = {'q':keyword}
r = requests.get('http://www.so.com/s', params=kv)
print(r.request.url)
r.raise_for_status()
print(len(r.text))
except:
print('') | 19.727273 | 54 | 0.617512 |
4695279b1ca8306d24c6c58add7de32e6798011f | 4,489 | py | Python | rodnet/models/backbones/cdc_deep.py | zhengzangw/RODNet | eca5f2bd1f3051c2b823d279532ddafa71b009c1 | [
"MIT"
] | null | null | null | rodnet/models/backbones/cdc_deep.py | zhengzangw/RODNet | eca5f2bd1f3051c2b823d279532ddafa71b009c1 | [
"MIT"
] | null | null | null | rodnet/models/backbones/cdc_deep.py | zhengzangw/RODNet | eca5f2bd1f3051c2b823d279532ddafa71b009c1 | [
"MIT"
] | null | null | null | import torch.nn as nn
| 32.294964 | 101 | 0.461573 |
46955a61d6eda18fd04e0a7384414c8a588922bf | 85 | py | Python | File/admin.py | alstn2468/Likelion_DRF_Project | 35a359a05185f551ed2e999ab17e0108a69d6b57 | [
"MIT"
] | 28 | 2019-10-15T13:15:26.000Z | 2021-11-08T08:23:45.000Z | 15_LikeLionDRFProject/File/admin.py | jhleed/LikeLion_Django_Study_Summary | c788182af5bcfd16bdd4b57235a48659758e494b | [
"MIT"
] | 1 | 2021-05-22T18:27:01.000Z | 2021-05-22T18:27:01.000Z | 15_LikeLionDRFProject/File/admin.py | jhleed/LikeLion_Django_Study_Summary | c788182af5bcfd16bdd4b57235a48659758e494b | [
"MIT"
] | 17 | 2019-09-09T00:15:36.000Z | 2021-01-28T13:08:51.000Z | from django.contrib import admin
from .models import File
admin.site.register(File)
| 17 | 32 | 0.811765 |
469862e42b088f23b41b49c8734db4c50395bddc | 28,022 | py | Python | agent/windows/agent.py | fortinet/ips-bph-framework | 145e14cced2181f388ade07d78b4f0e9452143dd | [
"Apache-2.0"
] | 21 | 2019-10-24T04:59:52.000Z | 2021-05-11T12:47:17.000Z | agent/windows/agent.py | fortinet/ips-bph-framework | 145e14cced2181f388ade07d78b4f0e9452143dd | [
"Apache-2.0"
] | null | null | null | agent/windows/agent.py | fortinet/ips-bph-framework | 145e14cced2181f388ade07d78b4f0e9452143dd | [
"Apache-2.0"
] | 9 | 2019-10-26T16:56:08.000Z | 2021-03-15T14:10:21.000Z | import shutil
import socket
import subprocess
import threading
import json
import pickle
import tempfile
import time
import box
import threading
import os
import base64
import getpass
import urllib
import requests
import zipfile
import sys
import pprint
import platform
DEBUG = True
BPH_TEMPLATE_... | 40.552822 | 126 | 0.554386 |
469870ae47593eb387aa34d03ce486676acb3094 | 2,599 | py | Python | python/src/learn/lstmSequence.py | kakaba2009/MachineLearning | 26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33 | [
"Apache-2.0"
] | null | null | null | python/src/learn/lstmSequence.py | kakaba2009/MachineLearning | 26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33 | [
"Apache-2.0"
] | null | null | null | python/src/learn/lstmSequence.py | kakaba2009/MachineLearning | 26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33 | [
"Apache-2.0"
] | null | null | null | # LSTM with Variable Length Input Sequences to One Character Output
import numpy
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from keras.utils import np_utils
from keras.preprocessing.sequence import pad_sequences
from theano.tensor.shared_randomstreams import ... | 41.919355 | 91 | 0.719123 |
4699a0bfa6dd1ddc3a1e8897780df54022543382 | 8,541 | py | Python | DATA/prediction/direction/pred_script.py | korcsmarosgroup/ARN2DataBase | 8931cec0387e5c8b599df40d652ac5fdb5c49a8f | [
"MIT"
] | null | null | null | DATA/prediction/direction/pred_script.py | korcsmarosgroup/ARN2DataBase | 8931cec0387e5c8b599df40d652ac5fdb5c49a8f | [
"MIT"
] | null | null | null | DATA/prediction/direction/pred_script.py | korcsmarosgroup/ARN2DataBase | 8931cec0387e5c8b599df40d652ac5fdb5c49a8f | [
"MIT"
] | null | null | null | """
Direction prediction based on learning dataset from reactome
PPI direction calculated from domain interaction directions
"""
# Imports
import sqlite3, csv, os
import pandas as pd
import logging
import pickle
# # Initiating logger
# logger = logging.getLogger()
# handler = logging.FileHandler('../../workflow/SLK3.l... | 45.673797 | 125 | 0.550872 |
4699a1827567dd51a8a50f85f10e57138d48a545 | 1,398 | py | Python | src/main.py | vcodrins/json_to_folder | 3e07259b1c5757587a5235b2412441d87607597f | [
"MIT"
] | null | null | null | src/main.py | vcodrins/json_to_folder | 3e07259b1c5757587a5235b2412441d87607597f | [
"MIT"
] | null | null | null | src/main.py | vcodrins/json_to_folder | 3e07259b1c5757587a5235b2412441d87607597f | [
"MIT"
] | null | null | null | import json
import os.path
import sys
from exceptions import *
from create_folder_structure import create_folder_structure
main()
| 26.884615 | 96 | 0.556509 |
469a1ea0ba86db2759c0a614f1ca8112b547ba08 | 277 | py | Python | app/conftest.py | hbyyy/newsmailing | 53f7bbff438a5dcd19708dc8738d4407d156dd7f | [
"MIT"
] | null | null | null | app/conftest.py | hbyyy/newsmailing | 53f7bbff438a5dcd19708dc8738d4407d156dd7f | [
"MIT"
] | 7 | 2020-06-19T15:32:07.000Z | 2021-08-23T20:49:39.000Z | app/conftest.py | hbyyy/newsmailing | 53f7bbff438a5dcd19708dc8738d4407d156dd7f | [
"MIT"
] | null | null | null | from datetime import timedelta
import pytest
from model_bakery import baker
| 19.785714 | 41 | 0.693141 |
469ba49461fc882de80bb1d478b0aec8c3c11361 | 3,952 | py | Python | src/SecurityDecorator.py | JanCwik/SoftwarePraktikum | d4a2b196f21a5379188cb78b31c59d69f739964f | [
"RSA-MD"
] | 7 | 2020-05-18T14:20:17.000Z | 2020-07-27T17:37:38.000Z | src/SecurityDecorator.py | JanCwik/SoftwarePraktikum | d4a2b196f21a5379188cb78b31c59d69f739964f | [
"RSA-MD"
] | null | null | null | src/SecurityDecorator.py | JanCwik/SoftwarePraktikum | d4a2b196f21a5379188cb78b31c59d69f739964f | [
"RSA-MD"
] | 2 | 2020-05-18T14:20:22.000Z | 2020-07-27T17:37:05.000Z | from flask import request
from google.auth.transport import requests
import google.oauth2.id_token
from server.ApplikationsAdministration import ApplikationsAdministration
#Benutzer.py, BenutzerMapper + BenutzerMethoden in ApplikationsAdministration
def secured(function):
"""Decorator zur Google Firebase-basiert... | 45.953488 | 97 | 0.603492 |