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
56f86dc6c0a259ca285bd88a0154b64f93efce6c
ae8d8bcf32c44807dd2754a6452fb58b5e5e1b20
/app/main/__init__.py
c935b683268f5f9972b9bd8fc6c3cf941bdd315e
[]
no_license
pa564/FlaskProject_HelloWeb
1faed891c839756215e6dfc15db9fbddd76e1c8e
e915fee7a5332c6f932bae1725bd90e8b9317c42
refs/heads/master
2021-01-01T16:55:04.002692
2017-07-28T14:49:41
2017-07-28T14:49:41
97,953,122
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
from flask import Blueprint main = Blueprint('main', __name__) '''通过实例化一个 Blueprint 类对象可以创建蓝本。这个构造函数有两个必须>指定的参数:蓝本的名字和蓝本所在的包或模块。和程序一样,大多数情况下第>二个参数使用 Python 的__name__ 变量即可。''' from . import views, errors '''程序的路由保存在包里的 app/main/views.py 模块中,而错误处理程序保存在 app/main/errors.py 模块中。导入这两个模块就能把路由和错误处理程序与蓝本关联起来。注意,这些模块在 app/main...
[ "554155355@qq.com" ]
554155355@qq.com
bfa4d9252d274dec3e0ce43f769c32937b556bd2
c646ad2dfab80f7183076dde82a82e6e1a6222d2
/athenatools/migrations/0020_auto_20190310_1740.py
be477bcef3efdd5ba21adaa8f83cd8f2ee03bde9
[ "MIT" ]
permissive
taojy123/AthenaTools
b7f5a799dca60237fb69f312f5a913964ae00097
612b113c5c9aeb0e6612242540fa05b7f0ac02c5
refs/heads/master
2023-07-21T06:32:15.638271
2023-07-19T09:42:01
2023-07-19T09:42:01
141,523,525
9
2
MIT
2023-06-30T22:19:13
2018-07-19T04:14:20
Python
UTF-8
Python
false
false
662
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.17 on 2019-03-10 09:40 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('athenatools', '0019_auto_20190310_1737'), ] operations = [ migrations.Alte...
[ "taojy123@163.com" ]
taojy123@163.com
6049517f851c3bd08be8b1b02ae13dad86e973bf
45b0104bdf4dfb4b49328787c225d3fd360c306e
/messages.py
85cd6d9f2cb5182bcb2b00e3f5c62be123d8d9ee
[]
no_license
anishdhandore/Discord-Bot
da60161de653186e1f9c16f59a67049c49c4f003
aac8ad7d64c61b0f3d3be1d33432defaebd27c2a
refs/heads/main
2023-06-27T19:15:03.333582
2021-08-01T18:46:02
2021-08-01T18:46:02
391,691,772
0
0
null
null
null
null
UTF-8
Python
false
false
572
py
import random greetings = ["hi", "hello", "hey"] sad = ["unhappy", "sad", "dejected", "lonely", "heartbroken", "hopeless", "grieved", "lost", "disgusted", "troubled", "resigned"] happy = ["happy", "cheerful", "ecstatic", "elated", "joyous", "pleased", "overjoyed", "delighted"] health = ["how are you", "how ...
[ "anish.dhandore@gmail.com" ]
anish.dhandore@gmail.com
f2b7baa30891dd9758879e169749092388203448
7cf793abff5c938022f296b8919c80e09b4c8c41
/titanic/model.py
b2851b56e60408c49b66d5425b57052b7df96589
[]
no_license
thelostpeace/kaggle
ac4571ace5b75ac155e3b3693987c19f11f5bc50
cec4561302755054d71ab78a0354ad42dd732819
refs/heads/master
2022-12-09T17:08:16.326650
2020-09-15T07:40:57
2020-09-15T07:40:57
286,690,632
0
0
null
null
null
null
UTF-8
Python
false
false
5,718
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.base import TransformerMixin import glob import seaborn as sns from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from xgboost import XGBClassifier from sklearn.model_selection import R...
[ "charlesliu.cn.bj@gmail.com" ]
charlesliu.cn.bj@gmail.com
e7d82df61207595abcb4af0910991cfd3ad13011
6445a05c5562a01ded6eafd31cdc27c781592732
/src/nira/common/utility.py
3d263001fdc57a288574587faae5dcc2bc4bfb89
[]
no_license
yaksea/nira
54d51831f95681697517f1a8571c726212d5b9dd
76f155224efc947f4616ad34c9dc4cbea4d6828b
refs/heads/master
2016-08-03T16:14:08.409992
2014-05-27T02:45:49
2014-05-27T02:45:49
20,204,599
1
0
null
null
null
null
UTF-8
Python
false
false
6,595
py
#encoding=utf-8 ''' Created on 2012-2-9 @author: Administrator ''' import socket import time import traceback import os import string import urlparse import re import json import datetime import inspect #方法一 def getLocalIP(): localIP = socket.gethostbyname(socket.gethostname())#得到本地ip print "local ip:%s " % l...
[ "yaksea@gmail.com" ]
yaksea@gmail.com
90d927ab56ec4de577635936ff751a48e36362a3
92a945c252d524e114c0be2f11c0c3dd0472c6dc
/Data Visualization/testing.py
27e687d06aa0e4f592f1bba3edd71ba95b29a64a
[]
no_license
manojl711/demo
5e061ceee3e1d4ddbfc89a3f4c06e4dc0fee91dd
3dcf9b82fd938e2692e99ccbe13632c0c31cdc83
refs/heads/master
2020-08-08T18:52:33.476029
2019-10-09T11:41:09
2019-10-09T11:41:09
213,893,251
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
x=5 #todo write full function print (x) #todo read full oops
[ "noreply@github.com" ]
manojl711.noreply@github.com
5824796494ad3a28bb8813faf3037c2c1b03f5c8
0f56217c7ee34f79cc484fa04ab0688ffe9d044a
/src/main/python/secure_all/storage/json_store.py
947967b87df10250ff7f3237f0cd2957de708420
[]
no_license
100429115/G82.T18.FP
5379307cedbe0c0810a6806930751b96dad76bdd
e3afad4febffdf2fa0ec06f9ded9d982cd83e199
refs/heads/main
2023-05-04T01:37:56.309936
2021-05-21T15:43:52
2021-05-21T15:43:52
368,489,547
0
0
null
null
null
null
UTF-8
Python
false
false
2,288
py
"""Generic class for JSON storage""" import json from secure_all.exception.access_management_exception import AccessManagementException class JsonStore(): """Managest stores based on JsonFiles""" _FILE_PATH = "" _ID_FIELD = "" def __init__(self): self._data_list = [] self.load_store()...
[ "100429115@alumnos.uc3m.es" ]
100429115@alumnos.uc3m.es
25c179044cf74b0b9882aff57aff4f752a9b648e
2ed516312ade74f8a66b8ede065615daae54625c
/twitter_tweet.py
835710a8a63dcd45b2c5b54e836417eab9b5669c
[]
no_license
takashaaark/ai_blog
88cf28e4d6a837b6a5e3ef640325a16447e3d165
4e08ea807d338b1cc32445de1ef769a370a2e3fa
refs/heads/master
2021-01-15T11:40:09.158824
2017-08-08T00:44:41
2017-08-08T00:44:41
99,633,413
0
0
null
null
null
null
UTF-8
Python
false
false
2,652
py
import json from requests_oauthlib import OAuth1Session from twitter_settings import * from datetime import datetime def send_secure_request(png_address): url_media = "https://upload.twitter.com/1.1/media/upload.json" url_text = "https://api.twitter.com/1.1/statuses/update.json" # OAuth認証 セッションを開始 t...
[ "T@T-no-MacBook-Pro.local" ]
T@T-no-MacBook-Pro.local
c9cfa6125a47739e3b072a7f43bd89eec1d1bdaa
78c60592fcdf250277777c035d9d86f647ed0723
/pandas/konelpy-wordcloud/konelpy5movie.py
52b47e089871d9006b28f6d8069f5d18cbc2cdb5
[]
no_license
pyh3887/Python-Pandas
ba30428e45e0409fbea9babba0c95f65bfd18359
9bb998ecfc86f0894fc73ab77f7faf3d4fe174a7
refs/heads/master
2022-09-19T09:43:36.905666
2020-06-04T02:04:20
2020-06-04T02:04:20
267,988,629
0
0
null
null
null
null
UTF-8
Python
false
false
4,500
py
from bs4 import BeautifulSoup import requests from konlpy.tag import Okt from collections import Counter import numpy as np import pandas as pd from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer okt = Okt() def movie_scrap(url): result = [] for p in range(10): r = request...
[ "bnb0409@gmail.com" ]
bnb0409@gmail.com
636c4f2ea08562f9046de8d6850b359042accba1
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/2079.py
dabae5ddf4c853871e4c704366eb7ae6a0c75929
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
def answer(n): n = [int(d) for d in str(n)] lenn = len(n) if (lenn == 1): return n[0] else: for i in range(lenn-1, 0, -1): last = n[i] second_last = n[i-1] if(last < second_last): n[i] = 9 n[i-1] = int(n[i-1]) - 1 ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
5c8a1a9ea3fea4a00301238ee65e03d6d06d56f8
226cae75c568aed8b5a13890349fb9c6bf34d36a
/Scripts/FinalPrediction.py
147f98b360e365d359f7b6dface2cd4b9523c79c
[]
no_license
shivamlohia/VehicleAssistant
037f3ddbb1623e649326404f57b024500f5bea12
4da8944492e1689e6887c2f0596288268c349e83
refs/heads/master
2023-04-18T15:29:46.257225
2020-06-17T10:08:33
2020-06-17T10:08:33
362,826,357
0
0
null
null
null
null
UTF-8
Python
false
false
2,262
py
import pandas as pd import numpy as np import os import joblib import sys originalData = pd.read_csv("D:/Rishu/VehicleAssistant/Scripts/Dataset/train-data.csv") trainedData = pd.read_csv("D:/Rishu/VehicleAssistant/Scripts/Dataset/trained.csv") trainedData.drop(trainedData.columns[0], axis=1, inplace=True) trainedData....
[ "utkarshaanand123@gmail.com" ]
utkarshaanand123@gmail.com
7f3cc3272047c3aac34731acfe8dd2e7dd57dba2
965453203f1858c986203d39ab18a5e33446b4c4
/G02-project-1-final/lvq_digits.py
34f7db572346c4f0d10072de7cf5f2446ae203a5
[]
no_license
thoatran/MachineLearning
6a1253287a8391478bd6bda2d998e0ee0500e221
cb4f0fd93a020c78646c127a5cf274c975c8f5c8
refs/heads/main
2023-02-13T19:47:01.711976
2021-01-06T17:00:39
2021-01-06T17:00:39
327,376,270
0
0
null
null
null
null
UTF-8
Python
false
false
5,613
py
from __future__ import print_function import numpy as np import matplotlib.pyplot as plt from sklearn.metrics import accuracy_score, confusion_matrix import pandas as pd import seaborn as sns from time import time print('LVQ classifier, Digits dataset') # np.random.seed(7) # Xy_train_pd = pd.read_csv('...
[ "thoatran@Thoas-MacBook-Pro.local" ]
thoatran@Thoas-MacBook-Pro.local
767116e335ce8d255d33fed6b21bfe818c1d9742
4717b8009fe3d42eace211092a1b7f12dc2f826b
/devel/lib/python2.7/dist-packages/aquacore/srv/_IsCalibrated.py
3a2f0c8be82a4ba3b8ea7c9e48fdec368a09ad0d
[]
no_license
Shabirmean/Assignment1
d8cc6e65d30072340568d2948118a26d3bca06d1
ba789432de49b8a4ff7fe543984b22d63d13f9d6
refs/heads/master
2021-09-07T19:50:21.130729
2018-02-28T04:25:58
2018-02-28T04:25:58
108,614,820
0
0
null
2017-10-28T02:54:22
2017-10-28T02:54:22
null
UTF-8
Python
false
false
6,719
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from aquacore/IsCalibratedRequest.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class IsCalibratedRequest(genpy.Message): _md5sum = "d41d8cd98f00b204e9800998ecf8427e"...
[ "shabir_tck09@hotmail.com" ]
shabir_tck09@hotmail.com
0f2cf8d26e748018f6253715fe1c3ddd1f58f25b
cfdf920dd001a15f05cc8ec7fdec1ddc3d591b0e
/run.py
10a70653045ea097e9d5039202654c8fcd3acee1
[]
no_license
dean/app-template
ee0fc58791c685869a0020dca03e80c9d508004e
49ccf9ef4f9e490e43ca6a7768dee20964deb6a8
refs/heads/master
2020-05-17T00:35:12.168919
2014-01-06T05:26:15
2014-01-06T05:26:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
import sys import argparse sys.dont_write_bytecode = True from appname import app parser = argparse.ArgumentParser() parser.add_argument("-i", "--ip", help="listen to this IP address", default="0.0.0.0") parser.add_argument("-p", "--port", help="listen to this port", default="8...
[ "deanjohnson222@gmail.com" ]
deanjohnson222@gmail.com
2f21e8ac91cc0ed1a3de6696a9a4c676c9582aec
f9bd85ed8e592ea05f12b613cecdebf274245520
/netpyntest_lib/api.py
5f822756952d354e4bbe671b87e6842c57d86f83
[ "BSD-2-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
aespinosaalvarez/NetPyntest
8d3fd2dd2623afa41dbbc183d48cee8c7e15e1b2
7189647ecfa584d4cef9763f753c2a74bf941c08
refs/heads/master
2020-05-29T09:33:00.692025
2016-08-08T21:11:57
2016-08-08T21:11:57
59,188,862
1
0
null
null
null
null
UTF-8
Python
false
false
10,351
py
# -*- coding: utf-8 -*- """ This file contains API calls and Data """ import six from sys import path from termcolor import colored from os import geteuid from os import path from .data import * __version__ = "1.0.0" __all__ = ["run_console", "run", "GlobalParameters"] # -----------------------------------------...
[ "noreply@github.com" ]
aespinosaalvarez.noreply@github.com
5b0ae5bb0969903a0924612161f4a14169f658b2
3b20cafef71bf6b32fb461b64ff806593a69100b
/Part 8 - Deep Learning/Section 40 - Convolutional Neural Networks (CNN)/Python/convolutional_neural_network.py
0f9177bc0c0a380118f7665146e81bdbc851c32e
[]
no_license
GraydonHall42/Machine-Learning-in-Python
88124f632e1f912c2e0c5182ee6ec9857b3ff46c
a672ed5a145719aa9b219aef18bc7ab31bf89dd7
refs/heads/main
2023-07-16T19:52:37.914628
2021-08-29T00:00:06
2021-08-29T00:00:06
400,905,667
0
0
null
null
null
null
UTF-8
Python
false
false
3,222
py
# Convolutional Neural Network # Importing the libraries import tensorflow as tf from keras.preprocessing.image import ImageDataGenerator tf.__version__ # Part 1 - Data Preprocessing training_set_path = r'C:\Users\grayd\Downloads\Section+40+-+Convolutional+Neural+Networks+(CNN)\Section 40 - Convolutional Neural Netw...
[ "gwhall@ualberta.ca" ]
gwhall@ualberta.ca
ab9af6723c6116f3b71ccc60655438c85d7cc063
ca3ff0bc4f7e9e8fcf677afa3a1a18dd2129a5d4
/daily_problems/problem_201_to_300/223.py
4dc6c1336c613927f995bedaac4769db5534fc33
[ "MIT" ]
permissive
rrwt/daily-coding-challenge
d9b23a82a1a3c4824b8f1aeacf6584afc5189ce7
4dcd59eaff021be0b9b1aba1dda73248c81454b7
refs/heads/master
2022-05-29T04:32:44.406196
2022-05-25T01:12:01
2022-05-25T01:12:01
181,972,357
1
0
MIT
2021-04-20T19:58:43
2019-04-17T21:41:25
Python
UTF-8
Python
false
false
1,077
py
""" Typically, an implementation of in-order traversal of a binary tree has O(h) space complexity, where h is the height of the tree. Write a program to compute the in-order traversal of a binary tree using O(1) space. """ from daily_problems.binary_tree_node import Node def inorder(node: Node) -> None: """ T...
[ "rohitrawat2000@gmail.com" ]
rohitrawat2000@gmail.com
dba4b938431ce989cda1759e375370a014a0df06
df454d2320604599ff4d3a8b433d9d66311ea800
/Crs2_python_data_structures/ex8_05_file_string_parsing.py
23cdf90b58fd4318bd3af089af694e41135c9131
[]
no_license
aclaudio123/python-for-everybody
84f71bc4cdc56cff4adace98414a5f570ef3ac72
92865da71872735076d897ed64961961baf32d88
refs/heads/master
2020-04-17T16:40:07.117512
2019-01-22T21:45:04
2019-01-22T21:45:04
166,750,536
0
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
# # Title: File processing 4: string parsing # Author: Claudio Asangong # # 8.5 Open the file mbox-short.txt and read it line by line. When you find a # line that starts with 'From ' like the following line: # From stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008 # You will parse the From line using split() and pr...
[ "aclaudio123@gmail.com" ]
aclaudio123@gmail.com
510d289f293406782423dd2e47660241143a7eb2
bbf17b65d1e7e963ce9b3c16951292842193a0cf
/fuzzinator/call/platform_info_decorator.py
a7216ab5180dd9ea52d3af459ae370154466d427
[ "BSD-3-Clause" ]
permissive
tkeri/fuzzinator
5bbb0a23ebc419f93e8221618074c4a53be22630
e18b3db876c644cc06b57fb7815aa4f04bbd1775
refs/heads/master
2023-05-24T06:48:19.027415
2019-12-08T17:21:06
2019-12-08T17:21:06
152,223,017
1
0
BSD-3-Clause
2018-10-09T09:19:16
2018-10-09T09:19:16
null
UTF-8
Python
false
false
1,230
py
# Copyright (c) 2016-2019 Renata Hodovan, Akos Kiss. # # Licensed under the BSD 3-Clause License # <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>. # This file may not be copied, modified, or distributed except # according to those terms. import platform from . import CallableDecorator class PlatformI...
[ "reni@inf.u-szeged.hu" ]
reni@inf.u-szeged.hu
4541d67b4ce5fdecbe1247766b337ab311ad34ec
2b1b030afd5f7f2b5d7c694b0dd62e5277751562
/Scripts/Sample.py
21439ac152e33303a2a172b141152b5f1d8ee44f
[]
no_license
alexjorenby/IterativeFeatureExtraction
be9a85e9a98be2677885d6c56db3b9e7e87551d0
adb2cf79b6c48a89e01b9c2731e14dbc15807399
refs/heads/master
2020-05-16T21:44:56.833527
2019-04-24T22:38:56
2019-04-24T22:38:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,691
py
import pandas as pd import numpy as np import uuid import os import FormatDF as FDF import Helpers as H def get_sample(source_location, features, target, sample_size, custom_queries=[], threshold=0.5, even=True, feature_config='../../feature_config', save_seed=False, seed_directory='../../seeds'): df = pd.read_c...
[ "alexjorenby@gmail.com" ]
alexjorenby@gmail.com
53042686daf4e0e9234c01f7c30825091085fb82
1892a473b7eed6aaa712bc2959a1aca48beec284
/forks/baselines/baselines/a2c/a2c.py
ccf3c974c9a1f5842ed949c55ad3d14cde79b5c5
[ "MIT" ]
permissive
AndrewPaulChester/sage-code
d3753bc894f21ce057c1a273e54926e368529e2b
9fe676bfbcbc6f642eca29b30a1027fba2a426a0
refs/heads/main
2023-05-05T19:08:21.655463
2021-05-27T05:21:54
2021-05-27T05:21:54
371,245,286
2
0
null
null
null
null
UTF-8
Python
false
false
9,563
py
import time import functools import tensorflow as tf from forks.baselines.baselines import logger from forks.baselines.baselines.common import set_global_seeds, explained_variance from forks.baselines.baselines.common import tf_util from forks.baselines.baselines.common.policies import build_policy from forks.basel...
[ "48459485+AndrewPaulChester@users.noreply.github.com" ]
48459485+AndrewPaulChester@users.noreply.github.com
df7066c7097c363e0a5cfd24e56d80c089835999
2294cd66c22212d37bfb35d34e8edf34aae7b7a5
/utils.py
99b29716f4dd9afcc76b5bf8bf97a517a0274447
[]
no_license
greenlet/research
2dfe2007db1d76f6a77464175d8f405db93edf6b
4ef1a11137a8d9b6fa203bee866615ecfb942eb4
refs/heads/master
2020-09-26T22:49:13.865178
2020-02-07T13:52:24
2020-02-07T14:06:23
226,360,114
0
0
null
null
null
null
UTF-8
Python
false
false
8,310
py
import cv2 import time from datetime import datetime import os import math from PIL import Image import numpy as np import shutil import pprint PP = pprint.PrettyPrinter(indent=4) class FPS_Counter: def __init__(self, name=None, lapse_sec=5): self._tag = '{} '.format(name) if name else '' self._...
[ "mikhail.burakov@braingarden.ai" ]
mikhail.burakov@braingarden.ai
9490176895b2ae659e3f07614b9df6cb3227b13d
9e1853b14df342ced541cfa03de21a29b90928d6
/src/prefect/tasks/monte_carlo/client.py
fa51f35a3fd1f1b15b7a832eb92e0bdd06a4d9ea
[ "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
Fraznist/prefect
0f2200c7b337440ffab90ab0c8b323055d651ab6
96183e95ad069c927799a6a272bc3d9a9cce3197
refs/heads/master
2023-04-14T08:34:52.007193
2022-03-16T22:10:17
2022-03-16T22:10:17
251,570,909
2
0
Apache-2.0
2023-04-08T08:56:51
2020-03-31T10:29:40
Python
UTF-8
Python
false
false
8,033
py
import pendulum import requests from typing import Any, Dict, List from prefect.utilities.logging import get_logger from prefect.utilities.graphql import format_graphql_request_error from prefect.exceptions import ClientError class MonteCarloClient: def __init__( self, api_key_id: str, ap...
[ "noreply@github.com" ]
Fraznist.noreply@github.com
91f40cdb27689ed23d26bf5c7eedd39430af985b
407e5a2ff25d9e769ca2707a2d67b72372fd284e
/lang/nl.py
0ce3c5822360ad23eb62ded1dda66a678b85bac8
[ "MIT" ]
permissive
2099365072/AMM
076a7c7ae955c7b663359c26f5c4be4271a46600
e09c03245c3298acbce02dd3c288147572598722
refs/heads/master
2020-03-23T11:29:39.175696
2018-03-21T22:11:32
2018-03-21T22:11:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
787
py
""" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Audiophiles Music Manager Build 20180119 VER0.0.0PREALPHA * * (C)2017 Mattijs Snepvangers pegasus.ict@gmail.com * * /lang/nl.py Dutch language file VER0.0.0PREALPH...
[ "pegasus.ict@gmail.com" ]
pegasus.ict@gmail.com
610e5269ddf735a2c71b8377c209889b1a33125f
ac759792ec27bd354864d7ed4b6acdc2bed0f41d
/intro/adjacentElementsProduct.py
04a0d3e1df7a0bbfa93c929bc201789e578b3870
[]
no_license
Junist96/codefights
1dd8ec27ac73c8ab10c859822700b5df9ac27192
e30cde9ab0b1c474d5f629220fe382dca36690c7
refs/heads/master
2020-03-22T11:02:16.115613
2018-01-30T02:11:31
2018-01-30T02:11:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
121
py
def adjacentElementsProduct(inputArray): ia = inputArray return max([ia[i] * ia[i+1] for i in range(len(ia)-1)])
[ "rev.hyeok@gmail.com" ]
rev.hyeok@gmail.com
083a55ab9b3726ba95cfc1f8990e1edfd802881a
b969d8975d04aae145aba754f52c88ff126eaabe
/mysite/uploads/migrations/0001_initial.py
4d897b33085494883111829afc0577f42a202376
[]
no_license
Florent-Vanhollebeke/exercice_martin
2c937bfa61fe47534536ad29cd1c8f5faf655af8
796ca2ee37a9dc021c2ca972e5cc3a0c014f2905
refs/heads/main
2023-03-19T12:12:12.613657
2021-03-04T12:46:26
2021-03-04T12:46:26
343,694,522
0
0
null
2021-03-04T12:46:27
2021-03-02T08:11:28
Python
UTF-8
Python
false
false
1,611
py
# Generated by Django 3.1.7 on 2021-03-03 16:35 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="Person", fields=[ ...
[ "florent.vanhollebeke@gmail.com" ]
florent.vanhollebeke@gmail.com
d9cb5d3c7cf83ca0f9e171e92e251dd5ad3a0635
a8830481cdb33ff7d0945c95036f586b5cb0894b
/maketemplates/plot_single_SESN.py
0413c2e793f8d607295ebd13adb509e4dac75f8f
[]
no_license
fedhere/GPSNtempl
b6f2c4824a32387d6f767335448e44637f362878
cdcad219f0f3c03d3d9856f64c0bd104535c021d
refs/heads/main
2023-07-12T01:41:32.367338
2023-06-26T00:50:09
2023-06-26T00:50:09
87,359,563
0
0
null
null
null
null
UTF-8
Python
false
false
6,306
py
import os import pylab as pl import matplotlib.pyplot as plt import sys import pandas as pd import numpy as np from matplotlib.ticker import (MultipleLocator) # s = json.load( open(str(os.getenv ('PUI2015'))+"/fbb_matplotlibrc.json") ) # pl.rcParams.update(s) cmd_folder = os.path.realpath(os.getenv("SESNCFAlib")) if ...
[ "somayeh.khakpash@gmail.com" ]
somayeh.khakpash@gmail.com
4bbfc08eeae4172cd81dd50a0ed35d50ab7a920f
e344705eb6b8bae2e06cd658f540219f8b6e7973
/web-gaode/model/models.py
4312acd8233615fac60c0dcab66ba88a3016712e
[]
no_license
dustw/my-scrapy
023211f1d32b2883ef58249ec528ec15658db86d
7263680cfa16e2615187b745c97fbc3cacf3780a
refs/heads/master
2020-04-11T21:13:45.622353
2017-08-23T02:49:31
2017-08-23T02:49:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,965
py
import pymysql class Models(object): def __init__(self, database, user, password): self.database = database self.user = user self.password = password self.conn = pymysql.connect(host='localhost', port=3306, user=self.user, passwd=self.password, db=self.database, charset='utf8') ...
[ "azraelkuan@gmail.com" ]
azraelkuan@gmail.com
1b7d73f05488c156b0a5cde7e0c9deb9525698b6
3d99c01787ce8b88ac366bedc6c5ef9b50bdfe08
/occurances of W and C in 1line.py
42fb4458bf00f79a9e3750b9f1b67f62eae1fd6b
[]
no_license
Mu-Wahba/Python-Exercises
7128f4d0f1833c0304a8701d0ef6e5b194c368a6
a8c1197406ac25f835f14c40b1f8a827737ae3e1
refs/heads/master
2021-09-01T04:17:08.010766
2017-12-24T18:21:53
2017-12-24T18:21:53
115,280,321
0
0
null
null
null
null
UTF-8
Python
false
false
62
py
def word(line,w) print({w:line.count(w) for w in line}
[ "noreply@github.com" ]
Mu-Wahba.noreply@github.com
86ea046eff9a54bf6301b03c7bb461a5ec0e0706
c245e7baf6342159537f37caf78a1af05894d8d6
/Sıralama.py
2654a1d0d91cf8c20c3ff59cfb686527faff9182
[ "MIT" ]
permissive
Barisbozbas/KelimeAlgilamaV1
c7ee69c660e8c27965412d1a7ac935a6f596dec4
8f9094f9b059d154be47e7e4e7588746c5dbc2cf
refs/heads/main
2023-02-01T05:01:30.374331
2020-12-20T13:50:39
2020-12-20T13:50:39
323,078,725
1
0
null
null
null
null
UTF-8
Python
false
false
1,596
py
import numpy as np import pandas as pd import cv2 import pytesseract from PIL import ImageGrab import time from numpy import savetxt pytesseract.pytesseract.tesseract_cmd = r'D:\Tesseract-OCR\tesseract.exe' img = cv2.imread('bir.jpg') img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) boxes= pytesseract.image_to_data(img) ...
[ "b.bosbas@gmail.com" ]
b.bosbas@gmail.com
df8deb825c797a1ca96645c2dd6a746572243100
584b44d855235f20a66eab6d7680c4d686e9b8fc
/mas_framework/__init__.py
ec89d41a586df25d6a0521f6cea4ea1f4889d472
[]
no_license
dpathania1/DMASF
a06bf4f9ead584b35e8fc719aefeec4c67a03aa3
2e4f74584cea5bdc115436b5ee12b17d600d75ff
refs/heads/master
2021-01-21T00:17:13.801241
2015-07-22T01:28:35
2015-07-22T01:38:43
39,477,954
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
import api import db from constants import * from defagenthandler import * from defworldhandler import *
[ "deepika.pathania@iamplus.com" ]
deepika.pathania@iamplus.com
784008aa176130df12041add5e7389e7f0ecf13d
3cb6c930f29008a0e57bab24cb9b1e9f08f98ef2
/production/modules/stdlib/python_source/ref_code/dapps_web_config_PIA_template.py
762ba99448e2912f5a73e3be13b446ad19a36de7
[]
no_license
email2dba/peoplesoft_config_puppet
0b8caa62b2f9bd267f3e6e0d2ad10077577db382
1b74727e6eb722a39bd0addedfa60fca2879c481
refs/heads/main
2023-06-11T19:08:56.292943
2021-06-28T22:42:49
2021-06-28T22:42:49
381,177,673
0
0
null
null
null
null
UTF-8
Python
false
false
3,152
py
import os #Please set eviroment before running this #. /psoft/pia/pia92/ndv/webserv/NDV_WEB11_1/bin/setEnv.sh #/apps/mwhome/weblogic/weblogic1213_dapps-web11/wlserver/common/bin/wlst.sh ./dapps_web_config_PIA_template.py # ##connect('websystem','dapps$2020','t3://dapps-web11.dev.amsd.company.com:14081') connect(...
[ "email2dba@gmail.com" ]
email2dba@gmail.com
2703f34cf65fa4f9917950dce1bd9579586c9655
525422435c4bcd14003e9669e66801d8ae5220b8
/playground/playground.py
d92d0fc9ac7971d3833c8cfc6df2916b9e666e05
[]
no_license
CMOW5/python101
6833f8b28cab3b17b0d8481cb4c3ef79416c4f8f
6260e2a2b135809b684828b1faf355f54f96ae3e
refs/heads/master
2020-04-14T13:45:23.591718
2019-01-04T20:02:08
2019-01-04T20:02:08
163,877,981
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
class MyClass: """A simple example class""" i = 12345 def f(self): return 'hello world' print(MyClass.i) MyClass.i = 'changed' b = MyClass() print(MyClass.i) print(b.i) MyClass.counter = 2 print(MyClass.counter)
[ "tec.cmos@gmail.com" ]
tec.cmos@gmail.com
18fe578dc4619ac221feb6fd2d7db9595a61fcda
5a99ef908f10d3796db6182d2e7bff5b16686eff
/whichday/whichday_v4.0.py
f15713105e5add064d03afe9b763d0fccff32add
[]
no_license
zhihui2015/learnPython
33b395411375f02a335962d15994820657f53ff6
4f99a7c9b7e7921e9d7eff8233a98d333eb32216
refs/heads/master
2020-06-22T23:06:28.638965
2019-07-23T12:21:49
2019-07-23T12:21:49
198,425,291
0
0
null
null
null
null
UTF-8
Python
false
false
1,415
py
""" 作者:郑智慧 版本:4.0 日期:2019/7/13 功能:输入日期判断第几天-元组tuple使用 2.0功能:用列表list实现 3.0功能:用集合set实现 4.0功能:用字典dict实现 """ import datetime as dt def is_leap_year(year): """ 输入年份判断是否是闰年 :param year: 年份 :return: 是或否 """ is_leap = False if (year % 400 == 0) or ((year % 4 == 0) and (...
[ "zhihui.zheng@qq.com" ]
zhihui.zheng@qq.com
5e128497813679539492963b6c4de706d0910067
5c223403f463a3441b73357e52fb5c58e0b1ec63
/two_sum_python.py
5c94002fba10db1431896aa05409a52c40d3c9e5
[]
no_license
JasonWayne/leetcode
d99b5d6dc992eda52046d4f5eb681094e804d936
06074ee9fb42421e55bf03ee317eff987c549af4
refs/heads/master
2016-08-06T14:34:45.065009
2015-10-15T09:30:56
2015-10-15T09:30:56
22,906,006
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
class Solution: # @return a tuple, (index1, index2) def twoSum(self, num, target): dic = {} for i in range(len(num)): try: index1 = dic[target - num[i]] index2 = i if index1 < index2: return (index1+1, index2+1) else: return (index2+1, index1+1) except: dic[num[i]] = i def...
[ "wuwenjie0102@gmail.com" ]
wuwenjie0102@gmail.com
85f5ed913181b6267d99589a640341b8e5440341
90962368ccbfd007ff81a45f3a20909fe84f0bd6
/disciplines.py
5357e13d7947965b2ccb58e4d64e02a766b979c2
[]
no_license
JessBrunker/KniziaDecathlon
0d7b031ebc5aa308167910a442466021a449667c
c615092c80ce206660c587a804c4926c8733572b
refs/heads/master
2020-03-31T20:11:48.796544
2018-10-11T04:14:34
2018-10-11T04:14:34
152,529,553
1
0
null
null
null
null
UTF-8
Python
false
false
3,537
py
from player import Player from discipline_descriptions import print_description from scoring import print_scores, updateTotals import decathlon import os def validateYesOrNo(text): '''gets either a y or n for heights function''' while not text or text not in ['y', 'n']: text = input('Please enter eit...
[ "sloththing5@gmail.com" ]
sloththing5@gmail.com
48ca4154ce4ec5d4d39946ed6370ae73ff6eb5cf
7f4ca59b41d7ba124645de95fa47cd5b99f3c450
/LearningBasic/BasicModel/mnist_with_summaries.py
b5d3e55ca3e053b0d4f7bccd980580aff13396cf
[]
no_license
awp4211/TensorFlowLearning
7281b6dd4fbeff6f590501c63648acc1790cc4fe
e60c3fa2137f6b11ff5de35803c8c73bcfb0ef70
refs/heads/master
2020-04-10T15:56:06.396097
2017-03-19T14:35:49
2017-03-19T14:35:49
67,996,834
0
1
null
null
null
null
UTF-8
Python
false
false
6,548
py
# -*- coding: utf-8 -*- """ A simple MNIST classifier which displays summaries in TensorBoard This is an unimpressive MNIST model,but it is a good example of using tf.name_scope to make graph legible in the TensorBoard graph explorer,and of naming summary tags so that they are grouped meaningfully in TensorBoard """ ...
[ "1097028825@qq.com" ]
1097028825@qq.com
340c175b92734cc7c9e5016aa448f704506f356e
820492d60b65fefc322f7ee902ed90ac22393160
/test.py
995b66e059e4105147c7d0d7a1f0ffe15a87f4b1
[]
no_license
ChristianGold/TechTree
e3d570f863b71a746b08dce75394a8b4dd7bb6b2
f021409a161f38ca929589c250ccf32c8b102667
refs/heads/master
2020-05-21T00:26:23.403820
2014-10-25T18:55:00
2014-10-25T18:55:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,523
py
__author__ = 'Christian' from PySide import QtGui, QtCore import sys class Main(QtGui.QMainWindow): def __init__(self, parent = None): super(Main, self).__init__(parent) # main button self.addButton = QtGui.QPushButton('button to add other widgets') self.addButton.clicked.connect(s...
[ "christian.gold@stud.h-da.de" ]
christian.gold@stud.h-da.de
b15770ca426b1ffea780f265f913236bc36b3d1a
d5ea1c0dffaf6a4ae0ebfc2b02801e8d25627fc5
/PerfectCRM-master/beeflow/urls.py
e21322a864003d2df3c1250ece9ee84cfe2000a7
[]
no_license
dba-base/python-homework
c0681fbb5846879378a5717a0b1f694e135df0e6
0f507783503de5cd9202e7d6bf63fc5ae3c26272
refs/heads/master
2020-04-05T13:40:35.312320
2018-09-29T09:44:26
2018-09-29T09:44:26
94,948,396
3
1
null
null
null
null
UTF-8
Python
false
false
483
py
from django.conf.urls import url,include from beeflow import views urlpatterns = [ url(r'^my_application/$', views.my_application,name='my_application'), url(r'^flow_detail/(\d+)/$', views.flow_detail,name='flow_detail'), url(r'^my_approvals/$', views.my_approvals,name='my_approvals'), url(r'^my_ap...
[ "haoxiaoyu424@outlook.com" ]
haoxiaoyu424@outlook.com
9c5a0d0aae13b2405e6c1a0eae1cf25e63ec0318
d2189145e7be2c836017bea0d09a473bf1bc5a63
/Reposiciones/PerezAyalaYocoyaniEhecatzin/Quinta/primos.py
e85dae701e63e19bd1b500914226c948c5d3fa98
[]
no_license
emilianoNM/Tecnicas3
12d10ce8d78803c8d2cd6a721786a68f7ee2809d
6ad7f0427ab9e23643a28ac16889bca8791421d0
refs/heads/master
2020-03-25T18:06:34.126165
2018-11-24T04:42:14
2018-11-24T04:42:14
144,013,045
3
5
null
2018-09-14T10:47:26
2018-08-08T12:49:57
Python
UTF-8
Python
false
false
440
py
# -*- coding: utf-8 -*- """ Created on Sun Sep 16 16:19:34 2018 @author: yocoy """ def main(): numeros = [1 for x in range(1, 1000)] for x in range(2,len(numeros)): if numeros[x] == 1: for y in range(2, len(numeros)): if y%x == 0 and x != y: n...
[ "yocoyaniperez1@gmail.com" ]
yocoyaniperez1@gmail.com
197f3b6ba2b6fab2b3ea295c720dea1a3f368f2a
05e39916e4399e7e5df589d04968b18e2d6469f9
/47.py
7b3edf73118f36203456f73ce85eb63e2e1050cb
[]
no_license
shilpa2020/python
a74b92c865a288dd9354c11feb3ca93d4eeca5c0
2caaf41b9bd396be1a5d92456019ce75df7172ac
refs/heads/master
2020-06-07T14:24:10.866281
2019-08-03T06:19:42
2019-08-03T06:19:42
193,040,866
1
2
null
null
null
null
UTF-8
Python
false
false
76
py
p=int(input()) q=list(map(int,input().split())) q.sort() print(q[0],q[p-1])
[ "noreply@github.com" ]
shilpa2020.noreply@github.com
e4a12e794fc84462053c583a6a68668683bb7797
b665981fd47afa19ebc45c3c3734658229117ab7
/REMApp/Views/property_category_views/property_category_views.py
73fc4d167499132934ecd67ec97c3ed09211853e
[]
no_license
mubaskid/RealEstateManagement
bf9f30378f780ace045d16acc18b939dce696ef5
113afeb1c44e8723db94330d55124e1e3f07037c
refs/heads/master
2023-08-22T21:18:54.352315
2021-09-27T10:30:32
2021-09-27T10:30:32
397,660,460
0
0
null
null
null
null
UTF-8
Python
false
false
5,479
py
from django.http import Http404, HttpRequest, JsonResponse from django.shortcuts import render, redirect from REMApp.Services.ServiceFactory import REMApp_service_container from REMApp.dto.PropertyCategoryDto import CreatePropertyCategoryDto, UpdatePropertyCategoryDto, \ ListPropertyCategoryDto, PropertyCategoryDe...
[ "77334849+mubaskid@users.noreply.github.com" ]
77334849+mubaskid@users.noreply.github.com
1142c1932395ab312d55919edaaefe701f155b08
26a37bbf6013bd8b46b2e57f5c99d8018b5f7e8b
/paper-experiments/natural-language-processing/train_lm.py
c6f5a480dd86ac455cdb6ac116c0ea5384619940
[ "MIT" ]
permissive
udaykamal20/dfa-scales-to-modern-deep-learning
835721c11a04e69fc36e352717e837e82e6a94cc
336a2116fd4be50daac17b4ac0913ce82ded0665
refs/heads/master
2023-03-26T01:36:32.220543
2020-11-02T09:49:14
2020-11-02T09:52:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,513
py
""" Trains a Transformer langugage model. Author: François Boniface """ import argparse import math import numpy as np import os import pickle from radam import RAdam import torch import torch.nn as nn import torch.optim as optim import torchtext import time import youtokentome as yttm import yaml import transforme...
[ "julien@lighton.io" ]
julien@lighton.io
f461bad6951e11a80cf5a167b05601eb0a0bc5fa
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02921/s749768491.py
f0ebc17a8297dea1a1ed4f76ccf22e230f971998
[]
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
208
py
#template from collections import Counter def inputlist(): return [int(j) for j in input().split()] #template S = input() T = input() ans = 0 for i in range(3): if S[i] == T[i]: ans +=1 print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2ec8dda061a4b6e196fca838539550992ab5f3b7
23261d97f11c502f882a003cf9d65e7de2aa860e
/src/data/data_wire100.py
62893df19570105de8355248eab42455eb000a10
[]
no_license
shohruh-abduakhatov-portfolio/mivs-py
4a7161066dcb3551d866af8238db85672ce95ee8
4419deb48db8a71555481c2fff09c553440e8702
refs/heads/master
2023-01-11T18:02:30.802698
2020-11-16T17:41:52
2020-11-16T17:41:52
312,632,833
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
data = {'products': [15185, 11936, 22497], 'drug_qty_req': [1000, 1000, 1000], 'input_capital': 2000000000, 'cash': 1000000000, 'wire': 1000000000, 'suppliers': [119, 133], 'cash_cost': [], 'wire_25': [], 'wire_50': [], 'wire_100': [[9490, 8122], [2000000000, 2000000000], [2000000000, 2000000000]], ...
[ "shokhrukh.abduahadov@gmail.com" ]
shokhrukh.abduahadov@gmail.com
b9968374dda80a11b7dbba60386eefbcd3b123a6
8c77a82a87efc70acdd399546e2e1c1edccac61b
/past_edition/tt.py
e910d714028a0a0d456a1e353c90f013f0496a2e
[]
no_license
RobinROAR/EzCondor
ec6d75cfd3c673f8a7cdf78b6b287a0ea553b4f5
c5fa12605e91f35aaf86981130719a93be53682f
refs/heads/master
2021-01-20T12:42:24.733556
2017-09-12T19:05:36
2017-09-12T19:05:36
90,397,721
4
2
null
2017-05-19T16:27:44
2017-05-05T16:51:18
Python
UTF-8
Python
false
false
1,105
py
#!/usr/bin/env python # -*-coding:utf-8 -*- #Robin #04.21 2017 import random network = {'A':['B','D','E'],'B':['D','A','E'],'C':['B','F'],'D':['A','B'],'E':['A','F'],'F':['C','E']} def diffusion(network,source,p): visited = {} #create a list to store influenced node influenced = {} for node in networ...
[ "zrb915@live.com" ]
zrb915@live.com
f4301df7d5f207572af701f67fa7761e53da7866
639194c45587d5fc539da4d385c1e4cbfe93d371
/Class work 20.02/Task1.1.py
1beae1cb669c22e8218b79e23f90cfc8f479abe7
[]
no_license
ZHasaral/DataAnalys
5cd26c5b99e27da5fbb440f002d9ce61569258ae
0afb80301dc1efde2c74c231ba90221a1023b1bd
refs/heads/master
2022-11-03T11:44:25.929030
2018-05-01T13:01:17
2018-05-01T13:01:17
121,307,393
0
1
null
2022-10-10T01:55:11
2018-02-12T21:59:38
Python
UTF-8
Python
false
false
28
py
p = 1/10+1/10+1/10 print(p)
[ "zhasaralture@gmail.com" ]
zhasaralture@gmail.com
c4e7412ad2c5f533b556a899ea8e91074f97f06d
8fcc27160f8700be46296568260fa0017a0b3004
/client/eve/client/script/ui/station/captainsquarters/__init__.py
072ece094445c140829bf808523c4b6fe2d64411
[]
no_license
connoryang/dec-eve-serenity
5d867f4eedfa896a4ef60f92556356cafd632c96
b670aec7c8b4514fc47cd52e186d7ccf3aabb69e
refs/heads/master
2021-01-22T06:33:16.303760
2016-03-16T15:15:32
2016-03-16T15:15:32
56,389,750
1
0
null
2016-04-16T15:05:24
2016-04-16T15:05:24
null
UTF-8
Python
false
false
149
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\station\captainsquarters\__init__.py pass
[ "masaho.shiro@gmail.com" ]
masaho.shiro@gmail.com
2d69f6761c50550f08a79d32a1bdeba6e0b5edc5
345b93a69cc545712a9cfc96197f7ac896e91a45
/blog/pelican-to-hugo.py
5d0433f80a309a44f1805e45c69fc7f4bc7143f0
[ "MIT" ]
permissive
rushiagr/rushiagr.github.com
9afaf057bb90a10f9485ecc69535c28ccd5e0749
a214ed788971a5acb4d14fb77662ef2ce185189a
refs/heads/master
2020-05-22T01:41:09.072119
2019-12-02T13:52:01
2019-12-02T13:52:01
7,132,507
0
0
null
null
null
null
UTF-8
Python
false
false
1,853
py
import os # NOTE: assumes 'Category: ' is the last values in heading of a pelican # markdown markdown_dir = '/home/r/src/blog/npf/content/blog/markdowns/' files = os.listdir(markdown_dir) for f in files: if f.endswith('.markdown'): with open(markdown_dir+f, 'r') as in_f: # files shouldn't ha...
[ "rushi.agr@gmail.com" ]
rushi.agr@gmail.com
47783a022d396e58a0d895f3b946bc69f9186aac
1150571dd2924fb2d1da55a1568401df58a0ae11
/main.py
2023c89c9306b67ae12de860fa093976cb18bda1
[]
no_license
Paulware/piPair
69ddc2353bc9d08ea8a369de1da7b8cc96445b45
64bc6a65552c3c22873c3ce227dc4365f16c21c2
refs/heads/master
2023-08-30T12:16:01.574791
2023-08-18T20:40:11
2023-08-18T20:40:11
251,141,929
1
0
null
null
null
null
UTF-8
Python
false
false
23,170
py
import pygame import subprocess import os import socket import select import math import time import glob import random import sys import datetime import mtgScreens import inputOutput import utilityScreens import cardDatabase from pygame.locals import * if (sys.version_info.major < 3) or ((sys.versi...
[ "Paulware@hotmail.com" ]
Paulware@hotmail.com
6caf19ccec6e404b463f8c52b40ea8a0ff60958c
044902b0b1f646e070cf02669c1ae98d71725ed8
/encode.py
d9bfe4df9f1428fe2ba7c22df4425e9948a8a1e9
[]
no_license
Andyblack-J/dissertation
2629929aff140fe83f1e5008810129e89ff3b276
5a0074083e94699549246c809acce2770d1b27f8
refs/heads/master
2022-02-19T03:06:32.303641
2019-08-22T15:56:39
2019-08-22T15:56:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,061
py
import pandas as pd import csv feature_cols = [] class_cols = [] total_data = [] names = ['protocol', 'range(m)', 'power_src', 'weight(g)', 'processing_power(ghz)', 'device_type'] # column headings file = pd.read_csv('dataset.csv', names=names) non_enc = pd.DataFrame(file, columns=['range(m)', 'weight(g)', 'processi...
[ "noreply@github.com" ]
Andyblack-J.noreply@github.com
f6b1e76b27f1e64c31d6e67f6fa842fa15e5f14a
c6c450d750bcc559882c6f211f952b411505d6d8
/apps/notifications/api/__init__.py
1d8d28c94a98ee4df71b145b32f12948388c8d2a
[]
no_license
ESCL/pjtracker
e26ea09136f35f5c85ea8d68a63fd94fab2629da
4dcf0e6a37e8753ae9d69d663c0c280fcca0a26c
refs/heads/develop
2021-09-26T09:18:54.158051
2021-09-10T23:16:07
2021-09-10T23:16:07
52,280,177
1
0
null
2021-09-10T23:16:08
2016-02-22T14:45:55
Python
UTF-8
Python
false
false
20
py
__author__ = 'kako'
[ "claudio.melendrez@gmail.com" ]
claudio.melendrez@gmail.com
da00c3afef5f3dca44d8629a6444474c612c849e
d055327573defefc33cdce5e522c5dfa5e0678fe
/Code/seungah/process_emergency.py
0e8c68451a9ef4b21a0e03e240df2ab68dcb17fb
[]
no_license
aaung310/multicampus-final
0d7e4c3cbe120dde06eaad4bb137014210deaff4
5f1555f0632f8e23b9a9bb94868315ec93989d73
refs/heads/master
2023-08-01T02:05:57.689480
2021-09-09T04:47:11
2021-09-09T04:47:11
399,992,795
0
0
null
null
null
null
UTF-8
Python
false
false
702
py
from pyspark.sql import SparkSession from pyspark.sql.functions import explode spark = SparkSession \ .builder \ .appName("emergencyMsg") \ .getOrCreate() MsgSchema = spark.read.format('json').load('/home/lab11/emergency/20210903105648EmergencyMsg20210903.json').schema MsgDf = spark.readStream.schema(MsgS...
[ "osacnlc@gmail.com" ]
osacnlc@gmail.com
ffc7523a927d5edc83e1ee9dfa70f3b0b0fa6141
9f82983f5f119635931a0233ec86aa223f5f57ec
/base/forms.py
3c6b4c9513823cde1a962ba30aa02ff0513ae688
[]
no_license
Arox/d_and_d
d49532cd0b0a824aea3f4767200fa9463d2ae6a0
d707c5cdb557f23f12c99ac8f1b7bd7c86e2a935
refs/heads/master
2020-06-02T00:34:12.648579
2015-03-21T10:21:01
2015-03-21T10:21:01
32,378,298
0
0
null
null
null
null
UTF-8
Python
false
false
596
py
# -*- coding: utf-8 -*- from django import forms class BaseParametersForm(forms.Form): m_name = forms.CharField(max_length=30) m_descriptions = forms.CharField(widget=forms.Textarea) def clean(self): v_cleaned_data = super(BaseParametersForm, self).clean() v_name = v_cleaned_data.get('name...
[ "mailofarox@gmail.com" ]
mailofarox@gmail.com
86f69a7f557474425cd8757000ce208fc7eb132e
d37bb79552c434254ddd233a5c6988087b6bb25a
/venvbill/Scripts/pviews-script.py
f67f6bc881dccb74e93f9189881a8ad332f3862d
[]
no_license
stevegleds/100daysbilltracker
60d3c1bb72bd461e93cfda50255c40a801a40826
d956c28418aafa23f8e3335681b286cdcf8421f2
refs/heads/master
2022-11-30T16:07:51.241935
2019-09-05T19:31:45
2019-09-05T19:31:45
205,573,137
1
1
null
2022-11-20T00:17:12
2019-08-31T17:05:03
Python
UTF-8
Python
false
false
494
py
#!s:\pythoncode\myprojects\learning\100daysofweb-with-python-course\days\089-092-deployment\your-turn\billtracker\venvbill\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pyramid','console_scripts','pviews' __requires__ = 'pyramid' import re import sys from pkg_resources import load_entry_point if __name__ == ...
[ "stevegleds@gmail.com" ]
stevegleds@gmail.com
470f942cb97c5e14e703fd2ff95468074831ecbb
8c6075f2c2b3e602acfb13698d99ecc7c9bb5831
/newspaper_project/articles/migrations/0003_alter_comment_author.py
9592a748628ca91a7acf3451691a8cdc3e20671e
[]
no_license
Skylahaustine/newspaper_app
88b9ce77df3c408dad9140815379336c683d75c6
82548c73bb2fabae3151c414cdb170d3df07c6b3
refs/heads/master
2023-04-03T12:53:24.852456
2021-04-14T14:51:01
2021-04-14T14:51:01
357,113,802
1
0
null
null
null
null
UTF-8
Python
false
false
593
py
# Generated by Django 3.2 on 2021-04-14 13:37 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('articles', '0002_comment')...
[ "austineskylah9195@gmail.com" ]
austineskylah9195@gmail.com
6aa4f1e92cf40a2a54d246b9838b42141c55a991
17236fd20fdf4473e04eccdecddacb7ee312b8a6
/cookies/migrations/0002_jobapplicants.py
1b47981fa7d293f5ad34e31c4e83a5d3b851bb83
[]
no_license
sachin-badhwar/DjangoWithDocker
568362196e7ff06e7d76b60e6a50f1d40272ea24
8779aceed2425359a8e9f8d1d728905e13d3704e
refs/heads/master
2022-12-08T00:17:11.722195
2020-08-16T04:20:29
2020-08-16T04:20:29
287,671,968
0
0
null
null
null
null
UTF-8
Python
false
false
738
py
# Generated by Django 3.0.8 on 2020-08-09 14:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cookies', '0001_initial'), ] operations = [ migrations.CreateModel( name='JobApplicants', fields=[ (...
[ "budhwar58@gmail.com" ]
budhwar58@gmail.com
11d5b28248cb64bca115295c66161c98cdfe4418
f7c394164568ee5c8dbf963a488ec284408de59e
/po/testcase/test_index.py
19b426d0048a3b35d2597939b5d87c8feeb69cfd
[]
no_license
saberpan1/Hogwarts16-web-wx
156a0d46f91eeb4b291a561d4cc8316f9bffb4f1
6838b13dc4d98650a6fcad61afc104a490ecb1e4
refs/heads/main
2023-02-02T21:58:41.291985
2020-12-21T06:20:37
2020-12-21T06:20:37
323,246,212
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
from po.page.index_page import IndexPage class TestIndex: def setup_class(self): self.index_page = IndexPage() def test_login(self): self.index_page.goto_login().login_scan() def test_register(self): self.index_page.goto_register().register()
[ "saberpan1@163.com" ]
saberpan1@163.com
276e3fd63ef0480cf6523e2c30879f5db3f42839
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/PORMain/pirates/world/DistributedIsland.py
8e40f2092539eaf12ccaaf262930526eef68b234
[]
no_license
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
Python
false
false
52,439
py
from panda3d.core import AlphaTestAttrib, CollideMask, CollisionInvSphere, CollisionNode, FadeLODNode, Filename, Fog, LODNode, Light, NodePath, PandaNode, RenderAttrib, TextNode, Texture, TextureStage, VBase4, Vec3, Vec4 import random import re import imp from direct.actor import * from direct.distributed import Distri...
[ "brandoncarden12345@gmail.com" ]
brandoncarden12345@gmail.com
728679f4bb098e01726803ae4d67a6e61f04268f
8e4c54ae58606c54cd18e6d2bc65b5ab9825ca21
/3.14.py
d951398ef3d670a12568c3227f2fb12783cddba3
[]
no_license
Nurken-01/Nurken
a1ecd7d12f0e5fcd7149eebda8e583b28a345036
80a396848055d4b0e11db16ff608fb4563ea00e3
refs/heads/master
2021-05-17T01:31:48.096494
2020-05-02T16:32:16
2020-05-02T16:32:16
250,557,797
2
0
null
null
null
null
UTF-8
Python
false
false
31
py
print(input().count(' ') + 1)
[ "noreply@github.com" ]
Nurken-01.noreply@github.com
a6ff3611a8dfbf9bf3c146b426e98458facf28af
328ebfdbcef076ce0e930715f9bd786d7498185b
/lang/python/Complete-Python-Developer-in-2021-Zero-to-Mastery/1st pass/11-modules/newjokes/venv/lib/python3.9/site-packages/pip/_internal/operations/build/wheel.py
a220c178e108251b9d3e129b4a904cefc781fdcf
[]
no_license
pnowak2/learnjs
b618e6f9563b3e86be0b1a21d647698e289daec0
f8842b4e9e5d2eae6fb4e0d663b6699d74c90e9c
refs/heads/master
2023-08-30T05:04:00.227920
2023-08-18T10:58:24
2023-08-18T10:58:24
41,912,571
3
0
null
2023-03-31T06:58:40
2015-09-04T11:36:13
Python
UTF-8
Python
false
false
2,986
py
<<<<<<< HEAD import logging import os from pip._internal.utils.subprocess import runner_with_spinner_message from pip._internal.utils.typing import MYPY_CHECK_RUNNING if MYPY_CHECK_RUNNING: from typing import List, Optional from pip._vendor.pep517.wrappers import Pep517HookCaller logger = logging.getLogger(...
[ "p.nowak2@gmail.com" ]
p.nowak2@gmail.com
d6c4d600acd854d883ab2cfbac30c3717bdb938e
82989230972673eb0b1065b2f1830e9aee9c92e8
/main.py
6b2ae19b4322d2fc0a058f4ca315fc7fc61bd2b7
[]
no_license
liz6688/AttentionImageClass
b798acfd2b4d404d142e72f4799d489cc8e0903d
c8a55412f9794e4b891f26e1955b043c01926d31
refs/heads/master
2022-01-07T12:42:10.059157
2018-08-06T02:45:09
2018-08-06T02:45:09
437,567,083
1
0
null
2021-12-12T14:25:48
2021-12-12T14:25:46
null
UTF-8
Python
false
false
15,616
py
import torch.nn as nn import torch.optim as optim import torch.utils.data import torch.backends.cudnn as cudnn import torchvision from torchvision import transforms as transforms import numpy as np import visdom import torch.nn.functional as F import argparse import os from models.RMA_module import RMA_module from mo...
[ "874244887@qq.com" ]
874244887@qq.com
c484785c956ddd198702fec0b53edaac9087fd8b
34a3581cf39bf853f99407ae4c990103be0216b9
/simpleSubHacker.py
54dc234e1322af259a02b1fb57fbb2dce7fa3e32
[]
no_license
mrevilg/CodeCrack
287d619b3a8c1e10c9d8fea8f298aa070803c214
3470e5a31a1fc4cef15fc78115aefa47e8f94d4c
refs/heads/master
2020-08-22T17:15:33.192890
2020-03-30T23:54:43
2020-03-30T23:54:43
216,445,349
1
0
null
null
null
null
UTF-8
Python
false
false
3,896
py
import os, re, copy, pyperclip, simpleSubCipher, wordPatterns, makeWordPatterns LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' def main(): message = 'Sy l nlx sr pyyacao l ylwj eiswi upar lulsxrj isr sxrjsxwjr, ia esmm rwctjsxsza sj wmpramh, lxo txmarr jia aqsoaxwa sr pqaceiamnsxu, ia esmm caytra jp famsaqa sj. Sy, px ...
[ "mrevilg@gmail.com" ]
mrevilg@gmail.com
9d729f5128f7c62143279c5e9a55cea878b11fed
39ec999720f91cb37122bf36ee4c405f96655ac4
/crawler/crawler.py
17c45f188e1ca8bf924876ec13a6b0129f91629e
[ "MIT" ]
permissive
KevinIRIS/NewsHub
baaaa6b4a142fe3ab836fd08dc3bf2f66d156d0d
b15c5f7feb8af8223b39f7d87f8093141b10aba7
refs/heads/master
2021-09-01T23:06:47.450793
2017-12-29T03:34:14
2017-12-29T03:34:14
115,287,441
1
0
MIT
2017-12-29T03:34:15
2017-12-24T21:14:59
Python
UTF-8
Python
false
false
339
py
import tweepy from OAuth import OAuth import sys if __name__ == "__main__": if len(sys.argv) != 5: print("invalid parameters") exit(-1) ck = sys.argv[1] cs = sys.argv[2] at = sys.argv[3] ats = sys.argv[4] auth = OAuth(ck,cs,at,ats) api = auth.get_api() user = api.get_us...
[ "kz899@nyu.edu" ]
kz899@nyu.edu
26b355ece52fe0a86f90c4b2f0830f13c9b9f2a4
ce1291271199e992cd97169d73a5a902fdf208b7
/predictors/python_predictor/python_predictor/gens/google/monitoring/v3/group_service_pb2.py
d8d4f9b2151264f62157bae1af941d055e7f6b88
[ "ISC", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jayantco/scratch
5d03a8218bc54c7b9ce0ced04c50a42c9abfd77a
34c565ddce7e64ecf835f17080a21c8526154501
refs/heads/master
2022-03-30T09:50:06.210213
2019-09-26T15:50:32
2019-09-26T15:50:32
null
0
0
null
null
null
null
UTF-8
Python
false
true
40,639
py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/monitoring/v3/group_service.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf ...
[ "abduld@wolfram.com" ]
abduld@wolfram.com
a6b562ca3b529e764016b310b0c353d282227f87
6c86af7af7be5bbb2f4506e844c765653642db34
/hackerrank_Set _symmetric_difference.py
e44878d98234ad261b646ba73cdca3ba1674cb50
[]
no_license
Tarun-Sharma9168/Python-Programming
83e64ac48cef3959adac24ea45b3985816499cbc
73c8b38ba68deda74a22be49d0e9113448b7163f
refs/heads/master
2020-08-11T03:53:39.571654
2020-04-29T20:49:10
2020-04-29T20:49:10
214,485,665
1
0
null
null
null
null
UTF-8
Python
false
false
113
py
_, a = input(), set(input().split()) _, b = input(), set(input().split()) print(len(a.symmetric_difference(b)))
[ "noreply@github.com" ]
Tarun-Sharma9168.noreply@github.com
1a8d47a3a1f44665557418479cfd884da4e336be
9366d7c14a6e1f2d10451fea8bbef82d3f3256c5
/Warehouse2.py
e9dd02407ba12f6308659a34caa8707ce48406a9
[]
no_license
hackeziah/PythonSample
f8746ef0e41bd45395911b710da34d0a922931fb
43a584e01aedd8a473bc6f9515f24db064d288b5
refs/heads/master
2021-05-05T22:49:04.716676
2018-01-04T16:12:46
2018-01-04T16:12:46
116,280,048
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
from tkinter import * win = Tk() win.title("Ware House") toolbar = Frame(win, bg = "cyan") insertButt=Button(toolbar,text="Insert Image", command=doNothing) insertButt.pack(side = LEFT,padx=3,pady=3) printButt=Button(toolbar,text="Print", command=doNothing) printButt.pack(side = LEFT,padx=3,pady=3) toolbar.pack(side=T...
[ "hackevz@github.com" ]
hackevz@github.com
131bc8166f96adf6c9f8444372b078308807317c
dfae3deb16a014bffeb0078a613422526491b568
/engine/Point.py
afb8cd96b3f964be476b693b4c4db26fe2be53ae
[]
no_license
Vinniekun/microcosmos
d841c38511748e719df121fc86b68d1e3a506877
fb7613c5d5d2400b99235e4ed2a208f6beeda454
refs/heads/master
2021-01-11T11:45:36.166151
2017-01-23T18:44:08
2017-01-23T18:44:08
79,834,948
0
0
null
null
null
null
UTF-8
Python
false
false
1,050
py
class Point: def __init__(self, x=0, y=0): if type(x) is list: self.x = x[0] self.y = x[1] else: self.x = x self.y = y def xy(self): return [self.x, self.y] def ixy(self): return [int(self.x), int(self.y)] def translate(s...
[ "vdreifke@inf.ufsm.br" ]
vdreifke@inf.ufsm.br
c133ae8e271089e53678d102066f2a1a3ba4b21f
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/17tli.py
9627b9db58866eb838a6a4663f0d4b47a99da5b4
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
43
py
ii = [('SadlMLP.py', 1), ('WilkJMC.py', 1)]
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
2daba501ddc7a0a6d078eccd72c72700818c8318
491f876526c5eced1d9d71fd9137e10202fcbf3e
/codes/heatMap.py
4fdb4009275ca85072197a35a575a2dfc2aea2c3
[]
no_license
ailvtu/GraduationDesign
d21c6c20310124988d9b7c46d13982637360ea29
a5d40d735f12af860d591c1b47cf61dfaaa8dc6b
refs/heads/master
2020-06-14T22:18:19.520165
2017-01-09T02:37:45
2017-01-09T02:37:45
75,404,901
0
0
null
null
null
null
UTF-8
Python
false
false
1,292
py
from matplotlib import mpl import matplotlib.pyplot as plt import numpy as np import os from readFiles import readFile from filters import LPF,HPF,meanF,standard magneticDataPath = '/home/dash/Pictures/sensorData/4lines' def reverse(FileName): listRe = [] for dirs in os.listdir(magneticDataPath +FileName): ...
[ "2442844656@qq.com" ]
2442844656@qq.com
c3ec5a34f644a33dc74bd22698c196e0352b4494
042c8678d6a7c280f672b107fc7e1c686406a746
/models/__init__.py
fec373ee2ecd3ac596b7e22a5cfaeb046669a6be
[]
no_license
AhmedOmi/AirBnB_clone
d09d3ad511b7dd499cea4e168cacba893678e8c9
92bc2d2b01bcd282811f2d2dcbc0f7a42bfadd4a
refs/heads/master
2021-01-03T21:11:42.166687
2020-03-08T11:58:49
2020-03-08T11:58:49
241,307,868
0
1
null
null
null
null
UTF-8
Python
false
false
137
py
""" import FileStorage from models.engine""" from models.engine.file_storage import FileStorage storage = FileStorage() storage.reload()
[ "ahmedomarmiledi@gmail.com" ]
ahmedomarmiledi@gmail.com
f88595be8e081d9770afe97186b1d01d3c80d317
b013d963a0cb1f6d9d9e09d3264c787796c8eb07
/crawler/fabfile.py
96dc5028a4951610febc7a464ccef462eee3bd49
[]
no_license
mnorkin/miniature-nemesis
61e67c95f0c9ecfb35ecf747b7a1194c8013c49e
32dcaac66086a0019362eb2e93285485faed1a49
refs/heads/master
2021-03-24T12:08:51.448310
2013-08-27T22:30:04
2013-08-27T22:30:04
7,631,592
0
0
null
null
null
null
UTF-8
Python
true
false
4,515
py
from fabric.api import * from fabric.contrib import files from fabric.operations import * import datetime env.project_name = 'crawler' def environment(): env.user = 'agurkas' env.hosts = ['185.5.55.178'] env.deploy_user = 'agurkas' env.version = datetime.datetime.now().strftime("%Y-%m-%d_%H_%M_%S") ...
[ "m.norkin@gmail.com" ]
m.norkin@gmail.com
a5c10b70e7bf6efb6002838d418b47764db12cae
b1571f4ee376d789b8094777fd81c4fb47a89cf1
/AtCoder/本番/ABC/until-ABC153/ABC151.py
569ed4667f5f02b0b2122f2653cb7c84f6b8b831
[]
no_license
hiroyaonoe/Competitive-programming
e49e43f8853602ba73e658cab423bd91ebbe9286
2949e10eec3a38498bedb57ea41a2491916bab1c
refs/heads/master
2021-06-23T21:56:33.232931
2021-05-30T15:27:31
2021-05-30T15:27:31
225,863,783
2
0
null
2020-06-14T17:54:28
2019-12-04T12:37:24
Python
UTF-8
Python
false
false
1,871
py
# n=input() # # print(chr(ord(n)+1)) # n,k,m=map(int,input().split()) # a=[]*(n-1) # a=map(int,input().split()) # ans=m*n-sum(a) # if ans<0:ans=0 # if ans>k:ans=-1 # print(ans) # n,m=map(int,input().split()) # p=[[] for i in range(m)] # s=[[] for i in range(m)] # k=[True for i in range(n)] # ac=0 # wa=[0 for i in ra...
[ "onoehiroya@gmail.com" ]
onoehiroya@gmail.com
dc5b0b711378264e280bf256d70e0ea2a48d8e55
c25e8f2fb5fcd7560f50cf77f49353816ceeffab
/Python for Everybody/Course_2_Python Data Structures/Assignment_7_2.py
2c4996fa160ea310306688d0f272bfee276810a4
[]
no_license
koteshrv/Coursera
c7d75928d095142d2f39013708741ea324dd6464
5f37ce922b1f76abcd8582f7dd1c7b674162dd64
refs/heads/master
2023-02-09T06:52:31.975940
2021-01-05T18:10:23
2021-01-05T18:10:23
294,464,101
0
0
null
null
null
null
UTF-8
Python
false
false
836
py
# 7.2 Write a program that prompts for a file name, then opens that file and reads through the file, looking for lines of the form: # X-DSPAM-Confidence: 0.8475 # Count these lines and extract the floating point values from each of the lines and compute the average of those values and produce an output as shown belo...
[ "kkotesh100@gmail.com" ]
kkotesh100@gmail.com
6de650c167d612b2ef89c70f56608188692dcc84
a1f4cef5c1a1f3cc89c1c6e9095c203f41e33cd1
/Control_Statements/file1.py
a26ec5230d01e952015131404d05cf1004ade558
[]
no_license
simrangrover5/KIITPYTHONBATCH2021
a10eb217a691c6fda878d3b7840e9c8fa6c59731
aacd1fb5ffdf46b1b57778d5194f1820b0fb1733
refs/heads/master
2023-07-08T21:46:00.576144
2021-08-14T17:40:21
2021-08-14T17:40:21
386,839,065
2
1
null
null
null
null
UTF-8
Python
false
false
584
py
"""This file is used to find the numbers divisible by other numbers""" start = int(input("\n Enter any number : ")) end = int(input("\n Enter second number : ")) n1 = int(input("\n Enter number 1 : ")) n2 = int(input("\n Enter number 2 : ")) op = input("\n Enter operation and/or : ").strip().lower() if op == "and": ...
[ "simrangrover5@gmail.com" ]
simrangrover5@gmail.com
405c0786cb6c72d12ebcea3af73a60d1be141a66
02952ddf96e7960a3faef74485f4ffc12bcf2973
/pySDC/implementations/controller_classes/allinclusive_multigrid_nonMPI.py
843ff8d36fcd546348fe3ee655544a4165fa6118
[ "BSD-2-Clause" ]
permissive
danielru/pySDC
5decca37e1ecea643fe21dac0f978e3fdaa24ac6
558b2b4db3aeb97e6a87e41cd4958a8a948af37a
refs/heads/master
2020-12-25T10:58:57.215298
2017-03-21T06:45:59
2017-03-21T06:45:59
31,062,846
0
0
null
2015-02-20T11:52:33
2015-02-20T11:52:33
null
UTF-8
Python
false
false
15,706
py
import itertools import copy as cp import numpy as np from pySDC.core.Controller import controller from pySDC.core import Step as stepclass from pySDC.core.Errors import ControllerError, CommunicationError class allinclusive_multigrid_nonMPI(controller): """ PFASST controller, running serialized version of ...
[ "r.speck@fz-juelich.de" ]
r.speck@fz-juelich.de
9da580aa7400dd35965456da6425fef026b647ea
0cd6e891818d10db121f15006d43fc13d5e58b54
/predict.py
743a092267776e3916ceba21e79d529aa2040524
[]
no_license
danny-ell77/FireSage
82f8915b7a87c1e8b18ccfc38f415391a50e2e11
cffc4cecbbe3802928fb1d94ab5e18846354501f
refs/heads/main
2023-07-06T18:42:51.661764
2021-07-24T05:17:42
2021-07-24T05:17:42
384,995,566
1
0
null
null
null
null
UTF-8
Python
false
false
2,951
py
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "danielolahskybrow@gmail.com" ]
danielolahskybrow@gmail.com
64cbcfa67802f09b6d5d8566cc34bfac757dd430
36af72aabf6f39ce465e94a5a2f4bf13025f8ce8
/keras_retinanet/utils/anchors.py
62cf44654aae68a88ab23721fc066a57f5cafcf7
[ "Apache-2.0" ]
permissive
prodriguezsahagun/retinanet_customanchors
144a72340dc8bedd7319f5b4dcc4612999a91d2b
be8d87a6fd05554e5d4fe4419aa01c1d3cba876d
refs/heads/master
2020-06-27T09:29:58.977171
2019-08-10T19:44:35
2019-08-10T19:44:35
199,912,439
0
0
null
null
null
null
UTF-8
Python
false
false
14,549
py
""" Copyright 2017-2018 Fizyr (https://fizyr.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
[ "pabloalesanco6@gmail.com" ]
pabloalesanco6@gmail.com
279b3a868bd3c4b9d9f4ae2327e04e35998bbb7a
728c4d2c66238caff6370e3cedb73274bd679462
/src/__init__.py
3711b71cbcc61b152edb0920f71be5cb062bba79
[]
no_license
Gautamaggrawal/Flask_microservice
4945f446cd65eee15e697a5879ff44a98294c08c
cc389b3e70d464ee094c51ae3cf1e5b4f4ca4909
refs/heads/master
2021-06-28T07:55:47.750525
2019-09-04T17:55:15
2019-09-04T17:55:15
206,238,413
0
0
null
2021-03-20T01:38:44
2019-09-04T05:27:42
Python
UTF-8
Python
false
false
1,010
py
from flask import Flask from .auth import auth as auth_blueprint from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from .models import db,User def create_app(): flask_app = Flask(__name__,template_folder='templates') flask_app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlit...
[ "gautamaggrawalsd@yahoo.in" ]
gautamaggrawalsd@yahoo.in
4c6a4eb50735e1f46c827493a8a0b6f754b3e9a1
ec2f2820ee32da7887ce0170839a26754d06a7f6
/tasks/migrations/0006_auto_20170402_1152.py
c433a40aee0f476f43601201449d96f1be975383
[]
no_license
maniche04/djIntranet
ab3b8e4be6e68bdebdca8795108f7387018d9c79
9fcddf99b549d956a110466c21f1150c56c9ca56
refs/heads/master
2021-01-18T20:51:55.609532
2017-04-02T15:43:09
2017-04-02T15:43:09
86,996,506
1
0
null
null
null
null
UTF-8
Python
false
false
581
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-04-02 07:52 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('tasks', '0005_auto_20170115_0937'), ] operations = [ migrations.AlterModelOptions( ...
[ "manish.ilam@gmail.com" ]
manish.ilam@gmail.com
69f4293f1665d54b9434876b8d3686a0f325da57
b9c05b40730f9e129222d22cdd845b14adb15b71
/go_land.py
d31c21000a95512fd15db6511c6cfb392b99b957
[ "MIT" ]
permissive
LijoDXL/OceanographyWithPython
cffcad5e7028ccc7f03088250e5208f3026f9fd0
294d150e50a938492311876d1cdfccac8be298e7
refs/heads/master
2020-08-23T12:18:20.315667
2020-08-15T20:44:28
2020-08-15T20:44:28
216,614,887
4
5
null
null
null
null
UTF-8
Python
false
false
1,259
py
# don't be overwhelmed by this function # It just adds coastlines and a nicely # formatted latitude,longitude labelling import cartopy as cr import cartopy.crs as ccrs import matplotlib.pyplot as plt import cartopy.feature as cfeature from cartopy.mpl.gridliner import LONGITUDE_FORMATTER, LATITUDE_FORMATTER def fig_bea...
[ "lijoabrahamjoseph91@gmail.com" ]
lijoabrahamjoseph91@gmail.com
f5600a8c8c393063f0c45e66414654ad9520152b
23a4214363636cab398aa9633218c4b2f6733545
/content/pkg/deps/python/dassana/common/cache.py
3522a89f43c46462ff648604c0393daa36aa5879
[ "Apache-2.0" ]
permissive
Ctfbuster/dassana
c724c28ed9495d7a8cffef745ad613df7e573eb2
ecfd7f53b8b0ea5152e071486bd0b8e549a708a2
refs/heads/main
2023-08-25T23:43:05.172523
2021-10-19T13:10:51
2021-10-19T13:10:51
410,211,650
0
0
Apache-2.0
2021-09-25T07:55:53
2021-09-25T07:55:53
null
UTF-8
Python
false
false
4,656
py
from hashlib import sha256 from json import dumps from aws_lambda_powertools.utilities.typing import LambdaContext from cachetools import TTLCache, cached, LRUCache class _HashedTuple(tuple): """A tuple that ensures that hash() will be called no more than once per element, since cache decorators will hash th...
[ "noreply@github.com" ]
Ctfbuster.noreply@github.com
bbd443101974a2682be5ddc0c8899a35e0286840
071416b05026dfc5e21e32c7f1846ab8475acf97
/flowcontrols/maxof2.py
f29a9834bf67aff1ed422d09ef4178dbd8ee970e
[]
no_license
Sreerag07/bankproject
a7acf65b45c9e5c3ccace7ff3d755c33cf8a4fb0
bb28e7c92cbfa1c1810d20eb4767a479eee5f015
refs/heads/master
2023-04-20T01:15:47.496059
2021-05-19T08:03:54
2021-05-19T08:03:54
368,788,580
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
num1=int(input("Enter first number")) num2=int(input("Enter second number")) if(num1<num2): print(num2,"is greater than",num1) else: print(num1,"greater than",num2)
[ "sgpakkam@gmail.com" ]
sgpakkam@gmail.com
38120b81104c04a2c47dbae220284a34e22896ab
d60b41462ab5dd83f3e95d740cacc2d1e5051232
/examples/src/dbnd_examples/orchestration/dbnd_spark/word_count.py
664d7555b5f8b4fba8877f105cc1cbb5ac69cbe0
[ "Apache-2.0" ]
permissive
hyunjay/dbnd
0581ca493fc2a3fa1cab74d0bb8fa620b1669f85
ab5a8ebf5984e73d0c7129a6898fed98a239b90b
refs/heads/master
2023-07-05T10:02:07.112720
2021-08-05T13:53:50
2021-08-05T13:53:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,967
py
import pyspark.sql as spark from databand import output, parameter, pipeline from databand.tasks import PipelineTask, PySparkTask, SparkTask from dbnd import log_dataframe, log_metric from dbnd_examples.dbnd_spark import spark_folder, spark_script from dbnd_spark.spark import PySparkInlineTask, spark_task from dbnd_sp...
[ "viktor.danyliuk@databand.ai" ]
viktor.danyliuk@databand.ai
599e2fc5c6b112eed4b7744efae3c7f0da0e6138
45f6a4dfc837998565d4e4e4cde258a27fdbd424
/learn_tu_you/wx_superboss/trunk/hall37-newfish/src/newfish/player/friend_player.py
8703d88e47c7657705c6f268ca176b7b5e80748f
[]
no_license
isoundy000/learn_python
c220966c42187335c5342269cafc6811ac04bab3
fa1591863985a418fd361eb6dac36d1301bc1231
refs/heads/master
2022-12-29T10:27:37.857107
2020-10-16T03:52:44
2020-10-16T03:52:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,501
py
# -*- coding=utf-8 -*- """ Created by lichen on 2018/1/12. """ import random from freetime.util import log as ftlog from newfish.player.normal_player import FishNormalPlayer class FishFriendPlayer(FishNormalPlayer): def triggerCatchFishEvent(self, event): """覆盖父类的方法""" self.achieveSystem and se...
[ "1737785826@qq.com" ]
1737785826@qq.com
b178449f746233506378a65ca7fb558a662b9136
2b091b847d90ed95d3b14e494596c94be3aa99f5
/app.py
5d37eebc1b312bdcf6c752cf2abce94706061d2a
[]
no_license
shun-uscpa/image6
37e5f14d546efe29a323d4dd2a14ec4fb45ce6de
29668a2f0ce20d938348930bfbf183477436adc9
refs/heads/main
2023-06-14T01:08:18.038809
2021-07-11T12:00:47
2021-07-11T12:00:47
384,937,021
0
0
null
null
null
null
UTF-8
Python
false
false
1,195
py
import plotly.express as px import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from skimage import data import json img = data.chelsea() fig = px.imshow(img) fig.update_layout(dragmode="drawclosedpath") config = { "modeBarButto...
[ "noreply@github.com" ]
shun-uscpa.noreply@github.com
bbb2ee76bc0fc41253293dc9058ef1aeacb5d875
0a6e09e89c7a84848c923858f64dcb0b40bbcf3e
/Introduction/Ex1.py
cbc9e6cac46a57e4bc188c37b886edf1f4d0ce9a
[]
no_license
etu32270/Python
1a472130ae5f69a6f4ed28fc6b98e0f7473b8e60
dd64bd4880b7019124b27efd9a355fde56b8ec47
refs/heads/master
2020-03-31T05:36:40.061845
2018-10-18T10:05:08
2018-10-18T10:05:08
151,952,518
0
0
null
null
null
null
UTF-8
Python
false
false
286
py
def onetoten(): a = 0 for a in range(10): print(a) a += a onetoten() def square(): a = 0 for a in range(20): print(a ** 2) a += a square() def cube(): a = 0 for a in range(20): print(a ** 3) a += a cube()
[ "etu32270@henallux.be" ]
etu32270@henallux.be
f7b455d25d636ce14e2c9d514ff1bbcd1e1d609e
67ee1ba812828adb742d0f7e278696693653b3bc
/myvenv/Lib/site-packages/django/db/models/fields/related.py
59a6220b2f0835292b583d3975e4f2ffbdd64529
[]
no_license
Nivial/my-first-blog
909c92fbfee31e677eeeaeb8bdca789386173f76
aee65c5c4b6006bc61741735808eb8b608596e61
refs/heads/master
2021-01-10T15:06:14.590661
2016-02-06T07:04:50
2016-02-06T07:04:50
51,192,577
0
0
null
null
null
null
UTF-8
Python
false
false
114,515
py
from __future__ import unicode_literals import warnings from operator import attrgetter from django import forms from django.apps import apps from django.core import checks, exceptions from django.core.exceptions import FieldDoesNotExist from django.db import connection, connections, router, transaction from django.d...
[ "darkgobal@mail.ru" ]
darkgobal@mail.ru
9cf5bb94518552a7aa21ac5f78ca47356e811428
918f0fdef0e9224aa1a0596479178618290055ec
/configs/_base_/models/pgd.py
5bde52efb454224fc795fe03a6e255f8f7245ff0
[ "Apache-2.0" ]
permissive
Tsinghua-MARS-Lab/futr3d
b7eb3a0c9d92a58759c9c43e96bfd024a2e3de96
9130d71e487bad47f5dbcffd696fe9e4a838104f
refs/heads/main
2023-07-24T15:40:00.121665
2023-07-06T05:50:45
2023-07-06T05:50:45
499,766,918
188
27
MIT
2022-06-19T10:42:03
2022-06-04T08:21:17
Python
UTF-8
Python
false
false
1,842
py
_base_ = './fcos3d.py' # model settings model = dict( bbox_head=dict( _delete_=True, type='PGDHead', num_classes=10, in_channels=256, stacked_convs=2, feat_channels=256, use_direction_classifier=True, diff_rad_by_sin=True, pred_attr...
[ "noreply@github.com" ]
Tsinghua-MARS-Lab.noreply@github.com
b3b79d2540f0851da6b4cce21473eaf994bc8ac8
2062e0e40b47769f029df2f1fc586dede856b0ea
/python/postprocessing/datasets/data2016_v5.py
7f58b27231fa93908319bd66b0f951f272b2adf9
[]
no_license
cericeci/nanoAOD-tools
c92eb625e3462064f2c5cc62a3cb501377d41743
2fcd2d4d8cbc3ad29b2433ce6a5efc84adf33a25
refs/heads/master
2020-04-03T15:46:00.647505
2019-11-11T15:51:01
2019-11-11T15:51:01
155,376,369
0
1
null
2019-10-28T19:31:46
2018-10-30T11:47:38
Python
UTF-8
Python
false
false
4,354
py
from PhysicsTools.NanoAODTools.postprocessing.datasets.componentContainer import ComponentContainer SingleMuon = [ ComponentContainer('SingleMuon_Run2016B', '/SingleMuon/Run2016B_ver2-Nano1June2019_ver2-v1/NANOAOD'), ComponentContainer('SingleMuon_Run2016C', '/SingleMuon/Run2016C-Nano1June2019-v1/NANOAOD'), ...
[ "cericeci@cern.ch" ]
cericeci@cern.ch
509b2052e93dc02e9e8f97eb7cc10fb9b0b181a0
7b55cfc4ffa7678e4c7b8f2312831ebbd549e54f
/proj1/tests/other-tests/oskis-angels_tests/regexperts_tests/correct/func_nest_defs.py
fcbe6d5a9f1217b313e3ce3e869fba529175c3e8
[]
no_license
czchen1/cs164-projects
0d330efef85421e611a436b165428ba0ddfb3512
a04cafbcaafd32e518227dacf89a6d7837bf9f57
refs/heads/master
2020-03-27T04:03:31.727524
2018-08-23T21:43:46
2018-08-23T21:43:46
145,909,148
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
def f(): x = 4 def g(): def g1(x, y, z): x = 4; y = 3; z = 2 return 5 g() def h(): def i(): print "hi" def z(): print "one line"; print "one line"
[ "czchen@mit.edu" ]
czchen@mit.edu
5d6ac8fe13dff9c90f787e5970edeaa51cc5ef95
09b3f97fe44e0fcbad1fcffdd598559e64dedf3e
/train_on_batch.py
a1a5bf07aaf0856fb323e6cbcc3d3314be7adf20
[]
no_license
CAHLR/DKT_pre
7f647f4a6d47ab4dcd7b518b781f7e00680dbfbc
d32da7300b3181bd846b746456e3cb88da22e14a
refs/heads/master
2021-06-20T14:30:46.414465
2017-07-13T07:11:49
2017-07-13T07:11:49
92,901,808
3
2
null
null
null
null
UTF-8
Python
false
false
6,950
py
# coding: utf-8 import numpy as np import csv import utils from keras.models import Model from dataAssist import DataAssistMatrix from keras.layers import Input, Dense, Dropout, Masking from keras.layers import Embedding from keras.layers import LSTM from keras.layers import merge from keras.layers import Dot from ker...
[ "hcr14@mails.tsinghua.edu.cn" ]
hcr14@mails.tsinghua.edu.cn
ec634087baf06ea0641e82efaf57a58e65246093
98dec9457017be2a4b1f7ac7f72963c06382737b
/what_do_you_see.py
ca11b7e2c94e5b33fc5cb31deed8b90e227cfa9d
[]
no_license
leweryan/data_science
09aae0cd47ecf4930da937e864c8bb7c9982ddf4
686bc1087ad6f605c1f609ab93692ec1deba70f6
refs/heads/master
2021-01-25T01:21:37.464564
2017-06-20T16:58:06
2017-06-20T16:58:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,498
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib as mpl def main(): csv_eur_usd = pd.read_csv('EURUSD_15m_BID_01.01.2010-31.12.2016.csv') eur_usd = pd.DataFrame(csv_eur_usd) """ Data looks like: Time Open High Low Close Vol...
[ "leweryan@ucla.edu" ]
leweryan@ucla.edu
14946cf49c21ab2682957c8a0a6f6f81dad0a42f
db415a9fef09c6edd7852d34da9203d295d488db
/apps/lead_app/apps.py
16aa5187af41dfe92bc3f14942760e189edbd1ad
[]
no_license
cleibow/lead_generator
3016ee0347c6eb6a742fca1b2ee70e071f56dab8
8a5edcd6e2f82f718f7b37c7473512105e268a40
refs/heads/master
2021-01-24T03:26:09.755244
2018-02-26T00:09:18
2018-02-26T00:09:18
122,890,605
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class LeadAppConfig(AppConfig): name = 'lead_app'
[ "cleibow@tulane.edu" ]
cleibow@tulane.edu
f2a17579595b39ecde9b8618e55ad4f799fb1645
e396ac87856ae8991c10e50aa7dca49979749d6e
/lib/libServer.py
74b89ea0bb8404c8617ce443697513e0ea7eafbc
[]
no_license
rosig/Infracom-Project
b3f6f5899b9b2b673f06f765bd48bfb7717a5494
0bc0da9c7cb32c2a984d8ed2a8da75b56d0f91df
refs/heads/master
2020-04-04T14:42:47.288146
2018-12-18T17:50:38
2018-12-18T17:50:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
from lib.constants import * from socket import * class TCPServerSocket: def __init__(self): self.socket = socket(AF_INET, SOCK_STREAM) self.connectedSockets = [] self.socket.bind(('', CLI_REP_PORT)) self.socket.listen(1) def acceptConnection(self): connSocket = self.soc...
[ "38705588+rosinaldoguedes@users.noreply.github.com" ]
38705588+rosinaldoguedes@users.noreply.github.com
406729e6eccfd065f28c740e5baefd7cfbba114d
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nnungath.py
e19f8d0632c95a744bf3da271d720a8dcfd1418d
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
44
py
ii = [('RoscTTI2.py', 1), ('IrviWVD.py', 1)]
[ "varunwachaspati@gmail.com" ]
varunwachaspati@gmail.com
853e4dfd424ea2e85d872450425c1f99af5e2679
f21b9a08cae008fd09e14ded25fdd0b3b651da4d
/tests/web/test_async_web_client.py
f7302dcdfe980bdae4fa2bc3afb82caaa9e1660b
[ "MIT" ]
permissive
nrajasekar-quotient/python-slackclient
46ec4adf030994090123558742199077bfd0b595
042bb05edbada181e3bc29b12c5d95ffb75588a0
refs/heads/main
2022-11-24T09:46:05.924063
2020-08-03T04:40:47
2020-08-03T04:40:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,121
py
import re import unittest import aiohttp import slack.errors as err from slack import AsyncWebClient from tests.helpers import async_test from tests.web.mock_web_api_server import setup_mock_web_api_server, cleanup_mock_web_api_server class TestAsyncWebClient(unittest.TestCase): def setUp(self): setup_...
[ "noreply@github.com" ]
nrajasekar-quotient.noreply@github.com
5d13bd0311f09d27712d869ce713dbf2512b4c31
557125555de5aa6cb3501468b89e4bc8e2e6f94c
/plot_corner.py
bfadbf611b05541936007ca6f24cef85da090a54
[ "MIT" ]
permissive
jacob975/deep_learning
3cb5a9844549fbc503db2682db9946a2fed5b18e
b62853b72ebdac84a79ce1be792d421938e26079
refs/heads/master
2022-10-30T00:59:57.472905
2022-10-08T06:25:21
2022-10-08T06:25:21
116,223,663
0
0
null
null
null
null
UTF-8
Python
false
false
6,996
py
#!/usr/bin/python3 ''' Abstract: This is a program for plotting the corner plot of given band index. Usage: plot_corner.py [band index code] [sed table] [cls table] e.g. $plot_corner.py 678 sed_table.txt cls_table.txt A corner plot of band 6, 7, and 8 will be returned. Output: 1. The figure of corn...
[ "z123a123s123@gmail.com" ]
z123a123s123@gmail.com
2ad593494aec7f24b4010959bfb2b2136835505d
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_815.py
e5a12e2fb75af53cc32166eb31cf3dec7bb5caf1
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
# Selecting related objects in django claimer = User.objects.get(name='test') claimed_opponents = User.objects.filter(gameclaim_opponent__me__user=claimer)
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
074eb0578e10e7cd4fd282894986c2e1459b8715
6dd20bbc9fc371403eedc1d81aadbf9beafcdb57
/lecciones/23/excepciones_2.py
9d3adee3e4b0e4da286a01d36338973cf2f87efc
[ "MIT" ]
permissive
ImAlexisSaez/curso-python-desde-0
0b491a32fa946da7b14c220b383be0ae43ad68e8
c4a84dae0804adefe4ee6024b411d8ed288da759
refs/heads/master
2020-05-18T11:51:12.365319
2019-06-18T08:54:08
2019-06-18T08:54:08
184,390,607
2
1
null
null
null
null
UTF-8
Python
false
false
370
py
def evalua_edad(edad): if edad < 0: raise TypeError("No se permiten edades negativas.") if edad < 20: return "Eres muy joven." elif edad < 40: return "Eres joven." elif edad < 65: return "Eres maduro." elif edad < 100: return "Cuídate." print(evalua_edad(18)...
[ "cucoalexis@hotmail.com" ]
cucoalexis@hotmail.com