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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fc63dea630bc5c4125015a5d1d443364d31e7cfa | 1,853 | py | Python | trace_analysis/trace_analysis/architecture/interface.py | hsgwa/trace_analysis | 16169f84e838af5202e2be8f4883dfca5bc7f592 | [
"Apache-2.0"
] | null | null | null | trace_analysis/trace_analysis/architecture/interface.py | hsgwa/trace_analysis | 16169f84e838af5202e2be8f4883dfca5bc7f592 | [
"Apache-2.0"
] | null | null | null | trace_analysis/trace_analysis/architecture/interface.py | hsgwa/trace_analysis | 16169f84e838af5202e2be8f4883dfca5bc7f592 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Research Institute of Systems Planning, 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 applica... | 26.471429 | 81 | 0.72531 |
fc652ca3b217323de609509cf9bf7a86e05a1571 | 28 | py | Python | disrank/__init__.py | treehousekingcomic/disrank | 6a6ef3a2f2d4dc81bc3da8064b897dac4c773ef7 | [
"MIT"
] | 1 | 2021-05-06T14:46:46.000Z | 2021-05-06T14:46:46.000Z | disrank/__init__.py | treehousekingcomic/disrank | 6a6ef3a2f2d4dc81bc3da8064b897dac4c773ef7 | [
"MIT"
] | null | null | null | disrank/__init__.py | treehousekingcomic/disrank | 6a6ef3a2f2d4dc81bc3da8064b897dac4c773ef7 | [
"MIT"
] | null | null | null | from thkc_disrank import *
| 14 | 27 | 0.785714 |
fc66871c7a70ed30f6605efa0e99f0abf3ceaa25 | 4,854 | py | Python | layers/gin_layer.py | JakeStevens/benchmarking-gnns | a17fdf1b1d758fc65d5eeaf3726f5efa747a4081 | [
"MIT"
] | 275 | 2020-10-22T22:03:33.000Z | 2022-03-25T06:08:05.000Z | semisupervised_MNIST_CIFAR10/pre-training/layers/gin_layer.py | xgbt/GraphCL | d857849d51bb168568267e07007c0b0c8bb6d869 | [
"MIT"
] | 43 | 2020-10-30T08:28:01.000Z | 2022-03-31T16:55:12.000Z | semisupervised_MNIST_CIFAR10/pre-training/layers/gin_layer.py | xgbt/GraphCL | d857849d51bb168568267e07007c0b0c8bb6d869 | [
"MIT"
] | 70 | 2020-10-28T19:14:18.000Z | 2022-03-27T06:11:51.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
import dgl.function as fn
"""
GIN: Graph Isomorphism Networks
HOW POWERFUL ARE GRAPH NEURAL NETWORKS? (Keyulu Xu, Weihua Hu, Jure Leskovec and Stefanie Jegelka, ICLR 2019)
https://arxiv.org/pdf/1810.00826.pdf
"""
| 32.577181 | 124 | 0.581994 |
fc66cd08fbbe334f7cc1e76eb76063eb07e5b49e | 673 | py | Python | music/distance/aural/diatonic/__init__.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/distance/aural/diatonic/__init__.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/distance/aural/diatonic/__init__.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | """
*mus . it . dia*
The simple diatonic intervals.
"""
from .second import MinorSecond
from .second import MajorSecond
from .third import MinorThird
from .third import MajorThird
from .fourth import PerfectFourth
from .fifth import Tritone
from .fifth import PerfectFifth
from .sixth import MinorSixth
from .s... | 18.694444 | 33 | 0.708767 |
fc6780fb69ebe4416f273d6821ceb9f2cb3226e8 | 760 | py | Python | selenium_tests/test_functions.py | AriTheGuitarMan/AriTheGuitarMan.github.io | 8348ad0c47e48477560e7e40ec7eac8bca6fcdfa | [
"MIT"
] | null | null | null | selenium_tests/test_functions.py | AriTheGuitarMan/AriTheGuitarMan.github.io | 8348ad0c47e48477560e7e40ec7eac8bca6fcdfa | [
"MIT"
] | null | null | null | selenium_tests/test_functions.py | AriTheGuitarMan/AriTheGuitarMan.github.io | 8348ad0c47e48477560e7e40ec7eac8bca6fcdfa | [
"MIT"
] | null | null | null | # this file holds some common testing functions
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
depurl = "localhost:3000" | 33.043478 | 93 | 0.727632 |
fc68e0edf30588586dedbfe1358fdf97ab01598d | 4,783 | py | Python | papirus_renderer.py | ryuchihoon/WeatherStation | e3fd210939a961bc1724197f3885964cb4ae5a28 | [
"Apache-2.0"
] | null | null | null | papirus_renderer.py | ryuchihoon/WeatherStation | e3fd210939a961bc1724197f3885964cb4ae5a28 | [
"Apache-2.0"
] | null | null | null | papirus_renderer.py | ryuchihoon/WeatherStation | e3fd210939a961bc1724197f3885964cb4ae5a28 | [
"Apache-2.0"
] | null | null | null | #-- coding: utf-8 --
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import os
import time
import collections
from PIL import Image, ImageOps, ImageDraw, ImageFont
code_2_icono = collections.defaultdict(lambda : '38')
kor_2_eng = collections.defaultdict(lambda : 'UNKNOWN')
code_2_icono['SKY_O00'] = ['38']
... | 32.986207 | 127 | 0.615931 |
fc69e4e9cacf2317d6b062809fbe0cb9a22ea2b1 | 72 | py | Python | hydrobox/discharge/__init__.py | VForWaTer/hydrobox | ae7d10bf5aa48bf7daf3d1094e6bb66f0a7ce96b | [
"MIT"
] | 4 | 2020-10-08T15:31:36.000Z | 2021-06-25T00:46:40.000Z | hydrobox/discharge/__init__.py | joergmeyer-kit/hydrobox | af75a5ba87147e00656435c170535c69fc3298a8 | [
"MIT"
] | 5 | 2020-05-12T08:45:18.000Z | 2021-05-20T07:18:47.000Z | hydrobox/discharge/__init__.py | joergmeyer-kit/hydrobox | af75a5ba87147e00656435c170535c69fc3298a8 | [
"MIT"
] | 3 | 2020-07-27T07:16:14.000Z | 2021-04-28T21:57:48.000Z | from .catchment import regime, flow_duration_curve
from . import indices | 36 | 50 | 0.847222 |
fc69e76506c689aa4c8cc54b37cd338453f7483a | 1,256 | py | Python | scripts/convert_keras2onnx.py | ecmwf-lab/infero | 4fec006175af48cd0313b2f89722c01636e961db | [
"Apache-2.0"
] | 8 | 2021-12-20T06:24:16.000Z | 2022-02-17T15:21:55.000Z | scripts/convert_keras2onnx.py | ecmwf-projects/infero | 4c229a16ce75a249c83cbf43e0c953a7a42f2f83 | [
"Apache-2.0"
] | null | null | null | scripts/convert_keras2onnx.py | ecmwf-projects/infero | 4c229a16ce75a249c83cbf43e0c953a7a42f2f83 | [
"Apache-2.0"
] | 1 | 2021-10-04T10:14:23.000Z | 2021-10-04T10:14:23.000Z | #
# (C) Copyright 1996- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernme... | 30.634146 | 95 | 0.72293 |
fc6ae61e76507e8c85be28c293840912ca2612a4 | 7,683 | py | Python | src/lava/lib/dl/slayer/utils/assistant.py | timcheck/lava-dl | e680722071129fde952ea0d744984aa2a038797a | [
"BSD-3-Clause"
] | 37 | 2021-09-30T16:47:15.000Z | 2022-03-07T22:29:21.000Z | src/lava/lib/dl/slayer/utils/assistant.py | timcheck/lava-dl | e680722071129fde952ea0d744984aa2a038797a | [
"BSD-3-Clause"
] | 36 | 2021-11-04T16:54:55.000Z | 2022-03-31T02:26:29.000Z | src/lava/lib/dl/slayer/utils/assistant.py | timcheck/lava-dl | e680722071129fde952ea0d744984aa2a038797a | [
"BSD-3-Clause"
] | 20 | 2021-10-29T22:55:58.000Z | 2022-03-22T17:27:16.000Z | # Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
"""Assistant utility for automatically load network from network
description."""
import torch
| 29.436782 | 78 | 0.521281 |
fc6bbad5b323947c5f4946373831830060872620 | 5,961 | py | Python | lstm-synthetic-wave-anomaly-detect.py | cse-icon-dataAnalytics/lstm-anomaly-detect | bcfb01db383698acbd5692f1a76a5f20ec3629a8 | [
"MIT"
] | 178 | 2016-03-31T05:32:07.000Z | 2022-03-26T02:36:35.000Z | lstm-synthetic-wave-anomaly-detect.py | rob-med/lstm-anomaly-detect | bcfb01db383698acbd5692f1a76a5f20ec3629a8 | [
"MIT"
] | 4 | 2016-11-01T01:51:06.000Z | 2018-04-24T13:42:33.000Z | lstm-synthetic-wave-anomaly-detect.py | rob-med/lstm-anomaly-detect | bcfb01db383698acbd5692f1a76a5f20ec3629a8 | [
"MIT"
] | 106 | 2016-03-31T05:32:11.000Z | 2021-08-28T09:49:16.000Z | """ Inspired by example from
https://github.com/Vict0rSch/deep_learning/tree/master/keras/recurrent
Uses the TensorFlow backend
The basic idea is to detect anomalies in a time-series.
"""
import matplotlib.pyplot as plt
import numpy as np
import time
from keras.layers.core import Dense, Activation, Dropout
from keras.l... | 30.258883 | 110 | 0.631102 |
fc6bfc96896fcc886f4088ddc53f2aa20f638760 | 1,309 | py | Python | hpc-historias-clinicas/historias/migrations/0007_auto_20150425_1459.py | btenaglia/hpc-historias-clinicas | 649d8660381381b1c591667760c122d73071d5ec | [
"BSD-3-Clause"
] | null | null | null | hpc-historias-clinicas/historias/migrations/0007_auto_20150425_1459.py | btenaglia/hpc-historias-clinicas | 649d8660381381b1c591667760c122d73071d5ec | [
"BSD-3-Clause"
] | null | null | null | hpc-historias-clinicas/historias/migrations/0007_auto_20150425_1459.py | btenaglia/hpc-historias-clinicas | 649d8660381381b1c591667760c122d73071d5ec | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
| 38.5 | 290 | 0.593583 |
fc6d62eed45d350cb72c202ceedfb98394117cd4 | 315 | py | Python | venv/Lib/site-packages/har2case/__about__.py | Verckolf/MyInterfaceTest | e05674bd673a6a43cfb33f7cb4318886ba92a05c | [
"MIT"
] | null | null | null | venv/Lib/site-packages/har2case/__about__.py | Verckolf/MyInterfaceTest | e05674bd673a6a43cfb33f7cb4318886ba92a05c | [
"MIT"
] | null | null | null | venv/Lib/site-packages/har2case/__about__.py | Verckolf/MyInterfaceTest | e05674bd673a6a43cfb33f7cb4318886ba92a05c | [
"MIT"
] | null | null | null | __title__ = 'har2case'
__description__ = 'Convert HAR(HTTP Archive) to YAML/JSON testcases for HttpRunner.'
__url__ = 'https://github.com/HttpRunner/har2case'
__version__ = '0.2.0'
__author__ = 'debugtalk'
__author_email__ = 'mail@debugtalk.com'
__license__ = 'Apache-2.0'
__copyright__ = 'Copyright 2017 debugtalk' | 39.375 | 84 | 0.771429 |
fc6eb694558519bbe4bb770c6ebebf2c2317f744 | 2,160 | py | Python | app_id_utils.py | woctezuma/match-steam-banners | dff1bc2ddf35a37bcdea46a220f5d0257d47e017 | [
"MIT"
] | null | null | null | app_id_utils.py | woctezuma/match-steam-banners | dff1bc2ddf35a37bcdea46a220f5d0257d47e017 | [
"MIT"
] | 10 | 2021-05-01T19:57:06.000Z | 2022-03-12T00:54:04.000Z | app_id_utils.py | woctezuma/match-steam-banners | dff1bc2ddf35a37bcdea46a220f5d0257d47e017 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
from data_utils import get_data_path, get_image_data_path, get_image_extension
| 29.589041 | 115 | 0.747222 |
fc6f65558ddc1ad343876953a1a42d3ab2c832a9 | 348 | py | Python | upload.py | sjm446/aMAZEd | 38789f9898097991b19e686fd76ef4abd5bfe94c | [
"MIT"
] | null | null | null | upload.py | sjm446/aMAZEd | 38789f9898097991b19e686fd76ef4abd5bfe94c | [
"MIT"
] | null | null | null | upload.py | sjm446/aMAZEd | 38789f9898097991b19e686fd76ef4abd5bfe94c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import boto3
import random
import os
BUCKET=os.environ.get('EXPORT_S3_BUCKET_URL')
if (BUCKET != None):
s3 = boto3.client('s3')
with open("maze.txt", "rb") as f:
s3.upload_fileobj(f, BUCKET, "maze"+str(random.randrange(100000))+".txt")
else:
print("EXPORT_S3_BUCKET_URL was not ... | 29 | 81 | 0.692529 |
fc709a454475435a2a06bba2371531a53e2d11c0 | 2,790 | py | Python | zerver/management/commands/list_realms.py | rtzll/zulip | b831df8f7fc2f5b89ec998266901ac491d52a7fc | [
"Apache-2.0"
] | null | null | null | zerver/management/commands/list_realms.py | rtzll/zulip | b831df8f7fc2f5b89ec998266901ac491d52a7fc | [
"Apache-2.0"
] | null | null | null | zerver/management/commands/list_realms.py | rtzll/zulip | b831df8f7fc2f5b89ec998266901ac491d52a7fc | [
"Apache-2.0"
] | 1 | 2019-10-14T23:36:14.000Z | 2019-10-14T23:36:14.000Z |
import sys
from typing import Any
from argparse import ArgumentParser
from zerver.models import Realm
from zerver.lib.management import ZulipBaseCommand
| 37.702703 | 99 | 0.557348 |
fc7137abb720c86400bb993740cb9e14c54237f5 | 8,892 | py | Python | tests/integration/ec2/test_connection.py | bopopescu/debpkg_python-boto | 06f9b6f3693ba1933be8214da69cebcd5212cd97 | [
"MIT"
] | 15 | 2015-03-25T05:24:11.000Z | 2021-12-18T04:24:06.000Z | tests/integration/ec2/test_connection.py | bopopescu/debpkg_python-boto | 06f9b6f3693ba1933be8214da69cebcd5212cd97 | [
"MIT"
] | null | null | null | tests/integration/ec2/test_connection.py | bopopescu/debpkg_python-boto | 06f9b6f3693ba1933be8214da69cebcd5212cd97 | [
"MIT"
] | 10 | 2015-04-26T17:56:37.000Z | 2020-09-24T14:01:53.000Z | # Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2009, Eucalyptus Systems, Inc.
# All rights reserved.
#
# 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 res... | 36.743802 | 77 | 0.587607 |
fc719b76ab94dd3be6cc776d78a4aa8bbc400d47 | 8,761 | py | Python | docusign_esign/models/conditional_recipient_rule_filter.py | joekohlsdorf/docusign-esign-python-client | 40407544f79c88716d36fabf36f65c3ef1a5c3ba | [
"MIT"
] | 58 | 2017-10-18T23:06:57.000Z | 2021-04-15T23:14:58.000Z | docusign_esign/models/conditional_recipient_rule_filter.py | joekohlsdorf/docusign-esign-python-client | 40407544f79c88716d36fabf36f65c3ef1a5c3ba | [
"MIT"
] | 49 | 2017-10-27T05:54:09.000Z | 2021-04-29T22:06:17.000Z | docusign_esign/models/conditional_recipient_rule_filter.py | joekohlsdorf/docusign-esign-python-client | 40407544f79c88716d36fabf36f65c3ef1a5c3ba | [
"MIT"
] | 49 | 2017-09-16T07:23:41.000Z | 2021-05-07T20:21:20.000Z | # coding: utf-8
"""
DocuSign REST API
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501
OpenAPI spec version: v2.1
Contact: devcenter@docusign.com
Generated by: https://github.com/swagger-api/swagger-codegen.gi... | 30.526132 | 140 | 0.604155 |
fc72be3f56a4f14c061f7d67ae504148f309762b | 407 | py | Python | conman/routes/apps.py | meshy/django-conman | c739d09250d02d99068358e925ed8298a2a37a75 | [
"BSD-2-Clause"
] | null | null | null | conman/routes/apps.py | meshy/django-conman | c739d09250d02d99068358e925ed8298a2a37a75 | [
"BSD-2-Clause"
] | 81 | 2015-07-27T23:21:49.000Z | 2018-05-21T22:06:09.000Z | conman/routes/apps.py | meshy/django-conman | c739d09250d02d99068358e925ed8298a2a37a75 | [
"BSD-2-Clause"
] | 2 | 2015-10-06T09:18:06.000Z | 2017-03-17T08:51:56.000Z | from django.apps import AppConfig
from django.core.checks import register
from . import checks
| 25.4375 | 48 | 0.712531 |
fc72c71783ded10cb6bea92ec124528a890dca34 | 627 | py | Python | Other/transactionlog entries since timestamp.py | DJHig/TM1py-samples | da4050380447472a02e2a107a2c5be79ac284d0a | [
"MIT"
] | 1 | 2019-05-30T10:10:20.000Z | 2019-05-30T10:10:20.000Z | Other/transactionlog entries since timestamp.py | DJHig/TM1py-samples | da4050380447472a02e2a107a2c5be79ac284d0a | [
"MIT"
] | null | null | null | Other/transactionlog entries since timestamp.py | DJHig/TM1py-samples | da4050380447472a02e2a107a2c5be79ac284d0a | [
"MIT"
] | 1 | 2017-09-01T03:35:18.000Z | 2017-09-01T03:35:18.000Z | """
Get all TM1 transactions for all cubes starting to a specific date.
"""
import configparser
config = configparser.ConfigParser()
config.read('..\config.ini')
from datetime import datetime
from TM1py.Services import TM1Service
with TM1Service(**config['tm1srv01']) as tm1:
# Timestamp for Message-Log parsin... | 24.115385 | 81 | 0.716108 |
fc73faf5f8cb49244c505ccd988f122eb6b59c66 | 6,019 | py | Python | src/patteRNA/Dataset.py | AviranLab/patteRNA | 88b900844016717a71b6ec8e4f2d10d8888600ce | [
"BSD-2-Clause"
] | 12 | 2018-03-02T21:48:46.000Z | 2022-01-31T02:58:59.000Z | src/patteRNA/Dataset.py | AviranLab/patteRNA | 88b900844016717a71b6ec8e4f2d10d8888600ce | [
"BSD-2-Clause"
] | 2 | 2018-07-19T01:11:11.000Z | 2019-04-08T23:54:08.000Z | src/patteRNA/Dataset.py | AviranLab/patteRNA | 88b900844016717a71b6ec8e4f2d10d8888600ce | [
"BSD-2-Clause"
] | 5 | 2018-03-06T18:13:36.000Z | 2021-01-08T20:54:28.000Z | import logging
import numpy as np
from scipy.stats import entropy
from patteRNA.Transcript import Transcript
from patteRNA import filelib
logger = logging.getLogger(__name__)
| 39.339869 | 113 | 0.6104 |
fc74cac1c4d460520f828712a631b873e6f7c8d7 | 3,118 | py | Python | src/Simulation/developer_0/main.py | GYRY-NEU/CS7610-Experiments | 3731b45c4a9cba2a1d7e44d37f28d1046a38de47 | [
"MIT"
] | null | null | null | src/Simulation/developer_0/main.py | GYRY-NEU/CS7610-Experiments | 3731b45c4a9cba2a1d7e44d37f28d1046a38de47 | [
"MIT"
] | 1 | 2021-12-02T20:45:02.000Z | 2021-12-02T20:45:02.000Z | src/Simulation/developer_0/main.py | GYRY-NEU/Simulation | 3731b45c4a9cba2a1d7e44d37f28d1046a38de47 | [
"MIT"
] | null | null | null | import library
import json
def updateModel(model, list_weights):
"""
list_weights : 3D list of shape : (clientNumber,modelOuter, modelInner)
It contains all the models for each client
"""
# this part will change developer to developer
# one can just take avg
# or one can discard sm... | 29.695238 | 109 | 0.645606 |
fc75b91ed00a53eb686038762f01dc7958ac5d5b | 172 | py | Python | molecule_ignite/test/unit/test_driver.py | ragingpastry/molecule-ignite | aaf005cabba9a8c933191458cf8553da9bac581d | [
"MIT"
] | 17 | 2020-02-19T08:16:49.000Z | 2022-02-05T08:16:42.000Z | molecule_ignite/test/unit/test_driver.py | ragingpastry/molecule-ignite | aaf005cabba9a8c933191458cf8553da9bac581d | [
"MIT"
] | 15 | 2020-06-27T10:16:44.000Z | 2022-01-04T10:37:54.000Z | molecule_ignite/test/unit/test_driver.py | ragingpastry/molecule-ignite | aaf005cabba9a8c933191458cf8553da9bac581d | [
"MIT"
] | 11 | 2020-02-18T16:24:29.000Z | 2022-03-28T11:44:51.000Z | from molecule import api
| 24.571429 | 57 | 0.686047 |
fc7738cdaacc95969a1834885a266a49c73d4c6b | 12,361 | py | Python | coffeine/pipelines.py | dengemann/meegpowreg | e9cc8f2372f8b8ef4b372bfea113ed0b9646cb39 | [
"MIT"
] | 6 | 2021-07-19T12:17:59.000Z | 2021-08-09T15:50:18.000Z | coffeine/pipelines.py | dengemann/meegpowreg | e9cc8f2372f8b8ef4b372bfea113ed0b9646cb39 | [
"MIT"
] | 23 | 2021-04-16T21:41:36.000Z | 2021-07-13T10:08:47.000Z | coffeine/pipelines.py | dengemann/meegpowreg | e9cc8f2372f8b8ef4b372bfea113ed0b9646cb39 | [
"MIT"
] | 5 | 2021-04-15T15:28:51.000Z | 2021-06-28T21:17:11.000Z | import numpy as np
from coffeine.covariance_transformers import (
Diag,
LogDiag,
ExpandFeatures,
Riemann,
RiemannSnp,
NaiveVec)
from coffeine.spatial_filters import (
ProjIdentitySpace,
ProjCommonSpace,
ProjLWSpace,
ProjRandomSpace,
ProjSPoCSpace)
from sklearn.compose impor... | 37.685976 | 77 | 0.659574 |
fc78a988ef549d86a9021df34f1480ea70a43721 | 11,516 | py | Python | submissions/Chouard/mygames.py | dysomni/aima-python | c67104e50007ec5ac2a9aa37f0cb972cb6315528 | [
"MIT"
] | null | null | null | submissions/Chouard/mygames.py | dysomni/aima-python | c67104e50007ec5ac2a9aa37f0cb972cb6315528 | [
"MIT"
] | null | null | null | submissions/Chouard/mygames.py | dysomni/aima-python | c67104e50007ec5ac2a9aa37f0cb972cb6315528 | [
"MIT"
] | 1 | 2018-08-23T19:27:23.000Z | 2018-08-23T19:27:23.000Z | from games import Game
from math import nan, isnan
from queue import PriorityQueue
from copy import deepcopy
from utils import isnumber
from grading.util import print_table
def q2list(mq):
list = []
while not mq.empty():
list.append(mq.get(1).rcv())
return list
def movesInRow(board, r):
mQ... | 27.951456 | 133 | 0.500174 |
fc798568d1c4c7d74cc7db30deace979155e8ddb | 4,797 | py | Python | discordbot/stocks/options/opt_chain.py | minhhoang1023/GamestonkTerminal | 195dc19b491052df080178c0cc6a9d535a91a704 | [
"MIT"
] | 1 | 2022-02-18T04:02:52.000Z | 2022-02-18T04:02:52.000Z | discordbot/stocks/options/opt_chain.py | minhhoang1023/GamestonkTerminal | 195dc19b491052df080178c0cc6a9d535a91a704 | [
"MIT"
] | null | null | null | discordbot/stocks/options/opt_chain.py | minhhoang1023/GamestonkTerminal | 195dc19b491052df080178c0cc6a9d535a91a704 | [
"MIT"
] | null | null | null | import os
import df2img
import disnake
import numpy as np
import pandas as pd
from menus.menu import Menu
from PIL import Image
import discordbot.config_discordbot as cfg
from discordbot.config_discordbot import gst_imgur, logger
from discordbot.helpers import autocrop_image
from gamestonk_terminal.stocks.options imp... | 29.429448 | 94 | 0.518449 |
fc7a203231a6818121284acfef4c18f0b9192863 | 2,312 | py | Python | scripts/get_lenderprofit.py | xujiahuayz/premfin | 0e90d876ef7c9ef4f3da7d4842b8ec5ae9ac7e68 | [
"MIT"
] | 4 | 2021-05-03T16:03:24.000Z | 2022-02-17T16:08:49.000Z | scripts/get_lenderprofit.py | xujiahuayz/premfin | 0e90d876ef7c9ef4f3da7d4842b8ec5ae9ac7e68 | [
"MIT"
] | null | null | null | scripts/get_lenderprofit.py | xujiahuayz/premfin | 0e90d876ef7c9ef4f3da7d4842b8ec5ae9ac7e68 | [
"MIT"
] | 1 | 2021-06-30T11:27:56.000Z | 2021-06-30T11:27:56.000Z | #%% import packages
import numpy as np
import pandas as pd
import multiprocessing
from time import time
import json
from premiumFinance.constants import (
MORTALITY_TABLE_CLEANED_PATH,
PROCESSED_PROFITABILITY_PATH,
)
from premiumFinance.financing import calculate_lender_profit, yield_curve
mortality_experien... | 26.574713 | 78 | 0.675606 |
fc7acbb33a6b536b7d8fb8f0b3208c55dac034b1 | 5,700 | py | Python | dashboard/dashboard/common/layered_cache.py | BearerPipelineTest/catapult | 3800a67cd916200046a50748893bbd0dcf3d7f4a | [
"BSD-3-Clause"
] | null | null | null | dashboard/dashboard/common/layered_cache.py | BearerPipelineTest/catapult | 3800a67cd916200046a50748893bbd0dcf3d7f4a | [
"BSD-3-Clause"
] | 1 | 2022-01-12T14:28:55.000Z | 2022-01-12T14:28:55.000Z | dashboard/dashboard/common/layered_cache.py | atuchin-m/catapult | 108ea3e2ec108e68216b1250a3d79cc642600294 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Caches processed query results in memcache and datastore.
Memcache is not very reliable for the perf dashboard. Prometheus team explained
that memcache is... | 35.403727 | 80 | 0.759649 |
fc7af78333f9477d4091f8e1379313d34cf45c32 | 2,241 | py | Python | hypergbm/tests/cuml_/run_experiment_cuml.py | BigAndSweet/HyperGBM | f3bc4e0d877b82a264d35158f9bc974f43a2a5ee | [
"Apache-2.0"
] | null | null | null | hypergbm/tests/cuml_/run_experiment_cuml.py | BigAndSweet/HyperGBM | f3bc4e0d877b82a264d35158f9bc974f43a2a5ee | [
"Apache-2.0"
] | null | null | null | hypergbm/tests/cuml_/run_experiment_cuml.py | BigAndSweet/HyperGBM | f3bc4e0d877b82a264d35158f9bc974f43a2a5ee | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
"""
"""
import cudf
from hypergbm import make_experiment
from hypernets.tabular import get_tool_box
from hypernets.tabular.datasets import dsutils
if __name__ == '__main__':
main(target='y', reward_metric='auc', ensemble_size=10, pos_label='yes', log_level='info', max_trials=10)
# m... | 35.571429 | 109 | 0.630076 |
fc7fb355e0004487d0ead15c251476f2cd39193b | 2,658 | py | Python | datasets/imagenet.py | xhchrn/open_lth | 6b3d04a12a2f868ce851bd09b330ea57957c1de6 | [
"MIT"
] | 9 | 2021-03-30T20:43:26.000Z | 2021-12-28T06:25:17.000Z | datasets/imagenet.py | xhchrn/open_lth | 6b3d04a12a2f868ce851bd09b330ea57957c1de6 | [
"MIT"
] | null | null | null | datasets/imagenet.py | xhchrn/open_lth | 6b3d04a12a2f868ce851bd09b330ea57957c1de6 | [
"MIT"
] | 2 | 2021-03-31T01:19:48.000Z | 2021-08-02T13:41:32.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import concurrent.futures
import numpy as np
import os
from PIL import Image
import torchvision
from datasets import base
from platforms.platf... | 33.225 | 115 | 0.677201 |
fc80bac77478aab3a7595a594bb0b4822d3d20bb | 8,746 | py | Python | sm4.py | ZelKnow/sm4 | 2bb232f46a5033b2d89ce097e004e53eb13d90d8 | [
"MIT"
] | null | null | null | sm4.py | ZelKnow/sm4 | 2bb232f46a5033b2d89ce097e004e53eb13d90d8 | [
"MIT"
] | null | null | null | sm4.py | ZelKnow/sm4 | 2bb232f46a5033b2d89ce097e004e53eb13d90d8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File : sm4.py
@Description : sm4
@Date : 2021/10/28 15:59:51
@Author : ZelKnow
@Github : https://github.com/ZelKnow
"""
__author__ = "ZelKnow"
from argparse import ArgumentParser, ArgumentError
from binascii import hexlify, unhexlif... | 27.677215 | 81 | 0.511091 |
fc80de56a04c7ef4be7293dbeb997c760a19a788 | 1,750 | py | Python | sendotp/sendotp.py | saadmk11/sendotp-python | b0cd5c3da969d00a753d9614c5bea0e2978859c9 | [
"MIT"
] | 5 | 2017-05-15T07:21:29.000Z | 2022-03-02T01:01:47.000Z | sendotp/sendotp.py | saadmk11/sendotp-python | b0cd5c3da969d00a753d9614c5bea0e2978859c9 | [
"MIT"
] | 2 | 2017-05-15T07:57:36.000Z | 2021-09-23T06:22:34.000Z | sendotp/sendotp.py | saadmk11/sendotp-python | b0cd5c3da969d00a753d9614c5bea0e2978859c9 | [
"MIT"
] | 10 | 2017-05-29T06:53:42.000Z | 2020-05-22T10:29:00.000Z | import json
import requests
from random import randint
| 26.515152 | 81 | 0.552 |
fc8179bb642e9880741040dd5588b31584a47da9 | 528 | py | Python | leetcode/1021-remove-outermost-parentheses.py | tjeubaoit/algorithm | a1f2a30e0f736cc3d8b45ed845f724b9a4ed2e9a | [
"MIT"
] | null | null | null | leetcode/1021-remove-outermost-parentheses.py | tjeubaoit/algorithm | a1f2a30e0f736cc3d8b45ed845f724b9a4ed2e9a | [
"MIT"
] | null | null | null | leetcode/1021-remove-outermost-parentheses.py | tjeubaoit/algorithm | a1f2a30e0f736cc3d8b45ed845f724b9a4ed2e9a | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
# s = '(()())(())'
# s = '(()())(())(()(()))'
s = '()()'
ret = Solution().removeOuterParentheses(s)
print(ret)
| 22.956522 | 52 | 0.350379 |
fc8204c97c600cb469a44cb790b0f13a27763c8c | 115 | py | Python | venv/Scripts/ex049.py | SamuelNunesDev/starting_point_in_python | 9a9e39cabb5f3526ee0037012e3943898c1d9dfa | [
"MIT"
] | null | null | null | venv/Scripts/ex049.py | SamuelNunesDev/starting_point_in_python | 9a9e39cabb5f3526ee0037012e3943898c1d9dfa | [
"MIT"
] | null | null | null | venv/Scripts/ex049.py | SamuelNunesDev/starting_point_in_python | 9a9e39cabb5f3526ee0037012e3943898c1d9dfa | [
"MIT"
] | null | null | null | n = int(input('Digite um nmero para ver sua tabuada: '))
for c in range(0, 11):
print(f'{n} * {c} = {n * c}')
| 28.75 | 57 | 0.556522 |
fc821cb035c84e746a53eb83ce1e63b3b5c31ae6 | 9,911 | py | Python | js2py/evaljs.py | inprod/Js2Py | 0af8cb100b7840e23358d220c685507163f2344e | [
"MIT"
] | null | null | null | js2py/evaljs.py | inprod/Js2Py | 0af8cb100b7840e23358d220c685507163f2344e | [
"MIT"
] | null | null | null | js2py/evaljs.py | inprod/Js2Py | 0af8cb100b7840e23358d220c685507163f2344e | [
"MIT"
] | null | null | null | # coding=utf-8
from .translators import translate_js, DEFAULT_HEADER
from .es6 import js6_to_js5
import sys
import time
import json
import six
import os
import hashlib
import codecs
__all__ = [
'EvalJs', 'translate_js', 'import_js', 'eval_js', 'translate_file',
'eval_js6', 'translate_js6', 'run_file', 'disable... | 34.058419 | 117 | 0.613258 |
fc82e467705d5e2af949a070febf617a72de9774 | 152 | py | Python | setup.py | mvduin/py-uio | 1ad5eb6e1cfeae722535fd6ed7e485a0afd84683 | [
"MIT"
] | 38 | 2016-04-23T06:43:00.000Z | 2022-03-17T17:06:59.000Z | setup.py | mvduin/py-uio | 1ad5eb6e1cfeae722535fd6ed7e485a0afd84683 | [
"MIT"
] | 6 | 2016-05-13T04:42:38.000Z | 2020-10-16T13:16:02.000Z | setup.py | mvduin/py-uio | 1ad5eb6e1cfeae722535fd6ed7e485a0afd84683 | [
"MIT"
] | 8 | 2016-05-11T16:56:07.000Z | 2019-09-11T09:54:22.000Z | #!/usr/bin/python3
from setuptools import setup, find_packages
setup(
package_dir = { '': 'src' },
packages = find_packages( where='src' ),
)
| 16.888889 | 44 | 0.651316 |
fc836898d52446a26166934c5d0c314e5b3ac86f | 24,883 | py | Python | tools/verity_utils.py | FabriSC/Alioth-SC | bbe9723401b351c2a34b09a30978373d456d20a2 | [
"MIT"
] | 3 | 2022-03-16T12:31:10.000Z | 2022-03-23T04:20:20.000Z | bin/verity_utils.py | affggh/NH4RomTool | 84b06f9cc5f268c14c7af25e91c8b242188c70f7 | [
"Apache-2.0"
] | null | null | null | bin/verity_utils.py | affggh/NH4RomTool | 84b06f9cc5f268c14c7af25e91c8b242188c70f7 | [
"Apache-2.0"
] | 1 | 2022-03-30T04:47:35.000Z | 2022-03-30T04:47:35.000Z | #!/usr/bin/env python
#
# Copyright (C) 2018 The Android Open Source Project
#
# 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 req... | 34.704324 | 80 | 0.710405 |
fc840d0dac6246e96ea6db4d9f0daf705ae65cf7 | 4,091 | py | Python | orgviz/dones.py | tkf/orgviz | 81a436265daa1fb8294a0186f50df76d9599ae38 | [
"MIT"
] | 8 | 2015-02-04T23:03:36.000Z | 2021-05-02T10:56:24.000Z | orgviz/dones.py | tkf/orgviz | 81a436265daa1fb8294a0186f50df76d9599ae38 | [
"MIT"
] | null | null | null | orgviz/dones.py | tkf/orgviz | 81a436265daa1fb8294a0186f50df76d9599ae38 | [
"MIT"
] | 3 | 2018-04-23T08:18:13.000Z | 2019-10-12T17:32:54.000Z | #!/usr/bin/env python
"""org archive to html table converter"""
import os
import datetime
import itertools
from .utils.date import minutestr, total_minutes
def rootname_from_archive_olpath(node):
"""
Find rootname from ARCHIVE_OLPATH property.
Return None if not found.
"""
olpath = node.get_prop... | 29.014184 | 75 | 0.60792 |
fc884ea5bc9215fa52b9d78882591e5166747f7f | 2,927 | py | Python | tests/python/unittest/test_lang_tag.py | ravikumarvc/incubator-tvm | 9826947ffce0ed40e9d47a0db2abb033e394279e | [
"Apache-2.0"
] | 3 | 2021-02-23T22:06:01.000Z | 2021-09-30T09:59:17.000Z | tests/python/unittest/test_lang_tag.py | ravikumarvc/incubator-tvm | 9826947ffce0ed40e9d47a0db2abb033e394279e | [
"Apache-2.0"
] | 4 | 2021-03-30T11:59:59.000Z | 2022-03-12T00:40:23.000Z | tests/python/unittest/test_lang_tag.py | ravikumarvc/incubator-tvm | 9826947ffce0ed40e9d47a0db2abb033e394279e | [
"Apache-2.0"
] | 3 | 2021-07-20T07:40:15.000Z | 2021-08-03T08:39:17.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... | 31.138298 | 80 | 0.60164 |
fc8877ba165d31590d2a4b69afb04a74049c312a | 2,374 | py | Python | doepy/case_studies/discrete_time/MSFB2014.py | scwolof/doepy | acb2cad95428de2c14b28563cff1aa30679e1f39 | [
"MIT"
] | 1 | 2020-04-23T13:43:35.000Z | 2020-04-23T13:43:35.000Z | doepy/case_studies/discrete_time/MSFB2014.py | scwolof/doepy | acb2cad95428de2c14b28563cff1aa30679e1f39 | [
"MIT"
] | null | null | null | doepy/case_studies/discrete_time/MSFB2014.py | scwolof/doepy | acb2cad95428de2c14b28563cff1aa30679e1f39 | [
"MIT"
] | 1 | 2021-06-13T14:38:32.000Z | 2021-06-13T14:38:32.000Z | """
MIT License
Copyright (c) 2019 Simon Olofsson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | 27.287356 | 79 | 0.717776 |
fc88c81b50b3710bc62276602ff44a775a8cb6eb | 11,840 | py | Python | house_code/tutorials_altered/3D_positioning_and_orientation.py | mukobi/Pozyx-Gabe | a8b444c2013b1df5043cd25106b72562409b5130 | [
"MIT"
] | 1 | 2020-06-12T07:21:56.000Z | 2020-06-12T07:21:56.000Z | house_code/tutorials_altered/3D_positioning_and_orientation.py | mukobi/Pozyx-Gabe | a8b444c2013b1df5043cd25106b72562409b5130 | [
"MIT"
] | null | null | null | house_code/tutorials_altered/3D_positioning_and_orientation.py | mukobi/Pozyx-Gabe | a8b444c2013b1df5043cd25106b72562409b5130 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
The pozyx ranging demo (c) Pozyx Labs
please check out https://www.pozyx.io/Documentation/Tutorials/getting_started/Python
This demo requires one (or two) pozyx shields. It demonstrates the 3D orientation and the functionality
to remotely read register data from a pozyx device. Connect one of... | 44.179104 | 164 | 0.661064 |
fc8903dace15225a2f4484e8807d8da8761b6a96 | 2,761 | py | Python | hdfs_kernel/exceptions.py | Jasper912/jupyter-hdfs-kernel | 4b933cab675cb908a1d2332f040c7fce697fce61 | [
"MIT"
] | 3 | 2019-10-28T02:52:46.000Z | 2019-12-24T09:11:48.000Z | hdfs_kernel/exceptions.py | Jasper912/jupyter-hdfs-kernel | 4b933cab675cb908a1d2332f040c7fce697fce61 | [
"MIT"
] | null | null | null | hdfs_kernel/exceptions.py | Jasper912/jupyter-hdfs-kernel | 4b933cab675cb908a1d2332f040c7fce697fce61 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding=utf-8 -*-
#
# Author: huangnj
# Time: 2019/09/27
import traceback
from functools import wraps
from hdfs_kernel.constants import EXPECTED_ERROR_MSG, INTERNAL_ERROR_MSG
from hdfs.util import HdfsError
# == EXCEPTIONS ==
# option parse Error
# == DECORATORS FOR EXCEPTION HANDLING =... | 32.482353 | 119 | 0.694314 |
fc898bad2efa60cee2c4ef24696c39c99d84411b | 8,634 | py | Python | dashboard/tests/test_inventory.py | vishalvvr/transtats | ec71f40b338cab36eb907f6faba262dfeb858b80 | [
"Apache-2.0"
] | null | null | null | dashboard/tests/test_inventory.py | vishalvvr/transtats | ec71f40b338cab36eb907f6faba262dfeb858b80 | [
"Apache-2.0"
] | null | null | null | dashboard/tests/test_inventory.py | vishalvvr/transtats | ec71f40b338cab36eb907f6faba262dfeb858b80 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Red Hat, 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... | 38.717489 | 101 | 0.67848 |
fc8994bb32a375675e5f3f534446419ae71a9b08 | 9,221 | py | Python | web_console_v2/api/fedlearner_webconsole/rpc/server.py | nolanliou/fedlearner | 54127c465b3b5d77ae41b823e42efbc1b707e826 | [
"Apache-2.0"
] | null | null | null | web_console_v2/api/fedlearner_webconsole/rpc/server.py | nolanliou/fedlearner | 54127c465b3b5d77ae41b823e42efbc1b707e826 | [
"Apache-2.0"
] | null | null | null | web_console_v2/api/fedlearner_webconsole/rpc/server.py | nolanliou/fedlearner | 54127c465b3b5d77ae41b823e42efbc1b707e826 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 The FedLearner Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 39.74569 | 78 | 0.615335 |
fc8d8f892ae337d196878475837e1f9cc4ae1047 | 956 | py | Python | chapter15/async_aiohttp.py | haru-256/ExpertPython3_Source | 5ef412ef217c6078248ff9546e23ed9b69aadcff | [
"MIT"
] | 9 | 2021-07-30T07:57:55.000Z | 2021-12-30T12:38:21.000Z | chapter15/async_aiohttp.py | haru-256/ExpertPython3_Source | 5ef412ef217c6078248ff9546e23ed9b69aadcff | [
"MIT"
] | null | null | null | chapter15/async_aiohttp.py | haru-256/ExpertPython3_Source | 5ef412ef217c6078248ff9546e23ed9b69aadcff | [
"MIT"
] | 2 | 2021-09-05T11:39:50.000Z | 2021-09-17T05:27:37.000Z | """
aiohttpHTTP
"""
import asyncio
import time
import aiohttp
from asyncrates import get_rates
SYMBOLS = ('USD', 'EUR', 'PLN', 'NOK', 'CZK')
BASES = ('USD', 'EUR', 'PLN', 'NOK', 'CZK')
if __name__ == "__main__":
started = time.time()
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
... | 20.782609 | 75 | 0.641213 |
fc8f2034e17191e49d05923f9d20c0bfa677c7bb | 4,433 | py | Python | experiments/nginx/run.py | OleksiiOleksenko/intel_mpx_explained | dd6da57e0fcf22df358d1a742079b414620a7c88 | [
"MIT"
] | 15 | 2017-02-08T04:02:50.000Z | 2021-02-20T16:47:25.000Z | experiments/nginx/run.py | OleksiiOleksenko/intel_mpx_explained | dd6da57e0fcf22df358d1a742079b414620a7c88 | [
"MIT"
] | 1 | 2020-02-01T00:29:32.000Z | 2020-02-04T14:25:57.000Z | experiments/nginx/run.py | OleksiiOleksenko/intel_mpx_explained | dd6da57e0fcf22df358d1a742079b414620a7c88 | [
"MIT"
] | 3 | 2017-02-08T04:02:51.000Z | 2018-03-30T07:58:45.000Z | #!/usr/bin/env python
from __future__ import print_function
import logging
import os
import signal
from time import sleep
from subprocess import Popen, PIPE
import socket
from core.common_functions import *
from core.run import Runner
| 36.336066 | 268 | 0.551771 |
fc9015f57ef9e7d95a77ff43b17dddea2b3da5aa | 698 | py | Python | tavi/test/unit/base/document_no_fields_test.py | verdammelt/tavi | 3bb39a6e6ab936f6e9511a4058817697e3df098b | [
"MIT"
] | null | null | null | tavi/test/unit/base/document_no_fields_test.py | verdammelt/tavi | 3bb39a6e6ab936f6e9511a4058817697e3df098b | [
"MIT"
] | null | null | null | tavi/test/unit/base/document_no_fields_test.py | verdammelt/tavi | 3bb39a6e6ab936f6e9511a4058817697e3df098b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
from tavi.base.documents import BaseDocument
| 27.92 | 64 | 0.7149 |
fc9074fa7981c7335753a01097902625525ccf9a | 17,367 | py | Python | seqparse/test/test_seqparse.py | hoafaloaf/seqparse | 1d2446070c5627a5cb880d00ef327b892b4dedef | [
"MIT"
] | 1 | 2021-06-08T17:24:41.000Z | 2021-06-08T17:24:41.000Z | seqparse/test/test_seqparse.py | hoafaloaf/seqparse | 1d2446070c5627a5cb880d00ef327b892b4dedef | [
"MIT"
] | null | null | null | seqparse/test/test_seqparse.py | hoafaloaf/seqparse | 1d2446070c5627a5cb880d00ef327b892b4dedef | [
"MIT"
] | 1 | 2021-10-05T15:44:07.000Z | 2021-10-05T15:44:07.000Z | """Test file sequence discovery on disk."""
# "Future" Libraries
from __future__ import print_function
# Standard Libraries
import os
import unittest
# Third Party Libraries
import mock
from builtins import range
from future.utils import lrange
from . import (DirEntry, generate_entries, initialise_mock_scandir_data... | 35.442857 | 79 | 0.604653 |
fc918b97de90432887a40a5ee37a55b41149a19b | 12,666 | py | Python | deliveroo_scraping.py | ragreener1/deliveroo-scraping | c8e3de2503a6198734904fb937a77dd38ef05581 | [
"MIT"
] | null | null | null | deliveroo_scraping.py | ragreener1/deliveroo-scraping | c8e3de2503a6198734904fb937a77dd38ef05581 | [
"MIT"
] | null | null | null | deliveroo_scraping.py | ragreener1/deliveroo-scraping | c8e3de2503a6198734904fb937a77dd38ef05581 | [
"MIT"
] | 1 | 2021-03-16T16:43:34.000Z | 2021-03-16T16:43:34.000Z | import urllib.request
import pandas as pd
import sqlite3
import re
from bs4 import BeautifulSoup
# Parameters
postcodes_list = ["W1F7EY"]
db_name = "scraped.db"
# This is so that Deliveroo think the scraper is Google Chrome
# as opposed to a web scraper
hdr = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWeb... | 41.527869 | 107 | 0.614243 |
fc91ef07b59bde91306bd73bcec484e360b1298a | 108 | py | Python | wouso/core/security/admin.py | AlexandruGhergut/wouso | f26244ff58ae626808ae8c58ccc93d21f9f2666f | [
"Apache-2.0"
] | 117 | 2015-01-02T18:07:33.000Z | 2021-01-06T22:36:25.000Z | wouso/core/security/admin.py | AlexandruGhergut/wouso | f26244ff58ae626808ae8c58ccc93d21f9f2666f | [
"Apache-2.0"
] | 229 | 2015-01-12T07:07:58.000Z | 2019-10-12T08:27:01.000Z | wouso/core/security/admin.py | AlexandruGhergut/wouso | f26244ff58ae626808ae8c58ccc93d21f9f2666f | [
"Apache-2.0"
] | 96 | 2015-01-07T05:26:09.000Z | 2020-06-25T07:28:51.000Z | from django.contrib import admin
from wouso.core.security.models import Report
admin.site.register(Report)
| 21.6 | 45 | 0.833333 |
fc91ff3844434233ea3b10e4ec6bd4eb042adfbd | 2,455 | py | Python | DataWrangling/TTNData2Gsheet_Auto.py | diliprk/SmartCityVisualization | 618cd433c2f6bb55042c643ccaef12b5814ccb77 | [
"MIT"
] | null | null | null | DataWrangling/TTNData2Gsheet_Auto.py | diliprk/SmartCityVisualization | 618cd433c2f6bb55042c643ccaef12b5814ccb77 | [
"MIT"
] | null | null | null | DataWrangling/TTNData2Gsheet_Auto.py | diliprk/SmartCityVisualization | 618cd433c2f6bb55042c643ccaef12b5814ccb77 | [
"MIT"
] | null | null | null | #### Reading Data from The Things Network Data and Automatically Storing it to a Google Spreadsheet
# Author: Dilip Rajkumar
# Email: d.rajkumar@hbksaar.de
# Date: 19/01/2018
# Revision: version#1
# License: MIT License
import pandas as pd
import requests
from df2gspread import df2gspread as d2g
import time
## Set I... | 41.610169 | 140 | 0.714053 |
fc92382e8eb5b5b2b839d82c3970e59959dd78f5 | 5,870 | py | Python | tests/share/normalize/test_xml.py | felliott/SHARE | 8fd60ff4749349c9b867f6188650d71f4f0a1a56 | [
"Apache-2.0"
] | 87 | 2015-01-06T18:24:45.000Z | 2021-08-08T07:59:40.000Z | tests/share/normalize/test_xml.py | fortress-biotech/SHARE | 9c5a05dd831447949fa6253afec5225ff8ab5d4f | [
"Apache-2.0"
] | 442 | 2015-01-01T19:16:01.000Z | 2022-03-30T21:10:26.000Z | tests/share/normalize/test_xml.py | fortress-biotech/SHARE | 9c5a05dd831447949fa6253afec5225ff8ab5d4f | [
"Apache-2.0"
] | 67 | 2015-03-10T16:32:58.000Z | 2021-11-12T16:33:41.000Z | import xmltodict
from share.transform.chain import * # noqa
EXAMPLE = '''
<entry>
<id>http://arxiv.org/abs/cond-mat/0102536v1</id>
<updated>2001-02-28T20:12:09Z</updated>
<published>2001-02-28T20:12:09Z</published>
<title>Impact of Electron-Electron Cusp
on Configuration Interaction Energies</t... | 52.410714 | 1,152 | 0.729131 |
fc92c4f874ac07a82bec9855ab06be0ea305a134 | 4,323 | py | Python | alleycat/reactive/property.py | mysticfall/alleycat-reactive | 69ff2f283627a6c613b084677be707234b29164c | [
"MIT"
] | 14 | 2020-07-13T08:15:27.000Z | 2021-02-17T21:22:22.000Z | alleycat/reactive/property.py | mysticfall/alleycat-reactive | 69ff2f283627a6c613b084677be707234b29164c | [
"MIT"
] | 4 | 2020-08-18T18:50:00.000Z | 2021-12-04T07:09:12.000Z | alleycat/reactive/property.py | mysticfall/alleycat-reactive | 69ff2f283627a6c613b084677be707234b29164c | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import TypeVar, Generic, Callable, Optional, Any, cast, Tuple
import rx
from returns import pipeline
from returns.functions import identity
from returns.maybe import Maybe, Nothing
from rx import Observable
from rx.subject import BehaviorSubject
from . import ReactiveVa... | 30.443662 | 115 | 0.609762 |
fc933a1a213897fe8cf98ce98bd1c72358bf800c | 16,945 | py | Python | sdks/python/client/openapi_client/model/github_com_argoproj_labs_argo_dataflow_api_v1alpha1_dedupe.py | Siebjee/argo-workflows | 1a3b87bdf8edba02ba5e5aed20f3942be1d6f46c | [
"Apache-2.0"
] | null | null | null | sdks/python/client/openapi_client/model/github_com_argoproj_labs_argo_dataflow_api_v1alpha1_dedupe.py | Siebjee/argo-workflows | 1a3b87bdf8edba02ba5e5aed20f3942be1d6f46c | [
"Apache-2.0"
] | 3 | 2022-02-22T19:39:40.000Z | 2022-02-28T14:34:19.000Z | sdks/python/client/openapi_client/model/github_com_argoproj_labs_argo_dataflow_api_v1alpha1_dedupe.py | Siebjee/argo-workflows | 1a3b87bdf8edba02ba5e5aed20f3942be1d6f46c | [
"Apache-2.0"
] | null | null | null | """
Argo Server API
You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501
The version of the OpenAPI document: VERSION
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from ... | 62.759259 | 2,465 | 0.618353 |
fc9452d9c2ee3ebb7757e04a3373872166150cb1 | 3,700 | py | Python | utils/mask/converter.py | csgcmai/cvat | 074500de7bf638fdf66f3874b80df9e87d58a746 | [
"MIT"
] | 4 | 2019-01-12T07:32:48.000Z | 2019-08-01T12:11:33.000Z | utils/mask/converter.py | csgcmai/cvat | 074500de7bf638fdf66f3874b80df9e87d58a746 | [
"MIT"
] | 12 | 2019-08-06T02:45:31.000Z | 2022-02-10T00:16:32.000Z | utils/mask/converter.py | csgcmai/cvat | 074500de7bf638fdf66f3874b80df9e87d58a746 | [
"MIT"
] | 11 | 2018-11-04T19:04:59.000Z | 2018-12-02T13:30:22.000Z | #!/usr/bin/env python
#
# Copyright (C) 2018 Intel Corporation
#
# SPDX-License-Identifier: MIT
from __future__ import absolute_import, division, print_function
import argparse
import os
import glog as log
import numpy as np
import cv2
from lxml import etree
from tqdm import tqdm
def parse_args():
"""Parse argu... | 31.355932 | 94 | 0.603784 |
fc95ea517dd66fa33c7319705ecac90ffc97a9fe | 2,099 | py | Python | examples/plot_afq_callosal.py | gkiar/pyAFQ | fb6985c2a9715a378e1ca94dc89f6bc966c60ab5 | [
"BSD-2-Clause"
] | null | null | null | examples/plot_afq_callosal.py | gkiar/pyAFQ | fb6985c2a9715a378e1ca94dc89f6bc966c60ab5 | [
"BSD-2-Clause"
] | null | null | null | examples/plot_afq_callosal.py | gkiar/pyAFQ | fb6985c2a9715a378e1ca94dc89f6bc966c60ab5 | [
"BSD-2-Clause"
] | null | null | null | """
==========================
Callosal bundles using AFQ API
==========================
An example using the AFQ API to find callosal bundles using the templates from:
http://hdl.handle.net/1773/34926
"""
import os.path as op
import plotly
from AFQ import api
from AFQ.mask import RoiMask
import AFQ.data as afd
####... | 34.409836 | 79 | 0.552644 |
fc97538b8a2ee01ca9533565fe27426b9b8b241a | 7,170 | py | Python | latest/probe.py | Soldie/Nscan-scanner-ip | 4a507ca97a9f8b7f3fa4766c835f108671dbbcd6 | [
"Apache-2.0"
] | 574 | 2015-01-30T13:02:42.000Z | 2022-03-13T17:12:12.000Z | latest/probe.py | DiamondLink/Nscan | 21a8986358107e5b86952cf9276510d14afc5ab6 | [
"Apache-2.0"
] | 10 | 2015-01-31T15:36:21.000Z | 2021-11-17T10:46:33.000Z | latest/probe.py | DiamondLink/Nscan | 21a8986358107e5b86952cf9276510d14afc5ab6 | [
"Apache-2.0"
] | 173 | 2015-01-30T13:05:36.000Z | 2022-01-22T10:18:10.000Z | import time
import Queue
import random
import socket
import struct
import logging
import threading
from convert import *
from protocol import ethernet, ip, tcp, udp
ETH_P_IP = 0x0800 # IP protocol
ETH_P_ALL = 0x0003 # Every packet
NSCRIPT_PATH = 'nscript' # NSCRIPT PATH
PAYLOAD = {
53:('\x5d\x0d\x01\x00\x00\x01\x00... | 28.228346 | 103 | 0.64728 |
fc991b843e076978c3f0a3ec13e52528bd5dcb1e | 2,157 | py | Python | parsy-backend/flaskApp/assignment/views.py | dstambler17/Parsy.io | 14c4905809f79f191efbbbdfbd0e8d9e838478e7 | [
"MIT"
] | null | null | null | parsy-backend/flaskApp/assignment/views.py | dstambler17/Parsy.io | 14c4905809f79f191efbbbdfbd0e8d9e838478e7 | [
"MIT"
] | null | null | null | parsy-backend/flaskApp/assignment/views.py | dstambler17/Parsy.io | 14c4905809f79f191efbbbdfbd0e8d9e838478e7 | [
"MIT"
] | null | null | null | import sys
from flask import Blueprint, request, jsonify
from flaskApp import db
from flaskApp.assignment.utils import *
from flaskApp.error.error_handlers import *
import json
from flaskApp.helpers import getAssignmentData
assignment = Blueprint('assignment', __name__)
'''Test method, keep just in case. Will prob be... | 39.944444 | 88 | 0.72369 |
fc992600a7f421e186b8dbe2ed6b420847313d4c | 1,473 | py | Python | python/patterns/slidingwindow/longest_substring_no_repeating_char.py | dharmik-thakkar/dsapatterns | fc5890a86c5d49097b73b6afd14e1a4e81cff7a0 | [
"Apache-2.0"
] | null | null | null | python/patterns/slidingwindow/longest_substring_no_repeating_char.py | dharmik-thakkar/dsapatterns | fc5890a86c5d49097b73b6afd14e1a4e81cff7a0 | [
"Apache-2.0"
] | null | null | null | python/patterns/slidingwindow/longest_substring_no_repeating_char.py | dharmik-thakkar/dsapatterns | fc5890a86c5d49097b73b6afd14e1a4e81cff7a0 | [
"Apache-2.0"
] | null | null | null | #######################################################################################################################
# Given a string, find the length of the longest substring which has no repeating characters.
#
# Input: String="aabccbb"
# Output: 3
# Explanation: The longest substring without any repeating charact... | 40.916667 | 119 | 0.620502 |
fc998d9236fe5233cce504679e6058e6b30ca879 | 1,411 | py | Python | Apache Spark with Python - Big Data with PySpark and Spark/6-PairRDD/filter/AirportsNotInUsa.py | jrderek/Big_Data_Engineering_Portfolio | bf7a5efb24f2c6e860e5ead544dadc08f791814e | [
"MIT"
] | null | null | null | Apache Spark with Python - Big Data with PySpark and Spark/6-PairRDD/filter/AirportsNotInUsa.py | jrderek/Big_Data_Engineering_Portfolio | bf7a5efb24f2c6e860e5ead544dadc08f791814e | [
"MIT"
] | null | null | null | Apache Spark with Python - Big Data with PySpark and Spark/6-PairRDD/filter/AirportsNotInUsa.py | jrderek/Big_Data_Engineering_Portfolio | bf7a5efb24f2c6e860e5ead544dadc08f791814e | [
"MIT"
] | null | null | null | import sys
sys.path.insert(0, '.')
from pyspark import SparkContext, SparkConf
from commons.Utils import Utils
if __name__ == "__main__":
'''
Create a Spark program to read the airport data from in/airports.text;
generate a pair RDD with airport name being the key and country name being the v... | 35.275 | 133 | 0.659816 |
fc99f86b822d06474cc1888107ef3e865f27a1cd | 16,668 | py | Python | linux/keyman-config/keyman_config/keyboard_details.py | srl295/keyman | 4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1 | [
"MIT"
] | null | null | null | linux/keyman-config/keyman_config/keyboard_details.py | srl295/keyman | 4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1 | [
"MIT"
] | null | null | null | linux/keyman-config/keyman_config/keyboard_details.py | srl295/keyman | 4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# Keyboard details window
import logging
import json
from os import path
import qrcode
import tempfile
import gi
from gi.repository import Gtk
from keyman_config import KeymanComUrl, _, secure_lookup
from keyman_config.accelerators import init_accel
from keyman_config.kmpmetadata import parsemeta... | 45.917355 | 146 | 0.567075 |
fc9cde2fe4aa2f639814b61454d79983712258b4 | 918 | py | Python | build_osx/copy_runtime.py | ozsolarwind/SAM | 0967b0a4be8f8924ec1ad915a14575ac22c4ec3c | [
"MIT"
] | null | null | null | build_osx/copy_runtime.py | ozsolarwind/SAM | 0967b0a4be8f8924ec1ad915a14575ac22c4ec3c | [
"MIT"
] | null | null | null | build_osx/copy_runtime.py | ozsolarwind/SAM | 0967b0a4be8f8924ec1ad915a14575ac22c4ec3c | [
"MIT"
] | 1 | 2019-05-21T23:16:17.000Z | 2019-05-21T23:16:17.000Z | import os
import shutil
SOURCE_DIR = '../deploy/runtime'
TARGET_DIR = 'SAM.app/Contents/runtime'
if os.path.exists(TARGET_DIR):
shutil.rmtree(TARGET_DIR)
shutil.copytree(SOURCE_DIR, TARGET_DIR, ignore=shutil.ignore_patterns('.git'))
SOURCE_DIR = '../deploy/solar_resource'
TARGET_DIR = 'SAM.app/Contents/solar_re... | 26.228571 | 78 | 0.769063 |
fc9e17c4eb3df368c94743c5840b9e4da127a474 | 11,837 | py | Python | codalab/lib/path_util.py | kl-chou/codalab-worksheets | 101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7 | [
"Apache-2.0"
] | 236 | 2015-12-29T22:50:03.000Z | 2022-03-28T21:12:34.000Z | codalab/lib/path_util.py | kl-chou/codalab-worksheets | 101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7 | [
"Apache-2.0"
] | 2,628 | 2015-12-27T09:45:13.000Z | 2022-03-30T16:18:25.000Z | codalab/lib/path_util.py | kl-chou/codalab-worksheets | 101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7 | [
"Apache-2.0"
] | 87 | 2015-12-30T01:36:46.000Z | 2022-03-08T15:21:30.000Z | """
path_util contains helpers for working with local filesystem paths.
There are a few classes of methods provided here:
Functions to normalize paths and check that they are in normal form:
normalize, check_isvalid, check_isdir, check_isfile, path_is_url
Functions to list directories and to deal with subpath... | 35.334328 | 103 | 0.630396 |
fc9e3eb40f996353595bada2ec265eba3f86bf6f | 25,948 | py | Python | statsmodels/regression/tests/test_glsar_gretl.py | aliavni/statsmodels | ef5d57a8d45de76a895e9401705280d558d688ad | [
"BSD-3-Clause"
] | 1 | 2022-01-24T15:17:37.000Z | 2022-01-24T15:17:37.000Z | statsmodels/regression/tests/test_glsar_gretl.py | aliavni/statsmodels | ef5d57a8d45de76a895e9401705280d558d688ad | [
"BSD-3-Clause"
] | null | null | null | statsmodels/regression/tests/test_glsar_gretl.py | aliavni/statsmodels | ef5d57a8d45de76a895e9401705280d558d688ad | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests of GLSAR and diagnostics against Gretl
Created on Thu Feb 02 21:15:47 2012
Author: Josef Perktold
License: BSD-3
"""
import os
import numpy as np
from numpy.testing import (assert_almost_equal, assert_equal,
assert_allclose, assert_array_less)
from stats... | 40.1051 | 100 | 0.581509 |
fc9e5fe1655adc75064f69de338759361c073b11 | 2,563 | py | Python | core/views.py | tweeprint/api.tweeprint.com | 248525f2cffffb20765e7eca1e7a63f359adfc1b | [
"MIT"
] | 1 | 2021-03-15T07:24:10.000Z | 2021-03-15T07:24:10.000Z | core/views.py | tweeprint/api.tweeprint.com | 248525f2cffffb20765e7eca1e7a63f359adfc1b | [
"MIT"
] | 1 | 2021-04-11T01:22:24.000Z | 2021-04-11T01:22:24.000Z | core/views.py | tweeprint/api.tweeprint.com | 248525f2cffffb20765e7eca1e7a63f359adfc1b | [
"MIT"
] | null | null | null | import requests
import django.contrib.auth as auth
from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponse, JsonResponse, Http404
from django.contrib.auth.decorators import login_required
from django.core.serializers import serialize
from core.serializers import *
from core... | 46.6 | 188 | 0.717909 |
fc9e61eaa32db4519807b4a581c10259cbb744fa | 342 | py | Python | src/framed/bioreactor/__init__.py | cdanielmachado/framed | 36d56437685cbf5c7c3c8ee4f6d85b8f05f4d345 | [
"Apache-2.0"
] | 25 | 2015-01-07T16:17:03.000Z | 2022-01-24T09:11:50.000Z | src/framed/bioreactor/__init__.py | cdanielmachado/framed | 36d56437685cbf5c7c3c8ee4f6d85b8f05f4d345 | [
"Apache-2.0"
] | 12 | 2016-02-18T12:50:09.000Z | 2020-12-18T08:56:44.000Z | src/framed/bioreactor/__init__.py | cdanielmachado/framed | 36d56437685cbf5c7c3c8ee4f6d85b8f05f4d345 | [
"Apache-2.0"
] | 14 | 2015-02-17T14:55:27.000Z | 2021-08-09T17:57:57.000Z | from __future__ import absolute_import
__author__ = 'kaizhuang'
"""
Package implementing features for simulating bioreactor operation.
"""
from .base import Organism, Bioreactor
from .bioreactors import ANAEROBIC, AEROBIC, MICROAEROBIC
from .bioreactors import Bioreactor_ox, IdealBatch, IdealFedbatch
from framed.biore... | 26.307692 | 66 | 0.821637 |
fc9f46c8893676c05776e06d3412234d7de6b4e4 | 311 | py | Python | shared/templates/coreos_kernel_option/template.py | deperrone/content | caaff27f01a1d6c15da461f9fafe26090e8fdd18 | [
"BSD-3-Clause"
] | 1,138 | 2018-09-05T06:31:44.000Z | 2022-03-31T03:38:24.000Z | shared/templates/coreos_kernel_option/template.py | deperrone/content | caaff27f01a1d6c15da461f9fafe26090e8fdd18 | [
"BSD-3-Clause"
] | 4,743 | 2018-09-04T15:14:04.000Z | 2022-03-31T23:17:57.000Z | shared/templates/coreos_kernel_option/template.py | deperrone/content | caaff27f01a1d6c15da461f9fafe26090e8fdd18 | [
"BSD-3-Clause"
] | 400 | 2018-09-08T20:08:49.000Z | 2022-03-30T20:54:32.000Z | from ssg.utils import parse_template_boolean_value
| 38.875 | 108 | 0.794212 |
fc9fa91745bf91e0ba0d83de869daec634544f40 | 377 | py | Python | pondus/backends/__init__.py | enicklas/pondus | c94edce0351697c96f2ad046e8f602448d2e0df0 | [
"MIT"
] | 1 | 2021-12-20T18:18:52.000Z | 2021-12-20T18:18:52.000Z | pondus/backends/__init__.py | enicklas/pondus | c94edce0351697c96f2ad046e8f602448d2e0df0 | [
"MIT"
] | null | null | null | pondus/backends/__init__.py | enicklas/pondus | c94edce0351697c96f2ad046e8f602448d2e0df0 | [
"MIT"
] | 2 | 2021-12-20T18:18:57.000Z | 2022-01-11T10:28:22.000Z | # -*- coding: UTF-8 -*-
"""
This file is part of Pondus, a personal weight manager.
Copyright (C) 2011 Eike Nicklas <eike@ephys.de>
This program is free software licensed under the MIT license. For details
see LICENSE or http://www.opensource.org/licenses/mit-license.php
"""
__all__ = ['csv_backend', 'sportstracker... | 29 | 73 | 0.713528 |
fca036e2b91d7c4599177ff08add5e2065d64d53 | 1,053 | py | Python | setup.py | specialprocedures/chpy | 3bbe66da96abe95653722682754b4d48f9c8eba1 | [
"MIT"
] | null | null | null | setup.py | specialprocedures/chpy | 3bbe66da96abe95653722682754b4d48f9c8eba1 | [
"MIT"
] | null | null | null | setup.py | specialprocedures/chpy | 3bbe66da96abe95653722682754b4d48f9c8eba1 | [
"MIT"
] | null | null | null | import pathlib
from setuptools import find_packages, setup
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
# This call to setup() does all the work
setup(
name="chpy",
version="0.1.1",
descripti... | 31.909091 | 81 | 0.633428 |
fca03cd82b40377a907a5c97cfd27492d8e5ee1d | 2,275 | py | Python | src/sentry/eventtypes/error.py | boblail/sentry | 71127331e58791d4651e480b65dd66f06cadc1c8 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/eventtypes/error.py | boblail/sentry | 71127331e58791d4651e480b65dd66f06cadc1c8 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/eventtypes/error.py | boblail/sentry | 71127331e58791d4651e480b65dd66f06cadc1c8 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
import six
from sentry.utils.safe import get_path, trim
from sentry.utils.strings import truncatechars
from .base import BaseEvent
| 31.597222 | 90 | 0.586813 |
fca090b48edd697b40f1657878d06ed9d6efca81 | 909 | py | Python | keras_en_parser_and_analyzer/library/tests/test_detect_date.py | Sultan91/keras-english-resume-parser-and-analyzer | 221407cb0231e4c21f8edc61a2b19b74f9585d6a | [
"MIT"
] | null | null | null | keras_en_parser_and_analyzer/library/tests/test_detect_date.py | Sultan91/keras-english-resume-parser-and-analyzer | 221407cb0231e4c21f8edc61a2b19b74f9585d6a | [
"MIT"
] | null | null | null | keras_en_parser_and_analyzer/library/tests/test_detect_date.py | Sultan91/keras-english-resume-parser-and-analyzer | 221407cb0231e4c21f8edc61a2b19b74f9585d6a | [
"MIT"
] | null | null | null | from unittest import TestCase
from datetime import date
from keras_en_parser_and_analyzer.library.pipmp_my_cv_classify import detect_date
| 36.36 | 86 | 0.669967 |
fca0ce34b50df500e879e8841c0ceca83a278655 | 8,333 | py | Python | capirca/lib/ipset.py | google-admin/capirca | 8c9e66456fedb3c0fc1c641dbefc41793e5c68d5 | [
"Apache-2.0"
] | 604 | 2015-08-08T22:44:25.000Z | 2022-03-30T11:51:23.000Z | capirca/lib/ipset.py | google-admin/capirca | 8c9e66456fedb3c0fc1c641dbefc41793e5c68d5 | [
"Apache-2.0"
] | 213 | 2015-08-04T20:11:22.000Z | 2022-03-30T18:08:15.000Z | capirca/lib/ipset.py | google-admin/capirca | 8c9e66456fedb3c0fc1c641dbefc41793e5c68d5 | [
"Apache-2.0"
] | 207 | 2015-08-07T10:55:00.000Z | 2022-03-02T17:07:34.000Z | # Copyright 2015 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... | 36.709251 | 80 | 0.657626 |
fca0fd3742b37f4cd3594891d70e849a0cb23d56 | 5,580 | py | Python | straxen/analyses/records_matrix.py | zhut19/straxen | 20dea986790ef168ba7052d652a7aa19ab836943 | [
"BSD-3-Clause"
] | 14 | 2019-06-06T21:38:05.000Z | 2022-02-16T16:35:16.000Z | straxen/analyses/records_matrix.py | zhut19/straxen | 20dea986790ef168ba7052d652a7aa19ab836943 | [
"BSD-3-Clause"
] | 613 | 2018-10-04T09:15:55.000Z | 2022-03-31T10:48:04.000Z | straxen/analyses/records_matrix.py | ahiguera-mx/straxen | 25b92dd4f18b51700e6df83b230e58ec3bbb7163 | [
"BSD-3-Clause"
] | 48 | 2019-02-01T12:40:25.000Z | 2022-02-28T16:59:18.000Z | import warnings
import numba
import numpy as np
import strax
import straxen
DEFAULT_MAX_SAMPLES = 20_000
| 37.702703 | 86 | 0.577061 |
fca1f7c596dc848fb292eeb62a44200456a36f90 | 596 | py | Python | bdbc/lib/python3.5/site-packages/bigchaindb_driver/crypto.py | entropyx/fiduchain-blockchain-interface | 07336a5eebfaa9cddb148edb94461a8fd57562b1 | [
"MIT"
] | null | null | null | bdbc/lib/python3.5/site-packages/bigchaindb_driver/crypto.py | entropyx/fiduchain-blockchain-interface | 07336a5eebfaa9cddb148edb94461a8fd57562b1 | [
"MIT"
] | null | null | null | bdbc/lib/python3.5/site-packages/bigchaindb_driver/crypto.py | entropyx/fiduchain-blockchain-interface | 07336a5eebfaa9cddb148edb94461a8fd57562b1 | [
"MIT"
] | null | null | null | from collections import namedtuple
from cryptoconditions import crypto
CryptoKeypair = namedtuple('CryptoKeypair', ('signing_key', 'verifying_key'))
def generate_keypair():
"""Generates a cryptographic key pair.
Returns:
:class:`~bigchaindb_driver.crypto.CryptoKeypair`: A
:obj:`collections... | 28.380952 | 77 | 0.721477 |
fca3b5ff0625e2c4785f87d64f205243acd800d3 | 4,311 | py | Python | reviewboard/webapi/resources/change.py | mnoorenberghe/reviewboard | b8ba9d662c250cb5ec704a50f619adbf3be8cbf0 | [
"MIT"
] | null | null | null | reviewboard/webapi/resources/change.py | mnoorenberghe/reviewboard | b8ba9d662c250cb5ec704a50f619adbf3be8cbf0 | [
"MIT"
] | null | null | null | reviewboard/webapi/resources/change.py | mnoorenberghe/reviewboard | b8ba9d662c250cb5ec704a50f619adbf3be8cbf0 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.utils import six
from djblets.util.decorators import augment_method_from
from reviewboard.changedescs.models import ChangeDescription
from reviewboard.reviews.fields import get_review_request_field
from reviewboard.webapi.base import WebAPIResource
from reviewboard.... | 33.944882 | 78 | 0.64579 |
fca4787d63d5c744297f12e8eaf44573826eecbb | 1,990 | py | Python | controllers/notes/NewNote.py | heminsatya/free_notes | 88272a34c48e60d1a82e28b0b2d56883fa724bb3 | [
"MIT"
] | null | null | null | controllers/notes/NewNote.py | heminsatya/free_notes | 88272a34c48e60d1a82e28b0b2d56883fa724bb3 | [
"MIT"
] | null | null | null | controllers/notes/NewNote.py | heminsatya/free_notes | 88272a34c48e60d1a82e28b0b2d56883fa724bb3 | [
"MIT"
] | null | null | null | # Dependencies
from aurora import Controller, View, Forms
from models import Users, Notes
from aurora.security import login_required, get_session
from flask import request
from datetime import datetime
# The controller class
| 29.264706 | 105 | 0.529648 |
fca52f1665be31c3ef3732af8d77d4f70b20bc49 | 2,762 | py | Python | EDA-&-Data-Preprocessing/code.py | udayraj-gupta/ga-learner-dsmp-repo | 90b16345fb3fd4f6f4f201012995eea7ff1e73e9 | [
"MIT"
] | null | null | null | EDA-&-Data-Preprocessing/code.py | udayraj-gupta/ga-learner-dsmp-repo | 90b16345fb3fd4f6f4f201012995eea7ff1e73e9 | [
"MIT"
] | null | null | null | EDA-&-Data-Preprocessing/code.py | udayraj-gupta/ga-learner-dsmp-repo | 90b16345fb3fd4f6f4f201012995eea7ff1e73e9 | [
"MIT"
] | null | null | null | # --------------
#Importing header files
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
#Code starts here
data = pd.read_csv(path)
data['Rating'].hist()
data = data[data['Rating']<=5]
data['Rating'].hist()
#Code ends here
# --------------
# code starts here
total_null = data.isnull().sum... | 24.442478 | 107 | 0.685373 |
fca54a750bbd17151c5163b01b4d00722314de04 | 4,008 | py | Python | openpnm/algorithms/ChargeConservation.py | rguan-uoft/OpenPNM | b3873d35270b0acaad019264368d0055c677d159 | [
"MIT"
] | 1 | 2020-02-06T19:21:20.000Z | 2020-02-06T19:21:20.000Z | openpnm/algorithms/ChargeConservation.py | ChahatAggarwal/OpenPNM | b3873d35270b0acaad019264368d0055c677d159 | [
"MIT"
] | null | null | null | openpnm/algorithms/ChargeConservation.py | ChahatAggarwal/OpenPNM | b3873d35270b0acaad019264368d0055c677d159 | [
"MIT"
] | null | null | null | import numpy as np
from openpnm.algorithms import ReactiveTransport
from openpnm.models.physics import generic_source_term as gst
from openpnm.utils import logging
logger = logging.getLogger(__name__)
| 39.683168 | 79 | 0.560629 |
fca7c37bc274f186e6ec2be9680fe84ac2ca179f | 2,318 | py | Python | jno/commands/upload.py | Kosinkadink/jno | 773806dd737c1ef0b0a89a7e4086da9c2c1260c1 | [
"MIT"
] | 1 | 2017-03-07T20:15:44.000Z | 2017-03-07T20:15:44.000Z | jno/commands/upload.py | Kosinkadink/jno | 773806dd737c1ef0b0a89a7e4086da9c2c1260c1 | [
"MIT"
] | null | null | null | jno/commands/upload.py | Kosinkadink/jno | 773806dd737c1ef0b0a89a7e4086da9c2c1260c1 | [
"MIT"
] | null | null | null | from jno.util import interpret_configs
from jno.util import run_arduino_process
from jno.util import create_build_directory
from jno.util import get_common_parameters
from jno.util import verify_arduino_dir
from jno.util import verify_and_get_port
from jno.util import JnoException
from jno.commands.command import Comma... | 34.597015 | 118 | 0.718723 |
fca94cd64ba4f1d65d89141aae52e93be1d8a3f6 | 11,440 | py | Python | modelling/inference_multi_attribute.py | rizwan09/hydra-sum | 42088dde4e2b109fdb222ad4c329ca7bbfe9db2f | [
"BSD-3-Clause"
] | 5 | 2021-11-12T12:03:47.000Z | 2022-02-09T11:07:23.000Z | modelling/inference_multi_attribute.py | rizwan09/hydra-sum | 42088dde4e2b109fdb222ad4c329ca7bbfe9db2f | [
"BSD-3-Clause"
] | null | null | null | modelling/inference_multi_attribute.py | rizwan09/hydra-sum | 42088dde4e2b109fdb222ad4c329ca7bbfe9db2f | [
"BSD-3-Clause"
] | 1 | 2021-10-22T04:20:34.000Z | 2021-10-22T04:20:34.000Z | import argparse
import json
import logging
import os
import torch
from transformers.file_utils import ModelOutput
from typing import Dict, Optional, Tuple
from torch.utils.data import DataLoader, SequentialSampler
from transformers.modeling_outputs import Seq2SeqLMOutput
import train_seq2seq_utils
import single_head_ut... | 34.878049 | 118 | 0.600699 |
fca96624113002ffa1bf51ca5fff111307a9a56b | 2,199 | py | Python | stp_core/common/logging/handlers.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 148 | 2017-07-11T19:05:25.000Z | 2022-03-16T21:31:20.000Z | stp_core/common/logging/handlers.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 561 | 2017-06-29T17:59:56.000Z | 2022-03-09T15:47:14.000Z | stp_core/common/logging/handlers.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 378 | 2017-06-29T17:45:27.000Z | 2022-03-26T07:27:59.000Z | import logging
| 28.558442 | 71 | 0.530241 |
5d75f5d30780e5997d5df3ca87b964d9add7b705 | 47 | py | Python | blog/migrations/__init__.py | Amohammadi2/django-SPA-blog | 5dc10894ba360569b4849cfda0c3340ea5a15fb8 | [
"MIT"
] | 2 | 2020-12-14T08:46:35.000Z | 2021-06-03T17:26:45.000Z | blog/migrations/__init__.py | Amohammadi2/django-SPA-blog | 5dc10894ba360569b4849cfda0c3340ea5a15fb8 | [
"MIT"
] | null | null | null | blog/migrations/__init__.py | Amohammadi2/django-SPA-blog | 5dc10894ba360569b4849cfda0c3340ea5a15fb8 | [
"MIT"
] | null | null | null | # you just need to add some informations here
| 23.5 | 46 | 0.765957 |
5d77f5c8748dabbe0cc911d4482f70143a174f14 | 43 | py | Python | amocrm_asterisk_ng/crm/amocrm/kernel/calls/call_records/file_converters/core/__init__.py | iqtek/amocrn_asterisk_ng | 429a8d0823b951c855a49c1d44ab0e05263c54dc | [
"MIT"
] | null | null | null | amocrm_asterisk_ng/crm/amocrm/kernel/calls/call_records/file_converters/core/__init__.py | iqtek/amocrn_asterisk_ng | 429a8d0823b951c855a49c1d44ab0e05263c54dc | [
"MIT"
] | null | null | null | amocrm_asterisk_ng/crm/amocrm/kernel/calls/call_records/file_converters/core/__init__.py | iqtek/amocrn_asterisk_ng | 429a8d0823b951c855a49c1d44ab0e05263c54dc | [
"MIT"
] | null | null | null | from .IFileConverter import IFileConverter
| 21.5 | 42 | 0.883721 |
5d78b08ed15d1550fa9397049ff76029d3869bce | 555 | py | Python | tests/blueprint/test_decorators.py | cuenca-mx/agave | d4719bdbab8e200c98d206475df6adb275e9fdcc | [
"MIT"
] | 3 | 2020-12-11T16:48:44.000Z | 2021-03-29T00:05:57.000Z | tests/blueprint/test_decorators.py | cuenca-mx/agave | d4719bdbab8e200c98d206475df6adb275e9fdcc | [
"MIT"
] | 115 | 2020-08-26T13:26:07.000Z | 2022-03-31T23:58:22.000Z | tests/blueprint/test_decorators.py | cuenca-mx/agave | d4719bdbab8e200c98d206475df6adb275e9fdcc | [
"MIT"
] | null | null | null | from functools import wraps
from agave.blueprints.decorators import copy_attributes
| 19.821429 | 55 | 0.677477 |
5d78de49bd48a1e6e3f364af456fa6175d8f4166 | 10,534 | py | Python | tools/python/utils/config_parser.py | hanhan9449/mace | 63feaf5055bab6a081d36edfab8f963a624899aa | [
"Apache-2.0"
] | 1 | 2020-09-07T02:40:28.000Z | 2020-09-07T02:40:28.000Z | tools/python/utils/config_parser.py | hanhan9449/mace | 63feaf5055bab6a081d36edfab8f963a624899aa | [
"Apache-2.0"
] | null | null | null | tools/python/utils/config_parser.py | hanhan9449/mace | 63feaf5055bab6a081d36edfab8f963a624899aa | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The MACE 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 applicable la... | 34.424837 | 78 | 0.638599 |
5d7980863ca4f07807819ec6305da79cbf107a53 | 14,852 | py | Python | main_cross_testing_iseg.py | sami-ets/DeepNormalize | 5ed53280d98a201d45bb9973e79736136273eaea | [
"MIT"
] | 1 | 2020-05-21T20:52:48.000Z | 2020-05-21T20:52:48.000Z | main_cross_testing_iseg.py | sami-ets/DeepNormalize | 5ed53280d98a201d45bb9973e79736136273eaea | [
"MIT"
] | null | null | null | main_cross_testing_iseg.py | sami-ets/DeepNormalize | 5ed53280d98a201d45bb9973e79736136273eaea | [
"MIT"
] | 1 | 2020-05-21T20:52:54.000Z | 2020-05-21T20:52:54.000Z | # -*- coding: utf-8 -*-
# Copyright 2019 Pierre-Luc Delisle. All Rights Reserved.
#
# Licensed under the MIT License;
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/MIT
#
# Unless required by applicable law or agreed t... | 52.295775 | 133 | 0.637961 |
5d799babef8aac803fb3da8b5588e54e7c3ffd6d | 10,137 | py | Python | docs/10.level3_demo_streaming/pc_server/server.py | FaBoPlatform/RobotCarAI | c89d3330a2beda0f253733d3252b2b035b153b6b | [
"Apache-2.0"
] | 10 | 2017-12-27T20:51:26.000Z | 2020-05-27T05:29:13.000Z | docs/10.level3_demo_streaming/pc_server/server.py | FaBoPlatform/RobotCarAI | c89d3330a2beda0f253733d3252b2b035b153b6b | [
"Apache-2.0"
] | null | null | null | docs/10.level3_demo_streaming/pc_server/server.py | FaBoPlatform/RobotCarAI | c89d3330a2beda0f253733d3252b2b035b153b6b | [
"Apache-2.0"
] | 3 | 2017-12-27T20:51:30.000Z | 2019-03-15T02:49:25.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ClientOpenCV
# Server: Jetson TX2
# Client: Jetson TX2/Raspberry Pi3 Docker
# 1. FFMPEG UDP StreamingClientAWS10FPS,Jetson TX21FPS
# 2. Server
# 3. Client
#
# lib/camera.py: vid = cv2.VideoCapture()
# lib/object_detection.py: /home/ubuntu/notebooks/github/SSD-Tensorflow/... | 32.594855 | 169 | 0.487126 |
5d79ef8df5146da3723b7ca2139e31f87b3fe948 | 5,498 | py | Python | client.py | zackorndorff/revsync | 17255aebd281edffb3f3330c21cda00039bc51a3 | [
"MIT"
] | 94 | 2017-05-13T05:39:06.000Z | 2022-01-11T18:14:54.000Z | client.py | zackorndorff/revsync | 17255aebd281edffb3f3330c21cda00039bc51a3 | [
"MIT"
] | 5 | 2020-06-11T19:09:43.000Z | 2021-05-01T05:01:55.000Z | client.py | zackorndorff/revsync | 17255aebd281edffb3f3330c21cda00039bc51a3 | [
"MIT"
] | 25 | 2017-05-13T18:15:23.000Z | 2022-02-03T22:32:41.000Z | from collections import defaultdict
import json
import re
import redis
import threading
import time
import traceback
import uuid
import base64
import binascii
TTL = 2
hash_keys = ('cmd', 'user')
cmd_hash_keys = {
'comment': ('addr',),
'extra_comment': ('addr',),
'area_comment': ('addr',),
'rename': ('... | 34.797468 | 101 | 0.483812 |
5d7c0c4ed976d906f1c11a70f28b08240f91a61e | 1,109 | py | Python | ontask/condition/urls.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 33 | 2017-12-02T04:09:24.000Z | 2021-11-07T08:41:57.000Z | ontask/condition/urls.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 189 | 2017-11-16T04:06:29.000Z | 2022-03-11T23:35:59.000Z | ontask/condition/urls.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 30 | 2017-11-30T03:35:44.000Z | 2022-01-31T03:08:08.000Z | # -*- coding: utf-8 -*-
"""URLs to manipulate columns."""
from django.urls import path
from ontask.condition import views
app_name = 'condition'
urlpatterns = [
#
# FILTERS
#
path(
'<int:pk>/create_filter/',
views.FilterCreateView.as_view(),
name='create_filter'),
path('<... | 23.595745 | 79 | 0.598738 |
5d7c6de5b4a074a83b3f637a428933b749ec22a8 | 13,437 | py | Python | VideoClassification/SegmentLevelClassifier/model.py | googleinterns/via-content-understanding | ca12ebe6aa4da16224a8ca86dc45aaaaa7cfda09 | [
"Apache-2.0"
] | 1 | 2020-05-22T14:51:28.000Z | 2020-05-22T14:51:28.000Z | VideoClassification/SegmentLevelClassifier/model.py | googleinterns/via-content-understanding | ca12ebe6aa4da16224a8ca86dc45aaaaa7cfda09 | [
"Apache-2.0"
] | 4 | 2020-05-31T21:57:44.000Z | 2020-07-23T23:32:52.000Z | VideoClassification/SegmentLevelClassifier/model.py | googleinterns/via-content-understanding | ca12ebe6aa4da16224a8ca86dc45aaaaa7cfda09 | [
"Apache-2.0"
] | 1 | 2020-05-19T17:28:10.000Z | 2020-05-19T17:28:10.000Z | """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 or agreed to in writing, software
distr... | 39.520588 | 172 | 0.723599 |
5d7cd2c4d715d5bc952ad3e374f1d2268aa25788 | 310 | py | Python | ivy/functional/backends/jax/old/math.py | faruq2021/ivy | 1b24beadbd673d6a9dd504e037c68547e5640627 | [
"Apache-2.0"
] | null | null | null | ivy/functional/backends/jax/old/math.py | faruq2021/ivy | 1b24beadbd673d6a9dd504e037c68547e5640627 | [
"Apache-2.0"
] | null | null | null | ivy/functional/backends/jax/old/math.py | faruq2021/ivy | 1b24beadbd673d6a9dd504e037c68547e5640627 | [
"Apache-2.0"
] | null | null | null | """
Collection of Jax math functions, wrapped to fit Ivy syntax and signature.
"""
# global
import jax as _jax
import jax.numpy as _jnp
tan = _jnp.tan
acos = _jnp.arccos
atan = _jnp.arctan
atan2 = _jnp.arctan2
cosh = _jnp.cosh
atanh = _jnp.arctanh
log = _jnp.log
exp = _jnp.exp
erf = _jax.scipy.special.erf
| 16.315789 | 74 | 0.729032 |
5d7ce8af330d95b04a5584c878164fe2af01973b | 8,279 | py | Python | neaten_db.py | Adoni/ZhihuCrawler | c275192ced3a344d7b93b7cfd3ebf87ed179400d | [
"MIT"
] | null | null | null | neaten_db.py | Adoni/ZhihuCrawler | c275192ced3a344d7b93b7cfd3ebf87ed179400d | [
"MIT"
] | null | null | null | neaten_db.py | Adoni/ZhihuCrawler | c275192ced3a344d7b93b7cfd3ebf87ed179400d | [
"MIT"
] | null | null | null | from pymongo import MongoClient
from pyltp import Segmentor
if __name__ == '__main__':
# insert_questions_from_answered_question()
# insert_questions_from_followed_question()
# insert_questions_from_asked_question()
# insert_questions_from_collected_question()
#delete_noise_question()
... | 39.42381 | 77 | 0.595603 |
5d7d4f2cec08d8e71851176546c2923392d1f51a | 7,675 | py | Python | test/tst_vlen.py | timgates42/netcdf4-python | d8b1cb11454f9beec674a29904c91f48db608c2c | [
"MIT"
] | 574 | 2015-01-16T02:21:19.000Z | 2022-03-27T14:05:55.000Z | test/tst_vlen.py | timgates42/netcdf4-python | d8b1cb11454f9beec674a29904c91f48db608c2c | [
"MIT"
] | 681 | 2015-01-02T20:26:17.000Z | 2022-03-24T00:59:15.000Z | test/tst_vlen.py | timgates42/netcdf4-python | d8b1cb11454f9beec674a29904c91f48db608c2c | [
"MIT"
] | 257 | 2015-01-20T16:42:17.000Z | 2022-03-29T03:49:37.000Z | import sys
import unittest
import os
import tempfile
from netCDF4 import Dataset
import numpy as np
from numpy.testing import assert_array_equal
FILE_NAME = tempfile.NamedTemporaryFile(suffix='.nc', delete=False).name
VL_NAME = 'vlen_type'
VL_BASETYPE = np.int16
DIM1_NAME = 'lon'
DIM2_NAME = 'lat'
nlons = 5; nlats = 5... | 33.515284 | 86 | 0.580456 |
5d7e286fce65b02bbb505a551034d0638886042d | 2,764 | py | Python | sonnet/src/once.py | ScriptBox99/deepmind-sonnet | 5cbfdc356962d9b6198d5b63f0826a80acfdf35b | [
"Apache-2.0"
] | 10,287 | 2017-04-07T12:33:37.000Z | 2022-03-30T03:32:16.000Z | sonnet/src/once.py | ScriptBox99/deepmind-sonnet | 5cbfdc356962d9b6198d5b63f0826a80acfdf35b | [
"Apache-2.0"
] | 209 | 2017-04-07T15:57:11.000Z | 2022-03-27T10:43:03.000Z | sonnet/src/once.py | ScriptBox99/deepmind-sonnet | 5cbfdc356962d9b6198d5b63f0826a80acfdf35b | [
"Apache-2.0"
] | 1,563 | 2017-04-07T13:15:06.000Z | 2022-03-29T15:26:04.000Z | # Copyright 2019 The Sonnet 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 applicable l... | 28.494845 | 87 | 0.634949 |
5d7e5adfacc7c05430120bb4ddda519a5d8edcca | 9,774 | py | Python | env.py | DGarciaMedina/PiArmDiego | cb4664796aa99b0717145f9e4889bfba5190059f | [
"MIT"
] | null | null | null | env.py | DGarciaMedina/PiArmDiego | cb4664796aa99b0717145f9e4889bfba5190059f | [
"MIT"
] | null | null | null | env.py | DGarciaMedina/PiArmDiego | cb4664796aa99b0717145f9e4889bfba5190059f | [
"MIT"
] | null | null | null | import piarm
import time
import numpy as np
import cv2
import random
| 32.151316 | 137 | 0.563024 |
5d7e67724340bd64fb013a94027277d42f8215af | 10,105 | py | Python | src/python/src/grpc/_adapter/_links_test.py | jonywtf/grpc | 124f3c5a4b65bb88f13be7c68482eb83d945ad02 | [
"BSD-3-Clause"
] | 1 | 2022-01-14T04:25:01.000Z | 2022-01-14T04:25:01.000Z | src/python/src/grpc/_adapter/_links_test.py | jonywtf/grpc | 124f3c5a4b65bb88f13be7c68482eb83d945ad02 | [
"BSD-3-Clause"
] | null | null | null | src/python/src/grpc/_adapter/_links_test.py | jonywtf/grpc | 124f3c5a4b65bb88f13be7c68482eb83d945ad02 | [
"BSD-3-Clause"
] | 1 | 2022-01-14T04:25:02.000Z | 2022-01-14T04:25:02.000Z | # Copyright 2015, Google Inc.
# All rights reserved.
#
# 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 the above copyright
# notice, this list of conditions and the f... | 40.42 | 80 | 0.740129 |
5d7f67f5f4955fd254f6885d027ea817e96c1e91 | 620 | py | Python | tests/_test_progress_board.py | stjordanis/Hyperactive | 5acf247d8023ff6761593b9d0954bdd912d20aed | [
"MIT"
] | 382 | 2019-07-16T13:30:15.000Z | 2022-03-30T22:29:07.000Z | tests/_test_progress_board.py | stjordanis/Hyperactive | 5acf247d8023ff6761593b9d0954bdd912d20aed | [
"MIT"
] | 46 | 2019-08-27T18:07:47.000Z | 2022-03-16T16:28:10.000Z | tests/_test_progress_board.py | stjordanis/Hyperactive | 5acf247d8023ff6761593b9d0954bdd912d20aed | [
"MIT"
] | 35 | 2019-08-03T00:51:09.000Z | 2021-12-03T19:06:07.000Z | import os, glob
import subprocess
from subprocess import DEVNULL, STDOUT
abspath = os.path.abspath(__file__)
dir_ = os.path.dirname(abspath)
files = glob.glob(dir_ + "/_progress_board_tests/_test_progress_board_*.py")
for file_path in files:
file_name = str(file_path.rsplit("/", maxsplit=1)[1])
try:
... | 29.52381 | 83 | 0.68871 |
5d7f92bfcfd4bf66faaae6ec55c26244db6de591 | 8,695 | py | Python | pages/forest_pages.py | jhalljhall/beiwe-backend | 06d28926a2830c7ad53c32ec41ff49320932aeed | [
"BSD-3-Clause"
] | 1 | 2022-03-09T03:20:37.000Z | 2022-03-09T03:20:37.000Z | pages/forest_pages.py | jhalljhall/beiwe-backend | 06d28926a2830c7ad53c32ec41ff49320932aeed | [
"BSD-3-Clause"
] | null | null | null | pages/forest_pages.py | jhalljhall/beiwe-backend | 06d28926a2830c7ad53c32ec41ff49320932aeed | [
"BSD-3-Clause"
] | null | null | null | import csv
import datetime
from collections import defaultdict
from django.contrib import messages
from django.http.response import FileResponse
from django.shortcuts import redirect, render
from django.utils import timezone
from django.views.decorators.http import require_GET, require_http_methods, require_POST
from... | 36.533613 | 105 | 0.702588 |
5d7fb293f532babd1479825528080b1664689540 | 6,138 | py | Python | data_scout/transformations/math_custom.py | janthiemen/data_scout | 6366eedfb20ed429bc96100de4dd2c7409e5dd88 | [
"MIT"
] | null | null | null | data_scout/transformations/math_custom.py | janthiemen/data_scout | 6366eedfb20ed429bc96100de4dd2c7409e5dd88 | [
"MIT"
] | null | null | null | data_scout/transformations/math_custom.py | janthiemen/data_scout | 6366eedfb20ed429bc96100de4dd2c7409e5dd88 | [
"MIT"
] | null | null | null | from __future__ import division
from .transformation import Transformation
from pyparsing import (Literal, CaselessLiteral, Word, Combine, Group, Optional,
ZeroOrMore, Forward, nums, alphas, oneOf)
import math
import re
import operator
__author__ = 'Paul McGuire'
__version__ = '$Revision: 0.0 $... | 37.2 | 144 | 0.515477 |
5d8266dee4d58a4d6dfa39e78c02bb8ed2be2717 | 6,261 | py | Python | project/cloudmesh-storage/cloudmesh/vdir/api/manager.py | cybertraining-dsc/fa19-516-171 | 1dba8cde09f7b05c80557ea7ae462161c590568b | [
"Apache-2.0"
] | null | null | null | project/cloudmesh-storage/cloudmesh/vdir/api/manager.py | cybertraining-dsc/fa19-516-171 | 1dba8cde09f7b05c80557ea7ae462161c590568b | [
"Apache-2.0"
] | 2 | 2019-12-02T03:11:42.000Z | 2021-02-08T20:37:15.000Z | project/cloudmesh-storage/cloudmesh/vdir/api/manager.py | cybertraining-dsc/fa19-516-171 | 1dba8cde09f7b05c80557ea7ae462161c590568b | [
"Apache-2.0"
] | 2 | 2019-09-10T00:56:11.000Z | 2020-05-05T02:54:31.000Z | #
# this manager stores directly into the db wit Database update
from cloudmesh.mongo.DataBaseDecorator import DatabaseUpdate
from cloudmesh.mongo.CmDatabase import CmDatabase
from cloudmesh.common.console import Console
from cloudmesh.storage.Provider import Provider
import os
from datetime import datetime
| 40.921569 | 119 | 0.50008 |
5d830daa46eeb8bf91aea2f52e4b5f3c2d74b15e | 2,605 | py | Python | redash/query_runner/influx_db.py | cjpit/redash | 27aafdb07e3a427da8f88d55a0c0d7cc64379da2 | [
"BSD-2-Clause"
] | 1 | 2018-09-13T13:50:17.000Z | 2018-09-13T13:50:17.000Z | redash/query_runner/influx_db.py | cjpit/redash | 27aafdb07e3a427da8f88d55a0c0d7cc64379da2 | [
"BSD-2-Clause"
] | null | null | null | redash/query_runner/influx_db.py | cjpit/redash | 27aafdb07e3a427da8f88d55a0c0d7cc64379da2 | [
"BSD-2-Clause"
] | 1 | 2018-10-25T12:09:32.000Z | 2018-10-25T12:09:32.000Z | import json
import logging
from redash.query_runner import *
from redash.utils import JSONEncoder
logger = logging.getLogger(__name__)
try:
from influxdb import InfluxDBClusterClient
enabled = True
except ImportError:
enabled = False
register(InfluxDB)
| 26.313131 | 74 | 0.542035 |