hexsha stringlengths 40 40 | size int64 4 1.02M | ext stringclasses 8
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 209 | max_stars_repo_name stringlengths 5 121 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 209 | max_issues_repo_name stringlengths 5 121 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 209 | max_forks_repo_name stringlengths 5 121 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 4 1.02M | avg_line_length float64 1.07 66.1k | max_line_length int64 4 266k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f6f9d07a46c07382c3c8b56d6acb64609a4c646f | 9,043 | py | Python | scripts/acconeer/exptool/recording.py | zainamir-98/bioradar | b826ed869a58778a321153dae3c93f17f40d2f7a | [
"MIT"
] | null | null | null | scripts/acconeer/exptool/recording.py | zainamir-98/bioradar | b826ed869a58778a321153dae3c93f17f40d2f7a | [
"MIT"
] | null | null | null | scripts/acconeer/exptool/recording.py | zainamir-98/bioradar | b826ed869a58778a321153dae3c93f17f40d2f7a | [
"MIT"
] | null | null | null | import copy
import datetime
import json
import time
import warnings
from pathlib import Path
from typing import Optional, Union
import attr
import h5py
import numpy as np
import acconeer.exptool
import acconeer.exptool.structs.configbase as cb
from acconeer.exptool import configs, modes
@attr.s
cl... | 31.075601 | 99 | 0.608979 |
e6b1ebc04eaef433b2d64c41ece6b2a6570e8926 | 150 | py | Python | pkgs/filetransferutils-pkg/src/genie/libs/filetransferutils/plugins/nxos/tftp/fileutils.py | rohit04saluja/genielibs | e3a89932b807075f45a611cb46ca41a4fa6fe240 | [
"Apache-2.0"
] | null | null | null | pkgs/filetransferutils-pkg/src/genie/libs/filetransferutils/plugins/nxos/tftp/fileutils.py | rohit04saluja/genielibs | e3a89932b807075f45a611cb46ca41a4fa6fe240 | [
"Apache-2.0"
] | 1 | 2020-08-01T00:59:29.000Z | 2020-08-01T00:59:32.000Z | pkgs/filetransferutils-pkg/src/genie/libs/filetransferutils/plugins/nxos/tftp/fileutils.py | rohit04saluja/genielibs | e3a89932b807075f45a611cb46ca41a4fa6fe240 | [
"Apache-2.0"
] | null | null | null | """ File utils base class for TFTP on NXOS devices. """
from ..fileutils import FileUtils as FileUtilsNXBase
class FileUtils(FileUtilsNXBase):
pass | 25 | 55 | 0.773333 |
46b99fdbd1f495aa020915e9cf40cb4b47470c88 | 54 | py | Python | functional_tests/fixtures/wrong_homework.py | rattletat/homework-server | abfac831ed45cc567a6a1610edee934200ffada7 | [
"Unlicense"
] | 1 | 2020-06-03T14:54:38.000Z | 2020-06-03T14:54:38.000Z | functional_tests/fixtures/wrong_homework.py | rattletat/homework-server | abfac831ed45cc567a6a1610edee934200ffada7 | [
"Unlicense"
] | null | null | null | functional_tests/fixtures/wrong_homework.py | rattletat/homework-server | abfac831ed45cc567a6a1610edee934200ffada7 | [
"Unlicense"
] | null | null | null | def print_hello_world():
print("Hello universe!")
| 18 | 28 | 0.703704 |
b517d458cbd59c73dec4655988b19c290ca98caf | 2,381 | py | Python | python/update_data_src.py | mikehankey/mikehankey | 87cae99a4390f635c17ba1ccc8e393153803dca7 | [
"MIT"
] | null | null | null | python/update_data_src.py | mikehankey/mikehankey | 87cae99a4390f635c17ba1ccc8e393153803dca7 | [
"MIT"
] | 5 | 2020-07-17T10:25:58.000Z | 2020-07-17T10:26:10.000Z | python/update_data_src.py | mikehankey/mikehankey | 87cae99a4390f635c17ba1ccc8e393153803dca7 | [
"MIT"
] | null | null | null | import os, zipfile, glob, sys
import shutil
from clean_uwash_csv import clean_uwash_csv
from utils import TMP_DATA_PATH, INTL_TMP_DATA_PATH, INTL_FILE_TYPES, INTL_DATA_URL
# Update DATA SOURCES for coronafiles.us
SOURCES = {
'daily' : "http://covidtracking.com/api/v1/states/daily.csv",
'us' ... | 35.014706 | 111 | 0.648887 |
02588dea599cb830f9dbf460dc65d1add1e79be3 | 5,140 | py | Python | indico/testing/fixtures/database.py | UNOG-Indico/UNOG-Indico-v2 | 4fa4393cc1f3b453a69f5e0ea3b52c18337831a5 | [
"MIT"
] | null | null | null | indico/testing/fixtures/database.py | UNOG-Indico/UNOG-Indico-v2 | 4fa4393cc1f3b453a69f5e0ea3b52c18337831a5 | [
"MIT"
] | null | null | null | indico/testing/fixtures/database.py | UNOG-Indico/UNOG-Indico-v2 | 4fa4393cc1f3b453a69f5e0ea3b52c18337831a5 | [
"MIT"
] | null | null | null | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
import os
import re
import shutil
import signal
import subprocess
import tempfile
from contextlib import c... | 34.039735 | 111 | 0.671595 |
d6cab5065dc5292f7e24fcc889b7da1981bd99d8 | 1,964 | py | Python | micropsi_server/mesh_startup.py | Doik/micropsi2 | 35ef3b48d9da255939e8e7af0e00bbcc98597602 | [
"MIT"
] | null | null | null | micropsi_server/mesh_startup.py | Doik/micropsi2 | 35ef3b48d9da255939e8e7af0e00bbcc98597602 | [
"MIT"
] | null | null | null | micropsi_server/mesh_startup.py | Doik/micropsi2 | 35ef3b48d9da255939e8e7af0e00bbcc98597602 | [
"MIT"
] | 1 | 2019-01-07T21:33:18.000Z | 2019-01-07T21:33:18.000Z | import os
import time
from micropsi_server.mesh_ipy import IPythonConnection
ipython_client = IPythonConnection()
console_termination_requested = False
def no_exit(code):
pass
def start_runtime_and_console(port=7543):
import micropsi_server
import micropsi_server.micropsi_app
import sys
sys.ex... | 28.882353 | 113 | 0.698065 |
bb539201533aa678444a43a2552ebb27aa257f09 | 1,031 | py | Python | tools/c7n_azure/c7n_azure/resources/batch.py | dnouri/cloud-custodian | 4e8b3b45f60731df942ffe6b61645416d7a67daa | [
"Apache-2.0"
] | 1 | 2020-09-07T21:10:29.000Z | 2020-09-07T21:10:29.000Z | tools/c7n_azure/c7n_azure/resources/batch.py | dnouri/cloud-custodian | 4e8b3b45f60731df942ffe6b61645416d7a67daa | [
"Apache-2.0"
] | 1 | 2021-02-10T02:20:45.000Z | 2021-02-10T02:20:45.000Z | tools/c7n_azure/c7n_azure/resources/batch.py | dnouri/cloud-custodian | 4e8b3b45f60731df942ffe6b61645416d7a67daa | [
"Apache-2.0"
] | 1 | 2021-10-15T11:29:54.000Z | 2021-10-15T11:29:54.000Z | # Copyright 2018 Capital One Services, LLC
# Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
from c7n_azure.provider import resources
from c7n_azure.resources.arm import ArmResourceManager
@resources.register('batch')
class Batch(ArmResourceManager):
"""Batch Resource
:example:
... | 27.131579 | 89 | 0.651794 |
259da0a71b52af8941b677c739aa868b87785289 | 8,188 | py | Python | tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_tf_legacy_mode.py | LastRemote/sagemaker-python-sdk | fddf29d9e4383cd3f939253eef47ee79a464dd37 | [
"Apache-2.0"
] | 1,690 | 2017-11-29T20:13:37.000Z | 2022-03-31T12:58:11.000Z | tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_tf_legacy_mode.py | LastRemote/sagemaker-python-sdk | fddf29d9e4383cd3f939253eef47ee79a464dd37 | [
"Apache-2.0"
] | 2,762 | 2017-12-04T05:18:03.000Z | 2022-03-31T23:40:11.000Z | tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_tf_legacy_mode.py | LastRemote/sagemaker-python-sdk | fddf29d9e4383cd3f939253eef47ee79a464dd37 | [
"Apache-2.0"
] | 961 | 2017-11-30T16:44:03.000Z | 2022-03-30T23:12:09.000Z | # Copyright Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompan... | 38.261682 | 98 | 0.716659 |
a7a653ebfc269cf1c0886208f4ebf9d7c7c46938 | 894 | py | Python | tests/findjvm.py | tcalmant/jpype-py3 | 902b9746a72bf76eb73bf4b54ccb1657b7756fba | [
"Apache-2.0"
] | 26 | 2015-03-04T02:18:36.000Z | 2020-09-24T07:26:14.000Z | tests/findjvm.py | tcalmant/jpype-py3 | 902b9746a72bf76eb73bf4b54ccb1657b7756fba | [
"Apache-2.0"
] | 21 | 2015-03-08T18:31:56.000Z | 2020-08-06T00:50:35.000Z | tests/findjvm.py | tcalmant/jpype-py3 | 902b9746a72bf76eb73bf4b54ccb1657b7756fba | [
"Apache-2.0"
] | 12 | 2015-01-02T23:18:01.000Z | 2020-02-02T19:53:25.000Z | #!/usr/bin/python3
# *****************************************************************************
# Copyright 2004-2008 Steve Menard
#
# 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
#
#... | 35.76 | 79 | 0.60962 |
35ecd1d249d0edfcaae467fabeaa1aae78271a38 | 13,997 | py | Python | storops/vnx/resource/lun.py | tunaruraul/storops | 7092c516c55b4c2f00c7c22383e1ad46ecfec091 | [
"Apache-2.0"
] | 60 | 2016-04-18T23:42:10.000Z | 2022-03-23T02:26:03.000Z | storops/vnx/resource/lun.py | tunaruraul/storops | 7092c516c55b4c2f00c7c22383e1ad46ecfec091 | [
"Apache-2.0"
] | 317 | 2016-05-25T06:45:37.000Z | 2022-03-25T13:22:38.000Z | storops/vnx/resource/lun.py | tunaruraul/storops | 7092c516c55b4c2f00c7c22383e1ad46ecfec091 | [
"Apache-2.0"
] | 34 | 2016-03-18T02:39:12.000Z | 2022-01-07T12:54:14.000Z | # coding=utf-8
# Copyright (c) 2015 EMC Corporation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | 34.818408 | 78 | 0.590412 |
e52a39acee1aebc0c0df95eccb26d3542a05d2a1 | 219 | py | Python | combine_db.py | nerrull/hackatown2018 | 4a683fdfc9d641a5466afef91a12ca150ba69d04 | [
"MIT"
] | null | null | null | combine_db.py | nerrull/hackatown2018 | 4a683fdfc9d641a5466afef91a12ca150ba69d04 | [
"MIT"
] | null | null | null | combine_db.py | nerrull/hackatown2018 | 4a683fdfc9d641a5466afef91a12ca150ba69d04 | [
"MIT"
] | null | null | null | from os.path import listdir, join
def combined_db(db_path):
out_path = join(db_path, "combined")
out_file = join(out_path, "database.json")
files = os.
db_path ="/home/rice1902/Documents/hackathon/gml/db" | 24.333333 | 52 | 0.712329 |
b0c2d33e1d2867fc6681ecc67d0f762b13ca7a6c | 136,839 | py | Python | test/api/test_workflows.py | innovate-invent/galaxy | 10aa953a40e171246bdd1804c74e8019da8e8200 | [
"CC-BY-3.0"
] | null | null | null | test/api/test_workflows.py | innovate-invent/galaxy | 10aa953a40e171246bdd1804c74e8019da8e8200 | [
"CC-BY-3.0"
] | null | null | null | test/api/test_workflows.py | innovate-invent/galaxy | 10aa953a40e171246bdd1804c74e8019da8e8200 | [
"CC-BY-3.0"
] | null | null | null | from __future__ import print_function
import json
import time
from json import dumps
from uuid import uuid4
from requests import delete, get, put
from base import api # noqa: I100,I202
from base import rules_test_data # noqa: I100
from base.populators import ( # noqa: I100
DatasetCollectionPopulator,
Data... | 41.341088 | 239 | 0.67331 |
5d1e1d4e2eacde333cbb495d013c8dc2338de867 | 44,053 | py | Python | pysnmp-with-texts/HUAWEI-SSH-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/HUAWEI-SSH-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/HUAWEI-SSH-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HUAWEI-SSH-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-SSH-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:48:38 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | 168.141221 | 3,526 | 0.780628 |
13fc2cdfe024ec540e6fb5ed5f968693d534e220 | 610 | py | Python | utils/PenetrationModel.py | tengyu-liu/diverse-and-stable-grasp | a1afa1356ff2b592e52acbbf53ebcc55e8674d93 | [
"MIT"
] | 6 | 2021-07-26T05:40:36.000Z | 2021-12-10T08:25:50.000Z | utils/PenetrationModel.py | tangbohu/diverse-and-stable-grasp | a1afa1356ff2b592e52acbbf53ebcc55e8674d93 | [
"MIT"
] | null | null | null | utils/PenetrationModel.py | tangbohu/diverse-and-stable-grasp | a1afa1356ff2b592e52acbbf53ebcc55e8674d93 | [
"MIT"
] | 5 | 2021-07-30T01:40:13.000Z | 2021-12-14T09:33:52.000Z | import torch.nn as nn
class PenetrationModel:
def __init__(self, hand_model, object_model):
self.hand_model = hand_model
self.object_model = object_model
self.relu = nn.ReLU()
def get_penetration(self, object_code, hand_code):
hand_vertices = self.hand_model.get_vertices(hand_code)
return self... | 35.882353 | 86 | 0.772131 |
0ab24111fc00d769fbb15928e2a84ce115b3e791 | 50,789 | py | Python | venv/lib/python3.8/site-packages/thinc/tests/test_config.py | dushesms/Writing-Aid | 45abc68760546d5f1db7f08b47d2f6795a381607 | [
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/thinc/tests/test_config.py | dushesms/Writing-Aid | 45abc68760546d5f1db7f08b47d2f6795a381607 | [
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/thinc/tests/test_config.py | dushesms/Writing-Aid | 45abc68760546d5f1db7f08b47d2f6795a381607 | [
"MIT"
] | null | null | null | import pytest
from typing import Iterable, Union, Optional, List, Callable, Dict, Any
from types import GeneratorType
from pydantic import BaseModel, StrictBool, StrictFloat, PositiveInt, constr
import catalogue
import thinc.config
from thinc.config import ConfigValidationError
from thinc.types import Generator, Ragged... | 37.427413 | 124 | 0.622182 |
507987b9b5657dad021874754d4066d4fc7372b9 | 10,430 | py | Python | index_service.py | microserv/Index-service | 9c4894f3802cf24950dfc952d24589d1bd107ae6 | [
"MIT"
] | null | null | null | index_service.py | microserv/Index-service | 9c4894f3802cf24950dfc952d24589d1bd107ae6 | [
"MIT"
] | null | null | null | index_service.py | microserv/Index-service | 9c4894f3802cf24950dfc952d24589d1bd107ae6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from HTMLParser import HTMLParser
from twisted.web import server
from twisted.web.resource import Resource
from twisted.web.client import Agent
from twisted.internet.defer import Deferred
from twisted.internet import reactor
... | 41.388889 | 161 | 0.54976 |
7a7808fe6b1c1ed5905bc1a95444617f73944786 | 824 | py | Python | ex48/tests/parser_tests.py | jpch89/lpthw | dc492e5e88afa309413756a839312dd6148b1144 | [
"MIT"
] | 4 | 2019-04-04T02:35:52.000Z | 2021-11-16T05:44:42.000Z | ex48/tests/parser_tests.py | jpch89/lpthw | dc492e5e88afa309413756a839312dd6148b1144 | [
"MIT"
] | null | null | null | ex48/tests/parser_tests.py | jpch89/lpthw | dc492e5e88afa309413756a839312dd6148b1144 | [
"MIT"
] | 7 | 2020-12-02T10:01:14.000Z | 2022-02-03T07:05:51.000Z | # -*- coding: utf-8 -*-
# @Author: jpch89
# @Email: jpch89@outlook.com
# @Time: 2018/7/29 9:07
from nose.tools import *
from ex48 import parser
# test subject(noun) verb noun
def test_svn():
x = parser.parse_sentence([('noun', 'Angel'), ('verb', 'kill'), ('noun', 'monster')])
assert_equals(x.subject, 'Ange... | 31.692308 | 119 | 0.637136 |
0dc6a374a17394fa2719aaa6dd268aa6c5d68ed3 | 29,847 | py | Python | tqsdk/lib/target_pos_task.py | shinny-mayanqiong/tqsdk-python | 5e3f22af5900bfd6c9ffa6fbda3bf247ee4c1777 | [
"Apache-2.0"
] | 3,208 | 2018-06-12T10:51:17.000Z | 2022-03-30T14:40:50.000Z | tqsdk/lib/target_pos_task.py | aManOf502/tqsdk-python | 70d0e30ad4ceda04f08a8125d9c45d4096542f4c | [
"Apache-2.0"
] | 297 | 2018-07-23T07:42:43.000Z | 2021-10-13T05:19:05.000Z | tqsdk/lib/target_pos_task.py | aManOf502/tqsdk-python | 70d0e30ad4ceda04f08a8125d9c45d4096542f4c | [
"Apache-2.0"
] | 656 | 2018-06-25T06:27:58.000Z | 2022-03-31T08:01:14.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'chengzhi'
import asyncio
import time
from datetime import datetime
from asyncio import gather
from inspect import isfunction
from typing import Optional, Union, Callable
from tqsdk import utils
from tqsdk.api import TqApi, TqAccount, TqSim, TqKq
from tqsdk.... | 47.985531 | 148 | 0.580795 |
3e69d13ce964df8b2260d4b4b912252f8deab019 | 7,495 | py | Python | src/tamarin_iac/tamarin.py | AlissonMMenezes/Tamarin | 37e5a153b0ab29ad3a73a316e4afc55023eabbb4 | [
"Apache-2.0"
] | null | null | null | src/tamarin_iac/tamarin.py | AlissonMMenezes/Tamarin | 37e5a153b0ab29ad3a73a316e4afc55023eabbb4 | [
"Apache-2.0"
] | null | null | null | src/tamarin_iac/tamarin.py | AlissonMMenezes/Tamarin | 37e5a153b0ab29ad3a73a316e4afc55023eabbb4 | [
"Apache-2.0"
] | null | null | null | import subprocess
import yaml
import threading
import paramiko
import socket
import time
import sys
from terminaltables import AsciiTable
import os
import shutil
import argparse
class VirtualMachine(object):
def __init__(self,vm_config,ssh_user="",ssh_password=""):
self.qemu_bin = shutil.which("qemu-syst... | 37.10396 | 118 | 0.525284 |
5f81a53b88bd72cffdb32348313323ef84005a6a | 1,805 | py | Python | rsHRF/rsHRF_GUI/datatypes/timeseries/bold_raw.py | BIDS-Apps/rsHRF | e1751e77629f9e960f156b1bd6a9842f7c34f719 | [
"MIT"
] | 16 | 2017-09-08T20:02:22.000Z | 2022-03-10T20:56:36.000Z | rsHRF/rsHRF_GUI/datatypes/timeseries/bold_raw.py | BIDS-Apps/rsHRF | e1751e77629f9e960f156b1bd6a9842f7c34f719 | [
"MIT"
] | 10 | 2019-06-06T18:32:40.000Z | 2021-09-13T08:14:15.000Z | rsHRF/rsHRF_GUI/datatypes/timeseries/bold_raw.py | Remi-Gau/rsHRF-1 | a07715b764df69fffbc7f1a43718e958662ade9b | [
"MIT"
] | 8 | 2019-03-26T16:40:04.000Z | 2021-04-11T14:08:52.000Z | import numpy as np
from scipy.io import savemat
from copy import deepcopy
from ...datatypes.misc.parameters import Parameters
from .timeseries import TimeSeries
class BOLD_Raw(TimeSeries):
"""
This stores the Raw BOLD Time-series
Attributes:
1. input_file : the input... | 32.232143 | 95 | 0.581163 |
b7305876fe8f1bd3c83c09ad06d66b9b8488715c | 21,484 | py | Python | clients/python/lakefs_client/api/actions_api.py | NNstorm/lakeFS | 8d8c179cb442290a7ca5020dcf7e95e41301bcf8 | [
"Apache-2.0"
] | 1 | 2021-09-09T16:21:14.000Z | 2021-09-09T16:21:14.000Z | clients/python/lakefs_client/api/actions_api.py | NNstorm/lakeFS | 8d8c179cb442290a7ca5020dcf7e95e41301bcf8 | [
"Apache-2.0"
] | null | null | null | clients/python/lakefs_client/api/actions_api.py | NNstorm/lakeFS | 8d8c179cb442290a7ca5020dcf7e95e41301bcf8 | [
"Apache-2.0"
] | null | null | null | """
lakeFS API
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: services@treeverse.io
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from lakefs_client.api_client import ApiClient, Endpoint as _Endpoint
from lak... | 35.162029 | 122 | 0.438 |
783b8c9bea40f843acab6196904fe6d759b7abfd | 5,131 | py | Python | python_jsonschema_objects/__init__.py | JonKohler/python-jsonschema-objects | 915b765ea9561c06779fe668e563fa1235afa6fd | [
"MIT"
] | null | null | null | python_jsonschema_objects/__init__.py | JonKohler/python-jsonschema-objects | 915b765ea9561c06779fe668e563fa1235afa6fd | [
"MIT"
] | null | null | null | python_jsonschema_objects/__init__.py | JonKohler/python-jsonschema-objects | 915b765ea9561c06779fe668e563fa1235afa6fd | [
"MIT"
] | null | null | null | import jsonschema
from jsonschema import Draft4Validator
from jsonschema.compat import iteritems
import json
import codecs
import copy
import os.path
import inflection
import six
import logging
logger = logging.getLogger(__name__)
import python_jsonschema_objects.classbuilder as classbuilder
from python_jsonschema_o... | 33.318182 | 106 | 0.64237 |
3aab7d3d36a470ffd9fb5edda401bacd13bd4532 | 7,790 | py | Python | tensorflow/python/kernel_tests/broadcast_to_ops_test.py | ashutom/tensorflow-upstream | c16069c19de9e286dd664abb78d0ea421e9f32d4 | [
"Apache-2.0"
] | 8 | 2021-08-03T03:57:10.000Z | 2021-12-13T01:19:02.000Z | tensorflow/python/kernel_tests/broadcast_to_ops_test.py | ashutom/tensorflow-upstream | c16069c19de9e286dd664abb78d0ea421e9f32d4 | [
"Apache-2.0"
] | 17 | 2021-08-12T19:38:42.000Z | 2022-01-27T14:39:35.000Z | tensorflow/python/kernel_tests/broadcast_to_ops_test.py | ashutom/tensorflow-upstream | c16069c19de9e286dd664abb78d0ea421e9f32d4 | [
"Apache-2.0"
] | 4 | 2022-01-13T11:23:44.000Z | 2022-03-02T11:11:42.000Z | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 37.63285 | 80 | 0.64647 |
a037f3bcb703a3214a793a4e2b3af5b0678896ee | 142 | py | Python | test.py | tpaulus/coverage | f84e1dd8a649d96d37add46460c16cc0224e9696 | [
"MIT"
] | null | null | null | test.py | tpaulus/coverage | f84e1dd8a649d96d37add46460c16cc0224e9696 | [
"MIT"
] | null | null | null | test.py | tpaulus/coverage | f84e1dd8a649d96d37add46460c16cc0224e9696 | [
"MIT"
] | null | null | null | __author__ = 'tpaulus'
# quit("I Broke... Intentionally C1") # Quit with Text and Code 1
l = [1, 2]
l[3] # List Index out of Range Error | 20.285714 | 67 | 0.640845 |
702f8c7cb037436b724b37203ac798ee034a8d12 | 5,266 | py | Python | Retrieve Comments/ConvertText.py | zhoudanxie/analyzing-public-comments | 567530dc9011c7d71e478f6dfe7bb4eea8e7bd1c | [
"MIT"
] | 2 | 2020-05-20T14:18:19.000Z | 2021-01-28T19:59:58.000Z | Retrieve Comments/ConvertText.py | zhoudanxie/analyzing-public-comments | 567530dc9011c7d71e478f6dfe7bb4eea8e7bd1c | [
"MIT"
] | 1 | 2020-04-14T21:53:01.000Z | 2020-04-14T21:53:01.000Z | Retrieve Comments/ConvertText.py | zhoudanxie/analyzing-public-comments | 567530dc9011c7d71e478f6dfe7bb4eea8e7bd1c | [
"MIT"
] | 2 | 2020-04-08T22:26:55.000Z | 2020-05-20T14:21:21.000Z | #--------------------------------------Convert Attachment (DOC & PDF) Comments to Text---------------------------------#
#---------------------------------------------The GW Regulatory Studies Center-----------------------------------------#
#--------------------------------------------------Author: Zhoudan Xie--------... | 40.198473 | 152 | 0.581466 |
064ad3c5855b164f048d97dacdc3b8df1f9cf681 | 1,386 | py | Python | tools/telemetry/telemetry/core/backends/chrome_inspector/inspector_memory_unittest.py | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 20 | 2015-08-26T06:46:00.000Z | 2019-02-27T09:05:58.000Z | Source/chrome/tools/telemetry/telemetry/core/backends/chrome_inspector/inspector_memory_unittest.py | yury-s/v8-inspector | 0ab4779e0909d387f243f41ca2621237cdb0c7fe | [
"BSD-3-Clause"
] | null | null | null | Source/chrome/tools/telemetry/telemetry/core/backends/chrome_inspector/inspector_memory_unittest.py | yury-s/v8-inspector | 0ab4779e0909d387f243f41ca2621237cdb0c7fe | [
"BSD-3-Clause"
] | 2 | 2015-08-26T05:49:35.000Z | 2020-02-03T20:22:43.000Z | # Copyright 2013 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.
from telemetry import decorators
from telemetry.unittest_util import tab_test_case
class InspectorMemoryTest(tab_test_case.TabTestCase):
@decorators.Ena... | 37.459459 | 80 | 0.734488 |
d1a945c9331c3b3de23d053f49b4cf329fd49194 | 4,756 | py | Python | tests/test_assets.py | jonhealy1/stac-validator | 5e73c1e4488fa957eb1071d60855c9f12539ef2c | [
"Apache-2.0"
] | null | null | null | tests/test_assets.py | jonhealy1/stac-validator | 5e73c1e4488fa957eb1071d60855c9f12539ef2c | [
"Apache-2.0"
] | null | null | null | tests/test_assets.py | jonhealy1/stac-validator | 5e73c1e4488fa957eb1071d60855c9f12539ef2c | [
"Apache-2.0"
] | null | null | null | """
Description: Test --links option
"""
__authors__ = "James Banting", "Jonathan Healy"
from stac_validator import stac_validator
def test_assets_v090():
stac_file = "tests/test_data/v090/items/CBERS_4_bad_links.json"
stac = stac_validator.StacValidate(stac_file, assets=True)
stac.run()
assert stac... | 54.045455 | 146 | 0.620479 |
579e01edc898e6bc258cfdb28bd26ac57792c696 | 1,218 | py | Python | phasenet/test_app.py | cxhost/PhaseNet | d07953626453f8428ee9d004e7031df1c11b351f | [
"MIT"
] | 113 | 2019-11-14T00:40:47.000Z | 2022-03-23T02:14:39.000Z | phasenet/test_app.py | cxhost/PhaseNet | d07953626453f8428ee9d004e7031df1c11b351f | [
"MIT"
] | 30 | 2020-01-28T23:07:42.000Z | 2022-02-24T01:13:40.000Z | phasenet/test_app.py | cxhost/PhaseNet | d07953626453f8428ee9d004e7031df1c11b351f | [
"MIT"
] | 80 | 2019-11-13T13:50:14.000Z | 2022-03-15T11:33:01.000Z | import requests
import obspy
import numpy as np
import matplotlib.pyplot as plt
from datetime import datetime
### Start running the model first:
### FLASK_ENV=development FLASK_APP=app.py flask run
def read_data(mseed):
data = []
mseed = mseed.sort()
for c in ["E", "N", "Z"]:
data.append(mseed.sel... | 25.914894 | 65 | 0.618227 |
6db50bf00d6d0805f09ba1ce46e2f70047a8c32b | 1,783 | py | Python | internal/notes/builtin-SAVE/packages/py-numexpr/package.py | HPCToolkit/hpctest | 5ff4455582bf39e75530a31badcf6142081b386b | [
"BSD-3-Clause"
] | 1 | 2019-01-17T20:07:19.000Z | 2019-01-17T20:07:19.000Z | internal/notes/builtin-SAVE/packages/py-numexpr/package.py | HPCToolkit/hpctest | 5ff4455582bf39e75530a31badcf6142081b386b | [
"BSD-3-Clause"
] | null | null | null | internal/notes/builtin-SAVE/packages/py-numexpr/package.py | HPCToolkit/hpctest | 5ff4455582bf39e75530a31badcf6142081b386b | [
"BSD-3-Clause"
] | 2 | 2019-08-06T18:13:57.000Z | 2021-11-05T18:19:49.000Z | ##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | 44.575 | 79 | 0.675827 |
5ad3f6b9d551444430c52beb056a9fd097adb8f3 | 2,697 | py | Python | src/loss.py | bkoch4142/neural-style-transfer-paper | 5aac48e0a9f3450060d3e111bba123c0c8b955ef | [
"MIT"
] | 3 | 2021-01-13T17:06:14.000Z | 2021-12-31T13:01:50.000Z | src/loss.py | bkoch4142/neural-style-transfer-paper | 5aac48e0a9f3450060d3e111bba123c0c8b955ef | [
"MIT"
] | null | null | null | src/loss.py | bkoch4142/neural-style-transfer-paper | 5aac48e0a9f3450060d3e111bba123c0c8b955ef | [
"MIT"
] | 1 | 2021-12-03T02:37:34.000Z | 2021-12-03T02:37:34.000Z | import torch
import numpy as np
import torch.nn.functional as F
def get_content_loss(content_image_content, generated_image_content):
"""
The mean squared difference between the activations of the generated image and activations of the content
image for a chosen VGG layer is computed to give the content l... | 41.492308 | 143 | 0.698183 |
32232b022a7ae273d1ede0c6e0e8a4a9f19fc26e | 3,227 | py | Python | scripts/visualize_trajs.py | abhishekunique/RND-ashwin | f8bcf3c593df2dacc0efba0875533be71ccb5011 | [
"MIT"
] | null | null | null | scripts/visualize_trajs.py | abhishekunique/RND-ashwin | f8bcf3c593df2dacc0efba0875533be71ccb5011 | [
"MIT"
] | 7 | 2020-09-25T22:41:46.000Z | 2022-03-12T00:37:25.000Z | scripts/visualize_trajs.py | abhishekunique/RND-ashwin | f8bcf3c593df2dacc0efba0875533be71ccb5011 | [
"MIT"
] | null | null | null | print("STARTED")
import numpy as np
import matplotlib.pyplot as plt
import os
import pickle
import gzip
import tensorflow as tf
import glob
import math
import skimage
from matplotlib.patches import Rectangle
import json
tf.enable_eager_execution()
from softlearning.replay_pools.utils import get_replay_pool_from_varia... | 32.27 | 106 | 0.712736 |
66d954fd60bf84f802d79406b594eada115c8079 | 6,556 | py | Python | 2_Python Advanced/9_Numpy/1_NumpyIntro.py | Arunken/PythonScripts | 702d0a3af7a9be3311f9da0afc5285d453f15484 | [
"Apache-2.0"
] | null | null | null | 2_Python Advanced/9_Numpy/1_NumpyIntro.py | Arunken/PythonScripts | 702d0a3af7a9be3311f9da0afc5285d453f15484 | [
"Apache-2.0"
] | 1 | 2021-06-02T00:58:47.000Z | 2021-06-02T00:58:47.000Z | 2_Python Advanced/9_Numpy/1_NumpyIntro.py | Arunken/PythonScripts | 702d0a3af7a9be3311f9da0afc5285d453f15484 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 21 15:41:13 2018
@author: SilverDoe
"""
'''
>> numpy provides n-dimensional array objects(arrays).
>> Supports indexing, slicing and many other operations as in pandas as it is
built over numpy
>> The ndarray object consists of contiguous one-dimensional segment ... | 23.166078 | 120 | 0.61684 |
00ec5fcf42ab426de1662859e56df1127eb15587 | 616 | py | Python | plc_snap/plc_client_test.py | prachandabhanu/kuka_plc_ros | 205467e42be8b09033ad28960ad48f85c9e3e852 | [
"MIT"
] | null | null | null | plc_snap/plc_client_test.py | prachandabhanu/kuka_plc_ros | 205467e42be8b09033ad28960ad48f85c9e3e852 | [
"MIT"
] | 1 | 2020-11-20T08:25:53.000Z | 2020-11-20T08:25:53.000Z | plc_snap/plc_client_test.py | prachandabhanu/kuka_plc_ros | 205467e42be8b09033ad28960ad48f85c9e3e852 | [
"MIT"
] | 2 | 2020-11-20T08:13:52.000Z | 2021-12-08T07:07:38.000Z | #! /usr/bin/python
from time import sleep
import snap7 as sn
from snap7.util import *
import struct
plc = sn.client.Client()
plc.connect("192.168.0.1", 0, 1)
area = 0x82 # area for Q memory
area_2 = 0x81 #area for I memory
start = 200 # location we are going to start the read
length = 1 # length in bytes ... | 28 | 80 | 0.693182 |
325c3960c14270fb3e836c53fc01ef1ec1d394ba | 9,640 | py | Python | lmeds/lmeds_io/sequence.py | siyoung-kim/lmeds-copy | 8f11c3a09d879dca1d743bd6dccf41a3689c06a7 | [
"MIT"
] | 10 | 2015-11-03T20:20:07.000Z | 2021-08-30T10:24:29.000Z | lmeds/lmeds_io/sequence.py | siyoung-kim/lmeds-copy | 8f11c3a09d879dca1d743bd6dccf41a3689c06a7 | [
"MIT"
] | 3 | 2017-07-19T13:51:59.000Z | 2022-03-03T12:41:08.000Z | lmeds/lmeds_io/sequence.py | siyoung-kim/lmeds-copy | 8f11c3a09d879dca1d743bd6dccf41a3689c06a7 | [
"MIT"
] | 7 | 2017-07-19T13:50:28.000Z | 2021-06-07T21:00:36.000Z | '''
Created on May 30, 2013
@author: timmahrt
'''
import os
from os.path import join
import io
import random
from lmeds.pages import factories
class TestSetupError(Exception):
def __init__(self, unknownKeyList, *args, **kargs):
super(TestSetupError, self).__init__(*args, **kargs)
self.unknownK... | 29.480122 | 79 | 0.554668 |
4eb764ad78dd68f5e5f2845b23ab3be7b4213b50 | 943 | py | Python | code/Github_API_parser/GithubApiHandler.py | dsambugaro/APS_Grafos | bc306f7489fd305472ef9d3b08e50da7efa32366 | [
"MIT"
] | null | null | null | code/Github_API_parser/GithubApiHandler.py | dsambugaro/APS_Grafos | bc306f7489fd305472ef9d3b08e50da7efa32366 | [
"MIT"
] | null | null | null | code/Github_API_parser/GithubApiHandler.py | dsambugaro/APS_Grafos | bc306f7489fd305472ef9d3b08e50da7efa32366 | [
"MIT"
] | null | null | null | # coding: utf-8
import requests
class UsersHandler():
base_url = "https://api.github.com/users/"
def __init__(self, token):
self.auth = {
"Authorization":"token {}".format(token)}
def get_user_profile(self, user):
user_url = self.base_url + user
res = requests.get(use... | 30.419355 | 60 | 0.609756 |
2917dc7569c99ef3dd329324d0611419bfc09fc9 | 14,778 | py | Python | autokeras/tasks/structured_data.py | jkhenning/autokeras | 3d7cf9643ad3620bbce2f07b277344a3017c65cd | [
"MIT"
] | 3 | 2021-01-19T20:21:11.000Z | 2021-01-19T21:36:35.000Z | autokeras/tasks/structured_data.py | achaar/autokeras | 7e10593b6ac88497150710a59c6807cc04d9f810 | [
"MIT"
] | null | null | null | autokeras/tasks/structured_data.py | achaar/autokeras | 7e10593b6ac88497150710a59c6807cc04d9f810 | [
"MIT"
] | 1 | 2020-08-15T00:31:00.000Z | 2020-08-15T00:31:00.000Z | import pathlib
from typing import Dict
from typing import List
from typing import Optional
from typing import Union
import pandas as pd
from autokeras import auto_model
from autokeras import hypermodels
from autokeras import nodes as input_module
from autokeras.tasks.structured_data_mixin import StructuredDataMixin
f... | 47.365385 | 85 | 0.595615 |
ece019a0297efa8764a4d13eada39e1dca3c4f20 | 24,666 | py | Python | neutron/tests/functional/pecan_wsgi/test_controllers.py | BobzhouCH/neutron-nfv-acc | 05ab9d2079f2b652a4df771c1d6d9ce3b822aaa0 | [
"Apache-2.0"
] | null | null | null | neutron/tests/functional/pecan_wsgi/test_controllers.py | BobzhouCH/neutron-nfv-acc | 05ab9d2079f2b652a4df771c1d6d9ce3b822aaa0 | [
"Apache-2.0"
] | null | null | null | neutron/tests/functional/pecan_wsgi/test_controllers.py | BobzhouCH/neutron-nfv-acc | 05ab9d2079f2b652a4df771c1d6d9ce3b822aaa0 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 43.273684 | 79 | 0.632328 |
0395c535eee94a7bba1d70fc17afb02be07b4089 | 451 | py | Python | back-end data/api/utility/save_result.py | shaoyu0966/dorm-alloc-sys | 2b3772fafe663d30f21364008f7b2d52a9539d8f | [
"Apache-2.0"
] | null | null | null | back-end data/api/utility/save_result.py | shaoyu0966/dorm-alloc-sys | 2b3772fafe663d30f21364008f7b2d52a9539d8f | [
"Apache-2.0"
] | null | null | null | back-end data/api/utility/save_result.py | shaoyu0966/dorm-alloc-sys | 2b3772fafe663d30f21364008f7b2d52a9539d8f | [
"Apache-2.0"
] | null | null | null | import xlsxwriter
def saveExcel(result, file_path):
workbook = xlsxwriter.Workbook(file_path)
for sheet_name in result.keys():
data = result[sheet_name]
worksheet = workbook.add_worksheet(sheet_name)
if len(data) == 0:
continue
for i in range(len(data)):
... | 32.214286 | 54 | 0.603104 |
c9c9012fbddcaa99b50fcbfadb3dac07913523b7 | 1,310 | py | Python | rasengan/polyinterp.py | se4u/rasengan | 9b327b207559b829fcb870f80e6e0df7c6394ca5 | [
"MIT"
] | 1 | 2017-12-07T20:12:21.000Z | 2017-12-07T20:12:21.000Z | rasengan/polyinterp.py | se4u/rasengan | 9b327b207559b829fcb870f80e6e0df7c6394ca5 | [
"MIT"
] | null | null | null | rasengan/polyinterp.py | se4u/rasengan | 9b327b207559b829fcb870f80e6e0df7c6394ca5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
| Filename : polyinterp.py
| Description : Polynomial interpolation of data points.
| Author : Pushpendre Rastogi
| Created : Tue Sep 6 00:10:47 2016 (-0400)
| Last-Updated: Tue Sep 6 00:11:35 2016 (-0400)
| By: Pushpendre Rastogi
| Update #: 1
Copied from http://hs... | 27.87234 | 69 | 0.571756 |
dcaf5935773785f9719960789a3943428e64d472 | 2,270 | py | Python | portal/academy/tests/test_views.py | LDSSA/portal | 9561da1e262678fe68dcf51c66007c0fb13eb51a | [
"MIT"
] | 2 | 2020-11-09T03:48:36.000Z | 2021-07-02T14:30:09.000Z | portal/academy/tests/test_views.py | LDSSA/portal | 9561da1e262678fe68dcf51c66007c0fb13eb51a | [
"MIT"
] | 132 | 2020-04-25T15:57:56.000Z | 2022-03-10T19:15:51.000Z | portal/academy/tests/test_views.py | LDSSA/portal | 9561da1e262678fe68dcf51c66007c0fb13eb51a | [
"MIT"
] | 1 | 2020-10-24T16:15:57.000Z | 2020-10-24T16:15:57.000Z | from datetime import datetime, timedelta, timezone
import pytest
from django.urls import reverse
from portal.academy.views import csvdata
from portal.academy.services import get_last_grade
@pytest.mark.django_db(transaction=True)
def test_student_unit_detail_view(client, db, student, slu1):
client.login(userna... | 30.675676 | 82 | 0.700441 |
0c892c80d732f3354db69168bc64000f51ba1929 | 1,764 | py | Python | discord/player.py | alexyy802/GlowCord | af92f1a11843157aa5484c1781417456175a8ab3 | [
"MIT"
] | null | null | null | discord/player.py | alexyy802/GlowCord | af92f1a11843157aa5484c1781417456175a8ab3 | [
"MIT"
] | null | null | null | discord/player.py | alexyy802/GlowCord | af92f1a11843157aa5484c1781417456175a8ab3 | [
"MIT"
] | null | null | null | """
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2021-present tag-epic
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
t... | 56.903226 | 400 | 0.790816 |
87510931be361ab4060780cb983b5cde31e90430 | 2,019 | py | Python | src/vm-repair/setup.py | ravithanneeru/azure-cli-extensions | e0de87f3563ae39525370e9912589aac33e7bded | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/vm-repair/setup.py | ravithanneeru/azure-cli-extensions | e0de87f3563ae39525370e9912589aac33e7bded | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/vm-repair/setup.py | ravithanneeru/azure-cli-extensions | e0de87f3563ae39525370e9912589aac33e7bded | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... | 36.053571 | 199 | 0.59683 |
37723887f0c8c7570eb1fb10bc45b094b19daf1e | 155 | py | Python | tests/timezones/urls.py | iMerica/dj-models | fbe4a55ac362f9355a2298f58aa0deb0b6082e19 | [
"BSD-3-Clause"
] | 5 | 2019-02-15T16:47:50.000Z | 2021-12-26T18:52:23.000Z | tests/timezones/urls.py | iMerica/dj-models | fbe4a55ac362f9355a2298f58aa0deb0b6082e19 | [
"BSD-3-Clause"
] | null | null | null | tests/timezones/urls.py | iMerica/dj-models | fbe4a55ac362f9355a2298f58aa0deb0b6082e19 | [
"BSD-3-Clause"
] | 2 | 2021-08-09T02:29:09.000Z | 2021-08-20T03:30:11.000Z | from djmodels.conf.urls import url
from . import admin as tz_admin # NOQA: register tz_admin
urlpatterns = [
url(r'^admin/', tz_admin.site.urls),
]
| 19.375 | 58 | 0.709677 |
c3f255434870d42ce73cf093efe11a350a8d3416 | 976 | py | Python | monailabel/endpoints/info.py | hamghalam/MONAILabel | 4f322db0a056d2757d134c9b3c4d4f35740bbf6d | [
"Apache-2.0"
] | null | null | null | monailabel/endpoints/info.py | hamghalam/MONAILabel | 4f322db0a056d2757d134c9b3c4d4f35740bbf6d | [
"Apache-2.0"
] | null | null | null | monailabel/endpoints/info.py | hamghalam/MONAILabel | 4f322db0a056d2757d134c9b3c4d4f35740bbf6d | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 - 2021 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in wri... | 34.857143 | 74 | 0.75 |
53c979c7ad33e9df65d844be7fad561ece22ff63 | 5,567 | py | Python | bwfsoundfile.py | danrossi/bwfsoundlib | 6609862fb3d90b19716267dd82b70af08c2efba9 | [
"MIT"
] | 1 | 2016-10-31T15:50:21.000Z | 2016-10-31T15:50:21.000Z | bwfsoundfile.py | danrossi/bwfsoundlib | 6609862fb3d90b19716267dd82b70af08c2efba9 | [
"MIT"
] | null | null | null | bwfsoundfile.py | danrossi/bwfsoundlib | 6609862fb3d90b19716267dd82b70af08c2efba9 | [
"MIT"
] | null | null | null | """bwfsoundlib is an extension of PySoundFile using the C library libsndfile to implement broadcast wave bext chunk and iXML chunk parsing.
This requires new functions in libsndfile 1.0.26 to implement reading chunks in wav files. 1.0.26 is not currently available as binaries and requires compiling.
For further infor... | 35.234177 | 160 | 0.662475 |
e74ac106dc724b30450bb6fedb98f74b8d93d27c | 1,542 | py | Python | traits_finder/scripts/undone.MG.py | caozhichongchong/traits_finder | a9ab41d3f5b4ba57db76acf66ce994fe032bba63 | [
"MIT"
] | 1 | 2019-10-22T18:45:10.000Z | 2019-10-22T18:45:10.000Z | traits_finder/scripts/undone.WG.py | caozhichongchong/traits_finder | a9ab41d3f5b4ba57db76acf66ce994fe032bba63 | [
"MIT"
] | null | null | null | traits_finder/scripts/undone.WG.py | caozhichongchong/traits_finder | a9ab41d3f5b4ba57db76acf66ce994fe032bba63 | [
"MIT"
] | null | null | null | import argparse
import os
from Bio import SeqIO
############################################ Arguments and declarations ##############################################
parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument("-i",
help="file... | 37.609756 | 119 | 0.424125 |
0d0d98b05c943a7a2326275213cb8b4ad6f5c6ca | 90 | py | Python | run_interface.py | bdshaffer31/shopping-list-manager | 517856efa57c85623701505cfdaaa0e6aab2c09b | [
"MIT"
] | null | null | null | run_interface.py | bdshaffer31/shopping-list-manager | 517856efa57c85623701505cfdaaa0e6aab2c09b | [
"MIT"
] | null | null | null | run_interface.py | bdshaffer31/shopping-list-manager | 517856efa57c85623701505cfdaaa0e6aab2c09b | [
"MIT"
] | null | null | null | from shelf_interface import ShelfInterface
INTERFACE = ShelfInterface()
INTERFACE.run()
| 15 | 42 | 0.822222 |
8c655a016eda6ae1ebfbb7ec93ca8fb8271bd72b | 2,274 | py | Python | kraps/types.py | krapsh/kraps-py | 6cf37135155b2c5193ccea35df0491213921d401 | [
"Apache-2.0"
] | 5 | 2017-10-25T10:53:47.000Z | 2019-01-12T19:32:36.000Z | kraps/types.py | krapsh/kraps-py | 6cf37135155b2c5193ccea35df0491213921d401 | [
"Apache-2.0"
] | 15 | 2017-06-22T20:53:50.000Z | 2017-10-22T00:47:00.000Z | kraps/types.py | krapsh/kraps-py | 6cf37135155b2c5193ccea35df0491213921d401 | [
"Apache-2.0"
] | 1 | 2018-08-23T04:25:57.000Z | 2018-08-23T04:25:57.000Z | """ The Augmented Data Type: a data type with extra nullability information.
"""
import pandas as pd
from pandas.io.json import json_normalize
from .pyspark.types import *
from .pyspark.types import _parse_datatype_json_value
__all__ = ['AugmentedDataType']
class AugmentedDataType(object):
""" A Spark data type a... | 28.074074 | 84 | 0.664028 |
991704653f894a0588101c323a8dd3ff906a8777 | 390 | py | Python | src/config/wsgi.py | rehive/multisig-stellar-signer | e5b7ba293fda333c289f77ef10bf1a455b5bb5a7 | [
"MIT"
] | 2 | 2019-12-25T20:54:53.000Z | 2020-07-15T02:58:46.000Z | {{cookiecutter.github_repository_name}}/src/config/wsgi.py | rehive/service-framework | 0648e501e65990398aa96fe8eaaf8368a8e4f3d2 | [
"MIT"
] | 13 | 2018-11-29T17:34:36.000Z | 2022-02-07T13:41:11.000Z | {{cookiecutter.github_repository_name}}/src/config/wsgi.py | rehive/service-framework | 0648e501e65990398aa96fe8eaaf8368a8e4f3d2 | [
"MIT"
] | 1 | 2018-08-06T06:57:37.000Z | 2018-08-06T06:57:37.000Z | """
WSGI config for config project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | 21.666667 | 78 | 0.782051 |
2bce924fb7e6f6fcaac4482f8c595fb369b46d35 | 1,704 | py | Python | day4/ex35_django.py | tdouris1/pynet_test | 6c68161a5759c2d82b14dc92fec70fda1aba679c | [
"Apache-2.0"
] | null | null | null | day4/ex35_django.py | tdouris1/pynet_test | 6c68161a5759c2d82b14dc92fec70fda1aba679c | [
"Apache-2.0"
] | null | null | null | day4/ex35_django.py | tdouris1/pynet_test | 6c68161a5759c2d82b14dc92fec70fda1aba679c | [
"Apache-2.0"
] | 1 | 2020-06-03T08:41:10.000Z | 2020-06-03T08:41:10.000Z | #!/usr/bin/env python
"""
Exercise 35
Write a Python script that retrieves all of the network devices from the database
Using this data, make a Netmiko connection to each device.
Retrieve 'show run'.
Record the time that the program takes to execute.
"""
from datetime import datetime
import django
from netmiko import ... | 30.981818 | 85 | 0.693662 |
9676e9852f18e044f5794c21cff3fb1928ed4252 | 505 | py | Python | utilities/calcLatency.py | johannes-schuetze/ALTO-framework-sim | 7a8d1df549188684ad3636434ccd6cf064e82c4f | [
"MIT"
] | null | null | null | utilities/calcLatency.py | johannes-schuetze/ALTO-framework-sim | 7a8d1df549188684ad3636434ccd6cf064e82c4f | [
"MIT"
] | null | null | null | utilities/calcLatency.py | johannes-schuetze/ALTO-framework-sim | 7a8d1df549188684ad3636434ccd6cf064e82c4f | [
"MIT"
] | null | null | null | #!/usr/bin/python
#Master-Thesis dot parsing framework
#Date: 09.09.2014
#Author: Bruno-Johannes Schuetze
#Scipt takes a number (Km) which represents a distance betwen to nodes. The distance is devided by the speed of light and multiplied by 1000 to get latency.
#NOTE does not account for propagation delay!!!
import ... | 24.047619 | 156 | 0.762376 |
8682c3da34e65526015f25f047d5f83009123111 | 2,269 | py | Python | tools/sentencesplit.py | seralabs/brat | 532891f773d2968c12641233eb850dd70627b3f5 | [
"CC-BY-3.0"
] | null | null | null | tools/sentencesplit.py | seralabs/brat | 532891f773d2968c12641233eb850dd70627b3f5 | [
"CC-BY-3.0"
] | null | null | null | tools/sentencesplit.py | seralabs/brat | 532891f773d2968c12641233eb850dd70627b3f5 | [
"CC-BY-3.0"
] | 1 | 2019-02-25T03:20:40.000Z | 2019-02-25T03:20:40.000Z | #!/usr/bin/env python
"""Basic sentence splitter using brat segmentation to add newlines to input
text at likely sentence boundaries."""
import sys
from os.path import join as path_join
from os.path import dirname
from sys import path as sys_path
# import brat sentence boundary generator
from ssplit import regex_sen... | 27.670732 | 99 | 0.615249 |
ff9090ba4bd6acefed89b07cdae9644c132988e3 | 3,578 | py | Python | bead_cli/test_feature_update_by_name.py | krisztianfekete/lib | 180527203b8dadd0e1acd9c6f73be1887b61bc44 | [
"Unlicense"
] | 1 | 2016-05-06T15:14:22.000Z | 2016-05-06T15:14:22.000Z | bead_cli/test_feature_update_by_name.py | e3krisztian/bead | 180527203b8dadd0e1acd9c6f73be1887b61bc44 | [
"Unlicense"
] | 21 | 2017-02-16T13:49:06.000Z | 2021-11-20T21:38:45.000Z | bead_cli/test_feature_update_by_name.py | ceumicrodata/bead | 180527203b8dadd0e1acd9c6f73be1887b61bc44 | [
"Unlicense"
] | 1 | 2016-10-25T22:09:53.000Z | 2016-10-25T22:09:53.000Z | import os
import shutil
from typing import Dict
from bead.archive import Archive
from bead.test import TestCase
# from bead.workspace import Workspace
from . import test_fixtures as fixtures
class Test_feature_update_by_name(TestCase, fixtures.RobotAndBeads):
# tests
def test_basic_support(self, robot, bea... | 31.663717 | 95 | 0.610956 |
fa50ace96039640eebbd06650721160cb533d4e1 | 4,332 | py | Python | nssrc/com/citrix/netscaler/nitro/resource/config/cs/cspolicy_binding.py | guardicore/nitro-python | 5346a5086134aead80968f15a41ff527adaa0ec1 | [
"Apache-2.0"
] | null | null | null | nssrc/com/citrix/netscaler/nitro/resource/config/cs/cspolicy_binding.py | guardicore/nitro-python | 5346a5086134aead80968f15a41ff527adaa0ec1 | [
"Apache-2.0"
] | null | null | null | nssrc/com/citrix/netscaler/nitro/resource/config/cs/cspolicy_binding.py | guardicore/nitro-python | 5346a5086134aead80968f15a41ff527adaa0ec1 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2021 Citrix Systems, 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... | 31.391304 | 152 | 0.728994 |
d1909c6ab58b08556a94c6acd107a60c4a2971e8 | 568 | py | Python | src/livestreamer/packages/flashmedia/flv.py | jaccarmac/livestreamer | ab80dbd6560f6f9835865b2fc9f9c6015aee5658 | [
"BSD-2-Clause",
"MIT"
] | 3,614 | 2015-01-01T08:07:27.000Z | 2022-03-20T00:31:07.000Z | src/livestreamer/packages/flashmedia/flv.py | kviktor/livestreamer | ab80dbd6560f6f9835865b2fc9f9c6015aee5658 | [
"BSD-2-Clause",
"MIT"
] | 1,028 | 2015-01-02T03:38:38.000Z | 2021-08-06T16:17:48.000Z | src/livestreamer/packages/flashmedia/flv.py | kviktor/livestreamer | ab80dbd6560f6f9835865b2fc9f9c6015aee5658 | [
"BSD-2-Clause",
"MIT"
] | 795 | 2015-01-02T06:12:04.000Z | 2022-03-27T23:41:53.000Z | #!/usr/bin/env python
from .error import FLVError
from .compat import is_py2
from .tag import Header, Tag
class FLV(object):
def __init__(self, fd=None, strict=False):
self.fd = fd
self.header = Header.deserialize(self.fd)
self.strict = strict
def __iter__(self):
return self
... | 19.586207 | 62 | 0.607394 |
23f9f450bc01af0027226d94cb3259de0ef9adbc | 179 | py | Python | eventup/users/apps.py | Z-Devs-platzi/backend | 66dc436311c1e5e307c5f32d6a151fb9e5d6e0b8 | [
"MIT"
] | null | null | null | eventup/users/apps.py | Z-Devs-platzi/backend | 66dc436311c1e5e307c5f32d6a151fb9e5d6e0b8 | [
"MIT"
] | 15 | 2020-08-23T18:40:49.000Z | 2022-03-12T00:46:49.000Z | eventup/users/apps.py | Z-Devs-platzi/event_up-backend | 2b03a87e220cf4d68c4c2c2067096926d6f19b37 | [
"MIT"
] | null | null | null | """Users app."""
# Django
from django.apps import AppConfig
class UsersAppConfig(AppConfig):
"""Users app config."""
name = 'eventup.users'
verbose_name = 'Users'
| 14.916667 | 33 | 0.659218 |
23672defc37206b36d085cb734abd91d79f602ea | 250 | py | Python | hashcode.py | MineRobber9000/pyfiles | ad2f2fc3ed827e8891a7d82c13e3e961bacc3294 | [
"MIT"
] | null | null | null | hashcode.py | MineRobber9000/pyfiles | ad2f2fc3ed827e8891a7d82c13e3e961bacc3294 | [
"MIT"
] | null | null | null | hashcode.py | MineRobber9000/pyfiles | ad2f2fc3ed827e8891a7d82c13e3e961bacc3294 | [
"MIT"
] | null | null | null | import six
def get(bs,i):
if six.PY2:
return ord(bs[i])
else:
return bs[i]
def hashCode(s):
bs = s.encode("utf-8")
hash = 0
for i in range(len(bs)):
hash = (31*hash+get(bs,i))&0xFFFFFFFF
return ((hash+0x80000000)&0xFFFFFFFF)-0x80000000
| 16.666667 | 49 | 0.652 |
c94affdbee8addad1b83e7d138c77f30094198c2 | 6,956 | py | Python | mslib/msui/hexagon_dockwidget.py | Nightfurex/MSS | 51a1bc0d4ce759288b5f3a0a46e538aa0c1a8788 | [
"Apache-2.0"
] | null | null | null | mslib/msui/hexagon_dockwidget.py | Nightfurex/MSS | 51a1bc0d4ce759288b5f3a0a46e538aa0c1a8788 | [
"Apache-2.0"
] | null | null | null | mslib/msui/hexagon_dockwidget.py | Nightfurex/MSS | 51a1bc0d4ce759288b5f3a0a46e538aa0c1a8788 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
mslib.msui.hexagon_dockwidget
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Control widget to configure remote sensing overlays.
This file is part of mss.
:copyright: Copyright 2016-2017 Joern Ungermann, Stefan Ensmann
:copyright: Copyright 2016-2022 by the mss team, see AUTHORS.... | 42.414634 | 110 | 0.601208 |
e730e86ba345b65e56dcf2956db98220cc6372b9 | 12,501 | py | Python | kubernetes/client/rest.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | kubernetes/client/rest.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | kubernetes/client/rest.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.20.7
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import io
imp... | 42.090909 | 134 | 0.544276 |
f83797ebeaa1e1e2c29e794ed98da92f2d8c6432 | 4,480 | py | Python | blogproject/blogproject/settings.py | recall704/django-r3call-blog | 9ba915af0087b31d98f8e51b341d71ff3a3e4555 | [
"Apache-2.0"
] | null | null | null | blogproject/blogproject/settings.py | recall704/django-r3call-blog | 9ba915af0087b31d98f8e51b341d71ff3a3e4555 | [
"Apache-2.0"
] | null | null | null | blogproject/blogproject/settings.py | recall704/django-r3call-blog | 9ba915af0087b31d98f8e51b341d71ff3a3e4555 | [
"Apache-2.0"
] | null | null | null | #coding:utf-8
"""
Django settings for blogproject project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join... | 24.216216 | 91 | 0.639286 |
a3bafd1019ee60da7b7fe4e4cdff6e4c342aac28 | 247 | py | Python | raymon/profiling/__init__.py | raymon-ai/raymon | e1b0370de1f1d55c06b3c78fd820b1c1fe65db68 | [
"MIT"
] | 21 | 2021-06-14T08:37:22.000Z | 2022-03-08T05:41:54.000Z | raymon/profiling/__init__.py | raymon-ai/raymon | e1b0370de1f1d55c06b3c78fd820b1c1fe65db68 | [
"MIT"
] | 57 | 2021-01-30T08:45:13.000Z | 2022-02-21T16:15:00.000Z | raymon/profiling/__init__.py | raymon-ai/raymon | e1b0370de1f1d55c06b3c78fd820b1c1fe65db68 | [
"MIT"
] | 1 | 2021-06-18T09:53:58.000Z | 2021-06-18T09:53:58.000Z | from .profiles import ModelProfile
from .components import InputComponent, OutputComponent, ActualComponent, EvalComponent, DataType
from .stats import NumericStats, CategoricStats
from .scores import Score, MeanScore, PrecisionScore, RecallScore
| 49.4 | 97 | 0.854251 |
943da66afc6b88193c1b163f8ba68e7ebc6b193c | 2,799 | py | Python | autotest/warp/cutline.py | HongqiangWei/gdal | f7c427926438cc39d31e4459fa6401321f8e62f0 | [
"MIT"
] | 3 | 2016-07-25T16:30:13.000Z | 2022-02-11T11:09:08.000Z | autotest/warp/cutline.py | HongqiangWei/gdal | f7c427926438cc39d31e4459fa6401321f8e62f0 | [
"MIT"
] | null | null | null | autotest/warp/cutline.py | HongqiangWei/gdal | f7c427926438cc39d31e4459fa6401321f8e62f0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL/OGR Test Suite
# Purpose: Test the image reprojection functions. Try to test as many
# resamplers as possible (we have optimized resamplers for some
# data types, test the... | 31.449438 | 79 | 0.573419 |
60e03781ba953556becd6ae36a2e65c5852f3b72 | 759 | py | Python | test/test_Animate_joint.py | mgrubisic/Hysteresis | 8a27450e3de7a463c43c98ed1c494dc79cb45356 | [
"Apache-2.0"
] | null | null | null | test/test_Animate_joint.py | mgrubisic/Hysteresis | 8a27450e3de7a463c43c98ed1c494dc79cb45356 | [
"Apache-2.0"
] | null | null | null | test/test_Animate_joint.py | mgrubisic/Hysteresis | 8a27450e3de7a463c43c98ed1c494dc79cb45356 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat May 1 23:49:09 2021
@author: Christian
"""
import numpy as np
import hysteresis.plotSpecial.animate as ani
import hysteresis as hys
import pytest
np.random.seed(101)
x = np.linspace(0, 1, 101)*10
y1 = np.sin(x)
y2 = np.cos(x)
x2 = np.linspace(0, 1, 10)
trianglexy1 = np.... | 18.975 | 44 | 0.6917 |
a086ea843f1fae89841d4625f48d0d23b9b80f22 | 435 | py | Python | Task2C.py | EntropyF/ia-flood-risk-project | e61a47c2eea7c0a3941d89488e1de8c4022d6898 | [
"MIT"
] | null | null | null | Task2C.py | EntropyF/ia-flood-risk-project | e61a47c2eea7c0a3941d89488e1de8c4022d6898 | [
"MIT"
] | null | null | null | Task2C.py | EntropyF/ia-flood-risk-project | e61a47c2eea7c0a3941d89488e1de8c4022d6898 | [
"MIT"
] | 1 | 2022-02-09T01:51:00.000Z | 2022-02-09T01:51:00.000Z | from floodsystem.flood import stations_highest_rel_level
from floodsystem.stationdata import build_station_list, update_water_levels
def run():
stations = build_station_list()
update_water_levels(stations)
N = 10
highest_N = stations_highest_rel_level(stations, N)
for i in highest_N:
print(... | 31.071429 | 75 | 0.714943 |
fb995310d7d698a68a203b1dc87166d4033d6476 | 478 | py | Python | rates/forms.py | Kipkorir-Gideon/Projects-Rating | 11d418079b2e5251932f9f1144480f9f7364d696 | [
"MIT"
] | null | null | null | rates/forms.py | Kipkorir-Gideon/Projects-Rating | 11d418079b2e5251932f9f1144480f9f7364d696 | [
"MIT"
] | null | null | null | rates/forms.py | Kipkorir-Gideon/Projects-Rating | 11d418079b2e5251932f9f1144480f9f7364d696 | [
"MIT"
] | 1 | 2021-12-15T08:38:35.000Z | 2021-12-15T08:38:35.000Z | from django import forms
from django.contrib.auth.models import User
from .models import *
class ProfileForm(forms.ModelForm):
class Meta:
model = Profile
fields = ('photo', 'bio')
class ProjectForm(forms.ModelForm):
class Meta:
model = Projects
fields = ['title', 'screenshot', 'descr... | 20.782609 | 72 | 0.654812 |
e11ef01d76a9e9c36687df9a9ea048bad2fb1c02 | 7,537 | py | Python | mslib/msui/satellite_dockwidget.py | aravindm711/MSS | 128687ec036d445656a70ff4b82c3cb7586715e4 | [
"Apache-2.0"
] | 33 | 2020-12-04T04:29:28.000Z | 2022-03-05T17:11:49.000Z | mslib/msui/satellite_dockwidget.py | aravindm711/MSS | 128687ec036d445656a70ff4b82c3cb7586715e4 | [
"Apache-2.0"
] | 614 | 2020-12-06T16:54:44.000Z | 2022-03-31T07:41:02.000Z | mslib/msui/satellite_dockwidget.py | aravindm711/MSS | 128687ec036d445656a70ff4b82c3cb7586715e4 | [
"Apache-2.0"
] | 51 | 2020-12-04T15:10:46.000Z | 2022-03-20T02:02:11.000Z | # -*- coding: utf-8 -*-
"""
mslib.msui.satellite_dockwidget
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Control to load satellite track predictions into the top view.
This file is part of mss.
:copyright: Copyright 2008-2014 Deutsches Zentrum fuer Luft- und Raumfahrt e.V.
:copyright: Copyright 2011-2014... | 40.961957 | 89 | 0.637522 |
9fc0a17a298ec05d2f5a34f8b0c0475738f47791 | 1,843 | py | Python | model/gauss_inference.py | zouguojian/FDN-Learning | ef89cb7d6654d5ac2425621ec6b330652a281f16 | [
"MIT"
] | 1 | 2021-03-24T10:59:27.000Z | 2021-03-24T10:59:27.000Z | model/gauss_inference.py | zouguojian/FDN-Learning | ef89cb7d6654d5ac2425621ec6b330652a281f16 | [
"MIT"
] | null | null | null | model/gauss_inference.py | zouguojian/FDN-Learning | ef89cb7d6654d5ac2425621ec6b330652a281f16 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 15 09:55:13 2018
@author: Administrator
"""
import numpy as np
import tensorflow as tf
import math
class Gauss(object):
def __init__(self,u=0.0, e=1):
'''
:param u:
:param e:
'''
self.u=u
self.e=e
... | 35.442308 | 131 | 0.472599 |
758148f225a12021f3b57db2d2c67b3391cfa397 | 398 | py | Python | src/tools/telemetry/telemetry/core/chrome/trace_event_importer.py | jxjnjjn/chromium | 435c1d02fd1b99001dc9e1e831632c894523580d | [
"Apache-2.0"
] | 9 | 2018-09-21T05:36:12.000Z | 2021-11-15T15:14:36.000Z | src/tools/telemetry/telemetry/core/chrome/trace_event_importer.py | jxjnjjn/chromium | 435c1d02fd1b99001dc9e1e831632c894523580d | [
"Apache-2.0"
] | null | null | null | src/tools/telemetry/telemetry/core/chrome/trace_event_importer.py | jxjnjjn/chromium | 435c1d02fd1b99001dc9e1e831632c894523580d | [
"Apache-2.0"
] | 3 | 2018-11-28T14:54:13.000Z | 2020-07-02T07:36:07.000Z | # Copyright (c) 2012 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.
import json
from telemetry.core.chrome import timeline_model
def Import(data):
trace = json.loads(data) # pylint: disable=W0612
model = timeline_mo... | 24.875 | 72 | 0.753769 |
28bae4400303ef92fa24b355a7a3fa5ae1fde125 | 5,081 | py | Python | test_scan.py | rickithadi/sneakpeek | 9219ae2f7e059aff3028ad3d361a41675baf11dd | [
"MIT"
] | null | null | null | test_scan.py | rickithadi/sneakpeek | 9219ae2f7e059aff3028ad3d361a41675baf11dd | [
"MIT"
] | null | null | null | test_scan.py | rickithadi/sneakpeek | 9219ae2f7e059aff3028ad3d361a41675baf11dd | [
"MIT"
] | null | null | null | import sqlite3
import unittest
from unittest import mock, TestCase
import config
# Set ENV to "test" before loading scan module
config.ENV = "test"
from database import DatabaseActionEnum
from scan import scan
import test_qualify
# Constants
DB_NAME = config.DATABASE["NAME"]
print(DB_NAME)
DB_SUBMISSIONS_TABLE = co... | 36.553957 | 89 | 0.624483 |
7064bf3ffedde3115dbefb3983a2352606a1c8ff | 2,978 | py | Python | data/p3BR/R2/benchmark/startCirq193.py | UCLA-SEAL/QDiff | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | [
"BSD-3-Clause"
] | null | null | null | data/p3BR/R2/benchmark/startCirq193.py | UCLA-SEAL/QDiff | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | [
"BSD-3-Clause"
] | null | null | null | data/p3BR/R2/benchmark/startCirq193.py | UCLA-SEAL/QDiff | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=3
# total number=37
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | 35.452381 | 77 | 0.685024 |
6dd450e487482530ca3bf38eb5072f689c9cdd25 | 1,453 | py | Python | CKC_websocket_example.py | Dhee2211/CKC- | 6cd54cc36f076fba088bf8c52d52df25ed2c5f7c | [
"MIT"
] | null | null | null | CKC_websocket_example.py | Dhee2211/CKC- | 6cd54cc36f076fba088bf8c52d52df25ed2c5f7c | [
"MIT"
] | null | null | null | CKC_websocket_example.py | Dhee2211/CKC- | 6cd54cc36f076fba088bf8c52d52df25ed2c5f7c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#########################################################################################
# Cisco Kinetic for Cites Websocket Guide #
# By: Dheerendra Panwar #
# Description: This is just... | 33.022727 | 166 | 0.543703 |
3d04172a99894919db145bbc843d585d2e562221 | 1,441 | py | Python | kitsune/kbforums/tests/test_feeds.py | AndrewDVXI/kitsune | 84bd4fa60346681c3fc5a03b0b1540fd1335cee2 | [
"BSD-3-Clause"
] | 929 | 2015-01-04T08:08:51.000Z | 2022-03-31T06:20:44.000Z | kitsune/kbforums/tests/test_feeds.py | hafixo/kitsune | d7756872e16590eea1c6adaeb5bc78f83414d753 | [
"BSD-3-Clause"
] | 1,751 | 2015-01-02T00:04:37.000Z | 2022-03-31T10:24:30.000Z | kitsune/kbforums/tests/test_feeds.py | hixio-mh/kitsune | d7756872e16590eea1c6adaeb5bc78f83414d753 | [
"BSD-3-Clause"
] | 605 | 2015-01-01T14:08:36.000Z | 2022-03-28T15:39:45.000Z | import time
from nose.tools import eq_
from pyquery import PyQuery as pq
from kitsune.kbforums.feeds import ThreadsFeed, PostsFeed
from kitsune.kbforums.tests import KBForumTestCase, get, ThreadFactory
from kitsune.wiki.tests import DocumentFactory
class FeedSortingTestCase(KBForumTestCase):
def test_threads_so... | 36.025 | 76 | 0.657183 |
00b054ea2844b07b066c7c524b672eab897b3ca2 | 4,814 | py | Python | OLS/Code.py | QinganZhao/Introduction-to-Machine-Learning | 57edb519aaff3851e94c1917c9556180e0bb281a | [
"MIT"
] | 1 | 2019-01-08T02:53:51.000Z | 2019-01-08T02:53:51.000Z | OLS/Code.py | QinganZhao/Machine-Learning | 57edb519aaff3851e94c1917c9556180e0bb281a | [
"MIT"
] | null | null | null | OLS/Code.py | QinganZhao/Machine-Learning | 57edb519aaff3851e94c1917c9556180e0bb281a | [
"MIT"
] | null | null | null | import numpy as np
import scipy.io
import matplotlib.pyplot as plt
### Problem 6a ###
mdict = scipy.io.loadmat("a.mat")
x = mdict['x']
u = mdict['u']
# Compute a and b
b = x[0][1:]
A = np.vstack((x[0][:-1], u[0][:-1])).T
result = np.linalg.inv(A.T.dot(A)).dot(A.T).dot(b)
print("A:", result[0],"\nB:", result[1])
###... | 29.353659 | 103 | 0.663066 |
46f2001c8e2388d455b50bcc6d818349af63bcd6 | 4,051 | py | Python | earthisflat.py | tjczec01/earthisflat | cc8404545261e224f6a2acb2d5197a29b310afc4 | [
"MIT"
] | null | null | null | earthisflat.py | tjczec01/earthisflat | cc8404545261e224f6a2acb2d5197a29b310afc4 | [
"MIT"
] | null | null | null | earthisflat.py | tjczec01/earthisflat | cc8404545261e224f6a2acb2d5197a29b310afc4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 1 04:50:10 2020
@author: tjcze
"""
import math
import decimal
class pie():
def __init__(self, ndigit):
self.ndigit = int(ndigit)
decimal.getcontext().prec=(ndigit+1)
def chud(self):
... | 44.032609 | 246 | 0.50827 |
73776a41bbd07a003658774ccaf59558870fdbdb | 4,226 | py | Python | libact/query_strategies/hintsvm.py | crowdEEG/libact | 706ca2adfa3ee081d1f7a2f01aacb6c7c0efd5de | [
"BSD-2-Clause"
] | 3 | 2017-11-23T05:56:38.000Z | 2021-10-18T11:16:02.000Z | libact/query_strategies/hintsvm.py | crowdEEG/libact | 706ca2adfa3ee081d1f7a2f01aacb6c7c0efd5de | [
"BSD-2-Clause"
] | null | null | null | libact/query_strategies/hintsvm.py | crowdEEG/libact | 706ca2adfa3ee081d1f7a2f01aacb6c7c0efd5de | [
"BSD-2-Clause"
] | null | null | null | """Hinted Support Vector Machine
This module contains a class that implements Hinted Support Vector Machine, an
active learning algorithm.
To use this module, it is required to install the following package:
https://github.com/yangarbiter/hintsvm
"""
import numpy as np
from libact.base.interfaces import QueryStrat... | 31.303704 | 78 | 0.622101 |
047c398a67ed20237bd8cea38732e7e2351880e1 | 2,300 | py | Python | backend/pyrogram/raw/types/cdn_public_key.py | appheap/social-media-analyzer | 0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c | [
"Apache-2.0"
] | 5 | 2021-09-11T22:01:15.000Z | 2022-03-16T21:33:42.000Z | backend/pyrogram/raw/types/cdn_public_key.py | iamatlasss/social-media-analyzer | 429d1d2bbd8bfce80c50c5f8edda58f87ace668d | [
"Apache-2.0"
] | null | null | null | backend/pyrogram/raw/types/cdn_public_key.py | iamatlasss/social-media-analyzer | 429d1d2bbd8bfce80c50c5f8edda58f87ace668d | [
"Apache-2.0"
] | 3 | 2022-01-18T11:06:22.000Z | 2022-02-26T13:39:28.000Z | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2021 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | 30.666667 | 103 | 0.628261 |
2d1e0cb8fe489d8bb44083c94c9e08d6cd548525 | 483 | py | Python | controller/base_controller.py | vchalla3/MyOnlineJudge | d9b28cefbe6a63f3d95a7bffccdce9ba9aa55a90 | [
"MIT"
] | null | null | null | controller/base_controller.py | vchalla3/MyOnlineJudge | d9b28cefbe6a63f3d95a7bffccdce9ba9aa55a90 | [
"MIT"
] | null | null | null | controller/base_controller.py | vchalla3/MyOnlineJudge | d9b28cefbe6a63f3d95a7bffccdce9ba9aa55a90 | [
"MIT"
] | 1 | 2019-09-24T16:18:01.000Z | 2019-09-24T16:18:01.000Z | from . controller_mixin import ControllerMixin
from dto import JudgeContext, RuntimeContext, JudgeResult
from sandbox import SandboxMixin
# class implementation for controller interface
class BaseController(ControllerMixin):
def analyze(self, judge_context: JudgeContext) -> RuntimeContext:
pass
def c... | 30.1875 | 78 | 0.768116 |
42da8c540c384a376f39ba09196f662522a6f422 | 19,870 | py | Python | fermipy/jobs/scatter_gather.py | HarveyAdamW/fermipy | f1a07afa9089ed444af9a55e1a51b21dae7fbf57 | [
"BSD-3-Clause"
] | null | null | null | fermipy/jobs/scatter_gather.py | HarveyAdamW/fermipy | f1a07afa9089ed444af9a55e1a51b21dae7fbf57 | [
"BSD-3-Clause"
] | null | null | null | fermipy/jobs/scatter_gather.py | HarveyAdamW/fermipy | f1a07afa9089ed444af9a55e1a51b21dae7fbf57 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Abstract interface for parallel execution of multiple jobs.
The main class is `ScatterGather`, which can submit many instances
of a job with different configurations.
"""
from __future__ import absolute_import, division, print_function
import sys
imp... | 34.982394 | 89 | 0.58309 |
be11ca78993f2f744ef674da63abdaa57ec39c00 | 22,884 | py | Python | ovn-tester/ovn_workload.py | igsilya/ovn-heater | 9eb88237a32035ff6ef0e6874ca0ed306f95a575 | [
"Apache-2.0"
] | null | null | null | ovn-tester/ovn_workload.py | igsilya/ovn-heater | 9eb88237a32035ff6ef0e6874ca0ed306f95a575 | [
"Apache-2.0"
] | null | null | null | ovn-tester/ovn_workload.py | igsilya/ovn-heater | 9eb88237a32035ff6ef0e6874ca0ed306f95a575 | [
"Apache-2.0"
] | null | null | null | import ovn_context
import ovn_exceptions
import ovn_sandbox
import ovn_stats
import ovn_utils
import ovn_load_balancer as lb
import time
import netaddr
import random
import string
import copy
from collections import namedtuple
from collections import defaultdict
from randmac import RandMac
from datetime import datetime... | 40.006993 | 79 | 0.59334 |
8d6fd3003ff74f40580d52bc5ced3a6ba4afa3ec | 169,099 | py | Python | nova/tests/unit/conductor/test_conductor.py | bopopescu/nova-3 | 3ffa3cb17eaa3bb9891b769966aa9f9ac42c073f | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/conductor/test_conductor.py | bopopescu/nova-3 | 3ffa3cb17eaa3bb9891b769966aa9f9ac42c073f | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/conductor/test_conductor.py | bopopescu/nova-3 | 3ffa3cb17eaa3bb9891b769966aa9f9ac42c073f | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 IBM Corp.
# Copyright 2013 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | 48.78794 | 79 | 0.623777 |
121d950042f292ea7a300d7d0b9f1bc3318e9fd9 | 37,685 | py | Python | tests/lax_vmap_test.py | VolodyaCO/jax | 4d148999404a572ebac6dd1b58f2d93f73245360 | [
"Apache-2.0"
] | 2 | 2021-09-27T06:33:20.000Z | 2022-01-08T10:03:33.000Z | tests/lax_vmap_test.py | VolodyaCO/jax | 4d148999404a572ebac6dd1b58f2d93f73245360 | [
"Apache-2.0"
] | 6 | 2022-01-03T23:12:33.000Z | 2022-02-14T23:13:52.000Z | tests/lax_vmap_test.py | VolodyaCO/jax | 4d148999404a572ebac6dd1b58f2d93f73245360 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 45.513285 | 95 | 0.603927 |
4720aad72aab33be3af8e1abfd1bae228cb512fb | 13,698 | py | Python | sdk/python/pulumi_azure_nextgen/cache/v20190701/redis.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 31 | 2020-09-21T09:41:01.000Z | 2021-02-26T13:21:59.000Z | sdk/python/pulumi_azure_nextgen/cache/v20190701/redis.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 231 | 2020-09-21T09:38:45.000Z | 2021-03-01T11:16:03.000Z | sdk/python/pulumi_azure_nextgen/cache/v20190701/redis.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 4 | 2020-09-29T14:14:59.000Z | 2021-02-10T20:38:16.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | 44.187097 | 512 | 0.649365 |
bf8e8c725496b48ed2c781a82cdb8b0a921343f5 | 172 | py | Python | python_caltrain/__init__.py | thomas536/python-caltrain | 1488e3ac8ec6a390d2d2e2b5d5066fd173a86690 | [
"MIT"
] | null | null | null | python_caltrain/__init__.py | thomas536/python-caltrain | 1488e3ac8ec6a390d2d2e2b5d5066fd173a86690 | [
"MIT"
] | null | null | null | python_caltrain/__init__.py | thomas536/python-caltrain | 1488e3ac8ec6a390d2d2e2b5d5066fd173a86690 | [
"MIT"
] | null | null | null | from .caltrain import Caltrain, UnknownStationError, UnexpectedGTFSLayoutError
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
| 28.666667 | 78 | 0.843023 |
f831c187ec967f5837862c16f7d35ded79eb5130 | 2,593 | py | Python | examples/Test Output/Exporters/JSON/test_plan.py | Morgan-Stanley/Testplan | 9374d6e0da6ae9aa7a1b5e08b42cd21993485837 | [
"Apache-2.0"
] | null | null | null | examples/Test Output/Exporters/JSON/test_plan.py | Morgan-Stanley/Testplan | 9374d6e0da6ae9aa7a1b5e08b42cd21993485837 | [
"Apache-2.0"
] | null | null | null | examples/Test Output/Exporters/JSON/test_plan.py | Morgan-Stanley/Testplan | 9374d6e0da6ae9aa7a1b5e08b42cd21993485837 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# This plan contains tests that demonstrate failures as well.
"""
This example shows how to generate a JSON report of test results.
"""
import os
import sys
from testplan.testing.multitest import MultiTest, testsuite, testcase
from testplan import test_plan
@testsuite
class AlphaSuite:
@te... | 28.494505 | 77 | 0.693405 |
5751ee98cefb0f7516a930a52eefcf4393ad5868 | 47,651 | py | Python | official/vision/beta/modeling/layers/nn_layers.py | bengshaoye/models | 0befa5e17823199b443367b966024f786f2c0b19 | [
"Apache-2.0"
] | null | null | null | official/vision/beta/modeling/layers/nn_layers.py | bengshaoye/models | 0befa5e17823199b443367b966024f786f2c0b19 | [
"Apache-2.0"
] | null | null | null | official/vision/beta/modeling/layers/nn_layers.py | bengshaoye/models | 0befa5e17823199b443367b966024f786f2c0b19 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 36.967417 | 81 | 0.680951 |
3f34b4dc389cae137a478717a8356b301f05d8bc | 22,324 | py | Python | infertrade/algos/community/signals.py | parthgajjar4/infertrade | 2eebf2286f5cc669759de632970e4f8f8a40f232 | [
"Apache-2.0"
] | null | null | null | infertrade/algos/community/signals.py | parthgajjar4/infertrade | 2eebf2286f5cc669759de632970e4f8f8a40f232 | [
"Apache-2.0"
] | null | null | null | infertrade/algos/community/signals.py | parthgajjar4/infertrade | 2eebf2286f5cc669759de632970e4f8f8a40f232 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 42.360531 | 174 | 0.692349 |
f2ad4e649a79c800870442289dc7f25000c68859 | 362 | py | Python | tests/unit/utils/test_config.py | matthewgdv/sqlhandler | b82fd159195f6bb63175bb8a8d81fc421e7d5835 | [
"MIT"
] | null | null | null | tests/unit/utils/test_config.py | matthewgdv/sqlhandler | b82fd159195f6bb63175bb8a8d81fc421e7d5835 | [
"MIT"
] | null | null | null | tests/unit/utils/test_config.py | matthewgdv/sqlhandler | b82fd159195f6bb63175bb8a8d81fc421e7d5835 | [
"MIT"
] | null | null | null | # import pytest
class TestUrl:
pass
class TestConfig:
def test_add_connection(self): # synced
assert True
def test_add_mssql_connection_with_integrated_security(self): # synced
assert True
def test_set_default_connection(self): # synced
assert True
def test_generate... | 18.1 | 75 | 0.685083 |
f7f76a8dbbe03fcfd920e2164c035881009fb089 | 31 | py | Python | test/example/python/kwargs.py | Hirse/brackets-outline-list | a42568bb92d2b9a98f1d33d89f251c8b97b662b1 | [
"MIT"
] | 88 | 2015-01-03T11:20:13.000Z | 2021-08-19T19:15:40.000Z | test/example/python/kwargs.py | Hirse/brackets-outline-list | a42568bb92d2b9a98f1d33d89f251c8b97b662b1 | [
"MIT"
] | 101 | 2015-01-08T12:28:47.000Z | 2022-03-02T03:34:12.000Z | test/example/python/kwargs.py | Hirse/brackets-outline-list | a42568bb92d2b9a98f1d33d89f251c8b97b662b1 | [
"MIT"
] | 51 | 2015-01-03T11:20:14.000Z | 2021-02-23T07:09:59.000Z | def whoami(**kwargs):
pass
| 10.333333 | 21 | 0.612903 |
23d0c6a72caca167eca46170279e4afc820f8481 | 11,822 | py | Python | tests/system/action/poll/test_update.py | peb-adr/openslides-backend | f885105446760413f1bce3bde33241f7cb1205ac | [
"MIT"
] | null | null | null | tests/system/action/poll/test_update.py | peb-adr/openslides-backend | f885105446760413f1bce3bde33241f7cb1205ac | [
"MIT"
] | 19 | 2021-11-22T16:25:54.000Z | 2021-11-25T13:38:13.000Z | tests/system/action/poll/test_update.py | peb-adr/openslides-backend | f885105446760413f1bce3bde33241f7cb1205ac | [
"MIT"
] | null | null | null | import openslides_backend.action.actions # noqa
from openslides_backend.models.models import Poll
from openslides_backend.permissions.permissions import Permissions
from tests.system.action.base import BaseActionTestCase
class UpdatePollTestCase(BaseActionTestCase):
def setUp(self) -> None:
super().setUp... | 38.012862 | 88 | 0.557097 |
d4ce3ebf1b2bf072939ba8dddf9f4655a2eff017 | 215 | py | Python | one_fm/operations/doctype/post_schedule/test_post_schedule.py | askmetoo/One-FM | c93ed63695a3e62ee8129bd9adf563116b749030 | [
"MIT"
] | 16 | 2021-06-14T23:56:47.000Z | 2022-03-22T12:05:06.000Z | one_fm/operations/doctype/post_schedule/test_post_schedule.py | askmetoo/One-FM | c93ed63695a3e62ee8129bd9adf563116b749030 | [
"MIT"
] | 119 | 2020-08-17T16:27:45.000Z | 2022-03-28T12:42:56.000Z | one_fm/operations/doctype/post_schedule/test_post_schedule.py | askmetoo/One-FM | c93ed63695a3e62ee8129bd9adf563116b749030 | [
"MIT"
] | 12 | 2021-05-16T13:35:40.000Z | 2022-02-21T12:41:04.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2020, omar jaber and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestPostSchedule(unittest.TestCase):
pass
| 19.545455 | 49 | 0.762791 |
a8337f53b90960fe2a46677156dd38802c6289c5 | 146 | py | Python | starter_code/api_keys.py | hinaabidi/python-api-challenge | 475f3ba404bf310c22cdc8518fb8b63618210791 | [
"ADSL"
] | null | null | null | starter_code/api_keys.py | hinaabidi/python-api-challenge | 475f3ba404bf310c22cdc8518fb8b63618210791 | [
"ADSL"
] | null | null | null | starter_code/api_keys.py | hinaabidi/python-api-challenge | 475f3ba404bf310c22cdc8518fb8b63618210791 | [
"ADSL"
] | null | null | null | # OpenWeatherMap API Key
weather_api_key = "5deef6fb9707b0cf51cdd71210cdfcb9"
# Google API Key
g_key = "AIzaSyDoMvGwNn0Y4BJxqHNGhrshaGqft0FY2YU"
| 24.333333 | 52 | 0.842466 |
f8dd0083a728c55981cd8cf6833e9ca309a30475 | 766 | py | Python | src/gluonnlp/utils/config.py | leezu/gluon-nlp | 19de74c2b03f22dde8311a0225b4571c2deef0e4 | [
"Apache-2.0"
] | 2,461 | 2018-04-25T03:47:22.000Z | 2022-03-31T03:58:48.000Z | src/gluonnlp/utils/config.py | leezu/gluon-nlp | 19de74c2b03f22dde8311a0225b4571c2deef0e4 | [
"Apache-2.0"
] | 1,450 | 2018-04-25T16:14:25.000Z | 2022-02-24T21:02:57.000Z | src/gluonnlp/utils/config.py | leezu/gluon-nlp | 19de74c2b03f22dde8311a0225b4571c2deef0e4 | [
"Apache-2.0"
] | 578 | 2018-04-25T04:55:18.000Z | 2022-03-16T03:01:45.000Z | import yacs.config
class CfgNode(yacs.config.CfgNode):
def clone_merge(self, cfg_filename_or_other_cfg):
"""Create a new cfg by cloning and merging with the given cfg
Parameters
----------
cfg_filename_or_other_cfg
Returns
-------
"""
ret = self.c... | 28.37037 | 69 | 0.62141 |
550506540a56ea3ba44d39537a8d964204485c57 | 1,969 | py | Python | tests/trainers/test_fp16.py | madian9/mmf | 6db9048c848a178872d1aa1a14ee0009de703750 | [
"BSD-3-Clause"
] | null | null | null | tests/trainers/test_fp16.py | madian9/mmf | 6db9048c848a178872d1aa1a14ee0009de703750 | [
"BSD-3-Clause"
] | null | null | null | tests/trainers/test_fp16.py | madian9/mmf | 6db9048c848a178872d1aa1a14ee0009de703750 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
import unittest
import torch
from tests.test_utils import SimpleModel, skip_if_no_cuda
from tests.trainers.test_training_loop import TrainerTrainingLoopMock
class SimpleModelWithFp16Assert(SimpleModel):
def forward(self, sample_list):
batch_tensor = sam... | 33.948276 | 86 | 0.681564 |
2b6efc32109415a8b134511dcb9532ae83315aa5 | 1,384 | py | Python | BOOTCAMP/temp.py | vgdobon/python | d4826692856a4328d02c377a69ce73387baaf6e3 | [
"MIT"
] | null | null | null | BOOTCAMP/temp.py | vgdobon/python | d4826692856a4328d02c377a69ce73387baaf6e3 | [
"MIT"
] | null | null | null | BOOTCAMP/temp.py | vgdobon/python | d4826692856a4328d02c377a69ce73387baaf6e3 | [
"MIT"
] | null | null | null | import random
r = random.randint(1, 100)
print("Debes adivinar un número entre 1 y 100 que he elegido al azar.")
print("Tienes un número ilimitado de intentos (cuantos menos uses, mejor!).")
print("En el primer intento, te diré 'WARM!' si estás cerca (dist. < 10)")
print("Si te acercas más que con el intento anterior... | 30.086957 | 77 | 0.656792 |
a9c7ee8d535dbd43b35024c3d32580f7ce438e8a | 3,193 | py | Python | MyBlog/blog/migrations/0001_initial.py | Edward-WJY/MyBlog | 7c3f514fb92513c3128851762ddb8970223c9062 | [
"MIT"
] | null | null | null | MyBlog/blog/migrations/0001_initial.py | Edward-WJY/MyBlog | 7c3f514fb92513c3128851762ddb8970223c9062 | [
"MIT"
] | null | null | null | MyBlog/blog/migrations/0001_initial.py | Edward-WJY/MyBlog | 7c3f514fb92513c3128851762ddb8970223c9062 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-01-13 14:55
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 48.378788 | 138 | 0.577826 |
1591ad71ddee28083d70fd0217bcb5166325b661 | 2,361 | py | Python | monospacifier/allchars.py | kiwi0fruit/open-fonts | deb211dd1e08becf3b9300b02365cd79415c64d4 | [
"MIT"
] | 30 | 2018-02-21T10:19:45.000Z | 2022-02-23T15:45:34.000Z | monospacifier/allchars.py | kiwi0fruit/open-fonts | deb211dd1e08becf3b9300b02365cd79415c64d4 | [
"MIT"
] | 33 | 2018-02-09T15:38:46.000Z | 2021-12-08T21:40:26.000Z | monospacifier/allchars.py | kiwi0fruit/open-fonts | deb211dd1e08becf3b9300b02365cd79415c64d4 | [
"MIT"
] | 4 | 2019-11-18T03:14:07.000Z | 2022-02-23T03:59:00.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
# pylint: disable=too-few-public-methods
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | 29.5125 | 71 | 0.634053 |
2fbd0bab1f9e1c02c96f93591021eef48514b3dd | 3,038 | py | Python | api_sample/http_utils.py | suraj-testing2/Flowers_Toilet | 21c981531a505a8b74ee42c33a3f4d68ef72d7f3 | [
"Apache-2.0"
] | 22 | 2015-01-22T12:10:50.000Z | 2021-10-12T03:30:56.000Z | api_sample/http_utils.py | suraj-testing2/Flowers_Toilet | 21c981531a505a8b74ee42c33a3f4d68ef72d7f3 | [
"Apache-2.0"
] | null | null | null | api_sample/http_utils.py | suraj-testing2/Flowers_Toilet | 21c981531a505a8b74ee42c33a3f4d68ef72d7f3 | [
"Apache-2.0"
] | 17 | 2016-01-28T04:54:39.000Z | 2021-10-12T03:30:49.000Z | # Copyright 2014 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 ... | 34.134831 | 78 | 0.674457 |
78eb430844ddbffbe79e3c1e402a9a1e5f82ccb5 | 5,051 | py | Python | examples/getting_started/example_multiphase.py | Naassila/bioptim | 511e7ba315de5ca8c3bdcc85decd43bac30676b9 | [
"MIT"
] | null | null | null | examples/getting_started/example_multiphase.py | Naassila/bioptim | 511e7ba315de5ca8c3bdcc85decd43bac30676b9 | [
"MIT"
] | null | null | null | examples/getting_started/example_multiphase.py | Naassila/bioptim | 511e7ba315de5ca8c3bdcc85decd43bac30676b9 | [
"MIT"
] | null | null | null | """
This example is a trivial box that must superimpose one of its corner to a marker at the beginning of the movement and
a the at different marker at the end of each phase. Moreover a constraint on the rotation is imposed on the cube.
Finally, an objective for the transition continuity on the control is added. Please... | 33.673333 | 119 | 0.689764 |
8319e3200b78d1fa615aaa940beffc1a8cd46dc6 | 3,126 | py | Python | Trash/python/menu.py | stereocilio/Nengn | ec5dc6d06174a29c372da8f46265e96c8abd899d | [
"MIT"
] | null | null | null | Trash/python/menu.py | stereocilio/Nengn | ec5dc6d06174a29c372da8f46265e96c8abd899d | [
"MIT"
] | null | null | null | Trash/python/menu.py | stereocilio/Nengn | ec5dc6d06174a29c372da8f46265e96c8abd899d | [
"MIT"
] | 1 | 2019-12-19T18:22:27.000Z | 2019-12-19T18:22:27.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# menu.py
#----------------------------------------------------------------------- Módulos
import os
import sys
#-------------------------------------------------------------------- Constantes
LIMPIAR = "clear" if sys.platform.startswith("linux") else "cls"
#-----------... | 29.771429 | 81 | 0.50064 |
46779050f7273397c58a916a38a230b8018d4b5a | 5,313 | py | Python | portray/api.py | arman-ashrafian/portray | 721461ab12c9739a5aae0e48e48df4b23a54f939 | [
"MIT"
] | 1 | 2020-01-29T18:47:35.000Z | 2020-01-29T18:47:35.000Z | portray/api.py | arman-ashrafian/portray | 721461ab12c9739a5aae0e48e48df4b23a54f939 | [
"MIT"
] | null | null | null | portray/api.py | arman-ashrafian/portray | 721461ab12c9739a5aae0e48e48df4b23a54f939 | [
"MIT"
] | null | null | null | """This module defines the programmatic API that can be used to interact with `portray`
to generate and view documentation.
If you want to extend `portray` or use it directly from within Python - this is the place
to start.
"""
import os
import webbrowser
from typing import Optional
import hug
import mkdocs.... | 39.947368 | 99 | 0.673254 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.