blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d626c9dbdb41c344f8870b691bab05f897edafa | 5864e86954a221d52d4fa83a607c71bacf201c5a | /dogma/items/fittableDogmaItem.py | 8e70cbc858bb571171c14d42eeafc1040058e7eb | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,769 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\dogma\items\fittableDogmaItem.py
from dogma.dogmaLogging import *
from baseDogmaItem import BaseDogmaItem
from ccpProfile import TimedFunction
import weakref
class FittableDogmaItem(BaseDogmaItem):
def __init__(self, *arg... | [
"le02005@163.com"
] | le02005@163.com |
f1b17665c3b46dd3f018e50c818700cf0e574a2f | 73d361e2cd52cc647d39660e1f7cf31f0fea6b0f | /Regression/SimpleLinearRegression/SalaryPrediction.py | 06e09ef8db3315144bf9de01a8ac9e5ad50460f3 | [] | no_license | Aniruddha10/UdemyPythonML | 0d1ac434bcb2c8cd5bb6124c4648b2b16126449c | 3d33de775d72e51ee6e47483882c10d9c3f2d43c | refs/heads/master | 2022-11-24T17:05:42.777851 | 2020-07-25T16:06:13 | 2020-07-25T16:06:13 | 282,477,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 15 19:19:14 2020
@author: chakanc
"""
from sklearn import linear_model
import matplotlib.pyplot as mp
import numpy as np
#regressor = ""
#train SLR model on Training set
def trainModel(X_train, y_train):
#print(X_train)
#print(y_train)
regressor = linear_mo... | [
"chakanc@MFCGD.COM"
] | chakanc@MFCGD.COM |
ed74b4fbe497a9c5a4850fc2f58b830b5aef33aa | 87f6f561408c5fb9dd93a4e95b39336a8fff843d | /kakuro.py | bd57b5ada1dd0bbc94e2365e58c3002d09f63929 | [] | no_license | prolomova/kakuro | ee6d07b2e188df6fdd335a39e34fd51be0f2e9c1 | a74c4a5b4d8353bffe7f8207def7f9818d5e2f95 | refs/heads/master | 2020-04-07T03:28:52.904556 | 2018-11-17T19:31:40 | 2018-11-17T19:31:40 | 158,016,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,254 | py | #!/usr/bin/env python3
"""
Реализация решателя головоломки какуро
"""
import sys
import re
import argparse
import slover
def main(args):
'''
Главная функция
'''
parser = argparse.ArgumentParser()
parser.add_argument('-c', '--count', required=False, type=int,
help='This arg... | [
"prolomova2012@yandex.ru"
] | prolomova2012@yandex.ru |
7c7405d5b792cd6f20e89b0b56489b366c8baecf | ba730380c8406b234202a6a19a9e5f01f6b66d25 | /django/crud2/articles/views.py | 4a9f35242edeef84e1211c795529a801b810b62b | [] | no_license | ssabum/note | 3b0fd891ab7053997c7978298635e599b42a7659 | 47354aa55a87813dab66f2ff7a930f5313bffe7a | refs/heads/master | 2023-06-19T03:03:02.398976 | 2021-07-09T15:09:42 | 2021-07-09T15:09:42 | 331,743,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | from django.shortcuts import render, redirect
from .models import Article
# Create your views here.
# READ
def index(request):
# 모든 게시글 조회
# articles = Article.objects.all()[::-1] # 파이썬 언어로 해결
articles = Article.objects.order_by('-updated_at') # DB 단에서 해결, 수정순으로 정렬
context = {
'articles': artic... | [
"qqq960909@likelion.org"
] | qqq960909@likelion.org |
43ca51fd48fed5140fdc3d3cd9190c260124a9b0 | 7298cc9d339852fac5afc598c30ac60c3f752af8 | /python/tictactoe.py | 1ed8cc57bf4fb9ff09fb7e77227942b834992da0 | [
"MIT"
] | permissive | benshanahan1/coderepo | c94d6ade7a29324877633cf0591d12c775bff57a | d2389a764fa8936f638e556779dabd8b8febe390 | refs/heads/master | 2020-12-30T23:59:45.403106 | 2018-03-05T15:52:53 | 2018-03-05T15:52:53 | 80,560,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,880 | py | #!/usr/bin/env python
# Simple Two-Player / Computer AI TicTacToe Game in Python.
# Code by Benjamin Shanahan, 7 July 2015.
#
# Note that there is currently no checking for a TIE-GAME condition.
class TicTacToe(object):
def __init__(self, p1_name, p2_name):
# Define defaults for resetting the game when done
sel... | [
"benshanahan1@gmail.com"
] | benshanahan1@gmail.com |
7dde14eff394ecd809ab6474ad19919b9767a399 | 68666fa5932e3fb6f6f26155d02e932e7ff6de3c | /ECMA_python3.5/myMedicalModel/eval_attention.py | a3acdbf98cffba581587b427bdbde81aa29a4287 | [] | no_license | yaopanyaopan/Chinese_medical | 76f40200bd9f8969e80f6bc9644e352cde2daf63 | df3fe00247a7b9e988f4f0baa0d371f29ae12b0e | refs/heads/master | 2022-02-19T02:06:24.218300 | 2019-07-23T02:45:04 | 2019-07-23T02:45:04 | 198,338,635 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,586 | py | # coding=utf-8
import re
import os
import numpy as np
import tensorflow as tf
import tflearn
from sklearn.utils import shuffle
from myMedicalModel.myModelNolstm_HH import SelfAttentive
from reader import load_csv, VocabDict
import encode_window
import diceEval
import data_process
from matplotlib import py... | [
"2968186105@qq.com"
] | 2968186105@qq.com |
a1175788b89b96596e5c65524f893947f9cd6f68 | 59a27d1244c372d72e2124e634330a62a40d504b | /aoc_21/01.py | f6ccdcdc71177bdf6c719dba89689ecaf96ef9d1 | [] | no_license | rliffredo/advent-of-code | 2037813d6765a2c650c240190267c944e4d5148d | 3dccb51e252d0e0cc2f627476db69a38be7686de | refs/heads/master | 2022-12-22T05:02:14.708180 | 2022-12-15T08:44:58 | 2022-12-15T08:44:58 | 160,335,685 | 0 | 0 | null | 2021-05-13T21:07:08 | 2018-12-04T09:53:42 | Python | UTF-8 | Python | false | false | 1,037 | py | from itertools import tee
from common import read_data, pairwise
def parse_data():
raw_numbers = read_data("01", True)
return [int(n) for n in raw_numbers]
def part_1(print_result: bool = True) -> int:
depths = parse_data()
measurement_pairs = list(pairwise(depths))
increased_pairs = [p for p i... | [
"rliffredo@outlook.com"
] | rliffredo@outlook.com |
1977596321f6c2fbccea688545e4eed977f15378 | 85a1c8f96b602d8b2646e315524231d39b643045 | /hello_world.py | 1224e4520b4eda8478b56a97bc4556ff8780ab0d | [] | no_license | ics3ur-1-2020/ICS3U-Unit-1-03-Python | eb05c72b667a464dfdc1685b95910360cef2427e | 06390c9d7591b42adfc579934d3ecc4a0afc2a42 | refs/heads/main | 2023-01-23T09:56:27.253541 | 2020-11-20T16:48:05 | 2020-11-20T16:48:05 | 314,608,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python3
# Created by: Mr. Coxall
# Created on: June 2019
# This is the "Hello, World!" program, but with nice style
def main():
# this function prints to console
print("Hello, World!")
if __name__ == "__main__":
main()
| [
"ubuntu@ip-172-31-55-204.ec2.internal"
] | ubuntu@ip-172-31-55-204.ec2.internal |
c1ae9e6fb753e4652eee299f5a2816c6ddc0a51f | 514e85ae034b7782ff29dcff082a888d80a3dc8f | /urlshorter/migrations/0001_initial.py | 6a3763f321e156bc1ee0cb592f33697ff01fd0bf | [] | no_license | CossackDex/UrlShorterDjango | 48785adda7565104d20ce4ad184a7f42618244d6 | fd778acb0f030f3458aea84dfdd112c2b4b15ce7 | refs/heads/main | 2023-05-09T14:53:49.140333 | 2021-06-03T14:42:13 | 2021-06-03T14:42:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | # Generated by Django 3.2.4 on 2021-06-03 01:00
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UrlShortener',
fields=[
('id', models.BigAu... | [
"242589@student.pwr.edu.pl"
] | 242589@student.pwr.edu.pl |
b07204cd7cc358a55e848dff2fb18b8ff76f36b9 | 06eef71f28a395cbb9b2a6b3bb6ba8138318d054 | /projectorGeom.py | 18f3c0b1374365a8392ac20e5133d6a63aa83077 | [] | no_license | Rookieokky/3d-display | c4408e64d2c42f8203aa5c54d4551d8a85bbf685 | 49dad5a539531b0f126fde95cc6e97d07b014a59 | refs/heads/master | 2021-05-30T15:54:09.315334 | 2014-07-01T04:18:44 | 2014-07-01T04:18:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py |
def computeGrid(scn, showGrid, size):
import pointInside, makeCube, gridGeom, bpy, mathutils, imp
imp.reload(pointInside)
imp.reload(makeCube)
imp.reload(gridGeom)
xmax = size[0]
ymax = size[1]
zmax = size[2]
table= [ [ 0 for i in range(xmax) ] for j in range(ymax) ]
# rol, col
for d1 in range... | [
"babraham@appnexus.com"
] | babraham@appnexus.com |
8d8ddb865c6a12401cc24112051255881181248e | f4f5d98101db7baf9703be077615383b831c35d8 | /setup.py | f00a4b6116f81b93954694c531ecc2ff819e8e74 | [
"MIT"
] | permissive | TrendingTechnology/PyYouTube-1 | 23099fd1b825f226cabf2e0f50112e1b3f53346b | 774213412210ab03adf11eb8b38906b0f3de5ee6 | refs/heads/main | 2023-08-17T13:50:03.035784 | 2021-09-15T09:11:31 | 2021-09-15T09:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | import pathlib
import setuptools
def read(file: str) -> list:
with open(file, encoding="utf-8") as r:
return [i.strip() for i in r]
file = pathlib.Path(__file__).parent
README = (file / "README.md").read_text()
setuptools.setup(
name='PyYouTube',
version="1.0.7",
author="mrlokaman",
au... | [
"noreply@github.com"
] | TrendingTechnology.noreply@github.com |
03d32acc40385f42ae5c0d2d04765bfd79f49c6e | c71eefb18081ffa79ed63aa1a0d762ec49948cb8 | /blog/migrations/0004_auto_20201110_1314.py | 53bf3195b4127687b9ede056d84c5fd21aa614fd | [] | no_license | gitjeet/Blog_Site_Using_Django | 6532cdf25f0f7db941deb3d905c2bd83d2fcb19f | bf69c81d4cc1c5004827905d42b7192128d92b56 | refs/heads/main | 2023-01-29T22:46:58.957503 | 2020-12-03T17:55:54 | 2020-12-03T17:55:54 | 318,273,824 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # Generated by Django 3.1.2 on 2020-11-10 07:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_auto_20201110_1019'),
]
operations = [
migrations.RenameField(
model_name='comment',
old_name='create_date',
... | [
"vayuabhijeet@gmail.com"
] | vayuabhijeet@gmail.com |
e9a17f8c7e0790a3636e026ef43c3c2087b22714 | 49ce91d1058f98088350a262700aeb36673800f2 | /aula39/aula39.py | a1a880a7a21687070682de71c6f65175b4c94fdc | [] | no_license | adrxA/python | fc838d96518e5e4dd5e6bbdc5420cadf2f0882e2 | 31488e812af54c30117e7027b2b387bf9b4b78cc | refs/heads/master | 2023-06-22T14:34:41.267845 | 2021-07-19T03:58:11 | 2021-07-19T03:58:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import pandas as pd
alunos = {
"Nome": ['Ricardo', 'Pedro', 'Roberto', 'Carlos'],
"Nota": [4, 7, 9, 9.7],
"Aprovado":['Não', 'Sim', 'Sim', 'Sim']
}
dataframe = pd.DataFrame(alunos)
print(dataframe.head())
#Transformou o dicionário em dataframe
objeto1 = pd.Series([1,2,4,6,7,9])
print(objeto1)
matriz = [... | [
"leovasc5@hotmail.com"
] | leovasc5@hotmail.com |
34b6d2825eff4be4f5a6eeea5fb44f5a8c0c54d4 | 69bd4cbf6660bb75131b89b1faa2668dfdd55da5 | /7. Imagenes/src/imagenes_TEST.py | 0e416026a0228381d7080134de6b67f5be8b09b6 | [] | no_license | anatitanic/proyectos-laboratorio | 8ed50c524ecb9a228cbee37555d2f9897f56c676 | 22296bb9ef593f3641ec33858e5a73fb27f4257a | refs/heads/master | 2021-10-09T13:09:38.614674 | 2018-12-28T16:20:06 | 2018-12-28T16:20:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | # -*- coding: utf-8 -*-
from imagenes import *
################################################################
# Funciones de test
################################################################
def test_muestra_imagen(imagen):
muestra_imagen(imagen)
def test_guarda_imagen(imagen):
guarda_i... | [
"noreply@github.com"
] | anatitanic.noreply@github.com |
8bf8ae5a5303dec52b8c6726f0af144bdcc6f9a9 | 679de86de84c04d11627a306b2199cf9f8114b65 | /mnist/start.py | 823e4fe89602b424ccb4f3af8a53e2b07b03d2a5 | [] | no_license | a2lin/dnn | e0a5e52012b8cefb927b62f085c8930137719cf3 | 74ba7dc28d4a84bf3a48ca1dc596c2390e0c8b5c | refs/heads/master | 2021-01-06T20:40:04.003789 | 2017-08-07T05:38:22 | 2017-08-07T05:38:22 | 99,540,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
| [
"lin.alexander.2011@gmail.com"
] | lin.alexander.2011@gmail.com |
a9d23248a6c436c6c49ed34c13b6d1fb71b7abf5 | bf388b74d823551121f45dfba3333637f845e051 | /hm_web/apps.py | 2f43c6503ad735c3c85578dadb4c034beb9e681b | [
"MIT"
] | permissive | dantswain/heavy_meta | d5178a61f63474315a62d2c9597f2ddd7ab9187e | c3154130c2c951f1a5b46174193157625bb1be17 | refs/heads/master | 2021-09-06T13:26:50.018504 | 2018-02-07T02:55:31 | 2018-02-07T02:55:31 | 117,156,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | '''
Django boilerplate
'''
from django.apps import AppConfig
class HmWebConfig(AppConfig):
'''
Django config boilerplate
'''
name = 'hm_web'
| [
"dan.t.swain@gmail.com"
] | dan.t.swain@gmail.com |
e988fb44ebf77ef6fb46be8468feeba747b3f022 | 7afc43157ab4338614ee1ad9e6824c75694293fb | /inventario/bin/chardetect | eadc1c8ccb6bbc406cf6577397dc505a686811fc | [] | no_license | eze-fayu/inventario | 9d8c2c83a123f0a643028e262cc83c1ef612862f | 83b63a2f5e7bd14d12e5f6b34682fbacca10fd28 | refs/heads/main | 2023-05-13T22:20:12.382242 | 2021-05-29T20:41:19 | 2021-05-29T20:41:19 | 354,267,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | #!/home/ezequiel/Documentos/Proyectos/inventario/inventario/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ezequielfaiella@gmail.com"
] | ezequielfaiella@gmail.com | |
bd2c830fec21a04fa77baa6c330e3c3708b289db | 932a75866784589d427afadb11f41abfbbc2dcd4 | /yelp-crawler/YelpAdaption.py | 45fdee987c09094020666b32b4f016e431c5b310 | [] | no_license | wjffxy/dining-bot | a69d5ac5567b149379a86530e8acdb504653a318 | 047255aabb9816162598066cd30310ab8e794de5 | refs/heads/master | 2021-01-09T19:00:41.691686 | 2020-02-22T22:37:28 | 2020-02-22T22:37:28 | 242,420,645 | 0 | 0 | null | 2020-02-22T22:30:47 | 2020-02-22T22:28:39 | JavaScript | UTF-8 | Python | false | false | 3,883 | py | # -*- coding: utf-8 -*-
"""
Yelp Fusion API code sample.
This program demonstrates the capability of the Yelp Fusion API
by using the Search API to query for businesses by a search term and location,
and the Business API to query additional information about the top result
from the searc... | [
"noreply@github.com"
] | wjffxy.noreply@github.com |
439bf310097453fbbe84be8f94fdecf17a33b4a2 | 701dc6b5c2ea7af5f94729dcc4ca56a8f8c8477e | /settings/wsgi.py | 67d3dd056ee37db4b3874cb1f6f0e8630246dcd0 | [] | no_license | GuiMend/delivery-backend | f00521920b720967b0bdc9cb9dd9e574424d74eb | 56fba4f8fe400d18b0f2813b530cb916488b42ea | refs/heads/master | 2023-04-13T16:36:35.636676 | 2021-04-27T14:46:34 | 2021-04-27T14:46:34 | 361,578,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | """
topfood-backend WSGI Configuration
"""
###
# Libraries
###
import os
from django.core.wsgi import get_wsgi_application
###
# Main Configuration
###
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.settings")
application = get_wsgi_application()
| [
"guigmen@gmail.com"
] | guigmen@gmail.com |
62ba6288d1f83cb12eabbd9f1ca1f699279434d8 | 96a6d2f6544d8d4aa43ce73c0abe851697fa0602 | /birthplan/scheduler.py | 722c5423ed7b18e606c1abf6f1d353fac063ce22 | [] | no_license | basman/atc_bot | 7f12d65dbac21fc586646c1773e7144f8da2f985 | 4106bed0b635dbfabfb1cb4499f27154ed380c08 | refs/heads/master | 2021-01-20T04:37:25.582247 | 2014-10-31T11:22:15 | 2014-10-31T11:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,323 | py | import string
import time
from position import Airport, Exit, Position
class Scheduler:
DEBUG_STEPS = False
DEBUG_NO_TIMEOUT = False
def __init__(self, arena, connector):
self._arena = arena
self._connector = connector
self._schedules = {} # nested dict; _schedules[time][a... | [
"rha_github@disconnect.ch"
] | rha_github@disconnect.ch |
bbb4d451e6ea33efbfab2bbfba0e4b1b5efcb954 | bc40f1bcf6d779b39a684e79816e51da7ad828d9 | /venv/Scripts/pip3.6-script.py | 3dd31b464e10e9516671a4ffb64d17b5d90d2e3e | [] | no_license | dovgin2/data_hackerspace_homework | c3b71b4f988688ce3d133a002fc8419e3dff8322 | 2396fe026b81c634f30c67694f27ec1dc3c83a7c | refs/heads/master | 2020-03-30T11:26:17.094261 | 2018-10-16T00:06:29 | 2018-10-16T00:06:29 | 151,173,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | #!C:\Users\s3dov\PycharmProjects\data_hackerspace_homework\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.ex... | [
"s3dovgin@gmail.com"
] | s3dovgin@gmail.com |
faf4719b940c4e5811346205c59cd9ad7daa89ec | 2813f969fc9833023f543fa14c1c22a87325ca8f | /logging_tree/tests/test_format.py | 787b959fd92bbf2bdc6650b8ba7e639e870cd017 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ralphbean/logging_tree | 5761afc380719f4069fd00b1f21f5765927ce593 | 1db0ad6f485b5333fee637813faf827990924421 | refs/heads/master | 2021-01-16T22:05:05.459626 | 2012-12-04T02:16:14 | 2012-12-04T02:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,425 | py | """Tests for the `logging_tree.format` module."""
import logging
import logging.handlers
import unittest
import sys
from logging_tree.format import build_description, printout
from logging_tree.tests.case import LoggingTestCase
if sys.version_info >= (3,):
from io import StringIO
else:
from StringIO import Str... | [
"brandon@rhodesmill.org"
] | brandon@rhodesmill.org |
2bec7b1c41956ec1783c8369ebfd7c8ba03d97fa | 5604a50361637f8ed1327a5618f96e63fdc60c24 | /first_bot/bin/flask | c409f1b8ca260f1d58f0c76ea8703c531a53ca9d | [] | no_license | razmanov666/first_bot_telegram | f82daded45341f92d9b531e6e74cee595fce7779 | 6d33aae297e3369e3c036f8f50b6ac555cd7c3de | refs/heads/master | 2023-07-25T22:20:23.074419 | 2021-06-30T06:57:46 | 2021-09-01T17:35:03 | 376,825,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | #!/home/kurama/Документы/first_bot_telegram/first_bot/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"razmanov666@gmail.com"
] | razmanov666@gmail.com | |
6fff1d2dfde9c50515de49dc1e667c6e3472c144 | 663d48b2a2bda714b97341ce9aaefba92602f194 | /model_utils.py | 87ae801ef079ef49395de421fc1d45eae0a38f7c | [
"MIT"
] | permissive | SushantKafle/speechtext-wimp-labeler | 15d9bbac20e96c894d91a5e7ae50c50640f91d7a | 32b71e72f86ab7f864e75e8517bb32f4400352d4 | refs/heads/master | 2023-04-02T00:02:09.914758 | 2020-04-12T18:11:08 | 2020-04-12T18:11:08 | 119,284,336 | 11 | 2 | MIT | 2023-03-24T23:22:54 | 2018-01-28T18:09:07 | Python | UTF-8 | Python | false | false | 753 | py | import tensorflow as tf
def get_rnn_cell(size, type_, state_is_tuple = True):
if type_ == "LSTM":
return tf.contrib.rnn.LSTMCell(size, state_is_tuple=state_is_tuple)
elif type_ == "GRU":
return tf.contrib.rnn.GRUCell(size)
def create_feedforward(input_tensor, input_size, output_size, fn_initializer, activation,... | [
"sxk5664@lac2050-05.main.ad.rit.edu"
] | sxk5664@lac2050-05.main.ad.rit.edu |
8b41ac7a5a4163138fe8b9a9962e83c1799151aa | dcd616927e4d0a6748a623e916e1c5ba6baaf143 | /h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_irf.py | 890b9f27a2be891431827653afefdaaeb49fcf2e | [
"Apache-2.0"
] | permissive | kaistha23/h2o-3 | 526340a58d04d440f14e4e0e2847b6a1a95bec57 | 1f31e84c68c0cda3b3dde0d3112c0ff3cac2270c | refs/heads/master | 2020-05-09T10:07:00.356419 | 2019-04-12T04:14:18 | 2019-04-12T04:14:18 | 181,020,702 | 1 | 0 | Apache-2.0 | 2019-04-12T14:08:44 | 2019-04-12T14:08:44 | null | UTF-8 | Python | false | false | 1,322 | py | import h2o
import tempfile
import os
from h2o.estimators import H2OIsolationForestEstimator, H2OGenericEstimator
from tests import pyunit_utils
def mojo_model_irf_test():
# GLM
airlines = h2o.import_file(path=pyunit_utils.locate("smalldata/testng/airlines_train.csv"))
irf = H2OIsolationForestEstimator(nt... | [
"noreply@github.com"
] | kaistha23.noreply@github.com |
d661b6d2d860ce3bc6425535f573ad65b0bb1d5a | c23692a8b77916124ac3fd840ff8466405b5e2ff | /samples/clap_driving.py | dbecdc37ba53a76df07a43866d8354938ef3d11e | [] | no_license | toanh/edpysim | 575586cda1c8f6364841e162af801cfeaa509f6f | e9d3244c4f2414de9a370adc9f831e71f9296fe2 | refs/heads/master | 2021-05-17T21:05:10.180301 | 2020-04-08T06:48:26 | 2020-04-08T06:48:26 | 250,952,059 | 2 | 1 | null | 2020-04-08T06:49:46 | 2020-03-29T04:18:53 | JavaScript | UTF-8 | Python | false | false | 1,369 | py |
#-------------Setup----------------
Ed.EdisonVersion = Ed.V2
Ed.DistanceUnits = Ed.CM
Ed.Tempo = Ed.TEMPO_MEDIUM
def waitClap():
#loop around, waiting for a clap to be detected
while Ed.ReadClapSensor() != Ed.CLAP_DETECTED:
pass
#--------Your code below-----------
while True:
#wait for a clap to be detected... | [
"toan.kien@gmail.com"
] | toan.kien@gmail.com |
d53862d05b52b8276f07a6c6e02b29cd0b79c931 | 2f95a207bb948ad1ac09e9a8d50c5ec0b72c9201 | /untils.py | 6e6ccaf3bb46994152037295c93527d33dca7938 | [] | no_license | wangyuanhao/springD2A | 037e79117cf493481e35da694eca0857348189a5 | 89f1f6d1f6a3e4a942d28a83232c643578888854 | refs/heads/main | 2023-05-01T13:52:00.406182 | 2021-05-24T02:45:09 | 2021-05-24T02:45:09 | 348,259,419 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,083 | py | import os
from torch.utils.data import TensorDataset, DataLoader
import torch
import matplotlib.pyplot as plt
import numpy as np
from torch import nn
import logging
def get_logger(filename, verbosity=1, name=None):
level_dict = {0: logging.DEBUG, 1: logging.INFO, 2: logging.WARNING}
# formatter = logging.Form... | [
"wang_yuanhao@live.com"
] | wang_yuanhao@live.com |
cb0b2c679a02d35a32e443a9412c0292555d4f6b | cff588a68be44913be884ba5c4ebf36a0a96cb75 | /python/007study_namespace.py | 3377539352b3e241261c717dfa8c5240c876539d | [] | no_license | KOOKDONGHUN/trading | e6a8d023f4bdbb0f1cf32e3e5b6b26b6265fc3a6 | 2d4337978a5849098ed890e9e2c3f059e4706536 | refs/heads/master | 2022-11-15T00:38:32.705125 | 2020-07-12T10:25:46 | 2020-07-12T10:25:46 | 275,761,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | class Stock:
market = 'kospi'
print(dir())# // ['Stock', '__annotations__', '__builtins__', '__cached__', '__doc__',
# // '__file__', '__loader__', '__name__', '__package__', '__spec__']
# Stock이 추가됐다
print(Stock) # <class '__main__.Stock'>
# 클래스가 정의되면 하나의 독립적인 네임스페이스가 생기고 클래스내에 정의된 변수나 ... | [
"dh3978@naver.com"
] | dh3978@naver.com |
405b180fbc5d7387565172702112313d01dff282 | 6efb6f69426bbd821f2e748decb9d9c0652e0743 | /lab4/venv/Scripts/UTscapy-script.py | 0630774b1472e4df9b492ed23be125597842f719 | [] | no_license | Notheryne/Sieci | cd3616577c40f0b546f1bfa77aca0d7f054997b2 | fcdb1b7af298ca4eaea8110b0a7dc171400ce37b | refs/heads/master | 2020-09-04T16:26:13.821539 | 2020-01-28T22:43:35 | 2020-01-28T22:43:35 | 219,801,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | #!D:\Programowanie\SieciLab\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'scapy==2.4.3','console_scripts','UTscapy'
__requires__ = 'scapy==2.4.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"rydzinski.bartosz.1998@gmail.com"
] | rydzinski.bartosz.1998@gmail.com |
e793c7028c56c76c140624f40a268ba44ce1ccc3 | 90def3915f597b26182087a6c6b6d54eded6d940 | /catalogExport/public_api/httpClient/callapi.py | 4878c72c6096c9a0e2b3fcaf30d55721d642cf97 | [
"MIT"
] | permissive | goodbarber/shop_custom_dev_examples | 4f8122b54149c2a6a0d618bcc7bfaa651b823fa2 | b8aa99386fb2a1ef83ed86f519ef707c533d7470 | refs/heads/main | 2023-07-06T01:45:59.532726 | 2021-08-03T06:36:56 | 2021-08-03T06:36:56 | 342,181,521 | 1 | 1 | null | 2021-08-03T06:36:58 | 2021-02-25T08:55:20 | Python | UTF-8 | Python | false | false | 689 | py | import requests
class CallApi:
'''Class that allow to call multiple requests types'''
def get(self, url, headers={}):
print(url)
res = requests.get(url, headers=headers)
if res.status_code == 200:
return res
else:
raise requests.models.HTTPError(
... | [
"christophelucchini@MacBook-Pro-de-Christophe.local"
] | christophelucchini@MacBook-Pro-de-Christophe.local |
7f079cf4970ef56999d64bea7b1fcc1351cba791 | cee5070499cf59dd5019f86e785e41ad5c55837b | /PageLocators/setting_tab_locator.py | daabcd188f53a965b2ab4371cdec37c91c884a4d | [] | no_license | Yttyou/AppUi | b76cae345039d6c3a39f601960c085696b63b60a | d5303d33c4fb67d3b50e02918f15e5849a956b30 | refs/heads/master | 2023-02-25T07:59:12.759684 | 2021-02-01T01:47:45 | 2021-02-01T01:47:45 | 334,800,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | __author__ = 'developer'
# 【设定】tab页面元素定位
from appium.webdriver.common.mobileby import MobileBy as Mb
class SettingTabLocator:
setting_button = (Mb.ID, "com.suncity.sunpeople.qa:id/tv_setting") # 导航栏【设定】
signout_button = (Mb.ID, "com.suncity.sunpeople.qa:id/tv_signout") # 【登出】按钮
confirm_signout_button ... | [
"t-youtongtong@MEGVII-INC.com"
] | t-youtongtong@MEGVII-INC.com |
6dc14984a85ef7d3fbfbaa874a0267f1787fbeba | 8723d2cb798f6198a84f5746cb9a2ae732a49dd6 | /vafnet/util/Optimizer.py | 1cb4956e0d5975f00f0c6a23b9fda71bfe48a11d | [
"Apache-2.0"
] | permissive | MaxInGaussian/VAFnet | 5d3984ae97be576ac61df5995f58dad96aa6ad05 | 618a16abae08a193b94072d5d5ff176f02bb1288 | refs/heads/master | 2021-07-11T06:31:49.834370 | 2017-10-15T15:54:29 | 2017-10-15T15:54:29 | 104,314,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,637 | py | # Copyright 2017 Max W. Y. Lam
#
# 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, so... | [
"maxingaussian@gmail.com"
] | maxingaussian@gmail.com |
187e1c46f87f4c4220aeebea29f79220ed2388ec | 1d3ee56d9a95ffc35e08bbc211f2a6b8e83be7c2 | /resources/chart_line.py | 95ee7407a9e507a1fe2c0397207e5748f31395b8 | [] | no_license | Lucas0Braz/charts_generete | 6ea69cf3526ec713877d9214173d40a65456a184 | 748e110971839f4b1c7463c23c297fcebcdd70e1 | refs/heads/master | 2021-07-10T09:53:50.906534 | 2020-01-28T03:11:18 | 2020-01-28T03:11:18 | 236,640,364 | 0 | 0 | null | 2021-03-20T02:39:52 | 2020-01-28T02:16:17 | Python | UTF-8 | Python | false | false | 1,110 | py |
from flask_restful import Resource,reqparse
from models.chart_line import Chart_LineModel
class Chart_LineResource(Resource):
parser = reqparse.RequestParser()
parser.add_argument('x',
#type=list,
action='append',
requ... | [
"lucasbraz430@gmail.com"
] | lucasbraz430@gmail.com |
fc0d64f7a2b0c2bf8d96c8331a25546b633e2b03 | 9f926ba20c9d72004f30944646eae2f9cc305afd | /timeline_logger/compat.py | b61099b1a6832c44e448678b0e81a5580c5352fb | [
"MIT"
] | permissive | tsiaGeorge/django-timeline-logger | 625a15c27fc6b5b4caf73b300120e0c3c29540e7 | 07bee5038dd84256e3863e6a7634e29521345ce1 | refs/heads/master | 2021-04-06T00:01:11.095501 | 2018-03-07T11:34:45 | 2018-03-07T11:34:45 | 125,027,461 | 0 | 0 | null | 2018-03-13T09:41:11 | 2018-03-13T09:41:11 | null | UTF-8 | Python | false | false | 263 | py | import sys
# Safely importing the HTML parser utility, highly dependent on Python versions
if sys.version_info >= (3, 4):
# From v3.4.0 in advance
import html
else:
# Python 2.x versions
from HTMLParser import HTMLParser
html = HTMLParser()
| [
"jose.lpa@gmail.com"
] | jose.lpa@gmail.com |
0308fbd80076e9763f9daf836a65b64f1a5decc9 | 2558bfcc4781f220ecbeb664785c643cf45720f2 | /blog_tutorial/views.py | bb172057aaab3f642de1a5dc6aeecd00af9977f3 | [] | no_license | bornie21/blog_tutorial | 066d5c7722bfae82c3b928f67f07a36ba38940c1 | 6595337809d9a8ffdf448cc08e6990b97dfaba81 | refs/heads/master | 2021-01-17T20:13:11.589245 | 2016-09-18T17:13:34 | 2016-09-18T17:13:34 | 68,509,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from django.views.generic import ListView
from blog.models import Entry
class HomeView(ListView):
template_name = 'index.html'
queryset = Entry.objects.order_by('-created_at')
| [
"matembudzeb@gmail.com"
] | matembudzeb@gmail.com |
14e20c46fd479497e766de6b6114b7dae024aad5 | 295cdb8828639d84c9bdd71f80587669773c174e | /mysite/time_traveler/migrations/0001_initial.py | b23615ea8a4d74e6f332fc1e677222fb65950d85 | [] | no_license | VeyronRomeo/mysite | a6cdddc9ffa34be865492cbfb7c346c4167ae2c4 | 5c0180678d25c453091e4612e4868e9bbf748b4e | refs/heads/master | 2021-08-16T23:42:35.887457 | 2017-11-20T13:32:54 | 2017-11-20T13:32:54 | 27,227,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-17 03:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='userNa... | [
"killni.ma@163.com"
] | killni.ma@163.com |
355a94e3e219a007c388d1c3247bbc2eb62f6ec2 | 30e06035a4fd3cdfc6bae72c4cd66c0154802d52 | /TpFriend/TpFriend.py | 3d17e88db6adbfccca5b39f4e8c8cc372b2374ef | [] | no_license | h0wHigh/Python-Plugins | 3563e5e8ad42e9a270146d57056daa74af005209 | e8e0eaea4077ca2a19cfc235c4441e729a608af9 | refs/heads/master | 2021-01-18T05:16:40.663474 | 2015-03-14T00:42:22 | 2015-03-14T00:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,132 | py | __author__ = 'DreTaX'
__version__ = '3.7.1'
import clr
clr.AddReferenceByPartialName("Fougerite")
import Fougerite
import math
import System
from System import *
import re
import sys
path = Util.GetRootFolder()
sys.path.append(path + "\\Save\\Lib\\")
try:
import random
except ImportError:
pass
red = "[color... | [
"dretax14@gmail.com"
] | dretax14@gmail.com |
dbc6d0472c2132b6af6592c1e1e8e960c32f3f6d | e8d3b04a19ba1b6373877068c3200e91f5142932 | /lastfour_main/helper.py | 9522ad7c13cd6f25f7de19af268f57c0b4856c83 | [] | no_license | kpavankumar623/cricket-project | 46005ebc7586979deef4d9071441c13b726b095a | d83ed4400080d1bf8f40f086cd88d5e71957e3ba | refs/heads/master | 2020-07-16T14:15:03.475153 | 2019-09-20T13:08:06 | 2019-09-20T13:08:06 | 205,804,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py |
def cal_winners(inn,match):
"""below conditions declare the winner"""
actual_score = match.WIN_SCORE-1
if inn.score >= actual_score:
print("Lengaburu WON by {} wickets".format(match.WICKETS_MAX - inn.wickets))
elif inn.score == actual_score:
print("Match DRAWN")... | [
"kpavankumar623@hotmail.com"
] | kpavankumar623@hotmail.com |
9b25fca4182e31a9a72666772e8b52b3eebcb24f | 33b40df749eecb1195fc2312135c5a1f4b38355a | /django_newsapp/core/migrations/0007_auto_20160111_0141.py | a2e955df261020773a28948b709602ea666e3367 | [] | no_license | ksj1993/django_newsapp | 01d8b47b91ad599a605e34310fd31950ecdc214e | 4e7224c74ce6dcc76c443a38cb7e2b57e7267dad | refs/heads/master | 2021-01-10T07:59:52.210334 | 2016-02-06T06:29:53 | 2016-02-06T06:29:53 | 49,241,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-11 01:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0006_article_title'),
]
operations = [
migrations.AddField(
... | [
"kunaljasty@gmail.com"
] | kunaljasty@gmail.com |
83bee1c913ad98cd00f75327075dbef6727ae53a | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/torchx/legacy/nn/VolumetricReplicationPadding.py | 16cc7a1c097d7c351bcc12cb145425dff9ac1bf3 | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 1,969 | py | import torch
from .Module import Module
class VolumetricReplicationPadding(Module):
def __init__(self, pleft, pright=None, ptop=None, pbottom=None, pfront=None, pback=None):
super(VolumetricReplicationPadding, self).__init__()
self.pleft = pleft
self.pright = pright or pleft
self.... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
e7b07e9da69275211369027ccc4b4e3df2428c9a | 98d328e4e00ac7cf8930d2ff9bd68af1d9d9cc3b | /utils/lib_clustering.py | 3e1b9079f84417c6585bb40e6d8bcf926bf03a2b | [] | no_license | jtpils/Lane-Detection-from-Point-Cloud | 4d7e98cafada569097e16e7bcb5fdabc048e0644 | 238cb8cedc823a84c32b60ce13e7de8c81f19232 | refs/heads/master | 2020-06-05T08:42:46.397450 | 2019-06-17T15:41:58 | 2019-06-17T15:41:58 | 192,380,398 | 14 | 4 | null | 2019-06-17T16:16:58 | 2019-06-17T16:16:58 | null | UTF-8 | Python | false | false | 3,810 | py | '''
Clustering by DBSCAN using sklearn library
This code is copied and modified from:
https://scikit-learn.org/stable/modules/generated/sklearn.cluster.DBSCAN.html
'''
import numpy as np
from sklearn.cluster import DBSCAN
from sklearn import metrics
from sklearn.datasets.samples_generator import make_blobs
from skle... | [
"felixchenfy@gmail.com"
] | felixchenfy@gmail.com |
5e57e42cf81e3523dfaa874a315995fbc33cfcb9 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D11B/PAYDUCD11BUN.py | 3dccdf3361385387dedef9f876212a5ce94c56a8 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,580 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD11BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'PAI', MIN: 1, MAX: 1},
{ID: 'FII', MIN: 1, MAX: 2},
{ID: 'DTM'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
335fe03ecf60ad60f91b937781b87ec328478859 | d7f366993efd8dce8ee88836ccd02db4fb6c31a2 | /attack.py | 6061a3a8217792d89a700f5c2e33413ede522625 | [
"Apache-2.0"
] | permissive | hebo1221/Inconspicuous-Adversarial-perturbation-post-processing-method-with-texture-analysis | b92721b88f4691bbaa041ee4c74ca031a0eaa7bc | 770a2c8898d56293845d7fd63f01649793e0d65f | refs/heads/main | 2023-02-16T01:45:08.868788 | 2021-01-16T00:36:23 | 2021-01-16T00:36:23 | 330,053,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,405 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torchattacks.attack import Attack
import cv2
from skimage.color import rgb2gray
from skimage.filters import sobel
from skimage.segmentation import mark_boundaries
from skimage.util import img_as_float
from skimage.metrics import mean_squar... | [
"noreply@github.com"
] | hebo1221.noreply@github.com |
5f96b2f9df61b2997848aed9767153a92a516338 | 762de1c66746267e05d53184d7854934616416ee | /tools/MolSurfGenService/MolSurfaceGen32/chimera/share/VolumeProcessing/apply.py | e3698c7a49fcc4c0b7f6619db155e7b141e47eb8 | [] | no_license | project-renard-survey/semanticscience | 6e74f5d475cf0ebcd9bb7be6bb9522cf15ed8677 | 024890dba56c3e82ea2cf8c773965117f8cda339 | refs/heads/master | 2021-07-07T21:47:17.767414 | 2017-10-04T12:13:50 | 2017-10-04T12:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,364 | py | #!/usr/bin/env python
# -----------------------------------------------------------------------------
# Apply a function to a grid pointwise.
# The resulting volume is written in netcdf format.
#
# Syntax: apply.py sqrt|square|abs|exp|log <infile> <outfile>
#
# The file type must be one of the types handled by VolumeDa... | [
"alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5"
] | alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5 |
33707edb80b081ec1ed745507088f9c26ebd20fd | b182ff74d1107c00d77d3bb241dfca589ccc9404 | /config.py | 2bba1aadff966f60605fa7fdf900d990f46442d1 | [] | no_license | aexleader/Tornado-OA-System | 7846a13a90c6da512a7f7620b003bd77b331a63d | 6ffc51d2f42fcbd5b0abe7082dae4505bf687894 | refs/heads/master | 2020-08-01T14:00:28.966198 | 2019-09-10T10:57:23 | 2019-09-10T10:57:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | #coding=utf-8
from libs.flash.flash_lib import get_flashed_messages # 引入一个变量
from libs.permission.permission_auth.permission_interface_libs import menu_permission
settings = dict(
template_path = 'templates',
static_path = 'static',
debug = True,
cookie_secret = 'aaaa',
... | [
"htxz_jiang@163.com"
] | htxz_jiang@163.com |
ca02764f5cda7953b2d8979696c2f5fce8cc6ebc | 25318e17552bce267ab4bc7436f0f630800d9aac | /OCR_MLP_M.py | 70c25fb97264371eba6521022a963489a0216e76 | [] | no_license | Stx666Michael/digit_recognition | fbed7413955c919ef86805dd09582df7e5659e2e | 1bf12d4c1e673d5cb2fd459c1bd56b7c7d3c71aa | refs/heads/main | 2023-03-07T20:01:03.600883 | 2021-02-22T01:50:21 | 2021-02-22T01:50:21 | 340,858,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,568 | py | import numpy as np #导入numpy工具包
from os import listdir #使用listdir模块,用于访问本地文件
from sklearn.neural_network import MLPClassifier
import PIL.Image as image
import random
import time
def img2vector(fileName):
f = open(fileName,'rb')
data = []
img = image.open(f)
m,n = img.size
for i i... | [
"noreply@github.com"
] | Stx666Michael.noreply@github.com |
58dea61f01c79d510c5abba801845512de484d1f | 31ed3085759ed1e8dc8ffdbeb52d0c6605a009f3 | /mylinebot/urls.py | 4d6b2fff64af08db4795cda8762dfba9c9e60732 | [] | no_license | poytoday/lineconnect | af28ef27c57b4c7c7693b2c0595495366dfbe112 | 45a4ac0406326c036bdbd0c01050f1f772f56b40 | refs/heads/master | 2022-11-18T01:00:10.172245 | 2020-07-14T10:19:33 | 2020-07-14T10:19:33 | 279,545,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from django.urls import path, include
from .views import callback
urlpatterns=[
path('callback/', callback, name='callback')
] | [
"poytoday@gmail.com"
] | poytoday@gmail.com |
e8ff2ecd2620b1f6bb2ef13e7babba0a737a2405 | fbb552bd9ef5378c915b73f35ae002e0719bfdbd | /dumbPlayer.py | 8e03986b887f23176e658fcb138390e89eb1ff8c | [] | no_license | PROgram52bc/COS280_TicTacToe | 1c346efd83fc07a9a7344e272c46d2275a13dc47 | 7e5b382fa29a98fb8921db5d5e3337b7a899b10c | refs/heads/master | 2020-04-29T06:17:27.783495 | 2019-03-24T21:38:33 | 2019-03-24T21:38:38 | 175,911,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | from player import Player
class DumbPlayer(Player):
def __init__(self, mySymbol, opponentSymbol):
super().__init__(mySymbol, opponentSymbol)
def makeMove(self, board):
for row in range(len(board)):
for col in range(len(board[0])):
if not board[row][col]:
... | [
"daviddenghaotian@163.com"
] | daviddenghaotian@163.com |
669826572171af8678d7799f11c25be1be9d1480 | b092806631c5284a71996c7f16ba3aec6d845cdb | /Analysis/HSCPStudy/python/config.py | 63a9fdad617cd84fbca9131658dde97f0026f240 | [] | no_license | tvami/HSCPAnalysis | f4700c40cf96cc42133befe4c313b0536f69ffaf | 936725605c9ad5f64dd3b874064f9d4d58806d66 | refs/heads/master | 2021-12-25T18:56:04.191661 | 2021-12-20T00:38:21 | 2021-12-20T00:38:21 | 218,607,653 | 0 | 0 | null | 2021-03-30T20:12:26 | 2019-10-30T19:35:57 | C++ | UTF-8 | Python | false | false | 643 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("Demo")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
process.source = cms.Source("PoolSource",
# replace 'myfile.root' with the source fi... | [
"noreply@github.com"
] | tvami.noreply@github.com |
aa8aabf65ecb49d7092f518affba7b4f4200745b | 609582ee37a01ac6a67fb9c957825dcd3c9a5b3a | /LeetCode_Math/67_Add_Binaray.py | 77bf2de64eddd1dca19c9a8f56aeabd0235107f3 | [] | no_license | captainjack331089/captainjack33.LeetCode | a9ad7b3591675c76814eda22e683745068e0abed | 4c03f28371e003e8e6a7c30b7b0c46beb5e2a8e7 | refs/heads/master | 2022-03-07T19:53:40.454945 | 2019-11-06T19:32:00 | 2019-11-06T19:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | """
67. Add Binary
Category: Math
Difficulty: Easy
"""
"""
Given two binary strings, return their sum (also a binary string).
The input strings are both non-empty and contains only characters 1 or 0.
Example 1:
Input: a = "11", b = "1"
Output: "100"
Example 2:
Input: a = "1010", b = "1011"
Output: "10101"
"""
cla... | [
"qfhjack@gmail.com"
] | qfhjack@gmail.com |
a9df993bc04715662c0fc174ac283338714e2f13 | 94f07753b134531c06dc2e789f594c25bfa6993e | /aiida_kkr/tests/workflows/test_kkrimp_dos_wc.py | 1a7b6fa1abb1b81319983a2e8bed278e2d44c444 | [
"MIT"
] | permissive | IngoMeyer441/aiida-kkr | 23316ca7d74b40580d149ebcf7ae9da79373f8a5 | 5ce20a61a667787aeb68fa0c8b81e73aa3cf94a5 | refs/heads/master | 2023-07-15T01:02:11.685631 | 2021-05-05T06:54:56 | 2021-05-05T06:54:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,222 | py | #!/usr/bin/env python
from __future__ import absolute_import
import pytest
from aiida_kkr.tests.dbsetup import *
# tests
class Test_kkrimp_dos_workflow():
"""
Tests for the kkrimp_scf workflow
"""
@pytest.mark.timeout(300, method='thread')
@pytest.mark.usefixtures("fresh_aiida_env")
def test_... | [
"p.ruessmann@fz-juelich.de"
] | p.ruessmann@fz-juelich.de |
fe17d4d7bf8095d15031ae2cf93d0c18c28d6751 | 10409d39ca4db722a084ee024d4088492917d8c1 | /date.py | aab77b2861504e3aa5a0f35972ad30a53b7b2a6e | [] | no_license | polaroidz/tkdata_fraud_detetction | d0ca643f4cbf1e7f44a0971f298a82ba726c4cba | dfaeb1c075fc8bbf6e5fcddf6b31e112d993383b | refs/heads/master | 2022-04-20T09:11:18.875931 | 2020-04-18T22:48:51 | 2020-04-18T22:48:51 | 256,614,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | import math
import pyspark
from pyspark import keyword_only
from pyspark.sql import functions as F
from pyspark.ml import Transformer
from pyspark.ml.param.shared import HasInputCol
from pyspark.ml.param.shared import HasInputCols
from pyspark.ml.param.shared import HasOutputCol
from pyspark.ml.param.shared impor... | [
"diego.mrodrigues11@gmail.com"
] | diego.mrodrigues11@gmail.com |
e01310498475202a0897ae8f1cbd77d2d62f8aea | 6b163125b7d2f3ea5c2b107e6451e423ac7f1f3a | /app/forms/signup_form.py | 4b55991e511d372190937258dd788f9ba156783f | [] | no_license | guny12/Capstone-Mise-En | a1d6e689230ad2e49cce7a09bad52d6243808d15 | b45d510adc04a69c73cf738a97c3a68d7166eebd | refs/heads/main | 2023-06-14T02:13:24.280617 | 2021-07-15T06:30:39 | 2021-07-15T06:30:39 | 363,795,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | from flask_wtf import FlaskForm
from wtforms import StringField
from wtforms.validators import DataRequired, Email, ValidationError, Length
from app.models import User
def email_exists(form, field):
email = field.data
user = User.query.filter(User.email == email).first()
if user:
raise ValidationE... | [
"Jimjnguy@gmail.com"
] | Jimjnguy@gmail.com |
d10cffd433e1382aa8c9269811b4ec706c2b5af9 | 28aca7a21dbd066c30e0385937adc683ae707401 | /flag_bot.py | 954844ba9373d425539a352150b25658caf78f8d | [] | no_license | obscuritysystems/DC801_CTF | 219ed509e96e29712e2c018f4bd97602e7a19568 | 5b9ae581d1e1e2b914cd413735c5fe057a916dea | refs/heads/master | 2016-09-06T17:52:50.623862 | 2013-05-07T05:26:54 | 2013-05-07T05:26:54 | 7,049,834 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | #!/usr/bin/env python
import sys, time, socket
from daemon import Daemon
from flag_bot_ai import FlagBotAI
class FlagBot(Daemon):
def run(self):
bot = FlagBotAI()
bot.run()
if __name__ == "__main__":
daemon = NemusBot('/tmp/FlagBot.pid')
if len(sys.argv) == 2:
if 'start' == sys.argv[1]:
daemon.start(... | [
"nemus@obscuritysytems.com"
] | nemus@obscuritysytems.com |
46335ec9e4accf5fef2e9fe3fc4542bb092994bf | 6bff080a2bfba280244fc956c40acfd294e9c095 | /Inner Graph Generator/graph_tester.py | 66d35ed8f0e3f38c8b5e92af551439672e8c6bd7 | [] | no_license | thunderbolt06/Enumeration-of-RFPs | 7ca0745e79fa094be3aeef5580be926f4999c34d | 324366ba8f690347eda5ac97a5285fb8a139a3e6 | refs/heads/master | 2020-08-07T13:17:22.366289 | 2020-03-26T11:48:00 | 2020-03-26T11:48:00 | 213,460,625 | 1 | 2 | null | 2020-02-16T10:30:07 | 2019-10-07T18:46:12 | Python | UTF-8 | Python | false | false | 333 | py | import networkx as nx
import matplotlib.pyplot as plt
gaf = nx.Graph()
for i in range(int(input())):
gaf.add_edge(*map(int, input().strip().split(' ')))
print(gaf.edges())
nx.draw_planar(gaf, labels=None, font_size=12, font_color='k', font_family='sans-serif', font_weight='normal', alpha=1.0, bbox=None, ax=None)... | [
"4chinmai@gmail.com"
] | 4chinmai@gmail.com |
0acc75cf50775793b9ea0595bc40eede48ac8136 | 5358e2a0c829490f1384b6969a42b1ce3ee2c830 | /docker_container/enderecos/endereco.py | 1850d08271052659eb38f8f718d709884a6014cd | [] | no_license | douglasrocha06/tech_talent_desafio_III | ffb23deade7a4698b15bb01a0028540b83f75da9 | 0c6bcd21b76e958f9d45141c804aa71a8c3248b0 | refs/heads/master | 2023-08-16T20:56:25.953386 | 2021-10-15T17:37:53 | 2021-10-15T17:37:53 | 417,583,818 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,832 | py | import pymysql
from app import app
from config import mysql
from flask import jsonify
from flask import flash, request
from flask_httpauth import HTTPBasicAuth
auth = HTTPBasicAuth()
@app.route('/')
def welcome():
return 'Sejam Bem-Vindos!'
#Vizualizar ENDEREÇOS DE TODOS CLIENTES
@app.route('/enderecos/clientes... | [
"douglas.rocha@inmetrics.com.br"
] | douglas.rocha@inmetrics.com.br |
483082bb132d04dca5ed5513a195893b7756e4ed | e86c934b98fd78352eda6fa5ee23ab89a9814c4b | /aliyun/log/etl_core/restrict_config_parser.py | 5b9db1008be7bd7755136820711f15e427bae620 | [
"MIT"
] | permissive | aliyun/aliyun-log-python-sdk | fbe8212da62f0ae30aa4fcb2c10c4e2ef7b7aaee | 0ccf358adecf01f953011f21dfcf259114bab2aa | refs/heads/master | 2023-08-31T03:25:26.183336 | 2023-08-18T02:12:26 | 2023-08-18T02:12:26 | 78,168,645 | 162 | 149 | MIT | 2023-09-05T01:37:51 | 2017-01-06T03:03:17 | Python | UTF-8 | Python | false | false | 2,723 | py | import ast
import logging
import six
import sys
TRUST_AST_TYPES = (ast.Call, ast.Module, ast.List, ast.Tuple, ast.Dict, ast.Name, ast.Num, ast.Str,
ast.Assign, ast.Load)
if sys.version_info[:2] == (3, 3):
TRUST_AST_TYPES = TRUST_AST_TYPES + (ast.Bytes,)
elif six.PY3:
TRUST_AST_TYPES = TRUS... | [
"wjo1212@163.com"
] | wjo1212@163.com |
db5478f9a0cb0cf030d084d4aa9c480907c197a7 | 0dc3e9b70da8ccd056e0a0fab2b1d8f850c3d470 | /lantern/django/django_celery/src/apps/cars/serializers.py | 3b2841adafff0d4d82de945686eeba93f6718cd8 | [] | no_license | ArturYefriemov/green_lantern | 28e7150af7b9d2281a107ad80026828ad77af62a | 2841b647e1bfae4a7505e91e8a8695d03f35a3a2 | refs/heads/master | 2021-03-01T16:54:58.881835 | 2020-11-17T19:42:23 | 2020-11-17T19:42:23 | 245,799,969 | 0 | 0 | null | 2020-07-14T18:51:13 | 2020-03-08T11:13:32 | Python | UTF-8 | Python | false | false | 190 | py | from rest_framework import serializers
from apps.cars.models import Car
class CarSerializer(serializers.ModelSerializer):
class Meta:
model = Car
fields = '__all__'
| [
"odarchenko@ex.ua"
] | odarchenko@ex.ua |
635b2ea8ba272c29ef49790aae721a40124e6873 | 98f3deef793bee63b029f5bcc2335524e8c2e5c2 | /爬虫/爬虫入门/封装函数后爬取某网站.py | 50c1c24b6182b08bf25e0ac5785cdc9135f43a84 | [] | no_license | BBBBchan/python | f6a069821b8c4848fd25d70c6f36d6217023beb5 | ca106ea549f68b557829da51588c5ceb416d5435 | refs/heads/master | 2021-06-04T13:19:13.485475 | 2019-11-29T03:38:12 | 2019-11-29T03:38:12 | 112,024,051 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | # -*- coding: utf-8 -*-
import requests
def gethtml(url):
try:
r = requests.get(url, timeout=30)
r.raise_for_status()
r.encoding = r.apparent_encoding
return r.text
except:
return "异常"
if __name__ == "__main__":
url = "www.baidu.com"
print(gethtml(url)) | [
"sbysbysby123@gmail.com"
] | sbysbysby123@gmail.com |
ba0cd3b1c0948476c5e95310ac7aa974653dfd23 | 29e444e9cd38e9d54f7af12db13be325946c8608 | /events_spider/master_server.py | 93e7e7c01260190296bc6d9b8d669f8a51fefa8a | [] | no_license | HughLK/Distributed-News-Monitoring-System | 0cf3da8f4a3de3afb9b24e6185408231d9ec7bdd | 180472c4f5bc642eddc247d18b203d5da92fe40d | refs/heads/master | 2020-09-24T12:53:23.538981 | 2019-12-14T05:25:16 | 2019-12-14T05:25:16 | 225,763,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # -*- coding: utf-8 -*-
import datetime
from events_spider.utils.tools import LOGGER, APP_CONF, SCHEDULER
from rpc_client import RpcClient
from SimpleXMLRPCServer import SimpleXMLRPCServer
CLIENT = RpcClient()
def callback():
LOGGER.info("New Master Confirmed.")
CLIENT.call()
# SCHEDULER.add_... | [
"scdylk@aliyun.com"
] | scdylk@aliyun.com |
3a4176029eb9b62a827d71c46ebb1792fdf37b91 | 6d703f97d1326023cbfe9818474d446a32e9e7a0 | /siteProject/wsgi.py | 252143bc4db532c80ff3654dbd30ecdecfab7e7b | [] | no_license | LiFFTB/LearnPython | 748d1b89d2197ba1da3026dd488c08aaa15bf258 | 2132c055f8ce3219366a0d023a3e3cb4a0398979 | refs/heads/master | 2022-10-05T11:46:48.552301 | 2020-06-01T15:15:46 | 2020-06-01T15:15:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
WSGI config for siteProject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefa... | [
"jinyu929@qq.com"
] | jinyu929@qq.com |
d485c36b325898c6a6574811444544a7d9f9a257 | 6001b2460904142720818b961669f8306dd330ed | /posts/tests/test_urls.py | 04870058ad052e1973f51af4e76d181c18aa72a7 | [] | no_license | aryanlilian/Social-Posts | aad06d3d7527a73db296d107845b38ffee6daeae | 610b59474aa4f65e9ccd8504c547d9ec31d725c1 | refs/heads/main | 2023-04-18T15:30:08.081117 | 2021-04-29T16:50:41 | 2021-04-29T16:50:41 | 362,097,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | from django.test import SimpleTestCase
from django.urls import reverse, resolve
from posts.views import postsList
class TestUrls(SimpleTestCase):
# The setUp method is for defining all the fields that should be used for testing purposes in the testing methods
def setUp(self):
self.posts_list_url = re... | [
"aryanlilian@gmail.com"
] | aryanlilian@gmail.com |
44ccbd118db55872abc28425b29a43c1682f0194 | a14ab84ccb471b52e32fe1bf0ed70a1d1813396e | /python/firstproject/firstproject/settings.py | 9fa477b41686ba8d46a37c5f60de4b86c4660205 | [] | no_license | Aashirya1995/COMP705 | 051c7be353e8ffa21262feacf3e2af0016153ad5 | bc382beb66979462de24ff427f397de4f9b8892d | refs/heads/master | 2021-05-09T20:33:14.511019 | 2018-03-06T17:05:18 | 2018-03-06T17:05:18 | 118,692,267 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,354 | py | """
Django settings for firstproject project.
Generated by 'django-admin startproject' using Django 2.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
""... | [
"ak1107@wildcats.unh.edu"
] | ak1107@wildcats.unh.edu |
374aa8f21043fa4ad07e5c55dc32e3b41b325b47 | 592be52fb1623947515a8c9a6ab9f17da58366a6 | /shop_account/views.py | d1b7437a13ba203acbc309837291b05e653e441a | [] | no_license | mahnazfallah067/them | c224921ad27903b2aae79d9b186fe400288899d1 | b51209a5b524298a53ab6888a61b5e1d4bfd20e2 | refs/heads/master | 2023-08-13T11:53:05.800278 | 2021-10-02T18:45:59 | 2021-10-02T18:45:59 | 412,881,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | from django.contrib.auth.models import User
from django.shortcuts import render, redirect
from .form import LoginForms, RegisterForm
from django.contrib.auth import authenticate, login, logout
# Create your views here.
def login_user(request):
if request.user.is_authenticated:
return redirect('/')
lo... | [
"mahnaz.fallah1213@gmail.com"
] | mahnaz.fallah1213@gmail.com |
0963782c89cb406827ba1acfa143e7fdd445951a | 601f1eb021241c13d7b84aab0b51d30efa259b09 | /homework 8.1 mood checker.py | 46348b98396405be5f06098886d5f07db8878bea | [] | no_license | johnbook666/PythonersteProgramme | f1d690332219e8807dce8e001065f2fa1086d454 | 95242ce9ffefc7c2c13c2b5e14b8b1d97128a424 | refs/heads/master | 2020-11-24T21:55:48.874857 | 2019-12-16T10:03:27 | 2019-12-16T10:03:27 | 228,356,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | print('--- mood checker ---')
print('enter mood: happy, nervous, sad, excited, relaxed')
mood = input('your mood ? ')
if mood == "happy":
print('It is great to see you happy!')
elif mood == "nervous":
print('Take a deep breath 3 times.')
elif mood == "sad":
print('take a walk and enjoy the sun !')
elif mood... | [
"markusarendt@hotmail.com"
] | markusarendt@hotmail.com |
7326d2d7689ae724544c3a6135e5fed3824e819f | b27f5d5691d1aaae3f3b334f73c4f91f835bcabc | /Code/ops.py | eb9e8390bbc44d2e79660faaa3eacc3112d47c71 | [] | no_license | VTLI/comic-gen | a27220193524ec0833a3896343ffc2613c2ebedd | 4ee2a6e22b29b47b2aeaaef18ba972c9d5f5d151 | refs/heads/master | 2020-05-24T03:46:26.256772 | 2019-07-11T08:39:53 | 2019-07-11T08:39:53 | 187,078,397 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,013 | py | import math
import numpy as np
import tensorflow as tf
from tensorflow.python.framework import ops
from utils import *
try:
image_summary = tf.image_summary
scalar_summary = tf.scalar_summary
histogram_summary = tf.histogram_summary
merge_summary = tf.merge_summary
SummaryWriter = tf.train.Su... | [
"noreply@github.com"
] | VTLI.noreply@github.com |
76b5e2452098e49235282783ad7eb1263db83e08 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /yubinbai/pcuva-problems/UVa 10539 - Almost Prime Numbers/main.py | 30bb7c3cab4b9a2a5ac9a024702a2f2bdb6ddbf0 | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | from bisect import *
from bitstring import BitArray
import sys
MAXN = 1000005
def prime_sieve(top=MAXN):
b = BitArray(top) # bitstring of ’0’ bits
for i in range(2, top):
if not b[i]:
yield i
# i is prime, so set all its multiples to ’1’.
b.set(True, range(i * i, top, ... | [
"xenron@outlook.com"
] | xenron@outlook.com |
9d9a28c406e812fde853a9ab4577cc16b649995d | 9b77f1e31d5901924431a2a3164312cc346bde4f | /ADI4/manage.py | e9ec1a96a7b096f6b2698c979c0b121ed89eb43f | [] | no_license | Adi19471/Djnago_Code-Daily | c2184bf21db5c8d4b3c4098fbd593e4949375ae8 | 03b1b70d3e187fe85eb24e88b7ef3391b14aa98c | refs/heads/master | 2023-08-14T14:36:36.144243 | 2021-09-20T12:52:46 | 2021-09-20T12:52:46 | 375,690,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ADI4.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportErr... | [
"akumatha@gmail.com"
] | akumatha@gmail.com |
80d65ef8dd7fb82cd527bbcf4cec83c78d67c536 | e12b840d9ac3eb1cc0e3a08e91b5812fc9509798 | /invoke_lambda/demo/demo.py | b31cc9a44d7cdb8eba5db9b55f0c63b9627f5326 | [] | no_license | kfunamizu/python_commonlib | 7122272f3c1c75e62d9585ebdf5cbc6fa5c1ab77 | 6ecdbc904840763880928c1014c6898f82fb6b46 | refs/heads/master | 2020-04-17T03:57:09.252029 | 2019-11-22T02:08:25 | 2019-11-22T02:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from invoke_lambda import invoke_lambda
lambda_function_name = 'kfunamizu_sample'
event_dict = {
'1' : '1',
'2' : '2',
'3' : '3'
}
invoke_lambda(lambda_function_name, event_dict)
| [
"noreply@github.com"
] | kfunamizu.noreply@github.com |
e0f9165cff9cd3483a106ee3bf7fe2a57c111548 | 6632d2c21ad089ef6952422211fd01bf33a9408e | /backend/todo_api/todos/migrations/0001_initial.py | d5de5a7a539d4425737b2308f0d479ae147c178d | [] | no_license | tylarpierson/front-end-to-back-end | bc5a46d662abd369e05a60864d1c2b9b94c075fc | e2d8da87418544abcf3f9ee9746a96e098d01ddb | refs/heads/master | 2020-03-25T16:09:22.172683 | 2018-08-09T17:02:10 | 2018-08-09T17:02:10 | 143,917,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # Generated by Django 2.1 on 2018-08-07 20:12
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id', models.AutoField(auto_... | [
"tylarpiersonbusiness@gmail.com"
] | tylarpiersonbusiness@gmail.com |
a9fbf6d770010914427a3c36f2748a7edf47a25c | 4236063269a9989e97d56cea6651ac371e310ed0 | /gscholar/migrations/0002_auto_20150526_1846.py | 0daab647349f8d31ab37dc4760f66708be8f448a | [
"MIT"
] | permissive | afonari/scholar-scrapy | 8cddef03b9657adf0148e5a87cb846cd409c92e1 | 2d363789a376e5428971ceaa6b830de326e2b1a3 | refs/heads/master | 2021-01-18T04:44:40.307013 | 2015-05-27T14:02:21 | 2015-05-27T14:02:21 | 36,240,290 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('gscholar', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='organization',
name=... | [
"firstname.lastname@gaetch.edu"
] | firstname.lastname@gaetch.edu |
8e1d635e43cf0d4a577b35facf856bf52864130c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04005/s700047032.py | 6b014ba065ec8998d3dab92a228e7bca1810778d | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | a,b,c=map(int,input().split())
print(0 if (a*b*c)%2==0 else min(a*b,b*c,c*a)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
11d8813586dc9942197cdf6aa7084833e35848d1 | a12d2d99d6bbb00bf4dabcab8c3efe5ea4714648 | /DistractedDriverMaskFaces.py | 6dfccfe249c75a8c993f7a9c25cc269dfce6661e | [] | no_license | devyhia/slim-backup | 01a702f65d4d5a2994cd2fac1ee225646e819fd9 | 26471cf66cf8e8ceff136a692ae6ba36fea90952 | refs/heads/master | 2021-01-12T00:14:25.456094 | 2017-10-17T09:54:35 | 2017-10-17T09:54:35 | 78,696,206 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | import pickle
from glob import glob
import numpy as np
from PIL import Image
import Shared
from tqdm import tqdm
import os
with open('/home/devyhia/FaceDetection_CNN/result.pickle') as f:
results = pickle.load(f)
def mask_image(img_path, boxes):
img = Image.open(img_path)
if len(boxes) == 0:
ret... | [
"devyhia@aucegypt.edu"
] | devyhia@aucegypt.edu |
73ca58f9efc45c92c45588633643d3a142934c43 | 4ad8443f46a93eb3d4dfe0855ed0860143818a2b | /wiki_processor/exobraindata_preprocessor.py | e8bcca59479cfaf7aa7af25ef69510b0fd8f247c | [] | no_license | delosyCho/Sentio-Web | 97186c659ca268288b66e8f222bd5ca1427fc304 | c39493998dd9aa217102e5b9578c98268dd4fa7e | refs/heads/master | 2020-03-30T08:20:57.578484 | 2018-11-08T16:54:30 | 2018-11-08T16:54:30 | 151,008,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,391 | py | import numpy as np
import codecs
import pandas
from functions import *
exo_paragraph = open('exo_paragraph', 'w', encoding='utf-8')
exo_question = open('exo_question', 'w', encoding='utf-8')
exo_label = open('exo_label', 'w', encoding='utf-8')
exo_answers = open('exo_answers', 'w', encoding='utf-8')
paragraph_file =... | [
"delosycho@gmail.com"
] | delosycho@gmail.com |
1f6d7e07edb5c93c86a793d1ec1b2f4d6b7155c1 | 479aefa19c46bd31d567035fed0227b4282fc662 | /MovieWebsite/group_func/migrations/0005_remove_group_description.py | ebb5650eb875ada7722ba22810ddda024100be8d | [] | no_license | KarryBanana/SE_Project | cc60371bf5194bf003ecafe1d21ce7f3878f644d | f9ede4caae56de97dfe6abb84f0e4811ff6d65b5 | refs/heads/master | 2021-05-23T01:36:27.939979 | 2020-08-10T08:39:25 | 2020-08-10T08:39:25 | 253,175,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | # Generated by Django 3.0.7 on 2020-06-29 06:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('group_func', '0004_group_description'),
]
operations = [
migrations.RemoveField(
model_name='group',
name='description',
... | [
"bill881@126.com"
] | bill881@126.com |
e0b9e75b23d4f7865588f65066034254d752d3c3 | 33e0d2d343b276b96236890823e8446482c5b9d8 | /myapi/settings.py | 11a2ffab604010b5288b8d2f545d6d1d8ec2f759 | [] | no_license | ketan9712735468/myapi | 1b3e96ba76f4b37dc28a4954b0a4d1f306d9ae7c | 0c3c4054f55759c816a589246aac439f85544b7a | refs/heads/main | 2023-04-17T02:53:00.794462 | 2021-05-11T05:51:14 | 2021-05-11T05:51:14 | 366,246,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,762 | py | """
Django settings for myapi project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib i... | [
"ketanmangukiya001@gmail.com"
] | ketanmangukiya001@gmail.com |
8390f315350a7ef693bf2bcfdc6e4036a4cc0c15 | c968e2d6e6e6ce33ed3a32f7f458117495627856 | /chessBoard.py | e7f21d88521d0d33f730a83ba064b9aae25f1611 | [] | no_license | cjeongmin/AD_Project | e86c000cc50c04ee5d31b1d8a73f96fb733a0859 | 9293e4870b2e2eeb7f4e8e8ca82a93d8eda806c9 | refs/heads/master | 2020-09-09T23:25:59.257906 | 2019-12-19T07:45:49 | 2019-12-19T07:45:49 | 221,595,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,302 | py | import os, sys, copy
sys.path.insert(0, os.path.dirname(os.path.abspath(__package__))+"/chess")
from chess.pieces.pawn import Pawn
from chess.pieces.bishop import Bishop
from chess.pieces.knight import Knight
from chess.pieces.rook import Rook
from chess.pieces.queen import Queen
from chess.pieces.king import King
fr... | [
"hsj9830@kookmin.ac.kr"
] | hsj9830@kookmin.ac.kr |
627e5d9f212753a73b9f9c9e81a215e81c4bc4b6 | 14b768ac8d2ea19fa8f3c99f9802fb9096a2e7f0 | /core/world_patch_block.py | 368aaefd742a463d793003cbd5c261621fc6e847 | [] | no_license | RogodaThallus/PyLogo | f1c397b0cd262b5cf39f3720c30348204525e0de | b41e47dfa287636675f38535ae2d3995aa4cd027 | refs/heads/master | 2021-01-08T08:13:50.671951 | 2020-04-11T00:02:17 | 2020-04-11T00:02:17 | 241,967,208 | 0 | 0 | null | 2020-02-20T19:07:50 | 2020-02-20T19:07:49 | null | UTF-8 | Python | false | false | 9,780 | py |
from __future__ import annotations
from math import sqrt
from typing import Tuple
import numpy as np
from pygame.color import Color
from pygame.rect import Rect
from pygame.sprite import Sprite
from pygame.surface import Surface
import core.gui as gui
# Importing this file eliminates the need for a glo... | [
"noreply@github.com"
] | RogodaThallus.noreply@github.com |
c0574a8a5fa7e73892144516652ea7a402e4d49e | 62f0ed8bbe8f10bd646cc9f8eaaf5a2da20f9241 | /Persistence/settings.py | bdeccb02e414f2142a1c14a2dd63ec91e24b008a | [] | no_license | leonardoGarciaOlmos/Persistence | 3e329366ded3ac4cac41564e48c9048027674529 | 266ff798f70656b580355d689a327807604a9ba9 | refs/heads/master | 2022-12-26T15:10:27.612123 | 2020-09-09T02:20:55 | 2020-09-09T02:20:55 | 293,978,223 | 0 | 0 | null | 2020-10-06T01:58:21 | 2020-09-09T02:14:57 | Python | UTF-8 | Python | false | false | 3,077 | py | """
Django settings for Persistence project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pat... | [
"leonardogarciaolmos.12@gmail.com"
] | leonardogarciaolmos.12@gmail.com |
85350cd3891916912a4ea7f31d7e3e9d72b3c3e5 | ad32805a821fb06bde87a6d05c3d80ae477dc00b | /parts/migrations/0008_auto_20200204_0224.py | 216c76ae8458539d3633edecdce7f9023faeff6c | [] | no_license | phrac/maintdx | a89a15e4d92f77b91016737a7b410a7579d07c6c | 583b308568e25da6d99fa6d41150602baa253377 | refs/heads/master | 2021-07-01T05:11:51.994071 | 2021-05-14T13:41:20 | 2021-05-14T13:41:20 | 131,013,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # Generated by Django 3.0.2 on 2020-02-04 02:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('parts', '0007_part_on_hand'),
]
operations = [
migrations.AlterField(
model_name='partinventoryitem',
name='current_... | [
"158748+phrac@users.noreply.github.com"
] | 158748+phrac@users.noreply.github.com |
c9cae191ed82b398a32e7bbb77325f3110605fe2 | 1c099518cfa5843928763854e6c231d435fc25f4 | /deepfake/feature_trainer.py | 792d8d588a90208ba85107a71b5c7f82eb5ecf4d | [
"CC-BY-2.0"
] | permissive | poke53280/ml_mercari | b3cdda6d53fc4e0f2fca93d9a0ea0231f205ad69 | f01ff6c1ca3f341e57c769e06abb136a044c9f74 | refs/heads/master | 2021-06-02T06:21:57.211262 | 2020-10-11T12:08:58 | 2020-10-11T12:08:58 | 114,643,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,039 | py |
import numpy as np
from mp4_frames import get_output_dir
from mp4_frames import get_ready_data_dir
from featureline import get_feature_converter
from featureline import is_error_line
import pandas as pd
from random import shuffle
####################################################################################
#... | [
"anders.topper@gmail.com"
] | anders.topper@gmail.com |
d61e4fd8b851cc4502bc8ecd7ef7e7bfa986eba9 | 408ac5f3ca1bd31f3f0aad22a7a96f800b8bd197 | /main.py | 615df94c4c5beacdd6fc0eabd2a923dc5e089ddc | [
"MIT"
] | permissive | HandsomeBrotherShuaiLi/ICM | 8bedc9df2320374f82f06cf6acd2d1e00a4e9b6d | 81218c52e83760f7a0f0b98677be138ccf5f99f1 | refs/heads/master | 2022-06-02T05:57:34.428872 | 2020-05-02T04:51:04 | 2020-05-02T04:51:04 | 240,472,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,117 | py | import pandas as pd
import networkx as nx
import matplotlib.pyplot as plt
import tqdm,json,math
from collections import defaultdict
match_path='2020_Problem_D_DATA/matches.csv'
passings='2020_Problem_D_DATA/passingevents.csv'
fullevents='2020_Problem_D_DATA/fullevents.csv'
def draw_graph():
fp=pd.read_csv(passings)... | [
"shuai.li@shopee.com"
] | shuai.li@shopee.com |
d58bb0a7506b482ebe8691fb9e5ca33753fc225f | 51c5f9b4dfeb9b17f451215556c1c80f77373731 | /LeetCode/firstUniqueCharacterInAString.py | a56e50cfae12139b6a45450b8edc331cc15d2f85 | [] | no_license | rupampatil/InterviewPractice | 56c4b75b88f9c99092d4351e98e002eadddc19e4 | e1b2acd592a9255b865c3a7973241e65e78881c4 | refs/heads/master | 2021-09-13T06:34:14.188208 | 2018-04-26T01:47:41 | 2018-04-26T01:47:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | class Solution(object):
def firstUniqChar(self, s):
"""
:type s: str
:rtype: int
"""
index = -1
occuranceMap = {}
counter = 0
for char in s:
if char not in occuranceMap:
occuranceMap[char] = [1, counter]
else:
... | [
"vignesh.palani96@gmail.com"
] | vignesh.palani96@gmail.com |
0f0ac7131d34ccf128488c79b8bcfe76a6563d3b | d9eee05d8b4b7c7eadc3f1a4b5f7c4c2ceb34640 | /Blog_app/Blog_app/wsgi.py | b2990117ca40734ad4f7f1b3ba0d3dbabd1788c0 | [] | no_license | Balarubinan/Y_Blog_Django | 42713bd4c1e49db2d428a5cf11ba49f010a0abcf | 6ff0d1e7b22edb47446ad4c0f64b01de5ecefaa3 | refs/heads/master | 2023-05-29T20:52:33.299987 | 2021-06-18T01:27:05 | 2021-06-18T01:27:05 | 371,956,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for Blog_app project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"sudhagouthirubi@gmail.com"
] | sudhagouthirubi@gmail.com |
21930607b7f52c05a07d0c7707febfa51400b0ab | 553ff32aab110184fc4ed8eb709a99e03e37b9f7 | /wxglade/egy/egy.py~ | 319c86196187e4c4400f55d90951044eaa8e1a7e | [] | no_license | janos01/esti2020Python | 21201e07e7c0f8a93fd7c5bc420d6b10021b5d51 | 6617370c715e309614e8b4808e12ffe3b0130562 | refs/heads/main | 2023-04-15T10:01:56.332714 | 2021-04-28T21:48:03 | 2021-04-28T21:48:03 | 302,071,533 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# generated by wxGlade 1.0.0a9 on Wed Dec 16 18:20:18 2020
#
import wx
# begin wxGlade: dependencies
# end wxGlade
# begin wxGlade: extracode
# end wxGlade
class MainFrame(wx.Frame):
def __init__(self, *args, **kwds):
# begin wxGlade: MainFrame.__init__
... | [
"termih@gmail.com"
] | termih@gmail.com | |
9f9f44f274098ac6cff49f994acfc329089a67fc | 6169edb3d95a01ccc03a6e8fe9c571267c6f5773 | /setup.py | 5865ed91c4583b6e56b7d480f9c59ff6a4a12850 | [
"MIT"
] | permissive | thatscotdatasci/flask-simple-api | 95d823e46b7ee0cda485567128823060bf0c42e9 | e4c23a3d9c0817856e3736da4805a9d727a37058 | refs/heads/master | 2020-04-02T04:01:24.551686 | 2018-12-02T17:49:59 | 2018-12-02T17:49:59 | 153,995,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('packages.dat') as f:
packages = f.readlines()
packages = [s.strip() for s in packages]
setup(
name='flaskapi',
version=open('version.txt').read().strip(),
packages=packages,
description='Simp... | [
"alan@thatscottishdatascientist.com"
] | alan@thatscottishdatascientist.com |
3821e4b7f0ea0366e7b7f21df53b33cf7690def7 | 9a942f1e58f296b68868d777c5351d7dfaa43103 | /mysite/polls/admin.py | 1c12987515f57b99d7e9a6f0812fdf0720def0ff | [] | no_license | priscilamoreno/proyectofinal | 570f16afd53df7d9ac24a877e2b4c9f0e1e6e470 | c40fdb47754eacbe6c7aba606c1706f281b5a16c | refs/heads/master | 2020-08-23T19:21:22.109761 | 2019-10-29T00:53:04 | 2019-10-29T00:53:04 | 216,691,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | from django.contrib import admin
# Register your models here.
from .models import Choice, Question
class QuestionAdmin(admin.ModelAdmin):
fields = ['pub_date', 'question_text']
fieldsets = [
(None, {'fields': ['question_text']}),
('Date information', {'fields': ['pub_date']}),
... | [
"prismoreno12@gmail.com"
] | prismoreno12@gmail.com |
c4ec45f547704f0827cbcb4543ad433d679ff606 | da50dccf17b01c370a3e31a27f2a813be1dd74ba | /2.RL_Codes/6.Oct16th-WeightedInterpolation/RL_SISO_Linea2.py | faf0b67afd08b5daee6c439f100c5110e081553c | [] | no_license | Tang-08080103/Research | 13d297749657bf572ad3258fb507305afb4e2311 | 814e1054ed43384d99e3be7085cbffbed93f4dd1 | refs/heads/master | 2022-04-12T04:37:32.171533 | 2019-10-29T23:36:52 | 2019-10-29T23:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,482 | py | import numpy as np
import sys
sys.path.insert(0, '/home/rui/Documents/RL_vs_MPC/Models')
sys.path.insert(0, '/home/rui/Documents/RL_vs_MPC/Modules')
from RL_Module import ReinforceLearning
from Linear_System import LinearSystem
"""
Define reward function for RL. User defines the reward function structure.... | [
"Rnian@ualberta.ca"
] | Rnian@ualberta.ca |
64be5a82e097dc255667f247d99645295516de35 | b194a672bfd619a82fb6f46755ab277a249e8f8c | /pcdViewer.py | ba8fed3078e23da69f1d6910320118e5e2f85ee8 | [] | no_license | nakawang/3D_VIEWER | af968d7ec1de681951fc22d5ea6f36b0dac65c5c | eed7187c76e25d3235fe5882ef5f0f8a7990b75d | refs/heads/master | 2020-08-14T19:45:37.307273 | 2019-10-24T00:25:30 | 2019-10-24T00:25:30 | 215,224,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,802 | py | # -*- coding: utf-8 -*-
import vtk,sys,numpy,os
from numpy import random,genfromtxt,size
from PyQt5 import QtCore, QtGui, QtWidgets
from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor
from PyQt5.QtCore import pyqtSlot, QThread
from vtkPointCloud import VtkPointCloud
class PCDviewer(QtWidgets.QFra... | [
"nakawang@benanos.com"
] | nakawang@benanos.com |
d7c5e0e63a5da66fb40e2613241a31fe1a99a12e | 2418e4c4f640c48708c12c3058f8e16144856a0c | /problem0016.py | d0c86a69bd091b9f305da0b8e4390291e4127b61 | [] | no_license | sergii-yatsuk/projecteuler | 482eb32d0cc71ea5dbcaaf3bb1bca7ef575f799b | 94918d0d77c0b1b4f2c28af8d241e1c2fd8424f4 | refs/heads/master | 2021-05-26T18:32:11.616693 | 2013-01-10T14:59:00 | 2013-01-10T14:59:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | # 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
#
# What is the sum of the digits of the number 2^1000?
s = str(2**1000)
sum = 0
for i in s:
sum = sum + eval(i)
print (sum) | [
"tifon@bigmir.net"
] | tifon@bigmir.net |
d55e1cacb5ece1533562af42c297ae0b015d4026 | f49e474bfc8a605d6b1afe3fbc020e976fadbca4 | /KWS/TestPrograms/test_vad_test.py | ffae8969597b5e6e975a5569b98232ab9fee26c2 | [
"MIT"
] | permissive | xrick/gotek_smic | 1b3100f38253cb06eae9eb4435c176168cc71cc6 | 7655b6d7415b23c35810b8db48af7424f7dcdb06 | refs/heads/master | 2021-01-14T16:51:22.331707 | 2020-09-15T08:11:08 | 2020-09-15T08:11:08 | 242,686,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | import numpy as np
from numpy.linalg import norm
import scipy.io.wavfile as wavio
def vad_test(s, fs):
s = s - np.amin(s)
s = s / np.amax(s)
FrameSize = int(fs * 0.025) #400
ShiftSize = int(fs * 0.010) #160
Overlap = FrameSize - ShiftSize #240
threshold = -1.9
s_temp = []
temp = []
... | [
"noreply@github.com"
] | xrick.noreply@github.com |
8ddd254592f7edae681a46dc57c7889ff7b0ec7a | 65d5b8c6c928fd26015e1af4b9b5c644f28f04e2 | /Comp307v3/TeraChess/views.py | e4eb6e54125a42961a13560a7dec6dcfabe6a7ec | [] | no_license | 307Project2018/The-Project | 3fd66f1776ea0ea6026c7f880e678c9f829f6ce7 | ba850f7d6f82bca034e53778e6ecea2d20c246e4 | refs/heads/master | 2020-04-04T11:16:37.294196 | 2018-12-11T16:59:22 | 2018-12-11T16:59:22 | 155,884,992 | 0 | 0 | null | 2018-12-10T21:39:53 | 2018-11-02T15:24:45 | Python | UTF-8 | Python | false | false | 25,631 | py |
from django.shortcuts import render, redirect
from .models import PieceSet, Player, PieceInstance, BoardInstance, Cell
from django.http import Http404
from django.views.generic.edit import CreateView
from django.views.generic import View
from .forms import UserForm, PieceSetForm, PieceInstanceForm, BoardForm, SecondPl... | [
"44643868+oblivionmasta@users.noreply.github.com"
] | 44643868+oblivionmasta@users.noreply.github.com |
f3b2d326186a171ad037c7d0921726cd3589a4da | d51ae5ad901442f117f68cbac61551fed4e6b89d | /article/migrations/0013_auto_20200402_1207.py | 7bcd04b865bff3c0252dce15107f397ba349af4e | [] | no_license | wmc-wmc/wmc-ex_2 | 933717da29ef830d81eda1540ac3551d7f131e32 | eea9ead0f66bd68167f46f796d154733b6b28dbc | refs/heads/master | 2021-02-13T00:41:14.541497 | 2020-12-24T00:35:27 | 2020-12-24T00:35:27 | 244,646,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # Generated by Django 2.2 on 2020-04-02 12:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('article', '0012_auto_20200402_1205'),
]
operations = [
migrations.AlterField(
model_name='text',
... | [
"ting@TingdeMacBook-Pro.local"
] | ting@TingdeMacBook-Pro.local |
900089348be19cdb331a0375bc31ff95224dd942 | d8c006e858be14eb595cdfbe702d1a29f1262e35 | /qa_community/urls.py | d159479338e3daf1c5c1dea4e5808477e8cd04ae | [] | no_license | xautxuqiang/qa_community | 96dc1211b3a254dd2faac44571c474d48bb75059 | 385244735e6deb3e36c9340ea5b2d08f74ea25db | refs/heads/master | 2021-01-20T00:21:40.329485 | 2017-04-23T08:54:15 | 2017-04-23T08:54:15 | 89,118,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | """qa_community URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"xautxuqiang@126.com"
] | xautxuqiang@126.com |
668367219c3778b58c7a11e35d4dd7933fc53e37 | 6240aaa218bacab8099e13f95c37faff0ff9f074 | /scripts/inject-document-props-as-overload.py | 1b7d302fbf1e8c24229df496e932c0589c583689 | [
"Apache-2.0"
] | permissive | florian-hoenicke/jina | 5f5a7b38641a1cbe1018bfeab17b22a00c0f16f8 | 52cd3074b65caec7a370386ec5a5f87ad7b0133d | refs/heads/master | 2023-07-21T03:17:14.676658 | 2021-08-29T15:42:32 | 2021-08-29T15:42:32 | 309,146,742 | 1 | 0 | Apache-2.0 | 2021-08-29T18:26:30 | 2020-11-01T17:11:45 | Python | UTF-8 | Python | false | false | 2,667 | py | import inspect
import re
import warnings
from operator import itemgetter
from typing import Optional, Tuple, List
from jina import Document
def get_properties(cls) -> List[Tuple[str, Optional[str], Optional[str]]]:
src = inspect.getsource(cls)
members = dict(inspect.getmembers(cls))
setters = re.findall(... | [
"noreply@github.com"
] | florian-hoenicke.noreply@github.com |
9ac298fb3e0f4e14401c2b75d4e859bc33eb3bd0 | 6b99473f9ba16700d0e86aaa8e5f109a28d1e976 | /Cryptography/Cryptography-1/Materials/caesar_encrypt.py | 6a56c9ec31a0c331b0cb43f26a2dce2a68ae1db1 | [] | no_license | kcwong395/CyberSecMaterial | 190988ca26f04d365c24d49e2a014b00a6086410 | cb974f7a837a6103b4344c6c5e50d26ddf1c1752 | refs/heads/master | 2020-07-26T07:09:16.877651 | 2020-01-03T14:52:53 | 2020-01-03T14:52:53 | 208,573,409 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | # This function intends to encrypt plaintext using Caesar Cipher
def CaesarEncrypt():
plainText = input("Plaintext: ")
key = input("Key: ")
cipher = ""
for letter in plainText:
if 'a' <= letter <= 'z':
# ord(letter) - ord('a') gives the index in alphabetical sequence
# ... | [
"wl01377870@gmail.com"
] | wl01377870@gmail.com |
fa29d9535df03bd0c2da27a460344a114a8b1395 | 58fc6705ce0422a1cc1d597aac41501600d5328c | /Python/113_PathSum2.py | e14f8818e68b55e0ef4632200285b9ed16b2df47 | [] | no_license | CollinErickson/LeetCode | d8963e6e6f34863148aa0a724adc783413ad1297 | d9159ba7ebd14daec994380f3d4361777053ea67 | refs/heads/master | 2022-03-03T19:55:55.003619 | 2022-02-22T00:29:13 | 2022-02-22T00:29:13 | 90,581,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | class TreeNode(object):
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
def __repr__(self):
s = str(self.val)
if self.left is not None:
s += "(" + str(self.left) + ")"
if self.right is not None:
... | [
"collinberickson@gmail.com"
] | collinberickson@gmail.com |
870295855028634658daaffe4d7d3ceb2ad0de83 | 518a08f0119c2158c4f7efa8343acfe4d2e7cefc | /project/delete.py | fe9993ba083458b4c0eb39e42a6a9606fe6685db | [] | no_license | WahyuSulistya27/hellio_word | 52efc978dc7b4d00e60521d3c6602496c71cb6c5 | cdfd40911a76adda492ab56d53ce12017f2d7414 | refs/heads/main | 2023-07-29T00:55:59.392609 | 2021-09-17T15:10:02 | 2021-09-17T15:10:02 | 407,381,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from fastapi import APIRouter
from data import dokumen as list_dokumen
from starlette.responses import Response
from connect import *
from model import *
router = APIRouter()
dokumen = list_dokumen
@router.delete("/delete/{noreg}", status_code=201)
async def delete_dokumen(noreg : int):
try:
c... | [
"noreply@github.com"
] | WahyuSulistya27.noreply@github.com |
c59860e2c00c47a8509ad358429bc68d5820ac99 | 555e43e55bf51273cf413fe828a5913a44ab1878 | /Aws boto/Boto_scripts/s3file.py | a0045d276a795608dc77d29aded02b19effb9445 | [] | no_license | sagarkites/Devops | 24ea85d184a4c51bebb490575e9d10163a149471 | 2b58206cabb8f55a0ff69325fa424ff9c480565f | refs/heads/master | 2020-04-12T07:48:30.406785 | 2019-04-09T11:53:05 | 2019-04-09T11:53:05 | 130,677,714 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | import boto3
# Downloding file from S3
s3 = boto3.client('s3')
s3_get = s3.download_file('jiraya','Bucket.py', '/Users/pavanscott/Downloads/script.py')
print(s3_get) | [
"vidyasagarchintaluri@gmail.com"
] | vidyasagarchintaluri@gmail.com |
b5722af8ed32f8e2da48f5c2d6fcd13c8de9701f | 52d324c6c0d0eb43ca4f3edc425a86cdc1e27d78 | /scripts/asos/archive_quantity.py | 9c22be17d7528b94acd44e3f1e30933859ee8315 | [
"MIT"
] | permissive | deenacse/iem | 992befd6d95accfdadc34fb7928d6b69d661d399 | 150512e857ca6dca1d47363a29cc67775b731760 | refs/heads/master | 2021-02-04T04:20:14.330527 | 2020-02-26T21:11:32 | 2020-02-26T21:11:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py | """ Create a simple prinout of observation quanity in the database """
from __future__ import print_function
import sys
import datetime
import numpy as np
from pyiem.util import get_dbconn
class bcolors:
"""Kind of hacky"""
HEADER = "\033[95m"
OKBLUE = "\033[94m"
OKGREEN = "\033[92m"
WARNING = "... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.