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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e34d413a8c1c98d6d21b693a46353b5a9c8d1190 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2819/60731/291725.py | 8bfd0a4aca43e95e2c7b094a9d0e61a6a52acd4a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | n=int(input())
data=list(map(int,input().split()))
numof1=data.count(1)
numof2=data.count(2)
numof3=data.count(3)
numof4=data.count(4)
ans=0
ans+=numof4
num1=int(numof1/4)
ans+=num1
numof1-=4*num1
num2=int(numof2/2)
ans+=num2
numof2-=2*num2
if (num2+numof3)>=numof1:
ans+=(numof2+numof3)
else:
ans+=numof1
print(... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2ff02576828483feb35dafe118dc773c7fb9f7a0 | da19363deecd93a73246aaea877ee6607daa6897 | /xlsxwriter/test/comparison/test_page_breaks05.py | fb2c64036f0be6ae53d7ae0229ca42202a630f17 | [] | no_license | UNPSJB/FarmaciaCrisol | 119d2d22417c503d906409a47b9d5abfca1fc119 | b2b1223c067a8f8f19019237cbf0e36a27a118a6 | refs/heads/master | 2021-01-15T22:29:11.943996 | 2016-02-05T14:30:28 | 2016-02-05T14:30:28 | 22,967,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTes... | [
"lealuque.tw@gmail.com"
] | lealuque.tw@gmail.com |
7b56fc22aa32b03fb0cfa39a1d0b49bca82553d5 | 59d5a801dd8361fe2b68f0cdfc1a0c06bbe9d275 | /Competition/fast-flux域名检测/backup/v1/feature_engineering.py | 70c7ab417fa009bb50ad40233fda391a9e85cdb7 | [] | no_license | HanKin2015/Machine_to_DeepingLearning | 2ff377aa68655ca246eb19bea20fec232cec5d77 | 58fa8d06ef8a8eb0762e7cbd32a09552882c5412 | refs/heads/master | 2023-01-25T01:16:41.440064 | 2023-01-18T08:23:49 | 2023-01-18T08:23:49 | 134,238,811 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,016 | py | # -*- coding: utf-8 -*-
"""
文 件 名: feature_engineering.py
文件描述: 特征工程
作 者: HanKin
创建日期: 2022.10.18
修改日期:2022.10.18
Copyright (c) 2022 HanKin. All rights reserved.
"""
from common import *
def exception_value_processing_by_delete(dataset, feature, lower_threshold, upper_threshold):
"""异常值处理(删除)
... | [
"1058198502@qq.com"
] | 1058198502@qq.com |
56390cf28d674c62ccbe1a752ed094f6acc2089b | 8987e276c7f7112a3c378d5cb74e55e2d15ad385 | /22 for.py | c3a57a1777a329dade541a7020245ba28cddd617 | [] | no_license | Leshens/Pytong | 358bd8a139fc61031151131070bd0e744948f889 | f99d827fa06e28302be271f0cec7d63afdbe2652 | refs/heads/main | 2023-08-22T19:47:05.186228 | 2021-10-06T10:23:34 | 2021-10-06T10:23:34 | 414,162,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | x=int(input("podaj liczbę"))
i=2
s=0
for x in range(x):
s+=i
i+=2
print(s) | [
"kacper.kamm@gmail.com"
] | kacper.kamm@gmail.com |
9add44556624cce70e61fc0e44b96622417024e4 | f78e3399b81fc6337f90284f08f47ac5b15abe8d | /codes/idd_training_codes/parse27k_train_net.py | eae48412151cea94ffd117a27a984aafaf50233e | [] | no_license | kbkartik/obj-det | 96e7d424eb81d309ae776ad9b9833e760061104d | 4cc0907dc1f8f29157d162ede1192c91314d23a2 | refs/heads/main | 2023-05-09T18:00:47.560401 | 2021-06-07T04:19:33 | 2021-06-07T04:19:33 | 374,518,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,352 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
"""
Detectron2 training script with a plain training loop.
This scripts reads a given config file and runs the training or evaluation.
It is an entry point that is able to train standard models in detectron2.
In order to let one script support tra... | [
"noreply@github.com"
] | kbkartik.noreply@github.com |
e6c4441e2e87d731f8d9d4819d894c13479ecec6 | b4aa80fd4af805f31c139eca68963ceb56863dfb | /app/models/follow.py | ea5471ce614852a532fe455dce75cc5da1b52b49 | [] | no_license | COrtaDev/bl3-companion-updated | aff7911f38804cef2ba47f474c084204f494c5d4 | d531971fa249679965258ba835e697d6b0e73587 | refs/heads/main | 2023-03-19T15:07:55.062168 | 2021-03-11T01:37:48 | 2021-03-11T01:37:48 | 335,014,880 | 1 | 0 | null | 2021-03-11T01:37:48 | 2021-02-01T16:37:42 | CSS | UTF-8 | Python | false | false | 678 | py | from .db import db
# from .user import User
from sqlalchemy.sql import func
class Follow(db.Model):
__tablename__ = 'follows'
id = db.Column(db.Integer, primary_key=True)
follower_id = db.Column(
db.Integer, db.ForeignKey('users.id'), nullable=False)
followed_id = db.Column(
db.Intege... | [
"conradorta@gmail.com"
] | conradorta@gmail.com |
ac9209674467e164bb9b6fb0fc5d31b1378494bf | af6bf85d1f8c3583f8c3b60fa86228660585462c | /Level 2/Greedy.py | e7c34cddd9668657b462d39123ac18a8ea75d323 | [] | no_license | hungcn/Robot-Path-Finding | b1d621ca648d0f5cb4c1d78a0b68b484a82a3ea2 | 1236dae61e3ad016693bd3ae8bbfc869055b674c | refs/heads/master | 2022-12-09T09:38:06.845434 | 2020-09-02T04:21:04 | 2020-09-02T04:21:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | import cv2
import numpy as np
import math
import queue
nP=0
m=0
n=0
S=[19,16]
G=[2,2]
q=queue.Queue()
matrix=np.zeros((25,25))
def box(img,p,color):
cv2.rectangle(img,(21*p[0]+1,21*p[1]+1),(21*p[0]+20,21*p[1]+20),color,-1)
def box2(img,p,color,m):
box(img,(p[0],m-p[1]),color)
... | [
"1712475@student.hcmus.edu.vn"
] | 1712475@student.hcmus.edu.vn |
e5f28de8d36b7fe9419201e9c48adec23ac188c1 | 96fb9c10b697528ae171a71f20c3de09938d005e | /dyform/wsgi.py | e22d8b50919b8246394293fa0c8f13fc34e8770e | [] | no_license | GDThumar2409/dyform | efbf4aebe176ed9ef8ec233d6ea2441769097bed | 30b64974a3ea6ff88663740510cff58ac3f2ed77 | refs/heads/master | 2022-05-26T04:58:10.840368 | 2020-04-29T14:39:02 | 2020-04-29T14:39:02 | 259,951,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for dyform 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.setdefault('DJANGO_SETTIN... | [
"47185326+GDThumar2409@users.noreply.github.com"
] | 47185326+GDThumar2409@users.noreply.github.com |
cc9eae73a0bebee70d55a11158f3ddc1d18a24b2 | bba5fba866d367a717d9700a580be52e159a1cd0 | /Semana 6/19. transformaciones morfologicas/labeling.py | 90581c0a3eaae2f96d0ce684328e1838f5aa7cd9 | [
"MIT"
] | permissive | NSnietol/Introduccion-vision-computador-opencv-edx | 10c49849ecd0fba434dcae99edaedd46cbd94f94 | 93f6f3989d9320fb6be9b28c687ea3ae337ba8c5 | refs/heads/master | 2020-03-15T08:42:58.835137 | 2018-05-19T12:42:15 | 2018-05-19T12:42:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import cv2
import numpy as np
file='Clase1.jpg'
img = cv2.imread(file)
if(img.size<1):
print("Error")
else:
imgray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
ret,thresh = cv2.threshold(imgray,130,255,0)
image, contours, hierarchy = cv2.findContours(thresh,cv2.RETR_LIST,cv2.CHAIN_APPROX_NONE)
cnt = con... | [
"nilson-sn@outlook.com"
] | nilson-sn@outlook.com |
1e029d2709ab09d94b6a3a2caec403e0ee713bf0 | b6eb712bed776262972672ee5448b2cdf713af63 | /0046.py | 38b17590f592f96a19ce2ba11f404158244a2ef9 | [] | no_license | hulian425/aizu | 873ef64ef540a50b163782adab635ec480565d4d | 948219100c4c58f5b04b3480aa64bce8c951e1a1 | refs/heads/master | 2020-08-16T11:50:04.681754 | 2019-10-17T14:08:27 | 2019-10-17T14:08:27 | 215,498,392 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | m={'A':0,'B':1,'C':2}
a = 'A'
b='B'
while True:
try:
a, b = list(input().split(','))
except:
break
m[a],m[b]=m[b],m[a]
if m['A']==0: print('A')
elif m['B']==0: print ('B')
elif m['C']==0: print('C')
| [
"noreply@github.com"
] | hulian425.noreply@github.com |
8cc901361d55f79ee3f7ce40e5f13d9154bb9753 | f018cc330609eb76ab570d07eb2f5d218db60bcb | /get_user_info.py | 05ddf23be66c44eb550ab71fcc220352f89da836 | [] | no_license | vishavgupta97/instabot | c117f9e9fee613b2524b377af7c9bd183a94f968 | fca9d4351e0abfc687b868c906368be21ac19db7 | refs/heads/master | 2020-12-02T20:55:53.048778 | 2017-07-14T10:46:23 | 2017-07-14T10:46:23 | 96,230,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | from get_user_id import get_user_id
import requests
from constants import BASE_URL,APP_ACCESS_TOKEN
from colorama import *
#Mehod FoR Getting information of a particular user
def get_user_info(insta_username) :
user_id=get_user_id(insta_username)
#If Nothing is recieved from server
if user_id == None:
... | [
"vishavgupta988@gmail.com"
] | vishavgupta988@gmail.com |
e3c587cf4a2d905939a4c7e8750bc6d0ff07f00c | 4c718d78039ca97e1a9b18897642e8bc5cd394d9 | /Python code of quizzes/Lesson 6/TagTypes.py | e4bdc42307b8303b26cd8b79cf4aa17d2960ee3f | [] | no_license | aish27/data-wrangle-openstreetmaps-data | 81a3fa4a1a06ea8972f6e98af77e9e71350a65bc | 9e5eedf49ca67b480bb969ebe4db77df62bf238d | refs/heads/master | 2020-12-02T19:26:04.726496 | 2015-06-12T17:38:37 | 2015-06-12T17:38:37 | 37,049,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | #Determines the problematic tag types that exist in a dataset and their numbers.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import xml.etree.cElementTree as ET
import pprint
import re
lower = re.compile(r'^([a-z]|_)*$')
lower_colon = re.compile(r'^([a-z]|_)*:([a-z]|_)*$')
problemchars = re.compile(r'[=\+/&... | [
"root@ip-10-47-174-141.ec2.internal"
] | root@ip-10-47-174-141.ec2.internal |
987487fdb35b017168fc42b6be59a9afb9de7135 | f28f56a35ce5c92959926283afd06c7e3da41be7 | /LearnKeras/02_Deep_circles_classifier.py | f4e33411273b556c8e108f7d04f0564675918e5a | [] | no_license | gsailesh/Learnings_2018 | f402e8c17aa9c9a798dfc5d5ea83660027b581f7 | 32764ce3280cf011b15af8346a4b1b1a4ed15dfb | refs/heads/master | 2020-03-22T16:59:41.276306 | 2019-01-06T06:13:53 | 2019-01-06T06:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | # Imports
from sklearn.datasets import make_circles
from sklearn.model_selection import train_test_split
from keras.models import Model
from keras.layers import Input, Dense
from keras.optimizers import Adam
from keras.callbacks import EarlyStopping
# Data read and train/test split
X,y = make_circles(n_samples=10000, ... | [
"sailesh.ganeshan@gmail.com"
] | sailesh.ganeshan@gmail.com |
236ac309b0705861ad5ed08ae4e8389dc6b3ec01 | 49f959ce7174d36371627f36b8b6a2720ef10ec2 | /mit_semseg/config/defaults.py | c7bd56ab2694e67369fae3615fcac1db37044702 | [
"BSD-3-Clause"
] | permissive | AGMahmoud/Indoor_Segmentation | 59fd3e2b1ba9d783dd784dcd02282f053d54d1ed | d99e502f99cb74000483974d931c2da058071bec | refs/heads/main | 2023-02-26T05:24:35.450014 | 2021-02-03T04:34:14 | 2021-02-03T04:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | from yacs.config import CfgNode as CN
import numpy as np
# -----------------------------------------------------------------------------
# Config definition
# -----------------------------------------------------------------------------
_C = CN()
_C.DIR = "ckpt/ade20k-resnet50dilated-ppm_deepsup"
# -----------------... | [
"nave94@naver.com"
] | nave94@naver.com |
16a781c955ca74d6f7f63d8bf22a675b21dc89a3 | 3a31ca26eef2c050e1eff73d4e8fd15201615931 | /iv/Stacks_Queues/count_valid_parenthesis.py | 64828f8e292f66fe931513c4362db72f8d29ab02 | [
"MIT"
] | permissive | paramita2302/algorithms | 1737f8501ce367218d1b404aa5424d188cb50cad | 0604b5eee51209d35295e7e397ce4126e0513610 | refs/heads/master | 2023-01-02T14:18:36.247596 | 2020-10-02T22:28:12 | 2020-10-02T22:28:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | class Valid():
def longest_valid_parenthesis(self, A):
# n = len(A)
s = []
pair = 0
maxpair = 0
for i in A:
if i in "({[":
s.append(i)
if i in ")}]":
if len(s) > 0:
top = s[-1]
else:
... | [
"suman_banerjee@intuit.com"
] | suman_banerjee@intuit.com |
ee4927b0a45c771e15e6b2708abebb97860843c8 | d8c468d1119a8ac85a9da833f9759c5c78aac655 | /venv/bin/odfimgimport | 5edae94c15530be817d98690e5190ba1bab531e6 | [] | no_license | sreesankar97/cir-portal | be9bd2c2a071d5053d9e15cbe8e95e1c35e04293 | d042e8ad955c0e58af1581b91b2c492bcbff27a0 | refs/heads/master | 2021-01-20T20:32:10.083781 | 2016-06-10T10:15:51 | 2016-06-10T10:15:51 | 60,768,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,689 | #!/root/Downloads/mysite/cir-portal/venv/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2007-2009 Søren Roug, European Environment Agency
#
# This is free software. You may redistribute it under the terms
# of the Apache license and the GNU General Public License Version
# 2 or at your option any later version.
#
... | [
"sreekichu97@gmail.com"
] | sreekichu97@gmail.com | |
22333f24e36f7de94f303b98576d2fb4166f585b | e91fe9c77c39ab855383839820867d5dda27cfdd | /posts/api/pagination.py | feb17a52e7d48c1ab4073025106caa309455469e | [] | no_license | chutchais/Blog-API | 6a69580c1f97ecce01e500de56e730864f1e519a | 8402d638832703aa4ede7e7e05ac47a902320cd9 | refs/heads/master | 2021-01-12T03:19:36.874801 | 2017-01-12T14:48:42 | 2017-01-12T14:48:42 | 78,195,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from rest_framework.pagination import (
LimitOffsetPagination,
PageNumberPagination,
)
class PostLimitOffsetPagination(LimitOffsetPagination):
default_limit =2
max_limit=10
class PostPageNumberPagination(PageNumberPagination):
page_size=2
| [
"chutchai.s@gmail.com"
] | chutchai.s@gmail.com |
1349c8cade097b09659a7d9f728f84daa3ee69ee | 80d2d8ff0bf02b906bf06e72c36a83c247fb82e6 | /Evolução produtos unicamente energéticos.py | 752e3076b48dde92c09cb2220d4dddf6bcd41d0b | [
"MIT"
] | permissive | username-png/Producao-de-produtos-energeticos-e-nao-energeticos-derivados-do-petroleo | 47ac145f7bf513be7b2950fa8efb9b698492f0b2 | b4ed7592dc0b1edad0609121b328a67af56115a1 | refs/heads/master | 2022-04-06T22:28:19.255086 | 2020-02-21T21:06:20 | 2020-02-21T21:06:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,768 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
''' Aqui vamos fazer um histograma com a produção de produtos unicamente energéticos derivados do petróleo entre os anos de 2009 a 2018, e fazer a sua comparação (isolados e juntos).
Produtos energéticos - Gasolina Aditivada, Gasolina de a... | [
"noreply@github.com"
] | username-png.noreply@github.com |
9557debf60b326bde3fa9c49cc704ac5f54aa070 | a100f834774e011cdd103b5e26b855d3fab46768 | /decimalMTU.py | 43a6249250f8903bf85f7a67c5d6f6076cf8518a | [] | no_license | Ander20n/ITC2020 | 16612a89e43061f76695c5cfd1b8f6f5c88984d5 | bf0386fd2286cdabfae8ab9e04e72ee68d09f72e | refs/heads/master | 2023-01-19T18:19:46.549923 | 2020-11-16T18:09:49 | 2020-11-16T18:09:49 | 278,759,614 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,608 | py | # coding: utf-8
import sys
'''
Código que transforma um número decimal nas transições
O código deve ser rodado via prompt de comando, como o seguinte exemplo:
python decimalMTU.py 450813704461563958982113775643437908
Caso o valor informado gere máquina sem transições, o retorno será: Não existe máquina para o núme... | [
"andersoon_12@hotmail.com"
] | andersoon_12@hotmail.com |
a0c7ffbc2b8b323aaf0df3752796182fa2ad9aa5 | 0d0cf0165ca108e8d94056c2bae5ad07fe9f9377 | /12_Dimensionality_Reduction_in_Python/2_Feature_selection_I_selecting_for_feature_information/visualizingTheCorrelationMatrix.py | 219bc39cbbc113f94d69e038232a34aa880c624e | [] | no_license | MACHEIKH/Datacamp_Machine_Learning_For_Everyone | 550ec4038ebdb69993e16fe22d5136f00101b692 | 9fe8947f490da221430e6dccce6e2165a42470f3 | refs/heads/main | 2023-01-22T06:26:15.996504 | 2020-11-24T11:21:53 | 2020-11-24T11:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # Visualizing the correlation matrix
# Reading the correlation matrix of ansur_df in its raw, numeric format doesn't allow us to get a quick overview. Let's improve this by removing redundant values and visualizing the matrix using seaborn.
# Seaborn has been pre-loaded as sns, matplotlib.pyplot as plt, NumPy as np an... | [
"noreply@github.com"
] | MACHEIKH.noreply@github.com |
55782bca4fc53bfb30a3d26d1336c6538a21a16a | 6b8c3974d3ce5f7841e51dcb406666c0c5d92155 | /heat/heat_integrationtests/common/clients.py | c7a7f60e6cf45d26c6119542ab40388bb7cfed8a | [
"Apache-2.0"
] | permissive | swjang/cloudexchange | bbbf78a2e7444c1070a55378092c17e8ecb27059 | c06ed54f38daeff23166fb0940b27df74c70fc3e | refs/heads/master | 2020-12-29T03:18:43.076887 | 2015-09-21T07:13:22 | 2015-09-21T07:13:22 | 42,845,532 | 1 | 1 | null | 2015-09-21T07:13:22 | 2015-09-21T05:19:35 | C++ | UTF-8 | Python | false | false | 5,888 | py | # 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
# d... | [
"kiku4@kinx.net"
] | kiku4@kinx.net |
09edd08f6e622fb9dca0bede1cd1303a06efd40d | d5a647e1c5dad8543854a07e10bdc22748d31ef1 | /007_텍스트 및 재시작 기능 추가, 겹침 버그 수정, 함수화 추가.py | b82db4f2a466486151eb638967aa07d98752d9ac | [] | no_license | peter9167/Save-your-kind-from-the-labor-camp- | 9f3f94420081a62f717797b8c173a992dfba62fa | 87462fde05b5f45350427ce3aef7fccff7b9d29c | refs/heads/main | 2023-08-03T07:56:10.464093 | 2021-09-14T10:50:48 | 2021-09-14T10:50:48 | 406,146,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,512 | py | import pygame as pg
import random
# 이미지 초기화
def 스프라이트_생성(이미지):
스프라이트 = pg.sprite.Sprite()
스프라이트.image = 이미지
스프라이트.rect = 스프라이트.image.get_rect()
return 스프라이트
# 게임 요소 초기화
def 게임요소초기화():
global 게임시간, 게임여부, 개리시작높이, 점수
global 개리뛰기상태, 개리뛰는흐름, 개리동작업데이트시간, 점프기본속도, 점프속도, 점프상태, 개리위치
global 요소들속도, 돌멩... | [
"peter9167@naver.com"
] | peter9167@naver.com |
ce2110dd808121a47a77919f6af2e6105c28628f | ccc84ed36338924dc3bd00e0e4760937e656c338 | /Variables/workingWithNumber.py | 3ea66dbc43394bcf9cd7da6710ab4ab1d0e3d6fd | [] | no_license | gekif/CompletePythonProgrammingCourseForBeginners | f52ad63e4a0d1a705c75164972c7818adca545b8 | ce92ef416d758483c79b8ba08658482610915e06 | refs/heads/master | 2020-09-26T13:16:23.366985 | 2019-12-09T04:51:38 | 2019-12-09T04:51:38 | 226,262,393 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | import math
print(round(2.9))
print(abs(-2.9))
print(math.ceil(2.2)) | [
"dzulfikar.maulana@brainworx.co.id"
] | dzulfikar.maulana@brainworx.co.id |
eed34c1af04c4f77efda7c34f59a69e96c8dbdad | 7a782df2cc1b176435f5f94af4d95c8795ea32a9 | /checkin_app/apps.py | da1aec1de7d933733a636b832024b7e14f874bfa | [] | no_license | EmilyDai/checkin | 0deb3b6651e4c4a3f9c16e1d0e833dcb93472382 | 2efe18371581f4dce64da4da5db6d02f763a57b1 | refs/heads/master | 2021-01-19T13:36:04.055373 | 2017-10-07T11:59:36 | 2017-10-07T11:59:36 | 100,505,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from django.apps import AppConfig
class CheckinAppConfig(AppConfig):
name = 'checkin_app'
| [
"daijing_emily@163.com"
] | daijing_emily@163.com |
4a08d9456e89cd765f8ec1e5aa9e4c3bbdec557d | b204b9eb0677fdab1d909354994ab4ffbfc6f2ee | /building_nn_model.py | 9ee43eac23a10250f3f8aadb0f53e0a9597ea75d | [] | no_license | e23099/BlackJack_experiment | e46bd9b41774a7e6bc6645a588d20195741f8e99 | ffd80fe575a330fc5d8d53080e2a23255b634b35 | refs/heads/master | 2020-04-14T03:08:17.026353 | 2019-10-12T03:47:37 | 2019-10-12T03:47:37 | 163,600,581 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,944 | py | import numpy as np
import pandas as pd
import keras
from keras.models import Sequential
from keras.layers import Dense, Flatten
from keras.optimizers import SGD
from keras.metrics import categorical_accuracy
import pickle
dt1 = pd.read_csv('processed_deck_1_round_2000.csv', header=None)
dt1.columns = ['nCards', 'nTen'... | [
"e23099@gmail.com"
] | e23099@gmail.com |
f765a53567eb4d535fe4f1d1fd0c6899ff8f27de | 4edbeb3e2d3263897810a358d8c95854a468c3ca | /python3/psutil/count1.py | 2930af68edad4e73b64927a1ebaa37e2c82cd7d6 | [
"MIT"
] | permissive | jtraver/dev | f505d15d45b67a59d11306cc7252114c265f388b | 2197e3443c7619b856470558b737d85fe1f77a5a | refs/heads/master | 2023-08-06T02:17:58.601861 | 2023-08-01T16:58:44 | 2023-08-01T16:58:44 | 14,509,952 | 0 | 1 | MIT | 2020-10-14T18:32:48 | 2013-11-19T00:51:19 | Python | UTF-8 | Python | false | false | 233 | py | #!/usr/bin/env python3
#!/usr/bin/python
import time
import sys
def main():
# for count in xrange(10000000):
for count in range(10):
print("%s" % str(count))
sys.stdout.flush()
time.sleep(1)
main()
| [
"john@aeropsike.com"
] | john@aeropsike.com |
f2c85728d070f3762e6043686a6efed784bc6e28 | 0d550dca4a6a9f531c01d08c1198d5577d836f4f | /generatingDBScripts/generateTraits.py | a819174700a66ab99acb90d9b1d073727d760f3b | [] | no_license | Harp0n/PaperRPG-Project | 0ed59a7d9d4b96529134f8bd1082379fb5349432 | 8d6fb8b4876f05c39f84d4122dcbffae2c658e32 | refs/heads/master | 2020-09-06T16:03:30.398742 | 2019-11-21T21:24:55 | 2019-11-21T21:24:55 | 220,473,484 | 2 | 0 | null | 2019-11-14T22:44:07 | 2019-11-08T13:34:27 | Python | UTF-8 | Python | false | false | 647 | py | from connectDB import db, cursor, saveDB, closeDB
import json
def generate():
with open("data/5e-SRD-Traits.json", "r") as read_file:
query = "INSERT INTO traits VALUES(NULL,%s, %s);"
data = json.load(read_file)
for traits in data:
parameters = []
_name ... | [
"41492536+Reevo55@users.noreply.github.com"
] | 41492536+Reevo55@users.noreply.github.com |
2d461f2dabe587556719d690d96c080d2851adc6 | 6d8440ce32deb7fb5c1897cbf3e29ce58e133484 | /populate_rango.py | 6640fc85f1b42e116e10e9f922b5c25865df8048 | [] | no_license | 2199216K/tango_with_django_project | 44a2803e0edb1994bb976de9700dd1eed920bb77 | 12f270c2e5628777afece5da148bd0f7875c80d7 | refs/heads/master | 2021-04-30T17:29:08.378216 | 2017-02-10T03:18:55 | 2017-02-10T03:18:55 | 80,219,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,076 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'tango_with_django_project.settings')
import django
django.setup()
from rango.models import Category, Page
def populate():
# First, we will create lists of dictionaries containing the pages
# we want to add into each category.
... | [
"jordan.kalfas97@gmail.com"
] | jordan.kalfas97@gmail.com |
379dca7908fab3776ab6235fdd6f70599ab59d66 | b08f0f08d551e710c354e8170bc9788d6be723c8 | /train_model.py | ecc113b64c9b0557c4e2a4d7ef22bb1e356cd739 | [
"MIT"
] | permissive | xys1985/Faster-RCNN-WIDERFace | 4b968e711730d865699d0554a7c4ad2eec4d811a | 0542b4651dce9e5bf81d7ecce16a868b10f170be | refs/heads/master | 2022-03-02T22:24:39.840662 | 2019-10-26T06:27:11 | 2019-10-26T06:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,951 | py | import os
import tensorflow as tf
from tensorflow import keras
import numpy as np
from matplotlib import pyplot as plt
import visualize
from detection.datasets import coco, data_generator
from detection.datasets.utils import get_original_image
from detection.models.detectors import faster_rcnn
os.e... | [
"vietanh@vietanhdev.com"
] | vietanh@vietanhdev.com |
c20a76b0607e8b127a48905729d43f027af7747e | f4ced1f73a8b6fb7304746505e81355594da6dc4 | /Pandas/Notebook2.py | 00c6a8d6b659002702aa754eadb1f329079ade4e | [] | no_license | TapanManu/Applied-ML-NoteBook | 78e8ea4ec6fd86dd932e51f39c2ab832f5ebf015 | da1398a19891109e2ebdf5d4a0e590dd97af65b7 | refs/heads/master | 2021-05-24T13:42:57.699453 | 2020-08-23T08:47:37 | 2020-08-23T08:47:37 | 253,588,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,845 | py |
# coding: utf-8
# ---
#
# _You are currently looking at **version 1.5** of this notebook. To download notebooks and datafiles, as well as get help on Jupyter notebooks in the Coursera platform, visit the [Jupyter Notebook FAQ](https://www.coursera.org/learn/python-data-analysis/resources/0dhYG) course resource._
#
... | [
"noreply@github.com"
] | TapanManu.noreply@github.com |
10f6230475b7cd896a058d46d101b08a3ccd9aa9 | 1885e952aa4a89f8b417b4c2e70b91bf1df887ff | /ABC163/D.py | 618f915abc6ca69fb1b9175433ddb970de9c633a | [] | no_license | takumiw/AtCoder | 01ed45b4d537a42e1120b1769fe4eff86a8e4406 | 23b9c89f07db8dd5b5345d7b40a4bae6762b2119 | refs/heads/master | 2021-07-10T12:01:32.401438 | 2020-06-27T14:07:17 | 2020-06-27T14:07:17 | 158,206,535 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import sys
readline = sys.stdin.buffer.readline
MOD = 10 ** 9 + 7
def main():
N, K = map(int, readline().rstrip().split())
ans = 0
m = (N * (N + 1)) // 2
for k in range(K, N+2):
mi = ((k-1) * k) // 2
ma = m - ((N-k) * (N-k+1)) // 2
ans += (ma - mi + 1)
print(ans % MOD)
if... | [
"w.tak.1229@gmail.com"
] | w.tak.1229@gmail.com |
8243e48756acbb76e59a314c42e70c58e2656965 | 2fded77fc7028f6c7ae11233f8162e5adae3dadb | /vtkVisualizer/inc/vtk/Common/Core/Testing/Python/TestOverloads.py | 206fb3260410c3e465eae4d2d510f2a581e9766e | [] | no_license | nagyistge/MedicalVisualization | ab70c38100c487fb9fa94beb6938530de913813e | 40bcd54f465f1acdb18ccd641105a6002374fe05 | refs/heads/master | 2020-04-11T23:46:30.450284 | 2016-01-18T16:30:55 | 2016-01-18T16:30:55 | 52,168,821 | 2 | 0 | null | 2016-02-20T18:34:11 | 2016-02-20T18:34:11 | null | UTF-8 | Python | false | false | 2,341 | py | """Test overloaded method resolution in VTK-Python
The wrappers should call overloaded C++ methods using similar
overload resolution rules as C++. Python itself does not have
method overloading.
Created on Feb 15, 2015 by David Gobbi
"""
import sys
import vtk
from vtk.test import Testing
class TestOverloads(Testi... | [
"gguayaqu@purdue.edu"
] | gguayaqu@purdue.edu |
924e5c9d7afee7712e776e2c5e500dfb02c9140d | 21d800d6dab9beccc8bc0fec3337ef5c18958ea8 | /07.selectHerbAgent/selectHerbAgent.py | c86b45ff29728396f00fa34c0ea74686d7fc3f33 | [] | no_license | numvarn/TextMining | 583ef452064f5e6dbe2d48dbbffc97350a10a6a9 | 50aa7a4b60f00ab795cf37b86adb26375bec368d | refs/heads/master | 2021-01-09T20:41:09.337854 | 2016-06-21T15:50:29 | 2016-06-21T15:50:29 | 61,636,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | import csv
def main():
# Read data from original source
fileCSV = csv.reader(open("/Users/phisanshukkhi/Desktop/TF-IDF.csv", "rb"))
herbStartPoint = 379
herbEndPoint = herbStartPoint + 1006
rowCount = 0
# Prepair CSV file to write result
targetOutput = open("/Users/phisanshukkhi/Desktop/TF... | [
"phisanshukkhi@Phisans-Mac-mini.local"
] | phisanshukkhi@Phisans-Mac-mini.local |
586a01efea32bd532363b4b61e78f444b310b1d5 | 1018293fcf0ac780e1db09a7b112bee031ed957b | /app.py | 1517914e4eabb47fb45aa6974f3f09bc818797dd | [] | no_license | rtranguy/rtranguy.github.io | c238b3987ba1e976a58af4812c1573a9f933dbf4 | cb728c19d776bea6c72644371311b9b6b6c0e133 | refs/heads/main | 2023-06-26T09:02:53.759982 | 2021-07-30T02:37:24 | 2021-07-30T02:37:24 | 390,905,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | from flask import Flask
from flask import render_template
from flask import request
from flask import make_response
from flask import abort, redirect, url_for
from flask import Flask, flash, redirect, render_template, request, url_for
import pickle
import numpy as np
app = Flask(__name__)
model = pickle.load(open('ny... | [
"rtranguy@gmail.com"
] | rtranguy@gmail.com |
b878c8557764a724f1d3aeb71971de4a8a664095 | 2fac796fa58c67fb5a4a95a6e7f28cbef169318b | /python/connecting-graph-ii.py | 8dd9c83c7a70a19f748db2b7a41f9c71f45adecf | [] | no_license | jwyx3/practices | f3fe087432e79c8e34f3af3a78dd10278b66dd38 | 6fec95b9b4d735727160905e754a698513bfb7d8 | refs/heads/master | 2021-03-12T20:41:59.816448 | 2019-04-14T06:47:30 | 2019-04-14T06:47:30 | 18,814,777 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | class ConnectingGraph2:
# @param {int} n
def __init__(self, n):
self.father = [0 for i in xrange(n + 1)]
self.counter = [1 for i in xrange(n + 1)]
def find(self, a):
if self.father[a] == 0:
return a
self.father[a] = self.find(self.father[a])
return self.... | [
"jwyx88003@gmail.com"
] | jwyx88003@gmail.com |
5e42d40a98ea8097ac32122c8033cffb57ed7f5b | 742898b50eda87c17513724e1f54474fec37c6c6 | /1. Algorithmic toolbox/week6_dynamic_programming2/2_partitioning_souvenirs/partition3.py | 8430f31b812ec2a3358691efb85a0af675586d43 | [] | no_license | Kirill-Tamogashev/Data-Structures-and-Algorithms | b8b6005f7f1ad13147f0278bfdb1dbffcfa8ff83 | 66091d5b67e22b75f4eb167ae13502b3c009d233 | refs/heads/master | 2022-12-18T17:29:45.853242 | 2020-09-20T15:30:47 | 2020-09-20T15:30:47 | 297,072,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # Uses python3
import sys
import itertools
def partition3(W):
w = sum(W)
if w%3 != 0:
return 0
n = len(W)
if n < 3:
return 0
w = w // 3
value = []
for _ in range(w + 1):
m = [0] * (n + 1)
value.append(m)
count = 0
for i in range(1, w + 1):... | [
"noreply@github.com"
] | Kirill-Tamogashev.noreply@github.com |
ef0db917b1bbab79d78938f1bf221265acaaa620 | 2dfa4c7a076d6678a81fddaf7663ad0876642d8b | /scrapy_sample copy 5/scrapy_sample/spiders/tests.py | 73c876e3156e01f44597a68ec456e9cd86a9d7e8 | [] | no_license | sushilovinfun/scrapytests | 26952b1e11c8c431fa202a03fbfa47de7cfd3dd7 | ba47339622bb7d7b94ea2f82c92b13b2d54d2efb | refs/heads/master | 2016-09-05T22:31:14.359426 | 2013-05-07T13:40:31 | 2013-05-07T13:40:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | from scrapy.spider import BaseSpider
from scrapy.selector import HtmlXPathSelector
from scrapy.http.request import Request
from scrapy_sample.items import ScrapySampleItem
class ScrapyOrgSpider(BaseSpider):
name = "scrapy"
allowed_domains = ["bushwickdaily.com"]
start_urls = ["http://www.bushwickdaily.com/"]
def ... | [
"m.foxman@gmail.com"
] | m.foxman@gmail.com |
ec1c59e9ee6b6c1612ce63a62d3c49bc71f9c1a9 | fcda540a48ecf626451c020ff040592bf677891f | /state_machine/scripts/dummy_task_client.py | 3942f1a2654378ae42b6f4e024eb69ad42534f44 | [] | no_license | ignaciotb/smarc_planning | a4861bc7e0747d38d91de2a2fb911c280203179c | 1e0303a12e217ada7b6d102f67d14c5415a4d489 | refs/heads/master | 2020-03-29T02:20:28.531994 | 2018-09-18T16:06:34 | 2018-09-18T16:06:34 | 129,094,322 | 0 | 0 | null | 2018-04-11T13:01:18 | 2018-04-11T13:01:18 | null | UTF-8 | Python | false | false | 1,680 | py | #!/usr/bin/env python
import rospy
import actionlib
from smarc_msgs.msg import SMTask
from smarc_msgs.srv import AddTask, AddTaskRequest, AddTaskResponse
from smarc_msgs import sm_task_utils
from geometry_msgs.msg import PoseStamped
def dummy_task():
"""
Create an example of a task which we'll copy ... | [
"torroba@kth.se"
] | torroba@kth.se |
6aee45a3408c1a981d520501728a10861006b5d6 | aead98c4acb57cf0b6343f2e3071601539691561 | /api/create.py | 8c078028278ecbd5f53231a10124b5fd3b0d376d | [] | no_license | awsomefunc/python-mockservice | 6fe0af41ef26965e007fc28980a735ec9e7731d9 | 135a6e3c0f9c7cec0affe0b29a28c11efe818b02 | refs/heads/master | 2023-02-03T04:55:23.816597 | 2020-12-24T08:33:45 | 2020-12-24T08:33:45 | 324,100,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | import json
import logging
import os
import time
import boto3
dynamodb = boto3.resource('dynamodb')
from botocore.exceptions import ClientError
def create(event, context):
data = json.loads(event['body'])
timestamp = str(time.time())
table = dynamodb.Table(os.environ['DYNAMODB_TABLE'])
pathId = even... | [
"saurabh.singh2005@gmail.com"
] | saurabh.singh2005@gmail.com |
c85bdca3b29adc5a741ffeb164d9d72838c0bdc6 | 320e0a7a0fbfb7f43ff92a0e18bc66229c000a81 | /11_env/bin/pylint | 4c5f686372c7e5981a47924111bd6853e7b2081c | [] | no_license | kotbegemot1/dj_training_project_learning_log | 1da5c709c0aacc6c1115b53636893a10ee69f72d | 400aeba9dd9e2d82e34dc991345dd30ad538db05 | refs/heads/master | 2021-07-03T15:00:21.681537 | 2020-02-10T21:28:21 | 2020-02-10T21:28:21 | 239,611,312 | 0 | 0 | null | 2020-02-10T20:56:10 | 2020-02-10T20:55:09 | Python | UTF-8 | Python | false | false | 274 | #!/home/kotbegemot/Документы/learning_log_CC/11_env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pylint())
| [
"kk1slorod@gmail.com"
] | kk1slorod@gmail.com | |
7cdd4598f5208b64b7efecf60bb4b6493ce2b96e | 0b6718aaf22ecca35b3f4926a3360bf4d11ae6a5 | /github-dirtree.py | d8dedd54fbf4aacd511aa4e15ac1481ae70adb0b | [] | no_license | westronham/github-dirtree | 4672c92fac62d8f23cf6b9afa6ac05713acc298f | 5b064b6aca79673b73f405894e296978941b80ea | refs/heads/master | 2021-01-01T17:46:43.913876 | 2017-07-24T07:17:46 | 2017-07-24T07:17:46 | 98,157,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | import requests
import json
import sys
input_regex = sys.argv[1].replace("https://github.com/", "")
website = "https://api.github.com/repos/" + input_regex + "/git/trees/master?recursive=1"
response = requests.get(website)
a = response.json()
for b in a['tree']:
print(b['path'])
| [
"noreply@github.com"
] | westronham.noreply@github.com |
666bf4622648bec755a4fd03c317f5dbb5fe0f2f | f5758072873cd0c7b1014eeb0b695c7027d89db6 | /simpledjango/settings.py | 4c5b2b0300d854732d9f64f7f020214a51e467f7 | [
"Apache-2.0"
] | permissive | mohibJV/djangobluemix | fe12199581a47de5ab1f8838ae7ab4c328a064c6 | 8d0a212eeda9df17d53aa493afb0c503097d9b88 | refs/heads/master | 2021-01-17T22:02:59.374784 | 2016-03-21T16:09:47 | 2016-03-21T16:09:47 | 54,403,721 | 0 | 0 | null | 2016-03-21T16:08:08 | 2016-03-21T16:08:08 | null | UTF-8 | Python | false | false | 2,989 | py | """
Django settings for simpledjango project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ..... | [
"carlos.ferreira@us.ibm.com"
] | carlos.ferreira@us.ibm.com |
ec4f2122626664f7c6bb439ac540dc86363e818f | c6b9588904ce4cf2ef8d62a8a59e9499800d88f8 | /feedback/reviews/migrations/0002_rename_reivew_text_review_review_text.py | 6c5f8fb60f27947a4a71950c0e1379d9c860ad15 | [] | no_license | patelmukundn/website | f0b258b99f261929a20cfc214f789de8d19c10cf | 0fcd041f8b7e576d6415ed22ff9450f9b618c11c | refs/heads/master | 2023-06-22T23:21:33.654129 | 2021-07-07T12:36:08 | 2021-07-07T12:36:08 | 379,911,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | # Generated by Django 3.2.3 on 2021-07-07 12:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reviews', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='review',
old_name='reivew_text',
... | [
"patelmukundn@gmail.com"
] | patelmukundn@gmail.com |
fe9cce4ba0960074eabf5b0e31aa35a2bd0406c3 | 123d72c838b70d68687d3e52704439950ff8c462 | /footer-section/mango.py | 216d3699a9d485dad604cb24e59807ed28ad6077 | [] | no_license | justalearner1/git-and-github | 35b4eae5b1a700a40e93e565fe58b3acebae6200 | aeb82a86c3bc8102e36a4c4f051feeb473497373 | refs/heads/master | 2020-07-02T19:13:53.063713 | 2019-08-23T16:56:22 | 2019-08-23T16:56:22 | 201,635,089 | 0 | 0 | null | 2019-08-23T17:53:46 | 2019-08-10T13:39:03 | Python | UTF-8 | Python | false | false | 23 | py | print('this is mango')
| [
"teemakai@gmail.com"
] | teemakai@gmail.com |
848e22f57c458f6d6b6d62ebfd4d38411ec32a4d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03623/s878257952.py | 3b621e177a4b3597998ce1dffd6331ec72409b90 | [] | 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 | 114 | py | import numpy as np
x, a, b = map(int, input().split())
ans = 'A' if np.abs(a-x) < np.abs(b-x) else 'B'
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f55ab383a4da5d265d12af5c33efd15143468f09 | 30c0880c626a6e5c40333752cbff9a452949ec44 | /data_analysis/generate_test_file.py | cb6e259084a37151fd2a015cb6126770980cc20f | [] | no_license | weizhang3678/pythonstudy | f3b03d3dd04a007fa1d33709b8538e59520d2354 | cac8a0411ef57562680d363cdc86460dab0e927f | refs/heads/master | 2020-12-29T19:58:34.068262 | 2020-05-06T20:19:11 | 2020-05-06T20:19:11 | 238,714,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import csv
import random
file = open("data.csv",'w',newline='')
try:
writer=csv.writer(file)
writer.writerow(('id','name','class','score-math','score-language'))
for i in range(10):
name = 'name'+str(i)
score = str(random.randint(40,100))
score1 = str(random.randint(40,100))
... | [
"wei.zhang3678@gmail.com"
] | wei.zhang3678@gmail.com |
c87446ec9e14ef27b8911dbbf04d186a904676f1 | b0b2a974e50c95004574bc5855e736a4f8db8237 | /google-python-exercises/babynames/regexTest.py | 5065cd30f2f8d843b8576b55c69d22980f265b12 | [
"Apache-2.0"
] | permissive | woodwardB/PythonClassProjects | a707d2245506395df2f6584ac21186149727415a | fb0f44de6ff0547f0eb2ba52c80e69bd4e831420 | refs/heads/master | 2021-01-22T20:25:50.422736 | 2014-02-25T04:18:48 | 2014-02-25T04:18:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | #!/usr/bin/python
# URL that generated this code:
# http://txt2re.com/index-python.php3?s=%3Ctr%20align=%22right%22%3E%3Ctd%3E1%3C/td%3E%3Ctd%3EMichael%3C/td%3E%3Ctd%3EJessica%3C/td%3E&35&4&3
import re
txt='<tr align="right"><td>1</td><td>Michael</td><td>Jessica</td>'
re1='.*?' # Non-greedy match on filler
re2='(\\d... | [
"brandon@brandonwoodward.info"
] | brandon@brandonwoodward.info |
2a4c302414674e7a3ffc8430affc57cc46d3d636 | 1df10548b3a557a87a5979a2d4c3a40e9bcb7610 | /emojis.py | ab6712900ed195ba3d9ab6aed192bff5fc5435cd | [] | no_license | Pdgraham/DragonBotRecognition | 88759bb45ff5c05eb7a07527de48ea00c0fb8da2 | f4901beb94281ba465cfab46e2197db0d60687c2 | refs/heads/master | 2021-01-01T16:31:16.716607 | 2015-05-30T19:55:55 | 2015-05-30T19:55:55 | 34,464,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,524 | py | import cv2
import numpy as np
def identifyEmoticons(image, emoticons, showEmojis = False):
imageGrey = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
imageThresh = cv2.adaptiveThreshold(imageGrey, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY, 11, 5) # 9,3
correctEmoticons = []
correctEmoticons2 = []
for j in range... | [
"pdgraham@mit.edu"
] | pdgraham@mit.edu |
beeae335107a71f96f11514b15a8f33fd29ec58d | f0cf7b53e15695a4855c745a841714fec431f70a | /services/jhub/template/jupyterhub_config.py | 391a6f55d672b9604581e47c2f9f4f7bdbb619fc | [] | no_license | mondkaefer/jhub_backend | a57a1f4323234c31cd66bd64b7cb21c747ae233c | 0f0d2c9b247d27acb3dbf5468e804587e2323d22 | refs/heads/master | 2021-08-22T20:13:22.425155 | 2017-12-01T04:45:06 | 2017-12-01T04:45:06 | 112,695,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | c.JupyterHub.authenticator_class = 'remote_user.remote_user_auth.RemoteUserAuthenticator'
c.JupyterHub.spawner_class = 'rancher.seg_spawner.RancherSpawner'
c.JupyterHub.log_level = 'DEBUG'
c.JupyterHub.debug_proxy = False
c.JupyterHub.hub_ip = '__HUB_IP__'
c.JupyterHub.port = __HUB_UI_PORT__
c.JupyterHub.hub_port = __H... | [
"m.feller@auckland.ac.nz"
] | m.feller@auckland.ac.nz |
98f34bd285853c9a0f372b57e593f8b104bb22ef | e5981639cd71e6793c3d417946350e7160159020 | /prob102_solution.py | d2ce932083328ea62d183c0c64b4f88e57c2fae4 | [] | no_license | erikkrasner/Project-Euler | 0a5598956c77858262a89de50c05d40ebe6d6083 | 74b750073ad5a3a3f326dc0dff611a087ef15e56 | refs/heads/master | 2021-01-23T11:08:11.646054 | 2011-06-06T20:18:42 | 2011-06-06T20:18:42 | 1,546,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | #!/usr/bin/env python
class Vector(tuple):
def dot(self, other):
return self[0] * other[0] + self[1] * other[1] + self[2] * other[2]
def cross(self, other):
return Vector((self[1] * other[2] - self[2] * other[1],self[0] * other[2] - self[2] * other[0],self[0]* other[1] - self[1] * other[0]))
def __add__(self,ot... | [
"erik.krasnerkarpen@gmail.com"
] | erik.krasnerkarpen@gmail.com |
33f056391e83925927ed0a1ee7622d51726e6f1b | 8baa00a8c04f64e983532fa4a420c68f490bdaa8 | /devel/lib/python2.7/dist-packages/controller_manager_msgs/srv/__init__.py | 0d59dd77bd5bfaae8a46f01276a690a4799e786e | [] | no_license | samuel-cavalcanti/TIAGo | e52c778f40ba8e03af21ba275b45b7faac5625b3 | 575533f713338b28ee5709279a874c9e374d77bd | refs/heads/master | 2021-04-06T01:32:09.090002 | 2018-03-10T23:51:45 | 2018-03-10T23:51:45 | 124,707,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | /home/samuel/tiago_public_ws/devel/.private/controller_manager_msgs/lib/python2.7/dist-packages/controller_manager_msgs/srv/__init__.py | [
"scavalcanti111@gmail.com"
] | scavalcanti111@gmail.com |
49e26b6bdfbc99139af7102c61306112bedc7a12 | 743d50c875b86593335d048aec95f3afa11204b9 | /catalyst/metrics/__init__.py | 94bd17d190b40de0b06b41a13b39eca17697fb81 | [
"Apache-2.0"
] | permissive | Ran485/catalyst | 87a166af630eb62958915fae55c5a7402021facf | 84bc7576c981278f389279d87dda85dd66a758b6 | refs/heads/master | 2023-08-18T05:26:08.865884 | 2021-09-24T15:35:36 | 2021-09-24T15:35:36 | 410,499,016 | 2 | 0 | Apache-2.0 | 2021-09-26T08:48:35 | 2021-09-26T08:48:35 | null | UTF-8 | Python | false | false | 1,192 | py | # flake8: noqa
# import order:
# functional
# core metrics
# metrics
from catalyst.metrics.functional import *
from catalyst.metrics._metric import (
ICallbackBatchMetric,
ICallbackLoaderMetric,
IMetric,
)
from catalyst.metrics._accumulative import AccumulativeMetric
from catalyst.metrics._additive import... | [
"noreply@github.com"
] | Ran485.noreply@github.com |
7a16e457935fb30d9cdc2094a42b1b702e145b57 | ede60b82541978d7df9c5c16d969cee623321854 | /tree/Binary Tree Postorder Traversal/Stack.py | 011fbefd67219b1427e6f60ac539febf85ea0e48 | [] | no_license | Jzmo/leetcodeTag | 2d7836bc1e5f4b9da6afc612088376cbfd99384e | 3c4ec4a8fb93daf117c581680d0641c4cdb15660 | refs/heads/master | 2020-04-12T17:01:30.061601 | 2019-01-06T00:53:41 | 2019-01-06T00:53:41 | 162,632,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def postorderTraversal(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
if not root:
... | [
"jz.momo@outlook.com"
] | jz.momo@outlook.com |
8a73ed73df99cfaa28920f158ae86bd17b3931a9 | 854a7abae6ac9611ee206e2fe8853b49bc556040 | /manage.py | 4f2f6156f0a150a56fc18926285ed3cd30f56216 | [] | no_license | crowdbotics-apps/vivek-2505 | 5e97f3f5333ed87969be90623be63f94ae3a54f3 | 668389589c44885ca9a3b2d0a60ff31389bc8b64 | refs/heads/master | 2020-05-15T21:33:27.596420 | 2019-04-21T07:20:39 | 2019-04-21T07:20:39 | 182,502,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vivek_2505.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that t... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
6424ee09a331dc3c0a53c632f777c4b267e7bdf3 | 264e3f354869ab665df1b9e95cd2df9f2db6974b | /mlp_test.py | f44c06cdc9be57a8efe9366c3245c7c5aebdc78a | [
"Apache-2.0"
] | permissive | whuang022ai/AI-Tutorial-Multilayer-Perceptron-Numpy-Batch-Version | 78cca42d757fa423bdd19d27f2133bc22f39f95c | dd74088f21a0d2ff29f1893f9c14b5000a5e1ba0 | refs/heads/master | 2020-08-31T06:13:43.553073 | 2019-11-07T15:47:02 | 2019-11-07T15:47:02 | 218,619,604 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | # -*- coding: utf-8 -*-
#
# Testing Xor pre-trained model.
# @auth whuang022ai
#
import mlp
if __name__ == "__main__":
mlp = mlp.MLP(0, 0, 0, 0)
mlp.load_model('xor')
mlp.test_forward()
| [
"whuang022.ai@gmail.com"
] | whuang022.ai@gmail.com |
d55198c565776af266afc2d6ec76c472c3e79919 | fa3463cbbd7e06d4559ad97d7c8ccdc881a35111 | /api/app.py | 6a5765d246cf1524ff1c13cdc5146bf97a40c5a5 | [] | no_license | sangramch/notes-react-flask | bc9e591258d8e0fc73113cb88465b1644e9e6b6b | 15380337c491abdd8111818f331d0a684e237fe4 | refs/heads/master | 2020-06-22T03:28:29.219000 | 2019-07-21T20:47:38 | 2019-07-21T20:47:38 | 197,621,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from flask import Blueprint,session
from flask_restful import Api
from crud_ops import *
from authentication import *
api_bp = Blueprint('api', __name__)
api = Api(api_bp)
api.add_resource(Notes, '/getnotes')
api.add_resource(AddNote,'/addnote')
api.add_resource(UpdateNote,'/updatenote')
api.add_resource(DeleteNote,'... | [
"chsangram99@gmail.com"
] | chsangram99@gmail.com |
d1f15eb6ae771a03927ca615e404b3acf2a13970 | 7c25cd7f24fd9f0f04108eadbc3c41397319c63b | /tradingbot/constants.py | b6f45b54778adbe3bb98006462e5ebf6a3a2046e | [] | no_license | loponly/tradingbot | bef36fcf8bf15cf617be678120bd351468408415 | c5ad074194d91df20d2743c1aa87a7cf35fca636 | refs/heads/master | 2023-01-14T05:34:47.381472 | 2020-11-28T16:36:58 | 2020-11-28T16:36:58 | 283,103,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,764 | py | # pragma pylint: disable=too-few-public-methods
"""
bot constants
"""
from typing import List, Tuple
DEFAULT_CONFIG = 'config.json'
DEFAULT_EXCHANGE = 'binance'
PROCESS_THROTTLE_SECS = 5 # sec
HYPEROPT_EPOCH = 100 # epoch
RETRY_TIMEOUT = 30 # sec
DEFAULT_DB_PROD_URL = 'sqlite:///tradesv3.sqlite'
DEFAULT_DB_DRYRUN_... | [
"macbookpro@MacBooks-MacBook-Pro.local"
] | macbookpro@MacBooks-MacBook-Pro.local |
f91752886d25bceb01c8e561c832d9bc026a09be | a8ab776b0358e2c6c22a5b65dc43c6c4041d7a36 | /Sample_Programs_GoPiGo3/easy_Light_Sensor.py | a701811eefdd9886c207abfd0d2b5104539e274b | [] | no_license | Shoban94/GoPiGo_Python_Examples | 0211700b48d59461a78726dca4e69fcb2bd28461 | ef92c0363fb828fbdadc6dae96f77a6aee8e53d5 | refs/heads/master | 2021-01-20T01:45:42.888357 | 2017-04-25T08:39:51 | 2017-04-25T08:39:51 | 89,325,379 | 0 | 0 | null | 2017-04-25T06:27:57 | 2017-04-25T06:27:57 | null | UTF-8 | Python | false | false | 1,285 | py | #!/usr/bin/env python
#
# https://www.dexterindustries.com/GoPiGo/
# https://github.com/DexterInd/GoPiGo3
#
# Copyright (c) 2017 Dexter Industries
# Released under the MIT license
# (http://choosealicense.com/licenses/mit/).
#
# For more information see
# https://github.com/DexterInd/GoPiGo3/blob/master/LICENSE.md
#
# ... | [
"shobannarayan@gmail.com"
] | shobannarayan@gmail.com |
94fdaa48e8dfc5aefebe7593cdb638d8faf18a9c | 490ff6c32acc3fc76939f70090ed7f871a377d68 | /python/mysite/polls/views.py | bcb80937178861a117def79c8dc702d6d60bd334 | [] | no_license | amorypeng/python | 712176c7654cb528b0acc4bf4f16a424ff3ae511 | 8c67424bef6dc9492f0ae88c0dc1bdb9e384c4d2 | refs/heads/master | 2021-01-01T05:49:17.625268 | 2015-04-21T17:44:34 | 2015-04-21T17:44:34 | 33,431,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.views import generic
from .models import Choice, Question
class IndexView(generic.ListView):
template_name = 'polls/index.html'
context_object_name = 'latest_q... | [
"dumplingbagel@gmail.com"
] | dumplingbagel@gmail.com |
4b1ff92b5f8365972e09335f1ec735af5ffd5124 | 32acf91c2828b50ea08ac5c880b3c3634e7d82e5 | /chapter1.py | aa31575dd65a587d785c552bb5458122249b0000 | [] | no_license | xybercommander/open_cv_tutorial | 9c582734e507ec781488e160453bbb5c4eb5bd8e | f8d757a93e71e852763f1abeb5483ad393d5f30e | refs/heads/master | 2023-08-04T01:45:52.984444 | 2021-09-27T05:24:56 | 2021-09-27T05:24:56 | 408,886,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | import cv2
print("Package Imported")
# '''--------- Image Reading -----------'''
# img = cv2.imread("resources/xyber.jpg")
# img_small = cv2.resize(img, (370, 480))
#
# cv2.imshow("Output", img_small)
#
# # 0 means infinite and other values mean that many milliseconds
# # waitkey helps to delay the script
# cv2.waitK... | [
"samratmukherjee.sps@gmail.com"
] | samratmukherjee.sps@gmail.com |
b14a9cf9712a7365982cbfe75e9a5734d6e461cd | 272ea7b037de702710ef3462e14ad1b4965eb0cb | /pkg/3d.py | 796ea14edc32a1871b90a588a7f750b27c481e48 | [] | no_license | fijila/PythonExperiments | a1d36100ab67465e4661f9a2f0a0ab321a16e7a8 | d9ff5c404e625aa21c21631ff2d1e453dab0e5bf | refs/heads/master | 2020-05-07T15:43:52.664984 | 2019-04-10T19:28:55 | 2019-04-10T19:29:07 | 180,650,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | class Point:
def __init__ (self,x,y,z):
self.x=x
self.y=y
self.z=z
def __str__(self,x,y,z):
self.x=x
self.y=y
self.z=z
p1=Point(4,2,9)
p2=Point('x','y','z')
print(p1.x,p1.y,p1.z)
print(p2.x,p2.y,p2.z) | [
"fazeem.mohd@gmail.com"
] | fazeem.mohd@gmail.com |
c4cfe496b337c27e71ffd0402883065b103081ae | bff226ef884f0e879aa562bd04ee515e580978d9 | /cse1284/age.py | 5871962c5cf2f72cdc3bb9dbc0a10e787394f358 | [] | no_license | connergriffin/personal | 257ccfa87e2928ab800f31b9f7cc49d60c07bcde | f6e7a2858746713f512fd11af15fa30e75173a9c | refs/heads/master | 2023-01-12T15:01:02.140627 | 2023-01-01T21:33:38 | 2023-01-01T21:33:38 | 121,166,754 | 0 | 0 | null | 2018-02-11T21:11:07 | 2018-02-11T21:01:02 | null | UTF-8 | Python | false | false | 344 | py | #calculates the users age the year before
age = int( input('how old are you? ') ) #takes user's input and converts it to int type
age = age - 1 #takes input and subtracts one which would be their age on the same day the year before
print('last year you were', age) #disp... | [
"noreply@github.com"
] | connergriffin.noreply@github.com |
c93f769c2b684cb0a0edc263f1afaad5043c7da5 | 9c11218f4290e18555a2417e2ccc1b93a4cf4139 | /fetchEventData.py | abc6e51064b24edd3f9e8328a6609cba430daf92 | [] | no_license | balessio/seismology | 7ac49669d1d00e4523e746372ce8181a4c49ab30 | a46ffbfa70fb3b2ce7010d529714bb22a8a138c3 | refs/heads/main | 2023-06-04T05:03:43.141992 | 2021-06-22T21:33:55 | 2021-06-22T21:33:55 | 379,402,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,308 | py | """
Before running the program, enter your specifications into
SETUP_fetchEventData.txt
"""
######################################################################
import obspy
from obspy.clients.fdsn.client import Client
from obspy.core import UTCDateTime
from obspy.core.event import Event
from obspy.core.event import ... | [
"noreply@github.com"
] | balessio.noreply@github.com |
5ae57a50894ee06d799ee88acb9132651d570cb8 | 78f54f911d47019da0deeeb6579c7e9e65bb8d21 | /src/scheduler/models/dao/common/Log.py | 1171ab5340bfce2bfeec5a4abb90b01fc98e85fa | [
"MIT"
] | permissive | jedicontributors/pythondataintegrator | 02f8ae1a50cf5ddd85341da738c24aa6a320c442 | 3e877b367ab9b20185476128ec053db41087879f | refs/heads/main | 2023-06-15T07:37:13.313988 | 2021-07-03T15:46:43 | 2021-07-03T15:46:43 | 354,021,102 | 0 | 0 | MIT | 2021-07-03T15:46:44 | 2021-04-02T13:03:12 | Python | UTF-8 | Python | false | false | 913 | py | from sqlalchemy import Column, String, Integer, DateTime
from IocManager import IocManager
from models.dao.Entity import Entity
class Log(Entity, IocManager.Base):
__tablename__ = "Log"
__table_args__ = {"schema": "Common"}
TypeId = Column(Integer, index=True, unique=False, nullable=False)
Content = C... | [
"ahmetcagriakca@gmail.com"
] | ahmetcagriakca@gmail.com |
be9f7d9a2fd66f2b56a23aa9abebafb6693868cc | 7f5486c34ea812eb34ce7e7ee43afb1429c0d553 | /ucsc/test/test_db.py | fc1f079582ca0cdb78a9896d68294f920b17f535 | [
"BSD-2-Clause"
] | permissive | jcastib/pyucsc | d6eb62553ab82b36609c8f5ad1d6d7a6eaf2d5af | e4991c9fcd3b6ce60a6c8530754e3d1e29407933 | refs/heads/master | 2021-05-27T04:33:37.285297 | 2012-06-18T13:12:07 | 2012-06-18T13:12:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from ucsc import create_session, tables
from ucsc.model import *
def test_table_query():
print tables.__dict__
c = tables.knownGene.count().execute().scalar()
print c
assert c == 77614L | [
"james.casbon@popgentech.com"
] | james.casbon@popgentech.com |
74df909a3eadb0de7ee6075b1ba1e97fbaab5606 | 0e726928cc61cc4b140bb81e4187f7588cba1622 | /manage.py | 0cb7605ed6afbf33322846dd0c1d656b02edac5a | [] | no_license | LeoKnox/djangoadv1 | 7a76652b4f59174b31f36f2b2f65662cdf17f05e | 82f5eb82728ec539a725a1460e387cd195af872e | refs/heads/main | 2022-12-28T23:26:55.682230 | 2020-10-17T22:22:52 | 2020-10-17T22:22:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_adv.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import... | [
"noreply@github.com"
] | LeoKnox.noreply@github.com |
13723c5524195243fa7f14e0628c4b8db6c28c1f | f56227b77c1b1a482a02002d3501c92e932f3111 | /ex061.py | e1932e3ea8567415f5d9deada0fc3b7d6a6b31d8 | [] | no_license | hectormanfredi/PythonExercicios | 5d579ee2c53156c07b6c11b5bb460c6d3ca73f79 | bb756f153c8a5d4c391b3060186e3bc79de06dec | refs/heads/master | 2020-07-24T06:04:29.464232 | 2019-09-11T13:45:41 | 2019-09-11T13:45:41 | 207,822,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | # Refaça o DESAFIO 051, lendo o PRIMEIRO TERMO e a RAZÃO de uma PA, mostrando os 10 PRIMEIROS TERMOS da progressão
# usando a estrutura WHILE.
primeiro = int(input('Primeiro termo: '))
razao = int(input('Razão: '))
"""
n = 0
while n != 10:
n = n + 1
dez = primeiro + (n - 1) * razao
print('{} -> '... | [
"noreply@github.com"
] | hectormanfredi.noreply@github.com |
98fb628b2d8d36871ac1c2d34d2c5503d66ca7ea | ba8646ac4d444f2c75a340728300d9e7f629b437 | /test/model_tests/test_relationship_condition_querying.py | 10513f49953076ea481d4786cbfd4bf21c998283 | [
"MIT"
] | permissive | Jexan/OxygenRM | 5d8768332c1147b686632a6c624a20a77cdf5ca0 | c34b101a1a0ba4c529a92bca06fe05928dbed8f5 | refs/heads/master | 2022-11-23T13:55:05.695110 | 2020-07-25T23:34:58 | 2020-07-25T23:34:58 | 282,541,717 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,867 | py | from . import *
from .test_basic_model_relations import User, Post, OnePostUser, BaseClass
from .test_model_many_to_many import T1, T2, ts_cols, middle_cols
class TestSimpleRelations(BaseClass):
def setUp(self):
super().setUp()
db.drop_table('t1s')
db.drop_table('t2s')
db.drop_tabl... | [
"Jexan13@gmail.com"
] | Jexan13@gmail.com |
3a824e1ec074ba1a243a07f8e5876bf81065d115 | 2813ec210271006649274ab57f7302ce88a92457 | /novajoin/novajoin/tests/integration/test_ipa.py | ef6eb3fd411913d36f8d849bb685a7048d0fe1c3 | [
"Apache-2.0"
] | permissive | mail2nsrajesh/novajoin | c575e71ef448902a42f84e07fa1ef1fd40f87f6b | e75f3bd34310e21db1553d563ee999ac103aa84c | refs/heads/master | 2023-08-29T03:18:30.256764 | 2017-05-30T21:04:13 | 2017-05-30T21:04:13 | 96,141,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,660 | py | # Copyright 2016 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | [
"rcritten@redhat.com"
] | rcritten@redhat.com |
f6995bc94494f59f10fbfa79e6dec59938a25f86 | 92d3ff442a92738c6edcd0ef73f4d9e7d8bf5982 | /fase/flights/08_12_16/MOD812_BudgetModule.py | 37b1115d5719f3b6eb0b2383d0b46ccde642860d | [] | no_license | Jimmy-Layne/fase | 8bc76dc17622091371ee14f8cf3b1ac15dcfb360 | 5a9dcad25d1370eb3d9c49588f58a28169904d6b | refs/heads/master | 2022-12-02T01:44:03.842128 | 2020-08-19T23:35:38 | 2020-08-19T23:35:38 | 288,640,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,525 | py |
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 19 13:55:21 2016
@author: Thijs
"""
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import math
from scipy.interpolate import griddata
import pdb
def distance_on_earth(lat1, long1, lat2, long2):
# Convert lat... | [
"ea@arda.local"
] | ea@arda.local |
643eb7f477425f02153c3d2c8d108744da4cae8e | 52cb25dca22292fce4d3907cc370098d7a57fcc2 | /BAEKJOON/1차원배열/10818_최소, 최대.py | 86667a7ec7f8aea5cf57f1648b87a1660e4cd302 | [] | no_license | shjang1013/Algorithm | c4fc4c52cbbd3b7ecf063c716f600d1dbfc40d1a | 33f2caa6339afc6fc53ea872691145effbce0309 | refs/heads/master | 2022-09-16T12:02:53.146884 | 2022-08-31T16:29:04 | 2022-08-31T16:29:04 | 227,843,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | num = int(input())
test_case = list(map(int, input().split()))
print('{0} {1}'.format(min(test_case), max(test_case)))
| [
"shjang113@gmail.com"
] | shjang113@gmail.com |
ed2b58b2eac75fc198b26d5e62452595da90df0d | 3d5c57007b7792328b89eaa55ba27f852997f579 | /pysemantic/tests/test_project.py | 77103f1683b85a04ded533290d3744becd10be41 | [
"BSD-3-Clause"
] | permissive | abhishekarora12/pysemantic | 7b39bed7fe2911c996bd2caf8609f23f3ac58086 | 5e4a08401c6dee62e6e298312e9401e03e952d4b | refs/heads/master | 2020-12-28T22:34:24.415014 | 2015-09-02T07:34:29 | 2015-09-02T07:34:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,742 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2015 jaidev <jaidev@newton>
#
# Distributed under terms of the BSD 3-clause license.
"""Tests for the project class."""
import os.path as op
import os
import tempfile
import shutil
import warnings
import unittest
from ConfigParser import ... | [
"deshpande.jaidev@gmail.com"
] | deshpande.jaidev@gmail.com |
2f5bbf0e115b4289ff48d2820beca1a959c8728c | a1c8f30fff88cfac929a6d2e0833ad5e721dfcb9 | /Django_App_Engine-master/home/models.py | 0fc07c3a46aa709bfd59cdba8edfe6472e37ebe0 | [] | no_license | Vishnuworld/gcp | dd372c07999f092cdbbb07a9da8297a057e3376c | 85405bc6e172fbd8186d4f6135851ab8b600eb45 | refs/heads/master | 2023-08-15T02:36:00.884984 | 2020-04-29T17:38:05 | 2020-04-29T17:38:05 | 259,826,426 | 0 | 0 | null | 2021-09-22T18:56:36 | 2020-04-29T04:45:56 | Python | UTF-8 | Python | false | false | 243 | py | from django.db import models
# Create your models here.
class Process(models.Model):
pid = models.CharField(max_length=50)
remark = models.CharField(max_length=255)
def __str__(self):
return self.pid + " - " + self.remark | [
"vbhandari9561@gmail.com"
] | vbhandari9561@gmail.com |
daa134298e67a74b3522e6ac42e8a0aa97a98502 | 519ac20ac436d193044dbcdb5dcc7e7476cd4fe3 | /multi_sensor/models/tae_fusion.py | e2c19a8667c558ca6730e5a40c27e76838b64c43 | [] | no_license | rym-oualha/CropTypeMapping | 4466cdece9271f2b2d4f417b636a5576c4fef284 | b3f3996bb76e28340d77a1db4ac5a90edacf97cc | refs/heads/main | 2023-08-30T00:25:55.233343 | 2021-10-12T13:32:45 | 2021-10-12T13:32:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,158 | py | #
#TESTING FOR TSA ENCODING - final
#TSA BLOCK
"""
Temporal Attention Encoder module
Credits:
The module is heavily inspired by the works of Vaswani et al. on self-attention and their pytorch implementation of
the Transformer served as code base for the present script.
paper: https://arxiv.org/abs/1706.03762
code: ... | [
"ellaampy@gmail.com"
] | ellaampy@gmail.com |
655ca34106da480d21ec9bb6da7b33271375ad14 | a56a74b362b9263289aad96098bd0f7d798570a2 | /venv/lib/python3.8/site-packages/tornado/curl_httpclient.py | b81316c01b086b4136ec914a0494b394529a1c69 | [
"MIT"
] | permissive | yoonkt200/ml-theory-python | 5812d06841d30e1068f6592b5730a40e87801313 | 7643136230fd4f291b6e3dbf9fa562c3737901a2 | refs/heads/master | 2022-12-21T14:53:21.624453 | 2021-02-02T09:33:07 | 2021-02-02T09:33:07 | 132,319,537 | 13 | 14 | MIT | 2022-12-19T17:23:57 | 2018-05-06T08:17:45 | Python | UTF-8 | Python | false | false | 24,693 | py | #
# Copyright 2009 Facebook
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | [
"kitae.yoon@deliveryhero.co.kr"
] | kitae.yoon@deliveryhero.co.kr |
084706420a235cb05902a3d6090d79a5ce7dd498 | 3ce592352627591346ea33ea0c2665ad879414e2 | /References/opengl/computer.graphics.through.opengl/02_basic_drawing/moveSphere.py | eda2a48c42e3589ed85713e89d5a27c85fe955ba | [
"MIT"
] | permissive | royqh1979/python_libs_usage | 113df732ef106f4a5faae1343493756fd703c8c0 | 57546d5648d8a6b7aca7d7ff9481aa7cd4d8f511 | refs/heads/master | 2021-04-16T18:14:43.835482 | 2021-01-11T03:55:25 | 2021-01-11T03:55:25 | 249,374,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,672 | py | """
// moveSphere.py
//
// This program allows the user to move a sphere to demonstrate
// distortion at the edges of the viewing frustum.
//
// Interaction:
// Press the arrow keys to move the sphere.
// Press the space bar to rotate the sphere..
// Press r to reset.
//
"""
from PyQt5 import QtWidgets, QtCore, QtGui,... | [
"royqh1979@gmail.com"
] | royqh1979@gmail.com |
8cdd6cf80bbae7c0aff2d6cd806083a71a2d256e | 64a9dbe57c39c464b4bab2ca782cdd8f430f3e4a | /main_Mia_version1.1.py | 6c50e8b2bab1b07c681a13da1d3559f71bbabdf8 | [] | no_license | mimiandboo/TAMUhack2019Project | b20f4a473bf3afc10ba025854d62703580a53f6a | c008e1225e0fc67eaa050a9b3a6589eeff473a45 | refs/heads/master | 2020-04-21T00:37:05.415816 | 2019-01-27T17:27:13 | 2019-01-27T17:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,739 | py | #! /usr/bin/python
# To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
#
# solves all equations with one instance of x^n
import math
from tkinter import *
# SMALL BUG:: to continue the project... | [
"noreply@github.com"
] | mimiandboo.noreply@github.com |
8990290a8e27d70721b5a2f60efb5aa37dfa6771 | a5389c219c12ae43b1ecbf3e09db2ea3e0ef926a | /tweets/urls.py | 7ac49f61475135a395c053956c12ba9bc8f02cbc | [] | no_license | divineunited/tweetme2 | d568f04d9599405ec1c1feaa117a4f1eaa3c39f4 | dc77ce418216377c33be675709261f9126408eba | refs/heads/master | 2022-12-07T22:58:47.460404 | 2020-09-01T06:02:32 | 2020-09-01T06:02:32 | 286,193,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from django.contrib import admin
from django.urls import path
from . import views
'''
CLIENT BASE ENDPOINT: /api/tweets
'''
urlpatterns = [
path('', views.tweet_list_view),
path('action/', views.tweet_action_view),
path('create/', views.tweet_create_view),
path('<int:tweet_id>/', views.tweet_detail_vi... | [
"danieldukevu@outlook.com"
] | danieldukevu@outlook.com |
9e88048d8e2c37bc5dda5fcac47089e76ea4ad02 | af4c724c2ae9b5560a0aebd4f5b9c0ccad62956d | /Ocularis_PY_Platform/comp_sci.py | 49c67952271eda1404ca1482183be90f6c368755 | [
"MIT"
] | permissive | gaurav-karna/Ocularis | 51aeefc34041d6af7d410b2f055314af78000ea1 | 0d45a9e2a44383aed3fbad3499c2ad2af4c92ccc | refs/heads/master | 2022-12-10T19:58:36.941291 | 2019-10-04T14:18:36 | 2019-10-04T14:18:36 | 158,031,702 | 7 | 2 | MIT | 2022-12-08T04:51:25 | 2018-11-17T22:53:42 | Python | UTF-8 | Python | false | false | 3,121 | py | import time
import requests
from xml.etree import ElementTree
import os
import playsound
import datetime
import multiprocessing
import keyboard
def playerasync(uid):
playsound.playsound(os.path.join(os.getcwd(), 'majortempaud', uid + '.wav'),False)
def checker():
while 1:
if keyboa... | [
"noreply@github.com"
] | gaurav-karna.noreply@github.com |
4fe8f803fc6d158e74f65ba3dc7fd9be8423ec64 | 6d423396ff89637cdfff830157bf8256b0dc6005 | /task8_check_stikers.py | 1b8a208743052d2ea5c0e10b2259c291651b9928 | [
"Apache-2.0"
] | permissive | kukushdi3981/sel-1_test-project | 46251b9814ac1d37808ffb4536fcec72925bedd0 | 81066e1501a62f642b5b76745801170ca62ad237 | refs/heads/master | 2020-01-24T20:54:04.478988 | 2017-07-09T17:00:50 | 2017-07-09T17:00:50 | 73,853,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,862 | py | import pytest
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import time
@pytest.fixture
def driver(request):
wd = webdriver.Chrome() # Optional argument, if not s... | [
"kukushdi@mail.ru"
] | kukushdi@mail.ru |
c3575c0cb974aad3825df4263f73ca0dcb694d5e | aec274689e2c22acd57936a6eda180376f4c1076 | /pkg/embeddings/testdata/testgen.py | d7ce33b1b8fb14a1aa90fe48301250d2a4ec27d7 | [
"Apache-2.0"
] | permissive | fredrikluo/mlserving | 5de356083d248671d4a1893391ff804e81da6f5e | b5d1c59b6f714abbfddd47d9ddcb116b52656a1f | refs/heads/master | 2023-07-10T21:27:16.204034 | 2023-06-30T12:54:55 | 2023-06-30T12:54:55 | 173,492,671 | 6 | 2 | null | 2023-06-30T12:54:56 | 2019-03-02T19:56:17 | C++ | UTF-8 | Python | false | false | 730 | py | import json
from annoy import AnnoyIndex
filename = 'test.ann'
index2idfilename = 'index2id.json'
def main():
# build the ann index file
t = AnnoyIndex(2, 'dot') # Length of item vector that will be indexed
id2index = {}
index2id = {}
embeddings = [[0.4472135954999579, 0.8944271909999159],
... | [
"fredrikl@kahoot.com"
] | fredrikl@kahoot.com |
6881ed8455819b69bb011bb4b5d0d41b3adc0067 | e02a563840b2c3f78456e44f5fa36d3e4a91860d | /backend/src/database/models.py | 0164fff004f473d042c17437895dc9aba1e5a84a | [] | no_license | im-ayush/CoffeeShop | 001443198ee61ff88d90a8f9dbf6b3b9c89b3544 | f7872094e97ac76dd8f204563bc3af46822e7c4e | refs/heads/master | 2023-05-31T19:11:49.553726 | 2021-06-20T02:27:05 | 2021-06-20T02:27:05 | 378,541,735 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,574 | py | import os
from sqlalchemy import Column, String, Integer
from flask_sqlalchemy import SQLAlchemy
import json
database_filename = "database.db"
project_dir = os.path.dirname(os.path.abspath(__file__))
database_path = "sqlite:///{}".format(os.path.join(project_dir, database_filename))
db = SQLAlchemy()
'''
setup_db(ap... | [
"ayushmishra6768@gmail.com"
] | ayushmishra6768@gmail.com |
3330ac47b8e263dc784e8adc5c51fdaaa3d8f3ed | 140929bb7a81dd76688d5acc923f28aa0ff539d8 | /env/lib/python3.6/site-packages/pyglet/gl/gl.py | 124e049934b4d7e17508d83139153ba74ef16da6 | [
"Apache-2.0"
] | permissive | boodahDEV/Soni-IA | bd4436895c6c61c191e8968a964667af174121cd | c452c0b3df3a3ced4b5027c2abb4f3c22fd0f948 | refs/heads/master | 2020-05-05T01:27:04.810504 | 2019-05-27T06:48:08 | 2019-05-27T06:48:08 | 179,603,282 | 2 | 1 | Apache-2.0 | 2019-05-27T06:38:43 | 2019-04-05T01:39:46 | Python | UTF-8 | Python | false | false | 134,082 | py | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
"boodah21@protonmail.com"
] | boodah21@protonmail.com |
da7cb602a55635eb162cd43b1b3c1706f8b423c4 | fe6d7d31aa9b487f71922dd656741162c532731e | /blog/urls.py | 3a89b53a2f216d56ec66eca4e53b5c4df76e1653 | [] | no_license | shalymovaigerim/my-first-blog | adadcc7687238e90a541e398ae72f332f05d7ae5 | e7103180ee153cd6cba9e6b94c9c714c780638f8 | refs/heads/master | 2023-01-11T17:37:52.086231 | 2020-11-11T17:20:37 | 2020-11-11T17:20:37 | 310,077,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.post_list,name='post_list'),
path('post/<int:pk>/', views.post_detail, name='post_detail'),
path('post/new/',views.post_new, name='post_new'),
path('post/<int:pk>/edit/', views.post_edit, name='post_edit'),
path('post/<p... | [
"shalymova_aigerim@mail.ru"
] | shalymova_aigerim@mail.ru |
c2d82f13a397d88acca295f116a817860485f6d8 | 01800b33fe25f82670037489e0abdc23ccd54773 | /otone_data/AnP_protocol.py | 1f06493f4b30fc5e124dfee0afec40050d7d5d05 | [] | no_license | annie-mao/OT.One | 368789cf1912979132ddfb89ba7a0e514ce5eea6 | 0190295076a12768610a101317888263c301739f | refs/heads/master | 2020-04-12T06:25:07.166221 | 2017-03-09T22:00:51 | 2017-03-09T22:00:51 | 63,980,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,016 | py | # Generates a JSON protocol for Accuracy/Precision volume transfer
# calibration on the OT.One
from baseProtocol import BaseProtocol, InvalidEntry, Prompt
import pprint
pp = pprint.PrettyPrinter(indent=2)
p = BaseProtocol("AnP","Test AnP of OT.One using p10 and p200 pipettes","1/23/17")
p.set_container_library("conta... | [
"annie.m.mao@gmail.com"
] | annie.m.mao@gmail.com |
7de0394f52efca61b0b3f8ca0f72f0d0904d969d | 07af13a1df1f9ffc39b36ca44c6564fa8a27cbcc | /Mapping.py | 6f5b902c27ede4588b958f20e92274e36b6a650f | [] | no_license | lichiheng1998/Matrix | 084ca39790c4005f5ceeb1e9b89a866cb66c1cf3 | 53f03042b1ea2b586b86a08e8d08941b8879ff65 | refs/heads/master | 2021-05-09T06:30:10.047608 | 2018-02-01T18:23:37 | 2018-02-01T18:23:37 | 119,332,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py |
def map_2d(func, row, col, *args, construct=None,
iter_key=None, assign_key=None):
def assign_func(container, r, c, value):
container[(r, c)] = value
if assign_key is None:
assign_key = assign_func
if construct is None:
construct = {}
return _my_map2_rec(func, row, ... | [
"lichiheng1998@gmail.com"
] | lichiheng1998@gmail.com |
a6e3a3f1b09f4829def56b1bf77591e79844afac | a351496d390f8d56278de5c69c442cc3db846bc7 | /UserInterfaces/OrderedSet.py | 0c4d04930e1ad882d750f794781bc3ef177cc23c | [] | no_license | Willowlark/KML-Optimizer-Pathfinder | f62044ca4e8eb729498bee145a12ab423819b5cc | 203f02f69e948314647eb649e27b6e0e4a6c676c | refs/heads/master | 2021-01-20T10:13:06.970003 | 2017-05-15T21:55:57 | 2017-05-15T21:55:57 | 51,036,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | class OrderedSet(object):
"""
this class is our implementation of an ordered set in python
It wraps a list, allowing the the admission of elements only if the are NOT already contained in the list
"""
lst = [] # internal component, collection of elements
def __init__(self, iterable=None):... | [
"lapost48@gmail.com"
] | lapost48@gmail.com |
223ed45880966c83744fd57bf04af6d78138d270 | f945a1f805bfd0c7690c886511e2bcc2926e2a3c | /House_Renting_Solver/blog/migrations/0001_initial.py | 2c5f99d34536d0dc74bfefe37db11767494c0b00 | [
"MIT"
] | permissive | habib-wahid/WebTech | 0ae96708615548a84309c0187ad8f0afcc9faeae | 11358bd7b1640866a28832d52e24ea1e1f3e49b4 | refs/heads/main | 2023-08-13T21:35:08.848497 | 2021-09-20T15:35:04 | 2021-09-20T15:35:04 | 408,499,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # Generated by Django 3.1.4 on 2021-01-04 06:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"habib11wahid@gmail.com"
] | habib11wahid@gmail.com |
d204380828811832f28d3f1ec891a93c74613bd6 | a3a47674e4ad7359a3571825a5beb4359f8f4667 | /linklist/SingleLinkList.py | 5cac6a3457c2351990ebb1ddf3bc17b21bf89ca7 | [] | no_license | 13iqin/leetcode_exercise | 6ca65d85d4cd4bba9c55cf936ed5eeb7527ee4bb | 3106b61de9014b1136cecc920531cb40624dfb74 | refs/heads/master | 2020-05-26T20:17:13.345693 | 2019-07-11T03:42:20 | 2019-07-11T03:42:20 | 188,360,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,520 | py | # 单链表的实现
class Node(object):
def __init__(self, val):
self.val = val
self.next = None
class SingleLinkList(object):
def __init__(self):
self.head = None
self.tail = None
self.current = None
# 可迭代条件
def __iter__(self):
return self
# ... | [
"miranda@seeapp.com"
] | miranda@seeapp.com |
1c9d0e560bc9fb3015940c803fb3da028d29d9ae | 878bd15535cafde2b49208e1bfc2224e027e4be9 | /1010.PY | b35cf40f3ecf6bd7bbc58f069816dac41f1892f3 | [] | no_license | Alvzz/URI-PROBLEMS | 650fefc8113b4040866dc09678f9b72060702ea1 | d7a990b60cb746bba927926f629b69ccb8d6ae13 | refs/heads/main | 2022-12-21T15:49:49.754099 | 2020-10-01T17:30:58 | 2020-10-01T17:30:58 | 300,364,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | linha1 = input().split(" ")
linha2 = input().split(" ")
a1, b1, c1 = linha1
a2, b2, c2 = linha2
total = (int(b1) * float(c1)) + (int(b2) * float(c2))
print("VALOR A PAGAR: R$ {:.2f}".format(total))
| [
"noreply@github.com"
] | Alvzz.noreply@github.com |
e0287539bd801f859c461d1ae1d70b8055288938 | 5759c0ed3219c06437ce5b39ef9ad92b5e191fed | /py/0428_serialize_and_deserialize_n_ary_tree.py | 1df779c0ca32628d1c3067e97cc5b065abbbda52 | [] | no_license | mengnan1994/Surrender-to-Reality | ba69df7c36112ad19f19157a9f368eae6340630f | 66232728ce49149188f863271ec2c57e426abb43 | refs/heads/master | 2022-02-25T01:34:49.526517 | 2019-09-22T17:21:28 | 2019-09-22T17:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,773 | py | """
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer,
or transmitted across a network connection link to be reconstructed later in the same or another computer environment.
Design an algorithm to serialize and deseria... | [
"hurricane.cui@gmail.com"
] | hurricane.cui@gmail.com |
3b3c12b9712ffc1b82183390eaf9cf738beaea01 | eb5da2d5f328f2126019a01222f268fba5dc93e6 | /app/models.py | 4a1abe33978582a35a8d95da328b77d05ef22905 | [] | no_license | GJhunter/fight-flask | 08c66d1ef7b3f565cb175883b032ca61d4cf6f3f | 253c159bb8faaafe1b6fe47fe59ac1e2798e6e1a | refs/heads/master | 2020-12-31T06:55:19.984285 | 2016-05-05T06:46:27 | 2016-05-05T06:46:27 | 56,834,903 | 0 | 0 | null | 2016-04-25T04:43:50 | 2016-04-22T07:20:15 | HTML | UTF-8 | Python | false | false | 13,195 | py | #coding=utf-8
from werkzeug.security import generate_password_hash,check_password_hash
from app import create_app,db
from . import db,login_manager
from flask.ext.login import UserMixin,AnonymousUserMixin
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from flask import current_app,request
from d... | [
"GJ000@outlook.com"
] | GJ000@outlook.com |
25f15535f48b56735659001c93807f5a90b6113b | a02661e543a27528769abc175b61384062f1756c | /PycharmProjects/python/pythonProject/pythonProject/Ultralite/mysite/pages/urls.py | 90ac1151e8e3001d472452bd07463c7fad28750d | [] | no_license | radhikaarajput/Snapyard-Consultancy-Services | 33a1ba329180869e8fc77b13b7c3309499831b1e | 9365612ce01ce2ad08ea63227e8753e15010f1b9 | refs/heads/main | 2023-07-01T01:16:38.107980 | 2021-08-03T15:54:33 | 2021-08-03T15:54:33 | 392,369,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('about/', views.about, name='about'),
path('contact/', views.contact, name='contact'),
] | [
"rajputradhika20177@gmail.com"
] | rajputradhika20177@gmail.com |
1f81e707108d9d7cf615ad5fa62a8951c0ec8c95 | d53d223836d96d3e00880b133835d72be7d2023b | /Bioinspirada/MiniProjeto1/bin/AGF8QueensII.py | 1a3ed92849d02da848d799a1ac49d2ba6f308a06 | [] | no_license | ess2/AlgoritmosBioinspirados | e319460927b66e80aed81d9c292a008128036192 | 58527bc60e73aabb462213f19f99c5e64f7a9674 | refs/heads/master | 2020-07-26T13:22:04.746556 | 2019-09-18T04:06:40 | 2019-09-18T04:06:40 | 208,657,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,991 | py | import numpy
import numpy.random as npr
import random
import time
max_fitness = 28
qt_exec = 13
qt_population = 70
def main():
for f in range(qt_exec):
inicio = time.time()
population = list()
qtFitness = 0
#Gera a população
for i in range(qt_population):
a = r... | [
"ess2@cin.ufpe.br"
] | ess2@cin.ufpe.br |
18f43854543ea9c9c8c46129f56e665c7042d7d6 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/468/usersdata/304/111685/submittedfiles/Av2_Parte3.py | 8f2fd9356f208463f08f81498b9a718876b02d30 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # -*- coding: utf-8 -*-
m = int(input('Quantas listas: '))
n = int(input('Qntd elemento listas: '))
for i in range (0,m,1):
lista=[]
for j in range (0,n,1):
lista.append(int(input('Elemento: ')))
media = sum(lista)/len(lista)
soma = 0
for i in range (0,(n-1),1):
soma += ((i - media))
dp... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f9ceda4cd3cf9dfcc7ea65a3ed3425b5e6910499 | 4dd1636464260f96827ddefd8693d5c38e5fa2c3 | /InstantPythonGames/IPG Space Runner.py | 1e28bf91a3caccdbebb5b9065954e76cdab309fe | [] | no_license | JoeKHong/Space-Runner | 810de5acd5a0e4e8278e1656232df6c55c059fcf | 89ecafead386814ed18f7c38ee867edb754545e9 | refs/heads/master | 2020-05-18T07:37:42.591977 | 2019-05-01T13:57:49 | 2019-05-01T13:57:49 | 184,270,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,311 | py | from gamelib import *
game = Game(1000, 800, "Space Runner")
bk = Image("Space REAL.png", game)
game.setBackground(bk)
runner = Image("Space Runner man.png", game)
enemy = Image("Space Runner Enemy 2.png", game)
coin = Image("Space Runner Coin.jpg", game)
ammo = Image("Space Runner Ammo.jpg", game)
asteroid =... | [
"noreply@github.com"
] | JoeKHong.noreply@github.com |
79c149f223cd05060eb7a857a08cd8585185c92f | 4149b4bd449d54a9796d83df629766d30c00a216 | /sort/sort.py | 9aca33bff972357ad55f90b5ee36758d975e1e72 | [] | no_license | Mogbeyi/typescript-playground | b90f1c61de093a8c1e6f7fd719eec72f4ab6d9bb | 4f062e561fac81dd4efc4f8e1eb86abeb397bf96 | refs/heads/master | 2023-03-29T16:26:34.814340 | 2021-03-31T22:42:38 | 2021-03-31T22:42:38 | 346,344,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from operator import itemgetter
L=[[9, 1, 9], [0, 2, 10], [4, 4, 100]]
new_value = sorted(L, key=itemgetter(0))
print(new_value)
| [
"mogbeyiwenyinmi@gmail.com"
] | mogbeyiwenyinmi@gmail.com |
ec1c326b68ba3fac7295fe614e1dd372d683d0cb | d598801ba5f843d9d974980198ef161d1aa47c8e | /somatic_component_extraction/VAE_tensorflow1.py | a23e97d1758a89766131defb0bfdf69c313bd179 | [
"MIT"
] | permissive | lehner-lab/RDGVassociation | 5cbe98406e5b11f9c692cdbecf0827afdcc67470 | 23f0a6054bc5798d9d81a7eaab026fe8acae86ae | refs/heads/main | 2023-04-17T06:06:09.397546 | 2022-05-15T12:01:02 | 2022-05-15T12:01:02 | 413,348,149 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,475 | py | '''
Mischan Vali Pour
Variational Autoencoder
adapted/modified from https://github.com/greenelab/tybalt/blob/master/tybalt_vae.ipynb
adapted/inspired from "Hand-On Maschine Learning with Scikit-Learn, Keras & Tensorflow" by Aurélien Géron December 2020
Outputs different performance parameters
Runs with tensorflow 1.15... | [
"mischan.vali@gmail.com"
] | mischan.vali@gmail.com |
877c2c1ffca4cf685c39619bd5877709a434348d | 0d0ee226b655e7e665d3e7fef2aeec701f74d581 | /tests/integration/test_s3.py | 87e0d8ed54ceb00d306a916b40b333916b6578b8 | [
"MIT"
] | permissive | spcs/botocore | 435c180e93aa670ccf924a14ae776dd075d09fde | fc6b7454e5e17cfd6428b1abdffa38856d77bd25 | refs/heads/master | 2021-01-17T06:42:31.356668 | 2013-10-02T19:12:49 | 2013-10-02T19:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,424 | py | # Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights ... | [
"js@jamesls.com"
] | js@jamesls.com |
0f3ba8c3c6a07fd4c4db2ae8b254a3b740c6e027 | e86a12cee54eec53655af8e9e889f47b665c18ea | /danntest/main.py | aa893f7f224ab30c5193745dfc4940e07c0cd3c9 | [] | no_license | wwnew/dann-tf.keras-test | 8854f092aee662aae94ae6df98fe296d765e4328 | 77f1aa1a554f82dea7a6a70ac9d03ba52365435a | refs/heads/main | 2023-03-14T12:27:05.056747 | 2021-03-03T13:09:39 | 2021-03-03T13:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,446 | py |
import tensorflow as tf
# tf.compat.v1.enable_eager_execution()
print(tf.__version__)
from tensorflow.keras.layers import Input, Dense, Dropout, Activation, Flatten, \
Conv1D, BatchNormalization, MaxPooling1D, UpSampling1D, LSTM,Add
from tensorflow.python.keras.layers import Cropping1D
from tensorflow.keras... | [
"noreply@github.com"
] | wwnew.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.