hexsha stringlengths 40 40 | size int64 4 1.02M | ext stringclasses 8
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 209 | max_stars_repo_name stringlengths 5 121 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 209 | max_issues_repo_name stringlengths 5 121 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 209 | max_forks_repo_name stringlengths 5 121 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 4 1.02M | avg_line_length float64 1.07 66.1k | max_line_length int64 4 266k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
978010efd7ee5abaeb9d9f16312706d4207ea293 | 35,528 | py | Python | pandas/plotting/_matplotlib/converter.py | k-fillmore/pandas | 67d4cae17bec45e84b9cf51bcf4fb5bbe293b26f | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 13 | 2015-04-09T06:21:18.000Z | 2021-02-06T05:08:09.000Z | pandas/plotting/_matplotlib/converter.py | k-fillmore/pandas | 67d4cae17bec45e84b9cf51bcf4fb5bbe293b26f | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 4 | 2016-01-15T13:49:34.000Z | 2016-07-04T20:52:50.000Z | pandas/plotting/_matplotlib/converter.py | k-fillmore/pandas | 67d4cae17bec45e84b9cf51bcf4fb5bbe293b26f | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 9 | 2015-04-06T06:35:47.000Z | 2019-07-10T23:53:29.000Z | import contextlib
import datetime as pydt
from datetime import datetime, timedelta, tzinfo
import functools
from typing import Any, Dict, List, Optional, Tuple
from dateutil.relativedelta import relativedelta
import matplotlib.dates as dates
from matplotlib.ticker import AutoLocator, Formatter, Locator
from matplotlib... | 32.926784 | 88 | 0.58582 |
7786c358f60136c2df1a57987195029cc89b07e1 | 3,051 | py | Python | test/test_data_points.py | passbase/passbase-python | 9d5b9cf21b38c2a50fe3755084ef8291d9e2d4d9 | [
"MIT"
] | 8 | 2020-09-09T14:30:46.000Z | 2020-10-19T14:09:00.000Z | test/test_data_points.py | passbase/passbase-python | 9d5b9cf21b38c2a50fe3755084ef8291d9e2d4d9 | [
"MIT"
] | null | null | null | test/test_data_points.py | passbase/passbase-python | 9d5b9cf21b38c2a50fe3755084ef8291d9e2d4d9 | [
"MIT"
] | 1 | 2021-04-23T21:05:19.000Z | 2021-04-23T21:05:19.000Z | # coding: utf-8
"""
Verification API
# Introduction <span class=\"subtext\"> Welcome to the Passbase Verifications API docs. This documentation will help you understand our models and the Verification API with its endpoints. Based on this you can build your own system (i.e. verification) and hook it up to Pa... | 76.275 | 2,289 | 0.704031 |
7a92b023baf5f47f82dc81011dac1f5a4202a83f | 9,182 | py | Python | CobraWinLDTP/ldtp/client.py | brendano86/cobra | 6407c2911696b1c2a2b4501c118fff9931fa659e | [
"X11",
"MIT"
] | 72 | 2015-02-09T00:44:41.000Z | 2021-12-01T21:56:15.000Z | CobraWinLDTP/ldtp/client.py | brendano86/cobra | 6407c2911696b1c2a2b4501c118fff9931fa659e | [
"X11",
"MIT"
] | 19 | 2015-06-03T09:31:18.000Z | 2021-12-02T16:35:52.000Z | CobraWinLDTP/ldtp/client.py | brendano86/cobra | 6407c2911696b1c2a2b4501c118fff9931fa659e | [
"X11",
"MIT"
] | 37 | 2015-05-08T09:25:58.000Z | 2021-03-10T10:24:58.000Z | """
LDTP v2 client
@author: Eitan Isaacson <eitan@ascender.com>
@author: Nagappan Alagappan <nagappan@gmail.com>
@copyright: Copyright (c) 2009 Eitan Isaacson
@copyright: Copyright (c) 2009-13 Nagappan Alagappan
@license: LGPL
http://ldtp.freedesktop.org
This file may be distributed and/or modified under the terms o... | 37.631148 | 104 | 0.543346 |
1cdfcacab60634c20508b53a668e59129c15c3a4 | 2,230 | py | Python | rcamp/rcamp/settings/logging.py | ResearchComputing/RCAMP | 26b065f6ab9a27a28fb0c9ba3135e7f04d073cef | [
"MIT"
] | null | null | null | rcamp/rcamp/settings/logging.py | ResearchComputing/RCAMP | 26b065f6ab9a27a28fb0c9ba3135e7f04d073cef | [
"MIT"
] | 309 | 2015-12-14T22:37:22.000Z | 2021-10-06T18:50:35.000Z | rcamp/rcamp/settings/logging.py | ResearchComputing/RCAMP | 26b065f6ab9a27a28fb0c9ba3135e7f04d073cef | [
"MIT"
] | 1 | 2016-05-04T22:12:11.000Z | 2016-05-04T22:12:11.000Z | import os
from .toggles import *
if not DEBUG:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = os.environ.get('RCAMP_EMAIL_HOST')
EMAIL_PORT = int(os.environ.get('RCAMP_EMAIL_PORT'))
else:
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
LOGGING = {
'vers... | 27.530864 | 73 | 0.446637 |
b148ac4893bb45e6eade801b2c76b41f32174737 | 714 | py | Python | climart/utils/optimization.py | RolnickLab/climart | 6c5c139d6b4ad5925cbd0ec8c9ccf15302563b40 | [
"CC-BY-4.0"
] | 12 | 2021-09-29T22:04:37.000Z | 2022-03-01T07:25:33.000Z | climart/utils/optimization.py | RolnickLab/climart | 6c5c139d6b4ad5925cbd0ec8c9ccf15302563b40 | [
"CC-BY-4.0"
] | null | null | null | climart/utils/optimization.py | RolnickLab/climart | 6c5c139d6b4ad5925cbd0ec8c9ccf15302563b40 | [
"CC-BY-4.0"
] | 2 | 2021-09-30T11:20:28.000Z | 2021-12-20T13:39:42.000Z | import torch
import torch.nn as nn
def get_loss(name, reduction='mean'):
name = name.lower().strip().replace('-', '_')
if name in ['l1', 'mae', "mean_absolute_error"]:
loss = nn.L1Loss(reduction=reduction)
elif name in ['l2', 'mse', "mean_squared_error"]:
loss = nn.MSELoss(reduction=reducti... | 31.043478 | 57 | 0.656863 |
fac0f91a4b71434a70a2efa7977dc073ce022292 | 6,292 | py | Python | docs/source/conf.py | shahbazk8194/pyaaf2 | 56a49b45b7aee0454629f79497e3f476ea08328e | [
"MIT"
] | 80 | 2017-10-19T20:49:39.000Z | 2022-03-14T01:32:37.000Z | docs/source/conf.py | shahbazk8194/pyaaf2 | 56a49b45b7aee0454629f79497e3f476ea08328e | [
"MIT"
] | 94 | 2018-01-05T22:30:31.000Z | 2022-03-26T21:51:38.000Z | docs/source/conf.py | shahbazk8194/pyaaf2 | 56a49b45b7aee0454629f79497e3f476ea08328e | [
"MIT"
] | 29 | 2018-10-25T14:01:53.000Z | 2022-03-03T15:54:04.000Z | # -*- coding: utf-8 -*-
#
# PyAAF documentation build configuration file, created by
# sphinx-quickstart on Wed Oct 18 20:01:47 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All... | 29.961905 | 79 | 0.672918 |
c675995ebf101f0c9d1b5209e4656d44c5c1a7db | 1,877 | py | Python | tools/harness-automation/cases/border_7_1_5.py | AdityaHPatwardhan/openthread | a201e9d5d0273bb51fa20efc8758be20a725018e | [
"BSD-3-Clause"
] | 2,962 | 2016-05-11T15:06:06.000Z | 2022-03-27T20:06:16.000Z | tools/harness-automation/cases/border_7_1_5.py | AdityaHPatwardhan/openthread | a201e9d5d0273bb51fa20efc8758be20a725018e | [
"BSD-3-Clause"
] | 5,899 | 2016-05-11T19:21:49.000Z | 2022-03-31T18:17:20.000Z | tools/harness-automation/cases/border_7_1_5.py | AdityaHPatwardhan/openthread | a201e9d5d0273bb51fa20efc8758be20a725018e | [
"BSD-3-Clause"
] | 1,113 | 2016-05-11T15:37:42.000Z | 2022-03-31T09:37:04.000Z | #!/usr/bin/env python
#
# Copyright (c) 2019, The OpenThread Authors.
# 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
# notic... | 40.804348 | 77 | 0.770378 |
e7180e5aa88eda85a9d136ad4bd21448834d48b4 | 4,218 | py | Python | crwy/utils/extend/yima.py | wuyue92tree/crwy | da19e3a7615990612e41d0d871345075150b88f6 | [
"MIT"
] | 15 | 2017-04-04T07:47:48.000Z | 2021-08-29T12:08:48.000Z | crwy/utils/extend/yima.py | wuyue92tree/crwy | da19e3a7615990612e41d0d871345075150b88f6 | [
"MIT"
] | 1 | 2016-08-24T09:17:30.000Z | 2016-08-24T09:17:30.000Z | crwy/utils/extend/yima.py | wuyue92tree/crwy | da19e3a7615990612e41d0d871345075150b88f6 | [
"MIT"
] | 1 | 2021-08-29T12:08:56.000Z | 2021-08-29T12:08:56.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: wuyue
@contact: wuyue92tree@163.com
@software: PyCharm
@file: yima.py
@create at: 2017-10-27 09:57
这一行开始写关于本文件的说明与解释
"""
from __future__ import print_function, unicode_literals
from crwy.spider import Spider
from crwy.exceptions import CrwyException
class... | 33.212598 | 78 | 0.528687 |
374465db6a88757612bdb8d14d895fd96fbd57a8 | 2,822 | py | Python | applications/CoSimulationApplication/python_scripts/solver_wrappers/kratos/pfem_fluid_dynamics_wrapper.py | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | 2 | 2020-12-22T11:50:11.000Z | 2021-09-15T11:36:30.000Z | applications/CoSimulationApplication/python_scripts/solver_wrappers/kratos/pfem_fluid_dynamics_wrapper.py | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | 3 | 2021-08-18T16:12:20.000Z | 2021-09-02T07:36:15.000Z | applications/CoSimulationApplication/python_scripts/solver_wrappers/kratos/pfem_fluid_dynamics_wrapper.py | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | 1 | 2020-12-28T15:39:39.000Z | 2020-12-28T15:39:39.000Z | # Importing the Kratos Library
import KratosMultiphysics as KM
# Importing the Kratos Library
from KratosMultiphysics.kratos_utilities import CheckIfApplicationsAvailable
# Importing the base class
from KratosMultiphysics.CoSimulationApplication.solver_wrappers.kratos import kratos_base_wrapper
# CoSimulati... | 47.033333 | 129 | 0.75124 |
c69fb25b1292b3fead1c552b3c0aa81fcfdaac2f | 182 | py | Python | examples/app/spectrogram/app_hooks.py | goncaloperes/bokeh | b857d2d17d7c19779bb0a7be2601d8238fb1d5e9 | [
"BSD-3-Clause"
] | 15,193 | 2015-01-01T05:11:45.000Z | 2022-03-31T19:30:20.000Z | examples/app/spectrogram/app_hooks.py | Deng-Fankang/bokeh | 894731860c53b7c9ddd0057dee85cf064278dc0e | [
"BSD-3-Clause"
] | 9,554 | 2015-01-01T03:16:54.000Z | 2022-03-31T22:59:39.000Z | examples/app/spectrogram/app_hooks.py | Deng-Fankang/bokeh | 894731860c53b7c9ddd0057dee85cf064278dc0e | [
"BSD-3-Clause"
] | 4,829 | 2015-01-02T03:35:32.000Z | 2022-03-30T16:40:26.000Z | from threading import Thread
from . import audio
def on_server_loaded(server_context):
t = Thread(target=audio.update_audio_data, args=())
t.setDaemon(True)
t.start()
| 18.2 | 55 | 0.725275 |
cd66166f784b6a397ff4a363dfbc3ecb87b848d6 | 445 | py | Python | setup.py | MitchAngenent/millify | 69f83ad6e15b79f073fcdec21358f255473eb518 | [
"MIT"
] | 52 | 2018-09-08T06:53:13.000Z | 2022-02-13T10:27:24.000Z | setup.py | MitchAngenent/millify | 69f83ad6e15b79f073fcdec21358f255473eb518 | [
"MIT"
] | 2 | 2020-03-05T14:36:53.000Z | 2021-10-04T19:32:02.000Z | setup.py | MitchAngenent/millify | 69f83ad6e15b79f073fcdec21358f255473eb518 | [
"MIT"
] | 11 | 2018-09-08T06:53:27.000Z | 2022-03-29T09:17:46.000Z | from distutils.core import setup
from millify import __version__, __author__
setup(
name='millify',
packages=['millify'],
version=__version__,
description='Convert long numbers into a human-readable format in Python',
author=__author__,
author_email='azaitsev@gmail.com',
url='https://github... | 29.666667 | 79 | 0.707865 |
27ff4bba5a7cb73a447a40cf47b7fb7212729f09 | 877 | py | Python | covid_stats/plotly_charts/daily_growth.py | cploutarchou/covid-19-tracker | 896114097be79939073ac82734b146d7a50df586 | [
"MIT"
] | null | null | null | covid_stats/plotly_charts/daily_growth.py | cploutarchou/covid-19-tracker | 896114097be79939073ac82734b146d7a50df586 | [
"MIT"
] | 15 | 2020-09-09T17:57:15.000Z | 2020-12-15T19:35:01.000Z | covid_stats/plotly_charts/daily_growth.py | cploutarchou/covid-19-tracker | 896114097be79939073ac82734b146d7a50df586 | [
"MIT"
] | null | null | null | import dash_core_components as dcc
import dash_html_components as html
import plotly.express as px
import plotly.graph_objects as go
from django import template
from covid_stats.data import get_daily_data
from django_plotly_dash import DjangoDash
df = get_daily_data()
df['id'] = df.index
df.index.name = "id"
colors = ... | 28.290323 | 81 | 0.671608 |
c8cbbdbd7871812eea2641a719d6b395ee09b0b1 | 32,011 | py | Python | allauth/account/views.py | Worteks/django-allauth | ced1ddc730c36eca3551406c60e1577e30e01cbd | [
"MIT"
] | null | null | null | allauth/account/views.py | Worteks/django-allauth | ced1ddc730c36eca3551406c60e1577e30e01cbd | [
"MIT"
] | null | null | null | allauth/account/views.py | Worteks/django-allauth | ced1ddc730c36eca3551406c60e1577e30e01cbd | [
"MIT"
] | 1 | 2021-08-18T07:26:24.000Z | 2021-08-18T07:26:24.000Z | from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.contrib.sites.shortcuts import get_current_site
from django.http import (
Http404,
HttpResponsePermanentRedirect,
HttpResponseRedirect,
)
from django.shortcuts import redirect
from django.urls import re... | 35.886771 | 88 | 0.638156 |
a811d7033f1ead0c0e4d0ea3100fd2ed545eea8e | 1,511 | py | Python | lambda/py/owl_model/map.py | jpburnett/overwatch-league-skill | aad5db2b2cf01c1264b9da610c9a8715a4aa087e | [
"MIT"
] | 5 | 2018-03-02T21:42:39.000Z | 2019-02-17T04:03:48.000Z | lambda/py/owl_model/map.py | jpburnett/overwatch-league-skill | aad5db2b2cf01c1264b9da610c9a8715a4aa087e | [
"MIT"
] | 8 | 2018-02-23T05:05:13.000Z | 2019-10-02T14:02:26.000Z | lambda/py/owl_model/map.py | jpburnett/overwatch-league-skill | aad5db2b2cf01c1264b9da610c9a8715a4aa087e | [
"MIT"
] | 1 | 2018-11-05T09:05:46.000Z | 2018-11-05T09:05:46.000Z |
from owl_model.modelobject import ModelObject
class Map(ModelObject):
"""
An OWL map
A map in Overwatch in many ways is synonymous with the term "game" because
playing map comes with different objective goals. There are 4 different map
types that determine the objective for victory.
"""
... | 23.984127 | 79 | 0.518862 |
24ada8d72ee708504afcb7cb283c5bdd32e733ab | 2,229 | py | Python | tests/integration/preview/trusted_comms/test_branded_call.py | fefi95/twilio-python | b9bfea293b6133fe84d4d8d3ac4e2a75381c3881 | [
"MIT"
] | 1 | 2020-10-29T19:28:25.000Z | 2020-10-29T19:28:25.000Z | tests/integration/preview/trusted_comms/test_branded_call.py | CostantiniMatteo/twilio-python | 9eee1ca9e73790b12678e9a5660206ea44948d00 | [
"MIT"
] | 1 | 2021-08-21T22:54:01.000Z | 2021-08-23T19:39:42.000Z | tests/integration/preview/trusted_comms/test_branded_call.py | team-telnyx/twexit-python | 69e11c5c2b5681f9bc410795dda0cf8942219e6f | [
"MIT"
] | null | null | null | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
class BrandedCallTestCase(Integ... | 36.540984 | 111 | 0.585464 |
78191fa8eabbda84d1d1bd4433696bdeaed2cf10 | 5,746 | py | Python | python/evaluate_reconstruction_single_slice_zoom.py | NikEfth/STIR-exercises | 48c18a3e8c1bfa5eaa4e04d744967f2e31cafc96 | [
"Apache-2.0"
] | 13 | 2017-10-04T18:06:04.000Z | 2022-03-05T07:45:14.000Z | python/evaluate_reconstruction_single_slice_zoom.py | 356255531/STIR_examples | 72ae861f33daa6f47a928e861e674804730b1caf | [
"Apache-2.0"
] | 13 | 2018-10-26T14:17:42.000Z | 2021-04-29T16:24:27.000Z | python/evaluate_reconstruction_single_slice_zoom.py | 356255531/STIR_examples | 72ae861f33daa6f47a928e861e674804730b1caf | [
"Apache-2.0"
] | 9 | 2017-10-24T13:08:15.000Z | 2021-11-20T06:50:27.000Z | # -*- coding: utf-8 -*-
"""
Example script to serve as starting point for displaying the results of the brain reconstruction.
The current script reads results from the simulation and displays them.
Prerequisite:
You should have executed the following on your command prompt
./run_simulation_brain.sh
./run_reco... | 39.356164 | 334 | 0.776192 |
79dbc63bd3b52345d722078080d3564bc1ceca94 | 304 | py | Python | tests/test_settings.py | bahattincinic/django-nodelete-model | 5e2c83e2700e34cf396e72f9f3f06cfe96e5b821 | [
"MIT"
] | 5 | 2017-05-16T10:06:39.000Z | 2019-11-28T13:33:22.000Z | tests/test_settings.py | bahattincinic/django-nodelete-model | 5e2c83e2700e34cf396e72f9f3f06cfe96e5b821 | [
"MIT"
] | null | null | null | tests/test_settings.py | bahattincinic/django-nodelete-model | 5e2c83e2700e34cf396e72f9f3f06cfe96e5b821 | [
"MIT"
] | null | null | null | import os
BASE_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), os.pardir)
SECRET_KEY = 'dqkkdmfkwef45knngjfngnjgk'
DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'test.db',
}
}
INSTALLED_APPS = ('no_delete', 'tests',)
| 16.888889 | 78 | 0.641447 |
0b7546f7482556fe2ef8f5d472f1024b287ad4ba | 4,845 | py | Python | fn_cve_search/fn_cve_search/components/function_cve_browse.py | rudimeyer/resilient-community-apps | 7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00 | [
"MIT"
] | 1 | 2020-08-25T03:43:07.000Z | 2020-08-25T03:43:07.000Z | fn_cve_search/fn_cve_search/components/function_cve_browse.py | rudimeyer/resilient-community-apps | 7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00 | [
"MIT"
] | 1 | 2019-07-08T16:57:48.000Z | 2019-07-08T16:57:48.000Z | fn_cve_search/fn_cve_search/components/function_cve_browse.py | rudimeyer/resilient-community-apps | 7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00 | [
"MIT"
] | null | null | null | # (c) Copyright IBM Corp. 2010, 2019. All Rights Reserved.
# -*- coding: utf-8 -*-
# pragma pylint: disable=unused-argument, no-self-use
"""Function implementation"""
import logging
from resilient_circuits import ResilientComponent, function, handler, StatusMessage, FunctionResult, FunctionError
from fn_cve_search.uti... | 42.130435 | 156 | 0.641692 |
87872a704567c859892fa62cca795d95b6221dfe | 1,878 | py | Python | python_study/py/test/user_path_analyse_util.py | lcyanxi/python_study | e66e0d19a67b658b94213bceeed8a3652b532e87 | [
"Apache-2.0"
] | null | null | null | python_study/py/test/user_path_analyse_util.py | lcyanxi/python_study | e66e0d19a67b658b94213bceeed8a3652b532e87 | [
"Apache-2.0"
] | null | null | null | python_study/py/test/user_path_analyse_util.py | lcyanxi/python_study | e66e0d19a67b658b94213bceeed8a3652b532e87 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2018/11/2 10:55
# @Author : lcyanxi
# @Email : lcyanxi.com
# @File : user_path_analyse_util.py
# @Software: PyCharm
import sys
import datetime
# 主要转换用户路径 截取只从首页来的 并且合并连续两个相同的路径 并且截取路径小于15步长
if __name__ == '__main__':
# if sys.argv != 2:
# pri... | 30.786885 | 69 | 0.485623 |
aaf5e28bc70c140be214884fe25243c5d37e86d6 | 7,994 | py | Python | test/functional/wallet_backup.py | MyagCat/xpchain | 12b64c4b60fcce7b7e2dea5eddf94c19ab3ea103 | [
"MIT"
] | 11 | 2018-06-04T10:51:01.000Z | 2021-05-10T07:47:52.000Z | test/functional/wallet_backup.py | MyagCat/xpchain | 12b64c4b60fcce7b7e2dea5eddf94c19ab3ea103 | [
"MIT"
] | 46 | 2018-06-10T16:34:54.000Z | 2021-06-30T05:49:10.000Z | test/functional/wallet_backup.py | MyagCat/xpchain | 12b64c4b60fcce7b7e2dea5eddf94c19ab3ea103 | [
"MIT"
] | 19 | 2018-05-22T15:37:45.000Z | 2022-02-13T16:58:02.000Z | #!/usr/bin/env python3
# Copyright (c) 2014-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the wallet backup features.
Test case is:
4 nodes. 1 2 and 3 send transactions between each other... | 38.432692 | 147 | 0.652614 |
ee20ae9921cea1774bc0045d181ddff47a258698 | 31,021 | py | Python | techlibs/xilinx/cells_xtra.py | ruishihan/yosys | 4072a9666339c76fbef19eac307486d48ed0ae28 | [
"ISC"
] | 1 | 2019-10-08T11:26:17.000Z | 2019-10-08T11:26:17.000Z | techlibs/xilinx/cells_xtra.py | ruishihan/yosys | 4072a9666339c76fbef19eac307486d48ed0ae28 | [
"ISC"
] | null | null | null | techlibs/xilinx/cells_xtra.py | ruishihan/yosys | 4072a9666339c76fbef19eac307486d48ed0ae28 | [
"ISC"
] | null | null | null | #!/usr/bin/env python3
from argparse import ArgumentParser
from io import StringIO
from enum import Enum, auto
import os.path
import sys
import re
class Cell:
def __init__(self, name, keep=False, port_attrs={}):
self.name = name
self.keep = keep
self.port_attrs = port_attrs
XC6S_CELLS =... | 43.753173 | 117 | 0.568776 |
f40730e26f696d11ed3ae9096ca6c26631da6b73 | 3,888 | py | Python | src/the_tale/the_tale/finances/xsolla/relations.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/the_tale/the_tale/finances/xsolla/relations.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/the_tale/the_tale/finances/xsolla/relations.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z |
import smart_imports
smart_imports.all()
class XSOLLA_RESULT(rels_django.DjangoEnum):
records = (('OK', 0, 'OK'),
('REPEATE_REQUEST', 1, 'Временная ошибка, повторите запрос позже'),
('WRONG_USER_ID', 2, 'Неверный идентификатор пользователя'),
('WRONG_MD5', 3, 'Невер... | 59.815385 | 152 | 0.696759 |
baa195241666a29d0be8eb6be0b008e7c0822aec | 54,396 | py | Python | numpy/linalg/tests/test_linalg.py | chatcannon/numpy | f1b3f00f7abdd97d59dc5b1c0bb922a692452736 | [
"BSD-3-Clause"
] | 1 | 2022-02-16T05:32:38.000Z | 2022-02-16T05:32:38.000Z | numpy/linalg/tests/test_linalg.py | chatcannon/numpy | f1b3f00f7abdd97d59dc5b1c0bb922a692452736 | [
"BSD-3-Clause"
] | null | null | null | numpy/linalg/tests/test_linalg.py | chatcannon/numpy | f1b3f00f7abdd97d59dc5b1c0bb922a692452736 | [
"BSD-3-Clause"
] | 1 | 2018-11-15T19:41:09.000Z | 2018-11-15T19:41:09.000Z | """ Test functions for linalg module
"""
from __future__ import division, absolute_import, print_function
import os
import sys
import itertools
import traceback
import warnings
import numpy as np
from numpy import array, single, double, csingle, cdouble, dot, identity
from numpy import multiply, atleast_2d, inf, asa... | 35.646134 | 96 | 0.548643 |
2ea8fcf4027b742bf19e4754f13f59804066cf40 | 7,959 | py | Python | rpi_backlight_emulator/__init__.py | linusg/rpi-backlight-emulator | 6b5b89732fbb9cf28edd65306ec2a36e03eafb14 | [
"MIT"
] | 6 | 2019-07-02T04:51:47.000Z | 2021-01-20T18:21:08.000Z | rpi_backlight_emulator/__init__.py | linusg/rpi-backlight-emulator | 6b5b89732fbb9cf28edd65306ec2a36e03eafb14 | [
"MIT"
] | null | null | null | rpi_backlight_emulator/__init__.py | linusg/rpi-backlight-emulator | 6b5b89732fbb9cf28edd65306ec2a36e03eafb14 | [
"MIT"
] | null | null | null | import atexit
import os
import signal
import sys
import time
from functools import partial
from pathlib import Path
from tempfile import gettempdir
from typing import Any, Callable
from rpi_backlight import Backlight
from rpi_backlight.utils import FakeBacklightSysfs
from watchdog.observers import Observer
from watchd... | 34.012821 | 87 | 0.683252 |
e06d18200adcb921a0de5632dd3722533a81c856 | 26,962 | py | Python | lib/python2.7/site-packages/pylint/test/unittest_lint.py | KeynesYouDigIt/nimbleBlog | bde09f0142124ff5fc7703a612d33805f8a622cd | [
"Apache-2.0"
] | 1 | 2018-12-26T03:02:11.000Z | 2018-12-26T03:02:11.000Z | lib/python2.7/site-packages/pylint/test/unittest_lint.py | KeynesYouDigIt/nimbleBlog | bde09f0142124ff5fc7703a612d33805f8a622cd | [
"Apache-2.0"
] | null | null | null | lib/python2.7/site-packages/pylint/test/unittest_lint.py | KeynesYouDigIt/nimbleBlog | bde09f0142124ff5fc7703a612d33805f8a622cd | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2003-2016 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
from contextlib import contextmanager
import sys
import os
im... | 39.360584 | 103 | 0.605185 |
690b23f5571d0ed327c7fb2fe4cfde3af08dfddf | 450 | py | Python | data/scripts/templates/object/building/faction_perk/hq/shared_hq_s03_fp.py | obi-two/GameServer | 7d37024e2291a97d49522610cd8f1dbe5666afc2 | [
"MIT"
] | 20 | 2015-02-23T15:11:56.000Z | 2022-03-18T20:56:48.000Z | data/scripts/templates/object/building/faction_perk/hq/shared_hq_s03_fp.py | apathyboy/swganh | 665128efe9154611dec4cb5efc61d246dd095984 | [
"MIT"
] | null | null | null | data/scripts/templates/object/building/faction_perk/hq/shared_hq_s03_fp.py | apathyboy/swganh | 665128efe9154611dec4cb5efc61d246dd095984 | [
"MIT"
] | 20 | 2015-04-04T16:35:59.000Z | 2022-03-24T14:54:37.000Z | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Building()
result.template = "object/building/faction_perk/hq/shared_hq_s03_fp.iff"
result.attribute_template_id ... | 26.470588 | 73 | 0.726667 |
798ef7a9cde430ad0b2038906abf5e42015c98b0 | 469 | py | Python | main.py | deleyva/spotiscience | 993f61ca63e4a107f9f93f1a89a4d6d504d2864f | [
"MIT"
] | null | null | null | main.py | deleyva/spotiscience | 993f61ca63e4a107f9f93f1a89a4d6d504d2864f | [
"MIT"
] | 1 | 2022-02-19T11:45:22.000Z | 2022-02-19T11:45:22.000Z | main.py | deleyva/spotiscience | 993f61ca63e4a107f9f93f1a89a4d6d504d2864f | [
"MIT"
] | null | null | null | from spotiscience.credentials import CREDENTIALS
import spotiscience.downloader as downloader
import json
import pyperclip
sd = downloader.SpotiScienceDownloader(credentials=CREDENTIALS)
song_copy_link = pyperclip.paste()
song = sd.get_song_features(song_id=song_copy_link)
print(json.dumps(song, indent=4))
lyrics = ... | 27.588235 | 77 | 0.814499 |
a3baf4e7c6cae067341c703f74dd7e3adea45965 | 359 | py | Python | Leak #5 - Lost In Translation/windows/Resources/Ops/PyScripts/overseer/plugins/shares.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 9 | 2019-11-22T04:58:40.000Z | 2022-02-26T16:47:28.000Z | Python.Fuzzbunch/Resources/Ops/PyScripts/overseer/plugins/shares.py | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | Python.Fuzzbunch/Resources/Ops/PyScripts/overseer/plugins/shares.py | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | 8 | 2017-09-27T10:31:18.000Z | 2022-01-08T10:30:46.000Z |
import dsz
MENU_TEXT = 'Run shares commands'
def main():
dsz.ui.Echo('Running shares -list and shares -query...', dsz.GOOD)
dsz.control.echo.Off()
dsz.cmd.Run('background log shares -list', dsz.RUN_FLAG_RECORD)
dsz.cmd.Run('background log shares -query', dsz.RUN_FLAG_RECORD)
dsz.control.echo.On()
... | 29.916667 | 70 | 0.682451 |
52bd3f95c780336fd92c33e422d7e9cbf5ca7d66 | 493 | py | Python | project/tests/test_users.py | fernandovbs/flask-microservices-users | bfa90ec7ec3367ee0abb55d6c218847c347c3a6e | [
"MIT"
] | null | null | null | project/tests/test_users.py | fernandovbs/flask-microservices-users | bfa90ec7ec3367ee0abb55d6c218847c347c3a6e | [
"MIT"
] | null | null | null | project/tests/test_users.py | fernandovbs/flask-microservices-users | bfa90ec7ec3367ee0abb55d6c218847c347c3a6e | [
"MIT"
] | null | null | null | # project/tests/test_users.py
import json
from project.tests.base import BaseTestCase
class TestUserService(BaseTestCase):
"""Tests for the Users Service."""
def test_users(self):
"""Ensure the /ping route behaves correctly."""
response = self.client.get('/ping')
data = json.loads(... | 25.947368 | 55 | 0.663286 |
67d856bc19ccae6e976a453bfd152a9a71561f57 | 5,262 | py | Python | src/m3r_unit_testing.py | sorensms/03-AccumulatorsAndFunctionsWithParameters-201930 | 7ee507d1629933e9cba5def2c791d250c71bdd87 | [
"MIT"
] | null | null | null | src/m3r_unit_testing.py | sorensms/03-AccumulatorsAndFunctionsWithParameters-201930 | 7ee507d1629933e9cba5def2c791d250c71bdd87 | [
"MIT"
] | null | null | null | src/m3r_unit_testing.py | sorensms/03-AccumulatorsAndFunctionsWithParameters-201930 | 7ee507d1629933e9cba5def2c791d250c71bdd87 | [
"MIT"
] | null | null | null | """
This module helps you understand:
-- UNIT TESTING.
-- the difference between PRINT and RETURN
Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays,
Aaron Wilkin, their colleagues, and Maddie Sorensen.
""" # Done: 1. PUT YOUR NAME IN THE ABOVE LINE.
############################... | 36.541667 | 79 | 0.613075 |
ab7f5e385152b96a980196ed26ed0a1585946336 | 20,931 | py | Python | src/data/build_imagenet_data.py | CaveSven/od_experiments | 91a4e10d17794d8e56c3adef9130f4f10a8722d7 | [
"MIT"
] | null | null | null | src/data/build_imagenet_data.py | CaveSven/od_experiments | 91a4e10d17794d8e56c3adef9130f4f10a8722d7 | [
"MIT"
] | null | null | null | src/data/build_imagenet_data.py | CaveSven/od_experiments | 91a4e10d17794d8e56c3adef9130f4f10a8722d7 | [
"MIT"
] | null | null | null | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 37.111702 | 114 | 0.704123 |
5afda47ebee646f5ef1a3cd7f15e3f4a72790491 | 4,362 | py | Python | data_loader.py | Lynn-015/BCNN-keras-clean | 0b03d03861d19a7092027c5c4b056b51306f5931 | [
"MIT"
] | null | null | null | data_loader.py | Lynn-015/BCNN-keras-clean | 0b03d03861d19a7092027c5c4b056b51306f5931 | [
"MIT"
] | null | null | null | data_loader.py | Lynn-015/BCNN-keras-clean | 0b03d03861d19a7092027c5c4b056b51306f5931 | [
"MIT"
] | null | null | null | import os
import numpy as np
import cv2
from PIL import Image
from keras.preprocessing import image
from keras.utils import to_categorical
from sklearn.preprocessing import LabelEncoder
import pdb
def color_process(data):
"""color preprocessing"""
return data / 128. - 1.
def image_process(img):
"... | 39.654545 | 152 | 0.58895 |
41c08f5444025bb67d8cd3e0318fb869308bc975 | 391 | py | Python | atlascope/tests/test_tiling.py | atlascope/atlascope-api | 8738d20836d3a4f449896215b5fee7c3cf2c7356 | [
"Apache-2.0"
] | 1 | 2022-01-11T22:47:36.000Z | 2022-01-11T22:47:36.000Z | atlascope/tests/test_tiling.py | atlascope/atlascope | 8738d20836d3a4f449896215b5fee7c3cf2c7356 | [
"Apache-2.0"
] | 80 | 2021-12-08T22:18:44.000Z | 2022-03-31T22:56:48.000Z | atlascope/tests/test_tiling.py | atlascope/atlascope-api | 8738d20836d3a4f449896215b5fee7c3cf2c7356 | [
"Apache-2.0"
] | 1 | 2021-12-13T19:30:57.000Z | 2021-12-13T19:30:57.000Z | import pytest
from atlascope.core.management.commands.populate import command as populate_command
@pytest.mark.django_db
def test_metadata(api_client):
populate_command()
resp = api_client().get('/api/v1/datasets/tile_source/2000/tiles/metadata')
assert resp.status_code == 200
# Make sure OMETIFF rea... | 30.076923 | 83 | 0.762148 |
faccfb1fc583d7a066acb58b2351c57bc8d471e2 | 2,632 | py | Python | CustomDiceDistribution.py | fabricioca/custom-dice-distribution | bc77be7973a7f4f936545bf9d5bf0c2b2a37fe2f | [
"MIT"
] | null | null | null | CustomDiceDistribution.py | fabricioca/custom-dice-distribution | bc77be7973a7f4f936545bf9d5bf0c2b2a37fe2f | [
"MIT"
] | null | null | null | CustomDiceDistribution.py | fabricioca/custom-dice-distribution | bc77be7973a7f4f936545bf9d5bf0c2b2a37fe2f | [
"MIT"
] | null | null | null | import os
import sys
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from collections import Counter
import random
import math
def getSymbols(dices):
symbols = {}
for dice in dices:
for face in dice:
for value in face:
symbols[value] = True
symbols... | 22.305085 | 90 | 0.522416 |
6e4bf8bdd7549d14de2e6f0730e7356eb70e50dd | 5,966 | py | Python | openstack_auth/forms.py | dan1/django_openstack_auth_x509 | 76f6b97ca1d9d5c5ce4382e79990f924c7597017 | [
"Apache-2.0"
] | null | null | null | openstack_auth/forms.py | dan1/django_openstack_auth_x509 | 76f6b97ca1d9d5c5ce4382e79990f924c7597017 | [
"Apache-2.0"
] | null | null | null | openstack_auth/forms.py | dan1/django_openstack_auth_x509 | 76f6b97ca1d9d5c5ce4382e79990f924c7597017 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | 43.231884 | 79 | 0.63644 |
2b7fc90dafac1d304b4781253959daed3c9ac58a | 26 | py | Python | source/newidea.py | nelsonth/3308Example | 210f8c60ff3a048c50cbdd6ac50186c8222efb23 | [
"CC0-1.0"
] | null | null | null | source/newidea.py | nelsonth/3308Example | 210f8c60ff3a048c50cbdd6ac50186c8222efb23 | [
"CC0-1.0"
] | null | null | null | source/newidea.py | nelsonth/3308Example | 210f8c60ff3a048c50cbdd6ac50186c8222efb23 | [
"CC0-1.0"
] | null | null | null | # I have a new idea
x = 4
| 8.666667 | 19 | 0.576923 |
b1cfd93778d75d3c6634d51dad21472e67715165 | 23,448 | py | Python | i3d.py | pabloe4993/kinetics-i3d | e2a04d314b937c145c7c840b931909c51f55d29d | [
"Apache-2.0"
] | null | null | null | i3d.py | pabloe4993/kinetics-i3d | e2a04d314b937c145c7c840b931909c51f55d29d | [
"Apache-2.0"
] | null | null | null | i3d.py | pabloe4993/kinetics-i3d | e2a04d314b937c145c7c840b931909c51f55d29d | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 48.85 | 80 | 0.58602 |
c61be71720ca72e2ae47c484c5515fe8bbe314e7 | 393 | py | Python | multipos/asgi.py | willbackslash/django-multi-pos | 6bef1546fbaf4c5c3fa57e91c2da82f2dd9ca9a4 | [
"MIT"
] | null | null | null | multipos/asgi.py | willbackslash/django-multi-pos | 6bef1546fbaf4c5c3fa57e91c2da82f2dd9ca9a4 | [
"MIT"
] | null | null | null | multipos/asgi.py | willbackslash/django-multi-pos | 6bef1546fbaf4c5c3fa57e91c2da82f2dd9ca9a4 | [
"MIT"
] | null | null | null | """
ASGI config for multipos project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_SETT... | 23.117647 | 78 | 0.78626 |
fb6948042e586d3f2e682cdc8a4ff727eb406e9c | 18 | py | Python | apply.py | zzz-st/info | bc4996a53cd24956a45a491c353eabea067a94f1 | [
"MIT"
] | null | null | null | apply.py | zzz-st/info | bc4996a53cd24956a45a491c353eabea067a94f1 | [
"MIT"
] | null | null | null | apply.py | zzz-st/info | bc4996a53cd24956a45a491c353eabea067a94f1 | [
"MIT"
] | null | null | null |
wuzun=123
neinei
| 4.5 | 9 | 0.777778 |
49f7be857d3b34790e9838983b4a03222385dfa5 | 2,128 | py | Python | Ch14/iris_somperc.py | jason-168/MLCode | 429c17e004fb41ba16c371416c8f73833ab8fc1d | [
"Xnet",
"X11"
] | 146 | 2016-05-24T02:55:53.000Z | 2022-03-23T14:54:42.000Z | Ch14/iris_somperc.py | coky/MarslandMLAlgo | 4277b24db88c4cb70d6b249921c5d21bc8f86eb4 | [
"Xnet",
"X11"
] | 1 | 2017-08-17T23:07:39.000Z | 2017-08-18T08:27:19.000Z | Ch14/iris_somperc.py | coky/MarslandMLAlgo | 4277b24db88c4cb70d6b249921c5d21bc8f86eb4 | [
"Xnet",
"X11"
] | 94 | 2016-05-06T12:34:33.000Z | 2022-03-30T03:31:04.000Z |
# Code from Chapter 14 of Machine Learning: An Algorithmic Perspective (2nd Edition)
# by Stephen Marsland (http://stephenmonika.net)
# You are free to use, change, or redistribute the code in any way you wish for
# non-commercial purposes, but please maintain the name of the original author.
# This code comes with n... | 30.4 | 107 | 0.659774 |
fe012f8fbaa41336eef244fde2a6e1831a2bcf76 | 15,296 | py | Python | blog-rest-api/tests/test_aioomd/test_queryset.py | rob-blackbourn/scratch-python | c61582f334726c17bbe23a185e63d913d0151392 | [
"MIT"
] | null | null | null | blog-rest-api/tests/test_aioomd/test_queryset.py | rob-blackbourn/scratch-python | c61582f334726c17bbe23a185e63d913d0151392 | [
"MIT"
] | 10 | 2019-12-29T01:55:32.000Z | 2022-02-26T12:45:06.000Z | blog-rest-api/tests/test_aioomd/test_queryset.py | rob-blackbourn/scratch-python | c61582f334726c17bbe23a185e63d913d0151392 | [
"MIT"
] | null | null | null | import sys
import textwrap
import pytest
from pymongo import ASCENDING, DESCENDING, WriteConcern
import pymongo.errors
from aioodm.errors import DocumentNotFoundError, DuplicateKeyError
from aioodm.queryset import MotorQuerySet, MotorQuerySetCursor
from models import User, Post
PY_36 = sys.version_info >= (3, 6)
... | 31.933194 | 78 | 0.61624 |
786eb56a0ca1deb2c231a9f395a9db04ef0fe983 | 3,293 | py | Python | superset/databases/commands/export.py | ekmixon/superset | 540277ebb108ccaf7937a173f6cfde90f2e72813 | [
"Apache-2.0"
] | 2 | 2021-09-13T07:20:49.000Z | 2021-11-14T20:06:47.000Z | superset/databases/commands/export.py | ekmixon/superset | 540277ebb108ccaf7937a173f6cfde90f2e72813 | [
"Apache-2.0"
] | 62 | 2020-05-06T22:51:53.000Z | 2022-03-28T20:49:17.000Z | superset/databases/commands/export.py | ekmixon/superset | 540277ebb108ccaf7937a173f6cfde90f2e72813 | [
"Apache-2.0"
] | 2 | 2021-10-12T17:51:34.000Z | 2021-10-15T18:55:52.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 35.408602 | 80 | 0.706347 |
69f918fcf97182d4802d26b40a76931dfbe4cdb5 | 6,080 | py | Python | trt_ssd_async.py | Praneet9/tensorrt_demos | 9e0b557297096bb0163cb2484cd9db258663e197 | [
"MIT"
] | 2 | 2021-06-29T10:05:50.000Z | 2022-02-28T09:00:19.000Z | trt_ssd_async.py | Praneet9/tensorrt_demos | 9e0b557297096bb0163cb2484cd9db258663e197 | [
"MIT"
] | 2 | 2021-06-08T21:16:15.000Z | 2021-09-08T01:52:34.000Z | trt_ssd_async.py | Praneet9/tensorrt_demos | 9e0b557297096bb0163cb2484cd9db258663e197 | [
"MIT"
] | 2 | 2020-09-06T14:24:32.000Z | 2020-09-07T09:24:02.000Z | """trt_ssd_async.py
This is the 'async' version of trt_ssd.py implementation. It creates
1 dedicated child thread for fetching camera input and do inferencing
with the TensorRT optimized SSD model/engine, while using the main
thread for drawing detection results and displaying video. Ideally,
the 2 threads work in a... | 33.59116 | 77 | 0.652796 |
40c60980f0f9a11dae38a1042d57be28db7d9f25 | 33 | py | Python | SpoTwillio/lib/python3.6/genericpath.py | Natfan/funlittlethings | 80d5378b45b5c0ead725942ee50403bd057514a6 | [
"MIT"
] | 99 | 2019-10-09T16:14:46.000Z | 2022-03-17T02:23:47.000Z | SpoTwillio/lib/python3.6/genericpath.py | Natfan/funlittlethings | 80d5378b45b5c0ead725942ee50403bd057514a6 | [
"MIT"
] | 43 | 2021-02-18T22:37:01.000Z | 2021-05-05T19:37:51.000Z | SpoTwillio/lib/python3.6/genericpath.py | Natfan/funlittlethings | 80d5378b45b5c0ead725942ee50403bd057514a6 | [
"MIT"
] | 98 | 2019-10-17T14:48:28.000Z | 2022-01-21T03:33:38.000Z | /usr/lib/python3.6/genericpath.py | 33 | 33 | 0.818182 |
c84718719b097609b5ba96cb7cb18f1d32e277db | 1,147 | py | Python | Structres/adjecency.py | Devshrestha/Data-Structers | 3022f34652854c07b2d8e1abd12d0f1d08b357c2 | [
"MIT"
] | null | null | null | Structres/adjecency.py | Devshrestha/Data-Structers | 3022f34652854c07b2d8e1abd12d0f1d08b357c2 | [
"MIT"
] | null | null | null | Structres/adjecency.py | Devshrestha/Data-Structers | 3022f34652854c07b2d8e1abd12d0f1d08b357c2 | [
"MIT"
] | null | null | null | class adjnode:
def __init__(self,data):
self.data = data
self.next=None
class Graph:
def __init__(self,ver):
self.ver=ver
self.graph=[None]*ver
def add_node(self,src,des):
prev=self.graph[src]
if prev==None:
self.graph[src]={des}
else:... | 20.482143 | 43 | 0.514385 |
cdad1c89c872387d36c01e86a92bfb5bfd3d7bec | 6,814 | py | Python | utils/events/AutoThreadUnarchive.py | pandabear189/Timmy-SchoolSimplified | db6458278006a7318dc84aff07123742e2fd9491 | [
"MIT"
] | null | null | null | utils/events/AutoThreadUnarchive.py | pandabear189/Timmy-SchoolSimplified | db6458278006a7318dc84aff07123742e2fd9491 | [
"MIT"
] | null | null | null | utils/events/AutoThreadUnarchive.py | pandabear189/Timmy-SchoolSimplified | db6458278006a7318dc84aff07123742e2fd9491 | [
"MIT"
] | null | null | null | import discord
from core.checks import is_botAdmin3
from discord.ext import commands, tasks
from core.common import SelectMenuHandler, TempConfirm, LockButton, TECH_ID, Emoji
from core.checks import is_botAdmin
from core import database
class BotRequestModal(discord.ui.Modal):
def __init__(self, bot) -> None:
... | 36.438503 | 120 | 0.599501 |
7a5a125e61614a7e36d180c93da7e09fd75ca91c | 520 | py | Python | frontera/contrib/scrapy/overusedbuffer.py | buildfail/frontera | 84f9e1034d2868447db88e865596c0fbb32e70f6 | [
"BSD-3-Clause"
] | 1,267 | 2015-04-15T04:47:12.000Z | 2022-03-29T07:55:15.000Z | frontera/contrib/scrapy/overusedbuffer.py | buildfail/frontera | 84f9e1034d2868447db88e865596c0fbb32e70f6 | [
"BSD-3-Clause"
] | 316 | 2015-04-14T21:28:26.000Z | 2021-05-31T05:31:15.000Z | frontera/contrib/scrapy/overusedbuffer.py | buildfail/frontera | 84f9e1034d2868447db88e865596c0fbb32e70f6 | [
"BSD-3-Clause"
] | 250 | 2015-04-20T07:15:10.000Z | 2022-03-28T15:17:15.000Z | from __future__ import absolute_import
from scrapy.utils.httpobj import urlparse_cached
from scrapy.resolver import dnscache
from frontera.core import OverusedBuffer
class OverusedBufferScrapy(OverusedBuffer):
"""
Scrapy optimized version of OverusedBuffer. Url parsing and dns resolving are made using Scrapy... | 28.888889 | 111 | 0.719231 |
3d6ce0f3ac0aa724d8f7c00d1e695b1a33cf6143 | 3,966 | py | Python | suppy/test/integration/custom/test_duble_input.py | bmaris98/suppy | 8450c6d25ffa492cdedfbbb4c111d22e7f2788a7 | [
"BSD-3-Clause"
] | null | null | null | suppy/test/integration/custom/test_duble_input.py | bmaris98/suppy | 8450c6d25ffa492cdedfbbb4c111d22e7f2788a7 | [
"BSD-3-Clause"
] | null | null | null | suppy/test/integration/custom/test_duble_input.py | bmaris98/suppy | 8450c6d25ffa492cdedfbbb4c111d22e7f2788a7 | [
"BSD-3-Clause"
] | null | null | null | from suppy.utils.stats_constants import ACTIVE_TIME, CALIBRATION_COUNT, CALIBRATION_LEFT, CALIBRATION_TIME, CUSTOM, END, ERRORS, HAS_CALIBRATION, IDLE_TIME, NAME, NOT_USED_RESOURCES, RESOURCE_COUNT, SEMI_FINITE, START, TOTAL_ACTIVE_COST, TOTAL_CALIBRATION_COST, TYPE, VALID_RESOURCE_COUNT
from suppy.simulator.event_hand... | 41.747368 | 288 | 0.763742 |
333a4618b0081ec64bde379658fd3d742f417e73 | 684 | py | Python | students/K33421/laboratory_works/Lakiza_Alexander/laboratory_work_2/races/urls.py | aytakr/ITMO_ICT_WebDevelopment_2021-2022 | 57c0eef5e1f413c7f031ee001d59e5122f990f26 | [
"MIT"
] | 7 | 2021-09-02T08:20:58.000Z | 2022-01-12T11:48:07.000Z | students/K33421/laboratory_works/Lakiza_Alexander/laboratory_work_2/races/urls.py | aytakr/ITMO_ICT_WebDevelopment_2021-2022 | 57c0eef5e1f413c7f031ee001d59e5122f990f26 | [
"MIT"
] | 76 | 2021-09-17T23:01:50.000Z | 2022-03-18T16:42:03.000Z | students/K33421/laboratory_works/Lakiza_Alexander/laboratory_work_2/races/urls.py | aytakr/ITMO_ICT_WebDevelopment_2021-2022 | 57c0eef5e1f413c7f031ee001d59e5122f990f26 | [
"MIT"
] | 60 | 2021-09-04T16:47:39.000Z | 2022-03-21T04:41:27.000Z | from django.urls import path
from .views import register, index, racer, profile, race_register_add, race_register_edit, race_leave, add_commet, \
RaceListView, RaceDetailView
urlpatterns = [
path('', index),
path('accounts/registration', register),
path('race_list/', RaceListView.as_view()),
path('... | 40.235294 | 116 | 0.70614 |
7d0b6e9dab3d28ab92be474547cabc2d36b47b4b | 12,495 | py | Python | test/IECore/StringAlgoTest.py | themissingcow/cortex | 946770a70e915a5a8ab4c8f110614dee3d8bc305 | [
"BSD-3-Clause"
] | null | null | null | test/IECore/StringAlgoTest.py | themissingcow/cortex | 946770a70e915a5a8ab4c8f110614dee3d8bc305 | [
"BSD-3-Clause"
] | null | null | null | test/IECore/StringAlgoTest.py | themissingcow/cortex | 946770a70e915a5a8ab4c8f110614dee3d8bc305 | [
"BSD-3-Clause"
] | null | null | null | ##########################################################################
#
# Copyright (c) 2014, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistrib... | 40.176849 | 190 | 0.616407 |
dc9c5d19b02e1a39d4fd4d062853fcff863d0b63 | 820 | py | Python | pyBLE-NRF52840/4.BLE应用/2.设备信息/main.py | 01studio-lab/MicroPython_Examples | f06a1bee398674ceafebed2aac88d8413cc8abad | [
"MIT"
] | 73 | 2020-05-02T13:48:27.000Z | 2022-03-26T13:15:10.000Z | pyBLE-NRF52840/4.BLE应用/2.设备信息/main.py | 01studio-lab/MicroPython_Examples | f06a1bee398674ceafebed2aac88d8413cc8abad | [
"MIT"
] | null | null | null | pyBLE-NRF52840/4.BLE应用/2.设备信息/main.py | 01studio-lab/MicroPython_Examples | f06a1bee398674ceafebed2aac88d8413cc8abad | [
"MIT"
] | 50 | 2020-05-15T13:57:28.000Z | 2022-03-30T14:03:33.000Z | '''
实验名称:设备信息
版本:v1.0
日期:2020.5
作者:01Studio
说明:编程实现无线广播。
'''
import time
from adafruit_ble import BLERadio
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
from adafruit_ble.services.standard.device_info import DeviceInfoService
#构建BLE对象
ble = BLERadio()
#定义广播名称
ble.name = '01Studio'
#定义设备... | 22.162162 | 74 | 0.643902 |
cb1c1954b592bd575b249bbf909672a2b9dca4ca | 31,328 | py | Python | trojai/test/modelgen/test_default_optimizer.py | C0ldstudy/trojai | 10ac6c719f367a569a48b19e7ef18cf90df3a310 | [
"Apache-2.0"
] | 59 | 2019-07-11T02:33:38.000Z | 2022-02-02T01:51:29.000Z | trojai/test/modelgen/test_default_optimizer.py | C0ldstudy/trojai | 10ac6c719f367a569a48b19e7ef18cf90df3a310 | [
"Apache-2.0"
] | 4 | 2020-04-13T03:48:32.000Z | 2021-09-11T05:13:57.000Z | trojai/test/modelgen/test_default_optimizer.py | C0ldstudy/trojai | 10ac6c719f367a569a48b19e7ef18cf90df3a310 | [
"Apache-2.0"
] | 19 | 2019-09-17T21:09:06.000Z | 2022-03-31T17:55:18.000Z | import unittest
from unittest.mock import Mock, patch
from collections import defaultdict
from tqdm import tqdm
import numpy as np
import torch
import torch.nn as nn
from sklearn.metrics import balanced_accuracy_score
from trojai.modelgen.default_optimizer import DefaultOptimizer, _running_eval_acc, train_val_dataset... | 55.942857 | 130 | 0.594101 |
a058beb9044e4aa2588f273d075725783bc216d9 | 290 | py | Python | setup.py | JaninePow/master-thesis | 61e3877dcf99f0ba0413c8ae6fcb8e6e34e06030 | [
"BSD-3-Clause"
] | null | null | null | setup.py | JaninePow/master-thesis | 61e3877dcf99f0ba0413c8ae6fcb8e6e34e06030 | [
"BSD-3-Clause"
] | 1 | 2021-11-02T14:24:22.000Z | 2021-11-02T14:24:22.000Z | setup.py | JaninePow/master-thesis | 61e3877dcf99f0ba0413c8ae6fcb8e6e34e06030 | [
"BSD-3-Clause"
] | 1 | 2021-11-02T12:42:50.000Z | 2021-11-02T12:42:50.000Z | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Use deep learning and computer vision techniques for historical fragment matching.',
author='Friedrich Alexander University ',
license='BSD-3',
)
| 26.363636 | 101 | 0.717241 |
9b913f591e2c731f2e4a225ba3705a3240d69bd4 | 4,640 | py | Python | jp.atcoder/practice2/practice2_k/26685626.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/practice2/practice2_k/26685626.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/practice2/practice2_k/26685626.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import dataclasses
import typing
S = typing.TypeVar('S')
@dataclasses.dataclass
class Monoid(typing.Generic[S]):
op: typing.Callable[[S, S], S]
e: typing.Callable[[], S]
commutative: bool
# class Monoid(typing.Generic[S]):
# def __init__(
# self,
# op: typing.Callable[[S... | 28.819876 | 86 | 0.448922 |
4d1a179a45ea250236f2c4b1349f64f84a4a6dd9 | 1,718 | py | Python | labscript_devices/PulseBlasterUSB.py | chrisjbillington/labscript_devices | 75b175d44c1fdca55b7cae30a898bbea59c2a5d7 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2020-02-02T10:27:56.000Z | 2020-05-05T12:36:39.000Z | labscript_devices/PulseBlasterUSB.py | chrisjbillington/labscript_devices | 75b175d44c1fdca55b7cae30a898bbea59c2a5d7 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 43 | 2020-05-12T20:34:36.000Z | 2022-03-29T21:47:29.000Z | labscript_devices/PulseBlasterUSB.py | chrisjbillington/labscript_devices | 75b175d44c1fdca55b7cae30a898bbea59c2a5d7 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 23 | 2020-05-31T03:15:59.000Z | 2022-02-25T14:36:45.000Z | #####################################################################
# #
# /pulseblasterUSB.py #
# #
# Copyright 2013, Monash University ... | 36.553191 | 69 | 0.520373 |
4563cec34189f691c14fb79ad4cd37e2401933b5 | 5,518 | py | Python | tools/keras2Msnh/MsnhBuilder.py | Janus1984/Msnhnet | 4e09f2501ba8db789f0a20441a357de3ba468f10 | [
"MIT"
] | 546 | 2020-07-05T13:09:44.000Z | 2022-03-31T01:55:22.000Z | tools/keras2Msnh/MsnhBuilder.py | hengC-137/Msnhnet | b7ae88b41c1c1d715990afe50727c46c09237a5a | [
"MIT"
] | 23 | 2020-07-09T01:26:10.000Z | 2021-12-08T01:18:46.000Z | tools/keras2Msnh/MsnhBuilder.py | hengC-137/Msnhnet | b7ae88b41c1c1d715990afe50727c46c09237a5a | [
"MIT"
] | 114 | 2020-07-06T06:04:40.000Z | 2022-03-30T14:47:50.000Z | class Msnhnet:
def __init__(self):
self.net = ""
self.index = 0
self.name_index_dict = dict()
def buildConfig(self,shape):
self.net = self.net + "config:\n"
self.net = self.net + " batch: " + str(int(shape[0])) + "\n"
self.net = self.net + " channels: ... | 47.982609 | 135 | 0.518123 |
4263ac04eb5428de36b3eaead46eacbb713990b5 | 9,631 | py | Python | google-cloud-sdk/lib/surface/container/clusters/upgrade.py | bopopescu/Social-Lite | ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/surface/container/clusters/upgrade.py | bopopescu/Social-Lite | ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf | [
"Apache-2.0"
] | 4 | 2020-07-21T12:51:46.000Z | 2022-01-22T10:29:25.000Z | google-cloud-sdk/lib/surface/container/clusters/upgrade.py | bopopescu/Social-Lite | ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf | [
"Apache-2.0"
] | 1 | 2020-07-25T18:17:57.000Z | 2020-07-25T18:17:57.000Z | # -*- coding: utf-8 -*- #
# Copyright 2015 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 35.278388 | 88 | 0.727546 |
42c9bf5ff285a956611ea220de7f15ffcc6d13ab | 19,125 | py | Python | utils/vrep_env/vrep_env.py | Lauchturm/bachelors_thesis_julian | e96067bd1b520edc8d648b483f1e3b5e37a1a4a5 | [
"MIT"
] | null | null | null | utils/vrep_env/vrep_env.py | Lauchturm/bachelors_thesis_julian | e96067bd1b520edc8d648b483f1e3b5e37a1a4a5 | [
"MIT"
] | null | null | null | utils/vrep_env/vrep_env.py | Lauchturm/bachelors_thesis_julian | e96067bd1b520edc8d648b483f1e3b5e37a1a4a5 | [
"MIT"
] | null | null | null | from utils.vrep_env import vrep
import gym
import time
import numpy as np
from functools import wraps
class VrepEnv(gym.Env):
"""Superclass for V-REP environments.
"""
opM_get = vrep.simx_opmode_blocking
opM_set = vrep.simx_opmode_oneshot
def __init__(self, server_addr, server_port, scene_path=N... | 44.270833 | 123 | 0.566536 |
29a21b975b971c246a49b341aa4c54a7b2d5aa0d | 28,006 | py | Python | python/pyspark/pandas/tests/data_type_ops/test_num_ops.py | rohan-uptycs/spark | 33c6d1168c077630a8f81c1a4e153f862162f257 | [
"BSD-2-Clause",
"Apache-2.0",
"CC0-1.0",
"MIT",
"MIT-0",
"ECL-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2016-06-03T07:29:48.000Z | 2016-06-03T07:29:48.000Z | python/pyspark/pandas/tests/data_type_ops/test_num_ops.py | grarkydev/spark | 86c42275baff3c38c3edc51f34be8f70b2a5963a | [
"BSD-2-Clause",
"Apache-2.0",
"CC0-1.0",
"MIT",
"MIT-0",
"ECL-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2022-02-16T01:20:23.000Z | 2022-02-16T01:20:23.000Z | python/pyspark/pandas/tests/data_type_ops/test_num_ops.py | grarkydev/spark | 86c42275baff3c38c3edc51f34be8f70b2a5963a | [
"BSD-2-Clause",
"Apache-2.0",
"CC0-1.0",
"MIT",
"MIT-0",
"ECL-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-08-28T09:49:02.000Z | 2021-08-28T09:49:02.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 44.173502 | 100 | 0.606477 |
75aa46109b0e2f2a842cdae35c46c40574d10246 | 3,664 | py | Python | gaphor/UML/classes/dependency.py | Texopolis/gaphor | 3b190620075fd413258af1e7a007b4b2167a7564 | [
"Apache-2.0"
] | 1 | 2022-01-30T15:33:53.000Z | 2022-01-30T15:33:53.000Z | gaphor/UML/classes/dependency.py | burakozturk16/gaphor | 86267a5200ac4439626d35d306dbb376c3800107 | [
"Apache-2.0"
] | null | null | null | gaphor/UML/classes/dependency.py | burakozturk16/gaphor | 86267a5200ac4439626d35d306dbb376c3800107 | [
"Apache-2.0"
] | 1 | 2022-01-23T18:36:27.000Z | 2022-01-23T18:36:27.000Z | """Common dependencies like dependency, usage, implementation and realization.
Dependency Type
===============
Dependency type should be determined automatically by default. User should
be able to override the dependency type.
When dependency item is connected between two items, then type of the
dependency cannot be ... | 33.309091 | 86 | 0.657478 |
4389801ee6bf7abe394892ac94708189a3e242f3 | 1,356 | py | Python | redis_data_transfer/redis_client.py | EDITD/redis_data_transfer | efc8088b30475cf34fec0ea5f2d5b3b99e28baf9 | [
"MIT"
] | null | null | null | redis_data_transfer/redis_client.py | EDITD/redis_data_transfer | efc8088b30475cf34fec0ea5f2d5b3b99e28baf9 | [
"MIT"
] | null | null | null | redis_data_transfer/redis_client.py | EDITD/redis_data_transfer | efc8088b30475cf34fec0ea5f2d5b3b99e28baf9 | [
"MIT"
] | null | null | null | from rediscluster import RedisCluster
from rediscluster.exceptions import RedisClusterException, ResponseError
from redis import ConnectionError, Redis
CONNECT_TIMEOUT_SEC = 10
def _redis_client(host, logger):
startup_node = _split_host(host)
logger.debug("Host name split: %s", startup_node)
try:
... | 25.584906 | 72 | 0.633481 |
cbe7e809586fe41ddeffca4892ce8b910e921c34 | 32,335 | py | Python | spacy/_ml.py | mghmgh1281375/spaCy | 56700f6c5b50f4759b31b624a6a1483ec6bac6b9 | [
"MIT"
] | null | null | null | spacy/_ml.py | mghmgh1281375/spaCy | 56700f6c5b50f4759b31b624a6a1483ec6bac6b9 | [
"MIT"
] | null | null | null | spacy/_ml.py | mghmgh1281375/spaCy | 56700f6c5b50f4759b31b624a6a1483ec6bac6b9 | [
"MIT"
] | null | null | null | # coding: utf8
from __future__ import unicode_literals
import numpy
from thinc.v2v import Model, Maxout, Softmax, Affine, ReLu
from thinc.t2t import ExtractWindow, ParametricAttention
from thinc.t2v import Pooling, sum_pool, mean_pool
from thinc.i2v import HashEmbed
from thinc.misc import Residual, FeatureExtracter
fr... | 32.927699 | 94 | 0.594681 |
460636f3e8482a41397ed2206e7d3d80901b0f66 | 21,010 | py | Python | VTK/Wrapping/Python/vtkmodules/qt/QVTKRenderWindowInteractor.py | brown-ccv/paraview-scalable | 64b221a540737d2ac94a120039bd8d1e661bdc8f | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | VTK/Wrapping/Python/vtkmodules/qt/QVTKRenderWindowInteractor.py | brown-ccv/paraview-scalable | 64b221a540737d2ac94a120039bd8d1e661bdc8f | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | VTK/Wrapping/Python/vtkmodules/qt/QVTKRenderWindowInteractor.py | brown-ccv/paraview-scalable | 64b221a540737d2ac94a120039bd8d1e661bdc8f | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | """
A simple VTK widget for PyQt or PySide.
See http://www.trolltech.com for Qt documentation,
http://www.riverbankcomputing.co.uk for PyQt, and
http://pyside.github.io for PySide.
This class is based on the vtkGenericRenderWindowInteractor and is
therefore fairly powerful. It should also play nicely with the
vtk3DWi... | 32.223926 | 89 | 0.632223 |
8b923dd4c306c2b0e92654e0876dda4cacf9557b | 2,890 | py | Python | chord_sim/modules/node_info.py | ryogrid/FunnelKVS | 65c4308ce6e08b819b5396fc1aa658468c276362 | [
"MIT"
] | 8 | 2022-01-12T00:46:25.000Z | 2022-03-30T12:00:52.000Z | chord_sim/modules/node_info.py | ryogrid/FunnelKVS | 65c4308ce6e08b819b5396fc1aa658468c276362 | [
"MIT"
] | null | null | null | chord_sim/modules/node_info.py | ryogrid/FunnelKVS | 65c4308ce6e08b819b5396fc1aa658468c276362 | [
"MIT"
] | 1 | 2022-01-12T06:22:31.000Z | 2022-01-12T06:22:31.000Z | # coding:utf-8
import copy
from typing import List, Optional
from . import gval
from .chord_util import ChordUtil
import threading
# メモ: オブジェクトをdictのキーとして使用可能としてある
class NodeInfo:
def __init__(self):
self.node_id: int = -1
self.address_str: str = ""
# デバッグ用のID
# 何ノード目として生成されたかの値... | 33.218391 | 81 | 0.698616 |
414ca81b24005af87b32661c1b75345fc67bba21 | 1,745 | py | Python | ui/key_value_editor_ui.py | LinkedList/qTTp | fc4fee02a947f6a81742180460e3709e447d171f | [
"MIT"
] | null | null | null | ui/key_value_editor_ui.py | LinkedList/qTTp | fc4fee02a947f6a81742180460e3709e447d171f | [
"MIT"
] | null | null | null | ui/key_value_editor_ui.py | LinkedList/qTTp | fc4fee02a947f6a81742180460e3709e447d171f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'key_value_editor.ui',
# licensing of 'key_value_editor.ui' applies.
#
# Created: Sun Feb 17 10:15:49 2019
# by: pyside2-uic running on PySide2 5.12.1
#
# WARNING! All changes made in this file will be lost!
from PySide2 import QtCore,... | 44.74359 | 117 | 0.755301 |
4c6802415f2fb1a2ddbecbcfcca22a9a53a013fc | 13,500 | py | Python | recipes/recipe_modules/gclient/api.py | JothiMV/depot_tools | 87c8b91639837bc8518cdbe4842484633cf60b6e | [
"BSD-3-Clause"
] | 1 | 2020-07-01T08:46:36.000Z | 2020-07-01T08:46:36.000Z | recipes/recipe_modules/gclient/api.py | JothiMV/depot_tools | 87c8b91639837bc8518cdbe4842484633cf60b6e | [
"BSD-3-Clause"
] | null | null | null | recipes/recipe_modules/gclient/api.py | JothiMV/depot_tools | 87c8b91639837bc8518cdbe4842484633cf60b6e | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine import recipe_api
class RevisionResolver(object):
"""Resolves the revision based on build properties."""
def resolve(self, properti... | 37.396122 | 80 | 0.663852 |
e7dccb0f006ab7c8d87acb1ba731360ad0bd2631 | 18,885 | py | Python | venv/Lib/site-packages/flask_paginate/__init__.py | kdougla01/SENDReg | 1b1fca91b1f5c5d1a92fdc3998b27abca600c2fb | [
"MIT"
] | null | null | null | venv/Lib/site-packages/flask_paginate/__init__.py | kdougla01/SENDReg | 1b1fca91b1f5c5d1a92fdc3998b27abca600c2fb | [
"MIT"
] | null | null | null | venv/Lib/site-packages/flask_paginate/__init__.py | kdougla01/SENDReg | 1b1fca91b1f5c5d1a92fdc3998b27abca600c2fb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
flask_paginate
~~~~~~~~~~~~~~~~~~
Adds pagination support to your application.
:copyright: (c) 2013 by Lix Xu.
:license: BSD, see LICENSE for more details
"""
from __future__ import unicode_literals
import sys
from flask import request, url_for, ... | 35.699433 | 79 | 0.565105 |
af41028ccf93e6a4a3454b1455d061301944985c | 636 | py | Python | leetcode/0-250/226-394. Decode String.py | palash24/algorithms-and-data-structures | 164be7d1a501a21af808673888964bbab36243a1 | [
"MIT"
] | 23 | 2018-11-06T03:54:00.000Z | 2022-03-14T13:30:40.000Z | leetcode/0-250/226-394. Decode String.py | palash24/algorithms-and-data-structures | 164be7d1a501a21af808673888964bbab36243a1 | [
"MIT"
] | null | null | null | leetcode/0-250/226-394. Decode String.py | palash24/algorithms-and-data-structures | 164be7d1a501a21af808673888964bbab36243a1 | [
"MIT"
] | 5 | 2019-05-24T16:56:45.000Z | 2022-03-10T17:29:10.000Z | # 394. Decode String
class Solution:
def decodeString(self, s):
stack = []
for c in s:
if c == "]":
cur = ""
while stack and stack[-1] != "[":
cur = stack.pop() + cur
stack.pop()
stack.append(cur * int(st... | 28.909091 | 67 | 0.470126 |
544f2ec80e06ded466a07846543150b25da5616a | 828 | py | Python | mlprodict/onnxrt/ops_cpu/op_reshape.py | xadupre/mlprodict | f82c8a26a60104948c67849b1c4af95ca812c153 | [
"MIT"
] | 1 | 2020-12-18T03:49:53.000Z | 2020-12-18T03:49:53.000Z | mlprodict/onnxrt/ops_cpu/op_reshape.py | xadupre/mlprodict | f82c8a26a60104948c67849b1c4af95ca812c153 | [
"MIT"
] | null | null | null | mlprodict/onnxrt/ops_cpu/op_reshape.py | xadupre/mlprodict | f82c8a26a60104948c67849b1c4af95ca812c153 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
# pylint: disable=E0203,E1101,C0111
"""
@file
@brief Runtime operator.
"""
import numpy
from ._op import OpRun
from ..shape_object import ShapeObject
def reshape_reference_implementation(data, shape):
new_shape = numpy.copy(shape)
zeros_index = numpy.where(shape == 0)
new_shape[z... | 27.6 | 66 | 0.701691 |
4f52736f0a2e89f316fc6bf3b2b80982be47f22e | 3,804 | py | Python | bin/segmentation/mask_publisher.py | wew84/cnn_bridge | 7cd98e204922174ea9293d8c52c30d00733a7ed2 | [
"BSD-3-Clause"
] | 4 | 2019-05-16T01:30:24.000Z | 2021-04-13T13:55:44.000Z | bin/segmentation/mask_publisher.py | wew84/cnn_bridge | 7cd98e204922174ea9293d8c52c30d00733a7ed2 | [
"BSD-3-Clause"
] | 2 | 2020-01-23T23:39:45.000Z | 2021-12-17T02:32:11.000Z | bin/segmentation/mask_publisher.py | wew84/cnn_bridge | 7cd98e204922174ea9293d8c52c30d00733a7ed2 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# BSD 3-Clause License
# Copyright (c) 2019, Noam C. Golombek
# 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... | 39.216495 | 95 | 0.699264 |
9567a885c1695c402e149e1bb749e91c43099e9a | 205 | py | Python | vnpy/trader/app/rpcService/__init__.py | OceanMT/vnpy_py3 | 0901e9381c54e615247eb753bac476a911c9ae5d | [
"MIT"
] | null | null | null | vnpy/trader/app/rpcService/__init__.py | OceanMT/vnpy_py3 | 0901e9381c54e615247eb753bac476a911c9ae5d | [
"MIT"
] | null | null | null | vnpy/trader/app/rpcService/__init__.py | OceanMT/vnpy_py3 | 0901e9381c54e615247eb753bac476a911c9ae5d | [
"MIT"
] | null | null | null | # encoding: UTF-8
from .rsEngine import RsEngine
from .uiRsWidget import RsEngineManager
appName = 'RpcService'
appDisplayName = 'RPC服务'
appEngine = RsEngine
appWidget = RsEngineManager
appIco = 'rs.ico' | 20.5 | 39 | 0.785366 |
f2840d07039e9112bd432639b80e99cf86b2aefe | 1,797 | py | Python | web/migrations/0052_auto_20200710_1009.py | Hack4Vilnius/getpet-web | b757a6101e70845fddeea88a385acc367a5a58a0 | [
"Apache-2.0"
] | null | null | null | web/migrations/0052_auto_20200710_1009.py | Hack4Vilnius/getpet-web | b757a6101e70845fddeea88a385acc367a5a58a0 | [
"Apache-2.0"
] | 8 | 2019-10-13T01:40:25.000Z | 2022-03-07T20:31:00.000Z | web/migrations/0052_auto_20200710_1009.py | Hack4Vilnius/getpet-web | b757a6101e70845fddeea88a385acc367a5a58a0 | [
"Apache-2.0"
] | 1 | 2022-02-21T07:08:08.000Z | 2022-02-21T07:08:08.000Z | # Generated by Django 3.0.7 on 2020-07-10 10:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('web', '0051_auto_20200709_1817'),
]
operations = [
migrations.CreateModel(
name='Dog',
... | 39.065217 | 181 | 0.56483 |
25fa6d1ee2cbb6360224081b55748ad7ff97231a | 2,332 | py | Python | src/fattoush/driver/driver.py | alistair-broomhead/fattoush | 482000c2e09661e10d5846dbef35c3621897f3c3 | [
"MIT"
] | null | null | null | src/fattoush/driver/driver.py | alistair-broomhead/fattoush | 482000c2e09661e10d5846dbef35c3621897f3c3 | [
"MIT"
] | 4 | 2016-11-02T10:18:24.000Z | 2019-02-14T16:18:48.000Z | src/fattoush/driver/driver.py | alistair-broomhead/fattoush | 482000c2e09661e10d5846dbef35c3621897f3c3 | [
"MIT"
] | null | null | null | # (c) 2014 Mind Candy Ltd. All Rights Reserved.
# Licensed under the MIT License; you may not use this file except in compliance with the License.
# You may obtain a copy of the License at http://opensource.org/licenses/MIT.
"""
The driver class shall be a subclass of WebDriver with a classmethod
`instance()` which ta... | 27.761905 | 98 | 0.624786 |
650fae8d8fdf5eae66d4b31fbfa0490dee1e0009 | 16,751 | py | Python | qa/rpc-tests/wallet.py | risingstar2018/zurbank | 39b62fea4b8cb2499ea4b602bd65dd4616856a65 | [
"MIT"
] | 3 | 2017-09-30T23:56:47.000Z | 2018-11-09T18:34:50.000Z | qa/rpc-tests/wallet.py | risingstar2018/zurcoin | 4ec5c8006496a7d90d40b9cf605ae96b19c4fa8c | [
"MIT"
] | 5 | 2017-08-14T06:44:11.000Z | 2021-06-27T14:06:13.000Z | qa/rpc-tests/wallet.py | risingstar2018/zurcoin | 4ec5c8006496a7d90d40b9cf605ae96b19c4fa8c | [
"MIT"
] | 4 | 2017-09-13T04:49:44.000Z | 2021-03-03T03:40:55.000Z | #!/usr/bin/env python3
# Copyright (c) 2014-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 *
class W... | 44.78877 | 181 | 0.635544 |
fd207aa54fc470659c1a725995b3fb89b9f0952c | 2,346 | py | Python | vertex/test/test_bits.py | twisted/vertex | feb591aa1b9a3b2b8fdcf53e4962dad2a0bc38ca | [
"MIT"
] | 56 | 2015-01-09T03:52:07.000Z | 2021-09-26T22:17:06.000Z | vertex/test/test_bits.py | DalavanCloud/vertex | feb591aa1b9a3b2b8fdcf53e4962dad2a0bc38ca | [
"MIT"
] | 34 | 2015-03-05T02:57:48.000Z | 2017-05-23T22:34:13.000Z | vertex/test/test_bits.py | DalavanCloud/vertex | feb591aa1b9a3b2b8fdcf53e4962dad2a0bc38ca | [
"MIT"
] | 17 | 2015-04-17T02:03:16.000Z | 2021-11-12T03:31:07.000Z | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
import array
from vertex.bits import BitArray
from twisted.trial import unittest
bitResult = [
0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4, 2,
3, 3, 4, 3, 4, 4, 5, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5... | 32.583333 | 78 | 0.452685 |
74089f860e15ff10e40a817235cd8449cd81902c | 21,796 | py | Python | salt/modules/pillar.py | ifraixedes/saltstack-salt | b54becb8b43cc9b7c00b2c0bc637ac534dc62896 | [
"Apache-2.0"
] | 9,425 | 2015-01-01T05:59:24.000Z | 2022-03-31T20:44:05.000Z | salt/modules/pillar.py | ifraixedes/saltstack-salt | b54becb8b43cc9b7c00b2c0bc637ac534dc62896 | [
"Apache-2.0"
] | 33,507 | 2015-01-01T00:19:56.000Z | 2022-03-31T23:48:20.000Z | salt/modules/pillar.py | ifraixedes/saltstack-salt | b54becb8b43cc9b7c00b2c0bc637ac534dc62896 | [
"Apache-2.0"
] | 5,810 | 2015-01-01T19:11:45.000Z | 2022-03-31T02:37:20.000Z | """
Extract the pillar data for this minion
"""
import copy
import logging
import os
from collections.abc import Mapping
import salt.pillar
import salt.utils.crypt
import salt.utils.data
import salt.utils.dictupdate
import salt.utils.functools
import salt.utils.odict
import salt.utils.yaml
from salt.defaults import D... | 33.22561 | 105 | 0.632455 |
e25766f29d7145b8323f78c8d5706fc29992d828 | 8,817 | py | Python | msgraph-cli-extensions/v1_0/identitysignins_v1_0/azext_identitysignins_v1_0/vendored_sdks/identitysignins/aio/_identity_sign_ins.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"MIT"
] | null | null | null | msgraph-cli-extensions/v1_0/identitysignins_v1_0/azext_identitysignins_v1_0/vendored_sdks/identitysignins/aio/_identity_sign_ins.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"MIT"
] | null | null | null | msgraph-cli-extensions/v1_0/identitysignins_v1_0/azext_identitysignins_v1_0/vendored_sdks/identitysignins/aio/_identity_sign_ins.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 60.390411 | 152 | 0.788137 |
16ac889e84aa9be406841a26555ed239e0552d2a | 38,098 | py | Python | model/unet.py | kse0202/neural-fonts-test | c3e2ef24a10b386c67f6f0e398aa36372658a351 | [
"MIT"
] | null | null | null | model/unet.py | kse0202/neural-fonts-test | c3e2ef24a10b386c67f6f0e398aa36372658a351 | [
"MIT"
] | null | null | null | model/unet.py | kse0202/neural-fonts-test | c3e2ef24a10b386c67f6f0e398aa36372658a351 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import absolute_import
import tensorflow as tf
import numpy as np
import scipy.misc as misc
import os
import time
from collections import namedtuple
from .ops import conv2d, deconv2d, lrelu, fc, batch_norm, init_embedding, conditional_instan... | 53.659155 | 120 | 0.567983 |
68e4195707dc247b5195a6b47a120263647baf9c | 1,166 | py | Python | airflow/contrib/hooks/slack_webhook_hook.py | khilawar4/airflow | 5f3f65b82517f615f31f0c8a7f8ac0facb325235 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 3 | 2021-01-29T20:33:56.000Z | 2021-08-06T17:35:16.000Z | airflow/contrib/hooks/slack_webhook_hook.py | khilawar4/airflow | 5f3f65b82517f615f31f0c8a7f8ac0facb325235 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 210 | 2021-07-17T00:25:52.000Z | 2021-12-29T00:44:48.000Z | airflow/contrib/hooks/slack_webhook_hook.py | khilawar4/airflow | 5f3f65b82517f615f31f0c8a7f8ac0facb325235 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 2 | 2021-04-14T11:15:17.000Z | 2021-12-15T16:58:24.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 38.866667 | 95 | 0.771012 |
30f7599e08c31861491dead880df5dc88d17ffc0 | 3,986 | py | Python | icv/image/io.py | dmxj/icv | 0b074ec9475f2c70038d2e8b7166414fd5b93e61 | [
"MIT"
] | 5 | 2019-09-10T04:02:19.000Z | 2020-07-24T07:46:08.000Z | icv/image/io.py | dmxj/icv | 0b074ec9475f2c70038d2e8b7166414fd5b93e61 | [
"MIT"
] | null | null | null | icv/image/io.py | dmxj/icv | 0b074ec9475f2c70038d2e8b7166414fd5b93e61 | [
"MIT"
] | 1 | 2020-03-20T03:44:04.000Z | 2020-03-20T03:44:04.000Z | # -*- coding: UTF-8 -*-
import cv2
import numpy as np
from ..utils import is_str, is_seq, check_file_exist, USE_OPENCV2, mkdir, np_to_base64
import os
from PIL import Image
if not USE_OPENCV2:
from cv2 import IMREAD_COLOR, IMREAD_GRAYSCALE, IMREAD_UNCHANGED
else:
from cv2 import CV_LOAD_IMAGE_COLOR as IMREAD_C... | 30.19697 | 104 | 0.646011 |
f4a233f75aa0e9785de92387095aade0b8c0a5b7 | 29,365 | py | Python | cirq-ionq/cirq_ionq/ionq_client_test.py | dabacon/Cirq | 54286063f679d67501ff1b905cd16b879feaae27 | [
"Apache-2.0"
] | 1 | 2022-02-02T07:13:54.000Z | 2022-02-02T07:13:54.000Z | cirq-ionq/cirq_ionq/ionq_client_test.py | bradyb/Cirq | 610b0d4ea3a7862169610797266734c844ddcc1f | [
"Apache-2.0"
] | 1 | 2020-04-03T20:23:20.000Z | 2020-04-03T20:23:20.000Z | cirq-ionq/cirq_ionq/ionq_client_test.py | bradyb/Cirq | 610b0d4ea3a7862169610797266734c844ddcc1f | [
"Apache-2.0"
] | 2 | 2021-09-22T11:16:46.000Z | 2021-09-23T12:55:22.000Z | # Copyright 2020 The Cirq Developers
#
# 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 ... | 38.638158 | 99 | 0.692423 |
fdacbb90a2b2ec6ed38947b264d00a05385d4358 | 598 | py | Python | danilacasito_drutils/parse.py | danilacasito/drutils | adb9558ca98bf7f3cd93ad4715a9c1eff8c1880c | [
"BSD-3-Clause"
] | null | null | null | danilacasito_drutils/parse.py | danilacasito/drutils | adb9558ca98bf7f3cd93ad4715a9c1eff8c1880c | [
"BSD-3-Clause"
] | null | null | null | danilacasito_drutils/parse.py | danilacasito/drutils | adb9558ca98bf7f3cd93ad4715a9c1eff8c1880c | [
"BSD-3-Clause"
] | null | null | null | def argparse(text):
"""
Parses all the arguments of the text that you pass in the first argument and returns a list with your arguments separated
Example:
parser.argparse('"Hello" "World" "How are you"')
With the example, it should return:
["Hello", "World", "How are you"]
"""
sho = False
args = []
e = [... | 19.290323 | 122 | 0.575251 |
5012da2694ed3edc1cb27fa12e6a28d4fda55806 | 10,475 | py | Python | ipython-7.29.0/docs/source/conf.py | JohnLauFoo/clc_packages_Yu | 259f01d9b5c02154ce258734d519ae8995cd0991 | [
"MIT"
] | 1 | 2021-11-13T17:21:44.000Z | 2021-11-13T17:21:44.000Z | ipython-7.29.0/docs/source/conf.py | JohnLauFoo/clc_packages_Yu | 259f01d9b5c02154ce258734d519ae8995cd0991 | [
"MIT"
] | null | null | null | ipython-7.29.0/docs/source/conf.py | JohnLauFoo/clc_packages_Yu | 259f01d9b5c02154ce258734d519ae8995cd0991 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# IPython documentation build configuration file.
# NOTE: This file has been edited manually from the auto-generated one from
# sphinx. Do NOT delete and re-generate. If any changes from sphinx are
# needed, generate a scratch one and merge by hand any new fields needed.
#
# This file is e... | 32.836991 | 110 | 0.691647 |
de5c253e6b1f463a216f218a235176125e59cd02 | 7,740 | py | Python | mindspore/ops/operations/image_ops.py | GuoSuiming/mindspore | 48afc4cfa53d970c0b20eedfb46e039db2a133d5 | [
"Apache-2.0"
] | 55 | 2020-12-17T10:26:06.000Z | 2022-03-28T07:18:26.000Z | mindspore/ops/operations/image_ops.py | forwhat461/mindspore | 59a277756eb4faad9ac9afcc7fd526e8277d4994 | [
"Apache-2.0"
] | null | null | null | mindspore/ops/operations/image_ops.py | forwhat461/mindspore | 59a277756eb4faad9ac9afcc7fd526e8277d4994 | [
"Apache-2.0"
] | 14 | 2021-01-29T02:39:47.000Z | 2022-03-23T05:00:26.000Z | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 54.507042 | 119 | 0.64677 |
d81ba30b52c6611caf1f6ed95219220fce3ca9e1 | 11,903 | py | Python | tests/intensive/dataset_zoo_tests.py | Bukkster/fiftyone | c061216de5094131c8ce8718d8a6ac58056b003e | [
"Apache-2.0"
] | 3 | 2022-01-18T06:13:33.000Z | 2022-02-14T13:28:23.000Z | tests/intensive/dataset_zoo_tests.py | Bukkster/fiftyone | c061216de5094131c8ce8718d8a6ac58056b003e | [
"Apache-2.0"
] | null | null | null | tests/intensive/dataset_zoo_tests.py | Bukkster/fiftyone | c061216de5094131c8ce8718d8a6ac58056b003e | [
"Apache-2.0"
] | null | null | null | """
Dataset zoo tests.
You must run these tests interactively as follows::
pytest tests/intensive/dataset_zoo_tests.py -s -k <test_case>
| Copyright 2017-2022, Voxel51, Inc.
| `voxel51.com <https://voxel51.com/>`_
|
"""
import unittest
import fiftyone as fo
import fiftyone.zoo as foz
from fiftyone import ViewFi... | 25.708423 | 79 | 0.588843 |
4606f4082c94771963db583fb8fb5b7b2c4b66fd | 19,746 | py | Python | security_monkey/tests/auditors/github/test_repo_auditor.py | boladmin/security_monkey | c28592ffd518fa399527d26262683fc860c30eef | [
"Apache-2.0"
] | 4,258 | 2015-01-04T22:06:10.000Z | 2022-03-31T23:40:27.000Z | security_monkey/tests/auditors/github/test_repo_auditor.py | boladmin/security_monkey | c28592ffd518fa399527d26262683fc860c30eef | [
"Apache-2.0"
] | 1,013 | 2015-01-12T02:31:03.000Z | 2021-09-16T19:09:03.000Z | security_monkey/tests/auditors/github/test_repo_auditor.py | boladmin/security_monkey | c28592ffd518fa399527d26262683fc860c30eef | [
"Apache-2.0"
] | 965 | 2015-01-11T21:06:07.000Z | 2022-03-17T16:53:57.000Z | # Copyright 2017 Netflix, 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... | 47.580723 | 117 | 0.653955 |
508af2bd2cf64e795b1122efb135f8874da7671f | 20,106 | py | Python | applications/admin/languages/de.py | redhumus/localgovmapviewer | d1903832cd18cd29e8fb5cfaed570767f484b66f | [
"BSD-3-Clause"
] | null | null | null | applications/admin/languages/de.py | redhumus/localgovmapviewer | d1903832cd18cd29e8fb5cfaed570767f484b66f | [
"BSD-3-Clause"
] | null | null | null | applications/admin/languages/de.py | redhumus/localgovmapviewer | d1903832cd18cd29e8fb5cfaed570767f484b66f | [
"BSD-3-Clause"
] | null | null | null | # coding: utf8
# Translation by: Klaus Kappel <kkappel@yahoo.de>
{
'!langcode!': 'de',
'!langname!': 'Deutsch',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Update" ist ein optionaler Ausdruck wie "Feld1 = \'newvalue". JOIN Ergebnisse k?nnen nicht... | 52.496084 | 772 | 0.724659 |
22878093c7c1814f735522e55cf0f62b7d28de83 | 4,419 | py | Python | electrumx/server/controller.py | theaudaxproject/electrumx-server-audax | 276b9dfe2009516f5aa7ff86c8f666dbc69fbfb6 | [
"MIT"
] | null | null | null | electrumx/server/controller.py | theaudaxproject/electrumx-server-audax | 276b9dfe2009516f5aa7ff86c8f666dbc69fbfb6 | [
"MIT"
] | null | null | null | electrumx/server/controller.py | theaudaxproject/electrumx-server-audax | 276b9dfe2009516f5aa7ff86c8f666dbc69fbfb6 | [
"MIT"
] | 3 | 2018-08-16T12:30:10.000Z | 2019-10-01T00:46:27.000Z | # Copyright (c) 2016-2017, Neil Booth
#
# All rights reserved.
#
# See the file "LICENCE" for information about the copyright
# and warranty status of this software.
from asyncio import Event
from aiorpcx import _version as aiorpcx_version, TaskGroup
import electrumx
from electrumx.lib.server_base import ServerBase
... | 38.763158 | 79 | 0.668477 |
c061b239f3c13c7fe684eb920d4c9e2908d821a1 | 11,502 | py | Python | docs/conf.py | cikai/lasagne-sample | bb5e6cd35d09e984a7895db664cd344dee34aa1d | [
"MIT"
] | null | null | null | docs/conf.py | cikai/lasagne-sample | bb5e6cd35d09e984a7895db664cd344dee34aa1d | [
"MIT"
] | null | null | null | docs/conf.py | cikai/lasagne-sample | bb5e6cd35d09e984a7895db664cd344dee34aa1d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Lasagne documentation build configuration file, created by
# sphinx-quickstart on Sat Nov 8 11:00:12 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# A... | 32.038997 | 79 | 0.702226 |
fbe11ee1b54340c89c30f000c67cbaa376e0508a | 3,028 | py | Python | scripts/scan_by_hostname_or_folder.py | NeolithEra/BBScan | d754e9664d05e0e80ec879ebed227ad713976196 | [
"Apache-2.0"
] | 1 | 2020-04-18T15:36:55.000Z | 2020-04-18T15:36:55.000Z | scripts/scan_by_hostname_or_folder.py | 321811788/BBScan | af852f3d0f2d98a0c5fde5823a15ec8d29c520ea | [
"Apache-2.0"
] | null | null | null | scripts/scan_by_hostname_or_folder.py | 321811788/BBScan | af852f3d0f2d98a0c5fde5823a15ec8d29c520ea | [
"Apache-2.0"
] | 1 | 2020-04-18T15:36:59.000Z | 2020-04-18T15:36:59.000Z | # /{hostname_or_folder}.zip {status=206} {type="application/"} {root_only}
# /{hostname_or_folder}.rar {status=206} {type="application/"} {root_only}
# /{hostname_or_folder}.tar.gz {status=206} {type="application/"} {root_only}
# /{hostname_or_folder}.tar.bz2 {status=206} {typ... | 56.074074 | 111 | 0.554491 |
3fd9d994ab4fc3cd87f4ca8f77e3b4fe363bfec8 | 6,577 | py | Python | exavault/models/form_entry_attributes.py | ExaVault/evapi-python | 769bfa9fbb683f2b4653ca2564029ffb72445c8c | [
"MIT"
] | null | null | null | exavault/models/form_entry_attributes.py | ExaVault/evapi-python | 769bfa9fbb683f2b4653ca2564029ffb72445c8c | [
"MIT"
] | 3 | 2017-07-13T20:58:05.000Z | 2019-08-02T19:08:37.000Z | exavault/models/form_entry_attributes.py | ExaVault/evapi-python | 769bfa9fbb683f2b4653ca2564029ffb72445c8c | [
"MIT"
] | 4 | 2016-11-16T00:14:23.000Z | 2020-09-24T14:50:46.000Z | # coding: utf-8
"""
ExaVault API
See our API reference documentation at https://www.exavault.com/developer/api-docs/ # noqa: E501
OpenAPI spec version: 2.0
Contact: support@exavault.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
i... | 28.720524 | 104 | 0.575338 |
2505e47b63ade44fcf18a79a33979b0fac97f8af | 983 | py | Python | scribbler/migrations/0001_initial.py | viaregio/django-scribbler | 69175051c827e09988ec734be7aac898ae58b78d | [
"BSD-2-Clause"
] | 56 | 2015-01-19T00:13:51.000Z | 2021-12-16T14:32:09.000Z | scribbler/migrations/0001_initial.py | viaregio/django-scribbler | 69175051c827e09988ec734be7aac898ae58b78d | [
"BSD-2-Clause"
] | 76 | 2015-01-10T20:44:01.000Z | 2021-12-20T16:33:29.000Z | scribbler/migrations/0001_initial.py | viaregio/django-scribbler | 69175051c827e09988ec734be7aac898ae58b78d | [
"BSD-2-Clause"
] | 17 | 2015-01-27T11:09:20.000Z | 2020-11-04T19:57:33.000Z | # -*- coding: utf-8 -*-
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Scribble',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_cre... | 35.107143 | 114 | 0.560529 |
36e620b381466ebc0303598d989e3f8ce8429ece | 112 | py | Python | src/BOJ/boj_2562.py | onehowon/-python | c9f5154c2884aee3b33804e14c02d7d0be29b926 | [
"Apache-2.0"
] | 23 | 2020-09-01T08:32:06.000Z | 2021-11-16T07:26:21.000Z | src/BOJ/boj_2562.py | onehowon/-python | c9f5154c2884aee3b33804e14c02d7d0be29b926 | [
"Apache-2.0"
] | null | null | null | src/BOJ/boj_2562.py | onehowon/-python | c9f5154c2884aee3b33804e14c02d7d0be29b926 | [
"Apache-2.0"
] | 2 | 2020-12-07T00:47:49.000Z | 2021-09-05T13:25:28.000Z | # 2562 최댓값
numbers = [int(input()) for _ in range(9)]
print(max(numbers))
print(numbers.index(max(numbers)) + 1) | 28 | 42 | 0.6875 |
3a97ac04373925ce7516f650d5034434fcf297d6 | 12,610 | py | Python | etf_20_lundong.py | transformeris/elastic_net_fin | 18c252f1aafe21090c6daa1ffdb8fa0725ccb8e9 | [
"MIT"
] | null | null | null | etf_20_lundong.py | transformeris/elastic_net_fin | 18c252f1aafe21090c6daa1ffdb8fa0725ccb8e9 | [
"MIT"
] | null | null | null | etf_20_lundong.py | transformeris/elastic_net_fin | 18c252f1aafe21090c6daa1ffdb8fa0725ccb8e9 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import statsmodels.api as sm
from statsmodels import regression
import matplotlib.pyplot as plt
import requests
import re
import bs4
import akshare as ak
import pickle
import numpy as np
from datetime import datetime
from datetime import date
def save_obj(obj, name):
with ope... | 30.385542 | 120 | 0.61586 |
ff8488ddfd06f7516a174ff9afc6b76a12b11c0c | 6,562 | py | Python | django_cradmin/apps/cradmin_invite/tests/test_accept.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 11 | 2015-07-05T16:57:58.000Z | 2020-11-24T16:58:19.000Z | django_cradmin/apps/cradmin_invite/tests/test_accept.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 91 | 2015-01-08T22:38:13.000Z | 2022-02-10T10:25:27.000Z | django_cradmin/apps/cradmin_invite/tests/test_accept.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 3 | 2016-12-07T12:19:24.000Z | 2018-10-03T14:04:18.000Z | from datetime import datetime, timedelta
import arrow
import htmls
from django.conf import settings
from django.contrib.auth.models import AnonymousUser
from django.core.exceptions import PermissionDenied
from django.http import HttpResponse
from django.test import RequestFactory, TestCase
from django.utils import tim... | 45.569444 | 108 | 0.698872 |
f550af2ba2f8513b0b8f4e1f28bdc9e85d69589a | 2,688 | py | Python | bin/ML/policy_to_pandv.py | ArtaSeify/BOSS-SC2 | a86db4bcb1cd0a9cfd71c4583ccb9bd87c0cb415 | [
"MIT"
] | null | null | null | bin/ML/policy_to_pandv.py | ArtaSeify/BOSS-SC2 | a86db4bcb1cd0a9cfd71c4583ccb9bd87c0cb415 | [
"MIT"
] | null | null | null | bin/ML/policy_to_pandv.py | ArtaSeify/BOSS-SC2 | a86db4bcb1cd0a9cfd71c4583ccb9bd87c0cb415 | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow.keras import layers
from data_loader import DataLoader
import model
from math import floor, ceil
import os
import argparse
import json
parser = argparse.ArgumentParser()
parser.add_argument("save_name", help="Name of model to save")
parser.add_argument("--load_model", help="Name... | 37.333333 | 211 | 0.725074 |
673a12ee2ee64fc0395ef7fec98019028d701059 | 804 | py | Python | dags/example_nvidia_smi.py | Writtic/nvidia_docker_operator | 034f1362a8819456117e90e898e09cd759960c6a | [
"Apache-2.0"
] | null | null | null | dags/example_nvidia_smi.py | Writtic/nvidia_docker_operator | 034f1362a8819456117e90e898e09cd759960c6a | [
"Apache-2.0"
] | null | null | null | dags/example_nvidia_smi.py | Writtic/nvidia_docker_operator | 034f1362a8819456117e90e898e09cd759960c6a | [
"Apache-2.0"
] | 1 | 2021-05-10T13:54:18.000Z | 2021-05-10T13:54:18.000Z | from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.operators.nvidia_docker_operator import NvidiaDockerOperator
from datetime import datetime, timedelta
import os
START = datetime.combine(datetime.today() - timedelta(days=2),
datetime.min.time()) + ti... | 26.8 | 79 | 0.718905 |
0b1c3b5d2d6b3cc3d13c00a250c9ce916d0b7820 | 2,819 | py | Python | test/unit/mongo_db_data/insert_doc.py | mjpernot/mongo-data | 9eb22ff06aa5b18ad3a4526bb142f22ad7904093 | [
"MIT"
] | null | null | null | test/unit/mongo_db_data/insert_doc.py | mjpernot/mongo-data | 9eb22ff06aa5b18ad3a4526bb142f22ad7904093 | [
"MIT"
] | null | null | null | test/unit/mongo_db_data/insert_doc.py | mjpernot/mongo-data | 9eb22ff06aa5b18ad3a4526bb142f22ad7904093 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Classification (U)
"""Program: insert_doc.py
Description: Unit testing of insert_doc in mongo_db_data.py.
Usage:
test/unit/mongo_db_data/insert_doc.py
Arguments:
"""
# Libraries and Global Variables
# Standard
import sys
import os
if sys.version_info < (2, 7):
impor... | 18.424837 | 74 | 0.607308 |
7876216170441fb3224312a3245f969952c766da | 992 | py | Python | undeployed/legacy/Landsat/LTKCloudDetector_ArcInterface.py | NASA-DEVELOP/dnppy | 8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b | [
"NASA-1.3"
] | 65 | 2015-09-10T12:59:56.000Z | 2022-02-27T22:09:03.000Z | undeployed/legacy/Landsat/LTKCloudDetector_ArcInterface.py | snowzm/dnppy | 8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b | [
"NASA-1.3"
] | 40 | 2015-04-08T19:23:30.000Z | 2015-08-04T15:53:11.000Z | undeployed/legacy/Landsat/LTKCloudDetector_ArcInterface.py | snowzm/dnppy | 8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b | [
"NASA-1.3"
] | 45 | 2015-08-14T19:09:38.000Z | 2022-02-15T18:53:16.000Z | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: qgeddes
#
# Created: 26/04/2013
# Copyright: (c) qgeddes 2013
# Licence: <your licence>
#-------------------------------------------------------------------------------
import L... | 30.060606 | 118 | 0.664315 |
1af9d07a57620b4f3e87a17f70bf204ff1725229 | 61,195 | py | Python | tensorflow/python/distribute/coordinator/cluster_coordinator.py | weikhor/tensorflow | ce047fc05c7b5ff54868ba53d724d9c171c4adbb | [
"Apache-2.0"
] | 2 | 2021-06-20T13:42:45.000Z | 2021-06-23T04:48:28.000Z | tensorflow/python/distribute/coordinator/cluster_coordinator.py | CaptainGizzy21/tensorflow | 3457a2b122e50b4d44ceaaed5a663d635e5c22df | [
"Apache-2.0"
] | 2 | 2021-07-27T10:59:19.000Z | 2021-12-12T07:42:52.000Z | tensorflow/python/distribute/coordinator/cluster_coordinator.py | CaptainGizzy21/tensorflow | 3457a2b122e50b4d44ceaaed5a663d635e5c22df | [
"Apache-2.0"
] | 1 | 2021-02-20T22:13:45.000Z | 2021-02-20T22:13:45.000Z | # Lint as: python3
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 41.125672 | 115 | 0.721481 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.