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
6a3d435f81dfff1dfcaaa011dedf56f129b984c3
a6fafaabc803f4292ddaa0c50ba88941f5200be4
/gobotany/core/distribution_places.py
1f8ec958aa111e14559d624c0617d2ebfb4ee04d
[]
no_license
biofsoares/gobotany-app
cc0f164f1ab12b3177b03626170853e5731008ff
edd9ce53b1f2a92d7f4a0bbf05e4bd88942a6c6d
refs/heads/master
2021-01-16T21:43:01.388365
2015-12-30T19:55:08
2015-12-30T19:55:08
51,067,589
1
0
null
2016-02-04T10:08:24
2016-02-04T10:08:24
null
UTF-8
Python
false
false
2,933
py
# List all the places where distribution data are tracked, at both # the state or province and county levels. # # This is used by the Admin interface during the bulk addition of a set # of distribution records for a new plant name. # # Format: state or province abbreviation, county (optional) DISTRIBUTION_PLACES = [ ...
[ "jnga@users.noreply.github.com" ]
jnga@users.noreply.github.com
93dffeb1d6be0528a53c287b319ac6dabad50101
c09fa8f3c25b738b6ac5e7b9f474dff97d4b3e6e
/src/handler/weixin_vaild.py
960b8949dff01e938a3ec4a68c933a511b6e7781
[]
no_license
xu-yongliang/wechatDevelop
084079819560550a9f49cb5d9fc3c70525e36c9a
025bb40f3f532b451b4fb308c5d9b2bf5b294343
refs/heads/master
2021-06-06T23:42:28.915954
2016-10-09T06:26:59
2016-10-09T06:26:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,397
py
#!/usr/bin/python # encoding:utf-8 from wechat_sdk import WechatConf, WechatBasic from baseHandler import BaseHandler from helper.process import ProcessBody # 集成baseHandle ,实现do_action方法 class WeixinVaild(BaseHandler): def do_action(self): # 创建wechat sdk 把消息给封装起来,方便调用验证,以及消息提取和消息回复 conf = Wechat...
[ "xuyongliang@haizhi.com" ]
xuyongliang@haizhi.com
3b9e253f10e41baad365199b92279151f3fb20da
07452949bbfe246b970af1f8c8cec969414b0026
/tests/test_relabel.py
8eacbe707bdebce7e7dd29f18a5e21a67521d846
[ "MIT" ]
permissive
monocongo/cvdata
f1e8649e43cb4ab0ca639f22d61a6e5a30bc74a2
aca1d5d129d7fb0b2be0c5763c9363bad66696a5
refs/heads/master
2023-08-18T05:20:30.155204
2023-08-03T14:34:29
2023-08-03T14:34:29
221,716,830
18
8
MIT
2023-08-03T14:34:31
2019-11-14T14:30:14
Python
UTF-8
Python
false
false
6,562
py
import logging from xml.etree import ElementTree import pytest from cvdata import relabel from assert_utils import elements_equal, text_files_equal # ------------------------------------------------------------------------------ # disable logging messages logging.disable(logging.CRITICAL) # -----------------------...
[ "monocongo@gmail.com" ]
monocongo@gmail.com
d9c577b60a03d5b7cc46cfe1a2e2d0040acd95f9
7d4273077ca64cc1311b2d9fe9148f192cc91ce9
/V2prizeTheBestUsers.py
ba2025cc0aa5a9497cd290a17d04b9d458df978b
[]
no_license
mateuszgajewski-python/PyPi
a7016cf6723b41df0d67e2afa15b914698811e45
057a16dda7fc79a317caac0c9fac44e3ef98436f
refs/heads/master
2023-03-05T06:47:28.477825
2021-02-14T13:53:21
2021-02-14T13:53:21
337,395,692
0
0
null
null
null
null
UTF-8
Python
false
false
1,545
py
import requests import json r = requests.get("https://jsonplaceholder.typicode.com/todos") downloadList = r.json() def how_many_true(list_, key, keyWithBoolean): dictionary ={} for record in list_: if record[keyWithBoolean] == True: try: dictionary[record[key]] += 1 ...
[ "mateuszgajewski@gmail.com" ]
mateuszgajewski@gmail.com
d477f39fa7d688c996c72f8e5f53aa273d7ae6d0
916f8962b18272b62fdccd5b2d9ec4b2b2d4d533
/Thalamus_wmSCrsFC/nosmooth_adding_YBK_postMelodic_znorm_glm.py
f873477c1245feee3ac8ed36ab7059fef434132f
[]
no_license
fahaxiki1234/ThalamoCortical_YBK
284b84f67fdcc525e3b0c65cc13f0068463fce5d
63fee7dea60ba94d04ef9f55cd2b220bb63836a6
refs/heads/master
2023-03-16T04:22:02.865421
2020-05-22T04:21:46
2020-05-22T04:21:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,416
py
import re import sys import os from os.path import join, basename, isfile, isdir import argparse import nibabel as nb import numpy as np from scipy import stats def zStats (side, hemi,downsample, subject): melodicDir='tica_results/mICA_HCvsFEP_{side}{downsample}_nosmooth//dim0'.format(side=side, downsample=downs...
[ "noreply@github.com" ]
fahaxiki1234.noreply@github.com
e3d781a3f7d2d498cb5c6001e32a838461a0daa6
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_054/ch2_2020_09_16_11_34_55_516156.py
cb769d528b4f741eaac3317840c0153eb23c362a
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
# Está função é para calcular a velocidade média def velocidade_media (d,t): velocidade_media = d / t return velocidade_média
[ "you@example.com" ]
you@example.com
94e03f267155e84ef42e255bed470c54f6626f90
2881903801698749889648a36b0d8dc51a6e59a0
/cannabis_reports/tests/test_apis_dispensaries.py
b1d83aec5fca76bad68f430d4303e23be54ec6a0
[ "MIT", "Python-2.0" ]
permissive
lordlala/python-cannabis-reports
139149681315ab6521c7fb8775209c8a3eff87a9
6b64cecd881247eee23f9d2223f6d364bafad937
refs/heads/master
2021-12-30T11:42:15.183290
2018-02-08T21:06:53
2018-02-08T21:06:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,854
py
# -*- coding: utf-8 -*- # Copyright 2017-TODAY LasLabs Inc. # License MIT (https://opensource.org/licenses/MIT). from .api_common import recorder from .api_entity import ApiEntityAbstract from ..models.dispensary import Dispensary class TestApisDispensaries(ApiEntityAbstract): """Tests the Dispensaries API endp...
[ "dave@laslabs.com" ]
dave@laslabs.com
de991516b7cdac9ff957510dfda568d7ebbe7241
b6e10cf6a4c7498093a78665d4c03a3cfbabd25b
/code.py
6163544367a522bbeae538a62de0ced93fb3fbf4
[ "Apache-2.0" ]
permissive
prashantm2812/StudentsPerformance
dbbbb733f9d00ff207ca42f06884b4b3157d8635
394779f7e64051476a1dc7b03f09c5f8fd8e7d1f
refs/heads/master
2020-04-10T21:11:12.587199
2018-12-11T06:55:02
2018-12-11T06:55:02
161,290,050
0
0
null
null
null
null
UTF-8
Python
false
false
2,015
py
# -*- coding: utf-8 -*- """ Created on Mon Dec 10 22:09:03 2018 @author: Prashant Maheshwari """ import numpy as np import pandas as pd import matplotlib.pyplot as plt dataset = pd.read_csv('StudentsPerformance.csv') X = dataset[['gender', 'race/ethnicity', 'parental level of education', 'lunch', 'test p...
[ "noreply@github.com" ]
prashantm2812.noreply@github.com
6606ff39a891b68aee9bfe862e48704e6ed6a975
cc08f7a8d284b38975a777b416e1abfa33fc3a2d
/calcs.py
8a2cf0fae4b3ef8be855c9b5ebd05811e50b3d39
[]
no_license
EgorOs/osinkin_hw6
431d1af9a43767f56f55668db10d255477ca66a4
f6b4008f4e04f54d83e7680b3d757709a6923d28
refs/heads/master
2020-03-26T16:30:31.311553
2018-09-04T19:50:01
2018-09-04T19:50:01
145,106,511
0
0
null
null
null
null
UTF-8
Python
false
false
12,993
py
#!/usr/bin/env python3 from enum import Enum from string import ascii_lowercase class Token: def __init__(self, ch): self.ch = ch if ch == '+' or ch == '-': self.priority = 1 elif ch == '*' or ch == '/': self.priority = 2 elif ch == '^': self.pri...
[ "egoros97@yandex.ru" ]
egoros97@yandex.ru
5265e0967e113d081e9131c0f58e4a14c2139144
7b9c1e0e6c40804dc11090b6b2d9b4c61fce3f12
/FIB_HERITAGE_METHOD.py
4a6f632a061ba42bc6892fb6c74cc294e2d1cfdc
[]
no_license
denizcetiner/rosalindpractice
7474a07f0018c2582b3fbb8db2f686bceb687ac7
4dfe56e7b7af1680380c4f7a1048c174a6c405b7
refs/heads/master
2020-03-19T16:40:34.277493
2018-10-08T17:38:01
2018-10-08T17:38:01
136,724,689
0
0
null
null
null
null
UTF-8
Python
false
false
3,286
py
from graphviz import Digraph class RabbitPairMonth: life_expectancy = -1 give_birth_to = 3 id_counter = 1 maturity_month = 1 def __init__(self, id, birth_time, current_month): self.id = id self.birth_time = birth_time self.current_month = current_month self.childre...
[ "deniz.cetiner94@gmail.com" ]
deniz.cetiner94@gmail.com
8c1b6a3a004b909f82de6758f41f54206c8bda08
b8c8973b8af953628d0418bccc8a1a0c6ac54895
/datasets.py
de1606d5cd8ca04dba92ff559ac4376378d1a9a5
[ "MIT" ]
permissive
Mjacks3/AutoEncoder_Research
b61aa5590c34b0e3f54195761b6b398f6dfe9ce6
d92bfdfc76f30173db5dc7d880ee1516cb72ba86
refs/heads/master
2023-01-11T10:55:38.715465
2020-02-14T04:46:34
2020-02-14T04:46:34
220,724,300
1
0
MIT
2019-12-15T19:36:19
2019-11-10T01:05:23
Python
UTF-8
Python
false
false
1,609
py
import os def load_other_batch_data(data_path='/home/mjacks3/monize/tahdith/datasets/train'): #Intended just for training our data full_x = [] for r, d, f in os.walk(data_path): for file in f: if 'embedding' in file: with open(data_path +'/'+ file[0:-14]+'/'+ file) a...
[ "mjacks3@umbc.edu" ]
mjacks3@umbc.edu
c0e29612bc1ab99f21ed31d148930eda30c512c3
2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f
/aws.ses.EventDestination.sns-destination-python/__main__.py
d32f60d788281d4b38651670141a088b90714d15
[]
no_license
ehubbard/templates-aws
e323b693a18234defe6bd56ffcc64095dc58e3a1
2ae2e7a5d05490078017fed6d132dcdde1f21c63
refs/heads/master
2022-11-17T13:53:14.531872
2020-07-10T21:56:27
2020-07-10T21:56:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
import pulumi import pulumi_aws as aws sns = aws.ses.EventDestination("sns", configuration_set_name=aws_ses_configuration_set["example"]["name"], enabled=True, matching_types=[ "bounce", "send", ], sns_destination={ "topic_arn": aws_sns_topic["example"]["arn"], })
[ "jvp@justinvp.com" ]
jvp@justinvp.com
aa103ea582f1fe1dccda82638cc5841b408a0c7a
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/988/988.smallest-string-starting-from-leaf.233252752.Accepted.leetcode.py
22432d1b1812c2fa9c180ef407130c342025bc17
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
455
py
class Solution(object): def smallestFromLeaf(self, root): self.result = "~" def dfs(node, A): if node: A.append(chr(node.val + ord('a'))) if not node.left and not node.right: self.result = min(self.result, "".join(reversed(A))) ...
[ "huangyingw@gmail.com" ]
huangyingw@gmail.com
0a12281b7c925eb8277884979410f9ea73ef9d93
1f2d8f8cef89facd60e56c6e4c59e881c1cdbe5d
/hw1/code/main.py
35a4390a0b00ebe8f3f3839320e38ec5f0cd8275
[]
no_license
TerminalWitchcraft/CV-HW
abf66e4cad887c9c4d13c24e59dea4f99c6d5bb1
7df4daffe16d2c06161f0cf77655d988d369f51d
refs/heads/master
2022-01-09T21:26:45.794794
2019-05-05T02:30:06
2019-05-05T02:30:06
172,445,625
0
0
null
null
null
null
UTF-8
Python
false
false
10,096
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # File : b1.py # Author : Hitesh Paul <hp1293@gmail.com> # Date : 24.02.2019 # Last Modified Date: 28.02.2019 # Last Modified By : Hitesh Paul <hp1293@gmail.com> import os import random import numpy as np import plotly import plotly.g...
[ "git@hiteshpaul.com" ]
git@hiteshpaul.com
abf9533351f909d1812af5ffd5eba0092ce9247b
587eed32179cdbf10b4626a3a238d5923af7459c
/ml/xgboost_regression.py
095d47f0a9a69aa09b7adbbaac64d948e3f6c9c8
[]
no_license
shushanxingzhe/python_learning
fad57fcf607efe81f769d276a6c4390726c5f1bb
7fe26ad612790328edab1627e6c1c144a21d79fc
refs/heads/master
2022-09-12T15:11:50.377981
2022-08-04T05:43:51
2022-08-04T05:43:51
96,225,151
1
0
null
null
null
null
UTF-8
Python
false
false
788
py
import xgboost import numpy as np import matplotlib.pyplot as plt from sklearn.metrics import r2_score X_train = np.linspace(5, 10, 20) X_train = X_train.reshape((-1, 1)) y_train = 0.2 * X_train ** 2 + 3 X_test = np.linspace(15, 20, 20) X_test = X_test.reshape((-1, 1)) y_test = 0.2 * X_test ** 2 + 3 model = xgboost....
[ "shushanxingzhe@126.com" ]
shushanxingzhe@126.com
88c931e22e34976270911349be0c9c290864141e
64045f22ad137eb96c8a54c50b6da42948ceba89
/pygcn/trainer.py
c2aa0a43570158d2065b1d56d3ec8a64fd20fe23
[ "MIT" ]
permissive
Haicang/pygcn
ab73b7e2305f9f21987e8f3c8100ff570bcfb425
608785e4ef18ee2d579ac9d60bda6110e97d877c
refs/heads/master
2021-07-24T03:39:19.087499
2021-07-02T13:44:44
2021-07-02T13:44:44
233,192,191
0
0
null
2020-01-11T07:15:15
2020-01-11T07:15:15
null
UTF-8
Python
false
false
5,964
py
import abc import time import numpy as np import torch import torch.nn as nn from .utils import * __all__ = [ 'GNNsTrainer' ] class BaseTrainer(abc.ABC): def __init__(self, model: nn.Module, criterion, optimizer, epochs, ...
[ "aseaboat@outlook.com" ]
aseaboat@outlook.com
5cde4d44f65f3c97fcdfd7ef7b717207957f7006
b25a4e997a74dfe036d8beeff39d03bac526af94
/weibov/spiders/stock.py
51c82cd291ee7b6cb86caa46a471186f15603083
[]
no_license
lianghongjie/weibo
0ca2dc73cb4ac8a79f3ce99d37f8209db46eb08e
f5327ba1070f506ac40d3dd8d69c8d99fd1a7630
refs/heads/master
2020-03-13T11:58:47.343020
2018-04-26T06:51:19
2018-04-26T06:51:19
131,110,509
2
1
null
null
null
null
UTF-8
Python
false
false
3,820
py
# -*- coding: utf-8 -*- import scrapy from ..util.create_url import GeneratorUrl, ARTICLE import json from datetime import datetime from scrapy.http import Request from ..items import StockItem, UserItem import time import os class StockSpider(scrapy.Spider): name = 'stock' def start_requests(self): ...
[ "abc650301032@qq.com" ]
abc650301032@qq.com
b4f54871d6f20147ee3d122fda8a109d09514286
5549b8152781830be13147be7330e904a2f96d4b
/lagom_example/lagom_example/wsgi.py
084584e914c059c8f2a4482d9178aec1d87c01b2
[]
no_license
meadsteve/lagom-django-example
a00670131ccb2673986bc27a753238e227880fb5
9ac58b9cd423effed53ea96d3bf2c0391bd56064
refs/heads/master
2021-12-29T06:04:26.067144
2021-09-15T08:03:20
2021-09-15T08:03:20
238,651,005
0
0
null
2021-09-22T18:32:53
2020-02-06T09:24:35
Python
UTF-8
Python
false
false
403
py
""" WSGI config for lagom_example project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
[ "meadsteve@gmail.com" ]
meadsteve@gmail.com
3ae0ed5ed98be35ed46d8dc9ee81969373ac43d8
8240a0c8817a63f529344fcf4dbca80ca2545729
/report/controllers/pool.py
92b603dd881fea40d4c19a11f0867914c4158cc6
[]
no_license
BrokenEagle/PythonScripts
6e218b7c19bbe1f051b2e0e2681ecc720def2fba
350a82720e95ad662faeb50b3a85904e9980f4dc
refs/heads/master
2022-10-11T22:01:04.220628
2020-06-14T01:41:03
2020-06-14T01:52:52
66,891,053
3
0
null
null
null
null
UTF-8
Python
false
false
4,663
py
#REPORT/CONTROLLERS/POOL.PY #LOCAL IMPORTS from danbooru import GetPageUrl,GetSearchUrl,IDPageLoop from misc import DebugPrint,IsAddItem,IsRemoveItem,GetAddItem,GetRemoveItem,IsOrderChange #MODULE IMPORTS from ..logical.reportcontroller import ReportController from ..logical.users import UserReportData from ..logical...
[ "BrokenEagle98@yahoo.com" ]
BrokenEagle98@yahoo.com
ca1da7d4907bfadb4fcbc08eda69b0a43a6152f6
637316e4f60b0b4288dd67c4018a7ed89d57d25f
/53. kolkoIkrzyzyk.py
dfcabd88acfda9abd132c91a4db64e72a246fac0
[]
no_license
wojtez/KomputerSwiatBookPython
37ff0473b7ed79cb8d531855851175c9d8c3324c
84d63e1936265b7553e13c76affef20848ebcefd
refs/heads/master
2022-10-15T12:45:13.508291
2020-06-08T23:51:27
2020-06-08T23:51:27
269,219,106
0
0
null
null
null
null
UTF-8
Python
false
false
2,293
py
# Program wykorzystjący moduł turtle do tworzenia popularnej gry kółko i krzyżyk from turtle import * import math # definiujemy bok kwadratu bok = 80 pole = [[False, False, False], [False, False, False], [False, False, False]] # rysowanie pola do gry za pomocą kwadratu def kwadrat(): for i in range(4): ...
[ "kozlowski.woj@outlook.com" ]
kozlowski.woj@outlook.com
d6d8a0a8e4bd901a25c210a72278a027d0e701ee
ac7c31d271ece050a5598aaf520d2f5f08c75425
/FA/q_algorithm.py
5d3906fcecf21e97d8218eeb7ee7f98da7768741
[]
no_license
srujanpanuganti/Dots-and-Boxes-Reinforcement-Learning
2ed33439e2fd40eef4353da30771aff7318c0e69
c1461d2c8e238d114690ab185c545b7e7ba35950
refs/heads/master
2022-07-17T06:31:05.876226
2020-05-12T04:15:00
2020-05-12T04:15:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,436
py
# -*- coding: utf-8 -*- """ Created on Mon Apr 29 14:09:53 2019 @author: Srujan Panuganti """ import numpy as np #import itertools from operator import add import random import copy from approximation import Estimator class q_learn: def __init__(self, total_actions, ...
[ "noreply@github.com" ]
srujanpanuganti.noreply@github.com
5cb9c51015c50cab850bea8216889f5c99c937d9
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_2_neat/16_0_2_Jormungandr_Revenge_of_the_pancakes.py
d9925b4d479f3e794bba1c134eedd620908d2b23
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
1,096
py
#!/usr/bin/env python __author__ = 'Bill' def check_pancakes(n): """(check_pancakes): function to test for all face up :param n: the pancakes string """ for ch in n: if ch == '-': return False return True def flip_pancakes(n): """(flip_pancakes...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
1cd64aeac36e0dc10aa204505f3bf8ccab4a83ad
8cb27c172442021165fa386106bf733959c8be71
/src/Splunkmath/mathinsplunk.py
a6a387dd07621475fd5cb9d4c34616b2a92e2abd
[]
no_license
dbreddyAI/SplunkML
15da618bdd33368fec022f10e286ff570037a8e4
d0147caf0f666b9c87c4c17f275ba52d4ec32e8c
refs/heads/master
2020-12-07T17:28:34.691184
2014-09-06T17:47:31
2014-09-06T17:47:31
232,760,661
1
0
null
2020-01-09T08:33:11
2020-01-09T08:33:10
null
UTF-8
Python
false
false
5,392
py
''' mathinsplunk module: functions to pull math out of splunk (i.e, after one of these functions are called, no more splunkvector operations can be done) uses things like stats avg,count,etc. Meant to be numpy-like. ''' import splunklib.client as client import splunklib.results as results import numpy as np # from .....
[ "ankitk@stanford.edu" ]
ankitk@stanford.edu
cd331c1a35d97ba039cafc1cf3303a4e88b1f523
bf3e0c392b198dee8ca2c0d192ba335634e49841
/utilities/templatetags/recurse.py
d0ca3c4038a6c30fd862e63a8d4412b245fb192a
[]
no_license
swolfod/TOS_Promotions
88b6b652a2697d1f72591c1d24ee0387b564b834
b856a69f50be4d1339591d2314c04f0186ab8023
refs/heads/master
2020-06-14T10:54:44.850828
2016-12-19T15:10:48
2016-12-19T15:10:48
75,193,124
0
0
null
null
null
null
UTF-8
Python
false
false
3,590
py
############################################################################### # Recurse template tag for Django v1.1 # Copyright (C) 2008 Lucas Murray # http://www.undefinedfire.com # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License a...
[ "swolfod@gmail.com" ]
swolfod@gmail.com
a254002a4d58e94c7726ba1e04f330ff133f6aca
488f92b110b94cc7d4e3c2fea7ffd244acc6fb23
/Lab 05 - Loopy Lab/lab_05.py
a130bbb17c393ec4ac18d0fd6a7239befa4c2db7
[]
no_license
miguelsh410/sanchez-miguel-arcade-games-work
cc4cb6efef40b3fcba079c599a8850207e669653
1b777721953cb054a0f714262885750f0c85b04a
refs/heads/master
2022-05-03T16:16:21.339268
2019-07-11T02:17:57
2019-07-11T02:17:57
196,303,906
0
0
null
null
null
null
UTF-8
Python
false
false
3,433
py
import arcade def draw_section_outlines(): # Draw squares on bottom arcade.draw_rectangle_outline(150, 150, 300, 300, arcade.color.BLACK) arcade.draw_rectangle_outline(450, 150, 300, 300, arcade.color.BLACK) arcade.draw_rectangle_outline(750, 150, 300, 300, arcade.color.BLACK) arcade.draw_rectangl...
[ "miguel_sh410@hotmail.com" ]
miguel_sh410@hotmail.com
057695d4910d814affa1cef49fbca93b9b520c88
df690ac0484ff04cb63f71f528a9d0a0e557d6a3
/.history/ws_20210608130810.py
59216ed4c38672800e718b0909e4e451e853a45b
[]
no_license
khanhdk0000/Mqtt-Web-Socket
437777c740c68d4197353e334f6fe6a629094afd
4f9e49a3817baa9ebc4e4f8dcffc21b6ea9d0134
refs/heads/master
2023-06-20T17:08:09.447381
2021-06-08T17:42:37
2021-06-08T17:42:37
375,090,458
0
0
null
null
null
null
UTF-8
Python
false
false
3,612
py
from flask import Flask, jsonify, request from flask_sock import Sock import time app = Flask(__name__) sock = Sock(app) import threading BROKER = 'io.adafruit.com' USER = 'khanhdk0000' PASSWORD = 'aio_FfID10QWNVSKUC2j15nLtOSeckin' TOPIC = 'khanhdk0000/feeds/' LIGHT = 'light' SOUND = 'sound' TEMP = 'temp' LCD = '...
[ "khanhtran28092000@gmail.com" ]
khanhtran28092000@gmail.com
4f57e86ebf5519b9db20e98fde471633fc6e4b12
488d56a0a2c100777dfe55ea9ea75f461256f8bc
/allmax/wsgi.py
2b7f6384c59140cb1829569dfa88061aaedfa8c4
[]
no_license
namor-katz/allmax
e2214e31082e7c9472f99632b1b0a34e386d0ca3
14f4c887daced8d548fed62b47d895f3ba8712b2
refs/heads/master
2020-07-01T22:38:43.287530
2019-08-08T19:46:53
2019-08-08T19:46:53
201,326,297
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
""" WSGI config for allmax project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
[ "namor925@gmail.com" ]
namor925@gmail.com
88fe37658f8407f12b873c62b2a21869341c3261
d282be07f3ef398817be3878510b67dd5845b249
/bin/redditerm
30cf5858b44045add2dd109a817c1072cbf7febd
[]
no_license
videah/dotfiles
c15e5d6ca999e11d68c43378fb849c5db21fb85d
8c6c7631d3856cf0a90224e2e20052105a4e84a2
refs/heads/master
2021-06-01T02:03:59.417210
2016-06-22T22:40:57
2016-06-22T22:40:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,558
#!/usr/bin/env python3 # # redditerm Version 0.2 # # This code is licensed under the MIT Open Source License. # # Copyright (c) 2015 Ruairidh Carmichael - ruairidhcarmichael@live.co.uk # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files ...
[ "ruairidhcarmichael@live.co.uk" ]
ruairidhcarmichael@live.co.uk
a14d3e665336b521fc8262c6e0e47e6396190015
90ec04a55a3c3ae13ce7b30f866d2fe16b7f552e
/curso-basico-python/Tema2/Ejercicios/listas/respuestas.py
f75caaeaf47aa6b620cf5c82f0feb1f4b1423ed5
[]
no_license
syscurso/CursosTwitch
7c58926d46d135b384db1d50cf1a48198e1c3c15
7bcbded082e343b661d907313a49902125ad0973
refs/heads/main
2023-03-06T23:33:49.359254
2021-02-24T14:06:00
2021-02-24T14:06:00
336,535,642
0
1
null
null
null
null
UTF-8
Python
false
false
1,085
py
# Lista de la que disponemos para los ejercicios lista = [5, 30, 17, 4, 24] # EJERCICIO 1 # Crea una variable que almacene la longitud de la lista y printeala longitud = len(lista) # EJERCICIO 2 # Crea una variable que almacene el último valor de la lista y printeala #Ambas son correctas ultimoVal = lista[longitud...
[ "syscurso@gmail.com" ]
syscurso@gmail.com
6298f8909b10c1ef31600f83005f206f19655241
5478476360fa51930ae1c3c8b42959152ffe038b
/factor calculation scripts/23.rvol.py
336678d12011a2c0d66a5bc1fea80efbb94d79d3
[ "MIT" ]
permissive
cagdemir/equity-index-predictors
ebffa54dcd9151a916b48fb9cdb3c3beffc82476
2546e72328de848222cb6a1c744ababab2058477
refs/heads/master
2020-12-20T23:06:25.296145
2020-03-01T12:48:16
2020-03-01T12:48:16
236,235,003
2
2
null
null
null
null
UTF-8
Python
false
false
6,182
py
# -*- coding: utf-8 -*- """ Created on Mon Dec 2 17:03:06 2019 @author: Administrator """ import pdblp import pandas as pd import numpy as np import matplotlib.pyplot as plt #import seaborn as sns plt.style.use('seaborn') #con = pdblp.BCon(debug=True, port=8194, timeout=5000) con = pdblp.BCon(debug...
[ "54540791+cagdemir@users.noreply.github.com" ]
54540791+cagdemir@users.noreply.github.com
bee05cd03c18b9bfb9bd86c0782b1244d48c34aa
df0ac2efe2037c03f47e8f5b0352d2072e49c315
/paytrek/client.py
eaa42551a8974b9716be3d473ad27832a43c4a04
[ "MIT" ]
permissive
erkanay/paytrek-python-client
59f2b155597ed6f4b1313bbdc10946f62d24abe3
ab02f0c1843647e590667acf161dba7f51c82622
refs/heads/master
2021-05-14T11:13:09.846087
2018-01-05T10:57:30
2018-01-05T10:57:30
116,364,748
0
0
null
null
null
null
UTF-8
Python
false
false
6,232
py
import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) class Paytrek(object): BASE_URLS = { 'sandbox': 'https://sandbox.paytrek.com', 'worldwide_live': 'https://secure.paytrek.com', 'turkey...
[ "ytu-erkan-aydin@ytu-erkan-ay.local" ]
ytu-erkan-aydin@ytu-erkan-ay.local
2e9c01aa40d1ab7c497942dbffcc0fa4a3ba2b26
4b73dc6b31bd2e25957c70677dc6fd0135a1a43b
/03_Avanzado/Unidad_06/test/add2_register_peewe.py.py
39ca7af97f070da147425d5db3d1a2fdd422c67a
[]
no_license
stick2yourmind/Python
557aae4b8422104ec244dcd45123b1c0b4ed2d7a
9629add21493bea0173fa6ed548bedb18e73fa32
refs/heads/master
2022-11-17T10:00:53.622658
2020-07-13T01:21:49
2020-07-13T01:21:49
272,263,927
0
0
null
null
null
null
UTF-8
Python
false
false
3,466
py
import random from peewee import * import datetime import mysql.connector my_sql_host_default = "localhost" my_sql_user_default = "root" my_sql_pass_default = "" my_sql_db_default = "catalogueDB" my_sql_table_default = "producto" columns_name_list = ["titulo", "fecha", "descripcion", "estado", "objeto"] my_sql_db = m...
[ "saravia.jonathan.m@gmail.com" ]
saravia.jonathan.m@gmail.com
f058f908a45f09325dc4edc777257215ab53d73b
f6dd0381ea30cacb9555ecee772dcca721a04310
/python/src/cintegrallib/algo/nn/opt.py
bba45245492f0974c5d7ca3d1723bc4b794604c4
[]
no_license
careychou/cintegral
4b305afde1e1569496b0d238bac3653280bac156
ede6a5bdd93c7509ce9e13f673e2eef5c8db21dc
refs/heads/master
2023-04-08T22:29:00.522208
2021-04-16T11:48:00
2021-04-16T11:48:00
343,204,656
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
import tensorflow as tf import numpy as np ### # utility functions for differential optimization from tensorflow # website # # newton root finding # Param: # grads1: dy/dx # grads2: hessian matrix d2y/dx2 def newton_root(grads1, grads2): gshape = grads1.shape nparam = tf.reduce_prod(gshape) grads1 = ...
[ "carey.h.chou@gmail.com" ]
carey.h.chou@gmail.com
37bd37efa7285ccccba19d5b872543c17d244ff7
a9d6606ac831df233ed5b9a8f0757c2596a72405
/pubcrawl/migrations/0001_initial.py
54405199e3e1e946b6e2cca3b9c6b005b0aa4765
[]
no_license
AAGlasgow/pubcrawler
a753ec295cb14a1e292abbe0d691a3263f453c82
6a23c8f0c41b34a7ff977d6e777889b73aeb4226
refs/heads/master
2016-09-06T00:32:31.758251
2015-03-27T17:09:18
2015-03-27T17:09:18
32,093,079
0
0
null
null
null
null
UTF-8
Python
false
false
4,648
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
[ "2079884F@student.gla.ac.uk" ]
2079884F@student.gla.ac.uk
b16eae335b0a0379a9d997a92554ec34481cb9c4
27076e3ab905ff9494c159fb53d5ad5e8ecd29c8
/笔记代码/python/test/test3.py
a10aee82a95f7c3878c5b3ea1126180052a40392
[]
no_license
windkidtrh/learn_text
598fee4a29382098d578a1dd616ca5da0f269f42
fda65095be8c9c5d81beb8513d479b6f6846701d
refs/heads/master
2020-03-10T17:04:25.005353
2018-12-12T12:10:26
2018-12-12T12:10:26
129,490,658
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
#coding:utf -8 import os def alter(file,old_str,new_str): """ 将替换的字符串写到一个新的文件中,然后将原文件删除,新文件改为原来文件的名字 :param file: 文件路径 :param old_str: 需要替换的字符串 :param new_str: 替换的字符串 :return: None """ with open(file, "r+") as f1,open("%s.doc" % file, "w") as f2: for x in f1: line = x...
[ "1442983474@qq.com" ]
1442983474@qq.com
6e3180bc027c26aa13a8dc0a405036ae94a748b9
a2220e9509e3a0ed1b5435aeac0130eb09377aae
/tools/repostats/stats.py
8aa8815a039581f8e7c90a89cfc2c23b182ad198
[]
no_license
librefonts/collection
fe1f3ec9064c5b01137732fdc543dff977be4119
817817628b388b621a699c1d4623201583836438
refs/heads/master
2016-09-05T21:46:04.909016
2015-01-27T19:51:34
2015-01-27T19:51:34
13,711,616
6
0
null
null
null
null
UTF-8
Python
false
false
984
py
# stats - get stats on the given repo # From # http://www.selenic.com/repo/python-hglib/file/tip/examples/stats.py # # Copyright (c) Matt Mackall <mpm@selenic.com> # Copyright (c) Dave Crossland <dave@understandinglimited.com> # MIT license @ http://www.selenic.com/repo/python-hglib/file/tip/LICENSE import sys import ...
[ "m@xen.ru" ]
m@xen.ru
6eb49e8db32d4611726004ff87a58fdd4e774e68
f2a625cefb799e08bb984cb131e98c3ea2920ec8
/OctoPrintHttpClient.py
5f6346ad12d471ef7c8b119dd6d325a2964d0b3f
[ "Apache-2.0" ]
permissive
AllenMcAfee/octoprint-printer-connection-plugin-for-cura
f576c78978b719ef8c5efab8ff3f9328bc68944a
5212d1153615aa608ac0a763ceb955e3e2bb25bf
refs/heads/master
2020-12-29T03:07:49.115524
2015-03-04T06:28:35
2015-03-04T06:28:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,065
py
# Copyright 2015 Scott Hraban # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ "scotthraban@gmail.com" ]
scotthraban@gmail.com
43762e6631bb0431b80bd2656e2d2522d44b3bed
3d228d5eac44b31d460dd81767b43309b7356577
/extra/graph/company_tree.py
f1637b2f1a04bcbe1902f64e15364798ff383c47
[ "BSD-3-Clause" ]
permissive
lsbardel/mathfun
da65a6f09faacdb4815111dae287c9b974acf928
98e7c210409c2b5777e91059c3651cef4f3045dd
refs/heads/master
2021-05-02T08:56:05.565539
2020-07-30T09:14:04
2020-07-30T09:14:04
26,242,622
0
0
null
null
null
null
UTF-8
Python
false
false
41
py
from mathfun.graph.template import Graph
[ "luca@quantmind.com" ]
luca@quantmind.com
81ff78d1540f5df07d51f5caa5b6559fe46bde09
7e0da49bbe69e3924828bb269e69307e0f41913d
/accounting_scrap.py
02d421242146999d9fbd097d4176f071fe2b903d
[]
no_license
mjaleman/social_network_py
2c06ffcc3f6a7c78e6146d659242ad2571ca9caa
691aacef77b2468f844c6258e6100f28fd94b774
refs/heads/main
2022-12-27T02:09:27.136538
2020-10-09T05:03:21
2020-10-09T05:03:21
302,537,287
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
#filename = sys[1] open_file = open('/Users/marlonaleman/Desktop/Work/GitHub/bookkeeping/business/inbox/todo/fireman_checking/149575-S12.CSV', 'r') print(open_file.readlines())
[ "mjaleman1997@gmail.com" ]
mjaleman1997@gmail.com
3da8f7b040ba3e4364324d6671fd5826cd2494b7
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/pkgs/odo-0.4.2-py27_0/lib/python2.7/site-packages/odo/backends/sparksql.py
80e27ad318d1981f6194e3e20d84b782da1089e7
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
9,639
py
from __future__ import division, print_function, absolute_import import os import glob import itertools import tempfile import shutil from functools import partial from collections import Iterator from datetime import datetime, date import pandas as pd import toolz from toolz.curried import get, map, memoize from t...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
3e975642797d10a8c17cd8f6be381c06081d0be0
6ff5e37147419b5ed5ee43a6654bf2bc8d6f5779
/maximum subarray.py
12ac9e4f14710a4a0d248c29fc80aa7f5d9fc197
[]
no_license
ashageorgesj/LeetCode
982fcdf5265ce98c02a27a7b55ff4273c4875dcd
afb8c8fbfa3f3a08d70c4fa12ab82bcb601bbb2d
refs/heads/master
2021-05-21T04:19:45.314378
2021-02-05T07:13:58
2021-02-05T07:13:58
252,539,269
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
# Using Kadane's algorithm class Solution: def maxSubArray(self, nums: List[int]) -> int: total = 0 maxVal = 0 if all([num < 0 for num in nums]): return max(nums) for i in range(0,len(nums)): total += nums[i] if total <= 0: total = ...
[ "ashageor@gmail.com" ]
ashageor@gmail.com
1eaab63b4751bf14ca331840769f850341508d9f
92a8591afa785eba467e0f31d825b3f588d4d7f6
/rendezvous/env/Scripts/django-admin.py
1c2717319af41d31bb3a2d44faa3ab959f68a5c9
[ "MIT" ]
permissive
gazh1987/Rendezvous
1c9c44d5146961d2cfae918c9377f2b041a0e711
4e58a18b6599f9255252f86cb2c36338d39e9780
refs/heads/master
2020-12-26T01:01:48.461903
2016-09-12T15:54:28
2016-09-12T15:54:28
47,191,831
0
0
null
null
null
null
UTF-8
Python
false
false
181
py
#!C:\Users\G\Documents\GitHub\Rendezvous\rendezvous\env\Scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "gary.hely2@student.dit.ie" ]
gary.hely2@student.dit.ie
3ffc5f6b56cf38ad702bf0fbbf6902e8b656686c
aec5c21025e849ca85c60130ee027dc76d04d8ba
/hola.py
1107ff1a1f1a61fef442614613429a6e02c9df6e
[]
no_license
chacar3/curso
2d7f3ac0578bd20cdfae1cbed57317ace54ecc5b
61f45cc5710152083368ae341cee9fc55723fd96
refs/heads/main
2023-08-22T22:08:53.802558
2021-10-19T21:46:43
2021-10-19T21:46:43
418,994,809
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
print("Hola Mundo") def fib(n): a, b = 0, 1 while a < n: print(a, end=' ') a, b = b, a+b fib(100)
[ "noreply@github.com" ]
chacar3.noreply@github.com
56749342e68294136dbbbacb342a3d9b2f01f30b
18b3ad3b0e1f7f10969738251e1201d01dfbc6bf
/backup_files/samplepy/passbyvalue.py
26689727f2944f32dee1688daef3ff1dc4632725
[]
no_license
sahthi/backup2
11d509b980e731c73733b1399a8143780779e75a
16bed38f0867fd7c766c2a008c8d43b0660f0cb0
refs/heads/master
2020-03-21T12:39:56.890129
2018-07-09T08:12:46
2018-07-09T08:12:46
138,565,151
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
def changeme(mylist): mylist = [1,2,3,4 ] print "values inside the function",mylist return mylist = [10,20,30] changeme(mylist) print"values outside the function ",mylist
[ "siddamsetty.sahithi@votarytech.com" ]
siddamsetty.sahithi@votarytech.com
1a8961c8a1590e97a75c83f4bdef0ec6c3a48893
4abda661304ee18724e28a0243ccbb7c9e359871
/gasoline/models/comment.py
f476c6a625e222dc9a71e9738fc0f51f443d5e79
[]
no_license
sfirmery/gasoline
62ee0c6a4c6c36db64abecbac2f6702b141e6d80
7ff5410cb677ecf213280dc4752c9a2e61a513f9
refs/heads/master
2020-04-21T04:20:08.523056
2014-04-01T22:13:10
2014-04-01T22:13:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
# -*- coding: utf-8 -*- from datetime import datetime import markdown2 from gasoline.core.extensions import db from gasoline.core.signals import event, activity from .user import User class Comment(db.EmbeddedDocument): author = db.ReferenceField(User) date = db.DateTimeField(default=datetime.utcnow) co...
[ "sylvain@firmery.fr" ]
sylvain@firmery.fr
e5b76034e7c6036b7c81ca4e1246520c552d8e69
4232db80ce44e91aa249c5f640a4e8fe4b75a471
/bushy/_pivotal.py
c6bc07ab7f8cbc13131780417b23e8dd5ced1f55
[]
no_license
junkafarian/bushy
97a8d215501b2424722ba37c3e6fe8a1b3d1ed5b
3d50bee8c6d6fc64939ae4e19f1e62ab17ad6154
refs/heads/master
2021-01-23T15:57:27.352579
2011-07-08T17:07:48
2011-07-08T17:07:48
1,221,588
1
1
null
null
null
null
UTF-8
Python
false
false
11,205
py
""" Utilities for interfacing with a Pivotal Tracker project """ import sys import optparse import httplib2 from datetime import datetime from commands import getoutput from pivotal import Pivotal, anyetree from bushy.base import Base __all__ = ['Bug', 'Feature', 'Finish', ] class Pi...
[ "fergus.doyle@largeblue.com" ]
fergus.doyle@largeblue.com
f8fd9391978c42645ffab97a26b62801717c3913
c4cb645799539089f89b3203a7ce88ba85cde199
/src/development/vortex/development/utils/data/loader/pytorch_loader.py
f970047939254b08d5fea11996c34433d50b6e90
[]
no_license
jesslynsepthiaa/vortex
2533d245f3003c649205af51f7692d6022d6638f
1532db8447d03e75d5ec26f93111270a4ccb7a7e
refs/heads/master
2023-01-10T19:20:25.190350
2020-11-13T07:20:39
2020-11-13T07:20:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
from torch.utils.data.dataloader import DataLoader supported_loaders = [('PytorchDataLoader','default')] # (Supported data loader, Supported dataset wrapper format) def create_loader(*args,**kwargs): return DataLoader(*args,**kwargs)
[ "alvinprayuda@nodeflux.io" ]
alvinprayuda@nodeflux.io
7e718881b9c46f43e2cc9329438179cd7fbc6988
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/CISCO-CDSTV-FSI-MIB.py
cb16a25f5a07fa321bae26f7dbc8039adcc9a510
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
6,231
py
# # PySNMP MIB module CISCO-CDSTV-FSI-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-CDSTV-FSI-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:35:42 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
db9c4a3e84a6f07991c42aaf777fce3637f14486
4f1923a2b4e42e806a2b29709b9aad2464f8831f
/dataloaders/dataset_mnist.py
077cf549bc1a1b27bbfb6b3bf638ecf7a69ddc80
[ "MIT" ]
permissive
ParkLabML/Dirichlet_Pruning
5b6f92d71d671da3b3a4a49c64e9541ef1bdd96e
0cc0406b7034e865dfb63188452fce3d67a0b881
refs/heads/master
2023-04-12T21:45:49.637771
2023-03-30T20:16:54
2023-03-30T20:16:54
340,360,892
2
0
null
null
null
null
UTF-8
Python
false
false
1,426
py
from torchvision import datasets, transforms import torch def load_mnist(BATCH_SIZE, trainval_perc=1): trainval_dataset = datasets.MNIST('data/MNIST', train=True, download=True, # transform=transforms.Compose([transforms.ToTensor(), ...
[ "kamil.m.adamczewski@gmail.com" ]
kamil.m.adamczewski@gmail.com
09f47ffa874febc1dd80bb23531d909ac281739b
694c187c8a00bee8c670c1690170099bad9b16b3
/hindex.py
edded2784cbd958ce569e1997c2a49c5589810d0
[]
no_license
ajayvenkat10/Competitive
301f220b6d296f7e34328f192c43c4d7ef208cb1
14f2ecebe10eb19f72cc412dd0c414b3b1de9b4d
refs/heads/master
2022-11-20T14:31:33.590099
2020-07-23T15:39:14
2020-07-23T15:39:14
281,599,951
0
0
null
null
null
null
UTF-8
Python
false
false
450
py
t = int(input()) for _ in range(t): n = int(input()) arr = list(map(int, input().split())) final = [1] val = 2 for i in range(1,len(arr)): count = 0 for j in range(i+1): if(arr[j] >= val): count += 1 if(count>=val): final.append(val...
[ "37923623+ajayvenkat10@users.noreply.github.com" ]
37923623+ajayvenkat10@users.noreply.github.com
1f83f2fd3f72b375690b8c90d78f0eae7f16cfe2
8507fe7cecb7db369fee27451109fa0c6d885d4c
/Classes/carrs.py
4ef83e9bb84233e9e01a9a1593c71244090f7086
[]
no_license
savanmin/pythonfreq
e7e781b2e4fb2f5d434bf9274ee02df1b35deec7
e3eeb0b15b24ce59a49a534e5760cf8dff7761b0
refs/heads/master
2021-09-04T03:48:51.318040
2018-01-15T13:58:09
2018-01-15T13:58:09
114,525,629
0
0
null
null
null
null
UTF-8
Python
false
false
729
py
class Car: def __init__(self, year, price): self.year = year self.price = price def about(self): print("Year of the car is %d and price is %d " % (self.year, self.price), end=" ") class Honda(Car): def __init__(self, year, price, model): Car.__init__(self, year, price) ...
[ "savanminsariya18@gmail.com" ]
savanminsariya18@gmail.com
c7462e99e7ed1e7b6c8e80a420ef23d76c534ce7
684007b4f55c6e967bbd36ec6982342950c4e8b9
/user_story/Homework05_Zhonghua_Bao.py
d9967616ee1ae12666d881c005c94f6a621f1f1a
[]
no_license
cyberKnight17/SSW-555-GEDCOM
93066de08bd48de0f562e1d8b9996ff50e33c44d
07a5aa0a79d5fa3df0e2f4f1d1d1eef93c1a9788
refs/heads/master
2021-10-28T08:10:17.499895
2019-04-23T00:15:43
2019-04-23T00:15:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,014
py
from datetime import datetime import unittest def periodCompare(dt1, dt2, dt3, dt4): """Compare two time period dt1 to dt2, dt3 to dt4 whether they have any intersection, include the condition where some date is not given """ result = None # convert string date into the date object if dt1 ...
[ "dingtongwang@outlook.com" ]
dingtongwang@outlook.com
27c40c41352325b166a5a71d7ac5b3512c460b63
58df77a3bf48213326872a878a15a737c56fad0d
/lists/migrations/0004_auto_20191120_2237.py
3b4a2a57e34f84ec53972489585bbef61566fb8f
[]
no_license
samnoh/airbnb-clone
7d84e3a09f7ca40cf2673bf8abe7d6820f18a4df
f5d9fdc096b4c40c27b391381686d4067f263894
refs/heads/master
2023-01-24T05:50:16.922036
2019-11-25T09:18:22
2019-11-25T09:18:22
211,789,729
0
0
null
2023-01-05T00:08:24
2019-09-30T06:22:55
Python
UTF-8
Python
false
false
530
py
# Generated by Django 2.2.5 on 2019-11-20 09:37 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('lists', '0003_auto_20191120_2216'), ] operations = [ migrations.AlterField...
[ "samnoh21@outlook.com" ]
samnoh21@outlook.com
18bc999bf22341e382cdddb4ddac6fa6549a0a16
e265e25633c583c5b0b1381238dd0e880d469f22
/blog/models.py
015260753321b75aa80dc91a3fa1eb53ede439dc
[ "MIT" ]
permissive
samuira/TutionMastor
ba59b8b963a761b55d8fedfc2b4d881beef812d3
5b6d89efc90a9ebb54766530554d7dc9d5ee8298
refs/heads/master
2023-01-12T12:26:35.935698
2020-01-04T13:17:18
2020-01-04T13:17:18
205,794,187
1
1
MIT
2023-01-07T09:18:05
2019-09-02T06:50:04
CSS
UTF-8
Python
false
false
633
py
from django.db import models from custom_admin.models import User class BlogPost(models.Model): published_on = models.DateTimeField(auto_now_add=False, blank=True, null=True) created_on = models.DateTimeField(auto_now_add=True, blank=True, null=True) created_by = models.ForeignKey(User, on_delete=models.C...
[ "rajesh.samui@digitalaptech.com" ]
rajesh.samui@digitalaptech.com
9c85786dbab95966ceed294a1c09e09cff8ab036
dda2a2318238440ec424fd566a01e7b6434a55e1
/hello.py
cbdb0de971176a3f22b9f9760dd419f632cc14a2
[]
no_license
sun-ck/learn-pythongit
0004012c955d5c66365ce2ba3710d33e80d3566f
3b92705481625aef030b8e6ec2601622e70a0166
refs/heads/master
2020-04-06T19:33:52.369131
2018-11-18T15:01:13
2018-11-18T15:01:13
157,741,270
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
#! python3 #这个程序用来向用户问好并登记用户的名字 print('尊敬的用户,您好!') print('请输入您的姓名或昵称:') #询问用户姓名或昵称 user_name = input() print('欢迎您加入本社区'+user_name) print('请输入您的年龄:') user_age = input() print('您快要'+str(int(user_age)+1)+'呢了')
[ "sun123scc@163.com" ]
sun123scc@163.com
c3e9ab55ca6831d12241535c587607e835858b78
e46a08579915bf098395a0629c237b8de8c21d7a
/migrations/versions/5992dfad25e9_.py
0aef95005ee1a17648dbbb627d8037987a69a774
[]
no_license
arashbzz/asqari
3080b4ee8bf0038ba7298e36ad8fcc125ff5e596
c7b2a3bf10519c3490eaeaf013781449d59e1c71
refs/heads/master
2023-07-10T10:26:28.255035
2021-08-17T12:46:19
2021-08-17T12:46:19
390,408,168
0
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
"""empty message Revision ID: 5992dfad25e9 Revises: 3a373e361543 Create Date: 2021-07-28 15:59:16.782493 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5992dfad25e9' down_revision = '3a373e361543' branch_labels = None depends_on = None def upgrade(): # ...
[ "Bazaz.Arash@zistab.net" ]
Bazaz.Arash@zistab.net
6452090ca100845c839848f14ac2d04f85352f4d
934235f70a390a3ba0d7b464cddd10872f31cda3
/rango/server/.history/tango_with_django/rango/admin_20210103130028.py
361f6ca167ae05dc1771706293718383039c718e
[]
no_license
deji100/Projects
6919041ba23e77a5c74e5ab7692bfcee38ececcb
17e64d954d1d7805be57ec5d8d4344e4944889e6
refs/heads/master
2023-04-30T05:25:03.143303
2021-05-20T15:00:43
2021-05-20T15:00:43
338,844,691
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
from django.contrib import admin from .models import Category, Page, User # Register your models here. class PageInline(admin.StackedInline): list_display = ('title', 'category', 'url') # fields = ('title', 'url', 'category') model class CategoryAdmin(admin.ModelAdmin): list_display = ('name', ...
[ "68882568+deji100@users.noreply.github.com" ]
68882568+deji100@users.noreply.github.com
14c625f012bd3934c0d225cf3b8a13d4edd5e01b
03aaee1451f921f37a3e59801f169086465a3788
/core/urls/v1.py
3f4f8a8fdd75c6390aba3d73aa5cf4bcdd5b79c2
[]
no_license
ChristianCastilloPY/backend_newsletter
197e1e93dad893edfa9a190fb97a08fcb5ba1c8a
43c3055b612a243746930a6d2d9537275870045d
refs/heads/master
2020-11-25T04:58:27.899484
2019-12-17T01:58:25
2019-12-17T01:58:25
228,511,366
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
from django.urls import include, path from rest_framework import routers from core.views import UserViewSet from newsletters.views import NewsletterViewSets, TagsViewSets router = routers.DefaultRouter() router.register(r'users', UserViewSet) router.register(r'newsletters', NewsletterViewSets) router.register(r'tag', ...
[ "cdcb91@hotmail.com" ]
cdcb91@hotmail.com
c879960cd4dc775c8db1ba284199a7d0b0825f72
d2d33fe343707afcfdc18c06547e16f7eb166983
/pretopologyx/__init__.py
058ea4059b8b017a99cdb835b4f28a6c0333a8a1
[]
no_license
jalabord/pretopologyx
4db2c8732cc51322f4001b444a33246ea585e8da
03cf8d3d2086773be2e1c1086e71d6cb97a4e528
refs/heads/master
2020-05-14T17:40:17.621699
2019-04-17T13:27:38
2019-04-17T13:27:38
181,896,219
2
0
null
null
null
null
UTF-8
Python
false
false
22
py
name = "pretopologyx"
[ "jlabordebar@gmail.com" ]
jlabordebar@gmail.com
ae6b3ab92e623b9b4eb6f6b440f136d3376dda32
c50a814aace937205c925b44b57cf3078d2416af
/face_detector.py
07c32bfbb992542f88636c7e9f70c252ace9bb18
[]
no_license
JamiKazmi/face_detection
f02bc018e7dbad405f5825093e06ee937c18b52a
434c7dfa6937aa2439922e0520d7fc3b26043026
refs/heads/master
2020-12-18T14:45:03.397862
2020-01-21T19:38:14
2020-01-21T19:38:14
235,424,437
0
0
null
null
null
null
UTF-8
Python
false
false
1,881
py
# import the necessary packages import cv2 as cv import numpy as np # load our serialized model from disk print('[INFO] loading model...') net = cv.dnn.readNetFromCaffe( 'files/deploy.prototxt.txt', 'files/res10_300x300_ssd_iter_140000.caffemodel' ) # load the input image and construct an input blo...
[ "noreply@github.com" ]
JamiKazmi.noreply@github.com
0f455d7b176d86b7bb8f1da032242070f9f64c87
c57286a76d184f6b67dfba7faa111ad89e18963c
/backend/website/migrations/0001_initial.py
372cc7e2f389bd23cb665100690acd025ea78b35
[]
no_license
aabele/kartona-strops.lv
3f1b7cde387ad23a40716de7380beac3f4802dba
b56e4b28ed4b9866329922afa4b117a6411ae73f
refs/heads/master
2022-05-05T18:42:42.731670
2019-12-09T19:13:49
2019-12-09T19:13:49
125,759,279
0
0
null
2022-04-22T20:51:48
2018-03-18T19:19:18
Python
UTF-8
Python
false
false
764
py
# Generated by Django 2.0.3 on 2018-03-23 18:13 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Feature', fields=[ ('id', models.AutoField(...
[ "aabele@gmail.com" ]
aabele@gmail.com
8926982881ac5435534f5f4f05f69881544cfdf3
6412ca05fa4efc7dac8de48a2b48783bacadd31b
/RUNTriggerStudies/test/crab3_TrigVal.py
f872abe510b33fda522da1167aef687e2247741b
[]
no_license
davidsheffield/RUNA
9f218261d022ec6ef4e22d673e3e519edb7b8cdb
f2ac360844b67777c689a226b92bbe7eb1cb0f6c
refs/heads/master
2021-01-18T10:56:44.233289
2015-11-04T09:24:38
2015-11-04T09:24:38
32,084,290
0
0
null
2015-03-12T15:22:26
2015-03-12T15:22:26
null
UTF-8
Python
false
false
1,960
py
################################################################## ######## TO RUN THIS: python crab3_QCD.py ######## DO NOT DO: crab submit crab3_QCD.py ################################################################## from CRABClient.UserUtilities import config from CRABAPI.RawCommand import crabCommand from ht...
[ "gomez@physics.rutgers.edu" ]
gomez@physics.rutgers.edu
53d4ead111e0079f93a23edb345237fecbed5bb6
ffe599794f7b90997b9721fca9a4ca860ea6e55e
/jionlp/algorithm/ner/ner_data_converter.py
3a62a90f9bed458f6a143984c7ab8c3b4ed5bfcf
[ "Apache-2.0" ]
permissive
XrosLiang/JioNLP
828434fa41440509b0eba84278a432d00f74fc74
63ec32d6c409849d38f275a513b1c02493d85f86
refs/heads/master
2022-11-10T21:37:43.271403
2020-06-24T04:04:26
2020-06-24T04:04:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,477
py
# -*- coding=utf-8 -*- # # NER 数据集有两种存储格式 # 默认采用的标注标准为 BIOES import json from typing import Dict, Any, Tuple, Optional, List from jionlp import logging __all__ = ['entity2tag', 'tag2entity'] def entity2tag(token_list: List[str], entities: List[Dict[str, Any]], formater='BIOES'): ''' 将实体 enti...
[ "dongrixinyu.89@163.com" ]
dongrixinyu.89@163.com
6c28b314b4dcc23be0144989a21fad8e4a426699
792bf6c694f519ac4fd7a3ac343d4c3e17e55d9d
/a6_merge_sort.py
e2b4dbc0405a76801bd7d5c2ecee338906687597
[]
no_license
atm1992/algorithm_interview
fb96b65f5ed2d0f3d6b6c5b430e9d33476d38aa2
ac1c2b041595e9689d775c69af373ec743299e3b
refs/heads/master
2022-12-13T06:56:02.056105
2020-08-18T15:58:11
2020-08-18T15:58:11
275,198,470
0
1
null
2020-08-31T13:10:09
2020-06-26T16:18:40
Python
UTF-8
Python
false
false
1,313
py
# -*- coding: UTF-8 -*- """ 归并排序。 核心思想也是分治法,先递归分解数组,然后再合并数组 """ def merge_sort(alist): if not alist or len(alist) < 2: return alist n = len(alist) mid = int(n / 2) # left_li是对原列表左半部分进行归并排序后,返回的有序新列表 left_li = merge_sort(alist[:mid]) # right_li是对原列表右半部分进行归并排序后,返回的有序新列表 right_li = me...
[ "atm1992@126.com" ]
atm1992@126.com
89e743033bdaf9bc5884b7c64680abb041b596a8
202c8826e2a32f9414b653e1ea12ebc09c7a8039
/mysql_db.py
d730e2b3bc3debf008d7e337dbc21a58b241cfea
[]
no_license
alexsumsher/mysql_connector_pooler
22727ac4bd9f9667c9b02152851abad0d8215fbe
f92f549ea14d58a86a668d2c3b26f4fb3527450f
refs/heads/master
2022-10-23T18:28:49.832336
2022-10-12T02:43:02
2022-10-12T02:43:02
145,304,551
1
0
null
null
null
null
UTF-8
Python
false
false
28,820
py
# -*- coding:utf-8 """ MySQL Database Connection. change to fit for poolo class. last update: 20171229. update: com_con,增加flexiable模式的pool 20180103: com_con, __enter__ with elock(thread.Lock) for thread safe 201803:new arg for execute_db: get_ins_id(false), weather return last insert id """ import MySQLdb import loggi...
[ "ersummer@126.com" ]
ersummer@126.com
5bbdcda6e08ba418163a20d725764c3c934c7ae2
ba9d6e33133709eb8ef9c643e50646596f8ab98b
/utils/tools.py
5d777f1c3521baca1b75c38a1b54257f5527b79d
[]
no_license
otniel/computer-vision
2eb5588d7662ada0999001083e5562e3c3e69fd1
82430fd60c21d3f6c6609b429b051b25526b0102
refs/heads/master
2021-01-25T07:07:51.592712
2015-05-18T17:29:10
2015-05-18T17:29:10
29,542,857
1
0
null
null
null
null
UTF-8
Python
false
false
7,169
py
__author__ = 'otniel' import Image import numpy as np import random import matplotlib.pyplot as plt from math import sqrt, floor MAX_PIXEL_INTENSITY = 255 HALF_PIXEL_INTENSITY = 127 MIN_PIXEL_INTENSITY = 0 def invert_rgb_image(image): pixels = image.load() inverted_image = Image.new(image.mode, image.size)...
[ "otnieel.aguilar@gmail.com" ]
otnieel.aguilar@gmail.com
4e9a441e005deba519bdcadeb7ea62dcdca17ba3
6c491c91b9d99a7b0a8d39bbc1a7c785cf9bba1d
/erehwon/profiles/forms.py
319004e783acd54776ba941df175729fd4e43072
[]
no_license
lucyrose93/Erehwon
7daa4e7a5c1bc5b395de54df9b6cdd86496b4f3f
4afc65305b8e4ff1e069fa444d3012ffeaa54e03
refs/heads/master
2020-05-29T08:50:53.152262
2016-10-06T18:36:10
2016-10-06T18:36:10
70,182,174
0
0
null
2016-10-06T18:56:46
2016-10-06T18:37:43
JavaScript
UTF-8
Python
false
false
380
py
from django import forms from profiles.models import Project, ErehwonUser from registration.forms import RegistrationForm class ProjectForm(forms.ModelForm): class Meta: model = Project fields = ('title','synopsis') class ErehwonUserSignUpForm(RegistrationForm): model = ErehwonUser ...
[ "marizadima@yahoo.com" ]
marizadima@yahoo.com
3d40546c359e6df7d0b2d8d22227284dda05fc65
a826d39ef808eb79b25723fe20caf029d2f4d6b8
/ex1.py
24c1c77191482c05d8d4b7389b460eafa347ef42
[]
no_license
paulvstheworld/functional_programming_exercises
e6f5bc12a17afbbb52249d87478840b8a8a550fa
70d97e90deb38ce6ab60989f6d6ac53351e2256c
refs/heads/master
2020-05-17T03:24:03.350354
2013-11-15T20:11:45
2013-11-15T20:11:45
14,433,478
1
0
null
null
null
null
UTF-8
Python
false
false
485
py
# Unfunctional version: names = ['Mary', 'Isla', 'Sam'] names = map(lambda x: hash(x), names) print names ''' for i in range(len(names)): names[i] = hash(names[i]) print names # => [6306819796133686941, 8135353348168144921, -1228887169324443034] ''' # Rewrite the code above as a map # Expected answer: [63...
[ "paulvstheworld@gmail.com" ]
paulvstheworld@gmail.com
bb53c9e191f0e6ad1a21914ca66f769ef49f3c88
ac8c31b5971161adf0b7e66d85effd0ec8f5b7dd
/Day 033/kanye/main.py
a023e6eb5e6d84c625ee4856c063de221ad7422a
[]
no_license
satuhyva/100daysOfPython
5f7e7e1959358bcb370f73abe0e5b9627acf01a2
bdd93c290434aa05bcd52cd96d602bd72acc4a41
refs/heads/master
2023-08-17T01:10:35.218447
2021-09-20T05:59:15
2021-09-20T05:59:15
394,317,321
0
0
null
null
null
null
UTF-8
Python
false
false
754
py
from tkinter import * import requests KANYE_URL = "https://api.kanye.rest" def get_quote(): response = requests.get(url=KANYE_URL) quote = response.json()["quote"] canvas.itemconfig(quote_text, text=quote) window = Tk() window.title("Kanye Says...") window.config(padx=50, pady=50) canvas = Canvas(wi...
[ "hyvarinen.satu.i@gmail.com" ]
hyvarinen.satu.i@gmail.com
86c3d10160790fc3aac4e804d5ec45920a02f446
380181172d9ccfaf373de5d5622ddf828b9a4d65
/make-sense-of-census-with-appending,slicing,mean,indexing/code.py
357385407051d0fedc514d23bfc08619328ebd63
[ "MIT" ]
permissive
ELAYARANI-MURUGESAN/greyatom-python-for-data-science
859df4ae4c4afefeb8a9cca9d420f6c9bbe6481d
67b0ad011eee86bb0dff0ee704575293809301f4
refs/heads/master
2022-10-05T12:36:56.413231
2020-06-06T12:45:14
2020-06-06T12:45:14
262,404,847
0
0
null
null
null
null
UTF-8
Python
false
false
1,480
py
# -------------- # Importing header files import numpy as np import warnings warnings.filterwarnings('ignore') #New record new_record=[[50, 9, 4, 1, 0, 0, 40, 0]] #Reading file data = np.genfromtxt(path, delimiter=",", skip_header=1) #Code starts here new_record=np.array(new_record) #print(new...
[ "ELAYARANI-MURUGESAN@users.noreply.github.com" ]
ELAYARANI-MURUGESAN@users.noreply.github.com
d7c149230b5773e89538397e73a63aabde5f11dc
274f13f5e1a2a440f262fb289edd035589cc1b89
/main.py
ceff8c6964352822efb5c35c4fe2ca367d12daeb
[]
no_license
brendanjhays/CavernRL
ba97cf010e5f43cd12efc4b6f905b5b47b6f2276
d4be7bd390b6c7333412baa64dc04f44b9b395ad
refs/heads/master
2023-06-30T14:34:44.526360
2021-07-31T00:28:26
2021-07-31T00:28:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,782
py
from typing import Set import tcod from const import Settings, Colors from engine import Engine from dungeon_procgen import generate_dungeon import copy import entity_factories import traceback def main() -> None: tileset = tcod.tileset.load_tilesheet( "sampleRoguelikeGraphic.png", 32, 8, tcod.tileset.CHA...
[ "brendan@luggle.com" ]
brendan@luggle.com
6ecbe9483dab0157b3744392d025a5dedadd6fb3
945f32b99fd1fb2a37dcdca3d0c8d2a434fc898d
/chap01/print_stars2.py
0063d53a065799752c49bd8d784801294865a83e
[]
no_license
MadJangE00/Algoritom_py
aa80084d21b9d6d7bcdfbc648e484d3170cbe262
890197acd5f727a6122f44e70b029e59d21a05ab
refs/heads/master
2023-08-24T19:53:28.993443
2021-09-28T08:00:49
2021-09-28T08:00:49
401,956,136
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
# *를 n개 출력하되 w개마다 줄바꿈하기 2 print('*를 출력합니다.') n = int(input('몇 개를 출력할까요?: ')) w = int(input('몇 개마다 줄바꿈할까요?: ')) for _ in range(n // w): print('*' * w) rest = n % w if rest: print('*' * rest)
[ "jiniixz@naver.com" ]
jiniixz@naver.com
0ea09ec878674f42ce2fb633727af303b0ff9662
830398bc5ae951b153ff695a40be7239742bc73e
/exercises/parse_dhcp_snooping.py
27114f9e94d30bcea5c6296a1383f9c2e461987f
[]
no_license
dmikos/pyneng
ff67f1d617a97d73103a7785a7bf86140e7baa82
543fb0d9fc63a2afee45d2465af3a4c3966e4a86
refs/heads/master
2021-01-25T14:56:44.181140
2018-04-23T04:31:00
2018-04-23T04:31:00
123,739,447
0
1
null
null
null
null
UTF-8
Python
false
false
669
py
# -*- coding: utf-8 -*- import re #'00:09:BB:3D:D6:58 10.1.10.2 86250 dhcp-snooping 10 FastEthernet0/1' regex = re.compile('(?P<mac>\S+) +(?P<ip>\S+) +\d+ +\S+ +(?P<vlan>\d+) +(?P<port>\S+)') result = [] with open('dhcp_snooping.txt') as data: for line in data: match = regex.search(lin...
[ "dkostinov@gmail.com" ]
dkostinov@gmail.com
d0e7fe53fe08e74620f08cc5d9b706d7ef3555b0
055a4195d5761784742014a1b365eab2708aa9c0
/v3.py
e5b530774c9d980c71e6139c5bc38f6f68e0a596
[]
no_license
gandharv42/versions
90bf1a1aab95d3f9bdb739edfb8ca40755923404
beb5fb581b387af4bded48269c5c4767fdb8baa2
refs/heads/master
2020-03-23T12:17:59.917246
2018-07-19T11:19:38
2018-07-19T11:19:38
141,550,244
0
0
null
null
null
null
UTF-8
Python
false
false
20
py
print ("version 3")
[ "noreply@github.com" ]
gandharv42.noreply@github.com
b8059810cfb4b4b8f554743338573e95cf4247f5
e31c411b82bee8d1ce1d45887e979fd95a4bb814
/venv/test.py
42e66d2150d310e879a63798cbc51bc05f9b6422
[]
no_license
ZTianle/reselm
9c1994e4b7907bdd4a304a4f64df00a4f956b59f
94e2732bfd3a62218ba247f41a495f0686f4239a
refs/heads/master
2020-05-03T23:18:44.398788
2019-04-02T14:13:07
2019-04-02T14:13:07
178,862,728
3
0
null
null
null
null
UTF-8
Python
false
false
783
py
import pandas as pd import numpy as np import matplotlib import matplotlib.pyplot as plt from elm_confidence import HiddenLayer import math #准备数据 y=sin(x) x = np.arange(0, 2*np.pi, 2*np.pi/100) y = np.sin(x) x = x.reshape(100, 1) y = y.reshape(100, 1) y_real = y + np.random.randn(100, 1)/5 plt.plot(x, y) plt.scatter(x,...
[ "tianlecsu@126.com" ]
tianlecsu@126.com
737e1ba8f65b27a875696795e43eca53b3814c61
566d1c7e6fcf1ec0bf9a196feb3537ed1fec2408
/index/urls.py
c382e05be35d2701260074d334efcc5f42df2118
[]
no_license
fduecnkbc/damir-django
99398d2de81a741bd78b42a5a7b6dfbbdfc6afc5
13ec3592a486e17640952e4ac207bc3aaa9913a7
refs/heads/master
2021-01-17T21:01:36.931939
2017-03-21T04:57:59
2017-03-21T04:57:59
84,156,805
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ # Examples: # url(r'^$', 'index.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/', include(admin.site.urls)), url(r'', include('news.urls')), url(r'^about/', include('...
[ "fduecnkbc@gmail.com" ]
fduecnkbc@gmail.com
626c1f1516f5ea6e5a6e6d929b05d0d694b71eac
82f2d0c99b8f8d0b3a404b82ce69acf44d88aace
/application/factory.py
b7d317d188af5f39e1ac43d05cf13f205b972970
[]
no_license
digital-land/register-editing-tool
aedf4af00f64000194d1b1d9cf82c2d87a31c38e
a0b2b1ca2fca9f6840993e98891026063dbb672b
refs/heads/master
2022-12-23T01:12:44.303887
2019-07-01T07:56:14
2019-07-01T07:56:14
192,899,362
0
1
null
2022-12-08T05:16:47
2019-06-20T10:23:39
CSS
UTF-8
Python
false
false
568
py
from flask import Flask def create_app(config_filename): app = Flask(__name__) app.config.from_object(config_filename) register_blueprints(app) register_extensions(app) # register_errorhandlers(app) # register_extensions(app) # register_commands(app) # register_filters(app) # register_cont...
[ "splogy2001@hotmail.com" ]
splogy2001@hotmail.com
0939786d769d6a46962a9bc61dc23f0e581d5056
b0a049c1170ea9cab31af77f4007085bfd27b2bc
/ros_basics/src/actions_quiz/src/my_script.py
cc36cf4540da212ec33200f5e922567c374b7c51
[]
no_license
nikh1508/ros_course_ws
edddfcbe0b7f1fc28cc019d1304ec2b65139481e
a1169ae7cc5ea6d15d35d19a670207f38148a1c9
refs/heads/master
2022-11-16T04:04:18.145933
2020-07-12T18:24:52
2020-07-12T18:24:52
275,440,694
0
1
null
null
null
null
UTF-8
Python
false
false
1,543
py
#! /usr/bin/env python import rospy import actionlib from actions_quiz.msg import CustomActionMsgAction, CustomActionMsgFeedback, CustomActionMsgResult from std_msgs.msg import Empty class CustomActionClass(object): _feedback = CustomActionMsgFeedback() _result = CustomActionMsgResult() _empty_msg = Empty...
[ "nikh150897@gmail.com" ]
nikh150897@gmail.com
7d8d38cff56abaccc46b4bc63af8baaa72e792f3
36ccb119c5a6bb1eb0f40ac34441bc78ae929fc4
/i3/blocks/imap
374a33535dfe4a4b0fb2682f1cae044d2a8017cb
[]
no_license
saraiva132/mydotfiles
dc6b3535af4a84ecf3d53a69a0a1db5820baa8e5
a09d2becfd47a21bb67e5575c2e85c27aa495378
refs/heads/master
2021-01-22T03:57:53.563105
2015-08-24T10:43:04
2015-08-24T10:43:04
35,304,697
0
0
null
null
null
null
UTF-8
Python
false
false
615
#!/usr/bin/env python import imaplib cache_timeout = 60 criterion = 'UNSEEN' imap_server = 'imap' mailbox = 'INBOX' name = 'unread' password = 'password' port = '993' user = 'user' def _get_mail_count(): try: connection = imaplib.IMAP4_SSL(imap_server, port) connection.login(user, password) ...
[ "rafael.saraiva@ua.pt" ]
rafael.saraiva@ua.pt
401fca7adffd5ba9509dd1df0b1cbe1c58dd4a61
ed4b355a76406afd7ae6e428f4a13b5989bc1f1a
/flow_control.py
980f2e3220f58ed341fa1d05f4403b54403621c6
[]
no_license
aymanesarrar/baby-python-steps
79ba86e11f1101440ddb6b0d208d303221416c6e
b317ac0d30338ed02669df3955d90f234f859b2a
refs/heads/main
2023-03-15T09:37:56.450743
2021-03-18T00:23:53
2021-03-18T00:23:53
343,595,237
2
0
null
null
null
null
UTF-8
Python
false
false
312
py
print('enter your age'); myAge = input() # idk man fuck python # writing some if check and learning some python syntax d zb wtf # ta chnahua hadchi azebiiiiiiiiiiiiiiiiiiiii if myAge >= 18 and myAge <= 50 : print('kbir') elif myAge > 50 and myAge <= 90 : print('kbir chuia hh') else : print('ta sir t9awd')
[ "aymensarrar1@gmail.com" ]
aymensarrar1@gmail.com
44b98e1c1ec0e2b236ab9eaf250583dc65a3c145
8a69bc0f671d19213d22d42e193ad9aaf157a060
/server/apps/products/urls.py
40b3826a41d05320c5757b3616f5a3353b52bc7b
[]
no_license
seanli9018/ecommerce_site
1d11741caad7f7f183b7df18d6920f9302790f73
bbe20afea850eaf44f2eec3a2b5fa5a6c4a0d82b
refs/heads/master
2023-03-07T22:56:32.514787
2021-02-19T05:15:16
2021-02-19T05:15:16
340,264,502
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
from django.urls import path from .views import ProductCategoryView app_name = 'products' urlpatterns = [ path('product-categories/<int:parent_category_id>/', ProductCategoryView.as_view(), name='product-categories'), ]
[ "seanli9018@gmail.com" ]
seanli9018@gmail.com
5582f91bf1c3cfa75269b84d834ed3f9e08e0ee2
5ef96b278a419451ea1715b37c0cca6ee7ff6ca2
/ms-labor/simpleled.py
eb45cc4c047a39eece077f5cebf81cafc92abb4a
[]
no_license
tedeler/SS17_ITSMOSY
a144715f8e7edf323286237275ccce75be0ff41e
d568ffb24bd429a7c5d3187137ab09213ced2a7f
refs/heads/master
2021-01-22T22:57:55.508159
2017-04-18T14:02:08
2017-04-18T14:02:08
85,598,353
1
0
null
null
null
null
UTF-8
Python
false
false
396
py
import RPi.GPIO as GPIO # GPIO Bibliothek importieren import time # Modul time importieren GPIO.setmode(GPIO.BOARD) # Verwende Board-Pinnummern GPIO.setup(26, GPIO.OUT) # Setze Pin 26 (GPIO7) als Ausg GPIO.output(26, True) # Lege 3.3V auf Pin 26 time.sleep(0.5) # Warte 500ms GPIO.out...
[ "torsten@localhost.localdomain" ]
torsten@localhost.localdomain
8435baa0b8beaab331ff8904a8889f896a8d23c0
9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56
/google/ads/googleads/v9/services/services/third_party_app_analytics_link_service/transports/__init__.py
502d5cf2169f355fb53779b340f3900e0e913770
[ "Apache-2.0" ]
permissive
GerhardusM/google-ads-python
73b275a06e5401e6b951a6cd99af98c247e34aa3
676ac5fcb5bec0d9b5897f4c950049dac5647555
refs/heads/master
2022-07-06T19:05:50.932553
2022-06-17T20:41:17
2022-06-17T20:41:17
207,535,443
0
0
Apache-2.0
2019-09-10T10:58:55
2019-09-10T10:58:55
null
UTF-8
Python
false
false
1,141
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
GerhardusM.noreply@github.com
ce7050ab38a7683c7b476a80901ac6beac9d0799
4fbd844113ec9d8c526d5f186274b40ad5502aa3
/algorithms/python3/maximize_distance_to_closest_person.py
37e744aa546a7f515c70e1f156bc63f0f499ee8d
[]
no_license
capric8416/leetcode
51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1
503b2e303b10a455be9596c31975ee7973819a3c
refs/heads/master
2022-07-16T21:41:07.492706
2020-04-22T06:18:16
2020-04-22T06:18:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
# !/usr/bin/env python # -*- coding: utf-8 -*- """ In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty.  There is at least one empty seat, and at least one person sitting. Alex wants to sit in the seat such that the distance between him and the closest person to him...
[ "capric8416@gmail.com" ]
capric8416@gmail.com
d86e1749616a76d2d38d3047025c8bd2f53d42fd
53438732c6bc70b0d15eea99d961d6036f8839df
/Auth1/venv/bin/pip3.7
7e7d4a7ec99e985fd6466a5c34625337413e6453
[]
no_license
Amarjeet2629/MyPycharmProjects
6e07c972dce8ef12453ae0246bcbfcfd03cba1fb
179a87f327d7c036a6192d0c6e372f2f1e3588ff
refs/heads/master
2023-05-07T20:32:22.091132
2021-04-20T17:06:15
2021-04-20T17:06:15
224,671,445
0
0
null
2023-04-21T20:51:29
2019-11-28T14:32:13
Python
UTF-8
Python
false
false
410
7
#!/home/amarjeet-pc/PycharmProjects/Auth1/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) ...
[ "amarjeet.sinha.mec17@itbhu.ac.in" ]
amarjeet.sinha.mec17@itbhu.ac.in
bdc5ced79424f14b50fb5c169992cc1ff2600102
d066177b3ab0a6b95542012a6d7ec5ad0ea5c8a7
/routes.py
0f232b861daa1eaacbe886e6ff9fbee0fdc33ce4
[]
no_license
kat-temp/wildfire-app
9e3cb099c06e9bb2f2d3cdb3b86816f45a1a5802
750cd2cac6d7650cfe70aab04628c399ae1195a5
refs/heads/master
2020-07-16T06:09:16.768637
2019-11-18T17:54:37
2019-11-18T17:54:37
205,735,798
0
0
null
null
null
null
UTF-8
Python
false
false
10,761
py
from app import app, db from flask import render_template, flash, redirect, url_for, request from app.forms import LoginForm, RegistrationForm, DeviceForm from app.models import User, Device, Temperature_Sensor, Humidity_Sensor, Rainfall_Sensor, Soil_Moisture_Sensor, Smoke_Sensor, Fire_Sensor, GPS_Module, Image from fl...
[ "noreply@github.com" ]
kat-temp.noreply@github.com
ff4c06f31536caffeed006b0bbb64555379489a6
96c3bd445497314c6aa72941e2bbee7a452f0ac4
/fabfile.py
25784f79c98c4b765d99c882a5be23187b3b4845
[]
no_license
L00J/LJblog
c729640845f180afa5bdb3c0c183f19148b82226
44361cbd801a03ae4196bf3e25f2374ee23e1ee3
refs/heads/master
2020-05-22T13:51:29.235362
2019-05-13T08:07:56
2019-05-13T08:07:56
186,367,261
0
0
null
null
null
null
UTF-8
Python
true
false
2,506
py
from fabric.api import env,run,cd,local,task,abort from fabric.colors import green,yellow,red from fabric.context_managers import settings,hide from fabric.contrib.console import confirm import datetime nowTime=datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') env.user = 'root' env.port = '55555' env.hosts = 'op...
[ "admin@attacker.club" ]
admin@attacker.club
a4c1cf9e7c876efc67b76ab08038a1496f959d60
5b21ba23e00c7c9c0596be99c45fb6c02339fe5b
/ex15.py
acfc10aa9a25b6bf9f679fa6b48911fae30217e4
[]
no_license
yuanzizi/py104
b1869da749e82a2931fe6dad861ee53ee254465a
013edb63a2f4d2c177dd41cffac6f7d343818e71
refs/heads/master
2021-01-09T23:40:27.866373
2017-08-10T07:04:02
2017-08-10T07:04:02
98,857,079
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
# ---- ex15 文件操作---------------- from sys import argv script,filename = argv txt = open(filename) # txt 文件指针的值 # <_io.TextIOWrapper name='ex15_sample.txt' mode='r' encoding='cp936'> # print(txt.read()) # 中文的文件要改编码,要不运行结果会报错 # UnicodeDecodeError: 'gbk' codec can't decode # byte 0xaf in position 113: illegal multi...
[ "eric_chi@139.com" ]
eric_chi@139.com
2dd164c21f51f254b46bd69ad2fcaba6affe1449
4564271e589df65d62a0d1c9d26a3d66342991cf
/Missions_to_Mars/scrape_mars.py
617e3331c6314bcdb5da970ac8d3b7e9f59eaf70
[]
no_license
katshamai/web-scraping-challenge
bc5aefe2b33882b41ddc49ec090200f402295c8b
9b4be5027891705f7650d3d97c7be2da32c93813
refs/heads/master
2022-12-03T06:18:41.108178
2020-08-22T15:57:25
2020-08-22T15:57:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,416
py
# Dependencies from splinter import Browser from bs4 import BeautifulSoup as bs import time from webdriver_manager.chrome import ChromeDriverManager import pandas as pd import requests from IPython.display import HTML def init_browser(): executable_path = {'executable_path': ChromeDriverManager().install()} br...
[ "64203831+katshamai@users.noreply.github.com" ]
64203831+katshamai@users.noreply.github.com
77cfa477b7c2922f9a2391fe201ca9abb75d5870
42d62352448b65d7890dbcef4f1a278b78ff12c8
/tox.ini
20bd31455aeff16031c69fa852822995ed6d1cd9
[]
no_license
bboalimoe/avos
76d4396ccdc8ebf655e18c193cb696bac74ede85
9722d4757ef004f368de825f45e7490905a0b6ed
refs/heads/master
2020-12-11T03:52:31.081813
2014-08-24T09:55:47
2014-08-24T09:55:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
326
ini
#!/usr/bin/python # -*- coding: utf-8 -*- # This file is part of avos. # https://github.com/wumaogit/avos # Licensed under the MIT license: # http://www.opensource.org/licenses/MIT-license # Copyright (c) 2014 wumaogit actor2019@gmail.com [tox] envlist = py27, py34, pypy [testenv] commands = make setup make...
[ "actor2019@gmail.com" ]
actor2019@gmail.com
b1f6c26aa06da29d31a9474eab24f85605527cdd
1c6fa623a4d84a1d40a6c9a511932fcb429dc573
/game_agent.py
3e2d18f838b7545b37e5eda1ae53c8fa40aab036
[]
no_license
paumartinez/AIND-Isolation
c43a238f96ff521629d949115ac3513a618a61d8
3dc6e4845aa7963c26b4ac656b6d4acef9452205
refs/heads/master
2021-01-13T13:05:02.918337
2017-06-22T01:44:18
2017-06-22T01:44:18
95,062,605
0
0
null
null
null
null
UTF-8
Python
false
false
16,632
py
"""This file contains all the classes you must complete for this project. You can use the test cases in agent_test.py to help during development, and augment the test suite with your own test cases to further test your code. You must test your agent's strength against a set of agents with known relative strength usin...
[ "paulamartinez86@gmail.com" ]
paulamartinez86@gmail.com
6facf6cbf0378817c10bb92998c839f580db38b2
6fb294c9433cd8e829f325c70ac49cde0e3f8b62
/day3/ex14.py
39bbf46dd4cb42d07e35ed76e09357c8828c8e6d
[ "MIT" ]
permissive
dsky1990/python_30days
52fd479027b9f7ec9f9cc868a9b170b025aa3a7a
3a9d8a29bd32979be1f4ef01be44999073dab5c4
refs/heads/master
2020-04-01T23:50:12.806760
2018-11-07T15:16:27
2018-11-07T15:16:27
153,775,207
1
0
null
null
null
null
UTF-8
Python
false
false
509
py
from sys import argv script, user_name = argv prompt = '>' print("Hi %s, I'm the %s script" %(user_name, script)) print("I'd like to ask you a few questions") print("Do you like me, %s?" %user_name) likes = input(prompt) print("Where do you live %s" %user_name) lives = input(prompt) print("What kind of computer do yo...
[ "dutian1990@gmail.com" ]
dutian1990@gmail.com
ff07c2b3a2221434ea44dabaa054aad91240ca18
5b50f00bd39791aa264128c352c78004b6252d43
/fav_books/urls.py
2a55820ffa1dd7d6dc273e8b30efa60a28ad8f43
[]
no_license
DaThresh/Favorite-Books
49612b71cbdf8aceec75ab28fca3729d82636f58
4f4682c7240e671469aaad4f820ed511261f9db9
refs/heads/master
2020-08-17T11:32:17.623293
2019-10-16T23:01:57
2019-10-16T23:01:57
215,659,563
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
"""fav_books URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-...
[ "thresh3@me.com" ]
thresh3@me.com
bda4e649a366f06ac199f0d86b0577ac277b22a9
7a5d867c9f80661900ee711389e272dc2bfb47ab
/PubSub/gcp_pubsub_client.py
53fa5eedffe5e45010c2b1d1ac4b809dad81ea3a
[]
no_license
AliAbdelaal/pubsub-lib
20478b75fa436402f966415db0a5c3da09e4a40c
a3a079abfe7164ecee9044e162897bf1301d3e13
refs/heads/master
2023-03-11T00:52:31.351791
2021-02-21T21:49:07
2021-02-21T21:49:07
340,931,014
1
0
null
2021-02-21T20:23:29
2021-02-21T15:13:26
Python
UTF-8
Python
false
false
1,832
py
import os import json from typing import Callable, Tuple from google.auth import jwt from google.cloud import pubsub_v1 from PubSub.broker import BrokerClient PUBLISHER_AUDIENCE = "https://pubsub.googleapis.com/google.pubsub.v1.Publisher" AUDIENCE = "https://pubsub.googleapis.com/google.pubsub.v1.Subscriber" def ack...
[ "aliabdelaal369@gmail.com" ]
aliabdelaal369@gmail.com
dd59dfa1017f3a432517f488d3749ce29cdab955
be116b3c2d9f1ecf8e1abf7e9916505a6c2b9359
/secondDay/TwoColorsBolls.py
18dcf20315bce1388053222ddc70b5702ec666a2
[]
no_license
littleyellowbicycle/MyPython100Days
eee13a2ccbcc2aa76c4e327beed3bae3550273bb
106d96feb020a9e40dc47a2d9d59f67eb9a6af11
refs/heads/master
2020-06-02T03:28:30.883872
2019-07-16T15:32:28
2019-07-16T15:32:28
191,020,746
1
0
null
null
null
null
UTF-8
Python
false
false
720
py
from random import randrange, randint, sample def display(balls): ''' for index, ball in enumerate(balls): if index == len(balls) - 1: print('|', end='\n') print('%2d' % ball, end=' ') ''' for index in range(len(balls)): if index == len(balls) - 1: print...
[ "33934765+littleyellowbicycle@users.noreply.github.com" ]
33934765+littleyellowbicycle@users.noreply.github.com
a4a27e3eb0c39273105293f96a89dc9b05e6f10a
b6a84594f8c29d968014faaddd49abeb7537a5fc
/python/1040.moving-stones-until-consecutive-ii.py
799deed3b361b4636ffa827b1e859308649b708d
[]
no_license
nickyfoto/lc
8a6af3df114e693e265d0ede03f4d4e1283e010e
3633b4df3e24968057c7d684689b931c5a8032d3
refs/heads/master
2020-09-16T19:23:07.765917
2020-06-07T17:18:06
2020-06-07T17:18:06
223,866,098
0
0
null
null
null
null
UTF-8
Python
false
false
1,913
py
# # @lc app=leetcode id=1040 lang=python3 # # [1040] Moving Stones Until Consecutive II # # https://leetcode.com/problems/moving-stones-until-consecutive-ii/description/ # # algorithms # Medium (52.07%) # Likes: 152 # Dislikes: 231 # Total Accepted: 4.5K # Total Submissions: 8.7K # Testcase Example: '[7,4,9]' # ...
[ "nickyfoto@gmail.com" ]
nickyfoto@gmail.com
1fbcc72ce3a5b32bedfe77ded1d772570f94ba40
67047189c30d2330690b0fbc7d5e8e00fbe76ff2
/board/packages/forms/form.py
217d96b5f5308d0eb96891d2e418d00df277bf75
[]
no_license
TerisseNicolas/SoundBoard
03fa9a1232a2beb63d0acdc3c558ca8a1c2f845a
407763e8b9f0c7cc0a61795f38b263e19609673f
refs/heads/master
2020-03-28T08:13:16.383219
2018-09-09T10:12:28
2018-09-09T10:12:28
147,952,300
0
0
null
null
null
null
UTF-8
Python
false
false
98
py
from django import forms class UploadFileForm(forms.Form): file = forms.FileField(label='')
[ "nicolas.terisse@gmail.com" ]
nicolas.terisse@gmail.com
9adf50d27141869fb0693ddeb11ca31431191545
bd93fa910151c278be8249055bc084e5a5c35a6a
/Python/DjangoTest2/booktest/models.py
3735ebb85498b072da8a92f26cec7a80e612790c
[]
no_license
ahojcn/practice-code
bd81595b80239cd2550183093566bd536a83ed3f
b65f4e76271479269463e92fd3fd41585c2ac792
refs/heads/master
2021-07-10T14:15:08.036592
2020-07-09T11:32:16
2020-07-09T11:32:16
153,059,349
2
2
null
null
null
null
UTF-8
Python
false
false
704
py
from django.db import models # Create your models here. # 创建模型 class BookInfo(models.Model): """图书模型类""" # 图书名 btitle = models.CharField(max_length=20) # 出版日期 bpub_date = models.DateField() def __str__(self): return self.btitle class HeroInfo(models.Model): """书中的英雄人物类""" # ...
[ "hanoi_ahoj@icloud.com" ]
hanoi_ahoj@icloud.com
e4bc7b6b121c3119273fd3ba6f036e1f1642683d
85be14600f251c09e364d712e629a4c2bb6082de
/CIS_211_CS_II/BlackJack/Deck.py
d37ed70b599adbe2570d07b7fcaac1ddf33bb6b1
[]
no_license
MrCQuinn/Homework-2014-15
04afc94d1ffc63919a48fbe66910457a9f8d05c7
cbaae190a3f086b7786cf391998f57b74217f72a
refs/heads/master
2020-07-03T06:22:51.718106
2016-11-19T07:35:30
2016-11-19T07:35:30
74,193,022
0
0
null
null
null
null
UTF-8
Python
false
false
1,912
py
#Charlie Quinn #Deck class from sys import argv from Card import * import random class Deck(list): """ deck class, inherits from list class and constructor builds a list of 52 card objects. shuffle randomizes list, deal returns first n items, and restore adds card items back into the list """ ...
[ "cquinn@uoregon.edu" ]
cquinn@uoregon.edu
564d81d0051cf261ea8cf3a8060afb2cc81c2406
718f4a6f53da14dbd79031928900a26c4de65ccb
/optimize_NMDA_KIN2.py
bf70c8a044f4ff48aa4d86895cd5e68a6e41e55f
[]
no_license
neurosutras/CA1Sim
ff37e5ae96cc00d923bbcf333d75842c34156b5b
9a5796e5de9b9be477d61837c164fcbccbe3c8ce
refs/heads/master
2023-04-08T01:39:09.559475
2022-01-13T20:20:45
2022-01-13T20:20:45
29,497,263
4
3
null
null
null
null
UTF-8
Python
false
false
7,046
py
__author__ = 'Aaron D. Milstein' from specify_cells import * from plot_results import * import scipy.optimize as optimize import random """ This simulation uses scipy.optimize to iterate through NMDA_KIN mechanism parameters to fit target EPSP kinetics. """ #morph_filename = 'EB1-early-bifurcation.swc' morph_filename =...
[ "neurosutras@gmail.com" ]
neurosutras@gmail.com