blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
b38e4b96c3505ce193cc445ef6086854a5aebbfa
3d8a493b4a3cd2ee1ebab89bc98808b269af0c5f
/quiz.py
aa7be59a6a61e731337838b3e0ba371332a1a065
[]
no_license
ashdrex/ttboston
fb6326adf65f7d83955ef40d0ecb9ddb035e7786
4eba044bdfa98fced7915518c47f4e07cbcff209
refs/heads/master
2023-01-13T17:23:26.702134
2020-11-08T03:41:20
2020-11-08T03:41:20
310,905,907
0
0
null
2020-11-08T03:41:21
2020-11-07T18:20:02
HTML
UTF-8
Python
false
false
4,065
py
quiz.py
questions = { "1. How often do you eat beef?":['a. Never', 'b. 1-2 times a week', 'c. 3-5 times a week', 'd. Once a day', 'e.'], "2. How often do you eat chicken?":['a. Never', 'b. 1-2 times a week', 'c. 3-5 times a week', 'd. Once a day', 'e.'], "3. How often do you eat pork?":['a. Never', 'b. 1-2 times a ...
aa92527da63154b5b52241a1237949b4afb2d71f
1a758ef862f733d98ddd8ebc8ade5cefd95c24f2
/manager/pdf/addressgenerator.py
f1d384d19cfeae9e77fc0b555d4f10561fa418da
[]
no_license
ajajul/ReactJS_Python
f116b35394666c5b3f2419eb5d8d7aeb077d4a24
08310d56fa88f326ddbfdd4b189f2a3a71f76d99
refs/heads/master
2020-03-19T03:16:57.510672
2018-06-01T10:36:36
2018-06-01T10:36:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,554
py
addressgenerator.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import hashlib import os import tempfile import base64 from StringIO import StringIO from wsgiref.util import FileWrapper from PyPDF2 import PdfFileReader, PdfFileWriter from reportlab.pdfbase import pdfmetrics from reportlab.pdfbase.ttfonts import TTF...
b51e5b3f02be1871d259dec2d9aa187b7e259b0f
3c99d9f1bf1519be67dc0fc95b0d9156ce0c756f
/cftv/migrations/0007_auto_20200729_2240.py
df10dc55d4bcf126d18fc6251f743d0fc566f2ee
[]
no_license
darricson/SisoSeg
b4f29523eab538aadadf60160e0aa5756d9eb611
d95be0489c864db0ed3fb77f9da9aa20cc124783
refs/heads/master
2022-12-06T18:17:19.516481
2020-08-04T02:39:59
2020-08-04T02:39:59
284,857,760
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
0007_auto_20200729_2240.py
# Generated by Django 3.0.7 on 2020-07-30 01:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cftv', '0006_auto_20200729_2238'), ] operations = [ migrations.AlterField( model_name='cftvorcamento', name='imagem'...
d8296f247973524e4b86ad9983bd92a22582bdfa
751b094918ae9200afe7824d58804549082caa95
/src/python/WMComponent/DBSUpload/Database/MySQL/LoadBlocksByDAS.py
c5b6ff0b70ffa117eaa1f125ef269ff160a12dcc
[]
no_license
cinquo/WMCore
7ebd13269f42eb97f416f8f2bdaca05fa93c6afc
122f9332f2e944154dd0df68b6b3f2875427b032
refs/heads/master
2021-01-09T06:28:58.947626
2013-06-05T08:31:53
2013-06-05T08:31:53
2,965,330
1
0
null
null
null
null
UTF-8
Python
false
false
2,529
py
LoadBlocksByDAS.py
#!/usr/bin/env python """ _LoadBlocksByDAS_ MySQL implementation of LoadBlocksByDAS """ from WMCore.Database.DBFormatter import DBFormatter class LoadBlocksByDAS(DBFormatter): sql = """SELECT dbb.blockname as blockname, dbb.create_time as create_time, (SELECT COUNT(*) FROM dbsbuffer_file dbf W...
bfe8a3b3140d6fef8de0f4bf49d6ca108c06b00c
629a7acf0a16a1a939e59bcf1128340fb724eac0
/madeUpTracking/myHelpers/immHelper.py
4f284f2423c8d40c64b218abcf02792a39482d1e
[]
no_license
qingswu/2020_staj
c1f66b26c8c6d71bb167988392b8e5f346c5b64e
93365eb461ed8a0897267c71d6935279824b391f
refs/heads/master
2022-12-16T08:49:35.815702
2020-09-09T23:53:54
2020-09-09T23:53:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,957
py
immHelper.py
import numpy as np import myHelpers.common as common from scipy.stats import norm, multivariate_normal """ References : "DIMM : Derivation of the IMM filter" inside related papers folder """ ############################################################################## #Common #########################...
da8347870d63314d42ecf2a3e048917348263322
a2f7b14dff804c6d9564c4edc4bca38697373aea
/src/api/urls.py
8ff75fea9d7cb4f1a254e124ac522ed4680c8e9b
[]
no_license
OdearOgy/cheesy_pizza_backend
78f2c12ec0994252ed2cb821fb1f6ab16d41d665
aedca34f267fbde0717a049b86a453c4d6de57b7
refs/heads/master
2022-09-30T07:21:21.135130
2020-05-29T14:30:42
2020-05-29T14:30:42
264,489,113
1
0
null
null
null
null
UTF-8
Python
false
false
418
py
urls.py
from rest_framework.routers import DefaultRouter from django.urls import path from .views import * router = DefaultRouter() router.register(r'items', ItemViewSet, basename='item') router.register(r'orders', OrderViewSet, basename='order') router.register(r'order-items', OrderItemViewSet, basename='order-item') urlp...
8d0ebd6779aa4fb8ea093795512d85e9a674a48a
35c60260cafc1f3e0f3de65a9e4ab5e848b5fb87
/src/page/business_page/h5_page.py
b8631b3471c74e9c23572e2d44e6b9b893f14133
[]
no_license
liouqiande/appiumTest
5028fcfde9134220eb6fb1d052392440c1392bc8
152778f0324efb69550ecc221b403b2b5c0c3742
refs/heads/master
2020-05-09T20:19:27.743285
2019-04-19T09:51:46
2019-04-19T09:51:46
181,403,143
1
0
null
null
null
null
UTF-8
Python
false
false
949
py
h5_page.py
# -*- coding: utf-8 -*- from page.base_page import BasePage import logging class H5Page(BasePage): def __init__(self, driver): super().__init__(driver) self.file_path = "D:/pyproject/DidiDriverTestProject/config/h5_page_element.yaml" # 定位h5页面返回按钮 def get_h5_back_btn(self): logging...
a72a8f52ed4e53275358f8d9736f017b8973c225
f979ae41bac3b70f9f5e787a43ecf01425938542
/app/gjmr_line_segment_detector/__init__.py
23b0800e0eda9a76e5c0f3bdbba477b78860d8b9
[]
no_license
nilx/ipol_demo
72d9a8c5d8f92eba51376a1ae65d947e3e5b8576
1ee176ad8578be2f0d48d2ffcacf7a0073e1b630
refs/heads/master
2020-03-29T12:58:11.810190
2014-09-16T13:14:33
2014-09-16T13:14:33
1,604,024
1
1
null
2014-03-21T11:39:54
2011-04-12T13:03:02
Python
UTF-8
Python
false
false
176
py
__init__.py
""" LSD IPOL demo app Line Segment Detector by Rafael Grompone von Gioi, Jeremie Jakubowicz, Jean-Michel Morel and Gregory Randall. March 22, 2012 """ from .app import app
0512c7625de8b26c6e458dfb5e2a18fdb2e985f2
c92f2aa7505c1ddf1f5176ed66fa0f7a42a79bba
/BasicModule.py
abd03552505696d7923b87e560a608a1b7dc8da6
[ "Apache-2.0" ]
permissive
lmee/exercise1
3470696d7f81d49f03e40ec32c0eca5c1aee2a47
ca6c0c7a0422b2aa38158faa8b6e0e2ce47960a7
refs/heads/master
2021-01-21T13:48:18.238087
2016-05-19T14:55:44
2016-05-19T14:55:44
55,142,441
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
BasicModule.py
# /usr/bin/python3 print("This is a script file,it's will upload to github, so cool!") todos = 'get,gloves,get mask,give cat vitamins,call ambulance' todos_list=todos.split(',') print(todos_list) print(','.join(todos_list)) str1='jieer' str2='is good!' strtem= str1+" "+str2+"........." print(strtem.count('is')) prin...
6d036e3b52328b079b01fd6d8d739556859e9f62
80b7a0f08e2b638e9ccda3897c5477f73bbba728
/CursoDePythonUdemy_DiegoMendes/Outros/TestandoJoin.py
2ce611db16f79761998f0697334e8411fe0cad16
[]
no_license
allankeiiti/Python_Studying
76613581969152d7b15bc780f3e07004c3c8465a
9a27597c120dab03e5d11a24239e89e1b29762ba
refs/heads/master
2022-11-22T05:30:45.314583
2020-07-21T01:27:13
2020-07-21T01:27:13
198,134,248
0
0
null
2020-01-21T11:59:24
2019-07-22T02:44:07
Jupyter Notebook
UTF-8
Python
false
false
125
py
TestandoJoin.py
from os import sep Files = 'C:\PoketchX\GTA\GTO\+btn.png' Files = Files.split(sep) Files = sep.join(Files[1::2]) print(Files)
d4b1283064db70f5ced9061d48a7f7e6320c2b46
1905aa735c604d8bf2af2272c9131c05d5f65d8d
/shorturls/admin.py
8d4c3a74c5b9cd912aa0c12eda4fa64d526af105
[]
no_license
emailanuj/urlshortener
e0fcee910fca68e51f5693ab2eac6e35d5a9f7ee
5e33fcc0617d64cf13cd0f6424715882545864d7
refs/heads/master
2021-01-02T16:35:18.385755
2020-02-11T12:07:10
2020-02-11T12:07:10
239,704,523
0
2
null
null
null
null
UTF-8
Python
false
false
222
py
admin.py
from django.contrib import admin from .models import short_urls # Register your models here. class URLAdmin(admin.ModelAdmin): list_display=['long_url','short_url','timestamp'] admin.site.register(short_urls,URLAdmin)
626637d03b637470e1b563ce3b1592a0d78a8124
d61ad70a3fc7e1e5dd0f9699d58a0a3341ddad49
/hublabbot/view/github.py
edcc3e92365149f1e5bed1b029565e5e4d300668
[ "MIT", "Apache-2.0" ]
permissive
Potpourri/HubLabBot
51b923f50bcb134844988788b23ac92adc6d6cbe
791ff834f56e4d1635737dd2e084db3c5585188d
refs/heads/master
2022-11-02T21:26:56.855017
2020-06-13T10:41:53
2020-06-13T10:41:53
239,148,343
0
0
MIT
2020-06-13T10:41:55
2020-02-08T14:46:20
Python
UTF-8
Python
false
false
6,244
py
github.py
"""Module with view of GitHub webhook.""" import traceback import hashlib import hmac # jscpd:ignore-start from pyramid.interfaces import IRequest, IResponse # type: ignore from pyramid.view import (view_config, notfound_view_config, exception_view_config, # type: ignore view_defaults) from...
32319ea8a1c773ddb6c2f3840c2fde09bb90d8cb
243f1a88bbdb9c60f6587ad51e8ba01c1941c856
/shape.py
f7b388f1f6ed45302d30b20136b82a656df91d26
[]
no_license
zilu0907/draw_game
c720be36de3c4af0d57084d7c025a665987b746b
75d11abff56ba978ddd5bc8ee1c1d42995f679cb
refs/heads/master
2023-05-07T22:30:48.764161
2021-06-05T03:06:40
2021-06-05T03:06:40
125,006,804
9
1
null
null
null
null
UTF-8
Python
false
false
2,730
py
shape.py
from PyQt5.QtGui import * from PyQt5.QtCore import * import sys UP,DOWN,RIGHT,LEFT,BIG,SMALL,NULL = list(range(7)) class Shape(object): def __init__(self): self.points = [] self._closed = False self.selected = False self.shapeType = NULL def isClosed(self): ...
8d210a867196c3a459d284c62d081161d2401d22
404d7dfdca11dc3b41d14c87439e3c8ed521349d
/chat_server.py
283d35ec2cde199f1b439683f761f29f80e0d406
[]
no_license
zjplearn/chat_room
84193dad986d43520fdb80ca4c0c1fa206ff90db
d652efb3c8e44bda6894fbd39e7dd1ff1779ce52
refs/heads/master
2022-12-27T16:17:19.298535
2020-10-07T10:51:10
2020-10-07T10:51:10
301,986,661
0
0
null
null
null
null
UTF-8
Python
false
false
1,665
py
chat_server.py
from socket import * import os ADDR = ('0.0.0.0', 8888) usr = {} def do_login(s, name, addr): if name in usr: s.sendto("该用户已存在".encode(), addr) return s.sendto(b'OK', addr) # 通知其它人 msg = "欢迎%s进入聊天室" % name for i in usr: s.sendto(msg.encode(), usr[i]) # 将用户加入 usr[n...
c8eae056eee08a892d343bf7f65e6a5dba76561b
3810ba31b275c0b00e7dd3051067e6eedc061558
/preprocess/ratings.py
6cc14a795509b972b8952d08265c77bf8ead6648
[]
no_license
openopentw/2019-SDML
ced111d85dd5dc09942a959b6e573880d4b79db8
191cae9c8784ae31763568cfd36630d6ec8e0ec6
refs/heads/master
2022-10-05T12:45:04.023025
2020-06-07T12:03:07
2020-06-07T12:03:07
270,248,065
0
0
null
null
null
null
UTF-8
Python
false
false
1,319
py
ratings.py
""" load data and preprocess and return dataloader. """ import numpy as np import pandas as pd import torch from torch.utils.data import TensorDataset, DataLoader, random_split from util import dict_merge def get_dataloader(config, device): """ Get train / valid dataloader. """ # read data ratings_df = ...
55b368cf390bb191a0e30066e02cc105e6d3b82b
6c51e45e90841fbca9ed78cfc66414ba7d29e901
/gt.py
513c2449326e9eff1f154b0d3a11a78d52fc507e
[ "MIT" ]
permissive
leonardoeich/Redes-Trabalho
22799a400dd70cf5cdf5f134bc25db28814c09ff
526cafb5be79ea708f19f0828925217d3928e753
refs/heads/master
2020-06-03T06:01:22.905695
2019-06-12T00:52:12
2019-06-12T00:52:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,145
py
gt.py
import iperf3 import sys client = iperf3.Client() client.duration = 10 client.protocol = 'udp' if len(sys.argv)!= 4: print("Usage: python3 gt.py hostname port bandwitdh") sys.exit(1) # Initialization client.server_hostname = (sys.argv[1]) client.port = int(sys.argv[2]) client.bandwitdh = int(sys.argv[3]) * 1024 pr...
b951fe52f8199d1b3ac7e4385aa5470484704f0b
b3644cb77a09b90a3354e956711403855cb2a173
/prob_06.py
fe58d92ab0066d3c882bcfe2c50b5fa5b109d21f
[]
no_license
rhtm123/ProjectEuler
76553d3c6b527a91528953acd0cb0dddd3925806
daa6a5aaef59dc4bff99e82c734b93740e9f1dff
refs/heads/master
2020-04-06T04:43:13.469996
2017-02-28T20:03:27
2017-02-28T20:03:27
82,888,253
0
0
null
2017-02-23T05:37:53
2017-02-23T05:32:52
Python
UTF-8
Python
false
false
447
py
prob_06.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Feb 15 10:47:52 2017 @author: fun """ from timeit import default_timer as timer start = timer() # sum(n)=(n*(n+1))/2 and sum(n^2)= (n*(n+1)*(2n+1))/6 # or you can also by running for loop n =100 sq_sum = (n*(n+1)*(2*n+1))/6 sum_sq = ((n*(n+1))/2)**2...
6c79599979d4d47c70483e9626686dbd33a83b98
01e9758413d913309c5d22dd4bef2701e80d4549
/Azar/principal.py
42f89d8bbf8012dd0fa67e48806b775010d9c757
[]
no_license
fabioelialocatelli/education-web-python
0192830c634d70fefd4fe845d068574da399c158
d4d3e284c9f40d4c5714de4bc0390b663c80e7fc
refs/heads/master
2020-03-19T07:27:59.545682
2018-06-26T23:33:40
2018-06-26T23:33:40
136,116,186
0
0
null
null
null
null
UTF-8
Python
false
false
596
py
principal.py
# -*- coding: utf-8 -*- from modulo.funciones import devuelveAzar as elAzar from modulo.funciones import mensajeAcertado as elAcierto from modulo.funciones import mensajeFallado as elFallo from modulo.funciones import mensajeFinalizado as elFinal contador = 1 hasAcertado = False numeroAzar = elAzar(15) while contador...
6809e9ecdca9a3a51144caabd3f1029371d57665
70911abfe5da7d6d307929e210e80ab2cbabbee6
/tensors/tensors2.py
02f0ab892df33f67ccb84842b0aaebf6c76bac29
[]
no_license
DetegiCE/TFStudy
be8e176b4285a2777ef13c62f783aad10d718461
4a4c13b750c16de5504a61d0db3b6b8fd0eba230
refs/heads/master
2020-06-18T02:13:03.461628
2020-01-12T17:46:19
2020-01-12T17:46:19
196,133,147
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
tensors2.py
import tensorflow as tf a = tf.constant([[1,2],[3,4]]) b = tf.constant([[1,2],[3,4]]) y1 = tf.multiply(a,b) y2 = tf.matmul(a,b) sess = tf.Session() init = tf.global_variables_initializer() sess.run(init) y1_out = sess.run(y1) y2_out = sess.run(y2) print(y1_out) print(y2_out)
8e585bd5040520377b98b8778e7704d86e2a096b
c9e3466fda3eca6b99dc261e308b96fc72cbf600
/ipy/ipy/fastff.py
7fd73d8b1107431f5f97f624b4c0e72cb06f54fb
[]
no_license
Chuphay/python
ce00f0c6fb772d75242f68abc52d085284980140
e76e9572c10e35aa69edd4d1ef0a5ccca86a2fea
refs/heads/master
2023-05-10T19:02:47.596464
2023-04-29T19:25:50
2023-04-29T19:25:50
15,124,520
0
1
null
null
null
null
UTF-8
Python
false
false
409
py
fastff.py
def myF(l): L =len(l) if L == 1: return l elif L%2 == 0: out = [0 for i in range(L)] for i in range(L/2): A = myF(l[::2]) B = myF(l[1::2]) out[i] = (A[i] + B[i]*exp(-2j*pi*i/L)) out[i+L/2] = (A[i] - B[i]*exp(-2j*pi*i/L)) ...
b96fd15c816c495ca9538917cd0419308eefeb10
3b9e5bcd693d0c903f9e198036e4df68337b8f93
/video.py
566444d5f90ab97be6c37b80c3e5fddeaedc4496
[]
no_license
ajitaru/LipReading-4
88cfda125d35da2f8edcfcf02da3c1e8859f5bc5
b4eab095f349b14fa0d6c06d5d3e7c169a0fc08b
refs/heads/master
2020-04-23T12:31:41.690256
2018-09-11T09:31:51
2018-09-11T09:31:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,782
py
video.py
from scipy import ndimage import glob import os import torchvision.transforms.functional as functional import torchvision.transforms as transforms from statefultransforms import StatefulRandomCrop, StatefulRandomHorizontalFlip import torch import numpy as np class Video(object): def __init__(self, video_path...
be6a040ddce3cefc255d8d77d82e28239bee904d
2bc12c36eb39bc271641f391bb7067ef1bfddfc9
/2016/day/11/solution.py
225fdc30f6246bbdea65a004734f39f47c1c021b
[ "MIT" ]
permissive
iangregson/advent-of-code
0243077b8415a1e95e9dcd413c76aea3b9466ce5
cd20404940ac5ed18b8ac61a836186a2f2580003
refs/heads/master
2023-01-05T18:59:10.931750
2023-01-03T11:53:46
2023-01-03T11:53:46
252,134,765
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
solution.py
#!/usr/bin/env python3 import os dir_path = os.path.dirname(os.path.realpath(__file__)) file = open(dir_path + "/input.txt", "r") input_txt = [l.strip() for l in file.readlines()] input_txt = [ 'The first floor contains a hydrogen-compatible microchip and a lithium-compatible microchip.', 'The second floor ...
09ea1c777afd51f1dde855da482ae63429c92bba
57c88bb780687ec3fdae120e2f3de366eaf85ee2
/day1/kospi.py
6dd7bdc8d9936d6df5926a6a3778a81ca8164687
[]
no_license
separk123/til
518b8e789068cfdae09e4384448865330a7abb2f
3a321b97730393f63e2131c181d21d4d831431dd
refs/heads/master
2020-03-27T08:37:32.571173
2018-08-27T08:43:16
2018-08-27T08:43:16
146,271,301
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
kospi.py
#0 https://finance.naver.com/sise/ 에 요청해 응답 받아오기 import requests import bs4 url = "https://finance.naver.com/sise/" response = requests.get(url) # print(response.text) html = bs4.BeautifulSoup(response.text, "html.parser") # print(html) kospi = html.select_one("#KOSPI_now") #span 태그 빼고 안에 있는 텍스트만 갖고 오고 싶을 때 print(ko...
a27c76d0619f3e0c825b9a1318e79f89a826de57
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/SporeModder/RW4Base.py
062dc6f3aab17c214355baeea80fef64cfb2dbd2
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
73,222
py
RW4Base.py
""" This module contains: - FileReader, FileWriter: classes for reading/writing binary files, supporting different types (int, float, byte,...). - RenderWare: a class which allows parsing or creating rw4 files. - Classes for all supported RenderWare4 objects, as well as methods for reading/writing them. """ from ...
8ca9cc99eb86243584ead037e8d40fc0dbc375cc
311636a6916f8a0e8cfc8d6b08b6583f872cdac2
/plugin.video.movie25/resources/libs/kids/disneyjr.py
cd920ca02a68d3f7e1020cfead360e0ea9556ce3
[]
no_license
the-one-/MashUp
faf3232ff782b2cc9d6aba17a0c0132f00a8efd7
deb6c24e11bce91f171fde1c49d4efe2d5bebeea
refs/heads/master
2021-01-02T08:52:06.487862
2013-08-27T16:48:35
2013-08-27T16:48:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,991
py
disneyjr.py
import urllib,urllib2,re,cookielib,string, urlparse,sys,os import xbmc, xbmcgui, xbmcaddon, xbmcplugin,urlresolver from resources.libs import main #Mash Up - by Mash2k3 2012. from t0mm0.common.addon import Addon from universal import playbackengine, watchhistory addon_id = 'plugin.video.movie25' selfAddon = xbmcaddon...
1c3699bff4499863660e799b7e0473490841c3df
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_3/will.fiset/C.py
351809d7f793171ed9a08167c6202fb18d7dded9
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
1,810
py
C.py
import functools import random # isprime - Rabin_Miller. Fail rate is: (1/2)^certainty def isprime(p, certainty = 15 ): if(p<2): return False if(p!=2 and (p&1)==0): return False s=p-1 while((s&1)==0): s>>=1 for _ in range(certainty): a=random.randrange(p-1)+1 temp=s mod=pow...
8b451bded029bd623ff3d57adccaa7e842dc81cc
19e639d50674f295125bab9c03ba4ed93d1775ad
/collage_apps/vectors/tweet.py
dc38bd9a6158e978a30879ba28289ba94a793daf
[]
no_license
prodigeni/Collage
c9e216846e2eb409fef01d459b0f045a484d6771
9b59802c6e5d974ef89573e72d4db99bfc0b2b0b
refs/heads/master
2020-12-25T11:15:40.759594
2011-02-24T18:24:08
2011-02-24T18:24:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,954
py
tweet.py
"""A variety of schemes for embedding messages inside tweets.""" import base64 from collage.vectorlayer import Vector, EncodingError import pdb class BlatantVector(Vector): def __init__(self, data): super(BlatantVector, self).__init__(data) self._key_bytes = 4 def encode(self, data, id): ...
ac2dee79424506b3fdbaa6b70752fc39c0ed1581
ff9f0e6da0c98539f0807457e9ad0652aba74b09
/EPattern.py
47d4bdd136352c00e256f5d6be7950e0a46ea23b
[ "MIT" ]
permissive
x-raizor/epattern
4c6d44a228bb2259b1252cd63a91f7d0ae75190b
2d75889ea50d6106828a8bc834787864ce1e4b16
refs/heads/master
2021-09-05T16:48:14.511479
2018-01-29T18:50:11
2018-01-29T18:50:11
114,030,957
0
0
null
null
null
null
UTF-8
Python
false
false
2,487
py
EPattern.py
# Every Pixel Pattern Class class EPattern: def __init__(self, fillin_pixels_amount=10, element_size=5, pixels_size=4, pixels_gap=2): self.fillin_pixels_amount = int(fillin_pixels_amount) self.element_size = element_size # pixels in side self.pixels_size = pixels_size # pixe...
ba60af740ff806b9609e3b548f6fd50ff9fe673c
17551b554f801789849878484778ec95b3aaf838
/softlearning/policies/safe_utils/utils.py
4622c79be83365379646828c9e5d5a59fda064a9
[ "MIT" ]
permissive
anyboby/ConstrainedMBPO
679894c0c647d0e8cd7178571e602509d3d8d262
036f4ffefc464e676a287c35c92cc5c0b8925fcf
refs/heads/master
2022-12-14T05:14:57.913927
2021-02-28T21:20:38
2021-02-28T21:20:38
237,805,512
5
2
MIT
2022-12-08T03:46:46
2020-02-02T17:08:07
Python
UTF-8
Python
false
false
7,500
py
utils.py
import numpy as np import scipy.signal import time EPS = 1e-8 def combined_shape(length, shape=None): if shape is None: return (length,) return (length, shape) if np.isscalar(shape) else (length, *shape) def keys_as_sorted_list(dict): return sorted(list(dict.keys())) def values_as_sorted_list(d...
826ee62018df16b51e632b0a8cc5680e087f053b
b0ba83023f70114382b3cfcc4ec3545ab7c5630c
/2020.09.21 Countdown Using For Loop.py
9b151562eb400bc5169f1082b205132bcf03014b
[]
no_license
lvmarlowe/Python-Projects
3cee1076346767ea2b60903580d6aa149072a095
65f9ae8d20fe41a17d48246551e25d013f33fb73
refs/heads/main
2023-07-07T05:06:39.306715
2021-08-07T23:18:50
2021-08-07T23:18:50
392,179,885
0
0
null
null
null
null
UTF-8
Python
false
false
1,075
py
2020.09.21 Countdown Using For Loop.py
########## # LV Marlowe # 09/21/2020 # Countdown Using For Loop: Computer's Meditation # This program counts down from 10 and then plays a guided meditation. ########## for count in range(10, 0, -1): # For each count in the range starting at 10 and up to 0, and subtracting 1 from count each time, print(co...
23bbbd379a3a5f5681866f67f7b68e8ecf5ede01
f07bfbe5d54b11c1103ee5fe8c60c6d8cf94b2e6
/sg_interru_tests.py
0bb07aa25b85ede21a05ec02b370ee2ea7068bcb
[]
no_license
smgoerger/Thesis-Code
9c1c46da8c237a71fe78686f08bb6ac17e0d72c9
eb9b9bfd0402b5dda454d1ad51d72ab9d256e16b
refs/heads/master
2022-04-17T13:21:38.841205
2020-04-16T02:57:24
2020-04-16T02:57:24
256,092,984
0
0
null
null
null
null
UTF-8
Python
false
false
5,963
py
sg_interru_tests.py
import pandas as pd from random import random import numpy as np import nltk from nltk.corpus import stopwords import matplotlib.pyplot as plt import seaborn import numpy as np from math import exp, log, sqrt from sklearn.feature_extraction.text import CountVectorizer from torch.autograd import Variable import torch im...
aeb9fe830904cf45cd4d4ee8f701ae600d78f468
91ff6fdf7b2ccc58869d6ad41842f230644952c1
/requirements/venky_task/tasks/adf1.py
ca0aa7110072660a91fc62e7bad4af9d9815722f
[]
no_license
KONASANI-0143/Dev
dd4564f54117f54ccfa003d1fcec4220e6cbe1f9
23d31fbeddcd303a7dc90ac9cfbe2c762d61c61e
refs/heads/master
2023-08-14T15:59:59.012414
2021-10-13T14:54:49
2021-10-13T15:10:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
adf1.py
a=["a","venky","a","venkat","venn","venkat"] b=[] for i in a: c=a.count(i) if c==1: b.append(i) print(b)
2f790844c7af5f342b1c4e006646ce54aba90b48
d3cde0462f883e4bbdf6753134aa86eb6e6ef181
/py3scripts/Demo/AstahFlowChart/collectscript/multithread.py
288534a8da339b58b621be78e88c089d09c437e4
[]
no_license
thuleqaid/pytools
7ac94990414a3ae54f366ac987b981460d98863c
28c772aa2e467905e3d5844a18569735ab19f9c1
refs/heads/master
2020-12-18T22:25:00.771641
2017-05-16T05:53:06
2017-05-16T05:53:06
15,448,885
0
0
null
null
null
null
UTF-8
Python
false
false
3,235
py
multithread.py
# -*- coding:utf-8 -*- # VERSION: 0.1 import collections import threading import queue from .logutil import LogUtil, registerLogger LOGNAME = 'MultiThread' registerLogger(LOGNAME) class MultiThread(object): QueueItem = collections.namedtuple('QueueItem', ['group','param']) def __init__(self,worker...
ccbeae2315b0326ceac70336768f9a73aa298ced
91e9efa92fd8444be02c42cae9172ccc5209a842
/OOP/inheritance/inheritance2.py
37d715202187dfe79e1eea236f94d729e6e32252
[]
no_license
LeoDev0/material-de-estudo-Python
eb0a21ae94cd5c1a1d7a6c34870be9db9bbb5919
7265655c2ea5ebcfa5b4ad8a114c6e4158a70303
refs/heads/master
2022-12-04T23:53:44.760026
2020-08-28T00:02:46
2020-08-28T00:02:46
262,476,893
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
inheritance2.py
class Pet: def __init__(self, name, age): self.name = name self.age = age def show(self): print(f"I'm {self.name} and I'm {self.age} years old.") def speak(self): print('I dont know what to say.') class Cat(Pet): def __init__(self, name, age, color): super().__init__(name, age) self.c...
cadbad8f018793d2170b895409b912ba71b0675f
bdb6da84bf198d35f6bcb5396248cf1ab35c418e
/axeman/core.py
a25f1ef04dd75c4291878b47b7893e81c5dcf20b
[ "MIT" ]
permissive
raffysommy/Axeman
85177a4e87e0ee7763441b62aeb54de04d805d5a
984925802f18f98d0f3eace5d86c1a2d8fabbe27
refs/heads/master
2021-04-08T21:59:25.254131
2020-08-10T15:19:32
2020-08-10T15:19:32
248,813,311
2
0
MIT
2020-03-23T09:54:09
2020-03-20T17:22:57
Python
UTF-8
Python
false
false
12,646
py
core.py
import argparse import asyncio import time import pdb from collections import deque import uvloop asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) import sys import math import base64 import os import traceback import hashlib import aiohttp import aioprocessing import logging import locale import gzip import ...
f2e789928a5ff563733a6fc3573e6f355dbf6c01
6a559bd73851b7a19c2a9ad1a995aa89b42915a0
/migrations/versions/45fdcd9ac732_.py
860a578b85c7fff29187a61e1839a43c682290b2
[ "MIT" ]
permissive
eleweek/WatchPeopleCode
b1825088eb225a6a737db5f9f9fe80dbc0a9138a
2389fe0b8eb040f553f847b9e1686883c4bd1388
refs/heads/master
2022-12-12T12:59:12.262107
2017-11-05T15:26:20
2017-11-05T15:26:20
29,928,164
200
24
MIT
2022-12-08T00:39:04
2015-01-27T18:26:00
Python
UTF-8
Python
false
false
605
py
45fdcd9ac732_.py
"""empty message Revision ID: 45fdcd9ac732 Revises: 3acbc54c61e5 Create Date: 2015-04-10 14:58:10.070381 """ # revision identifiers, used by Alembic. revision = '45fdcd9ac732' down_revision = '3acbc54c61e5' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
f4ced829dc3c48b37e02b6c6ce3fd2f689538921
98035b7203185f1b369a793f41b504243a45ea29
/lists.py
b02cc9b16d0f0123a068bb44d83143dc61b47c3f
[]
no_license
willydavid1/python-basic
0382a57b13dda1e1e62fdc4ea00b7ac5da80eb05
a071cf353b2a618221c81da2762dee080652a3be
refs/heads/main
2023-07-19T03:16:46.220829
2021-09-26T21:18:37
2021-09-26T21:18:37
410,409,214
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
lists.py
list = [1,2,3,4,5] list.append(6) print(list) # [1, 2, 3, 4, 5, 6] list = [1,2,3,4,5] list.clear() print(list) # [] l1 = [1,2,3] l2 = [4,5,6] l1.extend(l2) print(l1) # [1, 2, 3, 4, 5, 6] ["Hola", "mundo", "mundo"].count("Hola") # 1 ["Hola", "mundo", "mundo"].index("Hola") # 0 l = [1,2,3] l.insert(0,0) l = [...
af8f9b1c2d29ca41a5cb7d08b61656ecb7736dac
ffe31c92c69e09ce8d54d4958bdc36aed78daa68
/crypting/data/Listings/Lesson_8_1.py
4d4d29dcb5e60df43eda1aef97e645d9983e4262
[]
no_license
DeOwl/project_arrow
7dfa3822e256dc65eb98d8e3f6f550fda568e7ea
9f8cc70a2234ee11eda9c1e19ae94b61d6937c6d
refs/heads/master
2022-11-25T16:41:04.080842
2020-07-25T23:36:05
2020-07-25T23:36:05
220,778,610
1
0
null
null
null
null
UTF-8
Python
false
false
630
py
Lesson_8_1.py
from tello_binom import * def start_flight(): # занятие стартовой позиции у первого участка takeoff() forward(80) # подлет к лесу anticlockwise(45) # поворот против часовой стрелки def patrol_section(): # облет одного квадратного участка for i in range(4): forward(40) clockwise(90) d...
1eaae07e42f80ad1e96e21316bf28d7c807a2ae6
511ecf3a6e91e743090ea21d4e95ee62717f176c
/uesgraphs/examples/e4_save_uesgraphs.py
8a2aea08dc1bcab498481cc84321ae2efd2ca0f0
[ "MIT" ]
permissive
RWTH-EBC/uesgraphs
2277b73d122f217e991b68c02fd1bf3bfdb814e2
498fc57cd251dc93f51279275a965d77775e68b8
refs/heads/master
2023-02-09T13:52:40.553504
2019-10-24T14:36:33
2019-10-24T14:36:33
134,610,770
19
6
MIT
2023-02-03T11:25:57
2018-05-23T18:33:04
Python
UTF-8
Python
false
false
4,676
py
e4_save_uesgraphs.py
"""This module includes tests and demonstrations of uesgraphs""" import os from shapely.geometry import Point import uesgraphs as ug import matplotlib.pyplot as plt def main(): to_json() def simple_dhc_model(): """Initializes an UESGraph object, adds 2 heating and cooling networks each Returns -...
631332387109727ee7a0659c030b30cf23693fab
fbefc4301c657b9391fb77ecef2f9d67b1915136
/temporal_decoding/scratch.py
b2834f8b9bebc6c6a1a2e2b0825460882c370f60
[]
no_license
crheller/Cosyne2020_poster
881a66c96b21eb923b4927752ed297a307f6b618
35dd646f5321069ad8e6a58ca7144bad40269a1c
refs/heads/master
2021-04-02T17:22:33.603557
2020-03-18T17:37:39
2020-03-18T17:37:39
248,300,395
0
0
null
null
null
null
UTF-8
Python
false
false
8,063
py
scratch.py
# project data onto decoding axis and look at tar/ref separation over time # in the trial (up through first 200ms, when no licking happening) import pandas as pd import numpy as np import matplotlib.pyplot as plt from nems.recording import Recording import nems_lbhb.baphy as nb import sys sys.path.append('/auto/users/...
22fe07a237f2c5f531d189c07596a22df191d038
6c0e7d6b367377fe3aeada79d90850bbe5cb17ee
/conf-parser/vmgCommanderLxc.py
38556273225bc5beaf00f55a3c58799ed917622c
[]
no_license
unbaiat/vmgen
b3f2a2d5d11bb3193a23d4e12007cf1c6f466834
5ca3a93cdcf9c3a6f0f508373c05f7553821c435
refs/heads/master
2021-01-15T18:46:17.301790
2011-07-10T19:42:37
2011-07-10T19:42:37
38,740,271
0
0
null
null
null
null
UTF-8
Python
false
false
6,581
py
vmgCommanderLxc.py
from vmgCommanderBase import CommanderBase from vmgInstallerApt import InstallerApt from vmgInstallerYum import InstallerYum from vmgConfigLinux import ConfigLinux from runCommands import * import shutil import os import time from vmgLogging import * from writeFormat import * from vmgControlVmware import * from vmgUtil...
af6dd7bde25453f25c0701e4ac246ff6bce29fa7
b515d18f87036441607ed5ca72cc652de2e8c1fb
/alıştırma8.py
02206294d1c9105917811ba7fee6c4a6b60e6d8f
[]
no_license
dogaberkayerdek/alistirmalar-I
f89aee6b51642c45d2efb4273934cab71db4b5f1
d100969720db34c3dc929ef03ff7f5e2324ebee1
refs/heads/main
2023-01-12T08:07:33.271241
2020-11-21T01:34:42
2020-11-21T01:34:42
304,152,744
2
0
null
null
null
null
UTF-8
Python
false
false
152
py
alıştırma8.py
k=0 for x in range(100,1000,2): x=str(x) if x[0] == x[1] or x[0] == x[2] or x[1] == x[2]: k+=1 print(k)
38fceb57977cb792be1a63e8571cd222facdf656
676f6a09f945e44716a769a26db635071bf4e1a8
/Pitonia/softuni/01/03.square.py
e2d650687ab95f12c69da06de14c19b1fa761839
[]
no_license
martin-varbanov96/summer-2016
616287422979a0c6e655b2d624205835128ceffc
14535f3b724b26ab9e895030970ea9b0d1449139
refs/heads/master
2020-05-22T00:06:31.440246
2017-12-11T20:54:49
2017-12-11T20:54:49
63,608,611
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
03.square.py
import turtle red = range(4); for i in red: turtle.forward(200) turtle.left(90) turtle.done()
f0a3778e74d113a5de778fa17ec321c6680c56c2
a1e62a142b9fd2558b7ed07845d6b875f328a9c7
/22/python/test_problem22.py
58b3efb688aa88e2fc98ea382762b4f38151c342
[]
no_license
jramaswami/Advent-Of-Code-2017
eed8d71d0ac12d51c64260a28f6b15ff7e6854ed
b4771dbe60aaad7e95fe4d662c641ba3d3740b2d
refs/heads/main
2023-04-16T10:34:28.776749
2018-03-01T18:03:36
2018-03-01T18:03:36
363,724,904
0
0
null
null
null
null
UTF-8
Python
false
false
3,271
py
test_problem22.py
import pytest import problem22 as p22 def test_burst(): """Test burst() in Cluster""" print('\nTesting burst()') cluster = p22.Cluster('..#\n#..\n...') assert cluster.infected[p22.Position(0, 2)] == p22.State.Infected assert cluster.infected[p22.Position(1, 0)] == p22.State.Infected assert clus...
87df5481cf2dd5bb990a9b4bd5169d9293d6af79
3451076a918383b4081da4f1628e22d6dfe29c75
/experiments/generate_data.py
9534d6d860d30aebfe31882d25661387f28b1e47
[]
no_license
bbbales2/modal
db9ed4e1f59e35ab65859419ee27f3f1e73ce1f4
153a83126a0f464e3e95b0a9a060a1e9a9345639
refs/heads/master
2021-01-19T02:50:06.015664
2017-09-20T23:12:58
2017-09-20T23:12:58
65,339,170
1
0
null
null
null
null
UTF-8
Python
false
false
4,427
py
generate_data.py
#%% import numpy import time import scipy import os os.chdir('/home/bbales2/modal') import pyximport import seaborn pyximport.install(reload_support = True) import polybasisqu reload(polybasisqu) #from rotations import symmetry #from rotations import quaternion #from rotations import inv_rotations # basis polynomial...
600691b87f7776e96bbf439d7195b870ed86090b
969771487553525d6d6516b5f578135ce668d2d8
/bin/simply-createschroot
f83cc69180cfb441238b437aac4161ca9fc12dd0
[]
no_license
kiniou/simply-builder
793aebe85c3322754df743961747b3cf884e94e2
19f1246137c75041bc6b78fd691292b8a14f2c73
refs/heads/master
2021-01-19T09:38:42.272952
2012-01-04T23:53:48
2012-01-04T23:53:48
3,104,981
0
0
null
null
null
null
UTF-8
Python
false
false
3,794
simply-createschroot
#!/usr/bin/python import sys,os import argparse import subprocess from pprint import pprint chroot_start_path="/srv/chroot" chroots_conf="/etc/schroot/chroot.d" build_pkgs = 'build-essential fakeroot devscripts apt-utils' include = 'eatmydata,ccache,lintian' distro_conf={ 'debootstrap_mirror':None, 'componen...
b44f75db652b3a40cd9475bfe44027724e845252
d6832a0de391e80f586d8e89fe3351ab9fd15b68
/install.py
21ce1b7a53659dfe74572041955f3420ce4ae210
[ "MIT" ]
permissive
Starfox64/pygame-installer
bafb8fc38a75302d60bcc30eb5a884698b259f47
05ab27917be02ce2ae97242042c02f83deffb2eb
refs/heads/master
2021-05-01T20:36:51.700136
2016-11-07T10:39:56
2016-11-07T10:39:56
69,055,819
0
0
null
null
null
null
UTF-8
Python
false
false
1,490
py
install.py
import platform, sys, os, ensurepip ensurepip.bootstrap() try: import pip except ImportError: print("Error: Failed to install pip, make sure you are running this script as admin.") sys.exit() arch = platform.architecture()[0] wheelUrl = "https://raw.githubusercontent.com/Starfox64/pygame-installer/master/wheels...
0cf5b009f384d2ca7162b5a88699afb3702ae1f6
9a84434293c2290f4ac38846ed4f890cc6fa4b8e
/timer.py
bc82b06efb4331428a30d54c522c21b76b39036e
[]
no_license
binghaobhw/algorithm-experiment
351572f8441ac308c145ab528d0fad8a15be56e3
bb0f01db33e8701e7d4030ebc839abbcbf5106ef
refs/heads/master
2020-12-26T17:38:06.568895
2014-12-19T02:44:17
2014-12-19T02:44:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
738
py
timer.py
#!/usr/bin/env python # coding: utf-8 import time class Timer(object): def __init__(self): self.time_ = 0. self.start_ = 0. def reset(self): self.time_ = 0. self.start_ = 0. def start(self): self.start_ = time.clock() def end(self): self.time_ += time...
65301be73bb56147609a103a932266013c3c0bd6
80a0e49d015ccad7624f73678f7ac61874b53ab4
/repetitivos/10.py
269e753edabb0751d53b77df8f990e74e4f6c391
[]
no_license
DavidFontalba/DAW-Python
8dc63110d85dfae683b5adfac147182d0eb9af7b
515fe4effa51ecf236cd3e9cb0420581c375cf83
refs/heads/master
2020-12-20T05:32:08.442163
2020-06-14T21:17:09
2020-06-14T21:17:09
235,977,885
0
0
null
null
null
null
UTF-8
Python
false
false
940
py
10.py
""" Pide una cadena y un carácter por teclado y muestra cuantas veces aparece el carácter en la cadena. Autor: David Galván Fontalba Fecha: 27/10/2019 Algoritmo: Pido un cadena Pido un caracter contador en 0 Hago una variable que empieza siendo 0, i mientras i <= len(cadena) si cadena[i] == caracter ...
96065e7e61b63f915561f117d71092e4bfb9a5da
c671fb22d33becdcc77f101f899cc17158002320
/tests/test_regexfield.py
3729fe3a1999c0da91a43263d0776cc77f8d76b7
[ "MIT" ]
permissive
vinayinvicible/django-regexfield
a677fac217f9f0d38cf5dfed6dc74389d9545ccc
56e1c8fbaebe71e868283fe2ab44aa53457c3aa6
refs/heads/master
2022-09-10T05:41:05.753060
2017-04-02T20:32:51
2017-04-02T20:32:51
77,795,269
0
0
MIT
2022-08-29T17:01:25
2017-01-01T20:27:23
Python
UTF-8
Python
false
false
1,131
py
test_regexfield.py
from __future__ import absolute_import, unicode_literals from django.db import DataError, IntegrityError, connection import pytest from .models import Page pytestmark = pytest.mark.django_db MYSQL_REASON = 'MySQL parses check constraints but are ignored by all engines' def test_match(): Page.objects.create(u...
bb7dac4f8cfb7240b407daffbe8ddc08b5265dbb
a626636f537685b580662cdaba59df545443707f
/apps/brand/views.py
b6418b05a3dd3f11f9d2f49d4a14e661cd60fbb1
[]
no_license
friacode/rambutan
a26e9575cba94d2d37416a268935f6a3ad196083
cb00f850293e3ad5e1a997f4e6db409643dbeb8f
refs/heads/main
2023-04-28T13:31:20.566681
2021-05-10T12:47:55
2021-05-10T12:47:55
355,410,011
0
0
null
null
null
null
UTF-8
Python
false
false
2,408
py
views.py
from django.shortcuts import render from django.utils.decorators import method_decorator from django.contrib.auth.decorators import login_required # Create your views here. from django.urls import reverse_lazy from django.views.generic import CreateView, ListView, UpdateView, DeleteView from apps.brand.forms import B...
546d875aa7f9aab2ef98e2c470778e7b03f41a88
da1a14bbc266bae09cfe23af42008987a818f4ac
/store/views/checkout.py
866bd7f0637d37555ca0c4109f9973f882dac781
[]
no_license
Subodhthore15/Tshop
0f472f3827013705f1e0f80adcbfa2a59d85aa67
51d9d1354452bea050d3d99ffb53e7c095fbc651
refs/heads/main
2023-08-17T00:53:19.652217
2021-10-06T16:48:23
2021-10-06T16:48:23
413,436,306
0
0
null
null
null
null
UTF-8
Python
false
false
4,777
py
checkout.py
from store.forms.checkout_form import CheckForm from django.contrib.auth import authenticate, login as LoginUser, logout as logout_USER from store.forms.authforms import CustomerCreationForm, CustomerAuthForm from django.http.response import HttpResponse from django.shortcuts import redirect, render from django.contrib...
2cc84c43920ecc5983bab9343d01ae995a86082f
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/moving-stones-until-consecutive.py
e179242c79d62a5412b7a16e648dc2498cbe661d
[ "MIT" ]
permissive
kamyu104/LeetCode-Solutions
f54822059405ef4df737d2e9898b024f051fd525
4dc4e6642dc92f1983c13564cc0fd99917cab358
refs/heads/master
2023-09-02T13:48:26.830566
2023-08-28T10:11:12
2023-08-28T10:11:12
152,631,182
4,549
1,651
MIT
2023-05-31T06:10:33
2018-10-11T17:38:35
C++
UTF-8
Python
false
false
1,053
py
moving-stones-until-consecutive.py
# Time: O(1) # Space: O(1) class Solution(object): def numMovesStones(self, a, b, c): """ :type a: int :type b: int :type c: int :rtype: List[int] """ s = [a, b, c] s.sort() if s[0]+1 == s[1] and s[1]+1 == s[2]: return [0, 0] ...
08d77d71ee962ae502859c530c21c94e88d520d7
df7c1ebae6630425bc1534ad908ec04564c25b94
/Supervised-Learning/Classification/scikitlearn_iris.py
7bcaf20dadc438218b08fd6674c2e4a0e2467c54
[]
no_license
letyrobueno/Machine-Learning
531db4b4321bc8d7361758696f334b8ff9121822
4c3a2d4370bebe532c847799716629ef92e4e1cb
refs/heads/master
2020-11-25T06:20:15.981861
2019-12-27T00:01:26
2019-12-27T00:01:26
228,536,721
0
0
null
null
null
null
UTF-8
Python
false
false
3,133
py
scikitlearn_iris.py
""" Load the Iris dataset with measurements for each species to apply Classification method: KNN. Scikit-learn supervised learning page: https://scikit-learn.org/stable/supervised_learning.html#supervised-learning Instances: 150 (50 in each of three classes) Attributes: 4 numeric, predictive attributes and the class ...
62875509efaeffe0a7508ef3517598caa03e73f1
2d218263d6aca468bc1fd8a3a25577235c0300ba
/tests/test_fdest.py
20d0be787bd3fb7065774e82101f3660a989fda4
[ "BSD-3-Clause" ]
permissive
erykoff/fdest
736a107c68d1ffde9e75832deb9468adbb24d6b9
5a358dc9fae10752c00ceb21aa1282ff9d341c11
refs/heads/main
2023-08-24T21:21:16.270947
2021-10-25T21:14:00
2021-10-25T21:14:00
415,128,335
0
0
null
null
null
null
UTF-8
Python
false
false
3,225
py
test_fdest.py
import unittest import os import numpy as np import numpy.testing as testing import fdest ROOT = os.path.abspath(os.path.dirname(__file__)) class FdestTestCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.data_dir = 'data' cls.atmfile = os.path.join(ROOT, ...
5d9bf00bb8de113a25950d183ae87e2938bb61e3
c319f87daee25daa59fe13ca658e84e872858259
/scrape-ibc.py
515b5b00379fdb537a38da2b07bec1ddefaaddc9
[]
no_license
databigbang/The-Call-of-the-Web-Scraper
2c7125ccd8b21cc6170bfec4d1571fdbf376409e
666df18373abe1d00338190fd331062f99a391d9
refs/heads/master
2020-12-25T19:03:44.666825
2014-09-17T01:16:01
2014-09-17T01:16:01
14,506,422
4
2
null
null
null
null
UTF-8
Python
false
false
3,843
py
scrape-ibc.py
#!/usr/bin/python import urllib2 import urlparse import lxml.html import os.path from Queue import Queue from threading import Thread from downloader import Downloader import time NWORKERS = 25 search = 'http://ibc.lynxeds.com/locality/oriental/nepal' print "Starting." downloaded_calls = set() Downloader = Downlo...
d8a220b6b71a9dc569f37279b9be30a2251ab74e
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/2478.py
5b83d5396e3089ab143fe909824b3f7099c23219
[]
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
1,596
py
2478.py
def isTidy(n): s = str(n) prev = 0 for c in s: x = int(c) if x < prev: return False else: prev = x return True def getDigit(n, position): s = str(n) return int(s[position]) def setDigit(n, position, to): s = list(str(n)) s[position] = str...
034f88cceb06ddf8b138f525e3b72f4de6c95126
3d7d3f6d33d1c7096e8552dd150fa22908881e9c
/setup.py
d5d1fcac800e1d788df0ff8136d2a1d7e3a0f4b3
[ "MIT" ]
permissive
Zburatorul/fava-envelope
f58bc29943ee11e1aa1d2e20c68d8b594503ae1b
5ef29b81d2e899a37cbec2d6b6f580380627d11c
refs/heads/master
2022-12-03T13:15:11.612662
2020-07-27T13:10:25
2020-07-27T13:10:25
287,109,149
0
0
MIT
2020-08-12T20:27:54
2020-08-12T20:27:53
null
UTF-8
Python
false
false
1,105
py
setup.py
from os import path from setuptools import find_packages, setup with open(path.join(path.dirname(__file__), 'README.md')) as readme: LONG_DESCRIPTION = readme.read() setup( name='fava-envelope', version='0.5', description='Fava Envelope budgeting for beancout', long_description=LONG_DESCRIPTION, ...
72c110167ca3312171110cec6438f051553f178c
dd4622390bb7122db37a889e647f28004a265ccd
/1906101031王卓越/1300-蓝桥杯/year-2014/java-A组/text-01.py
622897dfe40d72c54b118999276e53e8d8a0d793
[]
no_license
gschen/where2go-python-test
c8adaa095aa8a095401f98c7b3f8f17c72d0532d
eb9e6011b8d33fa45a6b1ef853affd01a296db21
refs/heads/master
2022-12-13T19:45:09.874691
2020-10-15T13:12:52
2020-10-15T13:12:52
211,591,156
4
1
null
2022-12-05T07:46:12
2019-09-29T02:35:00
Python
UTF-8
Python
false
false
707
py
text-01.py
# 1.标题:猜年龄 # 小明带两个妹妹参加元宵灯会。别人问她们多大了,她们调皮地说:“我们俩的年龄之积是年龄之和的6倍”。小明又补充说:“她们可不是双胞胎,年龄差肯定也不超过8岁啊。” # 请你写出:小明的较小的妹妹的年龄。 # 注意: 只写一个人的年龄数字,请通过浏览器提交答案。不要书写任何多余的内容。 for small_sister in range(1,100): for big_sister in range(small_sister,100): if big_sister*small_sister==(big_sister+small_sister)*6 and big_...
558f200d0374bbdbe755d75c02a434823e63c012
decf501e34dd29c40a934cc4c667a4e3e6b0be0c
/adminDashboard/migrations/0006_auto_20200628_0159.py
a6f535808cf6da7cdaadbd8997e0addf9f7c83e2
[]
no_license
smujuzi/NITA-Leave-Management-System
9f69e79d56fec84f16522121c84052780a5dc409
d8b8444cfcf7f514e2d5ffd158e003a230bccbd6
refs/heads/master
2023-08-07T09:44:08.234148
2020-09-22T14:41:48
2020-09-22T14:41:48
278,371,700
0
0
null
2021-09-22T19:31:21
2020-07-09T13:25:56
JavaScript
UTF-8
Python
false
false
497
py
0006_auto_20200628_0159.py
# Generated by Django 2.1.2 on 2020-06-27 22:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('adminDashboard', '0005_auto_20200517_2229'), ] operations = [ migrations.AlterField( model_name='approve', name='lea...
eec384dd8d4899d343a306c4a60c3b4989e3b58e
04295887663855a025b6032beae43e4a9ed9d4d4
/maneeschool/__init__.py
b46a0bd6bda331d2cbbd4bf32da59b2a13b3cbaf
[ "MIT" ]
permissive
knampun/maneeschool
5db024dec2678ca04c709d0c9dd62f30ad12d8be
88ca864bda6fdb1c2bb868f0973bcc73aa7d59a2
refs/heads/main
2023-02-11T08:02:41.504319
2021-01-10T03:13:30
2021-01-10T03:13:30
328,292,378
0
0
null
null
null
null
UTF-8
Python
false
false
74
py
__init__.py
# __init__.py from maneeschool.studentclass import Student,Specialstudent
a8047eefd1a33846270b645fc72bb4a9966e44be
4275b54c6d6d75f723e3dd31db48353d266fb262
/examples/create_proxy.py
9f04abea6004dec21a8f85a1d6fb5080f431c367
[ "Apache-2.0" ]
permissive
nuxeo/nuxeo-python-client
05d4b263b98a3d0469cb998d2536b8ad7d8beb18
d9a880ddcf63576935b8684a788ec8dadf44cf73
refs/heads/master
2023-08-25T14:27:01.420209
2023-08-14T11:33:57
2023-08-14T11:33:57
56,871,061
14
3
NOASSERTION
2023-08-29T10:42:33
2016-04-22T16:49:28
Python
UTF-8
Python
false
false
1,387
py
create_proxy.py
# coding: utf-8 """ Full example on how to create a live proxy with the Nuxeo Python Client module. To install it: pip install nuxeo """ from nuxeo.client import Nuxeo from nuxeo.models import Document def main(): # Connection host = "http://localhost:8080/nuxeo/" auth = ("Administrator", "Administr...
18892269b1afff66ceb58f423d73d546e2e85216
3f705a466ee970b48179e731947cac519f51c282
/pythoncallc.py
443f7490c0c0b76ee52975a0c83d4ed842546a19
[]
no_license
archord/PythonCallCExample
713ce4f467760e242fa4474201b07b92501e11ee
d332a3409a4d967c3703231e3838268571dc590c
refs/heads/master
2021-01-10T19:14:13.324730
2013-10-12T08:37:22
2013-10-12T08:37:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
pythoncallc.py
import ctypes array1=(ctypes.c_float*6)(1.1,2.1,3.1,4.1,5.1,6.1) array2=(ctypes.c_float*6)() so = ctypes.CDLL("./dist/Debug/GNU-Linux-x86/libpythonCallCExample.so") sum = so.sum sum.restype = ctypes.POINTER(ctypes.c_float*6) array3=sum(array1, array2, 6) array3.contents for tmp in array3.contents : print tmp
1ef8d7e4e1f2751d6cfcfd25ace1dbb3bef35a0c
d83ac6370ed68afa5c1327b5cbee5bebbb8ba643
/main.py
4ca5a8908e8ada63ecf855a183245ce5c6832e83
[]
no_license
sevkir29rus/Lab3
699d5da21169f2c5f40ff03630411cb9fc756b28
d320651a53a6f99cf24a9b3616a78d1354592cc4
refs/heads/main
2023-02-06T23:52:02.602342
2020-12-28T18:43:55
2020-12-28T18:43:55
320,344,447
0
0
null
null
null
null
UTF-8
Python
false
false
1,732
py
main.py
import math drawx = [] drawy = [] t = 0 width, height = 512, 512 center = 256 while t <= 2*math.pi: x = 2*math.cos(t) + math.cos(2*t) y = 2*math.sin(t) - math.sin(2*t) drawx.append(x) drawy.append(y) t += 0.01 for i in range(len(drawx)): drawx[i] = round(drawx[i] + center) drawy[i] = round(drawy[i]...
52908b84ae235552e14e625331a837af6ffbbe16
02da84f12155284e12cba3fcbae1fe27e3915f2e
/fizzbuzz/2018_03_25/test/test_get_digits.py
d78fa8f5191d5795f76b2551e3f9a77bee1fdc4e
[]
no_license
Solero93/Katas
e14e285d94c6caea431b2671ffe1164645ed6de1
9cb7c1f7896357d9df493aef4cecb754b23382f2
refs/heads/master
2021-04-15T19:10:46.710927
2018-03-25T11:19:57
2018-03-25T11:19:57
126,649,721
0
0
null
null
null
null
UTF-8
Python
false
false
952
py
test_get_digits.py
from typing import Dict from unittest import TestCase from src.get_digits import get_digits class GetDigitsTest(TestCase): def test_returns_list(self): result = get_digits(1) self.assertIsInstance(result, list) def test_returns_number_for_1_digit_number(self): for i in range(10): ...
d423bd6f7e84051e0f3a52ce24da494a6a53df12
b3527d6cb5fd14706eb2852cca0f04ca03f9014d
/hfg/urls.py
6df98d41218a72436642cbb43ad667b3d0e4874e
[]
no_license
crazyfln/hfg-prod
1af3404cd57b89cdc9a351ed4865f1a4ad68c4cb
6b6bb082d161d064a21a9269267689e1d1e94c25
refs/heads/master
2020-04-06T03:41:31.584837
2014-10-16T23:52:33
2014-10-16T23:52:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,765
py
urls.py
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin from app.admin import manager_admin, provider_admin from ajax_select import urls as ajax_select_urls #admin.autodiscover() from app.views import CustomBlogIndex, CustomEntryDetail f...
9543eda3946b5a16d84299f21b0c3789d7db756f
f74b1f6ac929cc8ef93ddd348559f0a79037a202
/Movies/views.py
f2c98283dffe954f02bc3786cbfdc93257c939b7
[]
no_license
aman-ash/Movies_Recommendations_TMDB_API
ae63912b37e027ec4c6011fccfb69fcc4673d7f6
fdcf70f4814da62b79aa9fabaafcdb0e6c12e21b
refs/heads/master
2023-06-30T20:47:58.442890
2021-08-04T06:59:18
2021-08-04T06:59:18
376,434,992
1
0
null
null
null
null
UTF-8
Python
false
false
21,819
py
views.py
from django.shortcuts import render, redirect from django.http import Http404 import requests from Movies.models import Contact, Movie_name from tmdbv3api import Movie, Person from tmdbv3api import TMDb import imdb ia = imdb.IMDb() tmdb = TMDb() person = Person() tmdb.api_key = '122a9fafd99452516fe83207465ce55d' img =...
98332e72d1ca5744cd2877631fa09be4f94476cc
44609a12abf5a895e2ea9a1d0337372d89846af3
/datafeeds/parsers/fms_api/fms_api_district_rankings_parser.py
8e16422822167d3f3a2eaafedae1fb953278bd9d
[ "MIT" ]
permissive
FletcherS7/the-blue-alliance
f45f48bcde564f67a4c3647ecfaeb32caaedafa1
8f09496a2ffafdd10f98bf3f927aa485c0ccc02c
refs/heads/master
2023-07-26T00:12:26.759108
2023-04-29T04:13:44
2023-04-29T04:13:44
214,691,014
1
0
MIT
2023-07-08T16:31:25
2019-10-12T17:54:33
HTML
UTF-8
Python
false
false
650
py
fms_api_district_rankings_parser.py
from models.district import District class FMSAPIDistrictRankingsParser(object): def __init__(self, advancement): self.advancement = advancement def parse(self, response): current_page = response['pageCurrent'] total_pages = response['pageTotal'] models = [] team_adv...
5cb7bd3abaca0eea659d9e409d5ec07b85433ab0
f43e1f16c32102d826c688e13b017e96833444fd
/testrunner/middlewares/__init__.py
769d19f72fbd09d0ca8c1d56d6061d3455e81043
[]
no_license
drnextgis/testrunner
4f2ce366a02f6539f9dbd47ad708a0e2db364e3e
a9adacb4978538569bfa0b09d8aaf3dcc6688f58
refs/heads/master
2021-08-19T22:23:32.311067
2017-11-21T01:13:50
2017-11-21T01:31:20
111,444,936
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
__init__.py
from .statics import StaticsMiddleware from .jinja2 import ( Jinja2ConfigurationError, Jinja2Middleware, Jinja2Response, )
0dd4356b9f80b758e47d0fcff9e07621dd90603a
91e8b3680f2c62a0f463fd649a047b2d62658745
/liaison/agents/models/transformer_rins.py
7bf3f0b6435cfc012a1233f4888a6f9f6fd5e692
[]
no_license
aravic/liaison
cf726133568de0de7e00f082ceb15030d58ffba6
21a497bd67d82aab27cb883386601db0a062c9d1
refs/heads/master
2022-09-15T11:38:18.597782
2020-06-05T04:41:30
2020-06-05T04:41:30
206,321,282
0
1
null
null
null
null
UTF-8
Python
false
false
4,595
py
transformer_rins.py
"""Graphnet based model.""" import graph_nets as gn import numpy as np import sonnet as snt from liaison.agents.models.layers.attention import SelfAttention from liaison.agents.models.utils import * from sonnet.python.ops import initializers INF = np.float32(1e9) class Model: def __init__(self, se...
a5b6353924fcd61afbddfa59d9346c487be27531
05a70c12df808455100598d8a6fdb5635c641ab8
/Ago-Dic-2018/CynthiaGarcía/Practicas 2ndoP/Practica2/Chelas.py
6e98029f9c2d9448637c8c44f5a67a7ed86b409c
[ "MIT" ]
permissive
Jonathan-aguilar/DAS_Sistemas
991edcc929c33ba9bb8bc84e741b55c10a8420a3
4d02efc64161871084df1bff258112351e5d1241
refs/heads/development
2023-07-24T12:26:54.698452
2021-09-02T20:52:26
2021-09-02T20:52:26
289,764,892
1
0
MIT
2021-09-02T20:52:27
2020-08-23T20:54:55
Python
UTF-8
Python
false
false
1,373
py
Chelas.py
# https://punkapi.com/ # http://docs.python-requests.org/en/master/ import time import re import requests import os import errno import json import sqlite3 directorio = 'archivitos-de-html' url = 'https://api.punkapi.com/v2/beers/' ids = [] parametros = '|'.join([str(id) for id in ids]) #db = sqlite3.connect(':mem...
15f659952ef67b86c7e058103f91c59c789d519e
e51801b9752af043c4c87a188ecd937a84456e40
/run_utility.py
a4e0b57984e62f17a502650f6ff643e6812fdf98
[]
no_license
YingTing/scrapy_redis_customized
898a53b2687ba963e69342b9091afa60d9e22962
a17fb21360006931865811333236f548ae277976
refs/heads/master
2020-05-21T04:06:00.866667
2019-05-10T02:31:37
2019-05-10T02:31:37
185,904,807
0
0
null
null
null
null
UTF-8
Python
false
false
3,333
py
run_utility.py
import argparse import logging import json from datetime import datetime, timedelta import os logger = logging.getLogger(__name__) mylog = print # docker entry folder is "/usr/src/app/product/" # but datafeed_info.json at "/usr/src/app/" datafeed_json_path = '../datafeed_info.json' with open(datafeed_json_path) as f...
a4d3a509ab24332f2d26d99dee3c2a38c19bc006
97c99a10d995790dbc85ee9d8a7f3405760a5bee
/src/product/urls.py
ff2369d77c1eea59ff3ea9d72c53f96a242dfc4a
[]
no_license
TaeHyoungKwon/trydjangotutorial_2.0
de6f8cdc2077608c1eb2cec5c6f1f97bec64ba10
1d0a57187bdd3fdbd148f1d31de09074ee5ffffb
refs/heads/master
2020-03-26T19:06:32.705416
2018-08-27T06:08:25
2018-08-27T06:08:25
145,249,370
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
urls.py
from django.contrib import admin from django.urls import path from . import views app_name="product" urlpatterns = [ path('<int:my_id>/', views.product_detail_view,name="product_detail" ), path('create/', views.product_create_view,name="product_create_view" ), path('<int:my_id>/delete/', views.product_de...
987f3075a62f26c143487070ae31bc3c6c802570
a61b3b5e93057b6046c1431e493644321d24f637
/tests/test_models/test_shop.py
dcbbde72b0dc4bf040d1739f9c4f09cff2d01e4b
[]
no_license
Danucas/shop_manager
9ec9bf551b8e2b5a5a84d9ca11a868dd43a64149
5419e16abfa0531f6c80ebfb19aaa457f11027ec
refs/heads/master
2022-12-18T20:59:58.688334
2020-09-28T19:53:08
2020-09-28T19:53:08
298,408,059
1
0
null
2020-09-28T19:53:10
2020-09-24T22:22:37
Python
UTF-8
Python
false
false
725
py
test_shop.py
#!/usr/bin/python """ Test Shop storage behavior """ import unittest from models import storage from models.user import User from models.shop import Shop from models.client import Client from models.category import Category from models.product import Product from tests.test_models.test_category import create_shop cl...
6a96fa77515d164acf62610121af57ce5393834f
f2b3484d39945bd8a8b79bd944e49222a253e779
/calculator.py
27d79d73987fa5da9adde863aee07b4c1fd7c15a
[]
no_license
Vitaliy8791/Py_calculator
172628338a51375008bdb1c6f284c0e435b59ff4
33166979949c07cbf5f5bce20efa44e2927e1094
refs/heads/master
2020-04-11T13:30:57.226917
2018-12-17T19:22:06
2018-12-17T19:22:06
161,819,402
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
calculator.py
import def_func, def_calculator my_choise = "start" while my_choise == "start": my_choise = def_func.choises(def_calculator.calculator(def_func.dict_calculator, def_func.calc_fun))
4f58b38e2c541d9d0053986ec92d5f1bcc18545a
66431302cc657d08e48133b56d1a22d39e57c6a8
/credit/migrations/0006_auto_20200902_1105.py
2f6eeb4e6bee0dc2fd3eccf30af445b5366001a3
[]
no_license
Jimmyopot/smsApiApp
4f80cc867156e46c495ab381f48b724f95d95c44
ead03d390573cfa6714df4e20e95900c73447e0f
refs/heads/master
2023-01-29T09:07:10.151714
2020-12-09T08:47:57
2020-12-09T08:47:57
319,575,976
0
0
null
null
null
null
UTF-8
Python
false
false
1,462
py
0006_auto_20200902_1105.py
# Generated by Django 3.1 on 2020-09-02 08:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('credit', '0005_auto_20200902_0632'), ] operations = [ migrations.RenameField( model_name='cemanetendpoint', old_name='api_key'...
b1520b0b914ba4565b432e6e4d8a251bb88ca0ae
6dffd588eec8b1d235e7db8aa4280b09caea0dfb
/main.py
786c6aa6e6ae505791eec918a5cc422cabd938c4
[ "MIT" ]
permissive
hdirenzo/DiRenzo_H_RPS
037d4b5ae351b8f48d9133e6de9af761ee9b0b1b
4296496c41020995fbc8ff82ebac5937126a8777
refs/heads/main
2023-09-02T15:47:43.583715
2021-11-13T21:19:42
2021-11-13T21:19:42
427,562,678
0
0
null
null
null
null
UTF-8
Python
false
false
553
py
main.py
from random import randint from components import winlose, choices, results # set up the game loop while choices.player is False: choices.player = input("Please choose either Rock, Paper, or Scissors: ") choices.CPU = choices.weapon[randint(0, 2)] if choices.player == "exit": exit() else: # choosing a weapon ...
ec734858d48cdfaf7f0a829cff36ad953937c048
637ac051cdc7bf57c7d0011e303b11ac7aa7d553
/Exercise_7_2.py
8f679da0ec45995b6b80c08d89323f9c55e021b1
[]
no_license
arushss/Think_Python_2
4c5dcb80e4d969f2362add09f777696ea9cfdad8
767159fc659fbf0553f494b226425578825d471c
refs/heads/main
2023-02-23T00:18:53.565980
2021-01-26T21:20:10
2021-01-26T21:20:10
326,238,100
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
Exercise_7_2.py
def eval_loop(): counter=0 while True: print("input something") a=eval(input()) if a!='done': c=a print(a) else : if counter>0: print(c) break counter+=1 eval_loop()
9bab667db54c9b8fa9ab1bbb65e14807d0fc8bb0
651268420e2bd048394304a16faeb9810755dc90
/DojoAssignments/Python/multiplication_table.py
dcea568ee6ee8bcfdd00768b80cbeae3a7dc09ed
[]
no_license
alakaz4m/GitHubRepoAssignment
c08e488fc48473748efafce4ce14c31db8c820ac
f0ec4e74bbe32cdf49958bd90b786f7ef1ee3ac7
refs/heads/master
2021-09-05T02:59:27.174371
2018-01-23T19:56:24
2018-01-23T19:56:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
multiplication_table.py
for x in range(0,13): myStr = "" if x == 0: myStr = else: for y in range(1,13): myStr += ' ' + str(y * x) print myStr
0b48e71101cf9dee952f9e95cbb0c25c09e31900
d5b820ebfea8caca1b0550598bc08d6e1167f7ce
/main_hillClimbing.py
e57fd2bfac40506f8c4c2a91363c7f886c56affa
[]
no_license
muharyman/n-ything
602f510ff3cf7ce9137f3a146da0adfa002eb697
16d03003ad43e16de22f87d8c61d03c4707eee23
refs/heads/master
2020-03-29T13:56:44.995972
2018-10-03T14:45:48
2018-10-03T14:45:48
149,990,406
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
main_hillClimbing.py
import hillClimbing def runHillClimbing(filename='input.txt', steps=1000): piece_groups = hillClimbing.read_input(filename) initial_pieces = hillClimbing.initialize_board(piece_groups) print('\nInitial board state:\n') print(hillClimbing.draw_board(initial_pieces)) print(*hillClimbing.count_all_attacks(initial_...
a9d6cb41589c7b73221bd7a0af4dcc322f164d31
43e78f52ecbd1d4892a7c99213012892e8db638a
/Criptomonedas/backend/app.py
369e88b57ef4948d21011f23772586a4c0f5c673
[]
no_license
grupoTPBIGDATA/ProyectoBigData
3d7466304462070ba914b95107c31355f761febf
e183cca9d17c658bd4bc700a97e9ff736409e8f8
refs/heads/main
2023-06-03T10:01:59.502393
2021-05-15T01:05:12
2021-05-15T01:05:12
367,081,081
0
0
null
null
null
null
UTF-8
Python
false
false
1,963
py
app.py
from flask import Flask, request, Response from flask_pymongo import PyMongo from pycoingecko import CoinGeckoAPI from bson import json_util from datetime import datetime, timedelta, timezone from models import Precio cg = CoinGeckoAPI() app = Flask(__name__) app.config['MONGO_URI'] = 'mongodb://localhost/proyectoBig...
98f2dfdf63d44a6a370cc045a0748198cbaec8de
3e6bbeb19cfa5cb7326d66480e37894db33908ff
/Server.py
de84cdac4a17bf87c2e85a2d4bddbf9cbef3e083
[]
no_license
eclubprague/viaFlask
98cb8298780debb9c9e8c82a0e7aba6ebee07a30
4495bb4e0cceda61d7dc5f23643acd9f2bffe32f
refs/heads/master
2020-06-11T00:09:15.334416
2016-12-07T13:13:07
2016-12-07T13:13:07
75,836,233
0
0
null
null
null
null
UTF-8
Python
false
false
1,139
py
Server.py
from flask import Flask from flask import request from flask_cors import CORS import json import time flask = Flask(__name__) # create flask cors = CORS(flask) @flask.route("/", methods=['GET']) # define route def get_hello_world(): return "Hello world!" # reply "Hello world" directly @flask.route("/date", ...
32846b93e5c76dcf749c8a974739e47057efa15a
1fbf79261b27e4f62e2575ec702b1e6ae5820939
/Python/014 bus_balance.py
dd8319783b04e79c5161d500bc2441014db31de4
[]
no_license
sunnyhyo/big_data
9512dafccddf20a9ab91d5fe45598334cfe69d20
b4e2a3d0cbd690c4b773fcbe28bd5983bfd03d58
refs/heads/master
2021-05-02T14:38:39.332507
2018-03-03T06:45:37
2018-03-03T06:45:37
120,723,356
0
0
null
null
null
null
UTF-8
Python
false
false
162
py
014 bus_balance.py
balance=int(input('버스카드 잔액을 입력하시오')) if balance>1200 : print('버스 탑승 가능') else: print('버스 탑승 불가능')
b2604bc36cb0169b8e40cbc4386f7c54b7a6379a
b242883ad915261cdaf8e73188c7c74ff7952b70
/data_structures_algorithms/problem_solving_data_structures_algorithms/chap05_searching_sorting/quickSort.py
b266b056d45149daa7b6cedc4ade10c91012218d
[]
no_license
linshiu/python
a3fe4f2258efec021986ed5c56d8ccdaf867bcd6
75fd2981829682d4d6415889dc5e3032d0076f15
refs/heads/master
2021-01-21T05:02:57.777198
2016-07-13T03:09:27
2016-07-13T03:09:27
39,899,999
1
4
null
null
null
null
UTF-8
Python
false
false
3,912
py
quickSort.py
# -*- coding: utf-8 -*- """ Problem Solving with Algorithms and Data Structures, Brad Miller Chapter 5: Searching and Sorting IDE: Spyder, Python 3 Quick Sort """ import timeit import matplotlib.pyplot as plt import numpy.random as nprnd import numpy as np import random #%% Function ####################################...
a55419e0f2b241ee6794d466241a2999fefabaea
2ab332a0b9e1cb871170d35f675a0dc2b32bc273
/RoboSub-2018/lib/ExternalDevices/previous_state_logging.py
d584203318f1658999d9aef62ec80b9a74621021
[]
no_license
MagnusCaligo/robosub-2018
234b99a17f9f460eb0d058696da93161455ecf8f
40510021c230524615a4d19e6c5697aa02426cb3
refs/heads/master
2021-07-07T01:10:41.126394
2019-02-16T21:01:44
2019-02-16T21:01:44
134,027,973
3
1
null
null
null
null
UTF-8
Python
false
false
6,091
py
previous_state_logging.py
import csv import os class Previous_State_Logging: # @param Pass in the file name formatted as: fileName.csv def __init__(self, fileName): self.dictionary = {} # Put the two log files in their own folder. path = 'savedSettings' if not os.path.exists(path): os.makedi...
b31eaa7f0dd71cd2900f53a88f557239f04ce088
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/inspections/RedundantParenthesesMore.py
a38a933c0e547de768906fe27a2ed0496e8c53ba
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
121
py
RedundantParenthesesMore.py
while <weak_warning descr="Remove redundant parentheses">((close_hr - current_hr_it) >= .<caret>5)</weak_warning>: pass
9dce0cb2e5b018fef9e5b23545199539fc97800a
1c7d7a3e3859003036ab58d47bb0f3cd8fd738ab
/DoTheThing.py
f6c7c887fd685bd738732d811e4b6d688aa7072a
[]
no_license
r-lucas/GeneticFuns
fda8c98330fb4f5b36ff22800ed58917c49fbad2
3bc185da7f21c7198afe67887b93bd313d9a14d5
refs/heads/master
2020-04-05T19:25:27.223305
2018-11-12T00:05:51
2018-11-12T00:05:51
157,133,742
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
DoTheThing.py
from RunThing import * import pygame import sys def main(): print("Starting!") pygame.init() screen = pygame.display.set_mode((800, 800)) run = RunThing(screen) white = (255, 255, 255) clock = pygame.time.Clock() while True: screen.fill(white) #print("Drawin...
d6dbddd905cd5e7f9f42def3611dadce134f358a
230464832cb6ca430bcb0c5993cc25ea90f1c313
/tests/fixtures/auth_v2.py
4c573df499a58aca0e48d4b0d72f8126435e13b8
[]
no_license
TACC-Cloud/python-reactors
4022a3f504eea05eb6792789622778fbadeddd3a
135191ba4c4195d76ab0d170da3923f51a786109
refs/heads/main
2023-08-11T10:43:43.172916
2021-09-27T22:11:55
2021-09-27T22:11:55
291,759,308
1
0
null
2021-09-30T20:45:46
2020-08-31T15:54:30
HTML
UTF-8
Python
false
false
1,512
py
auth_v2.py
import pytest from agavepy.agave import Agave from reactors.runtime import Reactor @pytest.fixture(scope='session') def tenant_id(): return 'tacc.prod' @pytest.fixture(scope='session') def client_v2(tenant_id): """Returns active Agave v2 client from credentials cache.""" return Agave._restore_cached(ten...
320f29026c35786f662339b2871f7275d2b79440
d97207639d57a25a17691b82327dd8ad6bfb4a38
/main.py
2da3e516dd3f1896241473d022d7a554cc242fee
[]
no_license
MrExpen/kivy-calc
d7ca2c58e33206f2979e01f74cbe7d8aaf5e87c1
ebc599831df82d5eb6e1ee1d6429614e26ddbbdb
refs/heads/master
2022-06-21T02:34:40.011156
2020-05-13T15:52:50
2020-05-13T15:52:50
263,729,167
0
0
null
null
null
null
UTF-8
Python
false
false
2,049
py
main.py
from kivy.app import App from kivy.uix.label import Label from kivy.uix.button import Button from kivy.uix.widget import Widget from kivy.uix.gridlayout import GridLayout from kivy.uix.boxlayout import BoxLayout from kivy.config import Config Config.set('graphics', 'resizable', '0') Config.set('graphics', 'width', '40...
b56af6dff59400b826ffe01e70301fd79f146a4d
84e42aac8480f1f9ac2234a890553b2ee61ef8d7
/RPA-Python/bot10_Enquete/bot10_Enquete.py
9c5ea0d8900aced260e3c40c90b5065905d0b061
[]
no_license
lucajao/RPA-Python
2942290b017047012f200bb072c85d3b9a01f868
87f0b2394ef1b40d3895db7af91ed799ff4ac6fb
refs/heads/master
2023-03-07T01:07:45.389052
2021-02-23T23:24:03
2021-02-23T23:24:03
341,712,605
0
0
null
null
null
null
UTF-8
Python
false
false
1,127
py
bot10_Enquete.py
from selenium.webdriver import Chrome from selenium.webdriver.common.keys import Keys import time as t nav = Chrome() nav.get('https://ferendum.com/pt/') nav.maximize_window() t.sleep(3) nav.find_element_by_name('titulo').send_keys('A automação é algo bom? (João Lucas)') nav.find_element_by_name('descripcion').send_ke...
be181fa7ee518a70b5c8dfc8b087657e601ca497
439df93e61479edd0f315563ce17aa7d98d9be1c
/networking.py
e34072bf3c2fbc19356476978e2aa5ed4ab23aab
[]
no_license
TimNekk/music-news-bot
7907676c553a7aa7407bcdca31a300ef7868e9a2
ebefd6d5787f594820660e5b81279b45d5e3c622
refs/heads/master
2021-05-23T13:17:11.418360
2020-04-09T22:29:13
2020-04-09T22:29:13
253,306,151
4
0
null
null
null
null
UTF-8
Python
false
false
1,192
py
networking.py
# - *- coding: utf- 8 - *- import requests from bs4 import BeautifulSoup as BS urls = {'search': 'https://music.yandex.ru/search'} def get_artists(artist_name): params = {'text': artist_name, 'type': 'artists'} r = requests.get(urls['search'], params=params) soup = BS(r.content, 'html.parser') soup_...
d26a7d2ab8775e2ef3b9466a619db3d3de1e7c84
e885f554ab208d38c3cd8caa0e116e0f0e45e78d
/print-all-ds.py
05ca96186182556846f55cf555094e8fdeafa1f3
[]
no_license
dynamicguy/scripts
1e1b08fae6a48e1956c6056cce44be3225269dbb
bb09a7f029d71dfd1644876a876e1cf0fb866c6f
refs/heads/master
2022-02-04T18:08:19.973891
2022-01-13T18:12:25
2022-01-13T18:12:25
1,716,290
0
0
null
null
null
null
UTF-8
Python
false
false
1,489
py
print-all-ds.py
# -*- coding: utf-8 -*- #!/usr/bin/env python import json import argparse import log from pprint import pprint import httplib, urllib import base64 username = 'ferdous' password = 'please123' # base64 encode the username and password auth = base64.encodestring('%s:%s' % (username, password)).replace('\n', '') def d...
b3f0949f6c01e43ce99ab880866085aaebe43136
4cf54cc6f59fb1f0a0e5e7a1e22e2ba4cf21221e
/handle_bounced_email.py
45619bf9f18815b600f8096238fa945c00a87234
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
WorldMG/Python-Email
6b4fae445daceb2cea7735a091dc40a854272eb8
80a7db854b7ccdce1596aba510baebc8a5ada163
refs/heads/master
2021-01-23T06:34:23.979724
2017-03-28T14:16:45
2017-03-28T14:16:45
86,374,755
0
0
null
null
null
null
UTF-8
Python
false
false
2,196
py
handle_bounced_email.py
# Copyright 2016 Google Inc. 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 applicable ...
573b416ab1217c351f3afdc613c8383a682938f1
c13fca71645eb76886a4294dfb376ab62276c84e
/db_repository/versions/002_migration.py
492d9bbbe8183bf29202b302249564d52c865aa3
[]
no_license
ivanmatyash/flask_talons
16dabf5cdee68c9b19aa47f3a9f7ee29254a3644
da3537148ae9d89e64149f377da4ca450cbeeae7
refs/heads/master
2021-08-31T19:01:10.105993
2017-12-22T13:14:08
2017-12-22T13:14:08
113,550,752
1
0
null
2017-12-11T08:55:18
2017-12-08T08:26:55
Python
UTF-8
Python
false
false
2,539
py
002_migration.py
from sqlalchemy import * from migrate import * from migrate.changeset import schema pre_meta = MetaData() post_meta = MetaData() doctors = Table('doctors', post_meta, Column('id', Integer, primary_key=True, nullable=False), Column('name', String(length=120)), Column('photo_url', String(length=120)), C...
3b2080cb61a6695bf1526e585ce2677a8f8d7197
8cdfb19429031c0b9d395e9001c418dc71f940af
/ex23.py
f8cc8f50867b7bad53b05ac607e51324858467ca
[]
no_license
DikranHachikyan/CPYT210713
350c3de74641a81df7dbd7bb1509939cff940b0d
b58b94efb7553c9fbb3e39ef2a9dc186f7f6eda3
refs/heads/master
2023-07-12T09:08:43.419358
2021-08-12T07:54:41
2021-08-12T07:54:41
385,572,361
0
0
null
null
null
null
UTF-8
Python
false
false
294
py
ex23.py
if __name__ == '__main__': app_config = { 'title':'Text Editor', 'version':'1.2.3', 'n_proc':10, 'max_memory':4096, 'margins':[5,10,5,10] } for key in app_config: print(f'key = {key} => {app_config[key]}') print('---')
d8a80927edd8dcbac9deef78dc84f446db60fa0b
adebb86d519ba069328d34b2c7f455179a4e3522
/nsrlsearch/config.py
7f484f85199224a722f65e9d2015fb409be08e15
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
sptonkin/nsrlsearch
cf659df4c603ba4835972d6e9a94a0efd42ed035
d42abd2921f55406625caf14ae8528efb0dd0880
refs/heads/master
2020-03-19T05:00:54.296955
2018-06-26T20:36:49
2018-06-26T20:36:49
135,891,666
5
2
null
null
null
null
UTF-8
Python
false
false
2,156
py
config.py
""" Module containing constants used when initially setting up nsrlsearch's config. """ import os try: # Python 3.x from configparser import ConfigParser except ImportError: # Python 2.x from ConfigParser import ConfigParser # Default path for configuration file. CONFIG_PATH = os.path.join(os.environ[...
edba0624ff5f152e3b73c1c67915109f85f7f0da
5395da83085a1823323b6274386fe63df4981d11
/ocr.py
b72a26749f6d2d3ee7c82bc396f7374ca66f0853
[]
no_license
ttirri/online-ocr-monkey
8148707b2f21566c6d5a5eeb4e5c4ed2c62434eb
bcff754c4061e0206a854c772fbfcd5a202c90d4
refs/heads/master
2020-07-01T04:06:33.617318
2011-08-06T11:06:28
2011-08-06T11:06:28
2,089,730
0
0
null
null
null
null
UTF-8
Python
false
false
2,197
py
ocr.py
# -*- coding: utf-8 -*- import os import fnmatch import suds import base64 import time import urllib2 import sys url="http://www.ocrwebservice.com/services/OCRWebService.asmx?WSDL" def create_input_image(client, path, filename): input_image = client.factory.create("OCRWSInputImage") input_image.fileName=filename ...
c4faa38c6c9ab777683d44ec0944786b021c05dd
ebaa9a48343ab02c70a2d3deb318ded485ef1716
/securewitness/systemadmin/forms.py
ca035063fcb62926047eb65c02f032f5da59e855
[]
no_license
agore1/SecureWitness
c2092f14ef402c757035b29f1f00950e92f05e80
ae6fef13dd1eef31774c8408da69edda1f54a526
refs/heads/master
2020-04-11T00:12:18.102298
2015-04-28T03:38:24
2015-04-28T03:38:24
32,476,321
0
0
null
null
null
null
UTF-8
Python
false
false
166
py
forms.py
from __future__ import unicode_literals from django import forms from django.utils.translation import ugettext_lazy as _ from registration.users import UserModel
5f92556ddcc814ef53307bb45bed9e75acec51ee
e41b40749dd3b7d5774c5c741be0258a593e8d52
/utils/gameobject.py
aace6f4b593658d39a8bc43f1746022da7705358
[]
no_license
adrienpillou/Brique-Breaker
1e1dca309dd47b33f9b110d9a2b8955df49772fa
cdcf44629c92b77045f696495c798251b8bdfe96
refs/heads/main
2023-01-28T08:36:15.470503
2020-12-03T15:02:46
2020-12-03T15:02:46
315,921,416
1
0
null
null
null
null
UTF-8
Python
false
false
1,630
py
gameobject.py
import pygame from .vector import Vector2 # GameObject base class class GameObject(): def __init__(self, name, position, size): self.name = name self.position = Vector2(position[0], position[1]) self.sprites = [] self.frame_index = 0 self.size = Vector2(size[0], ...
841311881b422148a4062c7adeaee044359f2960
918286b3049ce7a7f5b417434dbdea971551d51b
/WebSpider/utils/es_util.py
858f26035d9ab9d3efcd9cdea90d0e2aeef4ea69
[]
no_license
Messi433/WebSpider
27d378a00aff2d84f0551235226901f6a37d64e8
75d6f320b0c5d5bdd0de43df9a34babd2a7c1d3d
refs/heads/master
2020-04-13T19:36:39.809448
2019-05-21T13:29:22
2019-05-21T13:29:22
163,407,859
1
0
null
null
null
null
UTF-8
Python
false
false
793
py
es_util.py
'''参阅elasticsearch_DSL官方文档''' import os from elasticsearch import Elasticsearch from scripts.es_script.init_blog_es import BlogType from elasticsearch_dsl import connections # 连接远程服务器上的elasticsearch服务 es_server = Elasticsearch(hosts=['114.115.246.224']) '''返回blog索引信息''' es_blog = connections.create_connection(hosts...