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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1af1ba1f73d50b880d12d443416c0d5ee955fd4e | 1,160 | bzl | Python | moq4/repo.bzl | tomaszstrejczek/rules_dotnet_3rd_party | 09f29f062d5250fe7cdc45be872ce9bd1562c60b | [
"Apache-2.0"
] | 1 | 2021-10-10T17:17:27.000Z | 2021-10-10T17:17:27.000Z | moq4/repo.bzl | tomaszstrejczek/rules_dotnet_3rd_party | 09f29f062d5250fe7cdc45be872ce9bd1562c60b | [
"Apache-2.0"
] | null | null | null | moq4/repo.bzl | tomaszstrejczek/rules_dotnet_3rd_party | 09f29f062d5250fe7cdc45be872ce9bd1562c60b | [
"Apache-2.0"
] | null | null | null | load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "core_library", "core_resx", "core_xunit_test")
core_resx(
name = "core_resource",
src = ":src/Moq/Properties/Resources.resx",
identifier = "Moq.Properties.Resources.resources",
)
core_library(
name = "Moq.dll",
srcs = glob(["src/Moq/**/*.cs"]),
... | 25.217391 | 95 | 0.563793 |
1af777d49fa7d0ed5d696c94bf1c6cab8fc64d57 | 8,160 | py | Python | soaplib/core/test/type/test_clazz.py | divaliu1408/overfit | 083dcfaa758391092933e19544462cd831e73ef0 | [
"Apache-2.0"
] | null | null | null | soaplib/core/test/type/test_clazz.py | divaliu1408/overfit | 083dcfaa758391092933e19544462cd831e73ef0 | [
"Apache-2.0"
] | null | null | null | soaplib/core/test/type/test_clazz.py | divaliu1408/overfit | 083dcfaa758391092933e19544462cd831e73ef0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# soaplib - Copyright (C) Soaplib contributors.
#
# This library 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 Foundation; either
# version 2.1 of the License, or (at your option) any late... | 29.458484 | 81 | 0.634436 |
1af789c7e288cbf0b52eef2ee02059ff894ca5b5 | 2,097 | py | Python | code/strats/npctt.py | yasirroni/PrisonersDilemmaTournament | ce3de71ff2ccb647aa00129473ff60f985e16e17 | [
"MIT"
] | null | null | null | code/strats/npctt.py | yasirroni/PrisonersDilemmaTournament | ce3de71ff2ccb647aa00129473ff60f985e16e17 | [
"MIT"
] | null | null | null | code/strats/npctt.py | yasirroni/PrisonersDilemmaTournament | ce3de71ff2ccb647aa00129473ff60f985e16e17 | [
"MIT"
] | null | null | null | from decimal import Decimal
import numpy
def strategy(history, memory):
"""
Nice Patient Comparative Tit for Tat (NPCTT):
1. Nice: Never initiate defection, else face the wrath of the Grudge.
2. Patient: Respond to defection with defection, unless it was in possibly
response to my ... | 36.789474 | 96 | 0.664759 |
1af865cf794ffe9926668927a099faebe449cba9 | 1,202 | py | Python | onadata/apps/api/tests/permissions/test_permissions.py | childhelpline/myhelpline | d72120ee31b6713cbaec79f299f5ee8bcb7ea429 | [
"BSD-3-Clause"
] | 1 | 2018-07-15T13:13:43.000Z | 2018-07-15T13:13:43.000Z | onadata/apps/api/tests/permissions/test_permissions.py | aondiaye/myhelpline | d72120ee31b6713cbaec79f299f5ee8bcb7ea429 | [
"BSD-3-Clause"
] | 14 | 2018-07-10T12:48:46.000Z | 2022-03-11T23:24:51.000Z | onadata/apps/api/tests/permissions/test_permissions.py | aondiaye/myhelpline | d72120ee31b6713cbaec79f299f5ee8bcb7ea429 | [
"BSD-3-Clause"
] | 5 | 2018-07-04T07:59:14.000Z | 2020-01-28T07:50:18.000Z | from django.contrib.auth.models import User
from mock import MagicMock
from onadata.apps.main.tests.test_base import TestBase
from onadata.apps.logger.models import Instance, XForm
from onadata.apps.api.permissions import MetaDataObjectPermissions
| 36.424242 | 66 | 0.69218 |
1afafdaa5a55f840c140378943d38c4159a3e9db | 610 | py | Python | Exercicios - Mundo3/Ex109/teste.py | BrianMath/ExerciciosPythonCeV | 4960f1a58d281b32afd5dfd6ea65e0ae5ad48b4f | [
"MIT"
] | null | null | null | Exercicios - Mundo3/Ex109/teste.py | BrianMath/ExerciciosPythonCeV | 4960f1a58d281b32afd5dfd6ea65e0ae5ad48b4f | [
"MIT"
] | null | null | null | Exercicios - Mundo3/Ex109/teste.py | BrianMath/ExerciciosPythonCeV | 4960f1a58d281b32afd5dfd6ea65e0ae5ad48b4f | [
"MIT"
] | null | null | null | import moeda
preco = float(input("Digite o preo: R$"))
por100 = float(input("Digite a porcentagem: "))
formatar = str(input("Deseja formatar como moeda [S/N]? ")).upper()
if "S" in formatar:
formatado = True
else:
formatado = False
print(f"\nA metade de {moeda.moeda(preco)} {moeda.metade(preco, formatado)}"... | 38.125 | 104 | 0.701639 |
1afb4e419b6e7623430e399ba3b927cbbb015ac9 | 132 | py | Python | api/companies/urls.py | anjaekk/CRM-internship- | 94eab9401a7336ebbb11046a77c59b1d07e2bf68 | [
"MIT"
] | 1 | 2021-09-10T09:11:08.000Z | 2021-09-10T09:11:08.000Z | api/companies/urls.py | anjaekk/CRM-site-project | 94eab9401a7336ebbb11046a77c59b1d07e2bf68 | [
"MIT"
] | null | null | null | api/companies/urls.py | anjaekk/CRM-site-project | 94eab9401a7336ebbb11046a77c59b1d07e2bf68 | [
"MIT"
] | null | null | null | from django.urls import path, include
from .views import CompanyAPIView
# urlpatterns = [
# path("",include(router.urls)),
# ] | 18.857143 | 37 | 0.69697 |
1afcc354de4e4e1ba67d59086c2b25d41157da44 | 2,681 | py | Python | src/waldur_auth_saml2/utils.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 26 | 2017-10-18T13:49:58.000Z | 2021-09-19T04:44:09.000Z | src/waldur_auth_saml2/utils.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 14 | 2018-12-10T14:14:51.000Z | 2021-06-07T10:33:39.000Z | src/waldur_auth_saml2/utils.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 32 | 2017-09-24T03:10:45.000Z | 2021-10-16T16:41:09.000Z | from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from djangosaml2.conf import get_config
from djangosaml2.utils import available_idps
from saml2.attribute_converter import ac_factory
from saml2.mdstore import InMemoryMetaData, MetaDataFile
from saml2.mdstore import name as get_idp_... | 33.5125 | 91 | 0.697128 |
1afe05c194caa5c442bb47f534efb7a249603873 | 3,846 | py | Python | pvcontrol/__main__.py | stephanme/pv-control | f6aab9800c154492f3b9e5b2cd21c7a87cf92e16 | [
"Apache-2.0"
] | null | null | null | pvcontrol/__main__.py | stephanme/pv-control | f6aab9800c154492f3b9e5b2cd21c7a87cf92e16 | [
"Apache-2.0"
] | null | null | null | pvcontrol/__main__.py | stephanme/pv-control | f6aab9800c154492f3b9e5b2cd21c7a87cf92e16 | [
"Apache-2.0"
] | null | null | null | import logging
# configure logging before initializing further modules
logging.basicConfig(level=logging.DEBUG, format="%(asctime)s [%(levelname)s] %(name)s - %(message)s")
logging.getLogger("urllib3.connectionpool").setLevel(logging.INFO)
import argparse
import json
import flask
import flask_compress
from werkzeug.m... | 46.337349 | 139 | 0.788612 |
1afe4a291ef32854b9631bb218506f1799a820c8 | 1,274 | py | Python | Python/binary-trees-with-factors.py | xiaohalo/LeetCode | 68211ba081934b21bb1968046b7e3c1459b3da2d | [
"MIT"
] | 9 | 2019-06-30T07:15:18.000Z | 2022-02-10T20:13:40.000Z | Python/binary-trees-with-factors.py | pnandini/LeetCode | e746c3298be96dec8e160da9378940568ef631b1 | [
"MIT"
] | 1 | 2018-07-10T03:28:43.000Z | 2018-07-10T03:28:43.000Z | Python/binary-trees-with-factors.py | pnandini/LeetCode | e746c3298be96dec8e160da9378940568ef631b1 | [
"MIT"
] | 9 | 2019-01-16T22:16:49.000Z | 2022-02-06T17:33:41.000Z | # Time: O(n^2)
# Space: O(n)
# Given an array of unique integers, each integer is strictly greater than 1.
# We make a binary tree using these integers and each number may be used for
# any number of times.
# Each non-leaf node's value should be equal to the product of the values of
# it's children.
# How many binary... | 26 | 77 | 0.505495 |
1afff1ccdcfcf884da6805c728defb7d5049e9b8 | 424 | py | Python | jtr/load/embeddings/__init__.py | mitchelljeff/SUMMAD4.3 | 33bb3a74cff16a7aa699660a08d98ddcd662cad5 | [
"MIT"
] | 1 | 2017-09-15T14:06:07.000Z | 2017-09-15T14:06:07.000Z | jtr/load/embeddings/__init__.py | mitchelljeff/SUMMAD4.3 | 33bb3a74cff16a7aa699660a08d98ddcd662cad5 | [
"MIT"
] | null | null | null | jtr/load/embeddings/__init__.py | mitchelljeff/SUMMAD4.3 | 33bb3a74cff16a7aa699660a08d98ddcd662cad5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from jtr.load.embeddings.embeddings import Embeddings, load_embeddings
from jtr.load.embeddings.word_to_vec import load_word2vec, get_word2vec_vocabulary
from jtr.load.embeddings.glove import load_glove
from jtr.load.embeddings.vocabulary import Vocabulary
__all__ = [
'Embeddings',
'lo... | 26.5 | 82 | 0.761792 |
210025e5881047a75dc28e56284192add56bd13d | 9,466 | py | Python | src/account/models.py | opnfv/laas | 35b9f39178cc502a5283a1b37a65f7dd0838ae05 | [
"Apache-2.0"
] | 2 | 2020-10-31T15:03:20.000Z | 2021-03-22T16:29:15.000Z | src/account/models.py | opnfv/laas | 35b9f39178cc502a5283a1b37a65f7dd0838ae05 | [
"Apache-2.0"
] | 13 | 2019-12-04T23:29:42.000Z | 2022-03-02T04:53:53.000Z | src/account/models.py | opnfv/laas | 35b9f39178cc502a5283a1b37a65f7dd0838ae05 | [
"Apache-2.0"
] | null | null | null | ##############################################################################
# Copyright (c) 2016 Max Breitenfeldt and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is avai... | 33.214035 | 119 | 0.648109 |
2100b09455195ab5c430875e8b35fbf6511f1a48 | 1,513 | py | Python | Chapter06/Blurring_Sharpening.py | AzureCloudMonk/Raspberry-Pi-3-Cookbook-for-Python-Programmers-Third-Edition | 26b4b3859fa7ce471fea3ba3b016922b7bd1629e | [
"MIT"
] | 22 | 2018-05-04T01:15:12.000Z | 2021-12-19T17:14:53.000Z | Chapter06/Blurring_Sharpening.py | AzureCloudMonk/Raspberry-Pi-3-Cookbook-for-Python-Programmers-Third-Edition | 26b4b3859fa7ce471fea3ba3b016922b7bd1629e | [
"MIT"
] | 1 | 2021-02-20T12:50:08.000Z | 2021-02-24T06:40:07.000Z | Chapter06/Blurring_Sharpening.py | PacktPublishing/Raspberry-Pi-3-Cookbook-for-Python-Programmers-Third-Edition | ffaa7e324bda7ad8f7c752092609f48c8335ea39 | [
"MIT"
] | 20 | 2018-07-07T17:20:18.000Z | 2021-04-22T17:31:18.000Z | # Blurring and Sharpening Images
# Import Computer Vision package - cv2
import cv2
# Import Numerical Python package - numpy as np
import numpy as np
# Read the image using imread built-in function
image = cv2.imread('image_6.jpg')
# Display original image using imshow built-in function
cv2.imshow("Orig... | 28.54717 | 84 | 0.66887 |
21016a21d5882a186ec10f492251ce61d6a1d407 | 10,887 | py | Python | webapp/python/isuda.py | akawashiro/isucon6-qualify | ec51c51a5a43f3d1aa192c1404e5e121c087c5d0 | [
"MIT"
] | null | null | null | webapp/python/isuda.py | akawashiro/isucon6-qualify | ec51c51a5a43f3d1aa192c1404e5e121c087c5d0 | [
"MIT"
] | null | null | null | webapp/python/isuda.py | akawashiro/isucon6-qualify | ec51c51a5a43f3d1aa192c1404e5e121c087c5d0 | [
"MIT"
] | null | null | null | from flask import Flask, request, jsonify, abort, render_template, redirect, session, url_for
import MySQLdb.cursors
import hashlib
import html
import json
import math
import os
import pathlib
import random
import re
import string
import urllib
import sys
from werkzeug.contrib.profiler import ProfilerMiddleware, MergeS... | 28.877984 | 126 | 0.6381 |
2102482614cbfec0280843f4652b4c092440bef6 | 80 | py | Python | todo/apps.py | arthtyagi/gettit | 26047f85a7cf0a5f380cde4e18f9bcc88bb27db6 | [
"MIT"
] | 6 | 2020-05-30T18:10:08.000Z | 2021-11-30T14:39:41.000Z | todo/apps.py | arthtyagi/gettit | 26047f85a7cf0a5f380cde4e18f9bcc88bb27db6 | [
"MIT"
] | 18 | 2020-06-21T12:04:47.000Z | 2022-01-13T02:57:16.000Z | todo/apps.py | arthtyagi/gettit | 26047f85a7cf0a5f380cde4e18f9bcc88bb27db6 | [
"MIT"
] | 1 | 2020-08-30T01:42:54.000Z | 2020-08-30T01:42:54.000Z | from django.apps import AppConfig
| 13.333333 | 33 | 0.7625 |
21052d838f3c6f1bc317c7615a2db829dddf4cec | 299 | py | Python | Segundo nivel - condicionales/4.py | OscarPalominoC/RetosPlatziProgramaci-n | cd0c32254e8dd0dc35dda91ad50f5d8e6f013c08 | [
"MIT"
] | null | null | null | Segundo nivel - condicionales/4.py | OscarPalominoC/RetosPlatziProgramaci-n | cd0c32254e8dd0dc35dda91ad50f5d8e6f013c08 | [
"MIT"
] | null | null | null | Segundo nivel - condicionales/4.py | OscarPalominoC/RetosPlatziProgramaci-n | cd0c32254e8dd0dc35dda91ad50f5d8e6f013c08 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
run() | 33.222222 | 67 | 0.615385 |
2108113aa55ab74979a849198e4a5b50f03a9738 | 1,153 | py | Python | data-structure/registration_with_binary_tree/src/Registration.py | gvalves/unifesp | f0572419f963fe063be56ae34b572a0130246d2f | [
"MIT"
] | null | null | null | data-structure/registration_with_binary_tree/src/Registration.py | gvalves/unifesp | f0572419f963fe063be56ae34b572a0130246d2f | [
"MIT"
] | null | null | null | data-structure/registration_with_binary_tree/src/Registration.py | gvalves/unifesp | f0572419f963fe063be56ae34b572a0130246d2f | [
"MIT"
] | null | null | null | from enum import Enum
| 24.531915 | 45 | 0.699046 |
21086d29a3c48a77d90c32973849ccb037435414 | 1,269 | py | Python | repos/system_upgrade/el7toel8/actors/checkacpid/actor.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 21 | 2018-11-20T15:58:39.000Z | 2022-03-15T19:57:24.000Z | repos/system_upgrade/el7toel8/actors/checkacpid/actor.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 732 | 2018-11-21T18:33:26.000Z | 2022-03-31T16:16:24.000Z | repos/system_upgrade/el7toel8/actors/checkacpid/actor.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 85 | 2018-11-20T17:55:00.000Z | 2022-03-29T09:40:31.000Z | from leapp.actors import Actor
from leapp.models import InstalledRedHatSignedRPM
from leapp.libraries.common.rpms import has_package
from leapp.reporting import Report, create_report
from leapp import reporting
from leapp.tags import ChecksPhaseTag, IPUWorkflowTag
| 40.935484 | 104 | 0.662727 |
2108fb3332b187529421f27204509d2d0565250f | 831 | py | Python | crypto_config/cryptoconfigparser.py | x-ware-ltd/CryptoConfig | 59f38ca73194e5663b4c8ea48a2ae73514502664 | [
"BSD-3-Clause"
] | 1 | 2021-11-24T16:24:36.000Z | 2021-11-24T16:24:36.000Z | crypto_config/cryptoconfigparser.py | x-ware-ltd/CryptoConfig | 59f38ca73194e5663b4c8ea48a2ae73514502664 | [
"BSD-3-Clause"
] | 2 | 2021-08-13T15:13:53.000Z | 2021-08-13T15:57:18.000Z | crypto_config/cryptoconfigparser.py | x-ware-ltd/CryptoConfig | 59f38ca73194e5663b4c8ea48a2ae73514502664 | [
"BSD-3-Clause"
] | 1 | 2021-08-12T15:35:04.000Z | 2021-08-12T15:35:04.000Z | from crypto_config import (ConfigParser, ParsingError, Crypt)
import re | 33.24 | 74 | 0.610108 |
2109cd83cd9e5d9e5a9ceb4961c452b330afafb7 | 9,888 | py | Python | networks/multiclass/CNN2D/InceptionNet/multiclass_InceptionNet.py | so2liu/CNNArt | 9d91bf08a044e7d5068f8446663726411d2236dd | [
"Apache-2.0"
] | 22 | 2018-04-27T21:28:46.000Z | 2021-12-24T06:44:55.000Z | networks/multiclass/CNN2D/InceptionNet/multiclass_InceptionNet.py | so2liu/CNNArt | 9d91bf08a044e7d5068f8446663726411d2236dd | [
"Apache-2.0"
] | 81 | 2017-11-09T17:23:15.000Z | 2020-01-28T22:54:13.000Z | networks/multiclass/CNN2D/InceptionNet/multiclass_InceptionNet.py | so2liu/CNNArt | 9d91bf08a044e7d5068f8446663726411d2236dd | [
"Apache-2.0"
] | 18 | 2017-11-13T16:12:17.000Z | 2020-08-27T10:17:34.000Z | import os.path
import scipy.io as sio
import numpy as np # for algebraic operations, matrices
import keras.models
from keras.models import Sequential
from keras.layers.core import Dense, Activation, Flatten, Dropout # , Layer, Flatten
# from keras.layers import containers
from keras.models import model_from_json,Mode... | 46.641509 | 201 | 0.731493 |
2109ddcd358b814ece6800aa2ba9a800fb0b2400 | 856 | py | Python | python/sort_list_by_multiple_keys.py | julianespinel/trainning | 23e07c954e5bf03f1cd117e388eed7da4a3e8f63 | [
"MIT"
] | null | null | null | python/sort_list_by_multiple_keys.py | julianespinel/trainning | 23e07c954e5bf03f1cd117e388eed7da4a3e8f63 | [
"MIT"
] | null | null | null | python/sort_list_by_multiple_keys.py | julianespinel/trainning | 23e07c954e5bf03f1cd117e388eed7da4a3e8f63 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
tuples = [(3, 'x'), (2, 'y'), (1, 'a'), (1, 'z')]
tuples.sort(key=lambda x: (x[0], x[1]))
assert tuples == [(1, 'a'), (1, 'z'), (2, 'y'),(3, 'x')], "Error 1: 0 asc, 1 asc"
tuples.sort(key=lambda x: (x[0], reversor(x[1])))
assert tuples == [(1, 'z'), (1, 'a'), (2, 'y'),... | 31.703704 | 87 | 0.511682 |
210a6d8521d591e2b68bc2a7a3a7e44846716c28 | 501 | py | Python | labs-code/python/standard-product-track/get_followers.py | aod2004/getting-started-with-the-twitter-api-v2-for-academic-research | 43f90984297427a6c48a39407185240f5782966b | [
"Apache-2.0"
] | 282 | 2021-06-24T17:30:54.000Z | 2022-03-29T17:18:03.000Z | labs-code/python/standard-product-track/get_followers.py | arshamalh/getting-started-with-the-twitter-api-v2-for-academic-research | 9e894096a38a44bd54f852f2d14e4ed7bc2e1ba5 | [
"Apache-2.0"
] | 7 | 2021-06-26T22:03:31.000Z | 2022-01-18T10:35:24.000Z | labs-code/python/standard-product-track/get_followers.py | arshamalh/getting-started-with-the-twitter-api-v2-for-academic-research | 9e894096a38a44bd54f852f2d14e4ed7bc2e1ba5 | [
"Apache-2.0"
] | 63 | 2021-06-24T19:46:50.000Z | 2022-03-24T14:53:41.000Z | from twarc import Twarc2, expansions
import json
# Replace your bearer token below
client = Twarc2(bearer_token="XXXXX")
if __name__ == "__main__":
main()
| 25.05 | 76 | 0.682635 |
210ce5a109662e3af414b660e816005c84a91241 | 1,091 | py | Python | machine-learning/QiWei-Python-Chinese/function/function_02.py | yw-fang/MLreadingnotes | 3522497e6fb97427c54f4267d9c410064818c357 | [
"Apache-2.0"
] | 2 | 2020-07-09T22:21:57.000Z | 2021-03-20T15:30:31.000Z | machine-learning/QiWei-Python-Chinese/function/function_02.py | yw-fang/MLreadingnotes | 3522497e6fb97427c54f4267d9c410064818c357 | [
"Apache-2.0"
] | 37 | 2018-04-17T06:40:54.000Z | 2022-03-22T09:06:01.000Z | machine-learning/QiWei-Python-Chinese/function/function_02.py | yw-fang/MLreadingnotes | 3522497e6fb97427c54f4267d9c410064818c357 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Yue-Wen FANG'
__maintainer__ = "Yue-Wen FANG"
__email__ = 'fyuewen@gmail.com'
__license__ = 'Apache License 2.0'
__creation_date__= 'Dec. 25, 2018'
"""
This example shows the functionality
of positional arguments and keyword ONLY arguments.
The positional a... | 27.974359 | 100 | 0.656279 |
210ce5a3d930e858c4ed3d0c31e56cdd73aec402 | 1,999 | py | Python | Python/Problem#8.py | Wolfy7/DailyCodingProblem | dcca0da51bf42413c2eeff122dbb653e73ab5d83 | [
"MIT"
] | null | null | null | Python/Problem#8.py | Wolfy7/DailyCodingProblem | dcca0da51bf42413c2eeff122dbb653e73ab5d83 | [
"MIT"
] | null | null | null | Python/Problem#8.py | Wolfy7/DailyCodingProblem | dcca0da51bf42413c2eeff122dbb653e73ab5d83 | [
"MIT"
] | null | null | null | """
A unival tree (which stands for "universal value") is a tree where all nodes under it have the same value.
Given the root to a binary tree, count the number of unival subtrees.
For example, the following tree has 5 unival subtrees:
0
/ \
1 0
/ \
1 0
/ \
1 1
"""
# O(n)
... | 21.728261 | 107 | 0.57979 |
210d783c232f4ecb3f5661577b36de0f31d8a2b4 | 2,327 | py | Python | Prefixr.py | tribhuvanesh/dyna-snip | ac2c902f3dcbced5e8f6f6aad74826e5178ed9fe | [
"MIT"
] | 1 | 2015-02-06T13:17:56.000Z | 2015-02-06T13:17:56.000Z | Prefixr.py | tribhuvanesh/dyna-snip | ac2c902f3dcbced5e8f6f6aad74826e5178ed9fe | [
"MIT"
] | null | null | null | Prefixr.py | tribhuvanesh/dyna-snip | ac2c902f3dcbced5e8f6f6aad74826e5178ed9fe | [
"MIT"
] | null | null | null | import sublime
import sublime_plugin
import urllib
import urllib2
import threading
import re
from dyna_snip_helpers import get_snippet_list, inc_snippet_object
COMMENT_MARKER_JAVA = '//'
COMMENT_MARKER_PYTHON = "#"
| 41.553571 | 112 | 0.594327 |
210e8623af2b83c3331b035c74ce32e4c79cb05e | 2,735 | py | Python | zeus/common/ipc/uni_comm.py | wnov/vega | bf51cbe389d41033c4ae4bc02e5078c3c247c845 | [
"MIT"
] | 6 | 2020-11-13T15:44:47.000Z | 2021-12-02T08:14:06.000Z | zeus/common/ipc/uni_comm.py | JacobLee121/vega | 19256aca4d047bfad3b461f0a927e1c2abb9eb03 | [
"MIT"
] | null | null | null | zeus/common/ipc/uni_comm.py | JacobLee121/vega | 19256aca4d047bfad3b461f0a927e1c2abb9eb03 | [
"MIT"
] | 2 | 2021-06-25T09:42:32.000Z | 2021-08-06T18:00:09.000Z | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
#
# 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 us... | 35.986842 | 79 | 0.677514 |
210ef2ae872b4a00dd69a05f6c0a2cbd5afb971f | 269 | py | Python | srv/tools/import_lemuria.py | Nekohime/lemuria | 0e6ca20522547026e4b20bb8cd8caa23633c171c | [
"MIT"
] | 13 | 2021-02-12T23:44:06.000Z | 2022-03-05T16:59:08.000Z | srv/tools/import_lemuria.py | Nekohime/lemuria | 0e6ca20522547026e4b20bb8cd8caa23633c171c | [
"MIT"
] | 3 | 2021-03-16T18:28:54.000Z | 2022-03-25T17:58:42.000Z | srv/tools/import_lemuria.py | Nekohime/lemuria | 0e6ca20522547026e4b20bb8cd8caa23633c171c | [
"MIT"
] | 5 | 2021-03-04T17:56:54.000Z | 2022-01-24T19:31:22.000Z | #!/usr/bin/env python3
# encoding: utf-8
"""Easily create ../app.db and import ../lemuria.json"""
import asyncio
from db_tools import init_db
from db_tools import import_world
asyncio.run(init_db())
asyncio.run(import_world('../atlemuria.txt', '../proplemuria.txt'))
| 24.454545 | 67 | 0.736059 |
210f4c2d01b5f97c01acae66b6369a2579242949 | 2,517 | py | Python | Handwritten_Numeral_Image_Classification.py | yjnanan/lab3 | 9e93361b46adb47953b89ddc40ded74e445684cf | [
"Apache-2.0"
] | 1 | 2021-11-24T17:37:00.000Z | 2021-11-24T17:37:00.000Z | Handwritten_Numeral_Image_Classification.py | yjnanan/lab3 | 9e93361b46adb47953b89ddc40ded74e445684cf | [
"Apache-2.0"
] | null | null | null | Handwritten_Numeral_Image_Classification.py | yjnanan/lab3 | 9e93361b46adb47953b89ddc40ded74e445684cf | [
"Apache-2.0"
] | null | null | null | import numpy as np
import random
import matplotlib.pyplot as plt
from load_data import loadLabel,loadImage
if __name__=='__main__':
train_imgs=loadImage("train-images-idx3-ubyte")
train_labels=loadLabel("train-labels-idx1-ubyte")
test_imgs=loadImage("t10k-images-idx3-ubyte")
random.seed(2)
test_la... | 33.56 | 79 | 0.630115 |
21104b0f0ae3daac360c6b5e66284e9070501a16 | 586 | py | Python | catalog/bindings/gmd/cylindrical_cs.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/gmd/cylindrical_cs.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/gmd/cylindrical_cs.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from bindings.gmd.cylindrical_cstype import CylindricalCstype
__NAMESPACE__ = "http://www.opengis.net/gml"
| 30.842105 | 79 | 0.755973 |
2110e7d97dede9538a971bfc28f0a5ada650b926 | 4,800 | py | Python | preprocessing.py | tjiho/PoemesProfonds | ede1b32df153254e826cd9779f971fe72d6bd3eb | [
"MIT"
] | 6 | 2020-09-19T14:43:31.000Z | 2021-10-10T22:13:30.000Z | preprocessing.py | tjiho/PoemesProfonds | ede1b32df153254e826cd9779f971fe72d6bd3eb | [
"MIT"
] | 1 | 2021-01-16T19:06:34.000Z | 2021-04-14T20:02:28.000Z | preprocessing.py | tjiho/PoemesProfonds | ede1b32df153254e826cd9779f971fe72d6bd3eb | [
"MIT"
] | 1 | 2021-04-11T23:13:33.000Z | 2021-04-11T23:13:33.000Z | import pandas as pd
from collections import Counter
def import_lexique_as_df(path=r".\lexique3832.xlsx"):
"""importe le lexique
:param path: lexique3832.xlsx chemin du fichier
:return pd.dataframe
"""
df = pd.read_excel(path)
df.iloc[:, 0] = df.iloc[:, 0].fillna(value="nan") # transforme Na... | 36.090226 | 119 | 0.64 |
211256a01de1489d0a1b59d2986c7fda716eda8d | 25,517 | py | Python | src/mlpy-3.5.0/mlpy/dimred.py | xuanxiaoliqu/CRC4Docker | 5ee26f9a590b727693202d8ad3b6460970304bd9 | [
"MIT"
] | 1 | 2020-10-26T12:02:08.000Z | 2020-10-26T12:02:08.000Z | src/mlpy-3.5.0/mlpy/dimred.py | TonyZPW/CRC4Docker | e52a6e88d4469284a071c0b96d009f6684dbb2ea | [
"MIT"
] | null | null | null | src/mlpy-3.5.0/mlpy/dimred.py | TonyZPW/CRC4Docker | e52a6e88d4469284a071c0b96d009f6684dbb2ea | [
"MIT"
] | null | null | null | ## This code is written by Davide Albanese, <albanese@fbk.eu>.
## (C) 2011 mlpy Developers.
## This program 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 y... | 30.197633 | 80 | 0.535604 |
2114b6575b25531e65cb62deff849490987110cc | 9,695 | py | Python | polls/views.py | Parth-Shah-99/Polling-Project | b9d1548dc801a0b02d1fd8b925276d9349bb10fe | [
"MIT"
] | 1 | 2021-06-23T11:24:01.000Z | 2021-06-23T11:24:01.000Z | polls/views.py | Parth-Shah-99/Polling-Project | b9d1548dc801a0b02d1fd8b925276d9349bb10fe | [
"MIT"
] | null | null | null | polls/views.py | Parth-Shah-99/Polling-Project | b9d1548dc801a0b02d1fd8b925276d9349bb10fe | [
"MIT"
] | null | null | null | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
from django.contrib.auth.forms import UserCreationForm
from django.contrib import messages
from django.urls import reverse
from .forms import UserSignupForm, CreatePollForm, UserUpdateForm
fro... | 37.432432 | 139 | 0.665188 |
211508cef478fb4f72770257d50ec1792235097e | 1,355 | py | Python | src/katas/alphabet_position.py | Thavarshan/python-code-katas | 496d9224bbef3ee83a0e94f3a27b8e03159f84c5 | [
"MIT"
] | 14 | 2020-08-03T05:29:13.000Z | 2021-08-07T09:53:18.000Z | src/katas/alphabet_position.py | Thavarshan/python-code-katas | 496d9224bbef3ee83a0e94f3a27b8e03159f84c5 | [
"MIT"
] | null | null | null | src/katas/alphabet_position.py | Thavarshan/python-code-katas | 496d9224bbef3ee83a0e94f3a27b8e03159f84c5 | [
"MIT"
] | null | null | null | import re
| 26.057692 | 79 | 0.487823 |
21160771a6aab5b0c62e80306c257ce5f76ec26d | 300 | py | Python | FreeCodeCamp/Scientific Computing with Python/Python for Everybody/09.py | saulpaiva/Code | 3c6591da52ccf40565ed0a4e857e83e7f643b72d | [
"MIT"
] | 1 | 2021-09-29T01:26:29.000Z | 2021-09-29T01:26:29.000Z | FreeCodeCamp/Scientific Computing with Python/Python for Everybody/09.py | saulpaiva/Code | 3c6591da52ccf40565ed0a4e857e83e7f643b72d | [
"MIT"
] | null | null | null | FreeCodeCamp/Scientific Computing with Python/Python for Everybody/09.py | saulpaiva/Code | 3c6591da52ccf40565ed0a4e857e83e7f643b72d | [
"MIT"
] | null | null | null | # Iterations: Definite Loops
'''
Use the 'for' word
there is a iteration variable like 'i' or 'friend'
'''
# for i in [5, 4, 3, 2, 1] :
# print(i)
# print('Blastoff!')
# friends = ['matheus', 'wataru', 'mogli']
# for friend in friends :
# print('happy new year:', friend)
# print('Done!')
| 18.75 | 50 | 0.596667 |
211608a19d7eb2aa30ebb283349f2fda6915bba2 | 5,008 | py | Python | keras-version/main.py | bzantium/EA-LSTM | ddd318d3f622c1d3c99976b334f5b00df5767578 | [
"BSD-3-Clause"
] | 16 | 2020-01-14T08:53:12.000Z | 2021-12-18T05:30:12.000Z | keras-version/main.py | bzantium/EA-LSTM | ddd318d3f622c1d3c99976b334f5b00df5767578 | [
"BSD-3-Clause"
] | 1 | 2020-06-30T06:39:00.000Z | 2020-07-01T00:12:03.000Z | keras-version/main.py | bzantium/EA-LSTM | ddd318d3f622c1d3c99976b334f5b00df5767578 | [
"BSD-3-Clause"
] | 5 | 2020-01-04T05:51:23.000Z | 2021-05-16T08:14:24.000Z | from utils import (load_data, data_to_series_features,
apply_weight, is_minimum)
from algorithm import (initialize_weights, individual_to_key,
pop_to_weights, select, reconstruct_population)
from sklearn.metrics import mean_squared_error, mean_absolute_error
from tensorflow.ker... | 50.08 | 117 | 0.673123 |
21166bc527a261fd10a8f75ff6962975085966f9 | 780 | py | Python | start.py | Wrdle/BertieBotV3 | 8bc5f762ec8de7192a8635e1bebd9dc1bba6ab0f | [
"MIT"
] | 3 | 2019-02-10T14:42:58.000Z | 2020-04-14T08:32:12.000Z | start.py | Wrdle/BertieBotV3 | 8bc5f762ec8de7192a8635e1bebd9dc1bba6ab0f | [
"MIT"
] | 1 | 2019-03-16T11:22:07.000Z | 2019-03-16T11:22:07.000Z | start.py | Wrdle/BertieBotV3 | 8bc5f762ec8de7192a8635e1bebd9dc1bba6ab0f | [
"MIT"
] | null | null | null | import threading
from discord.ext import commands
import discord
from website import create_app
from cogs import generalCommands, events, leaderboard
from settings import configFunctions
global client
client = commands.Bot(command_prefix=commands.when_mentioned_or(configFunctions.getCommandPrefix()), description='Yo... | 30 | 137 | 0.794872 |
2117cf54e7b7020c0cc8785a27a87431a73d56a9 | 1,644 | py | Python | flearn/common/strategy/lg.py | wnma3mz/flearn | df3c837bb164ec81736a3a64aaa85f574e7f67fa | [
"Apache-2.0"
] | 6 | 2021-11-11T15:09:28.000Z | 2022-03-16T02:15:06.000Z | flearn/common/strategy/lg.py | wnma3mz/flearn | df3c837bb164ec81736a3a64aaa85f574e7f67fa | [
"Apache-2.0"
] | null | null | null | flearn/common/strategy/lg.py | wnma3mz/flearn | df3c837bb164ec81736a3a64aaa85f574e7f67fa | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
from .avg import AVG
| 34.25 | 173 | 0.623479 |
2118068c90ee6fe45dbd96479d69f88ca74aa067 | 30,082 | py | Python | kamarl/ppo.py | kandouss/kamarl | f3268e0cc8f55bdfc2591b1d23f5089aaeb93a41 | [
"MIT"
] | 4 | 2020-07-01T01:10:38.000Z | 2022-01-13T18:09:11.000Z | kamarl/ppo.py | kandouss/kamarl | f3268e0cc8f55bdfc2591b1d23f5089aaeb93a41 | [
"MIT"
] | 2 | 2021-04-30T15:43:07.000Z | 2022-01-06T09:23:30.000Z | kamarl/ppo.py | kandouss/kamarl | f3268e0cc8f55bdfc2591b1d23f5089aaeb93a41 | [
"MIT"
] | 1 | 2020-09-10T11:38:18.000Z | 2020-09-10T11:38:18.000Z | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import os
import pickle
import warnings
from collections import defaultdict
import gym
from kamarl.modules import ConvNet, SeqLSTM, make_mlp, device_of, PixelDropout
from kamarl.buffers import RecurrentReplayMemory, init_array_rec... | 39.738441 | 163 | 0.555814 |
2118556386ae81e73015847d80c2e673b459a224 | 958 | py | Python | comm/udpserver.py | mickvangelderen/bikesim | 2f62f3864022221585d317748a931b514431f13a | [
"MIT"
] | 2 | 2020-09-25T08:29:57.000Z | 2021-02-03T23:35:49.000Z | comm/udpserver.py | mickvangelderen/bikesim | 2f62f3864022221585d317748a931b514431f13a | [
"MIT"
] | 13 | 2015-05-24T12:35:32.000Z | 2017-04-25T14:56:57.000Z | comm/udpserver.py | mickvangelderen/bikesim | 2f62f3864022221585d317748a931b514431f13a | [
"MIT"
] | 2 | 2017-02-23T12:33:54.000Z | 2021-03-01T13:23:43.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import socketserver
from lxml import etree
if __name__ == "__main__":
if len(sys.argv) > 1:
port = int(sys.argv[1])
else:
port = 9900
host = "localhost"
print("udp server listening on port {}".format(port))
server = UdpSer... | 26.611111 | 61 | 0.626305 |
2118bed7dc6a1d90a9c25e8b18bcfa38fec8ad1d | 4,416 | py | Python | tests/metrics/test_compute_kid.py | alexmlamb/mimicry | be030fb24a79c9bd50843d188d930c01e2260f45 | [
"MIT"
] | 1 | 2020-04-07T05:28:36.000Z | 2020-04-07T05:28:36.000Z | tests/metrics/test_compute_kid.py | Gyanachand1/mimicry | 4e0fd46c2c5e97c319273a03374bbfa730071711 | [
"MIT"
] | null | null | null | tests/metrics/test_compute_kid.py | Gyanachand1/mimicry | 4e0fd46c2c5e97c319273a03374bbfa730071711 | [
"MIT"
] | null | null | null | import os
import shutil
import tensorflow as tf
import torch
from torch_mimicry.metrics import compute_kid
from torch_mimicry.metrics.inception_model import inception_utils
from torch_mimicry.nets.gan import gan
if __name__ == "__main__":
test = TestComputeKID()
test.setup()
test.test_compute_gen_dist... | 33.709924 | 79 | 0.529665 |
21193263528777c8ec5d4a090e797b8d465d93a5 | 1,831 | py | Python | t_system/remote_ui/modules/identity.py | sevgiun/T_System | 2664e38843c36578bfb6c61e2642b56bd537352a | [
"MIT"
] | 7 | 2019-11-06T10:00:39.000Z | 2021-06-29T20:31:54.000Z | t_system/remote_ui/modules/identity.py | sevgiun/T_System | 2664e38843c36578bfb6c61e2642b56bd537352a | [
"MIT"
] | 741 | 2019-11-01T11:23:33.000Z | 2022-03-31T13:49:17.000Z | t_system/remote_ui/modules/identity.py | sevgiun/T_System | 2664e38843c36578bfb6c61e2642b56bd537352a | [
"MIT"
] | 6 | 2019-11-01T11:49:27.000Z | 2022-03-18T03:04:16.000Z | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
.. module:: identity
:platform: Unix
:synopsis: the top-level submodule of T_System's remote_ui that contains the functions for realizing identity process of T_System.
.. moduleauthor:: Cem Baybars GL <cem.baybars@gmail.com>
"""
from t_system.administration impo... | 28.609375 | 134 | 0.619334 |
211ad11f9ebdef48bf332ecf751958ae13ba3bd7 | 566 | py | Python | core/migrations/0004_auto_20210502_0503.py | Armestrong/resale_api | 75a798f2aa95b7d316e145f3811fa05537c606df | [
"MIT"
] | null | null | null | core/migrations/0004_auto_20210502_0503.py | Armestrong/resale_api | 75a798f2aa95b7d316e145f3811fa05537c606df | [
"MIT"
] | null | null | null | core/migrations/0004_auto_20210502_0503.py | Armestrong/resale_api | 75a798f2aa95b7d316e145f3811fa05537c606df | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2021-05-02 08:03
from django.db import migrations, models
| 23.583333 | 62 | 0.584806 |
211cae5e480faa8195032b59f9591460f2ff97be | 1,154 | py | Python | test/test_tile.py | MiroK/tieler | 5204e12157528b18ab1161d4bc5655194c4e8dcb | [
"MIT"
] | 1 | 2019-12-19T10:07:34.000Z | 2019-12-19T10:07:34.000Z | test/test_tile.py | MiroK/tieler | 5204e12157528b18ab1161d4bc5655194c4e8dcb | [
"MIT"
] | null | null | null | test/test_tile.py | MiroK/tieler | 5204e12157528b18ab1161d4bc5655194c4e8dcb | [
"MIT"
] | 1 | 2019-12-13T15:31:02.000Z | 2019-12-13T15:31:02.000Z | import unittest
from tieler.tile import powers2, TileMesh
from tieler.tile_data import mf_from_data, load_data
from dolfin import (UnitSquareMesh, MeshFunction, CompiledSubDomain,
SubsetIterator)
import numpy as np
| 31.189189 | 82 | 0.615251 |
211cc816802d2504b9662cbd05920bf956accf92 | 607 | py | Python | src/demo.py | wenksi/pren-robo-cube-ipcv | e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f | [
"MIT"
] | null | null | null | src/demo.py | wenksi/pren-robo-cube-ipcv | e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f | [
"MIT"
] | null | null | null | src/demo.py | wenksi/pren-robo-cube-ipcv | e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f | [
"MIT"
] | null | null | null | import logging
import pyttsx3
from src.a_detect_pictogram import course_detect_pictogram
from src.common.communication.serial_handler import *
from src.common.movement.drive import *
from src.common.movement.direction import *
from src.common.movement.climb import *
ts = pyttsx3.init()
ts.say("Welcome to our Demonstr... | 23.346154 | 66 | 0.794069 |
211ce10aeead46c0c7f51e5abafc02877fb2cf97 | 704 | py | Python | saleor/product/migrations/0168_fulfil_digitalcontenturl_orderline_token.py | eanknd/saleor | 08aa724176be00d7aaf654f14e9ae99dd4327f97 | [
"CC-BY-4.0"
] | 1,392 | 2021-10-06T15:54:28.000Z | 2022-03-31T20:50:55.000Z | saleor/product/migrations/0168_fulfil_digitalcontenturl_orderline_token.py | eanknd/saleor | 08aa724176be00d7aaf654f14e9ae99dd4327f97 | [
"CC-BY-4.0"
] | 888 | 2021-10-06T10:48:54.000Z | 2022-03-31T11:00:30.000Z | saleor/product/migrations/0168_fulfil_digitalcontenturl_orderline_token.py | gustavoarmoa/saleor | f81b2f347e4c7a624cd68a1eca3b0a5611498f6e | [
"CC-BY-4.0"
] | 538 | 2021-10-07T16:21:27.000Z | 2022-03-31T22:58:57.000Z | # Generated by Django 3.2.12 on 2022-04-12 14:00
from django.db import migrations
| 26.074074 | 76 | 0.586648 |
211d99bab2350894eacc338077a740dc54ba2deb | 2,086 | py | Python | thtml/__main__.py | cariad/tohtml | 7e8c07a2342847f96bb136563587a20a15169ef7 | [
"MIT"
] | null | null | null | thtml/__main__.py | cariad/tohtml | 7e8c07a2342847f96bb136563587a20a15169ef7 | [
"MIT"
] | 22 | 2021-09-04T12:15:00.000Z | 2021-10-10T14:16:28.000Z | thtml/__main__.py | cariad/tohtml | 7e8c07a2342847f96bb136563587a20a15169ef7 | [
"MIT"
] | null | null | null | from argparse import ArgumentParser
from sys import stdin, stdout
from tempfile import NamedTemporaryFile
from time import sleep
from webbrowser import open as open_web
from naughtty import NaughTTY
from thtml import get_version
from thtml.cli import write_html
from thtml.options import Scope
if __name__ == "__mai... | 23.438202 | 85 | 0.581496 |
211f6ddf246f598450cec780f0b1b09a427a9f4d | 1,356 | py | Python | python3/719.find-k-th-smallest-pair-distance.214267100.ac.py | Diego-Zulu/leetcode_answers | ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4 | [
"MIT"
] | null | null | null | python3/719.find-k-th-smallest-pair-distance.214267100.ac.py | Diego-Zulu/leetcode_answers | ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4 | [
"MIT"
] | null | null | null | python3/719.find-k-th-smallest-pair-distance.214267100.ac.py | Diego-Zulu/leetcode_answers | ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4 | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=719 lang=python3
#
# [719] Find K-th Smallest Pair Distance
#
# https://leetcode.com/problems/find-k-th-smallest-pair-distance/description/
#
# algorithms
# Hard (30.99%)
# Likes: 827
# Dislikes: 30
# Total Accepted: 29.9K
# Total Submissions: 96.4K
# Testcase Example: '[1,3,1]\n1'
#
# Gi... | 20.861538 | 77 | 0.528761 |
211f8d2ee9b0a9fad9c5178249bd1da0ab9a01b5 | 15,507 | py | Python | openapiart/openapiartprotobuf.py | open-traffic-generator/openapiart | c8ceea738a07f0635c501b65583ed81428b7f5a7 | [
"MIT"
] | 3 | 2021-08-05T05:23:48.000Z | 2022-01-26T16:52:20.000Z | openapiart/openapiartprotobuf.py | open-traffic-generator/openapiart | c8ceea738a07f0635c501b65583ed81428b7f5a7 | [
"MIT"
] | 186 | 2021-06-04T05:04:39.000Z | 2022-03-28T09:55:24.000Z | openapiart/openapiartprotobuf.py | open-traffic-generator/openapiart | c8ceea738a07f0635c501b65583ed81428b7f5a7 | [
"MIT"
] | 2 | 2021-09-24T09:39:57.000Z | 2021-12-13T05:40:37.000Z | import os
import jsonpath_ng
from .openapiartplugin import OpenApiArtPlugin
| 47.133739 | 130 | 0.565229 |
21226fcd5be7a149c71e6cd157a3b6472337737a | 1,430 | py | Python | dashboard/app.py | katabaticwind/learn-vue | c83fc1b7ef3edfdc0abd06ba39be58f5a1ca5a59 | [
"MIT"
] | null | null | null | dashboard/app.py | katabaticwind/learn-vue | c83fc1b7ef3edfdc0abd06ba39be58f5a1ca5a59 | [
"MIT"
] | null | null | null | dashboard/app.py | katabaticwind/learn-vue | c83fc1b7ef3edfdc0abd06ba39be58f5a1ca5a59 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, url_for
import os
app = Flask(__name__)
# Homepage
# Domestic Dashboards
# JSON API (allows users to "download" JSON files)
# Trick (converting Python variable to Javascript variable)
# @app.route('/some/route/<url>')
# def convert_variable(url=None):
# x = some dat... | 27.5 | 89 | 0.645455 |
2125bf481f33a3ec079e7c7220e2022117799088 | 1,780 | py | Python | pepdb/tasks/elastic_models.py | dchaplinsky/pep.org.ua | 8633a65fb657d7f04dbdb12eb8ae705fa6be67e3 | [
"MIT"
] | 7 | 2015-12-21T03:52:46.000Z | 2020-07-24T19:17:23.000Z | pepdb/tasks/elastic_models.py | dchaplinsky/pep.org.ua | 8633a65fb657d7f04dbdb12eb8ae705fa6be67e3 | [
"MIT"
] | 12 | 2016-03-05T18:11:05.000Z | 2021-06-17T20:20:03.000Z | pepdb/tasks/elastic_models.py | dchaplinsky/pep.org.ua | 8633a65fb657d7f04dbdb12eb8ae705fa6be67e3 | [
"MIT"
] | 4 | 2016-07-17T20:19:38.000Z | 2021-03-23T12:47:20.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from elasticsearch_dsl import Q, Keyword, Text, DocType, Date
| 30.169492 | 97 | 0.567978 |
212749bc744b35c985e440f3530a80df198704b9 | 17,897 | py | Python | paprika/restraints/plumed.py | slochower/pAPRika | 50a6c148f88db896e94bd5f03c4f4bebb129b0f1 | [
"BSD-3-Clause"
] | 16 | 2017-04-19T23:46:49.000Z | 2022-03-05T19:47:02.000Z | paprika/restraints/plumed.py | slochower/pAPRika | 50a6c148f88db896e94bd5f03c4f4bebb129b0f1 | [
"BSD-3-Clause"
] | 154 | 2017-04-20T16:05:26.000Z | 2022-03-24T21:07:18.000Z | paprika/restraints/plumed.py | slochower/pAPRika | 50a6c148f88db896e94bd5f03c4f4bebb129b0f1 | [
"BSD-3-Clause"
] | 12 | 2017-07-06T07:55:31.000Z | 2022-03-12T05:05:44.000Z | import logging
import os
import numpy as np
from openff.units import unit as pint_unit
from parmed.structure import Structure as ParmedStructureClass
from paprika.build.dummy import extract_dummy_atoms
from paprika.restraints.utils import get_bias_potential_type, parse_window
from paprika.utils import get_key, return... | 34.88694 | 117 | 0.559926 |
212a95f1c4fd882b3f3c07fbbadd0044bf24ec45 | 911 | py | Python | modules/GEM_500_COM3.py | ZeppW/ODMRGUI | ec4b5fc5ab522eb0ba2ba287f1d6ba6606636527 | [
"MIT"
] | null | null | null | modules/GEM_500_COM3.py | ZeppW/ODMRGUI | ec4b5fc5ab522eb0ba2ba287f1d6ba6606636527 | [
"MIT"
] | null | null | null | modules/GEM_500_COM3.py | ZeppW/ODMRGUI | ec4b5fc5ab522eb0ba2ba287f1d6ba6606636527 | [
"MIT"
] | 2 | 2020-03-28T20:42:53.000Z | 2020-04-21T20:47:36.000Z | import pyvisa
import time
import numpy as np
from struct import unpack
import matplotlib.pyplot as plt
rm = pyvisa.ResourceManager()
rm.list_resources()
GEM = rm.open_resource('ASRL3::INSTR')
| 21.186047 | 68 | 0.592755 |
212af891bd58568f117d5d889dd08db69eb8d0ee | 7,778 | py | Python | data_loading/sets/oxford_flowers.py | yyx1994/pytorch.repmet | 847a2b71fa751e6d381c233df0107a53592d8ce5 | [
"MIT"
] | 4 | 2019-09-29T08:57:09.000Z | 2021-04-20T09:36:56.000Z | data_loading/sets/oxford_flowers.py | xtynwfn/pytorch.repmet | 847a2b71fa751e6d381c233df0107a53592d8ce5 | [
"MIT"
] | null | null | null | data_loading/sets/oxford_flowers.py | xtynwfn/pytorch.repmet | 847a2b71fa751e6d381c233df0107a53592d8ce5 | [
"MIT"
] | 1 | 2021-04-12T06:58:06.000Z | 2021-04-12T06:58:06.000Z | """
Oxford Flowers dataset loader
1020 samples spanning 102 classes (avg 10 per class)
http://www.robots.ox.ac.uk/~vgg/data/flowers
"""
from __future__ import print_function
import numpy as np
from PIL import Image, ImageFile
from os.path import join
import os
import scipy.io
import tarfile
import shutil
from torc... | 34.114035 | 118 | 0.628953 |
212c6a033933cc16fdde51c24f44e974db430411 | 1,579 | py | Python | custom_uss/vims_main.py | shuanet/dss | 5daafeb89aac58e4614775f301bec920f4abfa24 | [
"Apache-2.0"
] | 2 | 2022-02-13T19:13:16.000Z | 2022-02-17T14:52:05.000Z | custom_uss/vims_main.py | shuanet/dss | 5daafeb89aac58e4614775f301bec920f4abfa24 | [
"Apache-2.0"
] | null | null | null | custom_uss/vims_main.py | shuanet/dss | 5daafeb89aac58e4614775f301bec920f4abfa24 | [
"Apache-2.0"
] | 1 | 2022-02-16T20:17:38.000Z | 2022-02-16T20:17:38.000Z | #!/usr/bin/python3
import re
from custom_vims import VIMS
import json
"""
commands:
$ create_vims id port
$ create_vertiport ENAC
$ create_vertiport LFBO
$ get_vertiport vertiport_name
$ delete_vertiport vertiport_name
"""
def is_uuid(uuid):
"""
UUID encription.
"""
match = re.match('[a-fA-F0-9]{8}-[a-fA-F0-9]{... | 23.567164 | 102 | 0.698543 |
212c7789af89131c2bbfe4f6722164ee35269ced | 486 | py | Python | src/softforest/routing.py | Zayn484/softForest-rest-api | 6ba80f738f2f00e938bc472b900c467d67dc4bc4 | [
"bzip2-1.0.6"
] | null | null | null | src/softforest/routing.py | Zayn484/softForest-rest-api | 6ba80f738f2f00e938bc472b900c467d67dc4bc4 | [
"bzip2-1.0.6"
] | 5 | 2021-03-19T00:39:57.000Z | 2022-01-13T01:14:11.000Z | src/softforest/routing.py | Zayn484/softforest-rest-api | 6ba80f738f2f00e938bc472b900c467d67dc4bc4 | [
"bzip2-1.0.6"
] | null | null | null | from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
from django.urls import re_path
from chat.consumers import ChatConsumer
from teams.consumers import InvitationConsumer
application = ProtocolTypeRouter({
'websocket': AuthMiddlewareStack(
URLRouter([
... | 30.375 | 74 | 0.699588 |
212d2ae3f3860ba8035eb54ebdfbfb256b22bb6e | 973 | py | Python | src/spaceone/inventory/manager/pricing_manager.py | jihyungSong/plugin-aws-price-info | f97f4edff4f022cc9e7c43185ecc98fe9a92fb48 | [
"Apache-2.0"
] | 1 | 2021-02-18T07:56:14.000Z | 2021-02-18T07:56:14.000Z | src/spaceone/inventory/manager/pricing_manager.py | jihyungSong/plugin-aws-price-info | f97f4edff4f022cc9e7c43185ecc98fe9a92fb48 | [
"Apache-2.0"
] | null | null | null | src/spaceone/inventory/manager/pricing_manager.py | jihyungSong/plugin-aws-price-info | f97f4edff4f022cc9e7c43185ecc98fe9a92fb48 | [
"Apache-2.0"
] | 2 | 2021-02-18T07:56:17.000Z | 2021-03-23T01:53:40.000Z | import json
from spaceone.inventory.libs.manager import AWSManager
from spaceone.inventory.connector.pricing import PricingConnector
from spaceone.inventory.model.pricing.cloud_service_type import CLOUD_SERVICE_TYPES
| 36.037037 | 97 | 0.741007 |
213001fc2c57be3f593a70955944181861dce3d7 | 3,131 | py | Python | CatMap/statistics_cat/src/main/python/merge_rdf.py | QCAPI-DRIP/eVRE-ENVRI_Blocks | 90859424ae9e464dc8c60589ef43c247ff32aff1 | [
"Apache-2.0"
] | 1 | 2018-12-07T09:30:08.000Z | 2018-12-07T09:30:08.000Z | CatMap/statistics_cat/src/main/python/merge_rdf.py | QCAPI-DRIP/eVRE-ENVRI | 90859424ae9e464dc8c60589ef43c247ff32aff1 | [
"Apache-2.0"
] | null | null | null | CatMap/statistics_cat/src/main/python/merge_rdf.py | QCAPI-DRIP/eVRE-ENVRI | 90859424ae9e464dc8c60589ef43c247ff32aff1 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
from rdflib import Graph, RDF, BNode, URIRef, Namespace, ConjunctiveGraph, Literal
from pathlib import Path
import sys
import ftplib
import tempfile
import shutil
import os
import json
import urllib
import base64
import pika
import urlparse
if __name__ == "__main__":
chann... | 26.991379 | 87 | 0.639732 |
21302d3ba8091fd04babc7e6b1cac595bcb3588f | 816 | py | Python | django_drf_filepond/migrations/0003_add_storedupload.py | alarivas/django-drf-filepond | 30098c186cd489728c227de0f85004039a1f72fc | [
"BSD-3-Clause"
] | 81 | 2018-12-03T22:37:40.000Z | 2022-03-31T15:33:06.000Z | django_drf_filepond/migrations/0003_add_storedupload.py | alarivas/django-drf-filepond | 30098c186cd489728c227de0f85004039a1f72fc | [
"BSD-3-Clause"
] | 56 | 2019-01-02T16:04:12.000Z | 2022-03-15T02:45:29.000Z | django_drf_filepond/migrations/0003_add_storedupload.py | alarivas/django-drf-filepond | 30098c186cd489728c227de0f85004039a1f72fc | [
"BSD-3-Clause"
] | 29 | 2018-12-30T22:45:19.000Z | 2022-03-12T02:48:51.000Z | # Generated by Django 2.1.3 on 2019-02-13 13:00
import django.core.validators
from django.db import migrations, models
| 30.222222 | 74 | 0.552696 |
21308689b917b00024ac6bc365d471accdf44ba5 | 115 | py | Python | portal/apps/memcached/views.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 8 | 2020-12-15T17:11:08.000Z | 2021-12-13T22:08:33.000Z | portal/apps/memcached/views.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 28 | 2020-12-15T17:34:03.000Z | 2022-02-01T04:09:10.000Z | portal/apps/memcached/views.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 7 | 2020-12-15T19:59:17.000Z | 2021-11-24T16:47:06.000Z | # -*- coding: utf-8 -*-
from memcached_status import view
| 19.166667 | 33 | 0.721739 |
2130a3b1de35b98506260b7bd36a4036bd7b7be6 | 2,054 | py | Python | encrypted_fields_test/migrations/0003_demomigrationmodel_add_more_fields.py | bishtamit/django-searchable-encrypted-fields | dce4afe4aef826fda137dfae0f60c683d5b40a46 | [
"MIT"
] | 1 | 2021-08-21T08:55:03.000Z | 2021-08-21T08:55:03.000Z | encrypted_fields_test/migrations/0003_demomigrationmodel_add_more_fields.py | bishtamit/django-searchable-encrypted-fields | dce4afe4aef826fda137dfae0f60c683d5b40a46 | [
"MIT"
] | null | null | null | encrypted_fields_test/migrations/0003_demomigrationmodel_add_more_fields.py | bishtamit/django-searchable-encrypted-fields | dce4afe4aef826fda137dfae0f60c683d5b40a46 | [
"MIT"
] | null | null | null | # Generated by Django 2.1 on 2020-10-08 10:05
import datetime
from django.db import migrations
import encrypted_fields.fields
| 40.27451 | 166 | 0.666504 |
2133db37ffe3b094c18bdbaf67418da439298e46 | 1,015 | py | Python | home/GroG/ContinuousServo.py | rv8flyboy/pyrobotlab | 4e04fb751614a5cb6044ea15dcfcf885db8be65a | [
"Apache-2.0"
] | 63 | 2015-02-03T18:49:43.000Z | 2022-03-29T03:52:24.000Z | home/GroG/ContinuousServo.py | rv8flyboy/pyrobotlab | 4e04fb751614a5cb6044ea15dcfcf885db8be65a | [
"Apache-2.0"
] | 16 | 2016-01-26T19:13:29.000Z | 2018-11-25T21:20:51.000Z | home/GroG/ContinuousServo.py | rv8flyboy/pyrobotlab | 4e04fb751614a5cb6044ea15dcfcf885db8be65a | [
"Apache-2.0"
] | 151 | 2015-01-03T18:55:54.000Z | 2022-03-04T07:04:23.000Z | from java.lang import String
from org.myrobotlab.service import Speech
from org.myrobotlab.service import Sphinx
from org.myrobotlab.service import Runtime
# create mouth arduino and servo
ear = Runtime.createAndStart("ear","Sphinx")
arduino = Runtime.createAndStart("arduino","Arduino")
arduino.connect("COM4")
servo... | 33.833333 | 74 | 0.706404 |
2133e069ca87fe3a4720d2db5fafd837b8a54846 | 7,512 | py | Python | dstools/tests/preprocessing/test_FeatureConverter.py | Diadochokinetic/DataScienceTools | a5701888eeeab8fadab17266e9b3bb7a6b6b7b0a | [
"MIT"
] | null | null | null | dstools/tests/preprocessing/test_FeatureConverter.py | Diadochokinetic/DataScienceTools | a5701888eeeab8fadab17266e9b3bb7a6b6b7b0a | [
"MIT"
] | 3 | 2019-11-14T09:10:43.000Z | 2019-11-25T13:16:08.000Z | dstools/tests/preprocessing/test_FeatureConverter.py | Diadochokinetic/DataScienceTools | a5701888eeeab8fadab17266e9b3bb7a6b6b7b0a | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import unittest
from dstools.preprocessing.FeatureConverter import FeatureConverter
if __name__ == '__main__':
unittest.main() | 36.643902 | 150 | 0.578674 |
21367cf6bd5bc02d6a029a160d178f8fc6a45ea5 | 24,632 | py | Python | MixPanel_daily_DataPipeline/bin/mixpanel_daily_datapipeline.py | ThiagoBarsante/DataEngineer_projects | bbed3653cc8e7bf6aec096d11c78566e3a3f8a2b | [
"MIT"
] | null | null | null | MixPanel_daily_DataPipeline/bin/mixpanel_daily_datapipeline.py | ThiagoBarsante/DataEngineer_projects | bbed3653cc8e7bf6aec096d11c78566e3a3f8a2b | [
"MIT"
] | null | null | null | MixPanel_daily_DataPipeline/bin/mixpanel_daily_datapipeline.py | ThiagoBarsante/DataEngineer_projects | bbed3653cc8e7bf6aec096d11c78566e3a3f8a2b | [
"MIT"
] | null | null | null |
""" This program run one complete datapipeline with raw data from mixpanel (json files API)
and generate one structured file format to be used in a Data Science project
Resume
- validate startup process
- check if the configuration and variables are setup
... | 42.987784 | 126 | 0.631942 |
2137048d97bbda1f868d76573e8282183898524b | 4,994 | py | Python | imageai/dnnFaceProcessor.py | eusholli/image-pipeline | bdcaafcb7bf17b578aedaf3e2ffd7d9468218651 | [
"MIT"
] | 1 | 2022-02-16T00:48:12.000Z | 2022-02-16T00:48:12.000Z | imageai/dnnFaceProcessor.py | eusholli/image-pipeline | bdcaafcb7bf17b578aedaf3e2ffd7d9468218651 | [
"MIT"
] | null | null | null | imageai/dnnFaceProcessor.py | eusholli/image-pipeline | bdcaafcb7bf17b578aedaf3e2ffd7d9468218651 | [
"MIT"
] | 2 | 2022-01-10T10:51:24.000Z | 2022-03-17T21:30:27.000Z | import traceback
import io
import numpy as np
import sys
import time
import cv2
import datetime
import jsonpickle
import argparse
import asyncio
import os
from common.imagebusutil import FrameDetails, ImagebusTopic # noqa
from common.natsclient import create, subscribe_handler # noqa
modelFile = os.path.join(
... | 30.084337 | 112 | 0.554465 |
213723b3dd0ec2707a09492a68406c41dfb6bc0e | 564 | py | Python | npbench/benchmarks/polybench/durbin/durbin_dace.py | frahlg/npbench | 1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26 | [
"BSD-3-Clause"
] | 27 | 2021-05-10T11:49:13.000Z | 2022-03-22T18:07:19.000Z | npbench/benchmarks/polybench/durbin/durbin_dace.py | frahlg/npbench | 1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26 | [
"BSD-3-Clause"
] | 3 | 2021-12-01T13:03:17.000Z | 2022-03-17T10:53:00.000Z | npbench/benchmarks/polybench/durbin/durbin_dace.py | frahlg/npbench | 1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26 | [
"BSD-3-Clause"
] | 7 | 2021-06-24T03:40:25.000Z | 2022-01-26T09:04:33.000Z | import numpy as np
import dace as dc
M, N = (dc.symbol(s, dtype=dc.int64) for s in ('M', 'N'))
| 18.8 | 59 | 0.492908 |
21373676a4bc270dbe3e9faf1a06f0fa837f82a5 | 942 | py | Python | tests/greedy/test_oblate_system.py | rodluger/starry | da7fee48c5ef94278f0047be0579e2f13492cdd5 | [
"MIT"
] | 116 | 2018-02-23T19:47:15.000Z | 2022-02-21T04:43:46.000Z | tests/greedy/test_oblate_system.py | rodluger/starry | da7fee48c5ef94278f0047be0579e2f13492cdd5 | [
"MIT"
] | 224 | 2018-02-26T00:41:51.000Z | 2022-03-29T10:38:16.000Z | tests/greedy/test_oblate_system.py | rodluger/starry | da7fee48c5ef94278f0047be0579e2f13492cdd5 | [
"MIT"
] | 25 | 2018-02-26T18:14:36.000Z | 2021-11-30T01:00:56.000Z | import starry
import numpy as np
import matplotlib.pyplot as plt
import pytest
| 26.914286 | 78 | 0.604034 |
213758f6e40b22edcd53c6d74547322178a746bc | 378 | py | Python | spammer.py | Traftmine/SPAMMER | 1d9b975d78546cc55976aff169caff410f5ef74a | [
"MIT"
] | null | null | null | spammer.py | Traftmine/SPAMMER | 1d9b975d78546cc55976aff169caff410f5ef74a | [
"MIT"
] | null | null | null | spammer.py | Traftmine/SPAMMER | 1d9b975d78546cc55976aff169caff410f5ef74a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 15 19:41:48 2021
@author: Traftmine
"""
import time
import pyautogui
START = time.time()
time.sleep(5)
SCRIPT = open("beescript.txt", 'r')
for word in SCRIPT:
pyautogui.typewrite(word)
pyautogui.press("enter")
SCRIPT.close()
END = time.time()
pri... | 19.894737 | 60 | 0.640212 |
213c6a678c515a0116b76bfafad41525918bca72 | 1,408 | py | Python | src/interface.py | team-crescendo/3rd-anniversary-bot | edf9f819cac781e8f6d6b12cd3902b2fb0b666ce | [
"MIT"
] | 5 | 2021-02-20T04:10:13.000Z | 2021-07-31T16:54:13.000Z | src/interface.py | team-crescendo/3rd-anniversary-bot | edf9f819cac781e8f6d6b12cd3902b2fb0b666ce | [
"MIT"
] | null | null | null | src/interface.py | team-crescendo/3rd-anniversary-bot | edf9f819cac781e8f6d6b12cd3902b2fb0b666ce | [
"MIT"
] | null | null | null | import asyncio
from typing import List
import discord
from discord.ext import commands
| 27.076923 | 88 | 0.649148 |
213e1a7b560720288d3f4be6cc46d4f9de5f1850 | 863 | py | Python | backend/home/migrations/0003_auto_20220225_1628.py | crowdbotics-apps/myclub-33848 | 3f02f80851419194beb68f6b0caf7630ff10593f | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/home/migrations/0003_auto_20220225_1628.py | crowdbotics-apps/myclub-33848 | 3f02f80851419194beb68f6b0caf7630ff10593f | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/home/migrations/0003_auto_20220225_1628.py | crowdbotics-apps/myclub-33848 | 3f02f80851419194beb68f6b0caf7630ff10593f | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | # Generated by Django 2.2.26 on 2022-02-25 16:28
from django.db import migrations, models
| 25.382353 | 57 | 0.453071 |
213fe410dc708c64e9b46a2d208e12a8faedbe74 | 147 | py | Python | GoogleColab/InteligenciaAnalitica/Ex5/downloadbase.py | AlexandroLuis/ComputerScience | 273c3f6797737d98ffdf00ae870ceafa3aba59d1 | [
"MIT"
] | 2 | 2021-02-06T21:48:24.000Z | 2022-03-21T00:16:17.000Z | GoogleColab/InteligenciaAnalitica/Ex5/downloadbase.py | AlexandroLuis/ComputerScience | 273c3f6797737d98ffdf00ae870ceafa3aba59d1 | [
"MIT"
] | null | null | null | GoogleColab/InteligenciaAnalitica/Ex5/downloadbase.py | AlexandroLuis/ComputerScience | 273c3f6797737d98ffdf00ae870ceafa3aba59d1 | [
"MIT"
] | 1 | 2022-02-10T20:59:23.000Z | 2022-02-10T20:59:23.000Z | # https://www.kaggle.com/datatattle/covid-19-nlp-text-classification
!gdown --id 1Hd0ytKZrR3s22FheUJt4EZOpZ4eWyTrN
!unzip tweets_corona_virus.zip
| 29.4 | 68 | 0.829932 |
2141e05e239a3d0a817c4f902da2501ec904a169 | 3,290 | py | Python | torchpq/transform/PCA.py | mhamilton723/TorchPQ | f3d560ec04d9c741943fa930a1257c9be9445cbe | [
"MIT"
] | 103 | 2021-02-10T18:01:56.000Z | 2022-03-30T21:35:05.000Z | torchpq/transform/PCA.py | mhamilton723/TorchPQ | f3d560ec04d9c741943fa930a1257c9be9445cbe | [
"MIT"
] | 9 | 2021-05-28T14:52:33.000Z | 2022-03-03T13:09:25.000Z | torchpq/transform/PCA.py | mhamilton723/TorchPQ | f3d560ec04d9c741943fa930a1257c9be9445cbe | [
"MIT"
] | 10 | 2021-04-24T04:25:24.000Z | 2022-02-24T07:30:42.000Z | import torch
import numpy as np
from ..CustomModule import CustomModule | 32.9 | 105 | 0.631307 |
2141f6c2a5e3c6a13b0c1c52ce5659bb5340d088 | 1,129 | py | Python | Written test problems/mi2.py | maiwen/Target-Offer | 256e6e2defd93c5d2838ee2d64ebc7739f542318 | [
"MIT"
] | null | null | null | Written test problems/mi2.py | maiwen/Target-Offer | 256e6e2defd93c5d2838ee2d64ebc7739f542318 | [
"MIT"
] | null | null | null | Written test problems/mi2.py | maiwen/Target-Offer | 256e6e2defd93c5d2838ee2d64ebc7739f542318 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 20 20:17:52 2018
@author: Administrator
C/C++ 1000MS 3000MS
C/C++ 65536KB 589824KB
nA1A2 Annm m
nm(n <= 10000, m <= 10000, m <= n)
nA1A2 An (Ai <= 10000)
5 3
1 4 2 3 5
5
Hint
1 4 | 2 3 | 5 35
"""
n, m = map(int,input()... | 20.160714 | 91 | 0.495128 |
2142b80614595ab18852d993af6b0a6d8357433f | 208 | py | Python | Test3/Pandas.py | leejw51/BumblebeeNet | fd9bedbfaad9bb94bcb4f1dc44eec8125bb9c690 | [
"MIT"
] | null | null | null | Test3/Pandas.py | leejw51/BumblebeeNet | fd9bedbfaad9bb94bcb4f1dc44eec8125bb9c690 | [
"MIT"
] | null | null | null | Test3/Pandas.py | leejw51/BumblebeeNet | fd9bedbfaad9bb94bcb4f1dc44eec8125bb9c690 | [
"MIT"
] | null | null | null | import pandas as pd
data = {'name':['john', 'anna', 'peter', 'linda'],
'location': [ 'new york', 'paris', 'berlin', 'london'],
'age': [24, 13, 53, 33]}
data_pandas = pd.DataFrame(data)
print(data_pandas)
| 29.714286 | 57 | 0.610577 |
21438f5d89045c2d0df6696f5e05b0ab56153e8c | 123 | py | Python | organizer/admin.py | siddeshlc8/Software-Engineering-Project | f1b5c1ef029d1126b6446b53755b9c91b095d4a1 | [
"MIT"
] | 4 | 2021-01-11T09:10:49.000Z | 2022-03-20T09:39:41.000Z | organizer/admin.py | siddeshlc8/Software_Engineering_Project | f1b5c1ef029d1126b6446b53755b9c91b095d4a1 | [
"MIT"
] | 6 | 2020-06-05T22:33:29.000Z | 2022-01-13T01:33:17.000Z | organizer/admin.py | siddeshlc8/Software_Engineering_Project | f1b5c1ef029d1126b6446b53755b9c91b095d4a1 | [
"MIT"
] | 1 | 2018-09-10T07:44:56.000Z | 2018-09-10T07:44:56.000Z | from django.contrib import admin
# Register your models here.
from .models import Organizer
admin.site.register(Organizer) | 24.6 | 32 | 0.821138 |
214411710e8567c4e5cffb0ed9a4ae6ad5adf983 | 5,830 | py | Python | pyts/multivariate/transformation/multivariate.py | jmrichardson/pyts | b48cf2d6f50ee91b75c7340544eb906783132e1b | [
"BSD-3-Clause"
] | 1 | 2021-05-06T06:48:36.000Z | 2021-05-06T06:48:36.000Z | pyts/multivariate/transformation/multivariate.py | jmrichardson/pyts | b48cf2d6f50ee91b75c7340544eb906783132e1b | [
"BSD-3-Clause"
] | null | null | null | pyts/multivariate/transformation/multivariate.py | jmrichardson/pyts | b48cf2d6f50ee91b75c7340544eb906783132e1b | [
"BSD-3-Clause"
] | null | null | null | """Utility class for multivariate time series transformation."""
# Author: Johann Faouzi <johann.faouzi@gmail.com>
# License: BSD-3-Clause
import numpy as np
from scipy.sparse import csr_matrix, hstack
from sklearn.base import BaseEstimator, TransformerMixin, clone
from sklearn.utils.validation import check_is_fitted... | 36.666667 | 78 | 0.58199 |
21494c69ffef8b679fa92b163bcdf892d0556e01 | 466 | py | Python | application/__init__.py | thec0sm0s/Quick-Notes | 09940a1dc7780b16fadb1e43d7734b101dd989de | [
"MIT"
] | 1 | 2020-10-18T02:34:26.000Z | 2020-10-18T02:34:26.000Z | application/__init__.py | thec0sm0s/Quick-Notes | 09940a1dc7780b16fadb1e43d7734b101dd989de | [
"MIT"
] | 8 | 2020-09-28T10:01:31.000Z | 2020-10-12T04:51:25.000Z | application/__init__.py | thec0sm0s/cosnote | 09940a1dc7780b16fadb1e43d7734b101dd989de | [
"MIT"
] | 4 | 2020-09-28T11:47:27.000Z | 2020-10-12T06:54:06.000Z | from flask import Flask
from flask_cors import CORS
from flask_bcrypt import Bcrypt
bcrypt = Bcrypt()
| 20.26087 | 85 | 0.729614 |
214b43a990400499b8350ae43eeb230c5ca18816 | 612 | py | Python | src/bgfactory/components/pango_helpers.py | avolny/board-game-factory | bb9e08c970465aa56ef13de64564be76b9c9c355 | [
"MIT"
] | 5 | 2021-11-12T14:23:44.000Z | 2021-12-29T22:33:12.000Z | src/bgfactory/components/pango_helpers.py | avolny/board-game-factory | bb9e08c970465aa56ef13de64564be76b9c9c355 | [
"MIT"
] | null | null | null | src/bgfactory/components/pango_helpers.py | avolny/board-game-factory | bb9e08c970465aa56ef13de64564be76b9c9c355 | [
"MIT"
] | null | null | null | from bgfactory.components.constants import HALIGN_LEFT, HALIGN_CENTER, HALIGN_RIGHT
import pangocffi as pango
PANGO_SCALE = 1024
| 30.6 | 102 | 0.72549 |
214dadec662fb38acdc0deacef6867d63bff248c | 153 | py | Python | electrum_gui/common/provider/chains/bch/__init__.py | BixinKey/electrum | f5de4e74e313b9b569f13ba6ab9142a38bf095f2 | [
"MIT"
] | 12 | 2020-11-12T08:53:05.000Z | 2021-07-06T17:30:39.000Z | electrum_gui/common/provider/chains/bch/__init__.py | BixinKey/electrum | f5de4e74e313b9b569f13ba6ab9142a38bf095f2 | [
"MIT"
] | 209 | 2020-09-23T06:58:18.000Z | 2021-11-18T11:25:41.000Z | electrum_gui/common/provider/chains/bch/__init__.py | taimanhui/electrum | f5de4e74e313b9b569f13ba6ab9142a38bf095f2 | [
"MIT"
] | 19 | 2020-10-13T11:42:26.000Z | 2022-02-06T01:26:34.000Z | from electrum_gui.common.provider.chains.bch.provider import BCHProvider
from electrum_gui.common.provider.chains.btc.clients.blockbook import BlockBook
| 51 | 79 | 0.875817 |
214dde7dad12af45c9eb455e041a1f05ffd86439 | 4,828 | py | Python | modules/SenseHatDisplay/app/DisplayManager.py | J0F3/FaceOff | 528baf85980973eab68c1971d91c7da6aeaeb2da | [
"MIT"
] | null | null | null | modules/SenseHatDisplay/app/DisplayManager.py | J0F3/FaceOff | 528baf85980973eab68c1971d91c7da6aeaeb2da | [
"MIT"
] | null | null | null | modules/SenseHatDisplay/app/DisplayManager.py | J0F3/FaceOff | 528baf85980973eab68c1971d91c7da6aeaeb2da | [
"MIT"
] | null | null | null | import sense_hat
from sense_hat import SenseHat
import time
from enum import Enum
from datetime import datetime
import json
| 28.738095 | 93 | 0.438898 |
214eeb08d7ebb14824b7046fdeb2729b461abd78 | 15,794 | py | Python | tbcnn/tbcnn.py | Aetf/tensorflow-tbcnn | 798661c1a6b99fb3db369654cf61356ffa4a2cea | [
"MIT"
] | 34 | 2017-04-17T00:34:07.000Z | 2021-11-03T07:43:02.000Z | tbcnn/tbcnn.py | Aetf/tensorflow-tbcnn | 798661c1a6b99fb3db369654cf61356ffa4a2cea | [
"MIT"
] | 4 | 2018-04-01T13:17:55.000Z | 2020-08-01T19:17:31.000Z | tbcnn/tbcnn.py | Aetf/tensorflow-tbcnn | 798661c1a6b99fb3db369654cf61356ffa4a2cea | [
"MIT"
] | 6 | 2017-11-22T07:20:31.000Z | 2021-11-02T17:06:38.000Z | from __future__ import absolute_import, division, print_function
import os
import logging
from timeit import default_timer
import numpy as np
import tensorflow as tf
import tensorflow_fold as td
from . import apputil
from . import data
from . import embedding
from .config import hyper, param
logger = logging.getLog... | 39.386534 | 105 | 0.623085 |
214f2ec300760693fa82e2623b1dc7f4178aa9d5 | 1,112 | py | Python | core/lib/constant.py | UsterNes/OnlineSchemaChange | 88f153587348318277eee904e6aa4f289d055ff6 | [
"BSD-3-Clause"
] | null | null | null | core/lib/constant.py | UsterNes/OnlineSchemaChange | 88f153587348318277eee904e6aa4f289d055ff6 | [
"BSD-3-Clause"
] | null | null | null | core/lib/constant.py | UsterNes/OnlineSchemaChange | 88f153587348318277eee904e6aa4f289d055ff6 | [
"BSD-3-Clause"
] | 1 | 2018-10-17T20:13:56.000Z | 2018-10-17T20:13:56.000Z | """
Copyright (c) 2017-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
"""
from __future__ import abs... | 28.512821 | 75 | 0.81295 |
214f32a72bdd66cce58de4c90cf81748ebf9c20e | 23,679 | py | Python | panel_view.py | kylebebak/SublimeLinter | 2e72370d80ab02f3fa5d2f079b1d60cf2341f1c4 | [
"MIT"
] | null | null | null | panel_view.py | kylebebak/SublimeLinter | 2e72370d80ab02f3fa5d2f079b1d60cf2341f1c4 | [
"MIT"
] | null | null | null | panel_view.py | kylebebak/SublimeLinter | 2e72370d80ab02f3fa5d2f079b1d60cf2341f1c4 | [
"MIT"
] | null | null | null | from functools import partial
from itertools import chain
import os
import sublime
import sublime_plugin
import textwrap
from .lint import elect, events, persist, util
if False:
from typing import (
Any, Dict, Iterable, List, Optional, Set, Tuple,
Union
)
from mypy_extensions import Typed... | 30.912533 | 85 | 0.627983 |
214fe1a35139656f959cd6e189d3de536c77d6da | 3,667 | py | Python | core/numpy_dataset.py | paulviallard/NeurIPS21-PB-Robustness | ff26f43d5bac7d2a4bb28632fb2533ca766cbeea | [
"MIT"
] | null | null | null | core/numpy_dataset.py | paulviallard/NeurIPS21-PB-Robustness | ff26f43d5bac7d2a4bb28632fb2533ca766cbeea | [
"MIT"
] | null | null | null | core/numpy_dataset.py | paulviallard/NeurIPS21-PB-Robustness | ff26f43d5bac7d2a4bb28632fb2533ca766cbeea | [
"MIT"
] | null | null | null | # Author: Paul VIALLARD
#
# This file is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
# Note: The source code of this file is based on [1]
from re import sub
from torch.utils.data import Dataset
import torch
import numpy as np
import copy
########################... | 25.116438 | 79 | 0.531497 |
215079a9c7eadfd3e8a78a41c34289c25ac04f75 | 5,403 | py | Python | tests/test_datetime.py | mamh-mixed/loguru | 22396695b9d8be9a46eca371279df7c427b27f61 | [
"MIT"
] | null | null | null | tests/test_datetime.py | mamh-mixed/loguru | 22396695b9d8be9a46eca371279df7c427b27f61 | [
"MIT"
] | null | null | null | tests/test_datetime.py | mamh-mixed/loguru | 22396695b9d8be9a46eca371279df7c427b27f61 | [
"MIT"
] | null | null | null | import datetime
import re
import sys
import freezegun
import pytest
from loguru import logger
if sys.version_info < (3, 6):
UTC_NAME = "UTC+00:00"
else:
UTC_NAME = "UTC"
| 34.634615 | 95 | 0.489728 |
21509b83f348b705a2637dddb5a2a5098d3a6cea | 4,214 | py | Python | utilities.py | ayush14029/go | 0820b7cf13e97d062cac45dd0172f670dc7799de | [
"BSD-3-Clause"
] | 2 | 2019-10-17T06:04:54.000Z | 2019-11-18T10:47:45.000Z | utilities.py | ayush14029/go | 0820b7cf13e97d062cac45dd0172f670dc7799de | [
"BSD-3-Clause"
] | null | null | null | utilities.py | ayush14029/go | 0820b7cf13e97d062cac45dd0172f670dc7799de | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error
from sklearn.linear_model import LogisticRegression
import pdb
from sklearn.metrics import *
import matplotlib.pyplot as plt
from sklearn import preprocessing
from sklearn.preproces... | 33.181102 | 134 | 0.68225 |
215244ed6e5594018cc3b5cbb4d45bd70abf6090 | 115 | py | Python | CodeForces/football.py | Snehakri022/Competitive-Programming-Solutions | 62a2cbb2d71a040d81e3e71ad6353a86007b8cb7 | [
"MIT"
] | 40 | 2020-07-25T19:35:37.000Z | 2022-01-28T02:57:02.000Z | CodeForces/football.py | Snehakri022/Competitive-Programming-Solutions | 62a2cbb2d71a040d81e3e71ad6353a86007b8cb7 | [
"MIT"
] | 34 | 2020-10-10T17:59:46.000Z | 2021-10-05T18:29:25.000Z | CodeForces/football.py | Snehakri022/Competitive-Programming-Solutions | 62a2cbb2d71a040d81e3e71ad6353a86007b8cb7 | [
"MIT"
] | 24 | 2020-05-03T08:11:53.000Z | 2021-10-04T03:23:20.000Z | n = str(input())
if("0000000" in n):
print("YES")
elif("1111111" in n):
print("YES")
else:
print("NO")
| 14.375 | 21 | 0.53913 |
2152c74dc0a00c6222ed057844e98eb53a007cd2 | 1,925 | py | Python | gt-custom-keypoint/server/processing/sagemaker-gt-postprocess.py | tyohei/amazon-sagemaker-examples-jp | 570498c631241685d6d874139c99b1fcbcb284e7 | [
"Apache-2.0"
] | null | null | null | gt-custom-keypoint/server/processing/sagemaker-gt-postprocess.py | tyohei/amazon-sagemaker-examples-jp | 570498c631241685d6d874139c99b1fcbcb284e7 | [
"Apache-2.0"
] | null | null | null | gt-custom-keypoint/server/processing/sagemaker-gt-postprocess.py | tyohei/amazon-sagemaker-examples-jp | 570498c631241685d6d874139c99b1fcbcb284e7 | [
"Apache-2.0"
] | 1 | 2022-03-22T03:57:46.000Z | 2022-03-22T03:57:46.000Z | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | 33.77193 | 79 | 0.617662 |
215615a55a46e53c880939d9e05faa78a8938ef1 | 7,164 | py | Python | mi/dataset/parser/test/test_sio_eng_sio.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | 1 | 2015-05-10T01:08:44.000Z | 2015-05-10T01:08:44.000Z | mi/dataset/parser/test/test_sio_eng_sio.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | null | null | null | mi/dataset/parser/test/test_sio_eng_sio.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | 9 | 2015-04-15T21:09:08.000Z | 2019-11-15T03:18:53.000Z | #!/usr/bin/env python
"""
@package mi.dataset.parser.test.test_sio_eng_sio_mule
@file marine-integrations/mi/dataset/parser/test/test_sio_eng_sio_mule.py
@author Mike Nicoletti
@brief Test code for a sio_eng_sio_mule data parser
"""
from nose.plugins.attrib import attr
import os
from mi.core.exceptions import Sample... | 39.8 | 112 | 0.679648 |
2156a46abb00ae071d32962ecc8069123005c1b9 | 7,015 | py | Python | pybaselines/utils.py | abdelq/pybaselines | 043aa7875efe1ca01c3e8e9ae7c57a67274aff06 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pybaselines/utils.py | abdelq/pybaselines | 043aa7875efe1ca01c3e8e9ae7c57a67274aff06 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pybaselines/utils.py | abdelq/pybaselines | 043aa7875efe1ca01c3e8e9ae7c57a67274aff06 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Helper functions for pybaselines.
Created on March 5, 2021
@author: Donald Erb
"""
import numpy as np
# the minimum positive float values such that a + _MIN_FLOAT != a
_MIN_FLOAT = np.finfo(float).eps
def relative_difference(old, new, norm_order=None):
"""
Calculates the relati... | 30.237069 | 92 | 0.64077 |
2156a6f88e45f7d5139324715ed005d9901cb302 | 2,482 | py | Python | ants/color_subprocess.py | threexc/SiGPyC | 81bdf2b691c601e266b2ea0249ad0bad074a567a | [
"MIT"
] | 4 | 2019-03-08T07:13:33.000Z | 2020-05-27T13:58:50.000Z | ants/color_subprocess.py | threexc/SiGPyC | 81bdf2b691c601e266b2ea0249ad0bad074a567a | [
"MIT"
] | 47 | 2018-10-16T01:28:34.000Z | 2019-03-26T03:15:36.000Z | ants/color_subprocess.py | threexc/SiGPyC | 81bdf2b691c601e266b2ea0249ad0bad074a567a | [
"MIT"
] | 1 | 2019-06-24T18:50:48.000Z | 2019-06-24T18:50:48.000Z | import sys
import os
import subprocess
import time
import threading
if __name__ == '__main__':
command = "ping www.heise.de -c 5".split(" ")
ping_process = subprocess.Popen(command, stdout=subprocess.PIPE)
stdout_reader = PrefixStdoutPipe(process.stdout, "ping: ", colors.fg.red)
stdout_reader.start()
... | 24.82 | 137 | 0.591056 |
2156d626cca5172c098911f8f87121b702a8db66 | 1,455 | py | Python | api/routes/user_router.py | cgiroux86/TeamInterview | c59285479298f84543f80bb9f00a01bc4cef3eb1 | [
"MIT"
] | 1 | 2020-08-31T16:19:11.000Z | 2020-08-31T16:19:11.000Z | api/routes/user_router.py | cgiroux86/TeamInterview | c59285479298f84543f80bb9f00a01bc4cef3eb1 | [
"MIT"
] | null | null | null | api/routes/user_router.py | cgiroux86/TeamInterview | c59285479298f84543f80bb9f00a01bc4cef3eb1 | [
"MIT"
] | null | null | null | from flask import Blueprint, request, jsonify
from api.models.user_model import User, UserPasswords, db
from flask_bcrypt import Bcrypt
user_bp = Blueprint('user_bp', __name__)
| 26.944444 | 79 | 0.586942 |
21576ca913a2e8ef3710dd05fb4bd6133094790a | 126 | py | Python | image/apps.py | DaleProctor/tscharts | 5447395e0aef0b949bef8426febdec2093cf37ef | [
"Apache-2.0"
] | 16 | 2016-08-17T21:39:10.000Z | 2021-11-24T12:14:28.000Z | image/apps.py | DaleProctor/tscharts | 5447395e0aef0b949bef8426febdec2093cf37ef | [
"Apache-2.0"
] | 55 | 2017-04-23T18:12:04.000Z | 2021-08-08T08:25:18.000Z | image/apps.py | DaleProctor/tscharts | 5447395e0aef0b949bef8426febdec2093cf37ef | [
"Apache-2.0"
] | 8 | 2017-08-11T02:11:46.000Z | 2021-07-06T22:58:42.000Z | from __future__ import unicode_literals
from django.apps import AppConfig
| 15.75 | 39 | 0.785714 |
2157f3814f7d8209f817a39c3187e97678374518 | 829 | py | Python | pysatSeasons/__init__.py | pysat/pysatSeasons | b6f8b51908c6ac882bd3e04d7b378aea7e9a29e0 | [
"BSD-3-Clause"
] | 1 | 2022-01-20T16:54:14.000Z | 2022-01-20T16:54:14.000Z | pysatSeasons/__init__.py | pysat/pysatSeasons | b6f8b51908c6ac882bd3e04d7b378aea7e9a29e0 | [
"BSD-3-Clause"
] | 20 | 2019-09-18T18:36:17.000Z | 2022-03-25T15:20:45.000Z | pysatSeasons/__init__.py | pysat/pysatSeasons | b6f8b51908c6ac882bd3e04d7b378aea7e9a29e0 | [
"BSD-3-Clause"
] | 1 | 2021-08-19T21:23:25.000Z | 2021-08-19T21:23:25.000Z | """
pysatSeasons is a pysat module that provides
the interface to perform seasonal analysis on
data managed by pysat. These analysis methods
are independent of instrument type.
Main Features
-------------
- Seasonal averaging routine for 1D and 2D data.
- Occurrence probability routines, daily or by orbit.
- Scatterp... | 29.607143 | 63 | 0.758745 |
21580e11b7b3c340d5a15b0afb7ec4fba7b381f0 | 2,033 | py | Python | ATTACKS/python-botnet/Client.py | sofiafernandezmoreno/tfm_ddos_demo | 37250cfb759053c70f0736d1712aac3c7fcfb84f | [
"MIT"
] | 3 | 2020-07-23T16:35:45.000Z | 2020-07-27T07:22:56.000Z | ATTACKS/python-botnet/Client.py | sofiafernandezmoreno/tfm_ddos_demo | 37250cfb759053c70f0736d1712aac3c7fcfb84f | [
"MIT"
] | 17 | 2020-07-28T05:46:24.000Z | 2022-01-13T15:31:15.000Z | ATTACKS/python-botnet/Client.py | sofiafernandezmoreno/tfm_ddos_demo | 37250cfb759053c70f0736d1712aac3c7fcfb84f | [
"MIT"
] | 1 | 2020-07-28T05:54:18.000Z | 2020-07-28T05:54:18.000Z | import subprocess
import threading
import time
import socket
import os, sys, random
while True:
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = '127.0.0.1'
port = 9998
s.connect((host, port))
while True:
global run
data =... | 33.883333 | 69 | 0.434825 |
21592f645f3fb1e73877f1f9296f16cd49e80115 | 26,629 | py | Python | neml/axisym.py | ajey091/neml | 23dd2cdb83057fdd17a37fa19f4592c54f821dbf | [
"MIT"
] | 6 | 2020-05-06T17:04:29.000Z | 2021-08-03T20:02:22.000Z | neml/axisym.py | ajey091/neml | 23dd2cdb83057fdd17a37fa19f4592c54f821dbf | [
"MIT"
] | 66 | 2018-10-26T01:32:43.000Z | 2022-02-01T03:02:18.000Z | neml/axisym.py | ajey091/neml | 23dd2cdb83057fdd17a37fa19f4592c54f821dbf | [
"MIT"
] | 14 | 2018-11-28T17:07:24.000Z | 2022-01-06T16:57:15.000Z | import numpy as np
import numpy.linalg as la
import scipy.linalg as sla
import scipy.linalg.lapack as lapack
from numpy.polynomial.legendre import leggauss as lgg
import scipy.optimize as opt
from neml import arbbar
from neml.math import nemlmath
from functools import partial
def generate_thickness_gradient(ri, ro, ... | 33.411543 | 126 | 0.5841 |
21593dd0c8f9b6bdb9136ba4fe0c6eb23a67adb7 | 5,184 | py | Python | helper.py | jayanthv86/okta_oauth | e9be796a2ecf2187c971804d9860cccf9b40d5d5 | [
"Apache-2.0"
] | null | null | null | helper.py | jayanthv86/okta_oauth | e9be796a2ecf2187c971804d9860cccf9b40d5d5 | [
"Apache-2.0"
] | null | null | null | helper.py | jayanthv86/okta_oauth | e9be796a2ecf2187c971804d9860cccf9b40d5d5 | [
"Apache-2.0"
] | null | null | null | from functools import wraps
from base64 import b64encode
from jose import jwt
from flask import Flask, jsonify, request, _app_ctx_stack, json
import requests
ALGORITHMS = ["RS256"]
SCOPES = 'username' # Custom scopes that you want to pass as part of the request when requesting access token
AUTH_SERVER_ID = 'YOUR_OKTA_... | 39.572519 | 145 | 0.574846 |
215aad09216d33e48ee72eef419bf4b1dbea80ce | 1,383 | py | Python | Ch10/test/singly_circular_list_dictionary_test.py | Ryuichi-Sasaki/CLRS | 3ae6f2c9554d2dffff0ea8f6f6e162fcdcf8f7e9 | [
"MIT"
] | null | null | null | Ch10/test/singly_circular_list_dictionary_test.py | Ryuichi-Sasaki/CLRS | 3ae6f2c9554d2dffff0ea8f6f6e162fcdcf8f7e9 | [
"MIT"
] | null | null | null | Ch10/test/singly_circular_list_dictionary_test.py | Ryuichi-Sasaki/CLRS | 3ae6f2c9554d2dffff0ea8f6f6e162fcdcf8f7e9 | [
"MIT"
] | null | null | null | import unittest
import sys
sys.path.append("../src/")
from singly_circular_list_dictionary import SinglyLinkedDictionary
from singly_circular_list_dictionary import Item
if __name__ == "__main__":
unittest.main() | 26.09434 | 66 | 0.595083 |
215b643496a981463dbb6c2efc37c1fc0cfbec6d | 132,394 | py | Python | pywikibot/page.py | shizhao/pywikibot-core | 8441a1cd0e8dd5d3701f1c5e26077e40a40937ee | [
"MIT"
] | null | null | null | pywikibot/page.py | shizhao/pywikibot-core | 8441a1cd0e8dd5d3701f1c5e26077e40a40937ee | [
"MIT"
] | null | null | null | pywikibot/page.py | shizhao/pywikibot-core | 8441a1cd0e8dd5d3701f1c5e26077e40a40937ee | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Objects representing various types of MediaWiki pages.
"""
#
# (C) Pywikipedia bot team, 2008-2013
#
# Distributed under the terms of the MIT license.
#
__version__ = '$Id: 215b643496a981463dbb6c2efc37c1fc0cfbec6d $'
import pywikibot
from pywikibot import deprecate_arg
from pywikibot impor... | 39.865703 | 139 | 0.564376 |
215cd5bf7186cb7862f31ba8192f08a8d22a420f | 36 | py | Python | scratch.py | stevoWinke1/python | 70649dd2a3801584af1394b0a68e6f1befa39ef2 | [
"MIT"
] | null | null | null | scratch.py | stevoWinke1/python | 70649dd2a3801584af1394b0a68e6f1befa39ef2 | [
"MIT"
] | null | null | null | scratch.py | stevoWinke1/python | 70649dd2a3801584af1394b0a68e6f1befa39ef2 | [
"MIT"
] | 9 | 2016-10-14T15:22:31.000Z | 2016-10-14T15:50:47.000Z |
list = ['a','b','c']
print(list)
| 6 | 20 | 0.444444 |
215ce8afda1e2319b0046be91c38693bb6794dde | 4,065 | py | Python | src/human_play.py | rajko-z/nine-mans-morris-python | 2ffa20b9baf4d2aed985552d03910ace299a121e | [
"MIT"
] | 1 | 2021-04-14T17:31:03.000Z | 2021-04-14T17:31:03.000Z | src/human_play.py | rajko-z/nine-mans-morris-python | 2ffa20b9baf4d2aed985552d03910ace299a121e | [
"MIT"
] | null | null | null | src/human_play.py | rajko-z/nine-mans-morris-python | 2ffa20b9baf4d2aed985552d03910ace299a121e | [
"MIT"
] | null | null | null | from copy import deepcopy
import heuristic_state_functions as h
import global_config as g
import pretty_print as pp
from state import State
import main
| 23.362069 | 110 | 0.682657 |
215ddbe5f26e8bb8a19212d071a47be6b9e84f1f | 552 | py | Python | Practise/Python/Collections/collections.Counter().py | FurkhanShaikh/HackerRank-My-Solutions | 3498d15f5cb218200d9f0548cfe938a0aaab9b27 | [
"MIT"
] | null | null | null | Practise/Python/Collections/collections.Counter().py | FurkhanShaikh/HackerRank-My-Solutions | 3498d15f5cb218200d9f0548cfe938a0aaab9b27 | [
"MIT"
] | null | null | null | Practise/Python/Collections/collections.Counter().py | FurkhanShaikh/HackerRank-My-Solutions | 3498d15f5cb218200d9f0548cfe938a0aaab9b27 | [
"MIT"
] | null | null | null | #problem link : https://www.hackerrank.com/challenges/collections-counter/problem
# Enter your code here. Read input from STDIN. Print output to STDOUT
from collections import Counter
X = int(raw_input())
sizes = map(int,raw_input().split())
cust = int(raw_input())
desired =[]
for i in range(cust):
temp = map(int,... | 26.285714 | 81 | 0.666667 |