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
4ec91989eed11e9fe7f3579a66130f297be08e11
2d4ca6dc3a87453bc8a5dadb45402c34ae02b441
/pylights/device/switch.py
26ae4a504e96536895d79be2e6ec1673ad739e6e
[]
no_license
sthomen/pylights
85c86d5681f55e0a285cb0de56194c53997fc6c3
ea60f061e03724b6440e7c2e6de8aacce434db6d
refs/heads/master
2021-01-12T16:28:15.407420
2020-11-12T15:05:30
2020-11-12T15:05:30
69,154,321
0
0
null
null
null
null
UTF-8
Python
false
false
538
py
# vim:ts=4:sw=4: from tkinter import * from .device import Device class Switch(Device): def __init__(self, parent, title="Switch"): super().__init__(parent) self.label=Label(self, text=title) self.label.pack() self.on=Button(self, text="On", command=self.on) self.on.pack(side=LEFT) self.off=Button(self,...
[ "duck@shangtai.net" ]
duck@shangtai.net
201a03340d5c71b5268d436ea84dedac5c148f9c
3d8318d79f1efcfe75fd0e91be45f00f0380163a
/Packs/TruSTAR/Integrations/TruSTAR_V2/TruSTAR_V2_test.py
8ef5830123f3f71781f81528fca26b84303d61c3
[ "MIT" ]
permissive
nicoloereni/content
1b75efb50531c3aeb2319b4fe2235ca6d23e8580
ddb88044c5b39a17894dd13e7ae260d9854afc30
refs/heads/master
2023-08-15T11:05:03.321368
2020-07-07T11:06:40
2020-07-07T11:06:40
277,815,390
1
0
MIT
2020-07-07T12:51:13
2020-07-07T12:51:12
null
UTF-8
Python
false
false
16,003
py
import pytest from TruSTAR_V2 import TrustarClient, Utils import trustar from trustar.models.indicator import Indicator from trustar.models.enclave import EnclavePermissions from trustar.models.report import Report from trustar.models.intelligence_source import IntelligenceSource from trustar.models.phishing_submissio...
[ "noreply@github.com" ]
nicoloereni.noreply@github.com
54e4fa82e7cacc8e802c9e7e3a89c7c75f98bce2
8fe831010ca1e463d33c53a57e985cec67db2e7a
/config/settings/local.py
b2ec1d341b1a8de3779a3e53fa778d874d859c9c
[ "MIT" ]
permissive
andresbv0620/carros
7df0f53ed194fc32adadb9586fb618f5d228bb5d
206ba1812fb2c98c1e652276e39cdce2b82860a6
refs/heads/master
2020-04-15T01:33:52.501887
2016-09-06T04:29:57
2016-09-06T04:29:57
61,994,245
0
0
null
null
null
null
UTF-8
Python
false
false
2,344
py
# -*- coding: utf-8 -*- """ Local settings - Run in Debug mode - Use console backend for emails - Add Django Debug Toolbar - Add django-extensions as app """ from .common import * # noqa # DEBUG # ------------------------------------------------------------------------------ DEBUG = env.bool('DJANGO_DEBUG', default...
[ "andresbv0620@hotmail.com" ]
andresbv0620@hotmail.com
eeb6eb58ee42c5bc5f72743af750f3d566f3361e
aaa204ad7f134b526593c785eaa739bff9fc4d2a
/tests/providers/amazon/aws/hooks/test_glacier.py
4ed3f6aaa2e24f18b4e5a28d34007275140c31de
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
cfei18/incubator-airflow
913b40efa3d9f1fdfc5e299ce2693492c9a92dd4
ffb2078eb5546420864229cdc6ee361f89cab7bd
refs/heads/master
2022-09-28T14:44:04.250367
2022-09-19T16:50:23
2022-09-19T16:50:23
88,665,367
0
1
Apache-2.0
2021-02-05T16:29:42
2017-04-18T20:00:03
Python
UTF-8
Python
false
false
5,075
py
# # 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 # "License"); you may not...
[ "noreply@github.com" ]
cfei18.noreply@github.com
74839d9264baf7b7925f1bee6d71589799100930
a05d2cff839815635b474220d066f6881094492c
/the_last_figure.py
6b36edb98e7cb905fdb6fd462ded5ced5c308b6d
[]
no_license
Assessor/Phytnon-Coursera
d629387f475e3c0d24247c5a10a29f6c4fb31b17
68223cc5892e5050a2023414d5df0db071913714
refs/heads/master
2021-01-25T01:21:31.788820
2018-03-28T18:48:14
2018-03-28T18:48:14
123,308,240
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
''' Дано натуральное число. Выведите его последнюю цифру. ''' num = int(input()) print(num % 10)
[ "ivan.maltsev78@gmail.com" ]
ivan.maltsev78@gmail.com
ebbfa4ce3921743a2cac5d388e06a808086b00de
71cc62fe3fec8441794a725b7ce3037dc2723107
/ifreewallpapers/apps/profile/views/profileviews.py
71d4bc4644c89e4257d2ab7d6120ca761ceb5375
[]
no_license
tooxie/django-ifreewallpapers
bda676dc5a6c45329ad6763862fe696b3e0c354b
75d8f41a4c6aec5c1091203823c824c4223674a6
refs/heads/master
2020-05-21T12:50:36.907948
2011-01-19T04:28:33
2011-01-19T04:28:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
# coding=UTF-8 from profile.models import Profile # from profile import settings as _settings from utils.decorators import render_response to_response = render_response('profile/') # from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User # from django.core.urlresolvers i...
[ "alvaro@mourino.net" ]
alvaro@mourino.net
a08a315424fe3ec0a52037d139af8281fff9e7c5
aa6d030ca75983b097f9eac3acc98023f040dc1b
/ex2_1.py
cc72045b45194a756c618c0cb94ec35294200e90
[]
no_license
twr14152/Bottle_stuff
868771754b445cd7256572133f17041d0d6fc806
8a594dda6b0f92b9aed74201da525d0bce30dc47
refs/heads/master
2022-09-22T12:33:09.220737
2020-06-05T01:15:13
2020-06-05T01:15:13
269,496,084
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
from bottle import redirect, run, route @route('/') def index(): return 'Please login' @route('/restricted') def restricted(): #authenticate func #if it fails rediect redirect('/') run(host = '0.0.0.0', port = 8080, debug = True)
[ "twr14152@gmail.com" ]
twr14152@gmail.com
59655e6a2e6c1bf1df975866337b053b89e1ae57
111866dd2150170e90e3717df008aa703d7ef30c
/filemanager/domain/__init__.py
7f428c6590b0064d5266fb7018c0cdcc07f789b4
[]
no_license
arXiv/arxiv-filemanager
106c572a6551445a2109c279ce086b7c96a0bcd5
dfb71a40125324b1c1f4eb865c84cd9d2e512e6c
refs/heads/develop
2023-04-18T09:45:35.338067
2020-03-09T14:59:19
2020-03-09T14:59:19
113,456,994
5
6
null
2022-12-08T05:50:07
2017-12-07T13:55:34
PostScript
UTF-8
Python
false
false
388
py
"""Core concepts and constraints of the file manager service.""" from .uploads import UserFile, Workspace, IChecker, SourceLog, SourceType, \ IStorageAdapter, SourcePackage, ICheckableWorkspace, Readiness, \ Status, LockState from .file_type import FileType from .uploads import ICheckingStrategy from .error im...
[ "brp53@cornell.edu" ]
brp53@cornell.edu
73873c98659273917bae3e7d6262e347825dd1ea
05ed5efbed8e2f68053e1f2bfb934145ff9c7a65
/speech_recognition.py
3a19ea930dd924f05419782ba75efecbad79c36f
[]
no_license
AljonViray/RobotDog
20a7b508ccf1eb148b1dc4432a810a9bedae09e6
cfcc2b19cddc0c944f7e5b071b4e2d5e3327fc25
refs/heads/main
2023-04-21T03:30:23.840899
2021-05-12T21:51:10
2021-05-12T21:51:10
329,702,901
1
0
null
null
null
null
UTF-8
Python
false
false
2,192
py
# Written by: Alexandra Zhang Jiang # Guide: pypi.org/project/SpeechRecognition/ # Source Code: Anthony Zhang (Uberu) in github import speech_recognition as sr from led_lights import * # obtain audio from the microphone r = sr.Recognizer() while(True): with sr.Microphone() as source: ...
[ "noreply@github.com" ]
AljonViray.noreply@github.com
8992bd4abb48df9497bbf3ae5f4afe99f571a053
e4545ace83d22cb9e49a5325a7847eaff94bb801
/0409/0409/jimmy/apps.py
25e2352046b08e0949fb5d09537330cad6ed6eb7
[]
no_license
MingHuangZheng/JerryHW
60f566323b8dd2a94b7b7069b1d8d6b43ef13b82
2c2f838bcb03a5147e75aa6cb6fae99d48acdc67
refs/heads/master
2022-11-23T20:20:54.116273
2018-05-25T14:29:49
2018-05-25T14:29:49
124,842,079
0
1
null
2022-11-03T19:51:43
2018-03-12T06:14:06
Python
UTF-8
Python
false
false
90
py
from django.apps import AppConfig class JimmyConfig(AppConfig): name = 'jimmy'
[ "noreply@github.com" ]
MingHuangZheng.noreply@github.com
3d3e8fcf087d8de0e65fbdcaf9fe9d927cb76013
177de5863feb6d48d8cc686fe788f5f4c803d9dc
/Functions.py
3fedef9bfd85a045a3142a454a27ff0bc0100462
[]
no_license
elena23sarov/I_want_to_be_an_Artezio_employee
1798750388386f2ace40a01f2809d40c5b2bc540
c4d3c1915cbba2d24ba06bef2876761f876e0c86
refs/heads/master
2020-06-15T18:54:23.163814
2016-12-26T08:14:01
2016-12-26T08:14:01
75,269,668
0
0
null
null
null
null
UTF-8
Python
false
false
1,934
py
"""Functions - zip(), list comprehensions.""" def zip_list(*args): """Do the same as function zip() does.""" zipped_lists = [] min_len = min(len(arg) for arg in args) for j in range(min_len): elem = [] for arg in args: elem.append(arg[j]) zipped_lists.app...
[ "noreply@github.com" ]
elena23sarov.noreply@github.com
f6ed94fa98589044a6343a7ce1fd473f8b4814d2
8786cfb45c92aaa7af27b7140797d790e1b1f8ec
/dymos/transcriptions/runge_kutta/components/test/test_rk_continuity_comp.py
949ed6f041a4fb7e3b898aac1d590ed3ff055e4a
[ "Apache-2.0" ]
permissive
daoos/dymos
32881f8ff6ec9407c87d2f1e3cc6e169a79bcf9f
584cc6afe77585b73e48c23754099b603e13ff0f
refs/heads/master
2023-02-25T20:38:35.684174
2021-02-05T21:06:18
2021-02-05T21:06:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,217
py
import unittest import numpy as np import openmdao.api as om from openmdao.utils.assert_utils import assert_near_equal from openmdao.utils.testing_utils import use_tempdirs import dymos as dm from dymos.transcriptions.runge_kutta.components.runge_kutta_state_continuity_comp import \ RungeKuttaStateContinuityComp...
[ "noreply@github.com" ]
daoos.noreply@github.com
7adeb154143a4cfd6b5b6ee2b93edaf9c86afaa2
b526aecc3aeb35c0931339ede80397f8f1561fbc
/src/dascasi/__init__.py
b262c04aa7f3b2df6609d02475bf132c1456c87d
[ "Apache-2.0" ]
permissive
space-physics/dascasi
30e021976529dfc4072ea96181db8d9d1921a07c
4d72aa91e471a495566044c3fc387344dd12461f
refs/heads/main
2023-04-17T09:24:22.325605
2023-03-21T02:18:44
2023-03-21T02:30:15
51,016,067
1
1
null
null
null
null
UTF-8
Python
false
false
768
py
# Copyright 2023 SciVision, 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 agree...
[ "scivision@users.noreply.github.com" ]
scivision@users.noreply.github.com
8e021335ee2eff39517bd3888f2a9effb212d25e
cc95732b845a31ea51dc58fb00f0a7c8d7c083dc
/Trabalho 5 - Leitura de arquivo PLY/Main.py
0ee57835dc48e4c3a86207281de11d5b269296b2
[]
no_license
BernardoPLPSO/Computacao-Grafica
2cffc291e2c265651279b1ed5385b5c039e2148a
e69f6ac3bcc09e9f705a68e9d41cc360fcd8f2c4
refs/heads/master
2020-05-02T10:37:37.481995
2019-07-09T02:00:43
2019-07-09T02:00:43
177,902,226
0
1
null
null
null
null
UTF-8
Python
false
false
1,285
py
from OpenGL.GLUT import * from OpenGL.GLU import * from OpenGL.GL import * from PLYFileLoader import * def display(): global obj glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT) glRotatef(2,1,3,0) glCallList(obj.gl_list) glutSwapBuffers() def timer(i): glutPostRedisplay() glutTimerFunc(5...
[ "36808813+BernardoPLPSO@users.noreply.github.com" ]
36808813+BernardoPLPSO@users.noreply.github.com
742c4ddf5eaa9d24d8ab85cf042455635e024227
ff692d927c95f7337339599d523f986f720449f5
/plugins/init.py
692fec3901386220bb48bf4cea4ae5a20c1c2897
[]
no_license
mwesterhof/pyjeeves
de567966636954aed7d88a5d51e74df85feeaba3
46b35f56056603330f7636a745e13fa045c884f1
refs/heads/master
2022-12-16T11:11:06.276555
2019-08-09T09:10:21
2019-08-09T09:10:21
296,265,384
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
import os from plugin import BasePlugin class Plugin(BasePlugin): ''' Initialize an HQ in the current directory ''' def run_command(self, args): print('creating jeeves headquarters in {0}'.format(os.getcwd())) os.makedirs('.jeeves')
[ "m.westerhof@lukkien.com" ]
m.westerhof@lukkien.com
e28c324b92c57e76fe118f4191f692caec54dda4
11fcc56eaefbc994a585bcbdac3ab11b5158f3d8
/Programming a Robotic Car/hw3-6.py
d4a3b92218cc958129fd9472003d6906457a8b99
[]
no_license
mstamboroski/Udacity_Projects
1c6a81e84cc1fbf1a4fbc3e4e46f6b84b9d38e5c
9c9340ad1938188e901ff17680b2c97e95c839c6
refs/heads/master
2021-01-19T05:59:33.059047
2016-08-03T00:09:21
2016-08-03T00:09:21
64,800,701
0
0
null
null
null
null
UTF-8
Python
false
false
11,903
py
#------------------------------------------------------------------------------- # Name: module1 # Purpose: # # Author: Maycon # # Created: 11/03/2012 # Copyright: (c) Maycon 2012 # Licence: <your licence> #------------------------------------------------------------------------------- #!/usr/bin/...
[ "mstamboroski@gmail.com" ]
mstamboroski@gmail.com
0a6bf67bbb3f6363667bff9f7ddbf631bd5bb554
40d9992e4f516ecd9914a3b3f998b0563f4fcc53
/ansys/mapdl/core/mapdl_console.py
eeafff6a9b7223afa8e795cf6d7fa660f5c39c66
[ "MIT" ]
permissive
AdrlVMA/pymapdl
4f8d38626e49ef2f8d091901e916ed6c98eee503
43325cfcdfb8f7fa3e0fd59bf8a02afed72e6988
refs/heads/master
2023-03-31T15:57:25.477257
2021-03-27T20:12:16
2021-03-27T20:12:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,026
py
"""Module to control interaction with an ANSYS shell instance. Used when launching Mapdl via pexpect on Linux when <= 17.0 """ import os import time import re # from ansys.mapdl.core.misc import kill_process from ansys.mapdl.core.mapdl import _MapdlCore from ansys.mapdl.core.errors import MapdlExitedError ready_item...
[ "noreply@github.com" ]
AdrlVMA.noreply@github.com
d00743937cab44b9afa3346ef34b5568ac1d46f9
cc37219d1f9f30ba67bbaee3f394a308c5698f51
/brewery/ds/elasticsearch_streams.py
e7182300a32a0603489c4008baf4d3ae98a024ad
[ "LicenseRef-scancode-saas-mit", "MIT" ]
permissive
smoothdeveloper/brewery
5afecb8bd97780255b51d96432bd7f085db2c9a7
2f602fc7db22f53ff7ac1a8143981aac46d2c254
refs/heads/master
2021-01-18T07:53:47.091013
2012-04-14T22:01:11
2012-04-14T22:01:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,242
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import base from brewery import dq import time from brewery.metadata import expand_record try: from pyes.es import ES except ImportError: from brewery.utils import MissingPackage pyes = MissingPackage("pyes", "ElasticSearch streams", "http://www.elasticsearch....
[ "alberto@ingparo.it" ]
alberto@ingparo.it
8b20ab0b23ca75e102d3f7c1bd8017bf3ac1b485
22dcbf9595c28279b681caac26e43113ce75de5c
/automl/cloud-client/import_dataset_test.py
35d23edc7e8fc745ed598a895c037a49b9cc7f90
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
jerry-enebeli/python-docs-samples
2e61672e9819405733c94ef824ba0b0f92b3e930
0d78724126ce25dd6203cfd2ee3467b88e5c27b9
refs/heads/master
2022-12-12T18:05:16.899492
2020-09-01T22:35:40
2020-09-01T22:35:40
292,189,370
1
0
Apache-2.0
2020-09-02T05:39:23
2020-09-02T05:39:22
null
UTF-8
Python
false
false
1,497
py
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
[ "noreply@github.com" ]
jerry-enebeli.noreply@github.com
aacc2ade3e3b635267e0895250241964852a07f3
51b20543e5ed606636bcde9fba329e5fa948de2e
/communityprofiles/census/remote_file.py
2bab92682c5bab5ea49d416570d119d3a9aaa99d
[ "MIT" ]
permissive
216software/Profiles
b821112225e8522b7b558cab87ae1c12c68c653b
651da880a3d4295243205bdae4de88504edc91de
refs/heads/dev
2023-03-16T04:49:01.389186
2023-03-09T17:04:04
2023-03-09T17:04:04
59,139,518
3
0
null
2016-05-18T18:02:53
2016-05-18T18:02:53
null
UTF-8
Python
false
false
3,612
py
# for RemoteFileObject from os import SEEK_SET, SEEK_CUR, SEEK_END from time import time from datetime import timedelta from urlparse import urlparse, urljoin from cStringIO import StringIO from httplib import HTTPConnection from urllib import urlopen from zipfile import ZipFile from itertools import izip class Remot...
[ "asmedrano@gmail.com" ]
asmedrano@gmail.com
667c8b4b904d7c226e66d67f7273f4a22805337a
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_27051.py
21e1599a8f2a20678ec565a2b8443285bc4a4d16
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
63
py
# Matplotlib legend relative to figure in multiplot matplotlib
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
e726984d4019bc6974ee4b2702b243d18c0669f7
73758dde83d1a1823c103e1a4ba71e7c95168f71
/nsd2006/devops/day02/local_mail.py
3533d97f07484696810b548f9f0931ac688dde15
[]
no_license
tonggh220/md_5_nsd_notes
07ffdee7c23963a7a461f2a2340143b0e97bd9e1
a58a021ad4c7fbdf7df327424dc518f4044c5116
refs/heads/master
2023-07-02T01:34:38.798929
2021-05-12T08:48:40
2021-05-12T08:48:40
393,885,415
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
from email.mime.text import MIMEText from email.header import Header import smtplib # 准备邮件, plain表示纯文本 message = MIMEText("python local email test.\n", 'plain', 'utf8') # 正文 message['From'] = Header('root', 'utf8') message['To'] = Header('zhangsan', 'utf8') message['Subject'] = Header('py test', 'utf8') # 发送邮件 smtp ...
[ "zhangzg@tedu.cn" ]
zhangzg@tedu.cn
5954efaab0e577db693e12d13b5b277dff8f5fa3
836d1dc6545e60caffc7bb557e1584311a53d131
/dice_ml/dice.py
144523439fc7f8be305c5c0825ef4ce5d504c9c1
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
shyamalschandra/DiCE
223f6be0c6435f9b08a4522501a0b2a6b47bd3ed
1fcc1c927bcafb10ce1d68a11a1b070daeeacd1e
refs/heads/master
2021-05-20T10:51:03.646302
2020-03-28T18:27:15
2020-03-28T18:27:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,694
py
"""Module pointing to different implementations of DiCE based on different frameworks such as Tensorflow or PyTorch.""" import tensorflow as tf class Dice: """An interface class to different DiCE implementations.""" def __init__(self, data_interface, model_interface): """Init method ...
[ "raam.arvind93@gmail.com" ]
raam.arvind93@gmail.com
4b64459424dc5911815eba2ab4a4c279f47f53b4
5d8414fcdc20acb352077d081bfddfe00b0e0829
/Implementation/command_line/insert_new_deliveryStock.py
ec1b6bfbb4518a1491b0332205d9cd06fbbe8e3c
[]
no_license
31062/COMP4Coursework
652c32b34cc22d965261cbe58ef7e549f3ac6537
7b974f717a57b2e66eec0fd59e0c0ff940f9ab86
refs/heads/master
2021-01-22T13:31:47.558926
2015-04-29T09:28:18
2015-04-29T09:28:18
24,451,076
0
0
null
null
null
null
UTF-8
Python
false
false
1,579
py
import sqlite3 def insert_deliverystock_data(values): #open/create new database with sqlite3.connect("pub_stock.db") as db: #make the cursor cursor = db.cursor() #create sql sql = """insert into DeliveryStock(DeliveryID,StockID) values(?,?)""" cursor.execute(sql...
[ "31062@longroad.ac.uk" ]
31062@longroad.ac.uk
7058f2f37989ff337436d6ecf89c51ed574d82ee
7f33c02743fbfd18726ffef08924f528354372dd
/Python_Projects/python3_selfstudy/priklady_z_knihy/k04/digit_names.py
1167be7a4ec6d9440194cb8be9928866a345010e
[]
no_license
zabojnikp/study
a524eb9c2265a73e1db0b5f0e76b359c123a397b
43424bfc6641cd8fa13ab119ce283fb460b4ffc1
refs/heads/master
2020-04-06T14:21:55.786353
2018-11-27T22:10:48
2018-11-27T22:10:48
157,538,244
0
0
null
2018-11-27T22:10:49
2018-11-14T11:24:20
Python
UTF-8
Python
false
false
1,390
py
#!/usr/bin/env python3 # Copyright (c) 2008-9 Qtrac Ltd. All rights reserved. # This program or module is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) an...
[ "zabojnikova.petra@gmail.com" ]
zabojnikova.petra@gmail.com
c3184ea5650eb177afb8206df2c615c1d7a52517
99e88a8c8b7f252ccbc5a694392cd0f1220e6b8c
/make_random.py
27fd517556d7ef9c5382a551cef12975b4c83ea5
[]
no_license
nitishjain2007/Author_Verification
6a143a7dff11b8b78d22c82cd5c8f095bb54c23f
c13d40c10488e6c99df5423beb155fad9f792b4e
refs/heads/master
2021-01-10T05:44:04.312269
2016-03-01T22:55:17
2016-03-01T22:55:17
52,915,726
0
0
null
null
null
null
UTF-8
Python
false
false
979
py
import os, sys import random import shutil import sys reload(sys) path = os.getcwd() data_file = path + "/Data/Dataset/data.txt" label_file = path + "/Data/Dataset/lables.txt" data = [line.rstrip('\n') for line in open(data_file)] labels = [line.rstrip('\n') for line in open(label_file)] os.mkdir(path + "/Data/Dataset/...
[ "nitishjain2007@gmail.com" ]
nitishjain2007@gmail.com
603a486b8c2ae434c0dd625d965053eee0423d48
ba02e8e461d47069ce6ae016b605cf65d32e19d3
/chat.py
b7da85cce7904e33ce4ec81e3bde1e581dca99da
[ "MIT" ]
permissive
Heroadn/AwesomeChat
6c1508b4bd71019e543553ecec0315f107c5ffc8
8215913eb2131494806ab5df5b2af17b0e2ab04d
refs/heads/master
2020-07-05T08:45:55.011399
2019-07-21T00:53:08
2019-07-21T00:53:08
202,595,168
1
0
null
2019-08-15T18:52:42
2019-08-15T18:52:41
null
UTF-8
Python
false
false
118
py
import sys reload(sys) sys.setdefaultencoding("utf-8") from app import app if __name__ == "__main__": app.run()
[ "thiago@desenvolvedor.tech" ]
thiago@desenvolvedor.tech
169519835ac47d886105ad315fc37451bd6ff3d2
c226af28b382c8b37ea2f00ce87fa3ed467fb5d9
/022 hackerrank - .discard, .remove, ,pop/main.py
33d337df25c14133788c45deb0de20000fcc5909
[]
no_license
JoeSeff/hackerrank-python
07a3ed8be65069eb323dd15c2e605f9ac7a68f37
f304804cad95828898bd48db5e582ba8a21e0530
refs/heads/master
2022-07-19T06:21:48.743411
2020-05-23T00:44:00
2020-05-23T00:44:00
266,234,702
1
0
null
null
null
null
UTF-8
Python
false
false
585
py
set_size = int(input()) #useless main_set = set(list(map(int, input().split(" ")))) op_count = int(input()) for x in range(op_count): try: # do something op_string = input() if 'pop' in op_string: main_set.pop() elif 'discard' in op_string: index = int(op_str...
[ "maxwellandlynx@gmail.com" ]
maxwellandlynx@gmail.com
fa1ad882fd1595df3715ec3227356ed30c4c6017
fc212767c6c838360b62a3dcd8030a1dfcbf62fc
/muddery/utils/quest_handler.py
7d19069f731f83b3001d9318edf55756332a4a5f
[ "BSD-3-Clause" ]
permissive
caibingcheng/muddery
24d6eba76358621736e6a3d66333361239c35472
dcbf55f4e1c18a2c69576fd0edcec4699c1519b9
refs/heads/master
2021-05-19T09:49:19.319735
2020-03-29T03:55:51
2020-03-29T03:55:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,984
py
""" QuestHandler handles a character's quests. """ from django.conf import settings from django.apps import apps from django.core.exceptions import ObjectDoesNotExist from evennia.utils import logger from muddery.utils.builder import build_object from muddery.statements.statement_handler import STATEMENT_HANDLER from ...
[ "luyijun999@gmail.com" ]
luyijun999@gmail.com
267e6ab9cbcd602600329dc5b581c85af97604e9
0043ff2759ea31711c80483ed2ed87f2bef013b0
/magic/migrations/0014_auto_20190512_2007.py
7d5cae395b49e3054cad476b1906586950573462
[]
no_license
ialame/djangoEbay7
65ca49bffe2abc9c7731e1420ea822c81baf758c
303d9d627fb1a75ef659d4fa4f7e1103b58632a0
refs/heads/master
2020-05-22T13:59:07.836151
2019-05-13T07:57:54
2019-05-13T07:57:54
186,371,897
0
0
null
null
null
null
UTF-8
Python
false
false
1,379
py
# Generated by Django 2.2.1 on 2019-05-12 20:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('magic', '0013_auto_20190512_2006'), ] operations = [ migrations.AddField( model_name='extension', name='baseSetSize'...
[ "ibrahimalame@iMac-de-Ibrahim.local" ]
ibrahimalame@iMac-de-Ibrahim.local
eb5007714d3e169fc67ff7de612d97edbdde15ae
ca805265bbc8d9b3f5ccb8dd343524843fc0f776
/scaling/commands/bench_results_processer.py
d94add1e14ef3dfdd535d410b4a504c6f1e7200a
[]
no_license
alenzhao/QIIME-Scaling
8dc7b4b99da404c016e59e48197b8f938df1cf14
29408a3a0ff2a74039f78a04fff831dabb23fa1a
refs/heads/master
2021-01-12T10:46:22.961035
2016-06-18T16:56:48
2016-06-18T16:56:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,825
py
#!/usr/bin/env python from __future__ import division __author__ = "Jose Antonio Navas Molina" __copyright__ = "Copyright 2013, The QIIME Scaling Project" __credits__ = ["Jose Antonio Navas Molina"] __license__ = "BSD" __version__ = "0.0.2-dev" __maintainer__ = "Jose Antonio Navas Molina" __email__ = "josenavasmolina@...
[ "josenavasmolina@gmail.com" ]
josenavasmolina@gmail.com
186adaf55008fdd7e7913aaa6ec5e5ff32402a20
70d5ac89833250f642737cfd52c2e5977ada94f7
/Servidor/Flaskr/src/flaskr.py
9c6b424ef1d63676629cb7a1f8ca86594fcb90e1
[]
no_license
Plozano94/CupulaCiclope
7b41d3fd0fe3e938a6aba104dcb9b64475d39229
4e22ee70210916881950bc7010e75819a21a31f8
refs/heads/master
2020-04-15T15:21:39.600058
2017-03-28T09:20:14
2017-03-28T09:20:14
46,656,430
0
1
null
2017-03-28T08:26:34
2015-11-22T10:53:50
Python
UTF-8
Python
false
false
8,292
py
#! /usr/bin/env python # all the imports import servidorConf as sc import threading import sqlite3 from flask import Flask, request, session, g, redirect, url_for, \ abort, render_template, flash, Response from contextlib import closing import serial import subprocess import os,sys from functions import system impor...
[ "plozano94@gmail.com" ]
plozano94@gmail.com
7d5a843b7ccd6ec857e04b021fd7d03a8f19f117
aa51504503fc039f504b3421003e36ac974cacea
/3. HTTP Protocol Exploit/http_system_inspection.py
ae5b4524ecde7f00528577ebe25170ec095cb4e7
[]
no_license
gasbugs/PySchool01-PythonHackingProgramming
25701e6e4dc2d8ca8ca67d982cbaffc85dc95869
8bd71ce0701e8c01bd03f76a6ffae41dac849427
refs/heads/master
2021-08-24T06:30:55.026890
2017-12-08T11:44:17
2017-12-08T11:44:17
113,568,564
0
0
null
null
null
null
UTF-8
Python
false
false
1,106
py
import requests, copy host = "http://172.30.1.8" uri = "/changeuser.ghp" org_headers = { "User-Agent" : "Mozilla/4.0", "Host" : host.split("://")[1], "Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language" : "en-us", "Accept-Encoding" : "gzip, deflate", ...
[ "isc0304@naver.com" ]
isc0304@naver.com
d5829bec6fa9c5cee52ea9965d6461ac7b09ae03
b9aabb13870b3707609fd2ea117870c2ad40c14b
/src/train/candle_accl_trn_02_from_scratch.py
ba6158c445418add3d902997fb9e7c37e495eea4
[]
no_license
adpartin/pilot1
d88d2af7d15df68780ab2f82169897a9c388a2fd
c99f32052fab0de210fd200b43194b19088dc3a7
refs/heads/master
2023-04-14T22:30:33.339975
2023-04-10T23:36:34
2023-04-10T23:36:34
160,101,290
1
0
null
2022-12-08T02:59:53
2018-12-02T22:10:10
Jupyter Notebook
UTF-8
Python
false
false
7,571
py
from __future__ import print_function, division import warnings warnings.filterwarnings('ignore') # from comet_ml import Experiment import os import sys from pathlib import Path import argparse import datetime from time import time from pprint import pprint from glob import glob import sklearn import numpy as np im...
[ "apartin@lambda-quad.cels.anl.gov" ]
apartin@lambda-quad.cels.anl.gov
4e20a61a6a684ff2060af7de95bbd5e9ab90b192
f7a3a997b18a4d96497cdbd4a95c15e6d14fb1c8
/htc/__init__.py
c1b18b627082cea851e7c596c61459183ef27f75
[ "MIT" ]
permissive
IMSY-DKFZ/htc
758f6bde332326aeca0e95b3aa1835c29a0b1962
c73eeaf785c5cd74ec62022e70c94cece7d1eb80
refs/heads/main
2023-08-17T08:18:34.837275
2023-08-02T08:56:37
2023-08-02T08:56:37
495,827,768
14
4
NOASSERTION
2023-09-11T05:14:03
2022-05-24T13:08:29
Jupyter Notebook
UTF-8
Python
false
false
12,901
py
# SPDX-FileCopyrightText: 2022 Division of Intelligent Medical Systems, DKFZ # SPDX-License-Identifier: MIT import importlib import sys from typing import TYPE_CHECKING from lazy_imports import LazyImporter # Cannot be imported lazily because they would be misinterpreted as a module by LazyImporter from htc.settings...
[ "j.sellner@dkfz-heidelberg.de" ]
j.sellner@dkfz-heidelberg.de
886d0997531024402470f77c621befe7e97b1e63
c64d6d1fce81212965b1df7d4f4d4e72f218243e
/dot.py
4b4b054e57b178f594ca931bb299f515610ea5a3
[]
no_license
saipoojavr/saipoojacodekata
384b0aa19f29c8b66f9498ebfbdf162cda4ddc97
3e38f1f06c4348f4262f654526c86d64e6893029
refs/heads/master
2020-05-23T01:01:54.615085
2019-12-06T15:29:54
2019-12-06T15:29:54
186,580,757
0
2
null
null
null
null
UTF-8
Python
false
false
33
py
astr=str(input()) print(astr+'.')
[ "noreply@github.com" ]
saipoojavr.noreply@github.com
231dea914b42c030f614204b1d325eac9b984313
9271eb221f162963b2898474b002141b69146f7c
/tor/base/DieRollResult.py
78b607258328856df8a148bdf9d4d25779e2f7e1
[]
no_license
MathiasGartner/TOR
15215d487ba39da9f0add7281dfe6e32ee296e2a
040b3a5280d59965d98b97fee1719e519cbef2fd
refs/heads/master
2023-06-24T00:38:49.649247
2023-06-19T20:17:43
2023-06-19T20:17:43
254,355,284
0
0
null
2020-04-15T08:42:21
2020-04-09T11:41:22
Python
UTF-8
Python
false
false
381
py
import json class DieRollResult: def __init__(self, found=False, result=-1, position=None): self.found = found self.result = result self.position = position def __str__(self): return "<DieRollResult: (found={}, result={}, position={})>".format(self.found, self.result, self.pos...
[ "mathiasgartner@gmx.at" ]
mathiasgartner@gmx.at
93fb0eda0e72cecb65b7c8b4f7243a07cc3e3fdd
639ed2d085bb4e7545ee5b87292205e6539a5e4b
/patient/models.py
db751a3a5090aa50d9f950e0a9929ea4288fab81
[]
no_license
Ntonsite/crud-django
71d5adf329f4ce71bfea8fc3c649527db74e1b3f
01edeca5858cb76e6445e7d6561cf0d4906e1c95
refs/heads/master
2022-12-13T02:57:25.972807
2020-09-09T07:12:38
2020-09-09T07:12:38
293,169,055
0
0
null
null
null
null
UTF-8
Python
false
false
1,478
py
from django.db import models from django.utils import timezone # Create your models here. class Patient(models.Model): patientName = models.CharField(max_length=100, default='patientName') address = models.CharField(max_length=100, default='sample') age = models.CharField(max_length...
[ "mwamlimantonsite@gmail.com" ]
mwamlimantonsite@gmail.com
4045d9c0e8eb149d14cb7dfaee23209a400ff120
ea2abf208442ef99603c80ce3fd3b479606f9547
/cm/register_cm.py
0ff6d759f18b9c66ca78a48ee960ea93eae00798
[ "Apache-2.0" ]
permissive
HotMaps/renovation_scenarios
e8aabddd72313121926c8551237a4e55047fe825
6860897227ee74f3e76c81ab7932937a259b8044
refs/heads/master
2022-05-02T03:27:51.207929
2019-01-16T14:00:36
2019-01-16T14:00:36
175,600,348
0
0
NOASSERTION
2021-03-29T18:59:17
2019-03-14T10:33:05
Python
UTF-8
Python
false
false
1,001
py
#!/usr/bin/env python import logging import json import time from app.api_v1.transactions import register LOG_FORMAT = ('%(levelname) -10s %(asctime)s %(name) -30s %(funcName) ' '-35s %(lineno) -5d: %(message)s') LOGGER = logging.getLogger(__name__) def start_runner(): def start_loop(): ...
[ "lesly.houndole@crem.ch" ]
lesly.houndole@crem.ch
6e8855e96569e6e5c38f9d5ad1ce4910d477b9c4
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_06_01_preview/models/_models_py3.py
4007eb90a0326a819655f715f93c6d9bbbc685cf
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
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
206,121
py
# coding=utf-8 # pylint: disable=too-many-lines # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
Azure.noreply@github.com
e658bf448865024182e1f4fcc107da7498d979d6
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_sponging.py
3002cc59058a485eaef0fe654fc8482c1eaff6ca
[ "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
224
py
#calss header class _SPONGING(): def __init__(self,): self.name = "SPONGING" self.definitions = sponge self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['sponge']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
3cbcf3f2726f69789da88a8cad54a19b8a78d701
5dd95ea351025267628c17ec11429e7e5b92d431
/ksp_mission_logger/settings.py
68f63c458512e4d98414d1ff46241bdb30bdf0d7
[ "MIT" ]
permissive
DeepSpace2/ksp-mission-logger
d2e35d7d4f951f55f84f45ecfd2dbeef50a46f23
ab5ce4fc4fd81d7fb69b9a1c3a3cad23949387df
refs/heads/master
2020-12-31T04:42:30.653607
2016-05-13T11:20:53
2016-05-13T11:20:53
58,260,951
1
0
null
null
null
null
UTF-8
Python
false
false
3,438
py
""" Django settings for ksp_mission_logger project. Generated by 'django-admin startproject' using Django 1.9.6. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ i...
[ "deepspace2@users.noreply.github.com" ]
deepspace2@users.noreply.github.com
7210089d7186b085a99cad32a2ccc8dd3638694f
03fd908d77eb4f02316ba7fb2f851f7317bba1cd
/upload/models.py
374f87a62b5e061ab3e8bcd6a9f30d5d039abdc9
[]
no_license
amalmajeed/miniproject-Unfinished
110406297104766d96c421a2d5846839187bc451
826ea030f06fb302c62ef1fac751fff3464b5c7d
refs/heads/master
2021-01-18T03:24:58.624529
2016-03-25T16:25:53
2016-03-25T16:25:53
54,554,895
0
0
null
null
null
null
UTF-8
Python
false
false
2,838
py
from __future__ import unicode_literals from django.db import models class stud(models.Model): name=models.CharField(max_length=200) course=models.CharField(max_length=200) branch=models.CharField(max_length=200) admno=models.CharField(max_length=200,unique=True) validtill=models.DateField() dateofbirth=m...
[ "amalmajeed7@gmail.com" ]
amalmajeed7@gmail.com
ca6c8528b0f01a18a40ee1adcd9ade945136db6d
4ff4d0a84eb3a63e5a7b685119c87aed4ac2382f
/lab/lab01/lab01.py
43a167abf3504d62e27f1212a1a0107367dbf523
[ "Apache-2.0" ]
permissive
MessiahChen/CS61A
7743b99ceee98ea10c93d84ac47cbb46b39e7951
2552a08086323561dbb0d13a9550b7ccbebb6fc7
refs/heads/master
2020-08-23T00:17:47.863013
2020-07-25T13:56:56
2020-07-25T13:56:56
216,504,583
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
"""Lab 1: Expressions and Control Structures""" def both_positive(x, y): """Returns True if both x and y are positive. >>> both_positive(-1, 1) False >>> both_positive(1, 1) True """ return x>0 and y > 0 # You can replace this line! def sum_digits(n): """Sum all the digits of n. ...
[ "361733357@qq.com" ]
361733357@qq.com
99d2820ce15d04ac923852d6a481ebf37cd75680
145991b6ba5ff52d3f519ad262233804a61068f3
/transformer/pre_warm.py
8cd2a82936d7864edf65cb568652bd4d10245653
[]
no_license
FuPeiJiang/summarization
21a99703d3a89589863d297ffb6f748deb862d25
d3afd14bf257ccbff2fae2077e8df87e706de4c1
refs/heads/master
2023-02-19T20:24:29.701764
2021-01-17T14:52:20
2021-01-17T14:52:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,525
py
import torch from transformers import pipeline, AutoTokenizer, AutoModelForSeq2SeqLM, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("sshleifer/distilbart-cnn-12-6") summarization_model = AutoModelForSeq2SeqLM.from_pretrained("sshleifer/distilbart-cnn-12-6") ner_model = AutoModelForTokenClass...
[ "j.zhao2k19@gmail.com" ]
j.zhao2k19@gmail.com
1202d3042e2eaac961b709774bc2bb25241c57a9
8b5950752c10ae00c90a0aab50190640ab4bd946
/pyramid_restful/routers.py
2f5f7f191ec3afc32437bdba26e690f6d7387a56
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
sjschmidt44/pyramid-restful-framework
18aae207e56db4baca13c2ffdb88b01e66a3949a
d0098a947474223a99b595c4002993cc9c12c837
refs/heads/master
2020-03-18T13:10:21.350297
2018-05-24T20:29:06
2018-05-24T20:29:06
134,765,135
0
0
null
2018-05-24T20:26:31
2018-05-24T20:26:30
null
UTF-8
Python
false
false
7,602
py
import itertools from collections import namedtuple from .exceptions import ImproperlyConfigured __all__ = ['ViewSetRouter'] Route = namedtuple('Route', ['url', 'mapping', 'name', 'initkwargs']) DynamicDetailRoute = namedtuple('DynamicDetailRoute', ['url', 'name', 'initkwargs']) DynamicListRoute = namedtuple('Dynam...
[ "danpoland84@gmail.com" ]
danpoland84@gmail.com
a2c934ac353581957bb68e20d41fd2e838ccd25e
f6fe194c520fcfe8f99d1e452988e47a1ec30525
/venv/bin/pip
200de81d5f7a1ab0fa2053a6f72ce38a3df66257
[]
no_license
zupeiza/flask-blog
ce2056a0e0d4026b56e458cbfa12025cf951a3d4
9735c5caae438ddaa2715bd34b074eb179da7919
refs/heads/master
2016-08-08T17:38:51.907346
2016-03-21T12:47:14
2016-03-21T12:47:14
54,382,422
0
0
null
null
null
null
UTF-8
Python
false
false
231
#!/home/zupe/ZuPy/flask-blog/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "zupeiza@gmail.com" ]
zupeiza@gmail.com
f771c890fb42345b62e32a574e8cb81ebefa1c40
75d921f808ef53a5f1c6165ee6298001cbc36c68
/src/settings.py
c85d82ac097c53ed08b10d8e2f2940a6ee2ccecf
[]
no_license
shiv-konar/NeoTicketinSystem
7181694de0cb49add1f18605c4b96c1e6ec7600a
8b5b748f457cfaf104b78adc48bcead544f81369
refs/heads/master
2021-01-19T03:35:32.099376
2016-07-11T22:20:55
2016-07-11T22:20:55
63,106,317
0
0
null
null
null
null
UTF-8
Python
false
false
3,413
py
""" Django settings for src project. Generated by 'django-admin startproject' using Django 1.9.5. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os # Bui...
[ "Balajipadmavati1" ]
Balajipadmavati1
73fccea44018f9ce0bbec825b01759800db7f0c4
8d5f3ec2d50f1cb7d694a1016105bcf37b3dc829
/bearladder.py
a9f2c165e12fddeff8595b7d3a007f4bb6a52ca0
[]
no_license
SushantSriv/CODECHEF_python-codes
acbbabb33d1481d32f3b70b517927631703fa43f
a4524356e8d19ba1206e1688f9e307c7d462c213
refs/heads/master
2021-09-21T15:32:42.777321
2018-08-28T15:33:49
2018-08-28T15:33:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
for i in range(int(input())): a,b=list(map(int,input().split(" "))) if(a%2==1 and a<b): if(abs(b-a)==1 or abs(b-a)==2): print("YES") else: print("NO") elif(a%2==0): if(abs(b-a)==2 or b==a-1): print("YES") else: print(...
[ "noreply@github.com" ]
SushantSriv.noreply@github.com
05fd07e5476139a62cfe20d31ba439fe918bee15
157e8683eaf13aa904f84243292f5d3dc4ba4360
/Python_by_Example_Challenges/challenges_80to87.py
6fb749914f7e1028b1bb9f49b79f471e74708754
[]
no_license
MaryBobs/python
0b5b45ec9ab21e786eba897f5a1b887adbb7f404
4cfaa6871ec87478c85cd105029282cb056c28c3
refs/heads/master
2020-12-02T23:26:45.926119
2020-01-06T09:30:44
2020-01-06T09:30:44
231,151,110
0
0
null
null
null
null
UTF-8
Python
false
false
1,482
py
###080 ##name = input("Enter your first name: ") ##print("Your first name is:",len(name),"characters long") ##surname = input("Enter your surname: ") ##print("Your surname is",len(surname),"characters long") ##fullname = name + " " + surname ##print("Your name:",fullname,"is",len(fullname),"characters long") ## ###081 ...
[ "55357115+MaryBobs@users.noreply.github.com" ]
55357115+MaryBobs@users.noreply.github.com
0d3e7da7d35dc0e85ff5002ba1b008ceca4e07f2
d489eb7998aa09e17ce8d8aef085a65f799e6a02
/lib/modules/powershell/situational_awareness/network/powerview/share_finder.py
b7eb7430bb04ecd40ca90099bbefd0f114040073
[ "MIT" ]
permissive
fengjixuchui/invader
d36078bbef3d740f95930d9896b2d7dd7227474c
68153dafbe25e7bb821c8545952d0cc15ae35a3e
refs/heads/master
2020-07-21T19:45:10.479388
2019-09-26T11:32:38
2019-09-26T11:32:38
206,958,809
2
1
MIT
2019-09-26T11:32:39
2019-09-07T11:32:17
PowerShell
UTF-8
Python
false
false
6,300
py
from lib.common import helpers class Module: def __init__(self, mainMenu, params=[]): self.info = { 'Name': 'Find-DomainShare', 'Author': ['@harmj0y'], 'Description': ('Finds shares on machines in the domain. Part of PowerView.'), 'Background' : True, ...
[ "noreply@github.com" ]
fengjixuchui.noreply@github.com
0337df5b789db070f38e4d2cd0d34058d82bcc49
bfd61850148f08700f7b1b11e054603256c73d78
/quick/__init__.py
a32a659853fcfc32e8b50140b8d11f5be89c923a
[]
no_license
zero-miao/alg_sort
d1e41aa39bda34356405032d400427315220e630
21a721f89f63822afd08b40a1af77a7e10dc0599
refs/heads/master
2020-07-13T15:32:10.286540
2019-08-29T07:34:31
2019-08-29T07:34:31
205,106,845
0
0
null
null
null
null
UTF-8
Python
false
false
1,579
py
def quick_sort_recursive(lst, start=0, end=None): """ 快速排序 时间复杂度: 最优: n*log(n), 假设其每次一分为 2(j 在正中间), T(n) = 2*T(n/2)+n => T(n) = n + 2*n/2 +...+ log(n)*n/log(n) = n*log(n) 最差: n^2, 假设每次仅减少一个(j 在最边上), T(n) = T(n-1) + n => T(n) = n + n-1 +...+ 1 = n^2 比较次数: 最优: n*log(n), 每次循环的时候, 循环长度就...
[ "ao.mei@gaeamobile.com" ]
ao.mei@gaeamobile.com
b950cea9bfca52f532a55cad63ebec8f1f7c442b
fed7697f8be852f836240215ae732fdeb85bde6f
/poems/info_origin.py
562203198a21feaebd23f137799aeaa8d13571cc
[]
no_license
luckyBoy93/bar_poem
1243c45f4448e94746f5d14717ae10a37d94dfa5
0dc533383a1c45771a6016d2235c9afc387be37a
refs/heads/master
2020-01-23T21:18:03.661921
2016-11-23T10:50:54
2016-11-23T10:50:54
74,567,478
0
0
null
null
null
null
UTF-8
Python
false
false
2,606
py
# -*- encoding: utf-8 -*- import pymysql import re conn = pymysql.connect(host='127.0.0.1', port=3306, user='root', passwd='', db='bar_poem3', charset='utf8', autocommit=True) curDB = conn.cursor() cursor = conn.cursor(pymysql.cursors.DictCursor) curDB.execute("SET NAMES utf8") def get_stop(tt): m = re.search("(\...
[ "matveysodboev@gmal.com" ]
matveysodboev@gmal.com
b88b3654f353b709ae058fa2b3a9941510b100dd
edbf1231cd8f6dded5c405a63711b9645b8031f2
/venv/Scripts/pdf2txt.py
2b1804fa48c4e4fa18cbd60cb246625962f8d0c7
[]
no_license
c0mmand3r3/DataScience
45e24138aaf23cb77176a9f91044f23798dcf4da
cda4d5aabff038a9f288a7f18e4302ee6b8356ab
refs/heads/master
2020-04-10T00:39:05.637051
2019-02-15T10:00:26
2019-02-15T10:00:26
160,691,038
0
0
null
null
null
null
UTF-8
Python
false
false
6,060
py
#!C:\Users\DELL\PycharmProjects\DataScience\venv\Scripts\python.exe """ Converts PDF text content (though not images containing text) to plain text, html, xml or "tags". """ import argparse import logging import six import sys import pdfminer.settings pdfminer.settings.STRICT = False import pdfminer.high_level import ...
[ "anishbasnetworld@gmail.com" ]
anishbasnetworld@gmail.com
dd228ee5b5c345d7ead8c12e93e2c65210cece10
da1465fa5b0dd06d2674a50b908ac6eb65ac07b4
/formapi/tests/calls.py
aa5bd9f8038c336ac7e3621ba133fa94c0290934
[ "MIT" ]
permissive
hannseman/django-formapi
b135577547d315a6530608397a74b60a2c7c1aa1
610ea55f4525f47a89ffb5114bb98fa740546da0
refs/heads/master
2021-01-17T22:30:21.113740
2015-04-29T15:02:22
2015-04-29T15:02:22
11,033,872
0
1
null
null
null
null
UTF-8
Python
false
false
2,867
py
from django import forms from django.contrib.auth import authenticate from django.contrib.auth.models import User from django.utils.translation import ugettext as _ from formapi import calls from formapi.api import API class AuthenticateUserCall(calls.APICall): """ Authenticate a user """ username = f...
[ "hannes@5monkeys.se" ]
hannes@5monkeys.se
9b09e3f842d2de8df5974a6f1edd7a94e2d5200f
460405d5666b79c088c9a473b3be4d85d1950fe1
/accounts/migrations/0003_auto_20201101_2302.py
bebd60e8388330614edd6adfbd97578f548a338e
[]
no_license
TaPPa45/fillbooks
236d08d1caf08adf02116166acf41ac3967c7a36
68f6af413e4569ec57ea625aa8af0d07d067f9b0
refs/heads/main
2023-01-11T02:49:31.134859
2020-11-15T16:07:40
2020-11-15T16:07:40
381,718,486
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
# Generated by Django 2.2.12 on 2020-11-01 20:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_auto_20201011_1633'), ] operations = [ migrations.AlterField( model_name='branch', name='balance',...
[ "dimadev@dimankab1.fvds.ru" ]
dimadev@dimankab1.fvds.ru
96c76ae94d06dfc58e6363603425d800499d1a75
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/ml/azure-ai-ml/azure/ai/ml/identity/_internal/pipeline.py
66a31affbd4140ddaf931c75a2cb7069bbb5a312
[ "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", "ODbL-1.0", "GPL-3.0-only", "Z...
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
2,585
py
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- from azure.ai.ml._user_agent import USER_AGENT from azure.core.configuration import Configuration from azure.core.pipeline import Pipeline ...
[ "noreply@github.com" ]
openapi-env-test.noreply@github.com
e1a369dc2579d3d7f7b2687df356ca92d408e5ca
6699b8944b71e86725fdc17bb5f9cd69e254b4eb
/leetcode/1448.count-good-nodes-in-binary-tree/solution.py
93c087524ccb57bbc8d3bb206aa6f474859f9b57
[]
no_license
jadesym/interview
6099e663090408f548b4f4b0b17ae90bb60a7d46
5b6eecedfa1c7e496bcfe852e2d3896e993ff16e
refs/heads/main
2023-01-07T21:56:59.063542
2022-12-30T20:13:34
2022-12-30T20:13:34
41,118,644
7
2
null
null
null
null
UTF-8
Python
false
false
794
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def goodNodes(self, root: TreeNode) -> int: startMax = -(10 ** 5) return self.dfs(root, star...
[ "kfu@kfu-mn1.linkedin.biz" ]
kfu@kfu-mn1.linkedin.biz
cecdcb7982425da46c4c32df796eb8ef8076c3f2
e098e0498f61d0d9345b8ef711de7a43c423f2d9
/app.py
505ae03f82981ebceb9083341cae7fafd8ea6959
[]
no_license
byronvickers/tapioca
e24fc07ea908a9b7fef2f04e59d71e2b304bd933
e73f9d64e9cd5982b80ae20d64df6f53b3ab4662
refs/heads/master
2020-07-30T10:16:56.967964
2016-11-13T17:26:50
2016-11-13T17:26:50
73,630,993
0
2
null
null
null
null
UTF-8
Python
false
false
4,531
py
# tmux attach # pip install flask # export FLASK_APP=app.py # flask run --host=0.0.0.0 from flask import Flask, request, redirect, url_for, render_template, send_from_directory import shutil, subprocess, logging from itertools import product from werkzeug.utils import secure_filename import os, urllib import requests ...
[ "ubuntu@ip-172-31-45-111.ec2.internal" ]
ubuntu@ip-172-31-45-111.ec2.internal
a98c79f72d9b23ba1ca4450b0123d1e96e092bd4
70d7d4d8168233a0ab12fb5708412dd01c4487fe
/__str___ and __repr__/__str__test.py
89ba75a1d73d11ab927a3a2c234f20b853da4b5a
[]
no_license
spetum/python_practice
312134eadeb18ae8ffa5b592f1f7e9781c613efb
bccfbd2123dc866719f00603ccdbadc2b1920b67
refs/heads/master
2020-07-01T18:41:29.900282
2020-01-18T16:27:49
2020-01-18T16:27:49
201,259,392
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
class Car: def __init__(self, color, mileage): self.color = color self.mileage = mileage def __str__ (self): return f'Color of car is {self.color} and has {self.mileage} miles.'.format(slef=self) if __name__ == '__main__' : my_car = Car('red', 3213) print(my_car)
[ "aesthetictask@hotmail.com" ]
aesthetictask@hotmail.com
d3482bafbf83b25f3fc0815b98edbcb28c6babe8
1b13710d7b3e6ba59cd8fd52e8ad5a3d1432f497
/test_case.py
fa1b60812a11abe5c45a0f803437f35008871e9a
[]
no_license
tvandort/tdd-p2
dca59a4db5d5962bd9f9ee6915fc787996a505e1
6df5edf76a293ce5ae7911e84dc317997a3f929d
refs/heads/master
2020-03-09T14:22:59.655166
2018-04-12T21:56:28
2018-04-12T21:56:28
128,833,090
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
from test_result import TestResult class TestCase: def __init__(self, name): self.name= name def setUp(self): pass def tearDown(self): pass def run(self, result): result.testStarted() self.setUp() try: method = getattr(self, self.name) ...
[ "tvandort1@gmail.com" ]
tvandort1@gmail.com
c336eb20b02286f93156c8da834136555aee0286
60eeca91a261eedb35f866645fe037e40f9a0ee7
/test_case/pb2/equity/equityservice_pb2_grpc.py
74ee7571beebe88b1cbc809b45dea4a14b69e557
[]
no_license
jiaheqi/python-api-test
ca09b31bc92fbd1df97850c53700a461f50909e1
6c4204579f59dbfaa2659dc76a302d9e286112d5
refs/heads/master
2020-06-21T04:40:22.482546
2019-07-24T10:03:26
2019-07-24T10:03:26
197,346,221
0
0
null
null
null
null
UTF-8
Python
false
false
16,424
py
# -*- coding: UTF-8 -*- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc import equityservice_pb2 as equityservice__pb2 class EquityServiceStub(object): """ """ def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.open = c...
[ "jiaheqi@hualala.com" ]
jiaheqi@hualala.com
f98a8e3d28124d57f3295b6d5e9ff8b8bded75ed
a7c02348f6312eda84b8100b17a136279dcb5246
/ecommerce/migrations/0009_auto_20201117_0616.py
ec00d61f4929cb5ad8a2198bc177e9d7724f5f1b
[]
no_license
Emmanuel-Aggrey/ecom
87538d61d99b2db0a55d62cd108b57dc0d514154
ffbc9436763f1c4f271a75bfb983507dfd6564ee
refs/heads/master
2023-02-02T01:15:21.266305
2020-12-21T14:02:21
2020-12-21T14:02:21
297,808,719
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
# Generated by Django 2.2.10 on 2020-11-17 06:16 import ckeditor.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('ecommerce', '0008_auto_20200929_0055'), ] operations = [ migrations.AlterField( model_name='product', ...
[ "aggrey.en@gmail.com" ]
aggrey.en@gmail.com
dfdcee5ef26549aad4dbd730b609c6310f235a99
a3f3bcec45c6d27922aeb2f53b3d971be6da0aff
/list4.py
27d29e38320f0bb6c7b1c4fdfb151a7912f224b8
[]
no_license
arunshenoy99/python-assignments
2a323b3d00a33b7bf8f7d859e1b26c749b2bd740
490da07a19ea233206d75e12a4b7ce31fe53a018
refs/heads/master
2022-04-17T09:48:58.514781
2020-04-07T19:48:37
2020-04-07T19:48:37
252,694,201
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
# Python | Ways to find length of list def length_normal(my_list): count = 0 for el in my_list: count += 1 return count def length_fun(my_list): return len(my_list) my_list = ['1', '2', '3', '4'] print('Using normal method:{}'.format(length_normal(my_list))) print('Using len function:{}'.fo...
[ "devarunshenoy99@gmail.com" ]
devarunshenoy99@gmail.com
a0c8019736191cb3518c16db5aba3dd3c2efbe96
f5ff90dbd999c52d2885efc2fa6d1c35a7380d28
/Python Modules/Palindrome.py
89eb5d49d6881477a9d823539daa35f44e6b3105
[ "MIT" ]
permissive
MysticSaiyan/MITx-6.00.1x
5b36249a4962b43539e04d0b2bcb55928a238e9c
5b8e972399670f43fe25994cac7fa6a35a403b4f
refs/heads/master
2021-08-20T08:47:20.733248
2017-11-28T16:45:40
2017-11-28T16:45:40
111,674,624
0
0
null
2017-11-22T12:03:11
2017-11-22T11:15:50
Python
UTF-8
Python
false
false
369
py
def isPalindrome(s): def toChars(s): s = s.lower() ans = '' for c in s: if c in 'abcdefghijklmnopqrstuvwxyz': ans = ans + c return ans def isPal(s): if len(s) <= 1: return True else: return s[0] == s[-1...
[ "pragz111@gmail.com" ]
pragz111@gmail.com
18e134dac00b481624b17bd208a6bde059b3e038
ed6df70a3b07e2e584e62adaf8efc60760d8d5c0
/main.py
64e7935c99ff55dc2673bd74e6ee6cf1ed4a398a
[]
no_license
madeo17/tic-tac-toe
92221206ad8d01e20bafc678b3399a9e34b8df6a
04d269544f5c8f0fe50c99ed424933b232c8eb16
refs/heads/master
2020-03-27T18:31:10.326697
2018-08-31T19:17:15
2018-08-31T19:17:15
146,927,291
0
0
null
null
null
null
UTF-8
Python
false
false
3,450
py
#! python3 # Tic Tac Toe game - my first project import os import random def display_board(board): os.system('cls') print('| | | |') print(f'| {board[7]} | {board[8]} | {board[9]} |') print('| | | |') print('-------------') print('| | | |') print(f'| {board[4]} | {board...
[ "matemalec@gmail.com" ]
matemalec@gmail.com
4c2902a924d3a9a14d643a543c10bb7afec70217
e043f008aaec14e006051c7609748729a78bef90
/tests/test_falconparser.py
e56ce14595d4071e3f0f9eb1c42050f17872770b
[ "MIT" ]
permissive
DamianHeard/webargs
723f38789ae4be61247da2a94ab590e11c808da7
4bba0bb4ca7bef3d0c53fab8f9af632e9653b2ed
refs/heads/dev
2021-01-18T00:25:58.792302
2015-11-09T02:07:52
2015-11-09T02:07:52
45,103,859
0
0
null
2015-10-28T10:05:39
2015-10-28T10:05:39
null
UTF-8
Python
false
false
4,147
py
# -*- coding: utf-8 -*- import json import pytest import falcon import webtest from webargs import fields from webargs.falconparser import parser, use_args, use_kwargs def use_args_hook(args, context_key='args', **kwargs): def hook(req, resp, params): parsed_args = parser.parse(args, req=req, **kwargs) ...
[ "sloria1@gmail.com" ]
sloria1@gmail.com
9146fd25e657112193413c9c94cfc2f46fec9414
110d75e6936c551c38668856656bcae7e9af5d08
/evstats.py
3c8abd781f935d6167796c3a82cbbf8c979640b7
[ "MIT" ]
permissive
claireshort4/OEvent
fe463f60114ba44788dfa8d838e69bbdd3b0561a
51cc9b4dab7e96160a31b9b451cf9c32bd014271
refs/heads/master
2023-03-22T15:40:41.228570
2021-03-12T21:07:25
2021-03-12T21:07:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
import numpy as np # get coefficient of variation squared; (< 1 means rhythmic; 1=Poisson, > 1 for bursty) def getCV2 (isi): return (np.std(isi)/np.mean(isi))**2 # get local variation # < 1 for regular/rhythmic, == 1 for Poisson, > 1 for bursty # based on Shinomoto et al 2005 def getLV (isi): s = 0.0 if len(isi) ...
[ "samnemo@gmail.com" ]
samnemo@gmail.com
a653ca06c4441385d27dfd1f9ef0fa271a74121a
0c06a49909784c060db3522d3ab26e18429ae685
/003-discrete_sine_transform.py
20f7bf697f17e3ce6f312f48bfce2392223e36d5
[]
no_license
TheBlueChameleon/Py_Advanced_Codes
5ba97cc24de409a4ad6c80df6949cab7b4eb9df3
98247be007cbfcb9f6ea2a7e2d905cf4e0aeb3ec
refs/heads/main
2023-06-09T16:15:52.852921
2021-06-19T08:49:14
2021-06-19T08:49:14
338,657,365
0
0
null
null
null
null
UTF-8
Python
false
false
903
py
import scipy import numpy as np import matplotlib.pyplot as plt N = 6280 P = 4 X = np.linspace(0, P * np.pi, N) Y = np.sin(np.pi * X) + .3 * np.sin(5 * np.pi * X) A = scipy.fft.dst(Y, norm="ortho") W = [k / (P * np.pi) for k in range(len(A))] spectrumLimit = 30 fig = plt.figure( figsize=(5, 10) ) drw = fig.add_subp...
[ "stefan_hartinger@gmx.de" ]
stefan_hartinger@gmx.de
0d7f2e1ee9666fac5950797ec00593729a0849b8
d3190984762e07cfab6a0fef38bc2755f7832114
/functions/dshop_processing_func.py
86a1e5fff172560da46923644aab1d3b0a7c2bf5
[]
no_license
Rommagcom/final_project
47be6891b02677b12068873b0da77c5873c17a0f
c248108dec1ced3dbd74c65d32ec47d8fdd38cd7
refs/heads/master
2023-07-15T03:08:50.396055
2021-08-24T19:28:34
2021-08-24T19:28:34
399,523,047
0
0
null
null
null
null
UTF-8
Python
false
false
5,488
py
import psycopg2 import logging import os from datetime import datetime import requests import json from hdfs import InsecureClient from airflow.hooks.base_hook import BaseHook import pyspark from pyspark.sql import SparkSession def load_from_db(table, **context): execution_date = context['execution_date'] fo...
[ "roman.ivanitskiy@airastana.com" ]
roman.ivanitskiy@airastana.com
4c8bbdc6300f6fd0f97b2e3c2f51225dda51a45d
172f123d63f2472568cf7989ba136e548f4da5e4
/AppofML_ITP449/Code_repo/hw1_files/HW1_Q4_Jhaveri_Shantanu.py
d93ad651775315358b06dc417481f9e2249ddceb
[]
no_license
ShantanuJhaveri/LM-Intro_ML
1a14b78b4afee3653910247c66b645ccf3742c14
6edc57d8e5af426cf0d8e7796afb06569084c691
refs/heads/master
2023-03-14T03:41:02.176288
2021-03-10T03:35:44
2021-03-10T03:35:44
314,376,420
1
0
null
2020-12-02T09:52:46
2020-11-19T21:40:09
Python
UTF-8
Python
false
false
810
py
# Shantanu Jhaveri # ITP 449 Fall 2020 # HW1 # Question 4 # Write a program that prompts the user to enter a loan amount, annual interest rate, and number of # years for a car loan. Then it prints the monthly payment amount. loanAmount = float(input("ENTER A LOAN AMOUNT: ")) i = float(input("ENTER AN ANNUAL INTEREST ...
[ "sj06434@usc.edu" ]
sj06434@usc.edu
a2156bc789a1d722ae16fc02c3016a476e85d470
41a4ef26cf3b4710dfa6fe3f1e88a935bb909654
/utils/logger.py
5a8cecd51025f9a4557d25d6b86232b0ad7b72a8
[]
no_license
little-alexandra/attention_ocr
c6c0846342f947bbb8697f99e02cdd5ce2c276c2
475273573ae02efe1c7c1ba3905939580d26876e
refs/heads/master
2020-11-30T10:01:52.232714
2019-12-18T09:35:08
2019-12-18T09:35:08
230,371,558
1
0
null
2019-12-27T04:13:46
2019-12-27T04:13:45
null
UTF-8
Python
false
false
1,463
py
import logging import time import os from logging import handlers import datetime import tensorflow as tf debug=True def _p(tensor,msg): if (debug): dt = datetime.datetime.now().strftime('TF_DEBUG: %m-%d %H:%M:%S: ') msg = dt + msg return tf.Print(tensor, [tensor], msg,summarize= 100) ...
[ "piginzoo@gmail.com" ]
piginzoo@gmail.com
89d3186396baa0f5e7a3782aa285ac0dbd56d027
9a1a0b47b59e55e3f2043ad32d5d58455e69425d
/0708/repeticiones/ej113.py
896abdd0ecd8dce9430c5332c13b4b92e6b06d17
[]
no_license
piranna/asi-iesenlaces
dcabc0213791c04a8b6b4ccb850d5bda78292ae1
cf35cbea732065e09a58604a93538a9b9dca875f
refs/heads/master
2016-08-06T05:09:44.270637
2008-06-15T09:00:27
2008-06-15T09:00:27
32,416,588
1
0
null
null
null
null
WINDOWS-1250
Python
false
false
397
py
# -*- coding: cp1252 -*- """ $Id$ Ej 113 Pide un texto que no tenga mayúsculas. Si hay una letra mayúscula, vuelve a pedir el texto """ texto = raw_input("Introduce una frase toda en minúsculas: ") while not texto.islower(): # vuelve a pedir el texto si hay alguna mayúscula texto = raw_input("Introd...
[ "morillas@f86dea77-7e2e-0410-97ea-a74e350978e6" ]
morillas@f86dea77-7e2e-0410-97ea-a74e350978e6
a1bc023ef9ad5e453512141f2085d35f378c1e41
8d598fa67ea31b067f61df7553e5588e05ea1102
/test2.py
7f31567030e01354db450eab20b6bb62894654c7
[]
no_license
pin034/olimpiada2020.py
5f40dab54be0610edd14af0ea398d21abe76d1d7
81bee86b9142ff50fa188f5a693ea486ee2cb18d
refs/heads/master
2023-03-04T11:41:41.548540
2021-02-17T08:39:25
2021-02-17T08:39:25
294,321,816
2
2
null
null
null
null
UTF-8
Python
false
false
160
py
f = int(input()) e = int(input()) e = e+1 a = 0 b = 0 for x in range(f,e): if x % 2 == 0: a = a + x else: b = b + x a = a - b print (a)
[ "noreply@github.com" ]
pin034.noreply@github.com
f0bd5de1ea650b98a69f891dccd5526b09bff57e
bd47051178c9971321dd223ffdac84847db1bda7
/PrisDilem/PrisDilemmaupdated.py
fb76c381818d1f876defe41f0c70883d816c6fc9
[]
no_license
AriFleischer13/CSC15-Python
184973f09ae26c1ec7e28f04488874728aaabff4
0c744da91d429b3010e10d738a373c5fb3e78562
refs/heads/master
2020-04-16T21:58:03.663602
2019-01-20T02:56:18
2019-01-20T02:56:18
165,947,505
0
0
null
null
null
null
UTF-8
Python
false
false
4,980
py
from random import choice import itertools Defect = 0 Cooperate = 1 class Agent: def __init__(self, name, strategy): self.name = name self.strategy = strategy self.history = {} # a dict, key is another agent, value is a list of events where self interacted with another agent self.tot...
[ "AriFleischer@Aris-MBP.fios-router.home" ]
AriFleischer@Aris-MBP.fios-router.home
1ec0b0fa3ca62cec709674e27863288278930c91
2cc18381baf1cb13cd7cb2b20f9241b81775cf66
/join.py
91276675dcb26a09bb1c3aef11ed4f65d22baaa0
[]
no_license
liza3641/PokemonGameClient
226dafe51f5621770eb3ed2d7b4a6b3a4d5be0be
0567c4ae469f5d2290374d1c300ab52bf6cd4ac0
refs/heads/main
2023-02-01T05:00:52.242579
2020-12-17T16:26:51
2020-12-17T16:26:51
318,370,820
0
0
null
2020-12-04T01:44:22
2020-12-04T01:44:21
null
UTF-8
Python
false
false
3,856
py
#! /usr/bin/python # -*- coding: utf-8 -*- from tkinter import * import client_server import random import os def join_main(): root = Toplevel() root.title("JOIN") # 제목 root.geometry("640x480") # 가로 x 세로 root.resizable(0, 0) # 크기 변경 불가 currunt_path = os.path.dirname(__file__) # 현재 파일의 위치 반환 ...
[ "dhtkdals1972@naver.com" ]
dhtkdals1972@naver.com
38590fcb54bc8781c91f196e3e5517bfe2b08f66
8039fd72bc4d7a7fc89ded9d63b47f020e9d95a5
/app/core/management/commands/wait_for_db.py
7add791e22ad05de1029347de5eb7839ecafc151
[ "MIT" ]
permissive
vturbin/recipe-app-api
543b5439f73299c3db12638c18df51adcc740108
edec6371863ea7bd3aec95f6472fa66e0db5386b
refs/heads/main
2023-01-16T06:55:29.750405
2020-11-22T17:06:21
2020-11-22T17:06:21
307,793,886
0
0
null
null
null
null
UTF-8
Python
false
false
679
py
import time from django.db import connections from django.db.utils import OperationalError from django.core.management.base import BaseCommand class Command(BaseCommand): """Django command to pause execution until database is available""" def handle(self, *args, **options): self.stdout.write('Waitin...
[ "v.turbins@smart-iot.solutions" ]
v.turbins@smart-iot.solutions
f118e5471d0b71f954e6bd4e04a5883209a3e328
2466d0c361562f51169dd2b101cf2abd4fb4197f
/210127_test.py
1ebc6541e933f1e8210068cb455d27b02f2d7546
[]
no_license
SayaTakeuchi1010/refl1d
360cff173eae87ae635e105cadc0b4ab05a618bb
f10762ce2d16ac6d2baa4a31b6e64505cbadf28c
refs/heads/master
2023-05-01T13:19:58.707811
2021-05-21T22:46:19
2021-05-21T22:46:19
363,268,570
0
0
null
null
null
null
UTF-8
Python
false
false
2,917
py
from refl1d.names import* from numpy import mod, exp, arange, linspace import math Probe.view = 'log' #log plot data_file_n ='C:/Users/saya6/Documents/NCNR/test/TiOx_2.3_trunc.refl' instrument = NCNR.XRay(wavelength=1.54, Tlo = 1.4975, slits_at_Tlo=0.01, slits_above = 0.01) probe = instrument.load('C:/Users/saya6/Docum...
[ "saya.takeuchi@nist.gov" ]
saya.takeuchi@nist.gov
8e55286d2adba619b99dc413e3201836767bb789
a88a99fb3f754649db06ad86d22b5cb0d2d1e19c
/scholariumat/users/migrations/0005_auto_20181125_1759.py
37e390c09b8e19e06e7d8ed6a47ff1bf93ab1a89
[ "MIT" ]
permissive
valuehack/scholariumat
91ec59647948759d917ce7077d06b0aa9618c807
47c13f3429b95b9ad5ca59b45cf971895260bb5c
refs/heads/master
2022-12-07T22:20:23.967854
2020-04-09T22:05:52
2020-04-09T22:05:52
135,466,121
0
3
MIT
2022-12-06T18:38:22
2018-05-30T15:55:14
JavaScript
UTF-8
Python
false
false
540
py
# Generated by Django 2.0.9 on 2018-11-25 16:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0004_auto_20181120_1929'), ] operations = [ migrations.RenameField( model_name='profile', old_name='name', ...
[ "merlin.buczek@gmail.com" ]
merlin.buczek@gmail.com
761272cafba7280e0e789a461deda19ce8598416
f088119d9068c00fa66cacb1be844481239dc451
/p13.py
aa2291cb82f75d5f7de07b90cc3d3200797d0422
[]
no_license
thamilarasi43/thamilarasi
7c9ba952d418ea0d2ccdcd70b10d3eacf46899b5
027bcd6f91164e3368f6633b4c79cd1a635a5300
refs/heads/master
2020-03-09T12:20:57.263416
2018-04-28T14:08:03
2018-04-28T14:08:03
128,783,545
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
n1=int(input("enter n")) q=int(input("enter q")) l=[] l1=[] for i in range(n1): a=int(input("enter n val")) l.append(a) for j in range(q): c=0 u=int(input()) v=int(input()) for i in range(u,v): l1.append(l) print(min(l))
[ "noreply@github.com" ]
thamilarasi43.noreply@github.com
35647717123a5bdd87ee9cecc764d41973a71528
d04126f6572398d715c048800b1ad4b0e0c35d32
/classifier.py
221300947a7c1a4f1bd56c41ec7f76e05345cc7a
[]
no_license
ArisPapangelis/Food-intake-toolbox
1fc63aac3dc2ac881ddd38eb9eeab746dcd8021a
8ccfa90b1f2096b27491318332583f7ce0212889
refs/heads/main
2023-03-16T08:47:24.517738
2021-03-05T01:56:10
2021-03-05T01:56:10
335,093,942
0
0
null
null
null
null
UTF-8
Python
false
false
5,240
py
# -*- coding: utf-8 -*- """ Created on Wed Jan 6 17:38:11 2021 @author: Aris Papangelis Script to train a supervised learning classifier """ import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from sklearn import preprocessing from sklearn.model_selection import train_tes...
[ "36777816+ArisPapangelis@users.noreply.github.com" ]
36777816+ArisPapangelis@users.noreply.github.com
b88c2230726043ad25102eb261b604d25df27d52
dddf1118b82661df9e7d68ce041279ab45586532
/net_api.py
0645e0bea4304512a5e67c80acfee4003e7807d3
[]
no_license
lemonsina/thirteenwater
9bfad638f92a57fdd44127afb0b5ca013f75656e
1d52e20d3c72c7dca2166d4a85d2e1a40c52b84c
refs/heads/master
2022-02-28T04:20:28.425214
2019-10-14T19:20:26
2019-10-14T19:20:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,483
py
import requests import cards_division url='https://api.shisanshui.rtxux.xyz' cards_list = [] max_list = [] def sign_in(username,password): global url payload={"username":username,"password":password} headers={'content-type': "application/json"} r=requests.post(url+'/auth/login',json=payload,headers=hea...
[ "747265828@qq.com" ]
747265828@qq.com
cb012bebcabc0aebf3e733ef8ecfb058ae9b1ceb
fbe58a32edf598edb66afb1af7a54a174f590d5c
/Intro_Problems/fibonacci_last_digit.py
ab9eb977bf6767204ecf5f2188cf6ae6ba481316
[]
no_license
viritaromero/Algo-and-DS
f70a8e6a02109a722f03c75208819bbd73693cb7
be2edefc179811b1fa62395797a4447e7df3a70d
refs/heads/master
2020-04-19T08:45:01.694996
2017-01-22T02:41:01
2017-01-22T02:41:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
# Uses python3 import sys def get_fibonacci_last_digit_naive(n): fibs = [0,1] for i in range(2,n+1): fibs.append(fibs[-1]%10 + fibs[-2]%10) # if n <= 1: # return n # # previous = 0 # current = 1 # # for _ in range(n - 1): # previous, current = current, previous...
[ "chaitanyadeva96@gmail.com" ]
chaitanyadeva96@gmail.com
e42024f8c39e22cdf45b7337bb35c1eb1b5507ec
c8d494d3d47660500537d0214050772e975befda
/tools/get_item_img.py
243c35e23d47b6e95d656806ea672ae1ce77933e
[]
no_license
ragnarok-online-japan/itemsearch-nextjs
76f91a8b81d9395877295078f2f45cf5df3037b2
0025a33226a15dbbbf038291bd3541506b3e6452
refs/heads/main
2023-05-11T03:40:26.624590
2021-05-25T03:44:19
2021-05-25T03:44:19
323,914,698
0
0
null
null
null
null
UTF-8
Python
false
false
2,760
py
#!/usr/bin/env python3 # pip3 install pyquery aiohttp Pillow import argparse import json import os import io import traceback import urllib.request, urllib.parse, urllib.error from PIL import Image, ImageDraw, ImageFont parser = argparse.ArgumentParser(description='') parser.add_argument('--import-items', ...
[ "h-mineta@0nyx.net" ]
h-mineta@0nyx.net
e0da5bd6190656653922935822c614334e58cb44
24f693c58ed674bc2bade68ccfc5b77ffecbb566
/django/api/desarrollo/selenium/prueba.py
7165f5dc838b626135c64093e8857710f5b0323b
[]
no_license
vazquezjav/Tesis_Final
e63c1a6ca72e3702ce4f4d32831540e83ff960a7
b8e90e9177a01af90ca84d9599a80915f403d219
refs/heads/main
2023-06-28T17:22:55.691632
2021-07-29T16:25:22
2021-07-29T16:25:22
390,783,942
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
from selenium import webdriver from selenium.webdriver.firefox.options import Options firefoxOptions = Options() firefoxOptions.add_argument("-headless") browser = webdriver.Firefox(executable_path="./geckodriver", options=firefoxOptions) browser.get('https://www.linuxhint.com') print('Title: %s' % browser.title) br...
[ "vazquezjavie079@gmail.com" ]
vazquezjavie079@gmail.com
de3b15f73a895866ee623c91bf321c778e86a9cd
50a2e22c8af5bc9adc9320c754177341e223e996
/findTree.py
7acd9206deb80796bfbee0390c536af590d711d7
[]
no_license
cuibjut/binary_tree
d7572026bcc3cd3890ce2d1534d929c0019b6de7
8f21e350314b7b1f9ef585836a73091e92b2d55d
refs/heads/master
2020-04-10T16:39:53.209424
2018-12-10T09:49:56
2018-12-10T09:49:56
161,151,911
0
0
null
null
null
null
UTF-8
Python
false
false
1,789
py
""" 1.根据前序,中序遍历二叉树的顺序求后序遍历二叉树顺序 2.根据后序,中序遍历二叉树的顺序求前序遍历二叉树顺序 """ def find_last_tree(prelist, midlist, lastlist): """ 首先写出递归的终止条件及边界条件 :param prelist: 先序遍历树的list :param midlist: 中序遍历树的list :param lastlist: 后序遍历树的list :return: 通过先序和后序遍历返回树的后序遍历结果 """ if len(prelist) == 0: # 判断边界 ...
[ "tizi@ibantang.com" ]
tizi@ibantang.com
aa586b92e81d84b242d0d337f70ca4cbca0dcb8a
1e1ae51914c9338f33096d85e4d2edfb4fbf835d
/make_check_list.py
6989ad6fdc7f385acd78d9b3e5ef8638216531a9
[ "Apache-2.0" ]
permissive
clinfo/2021_Patients_Transport
b4c98ebb1d292acf116b01c77a602a3a1e80c5f9
4f14cd0b1350eca98dfbe9d4ae530fda34759811
refs/heads/main
2023-02-27T23:04:54.906983
2021-02-12T07:40:30
2021-02-12T07:40:30
336,447,946
0
1
Apache-2.0
2021-02-10T09:04:43
2021-02-06T03:37:24
Python
UTF-8
Python
false
false
6,074
py
#!/usr/bin/env python # coding: utf-8 import numpy as np import pandas as pd import glob filnames = glob.glob('data_transport/u_*') filnames.sort() dates = [filname.split('.')[-2].split('_')[-1] for filname in filnames] gammas = [filname.split('.')[-2].split('_')[-2] for filname in filnames] opt_types = [filname.s...
[ "rokitaniplus1@gmail.com" ]
rokitaniplus1@gmail.com
499384826def0b608af69a4bac123283fadb6546
b6a160bc968e2c90fd4623312044a1a3093e3659
/google-python-exercises/basic/string2.py
cb5b0147fc1e4cc051c9e088b67f2e44c3775af8
[ "Apache-2.0" ]
permissive
bminor21/PythonProjects
82a2a4ccef64598c81514bcc5c27ce44b5a55531
b8c3ed637e0b239e2bb942ba461a625a14eb8755
refs/heads/master
2022-01-06T17:15:04.430726
2019-06-14T00:02:58
2019-06-14T00:02:58
109,908,968
0
0
null
null
null
null
UTF-8
Python
false
false
2,795
py
#!/usr/bin/python2.4 -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Additional basic string exercises # D. verbing # Given a string, if its length is a...
[ "brett.minor21@gmail.com" ]
brett.minor21@gmail.com
1d8305e331e32d08f428a20307d75df6b5b6bb80
3ff6932fb2b356bca95c4ae6794ac85d838c958c
/source_pytorch/predict.py
48c0844421b8cf0622cd438308e5e7bd7584de5b
[]
no_license
gkuzivam/plagiarism-detector
9f9a9da2f4ca10fe4072f9f6a44c012b8e399a4a
23091368788aebff549ffa23d002b4d2e044db4c
refs/heads/master
2020-07-03T06:04:10.592992
2019-08-11T20:55:59
2019-08-11T20:55:59
201,812,915
1
0
null
null
null
null
UTF-8
Python
false
false
2,574
py
# import libraries import os import numpy as np import torch from six import BytesIO # import model from model.py, by name #from source_pytorch import model from source_pytorch.model import BinaryClassifier # default content type is numpy array NP_CONTENT_TYPE = 'application/x-npy' # Provided model load function de...
[ "noreply@github.com" ]
gkuzivam.noreply@github.com
2495228312f4bfdd2e648407cb25f51a82d29143
812a1c54d03c0542e05f3a55d6caaf2b5723cf5c
/rango/wrango/templatetags/rango_template_tags.py
2500599ca11ff18088fd9e653f89fa4335a34de0
[]
no_license
tabithalee/rango2
4b407ec8453ef398c96a95c4a9ec66d4ecb83214
42542351b6cf0381fe9b6e4c56f4634a1fa6f2dc
refs/heads/master
2021-01-11T16:39:22.087221
2017-02-10T17:12:25
2017-02-10T17:12:25
80,132,804
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
from django import template from wrango.models import Category register = template.Library() @register.inclusion_tag('rango/cats.html') def get_category_list(cat=None): return {'cats': Category.objects.all(), 'act_cat': cat}
[ "2295373l@student.gla.ac.uk" ]
2295373l@student.gla.ac.uk
046b6856d4a0ebc36013df65d5ad55797e818c35
ba9394bd4f5845ab8e3fcdb7e7dfe18c41c4c8d1
/core/main/run_group_test.py
ae0c696888b7f2e07330c844cd3933bf5975ad8e
[]
no_license
ZongweiBai/rest-test-tools
b050992aaffa2431bcee06c82e405fdfe50ab5f7
dd096b5a06c2cc2962c5f6be9f85867b2623293c
refs/heads/master
2022-11-28T04:36:10.836360
2020-08-04T09:16:20
2020-08-04T09:16:20
282,186,153
0
0
null
null
null
null
UTF-8
Python
false
false
3,375
py
# coding:utf-8 import os import sys curPath = os.path.abspath(os.path.dirname(__file__)) rootPath = os.path.split(curPath)[0] sys.path.append(rootPath) from core.util.request_http import RequestHttp from core.data.get_data import GetData from core.util.common_assert import CommonUtil import json from core.data.depen...
[ "jonezw@163.com" ]
jonezw@163.com
ca03e41429a459b4cc726e31ae18f1e3d4294e70
dbdcc72fcf99fc2f47fd8d30742bf758a62d784f
/FULLERTON_FR_BILLING.py
66b9db088df7b7a0ff789c314e18f47d2e7fe1f0
[]
no_license
mohaksehgal/CODES
35ae14ec9ea772cfc96dad7826435db57eb71b47
7674649bf8421871a69d411ecfd1f3a35eed96a9
refs/heads/main
2023-06-05T22:47:54.903498
2021-06-23T04:45:37
2021-06-23T04:45:37
379,480,471
0
0
null
null
null
null
UTF-8
Python
false
false
15,247
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jun 9 11:27:47 2021 @author: rishi """ import pandas as pd import numpy as np A=pd.read_excel(r"/Users/mohaksehgal/Documents/Work/Billing/FULLERTON/JUN 21/MASTER_FILE_FULLERTON_FR.xlsx") P=pd.read_excel(r'/Users/mohaksehgal/Documents/Work/MIS/FULLER...
[ "noreply@github.com" ]
mohaksehgal.noreply@github.com
4e2ef96ae7a28d25546c82eb854eb6d1494f7b18
99c3315d8d5fe7df02cee16c8dcac049d707aba2
/server.py
a68702fc985e324fd4e9a341c5ab745bdb2b178c
[]
no_license
trianasuanjaya/utsrekayasaprotokol
db77851d452a6553966a40b890390d4489279911
0f36df8e301faffa9896a2618885c49277419b0f
refs/heads/master
2020-07-29T04:23:23.823261
2016-11-14T08:37:34
2016-11-14T08:37:34
73,682,724
0
0
null
null
null
null
UTF-8
Python
false
false
439
py
import socket import time; import datetime s=socket.socket() host = socket.gethostname() port = 12345 s.bind ((host,port)) s.listen(5) while True: c,addr = s.accept() print ('daftar Printah') ,c.recv(1024) print ('dari'), addr localtime = time.localtime(time.time()) dt = datetime.datetime(*localtim...
[ "noreply@github.com" ]
trianasuanjaya.noreply@github.com
c31079b9c2e363ef5429989d70f5beee59451d4c
f4e9a1950e629f1de65842c2522b856417ea10cf
/Python/addNumbers.py
32adb196801ef1e6e757384340e2ccfc590d43ef
[]
no_license
TimmyYung/TheRightCodes
687d972658b993e620b4d9fe255d459d886a47d7
322eb0542c176c4178f3a240e422461b94e6f2ad
refs/heads/gh-pages
2023-02-04T10:47:08.635052
2020-12-22T20:21:43
2020-12-22T20:21:43
149,155,435
0
0
null
2020-03-25T05:03:36
2018-09-17T16:31:36
HTML
UTF-8
Python
false
false
118
py
def sum_to(number): total = 0 for n in range(number+1): total += n return total print(sum_to(10))
[ "592619@pdsb.net" ]
592619@pdsb.net
221d5cafd65cefa2f79d23099f66c2284256273a
443a42433948d7003e200705cd27271f4b3e1029
/posts/models.py
30b08868f5572c61a1e3e4577dea12ddcf244f6a
[]
no_license
alejo5248/platzigram
fc86902b4f908bc54176df5a6fa4cf931c6c8730
efd8239c675d3aedc286cdead7a1e4acd0ea1b03
refs/heads/master
2020-04-14T18:41:02.350774
2019-01-10T16:49:11
2019-01-10T16:49:11
164,029,174
1
0
null
null
null
null
UTF-8
Python
false
false
495
py
from django.db import models from django.contrib.auth.models import User class Post(models.Model): user=models.ForeignKey(User, on_delete=models.CASCADE) perfil=models.ForeignKey('usuarios.Perfil', on_delete=models.CASCADE) titulo=models.CharField(max_length=50) foto=models.ImageField(upload_to='posts/images') ...
[ "alejandro_hurtado@utp.edu.co" ]
alejandro_hurtado@utp.edu.co
95ab244bbb47dafcd216738b20b3b9c82b00e6b3
5c33148acbdaeeae2e0570519e3009e96bca117c
/CAPANXIN/wsgi.py
0c39949c23235cff917b85096da8c2decfc60865
[]
no_license
Raisony/CAPAN
875e04ed930fd74edd56173da2d424e3d80eed03
bae76d3cd9907c6c57e6458d258b8aea2094295f
refs/heads/master
2022-12-08T04:33:11.324775
2020-08-20T03:54:11
2020-08-20T03:54:11
288,899,501
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" WSGI config for CAPANXIN 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_SETT...
[ "s753242357@gmail.com" ]
s753242357@gmail.com
399b47e046b7c3c4f711e023be033fbbff5c8369
b7b35320158115f1aeb4c86ab69fca0d6081c5fa
/ThePosts/posts/migrations/0001_initial.py
7ab3ef0c9576274bf8de77ee3c63be9b012e0507
[]
no_license
osmarsalesjr/PPI
0c7d1d1d79ca00c739fb6877b317f8837d5a6b1d
57e939adeaf66d849c72c7e4f48501d9e9e3db66
refs/heads/master
2020-04-17T16:18:52.175841
2019-03-03T17:30:53
2019-03-03T17:30:53
166,735,218
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
# Generated by Django 2.1.5 on 2019-02-10 02:15 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', mode...
[ "noreply@github.com" ]
osmarsalesjr.noreply@github.com
5b1d5b593511fa873e79c2f510b7c882a1ce7bc0
f0b5f7e7a1737b79210300085d366ec8870a361f
/dynamic_porgramming/dynamic_programming_8-2_fibo_recursive.py
d10253229f7843ae5f69bdfa70aba50e9de038c2
[]
no_license
cksrb1616/Algorithm_past_papers
135f2143f466bd38f1b770de16fe88eeb086c1df
193b3e41165c577d944b6e60f0c255141882170f
refs/heads/master
2023-04-02T21:31:28.194694
2021-03-29T16:26:40
2021-03-29T16:26:40
201,218,237
0
1
null
null
null
null
UTF-8
Python
false
false
442
py
#Using memoization #Top_down method : 작은 문제들이 모두 해결되었을 때 큰 문제가 해결됨 #Bottom_up mehtod : 작은 문제를 하나씩 해결해 나가면 먼저 해결된 문제를 활용해 다음 문제를 차례로 해결 #Dynamic -> Bottom Up d = [0]*100 def fibo(x): if x == 1 or x == 2: return 1 if d[x] != 0: return d[x] d[x] = fibo(x-1) + fibo(x-2) return d[x] print...
[ "53897355+cksrb1616@users.noreply.github.com" ]
53897355+cksrb1616@users.noreply.github.com
b0378dcfcc5c4214352f38c63a94baff4b9218a4
f88c89842dc78ac228d4ca800f655ea88032ea07
/week12/db.py
c97c265a56d95625e6935256fad749a5119fc645
[]
no_license
hpmalinova/Hack-Bulgaria
a210ae717c83503053eef4762aedef57891fb4b5
8e1ee0247f2411f4729435a117fde417d474fffc
refs/heads/master
2021-09-28T06:08:29.820826
2020-07-31T12:10:05
2020-07-31T12:10:05
248,812,505
0
0
null
2021-09-22T19:06:33
2020-03-20T17:19:10
Python
UTF-8
Python
false
false
940
py
from sqlalchemy import (Column, Integer, String, CheckConstraint) from contextlib import contextmanager from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker DB_NAME = 'urls.db' engine = create_engine(f"sqlite:///{DB_NAME}") Base = declara...
[ "hpmalinova@github.com" ]
hpmalinova@github.com
03f2beccf2929eaf7844b8fcfdfdbb117ecae76c
957ff175ffedc1cfafd43ebe20f64f83cc55325f
/heritagesites/SELECT ca.country_area_name, hs.site_name.py
56d3d62ccfbd1f2743aead41ee3e32fa96811754
[]
no_license
chenyipeng1/heritagesites
d12621a17d1a337e7beee0546065006246d78ed6
740262646c193c42eb6612e17843ac534798426f
refs/heads/master
2020-04-06T08:31:35.066478
2018-11-20T01:48:51
2018-11-20T01:48:51
157,307,055
1
0
null
null
null
null
UTF-8
Python
false
false
658
py
SELECT rg.region_name, srg.sub_region_name,ca.country_area_name, hs.site_name, hsc.category_name FROM heritage_site hs LEFT JOIN heritage_site_jurisdiction hsj ON hs.heritage_site_id = hsj.heritage_site_id LEFT JOIN country_area ca ON hsj.country_area_id = ca.country_area_id LEFT JOIN region rg ON ca.region_id =...
[ "chenyipeng@chendeMacBook-Pro.local" ]
chenyipeng@chendeMacBook-Pro.local