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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2c662f276d75d5cf194b16fa8615d6ac1fdca1d | 1,674 | py | Python | tests/compute/planar/test_rotateZ.py | ianna/vector | c00b258049c0ea1de46f90311849923b96068a02 | [
"BSD-3-Clause"
] | null | null | null | tests/compute/planar/test_rotateZ.py | ianna/vector | c00b258049c0ea1de46f90311849923b96068a02 | [
"BSD-3-Clause"
] | null | null | null | tests/compute/planar/test_rotateZ.py | ianna/vector | c00b258049c0ea1de46f90311849923b96068a02 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2019-2021, Jonas Eschle, Jim Pivarski, Eduardo Rodrigues, and Henry Schreiner.
#
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
# or https://github.com/scikit-hep/vector for details.
import numpy
import pytest
import vector.backends.numpy_
import vector.backends.object_
| 37.2 | 94 | 0.680406 |
d2c66e24087a653bf88316c9ed3e62b1ba5b4aa5 | 3,791 | py | Python | src/RIOT/tests/pkg_tensorflow-lite/mnist/mnist_mlp.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | 2 | 2020-04-30T08:17:45.000Z | 2020-05-23T08:46:54.000Z | src/RIOT/tests/pkg_tensorflow-lite/mnist/mnist_mlp.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | null | null | null | src/RIOT/tests/pkg_tensorflow-lite/mnist/mnist_mlp.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
# imports for array-handling
import numpy as np
import tensorflow as tf
# keras imports for the dataset and building our neural network
from tensorflow.keras.datasets import mnist
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout
# l... | 32.127119 | 92 | 0.759166 |
d2c77644e40785600cc8b3b66d9450e3d85ddf12 | 67 | py | Python | lang/Python/random-numbers-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/random-numbers-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/random-numbers-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | import random
values = [random.gauss(1, .5) for i in range(1000)]
| 16.75 | 51 | 0.686567 |
d2c876fb5f375461dc3ae3b4e7ececc7c2f8aa23 | 2,091 | py | Python | stock_api_handler.py | Sergix/analyst-server | a2ec7cc92610f78ac2a4ce4a46c52410219cd360 | [
"MIT"
] | 2 | 2020-03-16T01:09:10.000Z | 2020-03-16T03:02:57.000Z | stock_api_handler.py | Sergix/analyst-server | a2ec7cc92610f78ac2a4ce4a46c52410219cd360 | [
"MIT"
] | 1 | 2020-04-21T16:49:53.000Z | 2020-04-29T02:15:45.000Z | stock_api_handler.py | Sergix/analyst-server | a2ec7cc92610f78ac2a4ce4a46c52410219cd360 | [
"MIT"
] | 3 | 2020-03-16T14:46:41.000Z | 2020-03-21T13:55:24.000Z | # This python script handles stock api request from yfinance
# Last Updated: 4/7/2020
# Credits:nto
#Import yfinance api lib
import yfinance as yf
#Import pandas lib
import pandas as pd
#Import json to manipulate api data
import json
#Import math
import math
| 35.440678 | 109 | 0.648015 |
d2c9cfe9e4e2384aabafbe6f290a4052329e6bc7 | 1,493 | py | Python | hth/shows/tests/factories.py | roperi/myband | ec1955626fe6997484fd92ed02127b6899cd7062 | [
"MIT"
] | 1 | 2016-04-12T17:38:26.000Z | 2016-04-12T17:38:26.000Z | hth/shows/tests/factories.py | bhrutledge/jahhills.com | 74fe94a214f1ed5681bd45159315f0b68daf5a33 | [
"MIT"
] | 92 | 2015-04-03T10:04:55.000Z | 2021-07-17T11:13:52.000Z | hth/shows/tests/factories.py | roperi/myband | ec1955626fe6997484fd92ed02127b6899cd7062 | [
"MIT"
] | 1 | 2021-01-26T18:02:49.000Z | 2021-01-26T18:02:49.000Z | from datetime import date
from random import randrange
import factory
import factory.fuzzy
from hth.core.tests.utils import from_today
| 26.192982 | 77 | 0.704622 |
d2ca30ab580a71ee2a0484e370c2d881b8376a24 | 2,143 | py | Python | homeassistant/components/eight_sleep/binary_sensor.py | andersop91/core | 0e0ef0aa17073609eae7c974cf4c73306b7c414b | [
"Apache-2.0"
] | 22,481 | 2020-03-02T13:09:59.000Z | 2022-03-31T23:34:28.000Z | homeassistant/components/eight_sleep/binary_sensor.py | andersop91/core | 0e0ef0aa17073609eae7c974cf4c73306b7c414b | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/eight_sleep/binary_sensor.py | andersop91/core | 0e0ef0aa17073609eae7c974cf4c73306b7c414b | [
"Apache-2.0"
] | 11,411 | 2020-03-02T14:19:20.000Z | 2022-03-31T22:46:07.000Z | """Support for Eight Sleep binary sensors."""
from __future__ import annotations
import logging
from pyeight.eight import EightSleep
from homeassistant.components.binary_sensor import (
BinarySensorDeviceClass,
BinarySensorEntity,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers.enti... | 27.474359 | 86 | 0.691087 |
d2cb2cb149ab4d390a0fe9859ee6b67392f9a4c2 | 3,384 | py | Python | tensorbay/opendataset/FLIC/loader.py | rexzheng324-c/tensorbay-python-sdk | 764c28f34069229daa41474e2f104786dbfa973f | [
"MIT"
] | null | null | null | tensorbay/opendataset/FLIC/loader.py | rexzheng324-c/tensorbay-python-sdk | 764c28f34069229daa41474e2f104786dbfa973f | [
"MIT"
] | null | null | null | tensorbay/opendataset/FLIC/loader.py | rexzheng324-c/tensorbay-python-sdk | 764c28f34069229daa41474e2f104786dbfa973f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright 2021 Graviti. Licensed under MIT License.
#
# pylint: disable=invalid-name
# pylint: disable=missing-module-docstring
import os
from typing import Any, Dict, Iterator, Tuple
from tensorbay.dataset import Data, Dataset
from tensorbay.exception import ModuleImportError
from tensorba... | 31.924528 | 89 | 0.638889 |
d2cb4dbefc7f4606adaa9b77d466de95f1e38071 | 3,925 | py | Python | my_answers/homework/OOP/athlete.py | eyalle/python_course | acc75fd3c81f69f314099051026c81d80d141a84 | [
"MIT"
] | null | null | null | my_answers/homework/OOP/athlete.py | eyalle/python_course | acc75fd3c81f69f314099051026c81d80d141a84 | [
"MIT"
] | null | null | null | my_answers/homework/OOP/athlete.py | eyalle/python_course | acc75fd3c81f69f314099051026c81d80d141a84 | [
"MIT"
] | null | null | null |
def get_durations(distances, athletes):
for distance in distances:
for athlete in athletes:
print(f'{athlete.run(distance)} ran {distance} meters in {get_time(athlete.get_duration(distance))}')
if __name__ == "__main__":
runr = Runner("run", 90, 15, 30)
sprt1 = Sprinter("sprnt1", 90, 1... | 39.25 | 125 | 0.642803 |
d2cbe0ce287e68ba03cda24086915b54c95f413e | 3,391 | py | Python | osisoft/pidevclub/piwebapi/models/pi_data_server_license.py | jugillar/PI-Web-API-Client-Python | 9652e18384d8c66194c6d561d5ef01f60d820253 | [
"Apache-2.0"
] | 30 | 2019-01-03T03:09:25.000Z | 2022-03-30T17:42:54.000Z | osisoft/pidevclub/piwebapi/models/pi_data_server_license.py | jugillar/PI-Web-API-Client-Python | 9652e18384d8c66194c6d561d5ef01f60d820253 | [
"Apache-2.0"
] | null | null | null | osisoft/pidevclub/piwebapi/models/pi_data_server_license.py | jugillar/PI-Web-API-Client-Python | 9652e18384d8c66194c6d561d5ef01f60d820253 | [
"Apache-2.0"
] | 46 | 2018-11-07T14:46:35.000Z | 2022-03-31T12:23:39.000Z | # coding: utf-8
"""
Copyright 2018 OSIsoft, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
<http://www.apache.org/licenses/LICENSE-2.0>
Unless required by applicable law or agreed t... | 23.548611 | 118 | 0.714833 |
d2ccb686d34873a1a30c9b50f3a2bad12ac217e0 | 4,054 | py | Python | bot.py | JavierOramas/scholar_standing_bot | 9afde1fc0d56a3c57cf281092ff5c3d123ddac2f | [
"MIT"
] | null | null | null | bot.py | JavierOramas/scholar_standing_bot | 9afde1fc0d56a3c57cf281092ff5c3d123ddac2f | [
"MIT"
] | null | null | null | bot.py | JavierOramas/scholar_standing_bot | 9afde1fc0d56a3c57cf281092ff5c3d123ddac2f | [
"MIT"
] | 2 | 2021-09-19T21:08:55.000Z | 2021-09-19T21:09:39.000Z | #! /root/anaconda3/bin/python
import os
from apscheduler.schedulers.asyncio import AsyncIOScheduler
from pyrogram import Client, filters
from read_config import read_config
import json
import requests
import schedule
import time
config_data = read_config('./config/config_bot.json')
app = Client(config_data['bot_user_n... | 30.712121 | 228 | 0.619142 |
d2d16238955afe2195185ab27a0954cf27e01b00 | 7,622 | py | Python | skdecide/discrete_optimization/rcpsp_multiskill/parser/rcpsp_multiskill_parser.py | emilienDespres/scikit-decide | 2a3dd2d93e5e6d07984e1bc02b6e969261aeefbc | [
"MIT"
] | 27 | 2020-11-23T11:45:31.000Z | 2022-03-22T08:08:00.000Z | skdecide/discrete_optimization/rcpsp_multiskill/parser/rcpsp_multiskill_parser.py | emilienDespres/scikit-decide | 2a3dd2d93e5e6d07984e1bc02b6e969261aeefbc | [
"MIT"
] | 94 | 2021-02-24T09:50:23.000Z | 2022-02-27T10:07:15.000Z | skdecide/discrete_optimization/rcpsp_multiskill/parser/rcpsp_multiskill_parser.py | emilienDespres/scikit-decide | 2a3dd2d93e5e6d07984e1bc02b6e969261aeefbc | [
"MIT"
] | 12 | 2020-12-08T10:38:26.000Z | 2021-10-01T09:17:04.000Z | # Copyright (c) AIRBUS and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import annotations
from typing import Dict, Tuple
from skdecide.discrete_optimization.rcpsp_multiskill.rcpsp_multiskill import (
E... | 39.697917 | 126 | 0.494358 |
d2d1d69838e8dd6599bd00b4fca0bacfaf367308 | 530 | py | Python | pipe_anchorages/logging_monkeypatch.py | GlobalFishingWatch/anchorages_pipeline | 88764545b693bfb65fc7a7f62a344fb2afbc3d97 | [
"Apache-2.0"
] | 3 | 2017-12-22T10:19:15.000Z | 2020-04-20T10:28:43.000Z | pipe_tools/beam/logging_monkeypatch.py | GlobalFishingWatch/pipe-tools | 34dff591997bb2c25e018df86d13a9d42972032b | [
"Apache-2.0"
] | 37 | 2017-10-22T12:00:59.000Z | 2022-02-08T19:17:58.000Z | pipe_tools/beam/logging_monkeypatch.py | GlobalFishingWatch/pipe-tools | 34dff591997bb2c25e018df86d13a9d42972032b | [
"Apache-2.0"
] | 3 | 2018-01-21T14:07:58.000Z | 2021-07-28T16:02:20.000Z | import logging
# monkey patch to suppress the annoying warning you get when you import apache_beam
#
# No handlers could be found for logger "oauth2client.contrib.multistore_file"
#
# This warning is harmless, but annooying when you are using beam from a command line app
# see: https://issues.apache.org/jira/browse/BE... | 33.125 | 89 | 0.792453 |
d2d2f4b2d01e6090619cd23b148cfe0e1bc36f87 | 330 | py | Python | core/managers.py | Bilal815/ecommerce_storee | 45e61f1d865a65b4c52d74502b4fcab7ee6c1adf | [
"MIT"
] | 95 | 2020-04-13T09:02:30.000Z | 2022-03-25T14:11:34.000Z | core/managers.py | Bilal815/ecommerce_api | a3d8ce7a9e1fa2528d240d5ab508afe92607c9f8 | [
"MIT"
] | 87 | 2020-02-21T17:58:56.000Z | 2022-03-21T21:37:05.000Z | core/managers.py | Bilal815/ecommerce_api | a3d8ce7a9e1fa2528d240d5ab508afe92607c9f8 | [
"MIT"
] | 33 | 2021-01-18T09:30:29.000Z | 2022-03-30T01:31:57.000Z | from django.db import models
| 22 | 44 | 0.681818 |
d2d2fa8cda2955386068decf56b4b942626e5d83 | 22,286 | py | Python | mizani/breaks.py | stillmatic/mizani | 9a9dcb2b2ae8fca9a1c5b5e475be4d1f801bda1c | [
"BSD-3-Clause"
] | null | null | null | mizani/breaks.py | stillmatic/mizani | 9a9dcb2b2ae8fca9a1c5b5e475be4d1f801bda1c | [
"BSD-3-Clause"
] | null | null | null | mizani/breaks.py | stillmatic/mizani | 9a9dcb2b2ae8fca9a1c5b5e475be4d1f801bda1c | [
"BSD-3-Clause"
] | null | null | null | """
All scales have a means by which the values that are mapped
onto the scale are interpreted. Numeric digital scales put
out numbers for direct interpretation, but most scales
cannot do this. What they offer is named markers/ticks that
aid in assessing the values e.g. the common odometer will
have ticks and values to... | 28.793282 | 75 | 0.531634 |
d2d32938d031d59331d2f4a11e7ede6bb4a40fe0 | 2,412 | py | Python | examples/04_sweep_wind_directions.py | ElieKadoche/floris | d18f4d263ecabf502242592f9d60815a07c7b89c | [
"Apache-2.0"
] | null | null | null | examples/04_sweep_wind_directions.py | ElieKadoche/floris | d18f4d263ecabf502242592f9d60815a07c7b89c | [
"Apache-2.0"
] | 1 | 2019-03-02T00:29:12.000Z | 2019-03-02T04:59:54.000Z | examples/04_sweep_wind_directions.py | ElieKadoche/floris | d18f4d263ecabf502242592f9d60815a07c7b89c | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 NREL
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distri... | 31.736842 | 95 | 0.76534 |
d2d3e9419d90d8f17a71b13f9d3381c03813b4d4 | 623 | py | Python | 1.main.py | learning-nn/nn_from_scratch | 8f8f46efd5814a3cca645b644f70ddc07210256f | [
"MIT"
] | null | null | null | 1.main.py | learning-nn/nn_from_scratch | 8f8f46efd5814a3cca645b644f70ddc07210256f | [
"MIT"
] | null | null | null | 1.main.py | learning-nn/nn_from_scratch | 8f8f46efd5814a3cca645b644f70ddc07210256f | [
"MIT"
] | null | null | null | import numpy
import numpy as np
# converting to a layer with 4 input and 3 neuron
inputs = [[1.2, 2.1, 3.4, 1.2],
[1.2, 2.1, 3.4, 1.2],
[1.2, 2.1, 3.4, 1.2]]
print(numpy.shape(inputs))
weights = [[4.1, -4.5, 3.1, 2.3],
[-4.1, 4.5, 2.1, 2.3],
[4.1, 4.5, 3.1, -2.3]]
print(numpy... | 23.961538 | 71 | 0.536116 |
d2d3eacc8c8caee95603f50b68c177c406992381 | 83 | py | Python | backend/grant/task/__init__.py | DSBUGAY2/zcash-grant-system | 729b9edda13bd1eeb3f445d889264230c6470d7e | [
"MIT"
] | 8 | 2019-06-03T16:29:49.000Z | 2021-05-11T20:38:36.000Z | backend/grant/task/__init__.py | DSBUGAY2/zcash-grant-system | 729b9edda13bd1eeb3f445d889264230c6470d7e | [
"MIT"
] | 342 | 2019-01-15T19:13:58.000Z | 2020-03-24T16:38:13.000Z | backend/grant/task/__init__.py | DSBUGAY2/zcash-grant-system | 729b9edda13bd1eeb3f445d889264230c6470d7e | [
"MIT"
] | 5 | 2019-02-15T09:06:47.000Z | 2022-01-24T21:38:41.000Z | from . import models
from . import views
from . import commands
from . import jobs | 16.6 | 22 | 0.759036 |
d2d415b3f1a1db25737dd9e6b40de2eb5823d384 | 325 | py | Python | DjangoTry/venv/Lib/site-packages/django_select2/__init__.py | PavelKoksharov/QR-BOOK | 8b05cecd7a3cffcec281f2e17da398ad9e4c5de5 | [
"MIT"
] | null | null | null | DjangoTry/venv/Lib/site-packages/django_select2/__init__.py | PavelKoksharov/QR-BOOK | 8b05cecd7a3cffcec281f2e17da398ad9e4c5de5 | [
"MIT"
] | null | null | null | DjangoTry/venv/Lib/site-packages/django_select2/__init__.py | PavelKoksharov/QR-BOOK | 8b05cecd7a3cffcec281f2e17da398ad9e4c5de5 | [
"MIT"
] | null | null | null | """
This is a Django_ integration of Select2_.
The application includes Select2 driven Django Widgets and Form Fields.
.. _Django: https://www.djangoproject.com/
.. _Select2: https://select2.org/
"""
from django import get_version
if get_version() < '3.2':
default_app_config = "django_select2.apps.Select2AppCon... | 23.214286 | 71 | 0.750769 |
d2d4cdab7ece6cb0f6e54ac92797ae4e32cdf266 | 673 | py | Python | Sorting/bubble.py | Krylovsentry/Algorithms | 0cd236f04dc065d5247a6f274bb3db503db591b0 | [
"MIT"
] | 1 | 2016-08-21T13:01:42.000Z | 2016-08-21T13:01:42.000Z | Sorting/bubble.py | Krylovsentry/Algorithms | 0cd236f04dc065d5247a6f274bb3db503db591b0 | [
"MIT"
] | null | null | null | Sorting/bubble.py | Krylovsentry/Algorithms | 0cd236f04dc065d5247a6f274bb3db503db591b0 | [
"MIT"
] | null | null | null | # O(n ** 2)
print(bubble_sort([8, 1, 13, 34, 5, 2, 21, 3, 1], False))
print(bubble_sort([1, 2, 3, 4, 5, 6]))
| 32.047619 | 67 | 0.473997 |
d2d55fb8abaabd881c853630310ad6dc464e75ff | 8,247 | py | Python | chapter_13/pymail.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | chapter_13/pymail.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | chapter_13/pymail.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | "A Console-Based Email Client"
#!/usr/local/bin/python
"""
##########################################################################
pymail - a simple console email interface client in Python; uses Python
poplib module to view POP email messages, smtplib to send new mails, and
the email package to extract mail header... | 37.830275 | 84 | 0.547229 |
d2d6774deb12048e5d8199a5f876c5130870f008 | 1,027 | py | Python | dependencyinjection/internal/param_type_resolver.py | Cologler/dependencyinjection-python | dc05c61571f10652d82929ebec4b255f109b840b | [
"MIT"
] | null | null | null | dependencyinjection/internal/param_type_resolver.py | Cologler/dependencyinjection-python | dc05c61571f10652d82929ebec4b255f109b840b | [
"MIT"
] | null | null | null | dependencyinjection/internal/param_type_resolver.py | Cologler/dependencyinjection-python | dc05c61571f10652d82929ebec4b255f109b840b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017~2999 - cologler <skyoflw@gmail.com>
# ----------
#
# ----------
import typing
import inspect
from .errors import ParameterTypeResolveError
| 31.121212 | 92 | 0.641675 |
d2d69439ae028b8caac841d651293bd86aa4f321 | 639 | py | Python | rest-api/server.py | phenomax/resnet50-miml-rest | 4f78dd2c9454c54d013085eb4d50080d38a833ac | [
"Unlicense"
] | 1 | 2020-08-29T16:51:47.000Z | 2020-08-29T16:51:47.000Z | rest-api/server.py | phenomax/resnet50-miml-rest | 4f78dd2c9454c54d013085eb4d50080d38a833ac | [
"Unlicense"
] | null | null | null | rest-api/server.py | phenomax/resnet50-miml-rest | 4f78dd2c9454c54d013085eb4d50080d38a833ac | [
"Unlicense"
] | null | null | null | import io
import os
from flask import Flask, request, jsonify
from PIL import Image
from resnet_model import MyResnetModel
app = Flask(__name__)
# max filesize 2mb
app.config['MAX_CONTENT_LENGTH'] = 2 * 1024 * 1024
# setup resnet model
model = MyResnetModel(os.path.dirname(os.path.abspath(__file__)))
| 22.034483 | 65 | 0.694836 |
d2d95eb0f80255c257603ed734e875c5ce26b88b | 2,945 | py | Python | authors/apps/profiles/tests/test_follow.py | KabohaJeanMark/ah-backend-invictus | a9cf930934e8cbcb4ee370a088df57abe50ee6d6 | [
"BSD-3-Clause"
] | 7 | 2021-03-04T09:29:13.000Z | 2021-03-17T17:35:42.000Z | authors/apps/profiles/tests/test_follow.py | KabohaJeanMark/ah-backend-invictus | a9cf930934e8cbcb4ee370a088df57abe50ee6d6 | [
"BSD-3-Clause"
] | 25 | 2019-04-23T18:51:02.000Z | 2021-06-10T21:22:47.000Z | authors/apps/profiles/tests/test_follow.py | KabohaJeanMark/ah-backend-invictus | a9cf930934e8cbcb4ee370a088df57abe50ee6d6 | [
"BSD-3-Clause"
] | 7 | 2019-06-29T10:40:38.000Z | 2019-09-23T09:05:45.000Z | from django.urls import reverse
from rest_framework import status
from .base import BaseTestCase
| 50.775862 | 86 | 0.711036 |
d2dbd1807d449ae04403cf686fe2378b35d5fa68 | 6,585 | py | Python | OpenPNM/Phases/__GenericPhase__.py | thirtywang/OpenPNM | e55ee7ae69a8be3e2b0e6bf24c9ff92b6d24e16a | [
"MIT"
] | null | null | null | OpenPNM/Phases/__GenericPhase__.py | thirtywang/OpenPNM | e55ee7ae69a8be3e2b0e6bf24c9ff92b6d24e16a | [
"MIT"
] | null | null | null | OpenPNM/Phases/__GenericPhase__.py | thirtywang/OpenPNM | e55ee7ae69a8be3e2b0e6bf24c9ff92b6d24e16a | [
"MIT"
] | 1 | 2020-07-02T02:21:10.000Z | 2020-07-02T02:21:10.000Z | # -*- coding: utf-8 -*-
"""
===============================================================================
module __GenericPhase__: Base class for building Phase objects
===============================================================================
"""
from OpenPNM.Network import GenericNetwork
import OpenPNM.Phases... | 39.909091 | 82 | 0.577525 |
d2dbe93b08cbd7c9fba4a7da5b0696432c491446 | 2,860 | py | Python | rqt_mypkg/src/rqt_mypkg/statistics.py | mounteverset/moveit_path_visualizer | 15e55c631cb4c4d052763ebd695ce5fcb6de5a4c | [
"BSD-3-Clause"
] | null | null | null | rqt_mypkg/src/rqt_mypkg/statistics.py | mounteverset/moveit_path_visualizer | 15e55c631cb4c4d052763ebd695ce5fcb6de5a4c | [
"BSD-3-Clause"
] | null | null | null | rqt_mypkg/src/rqt_mypkg/statistics.py | mounteverset/moveit_path_visualizer | 15e55c631cb4c4d052763ebd695ce5fcb6de5a4c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import sys
import copy
from moveit_commander import move_group
import rospy
import moveit_commander
import moveit_msgs.msg
import geometry_msgs.msg
from math import pi, sqrt, pow
from std_msgs.msg import String
import io
import shutil
import json
#used to convert the points from the gui in a va... | 39.178082 | 110 | 0.681469 |
d2dbfa2d8a9c4169b00a898c87b761496a338473 | 596 | py | Python | apps/sendmail/admin.py | CasualGaming/studlan | 63daed67c1d309e4d5bd755eb68163e2174d0e00 | [
"MIT"
] | 9 | 2016-03-15T21:03:49.000Z | 2020-12-02T19:45:44.000Z | apps/sendmail/admin.py | piyushd26/studlan | 6eb96ebda182f44759b430cd497a727e0ee5bb63 | [
"MIT"
] | 161 | 2016-02-05T14:11:50.000Z | 2020-10-14T10:13:21.000Z | apps/sendmail/admin.py | piyushd26/studlan | 6eb96ebda182f44759b430cd497a727e0ee5bb63 | [
"MIT"
] | 11 | 2016-07-27T12:20:05.000Z | 2021-04-18T05:49:17.000Z | # -*- coding: utf-8 -*-
from django.contrib import admin
from .models import Mail
admin.site.register(Mail, MailAdmin)
| 22.074074 | 115 | 0.676174 |
d2dc2ba48e9f74dafb44ffcc8ba8cd1cd50c6109 | 2,922 | py | Python | event/test_event.py | Web-Team-IITI-Gymkhana/gymkhana_server | 67f4eba9dc0a55de04b3006ffeb5f608086b89ce | [
"MIT"
] | null | null | null | event/test_event.py | Web-Team-IITI-Gymkhana/gymkhana_server | 67f4eba9dc0a55de04b3006ffeb5f608086b89ce | [
"MIT"
] | 4 | 2022-01-14T12:31:33.000Z | 2022-01-28T10:25:44.000Z | event/test_event.py | Web-Team-IITI-Gymkhana/gymkhana_server | 67f4eba9dc0a55de04b3006ffeb5f608086b89ce | [
"MIT"
] | null | null | null | from uuid import uuid4
from fastapi.testclient import TestClient
from ..main import app
client = TestClient(app)
| 36.525 | 97 | 0.612936 |
d2dc870265729c9617c1afe744f12af18a12c128 | 24,837 | py | Python | src/tests/ftest/soak/soak.py | cdurf1/daos | f57f682ba07560fd35c0991798c5496c20f10769 | [
"Apache-2.0"
] | null | null | null | src/tests/ftest/soak/soak.py | cdurf1/daos | f57f682ba07560fd35c0991798c5496c20f10769 | [
"Apache-2.0"
] | null | null | null | src/tests/ftest/soak/soak.py | cdurf1/daos | f57f682ba07560fd35c0991798c5496c20f10769 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
"""
(C) Copyright 2019 Intel Corporation.
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 t... | 39.930868 | 79 | 0.566856 |
d2dcba40eaf1e9db722986c2a78f80438fb6fdb3 | 1,066 | py | Python | aoc/year_2020/day_06/solver.py | logan-connolly/AoC | 23f47e72abaf438cc97897616be4d6b057a01bf3 | [
"MIT"
] | 2 | 2020-12-06T10:59:52.000Z | 2021-09-29T22:14:03.000Z | aoc/year_2020/day_06/solver.py | logan-connolly/AoC | 23f47e72abaf438cc97897616be4d6b057a01bf3 | [
"MIT"
] | null | null | null | aoc/year_2020/day_06/solver.py | logan-connolly/AoC | 23f47e72abaf438cc97897616be4d6b057a01bf3 | [
"MIT"
] | 2 | 2021-09-29T22:14:18.000Z | 2022-01-18T02:20:26.000Z | """This is the Solution for Year 2020 Day 06"""
import re
from aoc.abstracts.solver import Answers, StrLines
| 32.30303 | 81 | 0.641651 |
d2defb686bfc61f23201cb71e5a9d368779c4dfa | 98 | py | Python | setup.py | kuzxnia/typer | 39007237d552e4f4920b2c6e13e5f0ce482d4427 | [
"MIT"
] | null | null | null | setup.py | kuzxnia/typer | 39007237d552e4f4920b2c6e13e5f0ce482d4427 | [
"MIT"
] | 3 | 2020-04-07T12:39:51.000Z | 2020-04-09T22:49:16.000Z | setup.py | kuzxnia/typer | 39007237d552e4f4920b2c6e13e5f0ce482d4427 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name="typer", packages=find_packages(),
)
| 16.333333 | 43 | 0.744898 |
d2dfa41f3a05071765ff4e4b5a6aecdae50d42b0 | 7,105 | py | Python | speedup.py | hjdeheer/malpaca | a0e5471a06175ef34aa95b3a1caea407e4e624a8 | [
"MIT"
] | null | null | null | speedup.py | hjdeheer/malpaca | a0e5471a06175ef34aa95b3a1caea407e4e624a8 | [
"MIT"
] | null | null | null | speedup.py | hjdeheer/malpaca | a0e5471a06175ef34aa95b3a1caea407e4e624a8 | [
"MIT"
] | null | null | null | import numpy as np
from numba import jit, prange
from scipy.stats import mode
from sklearn.metrics import accuracy_score
__all__ = ['dtw_distance', 'KnnDTW']
# Modified from https://github.com/markdregan/K-Nearest-Neighbors-with-Dynamic-Time-Warping
class KnnDTW(object):
"""K-nearest neighbor classifier using... | 28.194444 | 91 | 0.570443 |
d2dfc266c6056fe94eecb550bf60b54a02eaa933 | 470 | py | Python | setup.py | colineRamee/UAM_simulator_scitech2021 | 0583f5ce195cf1ec4f6919d6523fa39851c419fc | [
"MIT"
] | 1 | 2021-02-04T15:57:03.000Z | 2021-02-04T15:57:03.000Z | setup.py | colineRamee/UAM_simulator_scitech2021 | 0583f5ce195cf1ec4f6919d6523fa39851c419fc | [
"MIT"
] | null | null | null | setup.py | colineRamee/UAM_simulator_scitech2021 | 0583f5ce195cf1ec4f6919d6523fa39851c419fc | [
"MIT"
] | 2 | 2021-02-04T04:41:08.000Z | 2022-03-01T16:18:14.000Z | from setuptools import setup
setup(
name='uam_simulator',
version='1.0',
description='A tool to simulate different architectures for UAM traffic management',
author='Coline Ramee',
author_email='coline.ramee@gatech.edu',
packages=['uam_simulator'],
install_requires=['numpy', 'scikit-learn',... | 36.153846 | 134 | 0.734043 |
d2e2156c949fb7522a291e88e911e831ba30e23c | 1,115 | py | Python | DFS/Leetcode1239.py | Rylie-W/LeetRecord | 623c4efe88b3af54b8a65f6ec23db850b8c6f46f | [
"Apache-2.0"
] | null | null | null | DFS/Leetcode1239.py | Rylie-W/LeetRecord | 623c4efe88b3af54b8a65f6ec23db850b8c6f46f | [
"Apache-2.0"
] | null | null | null | DFS/Leetcode1239.py | Rylie-W/LeetRecord | 623c4efe88b3af54b8a65f6ec23db850b8c6f46f | [
"Apache-2.0"
] | null | null | null |
if __name__ == '__main__':
sol=Solution()
arr = ["un", "iq", "ue"]
# arr = ["cha", "r", "act", "ers"]
# arr = ["abcdefghijklmnopqrstuvwxyz"]
# arr=["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p"]
print(sol.maxLength(arr))
| 26.547619 | 90 | 0.419731 |
d2e2e8b5aeb34c6ee7b5e4eefd603f0d67226b67 | 419 | py | Python | apps/addresses/migrations/0002_address_picture.py | skyride/python-docker-compose | b3ac1a4da4ae2133b94504447a6cb353cc96f45b | [
"MIT"
] | null | null | null | apps/addresses/migrations/0002_address_picture.py | skyride/python-docker-compose | b3ac1a4da4ae2133b94504447a6cb353cc96f45b | [
"MIT"
] | null | null | null | apps/addresses/migrations/0002_address_picture.py | skyride/python-docker-compose | b3ac1a4da4ae2133b94504447a6cb353cc96f45b | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-25 22:13
from django.db import migrations, models
| 22.052632 | 92 | 0.606205 |
d2e3431a8ca64567f24a9939424b3256a13d8da9 | 34,809 | py | Python | liberapay/payin/common.py | Panquesito7/liberapay.com | d6806390a533061c2b9fb147d7139d06024f9a1b | [
"PostgreSQL",
"CC0-1.0"
] | 1 | 2021-07-26T02:07:13.000Z | 2021-07-26T02:07:13.000Z | liberapay/payin/common.py | Panquesito7/liberapay.com | d6806390a533061c2b9fb147d7139d06024f9a1b | [
"PostgreSQL",
"CC0-1.0"
] | null | null | null | liberapay/payin/common.py | Panquesito7/liberapay.com | d6806390a533061c2b9fb147d7139d06024f9a1b | [
"PostgreSQL",
"CC0-1.0"
] | null | null | null | from collections import namedtuple
from datetime import timedelta
import itertools
from operator import attrgetter
from pando.utils import utcnow
from psycopg2.extras import execute_batch
from ..constants import SEPA
from ..exceptions import (
AccountSuspended, MissingPaymentAccount, RecipientAccountSuspended,
... | 39.964409 | 108 | 0.579965 |
d2e3ae6e131a5fa41bdb17b19d893736dfd4f861 | 4,967 | py | Python | vendor/func_lib/assert_handle.py | diudiu/featurefactory | ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e | [
"MIT"
] | null | null | null | vendor/func_lib/assert_handle.py | diudiu/featurefactory | ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e | [
"MIT"
] | null | null | null | vendor/func_lib/assert_handle.py | diudiu/featurefactory | ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from vendor.errors.feature import FeatureProcessError
"""
:
**, **
"""
def f_assert_not_null(seq):
""""""
if seq in (None, '', [], {}, ()):
raise FeatureProcessError("value: %s f_assert_not_null Error" % seq)
if isinstance(seq, list):
for val... | 29.742515 | 124 | 0.571774 |
d2e3af7e8020910904dd800db879455657d8308e | 4,993 | py | Python | main.py | Potapov-AA/CaesarCipherWithKeyword | 4bd520418254b56950be079d0fce638039d4e202 | [
"MIT"
] | null | null | null | main.py | Potapov-AA/CaesarCipherWithKeyword | 4bd520418254b56950be079d0fce638039d4e202 | [
"MIT"
] | null | null | null | main.py | Potapov-AA/CaesarCipherWithKeyword | 4bd520418254b56950be079d0fce638039d4e202 | [
"MIT"
] | null | null | null | import time
from os import system, walk
from config import CONFIG
from encry import ENCRY
from decry import DECRY
#
#
if __name__ == '__main__':
CONF = object
text = ''
cryptMode = ''
print_menu(cryptMode, CONF, text)
| 32.848684 | 143 | 0.488684 |
d2e4753ddf7c063ce13b4c81cfba0d2c46394e4c | 504 | py | Python | frappe/email/doctype/email_queue_recipient/email_queue_recipient.py | oryxsolutions/frappe | d193ea22d17ca40d57432040a8afad72287d9e23 | [
"MIT"
] | null | null | null | frappe/email/doctype/email_queue_recipient/email_queue_recipient.py | oryxsolutions/frappe | d193ea22d17ca40d57432040a8afad72287d9e23 | [
"MIT"
] | null | null | null | frappe/email/doctype/email_queue_recipient/email_queue_recipient.py | oryxsolutions/frappe | d193ea22d17ca40d57432040a8afad72287d9e23 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies and contributors
# License: MIT. See LICENSE
import frappe
from frappe.model.document import Document
| 22.909091 | 58 | 0.730159 |
d2e52be160ba41f3c7d6be5212d1c7221d94eb66 | 3,211 | py | Python | tests/groups/family/test_pseudo_dojo.py | mbercx/aiida-pseudo | 070bdfa37d30674e1f83bf6d14987aa977426d92 | [
"MIT"
] | null | null | null | tests/groups/family/test_pseudo_dojo.py | mbercx/aiida-pseudo | 070bdfa37d30674e1f83bf6d14987aa977426d92 | [
"MIT"
] | 2 | 2021-09-21T11:28:55.000Z | 2021-09-21T12:13:48.000Z | tests/groups/family/test_pseudo_dojo.py | mbercx/aiida-pseudo | 070bdfa37d30674e1f83bf6d14987aa977426d92 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint: disable=unused-argument,pointless-statement
"""Tests for the `PseudoDojoFamily` class."""
import pytest
from aiida_pseudo.data.pseudo import UpfData, Psp8Data, PsmlData, JthXmlData
from aiida_pseudo.groups.family import PseudoDojoConfiguration, PseudoDojoFamily
def test_type_string(... | 40.64557 | 110 | 0.766116 |
d2e5ecb02a9dd4eeeac961445b6d9553ecd7b3a1 | 1,743 | py | Python | converter.py | Poudingue/Max2Mitsuba | 857c67b91f524de3e33f66958f26b022fa0a38f0 | [
"WTFPL"
] | 4 | 2019-10-30T09:18:42.000Z | 2020-06-18T12:50:06.000Z | converter.py | Poudingue/Fbx2Mitsuba | 857c67b91f524de3e33f66958f26b022fa0a38f0 | [
"WTFPL"
] | null | null | null | converter.py | Poudingue/Fbx2Mitsuba | 857c67b91f524de3e33f66958f26b022fa0a38f0 | [
"WTFPL"
] | null | null | null | import sys
import os
if sys.version_info[0] != 3 :
print("Running in python "+sys.version_info[0]+", should be python 3.")
print("Please install python 3.7 from the official site python.org")
print("Exiting now.")
exit()
import shutil
import argparse
import fbx2tree
import builder_fromfbx
import time
# config is... | 34.86 | 176 | 0.724613 |
d2e64e022f433cd3fd044c614f4cd92d7a6f232d | 4,256 | py | Python | run.py | snandasena/disaster-response-pipeline | 709af8c5fcb520dae82dc3b75c30ab2609402f53 | [
"MIT"
] | null | null | null | run.py | snandasena/disaster-response-pipeline | 709af8c5fcb520dae82dc3b75c30ab2609402f53 | [
"MIT"
] | null | null | null | run.py | snandasena/disaster-response-pipeline | 709af8c5fcb520dae82dc3b75c30ab2609402f53 | [
"MIT"
] | null | null | null | import sys
import json
import plotly
from flask import Flask
from flask import render_template, request
from plotly.graph_objects import Heatmap, Bar
from sklearn.externals import joblib
from sqlalchemy import create_engine
sys.path.append("common")
from common.nlp_common_utils import *
if len(sys.argv) == 1:
s... | 25.95122 | 79 | 0.672227 |
d2e65a9a5236dcdd44347a721b18b12179871e04 | 840 | py | Python | process.py | s-xie/processing | e0f1a851bed6159a718ae4e4afb3bfe3a30f6af5 | [
"MIT"
] | null | null | null | process.py | s-xie/processing | e0f1a851bed6159a718ae4e4afb3bfe3a30f6af5 | [
"MIT"
] | null | null | null | process.py | s-xie/processing | e0f1a851bed6159a718ae4e4afb3bfe3a30f6af5 | [
"MIT"
] | null | null | null | import re
import sys
from nltk.tokenize import word_tokenize
from unidecode import unidecode
from nltk.tokenize import sent_tokenize
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('fin')
parser.add_argument('fout')
args = parser.parse_args()
textproc = TextProc()
tokenizer = Tokenizer()
sente... | 20 | 45 | 0.613095 |
d2e6ff17f08688e760eb2d19c6c6dfcc805a369d | 1,071 | py | Python | Aula 14 - Estrutura de repetição while/desafio058-jogo-da-adivinhação.py | josue-rosa/Python---Curso-em-Video | 2d74c7421a49952b7c3eadb1010533525f2de338 | [
"MIT"
] | 3 | 2020-10-07T03:21:07.000Z | 2020-10-13T14:18:49.000Z | Aula 14 - Estrutura de repetição while/desafio058-jogo-da-adivinhação.py | josue-rosa/Python---Curso-em-Video | 2d74c7421a49952b7c3eadb1010533525f2de338 | [
"MIT"
] | null | null | null | Aula 14 - Estrutura de repetição while/desafio058-jogo-da-adivinhação.py | josue-rosa/Python---Curso-em-Video | 2d74c7421a49952b7c3eadb1010533525f2de338 | [
"MIT"
] | null | null | null | """
Melhore o jogo do DESAFIO 028 onde o computador vai "pensar" em um numero entre 0 e 10.
S que agora o jogador vai tentar adivinhar at acertar, mostrando no final
quantos palpites foram necessrios para vencer
"""
"""
from random import randint
tentativas = 1
computador = randint(0, 10)
jogador = int(input('Informe ... | 28.945946 | 87 | 0.687208 |
d2e7114d8d4486671f83a30e7420ce1d69cd65c1 | 1,550 | py | Python | plugins/googlefight.py | serpis/pynik | 074e6b2d2282557976eee3681d8bfcd5659c011e | [
"MIT"
] | 4 | 2016-08-09T21:25:23.000Z | 2019-08-16T21:55:17.000Z | plugins/googlefight.py | serpis/pynik | 074e6b2d2282557976eee3681d8bfcd5659c011e | [
"MIT"
] | 10 | 2015-01-25T21:25:22.000Z | 2021-01-28T19:50:22.000Z | plugins/googlefight.py | serpis/pynik | 074e6b2d2282557976eee3681d8bfcd5659c011e | [
"MIT"
] | 4 | 2015-05-06T21:45:39.000Z | 2018-07-02T16:47:36.000Z | # coding: utf-8
import re
import utility
from commands import Command
| 22.142857 | 100 | 0.623226 |
d2e7cc251d72d1b4b8afa5565221124b4f826ce6 | 457 | py | Python | was/lib/tuning/actions/ThreadPool.py | rocksun/ucmd | 486de31324195f48c4110e327d635aaafe3d74d6 | [
"Apache-2.0"
] | 2 | 2019-10-09T06:59:47.000Z | 2019-10-10T03:20:17.000Z | was/lib/tuning/actions/ThreadPool.py | rocksun/ucmd | 486de31324195f48c4110e327d635aaafe3d74d6 | [
"Apache-2.0"
] | null | null | null | was/lib/tuning/actions/ThreadPool.py | rocksun/ucmd | 486de31324195f48c4110e327d635aaafe3d74d6 | [
"Apache-2.0"
] | 1 | 2021-11-25T06:41:17.000Z | 2021-11-25T06:41:17.000Z | import os
min=512
max=512
| 30.466667 | 96 | 0.68709 |
d2e833d9d9dbd44a801765209ab9f359cdd98029 | 6,770 | py | Python | app/api/v2/resources/saleorders.py | calebrotich10/store-manager-api-v2 | 16dff84823e77218f1135c99f0592f113fddee84 | [
"MIT"
] | null | null | null | app/api/v2/resources/saleorders.py | calebrotich10/store-manager-api-v2 | 16dff84823e77218f1135c99f0592f113fddee84 | [
"MIT"
] | null | null | null | app/api/v2/resources/saleorders.py | calebrotich10/store-manager-api-v2 | 16dff84823e77218f1135c99f0592f113fddee84 | [
"MIT"
] | 1 | 2018-11-04T18:09:38.000Z | 2018-11-04T18:09:38.000Z | """This module contains objects for saleorders endpoints"""
from flask import Flask, jsonify, request, abort, make_response
from flask_restful import Resource
from flask_jwt_extended import get_jwt_identity, jwt_required
from . import common_functions
from ..models import products, saleorders
from ..utils import veri... | 39.590643 | 180 | 0.578434 |
d2e9b98d6967be78af6014083084b5dab63e624c | 61 | py | Python | nautobot/circuits/__init__.py | psmware-ltd/nautobot | ac516287fb8edcc3482bd011839de837c6bbf0df | [
"Apache-2.0"
] | 384 | 2021-02-24T01:40:40.000Z | 2022-03-30T10:30:59.000Z | nautobot/circuits/__init__.py | psmware-ltd/nautobot | ac516287fb8edcc3482bd011839de837c6bbf0df | [
"Apache-2.0"
] | 1,067 | 2021-02-24T00:58:08.000Z | 2022-03-31T23:38:23.000Z | nautobot/circuits/__init__.py | psmware-ltd/nautobot | ac516287fb8edcc3482bd011839de837c6bbf0df | [
"Apache-2.0"
] | 128 | 2021-02-24T02:45:16.000Z | 2022-03-20T18:48:36.000Z | default_app_config = "nautobot.circuits.apps.CircuitsConfig"
| 30.5 | 60 | 0.852459 |
d2e9f3e2143b7da446094a72db5befcb7fc0a728 | 54,559 | py | Python | autogalaxy/profiles/mass_profiles/stellar_mass_profiles.py | Jammy2211/PyAutoModel | 02f54e71900de9ec12c9070dc00a4bd001b25afa | [
"MIT"
] | 4 | 2019-10-29T13:27:23.000Z | 2020-03-24T11:13:35.000Z | autogalaxy/profiles/mass_profiles/stellar_mass_profiles.py | Jammy2211/PyAutoModel | 02f54e71900de9ec12c9070dc00a4bd001b25afa | [
"MIT"
] | null | null | null | autogalaxy/profiles/mass_profiles/stellar_mass_profiles.py | Jammy2211/PyAutoModel | 02f54e71900de9ec12c9070dc00a4bd001b25afa | [
"MIT"
] | 3 | 2020-02-12T10:29:59.000Z | 2020-03-24T11:13:53.000Z | import copy
import numpy as np
from scipy.special import wofz
from scipy.integrate import quad
from typing import List, Tuple
import autoarray as aa
from autogalaxy.profiles.mass_profiles import MassProfile
from autogalaxy.profiles.mass_profiles.mass_profiles import (
MassProfileMGE,
MassProfileCSE... | 36.372667 | 129 | 0.560604 |
d2ea517f3b08f633622c54a6e6b06e1d6019f32c | 627 | py | Python | installer/core/terraform/resources/variable.py | Diffblue-benchmarks/pacbot | 4709eb11f87636bc42a52e7a76b740f9d76d156d | [
"Apache-2.0"
] | 1,165 | 2018-10-05T19:07:34.000Z | 2022-03-28T19:34:27.000Z | installer/core/terraform/resources/variable.py | Diffblue-benchmarks/pacbot | 4709eb11f87636bc42a52e7a76b740f9d76d156d | [
"Apache-2.0"
] | 334 | 2018-10-10T14:00:41.000Z | 2022-03-19T16:32:08.000Z | installer/core/terraform/resources/variable.py | Diffblue-benchmarks/pacbot | 4709eb11f87636bc42a52e7a76b740f9d76d156d | [
"Apache-2.0"
] | 268 | 2018-10-05T19:53:25.000Z | 2022-03-31T07:39:47.000Z | from core.terraform.resources import BaseTerraformVariable
| 31.35 | 98 | 0.6874 |
d2eb169f57649820eef340c3a134f871d837dd00 | 887 | py | Python | bfs.py | mpHarm88/Algorithms-and-Data-Structures-In-Python | a0689e57e0895c375715f39d078704e6faf72f0e | [
"MIT"
] | null | null | null | bfs.py | mpHarm88/Algorithms-and-Data-Structures-In-Python | a0689e57e0895c375715f39d078704e6faf72f0e | [
"MIT"
] | null | null | null | bfs.py | mpHarm88/Algorithms-and-Data-Structures-In-Python | a0689e57e0895c375715f39d078704e6faf72f0e | [
"MIT"
] | null | null | null |
node1 = Node("A");
node2 = Node("B");
node3 = Node("C");
node4 = Node("D");
node5 = Node("E");
node1.adjacencyList.append(node2);
node1.adjacencyList.append(node3);
node2.adjacencyList.append(node4);
node4.adjacencyList.append(node5);
bfs = BreadthFirstSearch();
bfs.bfs(node1); | 21.634146 | 83 | 0.626832 |
d2ed017d8f6bd12bbaded9891125e05125930fde | 3,932 | py | Python | supervisor/dbus/network/connection.py | peddamat/home-assistant-supervisor-test | 5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4 | [
"Apache-2.0"
] | 1 | 2022-02-08T21:32:33.000Z | 2022-02-08T21:32:33.000Z | supervisor/dbus/network/connection.py | peddamat/home-assistant-supervisor-test | 5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4 | [
"Apache-2.0"
] | 310 | 2020-03-12T16:02:13.000Z | 2022-03-31T06:01:49.000Z | supervisor/dbus/network/connection.py | peddamat/home-assistant-supervisor-test | 5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4 | [
"Apache-2.0"
] | 2 | 2021-09-22T00:13:58.000Z | 2021-09-22T15:06:27.000Z | """Connection object for Network Manager."""
from ipaddress import ip_address, ip_interface
from typing import Optional
from ...const import ATTR_ADDRESS, ATTR_PREFIX
from ...utils.gdbus import DBus
from ..const import (
DBUS_ATTR_ADDRESS_DATA,
DBUS_ATTR_CONNECTION,
DBUS_ATTR_GATEWAY,
DBUS_ATTR_ID,
... | 33.606838 | 88 | 0.630214 |
d2efe900f19b7e3838e3eb40b9017e440e296e62 | 4,969 | py | Python | quark/databricks.py | mistsys/quark | 7baef5e18d5b9d12384a92487151337878958f36 | [
"Apache-2.0"
] | 2 | 2019-02-27T20:51:30.000Z | 2021-05-26T02:35:29.000Z | quark/databricks.py | mistsys/quark | 7baef5e18d5b9d12384a92487151337878958f36 | [
"Apache-2.0"
] | null | null | null | quark/databricks.py | mistsys/quark | 7baef5e18d5b9d12384a92487151337878958f36 | [
"Apache-2.0"
] | 1 | 2020-05-30T22:59:16.000Z | 2020-05-30T22:59:16.000Z | from __future__ import print_function, absolute_import
from .beats import Beat
from StringIO import StringIO
import sys
import os
import json
import urllib
import webbrowser
try:
import pycurl
except:
print("Need pycurl dependency to use qubole as the deployment platform. Run pip install pycurl in your virtuale... | 33.126667 | 141 | 0.602737 |
d2efeac4ab430fe4ec37a8045db0d9bc80676c48 | 9,658 | py | Python | appimagebuilder/builder/deploy/apt/venv.py | mssalvatore/appimage-builder | 2ecb7973cedfff9d03a21258419e515c48cafe84 | [
"MIT"
] | null | null | null | appimagebuilder/builder/deploy/apt/venv.py | mssalvatore/appimage-builder | 2ecb7973cedfff9d03a21258419e515c48cafe84 | [
"MIT"
] | null | null | null | appimagebuilder/builder/deploy/apt/venv.py | mssalvatore/appimage-builder | 2ecb7973cedfff9d03a21258419e515c48cafe84 | [
"MIT"
] | null | null | null | # Copyright 2020 Alexis Lopez Zubieta
#
# 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, ... | 37.003831 | 98 | 0.610685 |
d2f040bef7df7c165fa2e1f80723815e7bebcf83 | 11,453 | py | Python | tests/test_assertion_method.py | katakumpo/nicepy | fa2b0bae8e4b66d92e756687ded58d355c444eca | [
"MIT"
] | null | null | null | tests/test_assertion_method.py | katakumpo/nicepy | fa2b0bae8e4b66d92e756687ded58d355c444eca | [
"MIT"
] | null | null | null | tests/test_assertion_method.py | katakumpo/nicepy | fa2b0bae8e4b66d92e756687ded58d355c444eca | [
"MIT"
] | null | null | null | # -*- coding: utf-8 *-*
import logging
from unittest import TestCase
from nicepy import assert_equal_struct, multi_assert_equal_struct, pretty_repr, permuteflat
log = logging.getLogger(__name__)
| 42.895131 | 100 | 0.516546 |
d2f17cb8a3f0726fbc17e46d02f025d7c4a03f17 | 4,322 | py | Python | usaspending_api/awards/migrations/0074_auto_20170320_1607.py | toolness/usaspending-api | ed9a396e20a52749f01f43494763903cc371f9c2 | [
"CC0-1.0"
] | 1 | 2021-06-17T05:09:00.000Z | 2021-06-17T05:09:00.000Z | usaspending_api/awards/migrations/0074_auto_20170320_1607.py | toolness/usaspending-api | ed9a396e20a52749f01f43494763903cc371f9c2 | [
"CC0-1.0"
] | null | null | null | usaspending_api/awards/migrations/0074_auto_20170320_1607.py | toolness/usaspending-api | ed9a396e20a52749f01f43494763903cc371f9c2 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-03-20 16:07
from __future__ import unicode_literals
from django.db import migrations, models
| 65.484848 | 726 | 0.672837 |
d2f1e1f4951c3e0fd8684c1a41e6225fa4a4907c | 100 | py | Python | COVIDSafepassage/passsystem/apps.py | VICS-CORE/safepassage_server | 58bc04dbfa55430c0218567211e5259de77518ae | [
"MIT"
] | null | null | null | COVIDSafepassage/passsystem/apps.py | VICS-CORE/safepassage_server | 58bc04dbfa55430c0218567211e5259de77518ae | [
"MIT"
] | 8 | 2020-04-25T09:42:25.000Z | 2022-03-12T00:23:32.000Z | COVIDSafepassage/passsystem/apps.py | VICS-CORE/safepassage_server | 58bc04dbfa55430c0218567211e5259de77518ae | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 16.666667 | 35 | 0.73 |
d2f36e17b1fe05c90facefa1af9d3583979040ce | 220 | py | Python | src/intervals/once.py | Eagerod/tasker | b2bfbd6557063da389d1839f4f151bb4ad78b075 | [
"MIT"
] | null | null | null | src/intervals/once.py | Eagerod/tasker | b2bfbd6557063da389d1839f4f151bb4ad78b075 | [
"MIT"
] | null | null | null | src/intervals/once.py | Eagerod/tasker | b2bfbd6557063da389d1839f4f151bb4ad78b075 | [
"MIT"
] | null | null | null | from base_interval import BaseInterval
| 18.333333 | 38 | 0.718182 |
d2f4c426757a6a0f92d35c0788647479f59e49fb | 118,437 | py | Python | env/Lib/site-packages/azure/mgmt/storage/storagemanagement.py | Ammar12/simplebanking | 6080d638b2e98bfcf96d782703e1dce25aebfcbc | [
"MIT"
] | null | null | null | env/Lib/site-packages/azure/mgmt/storage/storagemanagement.py | Ammar12/simplebanking | 6080d638b2e98bfcf96d782703e1dce25aebfcbc | [
"MIT"
] | null | null | null | env/Lib/site-packages/azure/mgmt/storage/storagemanagement.py | Ammar12/simplebanking | 6080d638b2e98bfcf96d782703e1dce25aebfcbc | [
"MIT"
] | null | null | null | #
# Copyright (c) Microsoft and contributors. 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 requir... | 44.012263 | 133 | 0.558753 |
d2f56951f340d9aa264e8c54df9fedc28d30df30 | 1,832 | py | Python | src/nucleotide/component/linux/gcc/atom/rtl.py | dmilos/nucleotide | aad5d60508c9e4baf4888069284f2cb5c9fd7c55 | [
"Apache-2.0"
] | 1 | 2020-09-04T13:00:04.000Z | 2020-09-04T13:00:04.000Z | src/nucleotide/component/linux/gcc/atom/rtl.py | dmilos/nucleotide | aad5d60508c9e4baf4888069284f2cb5c9fd7c55 | [
"Apache-2.0"
] | 1 | 2020-04-10T01:52:32.000Z | 2020-04-10T09:11:29.000Z | src/nucleotide/component/linux/gcc/atom/rtl.py | dmilos/nucleotide | aad5d60508c9e4baf4888069284f2cb5c9fd7c55 | [
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python2
# Copyright 2015 Dejan D. M. Milosavljevic
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | 27.343284 | 104 | 0.60917 |
d2f5d91da9ad5c16c7e8d867f33c570f4ad80d87 | 1,127 | py | Python | notebooks/denerator_tests/actions/config.py | Collen-Roller/Rasa-Denerator | 728d21d93f21a18c9de7be303ceae59392de9a41 | [
"MIT"
] | 11 | 2019-09-11T13:48:53.000Z | 2021-11-26T00:48:57.000Z | notebooks/denerator_tests/actions/config.py | Collen-Roller/Rasa-Denerator | 728d21d93f21a18c9de7be303ceae59392de9a41 | [
"MIT"
] | 2 | 2019-10-18T17:21:54.000Z | 2021-10-08T06:45:11.000Z | notebooks/denerator_tests/actions/config.py | Collen-Roller/Rasa-Denerator | 728d21d93f21a18c9de7be303ceae59392de9a41 | [
"MIT"
] | 4 | 2019-10-04T14:43:06.000Z | 2021-06-16T21:23:23.000Z | import os
policy_model_dir = os.environ.get("POLICY_MODEL_DIR", "models/dialogue/")
rasa_nlu_config = os.environ.get("RASA_NLU_CONFIG", "nlu_config.yml")
account_sid = os.environ.get("ACCOUNT_SID", "")
auth_token = os.environ.get("AUTH_TOKEN", "")
twilio_number = os.environ.get("TWILIO_NUMBER", "")
platform_api =... | 30.459459 | 84 | 0.747116 |
d2f65b3512d928c10cc32ae1efdfb3cff693d569 | 876 | py | Python | python/moderation_text_token_demo.py | huaweicloud/huaweicloud-sdk-moderation | fa7cfda017a71ec8abf3afc57a0e476dd7508167 | [
"Apache-2.0"
] | 8 | 2019-06-04T06:24:54.000Z | 2022-01-29T13:16:53.000Z | python/moderation_text_token_demo.py | huaweicloud/huaweicloud-sdk-moderation | fa7cfda017a71ec8abf3afc57a0e476dd7508167 | [
"Apache-2.0"
] | 4 | 2021-12-14T21:21:03.000Z | 2022-01-04T16:34:33.000Z | python/moderation_text_token_demo.py | huaweicloud/huaweicloud-sdk-moderation | fa7cfda017a71ec8abf3afc57a0e476dd7508167 | [
"Apache-2.0"
] | 8 | 2019-08-12T02:18:03.000Z | 2021-11-30T10:39:23.000Z | # -*- coding:utf-8 -*-
from moderation_sdk.gettoken import get_token
from moderation_sdk.moderation_text import moderation_text
from moderation_sdk.utils import init_global_env
if __name__ == '__main__':
# Services currently support North China-Beijing(cn-north-4),China East-Shanghai1(cn-east-3), CN-Hong Kong(ap-s... | 38.086957 | 155 | 0.680365 |
d2f6c77eeb49683e8ab27570e5b6c4f101091a5b | 2,195 | py | Python | tests/system/action/test_general.py | FinnStutzenstein/openslides-backend | fffc152f79d3446591e07a6913d9fdf30b46f577 | [
"MIT"
] | null | null | null | tests/system/action/test_general.py | FinnStutzenstein/openslides-backend | fffc152f79d3446591e07a6913d9fdf30b46f577 | [
"MIT"
] | null | null | null | tests/system/action/test_general.py | FinnStutzenstein/openslides-backend | fffc152f79d3446591e07a6913d9fdf30b46f577 | [
"MIT"
] | null | null | null | from .base import BaseActionTestCase
| 35.403226 | 79 | 0.625968 |
d2f71173ca42ab7fa57a0943b698ed9189ef93d3 | 2,897 | py | Python | src/thead/cls/amsart.py | jakub-oprsal/thead | df175adf6ad0b3b16ec0703a31e7020327df4c92 | [
"MIT"
] | null | null | null | src/thead/cls/amsart.py | jakub-oprsal/thead | df175adf6ad0b3b16ec0703a31e7020327df4c92 | [
"MIT"
] | null | null | null | src/thead/cls/amsart.py | jakub-oprsal/thead | df175adf6ad0b3b16ec0703a31e7020327df4c92 | [
"MIT"
] | null | null | null | from .common import *
HEADER = r'''\usepackage{tikz}
\definecolor{purple}{cmyk}{0.55,1,0,0.15}
\definecolor{darkblue}{cmyk}{1,0.58,0,0.21}
\usepackage[colorlinks,
linkcolor=black,
urlcolor=darkblue,
citecolor=purple]{hyperref}
\urlstyle{same}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{L... | 27.074766 | 75 | 0.643079 |
d2f89e6b57c9a1b93947576a30ec79f4c0bc634e | 88 | py | Python | Workflow/packages/__init__.py | MATS64664-2021-Group-2/Hydride-Connect-Group-2 | fa95d38174ffd85461bf66f923c38a3908a469a7 | [
"MIT"
] | null | null | null | Workflow/packages/__init__.py | MATS64664-2021-Group-2/Hydride-Connect-Group-2 | fa95d38174ffd85461bf66f923c38a3908a469a7 | [
"MIT"
] | 2 | 2021-04-12T20:30:48.000Z | 2021-05-24T14:07:24.000Z | Workflow/packages/__init__.py | MATS64664-2021-Group-2/Hydride_Connection | fa95d38174ffd85461bf66f923c38a3908a469a7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 15 11:31:06 2021
@author: a77510jm
"""
| 11 | 35 | 0.579545 |
d2f90e2105f715bfa385ede947f0041c8746e8c3 | 6,133 | py | Python | in_progress/GiRaFFEfood_NRPy/GiRaFFEfood_NRPy_Aligned_Rotator.py | fedelopezar/nrpytutorial | 753acd954be4a2f99639c9f9fd5e623689fc7493 | [
"BSD-2-Clause"
] | 1 | 2021-12-13T05:51:18.000Z | 2021-12-13T05:51:18.000Z | in_progress/GiRaFFEfood_NRPy/GiRaFFEfood_NRPy_Aligned_Rotator.py | fedelopezar/nrpytutorial | 753acd954be4a2f99639c9f9fd5e623689fc7493 | [
"BSD-2-Clause"
] | null | null | null | in_progress/GiRaFFEfood_NRPy/GiRaFFEfood_NRPy_Aligned_Rotator.py | fedelopezar/nrpytutorial | 753acd954be4a2f99639c9f9fd5e623689fc7493 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# <a id='top'></a>
#
#
# # $\texttt{GiRaFFEfood}$: Initial data for $\texttt{GiRaFFE}$
#
# ## Aligned Rotator
#
# $$\label{top}$$
#
# This module provides another initial data option for $\texttt{GiRaFFE}$. This is a flat-spacetime test with initial data $$A_{\phi} = \frac{\mu \va... | 43.807143 | 334 | 0.633458 |
d2fa22173570793bad17191d495756a260b18a45 | 803 | py | Python | deploys/call_httpx.py | vic9527/ViClassifier | fd6c4730e880f35a9429277a6025219315e067cc | [
"MIT"
] | 1 | 2021-11-03T05:05:34.000Z | 2021-11-03T05:05:34.000Z | deploys/call_httpx.py | vic9527/viclassifier | fd6c4730e880f35a9429277a6025219315e067cc | [
"MIT"
] | null | null | null | deploys/call_httpx.py | vic9527/viclassifier | fd6c4730e880f35a9429277a6025219315e067cc | [
"MIT"
] | null | null | null | """
requestspython
https://mp.weixin.qq.com/s/jqGx-4t4ytDDnXxDkzbPqw
HTTPX
https://zhuanlan.zhihu.com/p/103824900
"""
if __name__ == '__main__':
post_url = "http://127.0.0.1:8888"
post_data = {"image": 112, "name": 1}
response = interface(post_url, post_data)
print('status_code: ', response.statu... | 27.689655 | 62 | 0.651308 |
d2fb4e383d869720b16333431cb622b5be807b1f | 9,034 | py | Python | src/rgt/THOR/THOR.py | mguo123/pan_omics | e1cacd543635b398fb08c0b31d08fa6b7c389658 | [
"MIT"
] | null | null | null | src/rgt/THOR/THOR.py | mguo123/pan_omics | e1cacd543635b398fb08c0b31d08fa6b7c389658 | [
"MIT"
] | null | null | null | src/rgt/THOR/THOR.py | mguo123/pan_omics | e1cacd543635b398fb08c0b31d08fa6b7c389658 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
THOR detects differential peaks in multiple ChIP-seq profiles associated
with two distinct biological conditions.
Copyright (C) 2014-2016 Manuel Allhoff (allhoff@aices.rwth-aachen.de)
This program is free software: you can redistribute it and/or modify
it under the te... | 55.765432 | 132 | 0.649878 |
d2fb7b436323415834f7a74459e3f1d624c2d737 | 5,864 | py | Python | web/api/classroom.py | bbougon/crm-pilates | 47de4bad3d48208f9b499139fcddb7f8955b2509 | [
"MIT"
] | null | null | null | web/api/classroom.py | bbougon/crm-pilates | 47de4bad3d48208f9b499139fcddb7f8955b2509 | [
"MIT"
] | 2 | 2021-05-26T20:47:29.000Z | 2021-07-11T23:18:55.000Z | web/api/classroom.py | bbougon/crm-pilates | 47de4bad3d48208f9b499139fcddb7f8955b2509 | [
"MIT"
] | 1 | 2021-06-30T15:20:54.000Z | 2021-06-30T15:20:54.000Z | from http import HTTPStatus
from typing import Tuple
from uuid import UUID
from fastapi import status, APIRouter, Response, Depends, HTTPException
from command.command_handler import Status
from domain.classroom.classroom_creation_command_handler import ClassroomCreated
from domain.classroom.classroom_type import Cla... | 45.8125 | 120 | 0.603342 |
d2fb7f6e9f85db6c80048daaef30c307b92d98da | 2,145 | py | Python | community_codebook/eda.py | etstieber/ledatascifi-2022 | 67bc56a60ec498c62ceba03e0b6b9ae8f3fc7fd9 | [
"MIT"
] | null | null | null | community_codebook/eda.py | etstieber/ledatascifi-2022 | 67bc56a60ec498c62ceba03e0b6b9ae8f3fc7fd9 | [
"MIT"
] | 3 | 2022-01-30T18:34:22.000Z | 2022-02-10T15:48:48.000Z | community_codebook/eda.py | etstieber/ledatascifi-2022 | 67bc56a60ec498c62ceba03e0b6b9ae8f3fc7fd9 | [
"MIT"
] | 14 | 2022-01-26T10:45:19.000Z | 2022-03-28T15:59:56.000Z | ###############################################################
#
# This function is... INSUFFICIENT. It was developed as an
# illustration of EDA lessons in the 2021 class. It's quick and
# works well.
#
# Want a higher grade version of me? Then try pandas-profiling:
# https://github.com/pandas-profiling/pandas-... | 35.75 | 124 | 0.607459 |
d2fd24c8d34e5c25a5210eb1ab2a18308730ef2b | 2,778 | py | Python | angr/codenode.py | mariusmue/angr | f8304c4b1f0097a721a6692b02a45cabaae137c5 | [
"BSD-2-Clause"
] | 2 | 2018-05-02T17:41:36.000Z | 2020-05-18T02:49:16.000Z | angr/codenode.py | mariusmue/angr | f8304c4b1f0097a721a6692b02a45cabaae137c5 | [
"BSD-2-Clause"
] | null | null | null | angr/codenode.py | mariusmue/angr | f8304c4b1f0097a721a6692b02a45cabaae137c5 | [
"BSD-2-Clause"
] | 1 | 2019-08-07T01:42:01.000Z | 2019-08-07T01:42:01.000Z | import logging
l = logging.getLogger("angr.codenode")
from .block import Block
| 27.78 | 92 | 0.62527 |
d2fd57ba506b050706da4ce9ab6b0a547ce3b622 | 806 | py | Python | 第12章/program/Requester/Launcher.py | kingname/SourceCodeOfBook | ab7275108994dca564905818b678bbd2f771c18e | [
"MIT"
] | 274 | 2018-10-01T11:07:25.000Z | 2022-03-17T13:48:45.000Z | 第12章/program/Requester/Launcher.py | kingname/SourceCodeOfBook | ab7275108994dca564905818b678bbd2f771c18e | [
"MIT"
] | 6 | 2019-02-28T14:18:21.000Z | 2022-03-02T14:57:39.000Z | 第12章/program/Requester/Launcher.py | kingname/SourceCodeOfBook | ab7275108994dca564905818b678bbd2f771c18e | [
"MIT"
] | 110 | 2018-10-16T06:08:37.000Z | 2022-03-16T08:19:29.000Z | import os
scrapy_project_path = '/Users/kingname/book/chapter_12/DeploySpider'
os.chdir(scrapy_project_path) #
os.system('scrapyd-deploy')
import json
import time
import requests
start_url = 'http://45.76.110.210:6800/schedule.json'
start_data = {'project': 'DeploySpider',
'spider': 'Example'}
end_ur... | 26.866667 | 84 | 0.719603 |
d2fdf4a6c5371384e165ae59f3bd959f997c90d9 | 511 | py | Python | unittest_example/mathfunc.py | RobinCPC/experiment_code | 0d3791a97815651945ad7787ba4e6c7df037740b | [
"MIT"
] | null | null | null | unittest_example/mathfunc.py | RobinCPC/experiment_code | 0d3791a97815651945ad7787ba4e6c7df037740b | [
"MIT"
] | null | null | null | unittest_example/mathfunc.py | RobinCPC/experiment_code | 0d3791a97815651945ad7787ba4e6c7df037740b | [
"MIT"
] | null | null | null | """
Simple math operating functions for unit test
"""
def add(a, b):
"""
Adding to parameters and return result
:param a:
:param b:
:return:
"""
return a + b
def minus(a, b):
"""
subtraction
:param a:
:param b:
:return:
"""
return a - b
def multi(a, b):
... | 11.613636 | 45 | 0.473581 |
d2ff009598eedc70cbe497c5d19827bdffd07954 | 144,055 | py | Python | test/test_parameters.py | HubukiNinten/imgaug | 2570c5651ed1c90addbaffc0f8be226646c55334 | [
"MIT"
] | 1 | 2019-10-25T17:43:20.000Z | 2019-10-25T17:43:20.000Z | test/test_parameters.py | HubukiNinten/imgaug | 2570c5651ed1c90addbaffc0f8be226646c55334 | [
"MIT"
] | null | null | null | test/test_parameters.py | HubukiNinten/imgaug | 2570c5651ed1c90addbaffc0f8be226646c55334 | [
"MIT"
] | null | null | null | from __future__ import print_function, division, absolute_import
import itertools
import sys
# unittest only added in 3.4 self.subTest()
if sys.version_info[0] < 3 or sys.version_info[1] < 4:
import unittest2 as unittest
else:
import unittest
# unittest.mock is not available in 2.7 (though unittest2 might cont... | 34.712048 | 83 | 0.557204 |
9600225ca5edde94d999985a5e32bc3c498cea99 | 1,731 | py | Python | ml_snek/datasets/jsnek_dataset.py | joram/ml-snek | e1ed8aa831a4683dfe51a6af0cb25a44c3978903 | [
"MIT"
] | null | null | null | ml_snek/datasets/jsnek_dataset.py | joram/ml-snek | e1ed8aa831a4683dfe51a6af0cb25a44c3978903 | [
"MIT"
] | 13 | 2019-12-25T21:04:49.000Z | 2020-01-04T20:25:05.000Z | ml_snek/datasets/jsnek_dataset.py | joram/ml-snek | e1ed8aa831a4683dfe51a6af0cb25a44c3978903 | [
"MIT"
] | null | null | null | """
jsnek_saved_games_dataset that returns flat (vectorized) data
"""
from .jsnek_base_dataset import JSnekBaseDataset
from .. import utils
| 26.630769 | 82 | 0.622184 |
960075d5d481ca0949f159a6dd4c4e2e599c3197 | 391 | py | Python | src/posts/migrations/0007_recipe_preface.py | eduardkh/matkonim2 | d836b16403d7fce0db88dd39dac2ba24575e6fca | [
"MIT"
] | null | null | null | src/posts/migrations/0007_recipe_preface.py | eduardkh/matkonim2 | d836b16403d7fce0db88dd39dac2ba24575e6fca | [
"MIT"
] | null | null | null | src/posts/migrations/0007_recipe_preface.py | eduardkh/matkonim2 | d836b16403d7fce0db88dd39dac2ba24575e6fca | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-15 15:40
from django.db import migrations, models
| 20.578947 | 58 | 0.595908 |
96021a52c512a37d56b88bb769ca1d2cad4e3a5c | 490 | py | Python | app/database/db.py | flych3r/spotify-tracker | 306d549da6a57866ea480c85286d870e7653a1eb | [
"MIT"
] | 2 | 2021-06-25T00:24:13.000Z | 2021-07-10T13:00:39.000Z | app/database/db.py | flych3r/spotify-tracker | 306d549da6a57866ea480c85286d870e7653a1eb | [
"MIT"
] | null | null | null | app/database/db.py | flych3r/spotify-tracker | 306d549da6a57866ea480c85286d870e7653a1eb | [
"MIT"
] | 2 | 2021-05-16T01:40:39.000Z | 2021-07-10T12:59:07.000Z | import os
import databases
import sqlalchemy
DB_CONNECTOR = os.getenv('APP_DB_CONNECTOR')
DB_USERNAME = os.getenv('APP_DB_USERNAME')
DB_PASSWORD = os.getenv('APP_DB_PASSWORD')
DB_HOST = os.getenv('APP_DB_HOST')
DB_PORT = os.getenv('APP_DB_PORT')
DB_DATABASE = os.getenv('APP_DB_DATABASE')
DB_URL = f'{DB_CONNECTOR}://... | 28.823529 | 90 | 0.777551 |
96023217ef1c244003018d7cd3aa5cc748e1d708 | 7,631 | py | Python | examples/stl10/main_info.py | hehaodele/align_uniform | 898b9fed960316d4cab6f8b6080490125fc362cd | [
"MIT"
] | null | null | null | examples/stl10/main_info.py | hehaodele/align_uniform | 898b9fed960316d4cab6f8b6080490125fc362cd | [
"MIT"
] | null | null | null | examples/stl10/main_info.py | hehaodele/align_uniform | 898b9fed960316d4cab6f8b6080490125fc362cd | [
"MIT"
] | null | null | null | import os
import time
import argparse
import torchvision
import torch
import torch.nn as nn
from util import AverageMeter, TwoAugUnsupervisedDataset
from encoder import SmallAlexNet
from align_uniform import align_loss, uniform_loss
import json
if __name__ == '__main__':
main()
| 43.357955 | 129 | 0.657974 |
96024e0d78c0a224ad13e044ee7fc8d5953df2e6 | 259 | py | Python | app/__init__.py | nic-mon/IAIOLab | b8c4a23c95ee722938b393e4824b7fc94447f17c | [
"MIT"
] | null | null | null | app/__init__.py | nic-mon/IAIOLab | b8c4a23c95ee722938b393e4824b7fc94447f17c | [
"MIT"
] | null | null | null | app/__init__.py | nic-mon/IAIOLab | b8c4a23c95ee722938b393e4824b7fc94447f17c | [
"MIT"
] | 1 | 2018-04-11T00:34:09.000Z | 2018-04-11T00:34:09.000Z | from flask import Flask
""" 1. Creating a flask application instance, the name argument is passed to flask
application constructor. It's used to determine the root path"""
app = Flask(__name__)
app.config.from_object('config')
from app import views, models
| 28.777778 | 82 | 0.776062 |
96037b162a17a26e6138061ce184f323626f7486 | 5,305 | py | Python | ptf/tests/linerate/qos_metrics.py | dariusgrassi/upf-epc | aef4648db118d6e1bdb23a07e4774177bd58fc50 | [
"Apache-2.0"
] | null | null | null | ptf/tests/linerate/qos_metrics.py | dariusgrassi/upf-epc | aef4648db118d6e1bdb23a07e4774177bd58fc50 | [
"Apache-2.0"
] | 13 | 2021-12-15T18:39:52.000Z | 2022-03-31T00:08:21.000Z | ptf/tests/linerate/qos_metrics.py | dariusgrassi/upf-epc | aef4648db118d6e1bdb23a07e4774177bd58fc50 | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
# Copyright(c) 2021 Open Networking Foundation
import time
from ipaddress import IPv4Address
from pprint import pprint
from trex_test import TrexTest
from grpc_test import *
from trex_stl_lib.api import (
STLVM,
STLPktBuilder,
STLStream,
STLTXCont,
)
import ptf.t... | 30.314286 | 96 | 0.535344 |
9604a31aa1a2fd0161bb919247c6389804233e2e | 6,209 | py | Python | archives_app/documents_serializers.py | DITGO/2021.1-PC-GO1-Archives | d9f28bb29dbe96331b6e2d0beb7ca37875d61300 | [
"MIT"
] | 1 | 2021-08-22T13:39:56.000Z | 2021-08-22T13:39:56.000Z | archives_app/documents_serializers.py | DITGO/2021.1-PC-GO1-Archives | d9f28bb29dbe96331b6e2d0beb7ca37875d61300 | [
"MIT"
] | 36 | 2021-09-01T19:12:17.000Z | 2022-03-18T23:43:13.000Z | archives_app/documents_serializers.py | DITGO/2021.1-PC-GO1-Archives | d9f28bb29dbe96331b6e2d0beb7ca37875d61300 | [
"MIT"
] | 5 | 2021-09-10T21:01:07.000Z | 2021-09-17T16:35:21.000Z | from rest_framework import serializers
from archives_app.documents_models import (FrequencyRelation, BoxArchiving,
AdministrativeProcess, OriginBox,
FrequencySheet, DocumentTypes)
| 29.995169 | 82 | 0.573522 |
960632beca7334764b877e64f50cf461743b9b2b | 7,132 | py | Python | src/fparser/common/tests/test_base_classes.py | sturmianseq/fparser | bf3cba3f31a72671d4d4a93b6ef4f9832006219f | [
"BSD-3-Clause"
] | 33 | 2017-08-18T16:31:27.000Z | 2022-03-28T09:43:50.000Z | src/fparser/common/tests/test_base_classes.py | sturmianseq/fparser | bf3cba3f31a72671d4d4a93b6ef4f9832006219f | [
"BSD-3-Clause"
] | 319 | 2017-01-12T14:22:07.000Z | 2022-03-23T20:53:25.000Z | src/fparser/common/tests/test_base_classes.py | sturmianseq/fparser | bf3cba3f31a72671d4d4a93b6ef4f9832006219f | [
"BSD-3-Clause"
] | 17 | 2017-10-13T07:12:28.000Z | 2022-02-11T14:42:18.000Z | # -*- coding: utf-8 -*-
##############################################################################
# Copyright (c) 2017 Science and Technology Facilities Council
#
# All rights reserved.
#
# Modifications made as part of the fparser project are distributed
# under the following license:
#
# Redistribution and use i... | 35.839196 | 79 | 0.599411 |
96065ad383494de22a076bf5a911760ad23ad0e8 | 87 | py | Python | pyvecorg/__main__.py | torsava/pyvec.org | 809812395e4bffdb0522a52c6a7f7468ffc7ccd6 | [
"MIT"
] | 3 | 2016-09-08T09:28:02.000Z | 2019-08-25T11:56:26.000Z | pyvecorg/__main__.py | torsava/pyvec.org | 809812395e4bffdb0522a52c6a7f7468ffc7ccd6 | [
"MIT"
] | 97 | 2016-08-20T17:11:34.000Z | 2022-03-29T07:52:13.000Z | pyvecorg/__main__.py | torsava/pyvec.org | 809812395e4bffdb0522a52c6a7f7468ffc7ccd6 | [
"MIT"
] | 7 | 2016-11-26T20:38:29.000Z | 2021-08-20T11:11:47.000Z | from elsa import cli
from pyvecorg import app
cli(app, base_url='http://pyvec.org')
| 12.428571 | 37 | 0.735632 |
96072e15a870bb0da5695f16be671c56e832f75e | 10,397 | py | Python | ppython/input_handler.py | paberr/ppython | 0c59d503cbd1ca619ad51b627614ae2dd9549c38 | [
"MIT"
] | 1 | 2016-06-15T17:21:22.000Z | 2016-06-15T17:21:22.000Z | ppython/input_handler.py | paberr/ppython | 0c59d503cbd1ca619ad51b627614ae2dd9549c38 | [
"MIT"
] | null | null | null | ppython/input_handler.py | paberr/ppython | 0c59d503cbd1ca619ad51b627614ae2dd9549c38 | [
"MIT"
] | null | null | null | import curtsies.events as ev
import sys
DELIMITERS = ' .'
WHITESPACE = ' '
def print_console(txt, npadding=0, newline=False, flush=True):
"""
Prints txt without newline, cursor positioned at the end.
:param txt: The text to print
:param length: The txt will be padded with spaces to fit this length
... | 28.1 | 101 | 0.541406 |
960742a391af9a30c0acaaa433fd60815de5da1f | 1,601 | py | Python | pycon_graphql/events/tests/test_models.py | CarlosMart626/graphql-workshop-pycon.co2019 | 466e56052efcfc7455336a0ac5c6637c68fcb3b9 | [
"MIT"
] | 1 | 2019-02-10T12:35:14.000Z | 2019-02-10T12:35:14.000Z | pycon_graphql/events/tests/test_models.py | CarlosMart626/graphql-workshop-pycon.co2019 | 466e56052efcfc7455336a0ac5c6637c68fcb3b9 | [
"MIT"
] | null | null | null | pycon_graphql/events/tests/test_models.py | CarlosMart626/graphql-workshop-pycon.co2019 | 466e56052efcfc7455336a0ac5c6637c68fcb3b9 | [
"MIT"
] | 1 | 2019-02-10T15:02:30.000Z | 2019-02-10T15:02:30.000Z | from django.core.exceptions import ValidationError
from django.utils import timezone
from django.test import TestCase
from events.models import Event, Invitee
from users.tests.factories import UserFactory
from users.models import get_sentinel_user
| 36.386364 | 83 | 0.67208 |
9607844773359aa6aa0c7976c01c1f1c73d9292a | 145 | py | Python | cryptos.py | pogoetic/tricero | 6cb60e780bf9056ad9887a84e2ba7d73787ac2fc | [
"MIT"
] | null | null | null | cryptos.py | pogoetic/tricero | 6cb60e780bf9056ad9887a84e2ba7d73787ac2fc | [
"MIT"
] | null | null | null | cryptos.py | pogoetic/tricero | 6cb60e780bf9056ad9887a84e2ba7d73787ac2fc | [
"MIT"
] | null | null | null | cryptolist = ['ETH','BTC','XRP','EOS','ADA','NEO','STEEM',
'BTS','ZEC','XMR','XVG','XEM','OMG','MIOTA','XTZ','SC',
'CVC','BAT','XLM','ZRX','VEN'] | 48.333333 | 58 | 0.524138 |
96085c19f88d75b4448b45a1368f150dc76f3edb | 2,615 | py | Python | python/test/utils/test_sliced_data_iterator.py | kodavatimahendra/nnabla | 72009f670af075f17ffca9c809b07d48cca30bd9 | [
"Apache-2.0"
] | null | null | null | python/test/utils/test_sliced_data_iterator.py | kodavatimahendra/nnabla | 72009f670af075f17ffca9c809b07d48cca30bd9 | [
"Apache-2.0"
] | null | null | null | python/test/utils/test_sliced_data_iterator.py | kodavatimahendra/nnabla | 72009f670af075f17ffca9c809b07d48cca30bd9 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 Sony 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 required by applicabl... | 34.866667 | 94 | 0.66348 |
96090a33ab17b3ef5237b33e54e263f6d813f39f | 819 | py | Python | python/leetcode/646.py | ParkinWu/leetcode | b31312bdefbb2be795f3459e1a76fbc927cab052 | [
"MIT"
] | null | null | null | python/leetcode/646.py | ParkinWu/leetcode | b31312bdefbb2be795f3459e1a76fbc927cab052 | [
"MIT"
] | null | null | null | python/leetcode/646.py | ParkinWu/leetcode | b31312bdefbb2be795f3459e1a76fbc927cab052 | [
"MIT"
] | null | null | null | # n
#
# b < c(c, d)(a, b)
#
#
#
# :
#
# : [[1,2], [2,3], [3,4]]
# : 2
# : [1,2] -> [3,4]
#
#
# [1, 1000]
#
# LeetCode
# https://leetcode-cn.com/problems/maximum-length-of-pair-chain
#
from typing import List
if __name__ == '__main__':
s = Solution()
assert s.findLongestChain([[1, 2], [2, 3], [3, 4]]) =... | 22.75 | 70 | 0.57265 |
960b4705f7f9212fc6fe401b9f516bcb627b27a2 | 19,044 | py | Python | FactorTestMain.py | WeiYouyi/FactorTest | fc23e23252614ce4ed8973416f7fbb2d0dbb5ccc | [
"MIT"
] | null | null | null | FactorTestMain.py | WeiYouyi/FactorTest | fc23e23252614ce4ed8973416f7fbb2d0dbb5ccc | [
"MIT"
] | null | null | null | FactorTestMain.py | WeiYouyi/FactorTest | fc23e23252614ce4ed8973416f7fbb2d0dbb5ccc | [
"MIT"
] | null | null | null | from FactorTest.FactorTestPara import *
from FactorTest.FactorTestBox import *
| 45.342857 | 313 | 0.56548 |
960b6014f14f9123b0ec09ae60429c45aaf956f5 | 3,094 | py | Python | src/qm/terachem/terachem.py | hkimaf/unixmd | 616634c720d0589fd600e3268afab9da957e18bb | [
"MIT"
] | null | null | null | src/qm/terachem/terachem.py | hkimaf/unixmd | 616634c720d0589fd600e3268afab9da957e18bb | [
"MIT"
] | null | null | null | src/qm/terachem/terachem.py | hkimaf/unixmd | 616634c720d0589fd600e3268afab9da957e18bb | [
"MIT"
] | null | null | null | from __future__ import division
from qm.qm_calculator import QM_calculator
from misc import call_name
import os
| 43.577465 | 108 | 0.61894 |
960c00e5d06118cad7de3e170d517ce0e7416494 | 11,668 | py | Python | tests/unit/modules/test_reg_win.py | l2ol33rt/salt | ff68bbd9f4bda992a3e039822fb32f141e94347c | [
"Apache-2.0"
] | null | null | null | tests/unit/modules/test_reg_win.py | l2ol33rt/salt | ff68bbd9f4bda992a3e039822fb32f141e94347c | [
"Apache-2.0"
] | null | null | null | tests/unit/modules/test_reg_win.py | l2ol33rt/salt | ff68bbd9f4bda992a3e039822fb32f141e94347c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
:synopsis: Unit Tests for Windows Registry Module 'module.reg'
:platform: Windows
:maturity: develop
:codeauthor: Damon Atkins <https://github.com/damon-atkins>
versionadded:: 2016.11.0
'''
# Import Python future libs
from __future__ import absolute_import
from __future__... | 38.508251 | 110 | 0.573706 |
960c27eda1d8cb31a885faeca6a1d05da5d1bc43 | 9,197 | py | Python | glacier/glacierexception.py | JeffAlyanak/amazon-glacier-cmd-interface | f9e50cbc49156233a87f1975323e315370aeeabe | [
"MIT"
] | 166 | 2015-01-01T14:14:56.000Z | 2022-02-20T21:59:45.000Z | glacier/glacierexception.py | JeffAlyanak/amazon-glacier-cmd-interface | f9e50cbc49156233a87f1975323e315370aeeabe | [
"MIT"
] | 31 | 2015-01-04T13:18:02.000Z | 2022-01-10T18:40:52.000Z | glacier/glacierexception.py | JeffAlyanak/amazon-glacier-cmd-interface | f9e50cbc49156233a87f1975323e315370aeeabe | [
"MIT"
] | 75 | 2015-01-03T10:33:41.000Z | 2022-02-22T21:21:47.000Z | import traceback
import re
import sys
import logging
"""
**********
Note by wvmarle:
This file contains the complete code from chained_exception.py plus the
error handling code from GlacierWrapper.py, allowing it to be used in other
modules like glaciercorecalls as well.
**********
"""
if __name__ == '__main__':
... | 38.805907 | 100 | 0.577145 |
960d016ae24c4293c672a990c11ba81afe431984 | 29,912 | py | Python | modes/import_corpus.py | freingruber/JavaScript-Raider | d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0 | [
"Apache-2.0"
] | 91 | 2022-01-24T07:32:34.000Z | 2022-03-31T23:37:15.000Z | modes/import_corpus.py | zeusguy/JavaScript-Raider | d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0 | [
"Apache-2.0"
] | null | null | null | modes/import_corpus.py | zeusguy/JavaScript-Raider | d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0 | [
"Apache-2.0"
] | 11 | 2022-01-24T14:21:12.000Z | 2022-03-31T23:37:23.000Z | # Copyright 2022 @ReneFreingruber
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 46.7375 | 233 | 0.688587 |
960d83d2c94c5959a98a0bd8469e0e2f1a880ff6 | 5,590 | py | Python | crazyflie_demo/scripts/mapping/mapper.py | wydmynd/crazyflie_tom | 0d1cc63dcd0f055d78da82515729ce2098e086cf | [
"MIT"
] | null | null | null | crazyflie_demo/scripts/mapping/mapper.py | wydmynd/crazyflie_tom | 0d1cc63dcd0f055d78da82515729ce2098e086cf | [
"MIT"
] | null | null | null | crazyflie_demo/scripts/mapping/mapper.py | wydmynd/crazyflie_tom | 0d1cc63dcd0f055d78da82515729ce2098e086cf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
""" Simple occupancy-grid-based mapping without localization.
Subscribed topics:
/scan
Published topics:
/map
/map_metadata
Author: Nathan Sprague
Version: 2/13/14
"""
import rospy
from nav_msgs.msg import OccupancyGrid, MapMetaData
from geometry_msgs.msg import Pose, Point, Quaternion
from ... | 33.878788 | 75 | 0.581038 |
960dcc8a44c5847743443e7deb1bcd0169e59d72 | 469 | py | Python | flags.py | oaxiom/glbase3 | 9d3fc1efaad58ffb97e5b8126c2a96802daf9bac | [
"MIT"
] | 8 | 2019-06-11T02:13:20.000Z | 2022-02-22T09:27:23.000Z | flags.py | JackNg88/glbase3 | 4af190d06b89ef360dcba201d9e4e81f41ef8379 | [
"MIT"
] | 6 | 2020-12-18T15:08:14.000Z | 2021-05-22T00:31:57.000Z | flags.py | JackNg88/glbase3 | 4af190d06b89ef360dcba201d9e4e81f41ef8379 | [
"MIT"
] | 2 | 2020-05-06T04:27:03.000Z | 2022-02-22T09:28:25.000Z | """
flags.py
. should be renamed helpers...
. This file is scheduled for deletion
"""
"""
valid accessory tags:
"any_tag": {"code": "code_insert_as_string"} # execute arbitrary code to construct this key.
"dialect": csv.excel_tab # dialect of the file, default = csv, set this to use tsv. or sniffer
"skip_lines": num... | 23.45 | 94 | 0.712154 |
960deebf26b738896cbcd2ee2bd2d46605e19141 | 2,106 | py | Python | packages/jet_bridge/jet_bridge/app.py | goncalomi/jet-bridge | ed968ac3407affdc99059faafb86ec67ac995838 | [
"MIT"
] | 2 | 2020-04-18T14:34:44.000Z | 2020-04-18T14:34:47.000Z | packages/jet_bridge/jet_bridge/app.py | goncalomi/jet-bridge | ed968ac3407affdc99059faafb86ec67ac995838 | [
"MIT"
] | null | null | null | packages/jet_bridge/jet_bridge/app.py | goncalomi/jet-bridge | ed968ac3407affdc99059faafb86ec67ac995838 | [
"MIT"
] | null | null | null | import os
import tornado.ioloop
import tornado.web
from jet_bridge.handlers.temporary_redirect import TemporaryRedirectHandler
from jet_bridge_base import settings as base_settings
from jet_bridge_base.views.api import ApiView
from jet_bridge_base.views.image_resize import ImageResizeView
from jet_bridge_base.views.f... | 39 | 99 | 0.738367 |
960e05f94b044cbb96eace708beb765aa68c9708 | 1,553 | py | Python | openslides_backend/services/media/adapter.py | FinnStutzenstein/openslides-backend | fffc152f79d3446591e07a6913d9fdf30b46f577 | [
"MIT"
] | null | null | null | openslides_backend/services/media/adapter.py | FinnStutzenstein/openslides-backend | fffc152f79d3446591e07a6913d9fdf30b46f577 | [
"MIT"
] | null | null | null | openslides_backend/services/media/adapter.py | FinnStutzenstein/openslides-backend | fffc152f79d3446591e07a6913d9fdf30b46f577 | [
"MIT"
] | null | null | null | import requests
from ...shared.exceptions import MediaServiceException
from ...shared.interfaces.logging import LoggingModule
from .interface import MediaService
| 37.878049 | 79 | 0.647778 |
960faa636c63399c1988c58ce0e7c98b90dc797e | 169 | py | Python | Lib/async/test/test_echoupper.py | pyparallel/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 652 | 2015-07-26T00:00:17.000Z | 2022-02-24T18:30:04.000Z | Lib/async/test/test_echoupper.py | tpn/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 8 | 2015-09-07T03:38:19.000Z | 2021-05-23T03:18:51.000Z | Lib/async/test/test_echoupper.py | tpn/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 40 | 2015-07-24T19:45:08.000Z | 2021-11-01T14:54:56.000Z | import async
from async.services import EchoUpperData
server = async.server('10.211.55.3', 20007)
async.register(transport=server, protocol=EchoUpperData)
async.run()
| 21.125 | 56 | 0.792899 |
960fe6f4df41a131c506151d154738d3ea6e3c53 | 533 | py | Python | alerter/src/alerter/alert_code/node/evm_alert_code.py | SimplyVC/panic | 2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d | [
"Apache-2.0"
] | 41 | 2019-08-23T12:40:42.000Z | 2022-03-28T11:06:02.000Z | alerter/src/alerter/alert_code/node/evm_alert_code.py | SimplyVC/panic | 2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d | [
"Apache-2.0"
] | 147 | 2019-08-30T22:09:48.000Z | 2022-03-30T08:46:26.000Z | alerter/src/alerter/alert_code/node/evm_alert_code.py | SimplyVC/panic | 2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d | [
"Apache-2.0"
] | 3 | 2019-09-03T21:12:28.000Z | 2021-08-18T14:27:56.000Z | from ..alert_code import AlertCode
| 38.071429 | 74 | 0.806754 |
96106fecaab4ad8d3cfef08e2a652f7ab8fec921 | 422 | py | Python | blaze/compute/tests/test_pmap.py | jdmcbr/blaze | 79515a8f0d25a0ff7f87a4cfbed615858241c832 | [
"BSD-3-Clause"
] | 1 | 2015-05-17T23:17:12.000Z | 2015-05-17T23:17:12.000Z | blaze/compute/tests/test_pmap.py | jreback/blaze | 85c39335cac4ef7f2921a7f621bc13525880fc44 | [
"BSD-3-Clause"
] | null | null | null | blaze/compute/tests/test_pmap.py | jreback/blaze | 85c39335cac4ef7f2921a7f621bc13525880fc44 | [
"BSD-3-Clause"
] | null | null | null | from blaze import compute, resource, symbol, discover
from blaze.utils import example
flag = [False]
| 21.1 | 53 | 0.637441 |
9610832f6a592c17ec9781319d909b5b964100ab | 15,186 | py | Python | mwtab/mwschema.py | MoseleyBioinformaticsLab/mwtab | 1bc1e3715538348b29a5760a9c3184fe04f568a6 | [
"BSD-3-Clause-Clear"
] | 7 | 2018-02-02T07:50:20.000Z | 2021-03-14T22:46:58.000Z | mwtab/mwschema.py | MoseleyBioinformaticsLab/mwtab | 1bc1e3715538348b29a5760a9c3184fe04f568a6 | [
"BSD-3-Clause-Clear"
] | 2 | 2019-02-14T08:38:54.000Z | 2020-02-19T08:08:02.000Z | mwtab/mwschema.py | MoseleyBioinformaticsLab/mwtab | 1bc1e3715538348b29a5760a9c3184fe04f568a6 | [
"BSD-3-Clause-Clear"
] | 1 | 2019-10-12T23:38:44.000Z | 2019-10-12T23:38:44.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
mwtab.mwschema
~~~~~~~~~~~~~~
This module provides schema definitions for different sections of the
``mwTab`` Metabolomics Workbench format.
"""
import sys
from schema import Schema, Optional, Or
if sys.version_info.major == 2:
str = unicode
metabolomics_wor... | 34.049327 | 94 | 0.61965 |