blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
919b34168c6995dd3e33d56cea20abf55d47fcd9
318b737f3fe69171f706d2d990c818090ee6afce
/demo/jd-recommendation/serving/predict.py
2b17f9268e1eec771811ed0f8b9293813a3e79da
[ "Apache-2.0" ]
permissive
4paradigm/OpenMLDB
e884c33f62177a70749749bd3b67e401c135f645
a013ba33e4ce131353edc71e27053b1801ffb8f7
refs/heads/main
2023-09-01T02:15:28.821235
2023-08-31T11:42:02
2023-08-31T11:42:02
346,976,717
3,323
699
Apache-2.0
2023-09-14T09:55:44
2021-03-12T07:18:31
C++
UTF-8
Python
false
false
1,059
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2021 4Paradigm # # 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 ...
[ "noreply@github.com" ]
noreply@github.com
ab39a91bd73b9190c2b2fb44a1f6afacac8a6ec1
f5734b34df71d8610e8b17cd5eab9b401fe0a634
/evaluate.py
0ab8b5c2b884dbdef178065d80a6d46e6acc6bb8
[]
no_license
toytag/LanguageModeling
86902b4d18b7d155c828dfa2bddb8b64936bcf60
f56abc5332757bf06626fcc9beac421da77cc6e8
refs/heads/master
2022-11-10T21:22:01.474550
2020-07-01T18:37:13
2020-07-01T18:37:13
273,858,178
1
0
null
null
null
null
UTF-8
Python
false
false
805
py
import torch import torch.nn.functional as F from tokenizer import WordTokenizer from model import LanguageModel if __name__ == '__main__': tokenizer = WordTokenizer('models/tokenizer/tokenizer.json') checkpoint = torch.load('models/lm/latest.pth') model = LanguageModel(n_vocab=10000) ...
[ "tangzhzh@shanghaitech.edu.cn" ]
tangzhzh@shanghaitech.edu.cn
84a35b2fba4d1eebc2c4306bd0a7b28a108ea36d
aa14ff35ba9f7e94276599f1d80244911d5944f5
/catkin_ws/src/turtlesim_expl/src/pipes/pose_pipe.py
d8c53a18fdd834bbcacfcac48f9776d29840966f
[]
no_license
tum-i4/rritbed
7d542b190796c14139dc34d571259cf61e2ba72b
f268988b607118c8aa7e94eff6165e44c9a40dff
refs/heads/master
2022-04-26T03:47:46.474795
2022-03-16T14:36:49
2022-03-17T17:50:49
131,807,366
1
2
null
null
null
null
UTF-8
Python
false
false
2,255
py
#!/usr/bin/env python """ Module for the PosePipe class """ import random from pose_processor import PoseProcessor, CC_STR, POI_STR, TSP_STR class PosePipe(object): """ Subscribe to a pose topic and process it with the specified PoseProcessor. """ _POSSIBLE_PROCESSORS = { CC_STR : PoseProcessor(CC_STR), POI_...
[ "vauhochzett@users.noreply.github.com" ]
vauhochzett@users.noreply.github.com
d5655e2f75b95748ef37bafad03e58914c293918
86904ef9990ba9381ac12ced3ff166a881994fcf
/Attackers/PGD_ad.py
dd998bf394f3ab39a780d7262c80b3532df286e2
[]
no_license
Ailon-Island/MNIST-attacker
2e2c21095b73669981febf7aaf32f7165c9faea4
7dc49ec5e41ad188a433b4513a592421b1336363
refs/heads/main
2023-06-24T00:21:54.952085
2021-07-28T03:50:58
2021-07-28T03:50:58
389,301,940
0
0
null
null
null
null
UTF-8
Python
false
false
2,418
py
# 我试着在 PGD 的基础上,改成直接利用归一化的梯度进行 perturbation 的方式,使得对原图像作等量改变的时候,对模型的计算产生更大的影响 import torch import torch.nn.functional as F from random_chooser import random_chooser from projector import project from attacker import attacker class PGD_ad_attacker(attacker): def __init__(self, k, epsilon, alpha, model, training = T...
[ "74121851+Ailon-Island@users.noreply.github.com" ]
74121851+Ailon-Island@users.noreply.github.com
cf4ca5b50b35fc04d8bf757191e45210c72776af
79b254dc2b2df1ff3cb2cf1ed3d6e446797a2a76
/mysite/admin.py
6e7224c4f33e18eb86d4f7f1d325c8f745127edf
[]
no_license
SamVonderahe/TechPointSOS
8c23869e84e6c00525a4e1c81ac1f2e33195399f
517d4a2dbe0be2db4cf5e690b9fd6fff06a7610c
refs/heads/master
2022-11-18T11:24:40.015999
2020-07-24T03:44:24
2020-07-24T03:44:24
276,447,638
2
2
null
2020-07-10T06:58:05
2020-07-01T17:57:22
Python
UTF-8
Python
false
false
363
py
from django.contrib import admin from mysite.models import Food from mysite.models import Pantry from mysite.models import Need from mysite.models import Donor from mysite.models import Hours @admin.register(Food) @admin.register(Pantry) @admin.register(Need) @admin.register(Hours) @admin.register(Donor) c...
[ "noreply@github.com" ]
noreply@github.com
d89a4dc3330b472019968ea7e7a9892fc8c24ade
438b7d6f9edb127ab19af5ad434f1df716117486
/tempCodeRunnerFile.py
cfab979d7cb817adf252c6b0925eca2955af7bd0
[]
no_license
ntl870/BTL-DSP-2
3c93fd1b97e7c74ebc5f189166a753e7e62b466c
2ef89dea68c0c22b73207b5d5ff94b41316d3769
refs/heads/main
2023-02-06T20:37:14.089479
2020-12-25T05:15:24
2020-12-25T05:15:24
319,061,085
0
0
null
null
null
null
UTF-8
Python
false
false
18
py
# print(pos + 75)
[ "ntlong870@gmail.com" ]
ntlong870@gmail.com
cb0aea2b59411ffb92e3cddc9a98775ba3f3be0a
b024068e0b6a1e62dca5a1db41b5c46b2b7f70cd
/venv/Scripts/easy_install-script.py
547bdb2ab5da6c35153a5940e67081b47b5d4731
[]
no_license
brimcrob/PythonMathCode
2bdf77e5d50ae89cdc6c93baa5bfc3fa5af21eaa
4837bab6ce6abf3396f1794759be04b561c9a5e8
refs/heads/master
2021-01-03T00:12:26.794467
2020-02-11T18:43:29
2020-02-11T18:43:29
239,828,969
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
#!C:\Users\BrianM\PycharmProjects\MathProject\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.py...
[ "brimcrob@gmail.com" ]
brimcrob@gmail.com
e62e7b72e72a454971171e61c2ef825762d5c059
b27322173ff8307fabfad4f890bcfa25af9a95f5
/functions.py
9e8e3d00f259c69820ad9f69ab74691f394b168c
[]
no_license
dreemorra/MChA
d37d61bd6f0e98cb7976ffb02e937fbc02289eaa
fb0a1b29fc2514aaa2a15917efe7e8fba780a94b
refs/heads/master
2021-02-10T17:57:56.963290
2019-05-18T19:51:57
2019-05-18T19:51:57
244,405,859
0
0
null
null
null
null
UTF-8
Python
false
false
7,933
py
import numpy as np import math def read_matrix(fname: str) -> np.array: """Чтение матрицы из файла.""" matrix = [] with open(fname, 'r') as file_mat: for line in file_mat.readlines(): matrix.append(line.strip().split(" ")) matrix = np.array(matrix, dtype=float) return matrix de...
[ "satturn@bitbucket.org" ]
satturn@bitbucket.org
a4ce40b628c5233a0ceb47770c61b8eedccb5638
af2f52c48681a241cf2d99791ceada25e5a85967
/hw3/hw3.py
28192302b4d443ab147279cf14f83aadda98b921
[]
no_license
dinadaas/Programming-in-Python
300d064888e563d9b01ee3750ea6142dfaae3ee0
ebaf782a36b3b6b74cdf5f134c4699a2bf2b4590
refs/heads/master
2021-06-29T13:25:03.814141
2017-09-19T05:12:31
2017-09-19T05:12:31
104,029,241
0
0
null
null
null
null
UTF-8
Python
false
false
31,622
py
from collections import defaultdict import time ######################### Problem 1 and 2 code below ##################### class Constraint: """A constraint of a CSP. Members include - name: a string for debugging - domain, a list of variables on which the constraint acts - predicate, a ...
[ "dina.daas@duke.edu" ]
dina.daas@duke.edu
ea4800a0af01ed28d90e42a14e1db14972484790
88e8cad27f94c0463a4ebb0bdd93258964538b7f
/test/venv/distinct.py
3751850eb69be1251d64a3e4beec3e1718746c5f
[]
no_license
ljx4471817/python_maoyan_xiebushengzheng
48b243112ede861d508c9a67532a582459a60df1
429c8518934f2b262795849ecc23903171027a95
refs/heads/master
2020-03-24T05:01:16.149301
2018-08-08T11:14:24
2018-08-08T11:14:24
142,472,281
0
1
null
null
null
null
UTF-8
Python
false
false
627
py
# 获取的评论可能有重复,为了最终统计的真实性,需做去重处理 def main(old,new): oldfile = open(old,'r',encoding='UTF-8') newfile = open(new,'w',encoding='UTF-8') content_list = oldfile.readlines() #读取的数据集 content_alreadly_ditinct = [] #存储不重复的评论数据 for line in content_list: if line not in content_alreadly_ditinct: #评论不重复 ...
[ "313135277@qq.com" ]
313135277@qq.com
79b12beb277459c9737c3397ebad566584d4c414
1244b0c0a0c72b9682f74b0b067934044b83e814
/main.py
2b0609b8d3a0d15949dbbec82c3565b96cac89f7
[]
no_license
arivvid27/Ultimate-Dictionary
af2dab25ba1065d871f3136d9cf7290258bf10f1
763ad382b59dfe939c423f305e6d2209cd0214bd
refs/heads/master
2023-02-20T18:19:11.542741
2021-01-27T03:01:04
2021-01-27T03:01:04
333,279,075
0
0
null
null
null
null
UTF-8
Python
false
false
1,476
py
from replit import db from PyDictionary import PyDictionary from time import sleep PyDict = PyDictionary() while True: print('#' * 5,'USER MANUAL', '#' * 5 ) user = input(""" INSERT = [insert] KNOW MEANING = [know] SHOW ALL CREATED WORDS = [show] DELETE = [delete] QUIT = [quit] >>> """) if user == 'insert': use...
[ "arivvid27@outlook.com" ]
arivvid27@outlook.com
f65bffa85b6ace7dff888a6ae57104777026d021
48bcb32b77f1773642830e3029c8d455e0b6e5c3
/clustering.py
c3cee4293823cd237736acf64d1e513a4fcbe956
[]
no_license
tyleratk/churn-case-study
7dcc43c961c0f5d0c6bb8ffd4fa0234001e445b8
399191dbe1961097732a80d5683acf8bda615544
refs/heads/master
2021-05-04T01:45:52.925016
2018-02-07T21:09:04
2018-02-07T21:09:04
120,362,553
0
0
null
null
null
null
UTF-8
Python
false
false
4,145
py
from sklearn.cluster import KMeans import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.metrics import silhouette_score from time import time from sklearn import metrics from sklearn.decomposition import PCA def get_x(file_name): npz = np.load(file_name) X_filled_knn = npz['X_fi...
[ "tyler.atk@hotmail.com" ]
tyler.atk@hotmail.com
93bec70c16ee77fe017a5bf0e0438fc1eaa2d99d
2030aff0dfca64c8982f064335b120e20e866d41
/programming/photo/admin.py
e8a4bfac72c087b04959d4837bf3452e4d9e7175
[]
no_license
rheehyerin/hyerin_glazers
dd10b914e8282ab73a8ed99a8940a7d65999825f
2267ecbd9a1d526d017634068fac90950bccb5f4
refs/heads/master
2021-01-17T12:52:53.010542
2016-08-05T11:29:50
2016-08-05T11:29:50
59,261,915
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
from django.contrib import admin from photo.models import Photo # Register your models here. admin.site.register(Photo)
[ "hyerin rhee" ]
hyerin rhee
fb803c13d2775e370e83cc94af6382e554a403cb
4e9325fa3c1fbaad93253f96de7f9cdffd54032b
/.ci-scripts/run-linter.py
b461e9e1c6f3706d72bc56a34e3186a499a663c7
[]
no_license
zhangshijie1998/MIPS-CPU
4cbfa9a403973b7c83ee0fe1a47ae1631e2d1cf1
1ede83912a04e8f5e21a058dccd783636ceba854
refs/heads/main
2023-01-12T15:45:47.359644
2020-11-13T01:27:54
2020-11-13T01:27:54
312,323,932
2
0
null
null
null
null
UTF-8
Python
false
false
3,032
py
#!/usr/bin/env python3 from lxml import etree import chardet import sys import os from pathlib import Path from typing import Tuple, List, Set import shutil import subprocess import traceback def is_header(f: Path): with f.open('rb') as fd: return -1 == fd.read().find(b'endmodule') def transcoding(src: Pa...
[ "69901447+zhangshijie1998@users.noreply.github.com" ]
69901447+zhangshijie1998@users.noreply.github.com
ab421663cc8094e7c6a552e148f312ceaa20c3f7
d9cf44ed3e734ce27d7d6d8ca0d95654a27d76d6
/src/escaping/GenericReadTest.py
432541c2346546d3c0105f5d187010adb1a33672
[]
no_license
skill-lang/pythonTest
87d273fc018302fc18e207b4744a559d98ace2f0
2891d6bee891d9885701c9ce1afbb62767b8b455
refs/heads/master
2020-07-02T07:47:47.377793
2019-08-09T12:20:55
2019-08-09T12:20:55
201,461,971
0
0
null
null
null
null
UTF-8
Python
false
false
5,259
py
import unittest from tempfile import TemporaryFile from python.src.escaping.api import * from python.src.common.CommonTest import CommonTest class GenericReadTest(unittest.TestCase, CommonTest): """ Tests the file reading capabilities. """ def read(self, s): return SkillFile.open("../../../.....
[ "feldentm@informatik.uni-stuttgart.de" ]
feldentm@informatik.uni-stuttgart.de
1c171829107154b30dfead06e0f1004688090e91
5919d50c19a24334987f3dc8fa7e2430c51a1917
/Hash Function/proof_of_work.py
5da2326fda61d0affbed0d9c588c752d18ec50e5
[]
no_license
chrisyy2003/CryptoTools
a4397d02473be63b04a7b686fce713cebb4c0005
101c4e3235acc67112504710179675d4eef7e3ee
refs/heads/master
2022-12-02T17:24:00.420743
2020-08-14T09:13:56
2020-08-14T09:13:56
256,257,758
1
0
null
null
null
null
UTF-8
Python
false
false
874
py
from pwn import * from Crypto.Util.number import * import re import string import hashlib import random ADDRESS = '127.0.0.1' PORT = 10000 sh = remote(ADDRESS, 10000) def proof_of_work(): ''' it will get suffix and digest from the model below sha256(XXXX+TsygnWMdo40yVu6J) == 8d06431e754bdd45f3a3e0375c6...
[ "1017975501@qq.com" ]
1017975501@qq.com
e2ff3e605f5d643adb4a22ce53b2aa918cf781f4
e5c9fc4dc73536e75cf4ab119bbc642c28d44591
/src/leetcodepython/array/day_week_1185.py
d66cac9a636edc8be0acebb4fb26b98b46b0000b
[ "MIT" ]
permissive
zhangyu345293721/leetcode
0a22034ac313e3c09e8defd2d351257ec9f285d0
50f35eef6a0ad63173efed10df3c835b1dceaa3f
refs/heads/master
2023-09-01T06:03:18.231266
2023-08-31T15:23:03
2023-08-31T15:23:03
163,050,773
101
29
null
2020-12-09T06:26:35
2018-12-25T05:58:16
Java
UTF-8
Python
false
false
1,803
py
# -*- coding:utf-8 -*- ''' /** * This is the solution of No. 1185 problem in the LeetCode, * the website of the problem is as follow: * https://leetcode-cn.com/problems/day-of-the-week * * The description of problem is as follow: * ==================================================================================...
[ "zhangyu_xtb@geekplus.cc" ]
zhangyu_xtb@geekplus.cc
89fa8c90ed25654494a457945231b21e298c8c69
39179ab5fdb0478b18ab29e06e767573a2a651a4
/main.py
bfadfbc486c5df4a45aff4f4a67018dafbc22255
[]
no_license
MichalTesnar/Fractals
560dddf16fa359a21c41cb526da8f8e2a4ffaf75
e19421e980f0992bfc380f90564884ae4f837174
refs/heads/master
2021-07-03T11:36:14.825930
2021-01-24T08:24:02
2021-01-24T08:24:02
218,233,272
0
0
null
null
null
null
UTF-8
Python
false
false
1,190
py
# Importování konstant z constants.py from constants import * # Hlavní funkce pro spuštění dalších skriptů pro tvorbu fraktálů def main(): # Iniciace prostředí knihovny Pygame pygame.init() DISPLAY.fill(WHITE) # Výběr skriptu, který chceme pustit a jeho spuštění print("Který fraktál byste rád?" "...
[ "michal.tesnar007@gmail.com" ]
michal.tesnar007@gmail.com
d8e0ba47cc6f27c5c00b272d32fbb87d58db0a46
d41027f30776a7658d6c2ed5a82283e3fc05b153
/Sensehat_humidity.py
92b3899a9a323d1fb37dde717bb042c370fa018d
[]
no_license
SamipThulung/IoT-RaspberryPI-
03a2e8ebef3c2e57265ea325ee9d65d3ce66284d
badfe5fefa15c359a8aff9a7015fd44d5fb3c319
refs/heads/master
2020-05-23T22:37:48.239063
2019-05-16T07:52:43
2019-05-16T07:52:43
186,978,025
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
#Islington College from sense_hat import SenseHat #Calling Header file for SenseHat sense = SenseHat() green = (0, 255, 0) #Set Color to Green white = (255, 255, 255) #set color for white while True: humidity = sense.humidity #call humidity from sensehat humidity_value = 64 * humidity / 100 #Formula calcul...
[ "samipthulung3@gmail.com" ]
samipthulung3@gmail.com
ecccc8d7b9dfbdf9a933c5d88bf273a484f80c5e
b44caf63cf9f902bd86419a26a3039104093c636
/Code/PokemonMovesScript.py
66b1e862864931b6607032ca9aeea32ba917c168
[]
no_license
hamishtodd1/typeOptimalPokemonRun
2d6d34fb731415985d1c42667f30b09df3221ed7
5bb5f819cf94f9c1477c341d6c610bd67955fbe9
refs/heads/master
2021-07-12T18:37:23.165890
2021-06-20T17:37:59
2021-06-20T17:37:59
128,482,426
0
0
null
null
null
null
UTF-8
Python
false
false
15,419
py
#todo: pokemon test script, which you can run things through import sys ptypelist = ["Normal", "Fire", "Water", "Electric", "Grass", "Ice", "Fighting", "Poison", "Ground", "Flying", "Psychic", "Bug", "Rock", "Ghost", "Dragon"] #a for attacker, d for defender. 1, 2, 0.5, or 0 def effective( a, d ): h = 0.5 t = 10...
[ "hamish.todd1@gmail.com" ]
hamish.todd1@gmail.com
d6ee0bd3568242e4bc6eb8ecacc74d4cf4df7530
89c071ebaf9878ec4666148fa04d941621efa4db
/SendEmailApp/wsgi.py
14ae275248dc9996a101b72cf36f818d015ab884
[]
no_license
ali-py3/Send_Email_with_Dj
ab8cb49b2388135f372239146bdfba0fd216c5ed
273f0c0e8be26e999bbe0fd7b8f40e4263315b3d
refs/heads/main
2023-07-05T05:59:53.946720
2021-09-01T19:36:02
2021-09-01T19:36:02
402,179,670
3
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" WSGI config for SendEmailApp 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.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
[ "man.pyyy@gmail.com" ]
man.pyyy@gmail.com
597a9df0a49588dbd4e817b3c9e418c5967c0c9c
61425d834741e9a043899a5e4ad9007bc3c387ba
/Code/Problem Set 2/2.6.py
bd6275ff41a0460bb130bf8f3f8ad40eb5f0a91c
[]
no_license
Plecebo/Data-Analysis-P2
84c99a9559ba51e416e7977f7ccdaea3e0514c82
a8ed08cdbe82920992a87605d3c1f227453915de
refs/heads/master
2016-09-06T18:14:15.086719
2015-08-24T01:20:19
2015-08-24T01:20:19
40,058,250
0
0
null
null
null
null
UTF-8
Python
false
false
1,248
py
def create_master_turnstile_file(filenames, output_file): ''' Write a function that takes the files in the list filenames, which all have the columns 'C/A, UNIT, SCP, DATEn, TIMEn, DESCn, ENTRIESn, EXITSn', and consolidates them into one file located at output_file. There should be ONE row with the co...
[ "larry@schwerzler.com" ]
larry@schwerzler.com
7704976a916bf3892c53447a2e1714f2a596d4ec
b2cbc9bcd0566695c32b028772e6316ce81fb7fe
/password_generator/settings.py
135060064a7b764ce5d449aefa2eebd34c8b5ce9
[]
no_license
AvinashDhamnani/Django-password-generator
fed156e8c6e29bf102e500bbf4a2226ecad743cf
536701955d9c4a14e6e1d65a2bcd38dc2afde677
refs/heads/master
2023-02-26T08:20:31.872858
2021-02-05T10:46:48
2021-02-05T10:46:48
336,248,178
0
0
null
null
null
null
UTF-8
Python
false
false
3,115
py
""" Django settings for password_generator project. Generated by 'django-admin startproject' using Django 3.1.5. 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/ """ f...
[ "avinashdhamnani31@gmail.com" ]
avinashdhamnani31@gmail.com
fdaa58c6c8d679b9e5214b8455713c37be838bfc
fa097257d8ec4167db24b17076a38e60dbbb0b36
/Code/27. Quadratic primes.py
fe1e7e6ad3f76dd53febf405107f55c1dfee5f04
[]
no_license
SergeyShk/Project-Euler
5e0d5bb3f03e2baaa25bd895f53603026fb147c7
6f3019ca88a545bf85e714526aa6ca661f89e4a9
refs/heads/master
2021-08-16T03:04:28.000466
2020-04-15T20:13:29
2020-04-15T20:13:29
159,189,991
2
0
null
null
null
null
UTF-8
Python
false
false
1,448
py
''' Euler discovered the remarkable quadratic formula: n^2+n+41 It turns out that the formula will produce 40 primes for the consecutive integer values 0≤n≤39. However, when n=40,40^2+40+41=40(40+1)+41 is divisible by 41, and certainly when n=41,41^2+41+41 is clearly divisible by 41. The incredible form...
[ "kouki.sergey@gmail.com" ]
kouki.sergey@gmail.com
b072a98d63408faeeb970f8289713393ca20a94d
37a8128efba642e8c7613652621297fc6bbd1dd3
/courses/migrations/0001_initial.py
24b8cce96f6c77123a662b202c27e64502c8980b
[]
no_license
amosISA/elearning_django
be75c2e6eeaa10d7202d96a1d8e139d5b6828b44
f676076be3a7a2a20c45f565be01e4ba3fcdd274
refs/heads/master
2021-05-09T13:33:04.174597
2018-01-26T13:15:01
2018-01-26T13:15:01
119,036,740
0
0
null
null
null
null
UTF-8
Python
false
false
2,254
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-01-26 10:07 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
[ "amosisa700@gmail.com" ]
amosisa700@gmail.com
520f26abdaa8e6c9525b21e583470adbafaf529c
c62710853eaaaaa554fe2ef348db1b615ec814fb
/dnn/dongyaxing/PosTagging/HMMforword.py
21ae4aeeb9c1ad9bfb8c1b29e5269d5541909492
[]
no_license
CodingWD/course
e38d75871e17627d1ce24beef6700ef65e606640
e80eeba61be9c0960002259a452babce44ee84a1
refs/heads/master
2023-04-06T21:47:54.940420
2021-04-15T10:25:30
2021-04-15T10:25:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,325
py
# coding=utf-8 import numpy as np class HiddenMarkov: def forward(self, Q, V, A, B, X, PI): N = len(Q) # 状态集合的长度(几个盒子) M = len(X) # 观测序列的长度(实验进行了几次) alphas = np.zeros((N, M)) # 前向概率矩阵 alphas 矩阵 T = M # 时刻长度,即观测序列的长度 for t in range(T): # 第 t 次 ind...
[ "379992467@qq.com" ]
379992467@qq.com
9c221234f925ac473501277c79617d2849dd2eea
8d9e19ac32bab45f608e09e7c8836e91ac7d0914
/container_workflow_tool/main.py
73fff29ce36b8e9e363baa398810995d1b421dda
[ "MIT" ]
permissive
injeti-manohar/container-workflow-tool
22ed533bf74c9a102f1b595672d90ad5d1d49558
25f98751e3584e52e55db0fdd641922cd67e848a
refs/heads/master
2020-05-02T03:30:37.865495
2018-12-13T14:20:26
2019-01-07T13:59:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,767
py
# description : Script for helping with the rebuild of container images. # author : pkubat@redhat.com # notes : Rewritten from a shell script originally created by hhorak@redhat.com. # python_version : 3.x import subprocess import os import shutil import re import tempfile import pprint import ...
[ "pkubat@redhat.com" ]
pkubat@redhat.com
9d500d189cf164e347ced5b1896ebe1a652c66be
b815fa2bf58f4b992037b54f4f5ca7b0c43fef1e
/3D_Latent_Space_GAN/run_model.py
1b2f310c9f69503176d118b011ac64fa852d6712
[]
no_license
Fleford/GAN_with_Kalman_filters
c661845d3643a0204a466f65c1fc52f752eb2b27
d3b4fd616bf6036fdb7065b6faf6d42435f04daf
refs/heads/master
2022-01-16T13:00:58.814026
2022-01-05T05:18:51
2022-01-05T05:18:51
219,023,795
0
0
null
null
null
null
UTF-8
Python
false
false
5,938
py
import torch import numpy as np import torch.nn.functional as F from torch import nn, optim from progan_modules import Generator from utils import get_texture2D_iter from matplotlib import pyplot as plt def generate_condition(input_matrix, density=10): # ref_k_array = np.loadtxt("k_array_ref_gan.txt") ref_k_a...
[ "fleford@gmail.com" ]
fleford@gmail.com
e08bf0a06ee1f02e5f21832b2129596a74bd048a
39bc937620f94c0c9a897b144940855d13006146
/testchild.py
095e05d488883ecf7fe17bd67b249f8f07a02efe
[]
no_license
Mechalla17/Test-II
c3f9f115ea10d59b375e3b19a9a7cf3c3d3bd6bb
f17adbd0c4cd568ac51accf5944eeb4304478683
refs/heads/main
2023-01-06T09:06:52.644400
2020-10-20T09:10:59
2020-10-20T09:10:59
305,645,268
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
## Adding a new file in Branch test print("inside Branch test")
[ "noreply@github.com" ]
noreply@github.com
9c89bef6abd9a663b880012ce3075eaedaf4478a
9a2505b34a16c29f0789a82bbf9b28ecfa5fd153
/main.py
b5d4f66c0bc621124cb92812f855cf3e4e709acd
[]
no_license
Grandvitar/Project_41-for-HRs-
0dc4e8d4f7f3c248aeb30bf927fa52c5e5bf7728
00b8a76cf020b3ea70a6bb8f81f7f75bbc47d933
refs/heads/master
2023-02-21T20:04:09.911862
2021-01-25T21:45:08
2021-01-25T21:45:08
325,548,298
0
0
null
null
null
null
UTF-8
Python
false
false
36
py
import Models.View Models.View.UI()
[ "malex1982@mail.ru" ]
malex1982@mail.ru
72efc772d005b199ba2344008550607a08ac3f5d
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Mastering_Probabilistic_Graphical_Models_Using_Python/pgmpy/factors/JointProbabilityDistribution.py
4e8ceff854544881423360c5c64189a912298156
[ "MIT" ]
permissive
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
9,729
py
#!/usr/bin/env python3 from itertools import product import numpy as np from pgmpy.factors import Factor from pgmpy.independencies import Independencies class JointProbabilityDistribution(Factor): """ Base class for Joint Probability Distribution Public Methods -------------- conditional_distri...
[ "bb@b.om" ]
bb@b.om
9b608e7d269389d21bba2c5a9d91fea46a0498d9
fff7170249d4c2bd0eb8578c96bdc4fc90cf3a5d
/TableTopKnight/TableTopKnight/urls.py
8277549be3aec0ede0f08b0ae7ea32636ce74d3e
[]
no_license
colin3131/Table-Top-Knight
e1a272d3385eb003cd089dbcec41b841086009f2
c648ba844a72b6e3ea7b4b62115896ca149f9b72
refs/heads/master
2023-04-30T21:53:33.395123
2020-01-06T22:56:05
2020-01-06T22:56:05
218,636,770
0
0
null
2023-04-21T20:48:03
2019-10-30T22:18:58
HTML
UTF-8
Python
false
false
1,051
py
"""TableTopKnight URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
[ "cps38@pitt.edu" ]
cps38@pitt.edu
e26b36dc12b5610f39bdaf50670cbb889b02a9b9
9741a626ea58ef334d4280af1a756be06f69c871
/apps/departamentos/views.py
2837d3f8e966127b6dfa9fb4e31fc11de7367c79
[]
no_license
diogo20lemos/gestao_rh
a8a86c7afcad0649dbdbb64e4855e08907917068
d78139812b13a679699160e0c2be382548864f0f
refs/heads/master
2023-01-12T11:51:44.918602
2020-11-17T16:44:54
2020-11-17T16:44:54
287,319,746
0
0
null
null
null
null
UTF-8
Python
false
false
988
py
from django.shortcuts import render from django.urls import reverse_lazy from .models import Departamento from django.views.generic import ( ListView, CreateView, UpdateView, DeleteView, ) class DepartamentosList(ListView): model = Departamento def get_queryset(self): empresa_logad...
[ "diogolemos@EDiagnose.local" ]
diogolemos@EDiagnose.local
8574cc177650e40a4bc27530edb2d08b72bb71ce
3e95aae140dbea822e3542399871a5b573114ab7
/python 3.7.4.py(1).py
7a7db44425a3db141e38f0bb8f92284cfabebc97
[]
no_license
meghana-221810402017/12-07-19
5885b53503b47e5835cfd8bb188ab8f85fae5611
52f795c8cae11504e9e4fed0aeecc6e07a21e83c
refs/heads/master
2020-06-19T04:59:18.161188
2019-07-13T03:28:20
2019-07-13T03:28:20
196,571,864
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
from turtle import * for i in range(20): forward(100) left(90) forward(10) left(90) forward(100) right(90) forward(10) right(90) pencolor('red') for i in range(90): undo()
[ "noreply@github.com" ]
noreply@github.com
1e616727b698fb933c3679722bfecdc53bf353af
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
/src/main/output/kid/way_team_business/family/face_issue_city/number/year/health_kerberos_back.py
655af272c1deb6d1ca6522de2970d1ca8ae96cfa
[]
no_license
matkosoric/GenericNameTesting
860a22af1098dda9ea9e24a1fc681bb728aa2d69
03f4a38229c28bc6d83258e5a84fce4b189d5f00
refs/heads/master
2021-01-08T22:35:20.022350
2020-02-21T11:28:21
2020-02-21T11:28:21
242,123,053
1
0
null
null
null
null
UTF-8
Python
false
false
3,934
py
using System; using System.Net.Http; using System.Text; using System.Threading.Tasks; // Install Newtonsoft.Json with NuGet using Newtonsoft.Json; namespace translate_sample { class Program { private const string key_var = "TRANSLATOR_TEXT_SUBSCRIPTION_KEY"; private static readonly string subsc...
[ "soric.matko@gmail.com" ]
soric.matko@gmail.com
3f2d82a98c7780670df6738341d6c92a64e95c4f
8b71aaab38dbe1adac0c3dfa97bd39997272e0d1
/main.py
35138ba0d0bd7dd7909fbd7bb9db47ccdd44538f
[ "MIT" ]
permissive
sreekesari-vangeepuram/visual-card-generator
39486d0d0565d8400c3d1e4f2b6f77ea8a1d2add
f39b253c21d98119e44ab741d992bde7987354c3
refs/heads/main
2023-07-16T17:03:04.148380
2021-09-07T15:41:33
2021-09-07T15:41:33
339,816,805
1
1
null
2021-08-11T08:28:56
2021-02-17T18:22:34
Python
UTF-8
Python
false
false
5,388
py
""" Copyright © 2021 Vangeepuram Sreekesari Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
[ "kesari.vangeepuram@gmail.com" ]
kesari.vangeepuram@gmail.com
73cf29f013b0e80778d15c35bf65169249f13894
ed84375e88a09106f045e621820e0f13fca0d733
/tests/mock_tests/_test_cfgparser.py
4e7dbd0c1b072107dbc8e9cb77aa19665c73e635
[ "Apache-2.0" ]
permissive
probablytom/PyMuTester
554319b6e8b5343ea1021818552ac73329cdd509
855ce779f6db3748d12c7573ffcca35c3a488ce6
refs/heads/master
2021-01-18T20:25:26.948618
2014-10-07T14:54:32
2014-10-07T14:54:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,741
py
# # [miketeo/20111120] # This is the ConfigParser module from Python 2.7 # We have adapted it slightly for our unit test # from mock_modules import ConfigParser import StringIO import unittest import UserDict from test import test_support class SortedDict(UserDict.UserDict): def items(self): result = sel...
[ "miketeo@miketeo.net" ]
miketeo@miketeo.net
99097c7a60ccd21798abfd905881f2092e9aec1e
7ac7f7e401a545670b7dcd6d1229a600089f6cf7
/BasicoBlog/urls.py
813faa1f004d645d8ddad94e5f196f9b19ecdc22
[]
no_license
nicolasgeronimorodi/BasicoDjangoBlog
29d60438a18bcc0062c2b0e8d457806ba9f73507
5cfedbf4aef09a2ea0653add1fbdaae4e03c1959
refs/heads/main
2023-08-23T19:35:41.068920
2021-09-27T13:21:26
2021-09-27T13:21:26
410,059,811
0
0
null
null
null
null
UTF-8
Python
false
false
799
py
"""BasicoBlog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
[ "nicolasgeronimorodi@gmail.com" ]
nicolasgeronimorodi@gmail.com
24628a937c4bb015580dcf7db437fbac6c5eb40d
13696a9691b173d75b11b4aee22b79d4ea6b7c0b
/test/test_order_line_item.py
0f2cd0135271ef7e6096299470663b97c0befed0
[ "Apache-2.0" ]
permissive
square/connect-python-sdk
410613bc4b04f0f70176275591a16c9e49e25ede
e00e2889b2dd2c55048219cbe64db79962a68633
refs/heads/master
2023-06-15T09:24:17.190416
2019-08-15T17:44:41
2019-08-15T17:44:41
64,772,029
53
45
Apache-2.0
2020-12-20T18:41:31
2016-08-02T16:07:17
Python
UTF-8
Python
false
false
1,186
py
# coding: utf-8 """ Copyright 2017 Square, 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 la...
[ "noreply@github.com" ]
noreply@github.com
eaf3893eecde7d8134acabf5412ec6cabea694dc
36f2147d46cf0bb8f85acc81bfe2b4486405e33a
/ZXYJ_GG-master/PyCharm/Wdpc/Dog2.py
9b6985b14f136ee13f528f45e34265eea60357ef
[]
no_license
LDPGG/dm
4aab9b54a6f4e6dae57baede40c9b5f094c3607e
7b0e267418fd2345923fb1b4c48d53347eec13dd
refs/heads/master
2021-03-06T20:09:20.126015
2020-03-10T06:06:20
2020-03-10T06:06:20
157,844,279
0
0
null
null
null
null
UTF-8
Python
false
false
1,237
py
# -*- coding: utf-8 -*- # @Time : 2018/6/14 0014 下午 6:30 # @Author : 刘登攀阿!! # @FileName: Dog2.py # @Software: PyCharm from selenium import webdriver # 这是我自己封装的一堆方法 from A_method.Slide import * import unittest import time import HTMLTestRunner class Store(unittest.TestCase): "测试" def setUp(self): ...
[ "1583141776@qq.com" ]
1583141776@qq.com
2c299242c9b1cd7d9f2e8d23fd9594deda9e697f
f90b2068ca01ae2f9b1bc21b346ad0b0b406912d
/exchange_scrapper/migrations/0004_exchange_rss_urls.py
b83c6c78a9890e666c85e200d83f1fd22a5eaf36
[]
no_license
spam128/ecb-exchange-rate
2509e3d269f646b9116ddc9447050455360777d0
f7d6fc38126f1e1a4cd470e21eec4dc4dd8b8e0c
refs/heads/master
2020-03-24T03:16:54.713073
2018-07-28T09:35:21
2018-07-28T09:35:21
142,412,387
0
1
null
null
null
null
UTF-8
Python
false
false
1,134
py
# Generated by Django 2.0.7 on 2018-07-26 11:11 from django.db import migrations, models import requests from bs4 import BeautifulSoup url_with_rss = 'https://www.ecb.europa.eu/home/html/rss.en.html' exchanges_list_class = 'zebraList' def add_exchange_rss(apps, schema_editor): MyModel = apps.get_model('exchange...
[ "corpuscallosum@localhost.localdomain" ]
corpuscallosum@localhost.localdomain
8c64015c2a91b9f94438206ce782b3045cbe1caf
43b62e422a31f803d40676323465a5956467ede0
/setup.py
d463b69792686d2b4554444297c620bfc7b2bade
[ "BSD-3-Clause" ]
permissive
declaresub/pygments-xojo
e88dfe4946869fa80721df02f1428d51c2c0697d
a4109d1effda8105e8dcc52f547c44329afde134
refs/heads/master
2016-09-05T18:52:46.629046
2016-02-16T02:23:56
2016-02-16T02:23:56
39,641,892
5
3
null
2016-02-16T02:23:57
2015-07-24T15:28:39
Python
UTF-8
Python
false
false
1,670
py
# -*- coding: utf-8 -*- """Pygments-Xojo ^^^^^^^^^^^^^ Pygments-Xojo adds support for the Xojo language to the Pygments syntax highlighting package. :copyright: Copyright 2015 Charles Yeomans. :license: BSD, see LICENSE for details. """ from setuptools import setup from setuptools.command.test import tes...
[ "charles@declareSub.com" ]
charles@declareSub.com
eaa3e0daae4766d32f9000a254fa9857a49ac1d1
1a9d8e128b6d44abe15c2c82dd2e795909fa8a0c
/sentimental.py
01350ab95536a121ce559147619e2189cb0cfa10
[]
no_license
cozy-an/FinalProject
68c4b9ff025bf421d4c55209916cad58eecdc02c
0f0c4cc8e634f11e140aaf2938f5d646152f7e37
refs/heads/master
2020-03-17T05:56:42.875655
2018-05-23T03:39:58
2018-05-23T03:39:58
133,334,526
0
0
null
null
null
null
UTF-8
Python
false
false
1,818
py
import cv2 import argparse import io import time import json from google.cloud import vision def video2frame(video,save_path): vidcap = cv2.VideoCapture(video) count = 0; while True: success,image = vidcap.read() if not success: break print('Read a new Frame : ',succe...
[ "seafood123@naver.com" ]
seafood123@naver.com
f69577fd592c5d9f9b74f57aac0cca16c85f5801
8841ea034263e5a0ad330ef85443c171a33d3c1d
/core/views.py
aa668dafd9de02d401f200451dfdc2ad7e678d36
[]
no_license
peteryao/foodster
c63fe7461f48d6aa337fd630dfbd8947df19bd1c
cb18ae2754075faa671febae24081ee6635fcd94
refs/heads/master
2020-07-07T22:20:07.154370
2014-10-10T21:08:53
2014-10-10T21:08:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth import logout, login, authenticate from django.contrib.auth.models import User, Permission from django.contrib.auth.decorators import login_required def index(request): context = {} return render(request...
[ "peteryao916@gmail.com" ]
peteryao916@gmail.com
e3c5584e012ccde4876ed48134754e141f6a08da
de7f4188de1e9c5a90ce70c3c21ad9a3fa14ffca
/star2.py
4b1137e138bcc6dfd22a7b12644d75a611852641
[]
no_license
aryajar/practice-in-7-23
7118fd31e87c4e58dcd1ffb6711c8c3e1513658c
19d917e9e9a9e0e62d1508049068ea6d4e57d3a8
refs/heads/master
2022-11-22T12:43:25.789849
2020-07-24T08:33:02
2020-07-24T08:33:02
281,873,790
0
0
null
null
null
null
UTF-8
Python
false
false
87
py
n = int(input("Enter a number: ")) i = 1 while i <= n: print(" * " * i) i += 1
[ "wangshengnan@stockhn.com" ]
wangshengnan@stockhn.com
e43f1526ecb3cb7aaef25924f0510556b16f8538
0c84df2bab1acad781ed19f9f86433aa187c52b8
/venv/bin/pip2
2f447db901ebc4773b1eb9e17b9eb91314bd7fa2
[]
no_license
drunkrabbit1/botfid1
ccc02e42ea72d9a8f5bc3bb30419caac6c9f17f4
9f67d7ca3d65785a06e366ed2b349bb72d5b822e
refs/heads/master
2022-04-08T20:53:46.177140
2020-03-06T14:49:39
2020-03-06T14:49:39
245,441,246
0
0
null
null
null
null
UTF-8
Python
false
false
254
#!/home/fallen/PycharmProjects/bot1/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "acer5742zg@mail.ru" ]
acer5742zg@mail.ru
554a4a4b666e10e9da61bdc24bf006d10058c256
4702fc119749eb4d1ff44f13d65ea090a2ac0a38
/notes/venv/Scripts/pip-script.py
6a12ac11b465ab9c257641dfa1ee608a48a030f2
[]
no_license
KennedyDotCom/CSE
b2a2d6cc0d881e281a480de556e6ac8cf9429e5f
693a93792c4cfb2e0d107ef254516cf7bcce75f1
refs/heads/master
2020-04-02T10:37:35.239513
2019-05-22T16:45:13
2019-05-22T16:45:13
154,347,404
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
#!C:\Users\p9rn\Documents\Github\CSE\notes\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv...
[ "44372252+KennedyDotCom@users.noreply.github.com" ]
44372252+KennedyDotCom@users.noreply.github.com
9517efb47d7084f3fc2cc2ee9b05e5d3e0b05ea3
b9ca45806679dd8bae4111923ba3de90dffb792e
/policy/nn_policy.py
d2b798295284d1eca7589f4fbee5feb0cdeab20c
[]
no_license
souradip-chakraborty/RoMBRL
6d24bda52e15101c7625bd16c826292acbe6cf97
a3772cee003af18a129c5b8799f978f2fad96294
refs/heads/master
2023-03-15T16:24:10.996972
2020-08-02T11:14:55
2020-08-02T11:14:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,245
py
# -*- coding: utf-8 -*- """ nn_policy.py Created on : February 28, 2019 Author : anonymous Name : Anonymous """ import tensorflow as tf import numpy as np import sys import os import logging import rllab.misc.logger as rllab_logger from sandbox.rocky.tf.envs.base import TfEnv # sys.path...
[ "thobotics@gmail.com" ]
thobotics@gmail.com
29ce2971da5b09e22031f2f7ec2487d1879401ac
4acad432dc4ae82d3d964445e180c6de54b528ea
/animate.py
a574c2c07f7d3005b951a8eb2839bdd075e1cccd
[]
no_license
rahulrchandran/animate-videos
1ad014338dc48a8790161df0cd6b6be58dca65ae
c410b7b9b52a541e0ed1d4eb23b9abdb687deb0b
refs/heads/main
2022-12-20T15:33:16.956612
2020-10-07T07:46:50
2020-10-07T07:46:50
301,962,480
0
0
null
null
null
null
UTF-8
Python
false
false
5,410
py
import cv2 import numpy as np import glob import os from os.path import isfile, join class Cartoonizer: def __init__(self): self.numDownSamples = 1 self.numBilateralFilters = 7 def render(self, img_rgb): img_rgb = cv2.imread(img_rgb) #img_rgb = cv2.resize(img_rgb, (1366,768)...
[ "noreply@github.com" ]
noreply@github.com
1205d3d16e5a6074d8edaa6eaa57bd2a4e540189
1041799995b29f8cb0138d57f94b6ebf649cb86d
/file.py
f161d03ebb1b5c28330addf1d456b3912fc932d7
[]
no_license
sriison/python_basics
484a4ef6d7f6466e24b85da2af9d4d976e46e4b0
4491ced7d9cb7cfc2e6d622cb7c36c816b4bdb50
refs/heads/master
2020-12-23T06:50:42.666498
2020-03-04T12:01:35
2020-03-04T12:01:35
237,073,815
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
import os # file = open("srini.txt",'r') # file.write("forth line added\n") # file.write("fifth line added\n") # file.close() file = open("srini.txt","r+") str = file.read() print (str[0]) file.close() os.remove("srini.txt")
[ "sriison@gmail.com" ]
sriison@gmail.com
b461c2f44b87c7937d92dd2c038a59e357d0657b
e242d30d9c3398a88ae50a6990760ab63e426b70
/website/talleres/taller_2/migrations/0001_initial.py
becc107f2a40942aabd56052e37799cfed8188b2
[]
no_license
minigonche/sistemas_de_recomendacion_2020
b6a82a163c4a80d5cb7c2f5dadfae68744099db9
645bba398c033ff2063958b0be60d4bd4d27cab2
refs/heads/master
2021-01-02T12:09:00.480070
2020-05-09T14:07:59
2020-05-09T14:07:59
239,615,233
0
0
null
null
null
null
UTF-8
Python
false
false
3,411
py
# Generated by Django 2.2.5 on 2020-05-01 15:14 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Business', fields=[ ('id', models.AutoField...
[ "minigonche@gmail.com" ]
minigonche@gmail.com
3da22ec7f9fd090ed4375400c5ac1f5bbde09816
2be2fcb96de91621a152241843db340b917ce6cb
/src/parsers.py
26c85178a44ea128f9e263b2f6438f7e58b7bc91
[]
no_license
chebbit/scraper
21e3878193ba795cd73e3db57a1dd74d708e0a94
ea54a9d06dc0973bbe86f3667e3e880c696c1fd4
refs/heads/master
2022-12-14T09:09:15.126841
2020-01-08T10:05:54
2020-01-08T10:05:54
232,534,620
0
0
null
2022-12-08T03:24:28
2020-01-08T10:09:25
Python
UTF-8
Python
false
false
1,278
py
from bs4 import BeautifulSoup from html2text import HTML2Text from abc import ABC, abstractmethod class ABCParser(ABC): """An abstract class with a single method, for cleaning data from HTML""" @classmethod @abstractmethod def cleaned_data(cls, text: str) -> str: pass class ReutersParser(ABC...
[ "nikolaev.segroup@gmail.com" ]
nikolaev.segroup@gmail.com
e170237f3ca1ca16746589e235b82415a84693a4
c39c8ca66c7046c87d45d6544697e1d2e17963c0
/sy/net/__init__.py
0053e6f3bc3eadd7a8c65536d21bebe19e11ce6e
[ "BSD-3-Clause" ]
permissive
afajl/sy
20bb9d8390bf1c972726742313e3e6907bd27f4e
04efc8f98d64eddebd15ab30c28133631872bd20
refs/heads/master
2021-01-20T21:24:14.320094
2011-06-14T17:58:20
2011-06-14T17:58:20
841,197
2
0
null
null
null
null
UTF-8
Python
false
false
116
py
import sy # sub modules import ip import intf import remote # sub functions from remote import sendmail, download
[ "p@feedem.net" ]
p@feedem.net
bc72522978e6d458c5412f2e2b041154e7366c33
91087607cf165e2cd743ac844f1e8fc1bc09224a
/Triangle_Begin.py
9a1b2235776aad2c1db16bc69c9eac2a1cdb96e3
[]
no_license
cullorsvm/python-community
9f4d19a89bfc015b5934abd27cda6044fb3568b7
22b2507e44e6a50c3321bd747492dec88f402bb0
refs/heads/master
2020-12-25T03:00:43.747840
2018-08-15T00:50:54
2018-08-15T00:50:54
51,409,295
4
4
null
2016-03-04T02:46:04
2016-02-09T23:42:45
null
UTF-8
Python
false
false
1,302
py
##Python program to determine the classification type of triangle ## by inputting 3 side lengths. ## Aug 2018 #TEST PLAN to run your program to check your code: #test for first block #i=0,j=0,k=0 -> if any side = 0 then 4, end program #test for second block #i=1,j=1,k=1 -> if all sides are same then 6 #i=...
[ "noreply@github.com" ]
noreply@github.com
1962137d2e58710043d0fd6cf9a72dad38216214
5f300418ce1605eb41276b0a9a79fe5f46fa8198
/users/queries.py
5563883ddbbe4db0399fe5fea0dadfdbd3b0b71f
[]
no_license
Academia-MagicKode/FastAPI
daaeea85152717a484a32309acf77be92435b53d
139942870a5ee76a1e29bcbfb5d1262af0b2a832
refs/heads/master
2023-05-09T02:03:45.804484
2021-05-29T14:37:47
2021-05-29T14:37:47
371,967,214
0
0
null
null
null
null
UTF-8
Python
false
false
4,000
py
from passlib.context import CryptContext from typing import Optional from sqlalchemy.orm import Session from starlette.status import HTTP_400_BAD_REQUEST from config.database import get_db from fastapi.security import OAuth2PasswordBearer from fastapi import HTTPException, status, Depends from datetime import timedelta...
[ "magickode7@gmail.com" ]
magickode7@gmail.com
91c25e9e1439da3790676816b093c0f9a27f9de5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03559/s351538346.py
07b30fc56f836903884b21d2c40f39a3645029b7
[]
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
586
py
import bisect N=int(input().strip()) a=list(map(int, input().split())) b=list(map(int, input().split())) c=list(map(int, input().split())) a.sort() #b.sort(reverse=True) c.sort() ans=0 #for i in range(len(b)): # la=bisect.bisect_left(a, b[i]) # ra=bisect.bisect_right(c, b[i]) # ans+=la*(len(c)-ra) # print(l...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
22cf102caef9ddc4f6356032fb4a19c3ba880ae9
0acfaf0b296d60543fe0f0357887f6834601a4d4
/posts/models.py
907bad2f9b9be0161c6688452c13693aa0f72163
[ "MIT" ]
permissive
haTrang061299/mb_project
51d8f0c7005929f269f7badaf417690aa6f2215c
a3152ab2cf206b2575d80783944f6f04a1b480c4
refs/heads/master
2020-04-09T15:00:55.803865
2018-12-04T20:17:43
2018-12-04T20:17:43
151,310,595
0
0
null
2018-10-04T16:54:46
2018-10-02T19:22:55
Python
UTF-8
Python
false
false
143
py
from django.db import models class Post(models.Model): text = models.TextField() def __str__(self): return self.text[:50]
[ "noreply@github.com" ]
noreply@github.com
c4b7a470507b0ce2d15d37a30a866863b40666d2
fb50b04d429530ec2759dfabebd1ed733cbcaea3
/utility/hash_util.py
8e6df1e3bf626a759e693e553fdac28608195d5f
[]
no_license
dxnter/blockchain
c5565590316a3786f30449e90d1e294591c70b99
44eb610b1317b57fc44692925bae21772147ebbb
refs/heads/master
2020-03-28T08:32:12.842778
2018-09-25T18:39:39
2018-09-25T18:39:39
147,971,934
4
0
null
null
null
null
UTF-8
Python
false
false
660
py
import hashlib as hl import json def hash_string_256(string): """Create a SHA256 hash for a given input string. Arguments: :string: The string which should be hashed. """ return hl.sha256(string).hexdigest() def hash_block(block): """Hashes a block and returns a string representation of...
[ "contact@danfoster.io" ]
contact@danfoster.io
6b0f05b24305838a791d7539f7b5f6e7fa6c8395
850d778687e3692ab2a38d4d2227391d92c21e6b
/atcoder.jp/arc008/arc008_4/Main.py
1bc7f5184d2c991ab49a12ce1a26ad20d78090fc
[]
no_license
Valkyrja3607/AtCoder
77e2e5e66c0e8e12bb902c35f679119c6576fad7
9218a50b1eb83e4498845d15d9dda41fab90ed73
refs/heads/master
2023-07-15T20:38:52.911301
2018-05-30T17:56:22
2018-05-30T17:56:22
294,980,006
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
n,m=[int(j) for j in input().split()] pab=[[float(j) for j in input().split()] for i in range(m)] ll=[] for p,a,b in pab: ll.append(p) ll.sort() from collections import Counter l=Counter() for i in range(m): l[ll[i]]=i #A[k]をxに変更 O(logN) def update(k,x,y): k += num seg_min[k] = x seg_max[k] = y ...
[ "purinjolly@gmail.com" ]
purinjolly@gmail.com
0f8f9412df4f2e0e7c0c0310a5cb36e26229891d
c781f71ee4323f2df637043e08c422e5340fb2fa
/doc-generator/tests/test_version_added.py
371248b7cdd202734680a6c07845031ccbf675b1
[ "BSD-3-Clause" ]
permissive
digideskio/Redfish-Tools
4a4a4e61bb617d04643c304a5ed7ca40c015935d
9b6597225647f447519cdc6011166c1ed6b6e415
refs/heads/master
2020-04-23T06:39:24.956353
2019-02-07T21:34:45
2019-02-07T21:34:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,490
py
# Copyright Notice: # Copyright 2018 Distributed Management Task Force, Inc. All rights reserved. # License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-Tools/blob/master/LICENSE.md """ File: test_version_added.py Brief: test(s) for correct detection of "Version Added". """ import o...
[ "afarrell@secondrise.com" ]
afarrell@secondrise.com
cb578ad64b97aa30543f73ee4a63efd055b2b249
6331677339411ef3bcdd08d6de6b42c662354ca8
/com/subhash/hackerrank/ai/botbuilding/BotSavesPrinces.py
000e4751cf1f3d0c34ec37bc941d7a84afae72f7
[]
no_license
subhashtodkari/py_tutorials
6183dc5b8459f26f8a3b39af14615a13201d113d
7ca63dbf8f34c96d92c92107794bfa6578f51d1f
refs/heads/master
2020-07-06T16:08:50.433461
2020-07-05T13:38:05
2020-07-05T13:38:05
203,076,411
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
def displayPathtoPrincess(n, grid): mX = int(n / 2) + 1 mY = mX # print("{}, {}".format(mX, mY)) for i in range(1, n + 1): line = grid[i-1] lineLne = len(line) if line[0] == 'p': pX = 1 pY = i elif line[lineLne - 1] == 'p': pX = n ...
[ "subhashtodkari@gmail.com" ]
subhashtodkari@gmail.com
bdf4dbf77e299f9f907fbfee7fb51c087cc5d369
af42e539576474a634815d06397120fb5ffa87a4
/Q6.py
005d82500b056cc5e9627ebe909833e5dff5ad0a
[]
no_license
laithtareq/Quiz
11b22ae222594d80f8be45ada29f08393b8ad860
d540d6fb103c43a8abaa8e640e1897163914db73
refs/heads/master
2022-12-28T11:26:07.848560
2020-10-03T12:36:10
2020-10-03T12:36:10
297,966,393
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
''' Question 6 The fractional_part function divides the numerator by the denominator, and returns just the fractional part (a number between 0 and 1). Complete the body of the function so that it returns the right number. Note: Since division by 0 produces an error, if the denominator is 0, the function should re...
[ "laith96.t@gmail.com" ]
laith96.t@gmail.com
677d130c4fd8ad52ce8ea7898bfb1738ec5fb4db
529c3dd901bd15118b73cefb2f418ad451fdd913
/pyqt/bilesenler.py
0306a2f01277dfecf3df9a10816569a5fab4de48
[]
no_license
sevketcakir/bbgk2020
080b86c01c31dfd781a013365eecded31f61e6af
87b61ea1844262c240e1c520a8a3a6299029c65c
refs/heads/main
2023-02-13T13:48:59.065059
2021-01-05T08:40:28
2021-01-05T08:40:28
307,322,553
0
0
null
null
null
null
UTF-8
Python
false
false
358
py
from PyQt5 import uic from PyQt5.QtWidgets import QMainWindow, QApplication class UI(QMainWindow): def __init__(self): super(UI, self).__init__() uic.loadUi('bilesenler.ui', self) self.cinsiyet.addItems(['Kadın', 'Erkek']) self.show() if __name__ == '__main__': app = QApplica...
[ "cakiaccounts@gmail.com" ]
cakiaccounts@gmail.com
fc13bca1882e5fb5e2d69812e298f8a8ac00c19f
1244d7d75a8bee555af4f1cecefe1890c93d8766
/h.py
382e8955d9028f64d786f025ad3925d7de01c885
[]
no_license
puspita-sahoo/hacker_rank
7725e3e6722ac4716dccac3b86e3a18aa73b846f
d5a9e0aff78d07a2474918303b82b33fc02598c9
refs/heads/master
2023-07-29T14:55:04.435766
2021-09-13T17:06:57
2021-09-13T17:06:57
406,060,730
0
0
null
null
null
null
UTF-8
Python
false
false
936
py
class Person: def __init__(self,initialAge): # Add some more code to run some checks on initialAge if initialAge > 0: self.age = initialAge else: self.age = 0 print("Age is not valid, setting age to 0.") def amIOld(self): # Do some...
[ "puspita.private@gmail.com" ]
puspita.private@gmail.com
53942ff921d2764c52d3a2d1043a07453d184706
67ee4c88350d376efdb5c561d701b347cf02ac36
/uncleloader/transform_tmp.py
9f43fae71d79ac93284550cd9e047047f039f463
[]
no_license
SCP-173-cool/uncleloader
de2003a73c1689be986e10066d63b514673f2c7c
e41b2dbe60d73812b064b7e5569bbe43c79ee9a2
refs/heads/master
2022-11-09T19:12:35.325562
2018-10-26T06:28:42
2018-10-26T06:28:42
150,403,408
4
1
null
2022-10-26T20:30:59
2018-09-26T09:38:24
Python
UTF-8
Python
false
false
4,300
py
# -*- coding: utf-8 -*- """ Created on Wed Sep 26 18:06:36 2018 @author: loktarxiao """ import numpy as np import cv2 import random paddings = {'z': cv2.BORDER_CONSTANT, 'r': cv2.BORDER_REFLECT_101} interpolations = {'bilinear': cv2.INTER_LINEAR, 'bicubic': cv2.INTER_CUBIC, 'nearest': cv2.INTER_NEAREST} def _apply_...
[ "scp173.cool@gmail.com" ]
scp173.cool@gmail.com
acd418a40b6482a37dd5aa799b76f3af35162cad
74720302705a7582ed6df2f2513fd0efaf94851b
/src/pymessagebus/_messagebus.py
c5b6da8beae2edbd7db9f995d6780856bf45c617
[ "MIT" ]
permissive
laukamp/pymessagebus
c4218891d33898e712c8be861c79dfe11fbc63e8
5860dce85a30455cd04f34fbeb3eca433c931dbb
refs/heads/master
2021-09-24T00:42:15.195119
2018-09-30T22:58:15
2018-09-30T22:58:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,010
py
from collections import defaultdict import typing as t import pymessagebus.api as api class MessageBus(api.MessageBus): def __init__(self, *, middlewares: t.List[api.Middleware] = None) -> None: self._handlers: t.Dict[type, t.List[t.Callable]] = defaultdict(list) self._middlewares_chain = self._g...
[ "olivier@rougemine.com" ]
olivier@rougemine.com
93f3fe2d44390bb3ee1652a7fd897636bdcf3618
ef045d6f8c4cfd57783c05031471fc2cb8a893c6
/Hw5/likehood.py
d3e820eb52e6ea871bc9ec7031ead307480cfa9e
[]
no_license
MartinIMR/NLP
d2400a9aed250963a520a5aa9f566b078b9693fb
aef181af5766c4a696db0f9b211e92df1c90f574
refs/heads/master
2020-07-12T11:46:03.908437
2019-12-05T07:41:16
2019-12-05T07:41:16
204,811,944
0
0
null
null
null
null
UTF-8
Python
false
false
2,986
py
import nltk import numpy as np def load_data(file_name): from pickle import load input = open(file_name,"rb") data = load(input) input.close() return data def obtain_vocabulary(articles): text = " ".join(articles) tokens = nltk.word_tokenize(text) vocabulary = sorted(set(tokens)) return vocabulary ...
[ "martin.mimr@gmail.com" ]
martin.mimr@gmail.com
7d9f3aef2fbc3cfed4fd88318a5795b3e7bda781
a2da457b874d305c8b4c97ea1ea5ee0a289aa96e
/ejecucion1.py
f3903cdb9f3e0dd8aa8b33d13bda62568fa1cbf1
[]
no_license
capidani/TFG
3579328d4fa9237a907dd83864a9128c473dd713
8809d0cad28d72c26354bd086ed5f4a96eac2e7c
refs/heads/master
2021-01-01T04:04:17.911246
2017-08-21T06:48:02
2017-08-21T06:48:02
97,119,158
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
import numpy as np import matplotlib.pyplot as plt # display plots in this notebook #%matplotlib inline # set display defaults plt.rcParams['figure.figsize'] = (10, 10) # large images plt.rcParams['image.interpolation'] = 'nearest' # don't interpolate: show square pixels plt.rcParams['image.cmap'] = 'gray' # ...
[ "danielcapitanlopez@MacBook-Pro-de-Daniel-2.local" ]
danielcapitanlopez@MacBook-Pro-de-Daniel-2.local
a20506a5babd07a07115c1c7769e74271b52356c
c6194deac4c0aab6a1aac1de08a78897c6e07430
/tcp_server1.py
8863c00e97c57a12c437c109ed86180de8dea843
[]
no_license
d-sato2/PepperSocket
2347bbf04f9f4e7aa929d06e361dc500ba67101d
5e86afd1bee249410cda6645683f0318f30f4b2d
refs/heads/master
2020-12-24T18:50:48.758758
2016-04-15T01:31:40
2016-04-15T01:31:40
56,220,408
1
0
null
null
null
null
UTF-8
Python
false
false
836
py
from __future__ import print_function import socket from contextlib import closing import datetime def main(): host = '192.168.1.179' port = 4000 backlog = 10 bufsize = 4096 now = datetime.datetime.now() mili = now.strftime("%Y%m%d%H%M%S.") + "%04d" % (now.microsecond // 1000) print (mili) ...
[ "daisuke.satou2@e-harp.jp" ]
daisuke.satou2@e-harp.jp
6272820bf35b5e435d6c1b6caa1a5391eaa7f81a
178c12bcfff6100d68b07ff6666b34e474d670b9
/numpy_dir/numpy_code.py
618693b8605b62a5c7c2dfad571ef8e1c6c47cfd
[ "MIT" ]
permissive
rongliangzi/review_your_python_code
e70d604f3d8fe613213ae745a3f2d8a6950d886c
5b429422a14117edfa7c1d6bd27586efd5f0554a
refs/heads/master
2020-05-24T09:52:19.037248
2019-06-07T12:26:32
2019-06-07T12:26:32
187,216,055
4
1
null
null
null
null
UTF-8
Python
false
false
3,203
py
# encoding: utf-8 """ @author: Liangzi Rong @contact: 289770334@qq.com """ import time import numpy as np import sys # 顺序读取效率 def get_np_list(size=(200, 100), iteration=100): np_matrix = np.arange(0, size[0]*size[1]).reshape(size) list_matrix = [[i*size[1]+j for j in range(size[1])] for i in range((size[0]))...
[ "289770334@qq.com" ]
289770334@qq.com
6b6c96040720436d156488cae64c337265f073ad
a49e8de43e4c9293de92b542fb96954e55e0e70d
/test_autoui.py
e97a5b5a84e6f901ec72c678cef8fa846f116296
[]
no_license
tianxue1129/tx
98e0b138dc296af28d7da22e44c20c40fae63500
037de465c0dee0fe2ff84daa516fe919f4db593a
refs/heads/master
2023-02-12T06:10:31.220676
2021-01-10T10:18:20
2021-01-10T10:18:20
326,430,857
0
0
null
null
null
null
UTF-8
Python
false
false
1,410
py
import pytest from time import sleep from selenium import webdriver def test_main(): # 创建webdriver实例对象 wd = webdriver.Chrome(r'd:\chromedriver.exe') wd.maximize_window() wd.implicitly_wait(5) wd.get('http://web4tst.dogotsn.cn/supplier/pages/login.html') sleep(1) wd.find_element_by_name('us...
[ "wenxindexuetx@163.com" ]
wenxindexuetx@163.com
4ca86bb778fd36f53883880894e2099c2a4fc0a9
899f9a470794c741478e50304f9057b073c533ad
/RealBE.py
ff9623f683e7863f7c09dc5c0cb26b9a416988be
[]
no_license
SachitShroff/CalHacks4-processing
cbe877dbc0c43d4075d99513f34f51f6516a13d8
95f3336ecc7a025cadc7db6ae3881c700cc4aabe
refs/heads/master
2021-07-09T15:40:29.144337
2017-10-08T17:34:35
2017-10-08T17:34:35
106,084,021
0
0
null
null
null
null
UTF-8
Python
false
false
8,346
py
from google.cloud import speech from google.cloud.speech import enums from google.cloud.speech import types import time import os import urllib2 import timeit import json import requests import httplib import google.gax.errors A_CLASS_NAME = "61A" #TODO: SET FINAL CLASS NAME B_CLASS_NAME = "61B" #TODO: SET FINAL CLASS...
[ "sachit.shroff@gmail.com" ]
sachit.shroff@gmail.com
2cacd8a9325db31a6a26faf26f05f6263f778e9c
2aaa47d425662314e8c283c9ba3e720889d8f07e
/script/config.py
2bd8b14357c723e21d7c6586053c9c75f8e2d091
[ "MIT" ]
permissive
youngspring1/Parse12306
ca903786ae1c4b0f27d37d8b2dc66b6804e31e67
09614e287853989573fa303b91ec1e673c818a74
refs/heads/master
2021-05-11T20:00:20.007838
2018-01-14T14:27:24
2018-01-14T14:27:24
117,429,115
16
9
null
null
null
null
UTF-8
Python
false
false
65
py
# mongodb db_host = 'localhost' db_port = 27017 db_name = '12306'
[ "xuyc@touzhiwang.com" ]
xuyc@touzhiwang.com
4c2986b068e75e8ac4291076722d55fe4d52745f
ae657ab18358ba7d54769b83dab58269fb6f30e8
/DistilBert/model/no_BERT_MTL.py
3e0778d26bc0f1937a73e4978ef08bdb141b82fd
[]
no_license
jailbreakaaaa/MTL-DistilBert-CNN
b3b02cb9695646f7451f5855c29c539e0e885e79
837c6a576695433604e9d0fa9a25cfee00837872
refs/heads/master
2023-06-26T15:37:40.932524
2021-07-14T09:07:45
2021-07-14T09:07:45
385,863,635
2
0
null
null
null
null
UTF-8
Python
false
false
16,612
py
import torch import torch.nn as nn import torch.nn.functional as F import math import pytorch_lightning as pl import numpy as np from transformers import AutoModel, AutoTokenizer # class get_embedding(nn.Module): def __init__(self, args): super(get_embedding, self).__init__() self.args = args ...
[ "43905277+jailbreakaaaa@users.noreply.github.com" ]
43905277+jailbreakaaaa@users.noreply.github.com
93307e57c171d6735b35433ae3686998b93ed784
66c732374449a15f4f002459a869cd68636e19d6
/courses/migrations/0004_auto_20200628_1719.py
2becb5605bae77913e75bbdeaa7a1aecb0aaf702
[]
no_license
Sujit115/DjangoWebRepo
54d6a3410ef9e24af0505b1796d820ca7d549a4d
5546fa18e5e236705cdfab996b4aea71e20fc24d
refs/heads/master
2022-11-22T11:28:14.331086
2020-07-21T18:25:38
2020-07-21T18:25:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,081
py
# Generated by Django 3.0.7 on 2020-06-28 17:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0003_classcontent_subject_name'), ] operations = [ migrations.AlterField( model_name='classcontent', name...
[ "oscarmike286@gmail.com" ]
oscarmike286@gmail.com
a4a5d7c166a9d300707f6a1c1407b5a9c15b1ace
14e3a6d5d5ef1a7fc576c0670361fc908630b495
/python/clx/eda/__init__.py
f5615c081f99808a87e4ee8d070f7f3c2db6964d
[ "Apache-2.0" ]
permissive
rapidsai/clx
3b6e49b53704de7f81fcd923ae88148a6ed5f031
68c14f460b5d3ab41ade9b2450126db0d2536745
refs/heads/branch-23.04
2023-05-25T09:37:15.553353
2023-05-19T16:07:00
2023-05-19T16:07:00
186,716,715
169
93
Apache-2.0
2023-05-19T16:07:02
2019-05-14T23:47:32
Jupyter Notebook
UTF-8
Python
false
false
42
py
from clx.eda.eda import EDA # noqa: F401
[ "noreply@github.com" ]
noreply@github.com
d4f6b8b6a9dbdc67fbd6571ac93cc66ea53e0867
1d22f82abc38dd85a844cb6a19ec83ffae2a434d
/experimental/socket_test.py
6cf9425c7fc13a617f4424a30cbd6e0fade911e0
[]
no_license
pbarton666/learninglab
c4d5602d148618ee2848a4954d8d93eae24be9ef
f2ad15b77aefcf65bd19e00f3f61687b4f13b737
refs/heads/master
2022-12-14T05:55:33.346925
2021-07-13T17:21:42
2021-07-13T17:21:42
84,211,135
2
3
null
2022-12-08T06:51:28
2017-03-07T14:52:08
Jupyter Notebook
UTF-8
Python
false
false
78
py
import socketserver s=socketserver.BaseServer(1,2) import socket, socketserver
[ "pbarton@SEB01.COM" ]
pbarton@SEB01.COM
8afff7ef51720353c451541ed3d0512f11363eb5
edc0ce5e5312392fcffdc578f0f3d63b48264c93
/bin/chardetect
ffeab36972b52aa626de82eb576c84e71536a21a
[]
no_license
peytondodd/mugshots-cli
2867a7cfc8e62d83a5cf1f73e1bcde926ae1ac26
279c69065d5aa6c73a145f57687657c6124404f8
refs/heads/master
2020-07-27T13:26:04.604491
2019-08-21T22:00:34
2019-08-21T22:00:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
255
#!/Users/home/Projects/mython/mython/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())
[ "zacharytepic@gmail.com" ]
zacharytepic@gmail.com
8f40ef9482f347822d768b8d3cdfbf7aa02c70ab
244e81a34a40db489e33f506f118f20c2b4109c1
/scripts/__init__.py
d80acb6381bdb5c74938ea011e7b1871b69235b4
[]
no_license
cyberbikepunk/archive
945e50ef2c870c31389b68c9e5b161e9e78b6917
fc33ce6645628a91601c0300390d9f6a0bd01338
refs/heads/master
2021-01-20T18:40:18.867066
2016-07-24T18:01:46
2016-07-24T18:01:46
64,078,388
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" This module pulls all the ETL scripts together in one place. """ from scripts.uk_drivers_sync_police import load_into_warehouse from scripts.german_payroll_wizard import produce_delivery_count_table all_scripts = { 'sync_police': load_into_warehouse, 'payroll_germany': produce_delivery_count_table } d...
[ "loic@cyberpunk.bike" ]
loic@cyberpunk.bike
7d5d1ab8699c782798a9997fa32dd09d21c2226c
b59cb56a8427f5abbcfa83f14133b150d40f4c34
/LeetCode/Python3/symmetric-tree.py
7452c2a322147496bc25d58baf79e141c25a52f4
[]
no_license
eudaemonic-one/Lifelong-Learning
95311699b531d65db8f8d10e108c2af26c82a8d5
0c0e13fe3f429158d4ff6ece903253176675a6b5
refs/heads/master
2023-07-16T15:43:29.460487
2021-08-23T19:32:17
2021-08-23T19:32:17
191,079,025
43
5
null
null
null
null
UTF-8
Python
false
false
1,017
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 isSymmetric(self, root: TreeNode) -> bool: queue = [root, root] while queue: t1, t2 = queue.pop(0), queue...
[ "brookcui97@gmail.com" ]
brookcui97@gmail.com
c9b5896507f9ebed9f80e3a70c1f2a839c06dffc
220ac20b650538fcd9bca971a7c4c2fad665dc78
/gui.py
dbc5e15da0b35028c3b6da357b8fe7f34d31f61b
[]
no_license
Dennis-who/Simple-chat-system
735a9fc0fcd2649df30b5ad6ba53aa73d44adac6
3180716d080b7dd0ba711d7be10ce98918e3f5a0
refs/heads/main
2023-07-09T17:35:53.821721
2021-08-05T16:50:00
2021-08-05T16:50:00
393,113,207
0
0
null
null
null
null
UTF-8
Python
false
false
10,256
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu May 14 09:36:07 2020 @author: zhangyumeng & zhouyuewen """ import tkinter as tk import tkinter.messagebox #import pickle import time from chat_utils import * import chat_client_class as chat_client import argparse import threading parser = argparse.A...
[ "noreply@github.com" ]
noreply@github.com
925db904b3e3bce5fd3d07069328ae9b575f7401
1e99d202f94d26d8af5405a8c8284a5ffc345bba
/user/models.py
09b73ff470a86207cf8f06d317e689aca1d5b450
[]
no_license
madlad33/drf_pythonmate
889b6a057ab9ac60b1e1138c2eb4ebc96d873e7c
0b47ed41e847b0e0a7920e008867cdf971bddd6c
refs/heads/master
2023-02-18T09:02:35.313419
2021-01-11T17:03:19
2021-01-11T17:03:19
328,583,038
0
0
null
null
null
null
UTF-8
Python
false
false
1,088
py
from django.db import models from django.contrib.auth.models import AbstractUser from django.contrib.auth.base_user import BaseUserManager # Create your models here. class UserManager(BaseUserManager): def create_user(self,email,password=None,**extrafields): if not email: raise ValueError("Emai...
[ "tanmay.milky33@gmail.com" ]
tanmay.milky33@gmail.com
eb56f7f4c91d2c693b5a4daae68f5e75b7997b80
6622f5a6bb4b2b7c2c20be57af51f0800ea532d6
/blog/urls.py
2248d6e08e21eb81b77b5eef51a5e372945d4fe7
[]
no_license
kenichikawaguchi/my_second_blog
f14e760756fe15a091922e3060c6fc41bc0d9e5b
df9e2974147a6ae8b384b1ede39b1190246045f6
refs/heads/master
2020-04-16T10:47:00.067831
2019-01-19T00:30:56
2019-01-19T00:30:56
165,516,725
0
0
null
null
null
null
UTF-8
Python
false
false
775
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('drafts/'...
[ "xianzaikaishiba@gmail.com" ]
xianzaikaishiba@gmail.com
691ef5198f3ad92abf4d5c6852d3b1a73022750f
1cedf10cef4b37d38386232d066f3260570c0758
/squery/repbin/get_md5_url.py
db4d749a7b47a9f3ad28b8f11fa318e7858aab58
[ "Apache-2.0" ]
permissive
seahurt/OGSManage
eab799ebab00fc6cf1b1f849229cb50a3af498b5
65b37ec31d979cc8fc886d0f13bfe8043e898adb
refs/heads/master
2021-09-05T09:24:06.235617
2018-01-26T02:26:53
2018-01-26T02:26:53
113,641,711
0
0
null
null
null
null
UTF-8
Python
false
false
2,067
py
# -*-coding:utf-8-*- # !/usr/bin/env python # Author : Jiucheng # Email : chenjiucheng@1gene.com.com # Last modified : # Description : # update : 2017/5/26 import hashlib import requests # import logging from retrying import ...
[ "haozi.vv@gmail.com" ]
haozi.vv@gmail.com
cf42af40c4c65693b1a172c9c045c8f026c1b200
fbac1fc19ca5736aa2ed4a8d846760bec35d9ec6
/django_tutorial/modules/Borrow.py
6db032a63b7f984b1bceebc7e60957551bcdfc57
[]
no_license
dsmsfans/Router
390984b0ee1045d13f55f8935d4a974ce3a23a36
c685d50c799abadc8405c7bb64df7781cab08587
refs/heads/master
2020-03-27T02:41:02.178550
2018-09-04T06:22:09
2018-09-04T06:22:09
145,810,417
0
0
null
null
null
null
UTF-8
Python
false
false
933
py
import pandas as pd import time pd.set_option('display.max_columns',None) pd.set_option('display.max_rows',None) data = pd.read_excel('Borrow.xlsx') Title = ['時間戳記','Brand','Model','Name'] borrow_list = [] def Insert(): #Time local_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) ...
[ "aaa40066@gmail.com" ]
aaa40066@gmail.com
626cf71c48464cb893de5a9ed1725d4cb7e0a2be
ffa2c5f5a3c5d55edd02d7bff0c1b2ef89051e31
/src/autobahn/statistics.py
288819c9312eba656dfa67dd779b70f34ca4070c
[ "MIT" ]
permissive
nnguyen19/Autobahn
946269cb9a073dd5a5eec62cccebb13fab655ab9
7833c70394311dfdb3a1e870988c39fde5a15447
refs/heads/main
2023-03-19T23:32:04.487815
2021-03-09T03:05:19
2021-03-09T03:05:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,860
py
"""Utilities to compute statistics on the datasets.""" import collections from typing import Dict, Mapping, Tuple import numpy as np import torch import torch.utils.data import torch_geometric.data import tqdm from autobahn import decompositions, utils def _update_append_dictionary(accumulator: dict, update: dict)...
[ "wz2247@nyu.edu" ]
wz2247@nyu.edu
b67c766d3fb4b8a6075ff3866004f62ed4a8b3d9
5bdcc62a5b51d8da7f5fce71b5adeb919a2da7cd
/爬虫编程/案例集合/05/练习实例63.py
8879969cf5d504d87fb2fd34c2f004adcb713736
[]
no_license
kingofnorth1/python
ffbde81342a74d4d20c8a2e2e303c270968709ad
f20f014984f4cd1d56443b62df32549d798c693b
refs/heads/master
2023-09-03T02:17:21.962256
2021-11-14T02:08:33
2021-11-14T02:08:33
422,926,545
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
""" 题目:画椭圆。  画椭圆。 #!/usr/bin/python # -*- coding: UTF-8 -*- if __name__ == '__main__': from Tkinter import * x = 360 y = 160 top = y - 30 bottom = y - 30 canvas = Canvas(width = 400,height = 600,bg = 'white') for i in range(20): canvas.create_oval(250 - top,250 - bottom,250 + ...
[ "344423164@qq.com" ]
344423164@qq.com
9a5c1c8d4f358589a5a518cc0e191b06f084541c
a2e638cd0c124254e67963bda62c21351881ee75
/Extensions/Accounting/FPythonCode/FAccountingRollForward.py
aadcf523a93669d6ecde20daab2b4b7f22aa7ead
[]
no_license
webclinic017/fa-absa-py3
1ffa98f2bd72d541166fdaac421d3c84147a4e01
5e7cc7de3495145501ca53deb9efee2233ab7e1c
refs/heads/main
2023-04-19T10:41:21.273030
2021-05-10T08:50:05
2021-05-10T08:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,284
py
""" Compiled: 2020-09-18 10:38:46 """ #__src_file__ = "extensions/accounting/etc/FAccountingRollForward.py" # operations from FOperationsCollectionUtils import PopObject # accounting from FAccountingEngineEOFY import IAccountingEOFYEngine from FAccountingCreation import CreateRollForwardJournals from FAccountingPai...
[ "nencho.georogiev@absa.africa" ]
nencho.georogiev@absa.africa
4f6edf20cdebe577b8864010fef1e297df7d682c
e18a353582609732c795401f1a01bc762bd939f2
/top/python/test_reweighting.py
091f786c198a373f5f95cb41e3770088680d9081
[]
no_license
s-farry/workspaces
06741807bb464bb0712d52108c2d1b7ae62b1353
0dcf3868dcbe110206ea88ff5c9e04a3b44b1ca1
refs/heads/master
2020-04-03T00:45:39.152227
2017-06-15T16:33:33
2017-06-15T16:33:33
64,213,815
0
0
null
null
null
null
UTF-8
Python
false
false
13,370
py
from Jawa import MWTemplate from ROOT import TFile, TTree, TCut, TPaveText, TLine f = TFile("/user2/sfarry/workspaces/top/output.root") t = f.Get("topTuple") mwt = MWTemplate("top_eft") mwt.AddTree(t) mwt.ApplyCut() mwt.AddVar("top_rap", "abs(top_rap)", 50, 0, 4) mwt.AddVar("antitop_rap", "abs(antitop_rap)", 50, 0, 4...
[ "sfarry@hep.ph.liv.ac.uk" ]
sfarry@hep.ph.liv.ac.uk
f2c507fa9170a3c812dc51c78d62b2998c90f32a
f46a4661d391b99ca59e9506602640e2246e10e2
/app.py
06bf7efc15b69c0b2801e47c8fb11623caa4bcf8
[ "MIT" ]
permissive
zcbrand/sdev300flaskapp
11726eb55ec294e7f5c297525044660e74dd6dfc
e28ed03b4d765d5c39ebc96ba911ac7ce142d3d3
refs/heads/main
2023-04-20T05:28:34.174652
2021-05-12T00:56:42
2021-05-12T00:56:42
361,536,948
0
0
null
null
null
null
UTF-8
Python
false
false
5,808
py
""" Author: Zachary Brandenburg """ import secrets from datetime import datetime from flask import Flask, render_template, request, flash, redirect, session from auth.login import valid_login, user_exists, register_user, complexity, \ password_is_not_common, reset_password, matches_last_password app = Flask('sd...
[ "zac@zacharycraig.com" ]
zac@zacharycraig.com
36b8165874527ec6b6a038f2526a3b40284cad6c
80075edf813fa1c7ef3126b153e7ab2f6c42f0be
/xml/Reading_XML_File_From_Python_Code.py
992076a09487b050d0949ebe21ed811ab5e7f2c2
[]
no_license
keshavkummari/python-nit-930pm
a7e16701d981145f8fdc27e741169ef76616bc8a
aa3bb7654c091e3d04098483525768e287604c38
refs/heads/master
2020-04-01T15:00:20.366890
2018-11-29T17:14:41
2018-11-29T17:14:41
153,316,831
0
0
null
null
null
null
UTF-8
Python
false
false
1,404
py
# A simple XML file, later parse it with Python minidom. ''' staff.xml <?xml version="1.0"?> <company> <name>Mkyong Enterprise</name> <staff id="1001"> <nickname>mkyong</nickname> <salary>100,000</salary> </staff> <staff id="1002"> <nickname>yflow</nickname> <salary>200,000</salary> </staff> ...
[ "keshav.kummari@gmail.com" ]
keshav.kummari@gmail.com
073d78c72797a498ee7bb2d1df9ab5ad1b900dad
47c3cd8a60943f5d6d78afdfb399adc599b92840
/milk.py
a95551bffb3b6526872e2be60fbac769ab162d4a
[]
no_license
den4uk/milkman
30d071787a4af253eb307513db2226bd3161b0d0
464281ac799621fc03cc2f77c38c3d0b0b2ed991
refs/heads/master
2021-09-23T17:41:38.106055
2018-09-25T21:21:30
2018-09-25T21:21:30
116,485,577
0
0
null
null
null
null
UTF-8
Python
false
false
8,025
py
from flask import Flask, request, render_template, session, redirect, url_for, flash from flask_mail import Mail, Message from functools import wraps from datetime import timedelta, date from itertools import cycle, count from collections import OrderedDict from passlib.hash import sha256_crypt from flask_sqlalchemy im...
[ "den@saz.lt" ]
den@saz.lt
1f874d56c7ddd52297a1017d98f80668658e6bcc
08a059f91391dabf51ca015c1658e91e597b9dfb
/combineDatabase.py
7ec0a7e328b12ffacb6e43af6a8f55b8f18a6c30
[]
no_license
xiahuadong1981/DenseNet_centerloss-CapsulNet-InceptionV3_use
da7025fb467093744ea28400a9b7d6c3e431b184
2ca78db213f20950752a0782fc1d9af378ef5de0
refs/heads/master
2020-06-29T19:40:55.467871
2019-03-02T10:10:01
2019-03-02T10:10:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,826
py
# coding=utf-8 import os import shutil # 得到库的所有不同手指文件夹的路径 def get_folder_dir(path): folder_dir = [] for root, dirs, files in os.walk(path, topdown=False): for name in dirs: # print("image:", os.path.join(root, name)) folder_dir.append(os.path.join(root, name)) ret...
[ "wdongdongde" ]
wdongdongde
bab242cced1e1ad5251f1876544fa92f2c8f4c73
8ee5dcbdbd407eb5f294d430813b16eca22f571c
/data/HW3/hw3_359.py
802a68fe38d1f46796648e9870bd99992298710a
[]
no_license
MAPLE-Robot-Subgoaling/IPT
5e60e2ee4d0a5688bc8711ceed953e76cd2ad5d9
f512ea3324bfdceff8df63b4c7134b5fcbb0514e
refs/heads/master
2021-01-11T12:31:00.939051
2018-08-13T23:24:19
2018-08-13T23:24:19
79,373,489
1
1
null
null
null
null
UTF-8
Python
false
false
1,070
py
temp = float(input("Please enter the temperature: ")) scale = input("Please enter 'C' for Celsius, or 'K' for Kelvin: ") MELTING_POINT_C = 32 BOILING_POINT_C = 100 MELTING_POINT_K = 273.15 BOILING_POINT_K = 373.15 def main(): if scale == "C": if temp >= 0 and temp < MELTING_POINT_C: ...
[ "mneary1@umbc.edu" ]
mneary1@umbc.edu
4c9ccd62216fb7af1a4b09ae50e4c1f46c8b7d2a
d50ca2e1baee9c8dc0c14e11145e21030003f89d
/main.py
ed5681e307ecb529e726fe835841e98a8741895b
[]
no_license
Team1559/Vision2018
0f7d626c3ca142c222fe600eceb29a968e1425ff
1da67d2127bc06daf06e296e1793b04d25ad6111
refs/heads/master
2018-11-04T17:10:40.481269
2018-02-18T19:39:00
2018-02-18T19:39:00
117,614,953
0
0
null
null
null
null
UTF-8
Python
false
false
769
py
import cv2 import numpy as np import stereo import server import LEDFinder import cubeFinder import calc import usb import PID camera = usb.USBCamera(0) #cameraR and cameraL #cubes = stereo.Stereo(cameraR, cameraL, 8) #lights = stereo.LEDStereo(cameraR, cameraL, 8) cube = cubeFinder.CubeFinder(camera) target = "...
[ "wdmerges@gmail.com" ]
wdmerges@gmail.com
1c13c144a468c1cbf0319fc908921f463ab44ab4
986f86d754d93729533f0d96bfd08cea83f8a497
/results_script.py
8c83445eeacf6d70e29d1f601304e22c8cc6a9e6
[]
no_license
vidhartbhatia/somnia
dd1f7507a1ebc3fb1dad1f7b60da0b696ff9250a
f8297c8497a14e27608b7a1db737ac6344b4c535
refs/heads/master
2022-07-18T05:50:13.451979
2020-05-13T04:01:26
2020-05-13T04:01:26
255,775,565
0
0
null
null
null
null
UTF-8
Python
false
false
1,194
py
# importing csv module import csv import datetime import time import statistics import os import pprint import numpy as np pp = pprint.PrettyPrinter() pprint = pp.pprint folder_name = "Test_var_agg" file_name = "meds 5-12/51234" ROW_LIMIT = None # set to none if want all # initializing the titles and rows list ...
[ "medhapotluri@gmail.com" ]
medhapotluri@gmail.com
559da7f533a0595e47899cdeb1079e5f659d4a17
a5b3fe8308a6206f9e0fb21ba8cd08e239ade60a
/dotpy_implementation/functions.py
8e498a1d58a8d2872c4803361dead853fc27b7cb
[]
no_license
jakelourie1502/Connect4
95a69d956bece6df9e0ed065eff924ee52032e5d
978667786cd03e8ac13bc48740b75208d220ebc3
refs/heads/main
2023-08-16T11:22:15.473734
2021-10-08T15:44:32
2021-10-08T15:44:32
415,041,821
0
0
null
null
null
null
UTF-8
Python
false
false
4,622
py
import numpy as np from IPython.display import clear_output from tabulate import tabulate import copy import time import torch from torch.nn import Linear, ReLU, Softmax, Sigmoid from model_and_dataloader import Linear_Model, Dataset def training_loop(model, training_epochs, games_per_epoch, mcts_search, batch_size, ...
[ "jakelourie1502@gmail.com" ]
jakelourie1502@gmail.com
1dc64fad675de185f0f91ac6e71d954af38ebb21
ba444d59bc744645a5af48a7c5788db23c69c121
/project/views.py
1cfe876c68ed331540d10f317178b3f507e27996
[]
no_license
baloram-roy/tracking_app
bd7a5af1ee71bb303e1f1d1e13b296203eb69c06
6fa5846b5d19ccf2508e545d45e5d9c1ad5cb4db
refs/heads/master
2023-08-28T20:29:01.673969
2021-10-24T17:59:02
2021-10-24T17:59:02
412,880,500
0
0
null
null
null
null
UTF-8
Python
false
false
5,660
py
# import from python: from datetime import datetime, timedelta # import from django: from django.shortcuts import get_object_or_404, redirect, render from django.contrib.auth.models import User from django.urls.base import reverse_lazy from django.views.generic import ListView, CreateView, UpdateView, DeleteView, De...
[ "baloramroyram@gmail.com" ]
baloramroyram@gmail.com
bdfe96afd844c8fdacaf562d9acad3dcc65138ff
d854df66e28a4a870ef95ba816087f1fce704619
/02 Vannucci/03 Magnet_curr_bias_lockin/Sub_Scripts/GUI.py
7bef74b84b01f1c5928b5a61f164f27b22836413
[]
no_license
Brucewanghahei/QMD_Custom_Program
7c93020027872856ece2bcb1cb6a91c0abe0d7d4
ef5015194ac070e49676c3f6cbc8d3bd9ce0ba99
refs/heads/master
2021-08-31T16:03:29.919885
2017-12-22T00:53:07
2017-12-22T00:53:07
115,059,992
0
0
null
null
null
null
UTF-8
Python
false
false
49,744
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'GUI.ui' # # Created: Sun Jul 31 15:33:31 2016 # by: PyQt4 UI code generator 4.11.3 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 exce...
[ "qw68@duke.edu" ]
qw68@duke.edu
0e95a6a91e5b22b1b26ace811080c9100aae1997
8a1650940b9d1a136c61faaec6bb77fba5310d26
/application.py
7fe2f78601febb29ec53ff1c4165117c3f8b31ef
[]
no_license
garthtee/flask-api-foundation
82c45a882a6a2f263ea6cd4e13470cff8779332b
685408b0b34efb4ce712377a0883e4cd1f00f8a5
refs/heads/master
2023-02-09T10:33:51.911052
2019-06-09T18:33:51
2019-06-09T18:33:51
191,041,727
2
0
null
2023-02-02T06:29:01
2019-06-09T18:33:38
Python
UTF-8
Python
false
false
205
py
import os from api.app import app if __name__ == '__main__': app.debug = True host = os.environ.get('IP', '0.0.0.0') port = int(os.environ.get('PORT', 8080)) app.run(host=host, port=port)
[ "tolandgarth@gmail.com" ]
tolandgarth@gmail.com