blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 91 | license_type stringclasses 2
values | repo_name stringlengths 3 135 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 68 | visit_date timestamp[ns]date 2015-07-25 20:53:29 2023-09-06 10:46:05 | revision_date timestamp[ns]date 1970-01-01 00:00:00 2037-05-03 13:00:00 | committer_date timestamp[ns]date 1970-01-01 00:00:00 2036-02-09 17:40:36 | github_id int64 1.61k 691M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 24
values | gha_event_created_at timestamp[ns]date 2012-06-03 10:21:33 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-09-13 22:40:33 ⌀ | gha_language stringclasses 250
values | src_encoding stringclasses 27
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 6 10M | extension stringclasses 289
values | filename stringlengths 1 218 | content stringlengths 6 10M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a459e717753df4939476d25f864f7922556fb06e | 7a368de76d45b2253c7b498a97ea68e298446d65 | /crowdgezwitscher/events/urls.py | dd09270d696870d2f3946a1b6711ccb01110f3b1 | [
"MIT"
] | permissive | Strassengezwitscher/Strassengezwitscher | 2c902cb24e70a70b95bfa252ffd7c12a49722bae | afdd433acb35c1a554ba79464b744975de065151 | refs/heads/develop | 2022-12-19T01:44:24.243092 | 2020-02-12T10:35:18 | 2020-02-12T10:35:18 | 56,970,152 | 4 | 1 | MIT | 2022-12-10T17:55:44 | 2016-04-24T12:25:12 | Python | UTF-8 | Python | false | false | 483 | py | urls.py | # pylint: disable=invalid-name
from django.conf.urls import url
from . import views
app_name = 'events'
urlpatterns = [
url(r'^$', views.EventListView.as_view(), name='list'),
url(r'^new/$', views.EventCreate.as_view(), name='create'),
url(r'^(?P<pk>[0-9]+)/$', views.EventDetail.as_view(), name='detail'),... |
c76065b06212be769ad10848791fdc1a50e33c67 | 6de3e17e8e64370c4a18c30999c647acb8527f41 | /app.py | 219fddf771725a52d017dcb46f69231b3c75b071 | [] | no_license | Rclay15/PlayerWatch | 16fbb6c27114edb09fca2bda84ed2cfcaf6c2fe2 | f80a53cd320a1b587be0c511005e2fbc1861ce26 | refs/heads/master | 2022-01-07T04:02:54.178643 | 2019-04-02T09:45:22 | 2019-04-02T09:45:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | app.py | #!/usr/bin/env python3
from flask import Flask, render_template
from data import Teams
app = Flask(__name__)
articles = Teams()
@app.route('/')
def index():
return render_template('home.html')
@app.route('/about')
def about():
return render_template('about.html')
@app.route('/teams')
def teams():
ret... |
e31325e843dbb21b38890355fb750c839a36f625 | c82ca51fc8d80af5bbab1a2e79865e9c0ecb6219 | /notes/views.py | 1b9a2ebe06273c15989eb90e088b168df6b431cc | [
"Apache-2.0"
] | permissive | emmakschu/greensManagerDjango | 00c299cd764ab66f6b72e23d57fbd3fc4780279a | 842f6cc0e5bc9fa5f36e5d996960900886d3370a | refs/heads/master | 2023-02-27T15:16:02.773919 | 2018-10-27T12:03:20 | 2018-10-27T12:03:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | views.py | from django.shortcuts import render, redirect
from .models import DailyNote, WeeklyNote
from .forms import DailyNoteEdit, WeeklyNoteEdit
def daily_update(request, pk):
if request.method == 'POST':
note = DailyNote.objects.get(pk=pk)
form = DailyNoteEdit(instance=note, data=request.POST)
i... |
c57cd86c140000461ce1c1d5b2128aa41e4c9c76 | 9df24e9110f06ea1004588c87a908c68497b22c0 | /2016/try.py | a6cbca89e456dc8671de52ca2580c22fdd358d37 | [] | no_license | zhangz5434/code | b98f9df50f9ec687342737a4a2eaa9ef5bbf5579 | def5fdcdc19c01f34ab08c5f27fe9d1b7253ba4f | refs/heads/master | 2020-07-02T17:24:14.355545 | 2019-03-13T12:39:45 | 2019-03-13T12:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | try.py | a = input()
print(a)
print("jfkdajklfdas")
print("fjkfjalksfdsa")
|
11245696a94e42e8bedf62889648eb936049c9d4 | f978bf33372c96c07e84f28a9f8b8d70b6f44fb4 | /heatmap.py | d9359d6ec3f599c4c19c17dd66d8b0a7f9d1b808 | [] | no_license | rrouyrre/stage-technicien-2019 | 2940db5580e284973d68635c703dd022a81c0df5 | 8a47de6aa83864a3f4cf05468aa5cf8437ffeb9d | refs/heads/main | 2023-01-11T15:43:09.045531 | 2020-10-25T09:13:01 | 2020-10-25T09:13:01 | 307,061,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,535 | py | heatmap.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 30 16:06:07 2019
@author: robot
"""
import numpy.random as rs
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from Package.otros import controler_temps
@controler_temps()
def heatmapDayofweekStud(... |
3341962a17a55f7852497a22417c7f6eb4b8fb35 | 9bf9557fa326768b8d33e80234fe3f9fdfcad7ab | /ex6.py | 1fa46ee56cbdac8b6a86d9a7d6136f1980d5a08f | [] | no_license | eslamNova/LPTHW | 61cfe9886018fe093ebc9c33ef5476f7b25392a1 | 9cdf8b62d7269a034f1a46b418b44c254f9431e1 | refs/heads/master | 2020-03-26T11:29:48.894619 | 2018-08-22T22:16:57 | 2018-08-22T22:16:57 | 144,845,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | ex6.py | y = 'YOU'
x = f'i dont like {y}'
print(f'i said {x}')
hilarious = False
joke_evl = "isn't that joke very funny?{}"
print(joke_evl.format(hilarious))
|
2d42e9b623d63acf90a3f712ce29fb19ab0bad6e | 69c7b4382cd1d75418d4b4175e9da394a189b898 | /flvcdapi/__init__.py | d0c7ddccfa535814c53c954c7a51708371d57d6e | [
"MIT"
] | permissive | LXQSMCY/bilibili-video-downloader | 05747d1be1289f9ee14e4e8ef2cce8a28cd6fa5e | 81836432dc9feb8e4eec25d5ff3bcfb228a1d2d5 | refs/heads/master | 2023-04-06T22:43:12.379286 | 2016-05-10T13:49:10 | 2016-05-10T13:49:10 | 621,705,106 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | __init__.py | __author__ = 'natas'
var = 'nothing' |
ccbf36bae15664125405826e89d6ada713493851 | f28ef7c72a56a2a732bee3e42506c96bb69edee8 | /MA_quandl/moving_avg.py | c2f87e5c4f1a4a7e7762f62fd51927e8f2b2fb5e | [] | no_license | webclinic017/backtrader_stocks_api | cb92311a1069199e61acc547ec69941ba861d4e6 | e489724e7a30bb915657244bf12e55ad2f484832 | refs/heads/main | 2023-03-26T05:40:53.584824 | 2021-03-10T07:53:35 | 2021-03-10T07:53:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | moving_avg.py | import pandas as pd
import quandl as q
import matplotlib.pyplot as plt
import numpy as np
q.ApiConfig.api_key = 'Ms91AzsAsj7GyZx25Ns6'
msft_data = q.get("EOD/MSFT", start_date="2010-01-01", end_date="2019-01-01")
adj_price = msft_data['Adj_Close']
mav = adj_price.rolling(window=50).mean()
mav.plot()
plt.show()
#... |
867bbe260aecde5e8f65e7817118199b8b152aae | fe42221bc00bf147ae608fc95a9afbc94bf07702 | /helper_files/get_JH_data.py | 1dc60c5ce9da1d50c3a4eb54155a2fbe5ea4e113 | [
"MIT"
] | permissive | andy-j-block/COVID_Web_Scraper | cd745df89edca0bc33e384daf5760ac114090d93 | 9b7f413f6b53702c0ab50aba6a10af73f83658cf | refs/heads/master | 2023-04-03T04:28:44.255943 | 2021-04-02T22:30:28 | 2021-04-02T22:30:28 | 288,308,244 | 0 | 2 | MIT | 2021-01-10T02:29:00 | 2020-08-17T23:32:54 | Python | UTF-8 | Python | false | false | 311 | py | get_JH_data.py |
from git import Git
def get_JH_data(JH_data_dir):
#####################
#
# This function uses the GitPython module to perform a git pull at the desired
# directory location, which in this case is the JH_data_dir.
#
#####################
g = Git(JH_data_dir)
g.pull() |
3c162756cc609b1a793fd37a5b55a0406961f642 | bc441bb06b8948288f110af63feda4e798f30225 | /cmdb_sdk/api/object_relation/create_pb2.pyi | 5f258eee1cd466fa2b14f514dd8edd1e4296f520 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,530 | pyi | create_pb2.pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from cmdb_sdk.model.cmdb.object_relation_pb2 import (
ObjectRelation as cmdb_sdk___model___cmdb___object_relation_pb2___ObjectRelation,
)
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
... |
c4dbc8f405a350fafbfc7ff0bd298123c96616da | 2a5dca7e52eb305d291518d6b7702a8a068378e9 | /setup.py | f87a13974796a3c51381a5de2df90c24221bbb0c | [
"MIT"
] | permissive | emkor/gmail-img-dl | 4cd45ae9cc63fa5cf14c6a74b447727ba478b392 | 718c79b32adccf2190f1b3f0a265acffe7ac1ed0 | refs/heads/master | 2020-05-23T23:30:36.145646 | 2019-05-24T12:17:49 | 2019-05-24T12:17:49 | 186,995,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | setup.py | from distutils.core import setup
from pkg_resources import parse_requirements
from setuptools import find_packages
with open("requirements.txt") as f:
REQUIREMENTS = [str(req) for req in parse_requirements(f.read())]
with open("requirements-dev.txt") as f:
REQUIREMENTS_DEV = [str(req) for req in parse_requir... |
479f77b19f4f8ad9636aefb1fa35d2332f45d12f | 0754db159106d77836a01d8f3d35d5822b3384d0 | /api/tests/test_env.py | be97bf9aa76acbbc9e7f7010f9494eaeadcb70c8 | [] | no_license | rgoliveira/petreon | 68bac586675005b2fc55dd19b56365957b63d623 | c9d3d48ad45f1a0a893ecc25899837b3f6203336 | refs/heads/master | 2021-01-12T00:11:21.497991 | 2017-02-16T03:08:28 | 2017-02-16T03:08:28 | 78,681,499 | 4 | 2 | null | 2017-02-12T04:54:03 | 2017-01-11T21:29:01 | JavaScript | UTF-8 | Python | false | false | 1,078 | py | test_env.py | '''
This file is intended to showcase a basic test setup with py.test.
The setup for Flask testing is not complete and may require some more research.
Everything here is subject to change, including the single-file structure
(most likely).
'''
# TODO: Create conftest.py to make the fixtures for setting up the tests.
... |
e3b944caf8ef1e67cfddc501cdfc3304b8fad93e | 3a0e640d83d1dee7ed743fb8bf3ed57e03d55ba8 | /unrealtoolkit/commands/ue4version.py | d7b22ef6fde0bc90f94fe4ff042c2e7059100ca9 | [] | no_license | crimsonstrife/unrealtoolkit | 1a300fb7c601895b496a3ef24ca00b86e87b6084 | 90dbb11e78314e854ffda55ad18ecfa8bb372436 | refs/heads/master | 2021-03-22T11:48:58.799981 | 2018-05-27T10:28:51 | 2018-05-27T10:28:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | ue4version.py | import os
import glob
import unrealtoolkit.ubt
from unrealtoolkit.commands.base import BaseCommand
class Command(BaseCommand):
def get_description(self):
return "Prints the Unreal Engine 4 version the project uses"
def run(self, args):
uproject = unrealtoolkit.ubt.get_uproject()
if uproject == None:
prin... |
458cd39d57b739e800b4f5e6952e6963388afcdf | 21550f357316b57f0ac510ca9d6452913752e5d4 | /OpenCV/20200215/20200215_3.py | 07fdf3aa6911772c767031764828159a60e5a8ea | [] | no_license | YangBinFan/practice | 8b23ae34c0aaaf4a026cf2e3155362927eff7f39 | eaf44878853583fe73ecfe1622b95d77bc7ab69b | refs/heads/master | 2021-01-03T19:20:10.720380 | 2020-02-17T01:07:53 | 2020-02-17T01:07:53 | 240,205,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | 20200215_3.py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 15 10:01:07 2020
@author: (Dell) Yang-Bin Fan
"""
import cv2 as cv
img = cv.imread(r"C:\Users\bck10\Desktop\OpenCV\material\Lena512.jpg")
b,g,r = cv.split(img)
#b = cv.split(img)[0]
#g = cv.split(img)[1]
#r = cv.split(img)[2]
cv.imshow('B',b)
cv.imshow... |
f0c3bd1ea306fdbff062ed01a017838f491ec044 | eb4a84d59b89fecc322852097d225ea37c2513b9 | /playground/framebyframe.py | 5a9db6e97a5ed7462fd076e52e4a7d20765a5179 | [
"MIT"
] | permissive | njzhangyifei/keyframe | 820b42d2ff881d766230f7e51f5e328a255af68d | 91d110e7de43cb6d54c79d60bef302b56e337a6c | refs/heads/master | 2021-06-18T15:31:59.224420 | 2017-06-02T08:10:16 | 2017-06-02T08:10:16 | 87,046,609 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,453 | py | framebyframe.py | #!/usr/bin/python3.5
import sys
from PyQt5 import QtCore
import cv2
import numpy as np
from PyQt5.QtCore import QTimer, QPoint
from PyQt5.QtGui import QImage, QPainter
from PyQt5.QtWidgets import QFileDialog, QApplication, QWidget
def selectFile():
dlg = QFileDialog()
dlg.setFileMode(QFileDialog.AnyFile)
... |
384fbda4f7bb698911e3e041d26bfda378dd9cae | 820c184ba5239b57cd77666d767004bec6f00ce0 | /generate.py | 5ca09885cbc2a4b1c001b160ace762376f408361 | [] | no_license | danielhers/lm | f16666073afe1841d50477f83b436557f3c78a49 | a062c2e37278de125c8b3e48975e9d777eaf29a4 | refs/heads/master | 2016-09-06T04:09:08.814521 | 2015-01-28T14:06:47 | 2015-01-28T14:06:47 | 29,678,273 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | generate.py | import sys
import nltk
import random
from collections import Counter
if len(sys.argv) < 2:
print "Usage: %s counts ..." % sys.argv[0]
sys.exit(0)
counts = {}
for f in sys.argv[1:]:
c = Counter()
print "Reading '%s'..." % f
with open(f) as fh:
for line in fh:
text, count = line.... |
665a3290b6433ac3fee9ae6415132aa555bcdff7 | cb06f6c7d6ca495374bbef4cb2bb868067920cbc | /solution/tests/utils/utils_test.py | 43909f42468e1e3e7452efd5491c70aa204ee619 | [] | no_license | wentjiang/leetcode-py | 7d9d7fe6e59d225a7c0cdf34e42fec612065b2bd | 5b9b214f26d44fe798a1ce382e0f764a6f23a4ee | refs/heads/master | 2022-10-27T06:40:00.469691 | 2022-10-04T03:41:53 | 2022-10-04T03:41:53 | 210,098,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | utils_test.py | import unittest
import utils.utils
class utils_test(unittest.TestCase):
def test(self):
listNode = utils.utils.getListNode([1, 2, 3, 4, 5])
self.assertEqual('1 2 3 4 5 ', utils.utils.printListNode(listNode))
|
d23e29f93e17b9c782818582c793e9035ea489ce | 89097bf3ae24e1f1dd884db4b4aedc1054a44565 | /apps/bot/commands/EasyCommands/SorryMe.py | f26b973364cee82de695be3ab550a0af171fe691 | [
"MIT"
] | permissive | thallkeer/petrovich | 253a0ab2a4d26d2377659579f7511a4da8d6c54b | bfa1fb2610859ef3fb770ebc91081eea548cada0 | refs/heads/master | 2023-02-01T15:46:59.243685 | 2020-12-19T21:50:14 | 2020-12-19T21:50:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | SorryMe.py | from apps.bot.classes.common.CommonCommand import CommonCommand
class SorryMe(CommonCommand):
def __init__(self):
names = ['извиниться']
super().__init__(names)
def start(self):
return f"{self.event.sender} извиняется перед всеми"
|
76731a72308e7ef277c6d11b5dc312a9ca1fd298 | 5f6fb99b49e3430a5e5f09c14e6c10b9577e30ef | /app.py | b1bf72651511a2703377008ecbb505f72237bed1 | [] | no_license | dxcv/pirlo | c2c2e24ba4c9e2b5d3031c0159c5ea9d20d48305 | 72e3ba527bb50348e0121ac177ca89d4f7427567 | refs/heads/master | 2020-05-29T13:48:51.816658 | 2019-03-03T04:38:18 | 2019-03-03T04:38:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,281 | py | app.py | #!/usr/bin/env python
# encoding: utf-8
"""
Usage:
app.py Testor <type> <factor> <factorType> <start> <end> <universe>
app.py TNCalculator <factor> <start> <end> <logged>
app.py Neutralizer <factor> <start> <end> <neutralizer> <Industrized>
app.py Estimator <type> <factor> <factorType> <start> <end> <un... |
47164359f3b26de99e596c0f8ee42ea5a91c648c | 177a8dda1b73a633c39d5a444db08b357eb8af7e | /main.py | fe40c30161d86f54654673f3337f31dc4f902647 | [] | no_license | t8bit/raspeberryConsole | 30db8555893d184b9352a50ba8536db2b7d2266b | b7a470ffc4891f988ab66402cd4234f28d7c26a4 | refs/heads/master | 2016-09-06T19:41:05.507814 | 2012-11-17T12:11:58 | 2012-11-17T12:11:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | main.py | import gtk
import webkit
import os
directory=os.getcwd();
view = webkit.WebView()
sw = gtk.ScrolledWindow()
sw.add(view)
win = gtk.Window(gtk.WINDOW_TOPLEVEL)
win.fullscreen();
win.add(sw)
win.show_all()
view.open(directory+"/index.html");
gtk.main()
|
63a40282f16a7f27c118594f1a9468749682594f | 685b832292aa099d1db609cd3028e4ac0a8f892d | /EQCAT/scrap_gem.py | c0e460b93d784c867cc45357ca7c1841495c4ef5 | [] | no_license | charlesco/EQCAT | c336a8e6556cdf38a2bfaf75639abf4896e8ec25 | ef02b402aee30d913b6462c163a33834edae7ccd | refs/heads/master | 2020-03-18T00:11:47.258803 | 2018-06-11T21:05:34 | 2018-06-11T21:05:34 | 123,033,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | scrap_gem.py | import requests
import os
from jpmesh import parse_mesh_code
from tqdm import tqdm
url_login='https://platform.openquake.org/account/login/'
client = requests.session()
client.get(url_login)
# Identification for openquake platform
login_data = {'username':'###','password':'###'}
r1=client.post(url_login,data=login_dat... |
e695b9458c0e98521e560dbb291f6f05bda1549f | f0f2696c9a5a9c4e744a59dec2b2420230238eba | /savers/sqlsaver.py | d2ac78b7e7f572138b4d7b89975c78564541cb41 | [] | no_license | jax79sg/artyins-saveservice | ce80c8ff02690666b40e82b1765e7872c36fde25 | c41bd889f994285f3363414ebc27f7cc56ae4d82 | refs/heads/master | 2022-12-15T17:00:18.881292 | 2020-06-30T15:28:54 | 2020-06-30T15:28:54 | 232,700,297 | 0 | 0 | null | 2022-12-08T03:24:48 | 2020-01-09T02:02:22 | Python | UTF-8 | Python | false | false | 7,797 | py | sqlsaver.py | from savers.saver import SaverInterface
import os
from config import SaverConfig
import mysql.connector
import json
import logging
class SQLSaver(SaverInterface):
# This class takes in json files and will interpret the jsons as follows.
# {'tablename':[{'columnname01':'somevalue','columnname02':'somevalue'},{'columnana... |
c55991e738c89ee09dabd79d514e710e0fcbac85 | cd4fa7a33d5ecc2f1e98e42eb6641e8b7e4e2df5 | /sunspots.py | 8a719077299d66b49d929148b0fa5333a21515a2 | [] | no_license | gravitylow/sunspot-counter | d1c8906bad51f2adbde66c78630c88acb111d90e | 1229bcf3b4ab37c7fa473b6fc554da3b851e0a79 | refs/heads/master | 2020-03-06T19:31:29.229132 | 2018-03-27T18:38:12 | 2018-03-27T18:38:12 | 127,030,404 | 19 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,469 | py | sunspots.py | from splinter import Browser
from time import sleep
from datetime import datetime, timedelta
import os, sys
import urllib
import cv2
import numpy as np
from PIL import Image
import imutils
import csv
class Scraper():
start_date = datetime(2018, 1, 8)
url = 'http://spaceweather.com/'
def scrape(self):
... |
b767519229058b50183d78bb97121f050e5b6bad | ac072c7357c40666e5b7ac7582d037998fed3264 | /Week 3/Q.3.py | 7b20e1833f54de2b71937652c3caf5a0cf19938c | [
"Apache-2.0"
] | permissive | MainakRepositor/Advanced-Programming-Practice | ffcebaa63312e1cfa06227f3c72ebe103eb1a41c | 5885e1f67c4b2cf48c73e0a1aff156daa0355df9 | refs/heads/master | 2023-03-05T10:13:43.472240 | 2021-02-14T17:07:52 | 2021-02-14T17:07:52 | 331,250,101 | 22 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | Q.3.py | # defining private variables
class Privacy:
def __init__(self, val):
self.__val = 900;
print("Private data member =",self.__val,"\n")
value = Privacy(800);
print("Value not changable\n")
value.__val;
|
b679444fde7cd8eb819443922f37ee54c0f29de4 | b96f7c01df9417aaf4408e794b1edcc501921c6f | /pirates/teleport/DoorTeleportActor.py | 0e498f34fa652be9730bf76ff9576cabc2ffa5a5 | [] | no_license | Puggyblue999/PiratesOfTheCarribeanOnline | 492b5feec3dace921026ab1ec64603c208869a62 | 5c7eff12c3821d337404be0face368a5a899fff1 | refs/heads/master | 2021-01-22T15:10:54.858772 | 2015-06-25T20:30:11 | 2015-06-25T20:30:11 | 38,146,060 | 4 | 4 | null | 2015-07-01T18:58:11 | 2015-06-27T04:01:44 | Python | UTF-8 | Python | false | false | 119 | py | DoorTeleportActor.py | from pirates.teleport.AreaTeleportActor import AreaTeleportActor
class DoorTeleportActor(AreaTeleportActor):
pass
|
f714c7006f50379cc7508a13d710d902d38d2d1f | f891a81741863ae9ad4679e0d4f476db02f051c4 | /linearconv_lowrank.py | 4112f67e272d3c07d2a44a4ed77cd3138a84a22d | [
"MIT"
] | permissive | scott-mao/LinearConv | a305de3929e253ad7b2cc09c9488dced7063b804 | 2cd9945c769c16206fd380c6b23b76d44102805f | refs/heads/master | 2023-02-09T16:21:26.170337 | 2021-01-06T14:04:46 | 2021-01-06T14:04:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,093 | py | linearconv_lowrank.py | import torch
import torch.nn as nn
import torch.nn.functional as F
# Const. low-rank version
class xCNNlow(torch.nn.Module):
def __init__(self, channels, filters, kernel_size, padding=0, stride=1, groups=1, rank=1, bias=True):
super(xCNNlow, self).__init__()
self.filters = filters
self.time... |
726f133bcf592315c42f8701be8308422ffbf0d9 | 2a04d275719b459e19b8abae5fd7344fab7eada6 | /main.py | afee04a529d6150607f12fa584c98d260056e87f | [] | no_license | morrisjr1989/iss_ask | 076597b226781508932613d09e62d541e923705d | caff7b95cae9b2ca44acf3c57b052eee1a33ec5e | refs/heads/master | 2020-03-28T13:18:06.861635 | 2018-09-16T02:03:28 | 2018-09-16T02:03:28 | 148,381,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,471 | py | main.py |
from flask import Flask, render_template
from flask_ask import Ask, statement, question, session
import reverse_geocoder as rg
from geopy import distance
from geopy.geocoders import Nominatim
import requests
import time
'''
:::::::: ::::::::: ::: :::::::: :::::::::: ::: ::: ::: ::: ... |
cae49da8dd436fc51b472c4a88703d8bc6c79bda | 03e64656d297f4fff8fbf98a24e28bf82af227c6 | /tools/SCons/docbook.py | 00255debb8c579d106f7d33550b07aeff6c45c38 | [
"BSD-3-Clause"
] | permissive | remko/docbook-kit | 20aa6183ce60dd05a1d70ced8538c87f123fe976 | 01a5600272f878508f9b4a0354e11a45405b8a2e | refs/heads/master | 2020-05-18T02:51:33.530603 | 2014-11-14T13:34:12 | 2014-11-14T13:34:12 | 173,327 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | docbook.py | import SCons.Util
import xml.dom.minidom, re, os.path
################################################################################
# DocBook pseudobuilder
# TODO: Only generate the output formats that are known
################################################################################
def generate(env) :
... |
c139cbc3e693d75ad196e10257ff3028aa835709 | c7301c90e3e8f7e0b7a8063d9221773ea06383e6 | /HackerRank/TheHurdleRace.py | ebd6278cb0d5c2cf16046cf213af298abc6b5528 | [] | no_license | GunalanD95/Technical-Interview-Guide | 11235cccfd3e6906fba74af561eccefc4c9f864e | 7ac97286820f298876f1fcb408bc6d7dc90c076c | refs/heads/master | 2023-03-15T17:43:39.373820 | 2018-09-15T11:07:50 | 2018-09-15T11:07:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | TheHurdleRace.py | # Complete the hurdleRace function below.
def hurdleRace(k, height):
if k < max(height):
return max(height) - k
return 0
print(hurdleRace(2, [2,5,4,5,2]))
|
77971b088a7e076e3bf6d7aa320981a50e7756ce | 0a59c2b42f752bce2966f520bf22a2685865a2c7 | /project/alexa-skill.py | 7a2d3fab14be82d926ae0e3022471f0c9f417234 | [] | no_license | AlaynaGrace/alexa-skill-practice | 344d39682d3ad40fe53d662bec4f5b89f13cb52b | a16d92d9fab0c2cd57f96572dde44b3bff86dd39 | refs/heads/master | 2021-08-16T16:39:01.348841 | 2017-11-20T04:39:59 | 2017-11-20T04:39:59 | 110,741,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,918 | py | alexa-skill.py | from flask import Flask
from flask_ask import Ask, statement, question, session
# import json, requests
import random
app = Flask(__name__)
ask = Ask(app, "/")
def get_cat_fact():
myFacts = [
"Cats should not be fed tuna exclusively, as it lacks taurine, an essential nutrient required for good feline hea... |
927a195cd8af6dbe170fc54229865049d2db1293 | e0ce06e01f57b2fdf9d251ff0819e409e288fa8e | /tests/data_test.py | 4b675847ad5b29524727734f9d7568bde5fa3d82 | [
"Apache-2.0"
] | permissive | nidhalrahali/reverse-engineering-neural-networks | e46118fca67b81a456f6d6ab93a40ef7dd96021f | b0380a02c2c2abcf093e57d45d525077db9f61d3 | refs/heads/master | 2023-02-10T03:08:55.255120 | 2020-12-28T18:48:21 | 2020-12-28T18:48:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | data_test.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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
2f8ce1b89df6be3b97e840ebf9a619ba05054849 | 814acaf5ad704955bfa91501548b2db8f560bf66 | /app/model/order.py | ab78946bea7e442268326256a9c2379330d3d519 | [] | no_license | jessiimay/bookstore | 5154884b9047427e97002a88f379fca096b11e18 | b8750986573f6d15f138294a5acd7af883440c8a | refs/heads/master | 2022-08-21T22:42:15.848351 | 2020-05-18T15:43:39 | 2020-05-18T15:43:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,040 | py | order.py | # order 相关的功能
import app.model.Global as Global
import json
from app.model.create_db import Users,Orders,UserToken,OrderBooks,StoreBooks,create_session
from app.model.user import UserMethod
import app.model.error as error
import logging
from datetime import datetime
from sqlalchemy import and_,update,create_engine
fro... |
caa563d08113ed449b5ff197bc703267e042db90 | 39effbda13fc0020cb58880dc1013e4555781f04 | /Ejercicios/Funciones/Area_circulo.py | 960f94807e21996437ad5b1063221748114eb03e | [] | no_license | Tusitala73/Python | c877b84fc0515d270e42b660d8390a5e8822cae6 | f6bac8da40f256fe99dfdbb9757feee2a56f7069 | refs/heads/master | 2023-07-01T19:52:05.070228 | 2021-08-08T12:05:41 | 2021-08-08T12:05:41 | 376,709,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | Area_circulo.py | #Realiza una función llamada area_circulo() que devuelva el área
# de un círculo a partir de un radio. Calcula el área de un círculo
# de 5 de radio: *
#Nota: El área de un círculo se obtiene al elevar el radio
# a dos y multiplicando el resultado por el número pi.
# Puedes utilizar el valor 3.14159 como pi o impo... |
b9c75b4ba9193df42e8b16c66d5d74c0af36f267 | 0da7c9321f10185833d4edb305f87610d3ea1d09 | /LEC/lec16/lec16.py | 2440c20e52ead5c783a5f04d4b1e58ae1bac8750 | [] | no_license | Grande-zhu/CSCI1100 | 8bbb03b7c403c5a4ec3ffe73fb6ef78d47e61770 | 11b4e09615e037ec96cfa5442e1fc018ffd676a4 | refs/heads/master | 2021-07-01T04:23:25.566347 | 2020-09-08T05:41:29 | 2020-09-08T05:41:29 | 156,156,335 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | lec16.py | countries = dict()
countries['Algeria'] = 37.1
countries['Canada'] = 3.49
countries['Uganda'] = 32.9
countries['Morocco'] = 32.7
countries['Sudan'] = 30.9
countries['Canada'] = 34.9
print(len(countries))
print(sorted(countries.keys()))
print(sorted(countries.values()))
#5
#['Algeria', 'Canada', 'Morocco', ... |
6336a11fa08c4bba742abf394715182422d57250 | c0a11eede6ee858aa7e32738be1553884c2bb824 | /allocation/main/time_test.py | bc2e0026bae9d446a3f21041300d1229a539ce8c | [
"MIT"
] | permissive | gabrielpereiram10/allocation | 25612c513b11d115ebc6daf9afebcf6e2a0ea8e2 | 24bc33ca4b3377ebb02f9c4d2f6a878aa46bac14 | refs/heads/main | 2023-03-31T01:38:43.377764 | 2021-03-29T21:53:13 | 2021-03-29T21:53:13 | 349,183,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,160 | py | time_test.py | import pandas as pd
from statistics import fmean
from typing import List
from allocation.protocols.types import Disciplines
from allocation.utils.literal_converter import LiteralConverter
from allocation.utils.cnf.clausal_form_converter import ClausalFormConverter
from allocation.main.allocator import Allocator
from ... |
75136eb98cb832eefe674ffd62445127df8aee0e | 5a6422cba1b7db1e2b70cd7be0adc126178c002e | /sentiment-network/engine.py | 13ceb2f4000e7d68975f39e7678f9dab8dc6bd95 | [] | no_license | boscoybarra/Deep-Learning | 38c05596b53efc48da94c09b91a520d13876e469 | 421f709a8fc86d5012d63e6cb576e8ecfa0186ba | refs/heads/master | 2021-05-08T22:46:01.869883 | 2018-05-09T18:34:06 | 2018-05-09T18:34:06 | 119,684,468 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | engine.py | from collections import Counter
import numpy as np
def pretty_print_review_and_label(i):
print(labels[i] + "\t:\t" + reviews[i][:80] + "...")
g = open('reviews.txt','r') # What we know!
reviews = list(map(lambda x:x[:-1],g.readlines()))
g.close()
g = open('labels.txt','r') # What we WANT to know!
labels = list(... |
065dc7bb64ad42fb7b7f6e5133daf05ffe7d542c | fb98c9d028003e5aed431f2f15e70123f6903dac | /main.py | c3490bfea156718613040d048c0d3774ea724683 | [] | no_license | ebeer/article-generator | 75788d4e1c938a183b9993d0b39cc340eb6ec929 | b1e17d59e3b7af1fdaf2e20e21d8642beee88d24 | refs/heads/master | 2020-04-15T22:48:27.632645 | 2012-11-05T23:15:26 | 2012-11-05T23:15:26 | 6,378,594 | 17 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | main.py | """
Process urls from a file
save tokenized data for later use
"""
import json
import urllib2, sys
from tokenizer import Tokenizer
#maps individual styles from the url patterns
#first element is the domain
#second is the class value of the article title h1 tag
#third is the class value of the article body tag
formats... |
9192848981c6c3c6990c46e4061331cefd272d01 | 661e78bb6f92f576706f6fe5d81a814e77ef744f | /tests/magict/magict_mesh.py | 1a205bd86e81bd9090c2e94f6c5e399b545e6eeb | [] | no_license | ArturBraun/UDO_Interpreter | 2d042625e2839e81792b1308492b4212f727003e | c3b3dc46a2b57a29e3141e73299b337c0a97f94e | refs/heads/master | 2021-01-02T11:15:47.745148 | 2020-11-26T20:03:54 | 2020-11-26T20:03:54 | 239,596,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | magict_mesh.py |
import FreeCADGui,QW_Modeller,FreeCAD
#from qw_project import *
from qw_units import *
def set_Mesh(qwm_doc):
MeshBox1 = QW_Modeller.addQWObject("QW_Modeller::MeshBox","MeshBox1")
MeshBox1.Length = 90.0
MeshBox1.Width = 51.43
MeshBox1.Height = 45.08
MeshBox1.Placement = FreeCAD.Placement(FreeCAD.V... |
703aae35e46cce59406f3233d5563158beae5fcd | d46b319c7cfeccc08ea737c3153f62e983e2032d | /20.py | cecb055fbde2b016334dcfdd1796ba8d1dbe51c1 | [] | no_license | KSDN-05/pythonassignment | 3d160913c7f45230c4714eaf3ba0f2a6f7787766 | 1ffb13b8d4ce769edec8ef0bfd5b01a72338e739 | refs/heads/master | 2022-11-11T04:38:41.077826 | 2020-06-28T17:01:09 | 2020-06-28T17:01:09 | 275,628,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | 20.py | def first_and_last(lists):
count = 0
for i in lists:
if len(i)>=2 and i[0]==i[-1]:
count = count + 1
print(count)
lists = list(input("Enter the elements of list:: ").split())
first_and_last(lists)
|
8395ac12a68b82fbeea36e783acb20d5e95b21d2 | 6374678544b8e59a78f8d9eff2a8add0e0d33e0e | /Project_1/test_frame.py | 863a9de11b2ec7824ca2e0362bed39749c0dbb69 | [] | no_license | noahho1/Year_10_Design | bd6526d364663437efcbd5c5c035c24c5919e205 | b0a19886eff1e32ece19a2d40992fa95807ecc94 | refs/heads/master | 2023-01-31T05:28:12.467613 | 2020-12-12T04:06:18 | 2020-12-12T04:06:18 | 294,409,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | test_frame.py | import tkinter as tk
root = tk.Tk()
f1 = tk.Frame(root, highlightbackground = "black", highlightthickness=1)
f2 = tk.Frame(root, highlightbackground = "black", highlightthickness=1)
f3 = tk.Frame(root, highlightbackground = "black", highlightthickness=1)
f4 = tk.Frame(root)
#Frame 1 Setup
cur_label = tk.Label(f1, te... |
b0399fd9aa863472164ff9a7d270a21e0114a014 | eb4d3f5973c8c9288b3f36f1d9707f9026f7b524 | /experiments/src/5/gen_tpu_figures.py | 3c9d3c4652bac92bf61133fbbffca6c53153e0d5 | [] | no_license | Kasekopf/PhD-Thesis | d215559fa4356005fa60a0103c815607c2659731 | f1e9a235d9a8d6977d83be8af7dd05345cf12080 | refs/heads/main | 2023-07-08T16:18:44.624139 | 2021-08-12T20:03:38 | 2021-08-12T20:03:38 | 337,032,400 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,256 | py | gen_tpu_figures.py | import collections
import util
import slurmqueen
SLICE_CUTOFF = 80
class SliceData:
def __init__(self, data_dir, num_cores):
self.__instance = slurmqueen.Experiment("", []).instance(data_dir)
self.__num_cores = num_cores
def slice_round_times(self):
"""
Return: A dict mappi... |
f7c12a9785c47a6da416ff5ca37f3eac4ec2ef17 | f5e2a8229f28d10c7e310fa655c842419e975735 | /src/TextInterface.py | afd53c5bc85ec04cb14e51b57bb557fdb5c96a78 | [
"MIT"
] | permissive | Kennetrl/TFG-FacialRecognition | 25fe9ad51cc51b2afd2abc1a8e28634c0d2c6293 | 5d5b762860bae656834b5ef31273b8e35def0735 | refs/heads/master | 2023-03-15T22:19:49.436683 | 2018-06-30T21:52:51 | 2018-06-30T21:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,501 | py | TextInterface.py |
# encoding: utf-8
'''
@author: victorcas
'''
from enum import Enum
'''
Title and author of the program. Just to be displayed at the beginning of the program.
'''
title = "TFG - Facial Recognition"
author = "Victor de Castro Hurtado"
'''
Made two differente enumerations, one for errors and other for general message... |
3501cac3ebcb5417792ae3709f3e666384c748ad | 58d3060ece6c0a5f5ec8a46e3953ac728218d1fc | /p120a.py | e2b09a8697f3941951aa544c0e18e3856493f6eb | [] | no_license | sumajirou/ProjectEuler | f6ed27fb50c2a4b2b3212bcd3f778b73ff9e4757 | 47db0652da8ddcfe4d7ea1210bb0eb04fb0f4bbd | refs/heads/master | 2021-06-27T07:56:50.824315 | 2021-02-08T18:20:48 | 2021-02-08T18:20:48 | 214,501,111 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | p120a.py | # 二項定理で計算する。
# nが偶数のとき2 nが奇数のとき2an
# nが奇数でさらにaが偶数のときrはa*(a-2) aが奇数のときrはa*(a-1)
def f(a):
if a % 2 == 0:
return a*(a-2)
return a*(a-1)
print(sum([f(x) for x in range(3,1001)]))
|
50314e62cb6907521a18a5c95717d32c7594603d | d366bfe30d8b5e26650807ec3cc5496eff0b16f4 | /GPy/kern/src/spline.py | 2d8223993918814548eddd6e4c7318b575e8e978 | [
"BSD-3-Clause"
] | permissive | lawrennd/GPy | 03ae8fdca5f5d4186f137519286478d55ba13e59 | 24bf727f9eb995136bcba0c878306bfa8fe4c13d | refs/heads/devel | 2023-05-04T20:12:02.905874 | 2021-05-30T07:19:22 | 2021-05-30T07:19:22 | 115,887,040 | 5 | 0 | BSD-3-Clause | 2020-10-27T05:48:47 | 2017-12-31T21:52:15 | Python | UTF-8 | Python | false | false | 2,089 | py | spline.py | # Copyright (c) 2015, Thomas Hornung
# Licensed under the BSD 3-clause license (see LICENSE.txt)
import numpy as np
from .kern import Kern
from ...core.parameterization import Param
from paramz.transformations import Logexp
class Spline(Kern):
"""
Linear spline kernel. You need to specify 2 parameters: the va... |
bd612e88d8374affa4d92f542743f945b0ad3c8e | 0e446dd3508a8f0e3776010781ce7139b2ed2091 | /tytDenemeDialog.py | 05833b0f57d311becf4a0c7e260b9b6b485d5126 | [] | no_license | endereys/enderdeneme | dfdf8f8181ddc69745297d85f551846f588873f8 | f0db03d6c1cd65bdfa1ff6e00a3211310a67d613 | refs/heads/master | 2023-01-24T07:30:37.324132 | 2020-12-07T19:38:08 | 2020-12-07T19:38:08 | 277,255,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,431 | py | tytDenemeDialog.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'tytDenemeDialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCo... |
1efbf9f439d1d5133ae144a627c655ddb7b9b1a6 | 12eeba4cd713687988f61284d7a48ec2cd82f9be | /Tasks/Lesson-04/task_02/test_task_P1_05_04.py | 53cae8b70469e5f4804e3e739550e5b4cbbc73f1 | [] | no_license | byIlusion/08-Python-2 | 8ff20958cd935ee472674850ab44527ae65a9c8a | 1d1c0edb83c99c4ddcfc22065cc3f5c701e86954 | refs/heads/main | 2023-06-04T09:30:53.750917 | 2021-06-28T12:11:26 | 2021-06-28T12:11:26 | 370,689,661 | 0 | 0 | null | 2021-06-28T12:11:27 | 2021-05-25T12:45:13 | Python | UTF-8 | Python | false | false | 460 | py | test_task_P1_05_04.py | """
Написать тесты для домашних работ из курса «Python 1»
"""
import pytest
from task_P1_05_04 import roman
@pytest.mark.parametrize('num, result', [
(5, 'V'),
(10, 'X'),
(112, 'CXII'),
(1234, 'MCCXXXIV'),
(34567, 'ẌẌẌMṼDLXVII'),
(456789, 'ĈĎĹṼMDCCLXXXIX'),
])
def test_roman_list(num, result)... |
cd5afc7a7c9189341ce2edd220c7f53fa4cb32fe | ec0ab836fe3e113ba3bac332235d1def3e33344e | /GUI_Viz.py | 2f96ffaca3421a96b0bffb4c72fe3e4736054d4f | [] | no_license | Colin-A-Bradshaw/Visualizing-Bread | 48a5fd2e8f66671bec5de4513f0dd61836d5fc6f | 489164635caf2cb4d4230dafc42f600c201f4b07 | refs/heads/main | 2023-06-27T03:45:38.722116 | 2021-07-28T15:56:49 | 2021-07-28T15:56:49 | 390,382,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,332 | py | GUI_Viz.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# GUI module generated by PAGE version 6.1
# in conjunction with Tcl version 8.6
# Apr 25, 2021 05:39:07 PM EDT platform: Windows NT
from PIL import Image, ImageTk
import numpy as np
import pandas as pd
import io
import plotly.io as pio
#pio.renderers.... |
94441dfd60d4b53f6412caa658f0afc1f6417de4 | 4d5ca3b3acb1147cdcaadab022e55a4f751687a6 | /brain_games/__init__.py | b7f575f592411827034b5628a6448ac434066b6f | [] | no_license | gabady13/python-project-lvl1 | d3c73813018a595f56e6481e2b0081c1b7214742 | 976ef413bb0f872e59b5f76843a8ecd57b631d4e | refs/heads/main | 2023-02-24T08:48:04.051681 | 2021-01-29T17:24:39 | 2021-01-29T17:24:39 | 317,817,160 | 1 | 0 | null | 2020-12-04T05:59:26 | 2020-12-02T09:50:09 | Makefile | UTF-8 | Python | false | false | 55 | py | __init__.py | """Package all file. https://skr.sh/s6IOY2YcMsO?a ."""
|
4985f462b584a67b1d2e57fa0b548dff1765fb97 | bd53b6a32e462c75536a5c2d09986a310c58baa8 | /src/compas_ags/web/__init__.py | dea3ba4c2ae204ea27f0473b1ace8abddd52ba11 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ricardoavelino/compas_ags | 4d9dbda7ed97564b949e40d01a47699d1c9528c4 | 1c9e496bc4b72b11adc80ea97288ddc27e92c08e | refs/heads/master | 2021-11-04T12:53:38.664870 | 2021-02-11T19:47:32 | 2021-02-11T19:47:32 | 126,155,433 | 1 | 0 | MIT | 2018-03-21T09:36:11 | 2018-03-21T09:36:11 | null | UTF-8 | Python | false | false | 218 | py | __init__.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .browser import Browser # noqa: F401
__all__ = [name for name in dir() if not name.startswith('_')]
|
6391cf90be6d798f1ff4dfa45696b46207b76d4b | 59839ab31daf0a47667591d9ad6505e6e154ee3c | /programmes/tests.py | 18a8d33ccbd5ae6726c1a45d88731f72096fac1f | [] | no_license | Lucyjpjones/lj-fscr | b5fe7aae4262ec6592829bd3e84531c0bd02c362 | 9d1e983aaacaa316ce42c981d4e3e195259c4059 | refs/heads/master | 2023-02-26T15:58:29.259885 | 2021-02-03T14:56:21 | 2021-02-03T14:56:21 | 316,435,836 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,445 | py | tests.py | from django.test import TestCase
from programmes.forms import ProgrammeForm
from programmes.models import Programme
from django.urls import reverse
from django.contrib.auth.models import User
from django.test.client import Client
# form tests
class TestProgrammeForm(TestCase):
def test_fields_are_explicit_in_for... |
266a917a601306fa1f40a70406a0ff2145befc6d | f257121957cac93ad78cd32ef6d13ca7a1ea8165 | /by_/tf_idf.py | 9c56b43b9d3d3cbcf7314ea9b98316f904d0fb12 | [] | no_license | kenanz0630/UrbanComp | 909b390cf9e0fb878aeb4a5d90ef536409415f15 | 7664d82b7a17a629832754e2d626a33737df5469 | refs/heads/master | 2021-01-17T07:16:32.375788 | 2016-07-05T21:48:30 | 2016-07-05T21:48:30 | 60,018,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,016 | py | tf_idf.py | #import tweet_emoji
import copy
import numpy as np
import preprocessing as pre
from collections import Counter
'''--- MAIN FUNCTION ---'''
def tf(counter,data,type):
n=len(data)
if type=='term':
for i in xrange(n):
counter.update(data[i])
if type=='emoji':
ref=tweet_emoji.init_emoji()
for i in xrange(n):
... |
2342f5e3db4c56fd2f3433bd1c3df6636509a1ba | 175d6cff12514da71aafef6b9ff48dd56a87db2d | /alveus/settings.py | 541175a601889f3d756d098ff225cb3ef7562dd7 | [
"MIT"
] | permissive | FrederikLehn/alveus | d309eea98bd36f06709c55a18f0855f38b5420a9 | 71a858d0cdd8a4bbd06a28eb35fa7a8a7bd4814b | refs/heads/main | 2023-06-26T02:29:59.236579 | 2021-07-30T11:07:17 | 2021-07-30T11:07:17 | 391,029,935 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,828 | py | settings.py | from _ids import ID_UNIT_FIELD
ID_LINE_SIZE_1 = 0
ID_LINE_SIZE_2 = 1
ID_LINE_SIZE_3 = 2
ID_LINE_SIZE_4 = 3
ID_LINE_SIZE_5 = 4
ID_LINE_SIZE_6 = 5
ID_LINE_SIZE_7 = 6
ID_LINE_SIZE_8 = 7
ID_LINE_SIZE_9 = 8
ID_LINE_SIZE_10 = 9
ID_TEXT_SIZE_6 = 0
ID_TEXT_SIZE_8 = 1
ID_TEXT_SIZE_10 = 2
ID_TEXT_SIZE_12 = 3
I... |
7ff42fb77b45c7aef4daaf085980d87ae4a1ae56 | e96deed00dd14a1f6d1ed7825991f12ea8c6a384 | /361. Bomb Enemy.py | 9400e53344d375ec558f6125e0a7a972dd5d38a5 | [] | no_license | borisachen/leetcode | 70b5c320abea8ddfa299b2e81f886cfeb39345c1 | 15e36b472a5067d17482dbd0d357336d31b35ff4 | refs/heads/master | 2021-01-19T17:07:46.726320 | 2020-11-16T04:30:52 | 2020-11-16T04:30:52 | 88,306,634 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py | 361. Bomb Enemy.py | 361. Bomb Enemy
Given a 2D grid, each cell is either a wall 'W', an enemy 'E' or empty '0' (the number zero), return the maximum enemies you can kill using one bomb.
The bomb kills all the enemies in the same row and column from the planted point until it hits the wall since the wall is too strong to be destroyed.
Not... |
711936a8d540c24c04c032e8f0f49cef8e85e86f | 8018f269727b5d698afe0b9dc5eb1680b2eaf1e4 | /IEEE/IEEEXTREME19/IMPACTFACTOR.py | 58d875ff31224506542491b13bb014520f167572 | [
"MIT"
] | permissive | Mindjolt2406/Competitive-Programming | 1c68a911669f4abb7ca124f84b2b75355795651a | 54e8efafe426585ef0937637da18b7aaf0fef5e5 | refs/heads/master | 2022-03-20T14:43:37.791926 | 2022-01-29T11:34:45 | 2022-01-29T11:34:45 | 157,658,857 | 2 | 0 | null | 2019-02-10T08:48:25 | 2018-11-15T05:50:05 | C++ | UTF-8 | Python | false | false | 933 | py | IMPACTFACTOR.py | import json
import math
t = int(raw_input())
s = raw_input()
d = json.loads(s)
article = {}
cite = {}
name = {}
good = {}
#Processing of the publications
for e in d["publications"]:
num = int(e["publicationNumber"])
good[num] = 1
name[num] = e["publicationTitle"]
article[name[num]] = 0
cite[name[num]] = 0
... |
0f2fb6ed8eb5101f2d90e0351a78be32affa38f8 | 434859bc2b503ab641238c1d2982cc068e5a8825 | /_5th_2/edit_02.py | b0b95e95e439509d2b46f0e4bb5bcf234fc1b934 | [] | no_license | xiaotuanyu120/py_homework | 66c80054353ddf825bc102c87c285c69bd381a44 | c99e00a68ab49bbeb63de85284087e7c0cbec0fa | refs/heads/master | 2021-01-10T21:11:17.986504 | 2015-12-23T11:40:18 | 2015-12-23T11:40:18 | 41,254,552 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,746 | py | edit_02.py | #!/usr/bin/python
# coding=utf-8
'''aim to analysis nginx access log, print the result'''
def split_to_list(filein,separator=' ',index=0):
'''split file by separator and collect data which the index directed into a list'''
list_scan = []
with open(filein) as f:
for line in f:
element... |
fb464efc6e2cb1f44b9e5d5fdd026b19663ddd4c | 471ceab86303fea56a36e3737c93b010fd3c54b2 | /practical-penguins/trivia_tavern/trivia_runner/models.py | ffe7b4b98e5d47979fdd24fcfb70e01315da72b7 | [
"MIT",
"Python-2.0"
] | permissive | whywhyy/summer-code-jam-2020 | 056b6907ef9918a660c68364d823b5468919ae1a | 9d46c6a9e6ccfae1b9ab5db1b6bf2a6b0abe4c10 | refs/heads/master | 2022-12-02T17:24:49.819994 | 2020-08-14T08:56:59 | 2020-08-14T08:56:59 | 284,628,157 | 2 | 0 | MIT | 2020-08-12T14:02:25 | 2020-08-03T07:04:16 | JavaScript | UTF-8 | Python | false | false | 2,503 | py | models.py | import random
import string
from django.contrib.auth.models import User
from django.db import models
from django.utils import timezone
from trivia_builder.models import TriviaQuiz, TriviaQuestion
from phonenumber_field.modelfields import PhoneNumberField
class Player(models.Model):
team_name = models.CharField(... |
c85740acaf83c8ad5606730a252d4d3be6e0eace | f0e574c5ee94675bdc9ba2398f310ddd3fc2c431 | /palantir.py | 8eb0506df90cb9d90b0254a450ae3f093be8b45c | [
"MIT"
] | permissive | CarlosLannister/TFG-ShodanScripts | ea2f690af0ca63be0b90967baf57ea5cc7d23c9d | 9919aad788d43ed77c06934bd5d97e77417dca42 | refs/heads/master | 2020-05-27T04:27:25.730505 | 2015-02-25T10:14:57 | 2015-02-25T10:14:57 | 30,873,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | palantir.py | import shodan
import time
from optparse import OptionParser
class palantirContext(object):
def __init__(self):
self.shodan_key = 'YOUR API KEY !!!!'
self.output = 'results.txt'
self.query = ''
self.message = ''
self.page = 1
def get_cmd_line_args():
context = palantirContext()
opts = OptionParser()... |
2495cfc7a59be4ff4b5ea8bb0959eaf3945ffcc6 | a4467bf2dd3ae5ddce7add5cff57d7960448f24f | /leetcode/718. 最长重复子数组.py | dfc31b999cac0254df8c20802911c25cce8f612f | [] | no_license | ichejun/coding | 49dc66103517c7ece2ed5058e0e9c69669dae5f6 | 1698b3d1b6adf3bb123552314da4c5ee2c60e0f9 | refs/heads/master | 2022-11-16T15:53:08.680088 | 2020-07-15T01:58:01 | 2020-07-15T01:58:01 | 277,767,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | 718. 最长重复子数组.py | '''
给两个整数数组 A 和 B ,返回两个数组中公共的、长度最长的子数组的长度。
示例:
输入:
A: [1,2,3,2,1]
B: [3,2,1,4,7]
输出:3
解释:
长度最长的公共子数组是 [3, 2, 1] 。
提示:
1 <= len(A), len(B) <= 1000
0 <= A[i], B[i] < 100
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出... |
80081c09401221cce8a9e9434657445aba4dac35 | 6f5094ead7e010fc135b978f7e45624b4fa07fd4 | /tic-tac-toe.py | f2fadeb5f911a6dbf125e97244722628960a487f | [] | no_license | rokingshubham1/tic-tac-toe | 0b776b7b36a8859250c30c4b02eb9d01fdb70189 | 9f0a0bf5ef37aaa42574fafdec90e255ddad27ee | refs/heads/master | 2022-12-22T13:15:34.946402 | 2020-10-01T13:50:09 | 2020-10-01T13:50:09 | 289,363,396 | 0 | 1 | null | 2020-10-01T13:50:10 | 2020-08-21T20:57:24 | null | UTF-8 | Python | false | false | 3,673 | py | tic-tac-toe.py | import random, os
board = [['-' for _ in range(3)] for _ in range(3)]
scores = {
'X' : -1,
'O' : 1,
'tie' : 0
}
#shubham jaishwal tic tac toe game
# --------------------------------------------- #
def whoHasWon():
for i in range(3):
if board[i][0] == board[i][1] == board[i][2]:
r... |
0a1f8c2120c164be4a181df0bd7e4719040a422c | 3f3ad5454dfe00cf756e45eff77499af603380af | /Assignment4/fanuc.py | 2fd18b17c6ee0680308c8c98b756015a752b933d | [] | no_license | jenamax/Introdution-to-Robotics | 74845b40a110ad7057709328030533e587c383ae | 0c5f5f31b8e72b8b3ebd81e3393f6ddadc8cd087 | refs/heads/master | 2020-07-26T07:24:10.571018 | 2019-11-17T17:07:17 | 2019-11-17T17:07:17 | 208,577,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,230 | py | fanuc.py | import numpy as np
from numpy import sqrt, pi, transpose
from numpy.linalg import inv, matrix_rank, det
from numpy import arctan2 as atan2
from sympy import Symbol, sin, cos, lambdify, Matrix, simplify
from numpy import random
from funcs import *
def length_err():
return random.normal(0, 2.5)
def ang_err():
r... |
71dc09ec37972a553c1c3ed9cf11a36615bb0962 | e9cc8863a1f35f998a88d9402fc73c6f9269aa3c | /weibo_crawler/setting.py | 50767193c7db5ecc94feabc379bd3c2b38a3bd13 | [] | no_license | zzjjzzgggg/crawler | 82292d9d202ca41ae8904d580b9c6d85d6d93584 | f13f3711955098dc61629fb5b38dee1bb267ac5a | refs/heads/master | 2021-01-02T09:32:20.339606 | 2014-07-25T12:51:57 | 2014-07-25T12:51:57 | 22,256,852 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | setting.py | #coding=utf-8
#**********************************************************
# crawler system definition
#**********************************************************
# LOG related
EMAIL_HOST = "stu.xjtu.edu.cn"
EMAIL_SENDER = "liaochen@stu.xjtu.edu.cn"
EMAIL_RECEIVER = ["liaochen.2@stu.xjtu.edu.cn"]
EMAIL_... |
c0cfba9773030466f18ed05831633b7d0ae90759 | ebdad10ab25e0a5bdf7eb731bcfe1acc1696ebdd | /5_practica_if.py | 28f59c42963a54bc56d023c551f77f81264a5385 | [] | no_license | jppcode-dev/python_pr | e76dff65107d5fbdeb4d1c1af0803cfb44e1f118 | e025d73aa8a542766e0685299bcfb1675055512d | refs/heads/master | 2020-06-28T22:37:23.181934 | 2019-08-07T15:34:21 | 2019-08-07T15:34:21 | 200,360,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | 5_practica_if.py | # #####################
# Condicionales if
# #####################
print("Programa de Evaluación de Notas de Alumnos")
nota_alumno=input("Intorduce la Nota del Alumno: ")
def evaluacion(nota):
valoracion="aprobado"
if nota<5:
valoracion="suspenso"
return valoracion
print(evaluacion(int(nota_alumno)))
|
3fcee53a3b07190f368ad7b9b3ba0e143eec6993 | 4f510470b3093ab2c60f929221af82c79b121ca7 | /python基础/python笔记/day10/code/nonlocal3.py | 01092c0662e843a56e86e8c03ebb68ed02034ce8 | [] | no_license | q737645224/python3 | ce98926c701214f0fc7da964af45ba0baf8edacf | 4bfabe3f4bf5ba4133a16102c51bf079d500e4eb | refs/heads/master | 2020-03-30T07:11:17.202996 | 2018-10-30T06:14:51 | 2018-10-30T06:14:51 | 150,921,088 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | nonlocal3.py | # nonlocal.py
# 4. nonlocal语句的变量列表里的变量名,不能出
# 现在此函数的参数列表中
var = 100
def outter():
var = 200
print("outter内的var=", var)
def inner(var):
nonlocal var # 此处会出错
var = 300
print("inner内的var=", var)
inner(3)
print("outter结束时的var=", var)
outter()
print('全局的var=', var)
... |
62f397ebc2fdd12661b58923b4a2e52bdf783a38 | 691ae630ac7f5fd2a5801fd9ba6a9700724884dd | /PublicWebServicesAPI_AND_servercommandScripts/changePrinterChargingType.py | 470027835a228a1187f50cf8ab11d36df0b9ecf0 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | PaperCutSoftware/PaperCutExamples | aabe383a42daa90f381b65a336d4be6baea4fc10 | 9313ae2adf8aa051ebd2cd92fbeccd9e15387421 | refs/heads/main | 2022-09-06T16:47:57.156701 | 2022-08-19T08:01:12 | 2022-08-19T08:01:12 | 30,632,138 | 66 | 21 | MIT | 2020-11-19T23:07:18 | 2015-02-11T05:26:06 | Python | UTF-8 | Python | false | false | 1,466 | py | changePrinterChargingType.py | #!/usr/bin/env python3
# Find all the users in a specific user group
import xmlrpc.client
from ssl import create_default_context, Purpose
import sys
host="https://localhost:9192/rpc/api/xmlrpc" # If not localhost then the client address will need to be whitelisted in PaperCut
auth="secret" # Value define... |
56747f65bbe0f5a12e5c2bc0d54aeded7c006211 | dd84cd9ea6c73f1e029c300949c2858b5cd03571 | /main.py | 1ae33fea7be4df835e4b0883402e8e6b8f5a090d | [] | no_license | sunithan29/uid_gen_ad | 5c3948b52a0d6163df53325482ff2de8edba84cf | a5cbf1e4cd18937bc204c7623e010d6ea1a5f020 | refs/heads/master | 2021-05-06T00:18:23.190668 | 2018-03-22T06:13:34 | 2018-03-22T06:13:34 | 117,230,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,404 | py | main.py | #! /usr/bin/python3
import sys
import re
from databaseFile import MySqlite
from csvProcessing import *
from trimmer import trimmer, adTrimmer
import os
def get_filepaths(directory, filter=''):
file_paths = [] # List which will store all of the full filepaths.
# Walk the tree.
for root, directories, files... |
12d1e9644274018a00825342aae3405b1e443e6f | 43899e22726402cd1876c42717b6093b3014652e | /Capstone_Fall_Work/SensorResources/SensorCommunication/node(occ)Comm.py | 84d489e03ea4781c1a857ecf0c355614927b8e01 | [] | no_license | KernelDeimos/uoit-final-project | e49137c896c1307fdab441da8fc152a15f7a74d2 | f585040c187b5f4d31ed453f7d31b7f611414eed | refs/heads/master | 2023-03-19T01:11:57.412940 | 2021-03-18T02:11:04 | 2021-03-18T02:11:04 | 348,910,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | node(occ)Comm.py | import RPi.GPIO as GPIO
import time, socket, time
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7, GPIO.IN)
GPIO.setup(24, GPIO.IN)
HOST = "192.168.1.39"
port = 5454
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, port))
device = "PiUno connected."
running = True
def Occupant():
... |
be84166f6cf995139307364e79a0d90d4a12246a | 0dd5fea4661c4a28777e627a4c3f0bb693d36ea5 | /bookings/forms.py | 9d5305893d3dfa08b195d39fa2af9804c4a2788e | [] | no_license | rpvnwnkl/meganticDB | f134bd135b4da3836747b5ba8e40ec017456bdf5 | f10ad10579658130dc9b2799a63207fbf633f82a | refs/heads/master | 2021-01-10T04:29:54.391236 | 2016-04-10T20:14:01 | 2016-04-10T20:14:01 | 54,662,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,983 | py | forms.py | from django import forms
from django.forms import ModelForm
from django.forms import modelformset_factory
from django.shortcuts import render
from django.forms.models import BaseModelFormSet
from bookings.models import ReservationDetail
from bookings.models import Reservation
### Search Form ###
class SearchDatesFor... |
a32ed8040484ee6c3c1d8eb15a3e0a4f8c3afffa | fd4c37d003b77ce23a9c88961eaedf8191c05d2b | /app/admin.py | 3e203c7d1363eedf7a4e8e227d35484b7cef46dd | [] | no_license | etorresj1313/infomigrantes | 06bd1ec28c52870639d9be9c6e471ae0dc219157 | 3bac3e6dca476d48a732bdeb3fc3a00a5d7fe6cc | refs/heads/main | 2023-01-27T15:55:55.821019 | 2020-12-08T23:33:13 | 2020-12-08T23:33:13 | 307,842,299 | 0 | 0 | null | 2020-12-08T23:33:14 | 2020-10-27T22:22:21 | SCSS | UTF-8 | Python | false | false | 359 | py | admin.py | from django.contrib import admin
from .models import Users, Agregar
from .models import City
class AgregarAdmin(admin.ModelAdmin):
list_display = ["rut", "nombres", "apellidos", "edad", "fecha_creacion", "nacionalidad", "direccion", "correo", "telefono"]
admin.site.register(Users)
admin.site.register(Agregar, Agr... |
89bea4d1fcc6380a3d75bc6cf19d6636993e3512 | cfc3fa658f826d02308453e557d82758895399c2 | /datasets/cbt/cbt.py | 0cbd022eba2017f028fe90749ecbe23b260582ed | [
"Apache-2.0",
"GFDL-1.3-only"
] | permissive | meehawk/datasets | cac530ec0e17514c01cdff30302521d6303ed93b | b70141e3c5149430951773aaa0155555c5fb3e76 | refs/heads/master | 2023-03-29T12:51:54.700891 | 2021-04-08T17:22:53 | 2021-04-08T17:22:53 | 355,996,122 | 9 | 0 | Apache-2.0 | 2021-04-08T17:31:03 | 2021-04-08T17:31:02 | null | UTF-8 | Python | false | false | 8,862 | py | cbt.py | # coding=utf-8
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# 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/lice... |
ad284e67c9caf2c5255e381948a621d76df2b665 | b1328a50214150a85b4d7a6b149fbe8554a7dcf3 | /ExpenseApp/Expense_App/migrations/0002_expenses_image.py | cd91c44ea1bd2683fa57d7e92b495ba95f812bb3 | [] | no_license | Athul8raj/Expense_App_Django | 2d051c958fffc22b190da8111bcd0d734a56b533 | e97e4c56116d2a0dd22a57d9f8801947d0fbb448 | refs/heads/feature | 2022-12-13T05:09:30.759448 | 2019-01-30T17:48:41 | 2019-01-30T17:48:41 | 168,366,332 | 0 | 0 | null | 2022-12-08T01:36:37 | 2019-01-30T15:31:19 | HTML | UTF-8 | Python | false | false | 422 | py | 0002_expenses_image.py | # Generated by Django 2.1.5 on 2019-01-29 17:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Expense_App', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='expenses',
name='image',
... |
e6563c2406ffc24612b90035df604fda288d25e5 | edc896c425f38b89193593adf2c549f497b3d188 | /chapter_05/ex5-4.py | b2839903f5a3804476049b4ea35cc63ec1fda4b7 | [] | no_license | PiscesDante/Python_Crash_Course | 426d92c21738f0623c9795eafab20bab57841074 | 7fb252c5cdc3b66989b0c74804a82eae63eaf9f5 | refs/heads/master | 2022-03-03T13:30:12.519291 | 2019-09-21T12:18:05 | 2019-09-21T12:18:05 | 113,865,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | ex5-4.py | alien_color = 'red'
point = 0
if alien_color == 'green' :
point = 5
else :
point = 10
print("The player have %d points" % point) |
3cd566bfd2fabbc61ff66e74d2ae34f7fedb0889 | b3e9e9c92d86fcc8b5fedc64705ccf4d7e01b254 | /flask/first_work/find_in_phrase.py | 4f13cd7e5d9f1106cb005a1f98053544548a98fa | [] | no_license | dmitrii1991/Python-my-works | 738d9975f7aeb1ad980a429e979d3e692bc70b9f | 71deb074b69a18a070e659900f090839367fbd51 | refs/heads/master | 2022-12-10T01:58:11.256876 | 2019-10-25T08:19:46 | 2019-10-25T08:19:46 | 188,548,983 | 1 | 0 | null | 2022-12-08T05:22:54 | 2019-05-25T09:52:58 | Python | UTF-8 | Python | false | false | 177 | py | find_in_phrase.py | def find(phrase: str, letters: str):
let = set()
for i in list(phrase):
for x in list(letters):
if i == x:
let.add(x)
return let
|
ea4ade4faedd1b6ce17347e714cf371fe559b941 | 34e2274eae1217650376055766eeea375bcd1920 | /bp/matrix_image.py | 3e3f53555b3539564c26703a40e34770cdfea8eb | [] | no_license | wangye349/machine-learning | 68aed2beefcc489933a85005eed2bc1c8fa41492 | ed9242148547f0f4336a4d59781711ea7cd2833f | refs/heads/master | 2020-12-30T15:29:50.999371 | 2019-07-03T15:05:43 | 2019-07-03T15:05:43 | 91,145,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | matrix_image.py | from PIL import Image
#import numpy as np
# import scipy
import matplotlib.pyplot as plt
import numpy as np
import scipy as scy
import scipy.io as sio
import matplotlib.pyplot as plt
import math
import random
#from numpy import *
import scipy.optimize as opt
def sigmoid(input):
#output = np.ones((np.... |
793731f46f61466b76b932e010d1554e466d7786 | 73a61c5b52568cfb475c997d22143751f29f6686 | /blog/admin.py | 014f0d85f5a1b46134d1f39622ce2223d1977315 | [] | no_license | gsedubun/tenswebsite | 201dc5a03515d396ea8c8e1224d7b6ffc64df930 | 54f26e845145d3925a283ab071bd32f508c6daa7 | refs/heads/master | 2021-06-27T11:39:26.456911 | 2017-09-15T10:41:19 | 2017-09-15T10:41:19 | 103,645,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | admin.py | from django.contrib import admin
from import_export.admin import ImportExportActionModelAdmin
from .models import Post
from .resources import PostResource
# Register your models here.
admin.site.register(Post)
class PostAdmin(ImportExportActionModelAdmin):
resource_class = PostResource |
81580c7e890e3b03e38880349f17e22acfd4a816 | 3e31a23360c06b34db4d123628ff77797a0b8631 | /host_gui.py | 4d96488c2a69c5b8a572ff0af8d7f4a348833441 | [] | no_license | jame-sparker/sound-connect-py | 58cc89262251356f79f8a548cb42035e3e6a5887 | 402b40ed81dd4d9a17fded4b231e59b83b6e19c8 | refs/heads/master | 2021-01-20T02:37:46.651177 | 2017-04-26T03:50:16 | 2017-04-26T03:50:16 | 89,431,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,691 | py | host_gui.py | import sys
import os
import socket
import threading
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import host
import time
import music
class HostWidget(QWidget):
def __init__(self, parent=None):
super(HostWidget, self).__init__(parent)
self.host = host.Host()
self.running = True
... |
871f188e4533a45a752235f0e8a146973d7296a8 | 8d472f9facb895dda9e1df81f3bb6c2f81b9c357 | /master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/SoftwareInstance_getDefaultImageAbsoluteUrl.py | dc14019517c36ce4c6c834a338aefc8fe6611662 | [] | no_license | SlapOS/slapos.core | 852485eed9382685f3df6ba8532f8192bb1389c4 | 369e8d56636e1c59a745e68dc68154abfc5b7840 | refs/heads/master | 2023-08-31T04:42:34.722241 | 2023-08-30T15:13:08 | 2023-08-30T15:13:08 | 1,825,920 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | SoftwareInstance_getDefaultImageAbsoluteUrl.py | return context.InstanceTree_getDefaultImageAbsoluteUrl()
|
43994201315314bba2234d535d5a416505482856 | c84888ae23e4ace877a67fa6ec2421996b06f6cc | /dfa.py | 9a985a07ab2b820a9bdebd098d44e2c7c9660085 | [
"MIT"
] | permissive | MohammadMahdiJavid/TLA_FSM | a6988ebdff165c6ec76c6f1e60bf6927d6752e80 | 2ab74cac2ce1545a44d4e4d80084da8e0e85d536 | refs/heads/main | 2023-04-10T18:51:00.101133 | 2021-04-28T18:41:08 | 2021-04-28T18:41:08 | 358,792,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,569 | py | dfa.py | import os
import graphviz
from fa import FA
from automata.fa.dfa import DFA
import queue
import itertools
class DFA(FA):
def __init__(self, states, transitions, initial_state, final_states, input_symbols):
super().__init__(states, transitions,
initial_state, final_states, input_sy... |
55b522a44ca471e5e262f2c6dd2f1cf3f80f87ce | 90e8b56a51d076a9b4179041f4fa207fb2df84b6 | /Codeforces/main1.py | 2e279b63e59ef951c262853fbf289024b084dbd2 | [] | no_license | dshahid380/Algos | afc1e3f2ae85a4831242cffd960ae7335f807ac2 | ad15095ca75de9930e132878e0518ba80be5371e | refs/heads/master | 2022-03-17T10:09:55.768998 | 2022-02-22T04:24:30 | 2022-02-22T04:24:30 | 191,604,975 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | main1.py | def solve(N, X, K, S):
parts = []
for i in range(N):
if (i+1) % X == 0:
st = str(S[i-X+1: i+1])
parts.append(sorted(list(st), reverse=True))
idx = N - N%X
st = str(S[idx: N])
parts.append(sorted(list(st), reverse=True))
count = 0
while(true):
return 1
... |
14214a0eb245ef94be5b711ca127df10b0a66c3b | 955ab935bd86f0af583c0745365cd929612b1f81 | /orders/migrations/0002_auto_20150602_1315.py | 4da367951899f236e00c5ccd6eddbe0ffdd8c52b | [
"MIT"
] | permissive | DobromirZlatkov/anteya | a940177c0c274aab3773985d04e8f640f0b458e1 | 9c66c64643350ad1710bcf60e2e38169e389a66b | refs/heads/master | 2021-01-10T18:06:12.268641 | 2015-06-03T10:56:00 | 2015-06-03T10:56:00 | 36,421,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | 0002_auto_20150602_1315.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from decimal import Decimal
class Migration(migrations.Migration):
dependencies = [
('orders', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='order'... |
9568c38213f4d7480fc7abf1f43c5f0371100e94 | 662fa70b635270559e0470641610027c34578823 | /layers.py | 923aa32dfe791e762793e778872c1e45e8e69a6b | [] | no_license | LinZichuan/a3c | d0950fe30d762bd58c710988a2e57220aa2b1a26 | 0512f0423bad94b6350ca80bf31ff1064fbff798 | refs/heads/master | 2020-01-23T21:49:26.029710 | 2016-11-28T13:53:52 | 2016-11-28T13:53:52 | 74,740,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | layers.py | import tensorflow as tf
def Conv2D(name, inputx, out_channel, kernel_shape, stride=1):
init = tf.truncated_normal_initializer(0, 0.02)
in_channel = inputx.get_shape()[-1] ##NHWC!!!
stride = [1, stride, stride, 1]
with tf.variable_scope(name):
w = tf.get_variable('w', [kernel_shape, kernel_shap... |
124d7da330aa7c869320e10f4f89cc1c872f85f2 | 3733370a399257e67d9821a9c80402ee2aacae6e | /coin_flipping_tests/plot_distribution.py | 1cf1f1076fbf95f5ec9f5281e3cdde359ee13d98 | [] | no_license | RileyPaddock/assignment_problems | 24ce2e7c2cb27eea6e2d904cd297e2c2a6f8a465 | 050838f6198aba2f5d7e0a3482494c8e6afefdc7 | refs/heads/master | 2023-05-07T21:42:17.034279 | 2021-06-01T22:23:14 | 2021-06-01T22:23:14 | 279,708,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | plot_distribution.py | import matplotlib.pyplot as plt
import sys
sys.path.append('coin_flipping_src')
from monte_carlo import monte_carlo
from probability import probability
plt.style.use('bmh')
x_coords = range(10)
probablility_results = [probability(x,10) for x in x_coords]
plt.plot(x_coords,probablility_results,linewidth = 2.5)
# plt.plo... |
502da0f0dafe42d3464fabb1d92ae1b0d7ef11f3 | 831f9b6328f1e916fadc02af7612219ea8fbc390 | /My-Solutions/valid_sudoku.py | 18d2306931cfb79ce9f9d9e24d8d1e8ccbbe55dc | [] | no_license | ahujaraman/competitive-coding-leetcode | 62fdc37afa2cadcfd06a402f801acaedcc6c383a | 1612e2114b065540fb4c6c730288d58235780809 | refs/heads/master | 2020-03-25T16:08:33.778977 | 2019-04-26T04:51:13 | 2019-04-26T04:51:13 | 143,916,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | valid_sudoku.py | # Check given matrix is valid sudoku or Not.
|
4e31c2a80bec77a1f5aafc8a91617fb4b2941788 | 3d1c28ebb5f2f433736a0bd2ca8ba0b862a37540 | /utils/build_dataset.py | bccf83394c0faa2e3bbb886f880869c26b4f3903 | [
"MIT"
] | permissive | paaatcha/gram-ood | 9d5da4978c16a59b321f4b452611515187da1ee4 | a34adf3d2ead83dee7d32f589018ba3dab6ffaff | refs/heads/master | 2023-08-06T11:48:37.657945 | 2021-10-01T02:04:38 | 2021-10-01T02:04:38 | 256,625,158 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,123 | py | build_dataset.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Author: André Pacheco
E-mail: pacheco.comp@gmail.com
This file implements the methods and functions to load the image as a PyTorch dataset
If you find any bug or have some suggestion, please, email me.
"""
from PIL import Image
from torch.utils import data
import t... |
6454790c98b254edeead4e68ef7f5760c9105a57 | 9fa56f1c811f946ffe4c08b072e8574388e91c41 | /MACD+ADX_Gain_Balance_20150510/main.py | 5a8e56358e2eb056fd15bad0754842da5149d47d | [] | no_license | guangsha/Stock_Charts | 2587f45fb70d0d561f65626465f830cfc00ba548 | 58c1223964a07376d3a25ed415fdd9057433f874 | refs/heads/master | 2021-01-10T11:03:25.626046 | 2015-10-14T21:03:28 | 2015-10-14T21:03:28 | 44,275,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,257 | py | main.py | #!/usr/bin/python
#
# Dividend!
#
import os
import sys
import urllib2
import math
import numpy
from pylab import *
#
# Dividend adjusted! ... |
75133dd924f8f3f028075c5d2109bb79ddc7fe87 | 9966870ba09d6db78c2d274c89e12ffb730a2da9 | /python_program/day02/Mysql.py | 1955e20a71c30618aafa7979efa6b1f948e2e6a4 | [] | no_license | pu3147/edu | 01746f231183c259c9dc7a5f1c901beaf02f6096 | 9a1f40d2d61c87b9ce80fcb7f22199969f9eed2c | refs/heads/master | 2021-06-07T05:55:37.643091 | 2021-03-28T13:42:25 | 2021-03-28T13:42:25 | 29,863,677 | 1 | 0 | null | 2021-06-04T02:06:18 | 2015-01-26T14:09:42 | Python | UTF-8 | Python | false | false | 9,304 | py | Mysql.py | import pymysql
def testeSelect(db):
#创建查询游标
cur1 = db.cursor()
# 使用 execute() 方法执行 SQL 查询
cur1.execute("SELECT VERSION()")
# 使用 fetchone() 方法获取单条数据.
data = cur1.fetchone()
print(dir(data))
print ("cur1 : %s " % cur1)
print ("Database version : %s " % data)
def dropTable(db):
#创建查询游标
cur1 = db.curs... |
fcc73647a5e841bcb5ea4fcd06579cc6912cfe1e | 61d81103a766a1ed5dc9674045f69af7299a4931 | /apkd.py | f3af3e88184b98d10ce781de478f8bf3889b65bb | [] | no_license | Ba-hub/3mbed0r | 8b806d13e3be6c6d13d456a92658c3a06e289092 | 2782f51cc9d6118e3813e8494c5ce1072fdb5ee8 | refs/heads/master | 2022-11-12T03:05:54.160937 | 2020-07-04T14:08:57 | 2020-07-04T14:08:57 | 277,075,892 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,887 | py | apkd.py | #!/usr/bin/env python
import os
import re
import pycolor
import sys
pyc = pycolor.pyColor()
def decompile(mainapk):
print pyc.Info("Decompiling apks...")
os.system("bash apktool.sh d -f %s"%mainapk)
os.system("bash apktool.sh d -f temp.apk")
def inject(mainapk):
print pyc.Info("Injecting payload...")
mk = "mkd... |
de347b41cd88947690cb42e043880a80d81e2c5c | c37e0b5378752a85649bcf5fed7718d5babfa21d | /cryptocurrency/migrations/0013_alter_order_created_at.py | 495aa051df2b5c9837b7855f97ee0d9bbc7fdf15 | [] | no_license | javadebadi/araz-algo | c3bfc595e1b82e97e6db9d4a0f36a52f2b14016a | 852325d764eb3d84f38aecea9228ff328da3ad11 | refs/heads/master | 2023-08-11T11:01:10.718899 | 2021-10-01T19:46:15 | 2021-10-01T19:46:15 | 404,106,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | 0013_alter_order_created_at.py | # Generated by Django 3.2.7 on 2021-09-11 19:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cryptocurrency', '0012_rename_cancel_exists_order_cancel_exist'),
]
operations = [
migrations.AlterField(
model_name='order',
... |
c26bdc3f47aa9ac0cda0334e97bdaf3f9d56eb6c | faa858780a0e9c94dccffcba7356601fbe8a8a63 | /Forensic/Private Hub/solver/sv-non-intended-request-only.py | 8f02fe3b47a13967fba0a07ca14b565e06a09513 | [] | no_license | hanasuru/RedMask-CTF-Final-Chals | 0c815c5bb11145201358fc40e49bbf7b9cf03027 | a57f51c7e08b8171b3638f953b7e60d95b3ac52c | refs/heads/master | 2023-01-29T10:56:34.577413 | 2020-12-15T04:52:18 | 2020-12-15T04:52:18 | 319,987,759 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,970 | py | sv-non-intended-request-only.py | import re
import os
import base64
os.popen("tshark -r log.pcap -d 'tcp.port==57000,http' -d 'tcp.port==44322,http' -d 'tcp.port==44818,http' -Y 'data-text-lines' -Tfields -e http.file_data > request")
def evals(text):
template = "{}\['__doc__'\]\[\d+\]"
keys = map(str, range(10))
keys += ['\[\]','\(\)',"'... |
8e85740123467889bdeb6b27d5eaa4b39df280ed | e05cabc903963e7242af47b25b86acf45fd77f2b | /bookshopapi/celery_task/tasks.py | 02681e645d8ab0fde43d9e26da01d5ff08f67cf4 | [] | no_license | MoseGai/luffy | 8ed5612df31dbb1f97b194978d0ef66cc4f8f6bd | d2bfdca34e6503bd20aa6d6ebe70600b1dc87b83 | refs/heads/master | 2023-01-07T10:50:04.560005 | 2019-12-23T08:06:12 | 2019-12-23T08:06:12 | 229,705,026 | 0 | 0 | null | 2022-12-27T15:34:31 | 2019-12-23T07:59:45 | Python | UTF-8 | Python | false | false | 645 | py | tasks.py | from .celery import app
from home.models import Banner
from settings.const import BANNER_COUNT
from home.serializers import BannerModelSerializer
from django.core.cache import cache
from django.conf import settings
@app.task
def update_banner_list():
# 获取最新内容
banner_query = Banner.objects.filter(is_delete=Fals... |
a2421a8673a524c32539555596711a71a8e00dbf | 13983c8248c6551895c9bd3c7672f01e87989308 | /inference.py | a4ea5c94a5d67eea43e8f65c3205b3bd8562a0d7 | [] | no_license | yjlolo/constant-memory-waveglow | d0c5536321833597ccf83d70c352dfb23d854401 | 46cf8b12376e5a07b4aeadc45ef957d74e79be9e | refs/heads/master | 2022-11-07T09:00:49.351803 | 2020-07-02T08:50:40 | 2020-07-02T08:50:40 | 266,284,627 | 2 | 0 | null | 2020-05-23T07:24:22 | 2020-05-23T07:24:21 | null | UTF-8 | Python | false | false | 2,438 | py | inference.py | import os
import argparse
import torch
import model.model as module_arch
from utils.util import remove_weight_norms
from train import get_instance
from librosa import load
from librosa.output import write_wav
from time import time
def main(config, resume, infile, outfile, sigma, dur, half):
# build model architec... |
186eec463f736b059ca40f6f6a5cf7611cd2ed83 | 48d7cfd9ca4dbab4d31bca9b824620e0bb86cf49 | /board_info/insert_data.py | e9301003ecf105377bb8299d859550b025cffc30 | [] | no_license | tangleibest/xongmaoxingchu-python1 | b45b81763f06793caa65c5d2b6650958f4390fb1 | e2fa5d02283b7beef76a8c1134e0f3113b5a1452 | refs/heads/master | 2020-09-24T22:27:26.064494 | 2020-06-20T03:14:48 | 2020-06-20T03:14:48 | 225,858,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,393 | py | insert_data.py | import datetime
import time
from datetime import datetime, date, timedelta
import datetime
import pandas as pd
import pymysql
from DBUtils.PooledDB import PooledDB
pool_project = PooledDB(pymysql, 5, host='rm-hp364ebpsp6649ra0bo.mysql.huhehaote.rds.aliyuncs.com', user='tanglei',
passwd='tangle... |
aca4d15b963a0113d74f88ad4984a0e50904337c | 462b7edabfb4f4013f3eab500bf0ee012b2e54af | /example.py | 929bcbae35061b95990f98ec61ab145f2f56d60f | [] | no_license | Manu87DS/IoTMaster | b07be7bc02e6a1fa7475ca5c2891cb84bb44ce6b | 7593b0cbb0d823b4a34c7ae9bbb75005a4cdc89d | refs/heads/master | 2022-02-17T21:54:02.542172 | 2019-04-05T19:52:05 | 2019-04-05T19:52:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,246 | py | example.py | """
# ============================================================================
IOT MASTER LIBRARY
==============================================================================
1 . ThingSpeak (Read/ Write)
... |
f0b1a1e06fdcde3b8b7486f127e5db546937b94e | f481621814e5c0988f21377891a55586d2f27bbb | /22-2.py | b169a061757794e6af345d1f4c982f29ee1ff58d | [] | no_license | stephengilliland/AdventOfCode-2020 | 50ff8719604763b7cf20b8328e960a85e380bfb0 | 86c0b9a119a702ab770486f96dd0fcd52cdb185c | refs/heads/master | 2023-02-08T19:27:06.415098 | 2020-12-22T07:27:11 | 2020-12-22T07:27:11 | 318,861,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | 22-2.py | oneCards = [28, 13, 25, 16, 38, 3, 14, 6, 29, 2, 47, 20, 35, 43, 30, 39, 21, 42, 50, 48, 23, 11, 34, 24, 41]
twoCards = [27, 37, 9, 10, 17, 31, 19, 33, 40, 12, 32, 1, 18, 36, 49, 46, 26, 4, 45, 8, 15, 5, 44, 22, 7]
answer = 0
states = []
gameOver = False
def subGame(p1Cards, p2Cards):
subStates = []
winner = 0... |
9ab8af89daf4f559afd774a6980a9241d0b057d7 | df4e2e470f360b334eb7667d2663d637c5e89df5 | /src/Ijjeh_Projects_src/Phononic_Crystals_dispersion_curves_DL/ANN _PC_img.py | 5001ddbefbcc3ad56587383030a3e6e85d7946a9 | [
"BSD-3-Clause"
] | permissive | IFFM-PAS-MISD/aidd | 71c4ec13ea2c355294583df7a8938b788f0bedc7 | 38d2f7be7790b119b232870b5d6937a57aee3733 | refs/heads/master | 2023-08-30T12:56:01.383508 | 2023-08-17T05:16:02 | 2023-08-17T05:16:02 | 225,380,924 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,860 | py | ANN _PC_img.py | import os
from IPython.display import Image, display
from tensorflow.keras.preprocessing.image import load_img
import PIL
from PIL import ImageOps
import re
import numpy as np
import tensorflow as tf
import keras
from keras import layers
from keras.layers import MaxPooling3D, Input, ConvLSTM2D, UpSampling2D, MaxPooling... |
0a2af403421f542a9345f3d6941e2fca216b6ff1 | efff287e5c3da3332ee48e12a2c60ebe81f03ad3 | /weixin_bot/massage_handle/text_massage.py | aab0ef3596ef4e77bafcd4e017e6d371b4bb38a6 | [] | no_license | jiaojianglong/J_QA | 0d6fced524998a1f05e0d08aa9ac4ae45ca13abb | f31ebbccbbd3cb7b2b3f4deed6a980c0d0fad7e9 | refs/heads/master | 2020-04-01T03:38:53.592037 | 2018-11-14T12:22:55 | 2018-11-14T12:22:55 | 152,830,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | text_massage.py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2018/10/14 0014 14:31
# @Author : jiaojianglong
from weixin_bot.client.msg import Msg
from weixin_bot.tuling.tuling_replay import tuling_replay
from cache.emoticon import EmoticonCache
from models.mongodb.emoticon import EmoticonModel
class TextMassage(Msg):
... |
5df08cf0df08c10483a5fc4428ce1973002f3dab | bf3a98e3a305e0daa0e248e26e4d12f905d5df4a | /solutions/16.py | 2100547e346f4ebde157009e82ee28486d7880ef | [] | no_license | petro-ew/test1 | 304c7c28ce883cd1bde06da4a49fb5d6c822762a | 992736c2cb85ffe61f49a4bb6591f3adacd30134 | refs/heads/master | 2021-01-19T16:22:11.926980 | 2013-11-29T08:16:40 | 2013-11-29T08:16:40 | 7,989,359 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,118 | py | 16.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import cmath
import math
__author__ = 'petro-ew'
"""
16. Написать функцию, возвращающую сумму кубов элемента списка. Список передается функции в качестве параметра.
"""
"""
filter (<функция>, <список>)
возвращает список из тех элементов <спиcка>,... |
d7d69a3eccdaa39309d27eac8c0dd843ff289609 | 37c3c6fd1b05b6cf0c5f5ab89120562d7a8a40f8 | /stringpalindrome.py | 5e0f6df94d7a6d8afae14694fff557a25ef2ec73 | [] | no_license | kaviraj333/python | e4b480adfcbec383c1228e07426833b9c02f4296 | 7110b6e153c4ef4afe7ade8ce20104b26ea4cc8f | refs/heads/master | 2020-05-22T23:17:48.540550 | 2019-04-09T05:04:31 | 2019-04-09T05:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | stringpalindrome.py | ammu=raw_input("")
if ammu==ammu[::-1]:
print("yes")
else:
print("no")
|
d020cbcd566affb3dcc66e7b6f5608fab9850821 | 9d356cfb115057369495a563145196912e90fa61 | /paper_uploads/migrations/0001_initial.py | 18b38871c11de3cd7cc275478dd30c6a1030294b | [
"BSD-3-Clause"
] | permissive | dldevinc/paper-uploads | 555a64af7883be3a2c217ea76a1ce8cb11057237 | 519602a2c86c3512ab52918ff8091323eab7e2a5 | refs/heads/main | 2023-05-11T23:18:38.214625 | 2023-04-23T11:34:34 | 2023-04-23T11:34:34 | 205,140,620 | 3 | 0 | BSD-3-Clause | 2023-04-17T06:30:53 | 2019-08-29T10:41:13 | Python | UTF-8 | Python | false | false | 14,981 | py | 0001_initial.py | # Generated by Django 3.0.9 on 2020-09-15 07:08
import django.core.files.storage
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager
import django.utils.timezone
import paper_uploads.models.fields.image
import paper_uploads.models.mixins
class Migration(migration... |
b8faf8fb15d2e7b37fd8590d7c2754936dbad3b7 | 8e689555ccfc57bd1f52e0f6627a5f6395965536 | /CDT02 Proposal/test.py | 9909d1394aa256e7228f0b07d03f3a7db74f0352 | [] | no_license | jonesnoaht/cdt | 538aaecadc44b0036853daa47632ff7aaa5af116 | 2364a6d103158a93a2cd70e2896ffe3cc6575a6f | refs/heads/main | 2023-08-28T11:57:47.292837 | 2021-11-04T20:42:05 | 2021-11-04T20:42:05 | 397,245,874 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | test.py | def solution(S, K):
if S == "Mon":
d = 0
if S == "Tue":
d = 1
if S == "Wed":
d = 2
if S == "Thu":
d = 3
if S == "Fri":
d = 4
if S == "Sat":
d = 5
if S == "Sun":
d = 6
a = (K + d) % 7;
if d == 0:
return("Mon")
... |
3adcd94ed7213e25241fbff078ae9f2b6ec7b2af | 6f1ef8212efe16b89154739a2387de5f0552c3b3 | /Python2/Labs/Lab04bX.py | 3c7a27d0047c450176d86f3dc214d55f30dd363d | [] | no_license | t0etag/Python | a612af508b2adda3e493aa57cfc03ebbfa6df06e | e763eaf892502f44f97e978ef87669fe87f016f9 | refs/heads/master | 2021-07-15T18:40:38.253241 | 2021-01-27T21:16:02 | 2021-01-27T21:16:02 | 232,670,829 | 0 | 0 | null | 2021-01-27T21:16:03 | 2020-01-08T22:16:12 | Python | UTF-8 | Python | false | false | 1,846 | py | Lab04bX.py | """Lab 04b
Your data contains a partial program called payday.py. It contains a
pay rate variable valued at 27 dollars per hour. It also contains a
two-dimensional list. Each sublist contains the day of the week and
the hours worked to the nearest quarter hour. Hours worked
Monday through Friday are paid at the no... |