blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
937d9d68a3ca6a4f6ea6bae2b249aa41d8a5a349
a94758b88353889c8186b32e7b5acbe7f77807e9
/iGottaDjango/urls.py
536178fc1455f03899b5d2b6817766bfc6c3b6ac
[]
no_license
Stephanie-Spears/iGottaDjango
fcc9bf9ec2ee9ceb5a71e88c0a285a4f032f0523
69326b2aac9926cf33810e46528370ebdfeacb05
refs/heads/master
2021-08-15T01:51:13.498214
2017-11-17T06:09:33
2017-11-17T06:09:33
109,955,044
0
0
null
null
null
null
UTF-8
Python
false
false
815
py
"""iGotta URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
214c6c3886334797076857bd9cf4b62e4d931034
ce5e472dd6b33a261b3651672ffa4bcf37db9687
/q1.py
12b50e1fc508429fd3ff3b28d4b41bfa9c58e4af
[]
no_license
vkobinski/tarefa4
edbe140b8ba38689f703555c82b1bf186c9e9f16
6e5925c32a97d33a206dab709f55284c7ec35055
refs/heads/master
2023-07-15T22:04:51.622643
2021-08-26T14:30:52
2021-08-26T14:30:52
400,198,617
1
0
null
null
null
null
UTF-8
Python
false
false
812
py
from datetime import datetime class Cadastro: def __init__(self): self.codigo_banco = input("Insira o código do banco: ") self.valor_despesa = input("Insira o valor da despesa: ") self.descricao_despesa = input("Insira a descrição da despesa: ") self.data = str(datetime.date(datetim...
12b99157ef91baeba1b980e70567b5588589fb0c
a616d3f1491eae4a702d18ab30e2b3cfd43e1563
/scrollbar.py
a43c58dca1721d5742a1355ef8ec4ffaf02cb63d
[]
no_license
supriadi-yusuf/python-GUI
9d15c27fcaabb55aa61ccabef2afcc3f9a26370f
557ab9720442d7d810567441119c3efa4b1b7b34
refs/heads/master
2020-06-29T16:47:58.236428
2019-08-07T01:09:09
2019-08-07T01:09:09
200,570,926
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
from tkinter import ( Tk, RIGHT, Y, Scrollbar, Listbox, END, BOTH, LEFT ) layar=Tk() layar.title("Scrollbar") myScrollbar = Scrollbar(master=layar) #myScrollbar.pack(side=RIGHT, fill=Y) #myScrollbar.pack(side=LEFT, fill=Y) myList = Listbox(master=layar, #height=5, yscrollcommand=m...
b107aba0725e0d5aa26ab156bc55db785eb5b9b1
ecc736ba966a235a4d07e5af298f97a4437defc9
/Assignment 4/p4.py
6e13ea7adee23ed2f568e69e4c583f37dc5abb36
[]
no_license
davifrossard/CSC321
6a832c245fdb683df57f47f5033e5b5de71ae2fa
e3f17bc5399800aee400261cb13b45d6c1437292
refs/heads/master
2020-04-14T05:49:10.742021
2016-04-20T14:33:21
2016-04-20T14:33:21
50,119,837
5
8
null
null
null
null
UTF-8
Python
false
false
4,847
py
from RNN import * from utils import print_warning from os import makedirs from time import sleep import datetime, time # Create results directory if not path.exists('results/'): makedirs('results/') # Data I/O data = open('shakespeare_train.txt', 'r').read() chars = list(set(data)) data_size, vocab_size = len(dat...
40a5badf20a8815924f3d9ea4e245dba81149a88
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03588/s910432178.py
314d7a583d1067ee67cd31e93342774353c07a3a
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
import sys def solve(): readline = sys.stdin.buffer.readline mod = 10 ** 9 + 7 n = int(readline()) ab = [list(map(int, readline().split())) for _ in range(n)] ab.sort() print((ab[-1][0] - ab[0][0] + 1) + (ab[0][0] - 1) + (ab[-1][1])) if __name__ == '__main__': solve()
702e397972e162ab5ddf2af196684a76f393bd61
71673d845952b50986d1c21dc5bbbcab2a2a2651
/introduction_to_lxml.py
0783fcf78d6a6982eff93f7b0558518976c20d60
[]
no_license
afcarl/introductionToWebScraping
77a44bfb7655e44231bed216d37b015e3cf52a5c
d1039aeee87365f2807dd198e53bd1bb6224a550
refs/heads/master
2020-03-26T04:23:54.052825
2015-06-18T14:23:40
2015-06-18T14:23:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
507
py
import requests import lxml.html base_url = "https://www.google.com" def scrape(url,base_url,depth): if depth == 0: return True r = requests.get(url) html = lxml.html.fromstring(r.text) links = html.xpath("//a/@href") for ind,link in enumerate(links): if "http" in link: ...
3eecda5d5aed0185231c064ba9d3916edaf9df22
eac6bd2191daab17189eb9f221048cda3179c216
/scripts/example_numbercounting.py
d95a2ab0cd72ae35b68503c252a47fe348106a6a
[]
no_license
ghl3/histfactoryUnitTests
83fb0e21b8b640f40170a254a7686308c5d03495
0bf9da7335707a7f9da658fb16005b3dc9da4583
refs/heads/master
2021-01-23T05:45:19.665227
2012-11-16T20:01:32
2012-11-16T20:01:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,171
py
#!/usr/bin/env python # # A pyROOT script demonstrating # an example of writing a HistFactory # model using python # # This example was written to match # the example.xml analysis in # $ROOTSYS/tutorials/histfactory/ # # Written by George Lewis # # # There are several way to use HistFactory to # create a model. # # ...
9573e2d03f021cd4eee80553f9755cffcb49464b
67d1deb7b3f5d6d03028e938dcba06c44392fe87
/code/util/datastorage/SPEngine.py
6a7a12a546407b6594073c15569ddfc6d1e5ddb7
[]
no_license
GGXH/DS_stock
389881403b0356072f2f5a7b64bd9098f87f9784
c516dd4a546cb48d98198239ed33260acfb2adb8
refs/heads/master
2020-04-05T19:31:43.306362
2019-01-16T15:37:44
2019-01-16T15:37:44
157,138,472
0
0
null
null
null
null
UTF-8
Python
false
false
78
py
import util.status.messager as msg class SPEngine: def __init__(self):
875ef43560a7117ab76732fbd81c3a1778a3e8b5
6694cdf9827bc72262f6e5f37a419c292433dd61
/scripts/misc/config_abl_3dassembly_optimal_bc_loss.py
7f3c29e7322dfa637d0c4616bdfb86ac29df9610
[ "MIT" ]
permissive
shagunuppal/mopa-pd
ce07df4eb4390e0e24d8f2f1deafe83577fa44fc
ac55f568149d8e79c28326bcd9b63336ed065a61
refs/heads/master
2023-08-30T17:37:43.842057
2021-11-04T14:48:34
2021-11-04T14:48:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
936
py
# for this figure, we need to multiple all y values by 1e6 (y_data = y_data * 1e6) and set # y-tick labels directly plt.yticks([1.3, 1.4, 1.6, 2.0], fontsize=12). filename_prefix = 'SawyerAssembly-Abl-Optimal-BC-Loss' xlabel = 'Epoch' ylabel = 'Mean Square Error (x 1e-6)' max_step = 40 min_y_axis_value = 1e-6 max_y_ax...
736a6dd319cdb36e01d57e42fdf371c5db550c22
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/ghwatson_faststyle/faststyle-master/losses.py
7a4cc6b60cea27257d8a4820a88ca8fb5d7f1574
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
3,526
py
""" This file contains the different loss functions. File author: Grant Watson Date: Feb 2017 """ import tensorflow as tf import numpy as np def content_loss(content_layers, target_content_layers, content_weights): """Defines the content loss function. :param content_layers List of...
df4017d719a457eb43a5aa6c9d289e9e674a9b84
e61802befd592a18d535999277e3d4767042a441
/problem_11.py
8c4304f4ad7e6f7973982931f25f9f46d2d2458a
[]
no_license
subenakhatun/pythonbasic
5962804d4aaee18c9bc5e8f1d178ae846efabd85
36066df0a9355c6d451e80e06fba2fb712759f3d
refs/heads/master
2021-07-20T23:21:49.113162
2020-05-15T04:11:19
2020-05-15T04:11:19
163,249,284
0
0
null
null
null
null
UTF-8
Python
false
false
31
py
str = 'subena' print(len(str))
8728234043cd78faea94c87589dea2b093ce9e0e
54483c7314149f73d559476a16c8f046fd21d987
/demo/migrations/0005_auto_20210720_1008.py
4ae48e3c085d0b72cbd7e941bbb13f085cd15aef
[]
no_license
phuongthao2145/testpython
27d514a895cddc74afaf768acff81f5e82591975
ab999b9771e90c0709998030051bcc4bce4873be
refs/heads/master
2023-06-27T06:55:46.711635
2021-07-26T11:27:39
2021-07-26T11:27:39
386,623,872
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
# Generated by Django 3.1.4 on 2021-07-20 10:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('demo', '0004_testresult_tag'), ] operations = [ migrations.RenameField( model_name='demo', old_name='f0', new_na...
cc8579e637c44fae83edeccad4ee7128463ed18f
fa62a10dc55e5af03f24d0e0c1fe46502b814e8c
/python基础/文件/02写入文件.py
cf2f54eeb7347dd883d5d40f696ad13e3e5960ef
[]
no_license
jiangchuan617/PythonLearning
c5ede77f596c2282e819cc0270cef842e4147783
a8b999e348a0f90b8febc6ded8f4ae14a5f0ebe5
refs/heads/master
2022-05-02T04:37:59.515143
2022-05-01T16:20:15
2022-05-01T16:20:15
129,497,116
0
0
null
null
null
null
UTF-8
Python
false
false
87
py
file = open('readme','a') # 'w'只写;'a'追加 file.write('123hello\n') file.close()
bd5cb730104181ac2296d2a313eb30e514464624
6ae9ecca3049ea0df016db4d78eb93ae0edfedd3
/python/day6/if_elif_0.py
304427bc0cdf9efd6a90511fb4acbec7b0a517bd
[]
no_license
itcsoft/itcpython
41dc79534f4727a74ec24c651b06d7fba5c9d23b
208ad1e92ec8ea687878097696dff9b81e0dffb8
refs/heads/main
2023-06-15T08:38:30.316981
2021-07-08T13:19:19
2021-07-08T13:19:19
368,862,365
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
san = int(input('Сан бериниз мен ошол санды текст менен чыгарам: ')) if san == 0: print('Ноль') elif san == 1: print('Бир') elif san == 2: print('Эки') elif san == 3: print('Уч') elif san == 4: print('Торт') elif san == 5: print('Беш') elif san == 6: print('Алты')
29062d2f0a805afd6dd76b3910c7c60daac28586
4178f2916d2da72cbb45454fbed941dcfe8f6460
/POM_test/TestCase/Planting/TC_024.py
c2bd74617e33da7d058bb5c6912275c3dd5bd85e
[]
no_license
maxcrup007/Selenium_Webdriver_Python
15196cb04ba5cafdc5b776c26d167f0b48fb0e14
6be7f0b9f53df1ba592957029e8a4d22e409d1c4
refs/heads/main
2023-03-24T21:04:31.976451
2021-03-22T09:16:04
2021-03-22T09:16:04
349,379,454
0
0
null
null
null
null
UTF-8
Python
false
false
2,607
py
# ทดสอบการเข้าใช้งานของ "ปลูก" (เลือกจำนวนเพาะปลูกมากกว่าพื้นที่) import time import unittest import sys from selenium import webdriver from POM_test.login import * from POM_test.plantPage import * import os sys.path.append(os.path.join(os.path.dirname(__file__), "...", "...")) class TestPlanting_24(unittest.Tes...
4de4a3deb1892d8a98427efd454a04849d8f4eda
f2fcf807b441aabca1ad220b66770bb6a018b4ae
/coderbyte/letter_capitalize.py
0db39e3300d9e2d0d879d72ba1ae2420481d6fcb
[]
no_license
gokou00/python_programming_challenges
22d1c53ccccf1f438754edad07b1d7ed77574c2c
0214d60074a3b57ff2c6c71a780ce5f9a480e78c
refs/heads/master
2020-05-17T15:41:07.759580
2019-04-27T16:36:56
2019-04-27T16:36:56
183,797,459
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
def LetterCapitalize(str): # code goes here return str.title() print(LetterCapitalize("h3llo yo people"))
3b8746a1cdd4600634297132c55f8cb3205475c4
d8349b7c3ca5289ea4627719699ae88b536fa24e
/uhr.py
bb9d4cef9887219b82c8773ba0814e754bdfe453
[]
no_license
Mighty-Yth/Affinity
8277ae59785f5663b1458e579f9f49e7719b4871
a4f92421f014c0b296596234b0727bb2b0f526f1
refs/heads/master
2020-03-28T20:29:42.009120
2018-09-17T06:00:18
2018-09-17T06:00:18
149,075,792
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
import discord from discord.ext import commands class Uhr: def __init__(self, identity,user,EXP): self.identity = identity self.user= user self.EXP = EXP def __str__(self): return self.identity + ':' + self.user+':' + str(self.EXP) def deposit(self,amo...
31541650d86bad1487aa424be00d8d85b69f5bed
a7da58ad91b007b3650003708eb91928f1e3684a
/bt5/erp5_wizard/WorkflowTemplateItem/portal_workflow/express_person_interaction_workflow/scripts/Assigment_openGlobalUserAssignment.py
edc6962f8dcdb769f3c5bbbaa8e6713520f5fb3f
[]
no_license
jgpjuniorj/j
042d1bd7710fa2830355d4312a6b76103e29639d
dc02bfa887ffab9841abebc3f5c16d874388cef5
refs/heads/master
2021-01-01T09:26:36.121339
2020-01-31T10:34:17
2020-02-07T04:39:18
239,214,398
1
0
null
null
null
null
UTF-8
Python
false
false
115
py
assignment = state_change['object'] person = assignment.getParentValue() person.Person_validateGlobalUserAccount()
c92b4463310cabc5b593f28b34d7d29802149be3
8f4e9d24de3dfbd2efae58877ab0043a7da57831
/Learn_PhythonEx/ex6.py
a9b2054e8db34cbb6de3068fbfe0bc208451d780
[]
no_license
dersonnex/Python_learning
1cbcfe428a4765adabdca65d275b63c37acb0ea8
7827962c5f208b36c6511a20d220cba609494853
refs/heads/master
2021-01-12T06:00:52.179117
2017-11-14T09:43:54
2017-11-14T09:43:54
77,274,272
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
x= "There are %d types of people." % 10 # defines veriable X binary = "binary" # defines veriable binary do_not = "don't" # defines veriable do_not y = "Those who know %s and those who %s." % (binary, do_not) # defines veriable y print x print y print "I said: %r." % x #I said :there are 10 types of people....
cfc2649bb2c931a5ec92ad39694840b9daa025f2
9c1223036fd5259875458a8cf40eed7e2d3edf7a
/booktest/views.py
eea0893ab92e26959c416e885ce7ae0a1a3f0d2f
[]
no_license
oldestcrab/django_182
57c180a17d733026727b5f783195d8e0d009ecff
df4bb8933be6a189c0d4af7a55b33f60fff6289b
refs/heads/master
2020-05-31T14:57:20.585054
2019-06-26T06:28:49
2019-06-26T06:28:49
190,344,540
0
0
null
null
null
null
UTF-8
Python
false
false
3,095
py
from django.shortcuts import render, redirect from django.http import HttpResponse, JsonResponse from django.conf import settings import os from .models import * from django.core.paginator import * def index(request): return HttpResponse('hello') def detail(request, p1, p2, p3): return HttpResponse('year:{p1...
b652570059fbbb90741ee3a9330e616f982e32a2
7694cb360b98391fb0f5c57e3b396d8211d535ea
/GUI/config.py
e2d7fd5c94a6e14d041ed94caa21cfd5f2aaf723
[ "MIT" ]
permissive
trifwn/Atlas_Rocket
36ec1b0e59181dab45a16743a670532eb8e4e797
aeb8b6fea75b8f6b94af662bbaec0ae212e02bae
refs/heads/master
2022-04-17T03:34:30.614890
2020-04-05T21:40:49
2020-04-05T21:40:49
229,804,020
1
0
null
2020-03-31T14:52:34
2019-12-23T18:31:23
Python
UTF-8
Python
false
false
1,214
py
import os import time from collections import deque BASE_PATH = os.path.dirname(os.path.abspath(__file__)) DATA_PATH = os.path.join(BASE_PATH, "data") def init(): ''' Defining globals and initializing them ''' max_length = 100 global times, temperature, pressure, humidity, altitude, or_x, or_y, or_z, vel_x, vel_...
ccfcd1900ee74cbfd43d8cee00efaa8ddc77b01a
2e85be12b106f8bcb159e267a2c97ad3a6ea0b9d
/lessons/lesson3/myre.py
cf4e0d0b377c59bd1a03a89f650c29080cd26680
[]
no_license
tinghe0928/awesome-python3-webapp
bb24af1a9e2898180c1252d4a70c92f7eadddc3e
3c840f605f360c93e22f2b41ef06886cab35a2ef
refs/heads/master
2020-05-26T14:46:17.536977
2019-10-16T08:30:48
2019-10-16T08:30:48
178,860,057
0
0
null
null
null
null
UTF-8
Python
false
false
1,388
py
import re # re.compile() # re.match() # re.search() # re.match().group(0) # return to Match object or None, if the first one do not match, fail to match and return None # re.match().groups() # return to Match object or None, when there is a match, then return the matched one #re.split() """ \d: for a numner \w: for ...
9717ae1685d9e0be1f4fca244bca7a10cb2aeb8b
c2cd846ea3d2947587a5bfe1ad8cfc419e0fc98f
/gui/app.py
c345b7be2ccd5925f810121a5350d92dcf4263aa
[ "MIT" ]
permissive
txxia/starbound-map
d5eac43add27076703a7918f574a32807b258f37
a0231cbc0d14aed072246061280084bb7eaf5d04
refs/heads/master
2023-07-19T20:05:10.729118
2019-08-08T01:19:10
2019-08-08T01:19:29
136,258,912
14
0
MIT
2023-07-16T23:45:16
2018-06-06T02:13:12
Python
UTF-8
Python
false
false
1,906
py
import glfw from gui.core import * from gui.widgets.job_overlay import JobOverlay from gui.windows.about import AboutWindow from gui.windows.mapcontrol import MapControllerWindow from gui.windows.mapview import MapWindow from gui.windows.usage import UsageWindow from map.renderer import WorldRenderer class Starbound...
504995a982f5fa75f2c1793615bc2e989fee7a9c
5663ad19d3773400f60da4e1cabcb3312894e62b
/linkedlist.py
a135fc32d30425de0164010c3654a25c10aef361
[]
no_license
maihan040/Python_Random_Scripts
a265a556f65d5f8b779b37dac1f68f089f4bf343
2c649c3668adcc3c155387b8c7c88a07b50af39a
refs/heads/main
2023-04-11T17:11:29.439860
2021-05-08T17:59:54
2021-05-08T17:59:54
360,765,179
0
0
null
null
null
null
UTF-8
Python
false
false
5,338
py
# #module name: linkedlist.py # #purpose: class definition for a linked list # #date created: 09/04/2019 # #version: 1.0 # ######################################################### # Import modules # ######################################################### import node ##########################################...
530008283c1d95b2bbd68b84c9530f2593eceb96
5de718a2ab00460f59621e1e3c100b37c0853f61
/env/Lib/site-packages/flask/app.py
b321c63f7c4bba6de67231bffec304fc04d9759d
[]
no_license
HenryVo31/Connect
3fd60d893edd1199663878b7b68505e57a410dd6
3783e5b4d6b58f19e37ccff66501cb78c35c1500
refs/heads/master
2023-02-13T14:21:12.692446
2021-01-08T21:40:16
2021-01-08T21:40:16
295,485,939
1
0
null
null
null
null
UTF-8
Python
false
false
97,137
py
# -*- coding: utf-8 -*- """ flask.app ~~~~~~~~~ This module implements the central WSGI application object. :copyright: © 2010 by the Pallets team. :license: BSD, see LICENSE for more details. """ import os import sys import warnings from datetime import timedelta from functools im...
87e809d46157208ddbaf6781030cfc9bc9ad8438
b3f1d75955f3ef15b4c55e4ad79d73b3797ec318
/django-backend/djangoapi/tests.py
448ec74fa89ea606bc66e2347098316c3cac403c
[]
no_license
christiancp100/VRecommender-3.0
da600008c5542fa10e4e10da110c7a9ea90f5494
9bfd0c1d4e1b536e70c3a32497c829fa099d22cf
refs/heads/master
2023-07-31T17:52:23.330726
2020-06-05T15:05:57
2020-06-05T15:05:57
269,671,457
0
0
null
2021-09-22T19:09:40
2020-06-05T14:48:43
Vue
UTF-8
Python
false
false
995
py
from django.test import TestCase from djangoapi import search from elasticsearch import Elasticsearch import requests class ElasticsearchTestCase(TestCase): def setUp(self): self.client = Elasticsearch("http://elasticsearch:9200") self.all_indices = self.client.indices.get_alias("*") def test_...
36e139de605165c83a26635746a0cfb6c93b6fe8
0b0ac289ed7fbb8e0012ca97ec6dc2f925be058f
/spray.py
edf293ad0f59e8809a8da962eadce4d5fdf18574
[]
no_license
KRHS-GameProgramming-2014/butterfly-game1
8b57dbb060a6aa6fd6539bed877551ba45e2a017
cf4c15b801354fff739bfb66e6f94ebaecb60dd4
refs/heads/master
2021-01-19T14:07:38.894097
2015-03-23T13:05:33
2015-03-23T13:05:33
32,520,307
0
0
null
null
null
null
UTF-8
Python
false
false
3,030
py
import math,sys,pygame class Spray(): def __init__(self,player): self.facing = player.facing if self.facing == "up": self.image = pygame.image.load("rsc/Projectiles/spray.png") self.speed = [0, -5] elif self.facing == "down": self.image = pygame.im...
e3275a76d2f0ad30f2d8dc25ef528b0dd70399d0
6f9a29946dc107cd44d88cf07c9d715ebe4208be
/source/services/music/music_service.py
61d9a993b50f6a801a8e9c6457c4172dae92f090
[]
no_license
cash2one/gongzhuhao
66bb14439a2265175bdd4b2f585456fcf47922bf
0596bcb429674b75243d343c73e0f022b6d86820
refs/heads/master
2021-01-18T15:38:37.258737
2015-10-28T09:13:33
2015-10-28T09:13:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,709
py
#encoding:utf-8 __author__ = 'frank' from services.base_services import BaseService from models.share_do import ShareMusic from utils.upload_utile import delete_from_oss from tornado.options import options class MusicServices(BaseService): def create_share_music(self,**kwargs): ''' todo:新增一首背景歌曲 ...
cc7d6f4efb3081ed341d4a57cc74f148f229edf1
58afbd547a9bfc0449c2e88a80ec0606950f5473
/AudioToText.py
05ad2e2f0ac84d6e3aadca5cb1bbd4de0339e837
[]
no_license
suvashsumon/SpeechRecognitionDemo
1c37c0c59049f62bbb37f730c1a4eb87817d7323
f7c0c95b7c05a52d81f0d172abd340402b7bdfb5
refs/heads/master
2022-12-03T19:18:55.872325
2020-08-19T15:53:20
2020-08-19T15:53:20
288,773,782
1
0
null
null
null
null
UTF-8
Python
false
false
355
py
# Author : Suvash Kumar # Website : www.suvashkumar.xyz import speech_recognition as sr recognizer = sr.Recognizer() audio_file = "speech.wav" with sr.AudioFile(audio_file) as source: audio_data = recognizer.record(source) print("Recognizing this speech ......") text = recognizer.recognize_google(audio_data) pri...
e64bb6ef3ac9bc9aa5a6be96f65b399ba60f4587
ee9d1da814af64064de49e777e6fe983f92e7621
/old/PSD_Plotter.py
0989cea9eff5da0e3e42fe57532f837a02d92550
[]
no_license
nm96/MSc_project_code
8506fab47b291cffb4a9558da52a486a4dca290f
7b8b02b6b5dce0c09adf8e5ca2c3f464c4e6eff1
refs/heads/master
2022-12-14T20:34:53.432790
2020-09-13T15:06:31
2020-09-13T15:06:31
274,463,955
0
0
null
null
null
null
UTF-8
Python
false
false
1,552
py
import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker from matplotlib import rc import sys import pickle # Set a nice font for the plots when on Linux if sys.platform == 'linux': rc('font',**{'family':'serif','serif':['Computer Modern Roman']}) rc('text', usetex=True) # Get input file fr...
1946bfe1caf51887dc9a1fb940cb12a1a1f3c769
11424be5ccc50cef7b421c01be8fbdf0e9a6df16
/AY2021/attacks/LengthExtension/live/length_extension_md5_live.py
b1d6612a6e266c2a7a2ee96f65c26065210df06b
[]
no_license
MarcoSapio/cryptography-03lpyov-exercises
1ff7b6e189af9bc4af4a85690b1f3ecbcb96527d
b9234c3a88f6e43def61fcad4acbfcc3ced03068
refs/heads/master
2023-05-27T00:25:46.641506
2021-06-10T14:08:40
2021-06-10T14:08:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,288
py
#!/usr/bin/env python3 # # Derived from: # # MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm # # Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All # rights reserved. # # License to copy and use this software is granted provided that it # is identified as the "RSA Data Security, Inc. MD5 Mes...
45158fd73f856d10753fdab1158bbd52cbc902c4
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/es_maml/policies.py
f901bf44a33836629722349dd7c0953bd0a94da7
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
9,160
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # 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 applicab...
b03184fca3a98c1dcef9e6620aab908a13251857
c883f6029e05bffa8b34795d017bdcd2975fdc31
/venv/Scripts/conch-script.py
103a4e88c1d8e9ad5f3b7b6a22e01b2a6baec516
[]
no_license
Solin1998/AnalyzeGdeltData
be54ee71db375dc70b9da7f067215adb4c44f2d4
0e2e340fbbb1af4708edce11e034ccd0ee9c0e4d
refs/heads/master
2020-05-15T17:21:04.497117
2019-05-16T01:53:30
2019-05-16T01:53:30
182,401,301
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
#!D:\scrapy_gdelt\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==19.2.0','console_scripts','conch' __requires__ = 'Twisted==19.2.0' 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.ex...
3daa552b34b92a1091491956c4ea13bf7738ada2
c48a8d16b609f51ec28ce735d69b3e71480d5fe3
/setup.py
bd5d830002ab82263ac25476fc7a82022a8d8806
[]
no_license
arii/pyrltools
c6d622761b7868a72e60c6cb5d35dbae2de1ffe1
45df3ecd4227529f3ce40fc9132c5dc42920fc5c
refs/heads/master
2021-01-18T05:00:58.103484
2014-10-16T00:18:14
2014-10-16T00:18:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
#from numpy.distutils.core import setup, Extension from setuptools import setup, Extension, find_packages import numpy setup(name = 'rltools', version = '0.1', include_dirs=[numpy.get_include(), '/usr/include'], packages = find_packages())
a8bbf6d28fbb80a9b6db4877e2b4247f033da24e
0412101e2cea53b471c0b79e531b30c10dbbeeb2
/read_statistics/migrations/0002_readdetail.py
8c7c4fc61bf78b165822c00ef689b9a741c41b5b
[]
no_license
Iceinmyvein/mysite
da42f142650741e740ac92be974915ee34643951
9ed82d63b605544d516869eb0f37cf862181d68a
refs/heads/main
2023-03-09T14:00:55.103640
2021-03-02T07:45:51
2021-03-02T07:45:51
342,994,221
0
0
null
null
null
null
UTF-8
Python
false
false
908
py
# Generated by Django 3.1.5 on 2021-02-08 02:18 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('read_statistics', '0001_initial'), ...
fa65a404c6278a30b5a8e1d2c8079c85f4f85dce
449f6888bff99d7e4fd86fa6ffa6b3316084e34e
/Solutions/018.py
b91be816ebd66827c26c6ae1526c59a9b3b118b9
[ "MIT" ]
permissive
All3yp/Daily-Coding-Problem-Solutions
e94679a5858b8a83ffe58d14b824fe80de21a694
199b9606474edb45bd14b20b511b691ada437586
refs/heads/master
2023-03-18T21:06:30.675503
2021-03-13T03:52:31
2021-03-13T03:52:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,622
py
""" Problem: Given an array of integers and a number k, where 1 <= k <= length of the array, compute the maximum values of each subarray of length k. For example, given array = [10, 5, 2, 7, 8, 7] and k = 3, we should get: [10, 7, 8, 8], since: 10 = max(10, 5, 2) 7 = max(5, 2, 7) 8 = max(2, 7, 8) 8 = max(7, 8, 7) Do...
3e563019b3d7db6d3ec9a95f54d4b81a39d0a957
121ae77d5a4410d1a74c4d2abb35910fc1ee501c
/tests/mock_emr.py
988e8644763eee5ca08f517ccd3d29d747429469
[ "MIT" ]
permissive
warrenronsiek/emrcli
6baee85a27c3106cc55ca31feccfb804f6c3d17c
0874ae40be480e9f274867bc526fb6757b3db51e
refs/heads/master
2020-08-02T23:01:45.357969
2019-05-10T19:24:55
2019-05-10T19:24:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,895
py
from datetime import datetime def mock_emr_client(*args, **kwargs): class TestEmrClient: @classmethod def run_job_flow(cls, **kwargs): return {"ResponseMetadata": {"HTTPHeaders": {"content-length": "1624", "content-type": "applic...
88670494c7efdc1374cdfb661ffb1ffe4df35dbf
50e8f9a4b25d543932d0a43656c12ec0b31fe87b
/random_seq.py
00513e85ca16590a6737c09d71f90fbf6047b890
[]
no_license
1gnatov/NRSAAM
b95e5f5d621863e73117d3014c67dc34bf1de40b
752cab91455bfcbda7f54f9f20bb336ea18daa02
refs/heads/master
2016-09-06T17:18:02.471806
2013-10-30T21:01:55
2013-10-30T21:01:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,449
py
""" idea = using lists of nuc_seq with separate nucl as lists ['G'], ['A'] etc. each round we look at unamb nucl - count lenth of this letter in dict{'D'=[['A'],['G'], ['T'], ..} and multiply starting lists to the len(dict['D']) and appending letter-lists from dict at the end all lists are joining with ''.join() restr...
e7bb53eebb76b023b8e96330bb939ceaa0ee7d5e
5e3fb75d905481334177acba84f1e58839ecbab0
/euler92.py
1b58d9fa322e96f80ffc01fe7d09911cf2a5fc10
[]
no_license
fpgmaas/project-euler
e850acc570d2adc0cb23f9f92775c53592867313
738d13b21cbb156af874710b6d7269d963056000
refs/heads/master
2021-09-14T02:01:45.900043
2018-05-07T12:22:08
2018-05-07T12:22:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
def func(x): y = list(str(x)) return(sum([int(n)**2 for n in y])) total=0 set89 = set() for i in range(2,10000000): x = i while x!=1 and x!=89: x = func(x) if(x in set89): x=89 if x == 89: total+=1 if i<600 :set89.add(i)
ca80285ee2929ac20cf43ad7fff92fb60b9efdea
f81c8e4d702d5c88af92c691d35b6f9c0d2f4390
/backend/dark_waterfall_26026/wsgi.py
e5039146e98431c055564aea9a661c25a52173fd
[]
no_license
crowdbotics-apps/dark-waterfall-26026
bdfd44240dae3c1ad20ed8b7a8da701308db5958
95f9eda959b6d21778ff59db2c5c9a585d6a670c
refs/heads/master
2023-04-12T17:31:25.091727
2021-04-29T19:14:56
2021-04-29T19:14:56
362,922,208
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
""" WSGI config for dark_waterfall_26026 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault(...
60647221ba6f895f8718efe359f5473970104ffa
4cca71c31c7f89a219634d79c21404ca4eabe436
/d2l_thrive/base.py
c3c0a4b0adc980e897da0d5958bd97a262716935
[]
no_license
ucalgary/d2l-thrive-python
1a03fb99d5e0d370f3a1349cb0d4231895a5e19e
8c22d019c202aaa997c7333cf6711338c84621ee
refs/heads/master
2021-01-10T02:02:58.076443
2018-03-12T18:04:42
2018-03-12T18:04:42
43,977,081
0
0
null
null
null
null
UTF-8
Python
false
false
3,485
py
#!/usr/bin/env python # coding=utf-8 import os import sys from couchdb.client import Database from couchdb.http import ResourceNotFound, ResourceConflict class BaseObject(object): def __init__(self, args=None): self._args = args or sys.argv[1:] def run(self): """The main runloop. Scripts should call this me...
ae7a1e257d3423cfd604b1e6c27ffe19ee1012f5
6b3e8b4291c67195ad51e356ba46602a15d5fe38
/rastervision2/examples/utils.py
d521e74560b2de4494f0d0ff4344208ee3e221b0
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
csaybar/raster-vision
4f5bb1125d4fb3ae5c455db603d8fb749221dd74
617ca15f64e3b8a391432306a743f7d0dfff352f
refs/heads/master
2021-02-26T19:02:53.752971
2020-02-27T17:25:31
2020-02-27T17:25:31
245,547,406
2
1
NOASSERTION
2020-03-07T01:24:09
2020-03-07T01:24:08
null
UTF-8
Python
false
false
4,864
py
import csv from io import StringIO import tempfile import os import rasterio from shapely.strtree import STRtree from shapely.geometry import shape, mapping import shapely from rastervision.core import Box from rastervision.data import RasterioCRSTransformer, GeoJSONVectorSource from rastervision.utils.files import (...
15b30860d116d827c4c3de9db43e689dffc3d70f
6c6531b6f93817a2720ff9b78fce6ad4d5bb500c
/PericiasMedicas/company/migrations/0007_auto_20191230_1711.py
5603642c2f74d64ccb13c8e644b23e6a6f6f2902
[]
no_license
massariolmc/periciasmedicas
6d3c142a5f5e308b049d57b30d698526c8aecda3
9b5b0e192bf51bb1b297f0983b2a0ab0c24b31b1
refs/heads/master
2022-12-08T11:13:10.981476
2020-02-21T23:32:44
2020-02-21T23:32:44
235,667,801
0
0
null
2022-11-22T05:15:44
2020-01-22T21:12:16
JavaScript
UTF-8
Python
false
false
472
py
# Generated by Django 2.2.7 on 2019-12-30 21:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('company', '0006_auto_20191230_1629'), ] operations = [ migrations.AlterField( model_name='company', name='state_regi...
c801f423eba575edaad8ae847ba8affbbb0388d1
7e2214619d5948d0d5f7e22f46dee679d722d7b3
/dealOrNoDeal.py
309ffe88c017c45a4345d69b454a2286181be26f
[]
no_license
udwivedi394/misc
ef6add31a92e0d2d0505e8be016f0a868a6ac730
64dffb5db04c38465fffb415bec1d433b1caa8f6
refs/heads/master
2021-09-09T06:16:32.124586
2018-03-14T05:10:55
2018-03-14T05:10:55
116,167,845
0
0
null
null
null
null
UTF-8
Python
false
false
1,934
py
#Nest away import sys def dealorNoDeal05(A,B): lookup = [B-i for i in A] maxi = 0 for i in xrange(1,len(lookup)): if lookup[i] >= 0: lookup[i] = lookup[i]+(lookup[i-1] if lookup[i-1] >=0 else 0) maxi = max(maxi,lookup[i]) return maxi def dealorNoDeal(A,B): lookup =...
e2c308aeae8a487bcc9a87178325d76964ca04fa
1cc11e1ee5bb3c39e6a61853a1913ef9aef60e5d
/neighbors.py
e53f3722ab3024e56282e997f61f39434cc68259
[]
no_license
hzc0097/machine-learning
a21dce5b1fe4838baa84147af10542401f2186e0
af4929c133a0c6f5c17531540885772fca0ebc72
refs/heads/master
2023-07-31T17:05:34.013712
2021-09-03T16:21:30
2021-09-03T16:21:30
402,630,292
0
0
null
null
null
null
UTF-8
Python
false
false
2,790
py
import pandas as pd import numpy as np import time from sklearn import neighbors from sklearn.model_selection import train_test_split from matplotlib import pyplot as plt import pickle def singleRunKNN(): # read dataset df = pd.read_parquet('fullDataPASFaster.parquet') df.drop(['summonerName'], 1, inplac...
10e96bc785ac19c2efd851c350ebe01d79ef24e4
7cc57bb8bf0f7219e2ed0b05fadc271a7b20bf0e
/DEVKITv1/oled/main.py
39341702169b799949baca2e15570e1b7d4e837e
[]
no_license
cloudymike/micropythonexamples
3bc03bccc1d3056f81e4d254b3f7a159648d85f1
953531451d89fb20ff81ceeef74d8bae6db3d4f3
refs/heads/master
2023-08-19T01:50:23.763464
2023-08-07T15:52:54
2023-08-07T15:52:54
200,582,793
0
2
null
2023-09-14T02:32:25
2019-08-05T04:35:00
Python
UTF-8
Python
false
false
1,128
py
# Complete project details at https://RandomNerdTutorials.com from machine import Pin, I2C import ssd1306 from time import sleep import os from time import sleep_ms import gfx import bignumber # ESP32 Pin assignment i2c = I2C(-1, scl=Pin(22), sda=Pin(21)) # ESP8266 Pin assignment #i2c = I2C(-1, s...
139b190ed31d88e56031de11be07c1f4fe9af5b7
9785b5c8b997bc0241e8520b77bc7078d4c29029
/2018/picoctf/authenticate/exp.py
83476da0dbc034dd4f749350c757a078311fe650
[]
no_license
lucyoa/ctfs
4619571201bece8d7a6545f0cdc8291c153b6ef2
0726ee26052eabc5ee854fd976d0905d40668e8d
refs/heads/master
2020-07-31T01:49:00.736206
2020-06-25T19:46:53
2020-06-25T19:46:53
210,439,562
0
2
null
null
null
null
UTF-8
Python
false
false
268
py
#!/usr/bin/env python from pwn import * # r = process("./auth") r = remote("2018shell.picoctf.com", 52918) r.recvuntil("Would you like to read the flag? (yes/no)\n") payload = ( p32(0x804a04c) + "%11$n" ) r.sendline(payload) print(r.recvall()) r.close()
a88bad32c4bc419dba4eec0c3f96db48fa505f5b
149273fc2e0dd4b86f7eadc59a548e6caf154288
/experiments/run_experiments_tSNE.py
113b171133f943f80100d908c0283e27da55947a
[ "Apache-2.0" ]
permissive
Liyubov/PaCMAP
65eadb48c45187a8c8515fb626fd2ad63af0f2b2
91479ba60737a47eaa57dbd52fcac155821e9269
refs/heads/master
2023-08-02T15:23:00.580215
2021-10-09T02:31:10
2021-10-09T02:31:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,478
py
import FlowCal import json import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn import manifold, datasets from time import time from MulticoreTSNE import MulticoreTSNE as TSNE from sklearn.decomposition import PCA from sklearn.datasets import make_swiss_roll, make_s_curve def data_pre...
3482043d0c0a812ef98f1ffb1e3a0e6e30a7ab0d
a35a56e1908a483be474bfc9d90de17ed62572c1
/flights/migrations/0001_initial.py
13f3fd70ddd1878edc1e1c249d243c09089d3a24
[]
no_license
glezluis/ca-reango
38156c189933a23916060d17af2178d40d37ebe3
ce3747796fe3887db531bf30f167695ee2a3346d
refs/heads/main
2023-06-05T13:34:31.405927
2021-06-29T03:20:44
2021-06-29T03:20:44
381,147,715
0
0
null
null
null
null
UTF-8
Python
false
false
664
py
# Generated by Django 3.2.2 on 2021-05-13 04:27 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Flight', fields=[ ('id', models.BigAutoFiel...
811fd686f5129b674ddd6d46c77719477b3fb263
b2eb8af13e5532fc5c613bbd68af97fa5938b758
/beginner level/count digits.py
084171349b4c07bb3c473b3a1c85a5dcdc51e228
[]
no_license
rahasudha2910/python-programming
81964ffd61c6a814e22543a9315b05eca028fd59
f3cfbb9a3d368cd17fbd59c6ce4affa83fe36585
refs/heads/master
2021-04-06T00:24:45.160387
2018-05-03T06:16:38
2018-05-03T06:16:38
125,213,347
0
0
null
null
null
null
UTF-8
Python
false
false
110
py
count=0 number=int(input()) while(number>0): number=number/10 count=count+1 print("numer of digits:",count)
a955aa2adcf7d72b65e3af9165bf022c5a057ec0
9d29b302cca89a4ad816f99f1d3c708862dd4c0b
/client.py
73c58c8f77fdac730b4bde122ffd76801a4ac751
[]
no_license
Manoj-M-97/Flight-Booking-System
a28c57c770ea06cc4c8704dbddc2740ec3d86fcd
649d74c63d73a24a3fd97406008903f806ffa34b
refs/heads/master
2020-03-22T04:02:38.788029
2018-07-02T16:48:21
2018-07-02T16:48:21
139,468,945
0
0
null
null
null
null
UTF-8
Python
false
false
1,361
py
# Python program to implement client side of chat room. import socket import select import sys server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) if len(sys.argv) != 3: print "Correct usage: script, IP address, port number" exit() IP_address = str(sys.argv[1]) Port = int(sys.argv[2]) server.connect((I...
feac86219e5f5519a0cbe579616b2954b9665b74
bd185d3a4221c61f16fa52e282ce3ae5fcca1007
/node_modules/node-sass/build/config.gypi
479603f613e38a9dc4f31a142cdb320a66bda473
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
vijay-vadlamani/wiki_viewer
74f2f21b495e30333479d41d167493c329ff4e78
bbb5755ade4a85bf6255f99f3dc4c00d5fc77773
refs/heads/master
2020-03-18T10:32:54.152037
2018-05-23T19:56:26
2018-05-23T19:56:26
134,618,885
0
0
null
null
null
null
UTF-8
Python
false
false
5,270
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "coverage": "false", "debug_devtools": "node", "debug_http2"...
6035dce05ab1ceb238455998bedfa82823ff466e
3471728291ab015e6780763218f96a369897f5c4
/imagefactory_plugins/OpenStack/glance_upload.py
c2b28347f49d65700b6205043a0e6637b27930f4
[ "Apache-2.0" ]
permissive
zyga/imagefactory
913fb4a987a746cff72f3074e0e338e896ac2e65
b2a57168f1ef6608aedad73ed7ccd1e3626b2967
refs/heads/master
2020-03-24T07:33:43.270977
2018-06-26T19:37:55
2018-06-26T19:37:55
142,568,326
1
0
Apache-2.0
2018-07-27T11:20:36
2018-07-27T11:20:36
null
UTF-8
Python
false
false
1,452
py
# Copyright 2012 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
92c2d34affd7b5ef8b641035988995b7157e86b1
ecb9a783694300b2ea5f77388b2d314995680808
/src/iter.py
3c97589dee843e70e392c3c7af4c7b23240a0335
[]
no_license
yaoyuanyy/python_demo
0ee5520027d2c406e320f25a0327b7a81155bab8
5a50fe900e1a254a17bbb623cb2fd9f8fbdb7079
refs/heads/master
2021-01-17T16:08:30.412766
2017-02-24T06:39:59
2017-02-24T06:39:59
83,010,359
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
import sys list = [1, 2, 3] it = iter(list) print(it) while True: try: print(next(it)) except StopIteration: sys.exit()
24e8923ad779dc2cb7b8fd60ffb503312ae4b452
db259ea23fabb6bdddfc26ad6d3c8fd852d6a9fc
/python/case_test.py
19e755496002be90aee41ca9c49e5b57c53883ef
[]
no_license
bizzcat/codeguild
f5333996d80d1bb81373746f3368df5c72c9558d
08d87d55107466dca8c6d7e80a2bd61ecbb95a7c
refs/heads/master
2020-12-25T16:54:03.717775
2016-08-10T17:04:17
2016-08-10T17:04:17
55,080,415
0
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
# Create a test module for your case change program # import your case change program # create a test case class # write a test for your snake case to camel case functions # run the test via PyCharms testing run config # # * test your other transformations in the case change # * test one of the tic tac toe ...
c2835b1f8a3632284eca779d2dc1f17bfaf30295
6d501ea43b1a52bf4af44ae5677eba8b928ffec3
/directory/signals.py
e1d22e0a309d7321f2db634715374ef5fabc6e4f
[]
no_license
mozilla/hive-django
78d5e7bf687e2311a41d2b6d555b9671c4270b4d
bf95dce0af0148ecacde2256d235788fd79c7d5e
refs/heads/master
2023-08-27T12:47:36.977377
2016-05-04T21:12:47
2016-05-04T21:12:47
55,106,672
0
2
null
2016-05-04T21:12:47
2016-03-31T00:12:58
Python
UTF-8
Python
false
false
1,684
py
from django.dispatch import receiver from django.contrib.sites.models import Site from django.db.models.signals import post_save from django.contrib.auth.signals import user_logged_in from django.contrib import messages from registration.signals import user_activated from .models import City, User, Organization, Membe...
e0764768d0223253f5b731c708b8922ab74d8968
5ca0124a85bae76c73643246372898823345d5a9
/pc_smac/pc_smbo/pc_smbo.py
1f7aabbf310d2acffee21d378336e2e4064140b0
[]
no_license
jtuyls/pc_smac
8ebdd76e4ea2ce837dfd7d03d37f446a86094c57
0a6e8719438a3f510e0aaeda19c14dd8005d8c65
refs/heads/master
2021-08-14T18:15:00.162943
2017-06-10T10:52:56
2017-06-10T10:52:56
76,661,120
0
1
null
null
null
null
UTF-8
Python
false
false
13,167
py
# This file is heavily based on the pc_smbo file of SMAC which can be found here: # https://github.com/automl/SMAC3 import itertools import math import numpy as np import logging import typing import time import random from smac.optimizer.base_solver import BaseSolver from smac.epm.rf_with_instances import RandomF...
7a585f12998db78082bbf1742eaaebe96554b0df
54a6a6c07276cdb6436d833243e3a15d6742cfe5
/test/test_loop_snap_stop.py
1cee41b933b33232cc7c1c6a13c1f49623651a8b
[]
no_license
soleil-ica/Lima-camera-imxpad
6e17028dbe18a382c4e084426230da04bba127b0
cf1767b9058f43cc44f807c65c4b5e8876b27d60
refs/heads/master
2023-08-29T09:48:43.274381
2023-02-15T18:00:28
2023-02-17T14:58:09
61,614,724
0
4
null
2022-05-23T16:05:21
2016-06-21T08:05:19
C++
UTF-8
Python
false
false
4,351
py
#!/usr/bin/env python ######################################################### #Arafat NOUREDDINE #2014/11/19 #Purpose : Test LimaDetector state ######################################################### import os import sys import PyTango import time import datetime proxy = '' #---------------------------------------...
f264cbe12ec190255d0fe7fb1219395eaff22bc8
743c3b0cd875fe294fc15b96de678c93ecd8ab27
/foruser/myuser/urls.py
838fc3a9e5c5fdfd03f5f634b2ec6fe3d8967638
[]
no_license
yudian03/LOGIN
f3cc760ee25a34ce7b939de5475fc7f7097b59a3
3db6278bc15be6244187d9744f3bdf562c7d409f
refs/heads/master
2020-05-01T04:30:17.146513
2019-03-23T10:51:11
2019-03-23T10:51:11
177,276,374
0
0
null
null
null
null
UTF-8
Python
false
false
208
py
from django.urls import path from . import views urlpatterns = [ path('register/',views.register), path('login/',views.login), path('home/',views.home), path('logout/',views.logout) ]
0de2dcdd25e4cabb3723ac7cb45dbf917637dc3b
909b93b8df2a79a2ba7567587604d764a34281fc
/bot/app_streamer.py
9f885eb613ee7ad8498df4d050264a4778119448
[]
no_license
ArtemZaZ/PultBot
f321282534c02789ac5b868844da15fe4614b9ac
d23b867eb7eda78b006fa32f503148da2a4d6d7f
refs/heads/master
2020-03-07T05:52:29.748385
2019-12-06T12:23:14
2019-12-06T12:23:14
127,307,917
0
1
null
null
null
null
UTF-8
Python
false
false
13,613
py
import gi gi.require_version('Gst', '1.0') from gi.repository import Gst import sys import threading import logging import numpy as np from bot.common import * HOST = '127.0.0.1' RTP_PORT = 5000 class AppSrcStreamer(object): def __init__(self, video=VIDEO_MJPEG, resolution=(640, 480), framerate=30, ...
1b1ab3e24221ed687e2f7b52f6c610a97ea72193
2a4aced6789a09b64caead20fd231ed104f4583b
/capture/ximea-usb3/python/openCV/example_openCV_video.py
d5ce3a8d0bd1f3d22183a1ff0102b73f72fcc20d
[ "MIT" ]
permissive
ruedijc/jetson-cam-utils
8dd2a8fa48b390b940b938c9a0519df5599ef63d
29fb26892cc150f9679ad7d5c3220e38f733ab04
refs/heads/main
2023-04-27T12:22:09.079527
2021-05-06T16:54:33
2021-05-06T16:54:33
329,092,484
3
0
null
null
null
null
UTF-8
Python
false
false
1,300
py
from ximea import xiapi import cv2 import time #create instance for first connected camera cam = xiapi.Camera() #start communication print('Opening first camera...') cam.open_device() #settings cam.set_exposure(20000) #create instance of Image to store image data and metadata img = xiapi.Image() ...
c3b2ccf3279e3d6c131b50d1a8a089fc8ee00b32
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/BizListDataInfo.py
5f874dfae528b4b6592ad1306c025ec59eb0239e
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,206
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class BizListDataInfo(object): def __init__(self): self._code = None self._name = None @property def code(self): return self._code @code.setter def code(self, ...
60a6d3c470672d39fae27e61c518fbf33c37c655
0d2a66d7f04c11f7ac655ffeee855def9f3b406d
/setup.py
d70de94d5c6d3ccc808c1c53110d146da07a1559
[]
no_license
lmbeccaria/python_network_tests
dd7d46850d0a440d95c36edbab78c94d3263f10a
18b0ba47399abd2f4aa736c1bc9095d90f3c5339
refs/heads/master
2016-09-16T04:23:00.752284
2014-08-07T01:32:05
2014-08-07T01:32:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description':'Network Tests', 'author':'Luis B', 'url': 'URL to get it at.', 'download_url': 'Where to download it.', 'author_email': '[email protected]', 'version': '0.1', 'install_req...
[ "monkeyboy@intiwasi.(none)" ]
monkeyboy@intiwasi.(none)
4bb8afa90a9835e931209b939aa2803521958601
2ee49dc0b16ddfd61bf4b2453edc7f733101a7fd
/bench_pyfftw_thread_4.py
d57613b2979e1a1f6f798571a1c6955caf1df2a8
[ "MIT" ]
permissive
zhouxzh/Jetson_nano_stft_benchmark
1e004f7fc53ff2ba1cfba60e9e00a559bd49e298
ffa97984f95b9862ac2a10b8459bb7ef241c6c72
refs/heads/master
2020-05-19T02:25:37.344384
2019-05-03T16:04:06
2019-05-03T16:04:06
184,780,356
0
0
null
null
null
null
UTF-8
Python
false
false
2,541
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Computes the spectrogram of a test signal using numpy and fftw. Author: Jan Schlüter """ import sys import os import timeit import numpy as np from pyfftw.builders import rfft as rfft_builder from testfile import make_test_signal INPUT_AS_FLOAT = False def spec...
98616241fbdcb931bae105f55cdfe34251a2d974
26408f11b938a00f8b97a3e195095a45a12dc2c7
/sneeze/Player.py
e1aecbdfcc7127f7257b5d20b68035b164acb822
[]
no_license
cz-fish/sneeze-dodger
a7ea25e9267d408e8f46a9fb7a988d52dca8bd8e
4fd333345d1f7d82c92ddcb15f18077362766844
refs/heads/master
2022-07-07T01:39:06.162125
2020-05-18T08:01:57
2020-05-18T08:01:57
255,090,774
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
from sneeze.Actor import Actor from sneeze.Sprite import Sprite from sneeze.Types import * class Player(Actor): def __init__(self): super().__init__() self.sprite = Sprite.load('guy') def move(self, inputs: Inputs, collision) -> None: self.update_speed(inputs.xvalue, inputs.yvalue) ...
9b104ec52e6584f2efd846c1fb6016f0c5fbebfd
f3a714a064b12ce957f496c97200d5b0c31f631e
/remove_current.py
de3697d60276efd9f98f89abb276c2b081da2181
[]
no_license
krachbumm3nte/playlistAdder
af06d6d0de731f42cb68cf5acf7d29a809d13578
7caac884101b59354a0aa2928b9f8089a3c0cdb9
refs/heads/master
2020-05-04T01:32:07.552438
2019-11-30T18:09:52
2019-11-30T18:09:52
178,907,025
0
0
null
null
null
null
UTF-8
Python
false
false
802
py
from functools import partial import config from adder_utils import * def removetool(master, list_id, list_name, song_id, spotipy_instance): removefunc = partial(remove_song_from, song_id, list_id, spotipy_instance, list_name) query, query_label = continue_query(querytext=f"remove this song from {list_name...
[ "johannes.gmx.de" ]
johannes.gmx.de
57592e74791a7c3a6e0010ee1083835391f9c27f
530ce8ce026cf0ed96184e0739fa5fd109dd0b76
/ENotePadAlgorithm/strFind/boyerMoore.py
a115e4e07f743af7eea5f1ea3974edd50d020901
[ "MIT" ]
permissive
xioacd99/EnhancedNotePad
0c41eb64dc4ddb57975d521a6320414d0ed0f0fd
b95da1c4d957061ad60015f3b9ab5c445b5a1bc4
refs/heads/main
2023-07-13T13:47:50.804090
2021-08-25T15:53:55
2021-08-25T15:53:55
388,513,669
0
0
null
null
null
null
UTF-8
Python
false
false
6,319
py
import os # import time only for performance test import time # 单词结尾符号/单词分隔符 wordSplit = [',', '.', ':', '"', ",", '\n', ' ', '?', '!', '(', ')', ',', '。', '‘', '‘', '“', '”', '?', '!', '(', ')'] class BoyerMoore(object): def __init__(self): super(BoyerMoore, self).__init__() self.b...
8aa66e9bfbe8bd636da164d691be14c9753a0cf6
2e318c8fdbb8e8826937ffbf1eede7034a47960a
/GazeGAN_using_CSC/train_old1.py
3a4c6f4bdfa7d3250a264ab2b5f775c39e7fdeb4
[]
no_license
chenkeshuai/Sal-CFS-GAN
e06efbe5e49360c8f5634704c487483795c10d31
8ae0fb77efff503190bcc8b6333c1d21ea1bfbce
refs/heads/master
2022-06-06T01:18:00.664722
2020-05-06T10:54:11
2020-05-06T10:54:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,507
py
### Copyright (C) 2017 NVIDIA Corporation. All rights reserved. ### Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode). import time from collections import OrderedDict from options.train_options import TrainOptions from data.data_loader import CreateDataLoader from...
79ed0714d0c43d90dfdd81ec91c54c3b87f9b879
dbf65af61e62e9617d2bbc35fba625e005aed863
/ir-wuggy/dtw/plot/plot-dtw-profile.py
a99b386410fe9fae83ad6fbbda046e4a8bda24f5
[]
no_license
chorowski-lab/zs2021
bef261073d8a26bee62576ccf107e163ecf9fe89
bbcb97903aeeed861376a336a8af8f74a0d03ded
refs/heads/main
2023-06-19T01:01:51.904899
2021-04-08T19:52:34
2021-04-08T19:52:34
345,989,211
2
0
null
null
null
null
UTF-8
Python
false
false
5,993
py
# %% import numpy as np import os import pathlib import argparse import pickle import yaml import pandas import matplotlib.pyplot as plt # %% parser = argparse.ArgumentParser(description='Compute the pseudo log-proba of a list of sentences') parser.add_argument('config', type=str, help='Location of the .yaml config fi...
8ffe39ec8cedaeb1bdc48e7cdab9d9db8a9f34ba
30013757093b79e83211fae3f6e2929d402c49e2
/tpred/mine_twitter_by_followers.py
13af02cd5b3d2b4a132a1d510a3682536fdebf06
[]
no_license
schetudiante/tpred
01031252046b566714878c3af7d870b4cec1b1e7
773d70d81d4e1478d641bd5f5f7ee3f4b6250bd8
refs/heads/master
2021-05-30T19:56:04.196543
2015-12-23T23:59:36
2015-12-23T23:59:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
import t import tweet_mine res = t.api.friends.ids(screen_name='amirpc')['ids'] ids = [str(twid) for twid in res] it = t.stream.statuses.filter(follow=",".join(ids)) tweet_mine.mine(it)
0df491aaf04bd5efd3e1d19660af119f72bb10a1
93a959b0458bcdb60d33a4504f483078a78a56b6
/CwnGraph/cwn_annotator.py
7b58fe2e65d190fd9571cc70e6a5695b91cfcc2f
[]
no_license
kylecomtw/CwnGraph
a82d763a645c3342502274e6760cb63593f23d42
86ddb17de548a61c57f925fb2d783467431db18b
refs/heads/master
2021-10-24T10:00:19.913420
2019-03-25T04:45:36
2019-03-25T04:45:36
84,843,165
3
2
null
null
null
null
UTF-8
Python
false
false
5,050
py
import os import json from datetime import datetime from . import cwnio from . import annot_merger from .cwn_types import * from .cwn_graph_utils import CwnGraphUtils class CwnAnnotator: PREFIX = "annot/cwn_annot" def __init__(self, cgu, session_name): self.parent_cgu = cgu self.name = session_...
11c22d73f60539e4d366a803c0661c8593aee320
d889769f22d95d686ffce6564b1a5529e462d770
/utils/get_data.py
6bfb524940602e4ebf825f56b25e00790700921d
[]
no_license
ycpan/HbaseOperation
2051ad1992ca3dd57d8a180d88b56c46549e28ae
15f470fad590d9f4635d5b38407f8f739bd621f3
refs/heads/master
2022-02-13T05:15:18.745507
2019-07-09T02:51:40
2019-07-09T02:51:40
120,189,360
0
0
null
null
null
null
UTF-8
Python
false
false
8,498
py
import pandas as pd import pickle import happybase import struct import numpy as np import sys # from influxdb import DataFrameClient import re import time from datetime import datetime, timezone, timedelta # from utils.conf import sql_db_configs def get_csv_data(path, header=None): """load padas dataframe from...
effa795ba011f8dc2f6b6da9ac6642b41478c955
ac2567d2be46412f10a47aba6b062347fb831ec9
/twitterTest.py
d48b78dc469f066c5c8a5c8ce76e0454cb493cd7
[]
no_license
rhymg/TwitterScraping
e9e8d4098ba4d28cdb0d17f76de98a81c08432aa
769effdbdf83a170c13d2cac51ca5df7956e2dab
refs/heads/master
2022-11-24T11:46:46.637370
2020-07-18T19:19:17
2020-07-18T19:19:17
280,906,432
0
0
null
2020-07-19T16:34:18
2020-07-19T16:34:17
null
UTF-8
Python
false
false
531
py
import GetOldTweets3 as got; word = 'fuck'; f = open("usernameTest.txt", "a"); tweetCriteria = got.manager.TweetCriteria().setQuerySearch(word).setMaxTweets(10); tweets = got.manager.TweetManager.getTweets(tweetCriteria); for tweet in tweets: print(tweet.text + ' BY: ' + tweet.username + '\n'); if wo...
0d45b58ea30bf2d1410cade9e95116631c1f3d7b
79dc13c4b3a6d7cf2ab53312e95493d57d99f8a6
/hw4/all_copied_features2
76911544a27ec4eccfcaafb70bd8a42d29505018
[]
no_license
vrobison/sp2015.11-731
311198e35f069f5f22dc7ee3abf2e98749215be8
972f3b5292c41f81b12b0c2364a2936b78c55390
refs/heads/master
2021-01-17T23:55:05.067828
2015-05-08T15:03:34
2015-05-08T15:03:34
29,400,593
0
0
null
2015-01-17T18:14:08
2015-01-17T18:14:07
Python
UTF-8
Python
false
false
11,771
#!/usr/bin/env python import sys import argparse import numpy as np from scipy.sparse import csr_matrix import random from collections import defaultdict from utils import read_ttable def dot(f, w): s = 0.0 for k in f.keys(): s += f[k] * w[wvocabulary[k]] return s def updatew(wi,xcy,ynot): #x,prev,next,y,origf...
99c78b4857e3bb376f9341fe3607dec6bb56d5d2
85bfd24a172bb4b35ff373599fca4096c9c4c529
/testinfra_tim/test_service.py
0e7f0d3101898495b917efb0ccfa88dfcdce58d5
[ "MIT" ]
permissive
scaleway/tim
503a0e7726da8e97636a09e5dcaa792bbd701a48
6bfa6113fdd2b18b1facee47353643544457f1f4
refs/heads/master
2020-12-02T07:57:05.616645
2017-09-08T15:29:50
2017-09-08T15:39:15
96,750,851
1
1
null
null
null
null
UTF-8
Python
false
false
2,419
py
''' Copyright (C) 2017 Scaleway. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. ''' from functools import reduce from .tooling import yaml_params, listize, map_sum, params_warn def _get_services(params, running=True, enabled=True): """ T...
ef7e4cf3a4bc9c1068b4866be245fb998a0ef38f
f8101363fff2bec14a152c3ba6d4d7f5e2e73c0a
/filehandler.py
00455f9644e5cda9f545d150b167edf7f9015dc4
[]
no_license
Adsime/TDT4173-A5
25e89ea4489454587a805bc5b58387c6c5bdf929
66d2547503c900b9d3e84d41c408fbc6243cdb31
refs/heads/master
2020-03-14T17:07:40.041536
2018-05-04T19:56:00
2018-05-04T19:56:00
131,712,698
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
import matplotlib.image as img from image import Image as dimg import numpy as np letter_path = "./data/chars74k-lite/" detection_path = "./data/detection-images/detection-" extension = ".jpg" def read_letter_images(letter): letter_images = [] try: i = 0 while True: image = dimg(i...
a0fde5ce97072b01e205d1e9ff8227da865e77ae
44d277aef0a9b2a8a4d2b8bd20e6402fab13f9f4
/Fantasy CricketTeam Prediction/WebApp/dbms/new/database.py
57d980b2785e184c42ad0026d48e920520406e35
[]
no_license
pikachua7/Fantasy-Cricket-Team-Prediction
d6eeb8c8a9bff0a8d480e9f6b2b877075f78c6ae
d991264a4d3f8f33e106e5a43b55f853018af51d
refs/heads/master
2023-01-05T14:12:56.440338
2020-11-07T17:38:28
2020-11-07T17:38:28
310,897,232
0
0
null
null
null
null
UTF-8
Python
false
false
3,841
py
import pymongo # from new.views import team # teams=team myc=pymongo.MongoClient('mongodb://localhost:27017/') mydb=myc['ipl'] class batsman_gen: batsman=mydb['batsman'] def generate(self,teams): array=[] if len(teams)>=2: query1={'Team':teams[0]} query2={'Team':teams...
bd171b67cb9363e6bad907a04d5ab5e0bc909104
c16d80fa4837ca849056dc1e66191825037969ed
/gptneo_piqa.py
d804ccdcc15115883cf1b8dceb7408a4520b8371
[]
no_license
vivekvkashyap/gpt2-commonsens
c289819e440b52dfb7390c614494cd85437cd1c3
f5d884bcf27c2bd2cb3cf8fa55f6151d12e17b9d
refs/heads/main
2023-06-25T17:37:08.203910
2021-07-27T05:06:33
2021-07-27T05:06:33
389,845,411
0
0
null
null
null
null
UTF-8
Python
false
false
9,707
py
import jax print(jax.local_device_count()) import jax.numpy as jnp import flax import flax.linen as nn from flax.training.common_utils import get_metrics,onehot,shard,shard_prng_key from flax.training import train_state from flax.metrics.tensorboard import SummaryWriter from flax.training import checkpoints from data...
35b215ad4099e666c114c8229187f42384aed2ee
62dcbce52fd9b47f97c8bd8df2f05fbf614d1abd
/ttvdb/tvdb_api.py
0a08be8cfb5645e6e03b9e9c4eb10664ed74cfbc
[ "MIT" ]
permissive
namgar/mythboxee
e7007e435eea5cd5c74fd31e422bf2a259c6168b
80129d47a85ad867bc1687958ba23387c705c789
refs/heads/master
2021-01-23T20:22:48.516873
2010-11-23T02:05:04
2010-11-23T02:05:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,282
py
#!/usr/bin/env python #encoding:utf-8 #author:dbr/Ben #project:tvdb_api #repository:http://github.com/dbr/tvdb_api #license:Creative Commons GNU GPL v2 # (http://creativecommons.org/licenses/GPL/2.0/) """Simple-to-use Python interface to The TVDB's API (www.thetvdb.com) Example usage: >>> from tvdb_api import Tvdb >...
3a7f9382b72dd52806311d2bed487a411dca70e4
1c4309daf6e53cc3cdf7dc9074cbb94d2dc7c15b
/digital/trend/trend/wsgi.py
a9ca274a90cc165c19e43f4a454b1df36ea19a5c
[]
no_license
OBAMARIE13/digital-trend
be55827e398dffcead4345eed8af40abaa059077
07113e987163050cb94b022e85428bdfd673dd25
refs/heads/main
2023-05-11T11:26:50.344084
2021-05-31T17:04:22
2021-05-31T17:04:22
372,575,744
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
""" WSGI config for trend 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.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTING...
127f14137ff8c69323cb99a5ec67d900927cca5e
4b17225bc3860419edb6a8818bbac82e6b36e79d
/employee_tracker/settings.py
ce1b5d600785fc29625c723fdb419d1d986f35e8
[]
no_license
argon2008-aiti/employee_tracker
8ab45ee727e07b242d6ac3fb446ca5c1b9649bb0
5be7c3bb323f3b350d26df4d4813b6b071324277
refs/heads/master
2021-01-15T13:00:03.644233
2016-10-06T16:42:28
2016-10-06T16:42:28
35,000,045
0
0
null
null
null
null
UTF-8
Python
false
false
3,444
py
""" Django settings for employee_tracker project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR...
5ae031aeb99d729fe90dc2b53d1bb9e39586fc7e
ed273db8304adf27b9117817b7d4376ffef6f375
/Carta.py
79c61ecaa0c38454a082b6a89ad021f634094efb
[]
no_license
mamerida/python-poo-curse
282a4cbe6704d18f7f59799354135bc1bc6d7ce5
b99d1736ac77eed3dbc0371ddbefcd148e85f4db
refs/heads/master
2023-07-13T05:35:40.103830
2021-08-23T15:46:50
2021-08-23T15:46:50
367,674,569
0
0
null
null
null
null
UTF-8
Python
false
false
539
py
class Carta: def __init__(self, numero, palo ): self.palo = palo self.numero = numero def convertir_numero_a_letra(self): valor="" if (self.numero == 11): valor ="J" elif (self.numero == 12): valor ="Q" elif (self.numero == 13): valor ="K" elif (self.numero == 1): valor = "As" else: ...
0c448d5d9533485b666d5f11510eb4bdf0e13294
9fa07ba96a5330712bb1f1d0874375e6f4923ce7
/wait/www/387.py
3d6ab8263419dea2fd32e7413af8f4570a1f4842
[]
no_license
Ajatars/Ajatar
cf4460d881b18095ce968c883e68500d44f90570
943b71285e6b74ae38861aa305d26b0a9bef4050
refs/heads/master
2020-06-02T02:14:05.989075
2019-06-10T02:48:10
2019-06-10T02:48:10
191,002,958
11
2
null
null
null
null
UTF-8
Python
false
false
981
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ POC Name : Mvmmall search.php SQL Injection Reference : http://www.wooyun.org/bugs/wooyun-2011-01732 Author : NoName """ import re from urllib.parse import urlparse def assign(service, arg): if service == "www": r = urlparse(arg) return Tru...
707062ffa62600fed5892717cfc5efb6677b3277
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_plough.py
8524ffbb0f26cf406e78e16dbed5ed7ccee77fc1
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
#calss header class _PLOUGH(): def __init__(self,): self.name = "PLOUGH" self.definitions = [u'a large farming tool with blades that digs the soil in fields so that seeds can be planted', u'If land is under the plough, crops are grown on it: '] self.parents = [] self.childen = [] self.properties = [] s...
11e480051d1e2e4b524f910449fa7a03d3d0f592
b3db0cb0849fc3c981077cc5dc071c6eac6fd1ed
/C.1.14.py
f9372e61feee0ec164fad2d51aa25739dd93f3b8
[]
no_license
Andi-Abdi/Tugas-Struktur-Data
bcfcfd3cf4ac28ce966b30d07041d775b33db778
49162ad9c5869161df01bc1a0f8697c2d7d1623a
refs/heads/main
2023-05-11T11:58:46.484954
2021-05-31T14:46:22
2021-05-31T14:46:22
372,522,215
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
def odd_product_pair(data): data = set(data) for y in data: for x in data: if y == x : continue if y*x % 2 == 1: return True return False print(odd_product_pair([5,7,9,14,16]))
ec81f69f8b35b27ca38c0fabe125ba6ef4bc3a1d
1975ee674b36084366b1bbe2c091d8f0f8795dc0
/demo/class_views.py
49ac0086b684256a0215318d23d4992296ad6f5e
[]
no_license
srikanthpragada/PYTHON_03_JULY_2018_WEBDEMO
f193213788deadcab7ac7b183328269ba1334488
56e076ad30703117cafc56d6d95449c6ec8eebb2
refs/heads/master
2020-03-25T11:45:53.128704
2018-08-23T15:29:05
2018-08-23T15:29:05
143,747,408
0
0
null
null
null
null
UTF-8
Python
false
false
877
py
from django.views.generic import TemplateView, ListView from django.shortcuts import render from .forms import LoginForm from .models import Course class ClassView1(TemplateView): template_name = 'class_view1.html' class LoginView(TemplateView): template_name = 'login.html' def get(self, request): ...
a3a5d94d9d641fb85d1031115f2381f650289f28
46cb587e5473e6bb47878ebbaaf8fa76fcd97f89
/09-NeuralNetwork/20181028/mnist_loader.py
3fa24e108f8d4a4f8d6582b88155ce0ab44d70af
[]
no_license
AaronFlower/Jupyter
d342a3decb050985b4f4dcad4a0c1fd05a771f76
3fd252c10399e9057ba9a23e75651875ab6d89f2
refs/heads/master
2023-08-09T07:27:27.432826
2023-07-12T08:09:12
2023-07-12T08:09:12
84,337,325
1
1
null
2017-03-22T16:11:52
2017-03-08T15:42:13
Jupyter Notebook
UTF-8
Python
false
false
1,089
py
# -*- coding: utf-8 -*- import gzip import pickle import numpy as np import matplotlib import matplotlib.pyplot as plt def load_data(): f = gzip.open('../mnist.pkl.gz', 'rb') train, val, test = pickle.load(f, encoding='bytes') f.close() return train, val, test def load_data_wrapper(): train, val,...
d897144be27bc308b3927bb78256939faeaab5ba
509bf02d033c6a3c274360ab16f75c109a0ba31c
/test/test_hunalign.py
c59304af881eb0c447039bdebeb687d76180c585
[]
no_license
israaar/textaligner
bb3a6b8210a12799ef40bec44b942f5ca325d2a8
a03e28cc8264e0c207a7f1b6f56b0dbcc04eeba1
refs/heads/master
2022-01-27T14:35:43.553965
2019-05-16T07:57:14
2019-05-16T07:57:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,470
py
# -*- coding: utf-8 -*- import os.path import unittest import sys from pprint import pprint import operator sys.path.append(os.path.abspath('..')) from align import align, align_html from hunalign import align_with_lang class TestHunalign(unittest.TestCase): def setUp(self): self.maxDiff = None ...
275aa3e362920aae1e2af84fe0380f36fa448f39
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/pygame/pygameweb/pygameweb/db.py
57c70ca70133b811d4447037d0df7cd54b72e632
[ "BSD-2-Clause" ]
permissive
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
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:95c026dc0e7051336cd999158979e81f159d4470489660469d0e0175c66400da size 1274
4716976f68bf061fef859306dd4192440aa5d090
94312b972c9ea96404535d26a297c72e75f84d22
/Weather_WebCrawl.py
350443ebd66136fe19578ad51278528825577cdc
[]
no_license
1LuvCode/My_Slut_TJ
2e8092d78857497a45a22d4af2270dc4c51cdada
d7f39542cccb51b46d4d53d6489ef3b82079bc4d
refs/heads/main
2023-02-25T20:16:32.461565
2021-02-02T11:28:37
2021-02-02T11:28:37
335,256,950
0
0
null
null
null
null
UTF-8
Python
false
false
5,695
py
import requests from bs4 import BeautifulSoup def Crawling_Weather(Finallocation): url = 'https://search.naver.com/search.naver?where=nexearch&sm=top_hty&fbm=1&ie=utf8&query=' + Finallocation hdr = {'User-Agent': ( 'mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko...
56688f3f32ef27e8f1ae4b5c9144316bdf9ad2cd
21e2782bb70f183876c55940d7cefc1c82b16472
/interview/server/tests.py
066d157435dbd90bf9cbc7cd036fd76f04a93a3a
[]
no_license
RajsimmanRavi/backend-challenge
13bdc09417fe4d2a7cce54288e27c73c800cf854
f30860a868493a963ec98fc749b4ae3016a5c766
refs/heads/master
2020-08-09T04:29:56.057638
2019-10-09T18:53:30
2019-10-09T18:53:30
213,998,608
0
0
null
2019-10-09T18:50:22
2019-10-09T18:50:21
null
UTF-8
Python
false
false
2,011
py
import requests import unittest import random from random import randint from datetime import datetime random.seed(datetime.now()) class TestStringMethods(unittest.TestCase): def test_get(self): response = requests.get('http://127.0.0.1:8000/conversations/1234') self.assertIn("anson", response.tex...
619dff3fc4f5f34f2ea4f843e80b2f4d472b30d0
b6bcfd935f7876fc65416e7340fda1c9b0516fd7
/pyscf/tdscf/test/test_tduks.py
091c6b43834c92a378e73acb5b9bd073aa22e37b
[ "Apache-2.0" ]
permissive
lzypotato/pyscf
62f849b9a3ec8480c3da63a5822ea780608796b2
94c21e2e9745800c7efc7256de0d628fc60afc36
refs/heads/master
2020-09-06T22:45:04.191935
2019-06-18T06:04:48
2019-06-18T06:04:48
220,578,540
1
0
Apache-2.0
2019-11-09T02:13:16
2019-11-09T02:13:15
null
UTF-8
Python
false
false
13,906
py
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
8b04ac74aeadb6ba21d5c623f12f988aaa3af34c
bbfb3856386b7bbb0ec47e02d8be3f9764b8523a
/app.py
e104743f47838b66f9a0d73687f3f6529bd99019
[]
no_license
tonnysilas/sqlpractice
67f2fbb1e9c2074fbd59acd04e904c0955989bda
12cce4da59cac4f86aa226da5f731ac9b7cd6986
refs/heads/main
2023-04-28T21:13:38.881594
2021-05-31T09:40:04
2021-05-31T09:40:04
372,434,016
0
0
null
null
null
null
UTF-8
Python
false
false
1,888
py
from enum import unique from flask import Flask import os from flask import render_template from flask_sqlalchemy import SQLAlchemy from flask import request app = Flask(__name__) project_dir = os.path.dirname(os.path.abspath(__file__)) #finding the current app path. (Location of this file) database_file = "sqlite://...
0fae2317ff82c61b45f4af1f32caf571d43b7215
a23139a3a1de7427843c5216e2abc90cced88487
/video_learn/03_keras_mnist.py
32bf1d15fbaf25ea10d614a0c50a9b84df6f4f12
[]
no_license
shxiangyan/Document
7aeb3e07665662fa67179de4484d20c138256205
10352279b8696bbd934adb7ffdb63e0c017b8adb
refs/heads/master
2021-02-07T01:04:58.884043
2020-04-27T14:48:13
2020-04-27T14:48:13
253,468,956
1
0
null
null
null
null
UTF-8
Python
false
false
2,969
py
import numpy as np from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense from keras.layers import Dropout from keras.layers import Flatten from keras.layers.convolutional import Conv2D from keras.layers.convolutional import MaxPooling2D # 先读入数据 (X_train, y_trai...
5a7cf3eb0101279de44ad43c46ab42689bd0eb5e
8d6fb31cd96632d02db88663ea0a2112103033ce
/chaper7_compile_to_c/run.py
76688b919787e0b0416a76253310c6c695f7c7a0
[]
no_license
CodevilWang/high_perf_python
d75182732fed84b53f02f14d64b931ed0d1c001a
000672c006f3fd5604b45a7857d72e55003fc30e
refs/heads/master
2021-09-15T18:50:26.986311
2018-06-08T13:23:53
2018-06-08T13:23:53
114,531,549
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
#!/usr/bin/env python import sys def calculate_z_serialize_purepython(maxiter, zs, cs)
754705493d33379d2a6b30e114411413ba153370
0d2cd2a19d37a4edbda53d9b22fefe726fa06457
/while_list_indexes.py
ebb0808b61234444afa4cdc8acd38261c7ce5419
[]
no_license
gkalidas/python-django-bundle
22ab9b1cc798f6d995385e7959acf2057cd6ad01
66df9604d6b87d6398afca2127e70d8d11c8b95c
refs/heads/master
2023-03-15T10:02:23.495413
2020-08-12T16:55:05
2020-08-12T16:55:05
266,520,942
0
0
null
2021-03-25T23:56:47
2020-05-24T10:50:14
Python
UTF-8
Python
false
false
208
py
# while with list and indexes ex_list = ['one', 'two', 'three', 'four'] counter = 0 max_index = len(ex_list) - 1 while counter <= max_index: number = ex_list[counter] print(number) counter += 1
e7e2e35e74f6f746945d6189c17e6e7c5bf68ec4
4c852fab792606580acb3f3a61b7f86ae25930b0
/Python/MIT-CompThinking/MITx600.1x/ProblemSets/wk3/L5PROBLEM5.py
5fc93127f17702a2607600df981bd5e7b2f929a5
[]
no_license
hmchen47/Programming
a9767a78a35c0844a1366391f48b205ff1588591
9637e586eee5c3c751c96bfc5bc1d098ea5b331c
refs/heads/master
2022-05-01T01:57:46.573136
2021-08-09T04:29:40
2021-08-09T04:29:40
118,053,509
2
1
null
2021-09-20T19:54:02
2018-01-19T00:06:04
Python
UTF-8
Python
false
false
259
py
#!/usr/bin/python # _*_ coding = UTF-8 _*_ def gcdRecur(a, b): ''' a, b: positive integers returns: a positive integer, the greatest common divisor of a & b. ''' if b == 0: return a else: return gcdRecur(b, a % b)
a1cc1637f3fb19d41494594668aa7c81e2d8aa00
2176442a012a0b73521d04e22bb9186a5e676321
/display.py
6a15632aad9ab6623c8adc9e5f6ee7278958dbf0
[]
no_license
caleb-kahan/z-scan
5e65c1382f60fed53fc36660ac5d36eecf2709e2
0ba703a99496c53a1d813ea0b9fa11679ec38d1f
refs/heads/master
2022-04-17T08:32:54.662716
2020-04-19T00:55:44
2020-04-19T00:55:44
256,568,578
0
0
null
null
null
null
UTF-8
Python
false
false
2,401
py
from subprocess import Popen, PIPE from os import remove #constants XRES = 500 YRES = 500 MAX_COLOR = 255 RED = 0 GREEN = 1 BLUE = 2 DEFAULT_COLOR = [0, 0, 0] def new_screen( width = XRES, height = YRES ): screen = [] for y in range( height ): row = [] screen.append( row ) ...
7c9050279a3de4691a1bb15a38d626d1f8517c3e
6d6ad8fca4051e5b4e46bef431878059bac9161c
/howtouseMCP.py
88ec0503dfbf6fec198e37921c812fdae93fda4c
[]
no_license
weichen0407/MCP-Digit-Recognition
340b71e2542afcb7612bcb2a2134872afc4873a9
d0b250e7c6b3384e5f7b9f9939f1c192a8d10880
refs/heads/main
2023-08-15T12:36:19.795385
2021-09-27T20:43:37
2021-09-27T20:43:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,347
py
import numpy as np import mcp.py # First create the model with the desired inputs and outputs (inputs, outputs) mcpModel = mcp.MCP(784, 10) # Then use the MCP's getData function with a csv file to get the data as a matrix and labels as an array traindata, trainlabs = mcpModel.getData('train.csv') # If used for traini...
946eaac05979a4f663b7fefeba08d4f1dd8efb16
d21c924fc23b812aaedeb2cfa3dfb108535a507f
/tw2/jqplugins/fg/defaults.py
310f64fb53f192fa733e55b3ba04ea7270501562
[]
no_license
toscawidgets/tw2.jqplugins.fg
eba3a90949c59dd7c6b3740ab09faa9b5d824a6d
8317f3bec82364b95e86aa3655c7f787b25d715f
refs/heads/master
2020-05-17T12:13:14.385977
2011-11-04T15:41:50
2011-11-04T15:41:50
954,861
0
0
null
null
null
null
UTF-8
Python
false
false
56
py
#jQuery.ui _fg_dirname_ = 'jquery/fg/%(subdir)s'