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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed51e5aefc8aa4c007f752784c838fb5f4f57c1c | 2,297 | py | Python | network/dataset/image_loading.py | imsb-uke/podometric_u_net | a33afcc186d618889df73c7ab2941dfbb63574ac | [
"MIT"
] | null | null | null | network/dataset/image_loading.py | imsb-uke/podometric_u_net | a33afcc186d618889df73c7ab2941dfbb63574ac | [
"MIT"
] | null | null | null | network/dataset/image_loading.py | imsb-uke/podometric_u_net | a33afcc186d618889df73c7ab2941dfbb63574ac | [
"MIT"
] | null | null | null | import os
import numpy as np
from skimage.io import imread
# Function to load image
# Function to load mask
| 37.048387 | 124 | 0.652155 |
ed52fe7003cd3391400a3e6ca8a3b67edfc17d59 | 6,769 | py | Python | series/simple/numeric_series.py | kefir/snakee | a17734d4b2d7dfd3e6c7b195baa128fbc84d197b | [
"MIT"
] | null | null | null | series/simple/numeric_series.py | kefir/snakee | a17734d4b2d7dfd3e6c7b195baa128fbc84d197b | [
"MIT"
] | null | null | null | series/simple/numeric_series.py | kefir/snakee | a17734d4b2d7dfd3e6c7b195baa128fbc84d197b | [
"MIT"
] | null | null | null | from typing import Optional, Callable
try: # Assume we're a sub-module in a package.
from series import series_classes as sc
from utils import numeric as nm
except ImportError: # Apparently no higher-level package has been imported, fall back to a local import.
from .. import series_classes as sc
fro... | 34.186869 | 116 | 0.601418 |
ed5484913e5b4d8984ea6ca02d8e86830b881e11 | 4,857 | py | Python | app/internal/module/video/database.py | kuropengin/SHINtube-video-api | 8a4b068fb95a9a2736b3dba3782dbbbf73815290 | [
"MIT"
] | null | null | null | app/internal/module/video/database.py | kuropengin/SHINtube-video-api | 8a4b068fb95a9a2736b3dba3782dbbbf73815290 | [
"MIT"
] | null | null | null | app/internal/module/video/database.py | kuropengin/SHINtube-video-api | 8a4b068fb95a9a2736b3dba3782dbbbf73815290 | [
"MIT"
] | null | null | null | import glob
import pathlib
from .filemanager import filemanager_class
database = database_class()
| 33.267123 | 71 | 0.558369 |
ed548c718f56038d0a32759b322ccf9c4f9f5e93 | 29,735 | py | Python | python/OpenGeoTile.py | scoofy/open-geotiling | 0b1305d4482d6df46104135662ffe4565f92f9f0 | [
"Apache-2.0"
] | null | null | null | python/OpenGeoTile.py | scoofy/open-geotiling | 0b1305d4482d6df46104135662ffe4565f92f9f0 | [
"Apache-2.0"
] | null | null | null | python/OpenGeoTile.py | scoofy/open-geotiling | 0b1305d4482d6df46104135662ffe4565f92f9f0 | [
"Apache-2.0"
] | null | null | null | from openlocationcode import openlocationcode as olc
from enum import Enum
import math, re
# Copy from OpenLocationCode.java
# A separator used to break the code into two parts to aid memorability.
SEPARATOR = '+'
# Copy from OpenLocationCode.java
# The character used to pad codes.
PADDING_CHARACTER = '0'
PADDING_2 ... | 43.535871 | 150 | 0.613351 |
ed55484ea14f91f98d1615b910fc743371e53922 | 13,543 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/arrays/arraydatatype.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 87 | 2015-04-09T16:57:27.000Z | 2022-02-21T13:21:12.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/arrays/arraydatatype.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 47 | 2015-04-09T21:05:30.000Z | 2021-06-22T15:21:18.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/arrays/arraydatatype.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 16 | 2015-04-09T19:10:22.000Z | 2020-07-19T05:41:06.000Z | """Array data-type implementations (abstraction points for GL array types"""
import ctypes
import OpenGL
from OpenGL.raw.GL import _types
from OpenGL import plugins
from OpenGL.arrays import formathandler, _arrayconstants as GL_1_1
from OpenGL import logs
_log = logs.getLog( 'OpenGL.arrays.arraydatatype' )
from OpenG... | 44.844371 | 100 | 0.616333 |
ed57f1712b86394159992dc11fd79688181d493e | 13,851 | bzl | Python | tensorflow_probability/python/build_defs.bzl | jbergmanster/probability | e15b307066e7485b8fe9faf3d289c739ab8d3806 | [
"Apache-2.0"
] | null | null | null | tensorflow_probability/python/build_defs.bzl | jbergmanster/probability | e15b307066e7485b8fe9faf3d289c739ab8d3806 | [
"Apache-2.0"
] | null | null | null | tensorflow_probability/python/build_defs.bzl | jbergmanster/probability | e15b307066e7485b8fe9faf3d289c739ab8d3806 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The TensorFlow Probability Authors.
#
# 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 o... | 35.698454 | 89 | 0.608043 |
ed583ccefc13cf5fca32a4b108662e62505e92e1 | 5,425 | py | Python | src/wikidated/wikidata/wikidata_dump.py | lschmelzeisen/wikidata-history-analyzer | 8673639b61839d2dca271fbbaf2feb8563b75f2d | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2021-06-10T09:26:44.000Z | 2021-07-07T13:49:00.000Z | src/wikidated/wikidata/wikidata_dump.py | lschmelzeisen/wikidata-history-analyzer | 8673639b61839d2dca271fbbaf2feb8563b75f2d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/wikidated/wikidata/wikidata_dump.py | lschmelzeisen/wikidata-history-analyzer | 8673639b61839d2dca271fbbaf2feb8563b75f2d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #
# Copyright 2021 Lukas Schmelzeisen
#
# 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 ... | 33.487654 | 87 | 0.654194 |
ed58570015c33daeb7f03921904a43571a44e66f | 18,726 | py | Python | tcapygen/layoutgen.py | Ahrvo-Trading-Systems/tcapy | df8439aa5c754fc9a7fde463c44c489b27112f76 | [
"Apache-2.0"
] | 189 | 2020-03-20T17:03:04.000Z | 2022-03-30T13:33:27.000Z | tcapygen/layoutgen.py | Ahrvo-Trading-Systems/tcapy | df8439aa5c754fc9a7fde463c44c489b27112f76 | [
"Apache-2.0"
] | 4 | 2020-06-06T14:58:21.000Z | 2022-03-10T22:31:15.000Z | tcapygen/layoutgen.py | Ahrvo-Trading-Systems/tcapy | df8439aa5c754fc9a7fde463c44c489b27112f76 | [
"Apache-2.0"
] | 60 | 2020-03-20T17:06:56.000Z | 2022-03-26T02:48:58.000Z | from __future__ import division, print_function
__author__ = 'saeedamen' # Saeed Amen / saeed@cuemacro.com
#
# Copyright 2017 Cuemacro Ltd. - http//www.cuemacro.com / @cuemacro
#
# See the License for the specific language governing permissions and limitations under the License.
#
## Web server components
import da... | 58.51875 | 154 | 0.595215 |
ed585ed9b9e64b5cd7e7fef27facda2ab0843b74 | 4,320 | py | Python | tests/molecular/molecules/molecule/fixtures/cof/periodic_kagome.py | andrewtarzia/stk | 1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a | [
"MIT"
] | 21 | 2018-04-12T16:25:24.000Z | 2022-02-14T23:05:43.000Z | tests/molecular/molecules/molecule/fixtures/cof/periodic_kagome.py | JelfsMaterialsGroup/stk | 0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2 | [
"MIT"
] | 8 | 2019-03-19T12:36:36.000Z | 2020-11-11T12:46:00.000Z | tests/molecular/molecules/molecule/fixtures/cof/periodic_kagome.py | supramolecular-toolkit/stk | 0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2 | [
"MIT"
] | 5 | 2018-08-07T13:00:16.000Z | 2021-11-01T00:55:10.000Z | import pytest
import stk
from ...case_data import CaseData
| 45.473684 | 71 | 0.344907 |
ed587bf56577619d8ec39ef62825f11e9ce7e776 | 3,511 | py | Python | projects/MAE/utils/weight_convert.py | Oneflow-Inc/libai | e473bd3962f07b1e37232d2be39c8257df0ec0f3 | [
"Apache-2.0"
] | 55 | 2021-12-10T08:47:06.000Z | 2022-03-28T09:02:15.000Z | projects/MAE/utils/weight_convert.py | Oneflow-Inc/libai | e473bd3962f07b1e37232d2be39c8257df0ec0f3 | [
"Apache-2.0"
] | 106 | 2021-11-03T05:16:45.000Z | 2022-03-31T06:16:23.000Z | projects/MAE/utils/weight_convert.py | Oneflow-Inc/libai | e473bd3962f07b1e37232d2be39c8257df0ec0f3 | [
"Apache-2.0"
] | 13 | 2021-12-29T08:12:08.000Z | 2022-03-28T06:59:45.000Z | # coding=utf-8
# Copyright 2021 The OneFlow 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 require... | 32.509259 | 95 | 0.656508 |
ed5a1b538137819cd768e00bc5a8aa7705765275 | 37 | py | Python | dthm4kaiako/events/__init__.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 3 | 2018-12-10T07:03:02.000Z | 2021-04-12T02:18:30.000Z | dthm4kaiako/events/__init__.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 566 | 2018-09-30T02:54:28.000Z | 2022-03-28T01:20:01.000Z | dthm4kaiako/events/__init__.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 3 | 2019-04-04T19:53:39.000Z | 2021-05-16T02:04:46.000Z | """Module for events application."""
| 18.5 | 36 | 0.702703 |
ed5a4c9715fe0f81c7675d25ae101b58391d1929 | 8,462 | py | Python | spot/level1.py | K0gata/SGLI_Python_output_tool | 1368e0408edd737a5109d0523db6c147faa80b97 | [
"MIT"
] | 1 | 2020-08-04T04:17:49.000Z | 2020-08-04T04:17:49.000Z | spot/level1.py | K0gata/SGLI_Python_Open_Tool | 1368e0408edd737a5109d0523db6c147faa80b97 | [
"MIT"
] | null | null | null | spot/level1.py | K0gata/SGLI_Python_Open_Tool | 1368e0408edd737a5109d0523db6c147faa80b97 | [
"MIT"
] | null | null | null | import numpy as np
import logging
from decimal import Decimal, ROUND_HALF_UP
from abc import ABC, abstractmethod, abstractproperty
from spot.utility import bilin_2d
from spot.config import PROJ_TYPE
# =============================
# Level-1 template class
# =============================
def get_product_data_lis... | 34.538776 | 120 | 0.610021 |
ed5ab9e7476a3e24312d9ef871509f4e43e86312 | 18,788 | py | Python | devil/devil/utils/cmd_helper.py | Martijnve23/catapult | 5c63b19d221af6a12889e8727acc85d93892cab7 | [
"BSD-3-Clause"
] | 1,894 | 2015-04-17T18:29:53.000Z | 2022-03-28T22:41:06.000Z | devil/devil/utils/cmd_helper.py | Martijnve23/catapult | 5c63b19d221af6a12889e8727acc85d93892cab7 | [
"BSD-3-Clause"
] | 4,640 | 2015-07-08T16:19:08.000Z | 2019-12-02T15:01:27.000Z | infra/services/android_docker/third_party/devil/utils/cmd_helper.py | NDevTK/chromium-infra | d38e088e158d81f7f2065a38aa1ea1894f735ec4 | [
"BSD-3-Clause"
] | 698 | 2015-06-02T19:18:35.000Z | 2022-03-29T16:57:15.000Z | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A wrapper for subprocess to make calling shell commands easier."""
import codecs
import logging
import os
import pipes
import select
import signal
imp... | 31.10596 | 80 | 0.64951 |
ed5b25db8eee2bdd6eb22e7c4a9c331775d6cf05 | 1,651 | py | Python | services/server/server/apps/checkout/migrations/0001_initial.py | AyanSamanta23/moni-moni | 8e8aa4edf4cd2e2b005f6dbe8c885ecc791e6a2b | [
"MIT"
] | null | null | null | services/server/server/apps/checkout/migrations/0001_initial.py | AyanSamanta23/moni-moni | 8e8aa4edf4cd2e2b005f6dbe8c885ecc791e6a2b | [
"MIT"
] | null | null | null | services/server/server/apps/checkout/migrations/0001_initial.py | AyanSamanta23/moni-moni | 8e8aa4edf4cd2e2b005f6dbe8c885ecc791e6a2b | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-02-26 15:52
from django.db import migrations, models
| 40.268293 | 142 | 0.59358 |
ed5b5860c856a4418e7eeb1cf777cb4c10722142 | 2,845 | py | Python | api/to_astm.py | urchinpro/L2-forms | 37f33386984efbb2d1e92c73d915256247801109 | [
"MIT"
] | null | null | null | api/to_astm.py | urchinpro/L2-forms | 37f33386984efbb2d1e92c73d915256247801109 | [
"MIT"
] | null | null | null | api/to_astm.py | urchinpro/L2-forms | 37f33386984efbb2d1e92c73d915256247801109 | [
"MIT"
] | null | null | null | import itertools
from astm import codec
from collections import defaultdict
from django.utils import timezone
import directions.models as directions
import directory.models as directory
import api.models as api
import simplejson as json
| 34.277108 | 138 | 0.636555 |
ed5bad05b400253943df833d896315c0be535899 | 19,288 | py | Python | test/unit/test_som_rom_parser.py | CospanDesign/nysa | ffe07f0b8fe2f6217e7a862d89b80f1b17163be9 | [
"MIT"
] | 15 | 2015-08-31T20:50:39.000Z | 2022-03-13T08:56:39.000Z | test/unit/test_som_rom_parser.py | CospanDesign/nysa | ffe07f0b8fe2f6217e7a862d89b80f1b17163be9 | [
"MIT"
] | 5 | 2015-05-02T16:48:57.000Z | 2017-06-15T16:25:34.000Z | test/unit/test_som_rom_parser.py | CospanDesign/nysa | ffe07f0b8fe2f6217e7a862d89b80f1b17163be9 | [
"MIT"
] | 6 | 2016-09-02T16:02:13.000Z | 2021-06-29T22:29:45.000Z | #!/usr/bin/python
import unittest
import json
import sys
import os
import string
sys.path.append(os.path.join(os.path.dirname(__file__),
os.pardir,
os.pardir))
from nysa.cbuilder import sdb_component as sdbc
from nysa.cbuilder import sdb_object_model as som
... | 27.792507 | 169 | 0.506999 |
ed5bb200d9597641b3d366c18b6bda01b9a7883d | 6,119 | py | Python | src/TF-gui/tftrain.py | jeetsagar/turbojet | 9b17edde0a7e01d0fa320261fbc2734ce53577d2 | [
"MIT"
] | null | null | null | src/TF-gui/tftrain.py | jeetsagar/turbojet | 9b17edde0a7e01d0fa320261fbc2734ce53577d2 | [
"MIT"
] | null | null | null | src/TF-gui/tftrain.py | jeetsagar/turbojet | 9b17edde0a7e01d0fa320261fbc2734ce53577d2 | [
"MIT"
] | 2 | 2021-05-20T05:47:59.000Z | 2021-08-24T07:44:37.000Z | #!python3
import os
import pandas as pd
import tensorflow as tf
from tensorflow.keras import layers
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
# gpu_devices = tf.config.experimental.list_physical_devices("GPU")
# for device in gpu_devices:
# tf.config.experimental.set_memory_growth(device, True)
| 42.493056 | 120 | 0.57346 |
ed5bcaf7cb360ac7f0af74528df0eb589224f1a5 | 5,434 | py | Python | library/kong_api.py | sebastienc/ansible-kong-module | c1e7b471a517d1ec99c5629f3729ebc34088bd64 | [
"MIT"
] | 34 | 2016-03-09T17:10:52.000Z | 2019-12-25T08:31:49.000Z | library/kong_api.py | sebastienc/ansible-kong-module | c1e7b471a517d1ec99c5629f3729ebc34088bd64 | [
"MIT"
] | 6 | 2016-05-16T14:09:05.000Z | 2018-07-23T21:09:33.000Z | library/kong_api.py | sebastienc/ansible-kong-module | c1e7b471a517d1ec99c5629f3729ebc34088bd64 | [
"MIT"
] | 23 | 2016-02-17T12:18:16.000Z | 2021-05-06T09:39:35.000Z | #!/usr/bin/python
DOCUMENTATION = '''
---
module: kong
short_description: Configure a Kong API Gateway
'''
EXAMPLES = '''
- name: Register a site
kong:
kong_admin_uri: http://127.0.0.1:8001/apis/
name: "Mockbin"
taget_url: "http://mockbin.com"
request_host: "mockbin.com"
state: present
- ... | 30.188889 | 133 | 0.597902 |
ed5c8a4473db3e1f846fdf5ddd27546849b2b2e4 | 3,091 | py | Python | src/compas_plotters/artists/lineartist.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | null | null | null | src/compas_plotters/artists/lineartist.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | null | null | null | src/compas_plotters/artists/lineartist.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | null | null | null | from compas_plotters.artists import Artist
from matplotlib.lines import Line2D
from compas.geometry import intersection_line_box_xy
__all__ = ['LineArtist']
| 36.364706 | 122 | 0.530573 |
ed5d3821ab68704ffac0f126c20afbf8dae239de | 1,018 | py | Python | plot2d_artificial_dataset1_silvq.py | manome/python-silvq | b50d7486e970fbe9a5b66dd3fc5beb8b5de8ca2f | [
"BSD-3-Clause"
] | null | null | null | plot2d_artificial_dataset1_silvq.py | manome/python-silvq | b50d7486e970fbe9a5b66dd3fc5beb8b5de8ca2f | [
"BSD-3-Clause"
] | null | null | null | plot2d_artificial_dataset1_silvq.py | manome/python-silvq | b50d7486e970fbe9a5b66dd3fc5beb8b5de8ca2f | [
"BSD-3-Clause"
] | null | null | null | # -*- encoding: utf8 -*-
import numpy as np
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train_test_split
from lvq import SilvqModel
from lvq.utils import plot2d
if __name__ == '__main__':
main()
| 30.848485 | 118 | 0.697446 |
ed5d69e17539392ab832fd82b04ce64e261c7b31 | 7,727 | py | Python | classification_experiments/Fine-Tuned-ResNet-50/Fine-Tuned-ResNet-50.py | ifr1m/hyper-kvasir | 21cc366e78c0cb4e180a26a0e441d6c0d5171da9 | [
"CC-BY-4.0"
] | 38 | 2019-12-20T13:17:09.000Z | 2022-03-20T08:39:40.000Z | classification_experiments/Fine-Tuned-ResNet-50/Fine-Tuned-ResNet-50.py | smaranjitghose/hyper-kvasir | b4815d151ef90cffa1bbc8fbf97cd091a20ce600 | [
"CC-BY-4.0"
] | 2 | 2021-01-12T10:45:13.000Z | 2021-01-28T06:14:45.000Z | classification_experiments/Fine-Tuned-ResNet-50/Fine-Tuned-ResNet-50.py | smaranjitghose/hyper-kvasir | b4815d151ef90cffa1bbc8fbf97cd091a20ce600 | [
"CC-BY-4.0"
] | 11 | 2020-03-24T17:58:04.000Z | 2021-12-09T16:12:16.000Z | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
#Importing all required libraries
# In[ ]:
from __future__ import absolute_import, division, print_function, unicode_literals
# In[ ]:
#Checking for correct cuda and tf versions
from tensorflow.python.platform import build_info as tf_build_info
print(tf_build_in... | 21.889518 | 102 | 0.666235 |
ed5e905c814c4d72273c16c39c47e06ae62fc1f0 | 897 | gyp | Python | tools/android/android_tools.gyp | SlimKatLegacy/android_external_chromium_org | ee480ef5039d7c561fc66ccf52169ead186f1bea | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-04T02:36:53.000Z | 2016-06-25T11:22:17.000Z | tools/android/android_tools.gyp | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/android/android_tools.gyp | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2015-02-09T08:49:30.000Z | 2017-08-26T02:03:34.000Z | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
# Intermediate target grouping the android tools needed to run native
# unittests and instrumentation test apks.
{
'ta... | 25.628571 | 73 | 0.596433 |
ed5f32dd2cd9143c086d6a609f05220bf9f92fde | 12,380 | py | Python | test/functional/fantasygold_opcall.py | FantasyGold/FantasyGold-Core | afff8871e770045e468e2f536ede9db0dff889d5 | [
"MIT"
] | 13 | 2018-04-30T21:43:40.000Z | 2020-12-07T11:06:47.000Z | test/functional/fantasygold_opcall.py | donoel2/FantasyGold-Core | afff8871e770045e468e2f536ede9db0dff889d5 | [
"MIT"
] | 4 | 2018-05-10T00:18:18.000Z | 2019-07-08T23:12:54.000Z | test/functional/fantasygold_opcall.py | donoel2/FantasyGold-Core | afff8871e770045e468e2f536ede9db0dff889d5 | [
"MIT"
] | 13 | 2018-04-30T17:41:54.000Z | 2020-12-08T18:24:06.000Z | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
from tes... | 57.581395 | 689 | 0.714943 |
ed5fdee808e9a889711f8e8007e05b2a81263072 | 1,883 | py | Python | intake_sklearn/source.py | AlbertDeFusco/intake-sklearn | 6cd0e11b26703712eb338032518e5c55b725c48f | [
"BSD-3-Clause"
] | 1 | 2022-02-23T09:00:38.000Z | 2022-02-23T09:00:38.000Z | intake_sklearn/source.py | AlbertDeFusco/intake-sklearn | 6cd0e11b26703712eb338032518e5c55b725c48f | [
"BSD-3-Clause"
] | 1 | 2019-10-14T12:25:26.000Z | 2019-10-25T13:55:59.000Z | intake_sklearn/source.py | AlbertDeFusco/intake-sklearn | 6cd0e11b26703712eb338032518e5c55b725c48f | [
"BSD-3-Clause"
] | 1 | 2021-07-28T17:49:36.000Z | 2021-07-28T17:49:36.000Z | from intake.source.base import DataSource, Schema
import joblib
import fsspec
import sklearn
import re
from . import __version__
| 27.691176 | 89 | 0.591609 |
ed607bad1d48fdf5da41de44d6ec206f2716afe4 | 4,915 | py | Python | jedi/evaluate/dynamic.py | hatamov/jedi | 10df0f933f931a8e0e70304d823f6df0dc3000bd | [
"MIT"
] | null | null | null | jedi/evaluate/dynamic.py | hatamov/jedi | 10df0f933f931a8e0e70304d823f6df0dc3000bd | [
"MIT"
] | null | null | null | jedi/evaluate/dynamic.py | hatamov/jedi | 10df0f933f931a8e0e70304d823f6df0dc3000bd | [
"MIT"
] | null | null | null | """
One of the really important features of |jedi| is to have an option to
understand code like this::
def foo(bar):
bar. # completion here
foo(1)
There's no doubt wheter bar is an ``int`` or not, but if there's also a call
like ``foo('str')``, what would happen? Well, we'll just show both. Because
th... | 33.435374 | 95 | 0.584334 |
ed614dd2f553e42b3e9876c261fcf0d4bfb4705a | 2,245 | py | Python | steamcheck/views.py | moird/linux-game-report | 8c3204d857134b0685bc3c213cd9d9e9f9a5f2fd | [
"MIT"
] | null | null | null | steamcheck/views.py | moird/linux-game-report | 8c3204d857134b0685bc3c213cd9d9e9f9a5f2fd | [
"MIT"
] | null | null | null | steamcheck/views.py | moird/linux-game-report | 8c3204d857134b0685bc3c213cd9d9e9f9a5f2fd | [
"MIT"
] | null | null | null | from steamcheck import app
from flask import jsonify, render_template
import os
import steamapi
import json
| 35.634921 | 111 | 0.623163 |
ed6236b34ab65a1e059ca45441d455cec6bd4e90 | 516 | py | Python | validator/delphi_validator/run.py | benjaminysmith/covidcast-indicators | b1474cd68a1497166fefe4beffd4d5ff867b9a61 | [
"MIT"
] | null | null | null | validator/delphi_validator/run.py | benjaminysmith/covidcast-indicators | b1474cd68a1497166fefe4beffd4d5ff867b9a61 | [
"MIT"
] | null | null | null | validator/delphi_validator/run.py | benjaminysmith/covidcast-indicators | b1474cd68a1497166fefe4beffd4d5ff867b9a61 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Functions to call when running the tool.
This module should contain a function called `run_module`, that is executed
when the module is run with `python -m delphi_validator`.
"""
from delphi_utils import read_params
from .validate import Validator
def run_module():
"""Run the validator... | 28.666667 | 75 | 0.732558 |
ed62a0f3bd61d82280e96fe9d14711d5df97f622 | 1,876 | py | Python | datasets/validation_folders.py | zenithfang/supervised_dispnet | f81dfccfdc944e015d8fae17e24b3e664bec14d6 | [
"MIT"
] | 39 | 2020-01-17T18:33:42.000Z | 2021-11-14T02:36:32.000Z | datasets/validation_folders.py | zenithfang/supervised_dispnet | f81dfccfdc944e015d8fae17e24b3e664bec14d6 | [
"MIT"
] | 7 | 2020-01-10T14:52:44.000Z | 2021-03-15T18:55:35.000Z | datasets/validation_folders.py | zenithfang/supervised_dispnet | f81dfccfdc944e015d8fae17e24b3e664bec14d6 | [
"MIT"
] | 10 | 2020-03-01T11:35:50.000Z | 2022-01-18T10:54:04.000Z | import torch.utils.data as data
import numpy as np
from imageio import imread
from path import Path
import pdb
| 32.912281 | 153 | 0.615672 |
ed62a4dc340088a21f482019440f649f39123cfc | 1,293 | py | Python | secretpy/ciphers/rot18.py | tigertv/crypt | e464f998e5540f52e269fe360ec9d3a08e976b2e | [
"MIT"
] | 51 | 2019-01-09T02:38:03.000Z | 2022-03-19T19:08:02.000Z | secretpy/ciphers/rot18.py | tigertv/crypt | e464f998e5540f52e269fe360ec9d3a08e976b2e | [
"MIT"
] | 7 | 2019-10-03T19:50:32.000Z | 2021-05-28T22:52:09.000Z | secretpy/ciphers/rot18.py | tigertv/crypt | e464f998e5540f52e269fe360ec9d3a08e976b2e | [
"MIT"
] | 13 | 2019-04-16T16:39:44.000Z | 2021-06-01T21:50:12.000Z | #!/usr/bin/python
from .rot13 import Rot13
import secretpy.alphabets as al
| 24.396226 | 93 | 0.58314 |
ed6310e1d8d83cf871e0d32a527ca7f1529b58ca | 1,302 | py | Python | pysaurus/database/special_properties.py | notoraptor/pysaurus | 3bf5fe8c15e0e0e580e5edaea05b4a1298641367 | [
"MIT"
] | null | null | null | pysaurus/database/special_properties.py | notoraptor/pysaurus | 3bf5fe8c15e0e0e580e5edaea05b4a1298641367 | [
"MIT"
] | 4 | 2021-08-13T14:03:02.000Z | 2022-03-05T16:02:45.000Z | pysaurus/database/special_properties.py | notoraptor/pysaurus | 3bf5fe8c15e0e0e580e5edaea05b4a1298641367 | [
"MIT"
] | null | null | null | from abc import abstractmethod
from pysaurus.database.properties import PropType
from pysaurus.database.video import Video
| 26.04 | 83 | 0.627496 |
ed65a740d0a6c0e521ed5a04db6b899535f0bcde | 19,613 | py | Python | patrole_tempest_plugin/rbac_utils.py | openstack/patrole | fa0ee135121a5e86301ad5ee1854b3a0bd70b69b | [
"Apache-2.0"
] | 14 | 2017-01-03T15:07:18.000Z | 2020-09-17T18:07:39.000Z | patrole_tempest_plugin/rbac_utils.py | openstack/patrole | fa0ee135121a5e86301ad5ee1854b3a0bd70b69b | [
"Apache-2.0"
] | null | null | null | patrole_tempest_plugin/rbac_utils.py | openstack/patrole | fa0ee135121a5e86301ad5ee1854b3a0bd70b69b | [
"Apache-2.0"
] | 12 | 2017-02-28T20:08:48.000Z | 2020-12-30T09:31:51.000Z | # Copyright 2017 AT&T Corporation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 39.069721 | 120 | 0.629175 |
ed66f473c8ee9e1a4cbf088bc3dc94834ee24ff9 | 6,029 | py | Python | core/my_widgets/drug_picker.py | kimera1999/pmpktn | 5307b6684a08bac4b88617f097017b5ea4192ab2 | [
"MIT"
] | null | null | null | core/my_widgets/drug_picker.py | kimera1999/pmpktn | 5307b6684a08bac4b88617f097017b5ea4192ab2 | [
"MIT"
] | null | null | null | core/my_widgets/drug_picker.py | kimera1999/pmpktn | 5307b6684a08bac4b88617f097017b5ea4192ab2 | [
"MIT"
] | 1 | 2020-05-16T14:28:59.000Z | 2020-05-16T14:28:59.000Z | from initialize import *
from core.db.db_func import query_linedrug_list
import os
import wx
def onTextChange(self, e):
if os.name == "nt":
if e.String == "":
self.Clear()
elif len(e.String) >= 1:
if not self.IsPopupShown():
self... | 31.238342 | 96 | 0.543208 |
ed6710b9dafd0dadb8b0c6608676f1c2e79ad2c8 | 615 | py | Python | em Python/Roteiro4/Roteiro4__grafos.py | GuilhermeEsdras/Grafos | b6556c3d679496d576f65b798a1a584cd73e40f4 | [
"MIT"
] | null | null | null | em Python/Roteiro4/Roteiro4__grafos.py | GuilhermeEsdras/Grafos | b6556c3d679496d576f65b798a1a584cd73e40f4 | [
"MIT"
] | null | null | null | em Python/Roteiro4/Roteiro4__grafos.py | GuilhermeEsdras/Grafos | b6556c3d679496d576f65b798a1a584cd73e40f4 | [
"MIT"
] | null | null | null | from Roteiro4.Roteiro4__funcoes import Grafo
| 23.653846 | 82 | 0.461789 |
ed6739ff5f8ea8f36a47b3ca0134c0c015b0b7c7 | 3,499 | py | Python | fuzzybee/joboard/views.py | youtaya/knight | 6899e18ca6b1ef01daaae7d7fd14b50a26aa0aee | [
"MIT"
] | null | null | null | fuzzybee/joboard/views.py | youtaya/knight | 6899e18ca6b1ef01daaae7d7fd14b50a26aa0aee | [
"MIT"
] | null | null | null | fuzzybee/joboard/views.py | youtaya/knight | 6899e18ca6b1ef01daaae7d7fd14b50a26aa0aee | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.shortcuts import get_object_or_404, render_to_response, render
from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from django.shortcuts import redirect
from joboard.models import Factory
from joboard.forms import FactoryForm
from d... | 33.009434 | 105 | 0.658474 |
ed67b3786dc5aa973280b427220b99a230def591 | 464 | py | Python | flask/app.py | yatsu/react-flask-graphql-example | 18a38b7602c81a85a3cc38c74440ce34d63fc32a | [
"MIT"
] | 21 | 2017-06-24T15:29:30.000Z | 2021-03-03T06:58:41.000Z | flask/app.py | yatsu/react-flask-graphql-example | 18a38b7602c81a85a3cc38c74440ce34d63fc32a | [
"MIT"
] | null | null | null | flask/app.py | yatsu/react-flask-graphql-example | 18a38b7602c81a85a3cc38c74440ce34d63fc32a | [
"MIT"
] | 6 | 2018-01-15T06:36:11.000Z | 2022-03-18T07:57:39.000Z | from flask import Flask
from flask_cors import CORS
from flask_graphql import GraphQLView
from schema import Schema
if __name__ == '__main__':
app = create_app(graphiql=True)
CORS(app, resources={r'/graphql': {'origins': '*'}})
app.run()
| 22.095238 | 73 | 0.668103 |
ed689bd57d1b5e295bd3bb253d9bfc772e080d82 | 5,431 | py | Python | mortgagetvm/mortgageOptions.py | AndrewChap/mortgagetvm | 4ec39707d61bcb3224bdcddce84bf237f02352d1 | [
"MIT"
] | null | null | null | mortgagetvm/mortgageOptions.py | AndrewChap/mortgagetvm | 4ec39707d61bcb3224bdcddce84bf237f02352d1 | [
"MIT"
] | null | null | null | mortgagetvm/mortgageOptions.py | AndrewChap/mortgagetvm | 4ec39707d61bcb3224bdcddce84bf237f02352d1 | [
"MIT"
] | null | null | null | # Factory-like class for mortgage options
| 58.397849 | 88 | 0.606518 |
ed693e39d7414ae26d14dc6568bc549d2c30f321 | 1,452 | py | Python | DD/Terrain.py | CodingBullywug/DDreshape | 393e5ea336eb6cb78f31345731ccf52baf19bfac | [
"MIT"
] | 2 | 2020-04-13T04:47:26.000Z | 2022-02-19T06:10:04.000Z | DD/Terrain.py | CodingBullywug/DDreshape | 393e5ea336eb6cb78f31345731ccf52baf19bfac | [
"MIT"
] | null | null | null | DD/Terrain.py | CodingBullywug/DDreshape | 393e5ea336eb6cb78f31345731ccf52baf19bfac | [
"MIT"
] | 1 | 2020-04-13T04:47:30.000Z | 2020-04-13T04:47:30.000Z | from DD.utils import PoolByteArray2NumpyArray, NumpyArray2PoolByteArray
from DD.Entity import Entity
import numpy as np
| 37.230769 | 144 | 0.644628 |
ed69c7e1252a3ec3f75d6d65d353de14affd6d0c | 1,628 | py | Python | bluesky/tests/utils.py | AbbyGi/bluesky | 759f9c55dce97dc47513cca749a69dd861bdf58d | [
"BSD-3-Clause"
] | 43 | 2015-08-04T20:13:41.000Z | 2019-04-12T17:21:36.000Z | bluesky/tests/utils.py | AbbyGi/bluesky | 759f9c55dce97dc47513cca749a69dd861bdf58d | [
"BSD-3-Clause"
] | 966 | 2015-07-29T16:43:21.000Z | 2019-05-09T21:02:28.000Z | bluesky/tests/utils.py | AbbyGi/bluesky | 759f9c55dce97dc47513cca749a69dd861bdf58d | [
"BSD-3-Clause"
] | 48 | 2019-05-15T18:01:06.000Z | 2022-03-03T18:53:43.000Z | from collections import defaultdict
import contextlib
import tempfile
import sys
import threading
import asyncio
def _fabricate_asycio_event(loop):
th_ev = threading.Event()
aio_event = None
h = loop.call_soon_threadsafe(really_make_the_event)
if not th_ev.wait(0.1):
h.cancel()
ra... | 23.941176 | 66 | 0.594595 |
ed69da856e9dae34d6443933a8a9df258e7f8e95 | 1,116 | py | Python | cli/check_json.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | null | null | null | cli/check_json.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | null | null | null | cli/check_json.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | null | null | null | import json
import sys
from openslides_backend.models.checker import Checker, CheckException
if __name__ == "__main__":
sys.exit(main())
| 24.8 | 78 | 0.53405 |
ed6a3ab7b10d68f5a936266b4ec7064d1ae865c6 | 313 | py | Python | utils/mgmt.py | robinagist/manic | b1bdefbb11c7489164a0c08bb092ffecb5900261 | [
"MIT"
] | 2 | 2018-09-06T05:39:11.000Z | 2020-10-13T21:40:06.000Z | utils/mgmt.py | robinagist/manic | b1bdefbb11c7489164a0c08bb092ffecb5900261 | [
"MIT"
] | 20 | 2018-01-20T05:00:23.000Z | 2018-01-25T17:55:00.000Z | utils/mgmt.py | robinagist/Manic-Mapped-Memory-Server | b1bdefbb11c7489164a0c08bb092ffecb5900261 | [
"MIT"
] | null | null | null | from utils.data import load_memfile_configs
from utils.server import plain_response
from sanic import response
| 19.5625 | 61 | 0.776358 |
ed6ad5b625da50e0023d94d78806dbcd8acd64a1 | 28,127 | py | Python | datasets/medicalImage.py | UpCoder/YNe | 2f932456eda29b1e04f4c7e212e2ab0dacfe831b | [
"MIT"
] | null | null | null | datasets/medicalImage.py | UpCoder/YNe | 2f932456eda29b1e04f4c7e212e2ab0dacfe831b | [
"MIT"
] | null | null | null | datasets/medicalImage.py | UpCoder/YNe | 2f932456eda29b1e04f4c7e212e2ab0dacfe831b | [
"MIT"
] | null | null | null | # -*- coding=utf-8 -*-
import SimpleITK as itk
import pydicom
import numpy as np
from PIL import Image, ImageDraw
import gc
from skimage.morphology import disk, dilation
import nipy
import os
from glob import glob
import scipy
import cv2
from xml.dom.minidom import Document
typenames = ['CYST', 'FNH', 'HCC', 'HEM', 'M... | 33.484524 | 138 | 0.657731 |
ed6aff1082796c2046965ddce3d39f2087944e89 | 925 | py | Python | setup.py | marcus-luck/zohoreader | e832f076a8a87bf27607980fb85a1d2bc8339743 | [
"MIT"
] | 1 | 2020-11-11T02:19:50.000Z | 2020-11-11T02:19:50.000Z | setup.py | marcus-luck/zohoreader | e832f076a8a87bf27607980fb85a1d2bc8339743 | [
"MIT"
] | null | null | null | setup.py | marcus-luck/zohoreader | e832f076a8a87bf27607980fb85a1d2bc8339743 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='zohoreader',
version='0.1',
description='A simple reader for zoho projects API to get all projects, users and timereports',
long_description=readme(),
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT Lice... | 28.030303 | 101 | 0.596757 |
ed6b5de7ad69456fafac8a04559f11ef56300d5e | 24,607 | bzl | Python | web/repositories.bzl | Ubehebe/rules_webtesting | c231866a3bccc0f27b31050a57dc2b4a700ad64e | [
"Apache-2.0"
] | null | null | null | web/repositories.bzl | Ubehebe/rules_webtesting | c231866a3bccc0f27b31050a57dc2b4a700ad64e | [
"Apache-2.0"
] | null | null | null | web/repositories.bzl | Ubehebe/rules_webtesting | c231866a3bccc0f27b31050a57dc2b4a700ad64e | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 43.019231 | 152 | 0.675011 |
ed6b5f33a003c3ef902a30bdc2ac23b77d488f11 | 8,045 | py | Python | code/tools/run_viz_single_task.py | santomon/taskonomy | 4b22087a2686172b21b61589831061e7a386fe36 | [
"MIT"
] | 789 | 2018-03-21T05:28:38.000Z | 2022-03-29T19:32:47.000Z | code/tools/run_viz_single_task.py | santomon/taskonomy | 4b22087a2686172b21b61589831061e7a386fe36 | [
"MIT"
] | 46 | 2018-05-03T07:11:10.000Z | 2022-03-11T23:26:03.000Z | code/tools/run_viz_single_task.py | santomon/taskonomy | 4b22087a2686172b21b61589831061e7a386fe36 | [
"MIT"
] | 152 | 2018-03-24T10:20:44.000Z | 2022-02-09T02:38:10.000Z | from __future__ import absolute_import, division, print_function
import argparse
import importlib
import itertools
import time
from multiprocessing import Pool
import numpy as np
import os
import pdb
import pickle
import subprocess
import sys
import tensorflow as tf
import tensorflow.contrib.slim as slim
import thr... | 35.131004 | 313 | 0.605842 |
ed6bae7a17f418cda8c2e6d4ee817869bb64ec62 | 35,884 | bzl | Python | stratum/portage/build_defs.bzl | cholve/stratum | 09ddb5acb604f7e694a6b7d2fe93fea79f801794 | [
"Apache-2.0"
] | 267 | 2019-09-11T15:01:37.000Z | 2022-03-28T11:14:29.000Z | stratum/portage/build_defs.bzl | cholve/stratum | 09ddb5acb604f7e694a6b7d2fe93fea79f801794 | [
"Apache-2.0"
] | 906 | 2019-09-18T03:37:08.000Z | 2022-03-30T00:59:53.000Z | stratum/portage/build_defs.bzl | cholve/stratum | 09ddb5acb604f7e694a6b7d2fe93fea79f801794 | [
"Apache-2.0"
] | 107 | 2019-09-16T07:30:53.000Z | 2022-03-18T09:53:03.000Z | # Copyright 2018 Google LLC
# Copyright 2018-present Open Networking Foundation
# SPDX-License-Identifier: Apache-2.0
"""A portable build system for Stratum P4 switch stack.
To use this, load() this file in a BUILD file, specifying the symbols needed.
The public symbols are the macros:
decorate(path)
sc_cc_lib ... | 35.042969 | 90 | 0.582767 |
ed6c12390ca654e898450e0424a1c59a124edd59 | 96,578 | py | Python | src/genie/libs/parser/ios/tests/test_show_platform.py | miuvlad/genieparser | 60b1151e3c67c6b55d75e30359d0bf52825efad8 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/ios/tests/test_show_platform.py | miuvlad/genieparser | 60b1151e3c67c6b55d75e30359d0bf52825efad8 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/ios/tests/test_show_platform.py | miuvlad/genieparser | 60b1151e3c67c6b55d75e30359d0bf52825efad8 | [
"Apache-2.0"
] | null | null | null | #!/bin/env python
import unittest
from unittest.mock import Mock
from pyats.topology import Device
from genie.metaparser.util.exceptions import SchemaEmptyParserError,\
SchemaMissingKeyError
from genie.libs.parser.ios.show_platform import ShowVersion,\
Dir,\
ShowRedundan... | 41.307956 | 153 | 0.510582 |
ed6c19de3061a6952b4f83f10500239e87852cc5 | 2,883 | py | Python | autumn/projects/covid_19/sri_lanka/sri_lanka/project.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | autumn/projects/covid_19/sri_lanka/sri_lanka/project.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | autumn/projects/covid_19/sri_lanka/sri_lanka/project.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import numpy as np
from autumn.calibration.proposal_tuning import perform_all_params_proposal_tuning
from autumn.core.project import Project, ParameterSet, load_timeseries, build_rel_path, get_all_available_scenario_paths, \
use_tuned_proposal_sds
from autumn.calibration import Calibration
from autumn.calibration.p... | 43.029851 | 123 | 0.794658 |
ed6c1e66e6a96e129aa7826692f68edb943e0fae | 9,245 | py | Python | Analytics/resources/themes/test_subthemes.py | thanosbnt/SharingCitiesDashboard | 5d123691d1f25d0b85e20e4e8293266bf23c9f8a | [
"Apache-2.0"
] | 4 | 2018-11-21T14:42:18.000Z | 2020-05-11T10:52:59.000Z | Analytics/resources/themes/test_subthemes.py | thanosbnt/SharingCitiesDashboard | 5d123691d1f25d0b85e20e4e8293266bf23c9f8a | [
"Apache-2.0"
] | 60 | 2018-11-21T15:11:59.000Z | 2019-12-02T10:46:44.000Z | Analytics/resources/themes/test_subthemes.py | thanosbnt/SharingCitiesDashboard | 5d123691d1f25d0b85e20e4e8293266bf23c9f8a | [
"Apache-2.0"
] | 7 | 2018-11-21T14:42:44.000Z | 2019-11-28T16:24:14.000Z | import unittest
from http import HTTPStatus
from unittest import TestCase
import bcrypt
from flask.ctx import AppContext
from flask.testing import FlaskClient
from app import create_app
from models.theme import Theme, SubTheme
from models.users import Users
if __name__ == '__main__':
unittest.main()
| 42.800926 | 119 | 0.589508 |
ed6c49af1afdf5e937dac3ecb68b0de9cb7816d4 | 11,421 | py | Python | selfdrive/sensord/rawgps/structs.py | TC921/openpilot | d5d91e6e3be02e2525ed8d6137e5fdca2b81657c | [
"MIT"
] | null | null | null | selfdrive/sensord/rawgps/structs.py | TC921/openpilot | d5d91e6e3be02e2525ed8d6137e5fdca2b81657c | [
"MIT"
] | null | null | null | selfdrive/sensord/rawgps/structs.py | TC921/openpilot | d5d91e6e3be02e2525ed8d6137e5fdca2b81657c | [
"MIT"
] | null | null | null | from struct import unpack_from, calcsize
LOG_GNSS_POSITION_REPORT = 0x1476
LOG_GNSS_GPS_MEASUREMENT_REPORT = 0x1477
LOG_GNSS_CLOCK_REPORT = 0x1478
LOG_GNSS_GLONASS_MEASUREMENT_REPORT = 0x1480
LOG_GNSS_BDS_MEASUREMENT_REPORT = 0x1756
LOG_GNSS_GAL_MEASUREMENT_REPORT = 0x1886
LOG_GNSS_OEMDRE_MEASUREMENT_REPORT = 0x14DE
... | 50.76 | 403 | 0.698976 |
ed6ced72ed9bc083484bd7a8ca32221ff538be8a | 12,541 | py | Python | python2.7libs/hammer_tools/content_browser.py | anvdev/Hammer-Tools | 0211ec837da6754e537c98624ecd07c23abab28e | [
"Apache-2.0"
] | 19 | 2019-10-09T13:48:11.000Z | 2021-06-14T01:25:23.000Z | python2.7libs/hammer_tools/content_browser.py | anvdev/Hammer-Tools | 0211ec837da6754e537c98624ecd07c23abab28e | [
"Apache-2.0"
] | 219 | 2019-10-08T14:44:48.000Z | 2021-06-19T06:27:46.000Z | python2.7libs/hammer_tools/content_browser.py | anvdev/Hammer-Tools | 0211ec837da6754e537c98624ecd07c23abab28e | [
"Apache-2.0"
] | 3 | 2020-02-14T06:18:06.000Z | 2020-11-25T20:47:06.000Z | from __future__ import print_function
try:
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
except ImportError:
from PySide2.QtWidgets import *
from PySide2.QtGui import *
from PySide2.QtCore import *
import hou
from hammer_tools.utils import createAction
... | 37.21365 | 106 | 0.660633 |
ed6cf42a0947849b7e11a5ffae5ba378599d9f7e | 1,106 | py | Python | rt-thread/applications/server/udp_sender.py | luhuadong/stm32f769-disco-demo | c7fb0d627b02c3f87959f43f1447bc79f62a7099 | [
"Apache-2.0"
] | null | null | null | rt-thread/applications/server/udp_sender.py | luhuadong/stm32f769-disco-demo | c7fb0d627b02c3f87959f43f1447bc79f62a7099 | [
"Apache-2.0"
] | null | null | null | rt-thread/applications/server/udp_sender.py | luhuadong/stm32f769-disco-demo | c7fb0d627b02c3f87959f43f1447bc79f62a7099 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
"""
UDP sender
"""
import socket
import time
import sys
smsg = b'\xaa\x08\xfe\x00\xc9\xe6\x5f\xee'
if __name__ == '__main__':
main()
| 17.83871 | 65 | 0.513562 |
ed6da0909e41c7d13eeccbce6856b66ed6774782 | 1,273 | py | Python | yudzuki/role.py | LunaProject-Discord/yudzuki.py | 7ff2d1f9e39ed5300a46c48fb95df50046814ede | [
"MIT"
] | 6 | 2021-04-29T12:48:55.000Z | 2021-06-25T06:54:37.000Z | yudzuki/role.py | LunaProject-Discord/yudzuki.py | 7ff2d1f9e39ed5300a46c48fb95df50046814ede | [
"MIT"
] | null | null | null | yudzuki/role.py | LunaProject-Discord/yudzuki.py | 7ff2d1f9e39ed5300a46c48fb95df50046814ede | [
"MIT"
] | null | null | null | __all__ = (
"Role",
)
| 19.584615 | 51 | 0.531815 |
ed6e652c3847138189ca7b951889b9b3a32aa8ce | 1,702 | py | Python | jassen/django/project/project/urls.py | cabilangan112/intern-drf-blog | b2d6c7a4af1316b2c7ce38547bd9df99b4f3e8b9 | [
"MIT"
] | null | null | null | jassen/django/project/project/urls.py | cabilangan112/intern-drf-blog | b2d6c7a4af1316b2c7ce38547bd9df99b4f3e8b9 | [
"MIT"
] | null | null | null | jassen/django/project/project/urls.py | cabilangan112/intern-drf-blog | b2d6c7a4af1316b2c7ce38547bd9df99b4f3e8b9 | [
"MIT"
] | null | null | null | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | 37.822222 | 101 | 0.756757 |
ed6e6b0df61cc3926c2f1e1ffc6195fcb5a7b2f1 | 13 | py | Python | deep-learning-app/src/models/__init__.py | everbrez/Deep-Learning-based-Chemical-Graphics-Analysis-Platform | 5ecaedadd74e96891c28d9f73384e07c1526916b | [
"Apache-2.0"
] | 1 | 2021-04-30T10:44:32.000Z | 2021-04-30T10:44:32.000Z | deep-learning-app/src/models/__init__.py | everbrez/Deep-Learning-based-Chemical-Graphics-Analysis-Platform | 5ecaedadd74e96891c28d9f73384e07c1526916b | [
"Apache-2.0"
] | null | null | null | deep-learning-app/src/models/__init__.py | everbrez/Deep-Learning-based-Chemical-Graphics-Analysis-Platform | 5ecaedadd74e96891c28d9f73384e07c1526916b | [
"Apache-2.0"
] | null | null | null | print('init') | 13 | 13 | 0.692308 |
ed6e6d96a4c0121238dbb61b6a4a506e75d9c0bd | 1,007 | py | Python | chemmltoolkit/tensorflow/callbacks/variableScheduler.py | Andy-Wilkinson/ChemMLToolk | 83efc7ea66d2def860a3e04ccd70d77fb689fddc | [
"MIT"
] | 1 | 2019-10-30T03:43:24.000Z | 2019-10-30T03:43:24.000Z | chemmltoolkit/tensorflow/callbacks/variableScheduler.py | Andy-Wilkinson/ChemMLToolk | 83efc7ea66d2def860a3e04ccd70d77fb689fddc | [
"MIT"
] | 2 | 2021-11-28T21:09:30.000Z | 2021-11-28T21:09:39.000Z | chemmltoolkit/tensorflow/callbacks/variableScheduler.py | Andy-Wilkinson/ChemMLToolkit | 83efc7ea66d2def860a3e04ccd70d77fb689fddc | [
"MIT"
] | null | null | null | import tensorflow as tf
| 37.296296 | 73 | 0.646475 |
ed6f5b3794c25687738dfe6c60b7b8d1ed6647b2 | 14,621 | py | Python | join_peaks.py | nijibabulu/chip_tools | 04def22059a6018b3b49247d69d7b04eee1dcd89 | [
"MIT"
] | null | null | null | join_peaks.py | nijibabulu/chip_tools | 04def22059a6018b3b49247d69d7b04eee1dcd89 | [
"MIT"
] | null | null | null | join_peaks.py | nijibabulu/chip_tools | 04def22059a6018b3b49247d69d7b04eee1dcd89 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import os
import sys
import math
import csv
import collections
import docopt
import peakzilla_qnorm_mapq_patched as pz
__doc__ = '''
Usage: join_peaks.py [options] PEAKS CHIP INPUT [ (PEAKS CHIP INPUT) ... ]
This script finds peaks in common between multiple ChIP experiments determined
by pe... | 39.730978 | 122 | 0.603584 |
ed6ff0df42bec5dfbd4d71634bb7ab44a9c003d2 | 9,473 | py | Python | django_town/rest_swagger/views.py | uptown/django-town | 4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50 | [
"MIT"
] | null | null | null | django_town/rest_swagger/views.py | uptown/django-town | 4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50 | [
"MIT"
] | null | null | null | django_town/rest_swagger/views.py | uptown/django-town | 4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50 | [
"MIT"
] | null | null | null | from django_town.rest import RestApiView, rest_api_manager
from django_town.http import http_json_response
from django_town.cache.utlis import SimpleCache
from django_town.oauth2.swagger import swagger_authorizations_data
from django_town.social.oauth2.permissions import OAuth2Authenticated, OAuth2AuthenticatedOrReadOn... | 43.059091 | 108 | 0.331468 |
ed71593db0e5552171798bc1852cca8f7c4d9f3e | 2,285 | py | Python | components/dash-core-components/tests/integration/dropdown/test_dynamic_options.py | mastermind88/dash | 760af721980e18d91bdbc4e204d1d063c7ed325c | [
"MIT"
] | null | null | null | components/dash-core-components/tests/integration/dropdown/test_dynamic_options.py | mastermind88/dash | 760af721980e18d91bdbc4e204d1d063c7ed325c | [
"MIT"
] | null | null | null | components/dash-core-components/tests/integration/dropdown/test_dynamic_options.py | mastermind88/dash | 760af721980e18d91bdbc4e204d1d063c7ed325c | [
"MIT"
] | null | null | null | from dash import Dash, Input, Output, dcc, html
from dash.exceptions import PreventUpdate
| 27.202381 | 87 | 0.647265 |
ed725c3c070133c88aad862a90d3bfcbc58edf09 | 768 | py | Python | Server.py | dipghoshraj/live-video-streming-with-web-socket | dda924e22a4c40d225ec39dd94ee1e489233c403 | [
"BSD-2-Clause"
] | 3 | 2020-06-30T03:49:46.000Z | 2021-07-17T16:15:55.000Z | Server.py | dipghoshraj/live-video-streming-with-web-socket | dda924e22a4c40d225ec39dd94ee1e489233c403 | [
"BSD-2-Clause"
] | null | null | null | Server.py | dipghoshraj/live-video-streming-with-web-socket | dda924e22a4c40d225ec39dd94ee1e489233c403 | [
"BSD-2-Clause"
] | null | null | null | import cv2
import io
import socket
import struct
import time
import pickle
import zlib
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.connect(('127.0.0.1', 8485))
connection = client_socket.makefile('wb')
cam = cv2.VideoCapture("E:/songs/Attention Charlie Puth(GabbarWorld.com) 1080p.mp4... | 29.538462 | 84 | 0.71224 |
ed74d0762a12ab84a6b4c685f57a0a532e003b99 | 7,059 | py | Python | hal/agent/tf2_utils.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-13T21:48:52.000Z | 2022-03-13T21:48:52.000Z | hal/agent/tf2_utils.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | null | null | null | hal/agent/tf2_utils.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-30T07:20:29.000Z | 2022-03-30T07:20:29.000Z | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# 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 applicab... | 32.380734 | 79 | 0.696841 |
ed753328e567a24c6d1169588942c86a984af1ee | 4,437 | py | Python | wolk/logger_factory.py | Wolkabout/WolkConnect-Python- | 11412e3f88911170f587b5e857d07ab41c8f52b5 | [
"Apache-2.0"
] | 6 | 2016-12-19T13:36:44.000Z | 2018-05-10T15:08:15.000Z | wolk/logger_factory.py | Wolkabout/WolkConnect-Python | 11412e3f88911170f587b5e857d07ab41c8f52b5 | [
"Apache-2.0"
] | 5 | 2019-02-23T09:37:12.000Z | 2021-09-17T13:54:58.000Z | wolk/logger_factory.py | Wolkabout/WolkConnect-Python- | 11412e3f88911170f587b5e857d07ab41c8f52b5 | [
"Apache-2.0"
] | 3 | 2016-08-15T22:19:00.000Z | 2017-12-28T09:48:37.000Z | """LoggerFactory Module."""
# Copyright 2020 WolkAbout Technology s.r.o.
#
# 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
#
# Unl... | 30.8125 | 88 | 0.610773 |
ed7563752fb4afab443eb59eb4484ffff4182b40 | 1,830 | py | Python | raw.py | andre-marcos-perez/data-pipeline-demo | 2647cce6e90d39798eda352608dc0f6d6ab5255a | [
"MIT"
] | 3 | 2021-05-20T23:24:13.000Z | 2021-08-20T12:23:18.000Z | raw.py | andre-marcos-perez/data-pipeline-demo | 2647cce6e90d39798eda352608dc0f6d6ab5255a | [
"MIT"
] | null | null | null | raw.py | andre-marcos-perez/data-pipeline-demo | 2647cce6e90d39798eda352608dc0f6d6ab5255a | [
"MIT"
] | 3 | 2021-05-26T14:49:20.000Z | 2022-03-21T23:17:54.000Z | import json
import gzip
import requests
from datetime import datetime
import pendulum
import boto3
from botocore.exceptions import ClientError
from util.log import Log
from settings.aws_settings import AWSSettings
from settings.telegram_settings import TelegramSettings
| 31.016949 | 103 | 0.62623 |
ed75b8a825782f227e671daaa305387cdcbcd9d0 | 2,688 | py | Python | v2_hier/site_stat.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | v2_hier/site_stat.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | v2_hier/site_stat.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | """Collecting statistics of site visits."""
import collections
from datetime import datetime
from functools import reduce
from django.utils.translation import gettext_lazy as _
from hier.models import IPInfo, AccessLog, SiteStat
from v2_hier.utils import APPS
def get_site_stat(user):
"""Processing a new portion of... | 31.623529 | 115 | 0.599702 |
ed75ce190b9f65a6716720968d522d43762ebdb0 | 16,643 | py | Python | cli/pcluster/utils.py | mkosmo/cfncluster | f1817cc187f2b92127d48f16debb4b7ea4f4a80f | [
"Apache-2.0"
] | 1 | 2021-04-08T05:08:07.000Z | 2021-04-08T05:08:07.000Z | cli/pcluster/utils.py | mkosmo/cfncluster | f1817cc187f2b92127d48f16debb4b7ea4f4a80f | [
"Apache-2.0"
] | null | null | null | cli/pcluster/utils.py | mkosmo/cfncluster | f1817cc187f2b92127d48f16debb4b7ea4f4a80f | [
"Apache-2.0"
] | 1 | 2019-05-10T16:03:19.000Z | 2019-05-10T16:03:19.000Z | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
# the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "LICENSE.txt" file accom... | 35.714592 | 119 | 0.672715 |
ed75ef3dbcd90991f3b2e3a5c73442983622bbb5 | 452 | py | Python | thinkutils_plus/eventbus/sample/myeventbus.py | ThinkmanWang/thinkutils_plus | 65d56a1a0cfce22dff08a4f0baea6b4eb08a2e35 | [
"MIT"
] | null | null | null | thinkutils_plus/eventbus/sample/myeventbus.py | ThinkmanWang/thinkutils_plus | 65d56a1a0cfce22dff08a4f0baea6b4eb08a2e35 | [
"MIT"
] | null | null | null | thinkutils_plus/eventbus/sample/myeventbus.py | ThinkmanWang/thinkutils_plus | 65d56a1a0cfce22dff08a4f0baea6b4eb08a2e35 | [
"MIT"
] | null | null | null | __author__ = 'Xsank'
import time
from thinkutils_plus.eventbus.eventbus import EventBus
from myevent import GreetEvent
from myevent import ByeEvent
from mylistener import MyListener
if __name__=="__main__":
eventbus=EventBus()
eventbus.register(MyListener())
ge=GreetEvent('world')
be=ByeEvent('world'... | 23.789474 | 54 | 0.743363 |
ed7707a9a93d2eb459c06d85459c2db5718ad3cc | 3,963 | py | Python | tools/telemetry/telemetry/core/platform/android_device_unittest.py | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-11-28T10:46:52.000Z | 2019-11-28T10:46:52.000Z | tools/telemetry/telemetry/core/platform/android_device_unittest.py | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/telemetry/telemetry/core/platform/android_device_unittest.py | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-27T11:15:39.000Z | 2016-08-17T14:19:56.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from telemetry import benchmark
from telemetry.core import browser_options
from telemetry.core.platform import android_device
from telemetry... | 39.63 | 78 | 0.7459 |
ed7911d27c0fa532add30880dc5c7b6aaf924408 | 1,265 | py | Python | logger.py | bekaaa/xgboost_tuner | 2d93f6cc751b3a8778420a88caf73fd1dc8ef2ce | [
"MIT"
] | null | null | null | logger.py | bekaaa/xgboost_tuner | 2d93f6cc751b3a8778420a88caf73fd1dc8ef2ce | [
"MIT"
] | null | null | null | logger.py | bekaaa/xgboost_tuner | 2d93f6cc751b3a8778420a88caf73fd1dc8ef2ce | [
"MIT"
] | 1 | 2019-03-16T14:30:07.000Z | 2019-03-16T14:30:07.000Z | #! /usr/bin/env python
import logging
#---------------------------------------
| 31.625 | 93 | 0.622925 |
ed79b8872d0353b944045d77a3b550a09342bdbf | 5,536 | py | Python | baselines/prep_baseline.py | lessleslie/slm-code-generation | 017ac0828faf3467e9f85883e27be09ec3898b14 | [
"MIT"
] | 64 | 2020-06-23T06:27:42.000Z | 2022-03-30T07:44:52.000Z | baselines/prep_baseline.py | lessleslie/slm-code-generation | 017ac0828faf3467e9f85883e27be09ec3898b14 | [
"MIT"
] | 11 | 2020-07-14T23:29:31.000Z | 2021-09-17T15:17:49.000Z | baselines/prep_baseline.py | tech-srl/slm-code-generation | 15fe4e1df82e49587f725577f870ca12dc42903a | [
"MIT"
] | 6 | 2020-07-09T08:42:04.000Z | 2021-03-02T14:35:31.000Z | import json
import multiprocessing as mp
import re
from argparse import ArgumentParser
from enum import Enum, auto
import javalang
from functools import partial
PRED_TOKEN = 'PRED'
modifiers = ['public', 'private', 'protected', 'static']
target_type = TargetType.seq
RE_WORDS = re.compile(r'''
# Find words in a ... | 40.408759 | 146 | 0.629516 |
ed79d1c413293473a8ee91b105de6df7218762d5 | 1,865 | py | Python | var/spack/repos/builtin/packages/r-multicool/package.py | varioustoxins/spack | cab0e4cb240f34891a6d753f3393e512f9a99e9a | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/r-multicool/package.py | varioustoxins/spack | cab0e4cb240f34891a6d753f3393e512f9a99e9a | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 6 | 2022-01-08T08:41:11.000Z | 2022-03-14T19:28:07.000Z | var/spack/repos/builtin/packages/r-multicool/package.py | foeroyingur/spack | 5300cbbb2e569190015c72d0970d25425ea38647 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
| 51.805556 | 97 | 0.759249 |
ed7af640d287226ceb10c1b2fceda155d15712f4 | 7,426 | py | Python | updatetranslations.py | erincerys/ergo | 0aeedcdcccb5348d8eedb5faa6a0536d93ca3ae3 | [
"MIT"
] | 1,122 | 2017-06-15T05:44:52.000Z | 2021-05-26T16:27:43.000Z | updatetranslations.py | erincerys/ergo | 0aeedcdcccb5348d8eedb5faa6a0536d93ca3ae3 | [
"MIT"
] | 1,031 | 2017-06-18T13:57:51.000Z | 2021-05-26T19:51:37.000Z | updatetranslations.py | erincerys/ergo | 0aeedcdcccb5348d8eedb5faa6a0536d93ca3ae3 | [
"MIT"
] | 113 | 2017-06-21T18:32:53.000Z | 2021-05-26T13:12:46.000Z | #!/usr/bin/env python3
# updatetranslations.py
#
# tl;dr this script updates our translation file with the newest, coolest strings we've added!
# it manually searches the source code, extracts strings and then updates the language files.
# Written in 2018 by Daniel Oaks <daniel@danieloaks.net>
#
# To the extent possib... | 37.887755 | 110 | 0.524239 |
ed7b8022569fdf95c3598fcd38e2d1c4182f053f | 1,437 | py | Python | processing_tools/number_of_tenants.py | apanda/modeling | e032abd413bb3325ad6e5995abadeef74314f383 | [
"BSD-3-Clause"
] | 3 | 2017-08-30T05:24:11.000Z | 2021-02-25T12:17:19.000Z | processing_tools/number_of_tenants.py | apanda/modeling | e032abd413bb3325ad6e5995abadeef74314f383 | [
"BSD-3-Clause"
] | null | null | null | processing_tools/number_of_tenants.py | apanda/modeling | e032abd413bb3325ad6e5995abadeef74314f383 | [
"BSD-3-Clause"
] | 2 | 2017-11-15T07:00:48.000Z | 2020-12-13T17:29:03.000Z | import sys
from collections import defaultdict
if __name__ == "__main__":
Process(sys.argv[1:])
| 35.04878 | 68 | 0.526792 |
ed7d1c9bb5710045f4cb95dccf219d3b5c6faaa9 | 2,564 | py | Python | pyfisher/mpi.py | borisbolliet/pyfisher | 715e192baa4fadbff754416d2b001c3708c9276c | [
"BSD-3-Clause"
] | 7 | 2017-12-06T18:16:13.000Z | 2021-02-09T19:25:26.000Z | pyfisher/mpi.py | borisbolliet/pyfisher | 715e192baa4fadbff754416d2b001c3708c9276c | [
"BSD-3-Clause"
] | 34 | 2016-01-25T19:48:07.000Z | 2021-02-03T22:34:09.000Z | pyfisher/mpi.py | borisbolliet/pyfisher | 715e192baa4fadbff754416d2b001c3708c9276c | [
"BSD-3-Clause"
] | 10 | 2017-02-01T15:14:22.000Z | 2021-02-16T01:34:16.000Z | from __future__ import print_function
import numpy as np
import os,sys,time
"""
Copied from orphics.mpi
"""
try:
disable_mpi_env = os.environ['DISABLE_MPI']
disable_mpi = True if disable_mpi_env.lower().strip() == "true" else False
except:
disable_mpi = False
"""
Use the below cleanup stuff only for inte... | 29.813953 | 242 | 0.697738 |
ed7d572858561992a56ab8312f08925dad1d2745 | 6,260 | py | Python | ebay.py | SpironoZeppeli/Magic-The-Scannening | 93c595a4c98fb725a79eeddfaba99cb0409d41fb | [
"MIT"
] | null | null | null | ebay.py | SpironoZeppeli/Magic-The-Scannening | 93c595a4c98fb725a79eeddfaba99cb0409d41fb | [
"MIT"
] | null | null | null | ebay.py | SpironoZeppeli/Magic-The-Scannening | 93c595a4c98fb725a79eeddfaba99cb0409d41fb | [
"MIT"
] | null | null | null | import requests
import urllib.request
import urllib.parse
import PIL
import re
import configparser
import json
from PIL import Image
from ebaysdk.trading import Connection as Trading
from ebaysdk.exception import ConnectionError
from yaml import load
from PyQt5.QtWidgets import QMessageBox
| 42.013423 | 119 | 0.546486 |
ed7de0c98f16f1e656d840a2c9ad1e60a28cfa7f | 3,175 | py | Python | bot/exts/github/github.py | v1nam/gurkbot | a0f5e05a5f65e6169accc90271fca58f4df211fe | [
"MIT"
] | 24 | 2020-12-18T07:26:14.000Z | 2022-03-30T22:56:49.000Z | bot/exts/github/github.py | v1nam/gurkbot | a0f5e05a5f65e6169accc90271fca58f4df211fe | [
"MIT"
] | 143 | 2020-12-18T09:13:51.000Z | 2022-03-02T19:27:44.000Z | bot/exts/github/github.py | v1nam/gurkbot | a0f5e05a5f65e6169accc90271fca58f4df211fe | [
"MIT"
] | 44 | 2020-12-18T09:05:29.000Z | 2022-03-02T20:06:23.000Z | import typing
from bot.constants import BOT_REPO_URL
from discord import Embed
from discord.ext import commands
from discord.ext.commands.cooldowns import BucketType
from . import _issues, _profile, _source
def setup(bot: commands.Bot) -> None:
"""Load the Github cog."""
bot.add_cog(Github(bot))
| 34.89011 | 88 | 0.640945 |
ed7de7f5235ff8dd0c5f7e122b59415ab3622dc6 | 1,154 | py | Python | log/slack_sender.py | SmashKs/BarBarian | b308dcb9e24ec621abbbc121847923e14e5b6a4b | [
"MIT"
] | null | null | null | log/slack_sender.py | SmashKs/BarBarian | b308dcb9e24ec621abbbc121847923e14e5b6a4b | [
"MIT"
] | 2 | 2020-06-05T19:25:24.000Z | 2021-06-10T20:56:57.000Z | log/slack_sender.py | SmashKs/BarBarian | b308dcb9e24ec621abbbc121847923e14e5b6a4b | [
"MIT"
] | null | null | null | from slackclient import SlackClient
from external import SLACK_API_KEY
if __name__ == '__main__':
SlackBot().send_msg_to('hello world!!')
| 32.971429 | 70 | 0.559792 |
ed7e4d3da4d7bdad5eca61e8c5160dfe0d14608f | 2,379 | py | Python | src/pytezos/block/forge.py | miracle2k/pytezos | e6b99f00f342d9a05b0c36a9883040961fd6d58e | [
"MIT"
] | 98 | 2019-02-07T16:33:38.000Z | 2022-03-31T15:53:41.000Z | src/pytezos/block/forge.py | miracle2k/pytezos | e6b99f00f342d9a05b0c36a9883040961fd6d58e | [
"MIT"
] | 152 | 2019-05-20T16:38:56.000Z | 2022-03-30T14:24:38.000Z | src/pytezos/block/forge.py | miracle2k/pytezos | e6b99f00f342d9a05b0c36a9883040961fd6d58e | [
"MIT"
] | 34 | 2019-07-25T12:03:51.000Z | 2021-11-11T22:23:38.000Z | from typing import Any, Dict, List, Tuple
from pytezos.michelson.forge import forge_array, forge_base58, optimize_timestamp
| 33.985714 | 87 | 0.666246 |
ed7f467835f32242a9650f226b4a5ad9d6d87af4 | 5,321 | py | Python | python/paddle/fluid/tests/unittests/test_roi_pool_op.py | jichangjichang/Paddle | 4fa3cee5499c6df0ad6043b0cfa220d09f2034e8 | [
"Apache-2.0"
] | 9 | 2017-12-04T02:58:01.000Z | 2020-12-03T14:46:30.000Z | python/paddle/fluid/tests/unittests/test_roi_pool_op.py | jichangjichang/Paddle | 4fa3cee5499c6df0ad6043b0cfa220d09f2034e8 | [
"Apache-2.0"
] | 7 | 2017-12-05T20:29:08.000Z | 2018-10-15T08:57:40.000Z | python/paddle/fluid/tests/unittests/test_roi_pool_op.py | jichangjichang/Paddle | 4fa3cee5499c6df0ad6043b0cfa220d09f2034e8 | [
"Apache-2.0"
] | 6 | 2018-03-19T22:38:46.000Z | 2019-11-01T22:28:27.000Z | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 37.20979 | 80 | 0.543131 |
ed7fc7d6fb252e1b75bf1b904b18ffd861a8c42f | 1,162 | py | Python | testproject/testapp/tests/__init__.py | movermeyer/django-firestone | e045089f6ff4a6686633f9c5909c314a010bd4a0 | [
"WTFPL"
] | 1 | 2017-03-08T22:58:35.000Z | 2017-03-08T22:58:35.000Z | testproject/testapp/tests/__init__.py | movermeyer/django-firestone | e045089f6ff4a6686633f9c5909c314a010bd4a0 | [
"WTFPL"
] | null | null | null | testproject/testapp/tests/__init__.py | movermeyer/django-firestone | e045089f6ff4a6686633f9c5909c314a010bd4a0 | [
"WTFPL"
] | 1 | 2018-03-05T17:40:55.000Z | 2018-03-05T17:40:55.000Z | from test_proxy import *
from test_serializers import *
from test_deserializers import *
from test_exceptions import *
from test_authentication import *
from test_whole_flow import *
from test_handlers_metaclass_magic import *
from test_handlers_serialize_to_python import *
from test_handlers_is_method_allowed im... | 31.405405 | 47 | 0.865749 |
ed801190784fa836d2752af1e6b10b54a93fa361 | 2,518 | py | Python | Day20.py | SheepiCagio/Advent-of-Code-2021 | 52f0035da2cb258810d8947cbf56b51b65a9fe8b | [
"MIT"
] | null | null | null | Day20.py | SheepiCagio/Advent-of-Code-2021 | 52f0035da2cb258810d8947cbf56b51b65a9fe8b | [
"MIT"
] | null | null | null | Day20.py | SheepiCagio/Advent-of-Code-2021 | 52f0035da2cb258810d8947cbf56b51b65a9fe8b | [
"MIT"
] | null | null | null | import numpy as np
raw = open("inputs/20.txt","r").readlines()
input_array= [(i.replace('\n', '').replace('.','0').replace('#', '1')) for i in raw]
test_raw = open("inputs/20_test.txt","r").readlines()
test_array= [(i.replace('\n', '').replace('.','0').replace('#', '1')) for i in test_raw]
#pictureEnhancer(test_arr... | 35.464789 | 110 | 0.635822 |
ed8134024179e7e4607f23c5ef95e9da1da3820b | 1,674 | py | Python | questions/53349623/main.py | sesu089/stackoverflow | 6fae69be6fa74fba9d554e6b5f387e5d3c1aad73 | [
"MIT"
] | 302 | 2017-03-04T00:05:23.000Z | 2022-03-28T22:51:29.000Z | questions/53349623/main.py | sesu089/stackoverflow | 6fae69be6fa74fba9d554e6b5f387e5d3c1aad73 | [
"MIT"
] | 30 | 2017-12-02T19:26:43.000Z | 2022-03-28T07:40:36.000Z | questions/53349623/main.py | sesu089/stackoverflow | 6fae69be6fa74fba9d554e6b5f387e5d3c1aad73 | [
"MIT"
] | 388 | 2017-07-04T16:53:12.000Z | 2022-03-18T22:20:19.000Z | import sys
from PyQt5 import QtCore, QtGui, QtWidgets
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
demo = Demo()
demo.show()
sys.exit(app.exec_()) | 32.823529 | 84 | 0.642772 |
ed81492b65a1f232ede7d038b4670a415f3f191c | 1,638 | py | Python | tests/test_error_descriptions_from_raises.py | iterait/apistrap | e83460fa97f13a95a928971b0d2defe0ac611911 | [
"MIT"
] | 6 | 2018-09-06T18:32:48.000Z | 2021-05-28T01:03:32.000Z | tests/test_error_descriptions_from_raises.py | iterait/apistrap | e83460fa97f13a95a928971b0d2defe0ac611911 | [
"MIT"
] | 53 | 2018-09-06T16:16:53.000Z | 2021-05-19T14:36:58.000Z | tests/test_error_descriptions_from_raises.py | iterait/apistrap | e83460fa97f13a95a928971b0d2defe0ac611911 | [
"MIT"
] | null | null | null | import pytest
from apistrap.flask import FlaskApistrap
from apistrap.schemas import ErrorResponse
def test_error_descriptions_from_raises(app_with_raises, client):
response = client.get("/spec.json")
assert response.json["paths"]["/"]["get"]["responses"] == {
"500": {
"description": "K... | 23.4 | 69 | 0.527473 |
ed82dc9fed173aeada3cbab76076165a4c9b3932 | 1,126 | py | Python | projects/api/UsersApi.py | chamathshashika/projects-python-wrappers | 33e9f6bccba16a581b115c582033a93d43bb159c | [
"MIT"
] | null | null | null | projects/api/UsersApi.py | chamathshashika/projects-python-wrappers | 33e9f6bccba16a581b115c582033a93d43bb159c | [
"MIT"
] | null | null | null | projects/api/UsersApi.py | chamathshashika/projects-python-wrappers | 33e9f6bccba16a581b115c582033a93d43bb159c | [
"MIT"
] | null | null | null | #$Id$
from projects.util.ZohoHttpClient import ZohoHttpClient
from projects.api.Api import Api
from projects.parser.UsersParser import UsersParser
base_url = Api().base_url
zoho_http_client = ZohoHttpClient()
parser = UsersParser()
| 25.590909 | 101 | 0.617229 |
ed82e608ff9e5d51a3d3e7cab08afa27210afbdb | 11,340 | py | Python | useless/tuck_arms.py | leader1313/Baxter_teleoperation_system | 856d999acd73e6c1dc15a342cb6c4fcd1a482863 | [
"Apache-2.0"
] | null | null | null | useless/tuck_arms.py | leader1313/Baxter_teleoperation_system | 856d999acd73e6c1dc15a342cb6c4fcd1a482863 | [
"Apache-2.0"
] | 2 | 2019-10-15T07:24:24.000Z | 2019-10-15T07:28:19.000Z | useless/tuck_arms.py | leader1313/Baxter_teleoperation_system | 856d999acd73e6c1dc15a342cb6c4fcd1a482863 | [
"Apache-2.0"
] | 1 | 2020-09-15T12:37:13.000Z | 2020-09-15T12:37:13.000Z | #!/usr/bin/env python
# Copyright (c) 2013-2015, Rethink Robotics
# 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 code must retain the above copyright notice,
# ... | 42.47191 | 79 | 0.568078 |
ed8397333a807416a6c46033a45a38d2847fa564 | 203 | py | Python | django-system/src/tsm_api/serializers.py | Deepak-Kharah/ioe-project | 6f83ddcfced25130e0f05c3380dde97429d1f224 | [
"MIT"
] | null | null | null | django-system/src/tsm_api/serializers.py | Deepak-Kharah/ioe-project | 6f83ddcfced25130e0f05c3380dde97429d1f224 | [
"MIT"
] | null | null | null | django-system/src/tsm_api/serializers.py | Deepak-Kharah/ioe-project | 6f83ddcfced25130e0f05c3380dde97429d1f224 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Measurement
| 20.3 | 57 | 0.748768 |
ed83e8c908ff960c5bf16835dd114bff6b5f51a1 | 123 | py | Python | src/GalaxyDynamicsFromVc/units.py | pabferde/galaxy_dynamics_from_Vc | 7232f7bfd6d2338bcec3bbf87478f7a482c749ef | [
"MIT"
] | null | null | null | src/GalaxyDynamicsFromVc/units.py | pabferde/galaxy_dynamics_from_Vc | 7232f7bfd6d2338bcec3bbf87478f7a482c749ef | [
"MIT"
] | null | null | null | src/GalaxyDynamicsFromVc/units.py | pabferde/galaxy_dynamics_from_Vc | 7232f7bfd6d2338bcec3bbf87478f7a482c749ef | [
"MIT"
] | null | null | null |
_Msun_kpc3_to_GeV_cm3_factor = 0.3/8.0e6
| 17.571429 | 45 | 0.821138 |
ed84e43c822be0079982b64c82f1405fcf82f103 | 1,114 | py | Python | poll/models/telemetry_models.py | mirokrastev/poll-website | 4f26cce3f838ab05de91f0e1dba34d9bc59927b4 | [
"MIT"
] | 3 | 2021-07-03T19:05:56.000Z | 2022-02-02T17:22:17.000Z | poll/models/telemetry_models.py | mirokrastev/poll-website | 4f26cce3f838ab05de91f0e1dba34d9bc59927b4 | [
"MIT"
] | null | null | null | poll/models/telemetry_models.py | mirokrastev/poll-website | 4f26cce3f838ab05de91f0e1dba34d9bc59927b4 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth import get_user_model
from poll.models.poll_models import Poll
| 27.85 | 91 | 0.72711 |
ed84fba26398a78d3cfbc33d60c7ec3256e7da8a | 208 | py | Python | pcdet/models/backbones_2d/__init__.py | HenryLittle/OpenPCDet-HL | 7dba01750e10d170849314723ec0665782236a70 | [
"Apache-2.0"
] | null | null | null | pcdet/models/backbones_2d/__init__.py | HenryLittle/OpenPCDet-HL | 7dba01750e10d170849314723ec0665782236a70 | [
"Apache-2.0"
] | null | null | null | pcdet/models/backbones_2d/__init__.py | HenryLittle/OpenPCDet-HL | 7dba01750e10d170849314723ec0665782236a70 | [
"Apache-2.0"
] | null | null | null | from .base_bev_backbone import BaseBEVBackbone
from .decouple_bev_backbone import DecoupledBEVBackbone
__all__ = {
'BaseBEVBackbone': BaseBEVBackbone,
'DecoupledBEVBackbone': DecoupledBEVBackbone,
}
| 26 | 55 | 0.817308 |
ed86102b88fe53e5292e7840680746dc239293e9 | 4,883 | py | Python | test/unit/app/tools/test_select_parameters.py | beatrizserrano/galaxy | e149d9d32e1bca6c07c38b1a9cdabfee60323610 | [
"CC-BY-3.0"
] | null | null | null | test/unit/app/tools/test_select_parameters.py | beatrizserrano/galaxy | e149d9d32e1bca6c07c38b1a9cdabfee60323610 | [
"CC-BY-3.0"
] | 6 | 2021-11-11T20:57:49.000Z | 2021-12-10T15:30:33.000Z | test/unit/app/tools/test_select_parameters.py | beatrizserrano/galaxy | e149d9d32e1bca6c07c38b1a9cdabfee60323610 | [
"CC-BY-3.0"
] | null | null | null | from unittest.mock import Mock
import pytest
from galaxy import model
from galaxy.tools.parameters import basic
from .util import BaseParameterTestCase
| 45.635514 | 137 | 0.643662 |
ed874fc7d5498d0b2a5744718551a9a50f16e262 | 141 | py | Python | recumpiler/__init__.py | Toasterstein/recumpiler | 390957cfaa8f60ffeb24adb43b91981dd445c6b9 | [
"MIT"
] | null | null | null | recumpiler/__init__.py | Toasterstein/recumpiler | 390957cfaa8f60ffeb24adb43b91981dd445c6b9 | [
"MIT"
] | 8 | 2021-03-23T21:54:29.000Z | 2021-03-30T23:17:06.000Z | recumpiler/__init__.py | nklapste/recumpiler | 80efcfad995211c010f4d962221ab576ca50229f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""recumpiler
Recompile text to be semi-readable memey garbage.
"""
__version__ = (0, 0, 0)
| 14.1 | 49 | 0.638298 |
ed87f843694726a8943e8ca3120951277107fd9a | 108,939 | gyp | Python | net/net.gyp | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | net/net.gyp | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | net/net.gyp | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:25:45.000Z | 2020-11-04T07:25:45.000Z | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
'linux_link_kerberos%': 0,
'conditions': [
['chromeos==1 or OS=="android" or OS=="ios"', {
... | 39.074247 | 106 | 0.589587 |
ed88b978abfea5e45767847b3da18555a2c06112 | 2,268 | py | Python | python/clx/analytics/detector.py | mdemoret-nv/clx | 3737706187d8f5720561e10b85cbd638c77b9267 | [
"Apache-2.0"
] | null | null | null | python/clx/analytics/detector.py | mdemoret-nv/clx | 3737706187d8f5720561e10b85cbd638c77b9267 | [
"Apache-2.0"
] | null | null | null | python/clx/analytics/detector.py | mdemoret-nv/clx | 3737706187d8f5720561e10b85cbd638c77b9267 | [
"Apache-2.0"
] | null | null | null | import logging
import torch
import torch.nn as nn
from abc import ABC, abstractmethod
log = logging.getLogger(__name__)
def save_model(self, file_path):
""" This function saves model to given location.
:param file_path: File path to save model.
:type file_path: string
"""
... | 25.772727 | 76 | 0.618166 |
ed89a6742f6b5bd9686166ceba6ffc217d6833e0 | 5,366 | py | Python | street_score/project/models.py | openplans/streetscore | ea27f70399b070d3199f236d99575c5962943d67 | [
"MIT"
] | 4 | 2017-01-02T22:30:44.000Z | 2019-10-08T20:50:02.000Z | street_score/project/models.py | openplans/streetscore | ea27f70399b070d3199f236d99575c5962943d67 | [
"MIT"
] | 3 | 2020-02-11T21:42:47.000Z | 2021-06-10T17:28:28.000Z | street_score/project/models.py | openplans/streetscore | ea27f70399b070d3199f236d99575c5962943d67 | [
"MIT"
] | 2 | 2017-03-09T12:24:57.000Z | 2019-12-20T20:39:24.000Z | import math
import random
from django.db import models
def init_questions(self):
"""
Load a set of questions at random.
"""
all_questions = (
Criterion.objects.all()
.annotate(num_ratings=models.Count('ratings'))
)
self.__questions ... | 28.391534 | 89 | 0.617965 |
ed8c04e174410b92850aae3e034c73bb05a4abae | 4,351 | py | Python | src/selfdroid/appstorage/crud/AppAdder.py | vitlabuda/selfdroid-web-app | 9eac9ee2c34038de13e179b6afb3d530a086e7b2 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2022-03-13T14:57:04.000Z | 2022-03-13T14:57:04.000Z | src/selfdroid/appstorage/crud/AppAdder.py | vitlabuda/selfdroid-web-app | 9eac9ee2c34038de13e179b6afb3d530a086e7b2 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/selfdroid/appstorage/crud/AppAdder.py | vitlabuda/selfdroid-web-app | 9eac9ee2c34038de13e179b6afb3d530a086e7b2 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2021 Vt Labuda. 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 code must retain the above copyright notice,... | 44.397959 | 234 | 0.75385 |
ed8c508acbabfde1092353a8acaec8aac8951535 | 47 | py | Python | library/libvirt_filter.py | bkmeneguello/ansible-role-libvirt | e7f82077b1fd4c2ec5afa463973ecde599209549 | [
"MIT"
] | 1 | 2019-02-19T19:41:36.000Z | 2019-02-19T19:41:36.000Z | library/libvirt_filter.py | bkmeneguello/ansible-role-libvirt | e7f82077b1fd4c2ec5afa463973ecde599209549 | [
"MIT"
] | null | null | null | library/libvirt_filter.py | bkmeneguello/ansible-role-libvirt | e7f82077b1fd4c2ec5afa463973ecde599209549 | [
"MIT"
] | null | null | null | # TODO: https://libvirt.org/formatnwfilter.html | 47 | 47 | 0.787234 |
71ea1c59255a1948249d1ed69284c07777e83df9 | 669 | py | Python | estafeta/core/__init__.py | Solunest/pyestafeta | cd24cea4973f5184f4cc7e72a653de8b22e32f69 | [
"MIT"
] | null | null | null | estafeta/core/__init__.py | Solunest/pyestafeta | cd24cea4973f5184f4cc7e72a653de8b22e32f69 | [
"MIT"
] | null | null | null | estafeta/core/__init__.py | Solunest/pyestafeta | cd24cea4973f5184f4cc7e72a653de8b22e32f69 | [
"MIT"
] | null | null | null |
from estafeta.core.client import EstafetaClient
user = None
password = None
id = None
account_number = None
production = None
from estafeta.core.error import EstafetaWrongData, EstafetaEmptyField
__url_label__ = [
'https://labelqa.estafeta.com/EstafetaLabel20/services/EstafetaLabelWS?wsdl',
'https://label.e... | 25.730769 | 81 | 0.762332 |
71eac23074999fc487a373bc24fa920adcc09f2f | 355 | py | Python | yunionclient/api/flavors.py | tb365/mcclient_python | 06647e7496b9e2c3aeb5ade1276c81871063159b | [
"Apache-2.0"
] | 3 | 2021-09-22T11:34:08.000Z | 2022-03-13T04:55:17.000Z | yunionclient/api/flavors.py | xhw20190116/python_yunionsdk | eb7c8c08300d38dac204ec4980a775abc9c7083a | [
"Apache-2.0"
] | 13 | 2019-06-06T08:25:41.000Z | 2021-07-16T07:26:10.000Z | yunionclient/api/flavors.py | xhw20190116/python_yunionsdk | eb7c8c08300d38dac204ec4980a775abc9c7083a | [
"Apache-2.0"
] | 7 | 2019-03-31T05:43:36.000Z | 2021-03-04T09:59:05.000Z | from yunionclient.common import base
| 35.5 | 78 | 0.659155 |
71eb4d213edb33b0bf4b80a95a7ac788fefb3194 | 892 | py | Python | char_map.py | rakib313/Bangla-End2End-Speech-Recognition | 67e776841bf2bb3f108e94d0567dc707497605ff | [
"MIT"
] | null | null | null | char_map.py | rakib313/Bangla-End2End-Speech-Recognition | 67e776841bf2bb3f108e94d0567dc707497605ff | [
"MIT"
] | null | null | null | char_map.py | rakib313/Bangla-End2End-Speech-Recognition | 67e776841bf2bb3f108e94d0567dc707497605ff | [
"MIT"
] | null | null | null | """
Defines two dictionaries for converting
between text and integer sequences.
"""
char_map_str = """
' 0
<SPACE> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
... | 7.023622 | 45 | 0.600897 |
71eb86a2745c8b7f4f02262f1b986e3f1a2ff12c | 238 | py | Python | app.py | MaggieChege/New_App | 75a2be55d50cf21305036c875af2120607ac33c0 | [
"MIT"
] | null | null | null | app.py | MaggieChege/New_App | 75a2be55d50cf21305036c875af2120607ac33c0 | [
"MIT"
] | null | null | null | app.py | MaggieChege/New_App | 75a2be55d50cf21305036c875af2120607ac33c0 | [
"MIT"
] | null | null | null | from flask import Blueprint
from flask_restful import Api
# from restful import Api
from resources.Hello import CategoryResource
api_bp = Blueprint('api', __name__)
api = Api(api_bp)
# Route
api.add_resource(CategoryResource, '/Hello') | 21.636364 | 44 | 0.794118 |
71ebf7fd79d9cbf3e546f3b0a0480b99be5ed04d | 3,549 | py | Python | websockets.py | ejojmjn/indiana-phone | 5d666ac651d3e02291806f24c265564002912e00 | [
"MIT"
] | null | null | null | websockets.py | ejojmjn/indiana-phone | 5d666ac651d3e02291806f24c265564002912e00 | [
"MIT"
] | null | null | null | websockets.py | ejojmjn/indiana-phone | 5d666ac651d3e02291806f24c265564002912e00 | [
"MIT"
] | null | null | null | #from gevent import monkey
#monkey.patch_all()
from flask import Flask, render_template, json
from flask_socketio import SocketIO, emit
from pydbus import SystemBus
from gi.repository import GLib
import threading
import json
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app, async_m... | 32.263636 | 151 | 0.641589 |
71ec7e1ab519fe39c3c2b69f2a497fd39095d1ca | 15,524 | py | Python | tests/pytests/test_tags.py | wayn111/RediSearch | 897b2de35988b84851dd8380c614a21ad8da7c0f | [
"BSD-3-Clause",
"Ruby",
"Apache-2.0",
"MIT"
] | null | null | null | tests/pytests/test_tags.py | wayn111/RediSearch | 897b2de35988b84851dd8380c614a21ad8da7c0f | [
"BSD-3-Clause",
"Ruby",
"Apache-2.0",
"MIT"
] | null | null | null | tests/pytests/test_tags.py | wayn111/RediSearch | 897b2de35988b84851dd8380c614a21ad8da7c0f | [
"BSD-3-Clause",
"Ruby",
"Apache-2.0",
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from includes import *
from common import *
| 42.184783 | 142 | 0.523448 |