hexsha stringlengths 40 40 | size int64 1 1.03M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 239 | max_stars_repo_name stringlengths 5 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 239 | max_issues_repo_name stringlengths 5 130 | max_issues_repo_head_hexsha stringlengths 40 78 | 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 3 239 | max_forks_repo_name stringlengths 5 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.03M | avg_line_length float64 1 958k | max_line_length int64 1 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a17ef764236249e443683f2dbe9c08a5529c01e | 6,001 | py | Python | asposewordscloud/models/requests/insert_style_request.py | rizwanniazigroupdocs/aspose-words-cloud-python | b943384a1e3c0710cc84df74119e6edf7356037e | [
"MIT"
] | null | null | null | asposewordscloud/models/requests/insert_style_request.py | rizwanniazigroupdocs/aspose-words-cloud-python | b943384a1e3c0710cc84df74119e6edf7356037e | [
"MIT"
] | null | null | null | asposewordscloud/models/requests/insert_style_request.py | rizwanniazigroupdocs/aspose-words-cloud-python | b943384a1e3c0710cc84df74119e6edf7356037e | [
"MIT"
] | null | null | null | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose" file="insert_style_request.py">
# Copyright (c) 2020 Aspose.Words for Cloud
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# ... | 48.395161 | 255 | 0.652725 |
4a17f009d029734bdfc8e417b0aaf0013ca43b6d | 244 | py | Python | apps/listings/urls.py | csyu12/RS_System | 940b58e776dc59c7d287975bf145acdbb85d1018 | [
"MIT"
] | null | null | null | apps/listings/urls.py | csyu12/RS_System | 940b58e776dc59c7d287975bf145acdbb85d1018 | [
"MIT"
] | null | null | null | apps/listings/urls.py | csyu12/RS_System | 940b58e776dc59c7d287975bf145acdbb85d1018 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'listings'
urlpatterns = [
path('', views.index, name='listings'),
path('<int:listing_id>', views.listing, name='listing'),
path('search', views.search, name='search'),
]
| 24.4 | 60 | 0.668033 |
4a17f1aada96ed8396fa9af2358223a6f115491b | 3,596 | py | Python | glue/plugins/dendro_viewer/tests/test_data_factory.py | ejeschke/glue | 21689e3474aeaeb70e258d76c60755596856976c | [
"BSD-3-Clause"
] | 3 | 2015-09-10T22:23:55.000Z | 2019-04-04T18:47:33.000Z | glue/plugins/dendro_viewer/tests/test_data_factory.py | ejeschke/glue | 21689e3474aeaeb70e258d76c60755596856976c | [
"BSD-3-Clause"
] | null | null | null | glue/plugins/dendro_viewer/tests/test_data_factory.py | ejeschke/glue | 21689e3474aeaeb70e258d76c60755596856976c | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, division, print_function
import os
import pytest
import numpy as np
from numpy.testing import assert_array_equal
from glue.tests.helpers import make_file
from glue.core.data_factories.helpers import find_factory
from glue.core import data_factories as df
from glue.tests.helpe... | 37.458333 | 998 | 0.716908 |
4a17f1c398c8021c2cabc4e1a6b2a87f1eb7a149 | 989 | py | Python | sazabi/plugins/imgur.py | oliverelias/sazabi | 53e2c5fe5a823bb5814b3c9a614adee689fe3d2a | [
"MIT"
] | null | null | null | sazabi/plugins/imgur.py | oliverelias/sazabi | 53e2c5fe5a823bb5814b3c9a614adee689fe3d2a | [
"MIT"
] | 1 | 2018-08-25T04:13:25.000Z | 2018-08-25T04:13:25.000Z | sazabi/plugins/imgur.py | oliverelias/sazabi | 53e2c5fe5a823bb5814b3c9a614adee689fe3d2a | [
"MIT"
] | 2 | 2016-08-26T06:46:33.000Z | 2018-08-23T07:55:57.000Z | import logging
from random import choice
from sazabi.types import SazabiBotPlugin
class Imgur(SazabiBotPlugin):
async def parse(self, client, message, *args, **kwargs):
imgur_client = kwargs.get('imgur')
pic = None
if message.content == "~imgur":
self.logger.debug('Processing... | 30.90625 | 86 | 0.614762 |
4a17f1c5c2b44c0b6413380c61c45897ffb8dfa7 | 2,570 | py | Python | fix_mri_names.py | nordme/nordme_work_repo | 950a5077730885330a4975c4ca1bd3c51903a1a6 | [
"MIT"
] | null | null | null | fix_mri_names.py | nordme/nordme_work_repo | 950a5077730885330a4975c4ca1bd3c51903a1a6 | [
"MIT"
] | null | null | null | fix_mri_names.py | nordme/nordme_work_repo | 950a5077730885330a4975c4ca1bd3c51903a1a6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""This script looks up folders in a given directory,
chooses genz folders and files that follow mri naming conventions,
and renames them with the new convention."""
import os
import os.path as op
import fnmatch as fm
# get and sort all the folders from a directory
parent_dir = '/brainstudio... | 35.205479 | 105 | 0.618288 |
4a17f21d02fc89c19f5471830e16e6e19f1b3dba | 10,302 | py | Python | g3median_gcn_sneg-syme-2rl.py | Paeans/phylognn | 45048d2e68af7c9114ada7e3ede9e765d10fe0a1 | [
"MIT"
] | null | null | null | g3median_gcn_sneg-syme-2rl.py | Paeans/phylognn | 45048d2e68af7c9114ada7e3ede9e765d10fe0a1 | [
"MIT"
] | null | null | null | g3median_gcn_sneg-syme-2rl.py | Paeans/phylognn | 45048d2e68af7c9114ada7e3ede9e765d10fe0a1 | [
"MIT"
] | null | null | null | import time
import numpy as np
import torch
from torch.optim.lr_scheduler import ReduceLROnPlateau
# from torch_geometric.nn import VGAE
from torch_geometric.loader import DataLoader
from torch_geometric.utils import (degree, negative_sampling,
batched_negative_sampling,
... | 36.274648 | 105 | 0.601922 |
4a17f22dce88c6fad779ff2d3ea47a5a05b47ae7 | 862 | py | Python | data_util.py | koyappe/MyHAN | d088812f6e0dc00a45fb478f6df05be81aac202c | [
"MIT"
] | null | null | null | data_util.py | koyappe/MyHAN | d088812f6e0dc00a45fb478f6df05be81aac202c | [
"MIT"
] | null | null | null | data_util.py | koyappe/MyHAN | d088812f6e0dc00a45fb478f6df05be81aac202c | [
"MIT"
] | null | null | null | import numpy as np
#import cupy
def batch(inputs):
batch_size = len(inputs)
#print(batch_size)
document_sizes = np.array([len(doc) for doc in inputs], dtype=np.int32)
#print(document_sizes)
document_size = document_sizes.max()
#print(document_size)
#for doc in inputs:
#for sent in doc:
#prin... | 31.925926 | 89 | 0.697216 |
4a17f256388fd83ea41f1c9659733895ca5e2f63 | 4,058 | py | Python | kolter_wong/convex_adversarial/utils.py | anonymous2398384/provable_robustness_max_linear_regions | 529165d9047261813bc068997415f668c9675119 | [
"BSD-3-Clause"
] | 34 | 2019-03-10T22:16:24.000Z | 2021-09-23T22:22:27.000Z | kolter_wong/convex_adversarial/utils.py | anonymous2398384/provable_robustness_max_linear_regions | 529165d9047261813bc068997415f668c9675119 | [
"BSD-3-Clause"
] | 2 | 2019-09-24T16:18:55.000Z | 2021-03-06T20:57:33.000Z | kolter_wong/convex_adversarial/utils.py | anonymous2398384/provable_robustness_max_linear_regions | 529165d9047261813bc068997415f668c9675119 | [
"BSD-3-Clause"
] | 9 | 2019-03-13T17:35:36.000Z | 2021-01-15T02:37:23.000Z | import torch.nn as nn
###########################################
# Helper function to extract fully #
# shaped bias terms #
###########################################
def full_bias(l, n=None):
# expands the bias to the proper size. For convolutional layers, a full
# output dime... | 31.952756 | 108 | 0.539921 |
4a17f292c6d751107c2b61c282e4ff0c07a07e51 | 1,076 | py | Python | src/my_happy_modin/backends/__init__.py | ggservice007/my-happy-modin | ab293ecfa04516a5c9f76284e09b45cdd7588186 | [
"Apache-2.0"
] | null | null | null | src/my_happy_modin/backends/__init__.py | ggservice007/my-happy-modin | ab293ecfa04516a5c9f76284e09b45cdd7588186 | [
"Apache-2.0"
] | 2 | 2021-01-27T11:25:26.000Z | 2021-01-27T12:47:53.000Z | src/my_happy_modin/backends/__init__.py | ggservice007/my-happy-modin | ab293ecfa04516a5c9f76284e09b45cdd7588186 | [
"Apache-2.0"
] | null | null | null | # Licensed to my_happy_modin Development Team under one or more contributor license agreements.
# See the NOTICE file distributed with this work for additional information regarding
# copyright ownership. The my_happy_modin Development Team licenses this file to you under the
# Apache License, Version 2.0 (the "Licens... | 44.833333 | 95 | 0.787175 |
4a17f33d0cea635a1a4ed35a48e09c8c2d4d55c2 | 65,968 | py | Python | tests/apollo/test_skvbc_reconfiguration.py | ananpal/concord-bft | c1d24020c0bcf8a445458c389b92a80dd38bcd0c | [
"Apache-2.0"
] | null | null | null | tests/apollo/test_skvbc_reconfiguration.py | ananpal/concord-bft | c1d24020c0bcf8a445458c389b92a80dd38bcd0c | [
"Apache-2.0"
] | null | null | null | tests/apollo/test_skvbc_reconfiguration.py | ananpal/concord-bft | c1d24020c0bcf8a445458c389b92a80dd38bcd0c | [
"Apache-2.0"
] | null | null | null | # Concord
#
# Copyright (c) 2020 VMware, Inc. All Rights Reserved.
#
# This product is licensed to you under the Apache 2.0 license (the "License").
# You may not use this product except in compliance with the Apache 2.0 License.
#
# This product may include a number of subcomponents with separate copyright
# notices a... | 50.472839 | 157 | 0.644373 |
4a17f3e57c1eea69c09dc738223f0a201d7a2cd4 | 1,797 | gyp | Python | third_party/webrtc/src/chromium/src/base/android/jni_generator/jni_generator.gyp | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 20 | 2015-08-26T06:46:00.000Z | 2019-02-27T09:05:58.000Z | third_party/webrtc/src/chromium/src/base/android/jni_generator/jni_generator.gyp | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 1 | 2016-01-29T00:54:49.000Z | 2016-01-29T00:54:49.000Z | third_party/webrtc/src/chromium/src/base/android/jni_generator/jni_generator.gyp | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 7 | 2016-02-09T09:28:14.000Z | 2020-07-25T19:03:36.000Z | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'jni_generator_py_tests',
'type': 'none',
'variables': {
'stamp': '<(INTERMEDIATE_DIR)/jn... | 26.043478 | 78 | 0.509182 |
4a17f4037adc1da536f554fe7fb27460b7eeaf47 | 6,973 | py | Python | cartridge/shop/checkout.py | readevalprint/cartridge | 757b051774817eefd8f459eabf10e307bdd13381 | [
"BSD-2-Clause"
] | 1 | 2015-08-15T09:12:25.000Z | 2015-08-15T09:12:25.000Z | cartridge/shop/checkout.py | readevalprint/cartridge | 757b051774817eefd8f459eabf10e307bdd13381 | [
"BSD-2-Clause"
] | null | null | null | cartridge/shop/checkout.py | readevalprint/cartridge | 757b051774817eefd8f459eabf10e307bdd13381 | [
"BSD-2-Clause"
] | null | null | null | """
Checkout process utilities.
"""
from django.contrib.auth.models import SiteProfileNotAvailable
from django.utils.translation import ugettext as _
from django.template.loader import get_template, TemplateDoesNotExist
from mezzanine.conf import settings
from mezzanine.utils.email import send_mail_template
from car... | 41.260355 | 78 | 0.666858 |
4a17f66c8e3ada291f8aff91aed12406517e45ac | 608 | py | Python | Back-End/Python/Basics/Part -2 - Iteration & Generators/04 - Iteration Tools/08_ziplongest.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 25 | 2021-04-28T02:51:26.000Z | 2022-03-24T13:58:04.000Z | Back-End/Python/Basics/Part -2 - Iteration & Generators/04 - Iteration Tools/08_ziplongest.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 1 | 2022-03-03T23:33:41.000Z | 2022-03-03T23:35:41.000Z | Back-End/Python/Basics/Part -2 - Iteration & Generators/04 - Iteration Tools/08_ziplongest.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 15 | 2021-05-30T01:35:20.000Z | 2022-03-25T12:38:25.000Z | from itertools import zip_longest
l1 = [1, 2, 3, 4, 5]
l2 = [1, 2, 3, 4]
l3 = [1, 2, 3]
print(list(zip_longest(l1, l2, l3, fillvalue='N/A')))
# [(1, 1, 1), (2, 2, 2), (3, 3, 3), (4, 4, 'N/A'), (5, 'N/A', 'N/A')]
def squares():
i = 0
while True:
yield i ** 2
i += 1
def cubes():
i = 0
... | 15.2 | 69 | 0.427632 |
4a17f67116d0bb5d5a1edbb4fdd5f7b2dc0d0bcc | 1,207 | py | Python | src/oneNeuron/perceptron.py | gaurav98094/Perceptron_pypi | ff033b6e34c47decef9e3d6d95f00240debd4024 | [
"MIT"
] | 1 | 2021-11-03T06:27:47.000Z | 2021-11-03T06:27:47.000Z | src/oneNeuron/perceptron.py | gaurav98094/Perceptron_pypi | ff033b6e34c47decef9e3d6d95f00240debd4024 | [
"MIT"
] | null | null | null | src/oneNeuron/perceptron.py | gaurav98094/Perceptron_pypi | ff033b6e34c47decef9e3d6d95f00240debd4024 | [
"MIT"
] | null | null | null | """Perceptron Class
Returns:
[python Object]: returns model object
"""
import numpy as np
import pandas as pd
import logging
# logging_str = " [ %(asctime)s:%(levelname)s:%(module)s ] : %(message)s"
# logging.basicConfig(level=logging.INFO,format=logging_str)
from tqdm import tqdm
class Perceptron:
def __in... | 26.822222 | 101 | 0.664457 |
4a17f7fac69156f2e07fe309c504cf9d01fa308f | 662 | py | Python | src/braket/_sdk/_version.py | rhennig22/amazon-braket-sdk-python | b6642f859f9556f4862a1006e7abcc17712b0e58 | [
"Apache-2.0"
] | 151 | 2020-08-13T21:26:05.000Z | 2022-03-08T17:07:18.000Z | src/braket/_sdk/_version.py | rhennig22/amazon-braket-sdk-python | b6642f859f9556f4862a1006e7abcc17712b0e58 | [
"Apache-2.0"
] | 169 | 2020-08-13T19:25:52.000Z | 2022-03-29T03:12:15.000Z | src/braket/_sdk/_version.py | rhennig22/amazon-braket-sdk-python | b6642f859f9556f4862a1006e7abcc17712b0e58 | [
"Apache-2.0"
] | 64 | 2020-08-13T21:25:54.000Z | 2022-02-25T23:52:55.000Z | # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompany... | 34.842105 | 72 | 0.740181 |
4a17f87e5bd4247a54680086d006772c3b38775e | 120 | py | Python | py_tdlib/constructors/passport_element_error_source_translation_file.py | Mr-TelegramBot/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 24 | 2018-10-05T13:04:30.000Z | 2020-05-12T08:45:34.000Z | py_tdlib/constructors/passport_element_error_source_translation_file.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 3 | 2019-06-26T07:20:20.000Z | 2021-05-24T13:06:56.000Z | py_tdlib/constructors/passport_element_error_source_translation_file.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 5 | 2018-10-05T14:29:28.000Z | 2020-08-11T15:04:10.000Z | from ..factory import Type
class passportElementErrorSourceTranslationFile(Type):
file_index = None # type: "int32"
| 20 | 54 | 0.783333 |
4a17f8b7e977b19c264a4213ccd6d16a172b7c7e | 1,687 | py | Python | cvxpy/reductions/dcp2cone/dcp2cone.py | NunoEdgarGFlowHub/cvxpy | 43270fcc8af8fc4742f1b3519800b0074f2e6693 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cvxpy/reductions/dcp2cone/dcp2cone.py | NunoEdgarGFlowHub/cvxpy | 43270fcc8af8fc4742f1b3519800b0074f2e6693 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cvxpy/reductions/dcp2cone/dcp2cone.py | NunoEdgarGFlowHub/cvxpy | 43270fcc8af8fc4742f1b3519800b0074f2e6693 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """
Copyright 2013 Steven Diamond, 2017 Akshay Agrawal, 2017 Robin Verschueren
This file is part of CVXPY.
CVXPY is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your optio... | 38.340909 | 78 | 0.721399 |
4a17f9fd14219ae7c60320b452f2c0be121f0f8e | 5,754 | py | Python | dfirtrack_config/migrations/0016_workflows.py | thomas-kropeit/dfirtrack | b1e0e659af7bc8085cfe2d269ddc651f9f4ba585 | [
"Apache-2.0"
] | 273 | 2018-04-18T22:09:15.000Z | 2021-06-04T09:15:48.000Z | dfirtrack_config/migrations/0016_workflows.py | stuhli/dfirtrack | 9260c91e4367b36d4cb1ae7efe4e2d2452f58e6e | [
"Apache-2.0"
] | 75 | 2018-08-31T11:05:37.000Z | 2021-06-08T14:15:07.000Z | dfirtrack_config/migrations/0016_workflows.py | thomas-kropeit/dfirtrack | b1e0e659af7bc8085cfe2d269ddc651f9f4ba585 | [
"Apache-2.0"
] | 61 | 2018-11-12T22:55:48.000Z | 2021-06-06T15:16:16.000Z | # Generated by Django 3.2 on 2021-04-30 13:47
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dfirtrack_main', '0015_added_verbose_name_plural'),
migrations.swappable_dependency(s... | 38.61745 | 85 | 0.497393 |
4a17faace5ebb3e3d9fdeae143215a27df66c56f | 744 | py | Python | eventex/urls.py | ederchristian/wttd | 0fb68b1c47c473051042e15f83e2e8d2f3b1d8c9 | [
"MIT"
] | null | null | null | eventex/urls.py | ederchristian/wttd | 0fb68b1c47c473051042e15f83e2e8d2f3b1d8c9 | [
"MIT"
] | null | null | null | eventex/urls.py | ederchristian/wttd | 0fb68b1c47c473051042e15f83e2e8d2f3b1d8c9 | [
"MIT"
] | null | null | null | """eventex URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | 33.818182 | 77 | 0.693548 |
4a17fabf22c917d19a3c9a7b9dfa2336b2480074 | 3,940 | py | Python | tests/helpers.py | njimenezd/demcompare | d0ad8a63b912555a1ee67fcb21f30e3b9036d0c6 | [
"Apache-2.0"
] | null | null | null | tests/helpers.py | njimenezd/demcompare | d0ad8a63b912555a1ee67fcb21f30e3b9036d0c6 | [
"Apache-2.0"
] | null | null | null | tests/helpers.py | njimenezd/demcompare | d0ad8a63b912555a1ee67fcb21f30e3b9036d0c6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf8
# Copyright (c) 2021 Centre National d'Etudes Spatiales (CNES).
#
# This file is part of demcompare
# (see https://github.com/CNES/demcompare).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# Yo... | 31.774194 | 76 | 0.656091 |
4a17fb0d3f3343e9dbff25cd2c8e5adc99698477 | 3,058 | py | Python | server/www/packages/packages-windows/x86/ldap3/extend/microsoft/modifyPassword.py | zhoulhb/teleport | 54da194697898ef77537cfe7032d774555dc1335 | [
"Apache-2.0"
] | 640 | 2018-09-12T03:14:13.000Z | 2022-03-30T04:38:09.000Z | server/www/packages/packages-windows/x86/ldap3/extend/microsoft/modifyPassword.py | zhoulhb/teleport | 54da194697898ef77537cfe7032d774555dc1335 | [
"Apache-2.0"
] | 175 | 2018-09-10T19:52:20.000Z | 2022-03-30T04:37:30.000Z | server/www/packages/packages-windows/x86/ldap3/extend/microsoft/modifyPassword.py | zhoulhb/teleport | 54da194697898ef77537cfe7032d774555dc1335 | [
"Apache-2.0"
] | 230 | 2018-09-13T02:40:49.000Z | 2022-03-29T11:53:58.000Z | """
"""
# Created on 2015.11.27
#
# Author: Giovanni Cannata
#
# Copyright 2015 - 2018 Giovanni Cannata
#
# This file is part of ldap3.
#
# ldap3 is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Founda... | 41.890411 | 168 | 0.659908 |
4a17fb0fa49bb0247fbb5f5921d8ba05d4873105 | 12,182 | py | Python | sdk/core/azure-servicemanagement-legacy/azure/servicemanagement/websitemanagementservice.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/core/azure-servicemanagement-legacy/azure/servicemanagement/websitemanagementservice.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/core/azure-servicemanagement-legacy/azure/servicemanagement/websitemanagementservice.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | #-------------------------------------------------------------------------
# Copyright (c) Microsoft. 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.apa... | 39.940984 | 147 | 0.606222 |
4a17fb677f2235deaa8d6ec40a06287ae10851f2 | 1,648 | py | Python | config/wsgi.py | VillageBookBuilders/vbb-portal-packend | 9563b492aa93f12fdfed41a905ff185182e97dd8 | [
"MIT"
] | 1 | 2022-03-30T18:12:49.000Z | 2022-03-30T18:12:49.000Z | config/wsgi.py | VillageBookBuilders/vbb-portal-backend | decdec392f7bd585b73e5554b20c17baea5d133d | [
"MIT"
] | 22 | 2022-02-28T02:37:03.000Z | 2022-03-28T02:32:35.000Z | config/wsgi.py | VillageBookBuilders/vbb-portal-packend | 9563b492aa93f12fdfed41a905ff185182e97dd8 | [
"MIT"
] | null | null | null | """
WSGI config for VBB project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` sett... | 42.25641 | 79 | 0.800971 |
4a17fde686b6f8ff958027e05e3040737183a702 | 2,019 | py | Python | mindsdb/libs/helpers/file_helpers.py | aykuttasil/mindsdb | 2c36b6f75f13d7104fe4d3dbb7ca307fa84f45ad | [
"MIT"
] | 1 | 2022-03-14T00:32:53.000Z | 2022-03-14T00:32:53.000Z | mindsdb/libs/helpers/file_helpers.py | aykuttasil/mindsdb | 2c36b6f75f13d7104fe4d3dbb7ca307fa84f45ad | [
"MIT"
] | null | null | null | mindsdb/libs/helpers/file_helpers.py | aykuttasil/mindsdb | 2c36b6f75f13d7104fe4d3dbb7ca307fa84f45ad | [
"MIT"
] | null | null | null | """
*******************************************************
* Copyright (C) 2017 MindsDB Inc. <copyright@mindsdb.com>
*
* This file is part of MindsDB Server.
*
* MindsDB Server can not be copied and/or distributed without the express
* permission of MindsDB Inc
**************************************************... | 30.134328 | 82 | 0.512135 |
4a17fe16df5eb439df84df3fd2c3052ac242135d | 2,002 | py | Python | src/songdkl/argparser/epilogs.py | NickleDave/songdkl | 3ddec26488c0524b0063e3b2510664022f0d097d | [
"BSD-3-Clause"
] | 2 | 2020-12-18T21:07:20.000Z | 2021-08-10T17:21:48.000Z | src/songdkl/argparser/epilogs.py | NickleDave/songdkl | 3ddec26488c0524b0063e3b2510664022f0d097d | [
"BSD-3-Clause"
] | 26 | 2018-12-17T20:21:01.000Z | 2021-01-15T05:26:14.000Z | src/songdkl/argparser/epilogs.py | NickleDave/songdkl | 3ddec26488c0524b0063e3b2510664022f0d097d | [
"BSD-3-Clause"
] | null | null | null | PARSER_EPILOG = """call commands with --help option for further information, e.g. songdkl calculate --help"""
CALCULATE_EPILOG = """
Example
-------
$ songdkl calculate ~/data/bird_data/y25/ ~/data/bird_data/y34br6/ 9 10
Songs should be in mono wave format and have a .wav suffix.
The output is a tab delimited string... | 40.04 | 109 | 0.787213 |
4a17feeff05037b36f5e0b09a80ccc9334f09971 | 3,372 | py | Python | tests/st/ops/ascend/test_aicpu_ops/test_squeeze.py | unseenme/mindspore | 4ba052f0cd9146ac0ccc4880a778706f1b2d0af8 | [
"Apache-2.0"
] | null | null | null | tests/st/ops/ascend/test_aicpu_ops/test_squeeze.py | unseenme/mindspore | 4ba052f0cd9146ac0ccc4880a778706f1b2d0af8 | [
"Apache-2.0"
] | null | null | null | tests/st/ops/ascend/test_aicpu_ops/test_squeeze.py | unseenme/mindspore | 4ba052f0cd9146ac0ccc4880a778706f1b2d0af8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 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... | 29.578947 | 78 | 0.658066 |
4a18003161801d9fdc267e507f6939895c2001a2 | 4,612 | py | Python | quantmod/theming/themes.py | Row64/py-quantmod | f2aaa07dba0dfc9c4c425a92e4e9a5cb8fa553f3 | [
"MIT"
] | null | null | null | quantmod/theming/themes.py | Row64/py-quantmod | f2aaa07dba0dfc9c4c425a92e4e9a5cb8fa553f3 | [
"MIT"
] | null | null | null | quantmod/theming/themes.py | Row64/py-quantmod | f2aaa07dba0dfc9c4c425a92e4e9a5cb8fa553f3 | [
"MIT"
] | null | null | null | """Quandmod themes module
Create your own modules by copying one of the themes and editing it after.
Make sure that colors, traces, additions and layout are all under one
main dict, and add that dict to '_VALID_THEMES' at the bottom of the file.
For readability, files under theming do not follow PEP8 guideline of
no ... | 28.825 | 89 | 0.527103 |
4a180038092f83dc1d9f50cbff38eaf996754cac | 18,278 | py | Python | tests/test_data_cleaner.py | manjebrinkhuis/mediaire_toolbox | 1975338d8765b381527fc3969c3008d6cb4c0735 | [
"MIT"
] | null | null | null | tests/test_data_cleaner.py | manjebrinkhuis/mediaire_toolbox | 1975338d8765b381527fc3969c3008d6cb4c0735 | [
"MIT"
] | 11 | 2019-09-27T15:19:28.000Z | 2022-01-04T13:27:19.000Z | tests/test_data_cleaner.py | manjebrinkhuis/mediaire_toolbox | 1975338d8765b381527fc3969c3008d6cb4c0735 | [
"MIT"
] | 3 | 2019-05-07T09:42:56.000Z | 2022-01-27T13:14:59.000Z | import unittest
import logging
import tempfile
import mock
import shutil
import time
import itertools
import os
from mediaire_toolbox.data_cleaner import DataCleaner
logging.basicConfig(format='%(asctime)s %(levelname)s %(module)s:%(lineno)s '
'%(message)s', level=logging.DEBUG)
class TestDataC... | 37.075051 | 85 | 0.532279 |
4a18005f38f941745a777da0df7c07d6723a9126 | 2,555 | py | Python | tiny-imagenet/generate_poison.py | UMBCvision/universal-litmus-patterns.github.io | 05c60fb01d17707573deda083caf6c44140e20f9 | [
"MIT"
] | 32 | 2020-05-18T04:28:00.000Z | 2022-03-26T08:01:04.000Z | tiny-imagenet/generate_poison.py | UMBCvision/universal-litmus-patterns.github.io | 05c60fb01d17707573deda083caf6c44140e20f9 | [
"MIT"
] | 2 | 2020-07-12T03:11:09.000Z | 2020-09-24T17:46:16.000Z | tiny-imagenet/generate_poison.py | UMBCvision/universal-litmus-patterns.github.io | 05c60fb01d17707573deda083caf6c44140e20f9 | [
"MIT"
] | 5 | 2020-10-08T03:12:20.000Z | 2022-01-20T09:18:25.000Z | import os
import cv2
import glob
from tqdm import tqdm
import random
import numpy as np
import pickle
import matplotlib.pyplot as plt
from skimage.io import imread
def save_image(img, fname):
# img = img.data.numpy()
# img = np.transpose(img, (1, 2, 0))
img = img[: , :, ::-1]
cv2.imwrite(fname, img, [cv2.IMWRITE_P... | 32.75641 | 138 | 0.715851 |
4a1800ea398cd2b09c882bbf142fe44acdf3e545 | 50,293 | py | Python | contrib/mercurial_git_push.py | misery/ExtendedApproval | ec6468cd284ca4abaece3c5edb53118f6d526a0a | [
"MIT"
] | 2 | 2018-01-12T12:41:00.000Z | 2021-11-25T15:15:57.000Z | contrib/mercurial_git_push.py | misery/ExtendedApproval | ec6468cd284ca4abaece3c5edb53118f6d526a0a | [
"MIT"
] | null | null | null | contrib/mercurial_git_push.py | misery/ExtendedApproval | ec6468cd284ca4abaece3c5edb53118f6d526a0a | [
"MIT"
] | 1 | 2017-01-26T10:09:06.000Z | 2017-01-26T10:09:06.000Z | #!/usr/bin/env python
"""A Mercurial/git hook to post to Review Board on push to a central server.
The hook was designed to make posting to Review Board easy.
It allows user to post to Review Board by using the
ordinary 'hg push' or 'git push', without any need to learn or
install RBTools locally.
The hook with Revie... | 34.02774 | 88 | 0.540433 |
4a1803e19eed145cdb9bfb21f057c72950ac66e0 | 109 | py | Python | Aula 10/if_simples.py | mateuschaves/curso-python | 53b2f3b4bf083ae2ce7ea19dd358f49a36becd9d | [
"MIT"
] | 1 | 2018-07-23T04:03:35.000Z | 2018-07-23T04:03:35.000Z | Aula 10/if_simples.py | mateuschaves/curso-python | 53b2f3b4bf083ae2ce7ea19dd358f49a36becd9d | [
"MIT"
] | null | null | null | Aula 10/if_simples.py | mateuschaves/curso-python | 53b2f3b4bf083ae2ce7ea19dd358f49a36becd9d | [
"MIT"
] | null | null | null | tempo = int(input('Quantos anos tem seu carro ? '))
print('carro novo !' if tempo <= 3 else 'carro velho !')
| 36.333333 | 56 | 0.651376 |
4a1803fd770e2eb63e734e0d276f617f80b82c24 | 4,944 | py | Python | influxdb_client/domain/binary_expression.py | wasted925/influxdb-client-python | afee531fd1dc244b3d9d270e262b0a1865a7c89d | [
"MIT"
] | 380 | 2019-09-19T20:20:10.000Z | 2022-03-31T12:59:33.000Z | influxdb_client/domain/binary_expression.py | mikeldiezs/influxdb-client-python | 0c1d1d9ff92dd2b3b4a9b6aa1e8f5b1c02fd48ab | [
"MIT"
] | 362 | 2019-09-16T11:53:29.000Z | 2022-03-29T03:11:59.000Z | influxdb_client/domain/binary_expression.py | mikeldiezs/influxdb-client-python | 0c1d1d9ff92dd2b3b4a9b6aa1e8f5b1c02fd48ab | [
"MIT"
] | 130 | 2019-09-20T08:02:35.000Z | 2022-03-30T16:44:45.000Z | # coding: utf-8
"""
Influx OSS API Service.
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from influxdb_client.do... | 26.580645 | 120 | 0.562095 |
4a180454fa99276cd6419dd5bacd2a83a3af7567 | 20,997 | py | Python | engine/SCons/Defaults.py | cctbx/scons | 9eb46f7e2a965e1041e5b1a6bc941c1e97bceb00 | [
"MIT"
] | 1 | 2020-05-28T17:50:54.000Z | 2020-05-28T17:50:54.000Z | engine/SCons/Defaults.py | cctbx/scons | 9eb46f7e2a965e1041e5b1a6bc941c1e97bceb00 | [
"MIT"
] | 4 | 2018-07-24T05:46:04.000Z | 2018-08-07T06:10:45.000Z | engine/SCons/Defaults.py | cctbx/scons | 9eb46f7e2a965e1041e5b1a6bc941c1e97bceb00 | [
"MIT"
] | 1 | 2018-07-23T10:34:27.000Z | 2018-07-23T10:34:27.000Z | """SCons.Defaults
Builders and other things for the local site. Here's where we'll
duplicate the functionality of autoconf until we move it into the
installation procedure or use something like qmconf.
The code that reads the registry to find MSVC components was borrowed
from distutils.msvccompiler.
"""
#
# Copyri... | 35.348485 | 137 | 0.628518 |
4a1804ac8b28db6fc8d2ede7aa0143ecbff70882 | 1,458 | py | Python | common/setup.py | ZithaChitra/determined | 1466d46dfd6abc56ad65d9904d4173ea62cff771 | [
"Apache-2.0"
] | 1 | 2021-03-29T13:39:45.000Z | 2021-03-29T13:39:45.000Z | common/setup.py | ZithaChitra/determined | 1466d46dfd6abc56ad65d9904d4173ea62cff771 | [
"Apache-2.0"
] | null | null | null | common/setup.py | ZithaChitra/determined | 1466d46dfd6abc56ad65d9904d4173ea62cff771 | [
"Apache-2.0"
] | null | null | null | from setuptools import find_packages, setup
setup(
name="determined-common",
version="0.14.4.dev0",
author="Determined AI",
author_email="hello@determined.ai",
url="https://determined.ai/",
description="Determined Deep Learning Training Platform",
long_description="See https://docs.determin... | 40.5 | 100 | 0.631687 |
4a18052dcb5eca40ebd08578a37bd0f7750cb9a2 | 2,090 | py | Python | tests/testflows/ldap/regression.py | amosnothing/ClickHouse | cf49a839806290c41a3a1ccd5808687d7ccaca78 | [
"Apache-2.0"
] | null | null | null | tests/testflows/ldap/regression.py | amosnothing/ClickHouse | cf49a839806290c41a3a1ccd5808687d7ccaca78 | [
"Apache-2.0"
] | null | null | null | tests/testflows/ldap/regression.py | amosnothing/ClickHouse | cf49a839806290c41a3a1ccd5808687d7ccaca78 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import sys
from testflows.core import *
append_path(sys.path, "..")
from helpers.cluster import Cluster
from helpers.argparser import argparser
from ldap.requirements import *
# Cross-outs of known fails
xfails = {
"connection protocols/tls/tls_require_cert='try'":
[(Fail, "can't be ... | 36.666667 | 108 | 0.697608 |
4a1806928f6a65b3b307f4ced75da875a17f0e56 | 18,051 | py | Python | src/pyhees/section3_2_8.py | BRI-EES-House/pyhees | 7ebe8c24226f0cb7654eea6ac37c5cea35f50e6b | [
"MIT"
] | null | null | null | src/pyhees/section3_2_8.py | BRI-EES-House/pyhees | 7ebe8c24226f0cb7654eea6ac37c5cea35f50e6b | [
"MIT"
] | 3 | 2022-01-04T07:29:52.000Z | 2022-03-19T08:02:51.000Z | src/pyhees/section3_2_8.py | BRI-EES-House/pyhees | 7ebe8c24226f0cb7654eea6ac37c5cea35f50e6b | [
"MIT"
] | 2 | 2022-01-19T07:57:10.000Z | 2022-03-07T00:25:54.000Z | from pyhees.section3_2_b import get_H
from pyhees.section3_2_c import get_nu_H, get_nu_C
from pyhees.section3_4_b_2 import get_glass_spec_category
from pyhees.section3_4 import common, window, door, heatbridge, earthfloor, gamma
from pyhees.section3_3_5 import *
from pyhees.section3_3_6 import *
# ====================... | 30.135225 | 103 | 0.584012 |
4a180b90c0f59ac8b4f11d4b964a589629b0c702 | 5,344 | py | Python | pkgbuilder/main.py | wizzard/pkgbuilder | bf43db3b2a5f2f1fbd0a4eb2cfda2f1036a4bdfb | [
"Apache-2.0"
] | null | null | null | pkgbuilder/main.py | wizzard/pkgbuilder | bf43db3b2a5f2f1fbd0a4eb2cfda2f1036a4bdfb | [
"Apache-2.0"
] | null | null | null | pkgbuilder/main.py | wizzard/pkgbuilder | bf43db3b2a5f2f1fbd0a4eb2cfda2f1036a4bdfb | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import sys
import os
import logging
import argparse
from pkgbuilder.pkgtree import PkgTree
from pkgbuilder.conf import conf
from pkgbuilder.pkgdb import PkgDB
from pkgbuilder.local_dir_tree import local_dir_tree
from pkgbuilder.pkgdb import db
class App(object):
def __init__(... | 30.022472 | 149 | 0.571856 |
4a180c45d840018ce8ad19a57021b65b614fb9e7 | 14,032 | py | Python | experiments/scaling_binning_calibrator/compare_calibrators.py | sdelcore/verified_calibration | e2f0f744d7448a0bc75e6c0d5f345f12a6828dc0 | [
"MIT"
] | 71 | 2019-12-27T21:44:57.000Z | 2022-03-24T03:55:20.000Z | experiments/scaling_binning_calibrator/compare_calibrators.py | AnanyaKumar/verified_calibration | 66baa0d460a6992131927c5df19c9c037c174f04 | [
"MIT"
] | 10 | 2020-12-11T22:21:34.000Z | 2022-02-20T23:20:46.000Z | experiments/scaling_binning_calibrator/compare_calibrators.py | AnanyaKumar/verified_calibration | 66baa0d460a6992131927c5df19c9c037c174f04 | [
"MIT"
] | 16 | 2020-02-04T14:25:32.000Z | 2022-03-05T15:43:01.000Z |
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import rc
import time
import os
import calibration as cal
def eval_top_calibration(probs, eval_probs, labels):
correct = (cal.get_top_predictions(eval_probs) == labels)
data = list(zip(probs, correct))
bins = cal.get_discret... | 45.70684 | 95 | 0.678022 |
4a180c541d30a4f83fe78809ea6aafab906f8f8b | 10,503 | py | Python | velo_payments/models/payor_links_response_links.py | velopaymentsapi/velo-python | 59b39555e9714139b4bf697151cc7d15f6dd510e | [
"Apache-2.0"
] | null | null | null | velo_payments/models/payor_links_response_links.py | velopaymentsapi/velo-python | 59b39555e9714139b4bf697151cc7d15f6dd510e | [
"Apache-2.0"
] | null | null | null | velo_payments/models/payor_links_response_links.py | velopaymentsapi/velo-python | 59b39555e9714139b4bf697151cc7d15f6dd510e | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Velo Payments APIs
## Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor.... | 52.253731 | 4,651 | 0.678282 |
4a180cfac1b523b999860239b59cc4b31c468dc5 | 8,042 | py | Python | flaml/nlp/hpo/searchalgo_auto.py | goncaloperes/FLAML | 0ba58e0acecc788670a1b28f7ceb5908746ec6fc | [
"MIT"
] | 1 | 2021-09-09T07:36:01.000Z | 2021-09-09T07:36:01.000Z | flaml/nlp/hpo/searchalgo_auto.py | goncaloperes/FLAML | 0ba58e0acecc788670a1b28f7ceb5908746ec6fc | [
"MIT"
] | null | null | null | flaml/nlp/hpo/searchalgo_auto.py | goncaloperes/FLAML | 0ba58e0acecc788670a1b28f7ceb5908746ec6fc | [
"MIT"
] | 1 | 2021-12-01T16:23:19.000Z | 2021-12-01T16:23:19.000Z | import itertools
from collections import OrderedDict
import ray
from ray.tune.suggest.optuna import OptunaSearch
from flaml import CFO, BlendSearch
SEARCH_ALGO_MAPPING = OrderedDict(
[
("optuna", OptunaSearch),
("cfo", CFO),
("bs", BlendSearch),
("grid", None),
("gridbert"... | 40.822335 | 122 | 0.593136 |
4a180d1225c3ab5182d600dcfa10ff05a2d53a5d | 190 | py | Python | nhc2_coco/__init__.py | JorisDeRieck/nhc2-coco | 4188525c67a3bc7533b5438ef1e8eff26448c41c | [
"MIT"
] | null | null | null | nhc2_coco/__init__.py | JorisDeRieck/nhc2-coco | 4188525c67a3bc7533b5438ef1e8eff26448c41c | [
"MIT"
] | null | null | null | nhc2_coco/__init__.py | JorisDeRieck/nhc2-coco | 4188525c67a3bc7533b5438ef1e8eff26448c41c | [
"MIT"
] | null | null | null | from .coco import CoCo
from .coco_entity import CoCoEntity
from .coco_light import CoCoLight
from .coco_switch import CoCoSwitch
__all__ = ['CoCo', 'CoCoEntity', 'CoCoLight', 'CoCoSwitch']
| 27.142857 | 59 | 0.784211 |
4a180d408322b5061b42a8f6d1e86d2a057f3276 | 5,301 | py | Python | TensorFace/common/FaceQuality.py | bleakie/MaskInsightface | 94511404eaa7912945fa087e6445a3608c46aaea | [
"Apache-2.0"
] | 269 | 2019-08-20T09:39:44.000Z | 2022-03-12T09:45:29.000Z | TensorFace/common/FaceQuality.py | bleakie/MaskInsightface | 94511404eaa7912945fa087e6445a3608c46aaea | [
"Apache-2.0"
] | 25 | 2019-08-09T03:58:03.000Z | 2021-12-27T08:22:20.000Z | TensorFace/common/FaceQuality.py | bleakie/MaskInsightface | 94511404eaa7912945fa087e6445a3608c46aaea | [
"Apache-2.0"
] | 64 | 2019-08-22T08:39:27.000Z | 2022-03-28T14:02:46.000Z | #!/usr/bin/env python
# coding: utf-8
# # Face Quality Assessment for Face Verification in Video
# https://pdfs.semanticscholar.org/2c0a/caec54ab2585ff807e18b6b9550c44651eab.pdf?_ga=2.118968650.2116578973.1552199994-98267093.1547624592
import cv2
import numpy as np
# get illumination
def illumination(img, bbox):
... | 31 | 138 | 0.610074 |
4a180dd81829b9af63aa364051cf9de05e4b7d29 | 7,276 | py | Python | demo/jupyter-notebook/parsr_client.py | Trafalcon/Parsr | d5aab6d1b4da6c37a30b25062fcaff682daa0a83 | [
"Apache-2.0"
] | 1 | 2020-01-15T03:49:04.000Z | 2020-01-15T03:49:04.000Z | demo/jupyter-notebook/parsr_client.py | Trafalcon/Parsr | d5aab6d1b4da6c37a30b25062fcaff682daa0a83 | [
"Apache-2.0"
] | null | null | null | demo/jupyter-notebook/parsr_client.py | Trafalcon/Parsr | d5aab6d1b4da6c37a30b25062fcaff682daa0a83 | [
"Apache-2.0"
] | 1 | 2020-01-25T19:35:34.000Z | 2020-01-25T19:35:34.000Z | #
# Copyright 2019 AXA Group Operations S.A.
#
# 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... | 33.223744 | 153 | 0.680594 |
4a180debb3510c5d4b3f456f94a782b2ebdfe053 | 12,464 | py | Python | mlrun/db/base.py | george0st/mlrun | 6467d3a5ceadf6cd35512b84b3ddc3da611cf39a | [
"Apache-2.0"
] | null | null | null | mlrun/db/base.py | george0st/mlrun | 6467d3a5ceadf6cd35512b84b3ddc3da611cf39a | [
"Apache-2.0"
] | null | null | null | mlrun/db/base.py | george0st/mlrun | 6467d3a5ceadf6cd35512b84b3ddc3da611cf39a | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Iguazio
#
# 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, softwa... | 25.078471 | 89 | 0.593389 |
4a180f790192ef78e33822d7fc13a9ca9f33ecf0 | 3,190 | py | Python | DesignSpaceEditor.roboFontExt/lib/designSpaceEditorSettings.py | andyclymer/designSpaceRoboFontExtension | 6bd0f7a5becbb465e4eeef71d33faab5659273e9 | [
"MIT"
] | null | null | null | DesignSpaceEditor.roboFontExt/lib/designSpaceEditorSettings.py | andyclymer/designSpaceRoboFontExtension | 6bd0f7a5becbb465e4eeef71d33faab5659273e9 | [
"MIT"
] | null | null | null | DesignSpaceEditor.roboFontExt/lib/designSpaceEditorSettings.py | andyclymer/designSpaceRoboFontExtension | 6bd0f7a5becbb465e4eeef71d33faab5659273e9 | [
"MIT"
] | null | null | null | from defconAppKit.windows.baseWindow import BaseWindowController
from mojo.extensions import getExtensionDefault, setExtensionDefault, ExtensionBundle
from vanilla import *
defaultOptions = {
"instanceFolderName": "instances",
}
settingsIdentifier = "com.letterror.designspaceeditor"
def updateWithDefaultValues(d... | 37.093023 | 144 | 0.641379 |
4a181020bdf1187f22148f96a2f2ce9fe5916c4e | 802 | py | Python | app/base/forms.py | kcinnoy/msi_2 | 8d9d26fb1bb542e7e6700ca1cb3122bb56860f3c | [
"MIT"
] | null | null | null | app/base/forms.py | kcinnoy/msi_2 | 8d9d26fb1bb542e7e6700ca1cb3122bb56860f3c | [
"MIT"
] | null | null | null | app/base/forms.py | kcinnoy/msi_2 | 8d9d26fb1bb542e7e6700ca1cb3122bb56860f3c | [
"MIT"
] | 1 | 2021-07-02T17:10:38.000Z | 2021-07-02T17:10:38.000Z | # -*- encoding: utf-8 -*-
"""
MIT License
Copyright (c) 2019 - present AppSeed.us
"""
from flask_wtf import FlaskForm
from wtforms import TextField, PasswordField
from wtforms.validators import InputRequired, Email, DataRequired
## login and registration
class LoginForm(FlaskForm):
username = TextField ('User... | 38.190476 | 102 | 0.700748 |
4a1810516bed5018f2e0c98a0ab2e086b36788a7 | 152 | py | Python | mayan/apps/appearance/literals.py | nattangwiwat/Mayan-EDMS-recitation | fcf16afb56eae812fb99144d65ae1ae6749de0b7 | [
"Apache-2.0"
] | 4 | 2021-09-02T00:16:30.000Z | 2021-09-09T22:25:15.000Z | mayan/apps/appearance/literals.py | nattangwiwat/Mayan-EDMS-recitation | fcf16afb56eae812fb99144d65ae1ae6749de0b7 | [
"Apache-2.0"
] | 86 | 2021-09-01T23:53:02.000Z | 2021-09-20T02:25:10.000Z | mayan/apps/appearance/literals.py | nattangwiwat/Mayan-EDMS-recitation | fcf16afb56eae812fb99144d65ae1ae6749de0b7 | [
"Apache-2.0"
] | 70 | 2021-09-01T12:54:51.000Z | 2022-02-16T00:53:18.000Z | COMMENT_APP_TEMPLATE_CACHE_DISABLE = '{# appearance_app_template_nocache #}'
DEFAULT_MAXIMUM_TITLE_LENGTH = 120
DEFAULT_MESSAGE_POSITION = 'top-right'
| 30.4 | 76 | 0.842105 |
4a1811ea23d3c3b31a92ca01a9391ebf16461e4f | 2,154 | py | Python | Project-5/src/naiveBayes.py | TooSchoolForCool/EE219-Larger-Scale-Data-Mining | 9a42c88169ace88f9b652d0e174c7f641fcc522e | [
"Apache-2.0"
] | null | null | null | Project-5/src/naiveBayes.py | TooSchoolForCool/EE219-Larger-Scale-Data-Mining | 9a42c88169ace88f9b652d0e174c7f641fcc522e | [
"Apache-2.0"
] | 12 | 2020-01-28T22:09:15.000Z | 2022-03-11T23:16:26.000Z | Project-5/src/naiveBayes.py | TooSchoolForCool/EE219-Larger-Scale-Data-Mining | 9a42c88169ace88f9b652d0e174c7f641fcc522e | [
"Apache-2.0"
] | null | null | null | from sklearn.naive_bayes import MultinomialNB
from sklearn.naive_bayes import BernoulliNB
from sklearn.naive_bayes import GaussianNB
#######################################################################
# Multinomial Naive Bayes Classifier
#######################################################################
class... | 31.217391 | 75 | 0.353296 |
4a1812759ec6f450881e2a94a406999b4c5c646c | 1,409 | py | Python | nipype/interfaces/spm/tests/test_auto_SliceTiming.py | nicholsn/nipype | 6601b00aac39d17bb9fb3a6801f5a740a6ebb1e3 | [
"BSD-3-Clause"
] | 1 | 2018-04-18T12:13:37.000Z | 2018-04-18T12:13:37.000Z | nipype/interfaces/spm/tests/test_auto_SliceTiming.py | ito-takuya/nipype | 9099a5809487b55868cdec82a719030419cbd6ba | [
"BSD-3-Clause"
] | null | null | null | nipype/interfaces/spm/tests/test_auto_SliceTiming.py | ito-takuya/nipype | 9099a5809487b55868cdec82a719030419cbd6ba | [
"BSD-3-Clause"
] | 1 | 2021-09-08T14:31:47.000Z | 2021-09-08T14:31:47.000Z | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.spm.preprocess import SliceTiming
def test_SliceTiming_inputs():
input_map = dict(ignore_exception=dict(nohash=True,
usedefault=True,
),
in_files=dict(copyfile=False,
field='scans',
... | 25.618182 | 78 | 0.657913 |
4a181329db5117d86e7b73ca75ca1330f9505c7c | 861 | py | Python | main/acl/template.py | matu3ba/cports | deab766f255539c3679b78706ec4d194bc019dc9 | [
"BSD-2-Clause"
] | null | null | null | main/acl/template.py | matu3ba/cports | deab766f255539c3679b78706ec4d194bc019dc9 | [
"BSD-2-Clause"
] | null | null | null | main/acl/template.py | matu3ba/cports | deab766f255539c3679b78706ec4d194bc019dc9 | [
"BSD-2-Clause"
] | null | null | null | pkgname = "acl"
pkgver = "2.3.1"
pkgrel = 0
build_style = "gnu_configure"
configure_args = [
f"--libdir=/usr/lib",
f"--libexecdir=/usr/lib"
]
hostmakedepends = ["pkgconf"]
makedepends = ["attr-devel"]
checkdepends = ["perl"]
pkgdesc = "Access Control List filesystem support"
maintainer = "q66 <q66@chimera-linux... | 28.7 | 75 | 0.710801 |
4a1813611d167a21bb9064ae9e3ccd025e4ca613 | 6,615 | py | Python | src/stactools/sentinel1/rtc_metadata.py | scottyhq/sentinel1 | 772c3145c2359a0f4115687df519d5e04f7b8c56 | [
"Apache-2.0"
] | null | null | null | src/stactools/sentinel1/rtc_metadata.py | scottyhq/sentinel1 | 772c3145c2359a0f4115687df519d5e04f7b8c56 | [
"Apache-2.0"
] | null | null | null | src/stactools/sentinel1/rtc_metadata.py | scottyhq/sentinel1 | 772c3145c2359a0f4115687df519d5e04f7b8c56 | [
"Apache-2.0"
] | null | null | null | from typing import List, Optional
import pystac
from pystac.utils import str_to_datetime
import rasterio
import rasterio.features
from rasterio import Affine as A
from rasterio.warp import transform_geom
from shapely.geometry import mapping, shape
import numpy as np
import os
import json
import logging
logger = logg... | 37.162921 | 89 | 0.570824 |
4a181452ac41a30ad622005bf73d418e82777492 | 56 | py | Python | pyit/lint.py | ysv/pyit | 681535dd162613ee4ab8bb55216f0770e596f82e | [
"MIT"
] | null | null | null | pyit/lint.py | ysv/pyit | 681535dd162613ee4ab8bb55216f0770e596f82e | [
"MIT"
] | null | null | null | pyit/lint.py | ysv/pyit | 681535dd162613ee4ab8bb55216f0770e596f82e | [
"MIT"
] | null | null | null | class Lint:
def __init__(self, file):
pass
| 11.2 | 29 | 0.571429 |
4a18159f101c4af8d40b8351bb422ee08d709391 | 3,392 | py | Python | jarvis.py | royhunter/JarvisControl | 0203dab0a647174253797b53d7f7329ac928acb2 | [
"MIT"
] | null | null | null | jarvis.py | royhunter/JarvisControl | 0203dab0a647174253797b53d7f7329ac928acb2 | [
"MIT"
] | null | null | null | jarvis.py | royhunter/JarvisControl | 0203dab0a647174253797b53d7f7329ac928acb2 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""jarvis.py
"""
import asyncore
import ctypes
import json
import socket
import struct
from common import hacker, message
USERNAME = ''
PASSWORD = ''
class JarvisAgent(asyncore.dispatcher):
"""JarvisAgent
"""
def __init__(self, host, token):
asyncore.dispatcher.__init__(self)
... | 26.5 | 80 | 0.574882 |
4a1815ce58e31d77de13c6c4063d45744fc989b9 | 1,256 | py | Python | view/palettes/dark.py | AWhiteFox/questwriter | 129776eb99de943cb279f276d9c6bff7135fb309 | [
"MIT"
] | 1 | 2021-11-01T12:55:21.000Z | 2021-11-01T12:55:21.000Z | view/palettes/dark.py | AWhiteFox/questwriter | 129776eb99de943cb279f276d9c6bff7135fb309 | [
"MIT"
] | null | null | null | view/palettes/dark.py | AWhiteFox/questwriter | 129776eb99de943cb279f276d9c6bff7135fb309 | [
"MIT"
] | null | null | null | from PyQt5.QtGui import QPalette, QColor
class DarkPalette(QPalette):
def __init__(self):
super().__init__()
black = QColor('#313335')
gray = QColor('#3C3F41')
primary = QColor('#4B6EAF')
white = QColor('#FFFFFF')
self.setColor(QPalette.Window, gray)
self.... | 39.25 | 77 | 0.679936 |
4a18167f5d0a6d2473103e455e7ea29f96e30975 | 13,131 | py | Python | mkt/stats/views.py | ngokevin/zamboni | a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69 | [
"BSD-3-Clause"
] | null | null | null | mkt/stats/views.py | ngokevin/zamboni | a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69 | [
"BSD-3-Clause"
] | null | null | null | mkt/stats/views.py | ngokevin/zamboni | a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69 | [
"BSD-3-Clause"
] | null | null | null | from django import http
import commonware
import requests
from rest_framework.exceptions import ParseError
from rest_framework.generics import ListAPIView
from rest_framework.permissions import BasePermission
from rest_framework.response import Response
from rest_framework.views import APIView
import amo
from lib.met... | 32.909774 | 79 | 0.579545 |
4a1817087aaa772dd0bf3cf824cfb0d8db5c49e6 | 3,852 | py | Python | Z_ALL_FILE/Py1/tbot_site_stat_old.py | omikabir/omEngin | b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195 | [
"Apache-2.0"
] | null | null | null | Z_ALL_FILE/Py1/tbot_site_stat_old.py | omikabir/omEngin | b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195 | [
"Apache-2.0"
] | null | null | null | Z_ALL_FILE/Py1/tbot_site_stat_old.py | omikabir/omEngin | b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195 | [
"Apache-2.0"
] | 1 | 2021-04-29T21:46:02.000Z | 2021-04-29T21:46:02.000Z | import pandas as pd
import cx_Oracle
import sys
import time
import os
import telepot
from telepot.loop import MessageLoop
import sitehistory as st
import subprocess
TOKEN = '1184517046:AAFBnQe_HRMx4ANWbebp8W8rzQMlRb07nG4'
bot = telepot.Bot(TOKEN)
auth_file = os.getcwd() + "\\" + 'users.txt'
conn = cx_Oracle.connect('S... | 38.138614 | 276 | 0.586708 |
4a181747dabfb4dcc25c47946cde12192403d54a | 301 | py | Python | rabbitai/migrations/versions/ef8843b41dac_.py | psbsgic/rabbitai | 769e120ba605d56ac076f810a549c38dac410c8e | [
"Apache-2.0"
] | null | null | null | rabbitai/migrations/versions/ef8843b41dac_.py | psbsgic/rabbitai | 769e120ba605d56ac076f810a549c38dac410c8e | [
"Apache-2.0"
] | null | null | null | rabbitai/migrations/versions/ef8843b41dac_.py | psbsgic/rabbitai | 769e120ba605d56ac076f810a549c38dac410c8e | [
"Apache-2.0"
] | 1 | 2021-07-09T16:29:50.000Z | 2021-07-09T16:29:50.000Z | """empty message
Revision ID: ef8843b41dac
Revises: ('3b626e2a6783', 'ab3d66c4246e')
Create Date: 2016-10-02 10:35:38.825231
"""
# revision identifiers, used by Alembic.
revision = "ef8843b41dac"
down_revision = ("3b626e2a6783", "ab3d66c4246e")
def upgrade():
pass
def downgrade():
pass
| 15.842105 | 48 | 0.710963 |
4a1818b5f1724d4becb8f95ed0566ea72be731cc | 11,000 | py | Python | tests/api/endpoints/admin/test_share_links.py | gzy403999903/seahub | 992e5852579a6d9e0cfdaf18c77ce0191cb64449 | [
"Apache-2.0"
] | null | null | null | tests/api/endpoints/admin/test_share_links.py | gzy403999903/seahub | 992e5852579a6d9e0cfdaf18c77ce0191cb64449 | [
"Apache-2.0"
] | 6 | 2019-12-13T09:55:45.000Z | 2022-03-11T23:47:29.000Z | tests/api/endpoints/admin/test_share_links.py | gzy403999903/seahub | 992e5852579a6d9e0cfdaf18c77ce0191cb64449 | [
"Apache-2.0"
] | 1 | 2019-05-16T06:58:16.000Z | 2019-05-16T06:58:16.000Z | # -*- coding: utf-8 -*-
import json
from tests.common.utils import randstring
from django.core.urlresolvers import reverse
from seahub.test_utils import BaseTestCase
from seahub.share.models import FileShare
from seaserv import seafile_api
try:
from seahub.settings import LOCAL_PRO_DEV_ENV
except ImportError:
... | 31.339031 | 79 | 0.653545 |
4a1819aef1b77df885122ef5a3f076067a3a907e | 40,291 | py | Python | nova/virt/libvirt/guest.py | karimull/nova | 9dcff4d4ed3e5ed5c0f58638c863562f4761495c | [
"Apache-2.0"
] | null | null | null | nova/virt/libvirt/guest.py | karimull/nova | 9dcff4d4ed3e5ed5c0f58638c863562f4761495c | [
"Apache-2.0"
] | null | null | null | nova/virt/libvirt/guest.py | karimull/nova | 9dcff4d4ed3e5ed5c0f58638c863562f4761495c | [
"Apache-2.0"
] | 1 | 2021-05-12T07:52:44.000Z | 2021-05-12T07:52:44.000Z | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# Copyright (c) 2010 Citrix Systems, Inc.
# Copyright (c) 2011 Piston Cloud Computing, Inc
# Copyright (c) 2012 University Of Minho
# Copyright (c) 2013 Hewlett-Pa... | 41.409044 | 81 | 0.614231 |
4a1819f33976cfe18a675386ae50d970a4e64af0 | 2,771 | py | Python | src/azure-cli-core/setup.py | mahakjain314/azure-cli | d0ce4954cffad6f2eaaa485e2e1b78d3a4e1eb14 | [
"MIT"
] | 1 | 2021-09-07T18:51:21.000Z | 2021-09-07T18:51:21.000Z | src/azure-cli-core/setup.py | mahakjain314/azure-cli | d0ce4954cffad6f2eaaa485e2e1b78d3a4e1eb14 | [
"MIT"
] | 1 | 2020-08-08T03:56:56.000Z | 2020-08-08T03:56:56.000Z | src/azure-cli-core/setup.py | mahakjain314/azure-cli | d0ce4954cffad6f2eaaa485e2e1b78d3a4e1eb14 | [
"MIT"
] | 1 | 2022-02-16T18:23:11.000Z | 2022-02-16T18:23:11.000Z | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... | 31.850575 | 103 | 0.595814 |
4a181a19516de01feca5f88c2fe22b987ecdf12a | 112 | py | Python | lazy_dataset/__init__.py | thequilo/lazy_dataset | d4c56d3212ee387b8e721f2dae6d16b1bff18543 | [
"MIT"
] | null | null | null | lazy_dataset/__init__.py | thequilo/lazy_dataset | d4c56d3212ee387b8e721f2dae6d16b1bff18543 | [
"MIT"
] | null | null | null | lazy_dataset/__init__.py | thequilo/lazy_dataset | d4c56d3212ee387b8e721f2dae6d16b1bff18543 | [
"MIT"
] | null | null | null | from .core import (
new,
concatenate,
Dataset,
from_dict,
from_list,
FilterException,
)
| 12.444444 | 20 | 0.607143 |
4a181a33513b7ec307055725ef0ba00320a00c2d | 380 | py | Python | factorialrec.py | annanymaus/babysteps | 39d5a7b1027f7361899466b879fcd8746cacea0b | [
"MIT"
] | 2 | 2021-03-02T13:53:23.000Z | 2021-03-16T20:37:13.000Z | factorialrec.py | annanymaus/babysteps | 39d5a7b1027f7361899466b879fcd8746cacea0b | [
"MIT"
] | 1 | 2021-03-16T12:15:21.000Z | 2021-03-16T17:39:54.000Z | factorialrec.py | annanymaus/babysteps | 39d5a7b1027f7361899466b879fcd8746cacea0b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#program to find factorial of a given number
#take input from user
n = input("Enter a number : ")
#recursive func. to calculate factorial
def fact(i):
#base check for 0! and 1!
if (int (i) < 2):
return 1
#calculation for numbers greater than/equal to 2
c = i * fact... | 19 | 56 | 0.634211 |
4a181a4b386b861b3204dfcca40b3b0860fa7de6 | 565 | py | Python | protonfixes/gamefixes/409720.py | Sirmentio/protonfixes | 1ca6452ed1a9910ed0afc8c544ce90dfc699a678 | [
"BSD-2-Clause"
] | 213 | 2018-10-06T01:40:26.000Z | 2022-03-16T16:17:37.000Z | protonfixes/gamefixes/409720.py | Sirmentio/protonfixes | 1ca6452ed1a9910ed0afc8c544ce90dfc699a678 | [
"BSD-2-Clause"
] | 88 | 2018-10-06T17:38:56.000Z | 2022-02-19T13:27:26.000Z | protonfixes/gamefixes/409720.py | Sirmentio/protonfixes | 1ca6452ed1a9910ed0afc8c544ce90dfc699a678 | [
"BSD-2-Clause"
] | 67 | 2018-10-09T16:57:16.000Z | 2022-03-14T13:06:25.000Z | """ Game fix for BioShock 2 Remastered
"""
#pylint: disable=C0103
from protonfixes import util
def main():
""" Disable ESYNC, disable intro's
"""
# After loading the game, or a save file, a key needs to be pressed
# to continue. That screen does not respond to keyboard or mouse,
# so there is no ... | 29.736842 | 71 | 0.693805 |
4a181c00c023fa9174b591f2c0bba844d63df51a | 20,168 | py | Python | homeassistant/components/frontend/__init__.py | GotoCode/home-assistant | 7e39a5c4d50cf5754f5f32a84870ca57a5778b02 | [
"Apache-2.0"
] | null | null | null | homeassistant/components/frontend/__init__.py | GotoCode/home-assistant | 7e39a5c4d50cf5754f5f32a84870ca57a5778b02 | [
"Apache-2.0"
] | 125 | 2018-12-11T07:31:20.000Z | 2021-07-27T08:20:03.000Z | homeassistant/components/frontend/__init__.py | y1ngyang/home-assistant | 7e39a5c4d50cf5754f5f32a84870ca57a5778b02 | [
"Apache-2.0"
] | null | null | null | """
Handle the frontend for Home Assistant.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/frontend/
"""
import asyncio
import hashlib
import json
import logging
import os
from urllib.parse import urlparse
from aiohttp import web
import voluptuous as v... | 33.613333 | 79 | 0.649098 |
4a181d72f2abaa5e546422715e27cb362c030d30 | 42,587 | py | Python | tensorflow/python/ops/linalg/linear_operator.py | where-is-brett/tensorflow | 5da8599b2cf9edfb9fac4431c705501bf7ceccd8 | [
"Apache-2.0"
] | 50 | 2020-03-15T01:04:36.000Z | 2021-11-21T23:25:44.000Z | tensorflow/python/ops/linalg/linear_operator.py | where-is-brett/tensorflow | 5da8599b2cf9edfb9fac4431c705501bf7ceccd8 | [
"Apache-2.0"
] | 58 | 2021-11-22T05:41:28.000Z | 2022-01-19T01:33:40.000Z | tensorflow/python/ops/linalg/linear_operator.py | where-is-brett/tensorflow | 5da8599b2cf9edfb9fac4431c705501bf7ceccd8 | [
"Apache-2.0"
] | 66 | 2020-05-15T10:05:12.000Z | 2022-02-14T07:28:18.000Z | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 34.878788 | 99 | 0.676145 |
4a181d8cff9abd5eb694eb9200e9cf855b14f2cb | 3,759 | py | Python | tests/template_backends/test_dummy.py | ni-ning/django | 2e7ba6057cfc82a15a22b6021cd60cf307152e2d | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | 7 | 2015-09-08T22:23:36.000Z | 2022-03-08T09:24:40.000Z | tests/template_backends/test_dummy.py | ni-ning/django | 2e7ba6057cfc82a15a22b6021cd60cf307152e2d | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | 8 | 2017-04-19T16:20:47.000Z | 2022-03-28T14:40:11.000Z | tests/template_backends/test_dummy.py | ni-ning/django | 2e7ba6057cfc82a15a22b6021cd60cf307152e2d | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | 3 | 2020-07-13T04:49:16.000Z | 2021-12-22T21:15:14.000Z | import re
from django.forms import CharField, Form, Media
from django.http import HttpRequest, HttpResponse
from django.middleware.csrf import (
CsrfViewMiddleware, _compare_masked_tokens as equivalent_tokens, get_token,
)
from django.template import TemplateDoesNotExist, TemplateSyntaxError
from django.template.b... | 38.752577 | 100 | 0.672253 |
4a18210b40d2d8fa022753fbc56a8d7669eebbf7 | 7,576 | py | Python | paddlehub/commands/run.py | Austendeng/PaddleHub | b363eaedaf77d21152920cce652c719278ec809d | [
"Apache-2.0"
] | null | null | null | paddlehub/commands/run.py | Austendeng/PaddleHub | b363eaedaf77d21152920cce652c719278ec809d | [
"Apache-2.0"
] | null | null | null | paddlehub/commands/run.py | Austendeng/PaddleHub | b363eaedaf77d21152920cce652c719278ec809d | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 41.856354 | 112 | 0.584609 |
4a1821ae3afa4c2c5386e744fa2ee34ccad0b742 | 8,641 | py | Python | tests/unit/test_pools.py | AndreyKlychnikov/aiovk | c435aa97725f8456634aaf302cc688fddbc64b71 | [
"MIT"
] | 2 | 2020-10-05T18:14:48.000Z | 2020-10-11T10:35:58.000Z | tests/unit/test_pools.py | AndreyKlychnikov/aiovk | c435aa97725f8456634aaf302cc688fddbc64b71 | [
"MIT"
] | null | null | null | tests/unit/test_pools.py | AndreyKlychnikov/aiovk | c435aa97725f8456634aaf302cc688fddbc64b71 | [
"MIT"
] | null | null | null | import os
from unittest import IsolatedAsyncioTestCase
from dotenv import load_dotenv
from aiovk.pools import AsyncResult, AsyncVkExecuteRequestPool
load_dotenv(
os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))), ".env")
)
token1 = os.getenv('TEST_TOKEN_1')
token2 = os.get... | 38.748879 | 107 | 0.582919 |
4a1822ccb9408b9267b00a5ef99fc3c977bda769 | 2,038 | py | Python | piccolo/query/methods/create_index.py | 0scarB/piccolo | 27539219431874bae99b7206df48133fbe1a27eb | [
"MIT"
] | 750 | 2019-01-03T16:02:48.000Z | 2022-03-30T19:53:03.000Z | piccolo/query/methods/create_index.py | 0scarB/piccolo | 27539219431874bae99b7206df48133fbe1a27eb | [
"MIT"
] | 311 | 2019-01-14T13:07:13.000Z | 2022-03-31T07:43:08.000Z | piccolo/query/methods/create_index.py | 0scarB/piccolo | 27539219431874bae99b7206df48133fbe1a27eb | [
"MIT"
] | 48 | 2020-12-18T08:13:50.000Z | 2022-03-24T03:18:06.000Z | from __future__ import annotations
import typing as t
from piccolo.columns import Column
from piccolo.columns.indexes import IndexMethod
from piccolo.query.base import DDL
if t.TYPE_CHECKING: # pragma: no cover
from piccolo.table import Table
class CreateIndex(DDL):
def __init__(
self,
tab... | 28.305556 | 67 | 0.59421 |
4a1822da3a4920f0f64ae8d34a077c15dfe5474c | 11,925 | py | Python | rllib/evaluation/tests/test_trajectory_view_api.py | carlos-aguayo/ray | fedbdd5dc6a47aa9cba170816f8c0950193b4fd6 | [
"Apache-2.0"
] | 1 | 2021-04-08T12:02:58.000Z | 2021-04-08T12:02:58.000Z | rllib/evaluation/tests/test_trajectory_view_api.py | carlos-aguayo/ray | fedbdd5dc6a47aa9cba170816f8c0950193b4fd6 | [
"Apache-2.0"
] | null | null | null | rllib/evaluation/tests/test_trajectory_view_api.py | carlos-aguayo/ray | fedbdd5dc6a47aa9cba170816f8c0950193b4fd6 | [
"Apache-2.0"
] | null | null | null | import copy
from gym.spaces import Box, Discrete
import time
import unittest
import ray
import ray.rllib.agents.ppo as ppo
from ray.rllib.examples.env.debug_counter_env import MultiAgentDebugCounterEnv
from ray.rllib.evaluation.rollout_worker import RolloutWorker
from ray.rllib.examples.policy.episode_env_aware_policy... | 42.895683 | 79 | 0.548763 |
4a182441a318dfc3a49ce4422e5ab0aaf5976da3 | 2,107 | py | Python | command/avatar.py | andrewnijmeh/utilitybot | 9d5171479949240d633e1fe566e3cf8e4f34e693 | [
"MIT"
] | 1 | 2021-09-24T22:48:33.000Z | 2021-09-24T22:48:33.000Z | command/avatar.py | FFlop/utilitybot | 9d5171479949240d633e1fe566e3cf8e4f34e693 | [
"MIT"
] | null | null | null | command/avatar.py | FFlop/utilitybot | 9d5171479949240d633e1fe566e3cf8e4f34e693 | [
"MIT"
] | null | null | null | """MIT License
Copyright (c) 2020 utilitybot.co
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, pu... | 36.327586 | 79 | 0.672995 |
4a18258ee163042c8ec7e45c3f381798de5da124 | 21,394 | py | Python | abps/agents/dqn/dqn_agent.py | kiss2u/google-research | 2cd66234656f9e2f4218ed90a2d8aa9cf3139093 | [
"Apache-2.0"
] | 7 | 2020-03-15T12:14:07.000Z | 2021-12-01T07:01:09.000Z | abps/agents/dqn/dqn_agent.py | Alfaxad/google-research | 2c0043ecd507e75e2df9973a3015daf9253e1467 | [
"Apache-2.0"
] | 25 | 2020-07-25T08:53:09.000Z | 2022-03-12T00:43:02.000Z | abps/agents/dqn/dqn_agent.py | Alfaxad/google-research | 2c0043ecd507e75e2df9973a3015daf9253e1467 | [
"Apache-2.0"
] | 4 | 2021-02-08T10:25:45.000Z | 2021-04-17T14:46:26.000Z | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 40.366038 | 80 | 0.688698 |
4a182664cfb361faab81c76e42ac8b826e13de5b | 5,696 | py | Python | utils/LM.py | tanyinghui/Minimal-Hand-pytorch | 3e991af9be0475ebc761fec3f13d00f81146631a | [
"MIT"
] | 158 | 2021-03-02T15:16:33.000Z | 2022-03-27T12:06:02.000Z | utils/LM.py | maitetsu/Minimal-Hand-pytorch | 12f2664e94b94c95196a4ad789077946350f5e7c | [
"MIT"
] | 55 | 2021-03-23T18:47:51.000Z | 2022-03-28T14:56:56.000Z | utils/LM.py | maitetsu/Minimal-Hand-pytorch | 12f2664e94b94c95196a4ad789077946350f5e7c | [
"MIT"
] | 47 | 2021-03-03T01:38:27.000Z | 2022-03-26T05:23:43.000Z | # Copyright (c) Hao Meng. All Rights Reserved.
# import time
import numpy as np
import torch
from manopth.manolayer import ManoLayer
from utils import bone
class LM_Solver():
def __init__(self, num_Iter=500, th_beta=None, th_pose=None, lb_target=None,
weight=0.01):
self.count = 0
... | 31.125683 | 96 | 0.515801 |
4a1826e55f928691297b32cce0fb43d9f6df4394 | 4,557 | py | Python | bbox_helper.py | yhsmiley/ImageNet_Utils | 5b4b56ca0f135b593b0d09c1874589032e6cda81 | [
"MIT"
] | null | null | null | bbox_helper.py | yhsmiley/ImageNet_Utils | 5b4b56ca0f135b593b0d09c1874589032e6cda81 | [
"MIT"
] | null | null | null | bbox_helper.py | yhsmiley/ImageNet_Utils | 5b4b56ca0f135b593b0d09c1874589032e6cda81 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
from PIL import Image
import sys
import zipfile
import xml.etree.ElementTree as ET
import argparse
def scanAnnotationFolder(annotationFolderPath):
annotationFiles = []
for root, dirs, files in os.walk(annotationFolderPath):
for file in files:
if file.endswith... | 37.04878 | 139 | 0.640772 |
4a1827abf7d0e9a859230e48b0b4b7669ab02fae | 8,563 | py | Python | app/AnyPy.py | seanschneeweiss/RoSeMotion | 4ef7997c8976a8489798a427c768af5114f6b31e | [
"MIT"
] | 11 | 2021-01-03T07:31:56.000Z | 2022-03-26T20:21:25.000Z | app/AnyPy.py | seanschneeweiss/RoSeMotion | 4ef7997c8976a8489798a427c768af5114f6b31e | [
"MIT"
] | 5 | 2021-01-04T07:22:32.000Z | 2022-02-01T00:38:52.000Z | app/AnyPy.py | seanschneeweiss/RoSeMotion | 4ef7997c8976a8489798a427c768af5114f6b31e | [
"MIT"
] | 3 | 2021-03-06T17:00:26.000Z | 2022-01-18T01:37:43.000Z | import datetime
import glob
import os
import re
import shutil
import subprocess
from anypytools import AnyMacro
from anypytools import AnyPyProcess
from anypytools.macro_commands import (MacroCommand, Load, Dump,
SaveData, OperationRun)
from AnyWriter import AnyWriter
from Anybo... | 43.688776 | 119 | 0.62338 |
4a1827c6dac1371a8473a3e074f8710922692a87 | 524 | py | Python | optimade_client/__init__.py | CasperWA/voila-optimade-client | 4c4b6f51b063ceee6eef7bcbe36f08f4ffe6f6ec | [
"MIT"
] | null | null | null | optimade_client/__init__.py | CasperWA/voila-optimade-client | 4c4b6f51b063ceee6eef7bcbe36f08f4ffe6f6ec | [
"MIT"
] | 236 | 2020-09-14T09:30:50.000Z | 2022-03-30T06:40:18.000Z | optimade_client/__init__.py | CasperWA/voila-optimade-client | 4c4b6f51b063ceee6eef7bcbe36f08f4ffe6f6ec | [
"MIT"
] | 2 | 2020-11-10T16:01:17.000Z | 2022-03-15T14:31:30.000Z | """
OPTIMADE Client
Voilà/Jupyter client for searching through OPTIMADE databases.
"""
from .informational import OptimadeClientFAQ, HeaderDescription, OptimadeLog
from .query_provider import OptimadeQueryProviderWidget
from .query_filter import OptimadeQueryFilterWidget
from .summary import OptimadeSummaryWidget
__... | 24.952381 | 76 | 0.791985 |
4a1828346e9d22b00c43cfcacc282ba5349f2bc1 | 3,870 | py | Python | ETL/scripts/utils_religion_features.py | qangelot/projet_Nantes | 6cd63aec0acc5de77683832dd20f66ec3aa9e3eb | [
"MIT"
] | null | null | null | ETL/scripts/utils_religion_features.py | qangelot/projet_Nantes | 6cd63aec0acc5de77683832dd20f66ec3aa9e3eb | [
"MIT"
] | null | null | null | ETL/scripts/utils_religion_features.py | qangelot/projet_Nantes | 6cd63aec0acc5de77683832dd20f66ec3aa9e3eb | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import re
def get_year(date):
x = re.findall('([\d]{4})', date)
if x :
return x[0]
def get_month(date):
x = re.findall('^[A-Z][a-zéû]+', date)
if x:
return x[0]
def get_day(date):
return date[-2:]
def merge_religious_events(data, date_co... | 33.362069 | 108 | 0.612403 |
4a1829820ac08ac25e909b55be16e1392270bbdf | 4,334 | py | Python | assignments/assignment2/layers.py | shereshevskiy/dlcourse_ai | 3fb232b1b4f06fb30e222d019799e178f2b58125 | [
"MIT"
] | 4 | 2019-03-27T09:17:18.000Z | 2020-06-22T19:20:09.000Z | assignments/assignment2/layers.py | shereshevskiy/dlcourse_ai | 3fb232b1b4f06fb30e222d019799e178f2b58125 | [
"MIT"
] | 1 | 2019-03-23T20:18:42.000Z | 2019-03-23T20:18:42.000Z | assignments/assignment2/layers.py | shereshevskiy/dlcourse_ai | 3fb232b1b4f06fb30e222d019799e178f2b58125 | [
"MIT"
] | null | null | null | import numpy as np
from linear_classifer import softmax, cross_entropy_loss
def l2_regularization(W, reg_strength):
"""
Computes L2 regularization loss on weights and its gradient
Arguments:
W, np array - weights
reg_strength - float value
Returns:
loss, single value - l2 regulari... | 27.43038 | 89 | 0.612367 |
4a18298dcca6f54b4c0ab6e0cdbdbcec9667148a | 896 | py | Python | exercicios_resolvidos3/exercicios3/capitulo 07/exercicio-07-05.py | tiagosm1/Python_Nilo_Ney | b5380dcc8fcf64e9c047ebc353585caba3d7b397 | [
"MIT"
] | null | null | null | exercicios_resolvidos3/exercicios3/capitulo 07/exercicio-07-05.py | tiagosm1/Python_Nilo_Ney | b5380dcc8fcf64e9c047ebc353585caba3d7b397 | [
"MIT"
] | null | null | null | exercicios_resolvidos3/exercicios3/capitulo 07/exercicio-07-05.py | tiagosm1/Python_Nilo_Ney | b5380dcc8fcf64e9c047ebc353585caba3d7b397 | [
"MIT"
] | null | null | null | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2020
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terce... | 33.185185 | 88 | 0.582589 |
4a182b67de26bfbe9bcb672cb4de6ad3da2d39c9 | 5,649 | py | Python | test/functional/test_framework/socks5.py | CounosH/cch | 880f3890127951cba9f6b235193d8c9a9536e075 | [
"MIT"
] | null | null | null | test/functional/test_framework/socks5.py | CounosH/cch | 880f3890127951cba9f6b235193d8c9a9536e075 | [
"MIT"
] | null | null | null | test/functional/test_framework/socks5.py | CounosH/cch | 880f3890127951cba9f6b235193d8c9a9536e075 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2015-2019 The CounosH Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Dummy Socks5 server for testing."""
import socket
import threading
import queue
import logging
logger... | 35.086957 | 125 | 0.57373 |
4a182ce2ea31ddfbf72c7d1000d7c364888a0d72 | 79,686 | py | Python | jvm/Instructions.py | mcpython4-coding/JVMBridge | a7652d04a77bba8c465fb5ac2255ea311c1d1b27 | [
"MIT"
] | 1 | 2021-06-22T08:27:04.000Z | 2021-06-22T08:27:04.000Z | jvm/Instructions.py | mcpython4-coding/JVMBridge | a7652d04a77bba8c465fb5ac2255ea311c1d1b27 | [
"MIT"
] | null | null | null | jvm/Instructions.py | mcpython4-coding/JVMBridge | a7652d04a77bba8c465fb5ac2255ea311c1d1b27 | [
"MIT"
] | null | null | null | import array
import copy
import dis
import typing
from abc import ABC
from mcpython.mixin.util import PyOpcodes
import jvm.Java
import jvm.util
from jvm.api import BaseInstruction, AbstractRuntime, AbstractBytecodeContainer, AbstractStack
from jvm.api import PyBytecodeBuilder
from jvm.JavaExceptionStack import StackC... | 34.391886 | 203 | 0.656703 |
4a182db636bd9e72499f9f6319883076d28780b7 | 7,681 | py | Python | spvnas/core/models/semantic_kitti/spvcnn.py | reinforcementdriving/e3d | 52c6d3dede0d1134a1fb5cabef4f70b123861501 | [
"MIT"
] | 1 | 2021-01-31T01:53:23.000Z | 2021-01-31T01:53:23.000Z | spvnas/core/models/semantic_kitti/spvcnn.py | reinforcementdriving/e3d | 52c6d3dede0d1134a1fb5cabef4f70b123861501 | [
"MIT"
] | null | null | null | spvnas/core/models/semantic_kitti/spvcnn.py | reinforcementdriving/e3d | 52c6d3dede0d1134a1fb5cabef4f70b123861501 | [
"MIT"
] | null | null | null | import time
from collections import OrderedDict
import torch
import torch.nn as nn
import torchsparse
import torchsparse.nn as spnn
import torchsparse.nn.functional as spf
from torchsparse.sparse_tensor import SparseTensor
from torchsparse.point_tensor import PointTensor
from torchsparse.utils.kernel_region import *
... | 32.54661 | 81 | 0.494467 |
4a182f05080a197efe43b05c82aa5b9ba3500171 | 936 | py | Python | Libraries/Python/requests_negotiate_sspi/v0.3.1/requests_negotiate_sspi/__init__.py | davidbrownell/Common_Environment | 4015872aeac8d5da30a6aa7940e1035a6aa6a75d | [
"BSL-1.0"
] | 1 | 2017-04-25T13:15:10.000Z | 2017-04-25T13:15:10.000Z | Libraries/Python/requests_negotiate_sspi/v0.3.1/requests_negotiate_sspi/__init__.py | davidbrownell/Common_Environment | 4015872aeac8d5da30a6aa7940e1035a6aa6a75d | [
"BSL-1.0"
] | null | null | null | Libraries/Python/requests_negotiate_sspi/v0.3.1/requests_negotiate_sspi/__init__.py | davidbrownell/Common_Environment | 4015872aeac8d5da30a6aa7940e1035a6aa6a75d | [
"BSL-1.0"
] | null | null | null | import requests
from .requests_negotiate_sspi import HttpNegotiateAuth
__all__ = ('HttpNegotiateAuth')
HTTPResponse = requests.packages.urllib3.response.HTTPResponse
orig_HTTPResponse__init__ = HTTPResponse.__init__
def new_HTTPResponse__init__(self, *args, **kwargs):
orig_HTTPResponse__init__(self, *args, **kwar... | 36 | 75 | 0.794872 |
4a18312e748b3cbe4fe2cdc10f33b39b41461acd | 2,648 | py | Python | tools/nightly/vm/report_to_html.py | gatehouse/cppcms | 61da055ffeb349b4eda14bc9ac393af9ce842364 | [
"MIT"
] | 388 | 2017-03-01T07:39:21.000Z | 2022-03-30T19:38:41.000Z | tools/nightly/vm/report_to_html.py | gatehouse/cppcms | 61da055ffeb349b4eda14bc9ac393af9ce842364 | [
"MIT"
] | 81 | 2017-03-08T20:28:00.000Z | 2022-01-23T08:19:31.000Z | tools/nightly/vm/report_to_html.py | gatehouse/cppcms | 61da055ffeb349b4eda14bc9ac393af9ce842364 | [
"MIT"
] | 127 | 2017-03-05T21:53:40.000Z | 2022-02-25T02:31:01.000Z | #!/usr/bin/env python
import re
import sys
import datetime
import glob
oses = { 'win7' : 'Windows 7', 'solaris' : 'Solaris 11', 'freebsd' : 'FreeBSD 11.1', 'localhost' : 'Linux Ubuntu 16.04' }
def get_failed_tests(tag):
f = open('logs/' + tag + '.log','r')
if not f:
return ''
res=[]
attach=F... | 25.708738 | 207 | 0.607628 |
4a18332b0834c4e03bdd2df19b83e1aea55bd859 | 127 | py | Python | partner/admin.py | YangWanjun/ebusiness | 03d92908b4db1a305c8cb99fc27700fd4dc972bd | [
"Apache-2.0"
] | null | null | null | partner/admin.py | YangWanjun/ebusiness | 03d92908b4db1a305c8cb99fc27700fd4dc972bd | [
"Apache-2.0"
] | 3 | 2020-02-11T22:59:47.000Z | 2021-03-19T22:03:11.000Z | partner/admin.py | YangWanjun/ebusiness | 03d92908b4db1a305c8cb99fc27700fd4dc972bd | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
class PartnerAdmin(admin.ModelAdmin):
list_display = None
list_display_links = None
| 18.142857 | 37 | 0.771654 |
4a1833491257412f842e8474603968ff40c1d29f | 15,736 | py | Python | querybuilder/filters.py | NorthIsUp/querybuilder | 67b0539345e280669985b90e26b4df3809e01d74 | [
"MIT"
] | 17 | 2018-02-19T18:52:18.000Z | 2021-09-12T15:02:45.000Z | querybuilder/filters.py | NorthIsUp/querybuilder | 67b0539345e280669985b90e26b4df3809e01d74 | [
"MIT"
] | 3 | 2018-04-25T09:12:27.000Z | 2021-03-25T21:48:47.000Z | querybuilder/filters.py | NorthIsUp/querybuilder | 67b0539345e280669985b90e26b4df3809e01d74 | [
"MIT"
] | 7 | 2018-09-24T15:03:18.000Z | 2021-09-22T09:35:40.000Z | from __future__ import absolute_import
# Standard Library
import re
from datetime import (
date,
datetime,
time,
)
from decimal import (
Context,
Decimal,
)
# External Libraries
import six
from cached_property import cached_property
# Project Library
from querybuilder.constants import (
Input... | 30.976378 | 292 | 0.62106 |
4a183386561e2c9134ac491412d302608a4746c8 | 7,670 | py | Python | cogdl/models/nn/pyg_gtn.py | BywinTec/cogdl | 3c0abcfe364a69061c84c8170d4f5e6a17a4668d | [
"MIT"
] | 2 | 2021-06-25T08:18:36.000Z | 2021-06-25T08:51:00.000Z | cogdl/models/nn/pyg_gtn.py | BywinTec/cogdl | 3c0abcfe364a69061c84c8170d4f5e6a17a4668d | [
"MIT"
] | null | null | null | cogdl/models/nn/pyg_gtn.py | BywinTec/cogdl | 3c0abcfe364a69061c84c8170d4f5e6a17a4668d | [
"MIT"
] | null | null | null | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch_sparse import spspmm
from .. import BaseModel, register_model
from .gcn import GraphConvolution
from cogdl.utils import remove_self_loops, coalesce, accuracy
class GTConv(nn.Module):
def __init__(self, in_channels, out_ch... | 38.737374 | 116 | 0.581095 |
4a1833f2e874f31cd4232fbe5bda65f63de3b0ac | 43 | py | Python | src/audisto_exporter/__init__.py | ZeitOnline/audisto_exporter | 9d1b1771c9ec38f0c512f4736b97fd7f3432e904 | [
"BSD-3-Clause"
] | null | null | null | src/audisto_exporter/__init__.py | ZeitOnline/audisto_exporter | 9d1b1771c9ec38f0c512f4736b97fd7f3432e904 | [
"BSD-3-Clause"
] | 1 | 2021-06-24T11:32:59.000Z | 2021-06-24T11:32:59.000Z | src/audisto_exporter/__init__.py | ZeitOnline/audisto_exporter | 9d1b1771c9ec38f0c512f4736b97fd7f3432e904 | [
"BSD-3-Clause"
] | null | null | null | from audisto_exporter.exporter import main
| 21.5 | 42 | 0.883721 |
4a183564c6e587bf7da093d97841c0924d7ed194 | 1,947 | py | Python | backend/api/tests/test_load_ops_data.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 3 | 2020-03-25T03:06:20.000Z | 2021-01-20T23:36:03.000Z | backend/api/tests/test_load_ops_data.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 740 | 2019-12-16T15:53:39.000Z | 2022-03-26T08:25:10.000Z | backend/api/tests/test_load_ops_data.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 11 | 2019-11-28T20:39:15.000Z | 2022-01-31T17:53:31.000Z | # -*- coding: utf-8 -*-
# pylint: disable=no-member,invalid-name,duplicate-code
import importlib
import logging
from collections import namedtuple
from django.test import TestCase
class TestLoadOpsData(TestCase):
"""
Execute specified operational scripts to validate that they work
"""
ScriptDefinitio... | 30.421875 | 77 | 0.562917 |
4a18358e3e2bd7ad774e8b4fe49faf21b86e3f38 | 29,403 | py | Python | Tests/subset/subset_test.py | PeterDekkers/fonttools | ffc98baa0f28af7c4d4c173cca9f01b8c9baac14 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-06-30T13:23:57.000Z | 2021-06-30T13:23:57.000Z | Tests/subset/subset_test.py | PeterDekkers/fonttools | ffc98baa0f28af7c4d4c173cca9f01b8c9baac14 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | Tests/subset/subset_test.py | PeterDekkers/fonttools | ffc98baa0f28af7c4d4c173cca9f01b8c9baac14 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function, division, absolute_import
from fontTools.misc.py23 import *
from fontTools import subset
from fontTools.ttLib import TTFont, newTable
from fontTools.misc.loggingTools import CapturingLogHandler
import difflib
import logging
import os
import shutil
import sys
import tempfile
import... | 46.376972 | 136 | 0.624426 |
4a1835fa6762caa6a5b062b4b9da3ba10587d009 | 1,367 | py | Python | 01-SourceCode/blog/migrations/0001_initial.py | zoomla/ZoomlaCMS_python | a4e1f9282eaeb93a36d73b25889fcd9afa59e4a3 | [
"Apache-2.0"
] | 1 | 2021-01-26T08:36:19.000Z | 2021-01-26T08:36:19.000Z | 01-SourceCode/blog/migrations/0001_initial.py | zoomla/ZoomlaCMS_python | a4e1f9282eaeb93a36d73b25889fcd9afa59e4a3 | [
"Apache-2.0"
] | null | null | null | 01-SourceCode/blog/migrations/0001_initial.py | zoomla/ZoomlaCMS_python | a4e1f9282eaeb93a36d73b25889fcd9afa59e4a3 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-17 13:11
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | 37.972222 | 147 | 0.607169 |
4a18376ff11660c6c5d0cd3e104eb4c59c077663 | 46,331 | py | Python | libcloud/loadbalancer/drivers/nttcis.py | cheald/libcloud | 1a3ebe5d60de6475a8a2384d864475de0abd73cf | [
"Apache-2.0"
] | 4 | 2017-11-14T17:24:12.000Z | 2020-10-30T01:46:02.000Z | libcloud/loadbalancer/drivers/nttcis.py | cheald/libcloud | 1a3ebe5d60de6475a8a2384d864475de0abd73cf | [
"Apache-2.0"
] | 1 | 2018-11-02T12:41:54.000Z | 2018-11-05T07:57:45.000Z | libcloud/loadbalancer/drivers/nttcis.py | cheald/libcloud | 1a3ebe5d60de6475a8a2384d864475de0abd73cf | [
"Apache-2.0"
] | 1 | 2020-02-01T10:25:54.000Z | 2020-02-01T10:25:54.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 use ... | 37.424071 | 79 | 0.584727 |
4a1837887bfc9547ea7915652fc1d5f3f4cd55dd | 670 | py | Python | modules/_regular_reminder.py | thisnameisalreadyused2/NotifyMeBot | ccea868d7573b582e65421b9ea75badb3ce6de3a | [
"MIT"
] | null | null | null | modules/_regular_reminder.py | thisnameisalreadyused2/NotifyMeBot | ccea868d7573b582e65421b9ea75badb3ce6de3a | [
"MIT"
] | null | null | null | modules/_regular_reminder.py | thisnameisalreadyused2/NotifyMeBot | ccea868d7573b582e65421b9ea75badb3ce6de3a | [
"MIT"
] | null | null | null | from DB import Database
db = Database("db")
MENU = range(1)
def reminder_handler(user_id, obj):
date, type, name = obj
db.add_event(user_id, date, "birthday" if type == "Birthday" else "regular", name)
if type == "Birthday":
db.add_reminder(user_id, date - 7 * 24 * 60 * 60, "birthday" if type ==... | 41.875 | 112 | 0.638806 |
4a1838aba1258a96c7ee24c21d167f06d8004265 | 39,437 | py | Python | tests/components/universal/test_media_player.py | mtarjoianu/core | 44e9146463ac505eb3d1c0651ad126cb25c28a54 | [
"Apache-2.0"
] | 3 | 2019-10-02T04:40:26.000Z | 2020-02-16T13:19:08.000Z | tests/components/universal/test_media_player.py | mtarjoianu/core | 44e9146463ac505eb3d1c0651ad126cb25c28a54 | [
"Apache-2.0"
] | 25 | 2021-10-02T10:01:14.000Z | 2022-03-31T06:11:49.000Z | tests/components/universal/test_media_player.py | mtarjoianu/core | 44e9146463ac505eb3d1c0651ad126cb25c28a54 | [
"Apache-2.0"
] | 1 | 2021-12-10T10:33:28.000Z | 2021-12-10T10:33:28.000Z | """The tests for the Universal Media player platform."""
from copy import copy
from unittest.mock import Mock, patch
import pytest
from voluptuous.error import MultipleInvalid
from homeassistant import config as hass_config
import homeassistant.components.input_number as input_number
import homeassistant.components.i... | 32.592562 | 87 | 0.680123 |
4a18399376e999a0f930f165d8a2832e8537f817 | 1,886 | py | Python | xml_jobs_handler.py | baumartig/paperboy | 01659cda235508eac66a50a9c16c4a6c531015bd | [
"Apache-2.0"
] | 3 | 2015-02-26T06:39:40.000Z | 2017-07-04T14:56:18.000Z | xml_jobs_handler.py | baumartig/paperboy | 01659cda235508eac66a50a9c16c4a6c531015bd | [
"Apache-2.0"
] | null | null | null | xml_jobs_handler.py | baumartig/paperboy | 01659cda235508eac66a50a9c16c4a6c531015bd | [
"Apache-2.0"
] | 1 | 2018-02-21T00:12:06.000Z | 2018-02-21T00:12:06.000Z | import xml.sax, xml.sax.handler
import xml.etree.ElementTree as ET
from job import Job
import os.path
import util
jobsPath = "data/jobs.xml"
class JobsHandler(xml.sax.handler.ContentHandler):
def __init__(self):
self.jobs = []
self.attributesList = []
self.buffer = ""
def startElemen... | 26.56338 | 72 | 0.601273 |
4a1839b61e57fa97aabe17be90f6756d21455e7d | 537 | py | Python | setup.py | anurag-jeebly/python-elastic-log-handler | 6f54f453a2d1e753ca4c27a95db638f4fef3ccec | [
"Apache-2.0"
] | 2 | 2017-04-17T08:38:45.000Z | 2017-10-22T15:52:05.000Z | setup.py | saurabh1e/python-elastic-log-handler | 6f54f453a2d1e753ca4c27a95db638f4fef3ccec | [
"Apache-2.0"
] | null | null | null | setup.py | saurabh1e/python-elastic-log-handler | 6f54f453a2d1e753ca4c27a95db638f4fef3ccec | [
"Apache-2.0"
] | 1 | 2022-01-11T06:25:11.000Z | 2022-01-11T06:25:11.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="python-elastic-log-handler",
version='1.0.3',
description="Logging handler to send logs to your elasticsearch",
keywords="logging handler bulk",
author="saurabh",
author_email="saurabh.1e1@gmail.com",
url="https... | 25.571429 | 69 | 0.685289 |
4a183a0289c273fe652927e82de3885f315f896f | 16,249 | py | Python | src/cryptoadvance/specter/util/merkleblock.py | aphex3k/specter-desktop | f20b8447a9dcafb81461cc721e2978bf14fbc529 | [
"MIT"
] | 683 | 2019-08-31T02:26:21.000Z | 2022-03-31T18:43:31.000Z | src/cryptoadvance/specter/util/merkleblock.py | aphex3k/specter-desktop | f20b8447a9dcafb81461cc721e2978bf14fbc529 | [
"MIT"
] | 1,100 | 2019-09-26T13:00:18.000Z | 2022-03-31T22:29:54.000Z | src/cryptoadvance/specter/util/merkleblock.py | aphex3k/specter-desktop | f20b8447a9dcafb81461cc721e2978bf14fbc529 | [
"MIT"
] | 179 | 2019-09-03T17:10:59.000Z | 2022-03-31T16:59:13.000Z | # Code adopted from https://github.com/jimmysong/pb-exercises/
import hashlib
import math
from io import BytesIO
def hash256(s):
return hashlib.sha256(hashlib.sha256(s).digest()).digest()
def read_varint(s):
"""read_varint reads a variable integer from a stream"""
i = s.read(1)[0]
if i == 0xFD:
... | 36.18931 | 90 | 0.590683 |
4a183ba5e623f94b5c12c7a4aa8e1d85eef4e3b5 | 145 | py | Python | LF6/zip_test.py | JohannesMuelle/workshops | af9140159e3872aff75864ced99b5163d7bba1ba | [
"CC0-1.0"
] | 5 | 2016-07-07T09:00:31.000Z | 2017-03-09T22:46:33.000Z | LF6/zip_test.py | JohannesMuelle/workshops | af9140159e3872aff75864ced99b5163d7bba1ba | [
"CC0-1.0"
] | null | null | null | LF6/zip_test.py | JohannesMuelle/workshops | af9140159e3872aff75864ced99b5163d7bba1ba | [
"CC0-1.0"
] | 8 | 2016-05-13T14:29:06.000Z | 2019-10-20T16:43:32.000Z | import zipfile
import sys
zFile = zipfile.ZipFile("evil.zip")
try:
zFile.extractall(pwd="bloedsinn")
except:
print(sys.exc_info()[0]) | 20.714286 | 37 | 0.696552 |
4a183e6cecf30eee4f3bf6852a19f19e28eb4c23 | 316 | py | Python | slack-vrc/vrchat-api-python-master/setup.py | kugiha/slack-vrc | b5a16ac6492eacb7a65e53c71d6dfe61981afec5 | [
"MIT"
] | 22 | 2019-02-09T19:54:56.000Z | 2022-03-28T10:55:29.000Z | slack-vrc/vrchat-api-python-master/setup.py | kugiha/slack-vrc | b5a16ac6492eacb7a65e53c71d6dfe61981afec5 | [
"MIT"
] | 3 | 2019-02-09T16:05:12.000Z | 2019-03-14T13:42:38.000Z | slack-vrc/vrchat-api-python-master/setup.py | kugiha/slack-vrc | b5a16ac6492eacb7a65e53c71d6dfe61981afec5 | [
"MIT"
] | 5 | 2019-01-26T08:45:56.000Z | 2021-10-09T08:18:51.000Z | from setuptools import setup
setup(
name="vrchat-api",
version="0.1.0",
description="An unofficial Python library for the VRChat API",
url="https://github.com/y23586/vrchat-api-python",
author="y23586",
license="MIT",
packages=["vrchat_api"],
install_requires=["requests>=2.21.0"]
)
| 24.307692 | 66 | 0.664557 |
4a183e9a4273e1776e6c18b3b567de93cfa0c31e | 20,481 | py | Python | src/figure_report/html_report.py | stephenkraemer/figure_report | 15c9d1a346906eff329ef27f9c6dcdca5612afdb | [
"MIT"
] | null | null | null | src/figure_report/html_report.py | stephenkraemer/figure_report | 15c9d1a346906eff329ef27f9c6dcdca5612afdb | [
"MIT"
] | null | null | null | src/figure_report/html_report.py | stephenkraemer/figure_report | 15c9d1a346906eff329ef27f9c6dcdca5612afdb | [
"MIT"
] | null | null | null | # TODO: avoid import of rpy2 if not necessary
# TODO: remove hard-coding to currywurst links
import shutil
from pathlib import Path
from typing import Union
import textwrap
import re
import time
import pandas as pd
from IPython.display import display
pd.options.display.max_colwidth = 10000
pd.options.display.max_rows... | 32.717252 | 187 | 0.599824 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.