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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9bb472c06e0fb2a411f3f967bb9670ec5de3153e | a5562be95afeb6d3dca8dffa29ea47a89d5df8e3 | /{{cookiecutter.project_slug}}/robot.py | 348f1280b4d39a203f8dbcc5e55c5354ffeeee85 | [] | no_license | rt-learn-python/cookiecutter-default | 8a1c0a2cc746bf42e8ebe941df8136cbdcf7ae7a | 68f745b8913fc2659fff7d00fda0ab7ccc235d7a | refs/heads/master | 2020-08-03T13:59:08.413928 | 2019-09-30T06:18:48 | 2019-09-30T06:18:48 | 211,776,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | class Robot:
def walk(self):
return 'walk'
| [
"royce.com@gmail.com"
] | royce.com@gmail.com |
579b307f1c0389a2cde3850053508f999877efb7 | c286de21b8fd5f367f5a8cb4ee929d68fe453c28 | /users/migrations/0001_initial.py | 84af6812b69819c432a226cb291d54c9cf5fb2f1 | [] | no_license | afarntrog/barter | ca764f4996fdb2cb1ac794e975c8e4a83ed6ca09 | dec1c06f6d215a7bfb6afced881274785eeb0c05 | refs/heads/master | 2022-07-13T20:49:32.903143 | 2020-05-10T17:33:15 | 2020-05-10T17:33:15 | 255,227,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,268 | py | # Generated by Django 3.0.5 on 2020-04-12 19:58
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import phonenumber_field.modelfields
class Migration(migratio... | [
"aaronfarntrog@gmail.com"
] | aaronfarntrog@gmail.com |
3e18da620546972c8c1f090984e40ef751199ba2 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_shrucis1_ProblemA.py | 27f595965602f0b634f8ccd8be151ad017db5273 | [] | 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 | 521 | py | def lastnum(N):
remaining = ["0","1","2","3","4","5","6","7","8","9"]
if(N==0):
return "INSOMNIA"
i = 1
while True:
a = str(N*i)
for e in a:
if e in remaining:
remaining.remove(e)
if(len(remaining)==0):
return a
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
3b7e003816a39418ffd9b83fa55b72d6be8d5911 | c916156034bccbe54ec5dfee48950aeacfb31f15 | /RPS.py | 4466e38b552f048dc467684574ccaaab609aff25 | [] | no_license | Aaronphilip2003/Voice-Controlled-Rock-Paper-Scissors | ebbeb9e69b4bfbe226e5a18762771ec93b25b5a7 | 06779673103e7c79218a49ca02e393a44baf6d6d | refs/heads/main | 2023-04-30T12:49:14.315209 | 2021-05-09T17:08:45 | 2021-05-09T17:08:45 | 365,734,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | import pyaudio
import speech_recognition as sr
import pyttsx3
import random
# Making the computer Speak
engine=pyttsx3.init('sapi5')
voices=engine.getProperty('voices')
engine.setProperty('voice',voices[0].id)
print(voices[0].id)
def speak(audio):
engine.say(audio)
engine.runAndWait()
#Spe... | [
"noreply@github.com"
] | Aaronphilip2003.noreply@github.com |
e71a8321f27c9018ac8caa3a6a8bb1bc8abd87ae | 4536452b8fdadae1e4365cda1ccd6d5d9cb06d8d | /airflow/tests/executors/test_base_executor.py | 06a47541e404ce9f1009f411acda9b43609581e7 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kira-lin/ve450-declarative-deployment-framework | 73cb6e3d82810aaef800cb654b3651b334f65673 | f28e8b468568c8623134db5a1a8757860788799f | refs/heads/master | 2020-04-02T09:26:45.915721 | 2018-12-08T14:04:24 | 2018-12-08T14:04:24 | 154,293,242 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,657 | py | # -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
#... | [
"linzhilynn@gmail.com"
] | linzhilynn@gmail.com |
0f729841b590b519b15a1eb654dbe0a9ab8e5838 | 5d3fd9328cf3fab1056d79cd8464df3f1719b30e | /MG5_aMC_v2_6_7/tests/unit_tests/iolibs/test_export_cpp.py | 5d2db30939e4bcd16b537fb06e7208e2dec1f326 | [] | no_license | BKailasapathy/madgraph | c8d34147146edda1f147e8259539c0e86e6209c2 | 949fcf00f111eadf8948827e2933952b7823778d | refs/heads/master | 2023-07-15T08:38:08.382422 | 2021-08-21T09:12:23 | 2021-08-21T09:12:23 | 398,511,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96,439 | py | ################################################################################
#
# Copyright (c) 2009 The MadGraph5_aMC@NLO Development team and Contributors
#
# This file is a part of the MadGraph5_aMC@NLO project, an application which
# automatically generates Feynman diagrams and matrix elements for arbitrary
# h... | [
"balashangar.kailasapathy@cern.ch"
] | balashangar.kailasapathy@cern.ch |
0156d263e845c44ce2d41e2066fd9cda26b28d2e | 342da3c20e1d6fb4c2f5bd59de318afa987047b5 | /quickSort.py | 38a326bfab12fafa9981d73108aa995861c0db64 | [] | no_license | Franktian/Algorithms | f3cea0050eb2bf156cb9cd0ec028bcfa80b12746 | ddadab2dc31e034645fb31ae262d5ca07da32b58 | refs/heads/master | 2021-01-19T03:13:19.590527 | 2015-10-30T21:55:36 | 2015-10-30T21:55:36 | 19,363,849 | 1 | 1 | null | 2015-10-30T21:55:37 | 2014-05-02T02:19:28 | Python | UTF-8 | Python | false | false | 688 | py | def quickSort(lst):
global c
c = c + len(lst) - 1
if len(lst) <= 1:
return lst
less = []
equal = []
greater = []
pivot = lst[0]
print "pivot: " + str(pivot)
for item in lst:
if item < pivot:
less.append(item)
if item == pivot:
... | [
"tianyawen201209@hotmail.com"
] | tianyawen201209@hotmail.com |
f1614ef1ca2cd40039dd12e808c1521574964990 | 1c01e583b5e2a5003f60593defe6b5f3d0715176 | /sentry_django_example/sentry_django_example/wsgi.py | 8626f315d2d604c6f8fd0f6dc2c244c91b0f91b5 | [
"MIT"
] | permissive | PostHog/posthog-python | bf430e71d9efab69f1b2575f3257266352cc73d4 | 139258cacb7956f1bc025ad9c42095125bd6cd81 | refs/heads/master | 2023-09-01T17:35:44.747266 | 2023-08-17T17:03:28 | 2023-08-17T17:03:28 | 239,432,717 | 21 | 18 | MIT | 2023-08-17T12:14:08 | 2020-02-10T05:11:45 | Python | UTF-8 | Python | false | false | 419 | py | """
WSGI config for sentry_django_example project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault... | [
"noreply@github.com"
] | PostHog.noreply@github.com |
ee79c75e29e94296e1066a936f82f309d36d347b | 264413890b3e1321283885fe247bba642637484a | /blog/settings.py | 0d82e49336bf7331f3d2471c3ebed5b2e3c0e984 | [] | no_license | yuuki-foll/my_blog_django | ec64f07cf7be2f5eb0edc70ab3a38779b17353b2 | 09ec71165cf1ca3b91fdbf4392c5c7c0a139203b | refs/heads/main | 2023-09-03T01:51:08.934616 | 2021-11-21T05:19:01 | 2021-11-21T05:19:01 | 429,872,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | """
Django settings for blog project.
Generated by 'django-admin startproject' using Django 3.2.9.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib im... | [
"tu.over.ym@gmail.com"
] | tu.over.ym@gmail.com |
f95cc22cf0455587084764ef11e134e16ed3df7a | 39ab08b1dc2097b0f553f59bc67fe2e7c0f672d1 | /comments_remover | 9d1eb0c9c7e8c6fcc90ecbafc15ae4f4b4b2b7ab | [] | no_license | ramzan545/XComment.io | 70958260b5f43299887dd5e217770580fb5a751c | f7bb49ae13e9959d0a2c56f76f97f1f1dea76757 | refs/heads/master | 2021-08-17T20:46:06.735324 | 2017-11-21T17:26:36 | 2017-11-21T17:26:36 | 111,712,472 | 1 | 0 | null | 2017-11-22T17:17:32 | 2017-11-22T17:17:32 | null | UTF-8 | Python | false | false | 75 | #!/usr/bin/env python
from XComment.comments_remover import main
main()
| [
"bernard@savannahinformatics.com"
] | bernard@savannahinformatics.com | |
7302ef914e929d58793225fc1771f869a4aa86ea | c916cccaef3f0b382f8471f201c1b2f78c639d01 | /script/cut.pic.py | 7cb7f7d7e2d3b307778a273a208674710fb16166 | [] | no_license | karlzheng/bashrc | ff90dd433e3407679be59e3fdd37d08b91d58dd1 | c7b862cd82136d72385e9a33dfd6b526596d7afc | refs/heads/master | 2023-02-19T01:22:45.159454 | 2023-02-09T01:22:15 | 2023-02-09T01:22:15 | 6,240,508 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from PIL import Image
img = Image.open('screenshot.png')
Img = img.convert('L')
Img.save("gray.jpg")
threshold = 200
#threshold = 100
table = []
for i in range(256):
if i < threshold:
table.append(0)
else:
table.append(1)
photo = Img.point(... | [
"Karl.Zheng@anker.com"
] | Karl.Zheng@anker.com |
445b9589568b27b49c62d92211be9a0f750b8f95 | 5aa2bcdf6039154ad488b4de9019760d65534936 | /kbapi/asgi.py | be5bc9f97233d487067c67de32138f29d044dbf9 | [] | no_license | labiod/my_page | 8774eb4bc148bf7a83b79d83bae182d7d5a5c112 | f8e1513996e105d2b14b62b4aab24c2e78f74a75 | refs/heads/master | 2023-05-28T00:39:04.706538 | 2021-05-05T16:27:26 | 2021-05-05T16:27:26 | 364,639,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
ASGI config for kbapi project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"labiod@wp.pl"
] | labiod@wp.pl |
342862c87becf3b0599a8ded8a6d3fa73263cf73 | b672072a6f4323db1d4e24aec97a714c282e8498 | /virtual/bin/pip3.8 | 9a7eaeb4c259b4084cb016b273eba52fa4e59f19 | [] | no_license | Daniel-darnell/The-Tribune | 9e4a3601d4e42ecd00e67e6f31d9708c823fc6cb | 95f1f0340e366cc60a910daba6ad89d641d637bc | refs/heads/master | 2022-12-31T07:53:54.051494 | 2020-10-22T18:31:52 | 2020-10-22T18:31:52 | 306,426,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | 8 | #!/home/moringa/Desktop/FullStack/Python/News/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"darnelldanny1997@gmail.com"
] | darnelldanny1997@gmail.com |
be3f4ee78626bbab9c8b57610dacbf3595b90df9 | 7e2f26d89e2e0116dcac7403e75998701bc11776 | /Resize.py | ae43fe8255d01b1bdd638bd84beb9976436c8118 | [
"Apache-2.0"
] | permissive | PENGsBIT/PIL-demo | 952c318272ec5945a781c6d0cc5f3d4eb3fe6e19 | 36181d79ca6ab9fe177d734ab20ec093a9ba2246 | refs/heads/master | 2022-11-11T07:44:53.331903 | 2020-06-30T13:10:29 | 2020-06-30T13:10:29 | 275,868,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | # -*-coding:utf-8-*-
import numpy as np
from PIL import Image
from scipy import misc
def resize(img):
# img = Image.open(cirFileName)
# w, h = img.size
# # 去掉浮点,防报错
# w, h = round(w * 0.2), round(h * 0.2)
img = img.resize((200, 200), Image.ANTIALIAS).convert("RGBA")
return img
def getResultA... | [
"924824195@qq.com"
] | 924824195@qq.com |
62609e899e3b0ea2a0d36beb37304e6293577899 | f746c01c37a0ca8b8ecc2267c44e363586cd092d | /mysite/blog/models.py | 85f712350fd60423cb1886922a123c158f7abd6d | [] | no_license | viniciuscunhavcm/my-first-blog | 1ae53cf3976f9d50844ba419af86df8887b06df0 | cdf017aa79d094d6ad492cdf4ee2749ed47bef53 | refs/heads/master | 2021-05-01T21:06:59.899133 | 2018-02-10T00:42:46 | 2018-02-10T00:42:46 | 120,971,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default=timezone.now)
publ... | [
"vinicius.cunhamachado@gmail.com"
] | vinicius.cunhamachado@gmail.com |
cbe50cecf77e88e734f2da5b2a0435718646c991 | a3ca521158892710fa786c89ee1c10c1768dcd0e | /heroi/migrations/0004_auto_20190930_1841.py | 112f8187b1bdb1fdabcc6e9be27b09744cc34a2f | [] | no_license | LucasBarletta/hero-wiki | 4fff51a891fe0fd5005f6fa8cfe0cc56f02915d0 | cfa402b8bead983690e708ff2117b06eb443ef07 | refs/heads/master | 2020-09-09T00:41:06.999305 | 2019-10-01T20:56:35 | 2019-10-01T20:56:35 | 221,292,251 | 1 | 0 | null | 2019-11-12T19:10:07 | 2019-11-12T19:10:07 | null | UTF-8 | Python | false | false | 519 | py | # Generated by Django 2.2.5 on 2019-09-30 18:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('heroi', '0003_heroi_universo'),
]
operations = [
migrations.AlterField(
model_name='heroi',
... | [
"foto.hiago@gmail.com"
] | foto.hiago@gmail.com |
cd311565cef0393d20b9126f149c01765b2cebdd | f44cdfbcc445d3cb910bada228baf16648480f5f | /tutoriais/desenho.py | d3a8874ba3af1be73b7033e63f88dcb1e04b40e4 | [
"Apache-2.0"
] | permissive | Camilotk/python-pooii | 9c4ce4153cf5931643285c4b8775e623979510d6 | e855d8d00b70ad23b51d2384980055182f5ccdd3 | refs/heads/master | 2021-01-24T12:37:05.381967 | 2018-07-01T21:45:00 | 2018-07-01T21:45:00 | 123,143,230 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | import turtle
from math import sin, cos, pi
r = 200
inc = 2*pi/100
t = 0
n = 1.5
for i in range (100):
x1 = r * sin(t)
y1 = r * cos(t)
x2 = r * sin(t+n)
y2 = r * cos(t+n)
turtle.penup()
turtle.goto(x1, y1)
turtle.pendown()
turtle.goto(x2, y2)
t += inc
| [
"noreply@github.com"
] | Camilotk.noreply@github.com |
aa11d4728c3011be8136d004c246ccee156d6afa | f623bccab362a7513c2744bfaf937463039e2194 | /python_100day/day01/04-构造程序逻辑.py | a7394e7c594a68fd082b403a269c737e3736f874 | [] | no_license | wangweiwg/python | d0fa7438d63814786b5aacb03c8e8417d0dd84e7 | d1336f02bc9027664212ea9c677bde51a6561f55 | refs/heads/master | 2020-06-19T00:09:31.881584 | 2019-09-03T08:18:31 | 2019-09-03T08:18:31 | 196,500,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # 分支和循环结构会帮助我们将程序中逻辑建立起来,将来我们的程序无论简单 复杂,都是由顺序结构、分支结构、
# 循环结构构成的。对于编程语言的初学者来说,首先要锻炼的是将人类自然语言描述的解决问题的步骤和方法翻译
# 成代码的能力,其次就是熟练的运用之前学过的运算符、表达式以及最近的两个章节讲解的分支结构和循环结构的知
# 识。有了这些基本的能力才能够通过计算机程序去解决各种各样的现实问题。所以,开始做练习吧! | [
"wangwei641@163.com"
] | wangwei641@163.com |
9c2dc2d121d2a81c78f74986909faff271784616 | 8815afb5f3f8b87b69419f4d284af7c7b6376b53 | /venv/bin/rst2odt.py | b7c3a57df8af24f043badae862f48d00d661a0e6 | [
"MIT"
] | permissive | phillip1029/jobpy | e5af973cc7288c3f7326de91d9559bb4d1284caf | 838085f5b107518534c63c2a593827d9a4b7ba60 | refs/heads/master | 2022-10-13T16:48:42.611026 | 2020-06-10T01:52:33 | 2020-06-10T01:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | #!/Users/rodrez/Desktop/jobpy/venv/bin/python
# $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $
# Author: Dave Kuhlman <dkuhlman@rexx.com>
# Copyright: This module has been placed in the public domain.
"""
A front end to the Docutils Publisher, producing OpenOffice documents.
"""
import sys
try:
import loca... | [
"rodrez@Fabians-MBP.fios-router.home"
] | rodrez@Fabians-MBP.fios-router.home |
cc0a8a091b986e8b557b38ddfaa5d4c813b993ee | fd390bfa1f471d09cafb72ad85e5143214abf32d | /shakecast/tests/server_test.py | 23ba29999f7e6b943acd162d075061b698d4c994 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | usgs/shakecast | 0ac6ac955aaff3029b133c4ce9264adc90004d86 | e287d697d93467e5e25c99d27b70754a0a5e6e39 | refs/heads/master | 2023-05-13T09:22:13.001195 | 2022-03-08T03:26:18 | 2022-03-08T03:26:18 | 52,902,913 | 9 | 24 | NOASSERTION | 2023-05-01T22:45:23 | 2016-03-01T19:15:42 | Python | UTF-8 | Python | false | false | 4,015 | py | import socket
# connect to server
# submit single job
# submit bad job
# job that fails
class Server_Test(object):
def __init__(self):
self.results = {'error_handling': 'Success'}
self.socket = socket.socket()
def conn_test(self):
try:
self.connect_to_server... | [
"dslosky@usgs.gov"
] | dslosky@usgs.gov |
d6cef67fdc8cab8d72eb7c4ee7b109c14133b181 | bbd7774ef77ce96a4f0396dfb49d5614e7ffd31f | /Competitive Progamming/CodeSignal/Tourements/18_04_2019.py | 4b9adb1cc525c6921106de41ab7bea6f4b8b5c96 | [] | no_license | linhnt31/Python | 95978918a5c08aa11d4c0b955143dfe4e1c6cb0f | be2942709ab39166c93152a065d11bc58efdb858 | refs/heads/master | 2022-03-25T21:32:16.138624 | 2020-01-18T03:20:38 | 2020-01-18T03:20:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | """
-Link: https://app.codesignal.com/tournaments/TBvuWWoyrhLB57Gax
"""
#
def ball_distribution(colors, ballsPerColor, boxsize):
res = 0
capacity = boxsize
current_box = 0
for _ in range(colors):
start_box = current_box
for _ in range(ballsPerColor):
capacity -= 1
... | [
"nguyenthanhlinh58@gmail.com"
] | nguyenthanhlinh58@gmail.com |
23fc3795d1765701ecbbf3f694558038140f22b7 | 42a65e1127fa328775804d25b04a968fac63c7b2 | /read_utils.py | 623afd7d9917367f8d659f3ca6c63b24ebfa04f1 | [] | no_license | hacksman/char_rnn | 8bd33148d7322207d1a7e42bd87a26c7db4f4093 | 1eb174a4165b635641f3a692f32464496ad03261 | refs/heads/master | 2020-03-14T22:18:30.445711 | 2018-05-11T00:34:41 | 2018-05-11T00:34:41 | 131,818,387 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | # -*- coding: utf-8 -*-
# @Time : 4/25/18 8:29 AM
import pickle
import numpy as np
import copy
def batch_generator(arr, n_seqs, n_steps):
arr = copy.copy(arr)
print('before:{}\n'.format(arr))
batch_size = n_seqs * n_steps
n_batches = int(len(arr)/batch_size)
arr = arr[:n_batches * batch_size]... | [
"funblessu@gmail.com"
] | funblessu@gmail.com |
e00523fad4aa6a849be2c319113c838147673ca3 | 37b12eae7842a382b267dd333aaa230cc65f8e6f | /run.py | 6feda5fdb0301026c62fd4cfe9d156d204b50a46 | [] | no_license | rainygirl/forget-my-past | 13a0163c74a14412737c9e19648f0c971f64c09f | b6f8fc494b6f9cbb6a0a7c35a52c1a3e55789aec | refs/heads/master | 2021-01-01T20:34:27.275591 | 2016-03-11T02:56:54 | 2016-03-11T02:56:54 | 8,945,584 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | import tweepy
import csv
consumer_key = ""
consumer_secret = ""
access_token = ""
access_token_secret = ""
username = ""
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
with open('tweets.csv', 'rb') as csvfile:
csv_=csv.r... | [
"rainygirl@gmail.com"
] | rainygirl@gmail.com |
550ea16f13df568da8da7fb5cc32fb024eb5edbb | 99ccd3e1deff489ccd532dbf9f37885ce5cc5e3d | /noise204ss.py | 982f3d3f6a1444a46053be1e0a76355e27e73503 | [] | no_license | PavelPll/Earthquake-Prediction | 1d031ee52637761d950fa1301aab1db6ba06def7 | c96dd5e65f248b8f8bb2af2bbbf98b9dfb691ed5 | refs/heads/master | 2020-05-31T08:10:07.333771 | 2019-06-04T19:25:53 | 2019-06-04T19:25:53 | 190,180,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,858 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
#Predict the time (single value) remaining before laboratory earthquakes occur
#from real-time seismic data (150000 values)
# In[ ]:
import numpy as np
import pandas as pd
import os
from tensorflow.python.client import device_lib
#print(device_l... | [
"noreply@github.com"
] | PavelPll.noreply@github.com |
c43fa7575bd252945df40f6bc8ece43f57f7c26c | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/577583_Special_Range_FunctiDifferent_Kinds_Ranges_int/recipe-577583.py | 31b649ddc0e268049e2406c133b71adebac3e007 | [
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 3,509 | py | #!/usr/bin/env python
# specialrange.py
"""
Contains a general purpose object for arbitrary ranges
i.e.
a-z = abcdefghijklmnopqrstuvwxyz
A-Z = ABCDEFGHIJKLMNOPQRSTUVWXYZ
1-9 = 123456789
0-9 = 0123456789
0-1000 = 0123456789...1000
Copyright 2011 by Sunjay Varma. All Rights Reserved.
Check out www.sunjay.ca
"""
LOWERC... | [
"betty@qburst.com"
] | betty@qburst.com |
29a4a92ebeccf9c467b2b9a2bff80b3f6a787156 | 9a313b7831b1f09ebe87769b315048af3f6c022c | /voting.py | f19a855c8ef5b0006946b80e109c503415c3eeaf | [] | no_license | salman6100/python | 2ac750f32bb613a8f71d6131cce75d0efcaf8572 | 981f546835734293a192af15fe2fe3fa290b7d47 | refs/heads/master | 2021-01-19T03:18:30.756101 | 2016-07-05T01:06:38 | 2016-07-05T01:06:38 | 49,110,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # if statement practice
age = 23
if age >= 18:
print ( " YOU are old enough to vote!")
elif age < 18:
print( " Sorry , you are too young to vote.")
else:
print ( " Your admission cost is $10.")
| [
"noreply@github.com"
] | salman6100.noreply@github.com |
58ac255895b073299174baef65344dadac15f38a | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /tests/layer_tests/tensorflow_lite_tests/test_tfl_Reshape.py | dcc56819148775ec133e78a032e82e487ed18615 | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | Python | false | false | 1,237 | py | import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [2, 6], 'out_shape': [2, 3, 2]},
{'shape': [2, 4, 6], 'out_shape': [2, -1]},
{'shape': [1], 'out_shape': []},
]
class TestTFLiteReshapeLayerTest(TFLiteLayerTest):
inputs = ["Inp... | [
"noreply@github.com"
] | openvinotoolkit.noreply@github.com |
29bcb460b2346006d42915a27b31df1a66371ee0 | a216f2689b154fd516069f47f854be1a1eab8410 | /测试用例/接口自动化/接口自动化_V2/接口测试/生产测试/派工单/test_201_production_trackOrder_create.py | 37186f1a9dceeafeee5d7803cbb29a7c5f1dd2df | [] | no_license | liuzhengxing/NeuSoftEEP_API_Test | 496a7323385242318091a175ee86ad04deed3b5a | 2c3b0f5667c9526130a57c5ce2f0865e8f97302f | refs/heads/master | 2020-03-25T14:27:42.213573 | 2018-08-08T03:27:05 | 2018-08-08T03:27:05 | 143,855,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,432 | py | # _*_ coding:utf-8 _*_
import unittest
from unittest.mock import Mock
from 测试用例.接口自动化.接口自动化_V2.接口管理.生产管理.工单 import WorkOrder
from 测试用例.接口自动化.接口自动化_V2.接口管理.生产管理.生产工艺 import ProdRouteLine
from 测试用例.接口自动化.接口自动化_V2.接口管理.生产管理.派工单 import TrackOrder
from 测试用例.接口自动化.接口自动化_V2.接口测试.public_method import create_code
from public... | [
"michaellzx@126.com"
] | michaellzx@126.com |
2572e48aef735229baeaae1aaa4f9a7e5589be8c | 5b120afdc1da83e0f1f0e601648a46d58c5d5575 | /Growing_Circle/growing_circle_2.py | 49f8b710f1da29f704a6129377acf74878d496ad | [] | no_license | Ronaldoyoung/pygame | 6a49f41ec8138a699a6e3766b575d305fa29df53 | 612323c8ca8d6b1fbd8949dd4172dac0a69a0e08 | refs/heads/master | 2020-04-02T14:37:52.592568 | 2018-12-03T04:34:44 | 2018-12-03T04:34:44 | 154,532,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,753 | py | """
점점 커지는 원의 색상이 랜덤하게 변하는 기능을 추가함.
- class에 color 변수를 추가하고, pygame.color에서 랜덤하게 세팅되게 하였음.
"""
import pygame
from pygame.locals import *
from pygame import Color, Rect
import sys
import math
import numpy as np
import random
def get_screen_size():
"""return screen (width, height) tuple"""
screen = pygame.disp... | [
"ronaldoyoung@gmail.com"
] | ronaldoyoung@gmail.com |
04999511691a1c4c6cd56d7c2bad5de798453da1 | 0a37c317eb04c3296a422c8d36e95140cfb45ee5 | /lib/common.py | 0604d5a174028f95b67e5e7ed8f797482fc06a0f | [] | no_license | zhouglgh/messageCollect | 2cc85205f09591630eb66deba9a51e3e3b9b3c41 | bd32350e908e7d4963c6d3c59fd092a986465322 | refs/heads/master | 2021-01-01T06:34:18.453570 | 2017-07-30T16:25:17 | 2017-07-30T16:25:17 | 97,451,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,029 | py | '''
author: zhougl
time : 2017-01-12
modified: zhougl; time: 2017-07-03
In 'process' function, add a path to 'cmd_str' for the program from other's.
'''
import json
import os
from subprocess import Popen, PIPE
class common_process(object):
def __init__(self,logger):
self.logger = logger
'''
process a command a... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
7d6433b4a86fb3ed07e042acce366bdf7d6b8369 | af4c6d754b99d00cc183434de4fb6b78087ec029 | /pttk/urls.py | 127589a93133cd6244a12daf2fbd50b19309aad0 | [] | no_license | TuasnAnh/ecommerce_django | e1dfca061ba2bf1c3f4af1553f99801d8e6122c7 | 7278e7a38d223abbc4e8e26fd541e15ff2aec61a | refs/heads/master | 2023-05-08T23:23:58.462463 | 2021-06-05T02:55:38 | 2021-06-05T02:55:38 | 373,340,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | """pttk URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"tuananhblablo@gmail.com"
] | tuananhblablo@gmail.com |
7295d4531cef0f3dcbd77618f3534539d20a66c8 | 9603935b28330e3b706997e85a112bb65d07b1ab | /transforms/__init__.py | fc74279939c682b995e610ac21339db62b9982d7 | [] | no_license | confident-OH/PISR | 47a2e81548e752c495c0a28b01079ca4dea1b015 | f66b9799dd0f6d90698b0da8bc47d405eed42103 | refs/heads/master | 2022-12-20T18:36:52.473348 | 2020-09-25T01:37:43 | 2020-09-25T01:37:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .transform_factory import get_transform
| [
"leewk921223@gmail.com"
] | leewk921223@gmail.com |
3cc7ac852d73c1af8baa8fed62d8689e23a44fb5 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2235/60605/305067.py | 08a9c1d0b316dc8b36c47900a1e509c2b0fca79e | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | x = input().strip().split()
h = int(x[0])
w = int(x[1])
li = []
for i in range(w):
li.append(input())
if li == "['1 3', '2 4']": print("""1
4
5""")
else: print(li) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
1ed2d5dda398b3652e788c8928b9595c3164325b | 3c3ec6d97a9f6a8233b70c42dd756aebceeab54e | /jyeoo_crawl/jyeoo_crawl/spiders/manfen.py | 27e364b4cd6887a3478e5588660a3442e53a9fdd | [
"BSD-2-Clause",
"Giftware"
] | permissive | newle/scrapy-redis | 0e974559bb22fd789011bf76b4e68e6c314a7a37 | c7aea222df4693a71197234c8ff18465db17d24e | refs/heads/master | 2021-01-24T15:33:07.991853 | 2015-08-18T02:13:18 | 2015-08-18T02:13:18 | 39,993,196 | 0 | 1 | null | 2015-07-31T07:41:23 | 2015-07-31T07:41:23 | Python | UTF-8 | Python | false | false | 4,844 | py | # -*- coding: utf-8 -*-
from scrapy.spiders import CrawlSpider, Rule
from scrapy.http import Request
from scrapy.linkextractors import LinkExtractor
from scrapy_redis.spiders import RedisMixin
from jyeoo_crawl.items import JyeooCrawlItem, JyeooCrawlLoader
#from Html2Text import html_to_text
import re
import logging
... | [
"wangzhensi0487@sogou-inc.com"
] | wangzhensi0487@sogou-inc.com |
9accb6066c13f00f1e9f50395425a59a7f94286a | 309dda6e2f94eaa6e31123e430f6d421e76ddfcc | /core/migrations/0001_initial.py | 56436a430dc47a41c9b560dddc0f3750e5bb0d13 | [] | no_license | canhazn/whatsidea | c5f58b43d998f387802fe4658c24d1d3bd943bc4 | d84a7873bd599fecf6ab07f353e409477837dc32 | refs/heads/main | 2023-02-05T00:58:29.119619 | 2020-12-26T01:45:41 | 2020-12-26T01:45:41 | 307,355,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,451 | py | # Generated by Django 3.0.11 on 2020-11-27 16:12
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"canhazn@gmail.com"
] | canhazn@gmail.com |
2534e7f0340045879dc3950e98114130cd9d9df4 | 7262081a09328dbffafb868df75f240d3b15de23 | /dashgo_ws/src/dashgo/dashgo_tools/scripts/cmdListen.py | a9836e7b59b51e9d2d8e654993a90a64d01b4aed | [] | no_license | insion1991/change_dashgo_ws | be2dcbcb29d36b97b644640267029df900625cae | 126e095fb7a6416198134ede60ba1b9d0473f0f4 | refs/heads/master | 2020-05-20T22:53:43.447298 | 2019-05-09T11:45:31 | 2019-05-09T11:45:31 | 185,787,665 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | #!/usr/bin/env python
#coding=utf-8
from pyc import CmdListen
if __name__ == '__main__':
CmdListen.CmdListen()
| [
"chenyf@eaibot.com"
] | chenyf@eaibot.com |
7a8ba5d7fb2b61da2f29f2a29bc04fdcfeb50bf0 | 3b14626000c0178ba1144c0896504e2959181c6d | /Log to website with API key and header/Log_to_website_with_API_key_and_header.py | e094791e5a22a2e7045b18b3acdbb31897c61c26 | [] | no_license | Hubertius/Python | a8c5e3520911502c929fd7f4d410288658112d4c | 45307945dbface13d5a60d0bd29e8a0ea527427d | refs/heads/master | 2023-03-26T04:02:49.426482 | 2021-03-21T22:35:44 | 2021-03-21T22:35:44 | 272,454,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import requests
import json
import webbrowser
from pprint import pprint
headers = {
"x-api-key" : "2c5bc730-4156-45a3-bbb6-b00b61bbf38b"
}
r = requests.get("https://api.thecatapi.com/v1/favourites", headers = headers)
try:
content = r.json()
except:
print("Wrong format!")
exit(1)... | [
"hubert.kopec@interia.pl"
] | hubert.kopec@interia.pl |
4d2bbeda5a24252a7ea6f1885c51c6d93506113d | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/ml/azure-ai-ml/tests/test_configs/internal/batch_inference/batch_score.py | d4d6442af85f63539fa31e84a937662258cbcb2d | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
"HPND",... | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,753 | py | import argparse
import os
from uuid import uuid4
import numpy as np
import pandas as pd
import tensorflow as tf
from PIL import Image
def init():
global g_tf_sess
global output_folder
# Get model from the model dir
parser = argparse.ArgumentParser()
parser.add_argument("--model_path")
parser... | [
"noreply@github.com"
] | Azure.noreply@github.com |
5dbdc097a44a379630fc759171547ca5ff324bb1 | e84200c16fc563e710f26083b6336350030411eb | /day11/canvas_plotter.py | 9ef49089e753b83f7ad274268306f4ccc1533398 | [] | no_license | cadolphs/advent_of_code_2019 | e178dc34fda5f0476e650e2baa922684dea8ebe5 | 5a95d22491cba6c0796b0259f31c6a8f7d66cd00 | refs/heads/master | 2020-09-23T09:15:39.230305 | 2019-12-18T21:56:01 | 2019-12-18T21:56:01 | 225,462,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | from helpers import Coord
class CanvasPlotter:
def __init__(self, symbol="█", invert=False):
self.symbol = symbol
self.space = " "
self.invert = invert
def plot(self, canvas):
symbols = (self.symbol, self.space)
if self.invert:
symbols = (symbols[1], symbol... | [
"clemens.adolphs@gmail.com"
] | clemens.adolphs@gmail.com |
7c4bad84f223813bde7feb2618ea930d0012bb06 | 944ce54c96c8b407bfaf7bc1d1d0d6fb6c0e7b49 | /scripts/environment_checker.py | 46e1384f0aaf7c175bef6117d1faa375f4527421 | [] | no_license | umd-fire-coml/2020-Object-Detection-In-Aerial-Images | 10cb952f8e8a670b31a1cc5c0dc32152b9a604e3 | 4211f1c2f4e241245fdaeb3d3200dba562fa26ea | refs/heads/master | 2023-02-03T01:21:28.787541 | 2020-12-14T00:23:27 | 2020-12-14T00:23:27 | 294,516,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | # Environment Checker Script:
# run 'conda env export | python3 environment_checker.py'
# Checker will tell you if you are missing a package or have the wrong version
# %%
import sys
import re
import os
# %%
#getting dependencies from environment.yml
env_yml = open(os.path.join('..', 'environment.yml'), 'r')
dependen... | [
"wesleychen44@gmail.com"
] | wesleychen44@gmail.com |
9990070fa2f6b87e1cfaa225a5a3856f31948e3a | 09cc2951898133eb44814d69f7aa023830d146bc | /mainapp/management/commands/save_db.py | 180c1ed017d8eef361e782e92b38b4c0c5111014 | [] | no_license | malfin/kpk_django | 0c82c80e32cd0195c293bd2c77b1789e7e2c30e3 | c36a669c7b3b83f349e9cdd65bf904fcd0b22075 | refs/heads/master | 2023-02-14T20:13:15.236281 | 2021-01-14T04:14:39 | 2021-01-14T04:14:39 | 305,098,243 | 0 | 0 | null | 2020-11-14T12:36:05 | 2020-10-18T12:37:37 | Python | UTF-8 | Python | false | false | 1,474 | py | from abc import ABC
from django.core.management import BaseCommand
import json
from mainapp.models import Hosting, Category
class Command(BaseCommand, ABC):
help = 'copy of db in file'
def handle(self, *args, **options):
categories = Category.objects.all()
categories_json = []
for it... | [
"aiex.0115970@gmail.com"
] | aiex.0115970@gmail.com |
05ed16a56c221efb146df7599eee7bd0e9511778 | 1e07ebba0d691a53ed9859c4514fa0fa26096948 | /restapi/apps.py | eb20a3cfa929284481bd8921b0dbda34d47b4917 | [] | no_license | frankbriones/fundacion | bf52a9be94348306b55506677c173428cc626fc1 | 9742d244526374aa4bbcb6c338b33a698c751a1d | refs/heads/master | 2022-12-22T12:29:39.106710 | 2019-11-08T00:25:04 | 2019-11-08T00:25:04 | 191,661,945 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from django.apps import AppConfig
class RestapiConfig(AppConfig):
name = 'restapi'
verbose_name_plural ='REstapis'
| [
"frankbriones90@gmail.com"
] | frankbriones90@gmail.com |
cc0b2d1459810381c22ba66daa4c15a36332e9d8 | 47c2b0ac81dfe005768d264ca24e1a9874640597 | /unidade4/eh_palindromo/eh_palindromo.py | 9ea9910a3aa813b0ea69264540fbb7f622a72ba0 | [] | no_license | alessandroliafook/P1 | d1033d754a78dd7f758edf7cdff2b2af47298e32 | e17aeaf15482226020d97cb00e86889b3d0922d7 | refs/heads/master | 2021-01-11T04:39:56.592741 | 2016-11-13T22:10:33 | 2016-11-13T22:10:33 | 71,143,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | #coding: utf-8
# Eh Palíndromo | Programação 1 - UFCG
# Alessandro Lia Fook Santos, 2015, (C)
frase = raw_input()
frase_c = ""
frase_i = ""
for indice in range(len(frase) -1, -1, -1):
if frase[indice] != " ":
frase_i += frase[indice]
for letra in frase:
if letra != " ":
frase_c += letra
if frase_c.lower() ==... | [
"alessandro.liafook@gmail.com"
] | alessandro.liafook@gmail.com |
a2df370f00f3b28bb4b7e44aeba2399d69206ea8 | a9d77077f0f06f0606befd0eb8f854e4d32d728a | /blog/models.py | 1939d777d543a80d65dc4ca5caa5ac604c65512e | [] | no_license | Bharathbmn6/my-first-blog | 020877e3cf2eab1ba0b42f77fb0a94b4d009a11a | 01893b79f3194fb0639751c8bb63fef70c296d04 | refs/heads/master | 2023-02-21T01:30:20.518665 | 2021-01-21T10:09:33 | 2021-01-21T10:09:33 | 330,568,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | from django.conf import settings
from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeFiel... | [
"bharathbmn4@gmail.com"
] | bharathbmn4@gmail.com |
ff736333c7068ac11f49c56d1797a72760059f07 | d590a8c72de5e2bc5c1689035cc11a126d308844 | /migrations/versions/677b6106ce9b_.py | 56031901b090f2616b5f9c715df0ba190f89c61c | [] | no_license | Jefferyjasmin/todos-flask-sqlalchemy | 6401726c4c4344d81e4cd8ae5a1516b082e6fc1e | f5f2d81fdcc04fcbecfb3cee57cfb9756d157588 | refs/heads/master | 2023-01-09T23:46:41.457200 | 2020-11-02T16:55:48 | 2020-11-02T16:55:48 | 307,803,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | """empty message
Revision ID: 677b6106ce9b
Revises:
Create Date: 2020-10-27 19:17:04.330010
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '677b6106ce9b'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"Jefferyjasmin1@gmail.com"
] | Jefferyjasmin1@gmail.com |
7c21964d8fa6950dba18b3d0553466329e86e32d | 18633afc38025464449d0c6ee2d0c299b5a97054 | /itorum_test/urls.py | f79248b2060a576a30d37efdba77a66ed75b1034 | [] | no_license | tmbaranova/itorum_test | c287461f82ebaecf280e4fcdca59001718a93adc | 8d6561ee54b53b1a93cfb11c1281c4de82869235 | refs/heads/main | 2023-06-28T22:30:02.568610 | 2021-07-26T15:19:10 | 2021-07-26T15:19:10 | 388,044,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from django.urls import include, path
urlpatterns = [
path('api/', include('api.urls', namespace='api')),
path('accounts/', include('users.urls', namespace='users')),
path('', include('order.urls', namespace='orders')),
]
| [
"tmb2508@gmail.com"
] | tmb2508@gmail.com |
2e463525331421822a9e3bcf0591feee8597483c | 8d8133f71ddbec2c0c315d66bbf3c892d1b3340e | /jirare/cli.py | 86e7e12fbb368af807d876d3a6cc1768900a116f | [] | no_license | mancdaz/jira-re | 04a7c8bd54d9a7c1d5383e9bdddbf6e2d54c9e22 | 1cb5fc75df675981df9751740d10801beae2f5ea | refs/heads/master | 2022-12-12T23:26:41.183739 | 2019-06-18T09:13:44 | 2019-06-18T09:28:46 | 147,507,559 | 0 | 0 | null | 2022-12-08T00:44:47 | 2018-09-05T11:30:13 | Python | UTF-8 | Python | false | false | 7,541 | py | #!/usr/bin/env python
from jira import JIRA
from datetime import date
from collections import Counter
import argparse
import os
def get_args():
parser = argparse.ArgumentParser()
parser.add_argument('-r', '--release', action='store', dest='release')
parser.add_argument('-i', '--issue', action='store', de... | [
"darren.birkett@gmail.com"
] | darren.birkett@gmail.com |
0643879d66b9af283475aa1146a91599e8d4b1e7 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Lambda-Resource-Static-Assets/2-resources/_External-learning-resources/02-pyth/python-ds-master/data_structures/graphs/topological_sort.py | 8048bf33e578b7cd1560d20b770d84cc1bdb39af | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 667 | py | from collections import defaultdict
class Graph:
def __init__(self, vertices):
self.V = vertices
self.graph = defaultdict(list)
def add_edge(self, u, v):
self.graph[u].append(v)
def topo_sort_util(self, v, visited, stack):
visited[v] = True
for i in self.graph[v]... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
290ec9574cff40fab577f07a62cbfc447eb5df11 | dddc6e8a4c22d7b4533d00132780f3a34e31d986 | /chipy_org/apps/announcements/admin.py | 1e1aac8ab5ca26ea89ea071eca2299fd163f35ea | [
"MIT"
] | permissive | smandekar1/chipy.org | 38ef13fb048b00d0ddb3d519001669d3fdc5f59b | d70c6936a389d3e8b7c3530360f08d01aa4fa7f3 | refs/heads/master | 2020-07-29T15:16:00.610484 | 2019-12-26T04:39:30 | 2019-12-26T04:45:31 | 188,470,729 | 0 | 0 | MIT | 2019-05-24T18:37:07 | 2019-05-24T18:37:06 | null | UTF-8 | Python | false | false | 362 | py |
from django.contrib import admin
from .models import Announcement
class AnnouncementAdmin(admin.ModelAdmin):
list_display = ['id', 'active', 'end_date', 'headline', 'created']
search_fields = ['id', 'headline', 'body', ]
readonly_fields = ['created', 'modified']
list_filter = ['active']
admin.site.... | [
"joe.jasinski@gmail.com"
] | joe.jasinski@gmail.com |
8f05f5275b729a35ec9fa2cebf184c45bb58d535 | 3f54028161a869a82c1ad8f0456cc8b37b32709f | /level03/level03-remote-nc-ethernet-test.py | 0b0e15f6389f3da4c281b4cfee6e1f890ae2ac46 | [] | no_license | vincemann/exploit.education-fusion-solutions | f66002183c1ec7b95bb54ef2aa204100192be696 | 77eb1b3060b86e4a40808d31f95934b4bbb191bb | refs/heads/master | 2023-05-01T12:02:53.834241 | 2023-04-20T19:05:39 | 2023-04-20T19:05:39 | 349,859,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | from pwn import *
from pwnhelper.dmesg import Dmesg
import threading
############################################################################################################################################################
# GET POST REQUEST FROM REMOTE PROCESS INTO LOCALLY LISTENING NC ON ETHERNET NIC
############... | [
"v.conrad98@web.de"
] | v.conrad98@web.de |
fcd29aa6cfdd07d69f7305fd3b6a09de31a99f67 | f72f9a688b0d04a7c02182c2bbb1f4c1ff013543 | /ipl/workflows.py | 9fafa864c14ac2bcbf7c1665d083d071d863b38c | [
"MIT"
] | permissive | webdevAlina1107/ImageAnalysis | b33953d22692cf748e0980d811c5b4ed4aed0528 | b925461940d98bf0288d6db47f359a74c2e2183e | refs/heads/master | 2023-07-24T08:43:46.074857 | 2020-04-04T07:33:33 | 2020-04-04T07:33:33 | 245,673,471 | 1 | 0 | MIT | 2023-07-06T21:57:05 | 2020-03-07T17:11:18 | Python | UTF-8 | Python | false | false | 16,968 | py | import calendar
import datetime
import os
from itertools import chain, islice, tee
from typing import Any, Iterable, List, Optional
from warnings import warn
import numpy as np
import pandas as pd
from click import confirm
from tabulate import tabulate
from ipl import image_analysis as image_anal
from ipl import impo... | [
"hpcproyalplay19"
] | hpcproyalplay19 |
643c6e972bd9287d061427c23d01dc78f74914be | b510f89dd40c0ed6bda55230fe4615d16de07251 | /picbackend/views/v2/case_management_module_views/individual_cm_step_views/__init__.py | b8eb3fce756c514faee9c91ef35158dc339d0e3a | [
"MIT"
] | permissive | bbcawodu/careadvisors-backend | 42676d269679c487a97a8870339bbded27a0ccf7 | 5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838 | refs/heads/master | 2020-03-25T12:47:05.267866 | 2018-08-14T16:29:02 | 2018-08-14T16:29:02 | 143,793,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from .default_enrollment_step_1_views import *
from .default_enrollment_step_2_views import *
from .default_enrollment_step_complete_views import *
| [
"awodubradley@gmail.com"
] | awodubradley@gmail.com |
2e7b6835ac6ed356f1d768363d0cc48228ce62fc | bea252fd3ac7e04b24be5b44a3dd277e804f6933 | /button.py | 6d943bb45efbba1acf2da24f713494194bf6d094 | [] | no_license | RubbishBird/BoatGame | fb3a454c60347136930d85cd59ec2d98d988101e | ea0ee66746ebbcc204dbd8d7c080373c3d56f428 | refs/heads/master | 2020-03-27T04:45:27.749979 | 2018-08-24T08:58:42 | 2018-08-24T08:58:42 | 145,965,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# @Time : 2018/8/23 13:29
# @Author : feng
# @Site :
# @File : button.py
# @Software: PyCharm
import pygame.font #导入模块pygame.font,让pygame能够将文本渲染到屏幕上
class Button():
def __init__(self, screen, msg):
'''初始化按钮的属性'''
self.screen = screen
... | [
"1158784496@qq.com"
] | 1158784496@qq.com |
2bb92dcd597fb51a8a2d2e9fc100157de0b1bf7c | 01cbdf69ea6bf89c1aefc5441b29446a2e1da897 | /friends_snack_and_lenght.py | 8c21ecaa9837e4401776e7ad04abf6099520b701 | [] | no_license | hannavw/dsf_exercises | 7230e02e5d5b3e605f1cf9a10a49189a8ca966e0 | 095be8b7e52a421aab49ee0384f5e04ee999b7a7 | refs/heads/master | 2020-03-30T12:47:37.288857 | 2018-10-22T10:56:42 | 2018-10-22T10:56:42 | 151,240,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | # Put my friends in a list
friends = ["Marleen", "Femke", "Nienke"]
snacks = []
# Ask each friend for snack and add snack to a list
index = 0
for friend in friends:
snack = input(friend + ", What's your favourite snack? ")
snacks.append(snack)
index = index + 1
# Loop through friends and pl... | [
"noreply@github.com"
] | hannavw.noreply@github.com |
313417e6434e002faaccfe8586c2fa9cce202efc | 85e31e46223336c2fb9e1468a8495d5d9a46ba07 | /helper_funcs/loadTimeTest.py | ffceeee4af0355d73de9a4d37e97c95e6361f4d2 | [] | no_license | craigiedon/dl2_lfd | 74d596b6487db4e0aa124118aba00a48beeb2b81 | 9ddc279f4e317b4a8ed08f0df26e7d49d1416b00 | refs/heads/master | 2021-06-26T04:31:53.777786 | 2020-12-10T18:38:42 | 2020-12-10T18:38:42 | 179,474,150 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | import time
import torch
# from torchvision.transforms import Compose, Resize, ToTensor, ColorJitter
from torchvision.transforms import Compose
from helper_funcs.transforms import Crop, Resize, ToTensor, ColorJitter
from load_data import load_demos
from helper_funcs.utils import load_json
exp_config = load_json("confi... | [
"craiginnes@gmail.com"
] | craiginnes@gmail.com |
6febcba8b69ca66a320575abc241fe8583e7ce3e | f2f01160196f210f0e4846b642517e548ffbed05 | /main.py | f2fac0461c2a1bb75b7a5d26e761ae42aa3c7372 | [] | no_license | Zohair-coder/Drexel-Course-Availability-Notifier | 8c4db47bdd9643f99ea5bf93aaf4b96fa03c868c | 97a9a75b2d2d5e9e16b9b07ec71d0cbf281d3195 | refs/heads/master | 2023-04-08T14:01:40.116622 | 2021-04-03T19:25:24 | 2021-04-03T19:25:24 | 296,162,935 | 8 | 1 | null | 2020-10-27T02:40:06 | 2020-09-16T22:41:47 | Python | UTF-8 | Python | false | false | 134 | py | #!/usr/bin/env python3
import course_notifier
import course_url_finder
url = course_url_finder.find()
course_notifier.Notifier(url)
| [
"zohair.ul.hasan@gmail.com"
] | zohair.ul.hasan@gmail.com |
b4ff7d5d5670b0146bc9005325642673f4776779 | bcfaf36daab340a4c8c081e1d2fc8fd75e895cd1 | /src/spcount/visualization_util.py | 664d32d830c350add7483f8057130688a5a60c85 | [
"MIT"
] | permissive | shengqh/spcount | 2e21f0a4deae50a8a7e08cb5629980356f7339cf | 74df822b8d075a9204d472b527b3d8130f355f27 | refs/heads/master | 2022-11-30T22:59:11.157491 | 2022-11-24T22:55:10 | 2022-11-24T22:55:10 | 249,027,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,619 | py | import pandas as pd
import subprocess
import logging
import os
def read_taxonomy_name_map(taxonomy_file):
name_map = {}
with open(taxonomy_file, "rt") as fin:
for line in fin:
parts = line.rstrip().split('\t')
name_map[parts[4]] = {
"id":int(parts[0]),
"rank_level": int(parts[1]),
... | [
"shengqh@gmail.com"
] | shengqh@gmail.com |
00ca546b482e9a3357efcedfb35eba995a15167a | 233730f1cfd0ade13cfe40c02ce6909c99743dcf | /test/experiments_real_data/benchmark_test.py | 653d28f03cb99b87d31925a4999db358684e2be9 | [] | no_license | zubekj/meta-learning-evaluation | e4279fae3fee2ef9dc2049dba228dad59780b7f4 | a2a2e9e901c13e112ae7267fd258645864d421e2 | refs/heads/master | 2016-09-05T20:36:52.390110 | 2013-03-05T12:27:22 | 2013-03-05T12:27:22 | 6,616,526 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | import sys
import unittest
import copy
import Orange
sys.path.append('../../src/experiments_real_data/')
sys.path.append('../../src/')
from benchmark import *
from utils.cSimilarity import *
#from utils.similarity import *
class TestBenchmark(unittest.TestCase):
def test_build_set_list_desc_similarity(self):
... | [
"zubekj@gmail.com"
] | zubekj@gmail.com |
7d3518fccbe5699ef74e58ed18431338cd610828 | d4a48ff382b986aa490a7ea36a16c2f32da06476 | /HeapTests.py | b6b9dede75858d6c470f4f76cce1a5123d42a5c8 | [] | no_license | samiur98/Data-Structures-Python | b26009fc31a8db161f1f8b648844cd789bce755f | 7eb3639da88c32845d83c9124876ac984304bd5d | refs/heads/master | 2020-07-06T10:57:18.846657 | 2019-08-23T18:52:45 | 2019-08-23T18:52:45 | 202,994,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,181 | py | import unittest
from Heaps import *
class HeapTests(unittest.TestCase):
#Test Cases for the MinHeap Data Structure.
def test_is_empty(self):
#Test Cases for the is_empty method.
heap = MinHeap()
self.assertTrue(heap.is_empty())
heap.insert(1)
self.assertFalse(heap.is_emp... | [
"sam@Shahs-MacBook-Pro.local"
] | sam@Shahs-MacBook-Pro.local |
657464f084568ac7b144aa352a5071d2baf71dad | 85b71c0c1c2dde75e06bdc777d1a5efa73e25117 | /astar/findPath4way.py | fa2282969a0b273c3af38f6a607661fb197753a0 | [] | no_license | sparshjain265/AI-Lab | 9aba945fa1d4aaec3c9ea057d86fb71f53130627 | f5f875c791c5948b27ef0f5e45d0ec5ae300cd87 | refs/heads/master | 2021-06-18T22:15:09.110436 | 2021-01-09T13:59:49 | 2021-01-09T13:59:49 | 142,866,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,683 | py | import numpy as np
from collections import defaultdict
import queue
import heapq
import math
#Class grid for Environment
class grid :
def __init__(self):
self.dimension = int(input("Enter the dimension of the grid: "))
self.mat = np.reshape([0]*self.dimension*self.dimension, (self.dimension, self.dimension))
... | [
"sparshjain265@gmail.com"
] | sparshjain265@gmail.com |
d0b25bd740f917ac3865265a18d89be1c7f10b27 | 3dc5849f9c5ce3aa04480811a7fd1bbd7445c32f | /Isaac/track_object_movement/Basics/test_video.py | 0db160488c02cbbc4bd53dc694de42ce66a18b0c | [] | no_license | abulous/OpenCV | 8cacfe83c751f6b791e3d57ed221e515fc005bee | f9a2a9fd200dde845a2207ea1224c015413110e4 | refs/heads/master | 2021-05-13T18:26:05.052496 | 2019-12-06T22:21:23 | 2019-12-06T22:21:23 | 116,860,853 | 3 | 5 | null | 2018-05-03T03:54:37 | 2018-01-09T19:33:03 | Python | UTF-8 | Python | false | false | 757 | py | from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import cv2
#initialize camera and get reference to the raw camera capture
camera = PiCamera()
camera.resolution=(640, 480)
camera.framerate = 32
rawCapture = PiRGBArray(camera,size=(640, 480))
#allow process to warm up
time.sleep(0.1)
#g... | [
"inealey@ucsd.edu"
] | inealey@ucsd.edu |
4e0dfa5dba4c09dbecb89b3a3f64b7564a5d322a | 2dcfe2659909c47c573a74b28008a7f3d7893af7 | /install | ea0e00c0e75c5677c5d5b8e34a2d3f265f07d918 | [] | no_license | OpenLivePlatform/CI_live | a8a6ae22c8eb4d0c1cb2cbb19cc2d82e07a1b7a0 | b40a554a05940c08d64ffa6053b6aa6f47acae3c | refs/heads/master | 2020-12-02T17:41:23.389329 | 2017-11-13T14:06:08 | 2017-11-13T14:06:08 | 96,412,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,979 | #!/usr/bin/python
import os
service = "olp"
version = "0.0.1"
install_path = "/usr/local/" + service
packages = {
"openresty": {
"url": "https://openresty.org/download/openresty-1.11.2.5.tar.gz",
"options":
"--prefix=" + install_path + " --with-http_drizzle_module",
"install"... | [
"wj19840501@gmail.com"
] | wj19840501@gmail.com | |
5827f9a7ac8ce8e9972718a5940bf0cbb01b5c4c | d10550752b30517c6ffcb21a2a9c69b5caac583a | /socketprogramming/server.py | 29f747626f00a896ea9ebc2c657736dcdc09567d | [] | no_license | AryaAtharva/pythonprojects | 77931c3ca20bc051d3bda16f0e24d25bb95f5cc6 | 40bbe3e848c9922717efb2af38fe65580c165622 | refs/heads/master | 2021-04-05T12:46:34.779897 | 2020-06-07T19:22:14 | 2020-06-07T19:22:14 | 248,558,416 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,990 | py | import socket
import threading
import hashlib
class BankAccount :
def __init__(self, username, password, balance, id):
ghj = hashlib.sha256(username.encode())
self.roger = ghj.hexdigest()
self.username = username
result = hashlib.sha256(password.encode())
self.id... | [
"noreply@github.com"
] | AryaAtharva.noreply@github.com |
dc21d156d5ad604a938d98723ddc0d86c9010747 | 986ca36fc5e6ab0e30faa0edb93103553abc66ff | /screenshot_cmd.py | 51ddaf541a272501b44cb87ed6cdc4651a6ad012 | [] | no_license | tsukudamayo/python | 159afdb736bc5fd1a13f28f3e03fee15053613bf | 764e5a5054af7f4cfc95da34f5425cc899b8a390 | refs/heads/master | 2022-12-03T03:17:24.708704 | 2018-06-08T13:37:45 | 2018-06-08T13:37:45 | 112,599,153 | 0 | 1 | null | 2022-11-18T06:26:37 | 2017-11-30T10:38:58 | Python | UTF-8 | Python | false | false | 580 | py | from PIL import ImageGrab
import sys
from datetime import datetime as dt
import time
def loop():
now = dt.now()
f_name = now.strftime('%Y%m%d_%H%M%S')
for i in range(int(sys.argv[1])):
im = ImageGrab.grab((int(sys.argv[3]),
int(sys.argv[4]),
... | [
"tsukudamayo@gmail.com"
] | tsukudamayo@gmail.com |
1613dec4a43b0208f01872c4ea78f3b5dc9c0cc2 | 6bdad555fd073e8b1c73e373782249c364a0b5bd | /expenses/constants.py | 3e5b2e5173211dd013a87efacbd2c9c3af3a38fc | [] | no_license | h4k1m0u/gistutorials | 35383f5e1197553c528bc75405094118815e72fd | 795da31428a469becb948deefe57c725116266be | refs/heads/master | 2023-01-05T20:38:39.552302 | 2019-04-29T01:03:34 | 2019-04-29T01:03:34 | 309,973,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | months = {
'1': 'January',
'2': 'February',
'3': 'March',
'4': 'April',
'5': 'May',
'6': 'June',
'7': 'July',
'8': 'August',
'9': 'September',
'10': 'October',
'11': 'November',
'12': 'December',
}
| [
"h.benoudjit@gmail.com"
] | h.benoudjit@gmail.com |
aab74d67d1a3e78ff9d734e0eac16b5412b9da91 | c7a86a12ff51ba86c758214559ffa1979b140237 | /1. Python - Basics/OOPS/overlaod_duck_typing.py | f1150aaa68824acc656cbf8c0cae6f6c3aaebf01 | [] | no_license | pankaj890/Python | a2086b64ee7a138afd4a42778cde6cf2aaacbd14 | 7bcb9ebb1f986b75f96dd0c9f04948ba3fc0ddba | refs/heads/master | 2021-06-30T10:51:01.109003 | 2020-05-05T12:26:06 | 2020-05-05T12:26:06 | 201,756,541 | 0 | 0 | null | 2019-10-25T08:50:00 | 2019-08-11T11:34:22 | Jupyter Notebook | UTF-8 | Python | false | false | 524 | py | class Pycharm:
def execute(self):
print('compiling')
print('running')
class MyEditor:
def execute(self):
print('Spell Checking')
print('Naming Convention Checking')
print('compiling')
print('running')
# Here we have the same method name and w... | [
"noreply@github.com"
] | pankaj890.noreply@github.com |
2c1b8296f5014ddc48703e61c8d0a2e8c0417864 | 5c267dc9493d3452e4cf2c8c31977b870663d651 | /MiddlewareApi/DocumentMiddleware/DocumentMiddleware/urls.py | b8ab73ceb24f6cf8404095d5d63bb61af3f3c66f | [] | no_license | gitCORAPE/covid | 52edef8f365ff211ba2d38e1e8cf3cc68448de82 | c8962a65111c9582c2319278ef46856a09c64844 | refs/heads/master | 2022-12-11T01:21:19.512164 | 2020-09-15T21:11:53 | 2020-09-15T21:11:53 | 295,849,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('api/', include('api.urls')),
]
| [
"enriquezer91@gmail.com"
] | enriquezer91@gmail.com |
59653f12cf4af86cdd76fdce685e1657a6b655f7 | 7ba36ae8005834b53901919e0b262d809207b0f7 | /ilisa/__init__.py | 0ccfe5cfd3f5ac18a10ff50fe595fec0b4db452b | [
"ISC"
] | permissive | David-McKenna/iLiSA | f63834c3933a86fbf43063f42d80a0ed52cfd224 | 4cbd1d50933b6e0a4e99894c24b70b101c5d77b1 | refs/heads/master | 2021-06-14T10:35:13.400533 | 2021-03-03T16:29:44 | 2021-03-03T16:29:44 | 153,136,624 | 0 | 0 | null | 2018-10-15T15:22:52 | 2018-10-15T15:22:52 | null | UTF-8 | Python | false | false | 21 | py | __version__ = '3.18'
| [
"tobia@chalmers.se"
] | tobia@chalmers.se |
a150ba71f03557fe2645e4d0bcf5046354bb37ce | 4f4a73f7368df75f8ffc248e90e8b7994ba45645 | /Lesson_5/shop_storage/shop_storage/wsgi.py | 99ee49e74730c2555f3d5ee066b8cc5f9ab912ff | [] | no_license | ss2576/Interview | 11908b3dbc565603be909b41839fa05250d9e77b | 39dca268d571cc02fb36d5d911cece4fab89d510 | refs/heads/master | 2023-02-13T07:21:55.844662 | 2021-01-18T09:49:52 | 2021-01-18T09:49:52 | 321,565,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
WSGI config for shop_storage 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('DJANGO_... | [
"ss2576@mail.ru"
] | ss2576@mail.ru |
d9e3d680e965cbc487b7c0c7393e7763cbd448f0 | b4179b0f5294e27f7431743ee14af35379098d30 | /Homework/hw01/hw01.py | 7dc94c76a39a37a5b02681585f04303e9005fe98 | [] | no_license | Clairezhang29/cs61a | e0744cd609c861caa21262f7ecd024cc3ca23683 | 0b3e5b4d1672e682ef4b29a6e38f6505cc295607 | refs/heads/master | 2022-02-25T11:14:34.045216 | 2019-10-08T14:40:03 | 2019-10-08T14:40:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,716 | py | """ Homework 1: Control """
from operator import add, sub
def a_plus_abs_b(a, b):
"""Return a+abs(b), but without calling abs.
>>> a_plus_abs_b(2, 3)
5
>>> a_plus_abs_b(2, -3)
5
"""
if b < 0:
f = sub
else:
f = add
return f(a, b)
def two_of_three(a, b, c):
"""R... | [
"32255369+chromezh@users.noreply.github.com"
] | 32255369+chromezh@users.noreply.github.com |
1282a604cee25466eb64443709a3037bd42b19fc | 7be145ad70fa03c63ac348849532a19fc2285720 | /webcdi/cdi_forms/migrations/0073_merge_20200610_0733.py | 50c40e5d34048605a1a20a1d2ee68abb2b1b9541 | [] | no_license | langcog/web-cdi | 8834ae260e7b6d41411bafbfaa80519fd88a9e4d | 27a1bfb342c0e533ba99d197db3b47dc4443b170 | refs/heads/master | 2023-08-30T07:39:50.557502 | 2023-07-31T05:59:16 | 2023-07-31T05:59:16 | 41,515,374 | 9 | 6 | null | 2023-08-28T17:29:04 | 2015-08-27T22:56:31 | JavaScript | UTF-8 | Python | false | false | 281 | py | # Generated by Django 2.2.13 on 2020-06-10 07:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cdi_forms', '0072_auto_20200506_1029'),
('cdi_forms', '0071_choices_choice_set_ko'),
]
operations = [
]
| [
"noreply@github.com"
] | langcog.noreply@github.com |
f69d2e9b412c95845470cfd44659f888e5c4bb03 | b5d6219ac738ed05485439540f38d63d21694c51 | /DAT/ED6_DT01/T0045.调试地图.py | 20ebbe0391d9c0169a1719461f0b7da449694e37 | [] | no_license | otoboku/ED6-FC-Steam-CN | f87ffb2ff19f9272b986fa32a91bec360c21dffa | c40d9bc5aaea9446dda27e7b94470d91cb5558c5 | refs/heads/master | 2021-01-21T02:37:30.443986 | 2015-11-27T07:41:41 | 2015-11-27T07:41:41 | 46,975,651 | 1 | 0 | null | 2015-11-27T10:58:43 | 2015-11-27T10:58:42 | null | UTF-8 | Python | false | false | 31,403 | py | from ED6ScenarioHelper import *
def main():
# 调试地图
CreateScenaFile(
FileName = 'T0045 ._SN',
MapName = 'map1',
Location = 'T0030.x',
MapIndex = 1,
MapDefaultBGM = "ed60010",
Flags = 0... | [
"Hiromi.Kaede@gmail.com"
] | Hiromi.Kaede@gmail.com |
1e56394528485801c15afd6e6f1eaee270a50790 | 64d7b6f613234cc69af0b1821e531fca44d65ddb | /threads_concurrent/13-ex_real.py | 708559731c5b548f7e26a2924bf96f7538d8ff40 | [] | no_license | jccramos/My-first-repository | 1442d8f9c54ac9f6e65f570756e80fbc9ddcab9c | b97cec73dfc375849633bccee490b0962b5851a8 | refs/heads/master | 2022-11-09T21:17:51.497840 | 2020-07-02T19:33:45 | 2020-07-02T19:33:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,076 | py | #Tentaremos melhorar o tempo de execução do código no arquivo 12
import requests
import time
import concurrent.futures
img_urls = [
'https://images.unsplash.com/photo-1516117172878-fd2c41f4a759',
'https://images.unsplash.com/photo-1532009324734-20a7a5813719',
'https://images.unsplash.com/photo-15244296565... | [
"ramosjulio771@gmail.com"
] | ramosjulio771@gmail.com |
0e659b6895f4c47c42455b63745231cf437b6471 | 4ba3f4c37a8f58fb9ca48fd6fbaa07e7267f4397 | /main.py | c549feb53bfbf9eb1aa7f3a5199d005d72c38758 | [] | no_license | Geneonosis/HogwartsDiscordBot | d193443cc4f64db4438fb3b74dcea3463b655890 | 3963dc4205cdf3cc2393e22ae7ba7125ecd9af47 | refs/heads/master | 2022-04-20T19:38:07.304603 | 2020-04-24T04:38:53 | 2020-04-24T04:38:53 | 258,405,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | #hello you wanna write this in python
#also i don't know how to make a discord bot | [
"jadaebong@gmail.com"
] | jadaebong@gmail.com |
8ba5cb760b032b8a9e063bf44fa89047527e62a1 | 5c279b92063481363037841f5677154ed70a8738 | /Global/util/inception.py | 5eea739b1d6742ade30bda2ec9aabb834fca0f15 | [
"MIT"
] | permissive | ImportPaddle/Old2Life | 8fdc97a16207fb5bfcc66e5dc93d84961a40efba | 424a2433e9a00c7eaeb660c40d22f6168dc8f576 | refs/heads/master | 2023-08-26T22:37:23.985176 | 2021-11-03T03:57:11 | 2021-11-03T03:57:11 | 421,377,673 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,951 | py | #Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.
#
#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 l... | [
"yrz1016@163.com"
] | yrz1016@163.com |
ba828bef67d461eaeca4b8d9466ff89c0bad702d | 5692e6a1889a87bd6c6b241ddb8a9d53b464bb3f | /src/host/mqtt.py | 018c3ab854de334f15aa4bce5f6749885d77f648 | [
"MIT"
] | permissive | h4xxel/kanelbulle | 0cbccfbbf8debfb288ebb42a5bbccca9ae86b3bd | 0e588c3d752fea3c62e94919422d1b5a46a38c4b | refs/heads/master | 2020-05-18T19:07:30.579579 | 2015-03-17T15:47:41 | 2015-03-17T15:47:41 | 29,966,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | #!/usr/bin/env python
import json
import mosquitto
# The callback for when the client receives a CONNACK response from the server.
def on_connect(obj, rc):
print("Connected with result code "+str(rc))
# Subscribing in on_connect() means that if we lose the connection and
# reconnect then subscriptions wil... | [
"shemani@kth.se"
] | shemani@kth.se |
9d9a3a67e4e579bb8bbd2d88810a81d10778ab0a | b6a52446c73fbe837220e5e82cc39579efdc7201 | /venv/bin/gunicorn_paster | 5ca143bf826f280fe9c42b17768a3d5a88f30ee9 | [] | no_license | billyggroves/prospectRoulette | e29e3a39edf1640f7cda6ba75da64b6cddadcd79 | 5f1757765e38014f95cc59b66d1d40c3b8fc9638 | refs/heads/master | 2021-05-03T21:27:07.103334 | 2018-05-22T01:36:31 | 2018-05-22T01:36:31 | 120,383,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/Users/newuser/Desktop/prospectRoulette/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"newuser@Dirks-MacBook-Air.local"
] | newuser@Dirks-MacBook-Air.local | |
26e3f726b2a432bebbd1302405d43c656284ae34 | fc0bc3f652fe86b8e7cc01c29f58428de2a1fd27 | /plugins/plugin_example/plugin_test.py | 3ea592ea92cf40041947a6a634f567224a4b4003 | [] | no_license | simanwhite/FlowAssistant | 677438e705e079fc27b3b7a87ecde12004825a36 | ad90bcfaa5e6ab70971d647815148b3daebfcfcb | refs/heads/master | 2021-01-11T20:05:48.304441 | 2017-01-16T02:20:56 | 2017-01-16T02:20:56 | 79,037,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | import os
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from plugins.Categories import *
from gui.WebView import WebView
class PluginOne(TabularPlugin):
name = 'Tabular Plugin 1'
_this_directory = os.path.dirname(__file__)
icon = '%s/res/bottom-top.gif' % _this_directory
form = WebView.WebViewF... | [
"simanwhite@126.com"
] | simanwhite@126.com |
8fae8f078c0646796dc561828590d3f6ab538b0d | c9d444386d8c8b33915a25155b17e8532fd64c59 | /03-persistent_data/sql_queries.py | bc5ee12cd33ac0e51f2cdf650b924313dcac51e2 | [] | no_license | xkustan/PV248 | 45ca890786399ab2671b34bf0776bd24ab91f917 | e3e97a1fea3d0a4e65368facf28f4a758e9609a8 | refs/heads/master | 2020-03-29T19:53:55.781537 | 2019-01-14T22:09:06 | 2019-01-14T22:09:06 | 150,284,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,951 | py | """SQL queries."""
CREATE_EMPTY_DB = [
"""create table person ( id integer primary key not null,
born integer,
died integer,
name varchar not null);""",
"""create table score ( id integer primary key not null,
name varchar,
... | [
"xenia.kustanova@gmail.com"
] | xenia.kustanova@gmail.com |
b199c9e4092bb8ae5cb5399e65a6b090b247103f | 25404f4cfb9be3e6f1b3fe31a1554459eb200813 | /my_data_structure/my_dict/chang_dict_and_pass_the_input_value.py | ca8d669cd32aa1e3d1d97049b25a8c3b70504f3e | [] | no_license | nightimero/annal_report_test | 1c6eb4b71482f870c753f5084212afd071929f57 | 7bbc76ba703527ba8f4b84fbdb94fd57b37b9887 | refs/heads/master | 2021-09-06T21:18:59.534963 | 2018-02-11T15:31:21 | 2018-02-11T15:31:21 | 103,259,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # -*- coding:utf-8 -*-
def print_b(**kwargs):
print 'print_b', kwargs
print 'print_b,a:', kwargs['a']
def print_a(**kwargs):
print kwargs['a']
print kwargs['b']
print kwargs['c']
print_b(**kwargs)
dict_a = {'a': 1,
'b': 2,
'c': 3,
}
print_a(**dict_a)
pr... | [
"chenxiang@aiknown.com"
] | chenxiang@aiknown.com |
befaf9bd3f0976192acb33af02d31694f4832e35 | 767c2802d355ad389e29d50ab28437b10b78a990 | /slicepractice1.py | 76708a19ae08241ad06b66f5610b4b67226a3627 | [] | no_license | 24emmory/Python-Crash-Course | ed15047f9e9bbb799f2764319e11b5cb35f3f4ae | b64b969102cc50d12952c6853e544598e0b34f70 | refs/heads/master | 2022-11-26T06:27:41.916105 | 2020-08-01T22:51:16 | 2020-08-01T22:51:16 | 274,295,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | passage = ['ave','blvd','road', 'street']
my_passage = passage[:]
print("Names of pathways on the road:")
print(my_passage)
#the exercise
print(my_passage[2:3])
print(my_passage[:])
print(my_passage[1:4]) | [
"24emmory@gmail.com"
] | 24emmory@gmail.com |
b567077820ad0049e301dd127fc747cd040cf8cf | 1271621c750c618570c7658d2e4eb63135223d11 | /Developer Preview/Volume.app/Volume | 252b0d03ac2a6129e64c9bc6932255da0778209e | [
"BSD-2-Clause"
] | permissive | rbircher/Utilities | 01aa5054f78db442f6fdcb870fc315007614834f | e919db5b7a383ab00563bb1111d9421e640e74f1 | refs/heads/master | 2023-03-06T13:12:37.520993 | 2021-02-15T16:38:26 | 2021-02-15T16:38:26 | 339,134,041 | 0 | 0 | BSD-2-Clause | 2021-02-15T16:38:27 | 2021-02-15T16:16:27 | null | UTF-8 | Python | false | false | 13,444 | #!/usr/bin/env python3
# https://github.com/helloSystem/Menu/issues/3
from PyQt5.QtWidgets import QApplication, QSystemTrayIcon, QMenu, QAction, QHBoxLayout, QGroupBox, QSlider, QWidget, \
QActionGroup, QDesktopWidget, QMessageBox
from PyQt5.QtGui import QIcon, QPixmap
from PyQt5.QtCore import Qt, QProcess, QMet... | [
"probonopd@users.noreply.github.com"
] | probonopd@users.noreply.github.com | |
dc62a8e5da1f08febe890bece64437a7ce3f8255 | c5b9117e09a191cd6609d798535c6d6f392be7a0 | /novice/jasaguru-master/home/urls.py | 1705f56113ab109a22fa893eddb133f588707ff4 | [] | no_license | iklimah27/praxis-academy | 3b62cf930698071ba9e99b0878ac66cf70f72edc | 94b0277215d26c0dac4f129a53d44931dd732aa5 | refs/heads/master | 2023-01-30T17:01:02.412711 | 2020-12-14T10:46:27 | 2020-12-14T10:46:27 | 301,330,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('', views.Htampil, name='home'),
path('Hguru', views.Hguru, name='Hguru'),
path('Habout', views.Habout, name='Habout'),
path('sd', views.sd, name='sd'),
path('smp', views.smp, name='smp'),
pat... | [
"iqlima.safira99@gmail.com"
] | iqlima.safira99@gmail.com |
f7fd8663575225c4f1ab9e0c64d3a2d5cb25aa8c | 35618a5f5c6f2a9c232b8528a6846d43d4d64db8 | /tensorflow_translate.py | a9a10ffd6335c9dadd0f450e543cfd4ff1ba670c | [] | no_license | leezqcst/tf | b2a1b765ff0f77c18158756f3dfd69b7d7f21e67 | 9bd73dfc8adfbf8af304ed6a13f6691b76f1bc30 | refs/heads/master | 2021-01-19T15:31:36.320931 | 2016-11-29T23:47:17 | 2016-11-29T23:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,715 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# standard packages
import math
import os
import random
import sys
import time
import argparse
import logging
import re
# special packages
import numpy as np
from six.moves import xrange # pylint: disable=red... | [
"jim@queernet.org"
] | jim@queernet.org |
2ea0f1154fb758ae1af3e0672ef29d482d65786e | 54aebb608c183c338513e8311d04c5e743f131cf | /flask_tech_env/bin/alembic | 64c175c88e11b545422f195672ecc5778eecd5e5 | [] | no_license | kishoresvk21/tech_support | f7ee1d23eb80eae2e5215c9c122e4f5b07394509 | f749852ad361d40fb5d6e82a3f0df1b98ee70ea2 | refs/heads/master | 2023-08-27T03:02:22.675670 | 2021-11-02T04:48:52 | 2021-11-02T04:48:52 | 416,664,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | #!/home/krishnakishore/Documents/projects/tech_support/flask_tech_env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from alembic.config import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"svkrishnakishore2000@gmail.com"
] | svkrishnakishore2000@gmail.com | |
bc486ed35369c02c5c3259c17869ec0db5d761ee | 4ba0b403637e7aa3e18c9bafae32034e3c394fe4 | /zeroMQ/python/sync-pub-sub/pub.py | 41eae3b6eb6ac82650c18151caf3bfe41f6c5250 | [] | no_license | ASMlover/study | 3767868ddae63ac996e91b73700d40595dd1450f | 1331c8861fcefbef2813a2bdd1ee09c1f1ee46d6 | refs/heads/master | 2023-09-06T06:45:45.596981 | 2023-09-01T08:19:49 | 2023-09-01T08:19:49 | 7,519,677 | 23 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2013 ASMlover. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# ... | [
"asmlover@126.com"
] | asmlover@126.com |
28bc1f6d1d34c47bdde61822b9f1444460a05e58 | 5f64d91dc45e58c8e73a52985c6db45d340d09cc | /Pibow_Zero_W/vertical_striper_14.py | ab0183f9778b298a7c2fb809e80bb040a7805f52 | [] | no_license | Breakfast-for-Pigeons/Unicorn-PHAT | e0343eb9a46c4b7be11d5028be07ea6b0f071efd | 6e70302eac995cd11821ecf2ee363a1b926df2ce | refs/heads/master | 2023-01-01T18:05:27.436081 | 2020-10-23T22:18:13 | 2020-10-23T22:18:13 | 74,320,010 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py | #!/usr/bin/python3
"""
Vertical Striper 14 - Pibow Zero W
With the Raspberry Pi oriented with the GPIO pins at the top, this
program stripes from left to right and alternates between from the
bottom to the top and from top to bottom.
This is exactly the same as Vertical Striper 6 except the color order
is reversed.
... | [
"noreply@github.com"
] | Breakfast-for-Pigeons.noreply@github.com |
b9ff1e4bf3383d887ebca92a18d0c8ce3b6ba9eb | 39d89c1f7e3f3ce9ed4070a39f1def94d244ef76 | /searchface.py | 375bb9f5877c3209934f52a2e1d4d29ab5c4b578 | [] | no_license | c-mike-chang/face-rec | 65c9e34c4d41711a83f0de8be172fa58518867af | f2afab9f81d3f66d1d153fa01a03e3622b505ad8 | refs/heads/main | 2022-12-26T16:00:26.762679 | 2020-10-10T18:34:19 | 2020-10-10T18:34:19 | 302,847,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | import boto3
import io
from PIL import Image
rekognition = boto3.client('rekognition', region_name='us-east-1')
dynamodb = boto3.client('dynamodb', region_name='us-east-1')
image = Image.open("image10.jpeg")
stream = io.BytesIO()
image.save(stream,format="JPEG")
image_binary = stream.getvalue()
response = rekog... | [
"cmc8dm@virginia.edu"
] | cmc8dm@virginia.edu |
f02b7cb23762c15d63c32160f3fad6ddf0bb0aa3 | 22b62594357e0d62bdcf81e39fa52ef15a6b8cdc | /sketchbook/exceptions.py | 3c345f28539ff48b5fa70da824cfbfdfd09d89f9 | [
"Apache-2.0"
] | permissive | futursolo/sketchbook | 0d1386c4f8ee997e5838b730b4d4bb8994429a2d | 53ac4457e11fb0a47b0bed01bf1409d48303b8fe | refs/heads/master | 2022-07-28T17:04:23.425472 | 2022-04-04T05:17:06 | 2022-04-04T05:17:06 | 83,974,013 | 7 | 1 | Apache-2.0 | 2022-07-11T03:08:50 | 2017-03-05T13:57:34 | Python | UTF-8 | Python | false | false | 1,613 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2021 Kaede Hoshikawa
#
# 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
... | [
"futursolo@icloud.com"
] | futursolo@icloud.com |
85e6d219fcd2e07292d87d9383b72a6b579b876f | e1cdadaab73971f8af5461c3355667515062141d | /weatherAI.py | 96b597b8ed624f1598a025d5eb231247f6d00bde | [] | no_license | jshubh19/pythonapps | 34fc5fd1531231bc690f90800c0ca3f5e80a666f | e4a98bd407af60426e9555977c4dd3b924220765 | refs/heads/master | 2020-04-27T02:45:33.445699 | 2019-03-06T07:43:08 | 2019-03-06T07:43:08 | 174,004,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | import requests
from meya import Component
API_URL = (
"http://api.openweathermap.org/data/2.5/weather"
"?q={city},{country}&APPID={api_key}"
)
API_KEY = '0d3efb33fc57a68d3d90224751ee224d'
def farenheit(celsius):
return 9.0/5.0 * celsius + 32
class Weather(Component):
def start(s... | [
"shubhj4019@gmail.com"
] | shubhj4019@gmail.com |
3f3b2d5958003f9a4488591b8d8517ff7ad800b1 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/caf658b420345bcc905cfcdabcf64028eb692bcb-<process_instance>-fix.py | f3de19b7ae69fef0761e4e1d86014089c4e91df7 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | def process_instance(self, instance, instance_type='virtual'):
'Populate the inventory dictionary with any instance information'
if (('status' in instance) and (instance['status']['name'] != 'Active')):
return
if (('powerState' in instance) and (instance['powerState']['name'] != 'Running')):
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
de5e6f99a765185eb9c7fa0e0a349f68f86ecd10 | b85809734f170855a6c95b13bb8374634c5e5b6f | /ex13.py | 0986b002e060e2b0816af347481d548b8d57c798 | [] | no_license | JoseMorales7/LearnPython | 658c0be1c26e53e6961c40929adc37eb9af4391a | 3dcf2aadbe456a86a2fe68b533c77b6d732e115f | refs/heads/master | 2021-12-02T23:52:33.058041 | 2021-11-25T19:51:57 | 2021-11-25T19:51:57 | 164,707,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from sys import argv
script, first, second, third = argv
print("The script is called: ", script)
print("Your first varibale is: ", first)
print("Your second varibale is: ", second)
print("Your third varibale is: ", third)
| [
"student.133716@worc.k12.ma.us"
] | student.133716@worc.k12.ma.us |
2e262723d1ef86ce4ea87fb289967b60a5dbc6ce | 98bb92e5a9886e9d7130392039e3ce7304f78882 | /python/python_0513/python04_09_strfun04_우상민.py | 2105ded171f8996442ecbb529832eeb583a9ca50 | [] | no_license | woo9599/DataScience | 36e6982699b1897f6dbf87da316fa407473b7c2c | 55bd26dcf6d63264df0739f456c87d1ba4180887 | refs/heads/main | 2023-06-18T12:37:23.453556 | 2021-07-13T03:22:42 | 2021-07-13T03:22:42 | 378,833,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | #python04_09_strfun04_우상민.py
# 왼쪽/ 오른쪽/ 양쪽 공백 지우기(lstrip/rstrip/strip)
a = 'hi'
print(a)
print(a.lstrip()+ 'chk')
print(a.rstrip() + 'chk')
print(a.strip() + 'chk')
print('-' *15)
#문자열 바꾸기(replace)
a = ' Life is too short'
print(a)
cng =a.replace('Life','your leg')
print(cng)
print('-'*15) | [
"noreply@github.com"
] | woo9599.noreply@github.com |
c8a302c1d318255295e6e3049c9e0679e59f2192 | bddbc04172680558b969aaa40b3defc1d99b8cfb | /probegin_test/forms.py | 848a82b4ee831c55bac7cce851a1663b9d8e5c0b | [] | no_license | psvprogrammer/probegin_test | 19509a6a112ffcde8bca3767598a6e47a2c80a8b | 8078bd6a5862e911505fbaa7e07abd9d39f637e8 | refs/heads/master | 2021-04-09T12:57:19.352481 | 2018-03-13T13:01:10 | 2018-03-13T13:01:10 | 125,051,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | from django import forms
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import (
AuthenticationForm,
UserCreationForm,
)
from django.forms import ModelForm
from probegin_test.models import Comment
User = get_user_model()
class CustomAuthenticationForm(AuthenticationForm):
... | [
"psv.programmer@gmail.com"
] | psv.programmer@gmail.com |
4ee2d73cccbb589fb599a4826754d0a334de4816 | ce29d99c84fc7a54d7eed578d9360dc266b01ff9 | /784/a.py | 157d9d6fe7a40b448287565690053d7692b6d21a | [] | no_license | mruxim/codeforces | a3f8d28029a77ebc247d939adedc1d547bab0225 | 5a214b19a0d09c9152ca5b2ef9ff7e5dcc692c50 | refs/heads/master | 2021-10-26T04:33:42.553698 | 2019-04-10T12:58:21 | 2019-04-10T12:58:21 | 180,573,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | a = int(input())
print(a*9)
| [
"maleki.mr@gmail.com"
] | maleki.mr@gmail.com |
597ebedfb0dc1f5a70054ad75b068b3ea7c20b01 | 51eccd7327d3cf8163140bbec66b319d005c4037 | /ShellApp/models.py | eb7c76bd087d986fb9aec0ea1dc74ba2f691051c | [] | no_license | SatinderKainth/Book1 | ede27f4a987b0e4f7119af0729fc612aa4076183 | a661e8416d0dd45d84d377011f92d2f1804548e2 | refs/heads/master | 2023-05-04T02:01:04.061329 | 2021-05-22T05:10:42 | 2021-05-22T05:10:42 | 369,720,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | from django.db import models
# Create your models here.
class Book(models.Model):
title = models.CharField(max_length=100)
desc = models.TextField()
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
def __str__(self):
return f"<Book:{... | [
"kainthsatinder8@gmail.com"
] | kainthsatinder8@gmail.com |
e2d5ad39f9186b6e9594e5a5a99f7959d0933fe2 | d0a31c5b74c6e3f83807917789bafde791a2c842 | /pyfiles/app.py | b557db5394f97710f5441f4d083d52c3a9682417 | [] | no_license | tabzhangjx/record_codes | ad531307c692fec387c7b8daf9dc0ba34b407cd3 | 9c3935bc219f1a22fa97a3435f9a007d18959d3b | refs/heads/master | 2021-06-12T21:01:44.083974 | 2019-09-20T09:26:43 | 2019-09-20T09:26:43 | 100,364,285 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | from flask import Flask
from flask import request, render_template
app = Flask(__name__)
@app.route('/', methods=['GET', 'post'])
def home():
return render_template('home.html')
@app.route('/signin', methods=['GET'])
def signin_form():
return render_template('form.html')
@app.route('/signin', methods=['POST... | [
"tabzhangjx@outlook.com"
] | tabzhangjx@outlook.com |
a9f9793b9dcbf03f3edb9d326dcfe41163fdb65e | 894b290b4f4f47b5eb523c23efd7bd6110d91b2f | /75_dianping_yaodian/dianping_yaodian/dianping_yaodian/settings.py | 552e6f2e5023699ab5d0103a55d0f6c83b159cbe | [] | no_license | wliustc/SpiderS | 6650c00616d11239de8c045828bafdc5a299b1ce | 441f309c50d28c1a3917bed19321cd5cbe7c2861 | refs/heads/master | 2020-03-27T06:15:39.495785 | 2018-06-14T07:55:44 | 2018-06-14T07:55:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,008 | py | # -*- coding: utf-8 -*-
BOT_NAME='dianping_yaodian'
SPIDER_MODULES=['dianping_yaodian.spiders']
NEWSPIDER_MODULE='dianping_yaodian.spiders'
DOWNLOAD_HANDLERS={'s3': None}
USER_AGENT="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36"
MAIL_FROM="spider_man_warn@... | [
"luoshao23@gmail.com"
] | luoshao23@gmail.com |
8a3a140bdde0f32a1ce279a856bd639481d0d97b | 894b290b4f4f47b5eb523c23efd7bd6110d91b2f | /121_taobao/taobao/taobao/scripts/tranform.py | 99dfe77776a5cd9797207afa9a1f3c83e66fec7f | [] | no_license | wliustc/SpiderS | 6650c00616d11239de8c045828bafdc5a299b1ce | 441f309c50d28c1a3917bed19321cd5cbe7c2861 | refs/heads/master | 2020-03-27T06:15:39.495785 | 2018-06-14T07:55:44 | 2018-06-14T07:55:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | # coding=utf8
import sys
import json
import web
db = web.database(dbn='mysql', db='hillinsight', user='writer', pw='hh$writer', port=3306, host='10.15.1.24')
def parse1(line):
# print line
line_json = json.loads(line)
# print line_json
comment_list = line_json.get('comment_list')
title = line_js... | [
"luoshao23@gmail.com"
] | luoshao23@gmail.com |
a5373dfe1ebe90039ddc6406c46857379a2f007c | add08cbeb081563555e11a25f6fc53541934ff86 | /python-for-pentesters/9_macspoof.py | e2b43b546b1f89b8c724b9f115747cf3b5e587a4 | [] | no_license | olorin28/scratch-python | 394949da3a1594163b9dcf03220b43bcc776ef12 | a2f1813bb3fd74de2148678dd81a0907f53276c0 | refs/heads/master | 2023-07-10T09:12:01.267913 | 2021-08-13T17:59:19 | 2021-08-13T17:59:19 | 395,667,928 | 0 | 0 | null | 2021-08-13T17:59:20 | 2021-08-13T13:37:47 | Python | UTF-8 | Python | false | false | 648 | py | import random
import os
import subprocess
def get_rand():
return random.choice("abcdef0123456789")
def new_mac():
new_ = ""
for i in range(0,5):
new_ += get_rand() + get_rand() + ":"
new_ += get_rand() + get_rand()
return new_
print(os.system("ifconfig en0 | grep ether... | [
"kyle.cossel@healthmine.com"
] | kyle.cossel@healthmine.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.