hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7cfa416e684eef42a41f05552ac51704b017a9e1 | 1,471 | py | Python | arguments_setting.py | Projectoy/ml_framework | f3d37d632a1aec314eb186a3da6d174a5dc4beee | [
"Apache-2.0"
] | null | null | null | arguments_setting.py | Projectoy/ml_framework | f3d37d632a1aec314eb186a3da6d174a5dc4beee | [
"Apache-2.0"
] | null | null | null | arguments_setting.py | Projectoy/ml_framework | f3d37d632a1aec314eb186a3da6d174a5dc4beee | [
"Apache-2.0"
] | null | null | null | import argparse, os | 36.775 | 119 | 0.680489 |
7cfa745e3890fcda9ffd072f599dc7be286f99a5 | 11,039 | py | Python | fileHandler.py | Omer-Sella/ldpc | 955c0bc32236e171365cbbb88f00574302771610 | [
"MIT"
] | null | null | null | fileHandler.py | Omer-Sella/ldpc | 955c0bc32236e171365cbbb88f00574302771610 | [
"MIT"
] | null | null | null | fileHandler.py | Omer-Sella/ldpc | 955c0bc32236e171365cbbb88f00574302771610 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 28 12:10:11 2019
@author: Omer
"""
## File handler
## This file was initially intended purely to generate the matrices for the near earth code found in: https://public.ccsds.org/Pubs/131x1o2e2s.pdf
## The values from the above pdf were copied manually to a txt file, and ... | 38.197232 | 172 | 0.621343 |
7cfaab0b77af0b6c7c138ff09a0a82244c391f57 | 12,133 | py | Python | stage/configuration/test_amazon_s3_origin.py | Sentienz/datacollector-tests | ca27988351dc3366488098b5db6c85a8be2f7b85 | [
"Apache-2.0"
] | null | null | null | stage/configuration/test_amazon_s3_origin.py | Sentienz/datacollector-tests | ca27988351dc3366488098b5db6c85a8be2f7b85 | [
"Apache-2.0"
] | null | null | null | stage/configuration/test_amazon_s3_origin.py | Sentienz/datacollector-tests | ca27988351dc3366488098b5db6c85a8be2f7b85 | [
"Apache-2.0"
] | 1 | 2019-10-29T08:46:11.000Z | 2019-10-29T08:46:11.000Z | import logging
import pytest
from streamsets.testframework.markers import aws, sdc_min_version
from streamsets.testframework.utils import get_random_string
logger = logging.getLogger(__name__)
S3_SANDBOX_PREFIX = 'sandbox'
LOG_FIELD_MAPPING = [{'fieldPath': '/date', 'group': 1},
{'fieldPath': '/... | 46.84556 | 334 | 0.656556 |
7cfb56c23b97ce934940b9509f58841e0ebbb0fe | 3,493 | py | Python | model_building/svr_experiment_configuration.py | eubr-atmosphere/a-MLLibrary | b6ba472baacea6d793ab4f03275cdfa874e83bc3 | [
"Apache-2.0"
] | 3 | 2021-09-19T17:06:31.000Z | 2021-12-10T23:21:21.000Z | model_building/svr_experiment_configuration.py | eubr-atmosphere/a-MLLibrary | b6ba472baacea6d793ab4f03275cdfa874e83bc3 | [
"Apache-2.0"
] | null | null | null | model_building/svr_experiment_configuration.py | eubr-atmosphere/a-MLLibrary | b6ba472baacea6d793ab4f03275cdfa874e83bc3 | [
"Apache-2.0"
] | 1 | 2021-09-27T13:54:12.000Z | 2021-09-27T13:54:12.000Z | """
Copyright 2019 Marco Lattuada
Copyright 2019 Danilo Ardagna
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... | 38.811111 | 111 | 0.692242 |
7cfbb1bacec44e19e996fa070cd83150534767b0 | 1,000 | py | Python | src/scs_host/sys/host_gpi.py | south-coast-science/scs_host_rpi | a02afde3fd2e1f2b8c6dc08beef8c74039108a64 | [
"MIT"
] | null | null | null | src/scs_host/sys/host_gpi.py | south-coast-science/scs_host_rpi | a02afde3fd2e1f2b8c6dc08beef8c74039108a64 | [
"MIT"
] | 1 | 2020-07-13T14:54:08.000Z | 2020-11-16T10:11:04.000Z | src/scs_host/sys/host_gpi.py | south-coast-science/scs_host_rpi | a02afde3fd2e1f2b8c6dc08beef8c74039108a64 | [
"MIT"
] | 2 | 2017-11-07T16:59:02.000Z | 2019-09-29T15:39:37.000Z | """
Created on 12 May 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
from scs_host.sys.host_gpio import HostGPIO
# --------------------------------------------------------------------------------------------------------------------
# noinspection PyUnusedLocal,PyAbstractClass
| 25 | 118 | 0.346 |
7cfcc11fbbb1d31705e442bed5fe7d622b04a2bd | 4,472 | py | Python | benchmark/AMS/HIGGSTES/TP.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | 2 | 2019-03-20T09:05:02.000Z | 2019-03-20T15:23:44.000Z | benchmark/AMS/HIGGSTES/TP.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | null | null | null | benchmark/AMS/HIGGSTES/TP.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from __future__ import unicode_literals
# Command line :
# python -m benchmark.VAR.GG.TP
import os
import logging
from config import SEED
from config import _ERROR
from co... | 30.841379 | 97 | 0.687165 |
7cfd01e468c618706379749c3f05781c60e2fe7b | 1,883 | py | Python | papermill/tests/test_adl.py | dmartinpro/papermill | fbb0a60c97cde70e3b278f778cbd366cf54f83f0 | [
"BSD-3-Clause"
] | null | null | null | papermill/tests/test_adl.py | dmartinpro/papermill | fbb0a60c97cde70e3b278f778cbd366cf54f83f0 | [
"BSD-3-Clause"
] | null | null | null | papermill/tests/test_adl.py | dmartinpro/papermill | fbb0a60c97cde70e3b278f778cbd366cf54f83f0 | [
"BSD-3-Clause"
] | null | null | null | import unittest
from ..adl import ADL
import six
if six.PY3:
from unittest.mock import Mock, MagicMock
else:
from mock import Mock, MagicMock
| 36.211538 | 97 | 0.670738 |
7cfd39821c7ad2ac471f6e189d3999d3560e833a | 259 | py | Python | users/views.py | AnvarKhan/django-python | bd54e44deb290f43ea5982c2ca9f37cd6c946879 | [
"Apache-2.0"
] | 1 | 2022-02-05T15:07:25.000Z | 2022-02-05T15:07:25.000Z | users/views.py | AnvarKhan/django-python | bd54e44deb290f43ea5982c2ca9f37cd6c946879 | [
"Apache-2.0"
] | null | null | null | users/views.py | AnvarKhan/django-python | bd54e44deb290f43ea5982c2ca9f37cd6c946879 | [
"Apache-2.0"
] | null | null | null | from django.views.generic import CreateView
from django.urls import reverse_lazy
from .forms import CustomUserCreationForm
| 28.777778 | 43 | 0.830116 |
7cfe95c6759feee2397de3f952b5fd6bdfa39ca2 | 137 | py | Python | st3/package_util/compat/typing.py | Thom1729/package_util | 3ddec00d8ab4a52f0f5ce3fe8b09247c1518547f | [
"MIT"
] | 18 | 2020-02-20T11:56:43.000Z | 2021-12-30T19:00:50.000Z | st3/package_util/compat/typing.py | Thom1729/package_util | 3ddec00d8ab4a52f0f5ce3fe8b09247c1518547f | [
"MIT"
] | 31 | 2020-02-21T13:38:12.000Z | 2021-12-15T22:18:37.000Z | st3/package_util/compat/typing.py | Thom1729/package_util | 3ddec00d8ab4a52f0f5ce3fe8b09247c1518547f | [
"MIT"
] | 3 | 2020-02-21T09:31:27.000Z | 2021-10-01T20:56:16.000Z | try:
from typing import * # noqa: F401, F403
except ImportError:
from .typing_stubs import * # type: ignore # noqa: F401, F403
| 27.4 | 66 | 0.671533 |
7cfea92f95c14fb4efaa051120fc4e6f1facdf01 | 2,858 | py | Python | stanza/models/common/dropout.py | rasimuvaikas/stanza | 21793519a531b0e9d7151e42d180d97785c9a5b8 | [
"Apache-2.0"
] | 3,633 | 2016-01-21T17:29:13.000Z | 2022-03-31T13:36:47.000Z | stanza/models/common/dropout.py | rasimuvaikas/stanza | 21793519a531b0e9d7151e42d180d97785c9a5b8 | [
"Apache-2.0"
] | 593 | 2016-01-19T07:16:05.000Z | 2022-03-31T20:23:58.000Z | stanza/models/common/dropout.py | rasimuvaikas/stanza | 21793519a531b0e9d7151e42d180d97785c9a5b8 | [
"Apache-2.0"
] | 525 | 2016-01-20T03:22:19.000Z | 2022-03-24T05:51:56.000Z | import torch
import torch.nn as nn
| 37.605263 | 139 | 0.642407 |
7cff5cb6c2fef0ecc0f5ac6be8e4bd36f4fe013c | 365 | py | Python | Day01-15/code/Day15/pdf2.py | bdfd/Python_Zero2Hero_DS | 9dafe90b8112fdc3d07e1aa02e41ed3f019f733c | [
"MIT"
] | 3 | 2022-01-15T19:06:19.000Z | 2022-01-18T16:47:27.000Z | Day01-15/code/Day15/pdf2.py | bdfd/4.5_Data-Science-Python-Zero2Hero- | 9dafe90b8112fdc3d07e1aa02e41ed3f019f733c | [
"MIT"
] | null | null | null | Day01-15/code/Day15/pdf2.py | bdfd/4.5_Data-Science-Python-Zero2Hero- | 9dafe90b8112fdc3d07e1aa02e41ed3f019f733c | [
"MIT"
] | 1 | 2022-01-09T00:18:49.000Z | 2022-01-09T00:18:49.000Z | """
PDF
Version: 0.1
Author: BDFD
Date: 2018-03-26
"""
from PyPDF2 import PdfFileReader
with open('./res/Python.pdf', 'rb') as f:
reader = PdfFileReader(f, strict=False)
print(reader.numPages)
if reader.isEncrypted:
reader.decrypt('')
current_page = reader.getPage(5)
print(current_page)
... | 19.210526 | 45 | 0.682192 |
7cff626ae151f2363fd9919cb12cd92f5b8974de | 2,335 | py | Python | qt__pyqt__pyside__pyqode/qt__class_tree__parse_and_print__recursively__from__doc_qt_io/gui.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | null | null | null | qt__pyqt__pyside__pyqode/qt__class_tree__parse_and_print__recursively__from__doc_qt_io/gui.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | null | null | null | qt__pyqt__pyside__pyqode/qt__class_tree__parse_and_print__recursively__from__doc_qt_io/gui.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
from PyQt5 import QtWidgets as qtw
from PyQt5.QtTest import QTest
import time
import requests
from bs4 import BeautifulSoup
from console import get_inherited_children, ROOT_URL
if __name__ == '__main__':
app = qtw.QApplication([])
w... | 25.107527 | 98 | 0.628266 |
7cffa5673d098c5404a18e4042db11fef2170e1f | 6,540 | py | Python | common/OpTestASM.py | kyle-ibm/op-test | df8dbf8cbff1390668c22632052adb46ebf277c1 | [
"Apache-2.0"
] | null | null | null | common/OpTestASM.py | kyle-ibm/op-test | df8dbf8cbff1390668c22632052adb46ebf277c1 | [
"Apache-2.0"
] | null | null | null | common/OpTestASM.py | kyle-ibm/op-test | df8dbf8cbff1390668c22632052adb46ebf277c1 | [
"Apache-2.0"
] | 1 | 2021-05-25T11:33:18.000Z | 2021-05-25T11:33:18.000Z | #!/usr/bin/env python3
# encoding=utf8
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: op-test-framework/common/OpTestASM.py $
#
# OpenPOWER Automated Test Project
#
# Contributors Listed Below - COPYRIGHT 2017
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache ... | 31.902439 | 90 | 0.555657 |
6b00216e5015b612b495eca186f46004bdc92b04 | 1,824 | py | Python | test/test_storage.py | jrabasco/PyPasser | 3cc6ecdfa9b5fe22f5a88c221517fe09d2df9db6 | [
"MIT"
] | null | null | null | test/test_storage.py | jrabasco/PyPasser | 3cc6ecdfa9b5fe22f5a88c221517fe09d2df9db6 | [
"MIT"
] | null | null | null | test/test_storage.py | jrabasco/PyPasser | 3cc6ecdfa9b5fe22f5a88c221517fe09d2df9db6 | [
"MIT"
] | null | null | null | #!/usr/bin/python3.4
__author__ = "Jeremy Rabasco"
import sys
import os
sys.path.append("..")
import unittest
from modules import storage
from modules.service import Service
from modules.database import Database
if __name__ == "__main__":
unittest.main() | 35.076923 | 104 | 0.668311 |
6b00e8ebc8e80cec62f2565854961c322350a073 | 4,676 | py | Python | virt/ansible-latest/lib/python2.7/site-packages/ansible/plugins/lookup/template.py | lakhlaifi/RedHat-Ansible | 27c5077cced9d416081fcd5d69ea44bca0317fa4 | [
"Apache-2.0"
] | 1 | 2020-03-22T01:04:39.000Z | 2020-03-22T01:04:39.000Z | ansible/ansible/plugins/lookup/template.py | SergeyCherepanov/ansible | 875711cd2fd6b783c812241c2ed7a954bf6f670f | [
"MIT"
] | 7 | 2020-09-07T17:27:56.000Z | 2022-03-02T06:25:46.000Z | ansible/ansible/plugins/lookup/template.py | SergeyCherepanov/ansible | 875711cd2fd6b783c812241c2ed7a954bf6f670f | [
"MIT"
] | 1 | 2020-03-22T01:04:48.000Z | 2020-03-22T01:04:48.000Z | # Copyright: (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# Copyright: (c) 2012-17, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = """
lookup... | 40.66087 | 159 | 0.64136 |
6b01058178b8f414abe46085a609e4696e9cb097 | 1,096 | py | Python | setup.py | ripiuk/fant_sizer | dcc0908c79ed76af3f4189ebd2a75cecf7a89e34 | [
"MIT"
] | null | null | null | setup.py | ripiuk/fant_sizer | dcc0908c79ed76af3f4189ebd2a75cecf7a89e34 | [
"MIT"
] | null | null | null | setup.py | ripiuk/fant_sizer | dcc0908c79ed76af3f4189ebd2a75cecf7a89e34 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from os.path import join, dirname
setup(
name="fant_sizer",
version="0.7",
author="Rypiuk Oleksandr",
author_email="ripiuk96@gmail.com",
description="fant_sizer command-line file-information",
url="https://github.com/ripiuk/fan... | 36.533333 | 76 | 0.581204 |
6b032c5cf849bb1b6a9241eb068c04ff780d5adc | 1,957 | py | Python | 2018/Round 1A/A.py | elvisyjlin/google-code-jam | 7fe8244c5ae07a9896acf9c48f3a06b306b393b1 | [
"MIT"
] | null | null | null | 2018/Round 1A/A.py | elvisyjlin/google-code-jam | 7fe8244c5ae07a9896acf9c48f3a06b306b393b1 | [
"MIT"
] | null | null | null | 2018/Round 1A/A.py | elvisyjlin/google-code-jam | 7fe8244c5ae07a9896acf9c48f3a06b306b393b1 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
T = int(input())
for t in range(T):
print('Case #{}: {}'.format(t+1, solve()))
| 27.56338 | 50 | 0.444558 |
6b041831b70999f5552fbde4cf4fd10965b426d5 | 9,798 | py | Python | desktop/libs/liboozie/src/liboozie/submittion_tests.py | vinaymundada27/Hue | 7bffb33bbe7cfa34d340241c4ba3b19476211b2a | [
"Apache-2.0"
] | 1 | 2018-08-01T05:10:26.000Z | 2018-08-01T05:10:26.000Z | desktop/libs/liboozie/src/liboozie/submittion_tests.py | vinaymundada27/Hue | 7bffb33bbe7cfa34d340241c4ba3b19476211b2a | [
"Apache-2.0"
] | null | null | null | desktop/libs/liboozie/src/liboozie/submittion_tests.py | vinaymundada27/Hue | 7bffb33bbe7cfa34d340241c4ba3b19476211b2a | [
"Apache-2.0"
] | 1 | 2019-07-23T12:36:09.000Z | 2019-07-23T12:36:09.000Z | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | 35.11828 | 106 | 0.677689 |
6b04b9ebe40e4d32dbf9b4d850ad1eefd373d8ea | 12,721 | py | Python | Training/train_baseHD.py | Wenyuan-Vincent-Li/SSL_Seg_GAN | 8f6c45fd000ea12468dccf211b376fadbf4759c6 | [
"Apache-2.0"
] | 1 | 2022-03-09T11:51:22.000Z | 2022-03-09T11:51:22.000Z | Training/train_baseHD.py | Wenyuan-Vincent-Li/SSL_Seg_GAN | 8f6c45fd000ea12468dccf211b376fadbf4759c6 | [
"Apache-2.0"
] | null | null | null | Training/train_baseHD.py | Wenyuan-Vincent-Li/SSL_Seg_GAN | 8f6c45fd000ea12468dccf211b376fadbf4759c6 | [
"Apache-2.0"
] | null | null | null | import torch.nn as nn
import torch.optim as optim
import torch.utils.data
from Training import functions
from Training.imresize import imresize
import matplotlib.pyplot as plt
from Models.pix2pixHD_base import GANLoss, VGGLoss
from Models.pix2pixHD2 import mask2onehot
def train_single_scale(dataloader, netD, netG, n... | 48.003774 | 162 | 0.537929 |
6b04db30f6d56200725a9e9d3be9cbc67d645d65 | 2,074 | py | Python | tests/python/unittest/test_tir_pass_inject_double_buffer.py | 0xreza/tvm | f08d5d78ee000b2c113ac451f8d73817960eafd5 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | null | null | null | tests/python/unittest/test_tir_pass_inject_double_buffer.py | 0xreza/tvm | f08d5d78ee000b2c113ac451f8d73817960eafd5 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | 1 | 2020-07-29T00:21:19.000Z | 2020-07-29T00:21:19.000Z | tests/python/unittest/test_tir_pass_inject_double_buffer.py | 0xreza/tvm | f08d5d78ee000b2c113ac451f8d73817960eafd5 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | 1 | 2021-07-22T17:33:16.000Z | 2021-07-22T17:33:16.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... | 36.385965 | 74 | 0.655738 |
6b052c373e2583931e7668595c831adfd5fed432 | 491 | py | Python | read_sensor.py | shivupoojar/openfaas-pi | 5eda501368a1ac321954cb2aaf58be617977bd58 | [
"Apache-2.0"
] | 1 | 2020-11-24T03:31:26.000Z | 2020-11-24T03:31:26.000Z | read_sensor.py | shivupoojar/openfaas-pi | 5eda501368a1ac321954cb2aaf58be617977bd58 | [
"Apache-2.0"
] | null | null | null | read_sensor.py | shivupoojar/openfaas-pi | 5eda501368a1ac321954cb2aaf58be617977bd58 | [
"Apache-2.0"
] | null | null | null | import requests
from sense_hat import SenseHat
import smbus
import time
while True:
try:
pressure=0
sense = SenseHat()
pressure = sense.get_pressure()
data = {'pressure':pressure}
print(pressure)
#send http request to sense serverless function with pressure
#data
r=req... | 21.347826 | 69 | 0.672098 |
6b0543a7aff4c6ab6b022a2d8e6d154ed4873777 | 1,528 | py | Python | trabantsim/prototypes/space_invaders.py | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | 9 | 2019-09-03T18:33:31.000Z | 2022-02-04T04:00:02.000Z | trabantsim/prototypes/space_invaders.py | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | null | null | null | trabantsim/prototypes/space_invaders.py | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# Space Invadersishkebab.
from trabant import *
# ASCII geometries.
shipascii = r'''
/\
/XXXXXXXX\
v v
'''
invader = r'''
/XXXXXX\
/XXXXXXXX\
XXXXXXXXXX
XX XX XX
\XXXXXXXX/
/XX XX\
/X/ \/ \X\
X/ \X
'''
cam(distance=250)
gravity((0,0,0))
ship = create_ascii_object(... | 24.645161 | 112 | 0.581806 |
6b05df704fde4ca413cc3974d404975347c287a5 | 11,550 | py | Python | model/backbone/xception.py | Shang-XH/BAFTT | 62392325342f48b8a89f0c2bf71e48026dd90629 | [
"MIT"
] | 4 | 2021-09-07T03:29:38.000Z | 2021-09-07T04:24:31.000Z | model/backbone/xception.py | Shang-XH/BAFTT | 62392325342f48b8a89f0c2bf71e48026dd90629 | [
"MIT"
] | null | null | null | model/backbone/xception.py | Shang-XH/BAFTT | 62392325342f48b8a89f0c2bf71e48026dd90629 | [
"MIT"
] | null | null | null | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.model_zoo as model_zoo
from model.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d
if __name__ == "__main__":
import torch
model = AlignedXception(BatchNorm=nn.BatchNorm2d, pretrained=True, output_stri... | 40.104167 | 116 | 0.583117 |
6b096c429c0f219b1a8f9aeb011545c4774f439d | 1,430 | py | Python | Backend/autonomus/utils/mail.py | IrinaMBejan/Autonom | 4a97da1b26ed22e3ec8bb939359148765392b692 | [
"MIT"
] | 2 | 2019-03-08T10:04:35.000Z | 2020-03-14T15:24:56.000Z | Backend/autonomus/utils/mail.py | IrinaMBejan/Autonom | 4a97da1b26ed22e3ec8bb939359148765392b692 | [
"MIT"
] | null | null | null | Backend/autonomus/utils/mail.py | IrinaMBejan/Autonom | 4a97da1b26ed22e3ec8bb939359148765392b692 | [
"MIT"
] | 2 | 2019-03-16T14:47:36.000Z | 2020-04-28T14:09:45.000Z | from sendgrid import SendGridAPIClient
from sendgrid.helpers.mail import Mail, Substitution
API_KEY = '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'
API_KEY_ID = 'egd1yywWRbeVF2gcGhTH2Q'
ENCODING = "utf-8"
DEFAULT_MAIL="irinam.bejan@gmail.com"
| 29.791667 | 89 | 0.68951 |
6b09dfca59db461ba56fcce8bea683cfe5b5f132 | 22,696 | py | Python | yellowbrick/features/pca.py | percygautam/yellowbrick | 1ba6774a257bc85768a990293790caf4c14a5653 | [
"Apache-2.0"
] | 1 | 2020-04-30T08:50:11.000Z | 2020-04-30T08:50:11.000Z | yellowbrick/features/pca.py | percygautam/yellowbrick | 1ba6774a257bc85768a990293790caf4c14a5653 | [
"Apache-2.0"
] | null | null | null | yellowbrick/features/pca.py | percygautam/yellowbrick | 1ba6774a257bc85768a990293790caf4c14a5653 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# yellowbrick.features.pca
# Decomposition based feature visualization with PCA.
#
# Author: Carlo Morales
# Author: Ral Peralta Lozada
# Author: Benjamin Bengfort
# Created: Tue May 23 18:34:27 2017 -0400
#
# Copyright (C) 2017 The scikit-yb developers
# For license information, see LICE... | 36.547504 | 88 | 0.606847 |
6b09e9510878cd225e1975781111b1e1feae8734 | 1,229 | py | Python | k2/python/host/k2host/properties.py | Jarvan-Wang/k2 | 7f164ecb804d15006fd30e8564d80e0fa212f011 | [
"Apache-2.0"
] | 144 | 2020-04-17T10:10:57.000Z | 2022-03-25T19:07:54.000Z | k2/python/host/k2host/properties.py | Jarvan-Wang/k2 | 7f164ecb804d15006fd30e8564d80e0fa212f011 | [
"Apache-2.0"
] | 136 | 2020-04-22T10:35:10.000Z | 2021-08-16T13:49:29.000Z | k2/python/host/k2host/properties.py | Jarvan-Wang/k2 | 7f164ecb804d15006fd30e8564d80e0fa212f011 | [
"Apache-2.0"
] | 26 | 2020-04-21T08:23:06.000Z | 2021-09-02T15:23:53.000Z | # Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu)
# See ../../../LICENSE for clarification regarding multiple authors
import torch
from torch.utils.dlpack import to_dlpack
from .fsa import Fsa
from _k2host import _is_valid
from _k2host import _is_top_sorted
from _k2host import _is_arc_sorted
from _k2hos... | 22.759259 | 67 | 0.753458 |
6b0a2521796cb92f0d1e011306fd05dc969275cf | 355 | py | Python | origamibot/core/teletypes/poll_option.py | cmd410/OrigamiBot | 03667d069f0c0b088671936ce36bf8f85a029b93 | [
"MIT"
] | 4 | 2020-06-30T10:32:54.000Z | 2020-11-01T23:07:58.000Z | origamibot/core/teletypes/poll_option.py | cmd410/OrigamiBot | 03667d069f0c0b088671936ce36bf8f85a029b93 | [
"MIT"
] | 6 | 2020-06-26T23:14:59.000Z | 2020-07-26T11:48:07.000Z | origamibot/core/teletypes/poll_option.py | cmd410/OrigamiBot | 03667d069f0c0b088671936ce36bf8f85a029b93 | [
"MIT"
] | 1 | 2020-07-28T08:52:51.000Z | 2020-07-28T08:52:51.000Z | from .base import TelegramStructure, Field
| 19.722222 | 42 | 0.515493 |
6b0a3fda038a685ade7b25955f97976cdafc44a7 | 787 | py | Python | var/spack/repos/builtin/packages/r-viridislite/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 9 | 2018-04-18T07:51:40.000Z | 2021-09-10T03:56:57.000Z | var/spack/repos/builtin/packages/r-viridislite/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 907 | 2018-04-18T11:17:57.000Z | 2022-03-31T13:20:25.000Z | var/spack/repos/builtin/packages/r-viridislite/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 29 | 2018-11-05T16:14:23.000Z | 2022-02-03T16:07:09.000Z | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
| 39.35 | 95 | 0.7446 |
6b0a89ea28d57009a70965dacb867faddce3f86e | 28,086 | py | Python | shiSock-0.2.0/test_two/PySock/server.py | AnanyaRamanA/shiSock | 51efb0eba17eb106b9480598d278536ddd7732c3 | [
"MIT"
] | null | null | null | shiSock-0.2.0/test_two/PySock/server.py | AnanyaRamanA/shiSock | 51efb0eba17eb106b9480598d278536ddd7732c3 | [
"MIT"
] | null | null | null | shiSock-0.2.0/test_two/PySock/server.py | AnanyaRamanA/shiSock | 51efb0eba17eb106b9480598d278536ddd7732c3 | [
"MIT"
] | 1 | 2021-10-31T13:47:42.000Z | 2021-10-31T13:47:42.000Z | from re import S
import select
import socket
import queue
import threading
import sys
import pickle
import base64
import os
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
from cryptography.hazmat.primitives.serialization import load_ssh_public_key... | 38.73931 | 170 | 0.44054 |
6b0b0bbc4a2a5899aadcf7804e822911158b0d28 | 9,304 | py | Python | server/www/packages/packages-windows/x86/ldap3/utils/asn1.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/utils/asn1.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/utils/asn1.py | zhoulhb/teleport | 54da194697898ef77537cfe7032d774555dc1335 | [
"Apache-2.0"
] | 230 | 2018-09-13T02:40:49.000Z | 2022-03-29T11:53:58.000Z | """
"""
# Created on 2015.08.19
#
# 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... | 37.821138 | 161 | 0.661651 |
6b0c63a3de849494bdcf25b7c5c83e9a868cfc9f | 2,351 | py | Python | lib/utils/arg_scope.py | SimeonZhang/detectron2_tensorflow | ca03f633111d540ea91b3de75dbfa1da813647be | [
"Apache-2.0"
] | 3 | 2021-06-07T10:48:51.000Z | 2022-03-01T11:43:40.000Z | lib/utils/arg_scope.py | SimeonZhang/detectron2_tensorflow | ca03f633111d540ea91b3de75dbfa1da813647be | [
"Apache-2.0"
] | null | null | null | lib/utils/arg_scope.py | SimeonZhang/detectron2_tensorflow | ca03f633111d540ea91b3de75dbfa1da813647be | [
"Apache-2.0"
] | null | null | null | import copy
from contextlib import contextmanager
from functools import wraps
from collections import defaultdict
import tensorflow as tf
_ArgScopeStack = []
def get_arg_scope():
"""
Returns:
dict: the current argscope.
An argscope is a dict of dict: ``dict[layername] = {arg: val}``
"""
... | 26.41573 | 93 | 0.64228 |
6b0cebe762170956488a4d3cddc7f97ae057f2da | 754 | py | Python | CORN-TEST/textfsm_parse.py | AnkitDeshwal89/NETMIKO | 81c164e9cff46d11b56612f6adc343b6bcdfe87a | [
"Apache-2.0"
] | null | null | null | CORN-TEST/textfsm_parse.py | AnkitDeshwal89/NETMIKO | 81c164e9cff46d11b56612f6adc343b6bcdfe87a | [
"Apache-2.0"
] | null | null | null | CORN-TEST/textfsm_parse.py | AnkitDeshwal89/NETMIKO | 81c164e9cff46d11b56612f6adc343b6bcdfe87a | [
"Apache-2.0"
] | null | null | null | import textfsm
import subprocess
import random
res = subprocess.run('ifconfig',stdout=subprocess.PIPE)
intstatus = res.stdout.decode('ascii')
with open("datafile","w+") as a:
a.write(intstatus)
a.close()
template_file= "ifconfig-template.template"
template = open(template_file)
with open("datafile") as ... | 18.390244 | 55 | 0.667109 |
6b0d16f74ff1faebf0826e751ccbc24a085729d3 | 31,951 | py | Python | classes.py | jared-jorgenson/mini_game | ac73987ac4c32c0e9f521d7bcf8d4d9ee4ded85a | [
"MIT"
] | null | null | null | classes.py | jared-jorgenson/mini_game | ac73987ac4c32c0e9f521d7bcf8d4d9ee4ded85a | [
"MIT"
] | null | null | null | classes.py | jared-jorgenson/mini_game | ac73987ac4c32c0e9f521d7bcf8d4d9ee4ded85a | [
"MIT"
] | null | null | null | import pygame
| 59.833333 | 121 | 0.52111 |
6b0d7e26713e21d118eb39e3b4c51db758d9a74a | 18,151 | py | Python | installSynApps/data_model/install_config.py | NSLS-II/installSynApps | 0f8e978939715bbba1a064ead3044fa36215cb09 | [
"BSD-3-Clause"
] | null | null | null | installSynApps/data_model/install_config.py | NSLS-II/installSynApps | 0f8e978939715bbba1a064ead3044fa36215cb09 | [
"BSD-3-Clause"
] | 2 | 2021-01-06T19:57:19.000Z | 2021-03-11T20:48:42.000Z | installSynApps/data_model/install_config.py | NSLS-II/installSynApps | 0f8e978939715bbba1a064ead3044fa36215cb09 | [
"BSD-3-Clause"
] | 1 | 2020-12-14T20:35:20.000Z | 2020-12-14T20:35:20.000Z | """A file containing representations of install configurations.
The core Data representation for installSynApps. An InstallConfiguration object
is parsed from a configuration, and is then used throughout the build process.
InjectorFile objects are used for representing text that need to be injected
into configuration... | 39.804825 | 130 | 0.598204 |
6b0ed79dd0939a74afbcf7db38081382144c0b6e | 3,587 | py | Python | apps/accounts/views.py | tarvitz/icu | 9a7cdac9d26ea224539f68f678b90bf70084374d | [
"BSD-3-Clause"
] | 1 | 2022-03-12T23:44:21.000Z | 2022-03-12T23:44:21.000Z | apps/accounts/views.py | tarvitz/icu | 9a7cdac9d26ea224539f68f678b90bf70084374d | [
"BSD-3-Clause"
] | null | null | null | apps/accounts/views.py | tarvitz/icu | 9a7cdac9d26ea224539f68f678b90bf70084374d | [
"BSD-3-Clause"
] | null | null | null | # Create your views here.
# -*- coding: utf-8 -*-
from apps.core.helpers import render_to, ajax_response, get_object_or_None
from apps.core.decorators import lock, login_required_json
from apps.accounts.models import Invite
from apps.accounts.decorators import check_invite
from apps.accounts.forms import (
LoginFor... | 30.922414 | 115 | 0.642598 |
6b0f57abb4c6963ae8d955c1ecf87495f2b1c219 | 12,193 | py | Python | plugins/modules/oci_blockstorage_volume_backup_policy_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_blockstorage_volume_backup_policy_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_blockstorage_volume_backup_policy_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for d... | 38.342767 | 157 | 0.584598 |
6b0ff469900ccc9c854a18661fc7b7737ba3ac79 | 98 | py | Python | pi_control/server_stats/apps.py | mhozza/pi-control | 0dce821b4702519fedc3950270ee0091ed484ef6 | [
"MIT"
] | null | null | null | pi_control/server_stats/apps.py | mhozza/pi-control | 0dce821b4702519fedc3950270ee0091ed484ef6 | [
"MIT"
] | 10 | 2020-03-14T21:04:36.000Z | 2022-03-03T21:51:07.000Z | pi_control/server_stats/apps.py | mhozza/pi-control | 0dce821b4702519fedc3950270ee0091ed484ef6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 16.333333 | 35 | 0.77551 |
6b1048e91d3158720f5949f6fb7c7ea76df6e7a1 | 14,435 | py | Python | testproject/testproject/settings.py | jackvz/mezzanine-cartridge-api | c956afa672fcf1035ab60cd5eb6589a06ccaafa0 | [
"MIT"
] | 1 | 2019-04-18T23:28:03.000Z | 2019-04-18T23:28:03.000Z | testproject/testproject/settings.py | jackvz/mezzanine-cartridge-api | c956afa672fcf1035ab60cd5eb6589a06ccaafa0 | [
"MIT"
] | 1 | 2020-06-05T20:27:04.000Z | 2020-06-05T20:27:04.000Z | testproject/testproject/settings.py | jackvz/mezzanine-cartridge-api | c956afa672fcf1035ab60cd5eb6589a06ccaafa0 | [
"MIT"
] | 1 | 2020-12-13T15:55:53.000Z | 2020-12-13T15:55:53.000Z |
from __future__ import absolute_import, unicode_literals
import os
from django import VERSION as DJANGO_VERSION
from django.utils.translation import ugettext_lazy as _
SECRET_KEY = '%29hnw7d-dy4n)!@1yi#ov#^@x0b=o*2o8^31oe!+(xw!!oc9a'
######################
# CARTRIDGE SETTINGS #
######################
# The follow... | 34.783133 | 79 | 0.699619 |
6b1163fcd99a8abc3b5c62d0ed18bd3324cc7b0a | 959 | py | Python | wordgen/data_gen.py | ishaanbakhle/wordgen.us | 45c5247ce04b13badd2e1b3164cedc9176a805c7 | [
"MIT"
] | null | null | null | wordgen/data_gen.py | ishaanbakhle/wordgen.us | 45c5247ce04b13badd2e1b3164cedc9176a805c7 | [
"MIT"
] | null | null | null | wordgen/data_gen.py | ishaanbakhle/wordgen.us | 45c5247ce04b13badd2e1b3164cedc9176a805c7 | [
"MIT"
] | null | null | null | from wordgen import consts
import numpy as np
from sklearn import preprocessing
if __name__ == '__main__':
print(fill_matrix("james as"))
| 25.236842 | 76 | 0.594369 |
6b1167f333bc4ee9231e98ecd5d13fbcbf6bc62d | 30,725 | py | Python | arcade/gl/context.py | Cleptomania/arcade | abb7f0a0229b7f3a7843856d4b0812a3a2b80468 | [
"MIT"
] | null | null | null | arcade/gl/context.py | Cleptomania/arcade | abb7f0a0229b7f3a7843856d4b0812a3a2b80468 | [
"MIT"
] | null | null | null | arcade/gl/context.py | Cleptomania/arcade | abb7f0a0229b7f3a7843856d4b0812a3a2b80468 | [
"MIT"
] | null | null | null | from ctypes import c_int, c_char_p, cast, c_float
from collections import deque
import logging
import weakref
from typing import Any, Dict, List, Tuple, Union, Sequence, Set
import pyglet
from pyglet.window import Window
from pyglet import gl
from .buffer import Buffer
from .program import Program
from .vertex_array ... | 38.310474 | 126 | 0.652823 |
6b118924fc3b616de8ffa2d875b9ce842c00da9f | 2,141 | py | Python | api/app/models/bookings/exam.py | pixelater/queue-management | 9881505d4af2b9860aeaf76b9572315dd016c7dc | [
"Apache-2.0"
] | null | null | null | api/app/models/bookings/exam.py | pixelater/queue-management | 9881505d4af2b9860aeaf76b9572315dd016c7dc | [
"Apache-2.0"
] | 1 | 2019-02-26T00:27:31.000Z | 2019-02-26T00:27:31.000Z | api/app/models/bookings/exam.py | pixelater/queue-management | 9881505d4af2b9860aeaf76b9572315dd016c7dc | [
"Apache-2.0"
] | null | null | null | '''Copyright 2018 Province of British Columbia
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 43.693878 | 111 | 0.739841 |
6b12470d00652efed9a53779a3b55749c6b298e3 | 9,350 | py | Python | datatableview/tests/test_helpers.py | gregneagle/sal | 74c583fb1c1b33d3201b308b147376b3dcaca33f | [
"Apache-2.0"
] | 2 | 2019-11-01T20:50:35.000Z | 2021-01-13T22:02:55.000Z | datatableview/tests/test_helpers.py | gregneagle/sal | 74c583fb1c1b33d3201b308b147376b3dcaca33f | [
"Apache-2.0"
] | null | null | null | datatableview/tests/test_helpers.py | gregneagle/sal | 74c583fb1c1b33d3201b308b147376b3dcaca33f | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
from datetime import datetime
from functools import partial
from django import get_version
from datatableview import helpers
import six
from .testcase import DatatableViewTestCase
from .test_app.models import ExampleModel, RelatedM2MModel
if get_version().split('.') < ['1', '7']:
tes... | 37.250996 | 107 | 0.610695 |
6b136297b7f7ffe43bf97fc683bc6c2f3794e562 | 3,518 | py | Python | discordbot.py | naari3/seibaribot | 3686206ed0b28b318a4032753350be8d9f2223fd | [
"MIT"
] | null | null | null | discordbot.py | naari3/seibaribot | 3686206ed0b28b318a4032753350be8d9f2223fd | [
"MIT"
] | null | null | null | discordbot.py | naari3/seibaribot | 3686206ed0b28b318a4032753350be8d9f2223fd | [
"MIT"
] | 1 | 2022-02-09T16:45:40.000Z | 2022-02-09T16:45:40.000Z | import traceback
from os import getenv
import discord
from discord import Message
from discord.ext import commands
from discord.ext.commands import Context
from asyncio import sleep
import asyncio
client = discord.Client()
# bot!
bot = commands.Bot(command_prefix='!')
# ID
GIRATINA_CHANNEL_ID = 940610524415144036
WI... | 29.07438 | 191 | 0.689312 |
6b13e68ee45340f613741a1e02396fe2503dcda1 | 6,831 | py | Python | test/cpp/naming/utils/dns_server.py | arghyadip01/grpc | 9e10bfc8a096ef91a327e22f84f10c0fabff4417 | [
"Apache-2.0"
] | 9 | 2020-12-04T07:34:08.000Z | 2022-03-07T21:10:35.000Z | test/cpp/naming/utils/dns_server.py | arghyadip01/grpc | 9e10bfc8a096ef91a327e22f84f10c0fabff4417 | [
"Apache-2.0"
] | 62 | 2020-02-27T00:53:36.000Z | 2021-02-05T06:10:53.000Z | test/cpp/naming/utils/dns_server.py | arghyadip01/grpc | 9e10bfc8a096ef91a327e22f84f10c0fabff4417 | [
"Apache-2.0"
] | 12 | 2020-07-14T23:59:57.000Z | 2022-03-22T09:59:18.000Z | #!/usr/bin/env python2.7
# Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 37.125 | 143 | 0.639731 |
6b13e6f6469b20dda5e5b5da9f0367c1ee7833b5 | 726 | py | Python | colour/examples/models/examples_ictcp.py | BPearlstine/colour | 40f0281295496774d2a19eee017d50fd0c265bd8 | [
"Cube",
"BSD-3-Clause"
] | 2 | 2020-05-03T20:15:42.000Z | 2021-04-09T18:19:06.000Z | colour/examples/models/examples_ictcp.py | BPearlstine/colour | 40f0281295496774d2a19eee017d50fd0c265bd8 | [
"Cube",
"BSD-3-Clause"
] | null | null | null | colour/examples/models/examples_ictcp.py | BPearlstine/colour | 40f0281295496774d2a19eee017d50fd0c265bd8 | [
"Cube",
"BSD-3-Clause"
] | 1 | 2019-12-11T19:48:27.000Z | 2019-12-11T19:48:27.000Z | # -*- coding: utf-8 -*-
"""
Showcases *ICTCP* *colour encoding* computations.
"""
import numpy as np
import colour
from colour.utilities import message_box
message_box('"ICTCP" Colour Encoding Computations')
RGB = np.array([0.45620519, 0.03081071, 0.04091952])
message_box(('Converting from "ITU-R BT.2020" colourspa... | 27.923077 | 77 | 0.665289 |
6b147a9cf7116a1a4434ef19b42cc9c65f9ba8e8 | 1,536 | py | Python | app/core/model/routine.py | MauricioAntonioMartinez/django-workout-tracker-api | 82f9499f172bd6d4b861f072948949dd6f8f6ec1 | [
"MIT"
] | null | null | null | app/core/model/routine.py | MauricioAntonioMartinez/django-workout-tracker-api | 82f9499f172bd6d4b861f072948949dd6f8f6ec1 | [
"MIT"
] | null | null | null | app/core/model/routine.py | MauricioAntonioMartinez/django-workout-tracker-api | 82f9499f172bd6d4b861f072948949dd6f8f6ec1 | [
"MIT"
] | null | null | null |
import os
import uuid
from django.conf import settings # this is how we can retrive variables
# for the settings file
from django.contrib.auth.models import (AbstractBaseUser, BaseUserManager,
PermissionsMixin)
from django.core.validators import MaxValueValidator, MinValueVali... | 30.72 | 74 | 0.742839 |
6b15e8a8bf1abf0fd58cab05c52fa68b6927df9e | 3,732 | py | Python | example_scripts/transect_tutorial.py | British-Oceanographic-Data-Centre/COAsT | 4d3d57c9afb61a92063b665626c1828dd2998d2b | [
"MIT"
] | 8 | 2020-09-10T13:40:07.000Z | 2022-03-10T22:52:44.000Z | example_scripts/transect_tutorial.py | British-Oceanographic-Data-Centre/COAsT | 4d3d57c9afb61a92063b665626c1828dd2998d2b | [
"MIT"
] | 294 | 2020-05-11T12:17:17.000Z | 2022-03-31T22:07:52.000Z | example_scripts/transect_tutorial.py | British-Oceanographic-Data-Centre/COAsT | 4d3d57c9afb61a92063b665626c1828dd2998d2b | [
"MIT"
] | 4 | 2020-05-28T10:43:56.000Z | 2021-09-07T10:40:09.000Z | """
This is a demonstration script for using the Transect class in the COAsT
package. This object has strict data formatting requirements, which are
outlined in tranect.py.
Transect subsetting (a vertical slice of data between two coordinates): Creating them and performing some custom diagnostics with them.
---
In ... | 38.081633 | 277 | 0.780279 |
6b16a33b1ae4cc31b9c80ce44c59e17df1095980 | 44,917 | py | Python | diofant/logic/boolalg.py | skirpichev/diofant | 16e280fdd6053be10c3b60fbb66fc26b52ede27a | [
"BSD-3-Clause"
] | null | null | null | diofant/logic/boolalg.py | skirpichev/diofant | 16e280fdd6053be10c3b60fbb66fc26b52ede27a | [
"BSD-3-Clause"
] | 1 | 2021-06-23T08:27:17.000Z | 2021-06-23T08:27:17.000Z | diofant/logic/boolalg.py | skirpichev/diofant | 16e280fdd6053be10c3b60fbb66fc26b52ede27a | [
"BSD-3-Clause"
] | 1 | 2021-06-23T07:58:58.000Z | 2021-06-23T07:58:58.000Z | """
Boolean algebra module for Diofant.
"""
from collections import defaultdict
from itertools import combinations, product
from ..core import Atom, cacheit
from ..core.expr import Expr
from ..core.function import Application
from ..core.numbers import Number
from ..core.operations import LatticeOp
from ..core.single... | 27.042143 | 93 | 0.552107 |
6b188f11fc196c24fb2215879e63681e45f8138c | 5,585 | py | Python | amazon/goods_review_thread.py | JoanLee0826/amazon | 13fcbcb0e9e396af6d4b2287c2a1a06fd602ce98 | [
"MIT"
] | 5 | 2019-09-26T02:39:20.000Z | 2021-04-05T13:19:49.000Z | amazon/goods_review_thread.py | JoanLee0826/amazon | 13fcbcb0e9e396af6d4b2287c2a1a06fd602ce98 | [
"MIT"
] | null | null | null | amazon/goods_review_thread.py | JoanLee0826/amazon | 13fcbcb0e9e396af6d4b2287c2a1a06fd602ce98 | [
"MIT"
] | 3 | 2020-01-08T08:53:32.000Z | 2021-06-04T17:06:34.000Z | import pandas as pd
import requests
from lxml import etree
import re, time, random, datetime
from queue import Queue
import threading
if __name__ == '__main__':
data = r"../data/category/Kid's Weighted Blankets_08_28_13_22.xlsx"
review = Review(domain='com')
review.run(data=data)
| 39.055944 | 110 | 0.520859 |
6b199ca74af9fa333d99b4deab665ee6ec19fa62 | 1,032 | py | Python | lumicks/pylake/population/tests/conftest.py | lumicks/pylake | b5875d156d6416793a371198f3f2590fca2be4cd | [
"Apache-2.0"
] | 8 | 2019-02-18T07:56:39.000Z | 2022-03-19T01:14:48.000Z | lumicks/pylake/population/tests/conftest.py | lumicks/pylake | b5875d156d6416793a371198f3f2590fca2be4cd | [
"Apache-2.0"
] | 42 | 2018-11-30T14:40:35.000Z | 2022-03-29T11:43:45.000Z | lumicks/pylake/population/tests/conftest.py | lumicks/pylake | b5875d156d6416793a371198f3f2590fca2be4cd | [
"Apache-2.0"
] | 4 | 2019-01-09T13:45:53.000Z | 2021-07-06T14:06:52.000Z | import pytest
import numpy as np
from pathlib import Path
| 25.8 | 79 | 0.666667 |
6b1abd24dcce5c1b223e996046c73de1b7c697fc | 1,332 | py | Python | Concurrent/PipelineDecomposingTask.py | rafagarciac/ParallelProgrammingPython | bba91984018688f41049fd63961d3b8872876336 | [
"MIT"
] | null | null | null | Concurrent/PipelineDecomposingTask.py | rafagarciac/ParallelProgrammingPython | bba91984018688f41049fd63961d3b8872876336 | [
"MIT"
] | null | null | null | Concurrent/PipelineDecomposingTask.py | rafagarciac/ParallelProgrammingPython | bba91984018688f41049fd63961d3b8872876336 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Artesanal example Pipe without Pipe class.
"""
__author__ = "Rafael Garca Cullar"
__email__ = "r.gc@hotmail.es"
__copyright__ = "Copyright (c) 2018 Rafael Garca Cullar"
__license__ = "MIT"
from concurrent.futures import ProcessPoolExecutor
import time
import random
if __name__ == "__ma... | 27.183673 | 107 | 0.678679 |
6b1e268c000917add1c1379d6ddcd9ab23f2b03b | 245 | py | Python | src/digibujogens/__main__.py | roaet/digibujogens | ab154edda69c091595902dd8b2e3fd273b2e7105 | [
"MIT"
] | null | null | null | src/digibujogens/__main__.py | roaet/digibujogens | ab154edda69c091595902dd8b2e3fd273b2e7105 | [
"MIT"
] | null | null | null | src/digibujogens/__main__.py | roaet/digibujogens | ab154edda69c091595902dd8b2e3fd273b2e7105 | [
"MIT"
] | null | null | null | """ Main application entry point.
python -m digibujogens ...
"""
def main():
""" Execute the application.
"""
raise NotImplementedError
# Make the script executable.
if __name__ == "__main__":
raise SystemExit(main())
| 14.411765 | 33 | 0.636735 |
6b1f0f890c358afb721298af5289d546925c2ca1 | 42,279 | py | Python | lisa/target.py | mrkajetanp/lisa | 15cfbc430f46b59f52a9d13769d0f6791ed6f154 | [
"Apache-2.0"
] | null | null | null | lisa/target.py | mrkajetanp/lisa | 15cfbc430f46b59f52a9d13769d0f6791ed6f154 | [
"Apache-2.0"
] | null | null | null | lisa/target.py | mrkajetanp/lisa | 15cfbc430f46b59f52a9d13769d0f6791ed6f154 | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2018, ARM Limited and contributors.
#
# 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
#
# ... | 36.636915 | 211 | 0.584404 |
6b1f450e0afe4b703c2e85c366b7453eddf2730b | 1,289 | py | Python | iota/commands/core/get_node_info.py | EasonC13/iota.py | f596c1ac0d9bcbceda1cf6109cd921943a6599b3 | [
"MIT"
] | 347 | 2016-12-23T14:28:06.000Z | 2019-09-30T13:46:30.000Z | iota/commands/core/get_node_info.py | EasonC13/iota.py | f596c1ac0d9bcbceda1cf6109cd921943a6599b3 | [
"MIT"
] | 194 | 2016-12-22T21:22:47.000Z | 2019-10-01T09:01:16.000Z | iota/commands/core/get_node_info.py | EasonC13/iota.py | f596c1ac0d9bcbceda1cf6109cd921943a6599b3 | [
"MIT"
] | 147 | 2017-01-08T13:14:47.000Z | 2019-10-01T22:27:31.000Z | import filters as f
from iota import TransactionHash, Address
from iota.commands import FilterCommand, RequestFilter, ResponseFilter
from iota.filters import Trytes
__all__ = [
'GetNodeInfoCommand',
]
| 28.644444 | 73 | 0.6827 |
6b2003bf580dcb3f7c6fda11b1276e5b7d0fe837 | 4,925 | py | Python | Aplicacion/Presentacion/views.py | Juandiegordp/TPI | 427266f00745e9d9678110c1d01d3be4febca673 | [
"MIT"
] | null | null | null | Aplicacion/Presentacion/views.py | Juandiegordp/TPI | 427266f00745e9d9678110c1d01d3be4febca673 | [
"MIT"
] | null | null | null | Aplicacion/Presentacion/views.py | Juandiegordp/TPI | 427266f00745e9d9678110c1d01d3be4febca673 | [
"MIT"
] | null | null | null | from Negocio import controller
import forms, functions
from flask import Flask, render_template, request, redirect, url_for, flash
| 40.702479 | 236 | 0.718376 |
6b204b59051969cf45dc90d85f76793faabc4ec6 | 644 | py | Python | evalme/tests/test_old_format.py | heartexlabs/label-studio-evalme | 48f7a5226346b6e074edb4717b84122cc089bc7a | [
"MIT"
] | 3 | 2020-04-11T13:01:57.000Z | 2021-05-19T13:53:16.000Z | evalme/tests/test_old_format.py | heartexlabs/label-studio-evalme | 48f7a5226346b6e074edb4717b84122cc089bc7a | [
"MIT"
] | 28 | 2020-05-21T01:34:44.000Z | 2022-03-21T15:39:16.000Z | evalme/tests/test_old_format.py | heartexlabs/label-studio-evalme | 48f7a5226346b6e074edb4717b84122cc089bc7a | [
"MIT"
] | 1 | 2020-05-21T17:43:26.000Z | 2020-05-21T17:43:26.000Z | from evalme.matcher import Matcher
| 25.76 | 53 | 0.723602 |
6b20937e56fc436965d29a3e4d7196bce1d5cd54 | 30,942 | py | Python | behave/runner.py | wombat70/behave | c54493b0531795d946ac6754bfc643248cf3056a | [
"BSD-2-Clause"
] | 13 | 2019-10-03T19:15:14.000Z | 2019-10-16T02:01:57.000Z | behave/runner.py | wombat70/behave | c54493b0531795d946ac6754bfc643248cf3056a | [
"BSD-2-Clause"
] | null | null | null | behave/runner.py | wombat70/behave | c54493b0531795d946ac6754bfc643248cf3056a | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
This module provides Runner class to run behave feature files (or model elements).
"""
from __future__ import absolute_import, print_function, with_statement
import contextlib
import os.path
import sys
import warnings
import weakref
import six
from behave._types import ExceptionUtil
from... | 36.704626 | 93 | 0.598151 |
6b20e0c8f16f54d5573a17cd7bb380c1b08265f4 | 2,645 | py | Python | 01_P/P_2_1_1_02/main.py | genfifth/generative-design_Code-Package-Python-Mode | 93fc8435933aa2e9329de77a1177bb34e63dd1c4 | [
"BSD-2-Clause"
] | 1 | 2019-04-23T16:26:31.000Z | 2019-04-23T16:26:31.000Z | 01_P/P_2_1_1_02/main.py | QuantumNovice/generative-design_Code-Package-Python-Mode | 93fc8435933aa2e9329de77a1177bb34e63dd1c4 | [
"BSD-2-Clause"
] | null | null | null | 01_P/P_2_1_1_02/main.py | QuantumNovice/generative-design_Code-Package-Python-Mode | 93fc8435933aa2e9329de77a1177bb34e63dd1c4 | [
"BSD-2-Clause"
] | 1 | 2019-01-31T16:05:19.000Z | 2019-01-31T16:05:19.000Z | add_library('pdf')
import random
from datetime import datetime
tileCount = 20
| 27.552083 | 93 | 0.565974 |
6b21fe4bf1085238cec917c37ffada209e34d9c0 | 41,499 | py | Python | core/dbt/contracts/graph/manifest.py | peiwangdb/dbt | 30e72bc5e2ae950ddf0a1230b0c6406b889bea1a | [
"Apache-2.0"
] | null | null | null | core/dbt/contracts/graph/manifest.py | peiwangdb/dbt | 30e72bc5e2ae950ddf0a1230b0c6406b889bea1a | [
"Apache-2.0"
] | 1 | 2021-08-14T03:52:23.000Z | 2021-08-14T03:52:23.000Z | core/dbt/contracts/graph/manifest.py | peiwangdb/dbt | 30e72bc5e2ae950ddf0a1230b0c6406b889bea1a | [
"Apache-2.0"
] | 1 | 2021-08-14T03:50:50.000Z | 2021-08-14T03:50:50.000Z | import enum
from dataclasses import dataclass, field
from itertools import chain, islice
from mashumaro import DataClassMessagePackMixin
from multiprocessing.synchronize import Lock
from typing import (
Dict, List, Optional, Union, Mapping, MutableMapping, Any, Set, Tuple,
TypeVar, Callable, Iterable, Generic, ... | 34.669173 | 98 | 0.644738 |
6b221317ab066084e6a6681c2759fb8660e93351 | 11,665 | py | Python | openGaussBase/testcase/SQL/DCL/Alter_Default_Privileges/Opengauss_Function_Alter_Default_Privileges_Case0016.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/SQL/DCL/Alter_Default_Privileges/Opengauss_Function_Alter_Default_Privileges_Case0016.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/SQL/DCL/Alter_Default_Privileges/Opengauss_Function_Alter_Default_Privileges_Case0016.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | """
Copyright (c) 2022 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W... | 55.547619 | 184 | 0.598028 |
6b2234f49a8b57fe4bf6fd97f1ef5ca5137dfade | 2,342 | py | Python | Apps/phdigitalshadows/dsapi/service/infrastructure_service.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 74 | 2019-10-22T02:00:53.000Z | 2022-03-15T12:56:13.000Z | Apps/phdigitalshadows/dsapi/service/infrastructure_service.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 375 | 2019-10-22T20:53:50.000Z | 2021-11-09T21:28:43.000Z | Apps/phdigitalshadows/dsapi/service/infrastructure_service.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 175 | 2019-10-23T15:30:42.000Z | 2021-11-05T21:33:31.000Z | # File: infrastructure_service.py
#
# Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
#
from .ds_base_service import DSBaseService
from .ds_find_service import DSFindService
from ..model.infrastructure import Infrastructure
| 32.985915 | 106 | 0.599488 |
6b226704f6cb4e708962ce8718453e73c2ce6810 | 5,562 | py | Python | src/find_genes_by_location/find_genes_by_location.py | NCBI-Codeathons/Identify-antiphage-defense-systems-in-the-bacterial-pangenome | b1eb83118268ada50e90f979347e47e055a51029 | [
"MIT"
] | 3 | 2020-07-06T18:23:47.000Z | 2020-07-15T06:41:44.000Z | src/find_genes_by_location/find_genes_by_location.py | NCBI-Codeathons/Identify-antiphage-defense-systems-in-the-bacterial-pangenome | b1eb83118268ada50e90f979347e47e055a51029 | [
"MIT"
] | 5 | 2020-07-09T12:15:07.000Z | 2020-07-10T17:23:50.000Z | src/find_genes_by_location/find_genes_by_location.py | NCBI-Codeathons/Identify-antiphage-defense-systems-in-the-bacterial-pangenome | b1eb83118268ada50e90f979347e47e055a51029 | [
"MIT"
] | 3 | 2020-07-06T18:25:24.000Z | 2020-07-06T19:50:56.000Z | import argparse
from collections import defaultdict
import csv
from dataclasses import dataclass, field
from enum import Enum, unique, auto
import os
import sys
import tempfile
import yaml
import zipfile
import gffutils
from google.protobuf import json_format
from ncbi.datasets.v1alpha1 import dataset_catalog_pb2
from... | 36.834437 | 141 | 0.670262 |
6b22b1c8cec3284d72a98eea77ac255711ba8ec7 | 811 | py | Python | web/backend/backend_django/apps/capacity/models.py | tOverney/ADA-Project | 69221210b1f4f13f6979123c6a7a1a9813ea18e5 | [
"Apache-2.0"
] | null | null | null | web/backend/backend_django/apps/capacity/models.py | tOverney/ADA-Project | 69221210b1f4f13f6979123c6a7a1a9813ea18e5 | [
"Apache-2.0"
] | 1 | 2016-11-04T01:03:21.000Z | 2016-11-04T10:10:06.000Z | web/backend/backend_django/apps/capacity/models.py | tOverney/ADA-Project | 69221210b1f4f13f6979123c6a7a1a9813ea18e5 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from multigtfs.models import (
Block, Fare, FareRule, Feed, Frequency, Route, Service, ServiceDate, Shape,
ShapePoint, Stop, StopTime, Trip, Agency)
| 32.44 | 79 | 0.705302 |
6b22ef64a2b0a516b9dfe5541aa85e77c40a249c | 106 | py | Python | apps/interface/settings/config.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 349 | 2020-08-04T10:21:01.000Z | 2022-03-23T08:31:29.000Z | apps/interface/settings/config.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 2 | 2021-01-07T06:17:05.000Z | 2021-04-01T06:01:30.000Z | apps/interface/settings/config.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 70 | 2020-08-24T06:46:14.000Z | 2022-03-25T13:23:27.000Z | try:
from public_config import *
except ImportError:
pass
PORT = 9028
SERVICE_NAME = 'interface'
| 13.25 | 31 | 0.716981 |
6b22ef6d7e0edee04fb293d0c3cd3eec5a122d66 | 1,307 | py | Python | api/api/pokemon/views.py | farnswj1/PokemonAPI | b6fc4dfe8c0fde6b4560455dd37e61b6a0d2ea27 | [
"MIT"
] | null | null | null | api/api/pokemon/views.py | farnswj1/PokemonAPI | b6fc4dfe8c0fde6b4560455dd37e61b6a0d2ea27 | [
"MIT"
] | null | null | null | api/api/pokemon/views.py | farnswj1/PokemonAPI | b6fc4dfe8c0fde6b4560455dd37e61b6a0d2ea27 | [
"MIT"
] | null | null | null | from django.utils.decorators import method_decorator
from django.views.decorators.cache import cache_page
from rest_framework.generics import (
ListAPIView,
RetrieveAPIView,
CreateAPIView,
UpdateAPIView,
DestroyAPIView
)
from .models import Pokemon
from .serializers import PokemonSerializer
from .fi... | 27.229167 | 52 | 0.75746 |
6b23ef94d3d317043d5fc3a13457402a61c1b88c | 9,546 | py | Python | plugins/action/normalize_gitlab_cfg.py | sma-de/ansible-collections-gitlab | 5da99b04722fc016d3e8589635fcbb3579dcfda2 | [
"BSD-3-Clause"
] | null | null | null | plugins/action/normalize_gitlab_cfg.py | sma-de/ansible-collections-gitlab | 5da99b04722fc016d3e8589635fcbb3579dcfda2 | [
"BSD-3-Clause"
] | null | null | null | plugins/action/normalize_gitlab_cfg.py | sma-de/ansible-collections-gitlab | 5da99b04722fc016d3e8589635fcbb3579dcfda2 | [
"BSD-3-Clause"
] | null | null | null |
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible.errors import AnsibleOptionsError
from ansible.module_utils.six import iteritems, string_types
from ansible_collections.smabot.base.plugins.module_utils.plugins.config_normalizing.base import ConfigNormalizerBaseMer... | 27.589595 | 202 | 0.626859 |
6b240627551477bf7c6382038b724993aeef7b0b | 1,416 | py | Python | microservices/validate/tools/dynamodb.py | clodonil/pipeline_aws_custom | 8ca517d0bad48fe528461260093f0035f606f9be | [
"Apache-2.0"
] | null | null | null | microservices/validate/tools/dynamodb.py | clodonil/pipeline_aws_custom | 8ca517d0bad48fe528461260093f0035f606f9be | [
"Apache-2.0"
] | null | null | null | microservices/validate/tools/dynamodb.py | clodonil/pipeline_aws_custom | 8ca517d0bad48fe528461260093f0035f606f9be | [
"Apache-2.0"
] | null | null | null | """
Tools de integrao com o Dynamodb
"""
import boto3
import botocore
import logging
import datetime
import json
import copy
import time
import os
| 24.413793 | 70 | 0.639124 |
6b24d64a863b721f8c91dae3e401a33b896a0b31 | 853 | py | Python | scrapy_ddiy/spiders/GlidedSky/glided_sky_001.py | LZC6244/scrapy_ddiy | 1bf7cdd382afd471af0bf7069b377fb364dc4730 | [
"MIT"
] | 9 | 2021-05-17T02:55:16.000Z | 2022-03-28T08:36:50.000Z | scrapy_ddiy/spiders/GlidedSky/glided_sky_001.py | LZC6244/scrapy_ddiy | 1bf7cdd382afd471af0bf7069b377fb364dc4730 | [
"MIT"
] | null | null | null | scrapy_ddiy/spiders/GlidedSky/glided_sky_001.py | LZC6244/scrapy_ddiy | 1bf7cdd382afd471af0bf7069b377fb364dc4730 | [
"MIT"
] | 1 | 2022-01-23T06:28:31.000Z | 2022-01-23T06:28:31.000Z | # -*- coding: utf-8 -*-
from scrapy import Request
from scrapy_ddiy.utils.spiders.ddiy_base import DdiyBaseSpider
| 34.12 | 106 | 0.657679 |
6b25fa954e2aca18ad4da138b448689002685921 | 5,125 | py | Python | datasets/celeba/celeba_dataset.py | google/joint_vae | 984f456d1a38c6b27e23433aef241dea56f53384 | [
"Apache-2.0"
] | 35 | 2017-12-15T12:58:15.000Z | 2020-09-27T05:48:50.000Z | datasets/celeba/celeba_dataset.py | google/joint_vae | 984f456d1a38c6b27e23433aef241dea56f53384 | [
"Apache-2.0"
] | null | null | null | datasets/celeba/celeba_dataset.py | google/joint_vae | 984f456d1a38c6b27e23433aef241dea56f53384 | [
"Apache-2.0"
] | 11 | 2017-12-08T06:07:30.000Z | 2021-10-31T10:36:05.000Z | #
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 36.091549 | 123 | 0.724293 |
6b269f5ba9e2d6a392abd625b09ccdc699507f3d | 1,303 | py | Python | jorldy/manager/log_manager.py | kan-s0/JORLDY | 44989cf415196604a1ad0383b34085dee6bb1c51 | [
"Apache-2.0"
] | null | null | null | jorldy/manager/log_manager.py | kan-s0/JORLDY | 44989cf415196604a1ad0383b34085dee6bb1c51 | [
"Apache-2.0"
] | null | null | null | jorldy/manager/log_manager.py | kan-s0/JORLDY | 44989cf415196604a1ad0383b34085dee6bb1c51 | [
"Apache-2.0"
] | null | null | null | import os
import datetime, time
import imageio
from pygifsicle import optimize
from torch.utils.tensorboard import SummaryWriter
| 36.194444 | 86 | 0.583269 |
6b27daa674cb67e0f7a35c3fcd65be25c5a4c1db | 2,676 | py | Python | lib/SeparateDriver/ASRDriverParts/UNIInterface.py | multi-service-fabric/element-manager | e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f | [
"Apache-2.0"
] | null | null | null | lib/SeparateDriver/ASRDriverParts/UNIInterface.py | multi-service-fabric/element-manager | e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f | [
"Apache-2.0"
] | null | null | null | lib/SeparateDriver/ASRDriverParts/UNIInterface.py | multi-service-fabric/element-manager | e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f | [
"Apache-2.0"
] | 1 | 2020-04-02T01:17:43.000Z | 2020-04-02T01:17:43.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(c) 2019 Nippon Telegraph and Telephone Corporation
# Filename: ASRDriverParts/UNIInterface.py
'''
Parts Module for ASR driver UNI interface configuraton
'''
import GlobalModule
from EmCommonLog import decorater_log
from ASRDriverParts.InterfaceBase im... | 33.037037 | 63 | 0.567638 |
6b2847d0ef2aafced05fa68a40e983a929d467d0 | 6,003 | py | Python | tools/accuracy_checker/accuracy_checker/annotation_converters/mnist.py | AnthonyQuantum/open_model_zoo | 7d235755e2d17f6186b11243a169966e4f05385a | [
"Apache-2.0"
] | 4 | 2021-04-21T02:38:04.000Z | 2021-10-13T12:15:33.000Z | tools/accuracy_checker/accuracy_checker/annotation_converters/mnist.py | AnthonyQuantum/open_model_zoo | 7d235755e2d17f6186b11243a169966e4f05385a | [
"Apache-2.0"
] | 6 | 2020-11-13T19:02:47.000Z | 2022-03-12T00:43:24.000Z | tools/accuracy_checker/accuracy_checker/annotation_converters/mnist.py | AnthonyQuantum/open_model_zoo | 7d235755e2d17f6186b11243a169966e4f05385a | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 42.274648 | 118 | 0.670165 |
6b28598ebd5982e3c50306026cc2ae916f9a979c | 4,511 | py | Python | Libraries/Python/wxGlade/v0.9,5/wxGlade-0.9.5-py3.6.egg/wxglade/bugdialog.py | davidbrownell/Common_EnvironmentEx | 9e20b79b4de0cb472f65ac08b3de83f9ed8e2ca3 | [
"BSL-1.0"
] | null | null | null | Libraries/Python/wxGlade/v0.9,5/wxGlade-0.9.5-py3.6.egg/wxglade/bugdialog.py | davidbrownell/Common_EnvironmentEx | 9e20b79b4de0cb472f65ac08b3de83f9ed8e2ca3 | [
"BSL-1.0"
] | null | null | null | Libraries/Python/wxGlade/v0.9,5/wxGlade-0.9.5-py3.6.egg/wxglade/bugdialog.py | davidbrownell/Common_EnvironmentEx | 9e20b79b4de0cb472f65ac08b3de83f9ed8e2ca3 | [
"BSL-1.0"
] | 1 | 2020-08-19T17:25:22.000Z | 2020-08-19T17:25:22.000Z | """\
Dialog to show details of internal errors.
@copyright: 2014-2016 Carsten Grohmann
@copyright: 2017 Dietmar Schwertberger
@license: MIT (see LICENSE.txt) - THIS PROGRAM COMES WITH NO WARRANTY
"""
import bugdialog_ui
import config
import log
import logging
import sys
import wx
def Show(msg, exc):
"""Wrappe... | 30.073333 | 103 | 0.65573 |
6b2889ee02cbc2db0ebf9270a48b091ad3ca3b59 | 8,237 | py | Python | core/views.py | Neelamegam2000/QRcode-for-license | a6d4c9655c5ba52b24c1ea737797557f06e0fcbf | [
"MIT"
] | null | null | null | core/views.py | Neelamegam2000/QRcode-for-license | a6d4c9655c5ba52b24c1ea737797557f06e0fcbf | [
"MIT"
] | null | null | null | core/views.py | Neelamegam2000/QRcode-for-license | a6d4c9655c5ba52b24c1ea737797557f06e0fcbf | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.conf import settings
from django.core.files.storage import FileSystemStorage,default_storage
from django.core.mail import send_mail, EmailMessage
from core.models import Document
from core.forms import DocumentForm
from django.contrib import messages
import os... | 42.901042 | 167 | 0.617701 |
6b29a1af58169202c8dc76623da144e32be97995 | 25 | py | Python | docassemble/MACourts/__init__.py | nonprofittechy/docassemble-MACourts | 6035393a09cff3e8a371f19b79d1cde3a60691c1 | [
"MIT"
] | 2 | 2020-07-20T19:13:38.000Z | 2021-03-02T04:30:44.000Z | docassemble/MACourts/__init__.py | nonprofittechy/docassemble-MACourts | 6035393a09cff3e8a371f19b79d1cde3a60691c1 | [
"MIT"
] | 25 | 2020-04-11T18:40:32.000Z | 2021-12-20T14:18:04.000Z | docassemble/MACourts/__init__.py | nonprofittechy/docassemble-MACourts | 6035393a09cff3e8a371f19b79d1cde3a60691c1 | [
"MIT"
] | 7 | 2020-04-10T01:51:27.000Z | 2021-06-25T21:24:48.000Z | __version__ = '0.0.58.2'
| 12.5 | 24 | 0.64 |
6b2b5f9728064d787e0b3474fa79a57d993dda3b | 594 | py | Python | main.py | Meat0Project/ChatBot | 35ebadc71b100d861f9c9e211e1e751175f47c50 | [
"MIT"
] | 4 | 2020-10-30T07:46:39.000Z | 2020-10-30T18:20:57.000Z | main.py | Meat0Project/ChatBot | 35ebadc71b100d861f9c9e211e1e751175f47c50 | [
"MIT"
] | null | null | null | main.py | Meat0Project/ChatBot | 35ebadc71b100d861f9c9e211e1e751175f47c50 | [
"MIT"
] | null | null | null | '''
Made by - Aditya mangal
Purpose - Python mini project
Date - 18 october 2020
'''
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
form termcolor import cprint
import time
chatbot = ChatBot('Bot')
trainer = ChatterBotCorpusTrainer(chatbot)
trainer.train('chatterbot.corpus.eng... | 22.846154 | 55 | 0.69697 |
6b2bddfb3c677b2bd52d34844ad305be0f97c9b1 | 9,330 | py | Python | challenges/day14.py | Jeffreyo3/AdventOfCode2020 | 8705847a04885d6489eb11acfddf2ff5702d8927 | [
"MIT"
] | null | null | null | challenges/day14.py | Jeffreyo3/AdventOfCode2020 | 8705847a04885d6489eb11acfddf2ff5702d8927 | [
"MIT"
] | null | null | null | challenges/day14.py | Jeffreyo3/AdventOfCode2020 | 8705847a04885d6489eb11acfddf2ff5702d8927 | [
"MIT"
] | null | null | null | """
--- Day 14: Docking Data ---
As your ferry approaches the sea port, the captain asks for your help again. The computer system that runs this port isn't compatible with the docking program on the ferry, so the docking parameters aren't being correctly initialized in the docking program's memory.
After a brief inspe... | 42.217195 | 386 | 0.700536 |
6b2c276716f02206bb780210c6a91cee657ed190 | 2,524 | py | Python | src/Dialogs/RegularPolygonDialog.py | Lovely-XPP/tkzgeom | bf68e139dc05f759542d6611f4dc07f4f2727b92 | [
"MIT"
] | 41 | 2021-11-24T05:54:08.000Z | 2022-03-26T10:19:30.000Z | src/Dialogs/RegularPolygonDialog.py | Lovely-XPP/tkzgeom | bf68e139dc05f759542d6611f4dc07f4f2727b92 | [
"MIT"
] | 1 | 2022-02-28T04:34:51.000Z | 2022-03-07T10:49:27.000Z | src/Dialogs/RegularPolygonDialog.py | Lovely-XPP/tkzgeom | bf68e139dc05f759542d6611f4dc07f4f2727b92 | [
"MIT"
] | 10 | 2021-11-24T07:35:17.000Z | 2022-03-25T18:42:14.000Z | from PyQt5 import QtWidgets, uic
from Factory import Factory
from Dialogs.DialogMacros import turn_into_free_point, free_point_checkbox
from Fill.ListWidget import fill_listWidget_with_data, set_selected_id_in_listWidget
import Constant as c
| 39.4375 | 112 | 0.660063 |
6b2cac513cb8e6260352dc24ccb57b041a317ef9 | 8,858 | py | Python | tests/test_networks.py | UCY-LINC-LAB/5G-Slicer | 41e75a6709bc779cb4f3e08484b9ada3911646ed | [
"Apache-2.0"
] | null | null | null | tests/test_networks.py | UCY-LINC-LAB/5G-Slicer | 41e75a6709bc779cb4f3e08484b9ada3911646ed | [
"Apache-2.0"
] | null | null | null | tests/test_networks.py | UCY-LINC-LAB/5G-Slicer | 41e75a6709bc779cb4f3e08484b9ada3911646ed | [
"Apache-2.0"
] | null | null | null | import unittest
from networks.QoS import QoS
from networks.connections.mathematical_connections import FunctionalDegradation
from networks.slicing import SliceConceptualGraph
from utils.location import Location
| 47.368984 | 112 | 0.634229 |
6b2cec5a2588f39302333a5f4dacaf75c507b16b | 3,344 | py | Python | backend/api/management/commands/create_testdb.py | INSRapperswil/nornir-web | 458e6b24bc373197044b4b7b5da74f16f93a9459 | [
"MIT"
] | 2 | 2021-06-01T08:33:04.000Z | 2021-08-20T04:22:39.000Z | backend/api/management/commands/create_testdb.py | INSRapperswil/nornir-web | 458e6b24bc373197044b4b7b5da74f16f93a9459 | [
"MIT"
] | null | null | null | backend/api/management/commands/create_testdb.py | INSRapperswil/nornir-web | 458e6b24bc373197044b4b7b5da74f16f93a9459 | [
"MIT"
] | null | null | null | """
Setup DB with example data for tests
"""
from django.contrib.auth.hashers import make_password
from django.contrib.auth.models import User, Group
from django.core.management.base import BaseCommand
from api import models
| 54.819672 | 121 | 0.62201 |
6b2cf4b5b97a007dddbfd9bea2e0b5aea5f19d54 | 576 | py | Python | pyinfra/facts/util/distro.py | charles-l/pyinfra | 1992d98ff31d41404427dbb3cc6095a7bebd4052 | [
"MIT"
] | 1 | 2020-12-24T08:24:13.000Z | 2020-12-24T08:24:13.000Z | pyinfra/facts/util/distro.py | charles-l/pyinfra | 1992d98ff31d41404427dbb3cc6095a7bebd4052 | [
"MIT"
] | null | null | null | pyinfra/facts/util/distro.py | charles-l/pyinfra | 1992d98ff31d41404427dbb3cc6095a7bebd4052 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, unicode_literals
import os
import distro
| 27.428571 | 92 | 0.751736 |
6b2d1574c0e19ae7863baaa36967e1b1432a37dd | 3,206 | py | Python | appium/webdriver/common/multi_action.py | salabogdan/python-client | 66208fdbbc8f0a8b0e90376b404135b57e797fa5 | [
"Apache-2.0"
] | 1 | 2021-07-23T03:56:49.000Z | 2021-07-23T03:56:49.000Z | appium/webdriver/common/multi_action.py | ayvnkhan/python-client | ba408b74f0d30fc06a51e77f68fc5cfd4ac8f99a | [
"Apache-2.0"
] | 11 | 2019-07-16T04:21:22.000Z | 2021-02-24T15:11:02.000Z | appium/webdriver/common/multi_action.py | ki4070ma/python-client | d5f29f08a2fe9b5a9cca4162726c7cfb4faa42e9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# 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... | 35.622222 | 118 | 0.663132 |
6b2de30f1514c024be028007b3c7a182b53eba57 | 8,652 | py | Python | src/visu/visualizer.py | JonasFrey96/PLR2 | a0498e6ff283a27c6db11b3d57d3b3100026f069 | [
"MIT"
] | null | null | null | src/visu/visualizer.py | JonasFrey96/PLR2 | a0498e6ff283a27c6db11b3d57d3b3100026f069 | [
"MIT"
] | 2 | 2020-06-30T17:33:54.000Z | 2020-07-07T18:12:21.000Z | src/visu/visualizer.py | JonasFrey96/PLR2 | a0498e6ff283a27c6db11b3d57d3b3100026f069 | [
"MIT"
] | null | null | null | import numpy as np
import sys
import os
from PIL import Image
from visu.helper_functions import save_image
from scipy.spatial.transform import Rotation as R
from helper import re_quat
import copy
import torch
import numpy as np
import k3d
def plot_pcd(x, point_size=0.005, c='g'):
"""
x: point_nr,3
"""
... | 33.929412 | 194 | 0.532016 |
6b2de9f9abfa7c9d1e5aab26305227c69409476d | 3,317 | py | Python | leetCode_Q37_serializeTree.py | FreesiaLikesPomelo/-offer | 14ac73cb46d13c7f5bbc294329a14f3c5995bc7a | [
"Apache-2.0"
] | null | null | null | leetCode_Q37_serializeTree.py | FreesiaLikesPomelo/-offer | 14ac73cb46d13c7f5bbc294329a14f3c5995bc7a | [
"Apache-2.0"
] | null | null | null | leetCode_Q37_serializeTree.py | FreesiaLikesPomelo/-offer | 14ac73cb46d13c7f5bbc294329a14f3c5995bc7a | [
"Apache-2.0"
] | null | null | null | '''
37.
:
1
/ \
2 3
/ \
4 5
"[1,2,3,null,null,4,5]"
'''
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# :240 ms, Python3 22.75%
# :31 MB, Python3 100.00%
# Your... | 27.188525 | 81 | 0.472716 |
6b2e543e1da4f0dd04f05a16bdaaac83f262d6ce | 1,505 | py | Python | ipuz/puzzlekinds/__init__.py | maiamcc/ipuz | fbe6f663b28ad42754622bf2d3bbe59a26be2615 | [
"MIT"
] | 5 | 2015-06-23T17:18:41.000Z | 2020-05-05T16:43:14.000Z | ipuz/puzzlekinds/__init__.py | maiamcc/ipuz | fbe6f663b28ad42754622bf2d3bbe59a26be2615 | [
"MIT"
] | 3 | 2015-08-21T05:17:22.000Z | 2021-03-20T18:39:31.000Z | ipuz/puzzlekinds/__init__.py | maiamcc/ipuz | fbe6f663b28ad42754622bf2d3bbe59a26be2615 | [
"MIT"
] | 3 | 2018-01-15T17:28:10.000Z | 2020-09-29T20:32:21.000Z | from .acrostic import IPUZ_ACROSTIC_VALIDATORS
from .answer import IPUZ_ANSWER_VALIDATORS
from .block import IPUZ_BLOCK_VALIDATORS
from .crossword import IPUZ_CROSSWORD_VALIDATORS
from .fill import IPUZ_FILL_VALIDATORS
from .sudoku import IPUZ_SUDOKU_VALIDATORS
from .wordsearch import IPUZ_WORDSEARCH_VALIDATORS
IPUZ_... | 23.153846 | 50 | 0.509635 |
6b2f80664f980dad5a40411dc361a14a2b34e519 | 8,263 | py | Python | CTFd/api/v1/users.py | MrQubo/CTFd | 5c8ffff1412ea91ad6cf87135cb3d175a1223544 | [
"Apache-2.0"
] | null | null | null | CTFd/api/v1/users.py | MrQubo/CTFd | 5c8ffff1412ea91ad6cf87135cb3d175a1223544 | [
"Apache-2.0"
] | null | null | null | CTFd/api/v1/users.py | MrQubo/CTFd | 5c8ffff1412ea91ad6cf87135cb3d175a1223544 | [
"Apache-2.0"
] | null | null | null | from flask import session, request, abort
from flask_restplus import Namespace, Resource
from CTFd.models import (
db,
Users,
Solves,
Awards,
Tracking,
Unlocks,
Submissions,
Notifications,
)
from CTFd.utils.decorators import authed_only, admins_only, ratelimit
from CTFd.cache import clea... | 30.156934 | 78 | 0.634031 |
6b33e7e0e395a01bbb9aefe040bd4c754743cdbd | 1,005 | py | Python | getting_started/pages.py | emilhe/dash-extensions-docs | f44edba1c955242fc503185954ea5f3be69eb122 | [
"MIT"
] | 1 | 2022-03-20T09:50:07.000Z | 2022-03-20T09:50:07.000Z | getting_started/pages.py | emilhe/dash-extensions-docs | f44edba1c955242fc503185954ea5f3be69eb122 | [
"MIT"
] | null | null | null | getting_started/pages.py | emilhe/dash-extensions-docs | f44edba1c955242fc503185954ea5f3be69eb122 | [
"MIT"
] | null | null | null | import dash_labs as dl
from dash_extensions.enrich import DashBlueprint, DashProxy, html, Output, Input
app = DashProxy(prevent_initial_callbacks=True, plugins=[dl.plugins.pages])
# Register a few pages.
n_pages = 5
for i in range(n_pages):
page = make_page(i)
page.register(app, page_name(i), prefix=str(i))
# ... | 34.655172 | 106 | 0.689552 |
6b34589c449dc4aced65c72c732c394afc998c68 | 8,790 | py | Python | zaqar/transport/wsgi/v2_0/homedoc.py | vkmc/zaqar-websocket | a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b | [
"Apache-2.0"
] | 1 | 2015-03-22T18:41:13.000Z | 2015-03-22T18:41:13.000Z | zaqar/transport/wsgi/v2_0/homedoc.py | vkmc/zaqar-websocket | a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b | [
"Apache-2.0"
] | null | null | null | zaqar/transport/wsgi/v2_0/homedoc.py | vkmc/zaqar-websocket | a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2013 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 31.170213 | 93 | 0.367577 |
6b35baeaa7950e5538a7f5306ca85d6a854ed57e | 82,533 | py | Python | synapse/models/infotech.py | vertexproject/synapse | 9712e2aee63914441c59ce6cfc060fe06a2e5920 | [
"Apache-2.0"
] | 216 | 2017-01-17T18:52:50.000Z | 2022-03-31T18:44:49.000Z | synapse/models/infotech.py | vertexproject/synapse | 9712e2aee63914441c59ce6cfc060fe06a2e5920 | [
"Apache-2.0"
] | 2,189 | 2017-01-17T22:31:48.000Z | 2022-03-31T20:41:45.000Z | synapse/models/infotech.py | vertexproject/synapse | 9712e2aee63914441c59ce6cfc060fe06a2e5920 | [
"Apache-2.0"
] | 44 | 2017-01-17T16:50:57.000Z | 2022-03-16T18:35:52.000Z | import asyncio
import logging
import synapse.exc as s_exc
import synapse.lib.types as s_types
import synapse.lib.module as s_module
import synapse.lib.version as s_version
logger = logging.getLogger(__name__)
loglevels = (
(10, 'debug'),
(20, 'info'),
(30, 'notice'),
(40, 'warning'),
(50, 'err'),... | 48.807215 | 191 | 0.372506 |
6b35eaa0ed1f5a899840c77cec0648c4c36f9761 | 1,447 | py | Python | test/test.py | bciar/ppp-web | 1afe39a3c8d2197595ad0e2610c612db210cd62e | [
"MIT"
] | 2 | 2018-09-27T03:31:42.000Z | 2018-09-27T11:11:17.000Z | test/test.py | bciar/ppp-web | 1afe39a3c8d2197595ad0e2610c612db210cd62e | [
"MIT"
] | null | null | null | test/test.py | bciar/ppp-web | 1afe39a3c8d2197595ad0e2610c612db210cd62e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Unit tests."""
import os
import unittest
from copy import copy
from webui.app import create_app
if __name__ == '__main__':
from test.utils.doctest_unittest_runner import doctest_unittest_runner
TEST_DIR = os.path.dirname(os.path.realpath(__file__)) + '/'
... | 27.826923 | 79 | 0.607464 |
6b36c2213b18abb5b4d5cac68e49cf0ee92025a0 | 6,938 | py | Python | tests/sources/test_clang_format.py | Justin-Fisher/webots | 8a39e8e4390612919a8d82c7815aa914f4c079a4 | [
"Apache-2.0"
] | 1,561 | 2019-09-04T11:32:32.000Z | 2022-03-31T18:00:09.000Z | tests/sources/test_clang_format.py | Justin-Fisher/webots | 8a39e8e4390612919a8d82c7815aa914f4c079a4 | [
"Apache-2.0"
] | 2,184 | 2019-09-03T11:35:02.000Z | 2022-03-31T10:01:44.000Z | tests/sources/test_clang_format.py | Justin-Fisher/webots | 8a39e8e4390612919a8d82c7815aa914f4c079a4 | [
"Apache-2.0"
] | 1,013 | 2019-09-07T05:09:32.000Z | 2022-03-31T13:01:28.000Z | #!/usr/bin/env python
# Copyright 1996-2021 Cyberbotics 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 applica... | 41.54491 | 113 | 0.528971 |
6b37d79a6bcd2f11e42ccf5ea2b0694fffb12722 | 10,361 | py | Python | src/python/tests/core/system/shell_test.py | sanketsaurav/clusterfuzz | 9f7efba7781614d50cdc6ab136b9bcf19607731c | [
"Apache-2.0"
] | 1 | 2019-04-09T06:40:55.000Z | 2019-04-09T06:40:55.000Z | src/python/tests/core/system/shell_test.py | Delaney6/clusterfuzz | 9eeb08a85869b32733dd54c69b098688ff3b1bf5 | [
"Apache-2.0"
] | null | null | null | src/python/tests/core/system/shell_test.py | Delaney6/clusterfuzz | 9eeb08a85869b32733dd54c69b098688ff3b1bf5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 36.101045 | 79 | 0.705434 |
6b3842e1a431bbf5fa9d29f78a1c73a20bb3a410 | 2,735 | py | Python | Language Model/birnn/model.py | osamaqureshi/NLP-for-Urdu | 864550dbf27244900c2be86e0bedcfb5bb519cb6 | [
"MIT"
] | 1 | 2020-10-22T20:18:22.000Z | 2020-10-22T20:18:22.000Z | Language Model/birnn/model.py | osamaqureshi/NLP-for-Urdu | 864550dbf27244900c2be86e0bedcfb5bb519cb6 | [
"MIT"
] | null | null | null | Language Model/birnn/model.py | osamaqureshi/NLP-for-Urdu | 864550dbf27244900c2be86e0bedcfb5bb519cb6 | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
def loss_function(real, pred, loss_object):
mask = tf.math.logical_not(tf.math.equal(real, 0))
loss_ = loss_object(real, pred)
mask = tf.cast(mask, dtype=loss_.dtype)
loss_ *= mask
return tf.reduce_mean(loss_)
def mask_sequences(seq, t):
mask = np.zer... | 42.734375 | 113 | 0.545521 |
6b385bed93debf4cc525192d73536e80c2566746 | 591 | py | Python | python/ray/train/__init__.py | jamesliu/ray | 11ab412db1fa3603a3006e8ed414e80dd1f11c0c | [
"Apache-2.0"
] | 33 | 2020-05-27T14:25:24.000Z | 2022-03-22T06:11:30.000Z | python/ray/train/__init__.py | jamesliu/ray | 11ab412db1fa3603a3006e8ed414e80dd1f11c0c | [
"Apache-2.0"
] | 227 | 2021-10-01T08:00:01.000Z | 2021-12-28T16:47:26.000Z | python/ray/train/__init__.py | gramhagen/ray | c18caa4db36d466718bdbcb2229aa0b2dc03da1f | [
"Apache-2.0"
] | 5 | 2020-08-06T15:53:07.000Z | 2022-02-09T03:31:31.000Z | from ray.train.backend import BackendConfig
from ray.train.callbacks import TrainingCallback
from ray.train.checkpoint import CheckpointStrategy
from ray.train.session import (get_dataset_shard, local_rank, load_checkpoint,
report, save_checkpoint, world_rank, world_size)
from ray.train.t... | 42.214286 | 79 | 0.749577 |
6b387e13117dba7e993918eb8dcf86f67409ab84 | 1,548 | py | Python | test/test_contact_in_group.py | anastas11a/python_training | 1daceddb193d92542f7f7313026a7e67af4d89bb | [
"Apache-2.0"
] | null | null | null | test/test_contact_in_group.py | anastas11a/python_training | 1daceddb193d92542f7f7313026a7e67af4d89bb | [
"Apache-2.0"
] | null | null | null | test/test_contact_in_group.py | anastas11a/python_training | 1daceddb193d92542f7f7313026a7e67af4d89bb | [
"Apache-2.0"
] | null | null | null | from model.contact import Contact
from model.group import Group
import random
| 29.207547 | 73 | 0.709302 |
6b3881271e2eaf5752f4f95cac12eda083886a6f | 301 | py | Python | byurak/accounts/admin.py | LikeLion-CAU-9th/Django-fancy-coder | 53c770f4c1891f9076bed8c89d0b942b77e67667 | [
"MIT"
] | null | null | null | byurak/accounts/admin.py | LikeLion-CAU-9th/Django-fancy-coder | 53c770f4c1891f9076bed8c89d0b942b77e67667 | [
"MIT"
] | 2 | 2021-06-27T16:19:47.000Z | 2021-08-01T16:41:54.000Z | byurak/accounts/admin.py | LikeLion-CAU-9th/Django-fancy-coder | 53c770f4c1891f9076bed8c89d0b942b77e67667 | [
"MIT"
] | 2 | 2021-08-21T13:32:52.000Z | 2021-12-20T10:12:45.000Z | from django.contrib import admin
from accounts.models import User, Profile, UserFollow
admin.site.register(Profile)
admin.site.register(UserFollow)
| 23.153846 | 53 | 0.750831 |
6b3934ad826855dff168d0197fe9075473c458c0 | 20,474 | py | Python | viz_utils/eoa_viz.py | olmozavala/eoas-pyutils | f552a512e250f8aa16e1f3ababf8b4644253918b | [
"MIT"
] | null | null | null | viz_utils/eoa_viz.py | olmozavala/eoas-pyutils | f552a512e250f8aa16e1f3ababf8b4644253918b | [
"MIT"
] | null | null | null | viz_utils/eoa_viz.py | olmozavala/eoas-pyutils | f552a512e250f8aa16e1f3ababf8b4644253918b | [
"MIT"
] | null | null | null | import os
from PIL import Image
import cv2
from os import listdir
from os.path import join
import matplotlib.pyplot as plt
import matplotlib
from matplotlib.colors import LogNorm
from io_utils.io_common import create_folder
from viz_utils.constants import PlotMode, BackgroundType
import pylab
import numpy as np
import... | 41.869121 | 163 | 0.575657 |
6b39d4fb43437addee89cd08745a9f78f2bca971 | 1,414 | py | Python | ade20kScripts/setup.py | fcendra/PSPnet18 | bc4f4292f4ddd09dba7076ca0b587c8f60dfa043 | [
"MIT"
] | 1 | 2020-08-16T14:27:31.000Z | 2020-08-16T14:27:31.000Z | ade20kScripts/setup.py | fcendra/PSPNet.pytorch | bc4f4292f4ddd09dba7076ca0b587c8f60dfa043 | [
"MIT"
] | null | null | null | ade20kScripts/setup.py | fcendra/PSPNet.pytorch | bc4f4292f4ddd09dba7076ca0b587c8f60dfa043 | [
"MIT"
] | null | null | null | from os import listdir
from os.path import isfile, join
from path import Path
import numpy as np
import cv2
# Dataset path
target_path = Path('target/')
annotation_images_path = Path('dataset/ade20k/annotations/training/').abspath()
dataset = [ f for f in listdir(annotation_images_path) if isfile(join(annotation_image... | 34.487805 | 97 | 0.65983 |
6b3b2f253f3b9ff3bee85537636c322b9a7a1ad0 | 8,617 | py | Python | src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/__init__.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/__init__.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/__init__.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | # 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 ... | 42.034146 | 150 | 0.82755 |
6b3bed4772887b4ca3b8868f07f00b80ff44103a | 1,503 | py | Python | Core/managers/InputPeripherals.py | Scoppio/Rogue-EVE | a46f1faa9c7835e8c5838f6270fb5d75b349936b | [
"MIT"
] | 2 | 2016-11-07T23:43:17.000Z | 2016-11-08T21:49:57.000Z | Core/managers/InputPeripherals.py | Scoppio/Rogue-EVE | a46f1faa9c7835e8c5838f6270fb5d75b349936b | [
"MIT"
] | null | null | null | Core/managers/InputPeripherals.py | Scoppio/Rogue-EVE | a46f1faa9c7835e8c5838f6270fb5d75b349936b | [
"MIT"
] | null | null | null | import logging
from models.GenericObjects import Vector2
logger = logging.getLogger('Rogue-EVE')
| 33.4 | 109 | 0.630739 |