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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9c245a520078fb55db53d97b8e520bef999698c6 | 9,538 | py | Python | api/base/settings/defaults.py | mattclark/osf.io | 7a362ceb6af3393d3d0423aafef336ee13277303 | [
"Apache-2.0"
] | null | null | null | api/base/settings/defaults.py | mattclark/osf.io | 7a362ceb6af3393d3d0423aafef336ee13277303 | [
"Apache-2.0"
] | null | null | null | api/base/settings/defaults.py | mattclark/osf.io | 7a362ceb6af3393d3d0423aafef336ee13277303 | [
"Apache-2.0"
] | null | null | null | """
Django settings for api project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
import os
from url... | 28.990881 | 123 | 0.698784 |
9c24aa3c9d37482f32e1338312a0a18d1b445f4a | 66 | py | Python | tests/__init__.py | GTedHa/gblackboard | 61c13ca69113019b8fc691acaa1953751f517347 | [
"MIT"
] | null | null | null | tests/__init__.py | GTedHa/gblackboard | 61c13ca69113019b8fc691acaa1953751f517347 | [
"MIT"
] | 3 | 2019-02-02T21:17:49.000Z | 2021-11-15T17:48:12.000Z | tests/__init__.py | GTedHa/gblackboard | 61c13ca69113019b8fc691acaa1953751f517347 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Unit test package for gblackboard."""
| 16.5 | 40 | 0.590909 |
9c25aa6fdaf3676c5515d5ada4dd3bbb5e192b55 | 25,225 | py | Python | src/fabricflow/fibc/api/fibcapis_pb2_grpc.py | RudSmith/beluganos | 7a3f8524e1d9d9313d96476c783a96096180654c | [
"Apache-2.0"
] | 119 | 2017-10-05T11:37:37.000Z | 2022-02-23T05:01:54.000Z | src/fabricflow/fibc/api/fibcapis_pb2_grpc.py | RudSmith/beluganos | 7a3f8524e1d9d9313d96476c783a96096180654c | [
"Apache-2.0"
] | 5 | 2017-10-23T00:49:09.000Z | 2020-08-17T14:58:16.000Z | src/fabricflow/fibc/api/fibcapis_pb2_grpc.py | RudSmith/beluganos | 7a3f8524e1d9d9313d96476c783a96096180654c | [
"Apache-2.0"
] | 17 | 2017-10-21T12:33:44.000Z | 2022-02-03T10:55:18.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import fibcapi_pb2 as fibcapi__pb2
import fibcapis_pb2 as fibcapis__pb2
def add_FIBCApApiServicer_to_server(servicer, server):
rpc_method_handlers = {
'Monitor': grpc.unary_stream_rpc_method_handler(
servicer.Monito... | 40.949675 | 83 | 0.745966 |
9c2605f1809d64546c20b13c622af83a1ba7e6e8 | 210 | py | Python | cymbology/identifiers/__init__.py | pmart123/security_id | 95087be9525ab8d2fd47baa93f83aaa30e76bb54 | [
"BSD-2-Clause"
] | 12 | 2015-09-15T17:17:39.000Z | 2015-09-16T18:18:52.000Z | cymbology/identifiers/__init__.py | MartinThoma/cymbology | 95087be9525ab8d2fd47baa93f83aaa30e76bb54 | [
"BSD-2-Clause"
] | 5 | 2017-09-15T21:22:07.000Z | 2021-08-19T09:15:59.000Z | cymbology/identifiers/__init__.py | pmart123/security_id | 95087be9525ab8d2fd47baa93f83aaa30e76bb54 | [
"BSD-2-Clause"
] | 1 | 2021-08-19T09:12:59.000Z | 2021-08-19T09:12:59.000Z | from cymbology.identifiers.sedol import Sedol
from cymbology.identifiers.cusip import Cusip, cusip_from_isin
from cymbology.identifiers.isin import Isin
__all__ = ('Sedol', 'Cusip', 'cusip_from_isin', 'Isin')
| 35 | 62 | 0.804762 |
9c26cf2339aa7a4ef06216de7bd0bf3332068b1a | 948 | py | Python | api/src/error_report/models.py | Noahffiliation/corpus-christi | c69ec88784de7d2e5acde3012926f307b43e38b3 | [
"MIT"
] | 35 | 2018-11-29T20:06:52.000Z | 2021-04-12T19:01:42.000Z | api/src/error_report/models.py | Noahffiliation/corpus-christi | c69ec88784de7d2e5acde3012926f307b43e38b3 | [
"MIT"
] | 529 | 2018-12-31T23:51:25.000Z | 2022-02-26T10:42:29.000Z | api/src/error_report/models.py | Noahffiliation/corpus-christi | c69ec88784de7d2e5acde3012926f307b43e38b3 | [
"MIT"
] | 10 | 2018-12-04T16:17:00.000Z | 2021-04-07T00:47:52.000Z | from marshmallow import Schema, fields
from marshmallow.validate import Range, Length
from sqlalchemy import Column, Integer, Boolean, DateTime
from ..db import Base
from ..shared.models import StringTypes
# ---- Error-report
| 29.625 | 77 | 0.728903 |
9c26d711887f84da99433b770df53c3bffc460c4 | 1,067 | py | Python | Python/Vowel-Substring/solution.py | arpitran/HackerRank_solutions | a3a77c858edd3955ea38530916db9051b1aa93f9 | [
"MIT"
] | null | null | null | Python/Vowel-Substring/solution.py | arpitran/HackerRank_solutions | a3a77c858edd3955ea38530916db9051b1aa93f9 | [
"MIT"
] | null | null | null | Python/Vowel-Substring/solution.py | arpitran/HackerRank_solutions | a3a77c858edd3955ea38530916db9051b1aa93f9 | [
"MIT"
] | null | null | null | #!/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'findSubstring' function below.
#
# The function is expected to return a STRING.
# The function accepts following parameters:
# 1. STRING s
# 2. INTEGER k
#
| 20.519231 | 118 | 0.626992 |
9c2757bc39980fb41a4822e37ad9596b865f8c2a | 24 | py | Python | nima/models/productos/constants.py | erichav/NIMA | 6ca845047e2d1764f07af76bfbbed9f1a82bc10f | [
"MIT"
] | null | null | null | nima/models/productos/constants.py | erichav/NIMA | 6ca845047e2d1764f07af76bfbbed9f1a82bc10f | [
"MIT"
] | null | null | null | nima/models/productos/constants.py | erichav/NIMA | 6ca845047e2d1764f07af76bfbbed9f1a82bc10f | [
"MIT"
] | 1 | 2018-11-18T03:58:53.000Z | 2018-11-18T03:58:53.000Z | COLLECTION = 'productos' | 24 | 24 | 0.791667 |
9c28065db1d863fb5b79db27e4909a5e2d4c5505 | 4,501 | py | Python | deepchem/metrics/score_function.py | hsjang001205/deepchem | 02fce35729826b1ef12a1cfa6519b491510217be | [
"MIT"
] | 1 | 2020-08-19T17:25:27.000Z | 2020-08-19T17:25:27.000Z | deepchem/metrics/score_function.py | swpper/deepchem | 510b9bf1805bc5a472c1a519700e6b128e06c651 | [
"MIT"
] | 1 | 2020-09-22T18:42:21.000Z | 2020-09-22T18:42:21.000Z | deepchem/metrics/score_function.py | swpper/deepchem | 510b9bf1805bc5a472c1a519700e6b128e06c651 | [
"MIT"
] | 1 | 2020-10-06T13:31:21.000Z | 2020-10-06T13:31:21.000Z | """Evaluation metrics."""
import numpy as np
from sklearn.metrics import matthews_corrcoef # noqa
from sklearn.metrics import recall_score # noqa
from sklearn.metrics import cohen_kappa_score
from sklearn.metrics import r2_score # noqa
from sklearn.metrics import mean_squared_error
from sklearn.metrics import mean_... | 27.278788 | 92 | 0.709842 |
9c2938d99163d6ef8085c36d2b63a4a8fe4a49b8 | 117,896 | py | Python | hvm/chains/base.py | hyperevo/py-helios-node | ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8 | [
"MIT"
] | null | null | null | hvm/chains/base.py | hyperevo/py-helios-node | ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8 | [
"MIT"
] | null | null | null | hvm/chains/base.py | hyperevo/py-helios-node | ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import operator
from collections import deque
import functools
from abc import (
ABCMeta,
abstractmethod
)
import rlp_cython as rlp
import time
import math
from uuid import UUID
from typing import ( # noqa: F401
Any,
Optional,
Callable,
cast,
Dict,
... | 46.989239 | 285 | 0.672601 |
9c29bc02bf13f97d4663f0060faece281922045c | 3,113 | py | Python | integreat_cms/api/v3/regions.py | Integreat/cms-django | ab0a89576ae901f4b30aa8e9c65ff43c44654a80 | [
"Apache-2.0"
] | 21 | 2018-10-26T20:10:45.000Z | 2020-10-22T09:41:46.000Z | integreat_cms/api/v3/regions.py | Integreat/cms-django | ab0a89576ae901f4b30aa8e9c65ff43c44654a80 | [
"Apache-2.0"
] | 392 | 2018-10-25T08:34:07.000Z | 2020-11-19T08:20:30.000Z | integreat_cms/api/v3/regions.py | digitalfabrik/integreat-cms | ab0a89576ae901f4b30aa8e9c65ff43c44654a80 | [
"Apache-2.0"
] | 23 | 2019-03-06T17:11:35.000Z | 2020-10-16T04:36:41.000Z | """
This module includes functions related to the regions API endpoint.
"""
from django.http import JsonResponse
from ...cms.models import Region
from ...cms.constants import region_status
from ..decorators import json_response
def transform_region(region):
"""
Function to create a JSON from a single region ... | 28.559633 | 106 | 0.673305 |
9c2a4913dd37bcfdaee2efb5a4e62c145d6170b0 | 10,964 | py | Python | cli/src/ansible/AnsibleVarsGenerator.py | romsok24/epiphany | f058984939561fc8d51288765976118ae12e6c32 | [
"Apache-2.0"
] | null | null | null | cli/src/ansible/AnsibleVarsGenerator.py | romsok24/epiphany | f058984939561fc8d51288765976118ae12e6c32 | [
"Apache-2.0"
] | null | null | null | cli/src/ansible/AnsibleVarsGenerator.py | romsok24/epiphany | f058984939561fc8d51288765976118ae12e6c32 | [
"Apache-2.0"
] | null | null | null | import copy
import os
from cli.src.Config import Config
from cli.src.helpers.build_io import (get_ansible_path,
get_ansible_path_for_build,
get_ansible_vault_path)
from cli.src.helpers.data_loader import (load_all_schema_objs_from_directory,
... | 46.854701 | 124 | 0.671105 |
9c2b5cff1157d02c2e830e9f89af05add8167ae9 | 247,996 | py | Python | Python/4 kyu/Snail/test_snail.py | newtonsspawn/codewars_challenges | 62b20d4e729c8ba79eac7cae6a179af57abd45d4 | [
"MIT"
] | 3 | 2020-05-29T23:29:35.000Z | 2021-08-12T03:16:44.000Z | Python/4 kyu/Snail/test_snail.py | newtonsspawn/codewars_challenges | 62b20d4e729c8ba79eac7cae6a179af57abd45d4 | [
"MIT"
] | null | null | null | Python/4 kyu/Snail/test_snail.py | newtonsspawn/codewars_challenges | 62b20d4e729c8ba79eac7cae6a179af57abd45d4 | [
"MIT"
] | 3 | 2020-05-22T12:14:55.000Z | 2021-04-15T12:52:42.000Z | from unittest import TestCase
from snail import snail
| 69.447214 | 80 | 0.361711 |
9c2c850b8212d47e83a1fb645622cfcbef2e844f | 7,385 | py | Python | python/tink/jwt/_raw_jwt.py | cuonglm/tink | df5fa42e45b4d43aac6c3506ceba2956b79a62b8 | [
"Apache-2.0"
] | null | null | null | python/tink/jwt/_raw_jwt.py | cuonglm/tink | df5fa42e45b4d43aac6c3506ceba2956b79a62b8 | [
"Apache-2.0"
] | null | null | null | python/tink/jwt/_raw_jwt.py | cuonglm/tink | df5fa42e45b4d43aac6c3506ceba2956b79a62b8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 34.189815 | 80 | 0.677319 |
9c2cb9849ca550c888fd888e8fc11648dd0f1d72 | 2,501 | py | Python | plenum/test/view_change/test_no_instance_change_before_node_is_ready.py | evernym/indy-plenum | dc390caa16c0b15dcc549d557ede6f64c0c1b842 | [
"Apache-2.0"
] | null | null | null | plenum/test/view_change/test_no_instance_change_before_node_is_ready.py | evernym/indy-plenum | dc390caa16c0b15dcc549d557ede6f64c0c1b842 | [
"Apache-2.0"
] | null | null | null | plenum/test/view_change/test_no_instance_change_before_node_is_ready.py | evernym/indy-plenum | dc390caa16c0b15dcc549d557ede6f64c0c1b842 | [
"Apache-2.0"
] | 2 | 2017-12-13T21:14:54.000Z | 2021-06-06T15:48:03.000Z | import pytest
from plenum.server.view_change.view_changer import ViewChanger
from stp_core.common.log import getlogger
from plenum.test.pool_transactions.helper import start_not_added_node, add_started_node
logger = getlogger()
def test_no_instance_change_on_primary_disconnection_for_not_ready_node(
loope... | 41 | 111 | 0.692123 |
9c2cc3afd9b6c1b92e54b37f0abed285dd347905 | 288 | py | Python | src/cache/requests_cache_abstract.py | tomaszkingukrol/rest-api-cache-proxy | 50738f168f36d285b9a924d9f9d106a65b5617c8 | [
"Apache-2.0"
] | null | null | null | src/cache/requests_cache_abstract.py | tomaszkingukrol/rest-api-cache-proxy | 50738f168f36d285b9a924d9f9d106a65b5617c8 | [
"Apache-2.0"
] | null | null | null | src/cache/requests_cache_abstract.py | tomaszkingukrol/rest-api-cache-proxy | 50738f168f36d285b9a924d9f9d106a65b5617c8 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractclassmethod
from model.response import ResponseModel
| 22.153846 | 67 | 0.743056 |
9c2cdfaea02de247b5a0a427743330312fb34eb8 | 16,904 | py | Python | dialogue-engine/test/programytest/config/file/test_json.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 104 | 2020-03-30T09:40:00.000Z | 2022-03-06T22:34:25.000Z | dialogue-engine/test/programytest/config/file/test_json.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 25 | 2020-06-12T01:36:35.000Z | 2022-02-19T07:30:44.000Z | dialogue-engine/test/programytest/config/file/test_json.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 10 | 2020-04-02T23:43:56.000Z | 2021-05-14T13:47:01.000Z | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
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, distri... | 31.245841 | 129 | 0.562885 |
9c2d9e0a79b8d15e42eda3577f2435526ea67e86 | 1,688 | py | Python | searching/jump_search.py | magnusrodseth/data-structures-and-algorithms | 45dfdc0859683d5c76b82b87f415e2c0cdbc15e8 | [
"MIT"
] | null | null | null | searching/jump_search.py | magnusrodseth/data-structures-and-algorithms | 45dfdc0859683d5c76b82b87f415e2c0cdbc15e8 | [
"MIT"
] | null | null | null | searching/jump_search.py | magnusrodseth/data-structures-and-algorithms | 45dfdc0859683d5c76b82b87f415e2c0cdbc15e8 | [
"MIT"
] | null | null | null | import math
from typing import List
def jump_search(array: List[int], value: int) -> int:
"""
Performs a jump search on a list of integers.
:param array: is the array to search.
:param value: is the value to search.
:return: the index of the value, or -1 if it doesn't exist.'
"""
if len(ar... | 28.610169 | 93 | 0.650474 |
9c2e7f928242ca7ff6d49135cef52a68297eec05 | 3,484 | py | Python | pincer/objects/message/sticker.py | mjneff2/Pincer | a11bc3e4bad319fdf927d913c58c933576ec7c99 | [
"MIT"
] | null | null | null | pincer/objects/message/sticker.py | mjneff2/Pincer | a11bc3e4bad319fdf927d913c58c933576ec7c99 | [
"MIT"
] | null | null | null | pincer/objects/message/sticker.py | mjneff2/Pincer | a11bc3e4bad319fdf927d913c58c933576ec7c99 | [
"MIT"
] | null | null | null | # Copyright Pincer 2021-Present
# Full MIT License can be found in `LICENSE` at the project root.
from __future__ import annotations
from dataclasses import dataclass
from enum import IntEnum
from typing import List, Optional, TYPE_CHECKING
from ...utils.api_object import APIObject
from ...utils.types import MISSING... | 21.506173 | 72 | 0.661022 |
9c2f576718895138632a90d08831ce15358276a1 | 147 | py | Python | app/core/utils.py | yayunl/llfselfhelp | 55994003ad51e1664a733c84ed6afcb9f28b6499 | [
"MIT"
] | null | null | null | app/core/utils.py | yayunl/llfselfhelp | 55994003ad51e1664a733c84ed6afcb9f28b6499 | [
"MIT"
] | 4 | 2021-04-08T21:37:08.000Z | 2021-09-22T19:31:17.000Z | app/core/utils.py | yayunl/llfselfhelp | 55994003ad51e1664a733c84ed6afcb9f28b6499 | [
"MIT"
] | null | null | null | from django.views.generic import \
UpdateView as BaseUpdateView
| 18.375 | 41 | 0.782313 |
9c2faa49ef48fc93a9aff0f5610c889ba1ee0f3a | 3,219 | py | Python | demo/test_bug_3d.py | zhanwj/multi-task-pytorch | 7d57645ec8be0ca0c258cfa99fb788e3cd37f106 | [
"MIT"
] | 2 | 2019-06-11T16:16:11.000Z | 2020-07-21T10:34:40.000Z | demo/test_bug_3d.py | zhanwj/multi-task-pytorch | 7d57645ec8be0ca0c258cfa99fb788e3cd37f106 | [
"MIT"
] | null | null | null | demo/test_bug_3d.py | zhanwj/multi-task-pytorch | 7d57645ec8be0ca0c258cfa99fb788e3cd37f106 | [
"MIT"
] | 2 | 2019-05-21T11:07:29.000Z | 2019-06-11T16:17:02.000Z | import torch
import lib.modeling.resnet as resnet
import lib.modeling.semseg_heads as snet
import torch.nn as nn
import torch.optim as optim
import utils.resnet_weights_helper as resnet_utils
from torch.autograd import Variable
from roi_data.loader import RoiDataLoader, MinibatchSampler, collate_minibatch, collate_mini... | 38.321429 | 113 | 0.695247 |
9c2fcf2ba9545bbf4f412026ea905a2899fef624 | 2,511 | py | Python | regenesis/modelgen.py | crijke/regenesis | e53a0c6302aa458ff9ae95f573d5594351e5434c | [
"MIT"
] | 16 | 2015-04-09T14:40:53.000Z | 2021-07-13T15:03:35.000Z | regenesis/modelgen.py | crijke/regenesis | e53a0c6302aa458ff9ae95f573d5594351e5434c | [
"MIT"
] | 1 | 2018-06-25T07:51:18.000Z | 2018-06-25T07:51:18.000Z | regenesis/modelgen.py | crijke/regenesis | e53a0c6302aa458ff9ae95f573d5594351e5434c | [
"MIT"
] | 3 | 2015-12-20T18:24:21.000Z | 2018-06-24T16:57:25.000Z | import json
from regenesis.queries import get_cubes, get_all_dimensions, get_dimensions
from pprint import pprint
if __name__ == '__main__':
with open('model.json', 'wb') as fh:
model = generate_model()
json.dump(model, fh, indent=2)
| 30.253012 | 78 | 0.502589 |
9c304e47e988cc3ac6451c94e5e66110773b8469 | 2,909 | py | Python | tests/components/evil_genius_labs/test_light.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | tests/components/evil_genius_labs/test_light.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | 24,710 | 2016-04-13T08:27:26.000Z | 2020-03-02T12:59:13.000Z | tests/components/evil_genius_labs/test_light.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Test Evil Genius Labs light."""
from unittest.mock import patch
import pytest
from homeassistant.components.light import (
ATTR_COLOR_MODE,
ATTR_SUPPORTED_COLOR_MODES,
ColorMode,
LightEntityFeature,
)
from homeassistant.const import ATTR_SUPPORTED_FEATURES
| 33.056818 | 86 | 0.645583 |
9c30953c84b77a7d66d7d91568a3c0c17191380f | 4,410 | py | Python | python_on_whales/download_binaries.py | joshbode/python-on-whales | 4d5b8b4c5c6dc3ac0af5713e4fe5a72788f44cda | [
"MIT"
] | null | null | null | python_on_whales/download_binaries.py | joshbode/python-on-whales | 4d5b8b4c5c6dc3ac0af5713e4fe5a72788f44cda | [
"MIT"
] | null | null | null | python_on_whales/download_binaries.py | joshbode/python-on-whales | 4d5b8b4c5c6dc3ac0af5713e4fe5a72788f44cda | [
"MIT"
] | null | null | null | import platform
import shutil
import tempfile
import warnings
from pathlib import Path
import requests
from tqdm import tqdm
DOCKER_VERSION = "20.10.5"
BUILDX_VERSION = "0.5.1"
CACHE_DIR = Path.home() / ".cache" / "python-on-whales"
TEMPLATE_CLI = (
"https://download.docker.com/{os}/static/stable/{arch}/docker-... | 34.186047 | 110 | 0.664172 |
9c336d5aaf0a0461822389d24ee86c2449c67183 | 4,415 | py | Python | reinvent-2019/connected-photo-booth/lambda_code/Cerebro_GetQRCode.py | chriscoombs/aws-builders-fair-projects | eee405931030b833fa8c51e906c73d09ce051bcd | [
"Apache-2.0"
] | null | null | null | reinvent-2019/connected-photo-booth/lambda_code/Cerebro_GetQRCode.py | chriscoombs/aws-builders-fair-projects | eee405931030b833fa8c51e906c73d09ce051bcd | [
"Apache-2.0"
] | null | null | null | reinvent-2019/connected-photo-booth/lambda_code/Cerebro_GetQRCode.py | chriscoombs/aws-builders-fair-projects | eee405931030b833fa8c51e906c73d09ce051bcd | [
"Apache-2.0"
] | null | null | null | import boto3
import json
import os
import logging
from contextlib import closing
from boto3.dynamodb.conditions import Key, Attr
from botocore.exceptions import ClientError
from random import shuffle
import time
import pyqrcode
import png
__BUCKET_NAME__ = "project-cerebro"
dynamo = boto3.client('dynamodb')
logg... | 30.034014 | 115 | 0.622877 |
9c34eed08700cdd8cf4f29ef427c58eea1da7c35 | 4,241 | py | Python | dependencies/svgwrite/tests/test_drawing.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 21 | 2015-01-16T05:10:02.000Z | 2021-06-11T20:48:15.000Z | dependencies/svgwrite/tests/test_drawing.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 1 | 2019-09-09T12:10:27.000Z | 2020-05-22T10:12:14.000Z | dependencies/svgwrite/tests/test_drawing.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 2 | 2015-05-03T04:51:08.000Z | 2018-08-24T08:28:53.000Z | #!/usr/bin/env python
#coding:utf-8
# Author: mozman --<mozman@gmx.at>
# Purpose: test drawing module
# Created: 11.09.2010
# Copyright (C) 2010, Manfred Moitzi
# License: GPLv3
from __future__ import unicode_literals
import os
import unittest
from io import StringIO
from svgwrite.drawing import Drawing... | 38.908257 | 110 | 0.557887 |
9c36070009525ecb4d0b9ecb8aa020fd7b1f9bca | 1,480 | py | Python | src/cms/views/error_handler/error_handler.py | digitalfabrik/coldaid-backend | b769510570d5921e30876565263813c0362994e2 | [
"Apache-2.0"
] | 4 | 2019-12-05T16:45:17.000Z | 2020-05-09T07:26:34.000Z | src/cms/views/error_handler/error_handler.py | digitalfabrik/coldaid-backend | b769510570d5921e30876565263813c0362994e2 | [
"Apache-2.0"
] | 56 | 2019-12-05T12:31:37.000Z | 2021-01-07T15:47:45.000Z | src/cms/views/error_handler/error_handler.py | digitalfabrik/coldaid-backend | b769510570d5921e30876565263813c0362994e2 | [
"Apache-2.0"
] | 2 | 2019-12-11T09:52:26.000Z | 2020-05-09T07:26:38.000Z | from django.shortcuts import render
from django.utils.translation import ugettext as _
# pylint: disable=unused-argument
| 37 | 78 | 0.686486 |
9c36da1c5a18d69672ff02d87de44158f45e8811 | 738 | py | Python | examples/ex3/app/models.py | trym-inc/django-msg | 0b306524515a8fb4840d1a2ef8cf20901b64bc11 | [
"MIT"
] | 7 | 2018-02-28T19:03:48.000Z | 2020-12-21T01:15:34.000Z | examples/ex3/app/models.py | trym-inc/django-msg | 0b306524515a8fb4840d1a2ef8cf20901b64bc11 | [
"MIT"
] | null | null | null | examples/ex3/app/models.py | trym-inc/django-msg | 0b306524515a8fb4840d1a2ef8cf20901b64bc11 | [
"MIT"
] | null | null | null | from typing import NamedTuple
from django.contrib.auth.models import AbstractUser
from django.db import models
from msg.models import Msg
| 28.384615 | 65 | 0.612466 |
9c3934843ce267b0dc897db0634f69b0dfaade62 | 280 | py | Python | Data_Structures/2d_array_ds.py | csixteen/HackerRank | 3ef6fa48599341f481b9e266c69df2d449a7b313 | [
"MIT"
] | 4 | 2018-04-19T20:32:54.000Z | 2020-04-21T12:28:00.000Z | Data_Structures/2d_array_ds.py | csixteen/HackerRank | 3ef6fa48599341f481b9e266c69df2d449a7b313 | [
"MIT"
] | null | null | null | Data_Structures/2d_array_ds.py | csixteen/HackerRank | 3ef6fa48599341f481b9e266c69df2d449a7b313 | [
"MIT"
] | null | null | null | matrix = [list(map(int, input().split())) for _ in range(6)]
max_sum = None
for i in range(4):
for j in range(4):
s = sum(matrix[i][j:j+3]) + matrix[i+1][j+1] + sum(matrix[i+2][j:j+3])
if max_sum is None or s > max_sum:
max_sum = s
print(max_sum)
| 28 | 78 | 0.557143 |
9c3a00aad13ad525c3f1adcd91ff20ba8d288a5b | 6,558 | py | Python | tfx/examples/chicago_taxi_pipeline/serving/chicago_taxi_client.py | pingsutw/tfx | bf0d1d74e3f6ea429989fc7b80b82bea08077857 | [
"Apache-2.0"
] | 1 | 2021-07-21T15:54:20.000Z | 2021-07-21T15:54:20.000Z | tfx/examples/chicago_taxi_pipeline/serving/chicago_taxi_client.py | pingsutw/tfx | bf0d1d74e3f6ea429989fc7b80b82bea08077857 | [
"Apache-2.0"
] | 1 | 2020-08-28T09:59:13.000Z | 2020-08-28T09:59:13.000Z | tfx/examples/chicago_taxi_pipeline/serving/chicago_taxi_client.py | pingsutw/tfx | bf0d1d74e3f6ea429989fc7b80b82bea08077857 | [
"Apache-2.0"
] | 1 | 2020-11-06T11:44:33.000Z | 2020-11-06T11:44:33.000Z | # Lint as: python2, python3
# Copyright 2019 Google LLC. 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | 33.630769 | 105 | 0.745502 |
9c3a1a0942bfa4b3696876f16d5ec82b36b6c9bd | 23,156 | py | Python | PyVideo/main.py | BlackIQ/Cute | 5835e989d661f23b04b6e436589c6e844167522e | [
"Apache-2.0"
] | 5 | 2021-11-21T10:59:47.000Z | 2022-01-16T11:57:14.000Z | PyVideo/main.py | BlackIQ/Cute | 5835e989d661f23b04b6e436589c6e844167522e | [
"Apache-2.0"
] | null | null | null | PyVideo/main.py | BlackIQ/Cute | 5835e989d661f23b04b6e436589c6e844167522e | [
"Apache-2.0"
] | null | null | null | from PyQt5.QtCore import (pyqtSignal, pyqtSlot, Q_ARG, QAbstractItemModel,
QFileInfo, qFuzzyCompare, QMetaObject, QModelIndex, QObject, Qt,
QThread, QTime, QUrl)
from PyQt5.QtGui import QColor, qGray, QImage, QPainter, QPalette
from PyQt5.QtMultimedia import (QAbstractVideoBuffer, QMediaContent,
... | 35.734568 | 217 | 0.634738 |
9c3a31af53788d8bf47df143a1f5099537838024 | 1,234 | py | Python | tests/snapshot/periodic.py | Uornca/mirheo | 162c722ffa27c02e1f5b0d1866816e44c2393f0f | [
"MIT"
] | 22 | 2019-07-17T13:06:41.000Z | 2021-12-15T14:45:24.000Z | tests/snapshot/periodic.py | Uornca/mirheo | 162c722ffa27c02e1f5b0d1866816e44c2393f0f | [
"MIT"
] | 63 | 2019-06-26T13:30:47.000Z | 2021-02-23T10:13:10.000Z | tests/snapshot/periodic.py | Uornca/mirheo | 162c722ffa27c02e1f5b0d1866816e44c2393f0f | [
"MIT"
] | 9 | 2019-10-11T07:32:19.000Z | 2021-05-17T11:25:35.000Z | #!/usr/bin/env python
"""Test checkpoint-like periodic snapshots.
We test that there are that many folders and that the currentStep changes.
"""
import mirheo as mir
u = mir.Mirheo(nranks=(1, 1, 1), domain=(4, 6, 8), debug_level=3,
log_filename='log', no_splash=True,
checkpoint_every=1... | 34.277778 | 98 | 0.71799 |
9c3aa677e610f9e2bf81b41d5bae0ca83fbbae6f | 3,632 | py | Python | tools/resource_prefetch_predictor/generate_database.py | xzhan96/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-01-07T18:51:03.000Z | 2021-01-07T18:51:03.000Z | tools/resource_prefetch_predictor/generate_database.py | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/resource_prefetch_predictor/generate_database.py | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
#
# Copyright 2016 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.
"""Loads a set of web pages several times on a device, and extracts the
predictor database.
"""
import argparse
import logging
import os... | 32.141593 | 80 | 0.704295 |
9c3ae120bfd666dab5412a24ae65101fc3c9e81d | 9,947 | py | Python | palm_wrapper/job_submission/domain.py | madeline-scyphers/palm | 0ecf9eb49f66b86f284bac9506c9570159aba02b | [
"MIT"
] | null | null | null | palm_wrapper/job_submission/domain.py | madeline-scyphers/palm | 0ecf9eb49f66b86f284bac9506c9570159aba02b | [
"MIT"
] | 6 | 2021-12-07T15:59:42.000Z | 2021-12-07T16:03:45.000Z | palm_wrapper/job_submission/domain.py | madeline-scyphers/palm | 0ecf9eb49f66b86f284bac9506c9570159aba02b | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Optional
from xml import dom
import numpy as np
import pandas as pd
from .utils import get_factors_rev
def setup_domain(cfg):
domain_x, domain_y = cfg["domain"]["x"], (round(cfg["domain"]["y"] * cfg["domain"]["urban_ratio"]))
plot_footprint, plo... | 38.405405 | 138 | 0.6037 |
9c3c80f9f134a4c7e10b07a2a070fce993cd44e3 | 373 | py | Python | zad5.py | Alba126/Laba21 | ce5735ca223d92287efa64bc3347f4356234b399 | [
"MIT"
] | null | null | null | zad5.py | Alba126/Laba21 | ce5735ca223d92287efa64bc3347f4356234b399 | [
"MIT"
] | null | null | null | zad5.py | Alba126/Laba21 | ce5735ca223d92287efa64bc3347f4356234b399 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- config: utf-8 -*-
from tkinter import *
from random import random
root = Tk()
root['bg'] = 'white'
root.title('crown')
img = PhotoImage(file='crown.png')
bt1 = Button(image=img, command=on_click)
bt1.place(relx=0.5, rely=0.5, anchor=CENTER)
root.mainloop()
| 16.217391 | 44 | 0.643432 |
9c3e76ea8723f85b50595507d895179df16ec7b9 | 341 | py | Python | tests/importer/utils/test_utils.py | HumanCellAtlas/ingest-common | 6a230f9606f64cd787b67c143854db36e012a2b7 | [
"Apache-2.0"
] | null | null | null | tests/importer/utils/test_utils.py | HumanCellAtlas/ingest-common | 6a230f9606f64cd787b67c143854db36e012a2b7 | [
"Apache-2.0"
] | null | null | null | tests/importer/utils/test_utils.py | HumanCellAtlas/ingest-common | 6a230f9606f64cd787b67c143854db36e012a2b7 | [
"Apache-2.0"
] | null | null | null | from openpyxl import Workbook
| 24.357143 | 73 | 0.73607 |
9c3ee51c4543a5b2653184ca78a98a29af6b98cb | 2,114 | py | Python | test/test_import_stats.py | WBobby/pytorch | 655960460ccca936fa5c06df6bbafd25b5582115 | [
"Intel"
] | 24 | 2020-11-02T21:25:12.000Z | 2022-03-17T07:20:33.000Z | test/test_import_stats.py | WBobby/pytorch | 655960460ccca936fa5c06df6bbafd25b5582115 | [
"Intel"
] | 1 | 2019-08-01T00:17:43.000Z | 2019-09-12T01:31:53.000Z | test/test_import_stats.py | WBobby/pytorch | 655960460ccca936fa5c06df6bbafd25b5582115 | [
"Intel"
] | 12 | 2020-11-06T05:00:37.000Z | 2022-01-30T19:17:36.000Z | import subprocess
import sys
import unittest
import pathlib
from torch.testing._internal.common_utils import TestCase, run_tests, IS_LINUX, IS_IN_CI
REPO_ROOT = pathlib.Path(__file__).resolve().parent.parent
try:
# Just in case PyTorch was not built in 'develop' mode
sys.path.append(str(REPO_ROOT))
from... | 31.088235 | 116 | 0.637181 |
9c3ffd59fa98b323892e6f69d6dc5851e106b046 | 1,365 | py | Python | post_office/validators.py | fasih/django-post_office | e4086527a48bc0d1e5b8e0dfe9c27ab3a6260224 | [
"MIT"
] | 661 | 2015-01-07T09:35:14.000Z | 2022-03-24T11:45:33.000Z | post_office/validators.py | fasih/django-post_office | e4086527a48bc0d1e5b8e0dfe9c27ab3a6260224 | [
"MIT"
] | 267 | 2015-01-10T22:45:08.000Z | 2022-03-31T11:49:52.000Z | post_office/validators.py | fasih/django-post_office | e4086527a48bc0d1e5b8e0dfe9c27ab3a6260224 | [
"MIT"
] | 238 | 2015-01-10T22:53:39.000Z | 2022-03-24T12:56:16.000Z | from django.core.exceptions import ValidationError
from django.core.validators import validate_email
from django.template import Template, TemplateSyntaxError, TemplateDoesNotExist
from django.utils.encoding import force_str
def validate_email_with_name(value):
"""
Validate email address.
Both "Recipient... | 28.4375 | 80 | 0.677656 |
9c429be32392440a110878d04d24fb43356f3b77 | 1,144 | py | Python | paperhub/input.py | GiuseppeBaldini/PaperHub | 5efdee1a0374c995a6717a4baee2106df808af12 | [
"MIT"
] | null | null | null | paperhub/input.py | GiuseppeBaldini/PaperHub | 5efdee1a0374c995a6717a4baee2106df808af12 | [
"MIT"
] | 1 | 2020-03-27T12:05:14.000Z | 2020-03-28T01:10:20.000Z | paperhub/input.py | GiuseppeBaldini/PaperHub | 5efdee1a0374c995a6717a4baee2106df808af12 | [
"MIT"
] | null | null | null | # Input DOI / URL
import re
import sys
# Pyperclip is not built-in, check and download if needed
try:
import pyperclip
except (ImportError, ModuleNotFoundError):
print('Pyperclip module not found. Please download it.')
sys.exit(0)
# Regex for links
link_regex = re.compile(r'''(
http[s]?://
(?:[a-... | 23.346939 | 85 | 0.581294 |
9c42cb2bbf7ba2f9f5bbb8435dcd766270fb6340 | 6,338 | py | Python | main.py | chillum1718/EffcientNetV2 | 4338652454185db648a6ea5df04528bcafb24ed2 | [
"Apache-2.0"
] | null | null | null | main.py | chillum1718/EffcientNetV2 | 4338652454185db648a6ea5df04528bcafb24ed2 | [
"Apache-2.0"
] | null | null | null | main.py | chillum1718/EffcientNetV2 | 4338652454185db648a6ea5df04528bcafb24ed2 | [
"Apache-2.0"
] | null | null | null | import argparse
import csv
import os
import torch
import tqdm
from torch import distributed
from torch.utils import data
from torchvision import datasets
from torchvision import transforms
from nets import nn
from utils import util
data_dir = os.path.join('..', 'Dataset', 'IMAGENET')
if __name__ == '__main__... | 36.011364 | 100 | 0.570369 |
9c42d1030d5bf12bec44656b0c6d8328e6f4647e | 2,897 | py | Python | cgbind/esp.py | duartegroup/cgbind | 8c2369d4c49e8b008fc3951719d99e0c4f6b6b16 | [
"MIT"
] | 7 | 2020-06-08T16:18:56.000Z | 2021-01-28T09:59:16.000Z | cgbind/esp.py | duartegroup/cgbind | 8c2369d4c49e8b008fc3951719d99e0c4f6b6b16 | [
"MIT"
] | null | null | null | cgbind/esp.py | duartegroup/cgbind | 8c2369d4c49e8b008fc3951719d99e0c4f6b6b16 | [
"MIT"
] | 2 | 2020-11-16T04:52:43.000Z | 2021-06-04T05:07:29.000Z | import numpy as np
from time import time
from cgbind.atoms import get_atomic_number
from cgbind.log import logger
from cgbind.constants import Constants
from cgbind.exceptions import CgbindCritical
def get_esp_cube_lines(charges, atoms):
"""
From a list of charges and a set of xyzs create the electrostatic po... | 38.118421 | 112 | 0.661374 |
9c43dad16fef03fbc908a7aa39b6c4226fc2883c | 6,051 | py | Python | codes/test_specular.py | mcdenoising/AdvMCDenoise | 4ba00098c2d0f50a7dfc1e345b5e50a20768d7e8 | [
"MIT"
] | 35 | 2019-11-04T06:49:39.000Z | 2022-01-13T07:53:37.000Z | codes/test_specular.py | qbhan/Adversarial_MCdenoising | a99bf312baf2430d750d70a79270aca0720532aa | [
"MIT"
] | 1 | 2019-11-28T22:33:11.000Z | 2019-11-28T22:33:11.000Z | codes/test_specular.py | qbhan/Adversarial_MCdenoising | a99bf312baf2430d750d70a79270aca0720532aa | [
"MIT"
] | 8 | 2019-11-08T04:58:08.000Z | 2020-11-03T07:49:58.000Z | import os
import sys
import logging
import time
import argparse
import numpy as np
from collections import OrderedDict
import scripts.options as option
import utils.util as util
from data.util import bgr2ycbcr
from data import create_dataset, create_dataloader
from models import create_model
# options
parser = argpar... | 44.822222 | 107 | 0.637085 |
9c4403124da36e660f5e49831ef1324004e35d3f | 5,403 | py | Python | neuralNetwork/layer3/nerualNet.py | zzw0929/deeplearning | d96aadd71838fa60a4c031b13fe475d4839e8a33 | [
"Apache-2.0"
] | 4 | 2017-09-04T07:54:33.000Z | 2017-09-04T16:55:04.000Z | neuralNetwork/layer3/nerualNet.py | zzw0929/deeplearning | d96aadd71838fa60a4c031b13fe475d4839e8a33 | [
"Apache-2.0"
] | null | null | null | neuralNetwork/layer3/nerualNet.py | zzw0929/deeplearning | d96aadd71838fa60a4c031b13fe475d4839e8a33 | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
import time
import matplotlib.pyplot as plt
import numpy as np
import sklearn
import sklearn.datasets
import sklearn.linear_model
import matplotlib
matplotlib.rcParams['figure.figsize'] = (10.0, 8.0)
np.random.seed(0)
X, y = sklearn.datasets.make_moons(200, noise=0.20)
plt.scatter(X[:,0], X[:,1], s=40... | 34.634615 | 99 | 0.644827 |
9c44390f5cc963fc28a219803d274d7a3995f439 | 101 | py | Python | app/domain/create_db.py | Lifeistrange/flaskweb | 6226e9f546d96d5f0a8f11104a37849e8f16ce80 | [
"MIT"
] | null | null | null | app/domain/create_db.py | Lifeistrange/flaskweb | 6226e9f546d96d5f0a8f11104a37849e8f16ce80 | [
"MIT"
] | null | null | null | app/domain/create_db.py | Lifeistrange/flaskweb | 6226e9f546d96d5f0a8f11104a37849e8f16ce80 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
from manage import db
import app.domain.model
db.create_all()
| 12.625 | 23 | 0.742574 |
9c4523a703ff0d45d61f298f70ea4dd4f700b946 | 1,188 | py | Python | tljh_repo2docker/tests/utils.py | TimoRoth/tljh-repo2docker | 35e7e940266de0490990acc780b64802afe973c1 | [
"BSD-3-Clause"
] | 46 | 2020-05-04T19:32:39.000Z | 2022-03-25T13:47:41.000Z | tljh_repo2docker/tests/utils.py | TimoRoth/tljh-repo2docker | 35e7e940266de0490990acc780b64802afe973c1 | [
"BSD-3-Clause"
] | 41 | 2020-04-29T09:58:34.000Z | 2022-03-15T21:44:15.000Z | tljh_repo2docker/tests/utils.py | TimoRoth/tljh-repo2docker | 35e7e940266de0490990acc780b64802afe973c1 | [
"BSD-3-Clause"
] | 9 | 2020-04-29T08:42:12.000Z | 2021-11-04T04:01:35.000Z | import asyncio
import json
from aiodocker import Docker, DockerError
from jupyterhub.tests.utils import api_request
| 25.826087 | 85 | 0.574074 |
9c464b6985d41cae6c644e444882f725004b5bea | 657 | py | Python | 05_ARIADNE_SUBSCRIPTIONS_GRAPHQL/api/resolvers/mutations/__init__.py | CrispenGari/python-flask | 3e7896f401920b8dd045d807212ec24b8353a75a | [
"Apache-2.0"
] | 2 | 2021-11-08T07:37:18.000Z | 2021-11-13T09:23:46.000Z | 05_ARIADNE_SUBSCRIPTIONS_GRAPHQL/api/resolvers/mutations/__init__.py | CrispenGari/Flask | 3e7896f401920b8dd045d807212ec24b8353a75a | [
"Apache-2.0"
] | null | null | null | 05_ARIADNE_SUBSCRIPTIONS_GRAPHQL/api/resolvers/mutations/__init__.py | CrispenGari/Flask | 3e7896f401920b8dd045d807212ec24b8353a75a | [
"Apache-2.0"
] | null | null | null |
from api import db
from uuid import uuid4
from ariadne import MutationType
from api.models import Post
from api.store import queues
mutation = MutationType() | 24.333333 | 61 | 0.572298 |
9c464f3f464935bc0cc2e17b41fede6128938835 | 1,200 | py | Python | async_sched/client/__init__.py | justengel/async_sched | f980722d51d15025522b2265426b0188ff368418 | [
"MIT"
] | 1 | 2020-10-19T13:36:20.000Z | 2020-10-19T13:36:20.000Z | async_sched/client/__init__.py | justengel/async_sched | f980722d51d15025522b2265426b0188ff368418 | [
"MIT"
] | null | null | null | async_sched/client/__init__.py | justengel/async_sched | f980722d51d15025522b2265426b0188ff368418 | [
"MIT"
] | null | null | null | from async_sched.client import quit_server as module_quit
from async_sched.client import request_schedules as module_request
from async_sched.client import run_command as module_run
from async_sched.client import schedule_command as module_schedule
from async_sched.client import stop_schedule as module_stop
from async_... | 52.173913 | 113 | 0.785 |
9c4665897e0c67f15abd7b343516434de1fce226 | 545 | py | Python | full-stack-angular-ngrx/backend/src/core/interfaces/crud.py | t4d-classes/angular_02212022 | 152dfa4b14ee84c1c34cef0b852349b250103e3b | [
"MIT"
] | null | null | null | full-stack-angular-ngrx/backend/src/core/interfaces/crud.py | t4d-classes/angular_02212022 | 152dfa4b14ee84c1c34cef0b852349b250103e3b | [
"MIT"
] | null | null | null | full-stack-angular-ngrx/backend/src/core/interfaces/crud.py | t4d-classes/angular_02212022 | 152dfa4b14ee84c1c34cef0b852349b250103e3b | [
"MIT"
] | null | null | null | import abc
from typing import TypeVar, Generic, List, Dict
T = TypeVar('T')
| 19.464286 | 55 | 0.629358 |
9c47360ad31544c866959d439dec3d10ef843fd1 | 2,730 | py | Python | package/tests/test_init_command.py | MrKriss/stonemason | d78becc9168c2566b31b48c9a951e2823bc98362 | [
"MIT"
] | 2 | 2017-11-13T17:40:52.000Z | 2021-05-08T15:58:28.000Z | package/tests/test_init_command.py | MrKriss/masonry | d78becc9168c2566b31b48c9a951e2823bc98362 | [
"MIT"
] | 3 | 2017-09-03T22:58:37.000Z | 2017-09-12T21:45:27.000Z | package/tests/test_init_command.py | MrKriss/stonemason | d78becc9168c2566b31b48c9a951e2823bc98362 | [
"MIT"
] | null | null | null |
from pathlib import Path
import pytest
import git
import json
from conftest import TEST_DIR
| 26.764706 | 86 | 0.642125 |
9c47b2d078f8bff3deaa6bb4fad2e317c962efca | 2,657 | py | Python | mistral/mistral/api/controllers/v2/service.py | Toure/openstack_mistral_wip | 1c3d028cb7c918de74a3cb018c84d6c5ee42e3f1 | [
"Apache-2.0"
] | null | null | null | mistral/mistral/api/controllers/v2/service.py | Toure/openstack_mistral_wip | 1c3d028cb7c918de74a3cb018c84d6c5ee42e3f1 | [
"Apache-2.0"
] | null | null | null | mistral/mistral/api/controllers/v2/service.py | Toure/openstack_mistral_wip | 1c3d028cb7c918de74a3cb018c84d6c5ee42e3f1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Huawei Technologies Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 35.905405 | 79 | 0.686865 |
9c47e111b35b005c12b173bba50fdccaf56fa07f | 742 | py | Python | setup.py | jtauber/greek-utils | 1da19a5a784c4dac9d205ae1afdc5516ddcae9b4 | [
"MIT"
] | 13 | 2016-01-18T00:39:20.000Z | 2019-12-13T12:55:28.000Z | setup.py | jtauber/greek-utils | 1da19a5a784c4dac9d205ae1afdc5516ddcae9b4 | [
"MIT"
] | 2 | 2016-11-01T01:11:22.000Z | 2016-12-24T05:33:06.000Z | setup.py | jtauber/greek-utils | 1da19a5a784c4dac9d205ae1afdc5516ddcae9b4 | [
"MIT"
] | 5 | 2016-01-17T21:28:16.000Z | 2018-08-03T22:04:05.000Z | from setuptools import setup
setup(
name="greek-utils",
version="0.2",
description="various utilities for processing Ancient Greek",
license="MIT",
url="http://github.com/jtauber/greek-utils",
author="James Tauber",
author_email="jtauber@jtauber.com",
packages=["greekutils"],
classi... | 30.916667 | 65 | 0.598383 |
9c482fa55469ed7e8a8294ff4e637257f9060775 | 6,275 | py | Python | source/tweet.py | jfilter/foia-bot | 11a9e31116dddfcd7bbd17730be3bdb9cec65e27 | [
"MIT"
] | null | null | null | source/tweet.py | jfilter/foia-bot | 11a9e31116dddfcd7bbd17730be3bdb9cec65e27 | [
"MIT"
] | null | null | null | source/tweet.py | jfilter/foia-bot | 11a9e31116dddfcd7bbd17730be3bdb9cec65e27 | [
"MIT"
] | null | null | null | """
tweet stuff in intervals
"""
import time
import datetime
import twitter
from markov_chains import german_text
from config import config_no, config_yes
MAX_TWEET_LENGTH = 280
greeting = ' Sehr geehrte/r Anstragssteller/in.'
ending = ' MfG'
num_tweets = 3
# if __name__ == '__main__':
# main()
| 33.918919 | 126 | 0.579283 |
9c48342a450b3888ddd355595c9462c4c225a106 | 2,880 | py | Python | account_processing.py | amitjoshi9627/Playong | d54a8db05ae5035e122b8bc8d84c849f25483005 | [
"MIT"
] | 4 | 2019-04-22T15:16:45.000Z | 2020-01-17T12:57:09.000Z | account_processing.py | amitjoshi9627/Playong | d54a8db05ae5035e122b8bc8d84c849f25483005 | [
"MIT"
] | null | null | null | account_processing.py | amitjoshi9627/Playong | d54a8db05ae5035e122b8bc8d84c849f25483005 | [
"MIT"
] | null | null | null | from selenium.webdriver import Firefox
from selenium.webdriver.firefox.options import Options
import getpass
import time
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from utils import *
| 32.359551 | 110 | 0.682986 |
9c49c6272ae1b539badcabd74a81163ceda4090b | 1,104 | py | Python | Mundo 3/teste.py | RafaelSdm/Curso-de-Python | ae933ba80ee00ad5160bd5d05cf4b21007943fd4 | [
"MIT"
] | 1 | 2021-03-10T21:53:38.000Z | 2021-03-10T21:53:38.000Z | Mundo 3/teste.py | RafaelSdm/Curso-de-Python | ae933ba80ee00ad5160bd5d05cf4b21007943fd4 | [
"MIT"
] | null | null | null | Mundo 3/teste.py | RafaelSdm/Curso-de-Python | ae933ba80ee00ad5160bd5d05cf4b21007943fd4 | [
"MIT"
] | null | null | null | pessoas = {'nomes': "Rafael","sexo":"macho alfa","idade":19}
print(f"o {pessoas['nomes']} que se considera um {pessoas['sexo']} possui {pessoas['idade']}")
print(pessoas.keys())
print(pessoas.values())
print(pessoas.items())
for c in pessoas.keys():
print(c)
for c in pessoas.values():
print(c)
for c, j in pe... | 23 | 125 | 0.638587 |
9c49fd2b9580ad32f0138ff3ca8bca4fa9148e22 | 526 | py | Python | rsa-cipher/makeRsaKeys.py | mumbo-pro/cyrptography-algorithm | 8e08c027c361f94c547f8b4ede723401399c93ed | [
"Apache-2.0"
] | 1 | 2021-02-23T09:53:19.000Z | 2021-02-23T09:53:19.000Z | rsa-cipher/makeRsaKeys.py | mumbo-pro/cyrptography-algorithm | 8e08c027c361f94c547f8b4ede723401399c93ed | [
"Apache-2.0"
] | 1 | 2019-09-18T08:24:05.000Z | 2019-09-18T08:24:05.000Z | rsa-cipher/makeRsaKeys.py | mumbo-pro/cyrptography-algorithm | 8e08c027c361f94c547f8b4ede723401399c93ed | [
"Apache-2.0"
] | null | null | null | # RSA Key Generator
2. # http://inventwithpython.com/hacking (BSD Licensed) 3. 4. import random, sys, os, rabinMiller, cryptomath
The program imports the rabinMiller and cryptomath modules that we created in the last chapter, along with a few others.
Chapter 24 Public Key Cryptography and the RSA Cipher 387
... | 65.75 | 188 | 0.714829 |
9c4a756656ca930b517891bc50444eed71522301 | 2,537 | py | Python | atlas-outreach-data-tools-framework-1.1/Configurations/PlotConf_TTbarAnalysis.py | Harvard-Neutrino/phys145 | c3dc5788128fa2a7db0af0c796cf3afd957bf0ed | [
"CC0-1.0"
] | null | null | null | atlas-outreach-data-tools-framework-1.1/Configurations/PlotConf_TTbarAnalysis.py | Harvard-Neutrino/phys145 | c3dc5788128fa2a7db0af0c796cf3afd957bf0ed | [
"CC0-1.0"
] | null | null | null | atlas-outreach-data-tools-framework-1.1/Configurations/PlotConf_TTbarAnalysis.py | Harvard-Neutrino/phys145 | c3dc5788128fa2a7db0af0c796cf3afd957bf0ed | [
"CC0-1.0"
] | 1 | 2021-11-30T02:08:12.000Z | 2021-11-30T02:08:12.000Z | config = {
"Luminosity": 1000,
"InputDirectory": "results",
"Histograms" : {
"WtMass" : {},
"etmiss" : {},
"lep_n" : {},
"lep_pt" : {},
"lep_eta" : {},
"lep_E" : {},
"lep_phi" : {"y_margin" : 0.6},
"lep_... | 32.525641 | 192 | 0.358691 |
9c4b16b905a82a27b27a39983a45cc2293e0e0ce | 1,943 | py | Python | modules/optimizations/dead_codes.py | OMGhozlan/deobshell | 701c8a09f9258442255013605185ed0a7fbac704 | [
"MIT"
] | null | null | null | modules/optimizations/dead_codes.py | OMGhozlan/deobshell | 701c8a09f9258442255013605185ed0a7fbac704 | [
"MIT"
] | null | null | null | modules/optimizations/dead_codes.py | OMGhozlan/deobshell | 701c8a09f9258442255013605185ed0a7fbac704 | [
"MIT"
] | null | null | null | # coding=utf-8
from ..logger import log_debug
from ..utils import parent_map, replace_node, is_prefixed_var, get_used_vars
| 36.660377 | 116 | 0.574884 |
9c4c40d49329ce6958ed3b498e11172edf73d231 | 1,433 | py | Python | Convert Integer A to Integer B.py | RijuDasgupta9116/LintCode | 4629a3857b2c57418b86a3b3a7180ecb15e763e3 | [
"Apache-2.0"
] | 321 | 2015-01-04T04:01:44.000Z | 2022-03-20T13:21:55.000Z | Convert Integer A to Integer B.py | leifoo/LintCode | 2520762a1cfbd486081583136396a2b2cac6e4fb | [
"Apache-2.0"
] | 1 | 2016-01-11T04:29:37.000Z | 2016-01-11T04:29:37.000Z | Convert Integer A to Integer B.py | leifoo/LintCode | 2520762a1cfbd486081583136396a2b2cac6e4fb | [
"Apache-2.0"
] | 114 | 2015-01-27T06:08:17.000Z | 2022-03-23T03:58:11.000Z | """
Determine the number of bits required to convert integer A to integer B
Example
Given n = 31, m = 14,return 2
(31)10=(11111)2
(14)10=(01110)2
"""
__author__ = 'Danyang'
if __name__=="__main__":
assert Solution().bitSwapRequired(1, -1)==31
assert Solution().bitSwapRequired(31, 14)==2
| 19.630137 | 71 | 0.415213 |
9c4cf09ffcfa4dd9bf0d914e9750a3f14e039df3 | 605 | py | Python | examples/basic/findQSpark.py | myriadrf/pyLMS7002M | b866deea1f05dba44c9ed1a1a4666352b811b66b | [
"Apache-2.0"
] | 46 | 2016-11-29T05:10:36.000Z | 2021-10-31T19:27:46.000Z | examples/basic/findQSpark.py | myriadrf/pyLMS7002M | b866deea1f05dba44c9ed1a1a4666352b811b66b | [
"Apache-2.0"
] | 2 | 2017-04-15T21:36:01.000Z | 2017-06-08T09:44:26.000Z | examples/basic/findQSpark.py | myriadrf/pyLMS7002M | b866deea1f05dba44c9ed1a1a4666352b811b66b | [
"Apache-2.0"
] | 16 | 2016-11-28T20:47:55.000Z | 2021-04-07T01:48:20.000Z | from pyLMS7002M import *
print("Searching for QSpark...")
try:
QSpark = QSpark()
except:
print("QSpark not found")
exit(1)
print("\QSpark info:")
QSpark.printInfo() # print the QSpark board info
# QSpark.LMS7002_Reset() # reset the LMS7002M
lms700... | 31.842105 | 80 | 0.528926 |
9c4d1d59e8d1a05ab55391042aa571be2ead1705 | 2,549 | py | Python | macaddress/__init__.py | paradxum/django-macaddress | c223dc8c79555d2265789c4d13667036cfbd7bd8 | [
"BSD-3-Clause"
] | 42 | 2015-11-23T09:40:36.000Z | 2022-03-15T18:15:44.000Z | macaddress/__init__.py | paradxum/django-macaddress | c223dc8c79555d2265789c4d13667036cfbd7bd8 | [
"BSD-3-Clause"
] | 19 | 2016-01-08T13:36:23.000Z | 2021-05-13T23:57:39.000Z | macaddress/__init__.py | paradxum/django-macaddress | c223dc8c79555d2265789c4d13667036cfbd7bd8 | [
"BSD-3-Clause"
] | 16 | 2016-02-04T09:43:12.000Z | 2021-04-15T13:27:40.000Z | from django.conf import settings
from netaddr import mac_unix, mac_eui48
import importlib
import warnings
from pkg_resources import get_distribution, DistributionNotFound
import os.path
try:
_dist = get_distribution('django-macaddress')
except DistributionNotFound:
__version__ = 'Please install this projec... | 43.20339 | 124 | 0.710867 |
9c4ee3a1833fdef3d1343fa0ed07aabcf8faecca | 2,422 | py | Python | textmagic/test/message_status_tests.py | dfstrauss/textmagic-sms-api-python | 9ab05b461861ac53da651588bef6b0b504653ecd | [
"BSD-3-Clause"
] | 2 | 2017-12-20T11:16:57.000Z | 2022-02-22T06:46:19.000Z | textmagic/test/message_status_tests.py | dfstrauss/textmagic-sms-api-python | 9ab05b461861ac53da651588bef6b0b504653ecd | [
"BSD-3-Clause"
] | 2 | 2015-06-14T16:06:33.000Z | 2017-08-23T11:38:22.000Z | textmagic/test/message_status_tests.py | dfstrauss/textmagic-sms-api-python | 9ab05b461861ac53da651588bef6b0b504653ecd | [
"BSD-3-Clause"
] | 5 | 2015-06-12T16:21:17.000Z | 2022-02-22T06:46:23.000Z | import time
from textmagic.test import ONE_TEST_NUMBER
from textmagic.test import THREE_TEST_NUMBERS
from textmagic.test import TextMagicTestsBase
from textmagic.test import LiveUnsafeTests
| 36.149254 | 87 | 0.660198 |
9c4ef34765e81a312523257e87f5ab76933d8997 | 2,245 | py | Python | apps/orders/models.py | LinkanDawang/FreshMallDemo | 5b8e2d2e8e137f609e8ac1e29ea013bb3ef34edb | [
"Apache-2.0"
] | null | null | null | apps/orders/models.py | LinkanDawang/FreshMallDemo | 5b8e2d2e8e137f609e8ac1e29ea013bb3ef34edb | [
"Apache-2.0"
] | 5 | 2020-06-05T18:27:41.000Z | 2022-01-13T00:48:03.000Z | apps/orders/models.py | LinkanDawang/dailyfresh | 4f0360d5e4eeda4737234942248715b77d9e3b12 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from utils.models import BaseModel
from users.models import User, Address
from goods.models import GoodsSKU
# Create your models here.
| 28.782051 | 104 | 0.620045 |
9c4f72bb8eb3058809660eadcee54f1e16cab76f | 18,201 | py | Python | event/arguments/prepare/event_vocab.py | hunterhector/DDSemantics | 883ef1015bd21d9b8575d8000faf3b506a09f21c | [
"Apache-2.0"
] | null | null | null | event/arguments/prepare/event_vocab.py | hunterhector/DDSemantics | 883ef1015bd21d9b8575d8000faf3b506a09f21c | [
"Apache-2.0"
] | null | null | null | event/arguments/prepare/event_vocab.py | hunterhector/DDSemantics | 883ef1015bd21d9b8575d8000faf3b506a09f21c | [
"Apache-2.0"
] | 2 | 2018-06-24T17:40:31.000Z | 2020-07-30T19:19:55.000Z | from collections import defaultdict, Counter
import os
import gzip
import json
import pickle
from json.decoder import JSONDecodeError
import logging
from typing import Dict
import pdb
from event import util
from event.arguments.prepare.slot_processor import get_simple_dep, is_propbank_dep
logger = logging.getLogger(_... | 31.598958 | 86 | 0.538652 |
9c4f8c513227a59417c089b50d394e43f128a12b | 478 | py | Python | 20.py | dexinl/kids_math | 48f6c37e221bbd2484ad19861c61e5ed7d3aa09e | [
"Apache-2.0"
] | null | null | null | 20.py | dexinl/kids_math | 48f6c37e221bbd2484ad19861c61e5ed7d3aa09e | [
"Apache-2.0"
] | null | null | null | 20.py | dexinl/kids_math | 48f6c37e221bbd2484ad19861c61e5ed7d3aa09e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import random
count = 20
test_set = []
while count:
a = random.randrange(3,20)
b = random.randrange(3,20)
if a > b and a - b > 1:
if (b, a-b) not in test_set:
test_set.append((b, a-b))
count -= 1
elif b > a and b - a > 1:
if (a, b-a) not in te... | 19.12 | 37 | 0.479079 |
9c51e7ffa104c06ed45deeaa7e32faf7f56f41a1 | 4,570 | py | Python | autovirt/equipment/domain/equipment.py | xlam/autovirt | a19f9237c8b1123ce4f4b8b396dc88122019d4f8 | [
"MIT"
] | null | null | null | autovirt/equipment/domain/equipment.py | xlam/autovirt | a19f9237c8b1123ce4f4b8b396dc88122019d4f8 | [
"MIT"
] | null | null | null | autovirt/equipment/domain/equipment.py | xlam/autovirt | a19f9237c8b1123ce4f4b8b396dc88122019d4f8 | [
"MIT"
] | null | null | null | from enum import Enum
from functools import reduce
from math import ceil
from typing import Optional, Tuple
from autovirt import utils
from autovirt.exception import AutovirtError
from autovirt.structs import UnitEquipment, RepairOffer
logger = utils.get_logger()
# maximum allowed equipment price
PRICE_MAX = 100000
... | 34.104478 | 92 | 0.679212 |
9c520307c63d7fc118bc65c38c0ef12159f02949 | 594 | py | Python | day09/part2.py | mtn/advent16 | 0df34237485ee1246532e9eda0ef643e6950d13e | [
"MIT"
] | null | null | null | day09/part2.py | mtn/advent16 | 0df34237485ee1246532e9eda0ef643e6950d13e | [
"MIT"
] | null | null | null | day09/part2.py | mtn/advent16 | 0df34237485ee1246532e9eda0ef643e6950d13e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import re
with open("input.txt") as f:
content = f.read().strip()
print(ulen(content))
| 21.214286 | 64 | 0.481481 |
9c520e00d9b073d8aaafcc2b263b654b36c5fc45 | 17,397 | py | Python | cirq-core/cirq/contrib/quimb/mps_simulator_test.py | Nexuscompute/Cirq | 640ef8f82d6a56ec95361388ce7976e096cca906 | [
"Apache-2.0"
] | null | null | null | cirq-core/cirq/contrib/quimb/mps_simulator_test.py | Nexuscompute/Cirq | 640ef8f82d6a56ec95361388ce7976e096cca906 | [
"Apache-2.0"
] | 4 | 2022-01-16T14:12:15.000Z | 2022-02-24T03:58:46.000Z | cirq-core/cirq/contrib/quimb/mps_simulator_test.py | Nexuscompute/Cirq | 640ef8f82d6a56ec95361388ce7976e096cca906 | [
"Apache-2.0"
] | null | null | null | # pylint: disable=wrong-or-nonexistent-copyright-notice
import itertools
import math
import numpy as np
import pytest
import sympy
import cirq
import cirq.contrib.quimb as ccq
import cirq.testing
from cirq import value
| 34.724551 | 100 | 0.647755 |
9c5339840ef805187717d24fa9d11f6cf4589f50 | 6,574 | py | Python | e2e_tests/tests/config.py | winding-lines/determined | 231e1ac1df9d77cabc09b724ca2f8070eac0da73 | [
"Apache-2.0"
] | null | null | null | e2e_tests/tests/config.py | winding-lines/determined | 231e1ac1df9d77cabc09b724ca2f8070eac0da73 | [
"Apache-2.0"
] | null | null | null | e2e_tests/tests/config.py | winding-lines/determined | 231e1ac1df9d77cabc09b724ca2f8070eac0da73 | [
"Apache-2.0"
] | null | null | null | import os
from pathlib import Path
from typing import Any, Dict
from determined.common import util
MASTER_SCHEME = "http"
MASTER_IP = "localhost"
MASTER_PORT = "8080"
DET_VERSION = None
DEFAULT_MAX_WAIT_SECS = 1800
MAX_TASK_SCHEDULED_SECS = 30
MAX_TRIAL_BUILD_SECS = 90
DEFAULT_TF1_CPU_IMAGE = "determinedai/environm... | 32.068293 | 100 | 0.702616 |
9c53aaaab36a01f9660d76573d43ecd12a07d0cb | 7,340 | py | Python | src/greenbudget/app/subaccount/serializers.py | nickmflorin/django-proper-architecture-testing | da7c4019697e85f921695144375d2f548f1e98ad | [
"MIT"
] | null | null | null | src/greenbudget/app/subaccount/serializers.py | nickmflorin/django-proper-architecture-testing | da7c4019697e85f921695144375d2f548f1e98ad | [
"MIT"
] | null | null | null | src/greenbudget/app/subaccount/serializers.py | nickmflorin/django-proper-architecture-testing | da7c4019697e85f921695144375d2f548f1e98ad | [
"MIT"
] | null | null | null | from django.contrib.contenttypes.models import ContentType
from rest_framework import serializers, exceptions
from greenbudget.lib.rest_framework_utils.fields import ModelChoiceField
from greenbudget.lib.rest_framework_utils.serializers import (
EnhancedModelSerializer)
from greenbudget.app.budget.models import B... | 35.631068 | 80 | 0.674523 |
9c554c033e4e1ae5351bb05f507b9e976ca41041 | 13,152 | py | Python | modules/dbnd/src/dbnd/_core/tracking/managers/callable_tracking.py | busunkim96/dbnd | 0191fdcd4c4fbd35006f1026d1a55b2abab9097b | [
"Apache-2.0"
] | 224 | 2020-01-02T10:46:37.000Z | 2022-03-02T13:54:08.000Z | modules/dbnd/src/dbnd/_core/tracking/managers/callable_tracking.py | busunkim96/dbnd | 0191fdcd4c4fbd35006f1026d1a55b2abab9097b | [
"Apache-2.0"
] | 16 | 2020-03-11T09:37:58.000Z | 2022-01-26T10:22:08.000Z | modules/dbnd/src/dbnd/_core/tracking/managers/callable_tracking.py | busunkim96/dbnd | 0191fdcd4c4fbd35006f1026d1a55b2abab9097b | [
"Apache-2.0"
] | 24 | 2020-03-24T13:53:50.000Z | 2022-03-22T11:55:18.000Z | import contextlib
import logging
import typing
from typing import Any, Dict, Tuple
import attr
from dbnd._core.configuration import get_dbnd_project_config
from dbnd._core.constants import (
RESULT_PARAM,
DbndTargetOperationStatus,
DbndTargetOperationType,
TaskRunState,
)
from dbnd._core.current impo... | 38.568915 | 113 | 0.633744 |
9c56d5b6165d77a3d76bfb27f03c0f747558ff24 | 5,534 | py | Python | api.py | Benardi/redis-basics | 614a15afe47780886bb6088f4ae45c6a7cbc6e22 | [
"MIT"
] | null | null | null | api.py | Benardi/redis-basics | 614a15afe47780886bb6088f4ae45c6a7cbc6e22 | [
"MIT"
] | null | null | null | api.py | Benardi/redis-basics | 614a15afe47780886bb6088f4ae45c6a7cbc6e22 | [
"MIT"
] | null | null | null | import os
import logging
from json import loads, dumps
from datetime import timedelta
from argparse import ArgumentParser
from redis import Redis
from flask import Response, Flask, request
app = Flask(__name__)
log = logging.getLogger(__name__)
parser = ArgumentParser()
parser.add_argument("-a", "--address",
... | 30.744444 | 85 | 0.632815 |
9c5842107ba44f69dd4be13f1db7dd944439eb70 | 6,071 | py | Python | zhihu_spider/ZhihuSpider/spiders/zhihu.py | Ki-Seki/gadgets | 6e031e1f6536a15b48e3beb80ba8bf31d2a3db7a | [
"MIT"
] | 1 | 2022-02-24T12:48:47.000Z | 2022-02-24T12:48:47.000Z | zhihu_spider/ZhihuSpider/spiders/zhihu.py | Ki-Seki/gadgets | 6e031e1f6536a15b48e3beb80ba8bf31d2a3db7a | [
"MIT"
] | null | null | null | zhihu_spider/ZhihuSpider/spiders/zhihu.py | Ki-Seki/gadgets | 6e031e1f6536a15b48e3beb80ba8bf31d2a3db7a | [
"MIT"
] | 1 | 2022-02-24T12:51:20.000Z | 2022-02-24T12:51:20.000Z | """
spider Chromecmd
cd Chrome
chrome.exe --remote-debugging-port=9222
http://127.0.0.1:9222/json json
spider
settings
# ROBOTSTXT_OBEY = False # parse
# COOKIES_ENABLED = True # Request cookies
# USER_AGENT =
# DOWNLOADER_MIDDLEWARES user agent
"""
import re
import json
import datetime
import sc... | 46.7 | 813 | 0.680119 |
9c5b28789209abf7074e8e365fb1d2e93079992e | 2,109 | py | Python | tests/test_bindiff.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 6,132 | 2015-08-06T23:24:47.000Z | 2022-03-31T21:49:34.000Z | tests/test_bindiff.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 2,272 | 2015-08-10T08:40:07.000Z | 2022-03-31T23:46:44.000Z | tests/test_bindiff.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 1,155 | 2015-08-06T23:37:39.000Z | 2022-03-31T05:54:11.000Z | import nose
import angr
import logging
l = logging.getLogger("angr.tests.test_bindiff")
import os
test_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'binaries', 'tests')
# todo make a better test
if __name__ == "__main__":
logging.getLogger("angr.analyses.bindiff").setLevel(lo... | 39.055556 | 106 | 0.719772 |
9c5b6f7b1147d0bfa29ae31ca75143f0f85b1910 | 523 | py | Python | main/handle_file.py | nucluster/us_states | 26cca38990b9afb6a2b8cc4d1365409428793c6d | [
"MIT"
] | null | null | null | main/handle_file.py | nucluster/us_states | 26cca38990b9afb6a2b8cc4d1365409428793c6d | [
"MIT"
] | null | null | null | main/handle_file.py | nucluster/us_states | 26cca38990b9afb6a2b8cc4d1365409428793c6d | [
"MIT"
] | null | null | null | from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent.parent
# def handle_uploaded_file(f):
# with open('screenshot.png', 'wb') as destination:
# # for chunk in f.chunks():
# # destination.write(chunk)
# destination.write(f)
with open(
BASE_DIR/'media'/'Greater_coat... | 21.791667 | 74 | 0.659656 |
9c5ca9cec48517b47b0e018883a0875e922d1924 | 4,921 | py | Python | 2018/finals/pwn-gdb-as-a-service/web_challenge/challenge/gaas.py | iicarus-bit/google-ctf | 4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b | [
"Apache-2.0"
] | 2,757 | 2018-04-28T21:41:36.000Z | 2022-03-29T06:33:36.000Z | 2018/finals/pwn-gdb-as-a-service/web_challenge/challenge/gaas.py | iicarus-bit/google-ctf | 4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b | [
"Apache-2.0"
] | 20 | 2019-07-23T15:29:32.000Z | 2022-01-21T12:53:04.000Z | 2018/finals/pwn-gdb-as-a-service/web_challenge/challenge/gaas.py | iicarus-bit/google-ctf | 4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b | [
"Apache-2.0"
] | 449 | 2018-05-09T05:54:05.000Z | 2022-03-30T14:54:18.000Z | #!/usr/bin/env python3
#
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 27.960227 | 104 | 0.710018 |
9c5de31d5758cb655e6faea3c4a14331feb71111 | 4,960 | py | Python | examples/multi_physics/piezo_elasticity.py | BubuLK/sfepy | 3e8e2082c26d574dc334fe3a0e0eeb723f7a6657 | [
"BSD-3-Clause"
] | null | null | null | examples/multi_physics/piezo_elasticity.py | BubuLK/sfepy | 3e8e2082c26d574dc334fe3a0e0eeb723f7a6657 | [
"BSD-3-Clause"
] | null | null | null | examples/multi_physics/piezo_elasticity.py | BubuLK/sfepy | 3e8e2082c26d574dc334fe3a0e0eeb723f7a6657 | [
"BSD-3-Clause"
] | null | null | null | r"""
Piezo-elasticity problem - linear elastic material with piezoelectric
effects.
Find :math:`\ul{u}`, :math:`\phi` such that:
.. math::
- \omega^2 \int_{Y} \rho\ \ul{v} \cdot \ul{u}
+ \int_{Y} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u})
- \int_{Y_2} g_{kij}\ e_{ij}(\ul{v}) \nabla_k \phi
= 0
\;, \qu... | 29.349112 | 78 | 0.563105 |
9c5f1cf8cb3617f22a594d7ff47f26bbe868fb45 | 326 | py | Python | 01-logica-de-programacao-e-algoritmos/Aula 06/01 Tuplas/1.2 Desempacotamento de parametros em funcoes/ex01.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | 01-logica-de-programacao-e-algoritmos/Aula 06/01 Tuplas/1.2 Desempacotamento de parametros em funcoes/ex01.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | 01-logica-de-programacao-e-algoritmos/Aula 06/01 Tuplas/1.2 Desempacotamento de parametros em funcoes/ex01.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | # Desempacotamento de parametros em funcoes
# somando valores de uma tupla
# Programa principal
print('Resultado: {}\n' .format(soma(1, 2)))
print('Resultado: {}\n' .format(soma(1, 2, 3, 4, 5, 6, 7, 8, 9)))
| 23.285714 | 65 | 0.604294 |
9c60736edd01d240f5a84615880cdfb0c36592cb | 2,876 | py | Python | services/model.py | theallknowng/eKheti | 85e74f26bde7454293617ba727002c5c81402140 | [
"MIT"
] | 1 | 2020-04-14T20:29:09.000Z | 2020-04-14T20:29:09.000Z | services/model.py | theallknowng/eKheti | 85e74f26bde7454293617ba727002c5c81402140 | [
"MIT"
] | 5 | 2020-09-26T01:11:17.000Z | 2022-02-10T02:01:36.000Z | services/model.py | theallknowng/eKheti | 85e74f26bde7454293617ba727002c5c81402140 | [
"MIT"
] | null | null | null | import pandas
from keras.models import Sequential
from keras.layers import Dense
from keras.wrappers.scikit_learn import KerasClassifier
from keras.utils import np_utils
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import KFold
from sklearn.preprocessing import LabelEncoder
from skle... | 54.264151 | 594 | 0.719402 |
9c614378ccffafbcb6378e7da9d99a24c5b8ad0b | 1,848 | py | Python | tests/sentry/api/endpoints/test_project_details.py | erhuabushuo/sentry | 8b3bad10155aaacfdff80910e5972e64304e880c | [
"BSD-3-Clause"
] | null | null | null | tests/sentry/api/endpoints/test_project_details.py | erhuabushuo/sentry | 8b3bad10155aaacfdff80910e5972e64304e880c | [
"BSD-3-Clause"
] | null | null | null | tests/sentry/api/endpoints/test_project_details.py | erhuabushuo/sentry | 8b3bad10155aaacfdff80910e5972e64304e880c | [
"BSD-3-Clause"
] | null | null | null | from django.core.urlresolvers import reverse
from sentry.models import Project
from sentry.testutils import APITestCase
| 33 | 88 | 0.65368 |
9c6258f2e73dfc4619740d301b9ae33bb12c5202 | 29,732 | py | Python | tests/test_table.py | databook1/python-pptx | 87ca6bf34f9ced17cc4f3c94cf141069429e7583 | [
"MIT"
] | null | null | null | tests/test_table.py | databook1/python-pptx | 87ca6bf34f9ced17cc4f3c94cf141069429e7583 | [
"MIT"
] | 12 | 2021-01-22T16:53:51.000Z | 2022-02-23T13:57:43.000Z | tests/test_table.py | databook1/python-pptx | 87ca6bf34f9ced17cc4f3c94cf141069429e7583 | [
"MIT"
] | null | null | null | # encoding: utf-8
"""Unit-test suite for `pptx.table` module."""
import pytest
from pptx.dml.fill import FillFormat
from pptx.dml.border import BorderFormat
from pptx.enum.text import MSO_ANCHOR
from pptx.oxml.ns import qn
from pptx.oxml.table import CT_Table, CT_TableCell, TcRange
from pptx.shapes.graphfrm import G... | 35.995157 | 88 | 0.61227 |
9c62aef1446638f9fa0188683ca923feaaa75706 | 408 | py | Python | imread/tests/test_bmp.py | luispedro/imread | 7960b744623fe03e6d968893a539bca969715860 | [
"MIT"
] | 51 | 2015-01-09T14:07:37.000Z | 2022-03-03T13:54:30.000Z | imread/tests/test_bmp.py | luispedro/imread | 7960b744623fe03e6d968893a539bca969715860 | [
"MIT"
] | 16 | 2015-08-09T13:40:44.000Z | 2020-04-14T10:01:41.000Z | imread/tests/test_bmp.py | luispedro/imread | 7960b744623fe03e6d968893a539bca969715860 | [
"MIT"
] | 15 | 2015-05-22T10:41:52.000Z | 2021-05-03T11:11:59.000Z | import numpy as np
from imread import imread
from . import file_path
| 24 | 54 | 0.622549 |
9c6344071efa98707250768a8a8a6346ceb89a33 | 6,612 | py | Python | bl60x_flash/main.py | v3l0c1r4pt0r/bl60x-flash | 065770004629c3e5bf98057677e7a6ca566e9c4a | [
"MIT"
] | null | null | null | bl60x_flash/main.py | v3l0c1r4pt0r/bl60x-flash | 065770004629c3e5bf98057677e7a6ca566e9c4a | [
"MIT"
] | null | null | null | bl60x_flash/main.py | v3l0c1r4pt0r/bl60x-flash | 065770004629c3e5bf98057677e7a6ca566e9c4a | [
"MIT"
] | null | null | null | from serial import Serial
from tqdm import tqdm
import binascii
import hashlib
import struct
import time
import sys
import os
if __name__ == "__main__":
main()
| 28.25641 | 86 | 0.613581 |
9c638d8e037fbbc9a02c2c027a243f97a22ca4ba | 19,638 | py | Python | lang/py/test/test_avro_builder.py | zerofox-oss/yelp-avro | 913f95a4c34386d0fe9aff843b1a8ea362a1a2c5 | [
"Apache-2.0"
] | null | null | null | lang/py/test/test_avro_builder.py | zerofox-oss/yelp-avro | 913f95a4c34386d0fe9aff843b1a8ea362a1a2c5 | [
"Apache-2.0"
] | 1 | 2021-08-02T17:22:28.000Z | 2021-08-02T17:22:28.000Z | lang/py/test/test_avro_builder.py | riskive/yelp-avro | 5a8835505d1f788585834b0a87940d30b76be3fb | [
"Apache-2.0"
] | 1 | 2020-05-06T22:01:07.000Z | 2020-05-06T22:01:07.000Z | # -*- coding: utf-8 -*-
import unittest
from avro import avro_builder
from avro import schema
if __name__ == '__main__':
unittest.main()
| 33.626712 | 81 | 0.595936 |
9c63d06a1b4ade87729c096ceb91bf4dea5b367b | 467 | py | Python | monte_py/__init__.py | domluna/fun_with_ffi | 9fc197b11a3470395db517657d624f0a3aa06958 | [
"MIT"
] | 1 | 2018-07-16T22:10:58.000Z | 2018-07-16T22:10:58.000Z | monte_py/__init__.py | domluna/fun_with_ffi | 9fc197b11a3470395db517657d624f0a3aa06958 | [
"MIT"
] | null | null | null | monte_py/__init__.py | domluna/fun_with_ffi | 9fc197b11a3470395db517657d624f0a3aa06958 | [
"MIT"
] | null | null | null | import random
# use a unit square
| 23.35 | 46 | 0.573876 |
9c6424690b87c4502fb44bc4e25fa64fa727a995 | 36,577 | py | Python | tools/mpy_ld.py | UVA-DSI/circuitpython | 35ee4add63a604320d2fbd4e30baef2b5675f9a7 | [
"Unlicense",
"BSD-3-Clause",
"MIT-0",
"MIT"
] | 1 | 2021-10-20T12:21:44.000Z | 2021-10-20T12:21:44.000Z | tools/mpy_ld.py | UVA-DSI/circuitpython | 35ee4add63a604320d2fbd4e30baef2b5675f9a7 | [
"Unlicense",
"BSD-3-Clause",
"MIT-0",
"MIT"
] | null | null | null | tools/mpy_ld.py | UVA-DSI/circuitpython | 35ee4add63a604320d2fbd4e30baef2b5675f9a7 | [
"Unlicense",
"BSD-3-Clause",
"MIT-0",
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# This file is part of the MicroPython project, http://micropython.org/
#
# The MIT License (MIT)
#
# Copyright (c) 2019 Damien P. George
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to d... | 33.618566 | 109 | 0.576893 |
9c64d6e1ca9f65ffe83cf4a6cb96b5de160e7309 | 2,289 | py | Python | ui_mant_libros.py | edzzn/Manejo_Liberia | c735d35b32fc53839acfc48d4e088e69983edf16 | [
"MIT"
] | null | null | null | ui_mant_libros.py | edzzn/Manejo_Liberia | c735d35b32fc53839acfc48d4e088e69983edf16 | [
"MIT"
] | null | null | null | ui_mant_libros.py | edzzn/Manejo_Liberia | c735d35b32fc53839acfc48d4e088e69983edf16 | [
"MIT"
] | null | null | null | from PyQt4 import QtGui
from ui_mant_libros_new import NewLibrosWindow
from ui_mant_libros_edit import EditLibrosWindow
from ui_mant_libros_id_edit import GetIdEditWindow
# Debug only
import inspect
if __name__ == '__main__':
import sys
app = QtGui.QApplication(sys.argv)
mainWin = MenuLibros()
main... | 26.929412 | 69 | 0.671035 |
9c64e0be4c2600978945ef57f08d4ac03e9f96cf | 6,583 | py | Python | env/gym_poker_ai/envs/tests/holdem_calc/holdem_argparser.py | MrStonkus/PokerAi | 9c43c3a7a9c3ac01f4ee9e3f1f95f0786c35de99 | [
"MIT"
] | null | null | null | env/gym_poker_ai/envs/tests/holdem_calc/holdem_argparser.py | MrStonkus/PokerAi | 9c43c3a7a9c3ac01f4ee9e3f1f95f0786c35de99 | [
"MIT"
] | 1 | 2020-05-09T20:27:33.000Z | 2020-05-09T20:27:33.000Z | env/gym_poker_ai/envs/tests/holdem_calc/holdem_argparser.py | MrStonkus/PokerAi | 9c43c3a7a9c3ac01f4ee9e3f1f95f0786c35de99 | [
"MIT"
] | null | null | null | import argparse
import re
import holdem_calc.holdem_functions as holdem_functions
# Wrapper class which holds the arguments for library calls
# Mocks actual argparse object
# Parses arguments passed to holdem_calc as a library call
def parse_lib_args(args):
error_check_arguments(args)
# Parse hole cards an... | 33.93299 | 78 | 0.628285 |
9c651d14eff8b0f1392964eb0805b7871c20c731 | 8,318 | py | Python | qbay/controllers.py | KarlDorogy/Cisc-327-Course-Project-Group-20 | 0e2c003f78bbdd932381a7a8cbc3aa757da18b24 | [
"MIT"
] | null | null | null | qbay/controllers.py | KarlDorogy/Cisc-327-Course-Project-Group-20 | 0e2c003f78bbdd932381a7a8cbc3aa757da18b24 | [
"MIT"
] | null | null | null | qbay/controllers.py | KarlDorogy/Cisc-327-Course-Project-Group-20 | 0e2c003f78bbdd932381a7a8cbc3aa757da18b24 | [
"MIT"
] | null | null | null | from flask import render_template, request, session, redirect
from qbay.models import *
from datetime import date
from qbay import app
def authenticate(inner_function):
"""
:param inner_function: any python function that accepts a user object
Wrap any python function and check the current session to see ... | 34.658333 | 76 | 0.648593 |
9c6678445c5b8ffd9879e0f6a21e874c128e214d | 6,998 | py | Python | gbfs/serializers.py | stadtulm/cykel | b292d958330279654c49beafc3f95a0067274472 | [
"MIT"
] | 80 | 2019-08-20T17:41:31.000Z | 2021-05-31T19:20:28.000Z | gbfs/serializers.py | transportkollektiv/cykel | b292d958330279654c49beafc3f95a0067274472 | [
"MIT"
] | 19 | 2019-08-24T15:17:33.000Z | 2021-09-22T17:58:03.000Z | gbfs/serializers.py | stadtulm/cykel | b292d958330279654c49beafc3f95a0067274472 | [
"MIT"
] | 12 | 2019-08-21T17:55:14.000Z | 2021-04-07T18:53:52.000Z | from datetime import timedelta
from django.utils.timezone import now
from preferences import preferences
from rest_framework import fields, serializers
from bikesharing.models import Bike, Station, VehicleType
from cykel.serializers import EnumFieldSerializer
| 36.447917 | 84 | 0.642612 |
9c672aa16a64502ad882d71db5ffef21757f9d6f | 1,095 | py | Python | anime_downloader/extractors/vidstream.py | ngomile/anime-downloader | 14d9cebe8aa4eb9d906b937d7c19fedfa737d184 | [
"Unlicense"
] | 2 | 2020-08-10T12:34:42.000Z | 2020-11-19T08:13:48.000Z | anime_downloader/extractors/vidstream.py | ngomile/anime-downloader | 14d9cebe8aa4eb9d906b937d7c19fedfa737d184 | [
"Unlicense"
] | null | null | null | anime_downloader/extractors/vidstream.py | ngomile/anime-downloader | 14d9cebe8aa4eb9d906b937d7c19fedfa737d184 | [
"Unlicense"
] | null | null | null | import logging
import re
from anime_downloader.extractors.base_extractor import BaseExtractor
from anime_downloader.sites import helpers
logger = logging.getLogger(__name__)
| 31.285714 | 160 | 0.552511 |
9c67ab6dcf7da8380a3c1b1759e1c7f496809cce | 2,799 | py | Python | gui/sum_v1/views.py | time-crunched/nlp-toolbox | b732abd0b2c6b265971efe04a4d70ebe20d2ee8f | [
"MIT"
] | null | null | null | gui/sum_v1/views.py | time-crunched/nlp-toolbox | b732abd0b2c6b265971efe04a4d70ebe20d2ee8f | [
"MIT"
] | 3 | 2020-06-05T18:58:57.000Z | 2021-06-10T20:50:13.000Z | gui/sum_v1/views.py | time-crunched/nlp-toolbox | b732abd0b2c6b265971efe04a4d70ebe20d2ee8f | [
"MIT"
] | 1 | 2019-12-01T16:56:41.000Z | 2019-12-01T16:56:41.000Z | import time
import os
from django.shortcuts import render, redirect
from django.http import JsonResponse
from django.views import View
from django.conf import settings
from .forms import File_uploadForm
from .models import File_upload, SummaryRes
from sim_v1.textsummary import TEXTSummary
summary_document_dir = os.... | 29.15625 | 133 | 0.679171 |
9c67af820f4a5f09ac6dce61683f07d3e73f1273 | 1,290 | py | Python | homeassistant/components/websocket_api/__init__.py | dannyqwertz/home-assistant | 688bdc6532e514afbdc8efd1f574a7b5c9e8d280 | [
"Apache-2.0"
] | 4 | 2019-01-10T14:47:54.000Z | 2021-04-22T02:06:27.000Z | homeassistant/components/websocket_api/__init__.py | dannyqwertz/home-assistant | 688bdc6532e514afbdc8efd1f574a7b5c9e8d280 | [
"Apache-2.0"
] | 6 | 2021-02-08T21:02:40.000Z | 2022-03-12T00:52:16.000Z | homeassistant/components/websocket_api/__init__.py | dannyqwertz/home-assistant | 688bdc6532e514afbdc8efd1f574a7b5c9e8d280 | [
"Apache-2.0"
] | 1 | 2019-08-13T11:54:30.000Z | 2019-08-13T11:54:30.000Z | """
Websocket based API for Home Assistant.
For more details about this component, please refer to the documentation at
https://developers.home-assistant.io/docs/external_api_websocket.html
"""
from homeassistant.core import callback
from homeassistant.loader import bind_hass
from . import commands, connection, const... | 30 | 75 | 0.784496 |
9c68432891ca359406f39890007723907fdc1968 | 4,181 | py | Python | test_app/settings.py | Lenders-Cooperative/Django-DocuSign | 676d966065f6e1e64e1f0db9b7691b9f0c5d73a5 | [
"BSD-3-Clause"
] | null | null | null | test_app/settings.py | Lenders-Cooperative/Django-DocuSign | 676d966065f6e1e64e1f0db9b7691b9f0c5d73a5 | [
"BSD-3-Clause"
] | null | null | null | test_app/settings.py | Lenders-Cooperative/Django-DocuSign | 676d966065f6e1e64e1f0db9b7691b9f0c5d73a5 | [
"BSD-3-Clause"
] | 2 | 2021-12-03T19:40:35.000Z | 2021-12-03T19:47:59.000Z | #
# Created on Tue Dec 21 2021
#
# Copyright (c) 2021 Lenders Cooperative, a division of Summit Technology Group, Inc.
#
"""
Django settings for test_app project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
... | 27.326797 | 91 | 0.708443 |
9c68e55390ec5a85f2cfdfcd46e61487ba6ce000 | 9,871 | py | Python | tests/unit/ppr/test_search_query.py | doug-lovett/test-schemas-dl | a05e87b983f2c3559c081dd65aff05e2c67e6186 | [
"Apache-2.0"
] | null | null | null | tests/unit/ppr/test_search_query.py | doug-lovett/test-schemas-dl | a05e87b983f2c3559c081dd65aff05e2c67e6186 | [
"Apache-2.0"
] | null | null | null | tests/unit/ppr/test_search_query.py | doug-lovett/test-schemas-dl | a05e87b983f2c3559c081dd65aff05e2c67e6186 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Province of British Columbia
#
# 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 agre... | 28.042614 | 95 | 0.668524 |
9c69f20de39f2f2cbc5461ca8a9902a34b2bc1f3 | 165 | py | Python | devopsipy/decorators.py | kharnam/devopsipy | c3379b1dd5f66e71c826045afde1702030e495d4 | [
"MIT"
] | null | null | null | devopsipy/decorators.py | kharnam/devopsipy | c3379b1dd5f66e71c826045afde1702030e495d4 | [
"MIT"
] | 2 | 2018-10-31T01:43:42.000Z | 2018-10-31T02:05:55.000Z | devopsipy/decorators.py | kharnam/devopsipy | c3379b1dd5f66e71c826045afde1702030e495d4 | [
"MIT"
] | null | null | null | """
Module to contain Pywork decorators
"""
__author__ = 'sergey kharnam'
import re
import time
import itertools
import logging
log = logging.getLogger(__name__)
| 12.692308 | 35 | 0.769697 |
9c6a899bfa0fce8fa48384ca11c89371d3bdbbc4 | 10,449 | py | Python | tests/test_decorators.py | stephenfin/django-rest-framework | 9d001cd84c1239d708b1528587c183ef30e38c31 | [
"BSD-3-Clause"
] | 1 | 2019-01-11T13:56:41.000Z | 2019-01-11T13:56:41.000Z | tests/test_decorators.py | stephenfin/django-rest-framework | 9d001cd84c1239d708b1528587c183ef30e38c31 | [
"BSD-3-Clause"
] | null | null | null | tests/test_decorators.py | stephenfin/django-rest-framework | 9d001cd84c1239d708b1528587c183ef30e38c31 | [
"BSD-3-Clause"
] | 1 | 2019-06-29T12:46:16.000Z | 2019-06-29T12:46:16.000Z | from __future__ import unicode_literals
import pytest
from django.test import TestCase
from rest_framework import status
from rest_framework.authentication import BasicAuthentication
from rest_framework.decorators import (
action, api_view, authentication_classes, detail_route, list_route,
parser_classes, per... | 31.954128 | 92 | 0.624175 |
9c6c043e7e279ee40586854016feb8a49ecc6e3c | 661 | py | Python | tamilmorse/morse_encode.py | CRE2525/open-tamil | ffc02509f7b8a6a17644c85799a475a8ba623954 | [
"MIT"
] | 1 | 2021-08-03T19:35:18.000Z | 2021-08-03T19:35:18.000Z | tamilmorse/morse_encode.py | CRE2525/open-tamil | ffc02509f7b8a6a17644c85799a475a8ba623954 | [
"MIT"
] | null | null | null | tamilmorse/morse_encode.py | CRE2525/open-tamil | ffc02509f7b8a6a17644c85799a475a8ba623954 | [
"MIT"
] | null | null | null | ## -*- coding: utf-8 -*-
#(C) 2018 Muthiah Annamalai
# This file is part of Open-Tamil project
# You may use or distribute this file under terms of MIT license
import codecs
import json
import tamil
import sys
import os
#e.g. python morse_encode.py
CURRDIR = os.path.dirname(os.path.realpath(__file__))
if __name__ =... | 30.045455 | 95 | 0.688351 |
9c6c3991eeee7dfdd77baaa787b34e6799b4425e | 1,355 | py | Python | Leetcode/Python/_1721.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | null | null | null | Leetcode/Python/_1721.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | null | null | null | Leetcode/Python/_1721.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | null | null | null | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = n... | 27.653061 | 81 | 0.500369 |
9c6d0e66968fb03790c987f71d690038a6f4abfa | 3,029 | py | Python | contrib/functional_tests/functional/test_reorg.py | electrumsv/electrumsv | a2d9027ccec338cadfca778888e6ef7f077b1651 | [
"MIT"
] | 136 | 2019-01-10T15:49:09.000Z | 2022-02-20T04:46:39.000Z | contrib/functional_tests/functional/test_reorg.py | electrumsv/electrumsv | a2d9027ccec338cadfca778888e6ef7f077b1651 | [
"MIT"
] | 790 | 2019-01-07T01:53:35.000Z | 2022-03-30T23:04:28.000Z | contrib/functional_tests/functional/test_reorg.py | electrumsv/electrumsv | a2d9027ccec338cadfca778888e6ef7f077b1651 | [
"MIT"
] | 65 | 2019-01-10T23:55:30.000Z | 2021-12-19T06:47:13.000Z | """
Warning - this will reset all components back to a blank state before running the simulation
Runs node1, electrumx1 and electrumsv1 and loads the default wallet on the daemon (so that newly
submitted blocks will be synchronized by ElectrumSV
reorged txid: 'a1fa9460ca105c1396cd338f7fa202bf79a9d244d730e91e19f6302a0... | 35.22093 | 96 | 0.678772 |
9c6e78ca230293ad0a6075105e0e0da44e90fcbd | 25,892 | py | Python | Pyrado/pyrado/environments/mujoco/wam_bic.py | KhanhThiVo/SimuRLacra | fdeaf2059c2ed80ea696f018c29290510b5c4cb9 | [
"DOC",
"Zlib",
"BSD-3-Clause"
] | null | null | null | Pyrado/pyrado/environments/mujoco/wam_bic.py | KhanhThiVo/SimuRLacra | fdeaf2059c2ed80ea696f018c29290510b5c4cb9 | [
"DOC",
"Zlib",
"BSD-3-Clause"
] | null | null | null | Pyrado/pyrado/environments/mujoco/wam_bic.py | KhanhThiVo/SimuRLacra | fdeaf2059c2ed80ea696f018c29290510b5c4cb9 | [
"DOC",
"Zlib",
"BSD-3-Clause"
] | 1 | 2020-11-24T15:25:26.000Z | 2020-11-24T15:25:26.000Z | # Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and
# Technical University of Darmstadt.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source ... | 49.037879 | 120 | 0.632551 |
9c6edb66b25f5b7d6f691984d70d7a69bf328bdb | 469 | py | Python | pyRasp.py | ToninoTarsi/pyRasp | a46bb1dc38c7547b60e24189ecf34310da770042 | [
"MIT"
] | null | null | null | pyRasp.py | ToninoTarsi/pyRasp | a46bb1dc38c7547b60e24189ecf34310da770042 | [
"MIT"
] | null | null | null | pyRasp.py | ToninoTarsi/pyRasp | a46bb1dc38c7547b60e24189ecf34310da770042 | [
"MIT"
] | null | null | null | # pyRasp
# Copyright (c) Tonino Tarsi 2020. Licensed under MIT.
# requirement :
# Python 3
# pip install pyyaml
# pip install request
# pip install f90nml
from downloadGFSA import downloadGFSA
from prepare_wps import prepare_wps
from ungrib import ungrib
from metgrid import metgrid
from prepare_wrf import prepare_w... | 16.75 | 54 | 0.784648 |