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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7f3143b48ee084919d22e8532883574dc131cbba | 4,374 | py | Python | robovat/io/hdf5_utils.py | leobxpan/robovat | 0d360c34c677cf018c4daab0b8e758943ae1d2c1 | [
"MIT"
] | 62 | 2020-04-08T11:26:24.000Z | 2021-09-06T02:45:53.000Z | robovat/io/hdf5_utils.py | leobxpan/robovat | 0d360c34c677cf018c4daab0b8e758943ae1d2c1 | [
"MIT"
] | 7 | 2020-04-12T13:10:10.000Z | 2022-03-12T00:15:03.000Z | robovat/io/hdf5_utils.py | leobxpan/robovat | 0d360c34c677cf018c4daab0b8e758943ae1d2c1 | [
"MIT"
] | 17 | 2020-04-12T17:37:01.000Z | 2021-09-07T01:51:46.000Z | """File IO utilities using HDF5.
The data element saved in HDF5 should be a dictionary. The types of each value
should be in HDF5_DATA_TYPES.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import h5py
import numpy as np
import uuid
import traceback
d... | 30.587413 | 79 | 0.518747 |
7f33ed65f4ac4089a0724c48004c99fbc453b64f | 344 | py | Python | tests/python/test_sparse_basics.py | ericjang/taichi | 0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2 | [
"MIT"
] | null | null | null | tests/python/test_sparse_basics.py | ericjang/taichi | 0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2 | [
"MIT"
] | null | null | null | tests/python/test_sparse_basics.py | ericjang/taichi | 0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2 | [
"MIT"
] | null | null | null | import taichi as ti
| 14.333333 | 62 | 0.572674 |
7f34018b23497a72c128d5bbb73251d18c61b077 | 2,752 | py | Python | idea.py | szandala/autoencoder | 3e9e41fa3f0f69a9e12acfa661e0de05bf190aeb | [
"MIT"
] | null | null | null | idea.py | szandala/autoencoder | 3e9e41fa3f0f69a9e12acfa661e0de05bf190aeb | [
"MIT"
] | null | null | null | idea.py | szandala/autoencoder | 3e9e41fa3f0f69a9e12acfa661e0de05bf190aeb | [
"MIT"
] | null | null | null | from keras.models import Sequential
from keras.layers import Dense, Conv2D, Flatten, MaxPooling2D
from sklearn.neighbors import NearestNeighbors
from keras.datasets import cifar10
import numpy as np
from keras import backend as K
################################################################
# input image dimension... | 28.371134 | 93 | 0.65189 |
7f343eb3682ac8f3b2f2549023501deaa06faf0e | 2,291 | py | Python | setup.py | copernicusmarine/cmemsapi | b2b2f8e9c80d989fe1aa1374d8174a30c819847e | [
"MIT"
] | null | null | null | setup.py | copernicusmarine/cmemsapi | b2b2f8e9c80d989fe1aa1374d8174a30c819847e | [
"MIT"
] | null | null | null | setup.py | copernicusmarine/cmemsapi | b2b2f8e9c80d989fe1aa1374d8174a30c819847e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2020 E.U. Copernicus Marine Service Information
import sys
from pathlib import Path # noqa E402
from setuptools import find_packages, setup
assert sys.version_info >= (3, 6, 0), "cmtb requires Python 3.6+"
CURRENT_DIR = Path(__file__).parent
sys.path.in... | 33.202899 | 139 | 0.67787 |
7f34aa81b3070681377031f89c73e262ce096a91 | 1,520 | py | Python | application/services/tag_service.py | Praveen-0208/developer-cheatsheet | 0fe494c2b01e320891c4048172569eacd15c73a4 | [
"Apache-2.0"
] | null | null | null | application/services/tag_service.py | Praveen-0208/developer-cheatsheet | 0fe494c2b01e320891c4048172569eacd15c73a4 | [
"Apache-2.0"
] | null | null | null | application/services/tag_service.py | Praveen-0208/developer-cheatsheet | 0fe494c2b01e320891c4048172569eacd15c73a4 | [
"Apache-2.0"
] | null | null | null | from application.models.Tag import Tag
from application.app import db
from flask import jsonify
import traceback | 38 | 171 | 0.709868 |
7f3641e14ab8c811d8f476458187baa315cf5ceb | 207 | py | Python | otx_weblink/serializers.py | NYULibraries/dlts-enm-tct-backend | 07455a660fb2cb8bc91a54f7f12d150923678157 | [
"Apache-2.0"
] | null | null | null | otx_weblink/serializers.py | NYULibraries/dlts-enm-tct-backend | 07455a660fb2cb8bc91a54f7f12d150923678157 | [
"Apache-2.0"
] | 2 | 2017-10-30T21:19:07.000Z | 2017-10-31T18:06:30.000Z | otx_weblink/serializers.py | NYULibraries/dlts-enm-tct-backend | 07455a660fb2cb8bc91a54f7f12d150923678157 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from .models import Weblink
| 20.7 | 53 | 0.700483 |
7f38e58a4f42e68862f6e882856a02eb76e3e7d3 | 479 | py | Python | fopp/Chapter 12. Functions/num_test.py | H2u-Hwng/EVC | c650fe7356a333011514cf9025dfd97bf71b1de3 | [
"MIT"
] | null | null | null | fopp/Chapter 12. Functions/num_test.py | H2u-Hwng/EVC | c650fe7356a333011514cf9025dfd97bf71b1de3 | [
"MIT"
] | null | null | null | fopp/Chapter 12. Functions/num_test.py | H2u-Hwng/EVC | c650fe7356a333011514cf9025dfd97bf71b1de3 | [
"MIT"
] | null | null | null | # Check number and return result
# Define main function
# Call main function
main()
| 17.740741 | 45 | 0.586639 |
7f3a094e7fb2b39dd5e7562105bdd163aaecdbef | 243 | py | Python | day04/day4_a.py | AdamKinnell/AdventOfCode2017 | 28f506a39245198489d3da9535b190e6f98e92d1 | [
"MIT"
] | null | null | null | day04/day4_a.py | AdamKinnell/AdventOfCode2017 | 28f506a39245198489d3da9535b190e6f98e92d1 | [
"MIT"
] | null | null | null | day04/day4_a.py | AdamKinnell/AdventOfCode2017 | 28f506a39245198489d3da9535b190e6f98e92d1 | [
"MIT"
] | null | null | null |
passphrases = open("day4.txt").readlines()
valid_phrases = list(filter(is_valid, passphrases))
print('Valid Passphrases:', len(valid_phrases)) # = 337
| 27 | 55 | 0.703704 |
7f3ad5bc86994d1ef1598c06b036251dd5fb414d | 5,926 | py | Python | nozbe_to_org_mode.py | abloomston/nozbe-to-org-mode | b0a28afdd175dbd33a476b4959314bb564fd327d | [
"MIT"
] | null | null | null | nozbe_to_org_mode.py | abloomston/nozbe-to-org-mode | b0a28afdd175dbd33a476b4959314bb564fd327d | [
"MIT"
] | null | null | null | nozbe_to_org_mode.py | abloomston/nozbe-to-org-mode | b0a28afdd175dbd33a476b4959314bb564fd327d | [
"MIT"
] | null | null | null | import datetime
import json
# import os.path
import re
import click
from PyOrgMode import PyOrgMode
def get_valid_filename(s):
"""
Return the given string converted to a string that can be used for a clean
filename. Remove leading and trailing spaces; convert other spaces to
underscores; and remove a... | 37.506329 | 113 | 0.663348 |
7f3cd41b054297245f18b16ccddc7438085c5131 | 8,754 | py | Python | src/annalist_root/annalist/models/collectiontypecache.py | gklyne/annalist | 82e7ef2d56a400325e7618fa9e590072ee8a71d3 | [
"MIT"
] | 18 | 2015-02-20T23:09:13.000Z | 2020-11-13T06:06:43.000Z | src/annalist_root/annalist/models/collectiontypecache.py | gklyne/annalist | 82e7ef2d56a400325e7618fa9e590072ee8a71d3 | [
"MIT"
] | 30 | 2015-01-03T09:56:28.000Z | 2021-06-10T20:58:55.000Z | src/annalist_root/annalist/models/collectiontypecache.py | gklyne/annalist | 82e7ef2d56a400325e7618fa9e590072ee8a71d3 | [
"MIT"
] | 5 | 2015-02-02T09:01:23.000Z | 2018-06-14T20:05:28.000Z | from __future__ import unicode_literals
from __future__ import absolute_import, division, print_function
"""
This module is used to cache per-collection type information.
"""
__author__ = "Graham Klyne (GK@ACM.ORG)"
__copyright__ = "Copyright 2017, G. Klyne"
__license__ = "MIT (http://opensource.org/licens... | 36.024691 | 103 | 0.633082 |
7f3cda38afd2ff0962b2ae79ebdaa829c5bed6a1 | 556 | py | Python | example/nn-andor.py | Sean-Mabli/aiinpy | 827e4f85861436c0332046fa8aa84e24153513d6 | [
"MIT"
] | 2 | 2021-04-19T21:49:34.000Z | 2021-05-17T21:03:08.000Z | example/nn-andor.py | Sean-Mabli/aiinpy | 827e4f85861436c0332046fa8aa84e24153513d6 | [
"MIT"
] | null | null | null | example/nn-andor.py | Sean-Mabli/aiinpy | 827e4f85861436c0332046fa8aa84e24153513d6 | [
"MIT"
] | null | null | null | import aiinpy as ai
import numpy as np
# Create Dataset
inTrainData = np.random.choice(([0, 1]), (2, 100))
outTrainData = np.zeros((2, 100))
for i in range(100):
outTrainData[:, i] = [1, 0] if sum(inTrainData[:, i]) == 1 else [0, 1]
# NN model
model = ai.model(2, 2, [
ai.nn(outshape=16, activation=ai.relu(), lear... | 30.888889 | 72 | 0.681655 |
7f3e415b02824042a222510b85f1f06332620f82 | 10,212 | py | Python | evaluation.py | twankim/svdped | afe67b5c4636bca03a6d68b7a9cf89485a4dabec | [
"Apache-2.0"
] | 1 | 2020-01-02T03:01:28.000Z | 2020-01-02T03:01:28.000Z | evaluation.py | twankim/svdped | afe67b5c4636bca03a6d68b7a9cf89485a4dabec | [
"Apache-2.0"
] | null | null | null | evaluation.py | twankim/svdped | afe67b5c4636bca03a6d68b7a9cf89485a4dabec | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Tensorflow. All Rights Reserved.
# Modifications copyright 2018 UT Austin/Saharsh Oza & Taewan Kim
# We follow the object detection API of Tensorflow
#
# 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... | 42.198347 | 134 | 0.658637 |
7f3e63c1fb6018a2c9b775eebf7066a5b9766177 | 80 | py | Python | 2017-03-07-Introduction-to-Python/examples/11-dict.py | s3rvac/talks | 469ea5d2d3d90527f77863b85746bbc2d7236cb1 | [
"BSD-3-Clause"
] | 2 | 2019-05-15T06:42:32.000Z | 2020-08-01T11:48:40.000Z | 2017-03-07-Introduction-to-Python/examples/11-dict.py | s3rvac/talks | 469ea5d2d3d90527f77863b85746bbc2d7236cb1 | [
"BSD-3-Clause"
] | null | null | null | 2017-03-07-Introduction-to-Python/examples/11-dict.py | s3rvac/talks | 469ea5d2d3d90527f77863b85746bbc2d7236cb1 | [
"BSD-3-Clause"
] | 1 | 2017-03-28T21:14:37.000Z | 2017-03-28T21:14:37.000Z | d = {
'John': 2.5,
'Paul': 1.5,
'Laura': 1
}
print(d['John']) # 2.5
| 11.428571 | 22 | 0.3875 |
7f403fa488a1d08f93bce6c80d03c36e605c922e | 3,863 | py | Python | code/chap12/average_monoid_use_groupbykey.py | AnanthaVamshi/PySpark_Tutorials | fd94f9af0517f0bffca26d4c7b751333d42b8f3d | [
"Apache-2.0"
] | 60 | 2019-07-09T10:34:48.000Z | 2022-03-17T00:04:43.000Z | code/chap12/average_monoid_use_groupbykey.py | AnanthaVamshi/PySpark_Tutorials | fd94f9af0517f0bffca26d4c7b751333d42b8f3d | [
"Apache-2.0"
] | 2 | 2022-02-14T00:11:51.000Z | 2022-02-14T00:25:13.000Z | code/chap12/average_monoid_use_groupbykey.py | AnanthaVamshi/PySpark_Tutorials | fd94f9af0517f0bffca26d4c7b751333d42b8f3d | [
"Apache-2.0"
] | 34 | 2019-07-03T13:24:45.000Z | 2022-02-14T00:11:45.000Z | from __future__ import print_function
import sys
from pyspark.sql import SparkSession
#<1> Import the print() function
#<2> Import System-specific parameters and functions
#<3> Import SparkSession from the pyspark.sql module
#==========================================
# NOTE:
#
# In general, avoid using groupByKey(... | 35.118182 | 145 | 0.63241 |
7f4141e43c9e441e29f89f0d2f45c5877b88a586 | 3,513 | py | Python | python/black-jack/black_jack.py | heymajor/exercism | 5cbe035abfdcd420e4b74ed24d7cb4d9fc38ddfd | [
"MIT"
] | null | null | null | python/black-jack/black_jack.py | heymajor/exercism | 5cbe035abfdcd420e4b74ed24d7cb4d9fc38ddfd | [
"MIT"
] | null | null | null | python/black-jack/black_jack.py | heymajor/exercism | 5cbe035abfdcd420e4b74ed24d7cb4d9fc38ddfd | [
"MIT"
] | null | null | null | """Functions to help play and score a game of blackjack.
How to play blackjack: https://bicyclecards.com/how-to-play/blackjack/
"Standard" playing cards: https://en.wikipedia.org/wiki/Standard_52-card_deck
"""
def value_of_card(card):
"""Determine the scoring value of a card.
:param card: str - given ... | 28.104 | 126 | 0.642755 |
7f416087cddccd8f2f43da2aae4ed7a5d932a824 | 2,246 | py | Python | Tweet_Parser.py | berkehanozen/481project | e1f8f98871ad47bfc7ac2363824b86eca3ef80e3 | [
"MIT"
] | 1 | 2019-04-03T20:04:10.000Z | 2019-04-03T20:04:10.000Z | Tweet_Parser.py | berkehanozen/481project | e1f8f98871ad47bfc7ac2363824b86eca3ef80e3 | [
"MIT"
] | 8 | 2019-03-17T20:03:15.000Z | 2019-04-26T23:36:50.000Z | Tweet_Parser.py | berkehanozen/481project | e1f8f98871ad47bfc7ac2363824b86eca3ef80e3 | [
"MIT"
] | null | null | null | import tweepy
CONSUMER_KEY = 'EQxFiVurRxZRKZzH4tJ2PtsX8'
CONSUMER_SECRET = '59WSgueMvx7VUbuYywwC6rqwdlLUkc0yufiTnITvgmPJAN9RzE'
ACCESS_TOKEN = "349586645-4e7WmYpjvzKUmsKh3C9pNyv0QzlbVB80nlvR4q02"
ACCESS_TOKEN_SECRET = "qblYvvigttmP5elDFMsIJacO7gOknN794ubMThlyV0pfj"
auth = tweepy.OAuthHandler('EQxFiVurRxZRKZzH4tJ2PtsX8'... | 43.192308 | 124 | 0.670971 |
7f44280736c208e946be3d520a3b9b00087db672 | 1,363 | py | Python | uskimage_demo/morphology/tests/test_morphology_diplib.py | grlee77/uskimage-demo | 6e9deaddfd8f9b1b6ba8321f5df4bfc938efb07f | [
"MIT"
] | null | null | null | uskimage_demo/morphology/tests/test_morphology_diplib.py | grlee77/uskimage-demo | 6e9deaddfd8f9b1b6ba8321f5df4bfc938efb07f | [
"MIT"
] | null | null | null | uskimage_demo/morphology/tests/test_morphology_diplib.py | grlee77/uskimage-demo | 6e9deaddfd8f9b1b6ba8321f5df4bfc938efb07f | [
"MIT"
] | null | null | null | import dask.array as da
import numpy as np
import pytest
from skimage import data, morphology, set_backend
from uskimage_demo import diplib_backend
from skimage.morphology import footprints
modes = ['wrap', 'reflect', 'nearest', 'constant', 'mirror']
# note: 'reflect' unspported by diplib, falls back to ski... | 36.837838 | 71 | 0.653705 |
7f4660d2d5b241b7b958d1504ba624955cb4fcbe | 797 | py | Python | modulo 1/aulas/2.0 - Variaveis, etc.py | GabrielBrotas/Python | 9441b6b86ff3cb7fa5921b508c484075adac08b3 | [
"MIT"
] | null | null | null | modulo 1/aulas/2.0 - Variaveis, etc.py | GabrielBrotas/Python | 9441b6b86ff3cb7fa5921b508c484075adac08b3 | [
"MIT"
] | null | null | null | modulo 1/aulas/2.0 - Variaveis, etc.py | GabrielBrotas/Python | 9441b6b86ff3cb7fa5921b508c484075adac08b3 | [
"MIT"
] | null | null | null | n = input('Digite algo: ')
numero = int(input("digite um numero: "))
num1 = float(input("digite um numero decimal: "))
nome = str(input("digite algum nome: "))
print(type(n)) # mostrar o tipo de 'n', se int, float, bool, str...
print(n.isnumeric()) # vai dizer se n numerico ou nao, imprimindo true or false... | 61.307692 | 112 | 0.696361 |
7f46b90f3067b61d30032bd525bb3fa292e333d3 | 7,265 | py | Python | models/networks.py | face3d0725/weak_UV | 8ce5259644fd153113ca2f0ae306e5b7bae1b6b5 | [
"MIT"
] | 14 | 2021-09-15T12:53:44.000Z | 2022-03-29T08:45:04.000Z | models/networks.py | face3d0725/weak_UV | 8ce5259644fd153113ca2f0ae306e5b7bae1b6b5 | [
"MIT"
] | 3 | 2021-09-17T01:43:48.000Z | 2021-11-26T11:54:57.000Z | models/networks.py | face3d0725/weak_UV | 8ce5259644fd153113ca2f0ae306e5b7bae1b6b5 | [
"MIT"
] | 1 | 2021-10-12T01:07:44.000Z | 2021-10-12T01:07:44.000Z | from torch import nn
import torch.nn.functional as F
import torch
import math
import numpy as np
# https://github.com/caojiezhang/MWGAN
if __name__ == '__main__':
# model = DiscriminatorUVTotal()
model = DiscriminatorUV()
I = torch.rand(10, 3, 256, 128)
out = model(I)
print(out.shape)
| 32.433036 | 120 | 0.605368 |
7f482aee1ac3fa8273f5cc77f82ac708531977d2 | 3,115 | py | Python | src/main/python/apache/thermos/cli/commands/run.py | jeremyvdw/aurora | fa9d83a7ef3a96c522884089a471bbb0bef74c48 | [
"Apache-2.0"
] | 479 | 2015-03-27T22:59:49.000Z | 2022-03-09T08:40:49.000Z | src/main/python/apache/thermos/cli/commands/run.py | jeremyvdw/aurora | fa9d83a7ef3a96c522884089a471bbb0bef74c48 | [
"Apache-2.0"
] | 69 | 2015-05-26T20:06:29.000Z | 2020-01-13T19:18:59.000Z | src/main/python/apache/thermos/cli/commands/run.py | jeremyvdw/aurora | fa9d83a7ef3a96c522884089a471bbb0bef74c48 | [
"Apache-2.0"
] | 226 | 2015-03-27T20:02:59.000Z | 2022-03-09T08:40:53.000Z | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | 47.923077 | 100 | 0.660353 |
7f48681294588a03fc4aad0737c8a3c34dabc142 | 280 | py | Python | gallery/random_color.py | Commander07/Enviroment | bdf05dca42a14a5f061c8dda64c3ec6b085e4db3 | [
"MIT"
] | null | null | null | gallery/random_color.py | Commander07/Enviroment | bdf05dca42a14a5f061c8dda64c3ec6b085e4db3 | [
"MIT"
] | null | null | null | gallery/random_color.py | Commander07/Enviroment | bdf05dca42a14a5f061c8dda64c3ec6b085e4db3 | [
"MIT"
] | null | null | null | import random
import time
from enviroment import Enviroment
ENV = Enviroment("")
while True:
ENV.console.print(
"[color({color})]COLOR SUPPORT[/color({color})]".format(color=random_color()))
time.sleep(1)
| 17.5 | 86 | 0.685714 |
7f494b88262e2106d77b9c0a20561febf55c8994 | 5,933 | py | Python | radiation/python/encoding.py | dfridovi/exploration | 5e66115178988bd264a920041dfeab6d3539caec | [
"BSD-3-Clause"
] | 5 | 2018-07-08T08:32:49.000Z | 2022-03-13T10:17:09.000Z | radiation/python/encoding.py | dfridovi/exploration | 5e66115178988bd264a920041dfeab6d3539caec | [
"BSD-3-Clause"
] | 5 | 2016-11-30T02:52:58.000Z | 2018-05-24T04:46:49.000Z | radiation/python/encoding.py | dfridovi/exploration | 5e66115178988bd264a920041dfeab6d3539caec | [
"BSD-3-Clause"
] | 2 | 2016-12-01T04:06:40.000Z | 2019-06-19T16:32:28.000Z | """
Copyright (c) 2015, The Regents of the University of California (Regents).
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
... | 35.106509 | 79 | 0.68178 |
7f49f6fa3ef035698bb0c0bf44b54064ea2d62dc | 504 | py | Python | Cogs/game.py | k-rite/mirai-kuriyama-discord.py | 2974e2a544fe2d12491eae83e3ff16f5b776294c | [
"Apache-2.0"
] | 1 | 2021-12-02T00:22:08.000Z | 2021-12-02T00:22:08.000Z | Cogs/game.py | k-rite/mirai-kuriyama-discord.py | 2974e2a544fe2d12491eae83e3ff16f5b776294c | [
"Apache-2.0"
] | null | null | null | Cogs/game.py | k-rite/mirai-kuriyama-discord.py | 2974e2a544fe2d12491eae83e3ff16f5b776294c | [
"Apache-2.0"
] | null | null | null | import discord
from discord.ext import commands
from discord import Game
| 33.6 | 124 | 0.757937 |
7f4bd9faf0fca90d18ad0d946a965dc643b9af58 | 7,119 | py | Python | infosystem/subsystem/user/controller.py | objetorelacional/infosystem | 07140b88db0edee2d5f66db4f13e7285a4f28bfa | [
"Apache-2.0"
] | 2 | 2020-06-25T16:53:28.000Z | 2020-10-07T18:11:05.000Z | infosystem/subsystem/user/controller.py | objetorelacional/infosystem | 07140b88db0edee2d5f66db4f13e7285a4f28bfa | [
"Apache-2.0"
] | 67 | 2020-05-18T13:16:34.000Z | 2021-11-27T12:32:11.000Z | infosystem/subsystem/user/controller.py | objetorelacional/infosystem | 07140b88db0edee2d5f66db4f13e7285a4f28bfa | [
"Apache-2.0"
] | null | null | null | import flask
import json
from infosystem.common import utils
from infosystem.common.subsystem import controller
from infosystem.common import exception
from infosystem.subsystem.user.email import TypeEmail
| 36.507692 | 74 | 0.573255 |
7f4caadc8cb6f4e82da5982e34a205614c81d65e | 1,475 | py | Python | myapp/Entry.py | abars/illustbook | 3e790a688c19205b7384cc5815ca76c23b88f09a | [
"MIT"
] | 3 | 2016-06-16T20:11:45.000Z | 2022-01-27T04:23:09.000Z | myapp/Entry.py | abars/illustbook | 3e790a688c19205b7384cc5815ca76c23b88f09a | [
"MIT"
] | 1 | 2017-10-23T00:23:13.000Z | 2017-10-23T00:23:13.000Z | myapp/Entry.py | abars/illustbook | 3e790a688c19205b7384cc5815ca76c23b88f09a | [
"MIT"
] | null | null | null | #!-*- coding:utf-8 -*-
#!/usr/bin/env python
#---------------------------------------------------
#
#copyright 2010-2012 ABARS all rights reserved.
#---------------------------------------------------
from google.appengine.ext import db
from google.appengine.api import users
from myapp.Bbs import Bbs
from myapp.MesT... | 34.302326 | 92 | 0.728814 |
7f4f0f91b52a69b3291519a8f616241c25617cb7 | 65 | py | Python | yc183/646.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc183/646.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc183/646.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | N = int(input())
for i in range(N):
print(str(N) * (N - i))
| 13 | 27 | 0.492308 |
7f502c3c57ac68a95acd7fa11569b57d01be3919 | 1,284 | py | Python | ee134/scripts/pyfindactuators.py | wwerst/EE134 | ca558e4e6dc874a7b91885a786fd5eae8492afca | [
"MIT"
] | null | null | null | ee134/scripts/pyfindactuators.py | wwerst/EE134 | ca558e4e6dc874a7b91885a786fd5eae8492afca | [
"MIT"
] | null | null | null | ee134/scripts/pyfindactuators.py | wwerst/EE134 | ca558e4e6dc874a7b91885a786fd5eae8492afca | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# pyfindactuators.py
#
# Simply call the hebiros_node to find the list of actuators.
import sys
import rospy
from hebiros.srv import EntryListSrv
if __name__ == "__main__":
# Initialize the basic ROS node.
rospy.init_node('pyfindactuators')
# You can choose to wait until the... | 31.317073 | 70 | 0.639408 |
7f50fd424f4a7fff6675e48331bbf784d65fa589 | 397 | py | Python | logdweb/forms.py | hiidef/logdweb | c80d47f4c5759cadeb3088b9f7fa093c30e11696 | [
"MIT"
] | 1 | 2015-08-30T02:36:13.000Z | 2015-08-30T02:36:13.000Z | logdweb/forms.py | hiidef/logdweb | c80d47f4c5759cadeb3088b9f7fa093c30e11696 | [
"MIT"
] | null | null | null | logdweb/forms.py | hiidef/logdweb | c80d47f4c5759cadeb3088b9f7fa093c30e11696 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""logdweb forms"""
from django.forms import *
| 18.045455 | 36 | 0.692695 |
7f53b321819c0bfc40c5ab85b02bbe5ae5205ad3 | 5,386 | py | Python | src/kegnet/utils/tucker.py | videoturingtest/KegNet | fe5d1eb5ab5453be70c4be473fd3da71afe4b06c | [
"Apache-2.0"
] | 42 | 2019-10-01T02:14:34.000Z | 2022-03-07T06:57:58.000Z | src/kegnet/utils/tucker.py | videoturingtest/KegNet | fe5d1eb5ab5453be70c4be473fd3da71afe4b06c | [
"Apache-2.0"
] | 5 | 2019-12-18T16:44:52.000Z | 2021-10-02T15:45:37.000Z | src/kegnet/utils/tucker.py | videoturingtest/KegNet | fe5d1eb5ab5453be70c4be473fd3da71afe4b06c | [
"Apache-2.0"
] | 13 | 2019-10-04T02:55:51.000Z | 2021-08-13T09:10:17.000Z | """
Knowledge Extraction with No Observable Data (NeurIPS 2019)
Authors:
- Jaemin Yoo (jaeminyoo@snu.ac.kr), Seoul National University
- Minyong Cho (chominyong@gmail.com), Seoul National University
- Taebum Kim (k.taebum@snu.ac.kr), Seoul National University
- U Kang (ukang@snu.ac.kr), Seoul National University
This... | 30.954023 | 76 | 0.59469 |
7f55f44736b5a3a98c59af3781f85f9e15bf8728 | 1,740 | py | Python | 2020/05/code.py | tut-tuuut/advent-of-code-shiny-giggle | 281a646b84f58f4b3ca2a9875dd57268beefc62d | [
"MIT"
] | 5 | 2018-12-11T17:46:54.000Z | 2021-12-02T10:11:53.000Z | 2020/05/code.py | tut-tuuut/advent-of-code-shiny-giggle | 281a646b84f58f4b3ca2a9875dd57268beefc62d | [
"MIT"
] | null | null | null | 2020/05/code.py | tut-tuuut/advent-of-code-shiny-giggle | 281a646b84f58f4b3ca2a9875dd57268beefc62d | [
"MIT"
] | null | null | null | import utils as u
with open(__file__ + ".input.txt", "r+") as file:
raw_input = file.read()
# part 1 -'*'-.,__,.-'*'-.,__,.-'*'-.,__,.-'*'-.,__,.-'*'-.,__,.-'*'-.,__,.-'*'-.,_
u.assert_equals(get_place_coordinates("BFFFBBFRRR"), (70, 7))
u.assert_equals(get_place_coordinates("FFFBBBFRRR"), (14, 7))
u.assert_e... | 30.526316 | 83 | 0.642529 |
7f56a46d74e7ecd5b432e74c3c2222b210440061 | 21,615 | py | Python | source/tpJointOrient/jointorient.py | tpoveda/tpJointOrient | deeebf847403c2938518c75a2b1a22d61e46f74a | [
"MIT"
] | 9 | 2017-08-21T01:04:22.000Z | 2020-08-28T02:54:54.000Z | source/tpJointOrient/jointorient.py | tpoveda/tpJointOrient | deeebf847403c2938518c75a2b1a22d61e46f74a | [
"MIT"
] | 1 | 2019-11-06T18:02:41.000Z | 2019-11-06T18:02:41.000Z | source/tpJointOrient/jointorient.py | tpoveda/tpJointOrient | deeebf847403c2938518c75a2b1a22d61e46f74a | [
"MIT"
] | 3 | 2018-04-03T00:14:50.000Z | 2020-11-04T00:33:45.000Z | from functools import partial
from Qt.QtCore import *
from Qt.QtWidgets import *
import tpDccLib as tp
import tpMayaLib as maya
from tpQtLib.core import window
from tpQtLib.widgets import splitters
from tpMayaLib.core import decorators
| 41.567308 | 134 | 0.670275 |
7f58bef75ba0ec877afcf1b719c8b7a1c29e9cfb | 2,584 | py | Python | run.py | tobias-fyi/print-fiction | b0befb9906fea85bf1a553fb4bc4d229b8ed957b | [
"MIT"
] | null | null | null | run.py | tobias-fyi/print-fiction | b0befb9906fea85bf1a553fb4bc4d229b8ed957b | [
"MIT"
] | null | null | null | run.py | tobias-fyi/print-fiction | b0befb9906fea85bf1a553fb4bc4d229b8ed957b | [
"MIT"
] | null | null | null | import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from app import app, server
from pages import index
# ====== Navigation ====== #
# nav = html.Ul(
# [
# html.Li(html.A("print(fiction)", ... | 29.033708 | 87 | 0.417957 |
7f5ad4cc35db29d1020478aa8cc7a13f5b570c56 | 323 | py | Python | client/views/back.py | tcmal/ah-project | 64c5859ed39645c1c2971e193c6b59f35d72d2a7 | [
"MIT"
] | null | null | null | client/views/back.py | tcmal/ah-project | 64c5859ed39645c1c2971e193c6b59f35d72d2a7 | [
"MIT"
] | null | null | null | client/views/back.py | tcmal/ah-project | 64c5859ed39645c1c2971e193c6b59f35d72d2a7 | [
"MIT"
] | null | null | null | from tkinter.ttk import Button
# Convenience mixin to add back button to view
| 32.3 | 80 | 0.743034 |
7f5b76a3577f86fe28ed46f2364b13beeed8f550 | 402 | py | Python | test.py | activerankextension/methodology | 8ae182d420163dae8433a0003c50618798a0f46f | [
"MIT"
] | null | null | null | test.py | activerankextension/methodology | 8ae182d420163dae8433a0003c50618798a0f46f | [
"MIT"
] | null | null | null | test.py | activerankextension/methodology | 8ae182d420163dae8433a0003c50618798a0f46f | [
"MIT"
] | null | null | null | import unittest
from feminist_api import *
if __name__ == '__main__':
unittest.main() | 36.545455 | 84 | 0.758706 |
7f5d78371ccbb929342eff4154124e08e308dc40 | 3,408 | py | Python | example-v4.py | Laukei/pyanc350 | fbace7485dda4c3b9aad38c323130011a13bca9f | [
"MIT"
] | 8 | 2019-11-27T09:31:23.000Z | 2022-02-16T02:23:55.000Z | example-v4.py | Laukei/attocube-ANC350-Python-library | fbace7485dda4c3b9aad38c323130011a13bca9f | [
"MIT"
] | null | null | null | example-v4.py | Laukei/attocube-ANC350-Python-library | fbace7485dda4c3b9aad38c323130011a13bca9f | [
"MIT"
] | 4 | 2016-06-29T20:46:19.000Z | 2019-02-15T11:59:42.000Z | #
# PyANC350v4 example file
# by Brian Schaefer, adapted from pyanc-example.py by Rob Heath
#
from pyanc350.v4 import Positioner
import time
ax = {'x':0,'y':1,'z':2}
#define a dict of axes to make things simpler
anc = Positioner()
#instantiate positioner as anc
print('----------------------------------------------... | 33.742574 | 114 | 0.610915 |
7f5eb990fc9bad4f6475bb538b62266b6b5e7f41 | 7,978 | py | Python | legacy/examples/distribute_graphsage/model.py | zbmain/PGL | dbded6a1543248b0a33c05eb476ddc513401a774 | [
"Apache-2.0"
] | 1,389 | 2019-06-11T03:29:20.000Z | 2022-03-29T18:25:43.000Z | legacy/examples/distribute_graphsage/model.py | zbmain/PGL | dbded6a1543248b0a33c05eb476ddc513401a774 | [
"Apache-2.0"
] | 232 | 2019-06-21T06:52:10.000Z | 2022-03-29T08:20:31.000Z | legacy/examples/distribute_graphsage/model.py | zbmain/PGL | dbded6a1543248b0a33c05eb476ddc513401a774 | [
"Apache-2.0"
] | 229 | 2019-06-20T12:13:58.000Z | 2022-03-25T12:04:48.000Z | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 35.145374 | 81 | 0.564051 |
7f5f8e7da675ccdf94c2845ab889407163f48cad | 16,914 | py | Python | ensemble_detectors/src/Algorithm_1_matchfilter/spectral_lib/spectral/algorithms/perceptron.py | satish1901/Methane-detection-from-hyperspectral-imagery | 741dee02e76931f572cf3e06af8faabe871e8e4a | [
"MIT"
] | 27 | 2020-06-11T21:59:54.000Z | 2022-03-22T03:10:50.000Z | ensemble_detectors/src/Algorithm_1_matchfilter/spectral_lib/spectral/algorithms/perceptron.py | N-NSH/Methane-detection-from-hyperspectral-imagery | 741dee02e76931f572cf3e06af8faabe871e8e4a | [
"MIT"
] | 7 | 2020-09-25T22:41:18.000Z | 2022-02-09T23:41:04.000Z | ensemble_detectors/src/Algorithm_1_matchfilter/spectral_lib/spectral/algorithms/perceptron.py | N-NSH/Methane-detection-from-hyperspectral-imagery | 741dee02e76931f572cf3e06af8faabe871e8e4a | [
"MIT"
] | 4 | 2021-01-18T15:57:13.000Z | 2022-03-12T20:51:27.000Z | #########################################################################
#
# perceptron.py - This file is part of the Spectral Python (SPy) package.
#
# Copyright (C) 2001-2014 Thomas Boggs
#
# Spectral Python is free software; you can redistribute it and/
# or modify it under the terms of the GNU General Publ... | 35.910828 | 82 | 0.541504 |
7f5fc1c9185cffc53700f1f1d9e3856530dd7fe5 | 1,075 | py | Python | sportsdataverse/cfb/cfb_teams.py | saiemgilani/sportsdataverse-py | 77ae3accbb071b5308335b931e4e55a65e1500cd | [
"MIT"
] | 12 | 2021-10-15T01:24:18.000Z | 2022-03-15T17:00:22.000Z | sportsdataverse/cfb/cfb_teams.py | saiemgilani/sportsdataverse-py | 77ae3accbb071b5308335b931e4e55a65e1500cd | [
"MIT"
] | 19 | 2021-11-02T05:53:41.000Z | 2022-03-16T14:16:51.000Z | sportsdataverse/cfb/cfb_teams.py | saiemgilani/sportsdataverse-py | 77ae3accbb071b5308335b931e4e55a65e1500cd | [
"MIT"
] | 1 | 2021-12-21T14:49:25.000Z | 2021-12-21T14:49:25.000Z | import pandas as pd
import json
from sportsdataverse.dl_utils import download
from urllib.error import URLError, HTTPError, ContentTooShortError
def espn_cfb_teams(groups=None) -> pd.DataFrame:
"""espn_cfb_teams - look up the college football teams
Args:
groups (int): Used to define different division... | 32.575758 | 117 | 0.646512 |
7f61254a89ebbce054e77ea23ac41a27c30888e5 | 407 | py | Python | src/solutions/solution013.py | samtcwong/daily-coding-problems | bd7da8e64a74a04f69a8b5b930100754e99b63f7 | [
"MIT"
] | null | null | null | src/solutions/solution013.py | samtcwong/daily-coding-problems | bd7da8e64a74a04f69a8b5b930100754e99b63f7 | [
"MIT"
] | null | null | null | src/solutions/solution013.py | samtcwong/daily-coding-problems | bd7da8e64a74a04f69a8b5b930100754e99b63f7 | [
"MIT"
] | null | null | null | from typing import List
# Problem #13 [Hard]
# Good morning! Here's your coding interview problem for today.
# This problem was asked by Amazon.
# Given an integer k and a string s, find the length of the longest substring
# that contains at most k distinct characters.
# For example, given s = "abcba" and k = 2,
# ... | 25.4375 | 77 | 0.734644 |
7f63663f06ed07834a3d2142ee1d260868e3df08 | 3,636 | py | Python | vnpy/example.py | 0x1be20/vnpy | 51e3439570aefc67986078dd80a452b5f40f5653 | [
"MIT"
] | null | null | null | vnpy/example.py | 0x1be20/vnpy | 51e3439570aefc67986078dd80a452b5f40f5653 | [
"MIT"
] | null | null | null | vnpy/example.py | 0x1be20/vnpy | 51e3439570aefc67986078dd80a452b5f40f5653 | [
"MIT"
] | null | null | null |
import math
import numpy as np
import os
import sys
import csv
import datetime
import pandas as pd
from vnpy.app.cta_strategy.backtesting import BacktestingEngine, OptimizationSetting
from vnpy.app.cta_strategy.base import BacktestingMode
from vnpy.app.cta_strategy import (
CtaTemplate,
TickData,
TradeData... | 27.134328 | 84 | 0.596535 |
7f63e32605c44b6294e52e86fda5185cf150b67e | 4,368 | py | Python | tests/test_weekdays_list.py | mafrosis/dataclass_property | bd9680bcbf3221691227c5e056a9b1f5f999c849 | [
"MIT"
] | null | null | null | tests/test_weekdays_list.py | mafrosis/dataclass_property | bd9680bcbf3221691227c5e056a9b1f5f999c849 | [
"MIT"
] | null | null | null | tests/test_weekdays_list.py | mafrosis/dataclass_property | bd9680bcbf3221691227c5e056a9b1f5f999c849 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
test_weekdays_init()
test_weekday_property()
test_weekdays_append_add_remove()
test_weekday_pydantic()
print('All tests finished successfully!')
| 29.12 | 102 | 0.641484 |
7f651f1517a0884732ef21c2c571ce9f78614a71 | 304 | py | Python | thenewboston_node/core/management/commands/generate_signing_key.py | nishp77/thenewboston-node | 158b1f1739b2c6c9c21c80e9da854ca141f1cf8f | [
"MIT"
] | 30 | 2021-03-05T22:08:17.000Z | 2021-09-23T02:45:45.000Z | thenewboston_node/core/management/commands/generate_signing_key.py | nishp77/thenewboston-node | 158b1f1739b2c6c9c21c80e9da854ca141f1cf8f | [
"MIT"
] | 148 | 2021-03-05T23:37:50.000Z | 2021-11-02T02:18:58.000Z | thenewboston_node/core/management/commands/generate_signing_key.py | nishp77/thenewboston-node | 158b1f1739b2c6c9c21c80e9da854ca141f1cf8f | [
"MIT"
] | 14 | 2021-03-05T21:58:46.000Z | 2021-10-15T17:27:52.000Z | from django.core.management import BaseCommand
from thenewboston_node.core.utils.cryptography import generate_key_pair
| 27.636364 | 71 | 0.753289 |
7f6542a305f9398e37131670f91383a3e41725e7 | 1,864 | py | Python | Application/datasources/datapod_facebook/settings.py | GraphicalDot/datapod-backend-layer | ab38a5b0e969cd0d762e9d7720ab89174c333c37 | [
"Apache-2.0"
] | null | null | null | Application/datasources/datapod_facebook/settings.py | GraphicalDot/datapod-backend-layer | ab38a5b0e969cd0d762e9d7720ab89174c333c37 | [
"Apache-2.0"
] | null | null | null | Application/datasources/datapod_facebook/settings.py | GraphicalDot/datapod-backend-layer | ab38a5b0e969cd0d762e9d7720ab89174c333c37 | [
"Apache-2.0"
] | null | null | null |
#-*- coding: utf-8 -*-
from playhouse.sqlite_ext import SqliteExtDatabase, FTSModel
import sqlite3
from .db_initialize import initialize
from .api import parse, images, stats, status, get_chats, dashboard, delete_original_path, cancel_parse
import os
from .variables import DATASOURCE_NAME
| 38.040816 | 177 | 0.578863 |
7f66fab2551c1200a99084dcebcddfcbb6ae6f04 | 347 | py | Python | lab4/id.py | TypeKazt/CS265_Class | 6db5f21cfc51961b71a85d95451cf986f60d47a4 | [
"MIT"
] | null | null | null | lab4/id.py | TypeKazt/CS265_Class | 6db5f21cfc51961b71a85d95451cf986f60d47a4 | [
"MIT"
] | null | null | null | lab4/id.py | TypeKazt/CS265_Class | 6db5f21cfc51961b71a85d95451cf986f60d47a4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
if len(sys.argv) > 2 or len(sys.argv) < 2:
print sys.argv[0] + "accepts 1 argument"
sys.exit(1)
accounts = {}
with open(sys.argv[1],'r') as f:
for i in f:
temp = i.split(" ", 1)
accounts[temp[0]] = temp[1]
accounts.keys().sort()
print "ID Name"
for i in accounts:
print str(i... | 20.411765 | 42 | 0.596542 |
7f6784f614c657d64ff55a4aaa604588f7cc578a | 501 | py | Python | router.py | spookybear0/website | 200eb0e56512d134cd5a52727a073a47077cf280 | [
"MIT"
] | null | null | null | router.py | spookybear0/website | 200eb0e56512d134cd5a52727a073a47077cf280 | [
"MIT"
] | null | null | null | router.py | spookybear0/website | 200eb0e56512d134cd5a52727a073a47077cf280 | [
"MIT"
] | null | null | null | import aiohttp
import importlib
routes = {"/": "index",
"/users/{username}": "user",
"/rankings": "rankings",
"/level/{levelname}": "level",
"/search": "search"} | 35.785714 | 109 | 0.610778 |
7f69183ea142839ce779dbe7bfbef3bdf9530b88 | 415 | py | Python | Remove Duplicates From Sorted Array 2.py | MetinKONUK/LeetCode | ba65bf2b43a3309da560cc2d8d742b3afe3894cb | [
"MIT"
] | null | null | null | Remove Duplicates From Sorted Array 2.py | MetinKONUK/LeetCode | ba65bf2b43a3309da560cc2d8d742b3afe3894cb | [
"MIT"
] | null | null | null | Remove Duplicates From Sorted Array 2.py | MetinKONUK/LeetCode | ba65bf2b43a3309da560cc2d8d742b3afe3894cb | [
"MIT"
] | null | null | null | """
Just iterating through every element and appending every first unique element to head of the list
And returning the unique element count so judge can take nums[:unique_element_count] list
"""
| 34.583333 | 97 | 0.60241 |
7f69703f8f809116b21206029c85b39cc24652df | 3,967 | py | Python | golly-4.0-win-64bit/Scripts/Python/tile.py | larayeung/gollywithlocusts | e7adbaaa691fe46f22e88fb4d13e42b3d702a871 | [
"Apache-2.0"
] | null | null | null | golly-4.0-win-64bit/Scripts/Python/tile.py | larayeung/gollywithlocusts | e7adbaaa691fe46f22e88fb4d13e42b3d702a871 | [
"Apache-2.0"
] | null | null | null | golly-4.0-win-64bit/Scripts/Python/tile.py | larayeung/gollywithlocusts | e7adbaaa691fe46f22e88fb4d13e42b3d702a871 | [
"Apache-2.0"
] | null | null | null | # Tile current selection with pattern inside selection.
# Author: Andrew Trevorrow (andrew@trevorrow.com), March 2006.
# Updated to use exit command, Nov 2006.
# Updated to handle multi-state patterns, Aug 2008.
from glife import *
import golly as g
selrect = rect( g.getselrect() )
if selrect.empty: g.exit("There is ... | 26.986395 | 80 | 0.526594 |
7f6978f707c126c136ad39f3b45816a9df89b466 | 968 | py | Python | workflow/scripts/process.py | IMS-Bio2Core-Facility/GTExSnake | aefe96f70dd815036b1456c08a7b7068400f79a5 | [
"MIT"
] | 1 | 2021-07-13T09:18:36.000Z | 2021-07-13T09:18:36.000Z | workflow/scripts/process.py | IMS-Bio2Core-Facility/GTExSnake | aefe96f70dd815036b1456c08a7b7068400f79a5 | [
"MIT"
] | 2 | 2021-07-14T09:32:29.000Z | 2021-07-21T07:49:02.000Z | workflow/scripts/process.py | IMS-Bio2Core-Facility/GTExSnake | aefe96f70dd815036b1456c08a7b7068400f79a5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Process data to xlsx.
Here,
the input data from the previous three steps is combined and written to XLSX.
The GTEx data is merged BioMart data using an outer merge,
so as to keep all entries.
Then,
the MANE data is added using a left merge,
so as to only keep the data from the GTEx query.
""... | 30.25 | 87 | 0.682851 |
7f6b2102a8e6ad3d81dcdc4da0012a459e68c9a9 | 2,943 | py | Python | gamespy-serverlister.py | cetteup/battlefield-serverlisters | 2176a11fda9e8c5be48dea1daed304db1c83f8a7 | [
"MIT"
] | 1 | 2021-01-04T01:30:37.000Z | 2021-01-04T01:30:37.000Z | gamespy-serverlister.py | cetteup/battlefield-serverlisters | 2176a11fda9e8c5be48dea1daed304db1c83f8a7 | [
"MIT"
] | null | null | null | gamespy-serverlister.py | cetteup/battlefield-serverlisters | 2176a11fda9e8c5be48dea1daed304db1c83f8a7 | [
"MIT"
] | null | null | null | import argparse
import logging
import os
import sys
from src.constants import GSLIST_CONFIGS, GAMESPY_PRINCIPALS
from src.serverlisters import GameSpyServerLister
parser = argparse.ArgumentParser(description='Retrieve a list of game servers for GameSpy-based games '
'and w... | 45.984375 | 118 | 0.706422 |
7f6c024bdbf80eb668baada9c5fe81bccdb1140e | 398 | py | Python | cornerstone_widget/__init__.py | betatim/cornerstone_widget | c22fafd4d8fe148f6b2349518188eb0bee5f18f1 | [
"Apache-2.0"
] | 24 | 2018-09-07T10:40:07.000Z | 2022-02-01T21:18:00.000Z | cornerstone_widget/__init__.py | betatim/cornerstone_widget | c22fafd4d8fe148f6b2349518188eb0bee5f18f1 | [
"Apache-2.0"
] | 26 | 2018-09-04T16:32:46.000Z | 2018-10-08T09:11:50.000Z | cornerstone_widget/__init__.py | betatim/cornerstone_widget | c22fafd4d8fe148f6b2349518188eb0bee5f18f1 | [
"Apache-2.0"
] | 3 | 2018-09-17T12:56:16.000Z | 2019-12-03T06:30:34.000Z | from .cs_widget import CornerstoneWidget, CornerstoneToolbarWidget
from .utils import get_bbox_handles
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
| 23.411765 | 66 | 0.70603 |
7f6cc4d210e49a95321ceda8b2d2d8db78daf491 | 4,872 | py | Python | go/channel/tests.py | lynnUg/vumi-go | 852f906c46d5d26940bd6699f11488b73bbc3742 | [
"BSD-3-Clause"
] | null | null | null | go/channel/tests.py | lynnUg/vumi-go | 852f906c46d5d26940bd6699f11488b73bbc3742 | [
"BSD-3-Clause"
] | null | null | null | go/channel/tests.py | lynnUg/vumi-go | 852f906c46d5d26940bd6699f11488b73bbc3742 | [
"BSD-3-Clause"
] | null | null | null | from uuid import uuid4
import urllib
from django.core.urlresolvers import reverse
from go.base.tests.helpers import GoDjangoTestCase, DjangoVumiApiHelper
from go.channel.views import get_channel_view_definition
| 43.891892 | 78 | 0.677545 |
7f6f22b310867bcb23d6e02764ed6534fb15c5dd | 4,715 | py | Python | analysis/malware/oleDeobf/xdeobf.py | fritzemeier/skeletoncode | 6c2c7de16f588c0856dd2f9770862126979b2620 | [
"MIT"
] | null | null | null | analysis/malware/oleDeobf/xdeobf.py | fritzemeier/skeletoncode | 6c2c7de16f588c0856dd2f9770862126979b2620 | [
"MIT"
] | null | null | null | analysis/malware/oleDeobf/xdeobf.py | fritzemeier/skeletoncode | 6c2c7de16f588c0856dd2f9770862126979b2620 | [
"MIT"
] | null | null | null | import sys
from chardet.universaldetector import UniversalDetector
if __name__ == "__main__":
main()
| 21.828704 | 146 | 0.532768 |
7f6f5b004757129f756542df01444d1d418496a6 | 309 | py | Python | examples/demo/demo_payments/models.py | bartels/satchless | 4d333014333dc4fd5815f9e0bbea565959919a30 | [
"BSD-4-Clause"
] | 1 | 2015-11-05T10:26:46.000Z | 2015-11-05T10:26:46.000Z | examples/demo/demo_payments/models.py | bartels/satchless | 4d333014333dc4fd5815f9e0bbea565959919a30 | [
"BSD-4-Clause"
] | null | null | null | examples/demo/demo_payments/models.py | bartels/satchless | 4d333014333dc4fd5815f9e0bbea565959919a30 | [
"BSD-4-Clause"
] | null | null | null | from django.db import models
from orders.app import order_app
from satchless.contrib.payment.django_payments_provider.models import DjangoPaymentsPayment
| 30.9 | 91 | 0.754045 |
7f72a5fd650666ecdf104589c2aeeb5a8a97ff0a | 9,184 | py | Python | typescript/libs/node_client.py | fongandrew/TypeScript-Sublime-JSX-Plugin | ee22b220a9874bb365aa84c2ffb3670ac7e9c97a | [
"Apache-2.0"
] | null | null | null | typescript/libs/node_client.py | fongandrew/TypeScript-Sublime-JSX-Plugin | ee22b220a9874bb365aa84c2ffb3670ac7e9c97a | [
"Apache-2.0"
] | null | null | null | typescript/libs/node_client.py | fongandrew/TypeScript-Sublime-JSX-Plugin | ee22b220a9874bb365aa84c2ffb3670ac7e9c97a | [
"Apache-2.0"
] | null | null | null | import os
import subprocess
import threading
import time
import json
import sublime
import sublime_plugin
from .logger import log
from . import json_helpers
from . import global_vars
# queue module name changed from Python 2 to 3
if int(sublime.version()) < 3000:
import Queue as queue
else:
import queue
| 34.656604 | 119 | 0.532883 |
7f72e22697b47412c2e86ac9d6f29061040b3ceb | 3,980 | py | Python | Calculator.py | NOVAglow/basecalc | 3f40a1d59266239edacd80c3046f78731cba9432 | [
"Apache-2.0"
] | null | null | null | Calculator.py | NOVAglow/basecalc | 3f40a1d59266239edacd80c3046f78731cba9432 | [
"Apache-2.0"
] | null | null | null | Calculator.py | NOVAglow/basecalc | 3f40a1d59266239edacd80c3046f78731cba9432 | [
"Apache-2.0"
] | null | null | null | # Command dictionary, used for the help command and the ? command
cmd_dict = {
"help": "Show help.",
"?": "Get help on a command. 1 argument required: name of the command. Example: \"? dec\"",
"dec": "Convert a number to decimal. 2 arguments required: one is the number itself, second is the base.",
... | 42.795699 | 156 | 0.484673 |
7f72e3f0415454b4d930b826553fdc4856d0a5fd | 1,240 | py | Python | nablapps/com/migrations/0002_committee.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | nablapps/com/migrations/0002_committee.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | nablapps/com/migrations/0002_committee.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
| 38.75 | 149 | 0.620968 |
7f7356dcac238b97ce72ba31683942264a22953e | 543 | py | Python | preprocessing/label_ordianl_encoding.py | Kunal614/Machine-Learning | 26b3e0f3397ddb524c96c5b6c99b173b6fc80501 | [
"MIT"
] | null | null | null | preprocessing/label_ordianl_encoding.py | Kunal614/Machine-Learning | 26b3e0f3397ddb524c96c5b6c99b173b6fc80501 | [
"MIT"
] | null | null | null | preprocessing/label_ordianl_encoding.py | Kunal614/Machine-Learning | 26b3e0f3397ddb524c96c5b6c99b173b6fc80501 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from sklearn.preprocessing import LabelEncoder
df = pd.read_csv('train(2).csv')
df2 = df[["KitchenQual" , "BldgType"]]
#LAbel Encoder
le = LabelEncoder()
data = le.fit_transform(df2["BldgType"])
print(data)
df2["BldType_l_enc"] = data
#count number of class in a column
pr... | 18.1 | 66 | 0.710866 |
7f761293833e609b7440a654c809853058049750 | 306 | py | Python | Files/Exceptions.py | MPCodeWriter21/Member21 | 1db91e24a1e48ea8dbe0b59e0493a6e67a0acc70 | [
"MIT"
] | 2 | 2021-01-31T04:11:20.000Z | 2021-03-01T05:47:34.000Z | Files/Exceptions.py | MPCodeWriter21/Member21 | 1db91e24a1e48ea8dbe0b59e0493a6e67a0acc70 | [
"MIT"
] | null | null | null | Files/Exceptions.py | MPCodeWriter21/Member21 | 1db91e24a1e48ea8dbe0b59e0493a6e67a0acc70 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# Exceptions
# CodeWriter21 | 17 | 50 | 0.833333 |
7f7743c91e5d5443c9e37cdb6ce585839d9a7946 | 493 | py | Python | 01 Basics/011 - Functions and Examples/011 -f- Example-Circle area.py | TheUnicum/CorsoPython | 06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19 | [
"Apache-2.0"
] | null | null | null | 01 Basics/011 - Functions and Examples/011 -f- Example-Circle area.py | TheUnicum/CorsoPython | 06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19 | [
"Apache-2.0"
] | null | null | null | 01 Basics/011 - Functions and Examples/011 -f- Example-Circle area.py | TheUnicum/CorsoPython | 06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19 | [
"Apache-2.0"
] | null | null | null | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2018 Mattia Benedetti
# All rights reserved.
#
# Author: Mattia Benedetti
"""
- FUNCTIONs -
Calculate the area of a circle with radius input by user
-> run on pront command <-
Note : -1 to EXIT!
"""
from math import pi
while True:
... | 15.40625 | 56 | 0.636917 |
7f777087518551b0eec6e2af3c5f3d647f6bd44e | 1,143 | py | Python | install/app_store/tk-framework-shotgunutils/v5.2.4/tests/fixtures/config/bundles/test_engine/engine.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | 4 | 2019-01-11T03:41:28.000Z | 2019-09-12T06:57:17.000Z | bundle_cache/app_store/tk-multi-breakdown/v1.5.0/tests/fixtures/config/bundles/test_engine/engine.py | ColinKennedy/tk-config-default2-respawn | 855fb8033daa549b92615792442f19a7f9c4f55c | [
"Linux-OpenIB"
] | null | null | null | bundle_cache/app_store/tk-multi-breakdown/v1.5.0/tests/fixtures/config/bundles/test_engine/engine.py | ColinKennedy/tk-config-default2-respawn | 855fb8033daa549b92615792442f19a7f9c4f55c | [
"Linux-OpenIB"
] | 2 | 2019-01-10T05:00:18.000Z | 2020-02-15T16:32:56.000Z | # Copyright (c) 2013 Shotgun Software Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to t... | 28.575 | 94 | 0.608924 |
7f7775f0c9376f63e26adcbd22385f3c36c24f47 | 401 | py | Python | gehomesdk/erd/converters/ac/erd_ac_target_temperature_converter.py | willhayslett/gehome | 7e407a1d31cede1453656eaef948332e808484ea | [
"MIT"
] | 17 | 2021-05-18T01:58:06.000Z | 2022-03-22T20:49:32.000Z | gehomesdk/erd/converters/ac/erd_ac_target_temperature_converter.py | willhayslett/gehome | 7e407a1d31cede1453656eaef948332e808484ea | [
"MIT"
] | 29 | 2021-05-17T21:43:16.000Z | 2022-02-28T22:50:48.000Z | gehomesdk/erd/converters/ac/erd_ac_target_temperature_converter.py | willhayslett/gehome | 7e407a1d31cede1453656eaef948332e808484ea | [
"MIT"
] | 9 | 2021-05-17T04:40:58.000Z | 2022-02-02T17:26:13.000Z | from ..abstract import ErdReadWriteConverter
from ..primitives import *
from gehomesdk.erd.values.ac import *
| 28.642857 | 66 | 0.680798 |
7f79226a907e0920d92118e3fb487482028c8ebf | 3,533 | py | Python | src/pyams_utils/session.py | Py-AMS/pyams-utils | 65b166596a8b9f66fb092a69ce5d53ac6675685e | [
"ZPL-2.1"
] | null | null | null | src/pyams_utils/session.py | Py-AMS/pyams-utils | 65b166596a8b9f66fb092a69ce5d53ac6675685e | [
"ZPL-2.1"
] | null | null | null | src/pyams_utils/session.py | Py-AMS/pyams-utils | 65b166596a8b9f66fb092a69ce5d53ac6675685e | [
"ZPL-2.1"
] | null | null | null | #
# Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net>
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRAN... | 34.300971 | 97 | 0.668271 |
7f793f0055dfba9774cbf31309fc492d7d2ba7e5 | 1,543 | py | Python | Picturedom/tests/photo/views/test_category_photos.py | Azzarox/Picturedom | 69d1b77dcdd89d63b12c7c56e25d43955d906b98 | [
"MIT"
] | null | null | null | Picturedom/tests/photo/views/test_category_photos.py | Azzarox/Picturedom | 69d1b77dcdd89d63b12c7c56e25d43955d906b98 | [
"MIT"
] | null | null | null | Picturedom/tests/photo/views/test_category_photos.py | Azzarox/Picturedom | 69d1b77dcdd89d63b12c7c56e25d43955d906b98 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth.models import User
from django.core.files.uploadedfile import SimpleUploadedFile
from django.urls import reverse
from Picturedom.photo.models import Category, Photo
| 41.702703 | 95 | 0.670123 |
7f79688fd9e51a672dbdb62bdcea05a28ae5e3cf | 418 | py | Python | ch_03/task7.py | berchev/python_learning | 5b99065cade53c64b4ede3d0e583c58573ca654c | [
"MIT"
] | null | null | null | ch_03/task7.py | berchev/python_learning | 5b99065cade53c64b4ede3d0e583c58573ca654c | [
"MIT"
] | null | null | null | ch_03/task7.py | berchev/python_learning | 5b99065cade53c64b4ede3d0e583c58573ca654c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
def top_three_avg(grade1, grade2, grade3, grade4):
"""
:param grade1: number
:param grade2: number
:param grade3: number
:param grade4: number
:return: number
"""
total = grade1 + grade2 + grade3 + grade4
top_three = total - min(grade1, grade2, grade3, grade4)... | 23.222222 | 59 | 0.65311 |
7f79c6850dcf67dcb5170d3847119265d3968e00 | 1,062 | py | Python | Diena_8_dictionaries/d8_a16_u1.py | MarisKuz/Python-RTU | 12261d06dc81fa0d98190ca0eb5133d43d517070 | [
"MIT"
] | 8 | 2020-08-31T16:10:54.000Z | 2021-11-24T06:37:37.000Z | Diena_8_dictionaries/d8_a16_u1.py | MarisKuz/Python-RTU | 12261d06dc81fa0d98190ca0eb5133d43d517070 | [
"MIT"
] | 8 | 2021-06-08T22:30:29.000Z | 2022-03-12T00:48:55.000Z | Diena_8_dictionaries/d8_a16_u1.py | MarisKuz/Python-RTU | 12261d06dc81fa0d98190ca0eb5133d43d517070 | [
"MIT"
] | 12 | 2020-09-28T17:06:52.000Z | 2022-02-17T12:12:46.000Z | from collections import Counter
import string
print(string.digits)
get_char_count("suns")
get_char_count("hubba bubba")
get_char_count(599637003)
my_counter = get_char_count("hubba bubba abracadabra")
print(my_counter.most_common())
print(my_counter.get("b"), my_counter["b"])
# def get_char_count(text):
# a=... | 23.086957 | 74 | 0.60452 |
7f7ba3780cb3b133493e7602db98985a3c01774a | 2,441 | py | Python | manage.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | manage.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | manage.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import logging
import os
import sys
from django.core.management import execute_from_command_line
if 'DJANGO_SETTINGS_MODULE' not in os.environ:
if len(sys.argv) > 1 and sys.argv[1] == 'test':
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings_test'
else:
os.environ.setdefau... | 28.383721 | 79 | 0.745596 |
7f7c838f8641a32bb524bcbc48cd108587b15c84 | 1,636 | py | Python | recommenders/recommenders/models/ranking_model.py | hojinYang/tfrs-movierec-serving | bef4f19a8be99cde510d761082de7602151a7d99 | [
"Apache-2.0"
] | 17 | 2020-11-14T07:03:06.000Z | 2022-02-21T00:56:49.000Z | recommenders/recommenders/models/ranking_model.py | hojinYang/tfrs-movierec-serving | bef4f19a8be99cde510d761082de7602151a7d99 | [
"Apache-2.0"
] | null | null | null | recommenders/recommenders/models/ranking_model.py | hojinYang/tfrs-movierec-serving | bef4f19a8be99cde510d761082de7602151a7d99 | [
"Apache-2.0"
] | 1 | 2021-05-20T06:00:51.000Z | 2021-05-20T06:00:51.000Z | from typing import Callable, Dict, Tuple, Text
from recommenders.datasets import Dataset
import numpy as np
import tensorflow as tf
import tensorflow_recommenders as tfrs
from pathlib import Path
SAVE_PATH = Path(__file__).resolve().parents[1] / "weights"
| 32.72 | 103 | 0.630196 |
7f7e5421cd569f07ea56ab7d15d596eb794887ff | 1,687 | py | Python | vulntracker/vulnalert/util.py | jonaustin/advisoryscan | ba452c155f0d478450e0c91de5ea00f404e98616 | [
"MIT"
] | null | null | null | vulntracker/vulnalert/util.py | jonaustin/advisoryscan | ba452c155f0d478450e0c91de5ea00f404e98616 | [
"MIT"
] | null | null | null | vulntracker/vulnalert/util.py | jonaustin/advisoryscan | ba452c155f0d478450e0c91de5ea00f404e98616 | [
"MIT"
] | 1 | 2018-12-06T12:50:52.000Z | 2018-12-06T12:50:52.000Z | """
Utility Functions
"""
### From the Python Cookbook
## Generate a human readable 'random' password
## password will be generated in the form 'word'+digits+'word'
## eg.,nice137pass
## parameters: number of 'characters' , number of 'digits'
## Pradeep Kishore Gowda <pradeep at btbytes.com >
## License : GPL
## Da... | 26.777778 | 98 | 0.567279 |
7f7f165be9eb0ca7213a02ea5cc2e9b6e4418888 | 32,951 | py | Python | api/custom_components/custom_nodes.py | phucnh22/mapintel_dev | 492c077177fe96b2c975c350d9f3bd1dc61691dd | [
"MIT"
] | null | null | null | api/custom_components/custom_nodes.py | phucnh22/mapintel_dev | 492c077177fe96b2c975c350d9f3bd1dc61691dd | [
"MIT"
] | null | null | null | api/custom_components/custom_nodes.py | phucnh22/mapintel_dev | 492c077177fe96b2c975c350d9f3bd1dc61691dd | [
"MIT"
] | null | null | null | """
See https://github.com/deepset-ai/haystack/issues/955 for further context
"""
import os
import logging
from copy import deepcopy
from typing import Dict, Generator, List, Optional, Union
import numpy as np
from elasticsearch.helpers import bulk, scan
from tqdm.auto import tqdm
from haystack.utils import get_batche... | 45.956764 | 149 | 0.603654 |
7f811161ced4a1cebb10b296dd174d5c70763adb | 886 | py | Python | commands.py | rsmelo/speech_test | ad5fc5605c453f6db33c1a725edae03672951eb1 | [
"MIT"
] | null | null | null | commands.py | rsmelo/speech_test | ad5fc5605c453f6db33c1a725edae03672951eb1 | [
"MIT"
] | null | null | null | commands.py | rsmelo/speech_test | ad5fc5605c453f6db33c1a725edae03672951eb1 | [
"MIT"
] | null | null | null | import subprocess
import os
from get_answer import Fetcher
| 30.551724 | 76 | 0.538375 |
7f8164659ef1ccd20d9bceb9a6bfd362f063f6e1 | 2,073 | py | Python | day-3/part1.py | bwheel/AdventOfCode2018 | efd5c59c67453e5388a9d38022890affcb3265cf | [
"MIT"
] | null | null | null | day-3/part1.py | bwheel/AdventOfCode2018 | efd5c59c67453e5388a9d38022890affcb3265cf | [
"MIT"
] | null | null | null | day-3/part1.py | bwheel/AdventOfCode2018 | efd5c59c67453e5388a9d38022890affcb3265cf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import re
regex = "^(#(?P<ClaimId>[0-9]{0,}) @ (?P<FromLeftEdge>[0-9]{0,}),(?P<FromTopEdge>[0-9]{0,}): (?P<Width>[0-9]{0,4})x(?P<Height>[0-9]{0,4}).*)$"
if __name__ == "__main__":
main() | 36.368421 | 205 | 0.593343 |
7f827544721ffdb6dabf9bf15e8a94b059ad6a71 | 736 | py | Python | trampill_backend/mainapp/forms.py | trampill-backend/trampill-backend | 0cf98414d3ecd489657de42cb91431e8bfae945c | [
"MIT"
] | 2 | 2020-03-04T19:03:55.000Z | 2020-03-08T09:10:21.000Z | trampill_backend/mainapp/forms.py | trampill-backend/trampill-backend | 0cf98414d3ecd489657de42cb91431e8bfae945c | [
"MIT"
] | null | null | null | trampill_backend/mainapp/forms.py | trampill-backend/trampill-backend | 0cf98414d3ecd489657de42cb91431e8bfae945c | [
"MIT"
] | 1 | 2020-03-08T10:54:10.000Z | 2020-03-08T10:54:10.000Z | from django import forms
from . import models
| 19.368421 | 38 | 0.475543 |
7f837f1cd2f19a02fd36eec3fc46b1adb29677fc | 3,962 | py | Python | utils.py | vitalProjects/curse_project | 5768d7413db86b1d1054f0ff1102acfbea773fc7 | [
"Apache-2.0"
] | 1 | 2021-03-14T21:38:41.000Z | 2021-03-14T21:38:41.000Z | utils.py | vitalfect/columnsAgent | 5768d7413db86b1d1054f0ff1102acfbea773fc7 | [
"Apache-2.0"
] | null | null | null | utils.py | vitalfect/columnsAgent | 5768d7413db86b1d1054f0ff1102acfbea773fc7 | [
"Apache-2.0"
] | null | null | null | from math import log
import pickle
import numpy
from numpy import array
from math import log10
# beam_search
# markov chain
# n-gram statistic
if __name__ == "__main__":
main_beam_search()
main_markov_chain()
main_ngram()
| 28.919708 | 74 | 0.542655 |
7f840adfb6c161bcb8644492958f69399fd4eb2f | 176 | py | Python | Code/L016/cc.py | iot-makers-code/IoT_prototype | b6524a78756643230cc7073285ae8c2cc7563a4d | [
"MIT"
] | null | null | null | Code/L016/cc.py | iot-makers-code/IoT_prototype | b6524a78756643230cc7073285ae8c2cc7563a4d | [
"MIT"
] | null | null | null | Code/L016/cc.py | iot-makers-code/IoT_prototype | b6524a78756643230cc7073285ae8c2cc7563a4d | [
"MIT"
] | null | null | null | import time
import os
for i in range(50):
print("Update data.")
with open("DATA", "wt") as f:
f.write("DATA, ")
f.write( str(time.time()) )
time.sleep(2)
| 17.6 | 33 | 0.568182 |
7f84dc432af3744e58df34fefd202e89d5feb1eb | 1,125 | py | Python | graphene_protector/django.py | Grenadingue/graphene-protector | f6d8a93100d080923aefe6ad7c0c8a65fb882673 | [
"MIT"
] | null | null | null | graphene_protector/django.py | Grenadingue/graphene-protector | f6d8a93100d080923aefe6ad7c0c8a65fb882673 | [
"MIT"
] | null | null | null | graphene_protector/django.py | Grenadingue/graphene-protector | f6d8a93100d080923aefe6ad7c0c8a65fb882673 | [
"MIT"
] | null | null | null | from django.conf import settings
import graphene
from . import base
| 32.142857 | 70 | 0.633778 |
7f85a86c36b65042bb52fa6bb39cd317aa2eeda3 | 488 | py | Python | 02-FaceDetect.py | amandureja/Important-Content | d222bbd65f3cf7b40a6766905baa160576b6d295 | [
"Apache-2.0"
] | null | null | null | 02-FaceDetect.py | amandureja/Important-Content | d222bbd65f3cf7b40a6766905baa160576b6d295 | [
"Apache-2.0"
] | null | null | null | 02-FaceDetect.py | amandureja/Important-Content | d222bbd65f3cf7b40a6766905baa160576b6d295 | [
"Apache-2.0"
] | null | null | null | import cv2
face_data = cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
cap = cv2.VideoCapture(0)
while True:
ret, img = cap.read()
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = face_data.detectMultiScale(gray, 1.3, 5)
for x,y,w,h in faces:
cv2.rectangle(img, (... | 22.181818 | 73 | 0.610656 |
7f861c4a85065cb19ee05620bdec96aa88122e49 | 12,446 | py | Python | src/models/train_BDRRAA.py | ChristianDjurhuus/RAA | b2eb1db527bcb09f35598c2bbf8dff2689ad599b | [
"MIT"
] | 1 | 2022-03-16T16:09:22.000Z | 2022-03-16T16:09:22.000Z | src/models/train_BDRRAA.py | ChristianDjurhuus/RAA | b2eb1db527bcb09f35598c2bbf8dff2689ad599b | [
"MIT"
] | null | null | null | src/models/train_BDRRAA.py | ChristianDjurhuus/RAA | b2eb1db527bcb09f35598c2bbf8dff2689ad599b | [
"MIT"
] | 1 | 2022-02-18T17:10:27.000Z | 2022-02-18T17:10:27.000Z | import torch
import torch.nn as nn
import matplotlib.pyplot as plt
import torch.nn.functional as F
from sklearn import metrics
import seaborn as sns
from torch_sparse import spspmm
import numpy as np
from src.visualization.visualize import Visualization
from src.features.link_prediction import Link_prediction
if __n... | 48.807843 | 187 | 0.625422 |
7f869c0af68af9c1d7d792cbc21f501afee6f342 | 185 | py | Python | testName.py | zafar21/Automatic-Form-Filler | 4cb7f7d62e5b0927309eb17411ffd14343fcdeb4 | [
"MIT"
] | null | null | null | testName.py | zafar21/Automatic-Form-Filler | 4cb7f7d62e5b0927309eb17411ffd14343fcdeb4 | [
"MIT"
] | null | null | null | testName.py | zafar21/Automatic-Form-Filler | 4cb7f7d62e5b0927309eb17411ffd14343fcdeb4 | [
"MIT"
] | null | null | null | import pyautogui
import time
pyautogui.click(300, 400)
pyautogui.hotkey('ctrl', 'f')
time.sleep(.200)
pyautogui.typewrite('email')
time.sleep(.200)
pyautogui.locateOnScreen('mail.png')
| 20.555556 | 36 | 0.767568 |
7f8755703317e0969ef5e60e9a3552a3020e20c1 | 1,263 | py | Python | Frame/GameView.py | FCWYzzr/py-entertain | ddc5b5df9962a4b51d15bff805961f0ed151fe23 | [
"MIT"
] | null | null | null | Frame/GameView.py | FCWYzzr/py-entertain | ddc5b5df9962a4b51d15bff805961f0ed151fe23 | [
"MIT"
] | null | null | null | Frame/GameView.py | FCWYzzr/py-entertain | ddc5b5df9962a4b51d15bff805961f0ed151fe23 | [
"MIT"
] | null | null | null | from pygame.display import set_mode, update, set_caption
from pygame.time import Clock
from pygame import init, quit, QUIT
from pygame.event import get as events
from GameStage import GameStages
from sys import exit as end
| 27.456522 | 62 | 0.511481 |
7f87609b319d11eb19d09b2679873ad7399e930b | 1,268 | py | Python | test/test_sources.py | PSD79/avaland | 142547e48b1728db6efe8a6b9f02af18a1b42bc5 | [
"MIT"
] | 27 | 2020-05-12T22:02:57.000Z | 2021-07-27T10:53:24.000Z | test/test_sources.py | PSD79/avaland | 142547e48b1728db6efe8a6b9f02af18a1b42bc5 | [
"MIT"
] | null | null | null | test/test_sources.py | PSD79/avaland | 142547e48b1728db6efe8a6b9f02af18a1b42bc5 | [
"MIT"
] | 2 | 2020-05-13T18:40:03.000Z | 2020-05-14T15:01:07.000Z | import inspect
import unittest
from avaland import sources
from avaland import MusicBase
from avaland.search import SearchResult
class_members = inspect.getmembers(sources, inspect.isclass)
for i in class_members:
if issubclass(i[1], MusicBase) and i[1] != MusicBase:
globals()[i[0]] = _create_class... | 24.862745 | 60 | 0.702681 |
7f8763673577a30d433ba355c7239e3606ba5069 | 236 | py | Python | vspkgenerator/vanilla/python/__overrides/nume.override.py | pdumais/vspkgenerator | b8fff474f4ef3d8a4278f9c116df01d057c56995 | [
"BSD-3-Clause"
] | 2 | 2015-10-10T08:59:39.000Z | 2015-10-22T09:33:01.000Z | vspkgenerator/vanilla/python/__overrides/nume.override.py | rajeshnokia/vspkgenerator | b8fff474f4ef3d8a4278f9c116df01d057c56995 | [
"BSD-3-Clause"
] | 16 | 2015-11-05T13:15:30.000Z | 2019-09-24T23:48:54.000Z | vspkgenerator/vanilla/python/__overrides/nume.override.py | pdumais/vspkgenerator | b8fff474f4ef3d8a4278f9c116df01d057c56995 | [
"BSD-3-Clause"
] | 13 | 2015-11-18T08:03:44.000Z | 2020-12-24T03:39:29.000Z | def save(self, as_async=False, callback=None, **kwargs):
""" """
if 'async' in kwargs.keys() and not as_async:
as_async = kwargs['async']
super(NUMe, self).save(as_async=as_async, callback=callback, encrypted=False)
| 39.333333 | 81 | 0.665254 |
7f88a5b5649c62584bb4e5058103dfe3ee699bde | 382 | py | Python | db.py | dcronqvist/restberry-api | 35a2698ae946fc392e5e7d56dbc22b0719d6f5b6 | [
"MIT"
] | 1 | 2020-09-18T23:17:27.000Z | 2020-09-18T23:17:27.000Z | db.py | dcronqvist/restberry-api | 35a2698ae946fc392e5e7d56dbc22b0719d6f5b6 | [
"MIT"
] | 7 | 2020-09-29T14:21:24.000Z | 2021-06-15T22:04:47.000Z | db.py | dcronqvist/restberry-api | 35a2698ae946fc392e5e7d56dbc22b0719d6f5b6 | [
"MIT"
] | null | null | null | from pymongo import MongoClient
import config as config
db_conn = MongoClient(config.get_setting("mongo-db-conn", "null"))
db = db_conn.restberry_api
coll_trans = db.transactions
coll_accounts = db.accounts
def stringify_ids(docs):
"""
Expects docs to be a list of documents, not a cursor.
"""
for doc... | 23.875 | 66 | 0.693717 |
7f88d3f2996bb1d9a7bdfe7b4b07037563dd2710 | 3,847 | py | Python | Udacity_Fullstack_Nanodegree/vagrant/catalog/project.py | maistrovas/My-Courses-Solutions | 7a74add8e853f6c609d1f2656492e1c7c676a7e9 | [
"MIT"
] | null | null | null | Udacity_Fullstack_Nanodegree/vagrant/catalog/project.py | maistrovas/My-Courses-Solutions | 7a74add8e853f6c609d1f2656492e1c7c676a7e9 | [
"MIT"
] | null | null | null | Udacity_Fullstack_Nanodegree/vagrant/catalog/project.py | maistrovas/My-Courses-Solutions | 7a74add8e853f6c609d1f2656492e1c7c676a7e9 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, url_for, request, redirect, flash, jsonify
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
import datetime
from database_setup import Base, Restaurant, MenuItem
app = Flask(__name__)
engine = create_engine('sqlite:///restaurantmenu.db')
Base.metada... | 31.793388 | 84 | 0.710164 |
7f88fb7cac6580e430925045266e0c4ac360b0d2 | 213 | py | Python | ppci/graph/__init__.py | jsdelivrbot/ppci-mirror | 67195d628275e2332ceaf44c9e13fc58d0877157 | [
"BSD-2-Clause"
] | null | null | null | ppci/graph/__init__.py | jsdelivrbot/ppci-mirror | 67195d628275e2332ceaf44c9e13fc58d0877157 | [
"BSD-2-Clause"
] | null | null | null | ppci/graph/__init__.py | jsdelivrbot/ppci-mirror | 67195d628275e2332ceaf44c9e13fc58d0877157 | [
"BSD-2-Clause"
] | null | null | null | """ Graph algorithms module.
"""
from .graph import Graph, Node
from .digraph import DiGraph, DiNode
from .maskable_graph import MaskableGraph
__all__ = ('Graph', 'Node', 'DiGraph', 'DiNode', 'MaskableGraph')
| 19.363636 | 65 | 0.723005 |
7f89d6f19aa8fe7e4a2b47ac44b71ea6a1395fce | 19,122 | py | Python | garnett/shapes.py | glotzerlab/garne | f9cb7bad391299e28feb4010eb77447fdc4512cb | [
"BSD-3-Clause"
] | 4 | 2019-07-30T00:12:44.000Z | 2020-03-03T19:58:34.000Z | garnett/shapes.py | glotzerlab/garne | f9cb7bad391299e28feb4010eb77447fdc4512cb | [
"BSD-3-Clause"
] | 62 | 2019-07-29T20:05:46.000Z | 2022-02-16T15:22:01.000Z | garnett/shapes.py | glotzerlab/garne | f9cb7bad391299e28feb4010eb77447fdc4512cb | [
"BSD-3-Clause"
] | 2 | 2020-03-03T19:59:09.000Z | 2021-03-22T14:48:56.000Z | # Copyright (c) 2020 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the BSD 3-Clause License.
"""Abstract shape definitions used to read/write particle shapes."""
import json
import logging
import numpy as np
__all__ = [
'FallbackShape',
'Shape',
'Spher... | 31.65894 | 108 | 0.563278 |
7f89ef2283ab13bb046619397b197275189da323 | 24,174 | py | Python | swagger_client/apis/organization_api.py | ESIPFed/corpy | e1eec577f15934c6969784c4025d2c29eb7c32ca | [
"Apache-2.0"
] | null | null | null | swagger_client/apis/organization_api.py | ESIPFed/corpy | e1eec577f15934c6969784c4025d2c29eb7c32ca | [
"Apache-2.0"
] | null | null | null | swagger_client/apis/organization_api.py | ESIPFed/corpy | e1eec577f15934c6969784c4025d2c29eb7c32ca | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
ORR API Documentation
The main ORR documentation is located at: https://mmisw.org/orrdoc/ __Please note__: - The ORR API is approaching a stable version but is still work in progress. Please [let us know](https://github.com/mmisw/mmiorr-docs/issues) if you have any questions or sugges... | 43.090909 | 1,710 | 0.577108 |
7f8b06b9284f0d519a5edeab7410a71507203f87 | 7,146 | py | Python | cre8/layout.py | dekarrin/cre8orforge | b93801da140ed245d4a0f7129bde0d3e655752c9 | [
"MIT"
] | null | null | null | cre8/layout.py | dekarrin/cre8orforge | b93801da140ed245d4a0f7129bde0d3e655752c9 | [
"MIT"
] | 4 | 2021-12-06T14:06:34.000Z | 2021-12-21T13:12:17.000Z | cre8/layout.py | dekarrin/cre8mancer | b93801da140ed245d4a0f7129bde0d3e655752c9 | [
"MIT"
] | null | null | null | import math
from .format import format_timer, pad_middle, pad_right, pad_left
from . import format
from .activities import Activity, OwnedActivities
DefaultTextCardWidth = 65
_RightColumnWidth = 14
def progress_bar(
width: int,
progress: float,
end_char: str = '|',
fill_char: str = '-',
empty_cha... | 42.790419 | 106 | 0.623566 |
7f8d5a04fa22a72def6576019a66f48aed48a68f | 1,831 | py | Python | roblox/utilities/shared.py | Boegie19/ro.py | 68b8acb506ab3057670168434fbf90ea0d05943f | [
"MIT"
] | null | null | null | roblox/utilities/shared.py | Boegie19/ro.py | 68b8acb506ab3057670168434fbf90ea0d05943f | [
"MIT"
] | null | null | null | roblox/utilities/shared.py | Boegie19/ro.py | 68b8acb506ab3057670168434fbf90ea0d05943f | [
"MIT"
] | 1 | 2021-06-28T14:57:39.000Z | 2021-06-28T14:57:39.000Z | """
This module contains the ClientSharedObject, which is shared between the client and all objects it generates.
"""
from __future__ import annotations
from typing import TYPE_CHECKING, Optional
from .requests import Requests
from .url import URLGenerator
if TYPE_CHECKING:
from ..client import Client
fro... | 34.54717 | 109 | 0.713271 |
7f8dc9d86f37042f9bf2a72c821d1fb648b7c645 | 3,281 | py | Python | app.py | gakunkel/sqlalchemy-challenge | f7fa8ae4e7d5f4ed77446ddd57b5695e8ca69947 | [
"MIT"
] | null | null | null | app.py | gakunkel/sqlalchemy-challenge | f7fa8ae4e7d5f4ed77446ddd57b5695e8ca69947 | [
"MIT"
] | null | null | null | app.py | gakunkel/sqlalchemy-challenge | f7fa8ae4e7d5f4ed77446ddd57b5695e8ca69947 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import datetime as dt
import pandas as pd
import numpy as np
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
# Establishing a connection
e... | 28.530435 | 121 | 0.682414 |
7f8e9b2d12abccfba6d15231cb1a8950c8371c66 | 6,330 | py | Python | src/Model.py | colombelli/whatsapp-nlp | 64b54b35a2fefc7bed76e4c16841202252ea8a96 | [
"MIT"
] | 2 | 2021-05-31T16:58:15.000Z | 2021-10-02T23:21:01.000Z | src/Model.py | colombelli/whatsapp-nlp | 64b54b35a2fefc7bed76e4c16841202252ea8a96 | [
"MIT"
] | null | null | null | src/Model.py | colombelli/whatsapp-nlp | 64b54b35a2fefc7bed76e4c16841202252ea8a96 | [
"MIT"
] | null | null | null | import tensorflow as tf
from tqdm import tqdm
from DataProcessing import DataProcessing
# Based on MIT's introduction to Deep Learning course | 38.363636 | 108 | 0.615166 |
7f8ec6323597a615a6b8ab14e3b12a4175f2d4c5 | 1,989 | py | Python | ionyweb/page_app/page_agenda/tests.py | makinacorpus/ionyweb | 2f18e3dc1fdc86c7e19bae3778e67e28a37567be | [
"BSD-3-Clause"
] | 4 | 2015-09-28T10:07:39.000Z | 2019-10-18T20:14:07.000Z | ionyweb/page_app/page_agenda/tests.py | makinacorpus/ionyweb | 2f18e3dc1fdc86c7e19bae3778e67e28a37567be | [
"BSD-3-Clause"
] | 1 | 2021-03-19T21:41:33.000Z | 2021-03-19T21:41:33.000Z | ionyweb/page_app/page_agenda/tests.py | makinacorpus/ionyweb | 2f18e3dc1fdc86c7e19bae3778e67e28a37567be | [
"BSD-3-Clause"
] | 1 | 2017-10-12T09:25:19.000Z | 2017-10-12T09:25:19.000Z | # -*- coding: utf-8 -*-
import datetime
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.sites.models import Site
from ionyweb.website.models import WebSite
from ionyweb.page.models import Page
from ionyweb.page_app.page_agenda.models import PageApp_Agenda, Event
from ... | 33.711864 | 82 | 0.609351 |
7f8f2d9c3b262383ed821e25ae5cb5c7380f6cde | 12,256 | py | Python | test/test_decorator.py | dcartman/pygame-menu | 52a823b9121aadd6893fb878150d613ab516fcac | [
"MIT"
] | null | null | null | test/test_decorator.py | dcartman/pygame-menu | 52a823b9121aadd6893fb878150d613ab516fcac | [
"MIT"
] | null | null | null | test/test_decorator.py | dcartman/pygame-menu | 52a823b9121aadd6893fb878150d613ab516fcac | [
"MIT"
] | null | null | null | """
pygame-menu
https://github.com/ppizarror/pygame-menu
TEST DECORATOR
Decorator API.
"""
__all__ = ['DecoratorTest']
from test._utils import MenuUtils, surface, TEST_THEME, BaseTest
import copy
import pygame
import pygame_menu
import timeit
# Configure the tests
TEST_TIME_DRAW = False
| 35.941349 | 116 | 0.593995 |
7f8f89b4e07ea9a13fed5571bee4f061b94852e5 | 1,380 | py | Python | PythonLearn/pandas/basic2.py | OKKyu/PythonLearn | 48dc4cc2a1a34d99b09f8d37a5566d448dcf987c | [
"MIT"
] | null | null | null | PythonLearn/pandas/basic2.py | OKKyu/PythonLearn | 48dc4cc2a1a34d99b09f8d37a5566d448dcf987c | [
"MIT"
] | null | null | null | PythonLearn/pandas/basic2.py | OKKyu/PythonLearn | 48dc4cc2a1a34d99b09f8d37a5566d448dcf987c | [
"MIT"
] | null | null | null | #!python3
# -*- coding:utf-8 -*-
import numpy as np
import pandas as pd
import urllib.parse
'''
This soure code is a sample of using pandas library.
Reading from external file to DataFrame.
'''
#Method of CSV Reading
df = pd.read_csv("./201704health.csv", encoding="utf-8")
print("read csv")
print(df.head(4))
prin... | 30.666667 | 94 | 0.741304 |
7f8fedeabf571a4542f1688e973043c53b7ef3b3 | 8,279 | py | Python | libs/helpers.py | lbahtarliev/MalwareScan | 495e2fd3ceb3498c651ddd360a4cc2eb9571a10b | [
"Unlicense"
] | 3 | 2018-12-06T03:09:16.000Z | 2021-02-25T01:13:05.000Z | libs/helpers.py | lbahtarliev/MalwareScan | 495e2fd3ceb3498c651ddd360a4cc2eb9571a10b | [
"Unlicense"
] | 9 | 2018-12-10T18:44:14.000Z | 2019-02-06T21:13:31.000Z | libs/helpers.py | lbahtarliev/MalwareScan | 495e2fd3ceb3498c651ddd360a4cc2eb9571a10b | [
"Unlicense"
] | 4 | 2019-06-04T13:46:24.000Z | 2021-02-25T02:23:50.000Z | # -*- coding: utf-8 -*-
import os
import re
import shutil
import sys
import time
from datetime import datetime as dtime
from datetime import timedelta as tdelta
from hashlib import md5, sha1, sha256
from dateutil.parser import parse as dtparser
# Some RegExes
re_md5 = re.compile("^([0-9]|[a-f]){32}$", re.I)
re_sha1 = ... | 30.549815 | 113 | 0.578452 |
7f933adecbe017e770aa506f0488152882940d45 | 12,364 | py | Python | pyaviso/cli_aviso.py | mpejcoch/aviso | 250b5646220fae85725278b3ca80fed4e15a103a | [
"Apache-2.0"
] | 6 | 2021-02-03T17:55:05.000Z | 2022-02-20T08:05:42.000Z | pyaviso/cli_aviso.py | mpejcoch/aviso | 250b5646220fae85725278b3ca80fed4e15a103a | [
"Apache-2.0"
] | 1 | 2021-04-26T14:42:39.000Z | 2021-04-26T14:42:39.000Z | pyaviso/cli_aviso.py | mpejcoch/aviso | 250b5646220fae85725278b3ca80fed4e15a103a | [
"Apache-2.0"
] | 2 | 2021-02-09T15:07:41.000Z | 2021-08-13T09:55:30.000Z | # (C) Copyright 1996- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernment... | 32.882979 | 120 | 0.663054 |
7f93d54e8a447a4241851eb2750b969c33fadc5a | 1,726 | py | Python | utils/registrar.py | glusa8/navygem | be437f3ce89d2edc5a565d7903e80171abec6929 | [
"MIT"
] | 1 | 2018-05-17T13:05:06.000Z | 2018-05-17T13:05:06.000Z | utils/registrar.py | glusa8/navygem | be437f3ce89d2edc5a565d7903e80171abec6929 | [
"MIT"
] | null | null | null | utils/registrar.py | glusa8/navygem | be437f3ce89d2edc5a565d7903e80171abec6929 | [
"MIT"
] | null | null | null | from navygem.settings import BASE_DIR
import glob
import json
import os
def load_class(class_name):
return load_from
| 33.192308 | 96 | 0.61124 |
7f94213e1a3c5afa69993b7cc233426e39793984 | 171 | py | Python | 280/solution.py | Pedram-Parsian/quera-answers | bbdbe613266358482c394f6f80731a23c3ac738d | [
"MIT"
] | 1 | 2020-03-17T21:18:59.000Z | 2020-03-17T21:18:59.000Z | 280/solution.py | Pedram-Parsian/quera-answers | bbdbe613266358482c394f6f80731a23c3ac738d | [
"MIT"
] | null | null | null | 280/solution.py | Pedram-Parsian/quera-answers | bbdbe613266358482c394f6f80731a23c3ac738d | [
"MIT"
] | null | null | null | inp = map(int, [input() for _ in range(3)])
square = sorted([i ** 2 for i in inp], reverse=True)
if square[0] == sum(square[1:]):
print('YES')
else:
print('NO')
| 19 | 52 | 0.573099 |
7f956d5f8233b1c96361f43fdbe16032f4c6826a | 4,412 | py | Python | rank_predictor/rank_predictor/model/graph_only_models.py | Simsso/Vision-Based-Page-Rank-Estimation | 424d80031501701ebe1ab1473b0fb09ccd6f6453 | [
"MIT"
] | 3 | 2019-05-27T05:59:40.000Z | 2021-06-03T20:10:49.000Z | rank_predictor/rank_predictor/model/graph_only_models.py | Simsso/Vision-Based-Page-Rank-Estimation | 424d80031501701ebe1ab1473b0fb09ccd6f6453 | [
"MIT"
] | null | null | null | rank_predictor/rank_predictor/model/graph_only_models.py | Simsso/Vision-Based-Page-Rank-Estimation | 424d80031501701ebe1ab1473b0fb09ccd6f6453 | [
"MIT"
] | 1 | 2020-02-18T16:27:30.000Z | 2020-02-18T16:27:30.000Z | from copy import deepcopy
import torch
from graph_nets.data_structures.edge import Edge
from graph_nets.functions.aggregation import AvgAggregation, MaxAggregation
from graph_nets.block import GNBlock
from graph_nets.data_structures.graph import Graph
from torch import nn, Tensor
from graph_nets.functions.update impo... | 31.741007 | 118 | 0.625793 |
7f96bdf44dc60de6bbd40effad99317503200d41 | 620 | py | Python | hs_core/migrations/0054_auto_20201028_1432.py | hydroshare/hydroshare | bf9888bbe61507aff070b1dfcec2fdec1921468d | [
"BSD-3-Clause"
] | 178 | 2015-01-08T23:03:36.000Z | 2022-03-03T13:56:45.000Z | hs_core/migrations/0054_auto_20201028_1432.py | hydroshare/hydroshare | bf9888bbe61507aff070b1dfcec2fdec1921468d | [
"BSD-3-Clause"
] | 4,125 | 2015-01-01T14:26:15.000Z | 2022-03-31T16:38:55.000Z | hs_core/migrations/0054_auto_20201028_1432.py | hydroshare/hydroshare | bf9888bbe61507aff070b1dfcec2fdec1921468d | [
"BSD-3-Clause"
] | 53 | 2015-03-15T17:56:51.000Z | 2022-03-17T00:32:16.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-10-28 14:32
from __future__ import unicode_literals
from django.db import migrations, models
| 29.52381 | 208 | 0.627419 |
7f971fac68abf046c70d17ff216b21ac6dd5fe7d | 3,337 | py | Python | plotting.py | oytundemirbilek/ReMI-Net-Star | fd7412e08bbdc1ee66053f17e4e781bdf319cd73 | [
"MIT"
] | 1 | 2021-12-13T11:16:59.000Z | 2021-12-13T11:16:59.000Z | plotting.py | oytundemirbilek/ReMI-Net-Star | fd7412e08bbdc1ee66053f17e4e781bdf319cd73 | [
"MIT"
] | null | null | null | plotting.py | oytundemirbilek/ReMI-Net-Star | fd7412e08bbdc1ee66053f17e4e781bdf319cd73 | [
"MIT"
] | 1 | 2022-01-03T16:20:14.000Z | 2022-01-03T16:20:14.000Z | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import networkx as nx
from matplotlib._color_data import BASE_COLORS
from nxviz.api import CircosPlot
| 37.920455 | 144 | 0.641594 |