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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2c9e2ce825149494c4555d540152aae13598ea62 | 1,301 | py | Python | deepppl/tests/target_py/kmeans.py | sfantao/deepppl | 3091c342814744d622eda6f7a185085d420a152b | [
"Apache-2.0"
] | 18 | 2018-06-07T17:41:30.000Z | 2021-03-19T23:31:14.000Z | deepppl/tests/target_py/kmeans.py | sfantao/deepppl | 3091c342814744d622eda6f7a185085d420a152b | [
"Apache-2.0"
] | 19 | 2018-06-11T17:42:03.000Z | 2020-10-13T17:19:11.000Z | deepppl/tests/target_py/kmeans.py | sfantao/deepppl | 3091c342814744d622eda6f7a185085d420a152b | [
"Apache-2.0"
] | 7 | 2018-06-08T20:50:24.000Z | 2020-10-12T22:00:09.000Z | import torch
from torch import tensor, rand
import pyro
import torch.distributions.constraints as constraints
import pyro.distributions as dist
| 34.236842 | 75 | 0.571868 |
2c9ffef9867b37cc6ff8be2016f65cefeb7bd057 | 5,885 | py | Python | Siberia/plug/plugin_adminka.py | spouk/Siberia | 0b7dfe2271b285eb038a09ef954ed8c605cbd2d2 | [
"MIT"
] | null | null | null | Siberia/plug/plugin_adminka.py | spouk/Siberia | 0b7dfe2271b285eb038a09ef954ed8c605cbd2d2 | [
"MIT"
] | null | null | null | Siberia/plug/plugin_adminka.py | spouk/Siberia | 0b7dfe2271b285eb038a09ef954ed8c605cbd2d2 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
__author__ = 'spouk'
__all__ = ('AdminkaPlugin',)
__version__ = 0.1
__name__ = 'AdminkaPLugin for Siberia'
__middleware__ = True
#---------------------------------------------------------------------------
# global imports
#----------------------------------------------------------------------... | 38.464052 | 121 | 0.584367 |
2ca1f66514af862a2395c2a72cc563dfe7628eb9 | 2,576 | py | Python | services/jobs/tests/api/base.py | Open-EO/openeo-openshift-driver | 822dbd3ccee25180cc48efd2f891504b6b5edc14 | [
"Apache-2.0"
] | 6 | 2018-10-02T15:04:11.000Z | 2019-12-13T11:36:49.000Z | services/jobs/tests/api/base.py | Open-EO/openeo-openshift-driver | 822dbd3ccee25180cc48efd2f891504b6b5edc14 | [
"Apache-2.0"
] | 54 | 2019-01-09T17:14:29.000Z | 2020-10-02T11:39:38.000Z | services/jobs/tests/api/base.py | Open-EO/openeo-openshift-driver | 822dbd3ccee25180cc48efd2f891504b6b5edc14 | [
"Apache-2.0"
] | 6 | 2018-07-03T15:58:05.000Z | 2019-07-03T07:20:46.000Z | """Provide base test class."""
from typing import Any, Callable
from nameko_sqlalchemy.database_session import Session
from jobs.dependencies.dag_handler import DagHandler
from jobs.service import JobService
from .exceptions import get_missing_resource_service_exception, get_not_authorized_service_exception
from ..ut... | 42.933333 | 102 | 0.689829 |
2ca27a57f6a2ef5f5d6134f2ea7bd3a0c622653d | 99 | py | Python | bloom/audio/__init__.py | thomasrogers03/bloom | 5d49c18a241216aca354aa79971940691e6f33b4 | [
"Apache-2.0"
] | 9 | 2020-11-22T03:04:52.000Z | 2022-01-17T15:36:25.000Z | bloom/seq/__init__.py | thomasrogers03/bloom | 5d49c18a241216aca354aa79971940691e6f33b4 | [
"Apache-2.0"
] | null | null | null | bloom/seq/__init__.py | thomasrogers03/bloom | 5d49c18a241216aca354aa79971940691e6f33b4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Thomas Rogers
# SPDX-License-Identifier: Apache-2.0
from .manager import Manager
| 19.8 | 37 | 0.787879 |
2ca3388b5b4f8f447dfd365008e2dd96e0c723ba | 1,919 | py | Python | egi/models.py | gtaylor/evennia-game-directory | f7a4d0731503de540026dc0fe6409a7c24ad676e | [
"BSD-3-Clause"
] | 1 | 2019-02-06T10:58:11.000Z | 2019-02-06T10:58:11.000Z | egi/models.py | gtaylor/evennia-game-index | f7a4d0731503de540026dc0fe6409a7c24ad676e | [
"BSD-3-Clause"
] | 4 | 2017-10-24T21:47:53.000Z | 2019-09-22T13:12:57.000Z | egi/models.py | gtaylor/evennia-game-directory | f7a4d0731503de540026dc0fe6409a7c24ad676e | [
"BSD-3-Clause"
] | 2 | 2017-02-09T16:25:27.000Z | 2017-10-24T21:40:42.000Z | import datetime
from google.appengine.ext import ndb
| 37.627451 | 95 | 0.706097 |
2ca4292d50c5517e99b0982bf8f944c2f58adef3 | 2,267 | py | Python | stylelens/dataset/df/generate_category_classifier_dataset.py | williamcameron/bl-magi | a35809489c15df25efc9c322166afaee7df3e192 | [
"Apache-2.0"
] | null | null | null | stylelens/dataset/df/generate_category_classifier_dataset.py | williamcameron/bl-magi | a35809489c15df25efc9c322166afaee7df3e192 | [
"Apache-2.0"
] | null | null | null | stylelens/dataset/df/generate_category_classifier_dataset.py | williamcameron/bl-magi | a35809489c15df25efc9c322166afaee7df3e192 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from stylelens_dataset.categories import Categories
from stylelens_dataset.objects import Objects
from pprint import pprint
import os
import urllib.request as urllib
# create an instance of the API class
category_api = Categories()
object_api = Objects()
if __name__ == '__main__... | 25.47191 | 100 | 0.603 |
2ca44cd0b909b867cabf4f36b32c482801cc16f1 | 8,429 | py | Python | keras/dtensor/lazy_variable.py | englert-m/keras | 7007cd0fd548032f1bb2c23b1defa4812628baec | [
"Apache-2.0"
] | null | null | null | keras/dtensor/lazy_variable.py | englert-m/keras | 7007cd0fd548032f1bb2c23b1defa4812628baec | [
"Apache-2.0"
] | null | null | null | keras/dtensor/lazy_variable.py | englert-m/keras | 7007cd0fd548032f1bb2c23b1defa4812628baec | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 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... | 41.522167 | 111 | 0.678965 |
2ca4ea63da0f23de067acef30ee7375c05e958de | 783 | py | Python | src/ctc/db/schemas/protocol_schemas/fourbyte_schema_defs.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 94 | 2022-02-15T19:34:49.000Z | 2022-03-26T19:26:22.000Z | src/ctc/db/schemas/protocol_schemas/fourbyte_schema_defs.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-03-03T02:58:47.000Z | 2022-03-11T18:41:05.000Z | src/ctc/db/schemas/protocol_schemas/fourbyte_schema_defs.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-02-15T17:53:07.000Z | 2022-03-17T19:14:17.000Z | from __future__ import annotations
import toolsql
fourbyte_schema: toolsql.DBSchema = {
'tables': {
'function_signatures': {
'columns': [
{'name': 'id', 'primary': True},
{'name': 'created_at'},
{'name': 'text_signature', 'index': True},
... | 27.964286 | 58 | 0.427842 |
2ca5cbc4f5357898528acdf248026bc993f249fb | 2,493 | py | Python | txaws/tests/test_util.py | vargas/txaws | b75d00e042c6e7e1609c05e01ee54e1c72b1eaf6 | [
"MIT"
] | 1 | 2021-12-17T00:03:24.000Z | 2021-12-17T00:03:24.000Z | txaws/tests/test_util.py | vargas/txaws | b75d00e042c6e7e1609c05e01ee54e1c72b1eaf6 | [
"MIT"
] | null | null | null | txaws/tests/test_util.py | vargas/txaws | b75d00e042c6e7e1609c05e01ee54e1c72b1eaf6 | [
"MIT"
] | 1 | 2021-12-17T00:06:41.000Z | 2021-12-17T00:06:41.000Z | from urllib.parse import urlparse
import binascii
from twisted.trial.unittest import TestCase
from txaws.util import hmac_sha1, iso8601time, parse
| 33.24 | 77 | 0.579222 |
2ca6030084049893d40df687b5267b7ac8dd9230 | 7,674 | py | Python | vgame/theater.py | cilame/vgame | 9b7076256500137fe5c95426798007734dd613a2 | [
"MIT"
] | null | null | null | vgame/theater.py | cilame/vgame | 9b7076256500137fe5c95426798007734dd613a2 | [
"MIT"
] | null | null | null | vgame/theater.py | cilame/vgame | 9b7076256500137fe5c95426798007734dd613a2 | [
"MIT"
] | null | null | null | import pygame
from pygame.locals import *
from .actor import Actor
from .actor import Player, Wall, Enemy, Bullet, NPC, Anime, Map
from .actor import Menu, Background, Button
from .actor import Delayer
import vgame
| 36.717703 | 100 | 0.600078 |
2ca6f197d99db0e7bed05280ad0f94868eb2b0f8 | 844 | py | Python | src/utils/queries.py | stivenramireza/real-estate-api | b6de176bed5612ce2ad874f622d4675fc4b6d5a5 | [
"MIT"
] | null | null | null | src/utils/queries.py | stivenramireza/real-estate-api | b6de176bed5612ce2ad874f622d4675fc4b6d5a5 | [
"MIT"
] | 2 | 2022-03-22T17:27:19.000Z | 2022-03-22T18:29:14.000Z | src/utils/queries.py | stivenramireza/real-estate-api | b6de176bed5612ce2ad874f622d4675fc4b6d5a5 | [
"MIT"
] | null | null | null | PROPERTIES = """
SELECT
p.id,
p.address,
p.city,
s.name AS status,
p.price,
p.description,
p.year
FROM property p
INNER JOIN (
SELECT sh.property_id, sh.status_id, sh.update_date
FROM status_history sh
INNER JOIN (
... | 26.375 | 75 | 0.575829 |
2ca906d948f8bdc4ff1f5129d6cb152946ac17af | 60,654 | py | Python | third_party/chromite/lib/auto_updater.py | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/chromite/lib/auto_updater.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/chromite/lib/auto_updater.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | # -*- coding: utf-8 -*-
# Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Library containing functions to execute auto-update on a remote device.
TODO(xixuan): Make this lib support other update logic... | 40.328457 | 80 | 0.685099 |
2caaeb7931baabb2f2a4e505483d42162334c020 | 1,368 | py | Python | d2lbook/common.py | dltech-xyz/d2l-book | 5f5279708f029c9724f4b258a1a26b6db2317532 | [
"Apache-2.0"
] | 1 | 2021-01-02T03:34:04.000Z | 2021-01-02T03:34:04.000Z | d2lbook/common.py | szha/d2l-book | 5f5279708f029c9724f4b258a1a26b6db2317532 | [
"Apache-2.0"
] | null | null | null | d2lbook/common.py | szha/d2l-book | 5f5279708f029c9724f4b258a1a26b6db2317532 | [
"Apache-2.0"
] | 1 | 2020-09-15T05:57:12.000Z | 2020-09-15T05:57:12.000Z | import re
from typing import Optional, List, Any, Callable, Tuple
# Our special mark in markdown, e.g. :label:`chapter_intro`
md_mark_pattern = re.compile(':([-\/\\._\w\d]+):(`[\ \*-\/\\\._\w\d]+`)?')
# Same for md_mark_pattern, but for rst files
rst_mark_pattern = re.compile(':([-\/\\._\w\d]+):(``[\ \*-\/\\\._\w\d]+`... | 33.365854 | 77 | 0.597953 |
2cab7ae8cc2711116a7008627d7fc69c47ab979f | 4,999 | py | Python | emulator/demoEmulator.py | ojotoxy/Processor | 8e6e4e8b33b2d3b51b05104089e801f187bb4617 | [
"Apache-2.0"
] | 1 | 2021-07-21T03:46:43.000Z | 2021-07-21T03:46:43.000Z | emulator/demoEmulator.py | ojotoxy/Processor | 8e6e4e8b33b2d3b51b05104089e801f187bb4617 | [
"Apache-2.0"
] | null | null | null | emulator/demoEmulator.py | ojotoxy/Processor | 8e6e4e8b33b2d3b51b05104089e801f187bb4617 | [
"Apache-2.0"
] | 1 | 2021-01-22T07:46:38.000Z | 2021-01-22T07:46:38.000Z | #!/usr/bin/env python3
from enum import Enum
# This computer will have these memory mapped registers:
# 0 = PC
# 1 = SP
# but I didn't implement them. Only the program counter exists and its not memory mapped
Instruction = Enum('Instruction', 'mov literal add sub mul div mod inc dec jmp je jne jg jge print')
# a... | 29.063953 | 100 | 0.605721 |
2cab9074e65111400851764c05e26e3e8f87a58f | 1,332 | py | Python | archive/scripts/make_movie_tfgfx.py | bionicles/neuromax | a53a17a1c033c11ac607a9e28f43b1f906e58aad | [
"MIT"
] | null | null | null | archive/scripts/make_movie_tfgfx.py | bionicles/neuromax | a53a17a1c033c11ac607a9e28f43b1f906e58aad | [
"MIT"
] | null | null | null | archive/scripts/make_movie_tfgfx.py | bionicles/neuromax | a53a17a1c033c11ac607a9e28f43b1f906e58aad | [
"MIT"
] | null | null | null | import tensorflow_graphics as gfx
import tensorflow as tf
lambertian = gfx.rendering.reflectance.lambertian
phong = gfx.rendering.reflectance.phong
# generate frames from keyframes
# draw the frame and project it onto a camera plane
| 29.6 | 70 | 0.725976 |
2cac3774024d9e4cfb2af027a48547d41fba7453 | 4,635 | py | Python | sweden_crs_transformations/transformation/_transformer.py | TomasJohansson/sweden_crs_transformations_4python | d4c0ae1bab2e0f505f3e6f948c1b31b3bf397f04 | [
"MIT"
] | 1 | 2021-10-02T20:05:59.000Z | 2021-10-02T20:05:59.000Z | sweden_crs_transformations/transformation/_transformer.py | TomasJohansson/sweden_crs_transformations_4python | d4c0ae1bab2e0f505f3e6f948c1b31b3bf397f04 | [
"MIT"
] | null | null | null | sweden_crs_transformations/transformation/_transformer.py | TomasJohansson/sweden_crs_transformations_4python | d4c0ae1bab2e0f505f3e6f948c1b31b3bf397f04 | [
"MIT"
] | null | null | null | """
| Copyright (c) Tomas Johansson , http://www.programmerare.com
| The code in this library is licensed with MIT.
| The library is based on the C#.NET library 'sweden_crs_transformations_4net' (https://github.com/TomasJohansson/sweden_crs_transformations_4net)
| which in turn is based on 'MightyLittleGeodesy' (https:... | 52.078652 | 196 | 0.783603 |
2cace54cc66cc33d32eb380eadf379d0098d853a | 8,842 | py | Python | ggshield/config.py | boblefrag/gg-shield | 8eef8e02596ca05b9250482d9ea5cafd4435cfa0 | [
"MIT"
] | null | null | null | ggshield/config.py | boblefrag/gg-shield | 8eef8e02596ca05b9250482d9ea5cafd4435cfa0 | [
"MIT"
] | null | null | null | ggshield/config.py | boblefrag/gg-shield | 8eef8e02596ca05b9250482d9ea5cafd4435cfa0 | [
"MIT"
] | null | null | null | import copy
import json
import os
from typing import Any, Dict, List, NamedTuple
import click
import yaml
from dotenv import load_dotenv
from pygitguardian.models import PolicyBreak
from .git_shell import get_git_root, is_git_dir
from .text_utils import display_error
CONTEXT_SETTINGS = dict(help_option_names=["-h",... | 33.240602 | 87 | 0.577358 |
2cae6969a37d3bd9a688ae9ce4914b584b626699 | 1,166 | py | Python | code/Metricsource.py | t1191578/moniteredit | 48465d7cbee2452392720a26320d8753f8807bc9 | [
"Apache-2.0"
] | null | null | null | code/Metricsource.py | t1191578/moniteredit | 48465d7cbee2452392720a26320d8753f8807bc9 | [
"Apache-2.0"
] | null | null | null | code/Metricsource.py | t1191578/moniteredit | 48465d7cbee2452392720a26320d8753f8807bc9 | [
"Apache-2.0"
] | null | null | null | import requests
from multipledispatch import dispatch
uri="http://35.154.106.147:9090/api/v1/"
query= "query?query="
val=Source(uri)
val.inputoutput( "go_info") | 29.897436 | 69 | 0.587479 |
2caedda016fdd7a5fa90f4f8076880daa0ea5858 | 2,677 | py | Python | applications/zcomx/modules/mysql.py | zcomx/zco.mx | 70a7372af5787c2e4dea14b25bab0bbb2b959881 | [
"BSD-3-Clause"
] | null | null | null | applications/zcomx/modules/mysql.py | zcomx/zco.mx | 70a7372af5787c2e4dea14b25bab0bbb2b959881 | [
"BSD-3-Clause"
] | null | null | null | applications/zcomx/modules/mysql.py | zcomx/zco.mx | 70a7372af5787c2e4dea14b25bab0bbb2b959881 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Classes for handling mysql.
"""
import os
def soundex(db, value):
"""Return the soundex string of a value.
Args:
db: gluon.dal.DAL instance
value: string, soundex string
Returns:
string, the soundex of value.
"""
# C0... | 24.336364 | 72 | 0.513261 |
2cb1bb53ea364d5eed2d8ae779c2ec9f50b57788 | 966 | py | Python | mygrations/formats/mysql/file_reader/parsers/index_primary.py | cmancone/mygrations | 30d1d568ca7d6c38dbc5211834dd2d04c0bcf078 | [
"MIT"
] | 10 | 2018-04-09T08:39:42.000Z | 2022-03-14T15:36:05.000Z | mygrations/formats/mysql/file_reader/parsers/index_primary.py | cmancone/mygrations | 30d1d568ca7d6c38dbc5211834dd2d04c0bcf078 | [
"MIT"
] | 14 | 2018-05-02T11:14:08.000Z | 2022-01-15T18:48:54.000Z | mygrations/formats/mysql/file_reader/parsers/index_primary.py | cmancone/mygrations | 30d1d568ca7d6c38dbc5211834dd2d04c0bcf078 | [
"MIT"
] | 5 | 2018-07-18T02:20:48.000Z | 2022-02-19T09:32:07.000Z | from mygrations.core.parse.parser import parser
from mygrations.formats.mysql.definitions.index import index
| 22.465116 | 74 | 0.509317 |
2cb216483c7cc5cdf448cba2017524ee4e2e0d25 | 499 | py | Python | bauh/view/core/timeshift.py | alesmuc/bauh | 5f9fbd7f38eea6f54b5d6a97848c1ee8b6a43ecb | [
"Zlib"
] | null | null | null | bauh/view/core/timeshift.py | alesmuc/bauh | 5f9fbd7f38eea6f54b5d6a97848c1ee8b6a43ecb | [
"Zlib"
] | null | null | null | bauh/view/core/timeshift.py | alesmuc/bauh | 5f9fbd7f38eea6f54b5d6a97848c1ee8b6a43ecb | [
"Zlib"
] | null | null | null | from bauh.commons.system import run_cmd, SimpleProcess
| 35.642857 | 115 | 0.737475 |
2cb2e46e1c301bd4740db07e928c276400566195 | 813 | py | Python | update_tools.py | gflaherty/rules_pyz | 900546b12e880f272c82534cdd2423dcb109e795 | [
"Apache-2.0"
] | 26 | 2018-01-29T23:28:45.000Z | 2020-12-01T21:30:32.000Z | update_tools.py | gflaherty/rules_pyz | 900546b12e880f272c82534cdd2423dcb109e795 | [
"Apache-2.0"
] | 28 | 2018-03-31T19:41:12.000Z | 2019-01-30T21:57:43.000Z | update_tools.py | gflaherty/rules_pyz | 900546b12e880f272c82534cdd2423dcb109e795 | [
"Apache-2.0"
] | 17 | 2018-03-08T21:30:22.000Z | 2019-11-22T17:16:00.000Z | #!/usr/bin/env python
import os
import subprocess
GOOS_TO_BAZEL = {
'darwin': 'osx',
'linux': 'linux',
}
GO_TOOL_SRC = ('pypi/pip_generate.go',)
# TODO: Build 32-bit versions?
GOARCH = 'amd64'
if __name__ == '__main__':
main()
| 23.228571 | 70 | 0.554736 |
2cb2f10583b45235d86386a62278891da1c81b82 | 445 | py | Python | cryptolens/exchanges/poloniex.py | hkilian/cryptolens | 22ad4257fb9316e57b2402a83dbbfd583493fb39 | [
"MIT"
] | null | null | null | cryptolens/exchanges/poloniex.py | hkilian/cryptolens | 22ad4257fb9316e57b2402a83dbbfd583493fb39 | [
"MIT"
] | 1 | 2021-06-01T21:50:08.000Z | 2021-06-01T21:50:08.000Z | cryptolens/exchanges/poloniex.py | hkilian/cryptolens | 22ad4257fb9316e57b2402a83dbbfd583493fb39 | [
"MIT"
] | 1 | 2017-11-02T05:08:57.000Z | 2017-11-02T05:08:57.000Z | import json
import requests
from .exchange import Exchange
| 21.190476 | 80 | 0.705618 |
2cb370dba58960e4d34825e77ae18854da4dd923 | 354 | py | Python | exercises/exc_04_02.py | rklymentiev/py-for-neuro | 6bb163347483642c79eac429e5a9289edff7ce09 | [
"MIT"
] | 7 | 2021-04-28T13:12:16.000Z | 2022-01-15T00:21:11.000Z | exercises/exc_04_02.py | rklymentiev/py-for-neuro | 6bb163347483642c79eac429e5a9289edff7ce09 | [
"MIT"
] | 2 | 2021-04-02T18:42:55.000Z | 2021-05-20T08:43:06.000Z | exercises/exc_04_02.py | rklymentiev/py-for-neuro | 6bb163347483642c79eac429e5a9289edff7ce09 | [
"MIT"
] | 2 | 2021-07-04T22:57:29.000Z | 2021-07-29T19:28:43.000Z | import pandas as ___
import seaborn as ___
import matplotlib.pyplot as ___
# read in the data
___
# select the columns with 'mean' in the name
selected_columns = list(___)
# find the correlations
corr_matrix = ___
# make a plot
plt.___(figsize=(8,7), facecolor='white')
sns.___(data=___, cmap="YlGnBu")
plt.___("Correl... | 20.823529 | 44 | 0.748588 |
2cb48221d02e0baf45affa673f10aefd1a5bbb90 | 301 | py | Python | Python/libraries/recognizers-number/recognizers_number/number/utilities.py | XiaoxiaoMa0815/Recognizers-Text | d9a4bc939348bd79b5982345255961dff5f356c6 | [
"MIT"
] | 1 | 2019-01-03T16:41:29.000Z | 2019-01-03T16:41:29.000Z | Python/libraries/recognizers-number/recognizers_number/number/utilities.py | XiaoxiaoMa0815/Recognizers-Text | d9a4bc939348bd79b5982345255961dff5f356c6 | [
"MIT"
] | 76 | 2018-11-09T18:19:44.000Z | 2019-08-20T20:29:53.000Z | Python/libraries/recognizers-number/recognizers_number/number/utilities.py | XiaoxiaoMa0815/Recognizers-Text | d9a4bc939348bd79b5982345255961dff5f356c6 | [
"MIT"
] | 6 | 2017-05-04T17:24:59.000Z | 2019-07-23T15:48:44.000Z | from decimal import localcontext
| 21.5 | 41 | 0.568106 |
2cb530e8e30ba2311d864307233f32b3ff43ff4d | 3,178 | py | Python | tests/lexer_test.py | tykazzz/pseudo | 7414ab0f14142b9ed704d03af0223cf847bf8861 | [
"MIT"
] | null | null | null | tests/lexer_test.py | tykazzz/pseudo | 7414ab0f14142b9ed704d03af0223cf847bf8861 | [
"MIT"
] | null | null | null | tests/lexer_test.py | tykazzz/pseudo | 7414ab0f14142b9ed704d03af0223cf847bf8861 | [
"MIT"
] | null | null | null | """This module contains unit tests for lexer module."""
import pytest
import pseudo
from pseudo.pseudo_types import Operation, Operator, Int
__author__ = "Patryk Niedwiedziski"
def test_is_keyword(lexer):
"""Check Lexer.is_keyword"""
if not (
lexer.is_keyword("pisz") is True
and lexer.is_k... | 25.023622 | 66 | 0.618943 |
2cb565f8f4592084ba48eb766f3c4fa262a33c69 | 717 | py | Python | holobot/extensions/moderation/iconfig_provider.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | 1 | 2021-05-24T00:17:46.000Z | 2021-05-24T00:17:46.000Z | holobot/extensions/moderation/iconfig_provider.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | 41 | 2021-03-24T22:50:09.000Z | 2021-12-17T12:15:13.000Z | holobot/extensions/moderation/iconfig_provider.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | null | null | null | from datetime import timedelta
from holobot.sdk.math import Range
| 28.68 | 60 | 0.739191 |
2cb5d0513e18be9868992203c2b17473bf86c5fd | 1,901 | py | Python | account/functions.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | null | null | null | account/functions.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | 8 | 2020-03-24T17:11:49.000Z | 2022-01-13T01:18:11.000Z | account/functions.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | null | null | null | from django.core.exceptions import PermissionDenied
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from common.functions import instance_get_thumbnail, common_clean
| 29.703125 | 243 | 0.686481 |
2cb5f4cd3fc9c93d71c637d25d6816c5fcb669d6 | 19,227 | py | Python | app/helpers.py | zhuding/javatools | 4b3a57b2ddfec36cae4af08ac5c3d71cfe879f63 | [
"Apache-2.0"
] | null | null | null | app/helpers.py | zhuding/javatools | 4b3a57b2ddfec36cae4af08ac5c3d71cfe879f63 | [
"Apache-2.0"
] | null | null | null | app/helpers.py | zhuding/javatools | 4b3a57b2ddfec36cae4af08ac5c3d71cfe879f63 | [
"Apache-2.0"
] | null | null | null | # coding=utf8
from app import db
| 34.211744 | 149 | 0.504031 |
2cb613c315cc43ee19bfbe4b247bf4ef3c518953 | 321 | py | Python | flask_exp/hello.py | fly2rain/try_git_pycharm | 0bb6b6b05c9d5942c46fa572a5f4dbaa90309b8a | [
"Unlicense"
] | null | null | null | flask_exp/hello.py | fly2rain/try_git_pycharm | 0bb6b6b05c9d5942c46fa572a5f4dbaa90309b8a | [
"Unlicense"
] | null | null | null | flask_exp/hello.py | fly2rain/try_git_pycharm | 0bb6b6b05c9d5942c46fa572a5f4dbaa90309b8a | [
"Unlicense"
] | null | null | null | from flask import Flask
app = Flask(__name__)
if __name__ == '__main__':
# app.run()
x = "Hello world"
y = "hello"
z = "1 2 3"
print(x.lower().strip().split())
print(y.lower().strip().split())
print(z.lower().strip().split())
| 17.833333 | 36 | 0.566978 |
2cb6f59ec4572da89ea0442177be6d5a3a77df0f | 1,931 | py | Python | pythonforandroid/recipes/numpy/__init__.py | wo01/python-for-android | df0866d95c9c508299a6f948302454beb971e3ac | [
"MIT"
] | 2 | 2019-01-07T12:13:25.000Z | 2019-10-19T09:53:50.000Z | pythonforandroid/recipes/numpy/__init__.py | tangingw/python-for-android | 7c125ad96f71a950ed272a116a9446c6f60e87a9 | [
"MIT"
] | null | null | null | pythonforandroid/recipes/numpy/__init__.py | tangingw/python-for-android | 7c125ad96f71a950ed272a116a9446c6f60e87a9 | [
"MIT"
] | 3 | 2018-12-13T09:57:33.000Z | 2019-01-09T15:36:46.000Z | from pythonforandroid.recipe import CompiledComponentsPythonRecipe
from pythonforandroid.toolchain import warning
from os.path import join
recipe = NumpyRecipe()
| 34.482143 | 79 | 0.592439 |
2cba683ad98eb61e03c5f63735dc9df320aadbb6 | 6,136 | py | Python | webdriverwrapper/exceptions.py | jayeshgupta91/python-webdriverwrapper | 9b2c32bbf06ada669feb62ef17fd23365a14ad14 | [
"MIT"
] | null | null | null | webdriverwrapper/exceptions.py | jayeshgupta91/python-webdriverwrapper | 9b2c32bbf06ada669feb62ef17fd23365a14ad14 | [
"MIT"
] | null | null | null | webdriverwrapper/exceptions.py | jayeshgupta91/python-webdriverwrapper | 9b2c32bbf06ada669feb62ef17fd23365a14ad14 | [
"MIT"
] | null | null | null | # pylint: disable=wildcard-import,unused-wildcard-import
from selenium.common.exceptions import *
try:
from Levenshtein import distance as levenshteinDistance
except ImportError:
levenshteinDistance = None
| 33.167568 | 133 | 0.661506 |
2cbac9b4a32de65eb7ed3eda5e7c0c677bf993fd | 2,508 | py | Python | tambola_game_engine/player_input_handler.py | nitinnain/tambola-game | abf04eb9fbf529b10fbb95072e6a8b43564a85ff | [
"MIT"
] | 1 | 2020-08-13T10:26:40.000Z | 2020-08-13T10:26:40.000Z | tambola_game_engine/player_input_handler.py | nitinnain/tambola-game | abf04eb9fbf529b10fbb95072e6a8b43564a85ff | [
"MIT"
] | null | null | null | tambola_game_engine/player_input_handler.py | nitinnain/tambola-game | abf04eb9fbf529b10fbb95072e6a8b43564a85ff | [
"MIT"
] | 3 | 2019-07-21T16:57:20.000Z | 2021-06-20T09:35:06.000Z | #
# Tambola / Housie Mobile Game
#
__author__ = 'nitin'
#import time
from player_ticket import PlayerTicket
# class PlayerInputHandler Ends
| 30.585366 | 86 | 0.573365 |
2cbbe59ec1db7c1f7fb72c95d3212e9c905755bf | 283 | py | Python | sample_problems/problems_with_solution110.py | adi01trip01/adi_workspace | f493b3ba84645eec3a57607243760a826880d1a3 | [
"MIT"
] | null | null | null | sample_problems/problems_with_solution110.py | adi01trip01/adi_workspace | f493b3ba84645eec3a57607243760a826880d1a3 | [
"MIT"
] | null | null | null | sample_problems/problems_with_solution110.py | adi01trip01/adi_workspace | f493b3ba84645eec3a57607243760a826880d1a3 | [
"MIT"
] | null | null | null | # Write a Python program to get numbers divisible by fifteen from a list using an anonymous function.
num_list = [45, 55, 60, 37, 100, 105, 220]
# use anonymous function to filter
result = list(filter(lambda x: (x % 15 == 0), num_list))
print("Numbers divisible by 15 are", result)
| 40.428571 | 101 | 0.720848 |
2cbc33b05d4bd502f34bf5b95f0ed333a15834e5 | 366 | py | Python | jp.atcoder/abc079/abc079_a/8657621.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc079/abc079_a/8657621.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc079/abc079_a/8657621.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
if __name__ == "__main__":
main()
| 15.25 | 38 | 0.355191 |
2cbc43e5fdf0860ab5f93a19da28d89f2488e1bd | 308 | py | Python | examples/plot_expression_vs_inconsistent_splicing.py | YeoLab/flotilla | 31da64567e59003c2b9c03fc8f4eb27ee62e299c | [
"MIT",
"BSD-3-Clause"
] | 98 | 2015-01-08T19:38:47.000Z | 2021-05-04T02:11:55.000Z | examples/plot_expression_vs_inconsistent_splicing.py | YeoLab/flotilla | 31da64567e59003c2b9c03fc8f4eb27ee62e299c | [
"MIT",
"BSD-3-Clause"
] | 123 | 2015-01-08T22:28:43.000Z | 2019-12-20T05:22:29.000Z | examples/plot_expression_vs_inconsistent_splicing.py | YeoLab/flotilla | 31da64567e59003c2b9c03fc8f4eb27ee62e299c | [
"MIT",
"BSD-3-Clause"
] | 27 | 2015-01-21T15:41:40.000Z | 2020-12-22T05:40:47.000Z | """
Show percentage of splicing events whose psi scores are inconsistent between pooled and single
==============================================================================================
"""
import flotilla
study = flotilla.embark(flotilla._shalek2013)
study.plot_expression_vs_inconsistent_splicing() | 44 | 94 | 0.577922 |
2cbcd4b9ca17022184bd917e756928bc5a757104 | 77 | py | Python | hello repeter.py | Jayapraveen34/crazy-lover | be5bd897c40c31b3e5e6eafe3b6436cb3d888efe | [
"BSD-2-Clause"
] | null | null | null | hello repeter.py | Jayapraveen34/crazy-lover | be5bd897c40c31b3e5e6eafe3b6436cb3d888efe | [
"BSD-2-Clause"
] | null | null | null | hello repeter.py | Jayapraveen34/crazy-lover | be5bd897c40c31b3e5e6eafe3b6436cb3d888efe | [
"BSD-2-Clause"
] | null | null | null | a="hello \n"
b=int(input(" Enter the number of times:"))
h=a*b
print (h)
| 15.4 | 44 | 0.597403 |
2cbee0cbd3a8e329664cb277cc0c7a2000dc5e6f | 174 | py | Python | mamiru/app.py | if1live/mamiru | 3d69e9ee75e6e51021c7c5a766afd636c3ab9d2c | [
"MIT"
] | null | null | null | mamiru/app.py | if1live/mamiru | 3d69e9ee75e6e51021c7c5a766afd636c3ab9d2c | [
"MIT"
] | null | null | null | mamiru/app.py | if1live/mamiru | 3d69e9ee75e6e51021c7c5a766afd636c3ab9d2c | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
from .loggers import create_logger
from .mpd_player import MPDPlayer
mpd_player = MPDPlayer()
mpd_player.open()
logger = create_logger('mamiru')
| 13.384615 | 34 | 0.729885 |
2cbf89be6da24a22a9ca1b7215e2c9dcd62dc519 | 184 | py | Python | pycqed/measurement/waveform_control_CC/__init__.py | nuttamas/PycQED_py3 | 1ee35c7428d36ed42ba4afb5d4bda98140b2283e | [
"MIT"
] | 60 | 2016-08-03T10:00:18.000Z | 2021-11-10T11:46:16.000Z | pycqed/measurement/waveform_control_CC/__init__.py | nuttamas/PycQED_py3 | 1ee35c7428d36ed42ba4afb5d4bda98140b2283e | [
"MIT"
] | 512 | 2016-08-03T17:10:02.000Z | 2022-03-31T14:03:43.000Z | pycqed/measurement/waveform_control_CC/__init__.py | nuttamas/PycQED_py3 | 1ee35c7428d36ed42ba4afb5d4bda98140b2283e | [
"MIT"
] | 34 | 2016-10-19T12:00:52.000Z | 2022-03-19T04:43:26.000Z | '''
Module containing waveforms for any codeword based waveform generator.
This is the library containing pulses for
CBox (still uses old one)
QWG
UHFQC (not used yet)
'''
| 23 | 70 | 0.722826 |
2cc08333be3174d0b142d7bc58887c3bfc8700a5 | 6,369 | py | Python | app/routes.py | MBkkt/TaskManager | ed4a5cb5bbb93dc3b10d459cf2e37a82be5b8a5e | [
"MIT"
] | null | null | null | app/routes.py | MBkkt/TaskManager | ed4a5cb5bbb93dc3b10d459cf2e37a82be5b8a5e | [
"MIT"
] | 1 | 2019-04-30T22:19:15.000Z | 2019-04-30T22:20:06.000Z | app/routes.py | MBkkt/Task_Manager | ed4a5cb5bbb93dc3b10d459cf2e37a82be5b8a5e | [
"MIT"
] | null | null | null | from functools import wraps
from flask import render_template, flash, redirect, url_for, request
from flask_login import login_user, logout_user, current_user, login_required
from app import app
from app.models import User, Task
from app.forms import (
LoginForm, RegistrationForm, AddTask,
EditTaskForPerformer,... | 31.374384 | 77 | 0.633851 |
2cc092fe85073efa8f38bdc1b3e3d9c07f22b3d8 | 4,136 | py | Python | project.py | Peter-Sanders/IE-512-Decison-Analysis-Final-Project | 868c6bb3843350d943027073cf4b4631d0188de0 | [
"Unlicense"
] | 1 | 2019-12-14T03:08:23.000Z | 2019-12-14T03:08:23.000Z | project.py | Peter-Sanders/IE-512-Decison-Analysis-Final-Project | 868c6bb3843350d943027073cf4b4631d0188de0 | [
"Unlicense"
] | null | null | null | project.py | Peter-Sanders/IE-512-Decison-Analysis-Final-Project | 868c6bb3843350d943027073cf4b4631d0188de0 | [
"Unlicense"
] | null | null | null |
# coding: utf-8
# # Stock Choice Decision Analysis
# Code written and commentated by Peter Sanders
# ### Load Relevant Packages
# In[1]:
from pandas_datareader import data
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
from datetime import datetime
import numpy as np
import math
from sci... | 19.237209 | 126 | 0.671905 |
2cc23585208ade836fd3bc7a82d50a60c3e5f9ae | 4,282 | py | Python | pyaz/network/routeserver/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/network/routeserver/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/network/routeserver/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | '''
Manage the route server.
'''
from ... pyaz_utils import _call_az
from . import peering
def create(hosted_subnet, name, resource_group, location=None, public_ip_address=None, tags=None):
'''
Create a route server.
Required Parameters:
- hosted_subnet -- The ID of a subnet where Route Server would ... | 43.252525 | 164 | 0.704577 |
2cc331db5c05974b7e5d6a6759775540b86d78ad | 40,276 | py | Python | slicem_gui.py | marcottelab/Slicem | 2dbf9f8faf89a12c983595871809445663bc5a26 | [
"MIT"
] | 5 | 2019-10-05T03:04:57.000Z | 2021-10-02T23:52:56.000Z | slicem_gui.py | marcottelab/Slicem | 2dbf9f8faf89a12c983595871809445663bc5a26 | [
"MIT"
] | 2 | 2019-11-24T09:58:13.000Z | 2020-11-09T23:57:28.000Z | slicem_gui.py | marcottelab/SLICEM | 2dbf9f8faf89a12c983595871809445663bc5a26 | [
"MIT"
] | null | null | null | import os
import mrcfile
import numpy as np
import pandas as pd
import networkx as nx
from igraph import Graph
from scipy import ndimage as ndi
from skimage import transform, measure
import tkinter as tk
from tkinter import ttk
import tkinter.filedialog
import matplotlib
from matplotlib import cm
import matplotlib.py... | 34.931483 | 112 | 0.553282 |
2cc3614089af5f1da1c7bc8aa724616051ecf077 | 8,055 | py | Python | moonv4/moon_db/moon_db/migrate_repo/versions/001_moon.py | hashnfv/hashnfv-moon | daaba34fa2ed4426bc0fde359e54a5e1b872208c | [
"Apache-2.0"
] | null | null | null | moonv4/moon_db/moon_db/migrate_repo/versions/001_moon.py | hashnfv/hashnfv-moon | daaba34fa2ed4426bc0fde359e54a5e1b872208c | [
"Apache-2.0"
] | null | null | null | moonv4/moon_db/moon_db/migrate_repo/versions/001_moon.py | hashnfv/hashnfv-moon | daaba34fa2ed4426bc0fde359e54a5e1b872208c | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Open Platform for NFV Project, Inc. and its contributors
# This software is distributed under the terms and conditions of the 'Apache-2.0'
# license which can be found in the file 'LICENSE' in this package distribution
# or at 'http://www.apache.org/licenses/LICENSE-2.0'.
import sqlalchemy as sql
| 37.119816 | 91 | 0.638485 |
2cc36408fd4a9ecb70290277aa45a301b255ed9b | 1,683 | py | Python | project/asks/migrations/0002_auto_20211002_1924.py | fael07/Live-Questions-Backend | 40813ba8a34edc5219c5648a3b0b35c55139db55 | [
"MIT"
] | null | null | null | project/asks/migrations/0002_auto_20211002_1924.py | fael07/Live-Questions-Backend | 40813ba8a34edc5219c5648a3b0b35c55139db55 | [
"MIT"
] | null | null | null | project/asks/migrations/0002_auto_20211002_1924.py | fael07/Live-Questions-Backend | 40813ba8a34edc5219c5648a3b0b35c55139db55 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-02 22:24
from django.db import migrations, models
| 29.017241 | 117 | 0.526441 |
2cc537735a2d67e707923633b8c5359a8e975af1 | 650 | py | Python | src/openprocurement/tender/openeu/procedure/state/bid.py | ProzorroUKR/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 10 | 2020-02-18T01:56:21.000Z | 2022-03-28T00:32:57.000Z | src/openprocurement/tender/openeu/procedure/state/bid.py | quintagroup/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 26 | 2018-07-16T09:30:44.000Z | 2021-02-02T17:51:30.000Z | src/openprocurement/tender/openeu/procedure/state/bid.py | ProzorroUKR/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 15 | 2019-08-08T10:50:47.000Z | 2022-02-05T14:13:36.000Z | from openprocurement.api.utils import error_handler
from openprocurement.tender.core.procedure.state.bid import BidState as BaseBidState
| 40.625 | 99 | 0.695385 |
2cc54c1983960e2959f4569eed5ba54d8ffadc15 | 4,903 | py | Python | api/serializers.py | apigram/jade-api | 1aece29c3109db68897fdf854be431554e7f2863 | [
"Apache-2.0"
] | null | null | null | api/serializers.py | apigram/jade-api | 1aece29c3109db68897fdf854be431554e7f2863 | [
"Apache-2.0"
] | null | null | null | api/serializers.py | apigram/jade-api | 1aece29c3109db68897fdf854be431554e7f2863 | [
"Apache-2.0"
] | null | null | null | from rest_framework_nested.serializers import NestedHyperlinkedModelSerializer
from rest_framework_nested.relations import NestedHyperlinkedRelatedField
from rest_framework import serializers
from api.models import User, Company, CompanyContact, Order, Item, Contact, OrderItem
import copy
| 27.544944 | 85 | 0.646543 |
2cc5625c16ac62cef1a16f88ef8ee506d837539a | 1,703 | py | Python | kanga/management/commands/add-origins.py | deptofdefense/kanga | 9c8d926a4828e2fca528915ddf35759d1c328c85 | [
"MIT"
] | 1 | 2022-03-05T01:17:59.000Z | 2022-03-05T01:17:59.000Z | kanga/management/commands/add-origins.py | deptofdefense/kanga | 9c8d926a4828e2fca528915ddf35759d1c328c85 | [
"MIT"
] | null | null | null | kanga/management/commands/add-origins.py | deptofdefense/kanga | 9c8d926a4828e2fca528915ddf35759d1c328c85 | [
"MIT"
] | null | null | null | # =================================================================
#
# Work of the U.S. Department of Defense, Defense Digital Service.
# Released as open source under the MIT License. See LICENSE file.
#
# =================================================================
import json
import sys
from django.core.man... | 28.864407 | 84 | 0.500881 |
2cc59f6d545ed4eb26a63f14b39ba4426d435d78 | 17,950 | py | Python | krun/tests/test_manifest_manager.py | softdevteam/krun | a0c8e5bfb91d192695df63a500be96b7e6764491 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 68 | 2015-09-28T18:29:45.000Z | 2022-01-25T21:54:18.000Z | krun/tests/test_manifest_manager.py | softdevteam/krun | a0c8e5bfb91d192695df63a500be96b7e6764491 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 369 | 2015-07-01T14:43:22.000Z | 2021-07-28T09:34:25.000Z | krun/tests/test_manifest_manager.py | softdevteam/krun | a0c8e5bfb91d192695df63a500be96b7e6764491 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 9 | 2016-04-29T18:28:28.000Z | 2020-10-02T21:17:26.000Z | import os.path
import pytest
from krun.config import Config
from krun.scheduler import ManifestManager
from krun.util import FatalKrunError
from krun.tests.mocks import MockPlatform, mock_platform
DEFAULT_MANIFEST = "krun.manifest"
TEST_DIR = os.path.abspath(os.path.dirname(__file__))
BLANK_EXAMPLE_MANIFEST = """eta... | 32.695811 | 94 | 0.710306 |
2cc813a4b5a65446f5e51d5a31e50f0a7569413f | 692 | py | Python | examples/joost/grammarator.py | wilkeraziz/grasp | 95f5135fd3711eed32cddce2049dd595314fb1f4 | [
"Apache-2.0"
] | 9 | 2015-07-22T18:07:44.000Z | 2021-11-08T11:21:11.000Z | examples/joost/grammarator.py | wilkeraziz/grasp | 95f5135fd3711eed32cddce2049dd595314fb1f4 | [
"Apache-2.0"
] | null | null | null | examples/joost/grammarator.py | wilkeraziz/grasp | 95f5135fd3711eed32cddce2049dd595314fb1f4 | [
"Apache-2.0"
] | 1 | 2021-01-12T10:00:22.000Z | 2021-01-12T10:00:22.000Z | #!/usr/bin/env python3
import argparse
parser = argparse.ArgumentParser(description='Process some integers.')
parser.add_argument('k', metavar='k', type=int, nargs='?',
help='number of classes of terminals (terminal-generating non-terminals)')
args = parser.parse_args()
# print("k = %d" % args.k)
print("""[A] |||... | 26.615385 | 76 | 0.492775 |
2ccbbcd205dc73323b99918be9662a57635d2a3f | 5,924 | py | Python | app/sims/method/fields.py | DeepanshS/mrsimulator-ui | 42f1a85f1cb76896cde2a3c8d4e38fe2c989b710 | [
"BSD-3-Clause"
] | 2 | 2019-11-21T16:14:13.000Z | 2020-10-17T21:36:00.000Z | app/sims/method/fields.py | DeepanshS/mrsimulator-ui | 42f1a85f1cb76896cde2a3c8d4e38fe2c989b710 | [
"BSD-3-Clause"
] | 32 | 2021-07-07T20:16:29.000Z | 2022-03-29T14:09:23.000Z | app/sims/method/fields.py | DeepanshS/mrsimulator-ui | 42f1a85f1cb76896cde2a3c8d4e38fe2c989b710 | [
"BSD-3-Clause"
] | 2 | 2019-10-23T18:23:57.000Z | 2021-03-25T00:13:10.000Z | # -*- coding: utf-8 -*-
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input
from dash.dependencies import Output
from app import app
from app.custom_widgets import collapsable_card
from app.custom_widgets import container
from app.custom_widgets import custom_butt... | 29.182266 | 88 | 0.61293 |
2ccd10be9cf005daa54af29a59abb7193ea30f61 | 987 | py | Python | Python_OO/Encapsulamento.py | Madara701/Python_OO | 8d67569a8c4771dd82f5259c2ed5e782cd4e4036 | [
"Apache-2.0"
] | null | null | null | Python_OO/Encapsulamento.py | Madara701/Python_OO | 8d67569a8c4771dd82f5259c2ed5e782cd4e4036 | [
"Apache-2.0"
] | null | null | null | Python_OO/Encapsulamento.py | Madara701/Python_OO | 8d67569a8c4771dd82f5259c2ed5e782cd4e4036 | [
"Apache-2.0"
] | null | null | null | '''
# Exemplo de encapsulamento da forma que feita em Java
class P:
def __init__(self,x):
self.__x = x #<- tornando ele um atributo privado
def getX(self):
return self.__x
def setX(self, x):
if x > 0:
self.__x = x
p = P(10) #<- passei o primeiro valor que deve chamar ... | 23.5 | 93 | 0.619048 |
2ccde9b29ea22d626ef946f293750a7818adbe97 | 1,915 | py | Python | GCC-paddle/tests/test_node_classification.py | S-HuaBomb/Contrib | 10596814bb98c9e2499e4240e56207dc3b547959 | [
"Apache-2.0"
] | 243 | 2020-06-16T08:06:57.000Z | 2022-03-31T10:09:37.000Z | GCC-paddle/tests/test_node_classification.py | S-HuaBomb/Contrib | 10596814bb98c9e2499e4240e56207dc3b547959 | [
"Apache-2.0"
] | 34 | 2020-02-20T11:04:58.000Z | 2022-03-12T00:54:26.000Z | GCC-paddle/tests/test_node_classification.py | S-HuaBomb/Contrib | 10596814bb98c9e2499e4240e56207dc3b547959 | [
"Apache-2.0"
] | 49 | 2020-06-28T02:37:17.000Z | 2022-03-29T08:07:35.000Z | import argparse
import os
from gcc.tasks.node_classification import NodeClassification
from tests.utils import E2E_PATH, MOCO_PATH, get_default_args, generate_emb
# def test_graphwave_hindex():
# ret = run("h-index", "graphwave")
# assert ret["Micro-F1"] > 0.70, ret["Micro-F1"]
| 29.015152 | 86 | 0.654308 |
2ccee2fa8c8ba625dd902253db0db5b0a2526b08 | 563 | py | Python | class2/exercises/exercise2/exercise2c.py | EndlessDynamics/Fork_nornir_course | 04bf7e3819659f481a4e04059152877b795177b2 | [
"Apache-2.0"
] | 60 | 2019-05-11T05:23:10.000Z | 2022-03-30T08:03:43.000Z | class2/exercises/exercise2/exercise2c.py | EndlessDynamics/Fork_nornir_course | 04bf7e3819659f481a4e04059152877b795177b2 | [
"Apache-2.0"
] | 14 | 2021-03-31T19:08:08.000Z | 2021-09-15T17:29:40.000Z | class2/exercises/exercise2/exercise2c.py | EndlessDynamics/Fork_nornir_course | 04bf7e3819659f481a4e04059152877b795177b2 | [
"Apache-2.0"
] | 21 | 2019-08-08T21:30:46.000Z | 2022-03-28T06:22:25.000Z | from rich import print
from nornir import InitNornir
from nornir.core.filter import F
from nornir_netmiko import netmiko_send_command
if __name__ == "__main__":
main()
| 22.52 | 73 | 0.694494 |
e2ba3189a471ae4c5fad168efa534a2e6749bec4 | 13,265 | py | Python | portality/api/current/data_objects/application.py | DOAJ/doaj | b11f163c48f51f9e3ada2b02c617b50b847dcb4c | [
"Apache-2.0"
] | 47 | 2015-04-24T13:13:39.000Z | 2022-03-06T03:22:42.000Z | portality/api/current/data_objects/application.py | DOAJ/doaj | b11f163c48f51f9e3ada2b02c617b50b847dcb4c | [
"Apache-2.0"
] | 1,215 | 2015-01-02T14:29:38.000Z | 2022-03-28T14:19:13.000Z | portality/api/current/data_objects/application.py | DOAJ/doaj | b11f163c48f51f9e3ada2b02c617b50b847dcb4c | [
"Apache-2.0"
] | 14 | 2015-11-27T13:01:23.000Z | 2021-05-21T07:57:23.000Z | import uuid
from datetime import datetime
from portality.api.current.data_objects.common import _check_for_script
from portality.lib import swagger, seamless, coerce, dates, dataobj
from portality import models
from copy import deepcopy
from portality.api.current.data_objects.common_journal_application import Outgoin... | 35.467914 | 140 | 0.603166 |
e2bb34491e38dbc3dc365a94ad89e01f67df3fb7 | 1,147 | py | Python | config.py | Arrackisarookie/blog | 26d9a73b823ca08973541fcd2306a9d31272dfb0 | [
"MIT"
] | 4 | 2019-10-02T13:41:44.000Z | 2022-02-05T15:35:35.000Z | config.py | Arrackisarookie/blog | 26d9a73b823ca08973541fcd2306a9d31272dfb0 | [
"MIT"
] | null | null | null | config.py | Arrackisarookie/blog | 26d9a73b823ca08973541fcd2306a9d31272dfb0 | [
"MIT"
] | 1 | 2020-06-11T14:25:48.000Z | 2020-06-11T14:25:48.000Z | import os
config = {
'development': DevelopmentConfig,
'testing': TestingConfig,
'production': ProductionConfig,
'default': DevelopmentConfig
}
| 23.408163 | 103 | 0.711421 |
e2bd7c8a213c65827af43039aa4e15d0d27034d2 | 4,086 | py | Python | app.py | joumanarahime/sqlalchemy-challenge | e86c3a05443a6d2664b2f9ab8145565c7fbce24b | [
"ADSL"
] | null | null | null | app.py | joumanarahime/sqlalchemy-challenge | e86c3a05443a6d2664b2f9ab8145565c7fbce24b | [
"ADSL"
] | null | null | null | app.py | joumanarahime/sqlalchemy-challenge | e86c3a05443a6d2664b2f9ab8145565c7fbce24b | [
"ADSL"
] | null | null | null | import numpy as np
import pandas as dp
import datetime as dt
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
#engine = create_engine("sqlite:///Resources/hawaii.sqlite")
engine = create_engi... | 27.986301 | 140 | 0.610622 |
e2c0bf5b55ffe7710e49dea53d18f7b4cbfd6eba | 1,756 | py | Python | django_auth2/views/activate.py | Nick1994209/django-auth2 | b8678f06ade985d2b5b0606e6e49bd9d2a49931a | [
"MIT"
] | null | null | null | django_auth2/views/activate.py | Nick1994209/django-auth2 | b8678f06ade985d2b5b0606e6e49bd9d2a49931a | [
"MIT"
] | null | null | null | django_auth2/views/activate.py | Nick1994209/django-auth2 | b8678f06ade985d2b5b0606e6e49bd9d2a49931a | [
"MIT"
] | null | null | null | from django.contrib import auth
from django.db.transaction import atomic
from django.http import Http404
from django.shortcuts import redirect, render
from django.urls import reverse
from django.utils.encoding import force_text
from django.utils.http import urlsafe_base64_decode
from django.views import View
from djang... | 27.4375 | 92 | 0.719248 |
e2c22072840b5cebafa87588c583e804ebeab003 | 4,035 | py | Python | Project1/Scripts/SVMAverageFeature/SVM_PerPhoto.py | TheLaurens/Team-Brains | 78b2417c90116336ac02036d4c148eb221f73830 | [
"MIT"
] | null | null | null | Project1/Scripts/SVMAverageFeature/SVM_PerPhoto.py | TheLaurens/Team-Brains | 78b2417c90116336ac02036d4c148eb221f73830 | [
"MIT"
] | null | null | null | Project1/Scripts/SVMAverageFeature/SVM_PerPhoto.py | TheLaurens/Team-Brains | 78b2417c90116336ac02036d4c148eb221f73830 | [
"MIT"
] | 1 | 2018-10-04T01:54:53.000Z | 2018-10-04T01:54:53.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 30 13:42:47 2016
@author: DTump
"""
#Combines the featurevalues of the images with the labels assigned to the
#corresponding business. It trains an SVM on these featurevalues of the images
#to the labels of the trainset of the traindata and then
#predicts the labels th... | 35.394737 | 119 | 0.752169 |
e2c27c3325a471c439f695d2c7b7452fdcb4a522 | 7,171 | py | Python | cliquet/tests/test_listeners.py | codebyravi/cliquet | 6346dd436b5c553a48da6a3430ffd34fe8c7bcbe | [
"Apache-2.0"
] | 89 | 2015-02-26T07:49:37.000Z | 2019-11-15T01:00:03.000Z | cliquet/tests/test_listeners.py | codebyravi/cliquet | 6346dd436b5c553a48da6a3430ffd34fe8c7bcbe | [
"Apache-2.0"
] | 605 | 2015-02-19T21:45:40.000Z | 2019-03-28T14:11:25.000Z | cliquet/tests/test_listeners.py | codebyravi/cliquet | 6346dd436b5c553a48da6a3430ffd34fe8c7bcbe | [
"Apache-2.0"
] | 33 | 2015-03-18T17:40:00.000Z | 2020-07-13T06:16:48.000Z | # -*- coding: utf-8 -*-
import json
import uuid
from contextlib import contextmanager
from datetime import datetime
import mock
from pyramid import testing
from cliquet import initialization
from cliquet.events import ResourceChanged, ResourceRead, ACTIONS
from cliquet.listeners import ListenerBase
from cliquet.stora... | 32.447964 | 78 | 0.649979 |
e2c2ef5f0ed5007739bc437e3d290c9dbf8eeede | 256 | py | Python | frappe/patches/v11_0/remove_doctype_user_permissions_for_page_and_report.py | chentaoz/frappe | ee3c4943bf6177ad3b410cdb0d802af486751a65 | [
"MIT"
] | 5 | 2017-09-12T15:56:31.000Z | 2022-03-09T13:50:21.000Z | frappe/patches/v11_0/remove_doctype_user_permissions_for_page_and_report.py | chentaoz/frappe | ee3c4943bf6177ad3b410cdb0d802af486751a65 | [
"MIT"
] | 212 | 2017-08-16T13:03:18.000Z | 2020-10-06T12:26:21.000Z | frappe/patches/v11_0/remove_doctype_user_permissions_for_page_and_report.py | chentaoz/frappe | ee3c4943bf6177ad3b410cdb0d802af486751a65 | [
"MIT"
] | 14 | 2020-11-04T11:22:44.000Z | 2022-02-01T20:59:37.000Z | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe | 32 | 85 | 0.769531 |
e2c2f8ba329df746295b2ad639358341171d0025 | 9,753 | py | Python | GhostHooksrc.py | UiIsBack/GhostHook | 1118757b604f8325f6d066a51c2fcd7d8d8686a4 | [
"Apache-2.0"
] | 7 | 2022-03-05T14:37:58.000Z | 2022-03-20T03:32:02.000Z | GhostHooksrc.py | UiIsBack/GhostHook | 1118757b604f8325f6d066a51c2fcd7d8d8686a4 | [
"Apache-2.0"
] | null | null | null | GhostHooksrc.py | UiIsBack/GhostHook | 1118757b604f8325f6d066a51c2fcd7d8d8686a4 | [
"Apache-2.0"
] | 1 | 2022-03-11T22:54:48.000Z | 2022-03-11T22:54:48.000Z |
import os
os.system(f'cls & mode 85,20 & title GhostHook! - Version 1.4!')
from json import loads, dumps
from threading import Thread
from time import sleep
from sys import argv
import pystyle
from pystyle import *
import time
import requests
from colorama import Fore
import threading
import sys
main... | 36.803774 | 127 | 0.347073 |
e2c416a4bb316127137c72ec92b16939e3cadcdc | 8,142 | py | Python | pyblish_starter/vendor/Qt.py | pyblish/pyblish-starter | 7d0ed4769737271685838c9d5348c22bc17e7506 | [
"MIT"
] | 17 | 2016-09-27T06:48:03.000Z | 2021-05-29T13:23:12.000Z | pyblish_starter/vendor/Qt.py | pyblish/pyblish-starter | 7d0ed4769737271685838c9d5348c22bc17e7506 | [
"MIT"
] | 7 | 2016-09-22T06:17:48.000Z | 2020-03-22T01:46:53.000Z | pyblish_starter/vendor/Qt.py | pyblish/pyblish-starter | 7d0ed4769737271685838c9d5348c22bc17e7506 | [
"MIT"
] | 7 | 2016-09-27T14:10:58.000Z | 2022-02-09T13:18:15.000Z | """Map all bindings to PySide2
This module replaces itself with the most desirable binding.
Project goals:
Qt.py was born in the film and visual effects industry to address
the growing need for the development of software capable of running
with more than one flavour of the Qt bindings for Python - PySide... | 29.5 | 76 | 0.648735 |
e2c47328612db2e98bae7524f25a77728b3348bc | 260 | py | Python | chess/players.py | Jonxslays/Chess | e7dbad1bfb2825fa8db616c64e9e3719e58c526c | [
"MIT"
] | 1 | 2021-12-16T13:33:05.000Z | 2021-12-16T13:33:05.000Z | chess/players.py | Jonxslays/Chess | e7dbad1bfb2825fa8db616c64e9e3719e58c526c | [
"MIT"
] | null | null | null | chess/players.py | Jonxslays/Chess | e7dbad1bfb2825fa8db616c64e9e3719e58c526c | [
"MIT"
] | null | null | null | from __future__ import annotations
from dataclasses import dataclass, field
from chess.moves import Move
| 18.571429 | 54 | 0.726923 |
e2c5a70bc31179b591d0599334c26264e4b70aca | 676 | py | Python | .config/polybar/scripts/weather/weather.py | XECortex/dots | ce07f010b2ba80b8105b5bf7786f54df9048ec81 | [
"MIT"
] | 3 | 2021-02-18T17:59:17.000Z | 2021-02-19T19:54:18.000Z | .config/polybar/scripts/weather/weather.py | XECortex/dots | ce07f010b2ba80b8105b5bf7786f54df9048ec81 | [
"MIT"
] | null | null | null | .config/polybar/scripts/weather/weather.py | XECortex/dots | ce07f010b2ba80b8105b5bf7786f54df9048ec81 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import requests
path = os.path.dirname(os.path.realpath(__file__))
if not os.path.isfile(f"{path}/config.py"):
print(f" No weather config found. Check out \"{path}/config.py\"")
exit()
else:
from config import *
url = f"https://api.openweathermap.org/data/2.5/weather?id={... | 28.166667 | 104 | 0.647929 |
e2c72ceb88a1e9c682a071477b57dcf4d8d544d4 | 1,074 | py | Python | util/driver.py | youran1024/AutoTest | 91925ea69f87acc9718674e483dfac61bbcc6dbf | [
"MIT"
] | 1 | 2018-12-13T06:43:15.000Z | 2018-12-13T06:43:15.000Z | util/driver.py | youran1024/AutoTest | 91925ea69f87acc9718674e483dfac61bbcc6dbf | [
"MIT"
] | null | null | null | util/driver.py | youran1024/AutoTest | 91925ea69f87acc9718674e483dfac61bbcc6dbf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from appium import webdriver
server_base = "http://127.0.0.1:"
server_end = "/wd/hub"
capabilities = {
"platformName": "iOS",
"automationName": "XCUITest",
"platformVersion": "11.0",
"app": "/Users/hunter/Desktop/python/PythonAppium2/app/iOSFinancial.app... | 22.851064 | 77 | 0.620112 |
e2c79bb231a5883f6c6734e5c39580db4ae4b01c | 8,821 | py | Python | app_store_sdk/api/micro_app/get_packages_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | app_store_sdk/api/micro_app/get_packages_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | app_store_sdk/api/micro_app/get_packages_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: get_packages.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobu... | 42.205742 | 743 | 0.769981 |
e2ca2a685e2cc8d72a34a28cd4d603f543566419 | 412 | py | Python | tests/unit/test_cli.py | amenezes/rabbit-client | 411b62b91bf0dd6fbf1fbc1c9a3dc801339adc74 | [
"Apache-2.0"
] | 5 | 2019-09-19T00:02:02.000Z | 2022-01-04T17:33:37.000Z | tests/unit/test_cli.py | amenezes/rabbit-client | 411b62b91bf0dd6fbf1fbc1c9a3dc801339adc74 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_cli.py | amenezes/rabbit-client | 411b62b91bf0dd6fbf1fbc1c9a3dc801339adc74 | [
"Apache-2.0"
] | null | null | null | import pytest
from cleo import CommandTester
from rabbit.__main__ import application
| 22.888889 | 44 | 0.725728 |
e2cb10f64b9ef71fc7c131f5445359c3201c9700 | 1,497 | py | Python | objectModel/Python/cdm/resolvedmodel/expression_parser/input_values.py | rt112000/CDM | 34bd34f9260140a8f8aa02bd87c23033f3daad4c | [
"CC-BY-4.0",
"MIT"
] | 884 | 2019-05-10T02:09:10.000Z | 2022-03-31T14:02:00.000Z | objectModel/Python/cdm/resolvedmodel/expression_parser/input_values.py | spbast/CDM | bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7 | [
"CC-BY-4.0",
"MIT"
] | 171 | 2019-06-10T11:34:37.000Z | 2022-03-31T22:50:12.000Z | objectModel/Python/cdm/resolvedmodel/expression_parser/input_values.py | spbast/CDM | bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7 | [
"CC-BY-4.0",
"MIT"
] | 340 | 2019-05-07T18:00:16.000Z | 2022-03-31T12:00:15.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
from typing import Optional, TYPE_CHECKING
if TYPE_CHECKING:
from cdm.resolvedmodel.projections.projection_directive import ProjectionDirective
| 49.9 | 138 | 0.752171 |
e2cc469a9d5f9eb52e92e899cd71c384665fc22f | 187 | py | Python | rx3/core/observable/merge.py | samiur/RxPY | ea6b3554ab06cfc70e28b532c0a54b910b6ee470 | [
"MIT"
] | null | null | null | rx3/core/observable/merge.py | samiur/RxPY | ea6b3554ab06cfc70e28b532c0a54b910b6ee470 | [
"MIT"
] | null | null | null | rx3/core/observable/merge.py | samiur/RxPY | ea6b3554ab06cfc70e28b532c0a54b910b6ee470 | [
"MIT"
] | null | null | null |
import rx3
from rx3 import operators as ops
from rx3.core import Observable
| 20.777778 | 59 | 0.770053 |
e2cd7f4f07d9be0f1ed74501dcf688591a74dbfd | 1,155 | py | Python | test/log/LoggerFixture.py | pip-services3-python/pip-services3-aws-python | f80f5bc1949edf29332c58481ea2051ac3ef9795 | [
"MIT"
] | null | null | null | test/log/LoggerFixture.py | pip-services3-python/pip-services3-aws-python | f80f5bc1949edf29332c58481ea2051ac3ef9795 | [
"MIT"
] | null | null | null | test/log/LoggerFixture.py | pip-services3-python/pip-services3-aws-python | f80f5bc1949edf29332c58481ea2051ac3ef9795 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import time
from pip_services3_components.log import CachedLogger, LogLevel
| 27.5 | 63 | 0.6329 |
e2d00c6db9f20e63c501bb2ab3b7059442e579b6 | 11,511 | py | Python | probeye/definition/noise_model.py | BAMresearch/probeye | ff018ef629f7d5ce4a263b6656b363f90ab6be02 | [
"MIT"
] | null | null | null | probeye/definition/noise_model.py | BAMresearch/probeye | ff018ef629f7d5ce4a263b6656b363f90ab6be02 | [
"MIT"
] | 42 | 2021-08-24T06:50:17.000Z | 2022-03-25T09:05:41.000Z | probeye/definition/noise_model.py | BAMresearch/probeye | ff018ef629f7d5ce4a263b6656b363f90ab6be02 | [
"MIT"
] | 2 | 2021-11-14T22:30:54.000Z | 2022-02-28T13:39:00.000Z | # standard library
from typing import Union, List, Optional
# third party imports
import numpy as np
# local imports
from probeye.definition.sensor import Sensor
from probeye.subroutines import make_list, translate_prms_def
| 40.819149 | 88 | 0.616541 |
e2d04c5ee8c36428fe2986aecb0322ff15966a1b | 5,050 | py | Python | gnes/client/cli.py | dixiak/gnes | 12513d29157a06bd22923717fd0c19a856f20193 | [
"Apache-2.0"
] | null | null | null | gnes/client/cli.py | dixiak/gnes | 12513d29157a06bd22923717fd0c19a856f20193 | [
"Apache-2.0"
] | null | null | null | gnes/client/cli.py | dixiak/gnes | 12513d29157a06bd22923717fd0c19a856f20193 | [
"Apache-2.0"
] | null | null | null | # Tencent is pleased to support the open source community by making GNES available.
#
# Copyright (C) 2019 THL A29 Limited, a Tencent company. 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... | 40.4 | 122 | 0.596634 |
e2d095cca36d579b4c4aba638f516534e9e13094 | 1,224 | py | Python | wave path difference/3d.py | muronglengjing/sound-wave | b6d75f11f015bc422460be1df79a36234a64afb1 | [
"MIT"
] | 3 | 2020-11-09T15:45:19.000Z | 2021-01-02T04:15:49.000Z | wave path difference/3d.py | muronglengjing/sound-wave | b6d75f11f015bc422460be1df79a36234a64afb1 | [
"MIT"
] | null | null | null | wave path difference/3d.py | muronglengjing/sound-wave | b6d75f11f015bc422460be1df79a36234a64afb1 | [
"MIT"
] | 1 | 2020-11-09T15:49:54.000Z | 2020-11-09T15:49:54.000Z | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.widgets import Slider
import matplotlib.animation as animation
# to get the distance of wave
# y = kx + b
# ax+by+cz+d = 0
# become real axic
def axic(x, y, z):
_x = x * _w / _N
_y = y * _l / _M
_z = z * _h / _O
return _x, _y, _z
#... | 17.485714 | 104 | 0.558007 |
e2d1bb0b22edf3413b741eb5f67bcbec7c51c19a | 1,470 | py | Python | work_dirs_bottle/cascade_rcnn_r50_fpn/reclass.py | speciallan/mmdetection | 786a6b4eb9f0b9bb3fd5b3ab81ede7d1b23573d6 | [
"Apache-2.0"
] | null | null | null | work_dirs_bottle/cascade_rcnn_r50_fpn/reclass.py | speciallan/mmdetection | 786a6b4eb9f0b9bb3fd5b3ab81ede7d1b23573d6 | [
"Apache-2.0"
] | null | null | null | work_dirs_bottle/cascade_rcnn_r50_fpn/reclass.py | speciallan/mmdetection | 786a6b4eb9f0b9bb3fd5b3ab81ede7d1b23573d6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Speciallan
if __name__ == "__main__":
main() | 63.913043 | 134 | 0.729252 |
e2d1c535f397cdd8f4ccfa83d542ceadcab2a601 | 6,007 | py | Python | wlauto/workloads/video/__init__.py | joesavage/workload-automation | 3a863fa14369d9bf1f20f82eb5ab4582499c6b99 | [
"Apache-2.0"
] | 5 | 2016-04-27T13:51:12.000Z | 2016-06-23T12:38:14.000Z | wlauto/workloads/video/__init__.py | joesavage/workload-automation | 3a863fa14369d9bf1f20f82eb5ab4582499c6b99 | [
"Apache-2.0"
] | 110 | 2016-05-05T19:13:26.000Z | 2017-01-20T16:18:02.000Z | wlauto/workloads/video/__init__.py | joesavage/workload-automation | 3a863fa14369d9bf1f20f82eb5ab4582499c6b99 | [
"Apache-2.0"
] | 1 | 2016-04-27T15:18:55.000Z | 2016-04-27T15:18:55.000Z | # Copyright 2013-2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 45.165414 | 124 | 0.649575 |
e2d2b4052b90ff8fb0044cd2881dbc85ff0ecd49 | 337 | py | Python | pyGAE/app_config.py | analyticstraining/pycocms | 29d7c3eea9377495bcafd8b8c62016c21c1a74a7 | [
"MIT"
] | null | null | null | pyGAE/app_config.py | analyticstraining/pycocms | 29d7c3eea9377495bcafd8b8c62016c21c1a74a7 | [
"MIT"
] | null | null | null | pyGAE/app_config.py | analyticstraining/pycocms | 29d7c3eea9377495bcafd8b8c62016c21c1a74a7 | [
"MIT"
] | null | null | null | '''
Configuration script in Python.
Add a secret_key
'''
APP_CONFIG = {
'webapp2_extras.auth': {
'user_model': 'models.User',
'user_attributes': ['name', "email_address"]
},
'webapp2_extras.sessions': {
'secret_key': 'YOUR_SECRET_KEY'
}
}
APP_NAME = "pycoCMS"
MAIL_SENDER = 'pyc... | 19.823529 | 52 | 0.626113 |
e2d40cbadb8b28d4ec71d0513975ed33675020aa | 627 | py | Python | Cloud/2/ATMClientCLI.py | hsinewu/School | 2c55a3fd4a7794e64651b66d36f439a11c180b2c | [
"MIT"
] | null | null | null | Cloud/2/ATMClientCLI.py | hsinewu/School | 2c55a3fd4a7794e64651b66d36f439a11c180b2c | [
"MIT"
] | null | null | null | Cloud/2/ATMClientCLI.py | hsinewu/School | 2c55a3fd4a7794e64651b66d36f439a11c180b2c | [
"MIT"
] | null | null | null | # Echo client program
import socket, select, sys, threading
from Tkinter import *
HOST = 'localhost' # The remote host
PORT = 54321 # The same port as used by the server
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((HOST, PORT))
r = threading.Thread(target=receiving)
s = threading... | 20.9 | 59 | 0.633174 |
e2d4c6363a58b677b5bab043fe856e68f531b918 | 782 | py | Python | python/dos.py | PrestonMonteWest/bin | d7ed1eea9d60d58a6f8af5bdc22da646c585407d | [
"Unlicense"
] | null | null | null | python/dos.py | PrestonMonteWest/bin | d7ed1eea9d60d58a6f8af5bdc22da646c585407d | [
"Unlicense"
] | null | null | null | python/dos.py | PrestonMonteWest/bin | d7ed1eea9d60d58a6f8af5bdc22da646c585407d | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
from socket import socket, AF_INET, SOCK_STREAM
from threading import Thread
from multiprocessing import cpu_count
import sys
if __name__ == '__main__':
host = sys.argv[1]
try:
port = int(sys.argv[2])
except (IndexError, ValueError):
port = 80
for i in range(cpu... | 24.4375 | 80 | 0.539642 |
e2d59b1a9aed0843e778775b09a7e6c0571ef6a6 | 206 | py | Python | Asset/Elements/Utility/DummyBuildingUtility.py | vd1371/GIAMS | dd6551f344b8d0377131d4496846eb5d03b6189c | [
"MIT"
] | null | null | null | Asset/Elements/Utility/DummyBuildingUtility.py | vd1371/GIAMS | dd6551f344b8d0377131d4496846eb5d03b6189c | [
"MIT"
] | null | null | null | Asset/Elements/Utility/DummyBuildingUtility.py | vd1371/GIAMS | dd6551f344b8d0377131d4496846eb5d03b6189c | [
"MIT"
] | null | null | null | import numpy as np
from .BaseUtility import BaseUtility
| 18.727273 | 38 | 0.708738 |
e2d5ccd08fb025be9e587c89b99c79c78aebefef | 503 | py | Python | comments/migrations/0003_auto_20190126_0840.py | lesspointless/Shakal-NG | eee491af94527228735c2bca7644605effd74b37 | [
"MIT"
] | 10 | 2016-02-06T15:40:30.000Z | 2018-09-27T15:15:13.000Z | comments/migrations/0003_auto_20190126_0840.py | lesspointless/Shakal-NG | eee491af94527228735c2bca7644605effd74b37 | [
"MIT"
] | 94 | 2016-02-04T18:39:36.000Z | 2022-01-20T05:25:00.000Z | comments/migrations/0003_auto_20190126_0840.py | lesspointless/Shakal-NG | eee491af94527228735c2bca7644605effd74b37 | [
"MIT"
] | 8 | 2016-05-10T20:29:53.000Z | 2021-02-07T00:50:31.000Z | # Generated by Django 2.1 on 2019-01-26 07:40
from django.db import migrations
| 17.344828 | 45 | 0.691849 |
e2d5cd751c072b142bbb935e2b3ffd45cd7fb705 | 528 | py | Python | setup.py | QuantumEnergyE/netcli | 00af7aa9d9c61c1306f46c00a803719d77c69d8c | [
"MIT"
] | null | null | null | setup.py | QuantumEnergyE/netcli | 00af7aa9d9c61c1306f46c00a803719d77c69d8c | [
"MIT"
] | null | null | null | setup.py | QuantumEnergyE/netcli | 00af7aa9d9c61c1306f46c00a803719d77c69d8c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(
name='netcli',
version='1.0',
packages=['netcli'],
include_package_data=True,
install_requires=[
'pygments>=2.0.2',
'prompt_toolkit>=1.0.0,<1.1.0',
'click>=4.0',
'fuzzyfinder>=1.0.0'
],
entry_points={
... | 22 | 51 | 0.568182 |
e2d5d4f0834f8da2bcbaa8cad00c966d5e044936 | 425 | py | Python | stylo/testing/examples.py | mvinoba/stylo | 84f3a74cf9cb29c6d24b990dc9a474562114392b | [
"MIT"
] | null | null | null | stylo/testing/examples.py | mvinoba/stylo | 84f3a74cf9cb29c6d24b990dc9a474562114392b | [
"MIT"
] | null | null | null | stylo/testing/examples.py | mvinoba/stylo | 84f3a74cf9cb29c6d24b990dc9a474562114392b | [
"MIT"
] | null | null | null | import pytest
| 18.478261 | 71 | 0.623529 |
e2d660e0b5ccf4c5de10c851eccbbeca7e9ba7b7 | 387 | py | Python | src/sendmeanemail.py | CoolTechOrganisation/raspberry-api | 704d4c5ccef21cf0ea7667b98d07547578e17f51 | [
"MIT"
] | null | null | null | src/sendmeanemail.py | CoolTechOrganisation/raspberry-api | 704d4c5ccef21cf0ea7667b98d07547578e17f51 | [
"MIT"
] | null | null | null | src/sendmeanemail.py | CoolTechOrganisation/raspberry-api | 704d4c5ccef21cf0ea7667b98d07547578e17f51 | [
"MIT"
] | null | null | null | import smtplib
smtpUser = ''
smtpPass = ''
toAdd = ''
fromAdd = smtpUser
subject = ''
header = 'To: ' + '\n' + 'From: ' + fromAdd + '\n' + 'Subject :' + subject
body = ''
print header + '\n' + body
smtp = smtplib.SMTP('smtp.gmail.com', 587)
smtp.ehlo()
smtp.starttls()
smtp.ehlo()
smtp.login(smtpUser, smtpPass)... | 16.125 | 75 | 0.614987 |
e2d6911a7095478d504ed809314715261924ff4a | 1,376 | py | Python | examples/original-paper/example-fancylabel.py | aengelke/z-plot | 63e4e6656355b608487a3e4df5da13b7fad9b108 | [
"BSD-3-Clause"
] | 22 | 2016-10-19T15:02:22.000Z | 2021-12-23T12:40:37.000Z | examples/original-paper/example-fancylabel.py | aengelke/z-plot | 63e4e6656355b608487a3e4df5da13b7fad9b108 | [
"BSD-3-Clause"
] | 4 | 2017-04-16T03:15:48.000Z | 2020-10-28T11:36:35.000Z | examples/original-paper/example-fancylabel.py | aengelke/z-plot | 63e4e6656355b608487a3e4df5da13b7fad9b108 | [
"BSD-3-Clause"
] | 11 | 2017-01-18T02:41:57.000Z | 2021-12-28T02:21:30.000Z | #! /usr/bin/env python
from zplot import *
import sys
import random
# a simple label/arrow combination function
# a simple circle with inset text function
#
# main script
#
ctype = 'eps' if len(sys.argv) < 2 else sys.argv[1]
c = canvas(ctype, 'example-fancylabel', dimensions=[600, 600])
random.seed(104)
for i i... | 27.52 | 78 | 0.619913 |
e2d8e578b36c81838d94eacbe7d5ce89b3fd1df5 | 2,700 | py | Python | pycraft/player.py | PapaMarky/pycraft | 919fe000ae7f1d2dd715d0468957d67ca61725b4 | [
"MIT"
] | null | null | null | pycraft/player.py | PapaMarky/pycraft | 919fe000ae7f1d2dd715d0468957d67ca61725b4 | [
"MIT"
] | null | null | null | pycraft/player.py | PapaMarky/pycraft | 919fe000ae7f1d2dd715d0468957d67ca61725b4 | [
"MIT"
] | null | null | null | import glob
import os
import python_nbt.nbt as nbt
import requests
from pycraft.error import PycraftException
from pycraft.region import Region
| 29.67033 | 94 | 0.583333 |
e2da1b80294662dc1e56bd780492fbf92dc01da3 | 387 | py | Python | day13/part2.py | BaderSZ/adventofcode2020 | dae705fd093bbd176021118f0898947cb4b02f84 | [
"MIT"
] | null | null | null | day13/part2.py | BaderSZ/adventofcode2020 | dae705fd093bbd176021118f0898947cb4b02f84 | [
"MIT"
] | null | null | null | day13/part2.py | BaderSZ/adventofcode2020 | dae705fd093bbd176021118f0898947cb4b02f84 | [
"MIT"
] | null | null | null |
inp = []
with open("input", "r") as f:
for line in f.readlines():
inp = inp + line.rsplit()[0].split(",")
# In form (BUS_ID, index)
busses = [(int(x), i) for i, x in enumerate(inp[1:]) if x != "x"]
# Chinese remainder theorem
time = 0
prod = 1
for id, i in busses:
while (time + i)%id != 0:
... | 17.590909 | 65 | 0.542636 |
e2dc3c2e573af6b5ac4a24e0a8a5e7d24b83ef56 | 1,143 | py | Python | setup.py | torstenfeld/django-warrant | ad19b9c9aefb9e44f6a01c07d11dc41809f88881 | [
"BSD-3-Clause"
] | 167 | 2017-04-21T17:54:14.000Z | 2022-02-19T20:37:44.000Z | setup.py | torstenfeld/django-warrant | ad19b9c9aefb9e44f6a01c07d11dc41809f88881 | [
"BSD-3-Clause"
] | 15 | 2017-08-31T12:33:18.000Z | 2021-07-03T06:36:36.000Z | setup.py | torstenfeld/django-warrant | ad19b9c9aefb9e44f6a01c07d11dc41809f88881 | [
"BSD-3-Clause"
] | 56 | 2017-06-15T17:26:43.000Z | 2022-03-30T15:15:42.000Z | import os
from setuptools import setup, find_packages
def parse_requirements(filename):
""" load requirements from a pip requirements file """
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
version = '0.1.1'
README="""Djang... | 28.575 | 115 | 0.684164 |
e2dd633808e9b6b31f7be658d3a59c23ec67ec01 | 1,599 | py | Python | src/python/WMCore/WMBS/MySQL/Subscriptions/GetSubsWithoutJobGroup.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 21 | 2015-11-19T16:18:45.000Z | 2021-12-02T18:20:39.000Z | src/python/WMCore/WMBS/MySQL/Subscriptions/GetSubsWithoutJobGroup.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 5,671 | 2015-01-06T14:38:52.000Z | 2022-03-31T22:11:14.000Z | src/python/WMCore/WMBS/MySQL/Subscriptions/GetSubsWithoutJobGroup.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 67 | 2015-01-21T15:55:38.000Z | 2022-02-03T19:53:13.000Z | #!/usr/bin/env python
from __future__ import division, print_function
from WMCore.Database.DBFormatter import DBFormatter
| 35.533333 | 89 | 0.65666 |
e2ddd4f9ac3b25764edd0fce1bfdd7ca076702ea | 1,092 | py | Python | experiments/summarize_svdf_linkpred_sweep.py | samihaija/tf-fsvd | 677cad8cfa21668369ce39c515874dabfbc021d5 | [
"MIT"
] | 16 | 2021-02-18T15:53:24.000Z | 2021-11-25T19:50:03.000Z | experiments/summarize_svdf_linkpred_sweep.py | samihaija/tf-fsvd | 677cad8cfa21668369ce39c515874dabfbc021d5 | [
"MIT"
] | 1 | 2021-05-13T05:23:52.000Z | 2021-05-13T05:23:52.000Z | experiments/summarize_svdf_linkpred_sweep.py | samihaija/tf-fsvd | 677cad8cfa21668369ce39c515874dabfbc021d5 | [
"MIT"
] | 2 | 2021-02-24T16:03:30.000Z | 2021-03-13T14:17:06.000Z | import os
import glob
import collections
import json
import numpy as np
from absl import app, flags
flags.DEFINE_string('results_dir', 'results/linkpred_d_sweep/fsvd',
'Directory where run files are written.')
FLAGS = flags.FLAGS
if __name__ == '__main__':
app.run(main)
| 29.513514 | 82 | 0.623626 |
e2deb7eb7ee2e7c59cb13a91610999e85e9556e5 | 3,737 | py | Python | telegram_crypto_price_bot/message_dispatcher.py | RBBOTDEVELOPER/telegram_crypto_price_bot | 88391e22c22bdfecb30bacba9b3bb103ef453d9e | [
"MIT"
] | null | null | null | telegram_crypto_price_bot/message_dispatcher.py | RBBOTDEVELOPER/telegram_crypto_price_bot | 88391e22c22bdfecb30bacba9b3bb103ef453d9e | [
"MIT"
] | null | null | null | telegram_crypto_price_bot/message_dispatcher.py | RBBOTDEVELOPER/telegram_crypto_price_bot | 88391e22c22bdfecb30bacba9b3bb103ef453d9e | [
"MIT"
] | null | null | null | # Copyright (c) 2021 Emanuele Bellocchia
#
# 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,... | 39.336842 | 79 | 0.652395 |
e2df7962b641dd4664ecec2ae0a2c8f36b185a2b | 738 | py | Python | smallactsmanifesto/signatures/forms.py | luzfcb/smallactsmanifesto | b1fc3ca6de413b8c03a01122014c5c599cb3da40 | [
"MIT"
] | 11 | 2015-10-17T02:44:58.000Z | 2021-03-05T15:18:59.000Z | smallactsmanifesto/signatures/forms.py | luzfcb/smallactsmanifesto | b1fc3ca6de413b8c03a01122014c5c599cb3da40 | [
"MIT"
] | 2 | 2016-01-17T12:06:58.000Z | 2018-05-05T19:48:48.000Z | smallactsmanifesto/signatures/forms.py | luzfcb/smallactsmanifesto | b1fc3ca6de413b8c03a01122014c5c599cb3da40 | [
"MIT"
] | 5 | 2016-01-16T11:19:31.000Z | 2019-06-07T20:13:32.000Z | # coding: utf-8
from django import forms
from django.utils.translation import ugettext_lazy as _
from captcha.fields import ReCaptchaField
from .models import Signatory
from .utils import mark_safe_lazy as safe
HELP_CAPTCHA = safe(_('Just a small act to prevent spam. <em>Sorry about this!</em>'))
| 28.384615 | 86 | 0.689702 |
e2dfe764fe9ea5057fc7e5b4b8e6089f8b160246 | 768 | py | Python | packages/ekstep_data_pipelines/audio_analysis/speaker_analysis/file_cluster_mapping.py | jeevan-revaneppa-hirethanad/audio-to-speech-pipeline | a5bd7f0321834507e4157eb1aea8659cd205bf1c | [
"MIT"
] | 23 | 2021-03-20T13:24:37.000Z | 2022-03-26T19:02:33.000Z | packages/ekstep_data_pipelines/audio_analysis/speaker_analysis/file_cluster_mapping.py | jeevan-revaneppa-hirethanad/audio-to-speech-pipeline | a5bd7f0321834507e4157eb1aea8659cd205bf1c | [
"MIT"
] | 10 | 2021-04-06T14:00:35.000Z | 2022-03-16T12:27:13.000Z | packages/ekstep_data_pipelines/audio_analysis/speaker_analysis/file_cluster_mapping.py | jeevan-revaneppa-hirethanad/audio-to-speech-pipeline | a5bd7f0321834507e4157eb1aea8659cd205bf1c | [
"MIT"
] | 16 | 2021-03-30T10:57:34.000Z | 2022-03-23T01:07:19.000Z | import json
| 28.444444 | 88 | 0.670573 |
e2e061e6b977fbeb127ea4c725ec9eca5c51463c | 2,232 | py | Python | test_codes/overpass_api.py | WhoaNellie/ShadeWays | ce5629b821b34ef3265fe450177912cbc5918394 | [
"MIT"
] | 2 | 2020-01-18T17:30:56.000Z | 2020-03-09T04:52:48.000Z | test_codes/overpass_api.py | WhoaNellie/ShadeWays | ce5629b821b34ef3265fe450177912cbc5918394 | [
"MIT"
] | null | null | null | test_codes/overpass_api.py | WhoaNellie/ShadeWays | ce5629b821b34ef3265fe450177912cbc5918394 | [
"MIT"
] | 1 | 2020-03-09T04:52:55.000Z | 2020-03-09T04:52:55.000Z | #!/usr/bin/env python3
import requests
import json
import sys
#area(32.227754,-110.959464,32.236005,-110.944097);
overpass_url = "http://overpass-api.de/api/interpreter"
overpass_query = """
[out:json];
area[name="Tucson"];
(node["building"="yes"](area);
way["building"="yes"](area);
rel["building"="yes"](area);
);
... | 24.26087 | 116 | 0.597222 |
e2e20661e6fd1d16b0a0f47887066e3517db1d11 | 485 | py | Python | solutions/tier_04/python/uri_1766_o_elfo_das_trevas.py | EstevaoNaval/URI_repository | 373681078f237231a6ec2c5a2ab04be434f54968 | [
"MIT"
] | null | null | null | solutions/tier_04/python/uri_1766_o_elfo_das_trevas.py | EstevaoNaval/URI_repository | 373681078f237231a6ec2c5a2ab04be434f54968 | [
"MIT"
] | null | null | null | solutions/tier_04/python/uri_1766_o_elfo_das_trevas.py | EstevaoNaval/URI_repository | 373681078f237231a6ec2c5a2ab04be434f54968 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
qntCaso = int(input())
for caso in range(qntCaso):
numTotalRena, numTotalRenaPuxaraoTreno = map(int, input().split())
listRena = [list(map(str, input().split())) for linha in range(numTotalRena)]
listRena = sorted(listRena, key= lambda x: (-int(x[1]),int(x[2]),float(x[3]),x[0])... | 44.090909 | 119 | 0.637113 |
e2e20f39835f5c3307a75b90031b87737e56b9cf | 2,754 | py | Python | tests/test_signals.py | appsembler/course-cccess-groups | d9c59dc55a3d021196c50e1080d3a251b4751780 | [
"MIT"
] | null | null | null | tests/test_signals.py | appsembler/course-cccess-groups | d9c59dc55a3d021196c50e1080d3a251b4751780 | [
"MIT"
] | null | null | null | tests/test_signals.py | appsembler/course-cccess-groups | d9c59dc55a3d021196c50e1080d3a251b4751780 | [
"MIT"
] | null | null | null | """
Tests for signal handlers.
"""
import logging
import pytest
from course_access_groups.models import Membership
from course_access_groups.signals import (
on_learner_account_activated,
on_learner_register,
)
from test_utils.factories import (
MembershipRuleFactory,
UserFactory,
UserOrganizatio... | 33.585366 | 116 | 0.755628 |
e2e2f5a7e716d47c2bc599311bb54fb09059029e | 12,180 | py | Python | koku/api/query_handler.py | Vasyka/koku | b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614 | [
"Apache-2.0"
] | 2 | 2022-01-12T03:42:39.000Z | 2022-01-12T03:42:40.000Z | koku/api/query_handler.py | Vasyka/koku | b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614 | [
"Apache-2.0"
] | null | null | null | koku/api/query_handler.py | Vasyka/koku | b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614 | [
"Apache-2.0"
] | 1 | 2021-07-21T09:33:59.000Z | 2021-07-21T09:33:59.000Z | #
# Copyright 2021 Red Hat Inc.
# SPDX-License-Identifier: Apache-2.0
#
"""Query Handling for all APIs."""
import datetime
import logging
from dateutil import parser
from dateutil import relativedelta
from django.core.exceptions import FieldDoesNotExist
from django.db.models.functions import TruncDay
from django.db.mo... | 34.213483 | 116 | 0.611987 |
e2e33962d911eef3a960dee21f3ec19a3c424ec3 | 649 | py | Python | alertaclient/commands/cmd_group.py | gapitio/python-alerta-client | 943a624c2136e952c92fbdfaa80e61b73d949275 | [
"Apache-2.0"
] | null | null | null | alertaclient/commands/cmd_group.py | gapitio/python-alerta-client | 943a624c2136e952c92fbdfaa80e61b73d949275 | [
"Apache-2.0"
] | null | null | null | alertaclient/commands/cmd_group.py | gapitio/python-alerta-client | 943a624c2136e952c92fbdfaa80e61b73d949275 | [
"Apache-2.0"
] | null | null | null | import sys
import click
| 28.217391 | 80 | 0.614792 |
e2e34e65edcf19e2167bc7860688291ab0325a3e | 1,677 | py | Python | hw/hw05/tests/q4c.py | surajrampure/data-94-sp21 | 074543103579c28d796c681f78f3c38449825328 | [
"BSD-3-Clause"
] | 1 | 2020-11-21T09:42:52.000Z | 2020-11-21T09:42:52.000Z | hw/hw05/tests/q4c.py | surajrampure/data-94-sp21 | 074543103579c28d796c681f78f3c38449825328 | [
"BSD-3-Clause"
] | null | null | null | hw/hw05/tests/q4c.py | surajrampure/data-94-sp21 | 074543103579c28d796c681f78f3c38449825328 | [
"BSD-3-Clause"
] | null | null | null | test = { 'name': 'q4c',
'points': 2,
'suites': [ { 'cases': [ {'code': ">>> top_lac_schools.labels == ('Name', 'City', 'Region', 'Applied', 'Admitted', 'Enrolled', 'Acceptance Rate')\nTrue", 'hidden': False, 'locked': False},
{'code': '>>> top_lac_schools.num_rows == 1... | 83.85 | 199 | 0.419201 |
e2e4d33ff1712d3173ec4251c6fe16e0f15be96e | 492 | py | Python | week2/scripts/hello_publisher.py | ajaykrishna1878/Robotics-Automation-QSTP-2021 | f5b8626db20a60f9dd923bab5a0bec118d0abc67 | [
"MIT"
] | null | null | null | week2/scripts/hello_publisher.py | ajaykrishna1878/Robotics-Automation-QSTP-2021 | f5b8626db20a60f9dd923bab5a0bec118d0abc67 | [
"MIT"
] | null | null | null | week2/scripts/hello_publisher.py | ajaykrishna1878/Robotics-Automation-QSTP-2021 | f5b8626db20a60f9dd923bab5a0bec118d0abc67 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import rospy
from std_msgs.msg import String
if __name__ == '__main__':
rospy.init_node('hello_publisher')
object = hello()
object.publish_word() | 24.6 | 66 | 0.623984 |