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
220 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
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
0f1f7254fd96bb713e5593186bd1750f7efe4b14
a35ec35378575cba8effee630e8ce6afcf599e6a
/undertalealpacapy.py
e684f1aa179cd025106e809ef9d0839e57e447b5
[]
no_license
AlpacaPlayz/codecraftlab-python
382881402e0b64d18728ec83d5c50de48da885b7
a9f96bdb174951c0e9cf95ad38c5ea99dc58bc37
refs/heads/master
2020-04-10T22:45:05.456915
2017-03-01T22:55:23
2017-03-01T22:55:23
68,246,527
0
0
null
null
null
null
UTF-8
Python
false
false
3,330
py
import pygame import random from pygame.locals import * class Player(pygame.sprite.Sprite): ## def __init__(self): ## super(Player, self).__init__() ## self.surf = pygame.Surface((75, 75)) ## self.surf.fill((255, 255, 255)) ## self.rect = self.surf.get_rect() ...
[ "noreply@github.com" ]
AlpacaPlayz.noreply@github.com
eb7ea1fa5ef9b6d3b9b41c49fb051d256edeeb0e
41fd80f9ccc72a17c2db16b7019312a87d3181e8
/zhang_local/pdep/network3396_1.py
cf88478cfa806d77eb44abbf591e5dc37db88509
[]
no_license
aberdeendinius/n-heptane
1510e6704d87283043357aec36317fdb4a2a0c34
1806622607f74495477ef3fd772908d94cff04d9
refs/heads/master
2020-05-26T02:06:49.084015
2019-07-01T15:12:44
2019-07-01T15:12:44
188,069,618
0
0
null
null
null
null
UTF-8
Python
false
false
117,871
py
species( label = '[CH2]C=COC([CH2])[O](6739)', structure = SMILES('[CH2]C=COC([CH2])[O]'), E0 = (167.03,'kJ/mol'), modes = [ HarmonicOscillator(frequencies=([3000,3033.33,3066.67,3100,415,465,780,850,1435,1475,900,1100,1380,1390,370,380,2900,435,2995,3025,975,1000,1300,1375,400,500,1630,1680,345...
[ "dinius.ab@husky.neu.edu" ]
dinius.ab@husky.neu.edu
a607cfd0c82f0951367c489f47dad4d25eb49d58
00829e1ff78f73dab073a201d68139960c1d1922
/tools/toolset/tool/rigging/pipline_tool/ui/his/ui_create_character.py
42c99cc1874dedb0e213f77abca01d3414e1a31e
[]
no_license
liangyongg/Beam_Tools
a021ceb4187107508536c46726da5b9629ffd1cf
21b5d06e660f058434e589ae4f672f96296b7540
refs/heads/master
2018-11-04T04:43:02.523654
2018-08-26T12:33:09
2018-08-26T12:33:09
115,005,481
0
0
null
null
null
null
UTF-8
Python
false
false
1,908
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui_create_character.ui' # # Created: Thu Apr 26 11:29:46 2018 # by: pyside-uic 0.2.15 running on PySide 1.2.4 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, QtGui class Ui_Form(object): def set...
[ "hhhh" ]
hhhh
26167a55797b51de9a737b401be65741bbeeaf68
56c60735c500e69ee546de493c8f42a7752624a7
/botDS.py
93588109d4c2744ff28b8dc73b9126b75b382e61
[]
no_license
bialx/bot
4e703fb22152a86a22751187d48f8985c84d26c6
f2783ba17f07cb0a746f4e690c58e04b2649002b
refs/heads/master
2020-03-23T02:27:58.818158
2018-07-14T20:16:45
2018-07-14T20:16:45
140,975,237
0
0
null
null
null
null
UTF-8
Python
false
false
8,063
py
# id : https://discordapp.com/oauth2/authorize?client_id=465241470182621214&scope=bot&permissions=0 import discord from discord.ext import commands import os import pickle import random import aiohttp from aiohttp import web import asyncio TOKEN = 'NDY1MjQxNDcwMTgyNjIxMjE0.DiKpcw.U2WHrB_RYEFKc4X0FSxKDWniDOo' grid ...
[ "noreply@github.com" ]
bialx.noreply@github.com
0b2b5899160b350128d8d74c3257841738ba6249
5bcc9e2f3394152a01c4fe803ec5bd0f9a4dd678
/client/ultrasonic.py
f52be5bfb8d33586dee05445388a2ce81cad7777
[]
no_license
TXZhe/Magic_Mirror
74cb3414dde73703f9d2855e8c3bad3b15856676
3b7b1d9a09535c2b9aef459fdb7ec38e02f8010b
refs/heads/master
2020-03-18T16:22:04.675059
2018-07-16T14:29:52
2018-07-16T14:29:52
134,961,885
1
0
null
null
null
null
UTF-8
Python
false
false
843
py
import RPi.GPIO as GPIO import time TRIG = 23 ECHO = 24 class UltraSonic: def __init__(self): GPIO.setmode(GPIO.BCM) GPIO.setup(TRIG,GPIO.OUT) GPIO.setup(ECHO,GPIO.IN) GPIO.output(TRIG, False) ''' def __del__(self): GPIO.cleanup() ''' def distance(self): ...
[ "450111801@qq.com" ]
450111801@qq.com
ce74a238c917af6de5cfc93964163002750f06d8
59de7788673ade984b9c9fbc33664a7cbdba67d3
/res/scripts/client_common/shared_utils/__init__.py
9b417b171ce7cf3e50a53c5b6006973b705af2f6
[]
no_license
webiumsk/WOT-0.9.15-CT
3fa24ab37a6c91b7073034afb2f355efa5b7fe36
fbd194fbaa6bdece51c7a68fc35bbb5257948341
refs/heads/master
2020-12-24T21:27:23.175774
2016-05-01T13:47:44
2016-05-01T13:47:44
57,600,180
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
4,366
py
# 2016.05.01 15:25:53 Střední Evropa (letní čas) # Embedded file name: scripts/client_common/shared_utils/__init__.py import weakref import itertools import types import BigWorld from debug_utils import LOG_ERROR, LOG_WARNING ScalarTypes = (types.IntType, types.LongType, types.FloatType, types.BooleanType) + types.S...
[ "info@webium.sk" ]
info@webium.sk
4cec80ef5706409c00bd637115c1cd8fac68858c
aab3df1e96ef417a6f85837eca1d640b787e1276
/sklearn_porter/estimator/classifier/KNeighborsClassifier/__init__.py
401a6844995e4c7e01075a246cbf79d7bff3a43d
[ "MIT" ]
permissive
apasanen/sklearn-porter
88634b6f4985e1cd1ee09869495a8a3a3f6c1134
43a403c45c7538876df5dbe3c2f79e4aca965d47
refs/heads/master
2020-04-10T21:28:19.501112
2018-12-11T08:39:40
2018-12-11T09:21:05
161,297,343
0
0
MIT
2018-12-11T07:52:21
2018-12-11T07:52:21
null
UTF-8
Python
false
false
8,456
py
# -*- coding: utf-8 -*- import os import json from json import encoder from sklearn_porter.estimator.classifier.Classifier import Classifier class KNeighborsClassifier(Classifier): """ See also -------- sklearn.neighbors.KNeighborsClassifier http://scikit-learn.org/stable/modules/generated/ ...
[ "darius.morawiec@nok.onl" ]
darius.morawiec@nok.onl
52790bf2abe2bc685b4f7e3d84b7a57846ce14d8
ca9b9ece987e948b4373654bda555cd89330dd2e
/venv/bin/django-admin
cfcb2c10e2c507a5d9dee79a25fb4f836df6b3ec
[]
no_license
Tamim101/portfolio
2795ecb1aeb504010603d41c9199cc8dbd8a6eb3
60cc69bae3557d816b35c7685bf5ff03b6f6e29c
refs/heads/master
2023-03-17T19:07:05.112382
2021-03-13T13:22:22
2021-03-13T13:22:22
344,207,829
0
0
null
2021-03-13T13:22:23
2021-03-03T17:27:33
Python
UTF-8
Python
false
false
305
#!/home/tamim/PycharmProjects/portfolio_pink/venv/bin/python # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "tamimkhan7133@gmail.com" ]
tamimkhan7133@gmail.com
d60e67e7956b681d4e6625da2a48b77f247e407e
2f0efc8c179ba33c56e66e5421a65dfa6631fae7
/learnpythoncode/leapyear.py
45dbc77f426ca2018464ff579eb3263d1f051b20
[]
no_license
testgurus/python
f0f8f00062be248dfcc7729ccb542fbf1f83f03a
212f346244a9efba2bd7951c46c1dbe1f7277532
refs/heads/master
2021-01-21T10:51:58.598197
2017-09-16T21:03:41
2017-09-16T21:03:41
101,991,751
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
year = input("Enter year: ") if year.isalpha(): print("Enter only number") year = input("Enter year: ") y = int(year) if(y % 4) == 0: print("{0} is a leap year") else: print("{0} is not a leap year")
[ "ravi.mca.chauhan@gmail.com" ]
ravi.mca.chauhan@gmail.com
908f096cd27da560b36d3a1fce83253f7716a801
893a3dda2e5f8aac4b6c07ae3404074f1dd1465c
/chap2/video_writer.py
2c33b8b2a9884570e5d78404681f28a71a04d893
[]
no_license
chenjingfan14/ee674Flight_Dynamics-master
98053c649e128b96d1057e5c2f67c67aacfb2484
2480f2b4c9a5b55c7e7a46d69b39134a18752b5e
refs/heads/master
2022-04-14T12:46:49.276826
2020-04-04T06:39:14
2020-04-04T06:39:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,320
py
""" mavsimPy: video making function - Beard & McLain, PUP, 2012 - Update history: 1/10/2019 - RWB """ import numpy as np import cv2 #from PIL import ImageGrab class video_writer(): def __init__(self, video_name="video.avi", bounding_box=(0, 0, 1000, 1000), output_rate = 0.1): # bbox speci...
[ "noreply@github.com" ]
chenjingfan14.noreply@github.com
abcdca2d558b3f49a0a8e90bd7073824ebc3b77a
12663ec882f7f7c2c9e9dd3095e1ba4be6c580e0
/mysiteS19/myapp/models.py
1b36222411863b0eb602d9b7cd95c4fbfe26a2f1
[]
no_license
khyati2304/Life-Sport-Store
3a4787487c0d1e0c864632e58206a76f8ba5f0ef
fe57c6fd7572dc70e57e970b528c4043f9ed564e
refs/heads/master
2020-06-12T14:50:39.992581
2019-06-28T21:11:08
2019-06-28T21:11:08
194,334,548
0
0
null
null
null
null
UTF-8
Python
false
false
2,626
py
from django.db import models import datetime from django.contrib.auth.models import User from django.utils import timezone # Create your models here. class Category(models.Model): name = models.CharField(max_length=200) warehouse = models.CharField(max_length=100, default="Windsor") class Meta: ...
[ "patel1so@uwindsor.ca" ]
patel1so@uwindsor.ca
fde158d70c7cb58f45944cee248462fd1bc999ca
d17055e15f88fae2597115ff98ce8006ceda1d51
/pooltable_manager.py
58934a5665320d11556109eb269703bf8bfe5e72
[]
no_license
welchsoft/pool_table_project
3ba7946520b5b8274a11451d9f5f19e80414f5dc
010d53df7c97d5af7d72a9483428f755f8f9692c
refs/heads/master
2020-03-16T17:14:03.880580
2018-07-15T22:55:59
2018-07-15T22:55:59
132,822,925
0
0
null
null
null
null
UTF-8
Python
false
false
9,245
py
#import datetime from datetime import datetime import time from pooltable import Pooltable import json import os import smtplib from email.message import EmailMessage class Manager: def __init__(self): self.table_count = 12 self.hourly_rate = 30.0 self.table_array = [] self.dict_arr...
[ "wade.c.welch@gmail.com" ]
wade.c.welch@gmail.com
80e2f8af7ea59d0050205501609dac9eb0bc03e9
e17ba18f57f14ab315789be2b6ac4f6bd6b01f65
/blog/migrations/0004_auto_20171014_1452.py
ba847c3423b5bc59bae19f68586768c433a4a445
[]
no_license
fangweiren/Django
766715681b384f63ffb8d8cf4083cbad5db48a04
afe42009596d5b77cc25a2c11057540859831eb2
refs/heads/master
2023-04-04T09:58:56.751711
2017-11-19T13:51:48
2017-11-19T13:51:48
105,427,129
0
0
null
2021-03-31T18:34:33
2017-10-01T07:49:59
Python
UTF-8
Python
false
false
448
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0003_auto_20171014_1431'), ] operations = [ migrations.AlterField( model_name='profile', nam...
[ "513069595@qq.com" ]
513069595@qq.com
65cf6179e020f271bc3a57d6184f464c168ce98e
c1150e6977b060ae60a7354813691cb937165b74
/merge_txt.py
9beaa7411da753d330f45a0eeb88fc54c3276441
[]
no_license
loomis3632/extract
4d6ecdf95fa0fa6ea7b60b37cb7615aa42544f9a
4980f5ade1d2f4eed8edc781796035d532e5dca3
refs/heads/master
2021-05-18T06:59:29.132758
2020-04-24T07:57:19
2020-04-24T07:57:19
251,169,764
0
0
null
null
null
null
UTF-8
Python
false
false
1,781
py
# encoding: utf-8 """ @author: baimianhuluwa @time: 2020/4/22 15:11 @file: merge_txt.py @desc: """ import os import chardet def get_all_path(open_file_path): """ 获取当前目录以及子目录下所有的.txt文件, :param open_file_path: :return: """ rootdir = open_file_path path_list = [] list = os.listdir(rootdi...
[ "“614798797@qq.comgit config --global user.name “loomis3632" ]
“614798797@qq.comgit config --global user.name “loomis3632
01bc8dd81cafcbbf52dd9b8525c0fd40f828b6f4
274521d5ccfbaebb97cdfbfa340d951eee7c9efa
/Python/PythonProgrammingLanguage/Encapsulation/encap_env/bin/jsonschema
116515a0218c94456db568d63ab738fffe5c5f5e
[ "MIT" ]
permissive
nitin-cherian/LifeLongLearning
ef8e1ed61e4bf8b6ae4a0ae642c559ab47be84b4
84084792058358365162c645742c70064a2d5fd6
refs/heads/master
2021-01-21T10:38:41.797326
2018-08-23T01:28:10
2018-08-23T01:28:10
91,701,351
6
0
null
null
null
null
UTF-8
Python
false
false
323
#!/home/nitin/Learn/Repositories/Github/LifeLongLearning/Python/PythonProgrammingLanguage/Encapsulation/encap_env/bin/python # -*- coding: utf-8 -*- import re import sys from jsonschema.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main(...
[ "nitin.cherian@gmail.com" ]
nitin.cherian@gmail.com
76ba202c34534ea332d0d9c2b7c22175514cb943
bf331831c2c532d76b91c11127cc4c76cf9f0031
/166/D/ans_errorneous.py
eac398768204dd7b212a8fb9e6f37ee62331d50c
[]
no_license
mugenen/Codeforces-Solution
519899d658a52dc87bfdba81110e9851ccf3b6de
f69874ad46acc511f4485dc29249f7010f562ea9
refs/heads/master
2021-01-22T04:49:48.986989
2013-02-25T12:36:10
2013-02-25T12:36:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,288
py
import sys import collections import bisect import math class Trie: class Node: def __init__(self, x, bros = None, child = None): self.data = x self.bros = bros self.child = child def get_child(self, x): child = self.child while child: ...
[ "8monkey.theorem@gmail.com" ]
8monkey.theorem@gmail.com
9f6c1e251a682544de076c221d0328be196756ff
a8f1573dab2a4f74331fda435b5e9d4d12db3ff7
/predict.py
306983b2cf1a546058468bbd89dc6ef7fc15310a
[]
no_license
Jexulie/CNN-Text
29df8ba944d18bf738264c727e5e14c929527a5e
a68c3bdfbef3222f4445c07cf4d656909994fb28
refs/heads/master
2020-06-20T16:35:21.240771
2019-07-16T11:20:00
2019-07-16T11:20:00
197,179,814
0
0
null
null
null
null
UTF-8
Python
false
false
814
py
import numpy as np from keras.models import load_model from keras.preprocessing.text import Tokenizer from keras.preprocessing.sequence import pad_sequences class Predict: def __init__(self, modelPath, maxlen): self._model = load_model(modelPath) self._maxLen = maxlen def __tokenizeX(self, X):...
[ "fejitj3n@yahoo.com" ]
fejitj3n@yahoo.com
627649476ff37a030466b373ef750b7e153b0eb0
498fcf34fa4482be5c9fefc488666e60edcf46c7
/supervised_learning/0x01-classification/17-deep_neural_network.py~
90473c634dabec13840cc70707d19fee907312fb
[]
no_license
MansourKef/holbertonschool-machine_learning
7dbc465def04c311c1afb0e8b8903cbe34c72ad3
19f78fc09f0ebeb9f27f3f76b98e7a0e9212fd22
refs/heads/main
2023-03-12T16:18:08.919099
2021-03-05T09:42:09
2021-03-05T09:42:09
317,303,125
0
0
null
null
null
null
UTF-8
Python
false
false
1,201
#!/usr/bin/env python3 """module""" import numpy as np class DeepNeuralNetwork: """Deep Neural Network""" def __init__(self, nx, layers): """Constructor""" if not type(nx) is int: raise TypeError("nx must be an integer") if nx < 1: raise ValueError("nx must be...
[ "2798@holbertonschool.com" ]
2798@holbertonschool.com
d3ac15d1a1b310e9fa40c1f85843907c80188625
4f21bcbb86bd2f5d45deda8b348b48516759403b
/src/mask_generator.py
96267b0965facf2bbda560a7641dc11e531cac1f
[]
no_license
pettod/prostate-cancer-grade-assessment
34b56a9eefeb3e251a83c2e747ceef806d346bb3
1aa546a00767b18ef816e5c7fe1c03f90694e8d3
refs/heads/master
2022-10-10T22:06:02.581687
2020-06-08T15:08:10
2020-06-08T15:08:10
260,496,042
0
0
null
null
null
null
UTF-8
Python
false
false
8,406
py
import numpy as np import math import random import pandas as pd import os import glob import cv2 from skimage.io import MultiImage from openslide import OpenSlide from PIL import Image import matplotlib.pyplot as plt from torch.utils.data import Dataset, DataLoader class MaskGenerator(Dataset): def __init__( ...
[ "peter.todorov@live.com" ]
peter.todorov@live.com
0c98c3fa06970c85f3b2a81e02355551274fcf41
5b22437902bffa0f62b375d56bfb2b4485ef43f0
/src/video_inpainting/padded_masked_video_tar_dataset.py
93491de023c768894243ad89932a5aa1d0875600
[ "MIT", "CC-BY-SA-3.0", "CC-BY-SA-4.0" ]
permissive
JohnsonzxChang/devil
eafa09f5258b4f33eda9564077814c6e63473a0f
296115cd5f4952c7dc65bbcaaf2d1d5c55ef5d35
refs/heads/public
2023-07-03T12:07:58.917440
2021-08-10T00:06:38
2021-08-10T00:06:38
555,846,483
1
0
MIT
2022-10-22T13:22:43
2022-10-22T13:22:42
null
UTF-8
Python
false
false
1,437
py
import tarfile from itertools import cycle from .padded_masked_video_dataset import PaddedMaskedVideoDataset class PaddedMaskedVideoTarDataset(PaddedMaskedVideoDataset): def __init__(self, frames_dataset_path, masks_dataset_path): self._frames_dataset_tar = tarfile.open(frames_dataset_path, 'r') ...
[ "szetor@umich.edu" ]
szetor@umich.edu
b70adaf17f7be82b2a5dda0a1c4117fbb56e8e65
7bbcdace3b10190cf72941ccb821459313915d4f
/test1.py
19a01573b9f129a381d5ba50d3dee0fcb2757ffa
[]
no_license
jasongti/visualization
75c3b4b7a6d4bcaa727a3f4cfa419b99c5cb2111
575b46a39a5d32853f0b33f0777867e5035d23a3
refs/heads/master
2022-04-16T17:21:49.206789
2020-04-15T10:15:02
2020-04-15T10:15:02
250,243,955
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
import matplotlib.pyplot as plt import numpy as np x = np.arange(0, 2 * np.pi, 0.02) y = np.sin(x) y1 = np.sin(2 * x) y2 = np.sin(3 * x) ym1 = np.ma.masked_where(y1 > 0.5, y1) ym2 = np.ma.masked_where(y2 < -0.5, y2) lines = plt.plot(x, y, x, ym1, x, ym2, 'o') # 设置线的属性 plt.setp(lines[0], linewidth=1) plt.setp(lines[1]...
[ "rhythmlee@gmail.com" ]
rhythmlee@gmail.com
6c6ac0405307578b110806b41808b8fc2e69e5d9
4b500447a3b94cff810e61858a1f2cae43b0fb29
/ex1.py
6986c764118fecf8a7e3b2e064b5a22ae41da756
[]
no_license
knowone/OS2PythonWorkEx1
e8dcf42e07919130a6155ac6877b92a1cc0bf35c
e14776176b2d760881d3f21d7c8c5b8d6b2c9225
refs/heads/master
2021-01-18T23:17:33.227262
2017-04-25T09:24:58
2017-04-25T09:24:58
87,103,831
0
0
null
null
null
null
UTF-8
Python
false
false
5,809
py
# ------------------------------------------------------------------------------ def quest1(): """ Question 1: prints all numbers that their sum of digits cubed are equal to themselves. """ for i in range(100, 500): j = i s = 0 while j > 0: s += (j % 10) ** 3 ...
[ "knowone.omer@gmail.com" ]
knowone.omer@gmail.com
494f9412713ce88fb3b852646746e54ca1e236e5
67956b30144a965e4333c32a7a1978fdd524847b
/preprocessing tweet hashtags using dictionaries.py
6b445d1debed44dc63d423004a4c8e4f8c2874d7
[]
no_license
priyank9320/twitter-sub-event-detection-and-sentiment-analysis-using-graph-theory
99b2cd89ffceecae5069c6e2646817086f8950ef
ac600768e629cb76b6b3ffd0d5b4be1ef10e9565
refs/heads/master
2023-02-05T10:57:52.567136
2020-12-26T09:21:33
2020-12-26T09:21:33
263,738,410
0
0
null
null
null
null
UTF-8
Python
false
false
3,921
py
#!/usr/bin/env python # coding: utf-8 # In[ ]: import mysql.connector ## database connection import pandas as pd ## for pandas dataframe from nltk.tokenize import RegexpTokenizer ## tokenizer # In[ ]: ##### DATABASE CONNECTION db_connection = mysql.connector.connect(host='localhost', database='tweet_data', user=...
[ "priyank.m9320@gmail.com" ]
priyank.m9320@gmail.com
92e1f674207fd73f5bacb5a9b1bcf5a56f7419b3
3e902a191bc66be2f80f31eda220e55920863e55
/loop/__init__.py
d0f7541e0eca3b9cdc059062368d73a043767220
[]
no_license
Knight-Ops/xtensa-dis
2871775598959f65e3322fb7478ae79553c93e75
50ff9879fd1c4d0a1e15a187beb16d367e3ed658
refs/heads/master
2022-06-26T16:43:08.565351
2020-05-09T01:06:29
2020-05-09T01:06:29
260,047,011
1
0
null
null
null
null
UTF-8
Python
false
false
32
py
from .loop_instructions import *
[ "carl@basilisklabs.com" ]
carl@basilisklabs.com
6579e872948f51bf21e7c2ea85957dcf238da3da
1b862f34c125ce200244dd79e4fda4b5b605ce2e
/.history/ML_T2_Validation_20210612133304.py
f4916063cc50283bddabf46d8c1a1f2ed57ad41b
[]
no_license
edwino26/CoreImages
26085a49cf1cb79442ae563a88354b2fdceace87
6bf6e68cac8ab36c87b1e6ea702bfe6882b0f40e
refs/heads/master
2023-06-22T12:53:37.344895
2021-07-21T04:31:44
2021-07-21T04:31:44
309,553,247
0
4
null
2021-04-29T23:23:15
2020-11-03T02:45:07
Lasso
UTF-8
Python
false
false
9,517
py
#T2 TEST DATA # %% import pandas as pd import numpy as np import matplotlib.pyplot as plt import pickle from scipy import interpolate from scipy.integrate import simps from numpy import trapz from sklearn.metrics import mean_squared_error # %% #Load Stack UVStack = pd.read_excel('./ML_Results/T2_test/ImgStack.xls') I...
[ "ortega.edwin.y@gmail.com" ]
ortega.edwin.y@gmail.com
c4c42784587d12889c3cdc885e8f437879a6747a
3cb2cc1f4eeb746a2b3318381cd39489f7c80544
/n prime number using while loop.py
de7162858e3d25f927e9ac3257da67916452d4aa
[]
no_license
mrkhan10/python_letsupgrade-DAY-3
1c59d95721783fe3279660204434c114c565acc7
75478318203c8259f5bdeec08a6a32fd6024bb94
refs/heads/main
2023-01-24T16:15:09.234435
2020-12-12T16:25:19
2020-12-12T16:25:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
#program to print X prime numbers from 0 using while loop x = int(input(" Please Enter Any Number: ")) Number = 1 print("Prime numbers between", 1, "and",x, "are:") while(Number <= x): count = 0 i = 2 while(i <= Number//2): if(Number % i == 0): count = count + 1 ...
[ "noreply@github.com" ]
mrkhan10.noreply@github.com
c5b9d6862e88d4985aca4aef466341647504da89
61b044c885c5b0e8fd392304855c3a9d417da466
/functions/randmcmc/L+C_mcmc_rand_sig_tau_3.py
400646b4f2a12722170161c70bfb415e0971a992
[]
no_license
noahkrever/pg1302
8e74efbed16ad63daeecd50f94c0c3a268723a65
c800f9ac491180013466b8e08ed300fdc94df700
refs/heads/master
2022-12-09T12:04:01.915425
2020-08-27T21:14:02
2020-08-27T21:14:02
285,685,079
1
0
null
null
null
null
UTF-8
Python
false
false
309
py
import time import calculateL start = time.time() calculateL.drw_MCMC(r"/rigel/astro/users/ndk2115/pg1302/data/L+C_mcmc_rand_sig_tau_3.h5",r"/rigel/astro/users/ndk2115/pg1302/outputs/L+C_mcmc_rand_sig_tau_info_3.h5") end = time.time() print("The run took " + str(end - start) + " seconds.")
[ "ndk2115@columbia.edu" ]
ndk2115@columbia.edu
5ca2ca31d57e7c843a5e90303dd041003f64e812
4458f2e9f694e7f864a7587f8840d8e132031554
/learning_templates/basic_app/urls.py
2c9bcbb7cfcb9009b2a8576aaf3804c5c0f92a93
[]
no_license
iApolloBear/DjangoLevel4
aa424c6b619d590665ea55dd785b9f68a1177159
549d2224a6a708ae8f861553a5e6539d08d8be97
refs/heads/master
2021-05-25T20:43:23.166670
2020-04-07T22:34:31
2020-04-07T22:34:31
253,911,451
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
from django.urls import path from . import views # Template Tagging app_name = 'basic_app' urlpatterns = [ path('relative/', views.relative, name='relative'), path('other/', views.other, name='other'), ]
[ "aldoespinosaperez1@gmail.com" ]
aldoespinosaperez1@gmail.com
c51a1e996599f1ff816105ef3e9c1f1172432007
9b1b41932330192d01ecfe6a873131e4b0611423
/accounts/migrations/0003_profile.py
476832c44d1902e9536b6c4b2e3b12b1da415929
[]
no_license
someOne404/FinanceApp
c22c376eeb159ce6f60eb7be0e1b17f4b2c2791c
2e0401d680fdd2009fc2ed03ea3fd44121c77874
refs/heads/master
2020-04-26T10:24:12.271187
2019-03-03T14:41:26
2019-03-03T14:41:26
173,485,013
0
0
null
2019-03-03T14:41:27
2019-03-02T18:37:30
Python
UTF-8
Python
false
false
950
py
# Generated by Django 2.1.7 on 2019-03-03 01:44 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('acco...
[ "jiayilu96@gmail.com" ]
jiayilu96@gmail.com
a3392be60bc656170a178d7024e13bbff66399ff
f8543f8292b42a7e8670b3ae6d80ee2eeecfb777
/analytic/analytic.py
28a4a71fb6593c726eb740e96dd851dbc9af74da
[]
no_license
alexandercorvinus/monthly-commitment-management
6b64a62de7ac15336eb1dbf84cf2459abbc9e0e0
186875bb23ae8dad2b66ff0ce4878c6dfdd364a6
refs/heads/master
2021-01-10T14:27:23.000202
2016-04-08T14:12:45
2016-04-08T14:12:45
55,698,106
0
0
null
null
null
null
UTF-8
Python
false
false
19,345
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
[ "alexandercorvinus221@gmail.com" ]
alexandercorvinus221@gmail.com
d6e9d373af82d2a2ecb6d81b58bba30f87d34c24
55978323c87857a5ae10bc45632c2db9bcaf482d
/Face_and_Eye_Detection.py
7e00ab77f0b2c465cecef9d5c86d111fb9488bd3
[]
no_license
Hi-Uday/Real-time-Face-and-Eyes-detection
f80d26908f570b346de63853321a6eb6f8ecc004
4947f49fc7275cb74c24055081c6110f660f9998
refs/heads/master
2022-07-22T05:58:25.020474
2020-05-14T03:48:44
2020-05-14T03:48:44
263,807,435
1
0
null
null
null
null
UTF-8
Python
false
false
1,176
py
import cv2 faceCascade = cv2.CascadeClassifier("Temp/haarcascade_fromtalface_default.xml") L_eyeCascade=cv2.CascadeClassifier("Temp/LeftEye.xml") R_eyeCascade=cv2.CascadeClassifier("Temp/RightEye.xml") video_capture = cv2.VideoCapture(0) while True: # Capture frame-by-frame ret, frame = video_capture.read() ...
[ "noreply@github.com" ]
Hi-Uday.noreply@github.com
7a7e96ffb61726de2d180025d83908a58c2436e9
99b4956b0026c1c4cb023424342fc75f523aa4fa
/04.adventure/22.rangement/sprite.py
ce61013bdaa892c349ce6963e7e4749ba8b9451b
[ "MIT" ]
permissive
Gaetz/python-training
37c234128d834ee29e0e625f265cf0b68158c228
542f658883c66aaa932fb9e385225cfd573bb6de
refs/heads/master
2021-05-09T03:44:22.990658
2020-10-02T18:29:50
2020-10-02T18:29:50
119,250,880
2
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
import pygame class Sprite(object): path = 'D:\\Code\\ArtFx\\Python\\python-training\\01.adventure\\22.rangement\\images\\' def __init__(self, x, y, filename, centered): self.x = x self.y = y self.surface = pygame.image.load(Sprite.path + filename).convert_alpha() self.ox = 0 ...
[ "gaetan.blaisecazalet@gmail.com" ]
gaetan.blaisecazalet@gmail.com
c2284bb43fb4e394112d42285ea0651e895b3bad
ed1e306db93ccbb599c37013190bf624dad6b1cd
/1149(두 수 중 큰 수 출력).py
bf9c340dd8168d808bb467d91390ac52b3b4a74c
[]
no_license
subinYoun/CodeUp-1101-1161-
8965de4f655f30f154729eae54a909bba24749de
1a58cece10215effd93f6d2fce6b5b9cbbb0d65b
refs/heads/master
2023-02-23T17:17:20.485922
2021-01-29T15:06:43
2021-01-29T15:06:43
334,177,845
1
0
null
null
null
null
UTF-8
Python
false
false
83
py
#두 수 중 큰 수 출력 a, b=map(int, input().split()) print("%d" %(max(a, b)))
[ "younsue0825@naver.com" ]
younsue0825@naver.com
6abfcba35e49972578fffffe12179486b1abcd5f
670e2cda023384ff2c6902e22db698abedd86a92
/babynames/solution/babynames.py
48dd52dbd2f5d68586d5cd8d00b3ff1672b7fda4
[]
no_license
MichaelDeutschCoding/Python_Baby_Projects
e204b99734606daea7008e7d1e29deffc20bf8c8
49186be14dcc8cd0135aa6ba8c4dcd7d1ccd8dd1
refs/heads/master
2020-09-12T10:16:46.700884
2019-11-26T18:25:32
2019-11-26T18:25:32
222,391,782
0
0
null
2019-11-26T18:25:33
2019-11-18T07:50:28
HTML
UTF-8
Python
false
false
3,867
py
#!/usr/bin/python # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ import sys import re """Baby Names exercise Define the extract_names() function below and c...
[ "noreply@github.com" ]
MichaelDeutschCoding.noreply@github.com
67e264c9876bb2fce3543c2d00cd2b862a584618
0d5b83606fa6d3fabc09bffd4b17522aea598229
/vgg19.py
4c2232b066214964869459bb7c244b99a474e456
[]
no_license
nihaotiancai/style_transform
cf6eeaed5fffee63c9aad1a0b897c6ab406d3f93
23af9ac958f8233eba6a4e11268c6141ec46a8db
refs/heads/master
2020-04-23T13:09:35.855207
2019-02-18T02:00:35
2019-02-18T02:00:35
171,194,086
0
0
null
null
null
null
UTF-8
Python
false
false
3,868
py
#coding:utf-8 import os import tensorflow as tf import numpy as np import inspect VGG_MEAN = [103.939, 116.779, 123.68] # 封装Vgg19模型及操作 class Vgg19: # 初始化 加载预训练模型 vgg19.npy def __init__(self, vgg19_npy_path=None): if vgg19_npy_path is None: path = inspect.getfile(Vgg19) path = o...
[ "824938649@qq.com" ]
824938649@qq.com
918c5792164f2295977dfd0a68a09cf4c43c4379
41bc3f4c8cf5e723f6764a878e36838762bf6b9e
/libs/image_helper.py
1c5caeb957be0964614eb01889f58dc861ca9757
[]
no_license
WilsonPhooYK/udemy-advanced-restapi-flask-python
109f5b92db34ce49affdea060ff1800cde9686a5
d06b28a9c7a898abf2d126e4a47a0f4fcab7489c
refs/heads/main
2023-05-06T22:50:03.838524
2021-06-01T08:58:09
2021-06-01T08:58:09
370,373,721
0
0
null
null
null
null
UTF-8
Python
false
false
2,200
py
import os import re from typing import Optional, Union from werkzeug.datastructures import FileStorage from flask_uploads import UploadSet, IMAGES # "images" must be same as the center of UPLOADED_IMAGES_DEST in config IMAGE_SET = UploadSet("images", IMAGES) # set name and allowed extensions def save_image(image: Fi...
[ "wilson@policypal.com" ]
wilson@policypal.com
351429a0b415e319d26caf353060320b8d7c63bb
bf41ebd8931c92cfb82bd0934a82d94eacd72c95
/2second.py
ac23a3c11a0d8ac29e7c9744e938d228d30fb9a2
[]
no_license
DjPetuhe/euler-project
8ce990fc078710e988966e5262aa9a1e6ca7e267
0365d6b0f5b424063317838c318fa0062080fadf
refs/heads/master
2022-12-31T11:48:48.100041
2020-10-24T18:10:45
2020-10-24T18:10:45
302,047,440
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
i = 0 x = 1 y = 1 Result = 0 while (i <= 4000000): i = x + y if (i % 2 == 0 and i <= 4000000): Result += i x = y y = i print(Result)
[ "validhernufKPI@gmail.com" ]
validhernufKPI@gmail.com
dbe01cfd78374273c1c4be47f16e8c86a9962fcb
13d222bc3332378d433835914da26ed16b583c8b
/src/pemjh/challenge52/main.py
b1407abc5c0d32694b4aaf0241a641dcaad75fcd
[]
no_license
mattjhussey/pemjh
c27a09bab09cd2ade31dc23fffac07374bea9366
2ebb0a525d2d1c0ee28e83fdc2638c2bec97ac99
refs/heads/master
2023-04-16T03:08:59.390698
2023-04-08T10:54:00
2023-04-08T10:54:00
204,912,926
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
""" Challenge052 """ def get_sorted_string(unsorted): """ >>> get_sorted_string(54326) '23456' >>> get_sorted_string("aBayU") 'BUaay' """ return "".join(sorted(str(unsorted))) def main(): """ challenge052 """ root = 0 found = False while not found: ...
[ "matthew.hussey@googlemail.com" ]
matthew.hussey@googlemail.com
93387f1dc695c60c5047d6ab3abd0328d63afe8d
848bb1e6266c0d7ab52a19a65a052f9635a9f1e5
/sss.py
669b9e42decd5da475ffabc3e9170cc11f67e9bf
[]
no_license
giuseppegargiulo/GargiuloPy
58e8e680e2a196fb47d29d2f87181b9f32d899e8
e8a1dee0341cd8688aaf42af5479e42ef467d04f
refs/heads/master
2023-02-26T01:13:12.234315
2021-01-24T20:52:14
2021-01-24T20:52:14
318,179,905
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
def max_frequency(x): for i in x: n=0 for j in x: if i == j : n += 1 print("la lettera",i,"é ripetuta", n, "volte nella parola") x= input("inserisci una parola:") print(max_frequency(x))
[ "giuseppe.gargiulo.s4@liceoviconapoli.it" ]
giuseppe.gargiulo.s4@liceoviconapoli.it
fcf6d5b203f22c6e42690390171431383fde3627
9b328903c7ce1ddfc957c6db4a5fef265bce1dad
/preprocess.py
2d04c659dfe88bfdce2082cc1a99285c36834611
[]
no_license
matatabinoneko/viral_tweet_generation
4a610b0327d7ce0e8e2b94eec0f82aa9f1c35ca1
1e26de293420dbed6f50f161b3210c9d14e3b2d4
refs/heads/main
2023-03-12T16:11:14.187622
2021-03-02T00:11:47
2021-03-02T00:11:47
330,305,509
0
0
null
null
null
null
UTF-8
Python
false
false
4,466
py
''' ツイートの前処理を行う ''' import argparse import logzero from logzero import logger import logging from os import path from typing import List from filtering_type import EmoticonFilter import json import MeCab from collections import defaultdict import re logger.setLevel(logging.INFO) mecabTagger = MeCab.Tagger("-Ochasen...
[ "matatabinoneko0721@gmail.com" ]
matatabinoneko0721@gmail.com
f9eee3d75da6c00be6f06d18eadf0dc2d8d29d0e
c47e4d8ae6673b5a84d1cd0377e1de0667fd1716
/Tranlator_sysargv.py
60e29e32063a374bb79106af543b4af50ac27ded
[]
no_license
Group1SohrabiMirdamadi/Session1819
a071c17dd1f07653efef5f072efbd1d5805c62d5
949301cb24e95b5459866cf31c228814866c0928
refs/heads/main
2023-04-12T08:14:16.402148
2021-05-07T18:03:03
2021-05-07T18:03:03
364,950,988
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
import translators as ts import sys import argparse if __name__ == '__main__': first_file, second_file, from_language, to_language, provider = sys.argv[1:] with open(first_file, 'r') as file: text = file.read() with open(second_file, 'w') as file2: result = str(getattr(ts, provider...
[ "noreply@github.com" ]
Group1SohrabiMirdamadi.noreply@github.com
45b646902cf554c6366326fa77166b47d450b073
4bb4cdc2d69e1214edbc98a46a9ac6127bf13361
/app/models.py
01d87a8227b201de78f8ff7bc8b27589e3fa8820
[]
no_license
KirillSefirov/microblog
2413b75f1cf8c84b6b057dc9af64b3f3f9491681
0917b2d3d07f674d6601d638d55827ffa5767fae
refs/heads/main
2023-01-19T19:40:55.663780
2020-11-30T15:14:04
2020-11-30T15:14:04
317,256,363
0
0
null
null
null
null
UTF-8
Python
false
false
758
py
from app import db from datetime import datetime class User(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(64), index=True, unique=True) email = db.Column(db.String(120), index=True, unique=True) password_hash = db.Column(db.String(128)) posts = db.relations...
[ "kirill.sefirov@gmail.com" ]
kirill.sefirov@gmail.com
5d13fd9be23e0669146b534fc415bc453768ddae
4510e511cd166791ce027cd099c865da090c0095
/technology/languages/serverSide/python/webFrameworks/socket/udpClientDemo.py
a068290c9b076e5c8906a30cafece4a471817dbc
[]
no_license
Alex-wfh/Learn
504d5fd32290835e6894092f10989072da20ee61
7138d4308227be934dff8ce7f8419ecca0ca0b5d
refs/heads/master
2021-06-01T10:54:13.704152
2021-04-02T10:16:05
2021-04-02T10:16:05
109,950,435
1
2
null
null
null
null
UTF-8
Python
false
false
213
py
import socket HOST = '127.0.0.1' PORT = 9527 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) data = 'Hello UDP!' s.sendto(data.encode('utf8'), (HOST, PORT)) print(f'Send: {data} to {HOST}:{PORT}') s.close()
[ "837473220@qq.com" ]
837473220@qq.com
d2073b44941a8b10b0f318e261b778ebfa05acb5
ac437ec9da993386ef0348cc176f4519274aadf0
/schemas/product/productSubTypeSchema.py
651efc87dc23dac4ca9e0418ba7ec7697ef5d4a3
[]
no_license
Syed-Bakhtiyar/SalesManCompleteApp
d853e459e79ddf023249ab20bc6205813d7913ec
8c956e5c8e109a2c186af7a4e7ea9c48d34e0ba7
refs/heads/master
2021-05-11T15:41:56.555234
2019-01-20T13:24:49
2019-01-20T13:24:49
117,736,146
0
0
null
2018-10-20T09:16:17
2018-01-16T20:13:25
Python
UTF-8
Python
false
false
566
py
sqlCreateProductSubTypeTable = "CREATE TABLE IF NOT EXISTS product_sub_type_table(ID INT NOT NULL AUTO_INCREMENT, " \ "PRODUCT_TYPE_ID INT NOT NULL, " \ "TITLE VARCHAR(40) NOT NULL DEFAULT ''," \ "UNI...
[ "syedbakhtiyar120@gmail.com" ]
syedbakhtiyar120@gmail.com
caa4886993b2a6034b738129474f78353d70e2af
c427d9142df033af2b509412153dae35706ede61
/recognition/pytorch_crnn/models/layers.py
fbaa09d9385382391ff58e1b8a380ebc4e74d249
[]
no_license
brahimbellahcen/ocr_toolkit
0b68776fe20b05f48807f856fffac752e3e08e66
b4516d4193132eb48f821926dd6ef5d368f53899
refs/heads/master
2022-11-13T10:21:14.083497
2020-06-26T15:31:38
2020-06-26T15:31:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,032
py
import torch import torch.nn as nn import torch.nn.functional as F class blockCNN(nn.Module): def __init__(self, in_nc, out_nc, kernel_size, padding, stride=1): super(blockCNN, self).__init__() self.in_nc = in_nc self.out_nc = out_nc self.kernel_size = kernel_size self.padd...
[ "selcukcaglar08@gmail.com" ]
selcukcaglar08@gmail.com
5047da393e9ac594565718071d047097aaa75afb
c4dd0e3177abcbf0e2043d99bbec953278f38fe3
/JD/jdIndex/views.py
1c207e26de8ea3a025782ded248ca0d831042ad9
[]
no_license
hehaowen/djangotest
37fba79bcb3c4be2d354f57724a07714e69974ad
f87f919a70a0d87bbf027f9c3ed96805c73ce739
refs/heads/master
2020-03-08T07:41:59.440604
2018-04-04T10:12:07
2018-04-04T10:12:07
128,000,970
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
from django.shortcuts import render # Create your views here. def index(request): return render(request,'jdIndex/index.html')
[ "944818557@qq.com" ]
944818557@qq.com
b67789d4edbbbe1481c6e7f78a355e9e062e37aa
27dc1dbb14a74caed22c4d242d70aa8a39c7a891
/tcpClient.py
c79dbede494c5221ca23929839a79d8caac0b974
[]
no_license
AglaianWoman/blackhatPython
8debf9d6abe029ed386211decf56aff783c1a6ad
648e6bb0aad6cd403175576165de7d28d9f24268
refs/heads/master
2021-05-06T20:58:28.438969
2017-11-03T13:29:08
2017-11-03T13:29:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
336
py
#!/usr/bin/env python2 import socket; target_host = "127.0.0.1"; target_port = 9999; # AF_INET = IPv4 # SOCK_STREAM = TCP client client = socket.socket(socket.AF_INET, socket.SOCK_STREAM); client.connect((target_host, target_port)); client.send("GET / HTTP/1.1\r\nHost: google.com\r\n\r\n"); answer = client.recv(4096...
[ "Jeppesen@tutanota.com" ]
Jeppesen@tutanota.com
3e4af5c3428191b0f79157993cb4dc07ac9263b8
bb983b38f9be7b6fd4ab1a651484db37c1aeff39
/1122/my_library.py
4e67830a25ee13ef2bb56196db5322f8047d4396
[]
no_license
nakanishi-akitaka/python2018_backup
c214df78372cca993d69f8001010ec2f6dcaf1be
45766d3c3777de2a91b3e2cf50c6bfedca8627da
refs/heads/master
2023-02-18T08:04:28.625532
2022-06-07T01:02:53
2022-06-07T01:02:53
201,399,236
5
30
null
2023-02-10T21:06:51
2019-08-09T05:48:22
Jupyter Notebook
UTF-8
Python
false
false
20,812
py
# -*- coding: utf-8 -*- """ Created on Wed Aug 8 10:29:27 2018 @author: Akitaka """ import numpy as np import matplotlib.pyplot as plt from sklearn.metrics import mean_absolute_error from sklearn.metrics import mean_squared_error from sklearn.metrics import r2_score from sklearn.model_selectio...
[ "noreply@github.com" ]
nakanishi-akitaka.noreply@github.com
333356308bf67247ffab922853f0ef721496998e
a216f8ed103affb7bb2cb9ab3b0e2f1d9e3e2d49
/get_started/dictionary/problem34.py
e17290c33c3fead0ad7664bbae2161c3cc520a91
[]
no_license
rwaidaAlmehanni/python_course
c2fe0c0448891c2c9a11434a09aa4074775a24f0
903e6d5a77b6ece5e36daf0e2c369a4a4e9715d9
refs/heads/master
2020-12-25T18:33:21.403084
2017-06-17T10:47:51
2017-06-17T10:47:51
93,965,508
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
#Improve the above program to print the words in the descending order of the number of occurrences. import sys def test(words): # return factorial x=[] f={} for w in words: f[w] = f.get(w, 0) + 1 for word, count in f.items(): x.append((word,count)) x.sort() print x[::-1] test(open(sys.argv[1]).rea...
[ "rwaidaAlmehanni" ]
rwaidaAlmehanni
39aeb6e973594342d29c7e0c62856e9bdb055bea
e5ee4f343d9523129298e1cd989b52a142028cfe
/samples/contrib/azure-samples/databricks-pipelines/databricks_cluster_pipeline.py
4cbd45e50b4cab9d62b7e153d21fb6660ecc37ea
[ "Apache-2.0" ]
permissive
joaoalvarenga/pipelines
67c5b2c906134be8d4814a0851e4b60dfa4adf44
493c3d4e980b94a963a257247c6eb2d970b3dafa
refs/heads/master
2020-12-08T18:22:52.433779
2020-01-10T05:00:34
2020-01-10T05:00:34
233,059,234
1
0
Apache-2.0
2020-01-10T14:03:36
2020-01-10T14:03:35
null
UTF-8
Python
false
false
1,780
py
"""Create a cluster in Databricks. Then submit a one-time Run to that cluster.""" import kfp.dsl as dsl import kfp.compiler as compiler import databricks def create_cluster(cluster_name): return databricks.CreateClusterOp( name="createcluster", cluster_name=cluster_name, spark_version="5.3....
[ "k8s-ci-robot@users.noreply.github.com" ]
k8s-ci-robot@users.noreply.github.com
74cb61526fe2c6c0696942829281e1a903153a9b
3740d53844d7c3178789590a16f479778f72155e
/wordcount/settings.py
b98de4a963c7fae4ffbfe5c6adf7fcccbceea7f3
[]
no_license
pike-taken/wordcount---project1
d1b0bb64d4632a70cd21d1d9d76a829ef7de4785
0fd7730e0cfad5cf87264da00378cc4b1f2bbc04
refs/heads/master
2020-12-10T05:09:08.364864
2020-01-13T04:27:58
2020-01-13T04:27:58
233,509,847
0
0
null
null
null
null
UTF-8
Python
false
false
3,108
py
""" Django settings for wordcount project. Generated by 'django-admin startproject' using Django 2.2.8. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os ...
[ "piketaken00@gmail.com" ]
piketaken00@gmail.com
dd9c4e13f64a8ad0f0ec0fe2b2c7035fab754415
903f479b8186020f0630c07c504b64ff50ee7b3b
/Task_0_4.py
ef4cacdd067c4d2a49c4489923ae69c60130b7ca
[]
no_license
Mpho-L/Level-0-Coding-Challenges
c85704c7ee2e92a205d3832024fe9ef5dae8ab00
7b673d50178b6032cf5844c2afb57ef7270f41e8
refs/heads/main
2023-08-28T04:54:23.115260
2021-09-28T06:46:29
2021-09-28T06:46:29
407,781,099
0
0
null
null
null
null
UTF-8
Python
false
false
99
py
def even_or_odd(x): if x % 2 == 0: print('even') else: print('odd') even_or_odd(6)
[ "mpholeqoalane@gmail.com" ]
mpholeqoalane@gmail.com
eda475b4a0ab689cf97894c2af87c4b6bbcf78d3
428ea81730a7102cb3ede62d16d16ed79cab7905
/Mundo_2/desafio054.py
28f219ecdc7bf86cf9834c23759b0280864158ff
[]
no_license
reinaldoboas/Curso_em_Video_Python
290f5387bd70caf74c06b33cdb34d9b2809088c3
7c36b84df957721ff20019eb90fdabdd49acaa94
refs/heads/master
2020-11-27T06:59:24.683947
2020-06-10T13:49:09
2020-06-10T13:49:09
229,346,624
2
0
null
null
null
null
UTF-8
Python
false
false
626
py
### Curso em Vídeo - Exercicio: desafio054.py ### Link: https://www.youtube.com/watch?v=IL5iBWoKRIs ### Crie um programa que leia o ano de nascimento de sete pessoas. ### No final, mostre quantas pessoas ainda não atingiram a maioridade e quantas já são maiores. from datetime import date ano_atual = date.today().year ...
[ "noreply@github.com" ]
reinaldoboas.noreply@github.com
5b46996c84345b6406c48c03241e97ddfdbd1ac8
d066f7fe739fb78f74ec2de8ccbfefdd4270f60f
/appimagebuilder/__init__.py
5b4148a08e2776e617d6700c316eba5fc4629b93
[ "MIT" ]
permissive
AppImageCrafters/appimage-builder
666e75363a74f615cdb3673b3ca9d51a6d292a49
f38699ef3644fa5409a5a262b7b6d99d6fb85db9
refs/heads/main
2023-08-17T06:34:54.029664
2023-06-03T17:51:04
2023-06-03T17:51:04
218,847,680
270
54
MIT
2023-09-06T17:04:18
2019-10-31T19:44:17
Python
UTF-8
Python
false
false
651
py
#!/usr/bin/env python3 # Copyright 2020 Alexis Lopez Zubieta # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation the # rights to use, cop...
[ "contact@azubieta.net" ]
contact@azubieta.net
18456f70a13ab649bec041f59c07887ad6b793d1
7f188822de3ea6fabb0e13786524c9e470a7888b
/Parte2/Semana3/Ex1_Triangulos_Retangulos.py
15383dbd0ad0d8b326ce56fde65572f8b71614e9
[]
no_license
mayaragualberto/Introducao-CC-com-Python
e8ecfa7d580b6f5be15c4ed2cf06147ab990f4ce
8b26247e49e2735e2353f0b6b33bc062faa7ad8a
refs/heads/master
2023-03-17T14:33:06.408639
2021-03-11T01:29:51
2021-03-11T01:29:51
267,616,690
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
class Triangulo: def __init__(self,a,b,c): self.a =a self.b =b self.c =c def retangulo(self): retangulo = False if self.a**2==self.b**2+self.c**2: retangulo=True return retangulo if self.b**2==self.c**2+self.a**2: retangulo...
[ "noreply@github.com" ]
mayaragualberto.noreply@github.com
a44dddd493284c3d87790f159fd35a7df45feb5a
147bc95b8b8a36014ec001bb1f79100095fa90a4
/day05/字典实现通讯录功能.py
118765e0740f80e3d6060493272d6942d3ffdf3d
[]
no_license
zhangwei725/PythonBase
fd20293b7f7ebee9f11a5df8f4761cad7f1ff4c7
6c9165caed48418eb55cf7622359105c9124e580
refs/heads/master
2020-04-30T00:32:40.360722
2019-04-03T01:41:51
2019-04-03T01:41:51
176,505,618
2
1
null
null
null
null
UTF-8
Python
false
false
2,100
py
# 1、实现通讯录功能(字典的方式) # 1. 查询联系人 # 2. 添加联系人 # 3. 更新联系人 # 4. 删除联系人 # 5. 退出程序 # 用来存储联系人的通信相关的信息 contacts = {'宝宝': 110} while True: print('=======简易通讯录======') print('1. 查询联系人') print('2. 添加联系人') print('3. 更新联系人') print('4. 删除联系人') print('5. 退出程序') print('=======================') num = input...
[ "36558563@qq.com" ]
36558563@qq.com
01d0dda66acc0233bb2265310298798754cc5d7e
589c2e7e0a5559d6a8dd618c3181b28df9a9bdde
/connector/MyIO.py
77f1e7ae12f1b1c56f3f43b2e9d1cdc8412e2be0
[]
no_license
athenasaurav/rasa_connector
4a276a8db658e057ff593da013fb91e84a952168
35c7286aad273db26998f8f2f084fff2b930fca5
refs/heads/main
2023-04-01T17:31:13.981836
2021-04-19T11:10:57
2021-04-19T11:10:57
351,421,438
0
0
null
null
null
null
UTF-8
Python
false
false
4,624
py
import asyncio import inspect from sanic import Sanic, Blueprint, response from sanic.request import Request from sanic.response import HTTPResponse from typing import Text, Dict, Any, Optional, Callable, Awaitable, NoReturn from asyncio import Queue, CancelledError import rasa.utils.endpoints from rasa.core.ch...
[ "noreply@github.com" ]
athenasaurav.noreply@github.com
ef1e94a8445224c7eee92e7c9481beaba7653abf
8c33821ff99e2a08853c6c8ecc31d8c33c13fa3d
/users.py
7db4c70aef46f6a7dfda04ed8945cc6e8d025818
[]
no_license
turtlekingster/lunchTable
5bd49c8393e31b3a222b6ec5e682ca9ea1035d9f
7732b034987492464e98e69a0d65424da4ff3885
refs/heads/master
2020-03-16T19:23:21.078920
2018-05-23T14:59:58
2018-05-23T14:59:58
132,913,667
0
0
null
2018-05-17T14:44:25
2018-05-10T14:42:00
HTML
UTF-8
Python
false
false
5,227
py
#!/usr/bin/python from dbhelper import dbhelper import bcrypt class User(): def __init__(self, _id=-1, name="", description="", _hash="", email="", atLunch = False, group = -1): self._id = _id self.name = name self.desc = description self._hash = _hash self.email = email ...
[ "turtlekingster@gmail.com" ]
turtlekingster@gmail.com
c1502bcef9902a24cdc78287de541c30638a0269
ded1639953820eaee25dd3cfee87cff5a9cd9a86
/mim_turniej/urls.py
6fd275e74dcc225f5d8c3fbf5d9db559ce7b77f4
[]
no_license
Arthan/cardmaker
77e98faa26406c3b816107428b47a8aa5ac3bb73
ce7e5358da59fb6de768d69d9aed3fbc5bceb079
refs/heads/master
2021-01-19T19:45:39.304115
2017-09-05T20:57:07
2017-09-05T20:57:07
101,207,940
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
"""mim_turniej 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') Clas...
[ "krzysztof.lemka@gmail.com" ]
krzysztof.lemka@gmail.com
15d2b575651bdea86b38c0e958fcaf83eaae4442
760fbf0e4675212a89dbba28ef771bf7ff7a0d91
/Leetcode2019/145. 二叉树的后序遍历.py
06d8fc7c4c1096758d26866d0f867745ac54876d
[]
no_license
chixujohnny/Leetcode
1a420e318005140a2be036ab7c3fcd054b4ae011
3faa41556f13f45a08b49d4dcd371ed590f9cb14
refs/heads/master
2021-06-19T14:44:28.464335
2021-01-11T08:16:26
2021-01-11T08:16:26
155,142,704
1
0
null
null
null
null
UTF-8
Python
false
false
563
py
# coding: utf-8 # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def postorderTraversal(self, root): """ :type root: TreeNode :rtype: List[int] ...
[ "1390463349@qq.com" ]
1390463349@qq.com
fc6df4e04a1928392e332ee17c6b97ae8b2b54f4
a7f46698931a4951ed160909601cd9a5506035de
/todolist_project/settings.py
edb7b77262de1e81bb0be6cd698a7618752de046
[]
no_license
ahsherlock/todolist
b60ca9f5cdf5b0f3bc91fcf8a256ae6ead3b70ee
128cfe56901f5be22de5533185350e14d344a6c2
refs/heads/master
2022-11-06T10:45:03.329388
2020-06-28T03:38:42
2020-06-28T03:38:42
273,394,143
0
0
null
null
null
null
UTF-8
Python
false
false
3,218
py
""" Django settings for todolist_project project. Generated by 'django-admin startproject' using Django 3.0.7. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ imp...
[ "ahsherlock0@gmail.com" ]
ahsherlock0@gmail.com
bc4632fd8d972b9b3f2f1687f5d267bfb1774c23
7bda8b0104016db8f98357301a85b19b1998d470
/Jesus/infoLines/infoLines/middlewares.py
f15ed8f7f85b3046f2a7797e8644e810ad569da9
[]
no_license
AnaFernandezCruz/ObtencionDatos
a733a40dc71b6d7ddc3fbd1411a37a46e4382603
c9f7977e1eddee513204145123106a5182cf3665
refs/heads/master
2020-12-02T04:58:05.741141
2020-01-15T20:57:30
2020-01-15T20:57:30
230,896,102
0
1
null
null
null
null
UTF-8
Python
false
false
3,603
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class InfolinesSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrap...
[ "jesus.gallego.olivas@gmail.com" ]
jesus.gallego.olivas@gmail.com
e63bf6f36802dff4766a8c5ef5a8ee83e795d812
7da3346fa0e6a8627c5c678589129df192b0bfa8
/7/7-2.py
cf899f247073094966e13cf484c9e9dac2e1289e
[]
no_license
gunbux/aoc-2020
2768169bbb1b332231e9be97ab911d090d5f0ff8
756ce22d18316d645c7b6c5df3db3d97eccd9c12
refs/heads/main
2023-02-07T18:04:18.629666
2020-12-22T03:16:40
2020-12-22T03:16:40
318,797,404
0
0
null
null
null
null
UTF-8
Python
false
false
2,535
py
#!python with open('7.txt') as input: hasGold = [] noGold = [] bbl = {} c = {} def containsGold(bag): ##print(f'checking {bag} for gold') if bbl[bag] == None or bag == None: noGold.append(bag) return False else: if bag in hasGold: ...
[ "lamchunyu00@gmail.com" ]
lamchunyu00@gmail.com
7dcbcaa847c475cb4d1f139f4cd8eb41abab09cb
2f989d067213e7a1e19904d482a8f9c15590804c
/lib/python3.4/site-packages/django/contrib/contenttypes/apps.py
e5708adc99840e3b4a4bc3212d26d134a8462203
[ "MIT" ]
permissive
levabd/smart4-portal
beb1cf8847134fdf169ab01c38eed7e874c66473
2c18ba593ce7e9a1e17c3559e6343a14a13ab88c
refs/heads/master
2023-02-18T05:49:40.612697
2022-08-02T09:35:34
2022-08-02T09:35:34
116,001,098
0
1
MIT
2023-02-15T21:34:01
2018-01-02T10:00:07
Roff
UTF-8
Python
false
false
693
py
from django.apps import AppConfig from django.contrib.contenttypes.checks import check_generic_foreign_keys from django.core import checks from django.db.models.signals import post_migrate, pre_migrate from django.utils.translation import ugettext_lazy as _ from .management import ( inject_rename_contenttypes_oper...
[ "levabd@gmail.com" ]
levabd@gmail.com
59e22f98d350ea5b45fcfb9fc47ea110043bdec0
9556f7e1d81a305d71a66b9768eba199e396d733
/Thread/venv/bin/pip
698fcef12df25482e9901a7aecb433703142f6b8
[]
no_license
gitgaoqian/Python
301a2823b50ec754a2c1a3f47c39ae8b0b8e6890
164f5271044b235d256a9bbe0a34caacf1e81fc8
refs/heads/master
2023-01-08T21:23:59.640828
2020-11-01T13:06:21
2020-11-01T13:06:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
394
#!/home/ros/pycharm/MyFiles/thread/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip' __requires__ = 'pip==9.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(...
[ "734756851@qq.com" ]
734756851@qq.com
ec2a4cada39a330c68d47fc77a5d2628793ec118
fee83f11fd343d0443f3316d7a26f68f5129df05
/grouper/fe/handlers/permissions_grant_tag.py
dc10d9a9434fb1284d1c99ebaa0092e3d98c68dd
[ "Apache-2.0" ]
permissive
lfaraone/grouper
c797b7d4e52eef198e895450e3a69f5c34a22251
7df5eda8003a0b4a9ba7f0dcb044ae1e4710b171
refs/heads/master
2021-01-17T01:14:18.469581
2017-04-14T18:57:16
2017-04-14T19:02:30
29,040,748
0
0
NOASSERTION
2018-12-14T00:41:20
2015-01-09T23:52:33
Python
UTF-8
Python
false
false
2,726
py
from grouper.constants import TAG_EDIT from grouper.fe.forms import PermissionGrantTagForm from grouper.fe.util import GrouperHandler from grouper.models.audit_log import AuditLog from grouper.models.permission import Permission from grouper.models.public_key_tag import PublicKeyTag from grouper.permissions import gran...
[ "tyleromeara@dropbox.com" ]
tyleromeara@dropbox.com
513d3e5a271b23319d3bd3cf6215c2b9cfa2b2cd
1fe44c9f227707b6cabac7e63c7bc4fd1d4b543c
/beamdesign/codecheck/codecheck.py
abb846294b324005b538402bc74d9ae59ab8dda5
[]
no_license
skane88/BeamDesign
ff8477c768d2639c9dc81b0c199b92c96989a4f5
23bdc61ead945c763286255175afcfa7c6a30273
refs/heads/master
2021-10-28T18:06:13.965253
2019-04-24T10:40:16
2019-04-24T10:40:16
77,765,089
2
2
null
2019-02-12T22:53:07
2017-01-01T03:54:46
Python
UTF-8
Python
false
false
12,252
py
""" This will contain an Abstract Base Class that all codecheck classes should inherit from. """ from abc import ABC, abstractmethod from typing import List, Union, Tuple import numpy as np from beamdesign.beam import Beam from beamdesign.sections.section import Section from beamdesign.utility.exceptions import Code...
[ "sean.kane@outlook.com.au" ]
sean.kane@outlook.com.au
61d841a540a06f74ec8d73ed015cc090e6283cd5
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Apps/Riddle Game App/temp.py
f841eb3bfa477531b1280da74ffd298624106bfc
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
127
py
version https://git-lfs.github.com/spec/v1 oid sha256:dfddd312c5f04ffd65ec672ab6d6d80e68a8e6e69b98e472123679a87dc1e254 size 52
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
0ca61efac890a3e5b9ec88603400a76a2101c4fa
ee9ee98e1320e2836651896ac9e2fb87deaa15f4
/GameOfPython/GameOfPython/GameOfPython.py
ca709f26763ccc771e64986c54638a2aad2bd633
[]
no_license
GusatfGL/titration-computational
7b42d740917af2ea97cdc898a18da2e430c2411b
6cb49dbc15e8c6cd46257a553e24b2b678214d83
refs/heads/master
2023-03-25T21:11:44.480359
2021-03-12T13:55:25
2021-03-12T13:55:25
346,800,580
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
#Variables needed width = 10 height = 10 data = [[int for i in range(width)] for j in range(10)] # Functions needed def PrintBoard(): for y in range(height): for x in range(width): if data[x][y] ==1: print("1", end='') if data[x][y] == 0: print("0...
[ "gustaf.linder@hotmail.com" ]
gustaf.linder@hotmail.com
6219761f970e8e5092dc5685a25e4b03b1003c2c
65cd7291b8a16ebbfb38c507cf9d420487a85907
/3.py
ecbab9ec428592b8cb2f30091ee9c02e2c831aaa
[]
no_license
darthkenobi5319/Python-Lab-5
d9050797e702ca0fd5a955c4098285b02c71c5e4
03d7ac51e7ca0b5df13c7ee50c1eda9f1bb36308
refs/heads/master
2020-03-28T12:26:53.059303
2018-09-11T10:17:08
2018-09-11T10:17:08
148,299,237
0
1
null
null
null
null
UTF-8
Python
false
false
516
py
# -*- coding: utf-8 -*- """ Created on Tue Sep 19 10:41:31 2017 @author: ZHENGHAN ZHANG """ #define the list and numerators x = [[1, 2], [3], [4, 5, 6, 7], [8, 9]] m=0 n=0 #Count the number of even values in the list for i in range(len(x)): for j in range(len(x[i])): m+=int(x[i][j]%2==0) print(m) #Count ...
[ "43033983+darthkenobi5319@users.noreply.github.com" ]
43033983+darthkenobi5319@users.noreply.github.com
cb753f23834a547fa79fbba2497dd33fcae8b5ef
4d6c7854661a73e1a0225bfb15bcfd4361dc7bd8
/momlink/demography.py
4f5588827b3a1e2482a7a9fc60153b0eb091b24f
[]
no_license
cspencer3/two_locus_selection_moments
22eaac16427e40773a0ff842291cfb63633d2439
f90ef651628be8c14665660af3e71b3823b0ccb6
refs/heads/main
2023-03-24T06:29:01.392104
2021-03-24T19:42:14
2021-03-24T19:42:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,526
py
import numpy as np import csv class Demography(object): def __init__(self, fn=None, popsize=None): if fn is None and popsize is None: raise InvalidDemography('Please specify demography file or fixed population size.') elif popsize is not None and fn is not None: raise Invali...
[ "EricF2218@gmail.com" ]
EricF2218@gmail.com
4423ec6bb8916668ed1224532d6f59eb0264210b
65625235b667159ee0c8664e1a3e202ed271ea99
/python/MyScripts/tk_message.py
12019f3f079e6387c04529afba73b6af19673fb6
[]
no_license
mustafashakeel/learning
76c210d523568ffe88943d1268eedbdc91edcc4a
6c9df524cdc43cc5e3228bff7186145007827ae7
refs/heads/master
2020-09-21T23:16:02.911191
2018-07-02T05:45:22
2018-07-02T05:45:22
67,166,087
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
from tkinter import * import tkinter.messagebox as box window = Tk() window.title( 'Message Box Example' ) def dialog() : var = box.askyesno( 'Message Box' , 'Proceed?' ) if var == 1 : box.showinfo( 'Yes Box', 'Proceeding...' ) else : box.showwarning( 'No Box', 'Cancelling...' ) btn = Button( window , text...
[ "mustafa queshi" ]
mustafa queshi
01b2be76c7a39b05d6db36b19dba8018456848d3
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_125/ch22_2020_03_02_20_28_19_768242.py
6c3da9295a0c587ec5b4d1b65f83ce4882ba77e4
[]
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
dias = int(input('quantos cigarros voce fuma por dia ? ')) anos = int(input('há quantos anos voce fuma?' )) print ((anos*365*24*60)*dias*144)
[ "you@example.com" ]
you@example.com
eb68245bf2ea825502d241e93d47540d2b749b3f
0160f6cdfc7fcbf4da893d44f256bac59fdcbe35
/src/FullyConnectedModel.py
004f9376b4571ec8f9757d67c318c4770d07c4b4
[]
no_license
ruinanwang/cub-classification
0bcfe6cf7775975cf02aac1d057c0e8266549aaa
f43ed2af45499ab23da64070955dcf4b4977b57a
refs/heads/master
2023-06-02T03:51:15.656157
2021-06-25T21:43:45
2021-06-25T21:43:45
365,622,882
0
0
null
null
null
null
UTF-8
Python
false
false
1,000
py
import torch import torch.nn as nn class FullyConnectedModel(nn.Module): def __init__(self, input_size, hidden_size, num_classes, num_layers=2): super(FullyConnectedModel, self).__init__() if num_layers == 1: self.model = nn.Linear(input_size, num_classes) elif num_laye...
[ "nancywng@sina.com" ]
nancywng@sina.com
dba2f8e1a2489ee8595497efbce2fbe54822fbb2
c8a04384030c3af88a8e16de4cedc4ef8aebfae5
/stubs/pandas/tests/indexes/test_setops.pyi
3493fb22582660788efeadee60d6a7bc60cb4307
[ "MIT" ]
permissive
Accern/accern-xyme
f61fce4b426262b4f67c722e563bb4297cfc4235
6ed6c52671d02745efabe7e6b8bdf0ad21f8762c
refs/heads/master
2023-08-17T04:29:00.904122
2023-05-23T09:18:09
2023-05-23T09:18:09
226,960,272
3
2
MIT
2023-07-19T02:13:18
2019-12-09T20:21:59
Python
UTF-8
Python
false
false
660
pyi
# Stubs for pandas.tests.indexes.test_setops (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen. # pylint: disable=unused-argument,redefined-outer-name,no-self-use,invalid-name # pylint: disable=relative-beyond-top-level from typing import Any COMPATIBLE_INCONSISTENT_PAIRS: Any ...
[ "josua.krause@gmail.com" ]
josua.krause@gmail.com
2a6d9451bfd61d97820d126c06640ac4cec21490
ddbba4be8dc2ac8875becbbd951e8a2d2cf8a6e4
/InceptionV4.py
50105438dbc092065290559f87c4da376a037094
[ "MIT" ]
permissive
YKSIAT/InceptionV4
4bcef13953175cff8a3e1289f0b937e0e9e59822
95559af854c63b673e8fc21b679eae9765b33411
refs/heads/master
2020-04-05T20:34:19.385722
2018-11-12T09:44:30
2018-11-12T09:44:30
157,186,481
4
0
null
null
null
null
UTF-8
Python
false
false
17,208
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ "noreply@github.com" ]
YKSIAT.noreply@github.com
b33e87bfce2e4f32599652342ed6bd5e1b196570
6b3830e43ddd95ca0e946a0f4c459a57b87d144e
/tests/app/main/test_asset_fingerprinter.py
c2cbc5df707394fa429d4ca5eb2e31487d90d70f
[ "MIT" ]
permissive
pyexcel/notifications-admin
043a2157fb77a9adb57b569a1aa68a54f0fcbd50
886fb2bb3cfc598ac45b2528228afb298e0e715a
refs/heads/master
2023-06-12T00:07:40.887509
2017-08-17T22:52:34
2017-08-17T22:52:34
100,309,827
0
0
null
2017-08-14T21:10:43
2017-08-14T21:10:43
null
UTF-8
Python
false
false
3,582
py
# coding=utf-8 import os from unittest import mock from app.asset_fingerprinter import AssetFingerprinter class TestAssetFingerprint(object): def test_url_format(self, mocker): get_file_content_mock = mocker.patch.object(AssetFingerprinter, 'get_asset_file_contents') get_file_content_mock.return...
[ "me@quis.cc" ]
me@quis.cc
a6e6adc0bdda7113806c00b2529a06b8744a1706
9b130727b93d1ef7247ff378ef4af4c324a13f10
/pw-python-03/exercicio_2/main.py
f85ea7c400eddc744ccb4de30b3ef9d959fda814
[]
no_license
Joao-21903149/pw-python-ex
a05eab583155c09c70c626fb05e0217da0086689
b72509b29b2a0a18d1adcf62b0f24d469aa9c523
refs/heads/main
2023-04-26T08:45:43.156523
2021-05-21T21:19:53
2021-05-21T21:19:53
365,194,663
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
import analise_pasta as al def main(): foldername = al.pede_pasta() informacao = al.faz_calculos(foldername) print(informacao) al.guarda_resultados(foldername) al.faz_grafico_queijos("Queijo", foldername) al.faz_grafico_barras("Barra", foldername) if __name__ == "__main__": ...
[ "noreply@github.com" ]
Joao-21903149.noreply@github.com
5724b790dcd125fd9a138ef2f96230faa1dabcb5
6c31c2b4e5508ff72ef380ffb1ee6f568b8c197a
/sporco/linalg.py
3e92cd9ce7b975bccdc4216b7ebde46d8712e0e8
[ "BSD-3-Clause" ]
permissive
runngezhang/sporco
a5c07c6bf58e8b6d236460fc4b419d5b1bb55a84
60fed3558ea6ad503f4c7b4cd19094cd50c44ab9
refs/heads/master
2021-01-11T12:20:17.885451
2016-11-28T02:18:29
2016-11-28T02:18:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
32,565
py
#-*- coding: utf-8 -*- # Copyright (C) 2015-2016 by Brendt Wohlberg <brendt@ieee.org> # All rights reserved. BSD 3-clause License. # This file is part of the SPORCO package. Details of the copyright # and user license can be found in the 'LICENSE.txt' file distributed # with the package. """Linear algebra functions"""...
[ "brendt.wohlberg@gmail.com" ]
brendt.wohlberg@gmail.com
fbb307fb4bf6fec98b548793718ceabbf19429a6
320475ba2ca520f982cf776705b73c00a9c35ca9
/include/subdags/training_subdag.py
ca8f5a73978afb89fac2fdcaf512bc48baace6a8
[]
no_license
spudnik99/airflow_cicd
eae7f7b765e7b4821b8c1dc4d9cdf9f53588f267
b17fef576a2c7664e6f72dd91c45710e9a7b9820
refs/heads/master
2023-03-11T05:24:17.014175
2021-03-01T16:27:28
2021-03-01T16:27:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,117
py
from airflow import DAG from airflow.providers.papermill.operators.papermill import PapermillOperator def subdag_factory(parent_dag_id, child_dag_id, default_args): with DAG(dag_id=f"{parent_dag_id}.{child_dag_id}", default_args=default_args) as dag: n_estimators = [100, 150] max_features = ['auto...
[ "marclamberti@Marcs-MacBook-Pro.local" ]
marclamberti@Marcs-MacBook-Pro.local
08433cd3b827cf6eb7b778bdd0d1964b74989bac
41c2d7ddc60d60ccbf08b317bf886e04c2dd6392
/extract_binary.py
1b72ab5a88bf4498dc4f4c8c035da236990d3262
[]
no_license
joshwatson/microcorruption
c137402d0f46f5cbf2e437bd559d90a34f16dd19
554d8e76453d371975115d7ac3f70d807bc548db
refs/heads/master
2020-05-20T12:34:43.573877
2014-01-18T22:25:35
2014-01-18T22:25:35
16,034,865
1
0
null
null
null
null
UTF-8
Python
false
false
249
py
import sys def main(): input_file = sys.argv[1] output_file = sys.argv[2] with open(output_file, 'wb') as outF: with open(input_file, 'r') as inF: for line in inF: outF.write(line[11:31]) if __name__ == "__main__": main()
[ "josh@joshwatson.com" ]
josh@joshwatson.com
1dea180a74d2d0bf7d2e180071b9519d5bff6151
fc8f3638a1e9e80b386a14aa211d0ac55cb75215
/python/examples/5_Wavedash/agent.py
cd1240b1ae43bf7035d2ff06b2d1f3ae8127703f
[ "MIT" ]
permissive
azeemba/RLUtilities
750c88785e0ba8f7a3fa900b56f0bada7f35475b
eb887b312e33136b27a64516179ea812c366c2fa
refs/heads/master
2023-02-21T16:45:55.240270
2020-02-23T18:50:35
2020-02-23T18:50:35
279,155,362
0
0
null
2020-07-12T22:02:12
2020-07-12T22:02:12
null
UTF-8
Python
false
false
2,824
py
from math import sin, cos import random from rlbot.agents.base_agent import BaseAgent, SimpleControllerState from rlbot.utils.structures.game_data_struct import GameTickPacket from rlbot.utils.game_state_util import GameState, BallState, CarState, Physics, Vector3, Rotator from rlutilities.linear_algebra impor...
[ "samuelpmish@users.noreply.github.com" ]
samuelpmish@users.noreply.github.com
f5f1da26faa4e650ada80ce5c30d5f930a184396
0631e8234c7abeaa2e613107d2719e8254ccae43
/djclass/products/migrations/0002_product_featured.py
296ff441bb06be61645f2fa1630edb21cd540ffc
[]
no_license
raj356/django_files
5e8d348c68c387e26ca8a3e99c8b66d46aa8a975
5767b59b2f3b703c41c1096e38601dc462bf0755
refs/heads/master
2023-02-03T22:14:01.225837
2020-12-20T15:19:12
2020-12-20T15:19:12
323,099,333
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
# Generated by Django 3.1.4 on 2020-12-15 15:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.AddField( model_name='product', name='featured', ...
[ "rajarshi356@gmail.com" ]
rajarshi356@gmail.com
cc6016e65e7b3e125b87d996e95b98ff5f2a1e52
c17ca7a7824056f7ad58d0f71abc25670b20c1fc
/spirit/urls/admin/__init__.py
1bc65e9f0daf9e9e944ad49a9811b0f1d6942c43
[ "Apache-2.0" ]
permissive
Si-elegans/Web-based_GUI_Tools
cd35b72e80aa400105593c5c819355437e204a81
58a9b7a76bc46467554192a38ff5329a94e2b627
refs/heads/master
2023-01-11T09:11:21.896172
2017-07-18T11:10:31
2017-07-18T11:10:31
97,445,306
3
1
Apache-2.0
2022-12-26T20:14:59
2017-07-17T07:03:13
JavaScript
UTF-8
Python
false
false
536
py
#-*- coding: utf-8 -*- from django.conf.urls import patterns, include, url urlpatterns = patterns('', url(r'^$', 'spirit.views.admin.index.dashboard', name='admin'), url(r'^index/', include('spirit.urls.admin.index')), url(r'^category/', include('spirit.urls.admin.category')), url(r'^comment/flag/', ...
[ "gepelde@vicomtech.org" ]
gepelde@vicomtech.org
cdb24bf3e5c486628f5ca536771e2238b5d47169
5c8b736497fda2ca0d476e298ea3b1adeb079712
/venv/Scripts/pip3-script.py
3702aebd4d3ad0afa26d86768f92ca15ed7f7c7e
[]
no_license
PrinceSnow/Comment-analysis
7ba59193bfe94e49a9bbf55e36c6e20f2865a341
099536ff84c30a29c290aeb44409397f360ee40a
refs/heads/master
2022-11-22T20:55:39.712265
2020-07-16T06:05:52
2020-07-16T06:05:52
279,182,674
0
0
null
2020-07-16T06:05:54
2020-07-13T01:46:00
null
UTF-8
Python
false
false
405
py
#!D:\PythonProj\Comment_analysis\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) ...
[ "50870271+EvanHung0957@users.noreply.github.com" ]
50870271+EvanHung0957@users.noreply.github.com
ce83f6f21d196ee7f74d5c34853bb6f269f035e1
11fa5d961dde172a402078cfdf7c2955baa4d818
/app/resolvers/SpecialShiftResolver.py
bae1e0875046218b5d1448f30ae7e4a8e235ba48
[]
no_license
Perciva/AM-BackEnd
3763c062fa536d06d3b6700837301797f22bab68
a3f7df98627ba5883a59fe94ca2e40765c38516f
refs/heads/master
2023-05-10T21:26:56.883631
2021-01-22T09:56:34
2021-01-22T09:56:34
296,833,937
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
from flask_jwt_extended import jwt_required from app.model import special_shift from app.database import query, mutation @mutation.field("InsertSpecialShift") @jwt_required def insertSpecialShift(_, info, period_id, description, assistant_ids, date, _in, _out): res = special_shift.insert(period_id, description, ...
[ "stromchild@gmail.com" ]
stromchild@gmail.com
1d8542da9fe05431ce0785b0c97e19b60e7aec39
e15ec378360536d5215bf0f0a8fa9ab8a41ff6cc
/ch06/p6-3-1.py
344f657d4d90d4170ca1d407f4091c37e6166324
[]
no_license
michlin0825/book-mP21926
2ece5685ded2c913f51c830fd6f3280b8394646f
5c4ebd828e593efd5fc7ba40bbcf606babd52640
refs/heads/main
2023-01-02T05:48:49.832014
2020-10-12T02:22:21
2020-10-12T02:22:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
from selenium import webdriver from bs4 import BeautifulSoup import time url = 'https://www.cwb.gov.tw/V8/C/W/OBS_County.html?ID=menu' web = webdriver.Chrome('chromedriver.exe') web.implicitly_wait(60) web.get(url) html = web.page_source web.quit() soup = BeautifulSoup(html, 'html.parser') target = soup.select('#Count...
[ "skynet.tw@gmail.com" ]
skynet.tw@gmail.com
a034cf0fc8738440a76859b08612f7ffa557a93f
8a3970cec4bb399d7d0e152ac231b2e96d92b3c8
/gustavo_saibro_fullstack/gustavo_saibro_fullstack/wsgi.py
6dd29b9ea6b88f4bf2645eb787ef50b25746cd02
[]
no_license
GustavoSaibro/gustavo_saibro_fullstack
3b4ddef0945321c60ffb9270a03994b6623a96f0
65303619a8a63b2e5b6dd9091f9e3c5ef632dd96
refs/heads/master
2023-03-15T19:00:57.685874
2022-05-28T21:42:12
2022-05-28T21:42:12
248,352,323
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
""" WSGI config for gustavo_saibro_fullstack 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.setdefa...
[ "gustavosaibro@gmail.com" ]
gustavosaibro@gmail.com
fccbacc18d223c61e0780580353eff33ebd3f0ba
e34c465d880cd034084f4fa0eab0f0e3f387f181
/blockcerts/issuer/tests/test_no_fs.py
8d06e1204975c60c0a0ff84871c77a6ae0a80b1e
[ "MIT" ]
permissive
docknetwork/verifiable-claims-engine
f70ad3f45642b881b8e71dc09f1ca2cbd91c2759
1aab94510f421ce131642b64aefcd9a21c888f23
refs/heads/master
2023-05-14T13:48:01.713818
2020-04-30T17:01:55
2020-04-30T17:01:55
212,443,879
6
2
MIT
2023-05-01T20:18:59
2019-10-02T21:22:41
Python
UTF-8
Python
false
false
1,487
py
from cert_issuer.simple import SimplifiedCertificateBatchIssuer def test_simplfied_issuing_process(config, unsigned_certs, write_private_key_file): """Please note this test actually anchors to Ropsten so you need internet access and funds in the given account.""" simple_certificate_batch_issuer = SimplifiedCe...
[ "faustow@gmail.com" ]
faustow@gmail.com
f4c696c10ebd246b29c37bd67aaea8363dd48954
8da0e308d81aac676a81135c689f0236f0272b03
/product/migrations/0015_auto_20190819_1900.py
230ea454881aa1cbb9ac747ed211a47345f96a29
[]
no_license
antodasns/Billingsoftware
7b7b3e20ce0e1aabf3e7ff403200621dc764fe51
0c3679dd04995a40cc69c7d1ce9dd0211af72bf1
refs/heads/master
2023-06-26T21:07:19.043851
2021-07-24T08:54:39
2021-07-24T08:54:39
275,405,911
3
2
null
null
null
null
UTF-8
Python
false
false
671
py
# Generated by Django 2.2.3 on 2019-08-19 13:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0014_auto_20190817_1803'), ] operations = [ migrations.AddField( model_name='products', name='wholesale_t...
[ "antodasanto@gmail.com" ]
antodasanto@gmail.com
bdee7a9b276dbab681b2b2f56a3625e1ec9ed2e6
97a6e0f135a664bb5b346d15aa1be4ca67427c28
/conftest.py
833acc6fd43dd04ac4142a2ffabc07630cc928d1
[]
no_license
TerekhovaIS/-FinalProject
f0fbe46acbe1999ff41fdb1f7554dc192a504b86
424e116086a4eb1b877b4eb7ac1b3c5d8d557ee5
refs/heads/main
2023-02-03T05:09:44.831436
2020-12-11T07:37:54
2020-12-11T07:37:54
319,936,770
0
0
null
null
null
null
UTF-8
Python
false
false
1,239
py
import pytest from selenium import webdriver from selenium.webdriver.chrome.options import Options def pytest_addoption(parser): parser.addoption('--browser_name', action='store', default="chrome", \ help="Choose browser: chrome or firefox") parser.addoption('--language', action='store', ...
[ "noreply@github.com" ]
TerekhovaIS.noreply@github.com
723292723f887ac195ee2242bc1ad6e79d39864f
22eb1412d09e5f042d854db0ef40c643fad114f1
/module_1/1_6_3.py
a6d3b7f1bc024a08f4463cf568654e5437f46516
[]
no_license
semennikova09/Stepik_Autotest
4038799aec3e9a1508999c04692cfe163487ce18
ffbbbd29260a29fb654c9206161ae0635ab80b0d
refs/heads/master
2022-12-20T23:15:08.654810
2020-10-01T08:32:29
2020-10-01T08:32:29
297,413,360
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
from selenium import webdriver import time try: browser = webdriver.Chrome() browser.get("http://suninjuly.github.io/huge_form.html") elements = browser.find_elements_by_css_selector("input") for element in elements: element.send_keys("Мой ответ") button = browser.find_element_by_css_select...
[ "semennikova09@gmail.com" ]
semennikova09@gmail.com
2641b7996ae263eba11eb3e44f40fb1baa200106
e72014a1dc8efc6d63c97480eee82e5cbd083c05
/maps/samples/soundsamples.py
c8c6def48c5b03e58b554e1bcc5ea3e1fa14c29d
[]
no_license
bastibe/Dissertation-Website
0cc1cc3dfed61d7681ad928d841c04e10432d2f8
f415735005d8f079b06d461d5f32904f600613f1
refs/heads/master
2023-07-09T20:54:27.922234
2021-02-14T09:19:20
2021-02-14T09:23:29
274,396,364
4
0
null
null
null
null
UTF-8
Python
false
false
1,428
py
import json import numpy import soundfile from tqdm import tqdm from evaluation import db, create_test_signal, get_true_base_frequency, pesto_experiment samplerate = 48000 noise = {'cafeteria': 'CAFE-CAFE-1.au', 'traffic': 'STREET-CITY-1.au', 'car': 'CAR-WINDOWNB-1.au'} speech = {'male1': 'mic_M01_s...
[ "basti@bastibe.de" ]
basti@bastibe.de
8892c52bc5ad86a71bf3b85f12c69434c17512b6
2aa4c5fc960c5c05b6ef9891fd7ae85e5e38ac57
/municipal_finance/models/municipal_staff_contacts.py
9ffc675ea0fca3dd670d33414ba09cbbb1793568
[ "MIT" ]
permissive
OpenUpSA/municipal-data
4a4e8239f41bc179705f8858c82f15246160ba90
21ee3a4cf3614ac1fe32ff730843a238f39e1f40
refs/heads/master
2023-08-30T23:52:45.924118
2023-08-23T13:33:55
2023-08-23T13:33:55
55,236,579
24
15
MIT
2023-09-14T14:12:18
2016-04-01T14:01:37
JavaScript
UTF-8
Python
false
false
533
py
from django.db import models class MunicipalStaffContacts(models.Model): id = models.AutoField(primary_key=True) demarcation_code = models.TextField() role = models.TextField() title = models.TextField(null=True) name = models.TextField(null=True) office_number = models.TextField(null=True) ...
[ "juriejanbotha@gmail.com" ]
juriejanbotha@gmail.com
d0ce9c03d795884a1f9214122612ef6f4cfeb11f
127c47e0b57a9a56adf666b8c8578110292f608a
/pyvista/core/pyvista_ndarray.py
22613d469deabd87a889028062d9ef0583e9f267
[ "MIT" ]
permissive
condoratberlin/pyvista
b6a1358971ff39b42e5bae40e02d54f2b4e7ee5c
c102f1a0f1e3aa9177b100659c41e48efff03a02
refs/heads/main
2023-08-22T12:19:46.436003
2021-10-26T12:53:01
2021-10-26T12:53:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,739
py
"""Contains pyvista_ndarray a numpy ndarray type used in pyvista.""" from collections.abc import Iterable from typing import Union import numpy as np from pyvista import _vtk from pyvista.utilities.helpers import FieldAssociation, convert_array class pyvista_ndarray(np.ndarray): """An ndarray which references t...
[ "noreply@github.com" ]
condoratberlin.noreply@github.com
f6178d7d92c115ee3e13dce1dde047e198787a78
adc733a6f58bdea5c891653c154231d587c81a18
/test_cifar10.py
643c8099447d25d4be59e5fc208e9bbc7869ad6c
[]
no_license
hj-hejie/hj-speech-commands
a586a91ad091bbe339a41979e76027b30228de28
96b5be0dabdc974f8233cbed2c8e955a48bf2a10
refs/heads/master
2020-03-24T20:42:29.949370
2019-06-24T02:16:06
2019-06-24T02:16:06
142,992,821
1
0
null
null
null
null
UTF-8
Python
false
false
2,880
py
#!/usr/bin/env python """Test a pretrained CNN for CIFAR10.""" __author__ = 'Yuan Xu, Erdene-Ochir Tuguldur' import argparse import time from tqdm import * import torch from torch.autograd import Variable from torch.utils.data import DataLoader import torchvision from torchvision.transforms import * import torchne...
[ "tugstugi@gmail.com" ]
tugstugi@gmail.com
0c826b71c27b17e526b9807cbca19ce674539404
b57d337ddbe946c113b2228a0c167db787fd69a1
/scr/py00468notices.py
c8f23c8ddfd5182e7ed018cb580fa0c212a0c0c1
[]
no_license
aademchenko/ToEE
ebf6432a75538ae95803b61c6624e65b5cdc53a1
dcfd5d2de48b9d9031021d9e04819b309d71c59e
refs/heads/master
2020-04-06T13:56:27.443772
2018-11-14T09:35:57
2018-11-14T09:35:57
157,520,715
0
0
null
null
null
null
UTF-8
Python
false
false
1,612
py
from toee import * from utilities import * import _include from co8Util.TimedEvent import * from combat_standard_routines import * from py00439script_daemon import get_f, set_f, get_v, set_v, tpsts, record_time_stamp def san_use( attachee, triggerer ): if (attachee.name == 11063): game.quests[110].state = qs_menti...
[ "demchenko.recruitment@gmail.com" ]
demchenko.recruitment@gmail.com
4981a7e806be3173914d83131e900e93b70cefac
c89f5856fe74cff49a9d96dde9ed0117109e3845
/A-bit-of-py/exceptions_raise.py
18c685701366068a4acd2f51c1194d541cbb8930
[]
no_license
sinoclover/python
b2b3f435d15840ec16a34c62d50308bdfb9d6c3e
02f5347bc8219f1df52486077adf0017fe6d5211
refs/heads/master
2020-08-27T22:14:20.672846
2019-12-01T13:27:42
2019-12-01T13:27:42
158,791,898
0
0
null
null
null
null
UTF-8
Python
false
false
647
py
# encoding=UTF-8 class ShortInputException(Exception): '''一个由用户定义的异常类''' def __init__(self, length, atleast): Exception.__init__(self) self.length = length self.atleast = atleast try: text = input('Enter something --> ') if len(text) < 3: raise ShortInputException(len(t...
[ "zzxy123007@163.com" ]
zzxy123007@163.com
4fc31a6ff5a7263512d12b5b20ad20f35c45dff3
2c510687bdc03fbb8383130e68cc796bfef1088c
/3_basic_ds/exercises.py
328dff7335a429dab792cb7b5a6f8adc62aeda37
[]
no_license
jimjshields/pswads
59758a0972fe71ca6f77305ff8ab86673d9b5d46
9568622805e24416f4a227cbecc1ef4927fa7ba3
refs/heads/master
2016-09-06T12:37:53.254464
2015-02-17T02:13:00
2015-02-17T02:13:00
30,149,564
0
0
null
null
null
null
UTF-8
Python
false
false
1,772
py
# Chapter 3 Programming Exercises # Skip all pre-/post-/infix questions; not worth the time. # Also skip any 'experiment' questions. Maybe come back to them. # 5. Implement the Queue ADT, using a list such that the rear of the queue is at the end of the list. class Queue(object): """Represents a queue ADT. The rear ...
[ "jim.j.shields@gmail.com" ]
jim.j.shields@gmail.com
e103e52c8d1db2ceda089eb62bb3d134391fee80
102a33464fd3a16ceedd134e9c64fea554ca5273
/apps/config/models.py
39260020ed66b83fc8e77d4bf08ecae9ee053a6b
[]
no_license
pythonguru101/django-ecommerce
b688bbe2b1a53c906aa80f86f764cf9787e6c2fe
f94de9c21223716db5ffcb86ba87219da88d2ff4
refs/heads/master
2020-07-24T14:57:02.047702
2020-06-10T06:06:23
2020-06-10T06:06:23
207,961,132
1
0
null
null
null
null
UTF-8
Python
false
false
2,658
py
# encoding: utf-8 from django.db import models from django.utils.translation import ugettext as _ class ConfigAbstractManager(models.Manager): def get_config(self): try: return self.get(pk=1) except self.model.DoesNotExist: return {} class ConfigAbstract(models.Model): ...
[ "pythonguru101@gmail.com" ]
pythonguru101@gmail.com