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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c709879b1fee60eecdc644534c5f072428a76609 | 31eaed64b0caeda5c5fe3603609402034e6eb7be | /python_zumbi/py_functions/ler_e_gravar_arquivo_CSV.py | e8d6a926b35a01ceccefbd8155a6cdd818c3a912 | [] | no_license | RaphaelfsOliveira/workspace_python | 93657b581043176ecffb5783de208c0a00924832 | 90959697687b9398cc48146461750942802933b3 | refs/heads/master | 2021-01-11T17:39:49.574875 | 2017-06-28T20:55:43 | 2017-06-28T20:55:43 | 79,814,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | import csv
arq_name = "test"
title = 'perfumes'
name_prod = 'perfume-feminino'
url_prod = 'http://www.epocacosmeticos.com.br/perfumes/perfume-feminino'
rows = ['teste','teste']
def save_urls(arq_name, rows):
arq = csv.writer(open(arq_name + '.csv', "w"))
arq.writerow(rows)
print(rows)
#print(arq)
| [
"raphaelbrf@gmail.com"
] | raphaelbrf@gmail.com |
5f2a5eb29af62914d46eb9bdd3a8b12e5253115d | 8dd53a5d1820ae5a3efe799381a90c977afd32c4 | /contrib/devtools/copyright_header.py | 8ffcca9432a127d16002bcc5aa79aef9ddf47f4a | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | mulecore/mulecoin | 8b654817a1b78c9e98f96bfef5febaca23347f64 | e52131742938ae433463f32680837981a5cedc0f | refs/heads/master | 2023-03-28T05:37:53.552271 | 2021-03-27T03:22:13 | 2021-03-27T03:22:13 | 351,796,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,084 | py | #!/usr/bin/env python3
# Copyright (c) 2016 The Bitcoin Core developers
# Copyright (c) 2017-2019 The Raven Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import re
import fnmatch
import sys
import subprocess
impo... | [
"root@DESKTOP-AOBIGEQ.localdomain"
] | root@DESKTOP-AOBIGEQ.localdomain |
4dc0710a308eb43121ff85c314929338cc1ad68d | f98c45d0079479b10c8276693dc31c704ccc087f | /api/apps/goods/models.py | 9f7696a669fbacebb0c26a81978d4226843c2828 | [
"MIT"
] | permissive | TasHole/tokyo | b78c84d31b5c459a8a508fd671151a825db55835 | d4e0b2cce2aae53d93cb2bbbd2ca12ff0aa6a219 | refs/heads/master | 2020-12-21T13:29:31.626154 | 2019-10-12T03:03:34 | 2019-10-12T03:03:34 | 236,445,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,857 | py | from datetime import datetime
from django.db import models
class GoodsCategory(models.Model):
"""
商品カテゴリー
"""
CATEGORY_TYPE = (
(1, "一級カテゴリー"),
(2, "二級カテゴリー"),
(3, "三級カテゴリー")
)
name = models.CharField(default="", max_length=50, verbose_name="カテゴリー名", help_text="カテゴリー名... | [
"txy1226052@gmail.com"
] | txy1226052@gmail.com |
bc7d6aaa70db83515dcb9be6218ae064862630e5 | b563e04d91dcd5169b83fbfba840c16a882f7357 | /filechanger.py | 4384db93fcb61bc1ec51600c25b56c4ab7ff7868 | [] | no_license | tomfa/filechanger | 7765d248799815f9980a3151a63f16738ef9c389 | e9d0f4e6543557eb4bb8fd84a5d3cc74466d81f5 | refs/heads/master | 2020-07-06T02:11:21.699066 | 2016-11-24T18:58:29 | 2016-11-24T18:58:29 | 73,969,133 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,591 | py | #coding: utf-8
import os, sys
IGNORED_FILE_ENDINGS = [".py", ".bat"]
VALID_ACTIONS = ["lower", "upper", "remove", "insert", "replace"]
def _get_file_ext(file):
"""
>>> _get_file_ext("C:\\Program Files\test.txt")
'.txt'
>>> _get_file_ext("/Users/tomas/.bash_rc")
''
"""
return os.path.splitext(file)[1]
def _con... | [
"tomas@webutvikling.org"
] | tomas@webutvikling.org |
6e1a0f4eb1de8bb8c2e36e6c77fecf3cd02327e4 | 57237351cde7421ab42ca9a4acf563126e0c88b0 | /lianJiaProject/spiders/lianjia.py | e53e2a6f3d90178b7a64468eaa60eb15facec64a | [] | no_license | swarosky44/LianJiaSpider | 2a85d0dd22280223a6827169807115035fa9711e | 12855f4d0a8f7edd89f356eefe011891f2b5d29f | refs/heads/master | 2020-05-21T15:37:15.070565 | 2017-03-15T10:24:34 | 2017-03-15T10:24:34 | 84,630,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,033 | py | # -*- coding: utf-8 -*-
import scrapy
import requests
import re
import time
import pymysql
from BeautifulSoup import BeautifulSoup
from ..items import LianjiaprojectItem
class LianJiaProject(scrapy.Spider):
name = 'lianjiaspider'
start_urls = ['http://sh.lianjia.com/zufang/']
conn = pymysql.connect(
... | [
"swarosky44@gmail.com"
] | swarosky44@gmail.com |
13291215a88b57ada0920e080d9c3b7a1ef0eb47 | 64e23db686e6d1e7edd74ca5952a16408d320ca8 | /daemon/lvm.py | 2369697565859ac07dea534a71bd4f106d3f2b1d | [] | no_license | pengxiaojun/ipsan | 37514472cb1a2306684c664adb41d49a685034b5 | 11b39f55417489d6c7be481f908c01dd6b75ca63 | refs/heads/master | 2021-01-18T21:34:17.533550 | 2016-03-30T08:26:29 | 2016-03-30T08:26:29 | 39,625,764 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | # -*-coding: utf-8 -*-
import os
import sqlite3
import logging
import subprocess
from common import grgrant_prog
from common import database
def fetch_all_lvm():
with sqlite3.connect(database) as conn:
c = conn.cursor()
try:
c.execute('select name, path from lvms')
r = c.... | [
"pengxj@outlook.com"
] | pengxj@outlook.com |
f3ed7239fcf50a6d20f734ebe24f87aa0ad4b72f | edf44e3ef936cc3afad5226f788462d166c997be | /linearSolvers/AMORE.py | 510933d06e349a984b927035c10fed20d24bf7ea | [
"MIT"
] | permissive | Computational-Mathematics-Research/MOFEM | b9c473eb3d5770f1d7a33cc705ccb5ffcb21ced2 | 6ed2ea5b7a8fbb1f8f0954636f6326c706da302c | refs/heads/master | 2022-09-12T14:00:42.476935 | 2020-05-29T01:49:50 | 2020-05-29T01:49:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,873 | py | # The AMORE scheme for linear problems.
import numpy as np
import math
import scipy
# from sksparse.cholmod import cholesky # It works.
from scipy.sparse.linalg import spsolve
import time
import sys, os
sys.path.append(os.path.dirname(sys.path[0]))
from elementLibrary import stiffnessMatrix, shapeFunction, invShapeFun... | [
"jun-bin_huang@outlook.com"
] | jun-bin_huang@outlook.com |
3be5e6031a6351f732e4aa3e3ecf6dc74d11eb6c | f5c62bab2e95bb2dc6986ba271662ade8cae4da0 | /docs/PythonSAI/LineProperties.py | c3e7401f40524540e570646be946433183820cfd | [] | no_license | Has3ong/X3DViewer | d211b159c29523e61158eddc015bb320e4ba7c9d | c629305c24b5c25fd41d3a46816efbf1f74d0092 | refs/heads/master | 2021-06-25T16:36:46.278469 | 2021-01-03T11:26:02 | 2021-01-03T11:26:02 | 180,564,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | from . import *
# LineProperties defines a concrete node interface that extends interface X3DAppearanceChildNode.
class CLineProperties(CX3DAppearanceChildNode):
m_strNodeName = "LineProperties"
def __init__(self):
self.m_strNodeName = "LineProperties"
self.m_Parent = [None]
self.childr... | [
"khsh5592@naver.com"
] | khsh5592@naver.com |
f2759daadeefa6b3f075de304b18660a2ca0c449 | 5b4c803f68e52849a1c1093aac503efc423ad132 | /UnPyc/tests/tests/CFG/2/pass/pass_try+finally_while_.py | 258bc6132acf68332fcb6f7045d21347c4336fcd | [] | no_license | Prashant-Jonny/UnPyc | 9ce5d63b1e0d2ec19c1faa48d932cc3f71f8599c | 4b9d4ab96dfc53a0b4e06972443e1402e9dc034f | refs/heads/master | 2021-01-17T12:03:17.314248 | 2013-02-22T07:22:35 | 2013-02-22T07:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | while 1:
try:
pass
finally:
pass
| [
"d.v.kornev@gmail.com"
] | d.v.kornev@gmail.com |
b73000ba07270793015730c3be257dec3a98ded0 | 4bb1a23a62bf6dc83a107d4da8daefd9b383fc99 | /work/abc032_c2.py | 45cd9b0ea7fccb2e9ffe3042836077ee7d77a58a | [] | no_license | takushi-m/atcoder-work | 0aeea397c85173318497e08cb849efd459a9f6b6 | f6769f0be9c085bde88129a1e9205fb817bb556a | refs/heads/master | 2021-09-24T16:52:58.752112 | 2021-09-11T14:17:10 | 2021-09-11T14:17:10 | 144,509,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | n,k = map(int, input().split())
al = [int(input()) for _ in range(n)]
if 0 in al:
print(n)
exit()
r = 0
l = 0
m = 1
res = 0
while l<n:
while r<n and m*al[r]<=k:
m *= al[r]
r += 1
res = max(res, r-l)
if r==l:
r += 1
else:
m //= al[l]
l += 1
pr... | [
"takushi-m@users.noreply.github.com"
] | takushi-m@users.noreply.github.com |
d966c7041e447cabc4bf303ad9feffacf3c1e20b | 62902de8b202780ec95a63ea89667062fa8530ee | /2018_Fall/Data Structure/experiment 3/Huffmann Zipper.py | b0099316955a7a44062f8348f3716722c881a5cf | [] | no_license | ToniChopp/USTC-CS | 41af3cbc7aad57e6c1debbde840d1720e75b07c5 | 1cb8fd686e720fb7c98a95bcc4af7da5952c5e77 | refs/heads/master | 2023-08-28T03:59:15.172727 | 2021-06-08T15:40:30 | 2021-06-08T15:40:30 | 353,741,356 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 9,235 | py | import six
import tkinter as tk
import sys
window=tk.Tk()
window.title('Huffman Zipper')
window.geometry('500x400')
class HuffNode(object):
def get_wieght(self):
raise NotImplementedError(
"The Abstract Node Class doesn't define 'get_wieght'")
def isleaf(self):
raise NotImplemente... | [
"wrs792141579@mail.ustc.edu.cn"
] | wrs792141579@mail.ustc.edu.cn |
b92f07f377e480c10c7ff21ab2ee63a1f3876c6c | 045b48b2e1a75bd45c87b5c352c3b6fc340b8902 | /Chapter06/bookmarks/images/urls.py | ca9fb60bc859d3e04c9aaa7944715a8c384e05c3 | [
"MIT"
] | permissive | fifo2019/Django-2-by-Example | c56bbad3a1c18242e832c452703619ec5e50caf4 | 1f8be1f5717e5c83feac8ded5d8c78a3b64ce864 | refs/heads/master | 2020-07-27T15:10:09.347076 | 2019-09-19T19:10:58 | 2019-09-19T19:10:58 | 209,136,653 | 1 | 0 | MIT | 2019-09-17T19:11:26 | 2019-09-17T19:11:26 | null | UTF-8 | Python | false | false | 375 | py | from django.urls import path
from . import views
app_name = 'images'
urlpatterns = [
path('create/', views.image_create, name='create'),
path('detail/<int:id>/<slug:slug>/', views.image_detail, name='detail'),
path('like/', views.image_like, name='like'),
path('', views.image_list, name='list'),
p... | [
"prajaktam@packtpub.com"
] | prajaktam@packtpub.com |
0d2b5b6c9b8399006a452a9d38b656e956d77c3a | 9e86aa077e7d4f10e20d7bc7de1f53c5ad51716d | /t01/t01_05_e0925.py | 7cf9e40fd1f8b8795fc38c5a295fd99a94b24ae4 | [] | no_license | Klevtsovskyi/PythonAud1 | 16b77e7aaf6b7ce951cca56b8f1be386b9bb4864 | 2f6fb9dbd2960543f5a12ccca4a5bf99db21c835 | refs/heads/master | 2023-09-03T13:36:08.743459 | 2021-11-04T10:10:55 | 2021-11-04T10:10:55 | 296,278,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py |
import math
x1, y1, x2, y2, x3, y3 = [float(d) for d in input().split()]
a = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
b = ((x3 - x2) ** 2 + (y3 - y2) ** 2) ** 0.5
c = ((x3 - x1) ** 2 + (y3 - y1) ** 2) ** 0.5
P = a + b + c
p = P / 2
S = math.sqrt(p * (p - a) * (p - b) * (p - c))
print("%.4f %.4f" % (P, S))
| [
"avklevtsovskiy@gmail.com"
] | avklevtsovskiy@gmail.com |
b941f4fec6db3324f517391c833d36bd9deb602e | 1a114943c92a5db40034470ff31a79bcf8ddfc37 | /stdlib_exam/unicodedata-example-1.py | 8ab800f4c75d0ac65e9f6fbc5d28206808558553 | [] | no_license | renwl/mylinux | 1924918599efd6766c266231d66b2a7ed6f6cdd1 | 0602fc6d2b0d254a8503e57310f848fc3e1a73b4 | refs/heads/master | 2020-07-10T22:12:03.259349 | 2017-01-02T12:32:04 | 2017-01-02T12:32:04 | 66,467,007 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 396 | py | import unicodedata
for char in [u"A", u"-", u"1", u"\N{LATIN CAPITAL LETTER O WITH DIAERESIS}"]:
print repr(char),
print unicodedata.category(char),
print repr(unicodedata.decomposition(char)),
print unicodedata.decimal(char, None),
print unicodedata.numeric(char, None)
## u'A' Lu '' None None
## ... | [
"wenliang.ren@quanray.com"
] | wenliang.ren@quanray.com |
b273a37fb3e2c9240e6ff15a4fa8e29276a8f2ed | ee878b70f2806253ca56fed05e4b81becf980b0e | /mondayweek3_inclass_palmer.py | 0b7eb6ddc5363e667b87d5021811760b8d275603 | [] | no_license | dpalmer4/clsm_palmer | b41aaf106dad06c34e5b0c54ff88caf7089de1ee | fcd48ec66f417b2cf5c35aec5b3ca5ae5bedc576 | refs/heads/master | 2020-12-19T06:52:34.698282 | 2020-06-01T20:13:34 | 2020-06-01T20:13:34 | 235,654,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 27 19:49:44 2020
@author: danpa
"""
import numpy as np
import matplotlib.pyplot as plt
x=np.random.rand(1000000)
K=1
T=1
A=1
m=1
z=1
#probability distribution of Energy
E=(-K*T*np.log(K*T*x/A))
plt.hist(E,100,density=1)
plt.xlabel("Energy")
plt.ylabel("probability")
plt... | [
"60151424+dpalmer4@users.noreply.github.com"
] | 60151424+dpalmer4@users.noreply.github.com |
1ed13503cfc75a9de9161f83af19c119e4aa1a45 | baefe2e480adee987cf8e2b6be33da89931b0694 | /02练习/练习题01.py | f6b3b8e4a4f3c515b40976960dbf5d9c822243b5 | [] | no_license | KingTom1/StudyBySelf | d92963c606b79696f0a22a3d48c2bec707f4a653 | c6d5326c5b6a7fd74b55ac255ee8bf20cebd199b | refs/heads/master | 2020-04-04T22:08:49.617029 | 2019-01-29T06:00:37 | 2019-01-29T06:00:37 | 156,311,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | ##2.#计算一个12.5m*16.7m的矩形房间的面积和周长
a=12.5
b=16.7
mj=a*b
zc=2*(a+b)
print('面积=',mj,' 周长=',zc)
##3.#怎么得到9/2的小数结果
c=float(9/2)
print(c)
##4.#python计算中7*7*7*7.可以有多少种写法
print(pow(7,4))
print(7**4)
#写程序将温度从华氏温度转换为摄氏温度。转换公式为C=5/9*(F-32)
##F=input()
#C=5/9*(int(F)-32)
#print(C)
#一家商场在降价促销。如果购买金额50-100元(包含50元和100元)之间,会给10%的折扣,
# 如... | [
"38772091+KingTom1@users.noreply.github.com"
] | 38772091+KingTom1@users.noreply.github.com |
65247a93f148848e738b1cc6e7f182c86c232c55 | 14bbd65228c3130676857a5023e9c1a1dd6485c9 | /env/bin/chardetect | c0db3b0948fc7827e9abcc6006729938092970b4 | [] | no_license | VadimShurhal/start_UI_automation | 087325833c53841cdddc5b47245401bd9e7271b2 | 7abd4cf3607d3a8193401b101823e54d54a333ef | refs/heads/master | 2020-03-07T01:21:14.660460 | 2018-03-28T18:41:05 | 2018-03-28T18:41:05 | 127,181,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/home/mastaforka/Desktop/city/env/bin/python3
# -*- 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())
| [
"vadimshurhal@gmail.com"
] | vadimshurhal@gmail.com | |
ae826f84a28f60703dfd8b7a588908ab5afe9b35 | 660e268c396726e01047ba5d306a550c4f861562 | /users/serializers.py | e9da2f526f220daf68449970dd938cd669d2fa02 | [] | no_license | elunicorom/frikr | 3397a93b6c9959c1b775cb103e993521d178a0e4 | 06e596a4f0107ff1c7dfca5c14ea205821ffb97a | refs/heads/master | 2020-01-23T21:58:07.383486 | 2016-12-20T21:51:40 | 2016-12-20T21:51:40 | 74,724,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | # -*- coding: utf-8 -*-
from rest_framework import serializers
from django.contrib.auth.models import User
class UserSerializer(serializers.Serializer):
id=serializers.ReadOnlyField() # solo lectura
first_name=serializers.CharField()
last_name=serializers.CharField()
username=serializers.CharField()
email=serial... | [
"barsa_real_31@hotmail.com"
] | barsa_real_31@hotmail.com |
bc730a8da9729cbccb9fe2bd4763e6dd87f15209 | 810791df9beb0e7b8cb6eedb18649e9f193f62e9 | /TreeCategories/settings.py | 1f10c77caca4d2a4ff53cda84c680e202c222a48 | [] | no_license | BritishAirlines/CategoryTree | 76016214a3fae9aab6a4068aa7bee73acfe8eaa4 | 135fc0f8128616ef133dcc29ec30edffd69f8b63 | refs/heads/main | 2023-01-23T05:43:19.729372 | 2020-11-26T13:34:44 | 2020-11-26T13:34:44 | 315,663,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,385 | py | """
Django settings for TreeCategories project.
Generated by 'django-admin startproject' using Django 3.1.3.
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 ... | [
"ilya_brykau@epam.com"
] | ilya_brykau@epam.com |
3f6f3c360fb85b42a63ded6ebad5f08d50c847a6 | d618bcfbac15840a9f6f3c5971e718aaf425fc06 | /upload_server/settings.py | 5b620241fc4a07bd918551aec984f2ac393c5359 | [] | no_license | mingyuLi97/upload_server | 825d605df9d2c7c72a17ce78a0f55bd3c9d6c1bb | 6fc26190df235530a21396004d38d3d2c03086bd | refs/heads/master | 2020-09-28T22:02:37.606321 | 2019-12-12T06:04:42 | 2019-12-12T06:04:42 | 226,875,132 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,218 | py | """
Django settings for upload_server project.
Generated by 'django-admin startproject' using Django 2.0.
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/
"""
import o... | [
"1154479896@qq.com"
] | 1154479896@qq.com |
4135bcf778ec0432ade7263d9e8d322bbbc7a395 | f4df91e2fb285f9582af7f969243cbbd5397adf4 | /dict_flattener.py | db4cb35f9c45eb1022f2c71f78830259c309c9d0 | [] | no_license | Pinozerg/lama_scripts | cedd5523cef5cd172d9f18b47d3697f6d85b26a8 | 1fec86869d540bbc3cbb3885d81f7fe1fa5c173f | refs/heads/master | 2021-02-27T19:09:05.508133 | 2020-03-23T10:02:09 | 2020-03-23T10:02:09 | 245,628,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | #! python3
# dict, nested dict tranformed into text lines
def dict_flattener_v3(nested_dictionary, line_prefix='', key_separator='__', value_prefix='='):
if isinstance(nested_dictionary, dict):
for k, v in nested_dictionary.items():
yield from dict_flattener_v3(v, line_prefix=line_prefix ... | [
"noreply@github.com"
] | Pinozerg.noreply@github.com |
71619690ce1315a1467d2da14697223edb31bfb4 | 195915dab8406c2e934d0ffa8c500b1317c5e6f1 | /bestrestra/settings.py | 220f1de76ec4f3342e69561c80dc947ed02197e7 | [] | no_license | theparadoxer02/bestrestra | 28c2e46ae124a7496d889933daefe3c36dbbe9a2 | 13dccc988ee78eebc685111cb486a8c1342deb3c | refs/heads/master | 2020-12-24T19:51:07.521744 | 2017-03-26T08:09:18 | 2017-03-26T08:09:18 | 86,217,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,586 | py | """
Django settings for bestrestra project.
Generated by 'django-admin startproject' using Django 1.10.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import... | [
"abhimanyu98986@gmail.com"
] | abhimanyu98986@gmail.com |
d78b8ac24c093f12b1ac5b5411620c0f589fe4cc | 89a90707983bdd1ae253f7c59cd4b7543c9eda7e | /fluent_python/attic/strings-bytes/plane_count.py | dac414b93c5d84ddd35ad15b932051af53a9aa7a | [] | no_license | timothyshull/python_reference_code | 692a7c29608cadfd46a6cc409a000023e95b9458 | f3e2205dd070fd3210316f5f470d371950945028 | refs/heads/master | 2021-01-22T20:44:07.018811 | 2017-03-17T19:17:22 | 2017-03-17T19:17:22 | 85,346,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | import sys
from unicodedata import name
total_count = 0
bmp_count = 0
for i in range(sys.maxunicode):
char = chr(i)
char_name = name(char, None)
if char_name is None:
continue
total_count += 1
if i <= 0xffff:
bmp_count += 1
print(total_count, bmp_count, bmp_count / total_count, bm... | [
"timothyshull@gmail.com"
] | timothyshull@gmail.com |
7220d8b3f098d3920a210f0c1d7ea9868a3937a3 | 68ae37ca44da5bcd9e31655ad87bf5aff1385dce | /l_5/learning_user/learning_user/settings.py | 116a17c73ca70ade268ba660f317837e72b94855 | [] | no_license | Ashishprashar/django-example | b5d49902799dc1949719c9e33d15473db66c8b07 | 47970373167f4d0572961ba48af67d9fe4543e60 | refs/heads/main | 2023-04-11T04:54:03.499983 | 2021-04-11T09:45:36 | 2021-04-11T09:45:36 | 356,811,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,704 | py | """
Django settings for learning_user project.
Generated by 'django-admin startproject' using Django 3.1.7.
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 p... | [
"ak2917065@gmail.com"
] | ak2917065@gmail.com |
0e7f752c591d0d5b8b50eace5d57f26fe33d84f2 | c0aa93101a21877f79cdd90c28321f50a80ae6f3 | /core/models/st_gcn/ops/graph.py | 7bf7486ee9f8ac5c6340866e60b58de950e8b46a | [] | no_license | chuangg/Foley-Music | a9c4bc1721db42fbdd5d86d531175a7e4cc31093 | dcc2638fddad0c268a70510f698ec8d86e6a4cae | refs/heads/main | 2023-01-31T01:42:01.787289 | 2020-12-15T05:21:11 | 2020-12-15T05:21:11 | 321,561,725 | 39 | 8 | null | null | null | null | UTF-8 | Python | false | false | 9,325 | py | import numpy as np
class Graph():
""" The Graph to model the skeletons extracted by the openpose
Args:
strategy (string): must be one of the follow candidates
- uniform: Uniform Labeling
- distance: Distance Partitioning
- spatial: Spatial Configuration
For more inform... | [
"ganchuang1990@gmail.com"
] | ganchuang1990@gmail.com |
625503a03627d64011aea425012ca81ad2393fa7 | ddc3d2502a4a579324f289f36076b1c8148ac49b | /ngram_viewer_app/urls.py | ce2c07d8afd7bc031e7ae15afe7318875f3924a5 | [] | no_license | Chitz/Ngram-Viewer | fdab6956dcb6d3eb77510e467607c10fff628de7 | f071eff0b1af45cd47440e7cb17987652591d0e6 | refs/heads/master | 2020-12-31T00:29:57.090042 | 2017-03-20T07:30:41 | 2017-03-20T07:30:41 | 85,506,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from django.conf.urls import url
from ngram_viewer_app import views
urlpatterns = [
url(r'^$', views.get, name = "get"),
] | [
"chiteshtewani@gmail.com"
] | chiteshtewani@gmail.com |
53e45f6370195df23f3ec7adf095359fb79e466e | 478c4a01990f514813d4dd05faac39d18f0cdc9f | /clang/utils/creduce_crash_testcase.py | 7affc59f42ac64f487de68eb42f717b932ee9a5c | [
"Apache-2.0",
"LLVM-exception",
"NCSA"
] | permissive | capt-hb/llvm-project | 6632477ecc28c07244dfe961dd7b25143f84b51f | 3214ab1279d10920828877865b3286266600666d | refs/heads/master | 2022-10-09T04:24:03.973787 | 2020-06-08T14:12:29 | 2020-06-08T14:12:29 | 212,033,396 | 0 | 2 | null | 2019-10-01T07:08:10 | 2019-10-01T07:08:09 | null | UTF-8 | Python | false | false | 68,098 | py | #!/usr/bin/env python3
# PYTHON_ARGCOMPLETE_OK
import argparse
import re
import os
import tempfile
import shutil
import shlex
import subprocess
import sys
import resource
import typing
from abc import ABCMeta, abstractmethod
from enum import Enum
from pathlib import Path
lit_path = Path(__file__).parent.parent.parent ... | [
"Alexander.Richardson@cl.cam.ac.uk"
] | Alexander.Richardson@cl.cam.ac.uk |
b589561a43da25d1488e6df1ed498a404fc4c4c2 | 696b8436e158b5cafb9f7b284fd4be19839daba1 | /venv/Scripts/pip3-script.py | 631385b277812037ef2417c8f97e0983e3e59909 | [] | no_license | alexzhukovwork/GraphicEditor | bc6742d870fda1138eb7d27c76a0262355f2ac9a | b43bfb7c86ebc7ae8baefcf95aa3334dbb7c8dd0 | refs/heads/master | 2020-04-07T14:45:21.150110 | 2020-04-06T11:31:08 | 2020-04-06T11:31:08 | 158,459,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | #!D:\GraphicEditor\QTGraphicEditor\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.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])
... | [
"alexzhukovwork@yandex.ru"
] | alexzhukovwork@yandex.ru |
065653bd83e3294aa3c38f6cf48f8ece93f51edd | 854da1bbabc83d4506febe01932177f54f163399 | /extapps/xadmin/plugins/ueditor.py | 745f7814a207baf3ee53f697922cb502bb541560 | [] | no_license | RainysLiu/XinJuKe | abdefbf67513f5192e5716ebf547e0797a86af6f | 9decde1fe5e6020d31e18264795d640c9ff77383 | refs/heads/master | 2021-07-18T13:59:05.414626 | 2020-07-01T12:36:22 | 2020-07-01T12:36:22 | 188,654,087 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | import xadmin
from xadmin.views import (
BaseAdminPlugin,
CreateAdminView,
ModelFormAdminView,
UpdateAdminView,
)
from DjangoUeditor.models import UEditorField
from DjangoUeditor.widgets import UEditorWidget
from django.conf import settings
class XadminUEditorWidget(UEditorWidget):
def __init__(se... | [
"1072799939@qq.com"
] | 1072799939@qq.com |
692a05ab93258f57e88c08a76b28e892501d2e9f | 9083176d4e7f27cdf579fe20f0e473a2b1a19f81 | /fcw.py | 3c0e39d72ed4a7532ef26e5d6a07450b78d204d2 | [
"MIT"
] | permissive | lxxxxl/FeedlyClient | e4b164b37dadaac4cdf0eacea0a0eab222186655 | 5b23cf78085290fe06b7bd962056e080c45e8142 | refs/heads/master | 2020-12-28T09:38:02.526991 | 2020-02-06T18:08:38 | 2020-02-06T18:08:38 | 238,271,610 | 0 | 0 | MIT | 2020-02-04T18:05:07 | 2020-02-04T18:05:07 | null | UTF-8 | Python | false | false | 4,453 | py | from client import FeedlyClient
import webbrowser
from bottle import template
import json
import datetime
import re
import pdfkit
import signal
class FeedlyClientWrapper(object):
config_filename = 'config.json'
config = None
feedly_client = None
sandbox = False
sigint_received = False
... | [
"lxxxxl"
] | lxxxxl |
dc51cca1327c27bef64e3434b98898b1bda20d4d | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D03B/CUSEXPD03BUN.py | 15e7b3ed5e7dda7f9d69367842f3c0e6d1a041dc | [] | 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 | 2,519 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD03BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 0, MAX: 5},
{ID: 'LOC', MIN: 0, MAX: 5},
{ID: 'CNT'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
3891f5f8d8f95e10516ee69ee0954f024ea8f52c | e30c8ac00382257e261ba99127923c6e20667d15 | /LearnPythonTheHardWay/projects/ex47/setup.py | 383d9151961ff18b39962b344912c477f014bc8b | [] | no_license | binglei5367/LearningPython | ed00efbdd3a898425508806277266509c875f14b | b7392999ca053d6af7afc03ace37fac32b1cd403 | refs/heads/master | 2020-06-28T19:36:36.849971 | 2016-11-28T16:08:15 | 2016-11-28T16:08:15 | 74,479,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'ex47',
'author': 'S e e k',
'url': 'URL to get it at.',
'download_url': 'Where to download it.',
'author_email': '15327700930m0@sina.cn',
'version': '0.1',
'install_requires': ['nose'],
'packages... | [
"15327700930m0@sina.cn"
] | 15327700930m0@sina.cn |
e0354a074c35bf415297f6963026d64d5812ad18 | c28e98131b006f7664b9788f19734aa8eb7d1ece | /Calvin/deepmnist.py | 8e7b685084a79fb877876c126dbea1729efc587f | [] | no_license | puskasmate/Prog2_forrasok | f589b9454e26cc3baf74e071419c6fa771846d7d | 853131e56ea77b899bc2de9054b0cca3fef5a7bf | refs/heads/master | 2020-09-19T18:37:24.970748 | 2019-11-26T19:08:28 | 2019-11-26T19:08:28 | 224,265,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,110 | py | """A deep MNIST classifier using convolutional layers.
See extensive documentation at
https://www.tensorflow.org/get_started/mnist/pros
"""
# Disable linter warnings to maintain consistency with tutorial.
# pylint: disable=invalid-name
# pylint: disable=g-bad-import-order
from __future__ import absolute_import
from __... | [
"puskasmate2000@gmail.com"
] | puskasmate2000@gmail.com |
4b7e502e87dd289be7683e1984debce1217b294d | ed6625148299e759f39359db9f932dd391b8e86f | /personal_env/lib/python3.8/site-packages/pylint/checkers/logging.py | b8661fdfccc31adbf385fa3341e90f8938745c63 | [
"MIT"
] | permissive | jestinmwilson/personal-website | 128c4717b21fa6fff9df8295b1137f32bbe44b55 | 6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74 | refs/heads/main | 2023-08-28T11:31:07.916714 | 2021-10-14T09:41:13 | 2021-10-14T09:41:13 | 414,847,553 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,334 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2009-2011, 2013-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
# Copyright (c) 2009, 2012, 2014 Google, Inc.
# Copyright (c) 2012 Mike Bryant <leachim@leachim.info>
# Copyright (c) 2014 Brett Cannon <brett@python.org>
# Copyright (c) 2014 Arun Persaud <arun@nubati.ne... | [
"noreply@github.com"
] | jestinmwilson.noreply@github.com |
ddd01a61030f24111e49e364619d2ef2c2d0cc22 | 0b417582d01ab93549fd8c344665ac26dc80120a | /core/Saver.py | 856c5f6fd38b5f8f5f66636d2a87339e429d797f | [] | no_license | mt-cly/itis | 1b8b081f1e4cd32b5cd9904c250d1fe3574dbfea | 39cfbf18579c99d50433f5414a2098f74e0bbc34 | refs/heads/master | 2022-02-17T23:27:47.209334 | 2019-08-29T07:43:46 | 2019-08-29T07:43:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,005 | py | import glob
import numpy as np
import tensorflow as tf
import pickle
from tensorflow.contrib.framework import list_variables, load_variable
from core.Log import log
class Saver:
def __init__(self, config, session):
self.session = session
max_saves_to_keep = config.int("max_saves_to_keep", 0)
self.tf_sa... | [
"¨sabarinath.mahadevan@rwth-aachen.de¨"
] | ¨sabarinath.mahadevan@rwth-aachen.de¨ |
edfd6ac4b0788da0fffdf589b84ea891b80d16d4 | 0e37ae346ccf5704493e72ed075a2ba3a8d3650d | /finals/csit2/xpl.py | 3c5bb6315edbc3f3b77442c2abe9c615d91f6455 | [] | no_license | rootkie/xctf2017-writeups | 8afb1ed18a1a1b8f3c1061da3873ec425277f0ac | 49f56e12778d0d8377bd208a3d10b6daf1ed7e54 | refs/heads/master | 2021-03-27T13:44:05.132570 | 2017-08-01T14:17:40 | 2017-08-01T14:17:40 | 91,338,964 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,179 | py | from pwn import *
import sys
LOCAL = True
HOST = '128.199.72.218'
PORT = 12345
def add(s):
r.sendline('add '+ s)
def show(idx):
r.sendline('show ' + str(idx))
#data = r.recvuntil('>')
#return data
def copy(fr,to):
r.sendline('copy '+str(fr)+' '+str(to))
#r.recvuntil('>')
def exploi... | [
"rkxuanfeng@gmail.com"
] | rkxuanfeng@gmail.com |
f0ac7f36ebe9a2ecc3df8f36c5b37c55347462fa | cec10c52b4f879161928da88ed9294007874f50f | /libs/configs/cfgs_fcos_coco_res50_1x_v3.py | a950340aa0304fd7c7051b6c4b5437e073af1639 | [
"MIT"
] | permissive | g-thebest/FCOS_Tensorflow | 676ea7ec358de248860238c0c00817dd6176bfb7 | b39b621c9a84dcb4baad25637e7758dcd31707f5 | refs/heads/master | 2021-11-04T21:39:47.093239 | 2019-04-28T09:25:26 | 2019-04-28T09:25:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import os
import math
import tensorflow as tf
import numpy as np
# ------------------------------------------------
VERSION = 'FCOS_Res50_20190427'
NET_NAME = 'resnet50_v1d' # 'resnet_v1_50'
ADD_BOX_IN_TENSORBOARD = True
# ----... | [
"yangxue@megvii.com"
] | yangxue@megvii.com |
90ebd3affb72458dc57353b0c7de189c1bd3b8ad | c0ef6f25dc158e69e3d5cf056cd864eb2a8d2f7f | /src/needs refactoring/flyingcarpet.install_gh_releases.py | 7e4da93ef2afb166b0eb86fb85311fb6c9ad5c4c | [] | no_license | Starz0r/ChocolateyPackagingScripts | 6db8bdbd9cb5c6bdf663b82251e430e3d015b7c2 | 29cd7b4a1e8369c265f85915d9351cf6c89e1975 | refs/heads/master | 2023-05-28T07:01:35.233880 | 2023-05-15T22:03:10 | 2023-05-15T22:03:10 | 244,997,143 | 4 | 2 | null | 2022-12-08T07:44:39 | 2020-03-04T20:27:53 | Python | UTF-8 | Python | false | false | 2,918 | py | import os
import io
import tempfile
import subprocess
import checksum
from pathlib import Path
from string import Template
from common.common import find_and_replace_templates
from common.common import abort_on_nonzero
from common.common import get_correct_release_asset
from github import Github
def main():
# i... | [
"starz0r@starz0r.com"
] | starz0r@starz0r.com |
3024ec90b32cad54c5e971139ce41b32e6777f5b | 5c53ab863965041a45e91b64aedf0dd52118496f | /ocrtoc_motion_planning/scripts/one_shot_grasp_with_object_pose_server.py | 4e506662cc6c46eabbb4f6ac9cd096ef73f9423f | [] | no_license | MiaoDragon/ocrtoc_motion_planning | 70fe04538600a39b5d321afa1fa9902800721627 | c32542c5f37b84c8555b475c0cf07f2fc453ab5e | refs/heads/master | 2023-02-27T02:04:39.688302 | 2021-02-03T22:23:18 | 2021-02-03T22:23:18 | 291,616,166 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,966 | py | #!/usr/bin/env python
from __future__ import print_function
from motion_planning.srv import OneShotGraspPlanWithObjectPose, OneShotGraspPlanWithObjectPoseResponse
from motion_planning_functions import one_shot_grasp_with_object_pose
from trajectory_msgs.msg import JointTrajectory, JointTrajectoryPoint
from control_m... | [
"innocentmyl@gmail.com"
] | innocentmyl@gmail.com |
2eceb12bbf0a752e6c08467492c21b7d4620cbc5 | d91f23534d9af0128011d38132dbefd8b508f1c1 | /trade_algorithm/multi_algo_simple_20180709.py | 4528cab760c004a0c372c59d2c89bfbdd34ccea4 | [] | no_license | tomoyanp/oanda_dev | 06bd904cd0d60e072a0627a81b1db384e1e292a5 | c35da11f30e6b4160d16f768ce5d8d0714c2b55d | refs/heads/master | 2021-01-10T22:55:51.639812 | 2018-08-21T01:03:27 | 2018-08-21T01:03:27 | 70,463,447 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,729 | py | # coding: utf-8
####################################################
# Trade Decision
# trade timing: at 13, 14, 15, 20, 21 o'clock
# if endprice over bollinger band 2sigma 2 times
# stoploss rate: 20pips
# takeprofit rate: 50pips
####################################################
from super_algo import SuperAlgo
f... | [
"tomoyanpy@gmail.com"
] | tomoyanpy@gmail.com |
a039c87a5a88189abe2b4e273680d7baae5b9f8b | 17268419060d62dabb6e9b9ca70742f0a5ba1494 | /pp/samples/21_add_fiber_array.py | 36357d855e4a117e710cb118a97380217da53c98 | [
"MIT"
] | permissive | TrendingTechnology/gdsfactory | a19124423b12cbbb4f35b61f33303e9a012f82e5 | c968558dba1bae7a0421bdf49dc192068147b776 | refs/heads/master | 2023-02-22T03:05:16.412440 | 2021-01-24T03:38:00 | 2021-01-24T03:38:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | """Connecting a component with I/O.
"""
import pp
from pp.samples.big_device import big_device
def test_big_device():
component = big_device(N=10)
bend_radius = 5.0
c = pp.routing.add_fiber_array(
component, bend_radius=bend_radius, fanout_length=50.0
)
return c
if __name__ == "__main__... | [
"noreply@github.com"
] | TrendingTechnology.noreply@github.com |
74e261b28d77cb52dec221a193a9542e8d5192a4 | 1aeaeaac5c8a66ad4cb940d0d6061e961609265e | /test_train.py | 97cd3eca250cf73c9f9fe0b88ac698d2c0a16a8c | [] | no_license | zxc916443179/STAE-abnormal-detection | c6fa378f0e83a423ebe9d681378c972a8a11a12f | edfc367123dce6568e5321611cbe066198e0ad90 | refs/heads/master | 2020-04-17T21:30:08.689440 | 2019-01-22T11:58:05 | 2019-01-22T11:58:05 | 166,952,712 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,540 | py | import tensorflow as tf
import os
import sys
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
LOG_DIR = os.path.join(ROOT_DIR, 'log')
if not os.path.isdir(LOG_DIR):
os.makedirs(LOG_DIR, exist_ok=True)
sys.path.append(ROOT_DIR)
import model, processing
LOG_FOUT = open(os.path.join(LOG_DIR, 'train_log.txt'), 'w... | [
"zxc916443179@163.com"
] | zxc916443179@163.com |
e47c7fcfa88f67e8520c7b7102a906e6aebfbad0 | e085fc94f5295c08e02cbd883b7b360ddd691306 | /ch04/simpleNet.py | b2cdabf6a93131feb53c2a21584144012b8fb9ae | [] | no_license | HarvestGuo/DeepLearn | 40b46445f31ac5b7698ee79f1f3aa18aa44add4f | 7b2e03561409fb1dd15998eba4a96422bb3e85d3 | refs/heads/master | 2022-10-22T23:50:21.973073 | 2020-05-28T10:01:48 | 2020-05-28T10:01:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | import sys,os
sys.path.append(os.getcwd()) #父目录
import numpy as np
from common.functions import softmax,cross_entropy_error
from common.gradient import numerical_gradient
class simpleNet:
def __init__(self):
self.W=np.random.rand(2,3) #用高斯分布进行初始化
def predict(self,x):
return np.dot(x,se... | [
"yufeiran1999@gmail.com"
] | yufeiran1999@gmail.com |
35f29c45b197e4548a136c41d7327713ec3fd161 | 8ca3384f8f46d66686ad9e81718b1fcdf69d087b | /Lab4/4.2.py | b91bcaacae7875da8839f0fd1a84edb529054bc7 | [] | no_license | DudekKonrad/Python2020 | e133f417781ad2eaae5f9a8648144059375900ed | 9eea613bda6b1682dc47f086806e77ce11a41b7f | refs/heads/main | 2023-03-05T05:54:13.907396 | 2021-02-09T20:01:18 | 2021-02-09T20:01:18 | 307,467,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | def draw_table():
x = input("Enter x value: ")
y = input("Enter y value: ")
top = ""
mid = ""
result = ""
for i in range(int(y)):
top += "+---"
mid += "| "
result += top + "+\n"
for i in range(int(x)):
result += mid + "|\n"
result += top + "+\n"
return result
def draw_ruler():
x = input("Enter leng... | [
"noreply@github.com"
] | DudekKonrad.noreply@github.com |
bbdca6c4a8306d84b8821edbff3a1ccaaf6b8713 | 1edbae33d73cd2bd189530ce116d733cb1add3c8 | /EChat/wsgi.py | e19f0c995375cd3a00f093117b89e04c25a0940a | [] | no_license | Nereus-Minos/EChatNow | 8f922e01fd71758a84e7e0ce519449bdab682836 | 1a4161b3e2a80ef71d911eb47060e7203a59813d | refs/heads/master | 2020-06-10T14:11:10.333210 | 2019-06-29T00:55:57 | 2019-06-29T00:55:57 | 193,655,033 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for EChat 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"1328856085@qq.com"
] | 1328856085@qq.com |
8706f15c31d0c88f51da90fa5368df63aa62b52c | 8ae9849c50e9a552de5342e023ad80bb5f45bbc7 | /gigasecond/gigasecond_test.py | 99f0d3f8ead9428df05f882f8715bc0c9e2e8f0f | [] | no_license | smbsimon/python-practice | bf2c287371167568ae32ecf5b5f7b006c7b71a62 | 62e694d7fd497bd2d09e7deffd705937c0fbad22 | refs/heads/master | 2016-09-11T02:59:40.377743 | 2015-05-29T03:25:44 | 2015-05-29T03:25:44 | 35,074,413 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | from datetime import datetime
import unittest
from gigasecond import add_gigasecond
class GigasecondTest(unittest.TestCase):
def test_1(self):
self.assertEqual(
datetime(2043, 1, 1, 1, 46, 40),
add_gigasecond(datetime(2011, 4, 25))
)
def test_2(self):
self.ass... | [
"smbsimon@gmail.com"
] | smbsimon@gmail.com |
8be1160af684daaf374ea320ee7eae6bce15e6f0 | f44084804739a9b1c2952624d9dfe3c248bb7700 | /Facial/convert_csv2gray.py | 89281a289c07a74f18c806c51d1ac34a0b49ca4b | [] | no_license | jmnie/DeepGlint-Work | b83c4e5dbe9718254be24e89ca34f2f367124e0d | 7a7739f8f2ab21d180ad00b9c4a2fc0a79dc1e40 | refs/heads/master | 2020-03-17T12:34:23.649144 | 2018-07-25T09:56:44 | 2018-07-25T09:56:44 | 133,594,372 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | # -*- coding: utf-8 -*-
import csv
import os
from PIL import Image
import numpy as np
datasets_path = r'.\datasets'
train_csv = os.path.join(datasets_path, 'train.csv')
val_csv = os.path.join(datasets_path, 'val.csv')
test_csv = os.path.join(datasets_path, 'test.csv')
train_set = os.path.join(datasets_path, 'train')... | [
"jiaming.nie13@gmail.com"
] | jiaming.nie13@gmail.com |
a90fc3355d83895807935a549c13a581710de1b4 | f76efdb77f816b6536bdb0d218d307523f5e5d5d | /NNModel.py | bf4dc64b24d851d2c408cc31a82e26b1236856d3 | [] | no_license | maigovannon/DeepLearning | 5cf9a453f772e7b0fc88c3caac1c8c0c5ebc6636 | 6547980d53e290a3f34093010110e5721aff524a | refs/heads/master | 2021-05-12T15:25:33.653139 | 2018-01-18T17:48:31 | 2018-01-18T17:48:31 | 116,983,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,213 | py | from Interface import *
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from pandas import DataFrame as df
from sklearn import preprocessing
from sklearn.model_selection import train_test_split
def L_layer_model(X, Y, layer_dims, learning_rate=0.0075, num_iterations=3000, print_cost=False):
... | [
"abhinandsundar@gmail.com"
] | abhinandsundar@gmail.com |
af154728bd515ec99a95eaccb6c8f24f5d068a0c | e4b2ffb898f199765aa5d565767b865cd67b9be8 | /d006.py | 80f3fe437b9ad3fe23b5f8c31bab2827832ffbbd | [] | no_license | sh9in4/paiza_D-rank | d9735da6f3beece2eb39188cbc1f54629c854ca0 | cde1a976b44e6e7816b770a8237b7e8bee75225a | refs/heads/master | 2022-07-26T17:09:13.258464 | 2020-05-24T16:40:42 | 2020-05-24T16:40:42 | 265,299,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | n,s = map(str,input().split(" "))
if s=="km":
print(int(n)*1000000)
elif s=="m":
print(int(n)*1000)
else:
print(int(n)*10)
| [
"65352081+sh9in4@users.noreply.github.com"
] | 65352081+sh9in4@users.noreply.github.com |
6edf173e645aa482d70942d9c14aeff463c3997c | 6a5ce7d885db1baa5a9d43b26f0ae623a5ef0f01 | /azure-mgmt-network/azure/mgmt/network/operations/virtual_networks_operations.py | 1456322d7c77268112526c588cb0e745cae281e7 | [
"Apache-2.0"
] | permissive | JammyBrand82/azure-sdk-for-python | 333af194ff9143ec77f49203a5a71f15c399f278 | c65e189cd41bd3464556b17bfcdee1303867996c | refs/heads/master | 2021-01-17T18:31:10.661151 | 2016-03-17T21:03:08 | 2016-03-17T21:03:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,268 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
2b7b0c03769197c728e027963b851c9584041103 | 3d5c6d8e24dd8905e70d8a9d76d5019912123627 | /Python/02_DataEngineering/Pandas/04_read_clipboard.py | 361cf33eea2299ab955a00cc48f40392d4e6fe1f | [] | no_license | xiaolongjia/techTrees | 5c684bbf77b0800a4dd946b3739114d7d15fb9e3 | 86bc4d3466d648caa93f8591619b5ca3b06a6470 | refs/heads/master | 2023-03-16T11:29:46.866850 | 2022-02-19T16:26:45 | 2022-02-19T16:26:45 | 235,251,689 | 0 | 0 | null | 2023-03-07T10:04:50 | 2020-01-21T03:55:13 | HTML | UTF-8 | Python | false | false | 442 | py | #!C:\Anaconda3\python.exe
import numpy as np
import pandas as pd
import os
cp = pd.read_clipboard(sep='\t')
print(cp)
cp.to_json('df.json', orient='records', lines=True)
os.remove("./df.json")
# Data
textMatrix = [("Earth", "Sphere", "Geoid"), ("Matter", "Particle", "Wave"), ("Magnet", "Flex", "Electricity")];
# ... | [
"jiaxiaolong@gmail.com"
] | jiaxiaolong@gmail.com |
6070e4e48e65eb12c684f7bfe90cb20eb613fe22 | 8999b1ef8c7a115e2f4de24b7271ce055d89acc4 | /usma_files/serverSide/WrathServerModel/wrath_to_kml.py | 80a04069047745cc5f7d48897e2ca7bfba9d34c1 | [
"Apache-2.0"
] | permissive | ebnerl1/usma_swarm | e76e79ea8d452045799f85d3fddb5b7c1955e316 | cb3bc7e5cb554f79c5c952f450013321d15fcca1 | refs/heads/master | 2022-11-24T22:42:06.042683 | 2020-07-29T13:46:39 | 2020-07-29T13:46:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,384 | py | #!/usr/bin/pyhton
#Malik "Herbie" Hancock 4February2020
import simplekml
import math
import time
#import gmaps
#import gmplot
#create kml
# add point, line segment
# save
from Collections import Graph
kml = None
#fig = None #gmaps.figure() #gmap is the work around for blending the heatmap
# fig is a different file ... | [
"andrew.kopeikin@usma.edu"
] | andrew.kopeikin@usma.edu |
d62a68b191ae65ecc775ca8247553999fe66a077 | 4d207973b555327563291377bcae629d13b82999 | /Official/main.py | 210985db369327062fe28a0be26a0f7e36ce5d8f | [] | no_license | yijaein/cnn_classification | f482366b680c645313634183be0b7b26f7e1d49e | 98bd10c7029539a9e09325c20d0b828fffdd0861 | refs/heads/master | 2020-04-25T03:08:26.222400 | 2019-06-18T00:21:31 | 2019-06-18T00:21:31 | 172,465,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,014 | py | import argparse
import random
import time
import warnings
import torch.backends.cudnn as cudnn
import torch.nn as nn
import torchvision.datasets as datasets
import torchvision.transforms as transforms
from PIL import Image
from Official.densenet import DenseNet
from Official.utils import *
parser = argparse.Argument... | [
"jiyi.nexys@gmail.com"
] | jiyi.nexys@gmail.com |
593284d3bb1f3982f388cb411d8df955f615f388 | 442487f384070c6e23b0b30d40113e111a8cfa01 | /ChessMain.py | 6984bb7ab6aefb2c5c12deb091b70d275fbb51cc | [] | no_license | xelathan/ChessPython | df800e88a070fca8e57925d347ae5da0616b0901 | f4ec33784d58a9e0190d65071ffeeedc2cb30623 | refs/heads/master | 2023-07-27T06:32:58.026874 | 2021-09-08T20:31:07 | 2021-09-08T20:31:07 | 402,913,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,809 | py | """
driver file - handles user input and displays current GameState object
"""
import sys
import pygame as p
import pygame.image
import ChessEngine
WIDTH = HEIGHT = 512
DIMENSION = 8 #Chessboard 8x8
SQ_SIZE = HEIGHT // DIMENSION #Size of squares
MAX_FPS = 15 #For animations
IMAGES = {}
"""
Load Images - init... | [
"alex.t.tran@gmail.com"
] | alex.t.tran@gmail.com |
addc002a7f3d8d394abb90d6c6298ef91d7d0c55 | a075b20c2c7bee1655c30bd5d2c1c3634755bd48 | /utils.py | 8bb0b9c56833eab7a2fa5d85081e2c4f9b7a83fd | [] | no_license | gitter-badger/style-transfer | 96d4b337c662055cb275dadf3846c58ab5227252 | e7518d6a718d06c5f537602307ffa37abaa58a15 | refs/heads/master | 2021-01-20T10:18:32.335649 | 2017-08-28T06:45:13 | 2017-08-28T06:45:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,890 | py | import scipy.misc, numpy as np, os, sys
from shutil import rmtree, move
import tensorflow as tf
from PIL import Image
import glob, random, bcolz
from six.moves import urllib as six_urllib
try:
import urllib2 as urllib
except ImportError:
import urllib.request as urllib
from collections import OrderedDict
import... | [
"noreply@github.com"
] | gitter-badger.noreply@github.com |
28cdf23ba6932205fb87d039285223d685aa7c3b | edd367661e286d2a9eaea28cb181ac8b8f8d79f6 | /listas2.py | 3dac1268735b141d96ec201be3633be28e696bf9 | [] | no_license | Angelooger/Tarea-07-2 | 8bf4213e7db8da9a2a41c82a727b82d2262f9348 | 384d86a17a2860d8c162b96d5a773622328ea21f | refs/heads/master | 2021-08-14T20:14:04.007019 | 2017-11-16T17:42:51 | 2017-11-16T17:42:51 | 109,539,312 | 0 | 0 | null | 2017-11-05T00:05:54 | 2017-11-05T00:05:53 | null | UTF-8 | Python | false | false | 7,733 | py | # encondig:UTF-8
#Autor Angel Ramírez Martínez A01273759
#Descripción: Programa que realiza diferentes operaciones con listas
#Determinación de variables globales con listas.
lista1 = [1,2,3,4,5]
lista2 = []
lista3 = [5]
lista4=[1,0,3,2,8,5]
lista5=[1,1,1,2,3,4,5,6,6,6,7]
lista6=[1,2,3]
lista7=[1,3,2,4,8,6,9,7,8]
lis... | [
"angelooger@gmail.com"
] | angelooger@gmail.com |
007b4b4741e2d36de78e21ce4688e4a3f887380b | bf1b86892834cc85607ff9cc5fd878e9c8daade6 | /nested_inlines/admin.py | d1afb89e38c3b5406e9695a5ebbd3ab620539115 | [] | no_license | nino-c/nino.cc | b45c18fad9b1bed4a5f37495c9ba28ae17cfe09c | f8cc0a1c247271c1de35fbf926a96f4a98e9d511 | refs/heads/master | 2022-12-07T10:14:56.274113 | 2014-07-01T23:50:05 | 2014-07-01T23:50:05 | 21,405,517 | 2 | 0 | null | 2022-11-22T00:26:03 | 2014-07-01T23:41:00 | JavaScript | UTF-8 | Python | false | false | 16,409 | py | from django.contrib.admin.options import (ModelAdmin, InlineModelAdmin,
csrf_protect_m, models, transaction, all_valid,
PermissionDenied, unquote, escape, Http404, reverse)
# Fix to make Django 1.5 compatible, maintain backwards compatibility
try:
from django.contrib.admin.options import force_unicode
excep... | [
"root@vps-1157506-21335.manage.myhosting.com"
] | root@vps-1157506-21335.manage.myhosting.com |
ebdfc114bd2251bf6944a6c88ca73df90c5fd21c | 494f8c775c0ed911ae9841215d9890129a0cf4fb | /OMP/app/__init__.py | e48239f981108e2f11e040dfb1ec37a3a7ffc5ba | [] | no_license | cmdev90/RCMS | 72e5f25ef702af601b39ae2db4a71a049a3f7cd3 | 8b75c6776e486ccecaf6bf2e6ea8e07ffd412f9a | refs/heads/master | 2021-05-28T20:10:31.542102 | 2014-12-09T03:24:10 | 2014-12-09T03:24:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from flask import Flask
# app = Flask(__name__)
app = Flask(__name__, static_url_path = "")
from app import views
| [
"nicholas.chamansingh@gmail.com"
] | nicholas.chamansingh@gmail.com |
ccd137343ed60e23598ec8c8ad814ccd1564fa22 | 15d5c79bc5094ab25a9d3f286bb99d30b2598cfa | /network/smurfcoin.py | 65c6b19e7bba2ca327a36fa4bfa8bfa33e4274ad | [] | no_license | jabef/clove_bounty | 1d4f660969e905fc5fc50e10273d2f2d55df0723 | b58bc10b46ba983b890d8e599fb548c7aea2695b | refs/heads/master | 2021-04-27T21:41:29.952341 | 2018-02-19T17:14:15 | 2018-02-19T17:14:15 | 122,404,779 | 0 | 0 | null | 2018-02-21T23:01:22 | 2018-02-21T23:01:21 | null | UTF-8 | Python | false | false | 373 | py | from clove.network.bitcoin import Bitcoin
class SmurfCoin(Bitcoin):
"""
Class with all the necessary SmurfCoin network information based on
https://github.com/smurfscoin/smf/blob/master/src/net.cpp
(date of access: 02/18/2018)
"""
name = 'smurfcoin'
symbols = ('SMF', )
seeds... | [
"noreply@github.com"
] | jabef.noreply@github.com |
c600a8797ffb79802db532d90eb401002c2cdff3 | d3b0ca56c6aa8c9976918a87597fa6e8848a8801 | /clases/MiembroCp.py | 0cac2f97963c05ad9d44e12ce06b596107a2e8b3 | [] | no_license | MichelleFernandez/Software | 9bba5de319f80f84ed0d30f4fc8b20f5fa9a93b9 | 7b9649b6ef1a826d85e7ac12e48efc8d385eab83 | refs/heads/master | 2016-09-15T23:20:48.710293 | 2013-12-21T05:13:41 | 2013-12-21T05:13:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | #! /usr/bin/python
# ------------------------------------------------------------
# Ingenieria de Software
# Tarea 3
# Miembro_CP.py
# Clase que representa un Miembro CP.
# Autores: Michelle Fernandez, 09-10279.
# Donato Rolo, 10-10640.
# Carla Barazarte, 08-10096
# Alejandro Garbi, 08-10398
# Jose Figuere... | [
"micafe.go@gmail.com"
] | micafe.go@gmail.com |
d35dd36cfbef2715687c172d9521c17c1d3c0907 | c16d929c49092955af2841d55aa93d57989fb7d1 | /sesion_04/users/urls.py | 3ee31354b87bbf6e9894f8810682f547d69051da | [] | no_license | PilarMont/modulo-django-dw-pt-21-01 | ae4a3b97dc0cd3ec0fd6745b413e03310ea29fe4 | f606885e53ab65475ad372a512598365a54d50f9 | refs/heads/main | 2023-07-16T22:04:28.271396 | 2021-08-18T03:50:03 | 2021-08-18T03:50:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | """Users app URLS"""
from django.urls import path
from . import views
app_name = "users"
urlpatterns = [
# Function Based Views
# path("login", views.users_login, name="login"),
# path("logout", views.users_logout, name="logout"),
# path("signup", views.sign_up, name="signup"),
# path("me", view... | [
"30444800+ultr4nerd@users.noreply.github.com"
] | 30444800+ultr4nerd@users.noreply.github.com |
167ad65029dceab8baa37d92c7b02fbc7f7bdf9c | 25d898bc3a75572054e0290d4baa31d27d867b3d | /invoice/migrations/0006_invoice_is_cancelled.py | d3417675ce75feb377e5e6840e1eeda70e3ed5d8 | [] | no_license | kyomoeliezer/mtelemko | cb989502f385b9c5744f75076d50945930ed78fa | 7b299df79a4f495afbe011b6571dae83b4f8f845 | refs/heads/master | 2023-06-12T11:21:43.594176 | 2023-05-25T22:03:12 | 2023-05-25T22:03:12 | 142,018,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # Generated by Django 2.2 on 2020-11-20 09:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('invoice', '0005_invoice_invoice_start_date'),
]
operations = [
migrations.AddField(
model_name='invoice',
name='is_can... | [
"kyomoeliezer"
] | kyomoeliezer |
d4760ff4c833f78ede6feab4c7e69ea26fb96a7c | 586a67650102938663f79290f02467ad8a683b43 | /invoice/views/invoices.py | 5042e0fa85e79d4a9192a039b308238a037e447c | [] | no_license | Shokr/yalla_invoice | 64956d886a5056455e519f7c1cfaf364138609d3 | 5a668963f4cb2a42e4111d855543a680ceec90c4 | refs/heads/master | 2022-10-04T09:50:32.517524 | 2021-05-03T20:06:42 | 2021-05-03T20:06:42 | 241,491,107 | 1 | 0 | null | 2022-09-23T22:36:00 | 2020-02-18T23:38:39 | Python | UTF-8 | Python | false | false | 4,101 | py | from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.contrib.auth.decorators import login_required
from django.contrib.auth.decorators import login_required, user_passes_test
import datetime
# Local Applications imports
from ..... | [
"mohammedshokr2014@gmail.com"
] | mohammedshokr2014@gmail.com |
8dca9087e171fa1b749b0a1f3bf37d20d7458830 | f201aa7b963cd6c22fabdc9c301cbf75942f5b91 | /Algorithms/Initial/snowtide_initial.py | 64e3a311dde8612554bb63d36e2a6d143d6bb7ed | [
"MIT"
] | permissive | Kanavoy/UODS | 5a4e0d5ec52e8be7467702222f3fa13767eaaf91 | 2da38b749e721b051aeaa6a7bcb3a921aeb5a09c | refs/heads/master | 2022-12-09T18:49:24.534122 | 2020-09-08T18:04:26 | 2020-09-08T18:04:26 | 286,434,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | from random import uniform, randint
def set_initial(graph, opts):
mi = opts.initial.min
ma = opts.initial.max
n = range(0,opts.graph.n)
opinion = [uniform(mi, ma) for node in n]
uncertainty = [opts.initial.uncertainty for node in n]
extremists = int((len(n)*opts.initial.extreme)//1)
tolerance = [opts.initial.un... | [
"adammatthewcoates@gmail.com"
] | adammatthewcoates@gmail.com |
f4d39011134f503659ec40b2af2034a888a04fd1 | 413d0b90efcc875ebac3875e1b4749b3c6018329 | /accounts/views.py | eb6dcc2c75bf2b8cb13ceac5a0508a57afd0a8ee | [] | no_license | Hythlodaeus/WeAreSocialNoMore | 231498aeb56a6bb9688626b5d4ac919ab56552a8 | 265a86ccd395a7d4cb799364938e5f6705d4d0fc | refs/heads/master | 2021-01-21T09:46:59.195722 | 2015-12-15T12:32:25 | 2015-12-15T12:32:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,325 | py | from django.contrib import messages, auth
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.shortcuts import render, redirect
from django.template.context_processors import csrf
from django.views.decorators.csrf import csrf_exempt
from accounts.forms impo... | [
"tangneyjohn@gmail.com"
] | tangneyjohn@gmail.com |
75a6d5e4fa9d09bca96df632809baf921651227a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_arousing.py | 40991d3cd0e5d6d4556cec52531935097102e368 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
from xai.brain.wordbase.verbs._arouse import _AROUSE
#calss header
class _AROUSING(_AROUSE, ):
def __init__(self,):
_AROUSE.__init__(self)
self.name = "AROUSING"
self.specie = 'verbs'
self.basic = "arouse"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
41c70e9309c3776bec2dea935e8102a58ae2d215 | cfb4e8721137a096a23d151f2ff27240b218c34c | /mypower/matpower_ported/lib/mpoption_info_fmincon.py | 072799309556c4b95076795f10756ceb343dc4ee | [
"Apache-2.0"
] | permissive | suryo12/mypower | eaebe1d13f94c0b947a3c022a98bab936a23f5d3 | ee79dfffc057118d25f30ef85a45370dfdbab7d5 | refs/heads/master | 2022-11-25T16:30:02.643830 | 2020-08-02T13:16:20 | 2020-08-02T13:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | def mpoption_info_fmincon(*args,nout=1,oc=None):
if oc == None:
from ...oc_matpower import oc_matpower
oc = oc_matpower()
return oc.mpoption_info_fmincon(*args,nout=nout)
| [
"muhammadyasirroni@gmail.com"
] | muhammadyasirroni@gmail.com |
8f6eb903f27861c546fd13331fa65729abc6dc37 | 1c5fdabf183c5eb3a9d6577049e674c3757c00db | /Блэк_Джек_4/Lucky_Jack_4_3.py | 88c2918e249e7140b7b03160d396b46a1c59a2c4 | [] | no_license | Bhaney44/Blackjack | b997b46bb92fc71f1471cf6d82048df72a32d342 | ca64e41af0669f2e364d80a206682481c2951771 | refs/heads/master | 2022-12-11T06:58:16.716447 | 2020-09-15T01:03:47 | 2020-09-15T01:03:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,628 | py | #LuckyJack
#Copyright Brian S. Haney 2020
#Import Random
#Import Prototype GUI and Data Storage Library
from tkinter import *
from tkinter.messagebox import *
import csv
#Factor Labels
master = Tk()
#Dealer
#Labels
label0 = Label(master, text = 'Dealer', relief = 'groove', width = 20)
label1 = Label(master, text = '... | [
"noreply@github.com"
] | Bhaney44.noreply@github.com |
76e82c15daa30b0a37073c20c9abe4c4c7c2b4dd | 9023909d2776e708755f98d5485c4cffb3a56000 | /oneflow/compatible_single_client_python/eager/interpreter_callback.py | 4295829ee25c69fc8856e2d0462ad1e2a31c31cd | [
"Apache-2.0"
] | permissive | sailfish009/oneflow | f6cf95afe67e284d9f79f1a941e7251dfc58b0f7 | 4780aae50ab389472bd0b76c4333e7e0a1a56ef7 | refs/heads/master | 2023-06-24T02:06:40.957297 | 2021-07-26T09:35:29 | 2021-07-26T09:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,285 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | sailfish009.noreply@github.com |
730831214770a763d3554ee1ee2122f2b13c9e96 | b69d2ad1466704b2a49ded131b5ff64a449aa514 | /COMBINE/combine_buy_sell_book_finder.py | 2e526d411359cc70bdb0c138c81d178d97f1008f | [] | no_license | SMcDick/Buy-Sell-Books | 1cc803bbc9ed3556a0d76ce2da4f9557433ed688 | cae7dcb43bce6372cfae58336e7f84bd0f0155f5 | refs/heads/master | 2020-06-28T05:57:45.145518 | 2018-08-25T04:43:15 | 2018-08-25T04:43:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,671 | py | # -*- coding: utf-8 -*-
import glob
import os
import json
import datetime
import pytz
import re
import csv
BUY_PATH = "/home/FM/results/Trade_In/Amazon_Buy/*"
SELL_PATH = "/home/FM/results/Trade_In/Bookfinder_Sell/*"
COMBINE_PATH = "/home/FM/results/Trade_In/Combine_Amazon Buy_Bookfinder Sell"
# BUY_PATH = '/Users/Pa... | [
"umesh.pathak@logpoint.com"
] | umesh.pathak@logpoint.com |
0a7c0c0a959a4008c1d319a8ee7af16ae421bbe7 | 2e93c1cfdc30d77aeeb289a6d063503a96b0227e | /blog/migrations/0003_auto_20161030_1304.py | 547d57358d37b81b00cf5dd605a1717b853c5935 | [] | no_license | shubhpy/DjProject | f2862de04c832bf248b5cdcb6fd5ff4b00666323 | da9510227fe9c13c5186cc6ac0e40a602a53561e | refs/heads/master | 2021-01-12T16:07:33.858392 | 2016-10-31T17:09:14 | 2016-10-31T17:09:14 | 71,944,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-30 13:04
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_employee'),
]
operations = [
... | [
"shubhpycode@gmail.com"
] | shubhpycode@gmail.com |
b425e1bec71d4f7296ca73e7de4ff0aff113ea1b | c8d0adb0e306ff1b858d7ba70a5e1f9bc530058b | /backend/Wekker_API/settings/production.py | acae613e06bf8101cc3db9fb3c04636027788a3f | [] | no_license | CirXe0N/Wekker | 205ff14702988eaa6646fcb3e532065cb469c34b | 328ef409911b2a80ce3de926386c93511c6d1793 | refs/heads/master | 2021-03-27T08:49:51.140003 | 2017-03-02T11:39:37 | 2017-03-02T11:39:37 | 77,297,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | from .base import *
DEBUG = False
ADMIN_ENABLED = False
ALLOWED_HOSTS = ['*']
INSTALLED_APPS += [
'storages',
]
# AWS S3 Bucket settings
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
AWS_ACCESS_KEY_ID = get_env('AWS_ACCESS_KE... | [
"dw1ls@outlook.com"
] | dw1ls@outlook.com |
2f71d7a5fe7eae2229bf5f1af66d76a5f5e0f205 | 1a091b6222012fd0a1cfcb3ae68334e2c17b1d79 | /last_try/visualizer.py | f3f25d49a7deb8b5218e6f02c2bf70c507eb876e | [] | no_license | shubhMaheshwari/Image_Tampering | a9ff0ccda686ffda720fbbddd95b496d141aede0 | 4fccc8ce900c58092f6bd464dfe18286b0153e4d | refs/heads/master | 2021-08-07T09:52:30.763632 | 2020-04-14T12:31:24 | 2020-04-14T12:31:24 | 151,753,142 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,270 | py | import numpy as np
import os
import time
import visdom
import cv2
class Visualizer():
def __init__(self, opt):
self.opt = opt
self.vis = visdom.Visdom()
self.vis = visdom.Visdom(server=opt.display_server, port=opt.display_port)
# Loss
self.loss_list = []
self.loss_s... | [
"maheshwarishubh98@gmail.com"
] | maheshwarishubh98@gmail.com |
aff4479d37dc208ca6b04405e12454ff3bc5832c | 52467ce7f31661965a6d4267b0a8183bc3245752 | /Rectangle.py | efd7b487d14bf969a36cf736672cc1c30930ae2d | [] | no_license | samuelmckean/GeoObject-Inheritance | b1f4546d5ab8cbe7c7e01dd54e715c3c5061285d | 1591182a2f69b504fd68725d4d8625a227ee2d67 | refs/heads/master | 2020-04-07T06:30:39.968347 | 2018-03-07T06:33:52 | 2018-03-07T06:33:52 | 124,189,213 | 0 | 0 | null | 2018-03-07T06:33:53 | 2018-03-07T06:21:17 | Python | UTF-8 | Python | false | false | 815 | py | # import all data fields and methods from superclass
from GeometricObject import GeometricObject
class Rectangle(GeometricObject):
def __init__(self, width=1, height=1):
super().__init__()
self.__width = width
self.__height = height
def __str__(self):
return super()._... | [
"noreply@github.com"
] | samuelmckean.noreply@github.com |
57bfcec31889ced05861f4bd4a159df7e448a82b | 2fe37b71c486d4e2de6fb263d89993c9b99f0d37 | /02Backstage/Python/00Test/Basic/ObjectMore.py | 809bf5681426a69d65a912b13c9f37d2167f1f09 | [] | no_license | smart-town/MyNotes | 87cb058753163ab7df41f73389af4e31f8288a52 | 87a0e689c1dcf9a79ef1059e6332c1a89a309ecc | refs/heads/master | 2022-07-19T19:48:15.055165 | 2022-07-17T00:15:09 | 2022-07-17T00:15:09 | 160,528,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | class Person(object):
def __init__(self,name,age):
self._name = name
self._age = age
@property
def name(self):
return self._name
@property
def age(self):
print("You will get age ")
return self._age
@age.setter
def age(self,age):
print... | [
"1213408659@qq.com"
] | 1213408659@qq.com |
005244a5c5d12b02f581e3def7e0800a49c4992d | 85b1d0553f9a914f7bfe9777cb4f35d7ae4244e1 | /flask_restful_demo_cookbook.py | 3beb22d6224dffc46056c6bbc0f0d0ff425cb0f2 | [] | no_license | gboleslavsky/POC_RESTful_Flask_API | 8b1769dfed410647eada00e6fa5844b39be192b8 | 7fc92558048393f496a8aaab1cd636224c076fa5 | refs/heads/master | 2021-01-10T11:21:11.015540 | 2016-02-01T14:48:09 | 2016-02-01T14:48:09 | 50,839,308 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,586 | py | #!flask/bin/python
from flask import Flask, jsonify, abort, make_response
from flask.ext.restful import Api, Resource, reqparse, fields, marshal
from flask.ext.httpauth import HTTPBasicAuth
####################################### global reusable functions, static data and constants
flask_demo = Flask(__name__)
api = A... | [
"gregboleslavsky@gmail.com"
] | gregboleslavsky@gmail.com |
7769f940c0f1da313194a71f11023fba6e738523 | 6338c2a2158a3140382169b436d7b575bc29ab17 | /Pygame/InvaSion_codigo_fuente.py | 94b9f7e91cf8a62fd755b3fe5dc24897b9a9385a | [] | no_license | epichardoq/DS-Course | 22990ddc24225f2989f52607536f0cbca50205d3 | 64302246b8466a02ab603edcccb00fff6a677a42 | refs/heads/master | 2022-04-07T22:02:45.252730 | 2020-03-20T03:12:34 | 2020-03-20T03:12:34 | 220,868,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,051 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 2 20:16:34 2020
@author: emmanuel
"""
import pygame, random, sys
from pygame.locals import *
ANCHOVENTANA = 900
ALTOVENTANA = 900
COLORVENTANA = (255, 255, 255)
COLORTEXTO = (130, 130,130)
COLORFONDO = (0, 255, 255)
FPS = 40
TAMAÑOMINMISIL = 10
T... | [
"noreply@github.com"
] | epichardoq.noreply@github.com |
63a598ddc892cd5cbe109366464ae65200f8b6b3 | 64d411d5859feb0c94ff5b262c015156e544f200 | /MigatteNoGokui/UltraInstinct/UltraInstinct/asgi.py | f8f7e3422c08a9e68053bfe088dc14ce8229953d | [] | no_license | migattenogokui/git-tut | d9b6a9e410d3b1b43bd4e490ba68c60e761eabf4 | a991dce6ca3f02afd8bf67823421c6241d9680d5 | refs/heads/master | 2023-03-20T06:30:13.598661 | 2021-03-13T14:20:28 | 2021-03-13T14:20:28 | 347,340,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for UltraInstinct project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"joratdhavtoski@protonmail.com"
] | joratdhavtoski@protonmail.com |
59a3ac71665f4cd796c5dfc0dae8754f0a8297b0 | 14ea14f84079c7c7f306a0c68c9b59df1d266437 | /website/models.py | 75fcf6a7b758023ed2c8e836d60eb700136b0fe7 | [] | no_license | KeerMom/COSC6353-Project | 38a42d21607f34ba8db7e4aedc7ba2a609ccd641 | 37e2456e2df6cb301a17afb374d04f858cade9ee | refs/heads/main | 2023-07-02T23:50:50.833117 | 2021-08-06T21:44:39 | 2021-08-06T21:44:39 | 382,210,595 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | from . import db
from flask_login import UserMixin
# from sqlalchemy.sql import func
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(150), unique=True)
password = db.Column(db.String(150))
first_name = db.Column(db.String(50))
user_profile ... | [
"xqliu.g@gmail.com"
] | xqliu.g@gmail.com |
1b72274245ff18b5551db7c3c249ebc482c5838a | 1bdbcc3954ed75574eea1af5bf49f03cce4af198 | /class_work_problems/num_to_letter.py | 815b33cda3e3d34cf20083c0ba916bd11eead0bc | [] | no_license | skreynolds/uta_cse_1309x | d73bbadb012147e6196e2320d4d635bee81d28f4 | 40c1221fdcc192fe66c7e60c636b08a8cfbebb2d | refs/heads/master | 2020-12-22T20:19:31.977554 | 2020-01-29T06:50:24 | 2020-01-29T06:50:24 | 236,921,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | # Type your code here
n=int(input('please enter an integer between 1 and 9999: '))
units = ['','one','two','three','four','five','six','seven','eight','nine']
teens = ['','eleven','twelve','thirteen','fourteen','fifteen','sixteen', 'seventeen','eighteen','nineteen']
tens = ['','ten','twenty','thirty','forty','fifty','... | [
"shane.k.reynolds@gmail.com"
] | shane.k.reynolds@gmail.com |
83d63cde77ee5b9077e9c4b18c19102b489b45b1 | 404dafce5a75559cbc13f914fd90ec496ada7ae6 | /setup.py | 4feeaf55b950ffb64f4a41e184d4a9d6cc5235d8 | [
"MIT"
] | permissive | ppinard/django-login-otp | e81e25b77f9bdd2fced90d92a18b65d2d51091c9 | ccc40bff874eb752f2ba88b0abd6b68a13c3096f | refs/heads/master | 2023-07-10T11:19:14.741196 | 2021-08-21T10:19:56 | 2021-08-21T10:19:56 | 302,738,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | #!/usr/bin/env python
# Standard library modules.
from pathlib import Path
# Third party modules.
from setuptools import setup
# Local modules.
import versioneer
# Globals and constants variables.
BASEDIR = Path(__file__).parent.resolve()
with open(BASEDIR.joinpath("README.md"), "r") as fp:
LONG_DESCRIPTION = ... | [
"Philippe.PINARD@oxinst.com"
] | Philippe.PINARD@oxinst.com |
2d169025b193e12aed0d659dc60d693d4ff91353 | b156c2f5ee7417dfa1f6cdcf14e9773a25397544 | /GeneVisualization/venv2/Lib/site-packages/itk/itkInPlaceImageFilterAPython.py | 4faf0e090f3bfd257e6c260302d98225443a6739 | [] | no_license | PinarTurkyilmaz/Vis | 1115d9426e9c8eeb5d07949241713d6f58a7721b | 4dd4426a70c0bd0a6e405ffe923afee29630aa67 | refs/heads/master | 2022-11-18T13:16:18.668065 | 2020-07-06T21:04:10 | 2020-07-06T21:04:10 | 226,217,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377,610 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _itkI... | [
"pinar.turkyilmaz@estudiant.upc.edu"
] | pinar.turkyilmaz@estudiant.upc.edu |
af04626fbf64b19bf1abe99c30b6144727cd2489 | 51ce07a419abe50f49e7bb6a6c036af291ea2ef5 | /3.Algorithm/08. 비트&진수/이진수.py | 672c8c01e566a544904cc9057c3b3d923e469569 | [] | no_license | salee1023/TIL | c902869e1359246b6dd926166f5ac9209af7b1aa | 2905bd331e451673cbbe87a19e658510b4fd47da | refs/heads/master | 2023-03-10T09:48:41.377704 | 2021-02-24T10:47:27 | 2021-02-24T10:47:27 | 341,129,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | T = int(input())
for tc in range(1, 1+T):
N, numbers = input().split()
N = int(N)
print(f'#{tc} ', end='')
for n in range(N):
t = format(int(numbers[n], 16), '03b')
# if len(t) < 4:
# print('0'*(4-len(t)), end='')
print(t, end='')
print()
'''
3
4 47FE
5 79E12
8 ... | [
"dltmddk1023@gmail.com"
] | dltmddk1023@gmail.com |
13b774da8dcc15f01c6f64b8aa5c47de5f569201 | 0d1770ccdf66058360a06905c4f5713f93a70dd4 | /Gl_api_project/testcase/test_03order_pay_jicaihuodong.py | 8c775979d6227c921b94937deb66f9d5bfb10f0e | [] | no_license | balckwoo/pythoncode | cce08ec03af8835deed99df1307720e91823fbff | 31520f3cba14faeb583636cd26c28ef6cefcb555 | refs/heads/master | 2023-03-23T11:16:38.270347 | 2021-03-23T04:16:06 | 2021-03-23T04:16:06 | 328,590,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,335 | py | """
========================================
# Author: Alem
# Date:2021/3/11 0011
# Time:下午 12:01
# Email: chengrichong@foxmail.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Two roads diverged in a wood,and I
# I took the one less traveled by,
# And that has made all the difference.
============================... | [
"18797763626@163.com"
] | 18797763626@163.com |
e00f1ced658aee28cc3ec94cf7fab51e0163e962 | f552e437c63d14dda5c707a34856481a7b9acb99 | /alg_CEJal.py | 2d673d8151f793ff310cbecd935199259497da69 | [] | no_license | jasonTu/dexas_ai_sc | 344847fd71f541d414cb2fe5f83be3fe29c14176 | 8ae1aaa0ff019ad596217ad87e0381fc7807f257 | refs/heads/master | 2021-07-13T01:05:16.483657 | 2020-05-29T03:33:10 | 2020-05-29T03:33:10 | 140,309,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,377 | py | #! /usr/bin/env python
# -*- coding:utf-8 -*-
import time
import json
import sys
import traceback
import random
from termcolor import colored
#from websocket import create_connection
from importlib import import_module
from evaluepoker import EvaluePoker
from deuces import Card
import datetime
class ... | [
"jason_tu@puyacn.com"
] | jason_tu@puyacn.com |
15fb6788ed674d7fe2dfd6fcf2b8be443d9b1ea1 | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4458310.3.spec | 00ad46b77e340a73163f728374ab21471d1a13f0 | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,691 | spec | {
"id": "mgm4458310.3",
"metadata": {
"mgm4458310.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
4223f5fc882d4296ccb2e417549c8e1239b28d2d | 429dbe6fdbabe69951f00475a790ab33bafa5dfb | /Myokit/MyokitHearSimulation/env/lib/python3.7/site-packages/myokit/_progress.py | ab159d0e6608ad6703c37c8be7fe43b32a86f163 | [] | no_license | bopopescu/Project-Design-and-Implementation | f476b3a34a40563613181eba4e62cec52c3a9ab5 | cea0c19d5dfa238b1725957cbb2922f1377a9b5a | refs/heads/master | 2022-11-17T18:52:30.521294 | 2019-07-30T20:38:56 | 2019-07-30T20:38:56 | 281,189,781 | 0 | 0 | null | 2020-07-20T17:59:59 | 2020-07-20T17:59:58 | null | UTF-8 | Python | false | false | 5,106 | py | #
# Contains classes for progress reporting during long operations.
#
# This file is part of Myokit
# Copyright 2011-2018 Maastricht University, University of Oxford
# Licensed under the GNU General Public License v3.0
# See: http://myokit.org
#
from __future__ import absolute_import, division
from __future__ import... | [
"yid164@mail.usask.ca"
] | yid164@mail.usask.ca |
e2f2f54ee6bccba72c0171950d6e10e9c19c5da0 | b70f1eee3cbf42f7342d3ad3be58e20aa9082b65 | /problem2_18_1.py | 7f65ab589d266d42cee248a008a9f75f19ba27e0 | [] | no_license | suryansh2020/drakepy | a9ae8dc27806835c338d13b38bae8026d849b2f4 | 0e2a7409f80162524b4496b896673cbb0c6e0183 | refs/heads/master | 2021-01-20T02:42:47.484685 | 2010-06-10T13:37:58 | 2010-06-10T13:37:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py |
def problem2_18():
from math import *
## Input
print "A baseball hit from a bat in air with varying air pressure and a crosswind"
print "The crosswind is a 10mph crosswind"
print "10 mph is 4.4704m/s"
print "The depenent variables are the initial velocity vector, decomposed into a speed scalar and a direction,... | [
"krum.spencer@gmail.com"
] | krum.spencer@gmail.com |
7a0a3b166c74d76a97a3cf2dd59fa5948907f805 | ecda8b2158fae86c7d5f74c4b2d138fb44db7e1c | /test.py | f5251f7c1adc1e2adc854244d6effe2d6b30d85d | [] | no_license | hyeineee/COVID__ | 732b69f98951ee895ddd46d620c8f693c028130a | da3ad627f9c166d699f880de33bf6715723b737d | refs/heads/master | 2022-11-26T19:24:20.162902 | 2020-08-11T02:56:11 | 2020-08-11T02:56:11 | 286,629,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | def main():
print("1")
#test
if __name__ == "__main__":
main() | [
"qorgpdls97@naver.com"
] | qorgpdls97@naver.com |
f95b1db477221b266acb3b6625b8e046e4a0551d | 2c21780619518259596aa240232ce51f2588f53e | /sample.py | 61afab7d2dbb44bbea5b798964c82931472f37d6 | [] | no_license | miahuangyanyan/weibo_flask | e49a1eb2d773df2e827cfffafd8162280f6b7501 | 6d7574a05b48abe66b45c80b4262929a1f3296ee | refs/heads/master | 2021-09-02T23:24:23.150992 | 2018-01-04T03:17:32 | 2018-01-04T03:17:32 | 109,588,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
version: python2.7 software: PyCharm
file: monitor.py time: 2017/3/5 19:56
"""
import psutil
import sqlite3
import time
db_name = 'mydb.db'
def create_db():
# 连接
conn = sqlite3.connect(db_name)
c = conn.cursor()
# 创建表
c.execute('''... | [
"245053992@qq.com"
] | 245053992@qq.com |
62e40235228c53143cd46bc282718e6f767e019d | c3dc08fe8319c9d71f10473d80b055ac8132530e | /challenge-107/roger-bell-west/python/ch-1.py | e638dd33c91314e47cd0245efcf95f3d3d7ef792 | [] | no_license | southpawgeek/perlweeklychallenge-club | d4b70d9d8e4314c4dfc4cf7a60ddf457bcaa7a1e | 63fb76188e132564e50feefd2d9d5b8491568948 | refs/heads/master | 2023-01-08T19:43:56.982828 | 2022-12-26T07:13:05 | 2022-12-26T07:13:05 | 241,471,631 | 1 | 0 | null | 2020-02-18T21:30:34 | 2020-02-18T21:30:33 | null | UTF-8 | Python | false | false | 703 | py | #! /usr/bin/python3
def sdn(count):
r=list()
n=10
while len(r) < count:
ns=[int(i) for i in "{:d}".format(n)]
d=[0]*10
for i in ns:
d[i]+=1
sd=True
for i in range(len(ns)):
if d[i] != ns[i]:
sd=False
break
... | [
"roger@firedrake.org"
] | roger@firedrake.org |
0b53a2dd76f8d99d925bb162548bc01e3f6553b1 | 91483aeea3761368b852bc544fb558db84fbbca1 | /mysite/settings.py | 6bcf17a6dd43653bff1ec8b8b240f53d7bc14a3e | [] | no_license | nra-16/myfirstblog | 7a68efcae540055da7337c1c4de44f8e0511a146 | a3f358bca37253b5c4b99911847061239d3d32ee | refs/heads/master | 2021-01-10T05:45:09.381908 | 2016-03-05T14:59:22 | 2016-03-05T14:59:22 | 53,207,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,236 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# Bu... | [
"punitharamani@hotmail.co.uk"
] | punitharamani@hotmail.co.uk |
377b54e77c82a1e6af952880cf1817eb944f7fe3 | ea7f0b643d6e43f432eb49ef7f0c62899ebdd026 | /conans/test/util/output_test.py | 65a29d32d1f4ccfd5bd5c286a3c2e77fba71b7c3 | [
"MIT"
] | permissive | jbaruch/conan | 0b43a4dd789547bd51e2387beed9095f4df195e4 | 263722b5284828c49774ffe18d314b24ee11e178 | refs/heads/develop | 2021-01-19T21:15:37.429340 | 2017-04-18T14:27:33 | 2017-04-18T14:27:33 | 88,635,196 | 0 | 1 | null | 2017-04-18T14:34:03 | 2017-04-18T14:34:02 | null | UTF-8 | Python | false | false | 2,625 | py | # -*- coding: utf-8 -*-
import unittest
from conans.client.output import ConanOutput
from six import StringIO
from conans.client.rest.uploader_downloader import print_progress
from conans.test.utils.test_files import temp_folder
from conans import tools
import zipfile
import os
from conans.util.files import save, load
... | [
"lasote@gmail.com"
] | lasote@gmail.com |
a473b352d7a7297d8448f74401a9c4d56ac3d8d6 | 631704126a545331b7d1fb59a7c89ec3919361a4 | /PythonAPI/test/Lane_detection/detect_lines2.py | ef45f18dfd8585594f9dbcd45c5471eb0108fe0b | [
"MIT"
] | permissive | Maveric4/Carla | 6548e7acfee86c8b54643964be4d16468d79fb09 | c7eb9df5fb5a784bfbadb2f0544c1cf062ca6bb5 | refs/heads/master | 2020-11-27T12:35:40.618088 | 2019-12-23T16:47:45 | 2019-12-23T16:47:45 | 229,442,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,283 | py | #importing some useful packages
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np
import cv2
import glob
import math
def grayscale(img):
"""Applies the Grayscale transform
This will return an image with only one color channel
but NOTE: to see the returned image as graysca... | [
"maveriok@student.agh.edu.pl"
] | maveriok@student.agh.edu.pl |
7d201b6089d5c2d7d4f81efd39e2d8b13d4eb4b8 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/circularflyer.py | 9a0d228924714e4ed8bf49c022803e589020bcde | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 4,298 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/CircularFlyer.py
import math
import BigWorld
import AnimationSequence
from Math import Matrix, Vector3
from debug_utils import LOG_CURRENT_EXCEPTION
from vehicle_systems.stricted_loading import makeCallbackWeak
import SoundGroups
c... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
5fa8083c771b118d03d567b6878554f82c71120c | bd187ecc8a94460cd17d3c13aa469c25a3f3be3a | /mainsite/migrations/0006_auto_20191127_0915.py | 75e8efb19fdb91c2f6c2a2354e86433dc4c9a946 | [] | no_license | ozkilim/DinosaurDating | 3226acb3f4987534ce5ceed7649d76d47b51065e | 44bb4583f50e7a5c903040ab80a63ba390330d35 | refs/heads/master | 2021-11-06T16:18:25.192520 | 2019-12-10T14:47:22 | 2019-12-10T14:47:22 | 224,671,044 | 0 | 0 | null | 2021-09-08T01:28:17 | 2019-11-28T14:30:07 | Python | UTF-8 | Python | false | false | 389 | py | # Generated by Django 2.2.7 on 2019-11-27 09:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainsite', '0005_atendee_event'),
]
operations = [
migrations.AlterField(
model_name='atendee',
name='looking_for',
... | [
"ozkilim@hotmail.co.uk"
] | ozkilim@hotmail.co.uk |
cd317c87a7351bef4e25f07e011eef84eac127a7 | 84b902dd4eb690f525911a903377573b007a0bdb | /ch04/mymodules/setup.py | 53892179aabea1cf67defbc32b92e89fb4b882c7 | [] | no_license | lorajoler/HeadFirstPython | e33e83693bb428a46c8dc75dd65bd87d5b3c82a1 | f9d0719a7ec5ace63f488e533e0dc0d91a1f7962 | refs/heads/master | 2020-04-06T15:49:54.334177 | 2019-04-04T11:39:50 | 2019-04-04T11:39:50 | 129,223,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from setuptools import setup
setup (
name = 'vsearch',
version = '1.0',
description = 'The Head First Python Search Tools',
author = 'HF Python 2e',
author_email = 'hfpy2e@gmail.com',
url = 'headfirstpython.com',
py_modules = ['vsearch'],
)
| [
"lorajoler@paranoici.org"
] | lorajoler@paranoici.org |
afbca3f98f29ecf57fea0bb57ac052a0d95cad69 | ff2d86d51c0e69a1d53e658fb3d2fbe2b0b585dd | /api/test/test_put_api.py | 5becc1aa0d995575107b7cd679072af30c286936 | [
"MIT"
] | permissive | wujood/AquaPi | 988b512b07095702c4a2867fd825ac7673dcd52e | 6b81291eed2341f9757cbb75f5f9ad48c4c4e83a | refs/heads/master | 2020-03-11T14:08:22.445770 | 2018-07-03T21:51:57 | 2018-07-03T21:51:57 | 130,045,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | # coding: utf-8
"""
AquaPi Swagger API
REST API for the AquaPi
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import swagger_client
from swagger_client.rest import Ap... | [
"sw714201@fh-muenster.de"
] | sw714201@fh-muenster.de |
c56c704d3722285022a8133baa4cc84a6102a7ec | 05f7f004ccd926c1611dc03473e0778d8c332e14 | /asset_allocation_chengtong/shell/criteria_ct.py | c71a9e78d84aa9d38b0ed9058c79d9b90086c435 | [] | no_license | tongch8819/lcmf_projects | 06cd875e5b001a871cc11cdc8cf45a32f7faa105 | a7243aee94da9bbf9651e1365351c5b4ef364b80 | refs/heads/master | 2022-04-04T22:15:26.726761 | 2020-02-24T03:51:23 | 2020-02-24T03:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,594 | py | #encoding=utf8
import numpy as np
import pandas as pd
from ipdb import set_trace
from sqlalchemy.orm import sessionmaker
from db import database
from db import asset_allocate
import trade_date
engine_asset = database.connection('asset')
engine_mofang = database.connection('base')
engine_readonly = database.connect... | [
"tong.cheng.8819@outlook.com"
] | tong.cheng.8819@outlook.com |
48a73da0886034bf90716950527d561d32bbab82 | dce8531d0e9665a09205f70a909ac1424f7e09eb | /preprocess.py | d6a53884fddf97d075c2264cc801f41dff0d4b95 | [
"MIT"
] | permissive | keonlee9420/Comprehensive-Tacotron2 | 40a6e5fcecf55ee02a8523a7e2701b6124748bee | 1eff7f08c41a2127bbe300b6d66ce5c966422b25 | refs/heads/main | 2023-08-07T16:10:15.133301 | 2022-02-20T14:30:07 | 2022-02-20T14:44:36 | 388,990,172 | 39 | 17 | MIT | 2023-07-31T13:08:05 | 2021-07-24T03:36:08 | Python | UTF-8 | Python | false | false | 640 | py | import argparse
from utils.tools import get_configs_of
from preprocessor import ljspeech, vctk
def main(config):
if "LJSpeech" in config["dataset"]:
preprocessor = ljspeech.Preprocessor(config)
if "VCTK" in config["dataset"]:
preprocessor = vctk.Preprocessor(config)
preprocessor.build_fr... | [
"keonlee9420@gmail.com"
] | keonlee9420@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.