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
49f0d8598d3691d682ad5d073f674ee884af6210
7d80898ba7fb3f1336e5344e251a62df46a5f3bb
/easy_thumbnails/tests/mockoptim.py
7e164e30c5eff1d58ab00daf219d88a118af94c8
[]
permissive
flyingelephantlab/easy-thumbnails
dffa9b87138799a7796d3ff1e5e34670eaf32ed2
5f59b9f66797f6c54c241e5910748562f59d0336
refs/heads/master
2021-05-20T17:01:59.951758
2014-07-09T13:00:57
2014-07-09T13:00:57
17,428,489
0
0
BSD-3-Clause
2020-09-21T10:04:40
2014-03-05T04:59:57
Python
UTF-8
Python
false
false
475
py
#!/usr/bin/env python import sys # This file does nothing except to open the file as specified on the command line, reading it # into a buffer and writing the same content back to the file. # This script is used to simulate the optimization of an image file without actually doing it. if len(sys.argv) < 2: raise E...
[ "jacob.rief@gmail.com" ]
jacob.rief@gmail.com
d79f5662a154f40d78134256625e3c848768ae52
32da5ff379796b0a97ee7885a5186277b434dd66
/app/repositories/product.py
4588675eacae10aa336defc107ef141f99079d0f
[ "MIT" ]
permissive
VadymHutei/ukubuka-back
0f11fa061b271530ca357e7cf6b84fa374af97b5
acd56c545b50fb65ed764c19bdd03a42be969ce4
refs/heads/master
2021-06-24T19:00:57.212722
2020-03-04T07:20:08
2020-03-04T07:20:08
219,042,002
0
0
MIT
2021-03-20T02:07:44
2019-11-01T18:34:38
Python
UTF-8
Python
false
false
1,184
py
from core import Repository from core.sql_query_builder import SelectQuery class ProductRepo(Repository): def getProducts(self, params): query = SelectQuery() query.fields( 'p.id', 'p.category_id', 'p.model', 'p.added', 'p.is_active', ...
[ "hutei@live.com" ]
hutei@live.com
7f17a2d70426f2080efb8edbe9d33f06a4593db6
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/take_point_from_few_problem/eye/bad_child.py
33037f5511eb235421a6bebd11f83729b53ba0da
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
#! /usr/bin/env python def find_good_man_on_important_life(str_arg): important_work(str_arg) print('year') def important_work(str_arg): print(str_arg) if __name__ == '__main__': find_good_man_on_important_life('same_time')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
4193669d59d702301c8a680af941436e487d83a2
d668209e9951d249020765c011a836f193004c01
/tools/pnnx/tests/test_F_silu.py
21a124a8e92bd41fafa2a6f67e6d6904f4780e51
[ "BSD-3-Clause", "Zlib", "BSD-2-Clause" ]
permissive
Tencent/ncnn
d8371746c00439304c279041647362a723330a79
14b000d2b739bd0f169a9ccfeb042da06fa0a84a
refs/heads/master
2023-08-31T14:04:36.635201
2023-08-31T04:19:23
2023-08-31T04:19:23
95,879,426
18,818
4,491
NOASSERTION
2023-09-14T15:44:56
2017-06-30T10:55:37
C++
UTF-8
Python
false
false
1,826
py
# Tencent is pleased to support the open source community by making ncnn available. # # Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the...
[ "noreply@github.com" ]
Tencent.noreply@github.com
51b14d817462d85e0370586302393e45bb08c73c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03167/s988207480.py
4a82be30d78cd2283ea05f9de6e152cb9db37709
[]
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
514
py
import queue INF=10**8 R=10**9+7 h,w=map(int,input().split()) maze=[input() for _ in range(h)] d=[[0 for i in range(h)] for _ in range(w)] sx=0 sy=0 gx=w-1 gy=h-1 q=queue.Queue() dx=[1,0] dy=[0,1] q.put((sx,sy)) d[sy][sx]=1 while not q.empty(): x,y=q.get() if (x,y)==(gx,gy):break for i in range(2): nx=x+dx[i]...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b84d858f4aa17600b5469867581765b7f8caccc6
a4bc88fe6c64f1a50822c034b015f0e0cb20e475
/bin/pip2.7
ccf21c7810645f04550b8bd35f744a8377e78e73
[]
no_license
ptascio/DORIS
aa7e23478fbb870dc14da2eb1a12232d9a1092ad
77fc73a43328dbdcd609ba9a217c2b79cc9025ce
refs/heads/master
2021-01-23T01:29:38.262934
2017-06-10T23:59:09
2017-06-10T23:59:09
92,875,571
1
0
null
null
null
null
UTF-8
Python
false
false
233
7
#!/home/ubuntu/workspace/flask_todo/bin/python # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "Administrator@Administrators-MacBook-Pro-3.local" ]
Administrator@Administrators-MacBook-Pro-3.local
92420392817d87ef383e175120625ac406cbd18b
d6971cc1772d972b4f52c1130ac0d6b3a62040f0
/test.py
bd1447e244264a73722958f4ac0f21e6164180b1
[]
no_license
robertcv/PyRecommender
08f7bc3ae86da7ccd9f1c2526d0882eb2bea9aa0
615f33ed9cc1c6c5195d7027e789e7bd543bc857
refs/heads/master
2021-08-23T20:54:33.949934
2017-12-06T13:59:53
2017-12-06T13:59:53
76,566,346
1
0
null
null
null
null
UTF-8
Python
false
false
2,114
py
from Recommender import Recommender r = Recommender() r.parseMovieDB("db/movies.dat", "db/user_ratedmovies-timestamps.dat") # print('____________________________________________________________') # r.averagePrediction(100) # print('____________________________________________________________') # r.averagePrediction(10...
[ "robert.cvitkovic@gmail.com" ]
robert.cvitkovic@gmail.com
e827dd67a53f765be086d6b0c2fc985cb7c26b89
09f54a4efddeadaad050c7834b7d0049ccd28442
/LSTM_trainer.py
07add9ef03b415b59a309e37a5e30f2bce96c575
[]
no_license
pimklaassen/GeoLSTM
7b798a33a3576023bd743d8210c700bb6af28f80
bf0872c9f4e5cdfbbf2817971f2ae9c87a21089c
refs/heads/master
2020-06-11T08:03:44.384341
2019-10-22T12:43:10
2019-10-22T12:43:10
193,899,840
1
0
null
null
null
null
UTF-8
Python
false
false
2,843
py
import matplotlib.pyplot as plt import numpy as np import sys import os import seaborn as sns from keras.models import Model from keras.layers import LSTM, Input, RepeatVector, Masking, Dropout, Dense from keras.backend.tensorflow_backend import set_session from keras.utils import to_categorical from tensorflow import...
[ "Pim.o.klaassen@gmail.com" ]
Pim.o.klaassen@gmail.com
fde33bfeecbf3dbbe09c75ba20f22c7de38830ef
5aeb13e3185fd7eaae50ae4da72766dffe37ab60
/beautiful_soup/img_scrape.py
54f7ca1a92dee425de1341bb96f495d9026410c2
[]
no_license
RedHenDev/python
f9787210e10f80eae84c7153ffc50845a92468a3
a13c75c66f031e59246f5b87cd53a33ad51f9a2f
refs/heads/master
2023-05-25T09:41:26.155720
2023-05-17T21:38:17
2023-05-17T21:38:17
212,212,352
3
5
null
2022-11-24T14:42:56
2019-10-01T22:38:38
Python
UTF-8
Python
false
false
415
py
import requests from bs4 import BeautifulSoup import os url = "https://ccc.tela.org.uk/" response = requests.get(url) soup = BeautifulSoup(response.text, 'html.parser') img_tags = soup.find_all('img') urls = [img['src'] for img in img_tags] for i, url in enumerate(urls): print('found another...') response = ...
[ "neobn@hotmail.com" ]
neobn@hotmail.com
8757120c76e640b2957970e2df698b93891257da
ce4005ce4e91cc59733a52e908cba935eb11582e
/tests/Node.py
55e3c6aaa0069b2f95d3e7959c3f0ef156b61c1f
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
Arielce/dio
a4322e0e47d9aa2bea36ac29a290290fdac8d0d3
eb8035664f605783f86b41d34006aeb9ef861f13
refs/heads/master
2020-04-03T11:35:24.038809
2018-10-29T14:37:57
2018-10-29T14:37:57
155,226,338
0
0
null
null
null
null
UTF-8
Python
false
false
55,731
py
import copy import decimal import subprocess import time import os import re import datetime import json from core_symbol import CORE_SYMBOL from testUtils import Utils from testUtils import Account from testUtils import EnumType from testUtils import addEnum from testUtils import unhandledEnumType class ReturnType(E...
[ "13821402840@139.com" ]
13821402840@139.com
c2e975c70601b92c9be4f9a71b60ce11adb22d59
ed0ec5df77066762d30c2f86f473c551b90375d6
/bin/sync.py
75c57655b0e47744b997a36619125f60c47eb2d4
[ "MIT" ]
permissive
agude/dotfiles
7441352b0b35b38c03625166deb05e66723e52e3
bfce1be63a4a29432ceb98df76c8e5437d78c60b
refs/heads/master
2023-08-07T18:40:10.024450
2023-07-28T16:08:33
2023-07-28T16:08:33
11,804,143
0
1
null
null
null
null
UTF-8
Python
false
false
4,552
py
#!/usr/bin/env python3 """Calls rsync to synchronize the local and a remote machine. Exit Codes: 0: Exit successful. """ from distutils.spawn import find_executable from subprocess import call import argparse import logging import os.path import sys FLAGS = set([ "--acls", "--archive", "--compress"...
[ "alex.public.account+dotfiles@gmail.com" ]
alex.public.account+dotfiles@gmail.com
38b9b431a775c17cac50151a5e2bb5b71740e127
bb1c30864fc963f61bbab0a71d206fbe6447fd09
/test_autolens/integration/tests/result_passing/lens_light/instance_via_af_last_specify_light.py
7a005d266a1c2d6541852bede44f71f39f8be5ff
[ "MIT" ]
permissive
pranath-reddy/PyAutoLens
c39c1aa413985c0a280da1b95e6cb55537f769cc
bcfb2e7b447aa24508fc648d60b6fd9b4fd852e7
refs/heads/master
2022-05-28T15:41:26.881648
2020-05-04T20:02:45
2020-05-04T20:02:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,641
py
import autofit as af import autolens as al from test_autolens.integration.tests.imaging import runner test_type = "reult_passing" test_name = "lens_light_instance_via_af_last_specify_light" data_type = "lens_sie__source_smooth" data_resolution = "lsst" def make_pipeline(name, phase_folders, non_linear_class=af.Multi...
[ "james.w.nightingale@durham.ac.uk" ]
james.w.nightingale@durham.ac.uk
47c1eb63c8b72b52c548a9a5d54db9484a8f1c34
d2aa487820826b046d41cfa9b68dfaebef180468
/__init__.py
273b1a4b6690eddd3bafd2feba49045f46fec7e8
[ "MIT" ]
permissive
shv-om/lecture-planner
f542ddeadc96f711deaf20b7e509b8080eee5996
88e4b7d9bd9912afcbfc15bec3aad8fa5efd69be
refs/heads/main
2023-07-13T04:47:03.657284
2021-08-17T18:56:35
2021-08-17T18:56:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,353
py
""" Initialize Lecture Planner """ from os import system, name try: from lectureplanner import LecturePlanner except ImportError as e: print("Error loading Lecture Planner module :(") menu = """ \t\t***Lecure Planner*** \t1. Input Data \t2. Start Planning \tq. Quit (q) """ def clear(): # for windows user if nam...
[ "shivamchaudhary6197@gmail.com" ]
shivamchaudhary6197@gmail.com
cfe841fb7dab9e357bcbe5e24e3431f48f229d42
c53115a982037f8545816a077d495d0eb10bd984
/venv/Scripts/pasteurize-script.py
c1e073950828cf12012490177ed77d43f6c3bca6
[]
no_license
dssit/App02
de6c7a0b36925433330b3d3bbe6bf4a13f9e4819
97db4817ca05a9adf71bf3777488daacaf110d27
refs/heads/master
2022-12-29T04:37:52.465463
2020-10-15T01:30:33
2020-10-15T01:30:33
304,176,899
1
0
null
null
null
null
UTF-8
Python
false
false
411
py
#!F:\python\App02\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','pasteurize' __requires__ = 'future==0.18.2' 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]) sys...
[ "7725949+dssit@user.noreply.gitee.com" ]
7725949+dssit@user.noreply.gitee.com
d71e4cf1084e2921dde728e40f9c3ad65034dcff
0506757a2ebfebe0a7eb93a43031784778836265
/covid19/venv/Scripts/futurize-script.py
b2f28883ea08a346dcf0735da0d4dd77af25a87f
[]
no_license
SeungYeopB/bigdata
90772c70c257c93adef90431e43a55e288224769
dc5b0b3512dfa80e7c940c4328860c0d4aae99a7
refs/heads/master
2023-06-01T09:19:23.522689
2021-07-03T07:07:48
2021-07-03T07:07:48
382,545,218
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
#!c:\bigdata\covid19\venv\scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize' import re import sys # for compatibility with easy_install; see #2198 __requires__ = 'future==0.18.2' try: from importlib.metadata import distribution except ImportError: try: from i...
[ "=" ]
=
04e977d5b647056e41541ee1e3deb317f157bbc8
4df56db2e5b7b72493b020989d7619c370328212
/app/main/__init__.py
a071b178b4feda88141d52331641ce91a1eefcbd
[]
no_license
HsOjo/ExamSystem
0cb7930edcb904766928c24da3445033b7d1143a
0b48dd700fcbedb45663d5402a4f7e7c9272e153
refs/heads/master
2020-05-26T02:55:13.426747
2019-06-29T22:35:59
2019-06-29T22:35:59
188,082,877
1
0
null
null
null
null
UTF-8
Python
false
false
138
py
from flask import Blueprint main = Blueprint('main', __name__, template_folder='templates', static_folder='static') from . import views
[ "1134031392@qq.com" ]
1134031392@qq.com
5240062cac16cf1e417a72d4636318686b7b0433
bb7746cb5db316a932ede0200bee2fb1f5e3162d
/1. Building APIs/2. FastAPI Deployment/example/main.py
12cd522eb3c0533b77d70d23408bcb1769d8fbd6
[]
no_license
adiwany/Cloud-and-DevOps
bf9ba0b37d70dbc6fc88c9817ae59554117dd600
2aef3b20d2120582fd80dee33897fb4f0bcefc62
refs/heads/main
2023-08-26T15:40:55.965672
2021-11-08T16:25:24
2021-11-08T16:25:24
425,945,784
0
0
null
2021-11-08T18:13:13
2021-11-08T18:13:12
null
UTF-8
Python
false
false
337
py
import fastapi import uvicorn from api import dob_api from views import home app = fastapi.FastAPI() def configure_routing(): app.include_router(home.router) app.include_router(dob_api.router) if __name__ == '__main__': configure_routing() uvicorn.run(app, port=8000, host='127.0.0.1') else: co...
[ "harryaberg@gmail.com" ]
harryaberg@gmail.com
81cff913410d53649edb703ba9e2cf418dd357aa
c49e991c0fd43bcca5fa624c9beb8a96fa6c0de6
/create_employee_user/__manifest__.py
15e6ad57477a6c7bb0e0bc4b15fb1ad933dbe4a3
[]
no_license
VADR670730/apps-odoo12
a822ac473129d088bfcad477ed834cdda60a3968
49ab7129d832c7972277c246382c52e269aaf72f
refs/heads/master
2022-05-31T01:53:11.913976
2020-05-04T11:38:34
2020-05-04T11:38:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,958
py
# -*- coding: utf-8 -*- ############################################################################## # # This module you will create of the system user and contact from HR Employee # It will process the data entered and return a message indicating whether # the company is eligible or not. # # Copyright (C...
[ "edgar.naranjo" ]
edgar.naranjo
e38a84be34689a121f7630e0be71a892853bfd0a
2bfa8f88dd1ce7a73bfac013f567b33520a99cb8
/depthTo3d.py
5f9b3fe90d489c84351438b25777859e77fa7f14
[]
no_license
yaminikota95/ComputerVision
46df68b153ddc14c32247c110647d644f8573731
48163658f15a0350895bbe086ca79bf0c2e3df3e
refs/heads/master
2023-08-15T21:45:50.919258
2021-10-21T21:09:32
2021-10-21T21:09:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,940
py
import numpy as np import cv2 as cv import glob from matplotlib import pyplot as plt ################ FIND CHESSBOARD CORNERS - OBJECT POINTS AND IMAGE POINTS ############################# chessboardSize = (9,6) frameSize = (640,480) # termination criteria criteria = (cv.TERM_CRITERIA_EPS + cv.TERM_CRITERIA_MAX_ITE...
[ "noreply@github.com" ]
yaminikota95.noreply@github.com
d93341049c222de00d1435dfdcd43ca42781e011
6ba921390a5ad78433f79857ae3d319aeed1df8c
/interface/__init__.py
fc78bb79879f208103c872f27171bbcc799159a0
[ "MIT" ]
permissive
ykingdsjj/CourseSelect
10a51be31c48846b04db227e13adf89e22edd9be
2993ba7f69112fa02b1786d205b3fc2dbecdc789
refs/heads/master
2021-10-09T05:57:08.825780
2018-12-22T09:20:18
2018-12-22T09:20:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
165
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/12/22 10:25 AM # @Author : zhangjiang # @Site : # @File : __init__.py.py # @Software: PyCharm
[ "zhangjiang@imcoming.cn" ]
zhangjiang@imcoming.cn
11bc3917dfe4f578473ceb682f767ba39f94651f
17f3cb73d9077fe06469cc3a7130293f12a9095f
/greater_2.py
167f5d392e254974ee4cd59eac0a992cf21f53ff
[]
no_license
crazyuploader/Python
9037427158beee8eaf3db79daae6c57f71ddbfdc
c8b2de8a66620864be85842dd974a0dc4dcc2bd2
refs/heads/main
2023-08-15T04:16:55.738823
2023-08-01T09:14:29
2023-08-01T09:14:29
233,270,237
0
3
null
2023-09-14T18:35:16
2020-01-11T17:31:11
Python
UTF-8
Python
false
false
555
py
#!/usr/bin/env python3 __author__ = "Jugal Kishore" __version__ = "1.0" print("///Program to Display Greater Number///") print("\nEnter First Number: ") a = int(input()) print("\nEnter Second Number: ") b = int(input()) if a > b: print("\nGreater Number between {0} and {1} is = {2}.".format(a, b, a)) elif b > a: ...
[ "49350241+crazyuploader@users.noreply.github.com" ]
49350241+crazyuploader@users.noreply.github.com
fd57bcbea1d64a2ad971b4d282c6c6b90a22e774
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_uphill.py
4a07e25a7ea1e6741ed9f3888ed7c277825020d1
[ "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
435
py
#calss header class _UPHILL(): def __init__(self,): self.name = "UPHILL" self.definitions = [u'leading to a higher place on a slope: ', u'needing a large amount of effort: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def run(self, obj1...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
ccb81308eed9b9e5730a621e2b4a3fbda552538f
c0450361aa707635f5bf70eff21c1235d7e60cfa
/Lessons by HoudyHo/lesson (14).py
af963f7dc6838e6f849641c660348af41387cfcf
[]
no_license
zarkaltair/Learn-python
f48810b86e9832f4c364c345d1fa8624f9ced683
dd6114b5bd6cc30eff328002521041dd2be2c3c5
refs/heads/master
2020-04-10T05:48:51.052751
2019-01-23T18:48:34
2019-01-23T18:48:34
160,837,639
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
import random for i in range(10): print(random.randint(1,100)) import math num=10 print(math.sqrt(num)) from random import randint print(randint(1,10)) from math import* print(sqrt(25)) from math import* print(pi) from math import sqrt,pi from math import sqrt as my_sqrt def sqrt(): print('my function') print(m...
[ "zarkaltair@gmail.com" ]
zarkaltair@gmail.com
d51af6f55723ced7f1f7eed4375f0a64b731eae9
e7164d44058a06331c034cc17eefe1521d6c95a2
/python-wrapper/segment.py
3e675e6ff50678963fbb76dcbbc96df4d7abf6ff
[]
no_license
chenghuige/gezi
fbc1e655396fbc365fffacc10409d35d20e3952c
4fc8f9a3c5837e8add720bf6954a4f52abfff8b5
refs/heads/master
2021-01-20T01:57:18.362413
2016-11-08T15:34:07
2016-11-08T15:34:07
101,304,774
0
3
null
null
null
null
UTF-8
Python
false
false
2,209
py
import os import sys import glob from pyplusplus import module_builder root = '/home/users/chenghuige/rsc/' name = 'segment' #define_symbols = ['GCCXML','PYTHON_WRAPPER','NO_BAIDU_DEP'] define_symbols = ['GCCXML','PYTHON_WRAPPER'] files = [ 'include.python/common_util.h', #for safe let it be first f...
[ "chenghuige@fa64baa9-71d1-4fed-97ae-c15534abce97" ]
chenghuige@fa64baa9-71d1-4fed-97ae-c15534abce97
91d56317f2f750056e042724cdef6a742f9b675e
9ed4a4b50de33ff23f4a4ee709cb7a634996d801
/movie/migrations/0001_initial.py
e9213972ea3e8474cc1309d74f0d32ce0319ace6
[]
no_license
Dean-shiyi/django
8ec06ba256e23db9b8642c99f463e7662ef00344
b0e7d53dbafb58618d296752180cb3e86b9be091
refs/heads/master
2020-05-17T23:51:02.244087
2019-04-29T09:38:53
2019-04-29T09:38:53
184,039,983
0
0
null
null
null
null
UTF-8
Python
false
false
794
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-04-28 10:19 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Movie...
[ "admin@shiyi.local" ]
admin@shiyi.local
2c8ce94c10e7d8264f24f6c59a3fea4aaa18be0c
066ee4df594a5dc90335d271b9d5a1b1e2a4d34c
/y/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/admin/admin_server.py
b7a9ebc2fb5517e3f4165380324ac65c95ff86f6
[ "Apache-2.0", "LGPL-2.1-or-later", "BSD-3-Clause", "MIT", "GPL-2.0-or-later", "MPL-1.1", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ychen820/microblog
a2d82447525325ec58285c2e5db58b79cceaca1b
d379afa2db3582d5c3be652165f0e9e2e0c154c6
refs/heads/master
2021-01-20T05:58:48.424357
2015-04-28T22:03:09
2015-04-28T22:03:09
32,948,331
0
2
BSD-3-Clause
2020-07-25T05:04:35
2015-03-26T19:45:07
Python
UTF-8
Python
false
false
5,716
py
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "ychen207@binghamton.edu" ]
ychen207@binghamton.edu
9c06e3fee9b162e60c22c3a364ff13cc9c4004bb
9f3cc2cb6a853560a69ecb14af1ad3080650f954
/Week4_Lesson2/join2_reducer.py
731fbb10d50335ea394bc5c7f599bf7ce0e850fd
[]
no_license
andrez00/Hadoop-Coursera
c4cb0bd85f24db472125f46d6cd792cdcfead8fa
147f460aa760df12c8d3009b148d5f7563635025
refs/heads/master
2020-04-05T17:05:05.253338
2018-11-11T03:36:21
2018-11-11T03:36:21
157,043,695
0
0
null
null
null
null
UTF-8
Python
false
false
1,153
py
#!/usr/bin/env python import sys #---- # see https://docs.python.org/2/tutorial/index.html for python tutorials #[Source code] https://github.com/kiichi/CourseraBigData/blob/master/map_reduce_join_python/join2_reducer.py #---- last_key = None #initialize these variables running_total = 0 abc_found ...
[ "43712233+andrez00@users.noreply.github.com" ]
43712233+andrez00@users.noreply.github.com
a578fd177e8e56258aff2a691ced34b0db9fdf3a
e1dbb3111a8497eaac0544636c0849e5f65676b6
/backend/manage.py
4a823ef2c323e2e8892daea8fbd48a101b30591f
[]
no_license
crowdbotics-apps/other-25649
f78854ddd25b596653f0a233c8fd004b1fb2df5d
5df42438e06420d2d4503b22189be9b1c639c310
refs/heads/master
2023-04-08T16:37:13.862160
2021-04-12T12:25:24
2021-04-12T12:25:24
357,184,141
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'other_25649.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Im...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
c4d0b7dfe9a8edbb2cfdf881c7b5724d86302f54
6130221f57664ca03adbd215cff45cd0681c3881
/app_proyecto01/apps.py
3618145e667c1042f7485dc4d0c2f76797cc2e49
[]
no_license
verje/Simple-Blog
53164ff304d36beb1e519bed7e9325f5897bf6ff
c4c3cf44e21e0df33a19d96641e624d40bb0f008
refs/heads/master
2022-10-15T11:23:08.786031
2020-06-12T16:55:48
2020-06-12T16:55:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
102
py
from django.apps import AppConfig class AppProyecto01Config(AppConfig): name = 'app_proyecto01'
[ "jesus_jarm@yahoo.com" ]
jesus_jarm@yahoo.com
4c3414828d29370ae2304f95d78e7420bf33bfb1
0e478f3d8b6c323c093455428c9094c45de13bac
/src/OTLMOW/PostenMapping/Model/Post060361226.py
e9c499ee16577307dabf18dc0ca996d2ef260913
[ "MIT" ]
permissive
davidvlaminck/OTLMOW
c6eae90b2cab8a741271002cde454427ca8b75ba
48f8c357c475da1d2a1bc7820556843d4b37838d
refs/heads/main
2023-01-12T05:08:40.442734
2023-01-10T15:26:39
2023-01-10T15:26:39
432,681,113
3
1
MIT
2022-06-20T20:36:00
2021-11-28T10:28:24
Python
UTF-8
Python
false
false
4,392
py
# coding=utf-8 from OTLMOW.PostenMapping.StandaardPost import StandaardPost from OTLMOW.PostenMapping.StandaardPostMapping import StandaardPostMapping # Generated with PostenCreator. To modify: extend, do not edit class Post060361226(StandaardPost): def __init__(self): super().__init__( nummer...
[ "david.vlaminck@mow.vlaanderen.be" ]
david.vlaminck@mow.vlaanderen.be
f8bb15de2bfa0b6810bcf4adbf68ce75096399b1
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/detection/SSD-Resnet/eval.py
32420567ee24637672cd21a6a4cfb664f2767b2d
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
8,808
py
# Copyright (c) 2018-2019, NVIDIA CORPORATION. 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 a...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
99cb695db4bbb2ce1d7d866cfefbc5bda140e4b6
3e9ea1ff124159906215e7fa9b625a73cb4b5258
/tests/test_slurm.py
d3e5e9bd33574a8a08e8a27dd746e5199e3b3914
[ "MIT" ]
permissive
tamburinif/slurm
d65aecbeeecabe8a150f5fee472ad5603af04cc8
925adada26978978e7e8fd7ee777046a0470ccc3
refs/heads/master
2021-07-16T11:52:02.833529
2021-02-15T22:13:33
2021-02-15T22:13:33
240,618,292
0
0
MIT
2020-02-14T23:49:26
2020-02-14T23:49:26
null
UTF-8
Python
false
false
2,988
py
#!/usr/bin/env python3 import pytest import time @pytest.fixture def profile(cookie_factory, data): cookie_factory() @pytest.mark.slow @pytest.mark.skipci def test_no_timeout(smk_runner, profile): """Test that rule that updates runtime doesn't timeout""" smk_runner.make_target("timeout.txt") assert ...
[ "per.unneberg@scilifelab.se" ]
per.unneberg@scilifelab.se
af15845c90defb046faea5d8943043b47c0ed874
c741f04141784a2571d2d27d95e0d994e4584ab1
/learning/py3/基本数据类型/List(列表)/注意.py
145b660838690adc8eecc3b0bac4da911490bd50
[]
no_license
haodonghui/python
bbdece136620bc6f787b4942d6e1760ed808afd4
365062ba54297c81093b7f378742e76d438658b7
refs/heads/master
2022-02-03T23:52:37.288503
2022-01-27T05:23:25
2022-01-27T05:23:25
191,729,797
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
""" 注意: 1、List写在方括号之间,元素用逗号隔开。 2、和字符串一样,list可以被索引和切片。 3、List可以使用+操作符进行拼接。 4、List中的元素是可以改变的。 """
[ "haodonghui@yestae.com" ]
haodonghui@yestae.com
ad397c3ccf428aba349d36890a58767b6b21a677
24449e77422a6236acd17b945174c546c55a7082
/exr1.py
0793c174398ba409676b599ca3022cced687dbeb
[]
no_license
MahdieRrad/ImgeP-3
48297cdf7d0c5d6fb69772bb4d096f1266d0a3b6
99c75682968edd9fe3163e8febef5c591d47dd98
refs/heads/main
2023-08-23T10:33:30.835774
2021-11-06T14:04:54
2021-11-06T14:04:54
424,978,692
2
0
null
null
null
null
UTF-8
Python
false
false
157
py
import cv2 img1 = cv2.imread('a.tif') img2 = cv2.imread('b.tif' ) imge = img2 - img1 cv2.imwrite('Scrt.jpg' , imge) cv2.imshow('Scrt',imge) cv2.waitKey()
[ "noreply@github.com" ]
MahdieRrad.noreply@github.com
5ca34df0861e04d99dc995c7fc34161219b92c1d
2d59afbe33eccd836aa0673d43d3b23a30d0422a
/mysite/hello/views.py
14c16019ee8059972b77d4695e061c0696a923e6
[]
no_license
wwwangxinyi/django_projects
a60eb705aca68e53449a5c83e69e4b2e45addca3
62d13bb9240cbfbe080c8a0f8744883c8216fd58
refs/heads/master
2023-03-23T22:48:58.623669
2021-03-14T04:07:00
2021-03-14T04:07:00
342,107,106
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
from django.http import HttpResponse def sessfun(request) : request num_visits = request.session.get('num_visits', 0) + 1 request.session['num_visits'] = num_visits if num_visits > 4 : del(request.session['num_visits']) resp = HttpResponse('view count='+str(num_visits)) resp.set_cookie('dj4e_co...
[ "youremail@umich.edu" ]
youremail@umich.edu
efd39ce2b2ee56e7d45f29574ff2e9e5a8633b1f
9afef9a6a25bbcde30596fa2fb3dce2bd6f4f6f6
/setup.py
840c1cfb4c74d81f67fa1e1894f6cfa75c4a7483
[]
no_license
msnyd/my-lambdata-package
2dcf3cda55b86aa071cce8fd1d7d82126db44ddf
64657a7e3ca9f41671a95d81353135622127a6fe
refs/heads/master
2021-01-02T12:41:40.113648
2020-02-11T18:49:36
2020-02-11T18:49:36
239,629,597
0
0
null
null
null
null
UTF-8
Python
false
false
555
py
from setuptools import find_packages, setup with open("README.md", "r") as fh: long_description = fh.read() setup( name="msnyd-helper-functions", version="1.3", author="M Snyder", author_email="msnyder97@gmail.com", description="Useful data science functions", long_description=long_descrip...
[ "46577534+msnyd@users.noreply.github.com" ]
46577534+msnyd@users.noreply.github.com
de324d4a4599251bc494e523cfd835ac6636c62c
5a4436884af5341ce855c0e84866b972a0f61c05
/day1/expressions/28.py
cdf3516accacba87257b18e8580d17bf50b3169a
[]
no_license
sreejithev/pythoncodes
74a420c4f025b893e27f17ba85632a4a096f17fd
70df14871a9687916d1c4ada76c055607f13e8ce
refs/heads/master
2021-01-21T20:59:47.056167
2017-06-19T09:43:17
2017-06-19T09:43:17
92,292,259
0
0
null
null
null
null
UTF-8
Python
false
false
31
py
print 'hello' # print 'world'
[ "sreejithevwyd@gmail.com" ]
sreejithevwyd@gmail.com
f2f63b88a5d5ccf7652ef38e040b3f1eaa84e1af
f319ed30f5b71f9eae5b7e3d1b94f0a61180a80a
/code/toys/SineRegression.py
1058eec5501f29cc57994a52e05f6281d04ec013
[]
no_license
greentfrapp/metaphor
a170b0ecca2963c4c99e3ae63f2b3437af950f30
229e3c6b408cc9307141e7c8564b78b9370f3848
refs/heads/master
2022-03-10T00:15:40.012281
2019-10-19T19:13:47
2019-10-19T19:13:47
212,151,830
0
0
null
2019-10-19T19:13:47
2019-10-01T17:00:39
Python
UTF-8
Python
false
false
1,739
py
""" The Sine Regression toy problem as first described by Finn et al. (2017). To quote from the paper: Each task involves regressing from the input to the output of a sine wave, where the amplitude and phase of the sinusoid are varied between tasks. Thus, p(T) is continuous, where the amplitude varies within [0...
[ "limsweekiat@gmail.com" ]
limsweekiat@gmail.com
ebfd7331f9d6cbbf9eade56aa56fcfd4f0dd81f3
ad733caded665623f46a9b15b834911b34f8ff19
/maratona/models.py
a6b8a3a01f94a75a5ec4f96aaa2c281395ec9139
[]
no_license
uilton-oliveira/maratonafc3_django
eda7a74aebb7477b573d0bee5f851dbedd3138b3
51a70b83f59a8bd9a15a57f9fb49151ee7742f6b
refs/heads/master
2022-11-11T14:47:39.273293
2020-07-02T21:06:58
2020-07-02T21:06:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
from django.db import models class Aula(models.Model): title = models.CharField(max_length=200) image_url = models.TextField('image url') video_url = models.TextField('video url', default=None, blank=True, null=True) live_date = models.DateTimeField('live date') def __str__(self): return ...
[ "uilton.oliveira@cortex-intelligence.com" ]
uilton.oliveira@cortex-intelligence.com
ca6bec6ed6be07c0c69746803ccb73ad32d37329
48ddaeb3eb7b127ccf6ce362b2a42307ecacc875
/src/filters/filter_lat_lon_to_cartesian.py
0300e89505eadc5abdac2cd1189ab2932e590e58
[ "BSD-3-Clause" ]
permissive
aashish24/ParaViewGeophysics
f720cdf2555f2a81801dfa4132189a040c980b8b
d9a71ffd21a57fa0eb704c5f6893ec9b1ddf6da6
refs/heads/master
2022-03-05T15:23:56.166299
2017-11-10T22:28:44
2017-11-10T22:28:44
110,368,572
0
0
BSD-3-Clause
2020-01-12T00:22:22
2017-11-11T18:12:25
Python
UTF-8
Python
false
false
2,042
py
Name = 'LatLonToCartesian' Label = 'Lat Lon To Cartesian' FilterCategory = 'CSM Geophysics Filters' Help = 'Help for the Test Filter' NumberOfInputs = 1 InputDataType = 'vtkTable' OutputDataType = 'vtkTable' ExtraXml = '' Properties = dict( Radius=6371.0, lat_i=1, lon_i=0, ) # TODO: filter works but ass...
[ "chrsulli@mines.edu" ]
chrsulli@mines.edu
b9e9d7352029861962828c90619ec119a8da1245
a37b54df55c2475a5a75dfe37db02c1af8c86234
/dep/wand/drawing.py
4c576fb4619dfda104f94508f55adeca6d9e5f8b
[]
no_license
lovexinforever/wallpaper
5ba366bdae7a4a838b8eb0a35bdfe41cbda7abb4
d279261dff0f647ece7fbb33c4234273cccca4d1
refs/heads/master
2023-03-20T01:09:12.244409
2021-03-02T07:14:36
2021-03-02T07:14:36
259,499,327
0
0
null
null
null
null
UTF-8
Python
false
false
82,378
py
""":mod:`wand.drawing` --- Drawings ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The module provides some vector drawing functions. .. versionadded:: 0.3.0 """ import collections import ctypes import numbers from .api import (AffineMatrix, MagickPixelPacket, PixelInfo, PointInfo, library) from .color impor...
[ "514387454@qq.com" ]
514387454@qq.com
77e5796a70dd85d3f790f641fff4f58e94fb2bd5
24e795724343272baa1f17d2dd114eb6bb3d88d1
/Practice_18.py
039196accaea7c3f30227bbcd74e55fee847c15e
[]
no_license
WangYangLau/learnpython
e36e1e0c33049c1429e39305aac2041894854577
8e30e32c899a1f3ff863856b2ce49d3cdeec715d
refs/heads/master
2021-05-09T04:07:52.370614
2018-02-23T09:50:08
2018-02-23T09:50:08
119,263,086
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
# -*- coding:utf-8 -*- #功能:使用匿名函数修改代码 print(u'功能:使用匿名函数修改代码:') print('>>>------------------------------------------------------------------------<<<') print(u'源代码:') print(u'def is_odd(n):\n return n % 2 == 1') def is_odd(n): return n % 2 == 1 L = list(filter(is_odd,range(1,20))) print(L) print('>>>---------------...
[ "d13532641570@sina.com" ]
d13532641570@sina.com
3bea2d2337ff018591755799851db7cdb825e197
b5417a88698d27da258aafece80c6799c72ed17a
/python/gui.py
f31758fbf9d79b9b87a5e4fdbe811a49bd86d1e5
[]
no_license
yangyiLTS/myGraduationDisign
e22f69f4b6dc4aad26d6f61715df7cfdebafdeb2
5f748e015a719a193e94e0e59699cf048fb60029
refs/heads/master
2021-09-10T18:50:22.166261
2018-03-31T02:51:25
2018-03-31T02:51:25
124,567,455
0
0
null
null
null
null
UTF-8
Python
false
false
2,049
py
# -*- coding: utf-8 -*- ########################################################################### ## Python code generated with wxFormBuilder (version Jun 17 2015) ## http://www.wxformbuilder.org/ ## ## PLEASE DO "NOT" EDIT THIS FILE! ########################################################################### impo...
[ "641016261@qq.com" ]
641016261@qq.com
5c01e6ebccbde1df2187e06649bbcd2e11b766df
a3ef7fea843abf7623810e4eb9169a1ab53e948f
/sHIeR_hogwarts/test_lubo/pytest_lubo_demo.py
9ae4ed5b654c32d83a30967efdca833b876ae1b4
[]
no_license
Lee-121/sHIeR
ba6f816b7628786d9d58936b7ff26be89347f780
c40f94577959a7a03db1d0f12191124ac01b65c9
refs/heads/master
2022-11-30T14:11:52.686005
2020-08-07T00:21:39
2020-08-07T00:21:39
283,985,503
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
import pytest import yaml class TestClass: @pytest.mark.parametrize("env",yaml.safe_load(open("./env.yml"))) def testclass(self,env): if "test" in env: print("这是测试环境") print("测试环境IP是:",env["test"])
[ "lidong27969@163.com" ]
lidong27969@163.com
80e2beb51f9bc744c2ad3281e31ca4984400db1e
9ffc6df101c55f66b8a392c5f0076ef23aeef8d9
/GUI/ui_ExplorationWindow.py
6019e33644ebdb7885e63041c3f22a24a7de1d66
[]
no_license
anliec/py-mosaic
92b85db16b9ce003fe190019a58ad5740f2c3693
1e7dc30da1d1b4fd7e761cfdd287b35c83c26de8
refs/heads/master
2021-01-18T21:11:03.841090
2017-07-10T19:46:09
2017-07-10T19:46:09
87,012,399
1
0
null
null
null
null
UTF-8
Python
false
false
2,133
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'explorationwindows.ui' # # Created by: PyQt5 UI code generator 5.8 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.s...
[ "nicolas.six@insa-lyon.fr" ]
nicolas.six@insa-lyon.fr
06c160162788075020cfb5afa273340034f0291d
32fe3b08e89267a05ab0ae8636de094e3f47f71d
/Week_07/547.friend-circles.py
c9ca51064dbfb0a6af4239a7bddfeb2a4ab3ec04
[]
no_license
luyanfei/algorithm016
eb66e118a8fb517c95cc663f87f600cc7ff06d94
585026fb158fb6fe8737123d66447c305b1e4c51
refs/heads/master
2023-02-08T07:08:53.267872
2020-12-29T02:59:58
2020-12-29T02:59:58
293,283,847
0
0
null
2020-09-06T13:36:03
2020-09-06T13:36:02
null
UTF-8
Python
false
false
2,207
py
# # @lc app=leetcode.cn id=547 lang=python3 # # [547] 朋友圈 # # https://leetcode-cn.com/problems/friend-circles/description/ # # algorithms # Medium (58.59%) # Total Accepted: 72.4K # Total Submissions: 123.2K # Testcase Example: '[[1,1,0],[1,1,0],[0,0,1]]' # # 班上有 N 名学生。其中有些人是朋友,有些则不是。他们的友谊具有是传递性。如果已知 A 是 B 的朋友,B 是 ...
[ "luyanfei78@163.com" ]
luyanfei78@163.com
e7d2b285ef08d7fec28ec285da4ef32b68669586
c265a33e3bacded3d0699831ae6e0d7dcf317c06
/googleplaystore.py
eaf4489f8e29ba7acaa22ff991c283c8259ccdc1
[]
no_license
luma24/CNA330-SQL-FinalProject
dad742b6af3f2dfcff5ca514f9db492302190730
16fbbd9c52becfe9473982aee39529ee08cc9b47
refs/heads/main
2023-01-31T03:41:06.406705
2020-12-10T01:54:29
2020-12-10T01:54:29
315,171,935
0
1
null
null
null
null
UTF-8
Python
false
false
1,121
py
# CNA330 12/2/2020 # This script is to migrate the resulting of the database(googleplaystore) from this project into a cloud(I used AWS). import pandas as pd from sqlalchemy import create_engine hostname = "18.217.178.166" uname = "pythoneverything" pwd = "python123" dbname = "googleplaystore" engine ...
[ "noreply@github.com" ]
luma24.noreply@github.com
52136f2ea223a4914f9aa8ac2be2ae948c9c7326
2ac829af0520dcba8f4eee987715eda7d2a43422
/src/supplementary.py
25fa8d4b97c9cfa39ce1ccbbab83827ced28aea5
[]
no_license
Maslyaev/Evolutionary
9024e88fce0d306668e2c2a835e3098b1dd538fc
61d8159550f7cd98b2a698ec3ae479b91d2d25be
refs/heads/master
2021-07-24T17:58:30.731966
2020-03-04T16:45:59
2020-03-04T16:45:59
195,274,198
0
1
null
null
null
null
UTF-8
Python
false
false
3,038
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 13 16:33:34 2020 @author: mike_ubuntu """ import numpy as np def Slice_Data_3D(matrix, part = 4, part_tuple = None): # Input matrix slicing for separate domain calculation if part_tuple: for i in range(part_tuple[0]): f...
[ "noreply@github.com" ]
Maslyaev.noreply@github.com
64bf4574ffaf7c9e7254ba5ed68d070ff062dda6
53f8516c3d3aae5104dd376355947000cee942c5
/app/views.py
713aa858d5c17b980eb8f4a1be7e57b84c11fd58
[]
no_license
NoriKaneshige/Django_Multiple_File_Upload_by_Formset_without_Models
7f8318fa7017ad356df945b87e6ba12dbbfca4c1
c55949321deb0ba1b92725f773f8f30d57846d33
refs/heads/master
2022-07-09T16:16:09.608785
2020-05-07T23:03:39
2020-05-07T23:03:39
262,169,244
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
from django.views import generic from .forms import UploadFormSet class MultiUploadView(generic.FormView): form_class = UploadFormSet template_name = 'app/upload.html' def form_valid(self, form): download_url_list = form.save() context = { 'download_url_list': download_url_lis...
[ "atsunori@umich.edu" ]
atsunori@umich.edu
19aef23ec0d15019d2caa02e699ed5b558bd5a3e
66981c1cc17b7d720bf09458aa528c14164b1696
/policyopt/nn.py
a6d0d5e5b17a49db853e6d707bb214bf28e7fd44
[ "MIT" ]
permissive
KAIST-AILab/gmmil
d451dbf9d050f602c5ced15188b7999b7b3a900d
f49d3c9bf6221cb534142b8ddf22d60dd9fa711f
refs/heads/master
2020-03-21T22:10:47.641735
2018-10-02T01:38:47
2018-10-02T01:38:47
139,109,233
13
2
null
null
null
null
UTF-8
Python
false
false
18,313
py
from contextlib import contextmanager import collections import h5py import hashlib import json import numpy as np import os import os.path import tables, warnings; warnings.filterwarnings('ignore', category=tables.NaturalNameWarning) import util import theano from theano import tensor # Global variable scoping utili...
[ "tzs930@gmail.com" ]
tzs930@gmail.com
7c394d68658896ec9290dcefbe2b972c0e4a4ac0
93d8aec11b078ec8fb6c0465a6b351118855e92c
/customers/__init__.py
b35f5072c2b4723ce5738e7bc3d78e378adb5555
[]
no_license
Knevels1/Kennels-python-server
a17a5e4b3f93b36d78059792613da3d61df818f4
658af3865a72dd7751ae9582823bbc24e9d845bf
refs/heads/main
2023-02-23T19:58:46.563503
2021-01-26T11:53:49
2021-01-26T11:53:49
329,032,602
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
from .request import get_all_customers, get_single_customer, get_customers_by_email
[ "kyle.a.nevels@icloud.com" ]
kyle.a.nevels@icloud.com
e771e33ed425370e65d67ee7532a3bfb37c7fbd1
ab621c65fc91f5194c4032d68e750efaa5f85682
/pabi_account_report/reports/jasper_report_cd_receivable_follow_up.py
fb689df765d1abcd09ee3ddafcbb3e456b13c360
[]
no_license
pabi2/pb2_addons
a1ca010002849b125dd89bd3d60a54cd9b9cdeef
e8c21082c187f4639373b29a7a0905d069d770f2
refs/heads/master
2021-06-04T19:38:53.048882
2020-11-25T03:18:24
2020-11-25T03:18:24
95,765,121
6
15
null
2022-10-06T04:28:27
2017-06-29T10:08:49
Python
UTF-8
Python
false
false
3,158
py
# -*- coding: utf-8 -*- from openerp import models, fields, api from datetime import datetime import time class JasperReportCDReceivableFollowUp(models.TransientModel): _name = 'jasper.report.cd.receivable.follow.up' _inherit = 'report.account.common' filter = fields.Selection( readonly=True, ...
[ "tharathip.chaweewongphan@gmail.com" ]
tharathip.chaweewongphan@gmail.com
500bec668d0497d0f70c937059f1fe7ef4e296ce
766896c67dc8099523a1895b884c020645a0c081
/6-8.py
1250e54666bcca42d87c9d9d4a0870ffa33fb4b6
[]
no_license
ebertx/thinking-python
cf9daa02bc5106f872ec8c4f083d6a2d32fcb778
bb08f58806e26a14d3420454f7b7271a8de85c28
refs/heads/master
2016-09-06T05:30:23.659158
2015-02-27T07:51:10
2015-02-27T07:51:10
29,249,177
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
def gcd(a, b): if b == 0: return a return gcd(b, a % b) print gcd(18, 25)
[ "ebertx@gmail.com" ]
ebertx@gmail.com
81473f6d78e0e83898ca6d588502428d6b6fc236
4e9c7fb648bbe4b15edeef4e9ea07cd47d10d6b7
/primenum.py
a537646041bca23d8e404115cf546f60e79fd46c
[]
no_license
SowndaryaDhanasekaran/Set-2
eb79a67dbe8f729f51e3eb089eccac63b5cbdde0
4292b85c26d5e62e6b5b14cec1b1850635649def
refs/heads/master
2020-03-22T21:36:15.127187
2018-07-12T11:23:38
2018-07-12T11:23:38
140,699,860
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
number=int(input()) count=0 if(number<=1000): for i in range(2,number): if(number%2==0): count=count+1 if(count==2): print("yes") else: print("no") else: print("no")
[ "noreply@github.com" ]
SowndaryaDhanasekaran.noreply@github.com
db9cb26e608d2d2e03001dcabc64eed4c52063ec
5b641d7b69ba0d43bd224d19831ab67a5b101582
/talks/julyPlenary/comparison.py
4fd56eff5230a4d8f0c18fd7d54cc32193bdc749
[]
no_license
jpivarski-talks/1999-2006_gradschool-2
9d7a4e91bbde6dc7f472ea21253b32a0eca104e4
ca889b4d09814a226513e39625ae2f140c97b5d5
refs/heads/master
2022-11-19T11:37:55.623868
2020-07-25T01:19:32
2020-07-25T01:19:32
282,235,528
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
from math import * import biggles, Numeric scoarse1S = (1.43, 0.07) coarse1S = (1.32, 0.01) fine1S = (1.28, 0.01) scoarse2S = (1.2, 0.1) coarse2S = (0.77, 0.05) fine2S = (0.67, 0.03) res = [0.2, 0.4, 0.75]
[ "jpivarski@gmail.com" ]
jpivarski@gmail.com
7d5721bd1de2add787d846527418b63ef851cb95
adddf15b6ad343b2dc4e835fb913f56ebf81d7dd
/example/mnist_train.py
05d9a524d8511b8024dec6fcdba973b04c92b5a5
[]
no_license
antinucleon/TVMFlow
79edb55a6884115965b4e14a74362dca77132b12
eabbc9aa08bf38b87453bf12ceebd7c98a0513a0
refs/heads/master
2021-06-30T00:23:23.693293
2017-09-19T09:29:03
2017-09-19T09:29:03
102,164,065
2
0
null
null
null
null
UTF-8
Python
false
false
1,170
py
"""Tinyflow example code. This code is adapted from Tensorflow's MNIST Tutorial with minimum code changes. """ import tvmflow as tf from tvmflow.datasets import get_mnist # Create the model x = tf.placeholder(tf.float32, [None, 784], name="x") fc1 = tf.nn.fully_connected(x, 32, 784, "fc1") act1 = tf.nn.relu(fc1, "re...
[ "bingxu@apple.com" ]
bingxu@apple.com
a595129b4b0e3c4a78b7775a7c210e32ce11707b
fa6a98c44a46c9880711c1b2fba473fd223ee479
/fab_series.py
1e05315591c020ff00ccd562c44558e136a8d2c7
[]
no_license
RajeevSharma110/HashCode-jr-Explorer-Age
340796190abfb73380a1a68169f3dc22574956e1
86d9f0b052fbf866bdce999fb9014ebbbfa2f70e
refs/heads/main
2023-08-07T19:28:32.521550
2021-10-01T12:00:49
2021-10-01T12:00:49
408,006,264
0
0
null
null
null
null
UTF-8
Python
false
false
539
py
noofterms = int(input("How many terms you want? ")) # first two terms n1 = 0 n2 = 1 count = 2 # check if the number of terms is valid if noofterms <= 0: print("Plese enter a positive integer") elif noofterms == 1: print("Fibonacci sequence:") print(n1) else: print("Fibona...
[ "noreply@github.com" ]
RajeevSharma110.noreply@github.com
e3d631d2ed4799f063e63482720856bba00f372b
b55c22ae8ad2317e09b3c75fa5e57963cfa9e20e
/server1.py
1a5647124189a0964a2c572afd7328c9e23b412a
[]
no_license
AstraLee/finalproject_industry4
0180e0f58283aa63afb7fa2a5c8681b1eafd6596
1ca0846ee0474aa0ac363475f0f36255b7cb3ad7
refs/heads/master
2020-06-02T11:08:11.936281
2019-06-27T04:20:52
2019-06-27T04:20:52
191,135,732
0
0
null
null
null
null
UTF-8
Python
false
false
3,249
py
import socket import time import pymongo from bson import ObjectId import pprint def main(): # Connect to MongoDB instance connection = pymongo.MongoClient("mongodb://localhost:27017") database = connection['my_database'] collection = database['my_collection'] encoder = database.encoder_values ...
[ "astra_1995@hotmail.com" ]
astra_1995@hotmail.com
b97e09bc6e666dccaa4b793e0fb9ffcfc4ed81df
c8b2e8ab65e82ed4a0a245fd238e98f51aa2d0ac
/SylNet_model_tf2.py
c7fceb76994ff7efb3ea8f263e8d175c586fc991
[ "MIT" ]
permissive
shreyas253/SylNet
da80bb67b78afb4b65d4ed325d5be4dc15b5e222
29eb34d614907073735f9c2d8c31da22c1be2282
refs/heads/master
2023-06-09T02:43:52.786558
2023-05-25T06:59:19
2023-05-25T06:59:19
168,553,422
20
6
null
null
null
null
UTF-8
Python
false
false
9,188
py
__author__ = "Lauri Juvela, lauri.juvela@aalto.fi; Shreyas Seshadri, shreyas.seshadri@aalto.fi" import os import sys import math import numpy as np import tensorflow.compat.v1 as tf tf.disable_v2_behavior() tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR) _FLOATX = tf.float32 def get_weight_variable(n...
[ "okko.rasanen@tuni.fi" ]
okko.rasanen@tuni.fi
34c94c676890ed347e27f25fe7cdd3a283af8b78
d71884281ed47f0f16aae5ad562f6b2ce5b24018
/movies/models.py
d2075881f17128b2aff0c45614963a16f81f9c43
[]
no_license
Boyko03/CinemaReservation
5ac5e404a272e2515b291620a159755df98f2e70
5892eeecf1edd22f61c22de7dfbce22c3ab5a2df
refs/heads/master
2022-07-31T14:54:17.441699
2020-05-18T16:30:08
2020-05-18T16:30:08
261,232,968
0
0
null
2020-05-13T16:20:35
2020-05-04T16:08:10
Python
UTF-8
Python
false
false
325
py
from sqlalchemy import Column, Integer, String, Float from db import Base class Movies(Base): __tablename__ = "Movies" id = Column(Integer, primary_key=True) name = Column(String) rating = Column(Float) def __str__(self): return "[ {} ] - {} - {}".format(Movies.id, Movies.name, Movies.rat...
[ "krastanova98@gmail.com" ]
krastanova98@gmail.com
98125cf0dcf28667282bed9339013daf93de5a2c
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/64/usersdata/161/30070/submittedfiles/atm.py
a4945e6d1dbd957e26b68dd8e72ebecc61734ea0
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,119
py
# -*- coding: utf-8 -*- from __future__ import division import math #COMECE SEU CODIGO AQUI valor=int(input('Informe o valor em dinheiro: ')) if (valor%20)==0: print(valor//20) print('%d'%0) print('%d'%0) print('%d'%0) print('%d'%0) if (valor%20)!=0 and (valor%10==0): print(v...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
8d1672c74d7f7273373662eb84061813c809a934
b6567dce0fc91b8aec053e5bb999f2fa0b93e09c
/reparacao/calc_rules.py
51ccacb22872533eb15a2fde92212ef2bbae87a4
[]
no_license
gates17/repairShopBE
5ceef9ab2239662ddeb72c49b230ec1eb88957e4
15ae1cdf4b943f13b8f343f27407c7e26f972406
refs/heads/master
2020-03-29T00:39:16.108867
2019-02-03T22:48:14
2019-02-03T22:48:14
149,349,443
0
1
null
null
null
null
UTF-8
Python
false
false
732
py
from decimal import Decimal def calc_total(rep): tax = float(rep['tax']) tax = Decimal(tax) total_to_pay = Decimal(rep["price"]) * int(rep["units"]) * int(rep["quantity"]) if rep["discount"] and Decimal(rep["discount"]) != Decimal(0): total_to_pay = total_to_pay * Decimal((100 - Decimal(rep["d...
[ "alexandre.lecom@gmail.com" ]
alexandre.lecom@gmail.com
bc240fd6f86c1db725b7e6bf82f96c38f4ab8c96
3cef8c7f23950a88cd0c20e2f678432aab18378a
/python_exercise/ex_036.py
35642ea7c79d43513bbe40d839b16ced43006dec
[]
no_license
sunjoopark/python-algorithm
577be9a085956305397382f8cda44c06c71464ae
7ce543c261059116ef2a61abcaede2d7955fa4f2
refs/heads/master
2020-03-31T17:42:28.636092
2018-10-10T14:03:32
2018-10-10T14:03:32
152,431,788
2
1
null
2019-01-21T04:33:22
2018-10-10T13:53:32
Python
UTF-8
Python
false
false
489
py
cnt = 0 checked = [[[0 for i in range(21)] for j in range(21)] for k in range(21)] def solve(n, a, b, c): global cnt if a + b + c == n : if a <= b and b <= c and a + b > c and checked[a][b][c] == 0: cnt = cnt + 1 checked[a][b][c] = 1 return solve(n, a + 1, b, c) s...
[ "iyeo@colubrismx.priv" ]
iyeo@colubrismx.priv
291b35b66d83c24702b346d9db3fc6d1cd80d4de
e21837ee462fb31a088bd903ecdbb96631020d0a
/Arcade/Intro/Rains of reason/variableName.py
5ede1dc9bc1864e2ee3c1695fd7d3ee1e9b6c4a0
[]
no_license
delta94/Code_signal-
7965ee96a858425c65c7a51a47833d80c8e6d8d3
1383a528b4353b7b8db4a6634ea0caa2b5895f9d
refs/heads/master
2020-07-31T05:38:22.158742
2019-04-12T18:46:16
2019-04-12T18:46:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
"""" Correct variable names consist only of English letters, digits and underscores and they can't start with a digit. Check if the given string is a correct variable name. Example For name = "var_1__Int", the output should be variableName(name) = true; For name = "qq-q", the output should be variableName(name) = fa...
[ "noreply@github.com" ]
delta94.noreply@github.com
a4af59c14926be97205727c0741b5416537d37cc
c3ad65eb01dd1a51fdc918ee088f2f763d467740
/pythonCgi/pattern_handler.cgi.beta
76242ddf57f3fb897b0bafc0aa6f3f8acf6415a0
[]
no_license
pking74/Dumpling
550b417fa1f02b202cb2c39e303149f8795de9cb
64ea5a72f7679fcb03ee9541a07ace2b73045cb1
refs/heads/master
2021-01-18T12:17:12.548337
2015-09-15T14:12:11
2015-09-15T14:12:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,374
beta
#!/usr/bin/python import cgi import json category = ['used', 'designed', 'equivalent',u'\u539f'] def main(): form = cgi.FieldStorage() drop_str = form.getvalue('drop_str').lower() all = [] for cat in category: if cat == u'\u539f': fh = open('./category_data/chn','r') else: fh = open(...
[ "jiezhou0731@gmail.com" ]
jiezhou0731@gmail.com
8096fb7e71797b826c3e0a8c6051d98dbdf27df1
921ee6a3c41dd43ffd4f5099bd5526d008e1a768
/leetcode/027_RemoveElement.py
b81d379a8348664181291537c721cd648b5c49a2
[]
no_license
dionysus/coding_challenge
12f70eb7e5065375e156669d89e5a727345dbbef
e6ba73b70cf5d1dc66e464376bf72699415b76ec
refs/heads/master
2023-07-13T13:09:43.523606
2021-08-18T23:52:54
2021-08-18T23:52:54
297,789,968
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
from typing import List def removeElement(nums: List[int], val: int) -> int: """ Given an array nums and a value val, remove all instances of that value in-place and return the new length. >>> nums = [3,2,2,3] >>> val = 3 >>> removeElement(nums, val) 2 >>> nums[0] 2 >>> nums[1...
[ "dionysus.cho@gmail.com" ]
dionysus.cho@gmail.com
adad125739cb72daf13347575f77b4e909d2ca3d
d3efc82dfa61fb82e47c82d52c838b38b076084c
/Autocase_Result/SJQX/YW_GPMM_QXJY_012.py
bf747396d21241b8715864d0b42b8e55beae4aac
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
3,080
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import sys sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api") from xtp_test_case import * sys.path.append("/home/yhl2/workspace/xtp_test/service") from ServiceConfig import * from mainService import * from QueryStkPriceQty import * from log import * sys.path.append("/h...
[ "418033945@qq.com" ]
418033945@qq.com
de9b1c33c01487e3fdabe86c0976cdb1dc6dbdc7
5e46a4506e002db6d62e4a6ab38c7af1fa5c0eb9
/hw1/code/9/code9.py
c55ba4a7a2877979d6f9ff8f16b1009c27d8ba6c
[]
no_license
king1224/Cryptography-and-Network-Security
050ff51033290674f301d87a8ec0d8db18261f4a
f51b01b65a48f3a7e0d743d2d3cf2a68c1c18f52
refs/heads/master
2020-05-05T10:14:01.216079
2019-04-07T13:24:18
2019-04-07T13:24:18
178,863,981
0
0
null
null
null
null
UTF-8
Python
false
false
3,575
py
from random import randint import gmpy2 p = 28661294800114069007768236017771012251607018576093986823286814149509513675452275635042638987354048629725185006983949952108837417118101024196427874059746112373146674688108102191658628381225899560628677933856157056627887468689106995559937935463599189450455206845179774222254667...
[ "a0987856762@gmail.com" ]
a0987856762@gmail.com
9eae0a8d2e1e53dcc804f3cf5e9c20a9c9178eb4
2c2cfd8cf631bb2026b085a7491a1f9208d21b22
/Binary Search/Implementation.py
626f85aed2dae027a935504889097f8162fb570b
[]
no_license
Dragonriser/DSA_Practice
58ec3dc9744d6cac8290eaa5df21674dabc1ca15
785d519820a729def5a0be3e574001e32badca71
refs/heads/master
2023-02-25T14:33:40.766968
2021-01-22T17:00:12
2021-01-22T17:00:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
#Basic implementation of the Binary Search algorithm. Finding rank / position of a number in a given sorted (ascending / descending) array. def findRank(x, arr): low = 0 high = len(arr) while low <= high: mid = (low + high) // 2 if arr[mid] == x: return (mid + 1) elif ar...
[ "noreply@github.com" ]
Dragonriser.noreply@github.com
478ae66c65d2cff2220c211635de5552950932aa
6f69eee0892b761b666fdd20bab4ca7adec7d01f
/google_foobar/Lib/site-packages/poetry/core/semver/__init__.py
2cff22d6e34d3dec6026fac5578a54dd13132c6b
[]
no_license
amane-toda/google_foobar
de7de5623f3ec1d45477b4971515a4b910dac043
6fad67620f49125539784740fb646aed412c7dea
refs/heads/main
2023-08-25T14:00:43.827537
2021-10-31T15:36:37
2021-10-31T15:36:37
414,150,017
0
0
null
null
null
null
UTF-8
Python
false
false
4,422
py
import re from typing import Union from .empty_constraint import EmptyConstraint from .exceptions import ParseConstraintError from .patterns import BASIC_CONSTRAINT from .patterns import CARET_CONSTRAINT from .patterns import TILDE_CONSTRAINT from .patterns import TILDE_PEP440_CONSTRAINT from .patterns import X_CONST...
[ "toda.amane@gmail.com" ]
toda.amane@gmail.com
c66bb61f9ca6339e9e882273034b25d7c9057ec9
4dc0e2947f23873a24e6c14ff2cc830be5eced34
/Interpreters/F1WAE/JITRPparser.py
93031b73cdc52e71d9cc42cc50c098f1ecbcde18
[]
no_license
leodh/RPython-internship
ea2aededfd0291225b454d329e7be1d6c53fe46a
7a797bb938429f9bf91c8286c3dd82af2e2af73a
refs/heads/master
2021-01-21T10:13:11.345695
2012-09-03T23:38:18
2012-09-03T23:38:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,268
py
import RPtreeClass # Build associativity of braces # To optmisize: calculate size of stack and dic beforehand def BuildAssociativity(fileToUse): """ Build a associative table of braces. """ bracketMap = {} leftstack = [] pc = 0 for char in fileToUse: if char == '(' or char == '{': ...
[ "leonard.de.haro@ens.fr" ]
leonard.de.haro@ens.fr
f2e1d4fca648a683465ab786834d9b24a18d50d0
b5bc72861644c274b75e42374201ea8cdb84c1a2
/class_examples/class_destryo.py
dce888b556029231c26bd08cb702aa1c7650dbb8
[]
no_license
Aadhya-Solution/PythonExample
737c3ddc9ad5e3d0cde24ac9f366ce2de2fa6cfe
34bc04570182130ebc13b6c99997c81834ad5f53
refs/heads/master
2022-12-18T09:54:30.857011
2020-08-24T13:53:59
2020-08-24T13:53:59
288,183,879
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
#!/usr/bin/python class Point: def __init__( self, x=0, y=0): self.x = x self.y = y def __del__(self): class_name = self.__class__.__name__ print class_name, "destroyed" def __str__(self): return "This is end" pt1 = Point() pt2 = pt1 pt3 = pt1 print id(pt1), i...
[ "shashikant.pattar@gmail.com" ]
shashikant.pattar@gmail.com
a2132f2c3e2ef9a784cab0051fff83ebff6eaff0
46f4b4e720a83e1fbb81f8b218af4e0b92548ae3
/jsontest.py
c26558a4d7410e93c731e0cc5bc8de2da6f71880
[]
no_license
Dhanushroyal123/filehandling
14062d610a6a3c561eefb753cd14af0227a0add4
ab748ad6ecaa8e562625815e96c6882586114c48
refs/heads/master
2023-06-03T01:13:52.503502
2021-06-23T03:54:00
2021-06-23T03:54:00
379,472,023
0
0
null
null
null
null
UTF-8
Python
false
false
232
py
# loads json file in to the dictionary import json with open('data.json') as f: data = json.load(f) for i in data.keys(): for j in range(len(data[i])): print(data[i][j]) for i in data['emp_details']: print(i)
[ "dhanushroyal516@gmail" ]
dhanushroyal516@gmail
1bb87fb09710dcb031228250e4df9f655c33959e
7f8ab8ed76218fb55a2d6cf34a83e7e6486ab1dc
/test_gmail.py
0229dd74dae104d84ad1b9896f44ce6028a3738c
[]
no_license
alabavery/e_dist_3
02fbeb6e459c3bc74dfba1e3fe9ea71469ca852d
2ee0c081a052a0f350138ad5a93300ee8cd45e1b
refs/heads/master
2021-05-11T11:19:13.939744
2018-01-29T03:48:09
2018-01-29T03:48:09
117,634,189
0
0
null
null
null
null
UTF-8
Python
false
false
912
py
import unittest #python -m unittest -v test_module class Gmail__get_unread_email_ids(unittest.TestCase): def setUp(self): # mock gmail_client.users().messages().list(userId='me',q='is:unread').execute() pass class Gmail__get_all_unread(unittest.TestCase): def test_reply_to_our_email(self): pass def t...
[ "averyab0@sewanee.edu" ]
averyab0@sewanee.edu
588127ec34fa8b08aba7a0862e5a6a19b642d2d0
87086df54494cdd42a686413639892ebf4978a3e
/MIT_Vadim Smolyakov_Algorithmic Trading/pairs_trading.py
1f498af00486976f99d0ff4e83cb1c9174b16312
[ "MIT" ]
permissive
bopopescu/Machine_Learning_Collections
acbe70d55a2551f98d7a86132608d432c957c369
e77d81754e77c7acdfec86ec395892400657482e
refs/heads/master
2022-04-11T01:39:09.848778
2019-09-15T15:23:31
2019-09-15T15:23:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,150
py
import numpy as np import statsmodels.api as sm import pandas as pd from zipline.utils import tradingcalendar import pytz def initialize(context): # Quantopian backtester specific variables set_symbol_lookup_date('2014-01-01') set_slippage(slippage.VolumeShareSlippage(volume_limit=0.025, price_impact=0.1...
[ "pmiori@gmail.com" ]
pmiori@gmail.com
73d1365d893dea2f34cb4da1462faccc339e49be
01e34a5ec95d4d09f092fda2d8686797edb48d57
/CAUSALMTA/re_weighting/base_model.py
970766df0fcb5d421aead19d448732bcd2ed743c
[]
no_license
lvchakele/CAUSALMTA
58d08586f3e9527b1eb523c3664a66f493a9bb6e
7880da748bc08993b1945c221bea5b39067959b7
refs/heads/main
2023-08-29T05:58:21.490999
2021-11-07T10:08:43
2021-11-07T10:08:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,823
py
import torch import torch.nn as nn class LSTM_Encoder(nn.Module): def __init__( self, input_dim, hidden_dim, LSTM_hidden_layer_depth = 1, dropout_rate = 0.2 ): super(LSTM_Encoder, self).__init__() self.model = nn.LSTM( input_size = input_dim, ...
[ "noreply@github.com" ]
lvchakele.noreply@github.com
fbf4923b56f955382583ca609f34c7a4888907e0
041d5ffe538bd2ecc29defa58226287ebac487dd
/listOverlap.py
f65ccc5904a35a94eea5920b1c062398a24dad0e
[]
no_license
RobertBedrosian/pythonFiles
a2a34b748e5e8f95ff229bc6fd64fdcd79132651
1f68c90c137cf9ad4b48a6c296d5ebc4a247a424
refs/heads/master
2021-05-06T18:24:34.190848
2017-11-25T07:25:57
2017-11-25T07:25:57
111,913,872
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
import random def makelists(random_int): numList=[] for count in range(random_int): numList.append(random.randint(1,100)) return numList def main(): a=random.randint(1,51) print(a) actualA=makelists(a) print(actualA) a=random.randint(1,51) print(a) actualB=makelists(a) print(actualB) intersection=[] fo...
[ "chrisx32@gmail.com" ]
chrisx32@gmail.com
e3b261b30ed261b305318a7466abb9199f23d58f
386e14d7be483a054e003aa9aea7a3506815f17e
/venv/bin/easy_install-3.5
8c3fe94cf288facd01bc4866da01461b332f008b
[]
no_license
freetoyer/djangoshop
20fa4734b4ba9818ddd0db79e4c9fc97f502ba5a
7d523ea82bba27f208028707d4757aeedf61a118
refs/heads/master
2020-06-19T06:51:22.512149
2019-08-14T18:20:52
2019-08-14T18:20:52
196,597,795
0
0
null
null
null
null
UTF-8
Python
false
false
273
5
#!/home/andrey/django_projects/djangoshop/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "andrey_89-89@mail.ru" ]
andrey_89-89@mail.ru
1f59392af82fe70424df8b1ad20ba8b0d74c9622
e8e92bbff0c06a8900e43a51feb820bcb91bedc5
/manage.py
0e8a43fb0a3e45570ca53ddabb53d50a7a592da1
[]
no_license
Jidnahn/products-ms
b35a76e831ee24dfabda433e310e4583422ca3ff
6a0ea5fb07a92284cf2c22ffef6101f78d235f3b
refs/heads/main
2023-07-05T04:55:53.403784
2021-08-20T18:41:20
2021-08-20T18:41:20
398,348,925
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'productsProject.settings') try: from django.core.management import execute_from_command_line exc...
[ "78552981+Jidnahn@users.noreply.github.com" ]
78552981+Jidnahn@users.noreply.github.com
9ad89d8be3bee3befeb351601c75c9f1883c03a0
e344904487c0d7a5fb2a682a8ac7e3e4d8e63f51
/ex4/ex4.py
8316d360bcc56bff1f852fe01d7af561b67b60cc
[]
no_license
weeshree/ML-AndrewNg
e2fee8b8421a84666f2946bd6eda92ee21444a2a
b74b1693acc37e9f87e6307204749c1bdbee10fd
refs/heads/master
2020-03-23T22:36:57.675448
2018-08-01T18:08:02
2018-08-01T18:08:02
142,185,850
0
0
null
null
null
null
UTF-8
Python
false
false
5,779
py
# -*- coding: utf-8 -*- """ Created on Sat Jul 21 13:14:53 2018 @author: weesh """ import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.io import loadmat from scipy.optimize import minimize #bpcount = 0; def wrap(Theta1, Theta2): ''' Linearizes Theta1, Theta2 into single vector ''' ...
[ "weeshree@gmail.com" ]
weeshree@gmail.com
6b50df7aaef6f9d9ed053aa0588a3097045151c2
09510bcf4df1fc89bdcf4e95921b90d2bad55703
/obspyTaup.py
09bd6532b510e4820c2bd8169da1d0af0ac2f93a
[]
no_license
mprocha/scripts
075c338d02ae12243aa5bb746e9285498ab77a01
5654ddfd86e7578b073c05c91042518819fe44b9
refs/heads/master
2021-01-22T13:46:54.590555
2016-02-08T15:16:55
2016-02-08T15:16:55
18,016,459
2
2
null
null
null
null
UTF-8
Python
false
false
208
py
#!/usr/bin/python from obspy.taup.taup import getTravelTimes tt = getTravelTimes(delta=52.474, depth=611.0, model='ak135') lentt=len(tt) for i in range(0,lentt): print(tt[i]) # print(tt[i]['time'])
[ "marcelorocha.unb@gmail.com" ]
marcelorocha.unb@gmail.com
2d444e193746f4b9d9f393a61e3faffc1f20c2c4
a433cbe30591a986e8fb7287a251198e48e17a3f
/mnist.py
f48f2f8da5e8612ba5f98a88c012c08568da8d86
[]
no_license
alilliam/multi_gpu_distribute
578b63878c6b19e834c3bc6c3f77f27c066d8ad5
2d7896b961e870d480c08b6d299f51b48bbe9b9a
refs/heads/master
2022-11-04T21:23:35.344049
2020-07-30T15:04:39
2020-07-30T15:04:39
283,215,674
0
0
null
null
null
null
UTF-8
Python
false
false
10,447
py
#The file is part of pytorh example of imagenet. import argparse import os import random import shutil import time import warnings import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.distributed as dist import torch.optim import torch.multiprocessing as mp imp...
[ "448635573@qq.com" ]
448635573@qq.com
7bde7a7d800ff5f29bfbaa829a108cb47204af71
d1e8f4be036e1868633b24c552a643e6ced39081
/tartist/data/rflow/configs.py
c7d39d49acfe9806be35438782ddb0aea2857e07
[ "MIT" ]
permissive
ml-lab/TensorArtist
8c6c806ca34cf25bda787dff46811b531a137bc2
cbbe4055657c4c4a648c6924eed4c37cfbbe85a7
refs/heads/master
2021-01-22T02:13:25.025501
2017-05-20T08:07:49
2017-05-20T08:07:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,184
py
# -*- coding:utf8 -*- # File : configs.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 2/28/17 # # This file is part of TensorArtist NS_CTL_PROTOCAL = 'tcp' NS_CTL_HOST = '*' NS_CTL_PORT = '43521' NS_HEARTBEAT_INTERVAL = 3 NS_CLEANUP_WAIT = 10 CTL_CTL_SND_COUNTDOWN = 5 CTL_CTL_HWM = 5 CTL_DAT...
[ "maojiayuan@gmail.com" ]
maojiayuan@gmail.com
8366b996ec4f750f41b5485dbf1e3b841d5df8e3
7b012d0b6a6d7894f45c9148612e4946ab75d746
/src/sentry/snmp_handler.py
67648931e78ed0769c5a4af40223bee1556889d4
[]
no_license
ksaper/sentry_pdu
5fff5a7e26686b402625d4302e9dcf98956e3c5f
346555f0600726c2a55aad035648a13f786f7c18
refs/heads/master
2021-10-15T19:32:24.547829
2018-02-08T00:00:45
2018-02-08T00:00:45
103,969,923
0
0
null
null
null
null
UTF-8
Python
false
false
3,049
py
import os from cloudshell.shell.core.context_utils import get_attribute_by_name from cloudshell.snmp.quali_snmp import QualiSnmp from cloudshell.snmp.snmp_parameters import SNMPV3Parameters, SNMPV2WriteParameters, SNMPV2ReadParameters from pysnmp.smi.rfc1902 import ObjectType from log_helper import LogHelper from data...
[ "kimo.s@qualisystems.com" ]
kimo.s@qualisystems.com
31f11bd5af7be8e6f6f866746a0bc3861a325095
ee7350af73f18b35b832cef5f2eb5be8beacfe23
/src/logger.py
2c0b778404a5cce1710699c711d203f1b48dc8ee
[]
no_license
alexandr7035/vk-lftable
6cce830d965e3be9c4821a15413173fe1b21162c
ce15c325e0e5534d2b3eb7ef9ea7b08233353ccd
refs/heads/master
2023-05-14T16:47:05.428477
2022-11-06T15:14:55
2022-11-06T15:14:55
179,868,806
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
import os import logging from src.static import log_dir, log_file # Don't run if can't create logging dir # Nothing will work without logging if not os.path.exists(log_dir): try: os.mkdir(log_dir) except Exception: print("CRITICAL ERROR: can't create log directory '" + log_dir + "'. Exit") ...
[ "alexandr7035.adm@gmail.com" ]
alexandr7035.adm@gmail.com
6741004fa36fcd3910d7d35422f5b7222fb73074
9f8eb9b80fb64fa00e64506cf747c5e0ff3c7b4a
/src/model/Data_Sources.py
60ba4b396ed7cb4ced38faa9228c6ad65320d9a4
[]
no_license
udianand/CreditSuisseDemo
12c92a1dfcdcf9f7bcc36b5139abba2cdff85cd0
d1dc63b67fe181b8720cbcf08aab732dbf180358
refs/heads/master
2020-05-07T11:20:33.529586
2019-11-09T23:59:13
2019-11-09T23:59:13
180,457,636
0
0
null
null
null
null
UTF-8
Python
false
false
4,970
py
import csv import json import sys import csv import re import os import string from textblob import TextBlob from tweepy import OAuthHandler from tweepy import API from tweepy import Cursor from datetime import datetime, date, time, timedelta from collections import Counter from simple_salesforce import Salesforce cl...
[ "uditanand@ymail.com" ]
uditanand@ymail.com
e7b4590b7a59bb17f004f3ac0f95f6b36aca1b32
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/media/v20180330preview/get_job.py
7081ab36e5fa9f8008edc6e909cf945868dead86
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MisinformedDNA/pulumi-azure-native
9cbd75306e9c8f92abc25be3f73c113cb93865e9
de974fd984f7e98649951dbe80b4fc0603d03356
refs/heads/master
2023-03-24T22:02:03.842935
2021-03-08T21:16:19
2021-03-08T21:16:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,491
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
[ "noreply@github.com" ]
MisinformedDNA.noreply@github.com
086838af8d465cf4bf83f4c8add16eebae10e673
03651baa50f617c1915c2e0338a02a0c081bcadf
/rbm_generate.py
d31a7c7d858b42f1ffc042c0144678b9d5e07915
[]
no_license
jxihong/music_generator
5a056a563314565c6c66645af76f337b0e073e40
37219fa4764ea7a778c72d7145f598548c035b3d
refs/heads/master
2020-12-30T16:02:49.931953
2017-06-10T06:17:42
2017-06-10T06:17:42
90,955,635
0
0
null
null
null
null
UTF-8
Python
false
false
1,533
py
from dbn import * from midi_parser import * import glob def get_songs(path): files = glob.glob('{}/*.mid*'.format(path)) songs = [] for f in files: try: song = np.array(midiToStatematrix(f)) if np.array(song).shape[0] > 50: songs.append(song) except:...
[ "jxihong@gmail.com" ]
jxihong@gmail.com
cc70a3e5655aa2cbbfd7065fa7a376a4e758a112
33a6696efdaf3f91756c6a4db61c9fc376d55086
/main.py
2f033dfd9a3eabe4408f6b3251b978037f662a7e
[]
no_license
AsadMadaminov/issiqnonbot
67844abb70fe8a1c86f38955785f3b64db076ed4
86050670287afe5e9131a0eb14c60d8dcb2077ba
refs/heads/master
2023-03-14T09:16:54.537567
2021-03-08T11:41:08
2021-03-08T11:41:08
344,433,240
0
0
null
null
null
null
UTF-8
Python
false
false
29,626
py
import telebot from telebot import types import mysql.connector mydb = mysql.connector.connect( host="localhost", user="root", password="", database="issiqnonbot" ) mycursor = mydb.cursor() # sql = "INSERT INTO test (chat_id) VALUES (%s)" # sql1 = "INSERT INTO test (chat_id) VALUES (%s)" # sql2 = "...
[ "madaminovasadulloh2002@gmail.com" ]
madaminovasadulloh2002@gmail.com
6f28587f978afcbd3659af670f15dc2764b8de81
4c3e3dd2d1976121ebcae159ea772918bc811c16
/rnn_model.py
68caf5c06b3971946bc0f7b2746567466e3a4032
[]
no_license
MaxLost/rnn-character-classification
79b778d11f617f541649e9e4229f11a180cde972
12752c013f18a19d0e3e565307a1f1015232bc51
refs/heads/main
2023-09-03T00:56:50.307036
2021-11-17T18:17:24
2021-11-17T18:17:24
420,234,826
0
0
null
null
null
null
UTF-8
Python
false
false
944
py
import torch import torch.nn as nn class RNN(nn.Module): def __init__(self, input_size, hidden_size, output_size): super(RNN, self).__init__() self.hidden_size = hidden_size self.to_hidden_layer = nn.Sequential( nn.Linear(input_size + hidden_size, hidden_size*2), ...
[ "stepmax14@gmail.com" ]
stepmax14@gmail.com
e44d7dc167483d94d872f514bf14c924d8e4353d
bc82eff404b7842336bcb7991b8ba70e3961d624
/movie_trailer/main.py
ac62b0571eb6cc4b10c8ce062712fef724729979
[]
no_license
HassanTC/udacity-nanodegree-projects
fcfb4542aa2d7a2fd536b39829eb8269fa63bf11
5af157bd2b82eabab9bc3644cc5294a46bad8173
refs/heads/master
2021-05-04T23:49:06.034275
2018-04-14T17:52:39
2018-04-14T17:52:39
119,426,673
2
1
null
null
null
null
UTF-8
Python
false
false
1,740
py
import movie import fresh_tomatoes # Shawshank movie: movie title, poster image and movie trailer shawshank = movie.Movie( "Shawshank Redemption", "https://upload.wikimedia.org/wikipedia/en/8/81/ShawshankRedemptionMoviePoster.jpg", # NOQA "https://www.youtube.com/watch?v=6hB3S9bIaco") # forest gump movie...
[ "hassan.mahmoud1@outlook.com" ]
hassan.mahmoud1@outlook.com
f4f79fde3c1ab3b41556f659bd750656efb2e315
f69b90471efabb97c04c0671cea45de855f222a5
/Ethereum/env/bin/easy_install
3fb98970e063210594b6e51a7a00629af4050afc
[]
no_license
victomteng1997/SENA_project_Ethereum
b94324844f9c797a4aaa94790dbdbdfb376ff341
382813008a2f95c527ffe72b868340dd384635e7
refs/heads/master
2021-01-07T20:36:23.004970
2020-03-04T08:19:34
2020-03-04T08:19:34
241,813,331
0
0
null
null
null
null
UTF-8
Python
false
false
269
#!/Users/mark/Documents/lab/flaskintro/env/bin/python # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "deng_gelei@i2r.a-star.edu.sg" ]
deng_gelei@i2r.a-star.edu.sg
18376ea574df33c2b0c6b1a04c1202daafe49dba
ef8f9777be4beff936b64af8df5b79f840d6086a
/gym_miniworld/miniworld.py
62ca2a5e9a99cf566836e597be6728ecbcbe0179
[ "MIT" ]
permissive
benlansdell/gym-miniworld
261d97a108b7cdef6982207a4f126b840404b1e2
a97a244489f516e5d84f8648196c33a9d372788b
refs/heads/master
2020-04-05T01:55:03.633823
2018-11-06T21:37:34
2018-11-06T21:37:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
34,710
py
import math from enum import IntEnum import numpy as np import gym from gym import spaces from .random import * from .opengl import * from .objmesh import * from .entity import * from .math import * # Blue sky horizon color BLUE_SKY_COLOR = np.array([0.45, 0.82, 1]) # Map of color names to RGB values COLORS = { '...
[ "maximechevalierb@gmail.com" ]
maximechevalierb@gmail.com
6530542905bdeb0595e2cb3c50e809ca462c892b
a08c34701dc5641eb0ca275b4ff53120a0cffd59
/income_expense_managment/urls.py
4216d06cb0ca4e0681e79f387088c8504c243a49
[]
no_license
sunitayadav14/DailyIncomeExpense
b6ff288adf61c4255b6ed9086343a00392fbc2ae
0f929e82c97a8c42dd8bc7f01f2ceda84621fe59
refs/heads/master
2023-06-29T02:22:22.044576
2021-08-07T09:21:08
2021-08-07T09:21:08
393,636,852
0
0
null
null
null
null
UTF-8
Python
false
false
605
py
from django.contrib import admin from django.urls import path,include from account.views import home urlpatterns = [ path('',home), path('admin/', admin.site.urls), path('acc-',include(('account.urls','account'),namespace='account')), path('inc-',include(('income.urls','income'),namespace='income')), ...
[ "karishmayadav482@gmail.com" ]
karishmayadav482@gmail.com
22502e12c168c587954c21469fd222c3256b5177
342b62ec92427f178aaf9d08674825a163c13d91
/the_k_strongest_values_in_an_array_5429.py
5f83af10b3fb1a4901d6b12c5dbb326f6bcf7351
[]
no_license
mmkhaque/LeetCodeWeeklyChallenge
1b2f8cb27d275c271c0e37599591af6e14110ea5
5d3d361341a56df72aabf32c2acf5d73b5a46eb3
refs/heads/master
2023-07-15T18:47:41.452250
2021-08-22T04:08:13
2021-08-22T04:08:13
254,993,439
0
0
null
null
null
null
UTF-8
Python
false
false
851
py
class Solution: def getStrongest(self, arr: List[int], k: int) -> List[int]: def calculate_median(arr): n = len(arr) med = (n-1)/ 2 return arr[int(med)] if len(arr) == 0: return [] if k == 0: ...
[ "noreply@github.com" ]
mmkhaque.noreply@github.com
ad7fff59ff1d5880ad197a6205640018c46b96ba
e6dd6badd9073f7411704f97cd53c4c71595b55d
/python_cookbook/2-11Strip.py
d2e119a7cd109a3e4a6d3b9ae9eb8e6860910075
[]
no_license
binkesi/leetcode_easy
8f753fe3306ed5e678146469bbbf35f3e1bb741c
79878064daa7a7f1505f895287ee07f7a081dc6a
refs/heads/master
2020-12-10T05:46:57.134697
2020-05-25T03:00:03
2020-05-25T03:00:03
233,516,663
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
import re text = " ------------hello=========" if __name__ == "__main__": aaa = text.strip() print(aaa) print(aaa.lstrip('-')) print(aaa.rstrip('='))
[ "sjtusgn@163.com" ]
sjtusgn@163.com
4ad57f1de789251894e5dfc259528c30fb29f79b
0e6333be66ae534506cad1f8d32712d303d554a8
/kornia/color/xyz.py
03e2c28e30e5db88d97fe26a7ddb896ed069dfd1
[ "Apache-2.0" ]
permissive
jakubLangr/kornia
beaf00ad7662b65cd7077e7cfe06b48e089bbd4a
9a9a056bfb7ffa45395871b4858a8a041c926d99
refs/heads/master
2021-01-08T18:22:54.442658
2020-02-21T17:03:29
2020-02-21T17:03:29
242,106,066
1
0
NOASSERTION
2020-02-21T09:49:02
2020-02-21T09:49:02
null
UTF-8
Python
false
false
3,667
py
from typing import Union import torch import torch.nn as nn class RgbToXyz(nn.Module): r"""Converts an image from RGB to XYZ The image data is assumed to be in the range of (0, 1). args: image (torch.Tensor): RGB image to be converted to XYZ. returns: torch.Tensor: XYZ version of th...
[ "noreply@github.com" ]
jakubLangr.noreply@github.com
50b034b2686c897992499134f2ca831df58ae14a
a6f0a92ba1b039fbef510d5da031e10dee6f4478
/linearRegression/logoPrice.py
0c82d573c57cc1f5c1b65f03b1229b65ec913577
[]
no_license
niuyuanyuanna/machine-learning
bf3383257ce0aedd5165fe6dfedab21e3e67cef4
f718d447b709002bbda572946157d4df45c65197
refs/heads/master
2021-04-26T23:48:13.934690
2018-03-15T14:03:39
2018-03-15T14:03:39
123,859,750
0
0
null
null
null
null
UTF-8
Python
false
false
4,560
py
from bs4 import BeautifulSoup import numpy as np import random def loadData(inFile, yr, numPce, origPrc): retX = [] retY = [] # 打开并读取HTML文件 with open(inFile, encoding='utf-8') as f: html = f.read() soup = BeautifulSoup(html) i = 1 # 根据HTML页面结构进行解析 currentRow = soup.find_all('ta...
[ "liuyuan_tx@163.com" ]
liuyuan_tx@163.com
ecec53a7f0397c1947cdb0e61b81225ee3dbb404
2a7c9abbd797edf2288aeaf224d11c1ece38a0a9
/tripod/app/views.py
7f80bb5b733b64a1cb3b049bbed16bcc7de1b943
[]
no_license
jeffchy/Tripod
32ab08ec70f4e3c5c5b51fda42c8f658b2c71d63
c113f662d82b046b138789c0760ba388a20b86aa
refs/heads/master
2023-03-07T05:04:58.682012
2021-02-20T07:25:50
2021-02-20T07:25:50
327,805,615
0
0
null
null
null
null
UTF-8
Python
false
false
2,709
py
from django.http import HttpResponse, HttpResponseRedirect from .models import Experiment, Config, ExperimentForm, ConfigForm from django.shortcuts import render, get_object_or_404 from .core.default import Nodes, GPUs from .core.checker import check_config_settings, check_experiment_settings def index(request): e...
[ "jiangchy@shanghaitech.edu.cn" ]
jiangchy@shanghaitech.edu.cn
48d17f3977310c6c12f3c2e38658ddf41ad6528a
e29c79b27cee203e02a9093f1dc1c2abf558637b
/log.py
3d814a30174494932380209edca128647819a52c
[]
no_license
bartlomiejfydrych/python-selenium-pop
cbdb7b79e5fa5ee1a4c65aefc83938a3d5546d70
adcfb127ed1d9805a565871f0c6da02703a8103f
refs/heads/main
2023-01-29T13:36:27.267504
2020-12-12T11:08:38
2020-12-12T11:08:38
305,737,242
0
0
null
null
null
null
UTF-8
Python
false
false
420
py
def log(func): def wrapper(*args, **kwargs): print(func.__name__) return func(*args, **kwargs) return wrapper def for_all_methods(decorator): def decorate(cls): for attr in cls.__dict__: # there's propably a better way to do this if callable(getattr(cls, attr)): ...
[ "fydbar@gmail.com" ]
fydbar@gmail.com