blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7259ca3438f85859971f088f4b36164e0b9ba675 | 38d39a3c50b161e03599456ce8fb335bc3fb1b6e | /create-cpp-data.py | 2e5f9fa2a9091c93aca63c7866e22368c1eb757d | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | rymis/tz.js | 6e159e85c714286927eb55f52a7bb55d1014dcc4 | a1136c58fec5fe9c389b073b62d2296fbb5fe6a6 | refs/heads/master | 2020-07-14T18:22:01.711073 | 2019-09-06T15:13:01 | 2019-09-06T15:13:01 | 205,372,623 | 0 | 0 | NOASSERTION | 2019-09-06T15:13:02 | 2019-08-30T11:53:28 | Python | UTF-8 | Python | false | false | 2,612 | py | #!/usr/bin/env python
import json
import os
import sys
import shutil
INPUT_DIR = os.path.abspath(os.path.dirname(sys.argv[0]))
OUTPUT_DIR = os.path.join(INPUT_DIR, "output")
DATA_JSON = os.path.join(OUTPUT_DIR, "data.json")
INPUT_CPP = os.path.join(INPUT_DIR, "tzcpp.cpp.in")
OUTPUT_CPP = os.path.join(OUTPUT_DIR, "tzc... | [
"mikhail.ryzhov@kiwi.com"
] | mikhail.ryzhov@kiwi.com |
af21a46323d7415dbd6a00afd00643952cdfb613 | e4309509368571a85439daed31a5467ab75d68a2 | /PyTrain-master/session1/json_work.py | e344f885d0846a0b3dfa535ab15b1942d9e1dac6 | [] | no_license | ragavendranps/Python | f3e66bebdf397deee9b3dff64974df2ac0760a92 | c67d6f571939f5f2ec81852b6741b3e07b72aa56 | refs/heads/master | 2022-11-05T10:52:34.008508 | 2020-06-22T18:03:10 | 2020-06-22T18:03:10 | 273,499,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | import json
# some JSON:
x = '{ "name":"John", "age":30, "city":"New York"}'
# parse x:
y = json.loads(x)
print(type(x))
print(type(y))
# the result is a Python dictionary:
print(y["age"]) | [
"67148832+ragavendranps@users.noreply.github.com"
] | 67148832+ragavendranps@users.noreply.github.com |
dbabe6ca1208d9ea8425eff6d26c6d13353f0b27 | 9124f0bd5e9c20f7e4bc44cf5b588b5953df195e | /DoutuWeb.py | ac1bad8e8e238dc60328fcce77e3c0be86f29b31 | [] | no_license | zhengquantao/crawl | d34d5704b0a1b772b97f63cc3074cdaf3bfdc1cc | dce7bfcf10c0080c2bc4d20465c5aba7687057ca | refs/heads/master | 2020-04-10T09:26:15.600629 | 2018-12-08T12:19:39 | 2018-12-08T12:19:39 | 160,936,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | import requests
import re
import pymysql
db=pymysql.connect(host='127.0.0.1',port=3306,db='pysql',user='root',passwd='12345678',charset='utf8')
cursor=db.cursor()
cursor.execute("select*from images")
# print(cursor.fetchall())
def getHtml():
try:
for n in range(125, 151):
url = 'http://www.doutu... | [
"1483906080@qq.com"
] | 1483906080@qq.com |
ad8c5d77245df03ba8f4e8cf1b8eac1ca17bbbb9 | 871c67ed1bd1ef90d88f7c46afefeab0bb4dc965 | /myProject/online/apps/courses/adminx.py | ec8d0265df9ef321db9f8ac447887c5146193838 | [] | no_license | Limenation/bishe | fb71f93a6c9d550db78bc6da1bf81f84bdf2169c | 371180932e34efb96005700424ccc6905f68344a | refs/heads/master | 2022-07-15T14:44:29.889204 | 2020-05-16T07:35:54 | 2020-05-16T07:35:54 | 262,919,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,204 | py | import xadmin
from .models import Courseinfo, Lession, Video, CourseResource, CourseBanner
from organizations.models import Organizationinfo
class LessonInline:
"""添加课程的时候可以顺便添加章节"""
model = Lession
readonly_fields = ['add_time']
extra = 0
class CourseResourceInline:
"""添加课程的时候可以顺便添加课程资源"""
... | [
"1448918377@qq.com"
] | 1448918377@qq.com |
c2d75f8bbadf428b1d890435ae40bd179a74edc5 | 1d1a21b37e1591c5b825299de338d18917715fec | /ML,DL, RL/Machine Learning/ml/m42_xgb_qpu.py | 477dafeb04fe720c755d988a9fb2f21ae8325e6c | [] | no_license | brunoleej/study_git | 46279c3521f090ebf63ee0e1852aa0b6bed11b01 | 0c5c9e490140144caf1149e2e1d9fe5f68cf6294 | refs/heads/main | 2023-08-19T01:07:42.236110 | 2021-08-29T16:20:59 | 2021-08-29T16:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | # XGBoost
# tree_method = 'gpu_hist' : cPU 대신, 실행을 시켰을 때 전체 GPU는 활동을 안하는데 CUDA만 활동
# predictor='gpu_predictor' : GPU로 예측 수행
# predictor='cpu_predictor' : CPU로 예측 수행
# gpu_id=0 : GPU 선택하여 처리
from xgboost import XGBClassifier, XGBRegressor
from sklearn.datasets import load_boston
from sklearn.model_selection import trai... | [
"jk04059@naver.com"
] | jk04059@naver.com |
47b74b1775ebe7c948754a92b962e1cee4c592e8 | 4d327de5447519d3c00e6572f74362380783006f | /source/res/scripts/client/gui/Scaleform/daapi/view/lobby/rankedBattles/RankedBattlesCalendarPopover.py | 1597d3315544c1d1c8513bc4b036cfea883af256 | [] | no_license | XFreyaX/WorldOfTanks-Decompiled | 706ac55d919b766aa89f90c97a75672bf2142611 | 5025466edd0dd3e5e50a6c60feb02ae793f6adac | refs/heads/master | 2021-09-21T15:10:32.655452 | 2018-08-28T07:34:00 | 2018-08-28T07:34:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,129 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/rankedBattles/RankedBattlesCalendarPopover.py
from datetime import datetime
import BigWorld
from gui.Scaleform.locale.COMMON import COMMON
from gui.Scaleform.daapi.settings.views import VIEW_ALIAS
from... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
56fbf2a47fa9865416f2c8ff06113e4b3ebbf002 | 934f170481a5f3807b14823f9e704fd877044d30 | /SAGAN.py | 5af51b32adb641eff5c37319b7332b3957d40e21 | [] | no_license | JustinLion83/Anime-GAN-tensorflow | c234bd28e197a801460683d07aa35d2d80cb96f9 | e3a5fd726aeaf08d01445d8176468d84cd3295f4 | refs/heads/master | 2020-07-03T06:36:25.765500 | 2019-08-17T19:37:04 | 2019-08-17T19:37:04 | 201,822,987 | 0 | 0 | null | 2019-08-11T22:45:42 | 2019-08-11T22:45:42 | null | UTF-8 | Python | false | false | 12,068 | py | from layers import *
import numpy as np
import time
from utils import util
import os
class SAGAN_model(object):
def __init__(self, args):
self.args = args
self.d_loss_log = []
self.g_loss_log = []
self.layer_num = int(np.log2(self.args.img_size[0])) - 3
# inputs
se... | [
"ccjdurandal422@163.com"
] | ccjdurandal422@163.com |
81a07d5d37659d9d4980d83db5bc793b675b8033 | 6d0bb60824c99071dc974b04225dabb093b76e67 | /Python Programs/pallindromic.py | ce3d2d5e4bc575bd8d2037aba48d7f1ab95407cc | [] | no_license | chetan-mali/Python-Traning | be2274d6ed1e191194aaa12e65c35868eeaab33e | 88028bd17b68f1ea1253477b8deda9ece921e4b0 | refs/heads/master | 2020-04-14T20:43:48.307381 | 2019-01-05T21:11:05 | 2019-01-05T21:11:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | def check(n):
temp=n
rev=0
while(n>0):
dig=n%10
rev=rev*10+dig
n=n//10
if temp==rev:
return True
flag=0
list1 = [12,61,12,12,14]
for i in list1:
if i<0:
print("False")
exit()
for i in list1:
if check(i)== True:
flag=1
if f... | [
"chetanrox520@gmail.com"
] | chetanrox520@gmail.com |
b9d7f5b0c705d83212e83386061033bed131b997 | ab8c7c35f89581045000028cac4fce3a0dc6ba07 | /chainer_maskrcnn/model/head/fpn_roi_keypoint_head.py | 1a163421ebc7c1510d8e9182239858413ef6e6a1 | [
"Apache-2.0"
] | permissive | katotetsuro/chainer-maskrcnn | 965b25c7b8e0411df7ab21841cfdf41c1a4c4b1b | f95eb067b99cdf555c5e9e90b34f1186df4ee342 | refs/heads/master | 2021-09-15T22:44:18.046410 | 2018-06-11T08:08:47 | 2018-06-11T08:08:47 | 115,767,724 | 20 | 1 | Apache-2.0 | 2018-04-22T13:59:07 | 2017-12-30T02:14:56 | Python | UTF-8 | Python | false | false | 4,304 | py | import chainer
import chainer.links as L
import chainer.functions as F
from chainer.links.model.vision.resnet import ResNet50Layers, BuildingBlock, _global_average_pooling_2d
import numpy as np
import copy
from chainer_maskrcnn.functions.roi_align_2d_yx import _roi_align_2d_yx
class FPNRoIKeypointHead(chainer.Chain):... | [
"nistetsurooy@gmail.com"
] | nistetsurooy@gmail.com |
4e49caf60862a2ba3e950e0b6ddc11b9b60b362c | d82c5af93dca23ee5b94458886e904c0fec6d9be | /appStatus/apps.py | 77b478ffcae53c40e159584871c57699c7a060c1 | [] | no_license | saiken86807/college-application-portal | ec6b5280f39c2da4063a60cf09a195cc73f9edee | c1f88809b90f70b8862c6d1b599c75aded0de1d7 | refs/heads/master | 2022-12-27T09:01:53.309254 | 2020-09-21T00:04:34 | 2020-09-21T00:04:34 | 290,922,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class AppstatusConfig(AppConfig):
name = 'appStatus'
| [
"stefanieaiken@Stefanies-MacBook-Air.local"
] | stefanieaiken@Stefanies-MacBook-Air.local |
481dbc7401b824b85be94529bba4c8899243e7a3 | 9f908092d78566d1c2f0d4b9d7b575c1b0a90266 | /01/flightscheduler/flights/urls.py | a848a69768d58cee1ca09090cb7ee7bf6bf59f0f | [] | no_license | FernandoDaflon/Django_Rest_Angular_8- | 478326d1677d53d67e090f0ebfd20efd2a3821f9 | 31be090910e80191fcde676473a15a316e1e11a2 | refs/heads/master | 2022-11-05T21:41:06.610890 | 2019-12-09T02:28:20 | 2019-12-09T02:28:20 | 226,766,189 | 0 | 1 | null | 2022-10-28T03:39:02 | 2019-12-09T02:18:09 | Python | UTF-8 | Python | false | false | 394 | py | from django.urls import path, include
from . import views
from rest_framework import routers
from django.conf.urls import url
# router = routers.DefaultRouter()
# router.register(r'users', views.UserViewSet)
urlpatterns = [
# path('', views.index, name='index'),
# path('', include(router.urls))
url(r'^$'... | [
"fernandodaflon@gmail.com"
] | fernandodaflon@gmail.com |
da17794fd3bc959633b932fe700adc8c9e21337f | c08d383814f3becb750cb91ff890302bf098b3b0 | /lesson03/fib.py | 5a14545aad6fa6197efae6713877d901c3c9ce1d | [] | no_license | wangwei96/python_study | 03e137ce8808ca39c5bd19b8b1ea2424a167aaae | b355c0000d6aee3d9e846118d51128bcc9a3bc61 | refs/heads/master | 2021-05-06T13:13:46.826038 | 2018-01-02T07:25:06 | 2018-01-02T07:25:06 | 113,256,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #利用递归计算斐波那契数列第lim项的值
def fibnum(a=1,b=0,lim=4,lev=1):
if lev==lim:
return a
return fibnum(a+b,a,lim,lev+1)
#输入一个数字,调用求斐波那契数列该项数值的函数
def fib(i):
if i>0:
print(fibnum(lim=i))
else:
print('请输入正确的值!!!')
fib()
| [
"965158007@qq.com"
] | 965158007@qq.com |
944220470e54abb868ea7ab6dd1e61634a5a1f51 | 3e2bb496ee3f18dfad3506f871c69ec2a0d67fe9 | /m2m-relations/articles/admin.py | bf4ea0245db8187328cd09190ea7052b0d2c877e | [] | no_license | ns-m/netology_dj_py_Databases_2 | 0b80c8829e7272e2b65d1de0abdb16a296f29740 | abc1aa198f30ac98b63c14cef735729130674f07 | refs/heads/master | 2023-05-31T11:27:00.368032 | 2020-05-24T16:26:22 | 2020-05-24T16:26:22 | 266,418,890 | 0 | 0 | null | 2021-06-10T22:57:09 | 2020-05-23T21:01:31 | Python | UTF-8 | Python | false | false | 1,087 | py | from django.contrib import admin
from django.core.exceptions import ValidationError
from django.forms import BaseInlineFormSet
from .models import Article, Section, ArticleSection
class ArticleSectionInlineFormset(BaseInlineFormSet):
def clean(self):
set_common_section = False
for form in self.fo... | [
"9117479@gmail.com"
] | 9117479@gmail.com |
dee31b9f45064ce4a3c41f646e56a24c989fd8b4 | 56c5f2fde5c929ac4304c0c318b13f9fd1ddacec | /test/unit/manager/wsgi/ports/test_routes.py | a7b7808d87742acdc5febe9cd99cd064babb5313 | [] | no_license | soulhez/Goperation | 5e7b9b67910deeabe12b46a05fcfc82dc1d3d723 | 64b2651229504f24e9c854b9e30da58cc7741176 | refs/heads/master | 2022-03-08T06:35:19.979125 | 2019-11-11T08:49:20 | 2019-11-11T08:49:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | import routes
from simpleservice.wsgi import router
from goperation.manager.wsgi.port.routers import Routers as port_routes
mapper = routes.Mapper()
port_route = port_routes()
port_route.append_routers(mapper)
testing_route = router.ComposingRouter(mapper)
for x in mapper.matchlist:
print x.name
route_dict =... | [
"lolizeppelin@gmail.com"
] | lolizeppelin@gmail.com |
f9a929408b32170e178231ad8907c38aa8647599 | 9cef4ef20efd0eec18846242e78be0b9be144c30 | /teacher_cade/day19/14.greenlet.py | e2d537f9ff67e3f0659a5afb381d8128caa9ab71 | [] | no_license | Vaild/python-learn | 4e6511a62a40b6104b081e0f8fe30f7d829901f5 | 5d602daf3b4b7e42349b7d9251df1f4dd62c299c | refs/heads/master | 2022-11-19T00:47:48.808384 | 2020-07-20T14:27:49 | 2020-07-20T14:27:49 | 279,044,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | #!/usr/bin/python3
# coding=utf-8
from greenlet import greenlet
import time
def test1():
while True:
print("---A--")
gr2.switch()
time.sleep(0.5)
def test2():
while True:
print("---B--")
gr1.switch()
time.sleep(0.5)
gr1 = greenlet(test1)
gr2 = greenlet(test2... | [
"cubersongwenbo@gmail.com"
] | cubersongwenbo@gmail.com |
834f0e536ae907ee6244def6d566646281d05324 | 9171126f2b4b5bfe620fe48fbf696b011881a938 | /upload_python_scripts_and_client/BatchUploadv3.py | 90bde36eef19bdaad1ab82e585fe52492bdbc177 | [
"MIT"
] | permissive | voicebase-support/voicebase-support.github.io | f63acf9f6b18193ee5135266f75be08d966ca206 | a0d2b129b97682d2f2d54603a8fb8bbe618938ca | refs/heads/master | 2023-01-27T12:27:42.369113 | 2023-01-25T17:58:31 | 2023-01-25T17:58:31 | 80,883,051 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,879 | py | # list.csv is a list of file names on local machine
# any extra metadata fields under 'extended' need to be indexed on the VB platform before upload
# command line example
# python BatchUploadv3.py --list list.csv --mediadir ./media --results ./res.csv --token --priority low
import argparse
import csv
import json
... | [
"lenore.alford@gmail.com"
] | lenore.alford@gmail.com |
3c3ea357ad2d4046b95cdcf5cca0e18967b13045 | d3f147d0e7a3a9c10b79f8de00d884c031246013 | /numan.py | 9766bf3b178d29c35eff36c1a667da62788b652b | [] | no_license | numanrayhan/numan | 4509e8e51c373cb9a5608250e3dbab4383fea3d5 | 6a485d14c52b9753d79aab284046d84431a81274 | refs/heads/main | 2023-05-07T23:13:13.209815 | 2021-05-31T18:12:17 | 2021-05-31T18:12:17 | 372,589,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | print("my output") | [
"noreply@github.com"
] | noreply@github.com |
e8591843cd5828be5194738ec22902074c0117ca | 16c20abcf609629b925c9a438c3728800c0eb60d | /opencv/05/opencv-05_01.py | 9b21102a8e93d409c5710a978ffcb4281f544813 | [] | no_license | AnDeoukKyi/tistory | 66aa916daf2a2a4d0051796b9509cac3a03749ef | b98defeade2410723cf30353fd5190c44048c6b0 | refs/heads/main | 2023-08-13T12:13:18.228278 | 2021-10-19T13:37:58 | 2021-10-19T13:37:58 | 385,083,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | import cv2
img = cv2.imread("image.png")
cv2.imshow("origin", img)
#ROI1
ROI = img[100:150,50:150]
cv2.imshow("ROI1", ROI)
#ROI2
ROI = img[:150,50:]
cv2.imshow("ROI2", ROI)
cv2.waitKey(0) | [
"abdgf3@naver.com"
] | abdgf3@naver.com |
a60ad6b1c07224bf9f068c2ff88e18b2145189e0 | fa92165be94abcf7add9e4f57d3b444587ee986d | /app.py | 1e33022cce704a8a4f06e3ae4fa00755f40cb9ef | [] | no_license | Diane10/dianefinal | 2977ce46b136e377805276acb920ebf827e09f5f | 1efa8483dacb4810561920fd8b8915e24a1105f6 | refs/heads/main | 2023-01-24T03:13:11.100006 | 2020-11-29T14:35:20 | 2020-11-29T14:35:20 | 317,114,593 | 0 | 0 | null | 2020-11-30T04:54:20 | 2020-11-30T04:54:20 | null | UTF-8 | Python | false | false | 56,765 | py | import os
import streamlit as st
import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('Agg')
import seaborn as sns
import streamlit as st
from sklearn.ensemble import AdaBoostClassifier, GradientBoostingClassifier
from sklearn.ensemble import VotingClassifier
from sklearn.ensemble import ExtraTreesCla... | [
"noreply@github.com"
] | noreply@github.com |
d12df3fe82e2b7cd6f21fa29ba094b5242d3d3bc | d57980cc6f4e1147f6f4fe1bc1c68f8d731bcca5 | /train.py | d8d544f2bedfb30954a8a55fb7f42dfce3477a97 | [] | no_license | fuding/CAGFace | 244813b572953dc218b05b0e38cacc395c19d619 | 1436d44a089647ee62918b496d85b37a162d8e49 | refs/heads/master | 2020-11-24T15:11:09.480152 | 2019-11-25T08:35:40 | 2019-11-25T08:35:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | import torch
import torch.nn as nn
import torch.optim as optim
from tqdm import tqdm
from model import *
from dataloader import Data_Loader
from torchvision import transforms
from optimizer import Optimizer
import matplotlib.pyplot as plt
pretrained = True
lr_start = 1e-16 #0.0000505
visualize = True
dl = Data_L... | [
"noreply@github.com"
] | noreply@github.com |
b94655700bbb6e94cf77d31130c311a69755a8b1 | 982b49c38e9e4184ef4d7e4fbc45d97ac433738c | /FeatureExtraction/extractExpressionFeatures.py | 94cf92f8946934e0d4ed4f2b5a9618342e21ebe9 | [] | no_license | biswajitsc/LaSer | 35fc236857615059678275a264954b61f0d3c1de | 7484bc2a35dc07cd12eae5c1f1cbdb2088c582c7 | refs/heads/master | 2021-01-10T14:13:53.762777 | 2015-11-15T09:51:22 | 2015-11-15T09:51:22 | 40,284,558 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,640 | py | # coding: utf-8
import re
import sys
import math
from convertMathMLExpression import *
def extract_MathMLUnigrams(mathML) :
unigrams = set()
for line in mathML :
words = line.split(' ')
for word in words :
if (len(word) > 0) :
unigrams.add(word)
print "Unigrams of MathML equations Extracted"
numDocs ... | [
"agnivo.saha@gmail.com"
] | agnivo.saha@gmail.com |
6f2c689cf82b43d48f1d508aa2010818e990e7a7 | a80f73c8b5f2b807b4ec6d1c5c1c781ba0bfdc3a | /projecteuler/data_prob61.py | 7acbbb2144278544687cee62f4142cd2504e23a9 | [] | no_license | Himanshu-Mishr/projecteuler | 215d30c1b2742bb2e8f95336db3cdb4799f78680 | 419be91e480c9f29911f3370c443f0abb528f033 | refs/heads/master | 2021-01-13T02:30:24.313301 | 2014-09-07T05:22:39 | 2014-09-07T05:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,339 | py | ##### triangle number
tri = ['1035',
'1081',
'1128',
'1176',
'1225',
'1275',
'1326',
'1378',
'1431',
'1485',
'1540',
'1596',
'1653',
'1711',
'1770',
'1830',
'1891',
'1953',
'2016',
'2080',
'2145',
'2211',
'2278',
'2346',
'2415',
'2485',
'2556',
'2628',
'2701',
'2775',
'2850',
'2926',
'... | [
"himanshu.m786@gmail.com"
] | himanshu.m786@gmail.com |
757cb43a1fa89e94d8822ea4661c87d1dccfd79a | aefc47e459f2911416cf8f632142abe452fcced9 | /CIS8005_Assignment1/Chapter3_Excercise16.py | c3537df2d4bbf4f839efcb41286d00ec26e27cd2 | [] | no_license | lequan26111991/CIS8005-Data-Programming-for-Analytics | ac2f0b2fd3ea3f83aff9571cf62ffa78b04321ba | a17109adb6a194292db850ab018ed0946157aed5 | refs/heads/master | 2020-07-29T23:25:28.456404 | 2019-09-21T14:49:40 | 2019-09-21T14:49:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | ''' Chapter 3 Excercise 16 '''
from turtle import *
pensize(3)
penup()
goto(-200, -50)
pendown()
'''Draw a Triangle '''
right(60)
circle(40, steps = 3)
'''Draw a Square '''
left(15)
penup()
goto(-100, -50)
pendown()
begin_fill()
color("blue")
circle(40, steps = 4)
end_fill()
'''Draw a... | [
"lequan26111991@gmail.com"
] | lequan26111991@gmail.com |
9bc70906c5a573ba42746d4a2f4efbf81e0e86c1 | 98f730ec6a43d8be4a34b0f2a44a9d35989d2287 | /pynifi_client/models/tenants_entity.py | b4af3df3c70dc03de0e1a0bfb4fb63eb26b9a058 | [] | no_license | scottwr98/pynifi-client | 9337a4f322536ee466d419a788b8b5948cdc62d7 | 013ac2ffa591284a0d6cbb9ed552681cc6f91165 | refs/heads/master | 2020-04-18T08:47:03.680749 | 2017-11-04T23:59:58 | 2017-11-04T23:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,219 | py | # coding: utf-8
"""
NiFi Rest Api
The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ... | [
"ajish@rootedinsights.com"
] | ajish@rootedinsights.com |
2a7cfcfdbd04f2e518be613466168c4984eeac5c | 229de1ffeb88de97de4c3c2d8372ddab003a6fd4 | /Theory/16_producer_consumer_threads.py | 5a4982434f42d720468699fa9c0b253c6e4b8d82 | [] | no_license | KiraUnderwood/ParallelProgPython | f609cb2169b03e57a46e56ff09ce0f2d71edb369 | 5c8b92b3466553bd816fc95439570d101986e0bf | refs/heads/master | 2021-01-14T02:09:11.191654 | 2020-02-23T18:15:26 | 2020-02-23T18:15:26 | 242,566,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | #!/usr/bin/env python3
""" Producers serving soup for Consumers to eat """
import queue
import threading
import time
serving_line = queue.Queue(maxsize=5) # producer and consumer use it, queue - for each changing obj bw mult threads
def soup_producer():
for i in range(20): # serve 20 bowls of soup
serv... | [
"kpodlesnaya@mail.ru"
] | kpodlesnaya@mail.ru |
efca081d1b784241ee5ddf78a2d22f15c97f0013 | bff07ee1ee983c01acb5a5f626941bfea720f5d9 | /EstruturaSequencial/ex004.py | a7b1266db4966d7ef9b542fb2469f96257b7a62e | [] | no_license | aldrinpscastro/PythonExercicios | 52fb61c2e6a70d23b5e5f6768438504bac85520f | 96d065030e37624668db8ed1bb44bbfb52898763 | refs/heads/master | 2020-05-28T08:04:48.444370 | 2019-08-02T07:19:47 | 2019-08-02T07:19:47 | 188,928,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | nota1 = float(input('Digite a primeira nota bimestral: '))
nota2 = float(input('Digite a segunda nota bimestral: '))
nota3 = float(input('Digite a terceira nota bimestral: '))
nota4 = float(input('Digite a quarta nota bimestral: '))
media = (nota1 + nota2 + nota3 + nota4) / 4
mediastr = ''
for i in str(media):
if i... | [
"aldrinpdscastro@gmail.com"
] | aldrinpdscastro@gmail.com |
f3373b35d609b72af3d72b5f3fa8644a8a46377d | 540597e8377f14d73a0e0c8716c67743876fac22 | /todotracker/todolist/urls.py | 29d2b4d40b41ecff47213b7a6a6f0e165ec9ce03 | [] | no_license | sram04/TodoApp | d88be6faa50d9508f7d80aaed8e44e1ba14af052 | d60001cd9c4d8b8ed1465ed77439595f2e435901 | refs/heads/master | 2020-03-19T02:08:50.749507 | 2018-10-31T17:32:06 | 2018-10-31T17:32:06 | 135,603,115 | 0 | 0 | null | 2018-06-20T03:09:02 | 2018-05-31T15:35:41 | HTML | UTF-8 | Python | false | false | 327 | py | from rest_framework.routers import DefaultRouter
from .api import StatusViewSet, TaskItemViewSet, EventViewSet
router = DefaultRouter()
router.register(r'status', StatusViewSet)
router.register(r'taskitems', TaskItemViewSet, 'taskitem-list')
router.register(r'events', EventViewSet, 'events-list')
urlpatterns = route... | [
"sairamendreddy@gmail.com"
] | sairamendreddy@gmail.com |
896387b71de62c3f33d2bb9ccadb050d69c70b63 | b5155a2ece4ee4ca5a1a9e79d104f7b8914de508 | /OnlineprogrammingCourse.py | 6e34455d59867ea7591de979844e9162af909c18 | [] | no_license | DeepakKumarMD/online-course-management | 106d5ee3d2bc547e6f077ed26f4fbdc03f336a04 | 7c120db176a787db06f5e90f28cc3f9ddd706af9 | refs/heads/main | 2023-03-30T16:39:18.192858 | 2021-04-02T09:17:26 | 2021-04-02T09:17:26 | 353,967,706 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,487 | py | from tkinter import *
from tkinter import ttk
import sqlite3
import tkinter.messagebox
from datetime import date
from tkinter import filedialog
import shutil
import os
from tkinter import Text, Tk
today = date.today()
print('software is runing......')
firstw = Tk()
firstw.title("ONLINE COURSE MANAGEMENT... | [
"noreply@github.com"
] | noreply@github.com |
8d24c43bf6bb7b1561a333f3874efa67e29412ad | 9faae58c50c2697173d5aad03d8a988652acb7c9 | /docs/conf.py | 987bc3cdc23452e160eaebcd9a2687b723db5380 | [
"MIT"
] | permissive | aryanNaik123/gql | 7d78e5495348394fa7e2462b1614eaaa49f9631e | d7ad2a52a36479a885aa14790f49ffb341146499 | refs/heads/master | 2022-12-28T09:48:58.954918 | 2020-10-06T23:02:43 | 2020-10-06T23:02:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,604 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"noreply@github.com"
] | noreply@github.com |
2260196e7fd923b0fd097df46a0ff059efad88ed | 7725595e01cdb454132ef8009726568f66148e86 | /untitled2.py | f2c99aa4ef051b5660df637d91e1f9846492dd97 | [] | no_license | chintugupta07/cabmanagementsystem | 0b2368efcf0ad19ede71fef3fd4434e78a185eca | 7714463a636928c01142f5d514a0adc919e02c35 | refs/heads/master | 2022-11-15T10:06:09.013704 | 2020-07-09T17:07:51 | 2020-07-09T17:07:51 | 278,423,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,816 | py | from tkinter import *
from tkinter import ttk
from tkinter import messagebox
import sqlite3
import re
class login:
a=0
b=0
c=0
mobile_no=0
def signup(self):
top=Tk()
top.title("create form")
top.geometry("500x450+425+75")
self.var... | [
"noreply@github.com"
] | noreply@github.com |
92b5f668546f93d13b399359990056c7b27defd6 | 592ae7e2c02f61d4241afa7be091dcb0202ff652 | /Practical2/SQLite Practise.py | 47379bf706453b14e4aa345160b452b9b1416efc | [] | no_license | JamesKeating/Internet_Of_Things | fc4a0398d20dbb5b6042e365dd0509f60c7f859a | e0e0c733d9f4100cb95214c60a7588ea4b95a6c9 | refs/heads/master | 2021-07-03T09:43:19.691083 | 2017-09-22T15:30:33 | 2017-09-22T15:30:33 | 104,490,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py |
import sqlite3
db = sqlite3.connect("chinook.db")
c = db.cursor()
c.execute('select * from customers')
row1 = c.fetchone()
print(row1)
print(row1[3])
db.close() | [
"james.keating@ucdconnect.ie"
] | james.keating@ucdconnect.ie |
d1af6798fa61b5eb64f308f4719273047da1e155 | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractSleepysmutCom.py | 315dbd399ffd084df7ad20e203281fee61738490 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 541 | py |
def extractSleepysmutCom(item):
'''
Parser for 'sleepysmut.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'translated'),
('Loiterous', 'Loiterous... | [
"something@fake-url.com"
] | something@fake-url.com |
5cae4351928b729521bafe551e04ae158fbbd2f3 | d60acaac9e460c5693efe61449667b3c399c53c8 | /diffeq/logisticbifurcation.py | 392cc43dfa415350c9c23054e6d5784488977d9c | [] | no_license | HussainAther/mathematics | 53ea7fb2470c88d674faa924405786ba3b860705 | 6849cc891bbb9ac69cb20dfb13fe6bb5bd77d8c5 | refs/heads/master | 2021-07-22T00:07:53.940786 | 2020-05-07T03:11:17 | 2020-05-07T03:11:17 | 157,749,226 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | import matplotlib.pyplot as plt
import numpy as np
"""
Logistic map bifurcation
"""
def logistic(r, x):
"""
Logistic map function for nonlinear systems
"""
return r * x * (1 - x)
x = np.linspace(0, 1)
fig, ax = plt.subplots(1, 1)
ax.plot(x, logistic(2, x), "k")
def plotsystem(r, x0, n, ax=None):
... | [
"shussainather@gmail.com"
] | shussainather@gmail.com |
0d633341fde2c9a14894b86f9176f60ad162fbec | 33f8752eec25d8a621a0bf920455cc1b1e209a2c | /bvspca/core/migrations/0007_auto_20171128_1157.py | 3ef8a24cd14686bf7a51fda80e7a399ccfe41b4e | [
"MIT"
] | permissive | nfletton/bvspca | 196d2a381a9e0cacf6ac4156ecee5c785e7d14a9 | 4f4bceb96ace010f1d4c273c44da4f0ab5ea7f6f | refs/heads/master | 2023-07-06T12:03:15.037161 | 2023-06-29T16:59:16 | 2023-06-29T16:59:16 | 98,236,678 | 16 | 3 | MIT | 2023-03-21T12:55:02 | 2017-07-24T21:31:29 | Python | UTF-8 | Python | false | false | 2,914 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-28 18:57
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import wagtail.contrib.table_block.blocks
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.embeds.blocks
import ... | [
"nigel@thebluehut.com"
] | nigel@thebluehut.com |
78d13810a1e6bb93bb15484432df7fa156d11023 | 0b5eefd5ffe82115386967c7651f8b5597e8a290 | /pytorch_fcn/tasks/grid_regression.py | 14c8821ac2ba0cdced09787c55214a675854ddea | [] | no_license | erictzeng/ssa-segmentation-release | 18937313e734296d73f668c335b6fb7f0de8775a | 273150518dae414e2444a37d350695c1d2f719d2 | refs/heads/master | 2020-07-25T15:16:29.157905 | 2019-09-29T02:32:40 | 2019-09-29T02:32:40 | 208,336,085 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,896 | py | import logging
import numpy as np
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
from torchvision import transforms
from pytorch_fcn.data.util import Dispenser
from pytorch_fcn.data.util import JointDispenser
class GridRegression:
def __init__(self, net, source_dataset, target_datas... | [
"etzeng@eecs.berkeley.edu"
] | etzeng@eecs.berkeley.edu |
d972a62b9323c6f85d05028169be6448bfe93223 | f9095daa91eff8d905fd07c19fab685efc8fbce0 | /restro_chatbot/zomatopy.py | b3ce8a517c7c9d62ca84776a435173076f254a88 | [] | no_license | rajesh-1983/rasa-chatbot | 9dc7caadc5530b149249a637be5c41225686f30e | c036dbbf2328bcd31e10717ec63b3cdbaca51dcd | refs/heads/main | 2023-01-23T14:39:27.949677 | 2020-11-23T11:55:03 | 2020-11-23T11:55:03 | 314,994,844 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,994 | py | import requests
import ast
base_url = "https://developers.zomato.com/api/v2.1/"
def initialize_app(config):
return Zomato(config)
class Zomato:
def __init__(self, config):
self.user_key = config["user_key"]
def get_categories(self):
"""
Takes no input.
Returns a dictio... | [
"samal.rajesh@gmail.com"
] | samal.rajesh@gmail.com |
f5912e2123f410a7612cf682035db02dc8bc18e9 | e530adc12d601a0c29fe103cc93b2a63b1675f1c | /cours_2/devoir2-1.py | 0392bad3aff4efba5370ebdde9821584ea91ea7c | [] | no_license | floflogreco/Python | b7ee3502dc0653c650371a9dd3a4f7edd1334365 | 3180777cecc651d5266443faea06b195d3f69b0f | refs/heads/master | 2021-01-10T11:41:14.036704 | 2016-02-28T22:21:10 | 2016-02-28T22:21:10 | 51,670,505 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | def conversion(grade):
try:
grade = float(grade)
if grade >= 18 and grade <= 20:
print "A"
elif grade >= 16 and grade < 18:
print "B"
elif grade >= 14 and grade < 16:
print "C"
elif grade >= 12 and grade < 14:
print "D"
elif grade >= 0 and grade < 12:
print "F"
else:
print "Note doit e... | [
"flo@MacBook-Pro-de-Florian.local"
] | flo@MacBook-Pro-de-Florian.local |
b0391f312af0eaea6305f39574b9a3f17f511b59 | b1e7481f8b5bf40c2547c95b1863e25b11b8ef78 | /Kai/crab/NANOv7_NoveCampaign/2018/crab_cfg_2018_ElMu_A.py | 6670c230a950ef43e35c8eec67ec84cd44951904 | [
"Apache-2.0"
] | permissive | NJManganelli/FourTopNAOD | 3df39fd62c0546cdbb1886b23e35ebdc1d3598ad | c86181ae02b1933be59d563c94e76d39b83e0c52 | refs/heads/master | 2022-12-22T22:33:58.697162 | 2022-12-17T01:19:36 | 2022-12-17T01:19:36 | 143,607,743 | 1 | 1 | Apache-2.0 | 2022-06-04T23:11:42 | 2018-08-05T11:40:42 | Python | UTF-8 | Python | false | false | 1,524 | py | import os
from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromCRIC
config = Configuration()
config.section_("General")
config.General.requestName = '2018_ElMu_A'
config.General.transferOutputs = True
config.General.transferLogs = True
config.section_("JobType")
c... | [
"nicholas.james.manganelli@cern.ch"
] | nicholas.james.manganelli@cern.ch |
7e37cadb16e33d7025914cf45a90e8dc8e0cc047 | 4672ac3fd27c770273c6ba7327734f977dbc6fbd | /MessageApp/MessageApp/wsgi.py | b34ff558477211529bf17f286dff9910d8ae158f | [] | no_license | SiddharthaMishra/ITWS2proj | eaee65cc5e7ce0f010991fcd2c805dcbf64089d5 | 8f68e2437bcee3e0ee41986827b5ffd33a00e471 | refs/heads/master | 2020-03-14T12:53:20.204248 | 2018-05-15T15:38:28 | 2018-05-15T15:38:28 | 131,621,202 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for MessageApp 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"sidm1999@gmail.com"
] | sidm1999@gmail.com |
799ed2778e3347fdfe1c20170364b25de640d56d | 3d23630b055939c51ba7d117f74415326abfd483 | /tcdev/service/_user.py | 22d56fbcabd4e1d231789d02d0e72cdf17188769 | [] | no_license | cswxin/tcdev | fcaf305941f7a57ef232cc620c8d14e03584158a | 299b66b4b224da105404e2de57435134e305b67b | refs/heads/master | 2021-01-20T14:39:20.333742 | 2017-05-12T09:55:08 | 2017-05-12T09:55:08 | 90,641,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,672 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
from django.contrib.auth.models import User, Group
import logging
logger = logging.getLogger('logger')
#===============================================================================
# Model的直接操作方法,get_or_create、get、filter 等。
#=================================================... | [
"OceAn@.(none)"
] | OceAn@.(none) |
ed2528da38b20df9cee6a54a28e6c2d709807177 | 6d38f69c99bd335754a035543fecc0258c3eb95c | /customSelectors/testSelector1.py | 5fc4b93096912b9c483b697c7643372407afc397 | [] | no_license | gitter-badger/Command-Python-Code-2017 | 3be553cf2c98ee0e1dc7cbb1fddbabd315b87987 | 607ac03ca70f706d1714716058c2b5ed70402b81 | refs/heads/master | 2021-05-16T08:08:22.183149 | 2017-09-15T01:57:09 | 2017-09-15T01:57:09 | 104,015,605 | 0 | 0 | null | 2017-09-19T02:26:26 | 2017-09-19T02:26:26 | null | UTF-8 | Python | false | false | 513 | py | from wpilib.command.command import Command
from wpilib.driverstation import DriverStation
from selector import Selector
class TestSelector(Command):
def __init__(self):
super().__init__()
self.testSelector = Selector([("row1", "op1", "op2", "op3")], (0,))
DriverStation.getInstance()
... | [
"amboyscout@aol.com"
] | amboyscout@aol.com |
35e747980377ad316e7fce095b226c1973eb94fb | 03b7ff0f5f50b628c508be45a2e0d58b3f3a1325 | /application/search/forms.py | 4ef0f55e64dc4383f0d9c626b14edde31311edfa | [] | no_license | matiastamsi/KalastajanKaveri | 3600a57af9113ffb584a914e44c351416122b9e3 | ad704d562e5b283f2c77808b2ce2f34120d30164 | refs/heads/master | 2022-09-13T14:27:14.178145 | 2022-09-02T03:44:08 | 2022-09-02T03:44:08 | 246,577,322 | 0 | 0 | null | 2022-09-02T03:44:09 | 2020-03-11T13:23:19 | HTML | UTF-8 | Python | false | false | 238 | py | from flask_wtf import FlaskForm
from wtforms import SelectField, BooleanField
class SearchForm(FlaskForm):
species = SelectField()
spot = SelectField()
orderBySize = BooleanField()
class Meta:
csrf = False
| [
"matias.tamsi@gmail.com"
] | matias.tamsi@gmail.com |
3d1e485d4c0f308de487855b25b5b7b056570db7 | fb803366dd0d26275359a00d68b6a36dc538d4ec | /venv/bin/easy_install | d704af6760b4ac52ba67a0a3feb58ef8eb9e1616 | [] | no_license | mlastovski/supremeaiarena | e0db3bd541be8abb66cff122c2709d8d6f264fb9 | c2264babe3daefb78bad0ed26014c81589d4a01e | refs/heads/master | 2021-04-23T14:35:34.984263 | 2020-05-11T10:48:04 | 2020-05-11T10:48:04 | 249,933,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | #!/Users/marklastovski/PycharmProjects/supremeaiarena_backend/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-sc... | [
"mark.lastovskyy@gmail.com"
] | mark.lastovskyy@gmail.com | |
204b10c2e43f97a77e33f63c1875e7d84a5e018c | 6d470c2eaf67091fa47033f10da5344b8586bacc | /doc/examples/scrollbar.py | c1f4592ffba1d754af3be86260667b42a7487370 | [
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | djkool/OcempGUI3 | 5828dd5e8df2141256a23388a3993fb8c3c99731 | 43a68033cb0dbad10654231299cb762cd18b7c25 | refs/heads/master | 2023-05-13T11:57:42.415200 | 2021-06-08T07:18:36 | 2021-06-08T07:18:36 | 374,358,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | # ScrollBar examples.
from ocempgui.widgets import *
from ocempgui.widgets.Constants import *
def create_scrollbar_view ():
table = Table (2, 2)
table.spacing = 5
table.set_row_align (0, ALIGN_TOP)
table.set_row_align (1, ALIGN_TOP)
# Simple ScrollBars.
frame = HFrame (Label ("Simple Scr... | [
"andrewpeterson86@gmail.com"
] | andrewpeterson86@gmail.com |
3fff1e8913ecade61c264485b8d0d2ab2e8f1eef | ff768174490619c119d166273365dcc480e7201c | /tuiuiu/tuiuiuimages/migrations/0008_image_created_at_index.py | dbcc329edff45d13de512a5f638dee64e8a53c0d | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | caputomarcos/tuiuiu.io | 15ea9323be09b69efb6b88490c2bb558ffb4cc55 | d8fb57cf95487e7fe1454b2130ef18acc916da46 | refs/heads/master | 2022-03-02T12:56:43.889894 | 2017-09-23T22:53:51 | 2017-09-23T22:53:51 | 102,543,365 | 3 | 1 | NOASSERTION | 2022-02-02T10:46:32 | 2017-09-06T00:30:06 | Python | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tuiuiuimages', '0007_image_file_size'),
]
operations = [
migrations.AlterField(
model_name='image',
... | [
"caputo.marcos@gmail.com"
] | caputo.marcos@gmail.com |
23ead0a556ade621a30eb8d777ca691cda284a13 | f9c4548007d75d55b7bdf0e2ed3098a11e4083e1 | /preprocessing_package.py | 36548e87a4421f8e98e4dec015dbff517b8fc15f | [] | no_license | knut-henning/MovementClassification_Thesis | bbfa460e451a558a96432106d1f7e80326bcce6e | 7d0eb14d218f8e1ca07bef24c0ebfda950a9871c | refs/heads/main | 2023-06-11T19:56:19.228175 | 2021-06-29T19:25:53 | 2021-06-29T19:25:53 | 356,034,467 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,395 | py | # -*- coding: utf-8 -*-
""" Preprocessing package
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from datetime import timedelta
plt.style.use('seaborn')
__author__ = 'Knut-Henning Kofoed'
__email__ = 'knut-henning@hotmail.com'
def import_activity(data_path):
"""
Imports activit... | [
"knut-henning@hotmail.com"
] | knut-henning@hotmail.com |
e8b6d9e6ee98021eea15cbb842f0600d7552fee4 | b7508f8ecda22db0acc169ea7299b0a0d614405e | /Huffman.py | 2d1826bf5cbb53d41ded06d6827a99c08526a569 | [
"Unlicense"
] | permissive | SundarGopal/HuffmanEncoding | 2ad3576df72cf577997c641a92d688fae1171d77 | c2a4accf2675e0e44bdc607e3ef45d4ae56c776e | refs/heads/main | 2023-01-07T23:19:57.098096 | 2020-11-07T18:38:27 | 2020-11-07T18:38:27 | 310,909,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,801 | py | '''
@author [Sundar G]
@email [sundargopal17@gmail.com]
@desc [Huffman Encoding Scheme]
'''
#file = open('doc_aede9a09-f36f-421c-ac4f-1c76376016da.docx','r')
import docx as d
import heapq
import sys
file = d.Document('HuffmanAssignment.docx')
p = file.paragraphs
dictionary ={}
for i in p:
for j... | [
"noreply@github.com"
] | noreply@github.com |
93104fbe2660bf5252f22f0c831b363c1025c19e | 6c7a481f937e3979e9570e13eabc71434c94cfbb | /cfehome/settings.py | 508b835a11de10cd6fcd53dcc0f69ea427f60d64 | [
"Apache-2.0"
] | permissive | snoop2head/docker_django_sample | 59c3ba4bd4e83ec924b87f0b672e57858e278ec9 | 25403f1a656e42e36ae48ca4d5f2c338c178a28f | refs/heads/master | 2021-09-27T19:45:23.451562 | 2020-06-24T01:54:59 | 2020-06-24T01:54:59 | 250,829,449 | 1 | 0 | Apache-2.0 | 2021-06-10T18:53:42 | 2020-03-28T15:27:50 | Python | UTF-8 | Python | false | false | 3,182 | py | """
Django settings for cfehome project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"young_ahn@yonsei.ac.kr"
] | young_ahn@yonsei.ac.kr |
a6898783cf31e5ca77accada2f38bcc5d263acfb | e2733ff96927008c6b8c2c9a0fc36d57e61ad451 | /bcn_rp/migrations/0007_auto_20170325_1713.py | 6dad1aeed31ad81e17ba2886f880b8d45b69c47e | [] | no_license | miquel-corral/bcn_rp | 9504a19ed7b5abcd3d8490470883d4e6be500806 | 00b8fa83c9bdbc095916868afe552ddf23d88b0d | refs/heads/master | 2020-04-06T04:06:56.615536 | 2017-03-26T20:32:34 | 2017-03-26T20:32:34 | 83,038,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-25 17:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bcn_rp', '0006_auto_20170325_1125'),
]
operations = [
migrations.AlterField... | [
"miquel.corral@gmail.com"
] | miquel.corral@gmail.com |
254c477f7b6696bb460c4e385c44a4647974b388 | 42f1e442ee88a2bb541de1ce2d30513a183a5c3e | /api/cli/predict.py | 1b5c4741639dff905c556d0e45280e86a87eb68e | [
"MIT"
] | permissive | yastai/YastAI | 535e6edd8851a54d98d3be0479a7359db672996d | f5a05841126da4acd9b7250c5bf6f627ac1703d5 | refs/heads/master | 2022-12-04T15:50:20.163698 | 2020-08-24T06:44:53 | 2020-08-24T06:44:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | def predict():
raise NotImplementedError
if __name__ == "__main__":
import argparse
ap = argparse.ArgumentParser(description="Consume trainend model.")
args = vars(ap.parse_args())
predict()
| [
"sebastian.borquez.g@gmail.com"
] | sebastian.borquez.g@gmail.com |
78689f753ab8940dfc5e35772d0880fff3150950 | 1f80f5f439e6fdbd80edeedb0e0bf1452ebb86d6 | /vehicle/migrations/0001_initial.py | 0c27e9db042a47cb3a854fa09fa7946450206925 | [] | no_license | asimejaz14/cabrooz-project | 3465ddd3ddcd5071140dba59772e6d18277c1e45 | 47611d3fed2a66cfd908e31915ffea215b27485b | refs/heads/master | 2023-07-23T06:50:30.507368 | 2023-07-18T12:01:00 | 2023-07-18T12:01:00 | 370,489,574 | 0 | 0 | null | 2023-07-18T11:59:22 | 2021-05-24T21:30:50 | Python | UTF-8 | Python | false | false | 908 | py | # Generated by Django 3.2.3 on 2021-05-29 08:24
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Vehicle',
fields=[
('id', models.BigAutoFie... | [
"asim.ejaz14@gmail.com"
] | asim.ejaz14@gmail.com |
f9684b93c85517e725cb733ab16376c145a8c709 | 8d285d4933c58557f3362838993e03e9a12ba6c0 | /examen02.py | 68ac113244272ac3f5241693250cd511c59aa72a | [] | no_license | mprotti/CursoPhyton | 18b4cec996cbb4b6a5c46ac4a6f5af0925309a62 | 23c64a48c65d315e1b5644f64555fb66a0d1b4b6 | refs/heads/master | 2020-05-30T23:18:11.151205 | 2019-06-13T16:49:02 | 2019-06-13T16:49:02 | 190,014,055 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py |
#Escribir una clase en python que revierta una cadena de palabras
#Entrada: "Mi Diario Python"
#Salida: "Python Diario Mi"
class revierta():
def __init__(self, string):
self.string = string
self.invertida = string.split()[::-1]
self.invertida = ' '.join(self.invertida)
def __str__... | [
"m21protti@gmail.com"
] | m21protti@gmail.com |
311abd6f195d36542f90a27ae366b5bbe1325dd5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02586/s677278751.py | be1ac288360753caa4fa9d68ee573cb35be6d292 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | import sys
sys.setrecursionlimit(10**7)
readline = sys.stdin.buffer.readline
def readstr():return readline().rstrip().decode()
def readstrs():return list(readline().decode().split())
def readint():return int(readline())
def readints():return list(map(int,readline().split()))
def printrows(x):print('\n'.join(map(str,x)... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b70d7b4c692b7c651a29ec4e41e3a02cc4a36414 | 9efead193cfde1d6330288e1a6916b764eff9a80 | /discreet_mathematics/reverse_linked_list.py | 20b54829231a5346f665298694c67ecb0e5ea01f | [] | no_license | lukorito/ds | f860d0c84060065362342bbc0fca6c2e63c68380 | d1a7136d63b5c807c7b4e263caa097d813fa1a0c | refs/heads/main | 2023-04-30T02:40:27.121008 | 2021-05-18T07:35:10 | 2021-05-18T07:35:10 | 314,171,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # Input: 1->2->3->4->5->NULL
# Output: 5->4->3->2->1->NULL
# ITERATIVE
# Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def reverseList(self, head: ListNode) -> ListNode:
prev = None
curr... | [
"lukkitt@live.co.uk"
] | lukkitt@live.co.uk |
278c497eb215b7dcdf428ea2e4bf87f61ce8be94 | c38555124875d475cac00703318983a492a91ff4 | /scripts/ansi-to-gitlab-markdown.py | f34983c4d1202d4da22b72bc706364c1fa54d3f8 | [] | no_license | c-zuo/gcp-turbo | 7e72de63fb012491dfc6a2239a0fa115f75027cb | 1d034538d8e4c88b4d5643c7353036854ab1f4bb | refs/heads/master | 2023-01-31T16:51:04.439322 | 2020-12-15T15:12:39 | 2020-12-15T15:12:39 | 321,696,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | #!/usr/bin/env python3
from sys import stdin
import re
addition = re.compile(r"(\x1B\[3\dm)(.+?)(\x1B\[0m)")
heading = re.compile(r"(\x1B\[1m)( *# .+)")
emphasis = re.compile(r"(\x1B\[1m)(.+?)(\x1B\[0m)")
ansi_seqs = re.compile(r"\x1B\[.+?m")
print('<pre>')
for line in stdin:
line = line.rstrip('\n')
line = h... | [
"chenzuo@google.com"
] | chenzuo@google.com |
8f34b168e70a6d53b046eb78589ccb3cdef153e7 | a93cfeed4c2a2833f1896bf5f39aa31955f21efe | /Data Structures/Sorting Algorithms/Selection.Sort.py | c162f4c55b60231f107988ad8b2a5a2489a1a4c3 | [] | no_license | akshat343/Python-Programming | ae83d05408fb67d51d388df22492dfe743596b2a | f5a1540770388e49d65536352ce1816c406d5229 | refs/heads/master | 2023-08-05T19:58:40.293770 | 2021-10-07T07:25:46 | 2021-10-07T07:25:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | #Author:Robin Singh
#Problem on selection sort algorithm
# selection sort:in selection sort we consider two sub array list
# 1.)selection sort algorithm divides the input array list into two parts:
# 2.)a sorted sublist of items which is built in from left to right at the front (left side) of the array list
# 3.)and a... | [
"Robin25Tech@gmail.com"
] | Robin25Tech@gmail.com |
fb9ace085f83b2c784be8b80bbbd36fd98b8cf71 | d61fad70c07644b7ad6c1cb1d52fab9ab65db6f3 | /PS2/proj2_code/projection_matrix.py | ae0ec16b1fa952e934218fca8cf72a33635110f2 | [] | no_license | meera1hahn/Computer_Vision_CS_6476 | 3991184c710dcb03c7e98fb064e2daedb76c0be8 | fa812f4e125555d380e3cefbb6fe8bd0b24fb461 | refs/heads/master | 2023-08-30T23:56:31.462794 | 2020-08-12T04:54:16 | 2020-08-12T04:54:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,622 | py | import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from scipy.optimize import least_squares
from scipy.optimize import minimize
from scipy.linalg import rq
import time
def objective_func(x, **kwargs):
"""
Calculates the difference in image (pixel coordinates) and retu... | [
"tpasumarthi3@gatech.edu"
] | tpasumarthi3@gatech.edu |
e3f2b333eb10b93e318804ca96644a90273b6d39 | 0be7bbe668723f669257d759bec6da49bccc40c3 | /数据处理/输入神经元的数据处理/3_GetPopularKeywordData.py | dd6a936b745eba80ee885fa877dc0716b655694c | [
"Apache-2.0"
] | permissive | xingyu321/SZU_gwt_predict_network | 57e8ded0a896c24068cde601d00cd164d88b116e | 13e0191318f63cc8dae4d62ccd70fce87f5393ef | refs/heads/master | 2022-11-13T07:53:02.455057 | 2020-07-13T06:15:46 | 2020-07-13T06:15:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | """
这个脚本的目的是把数据中出现频率前1534名的关键词找出来
由2脚本可以知道前1534名的关键词正好就是出现次数不小于20的公文
"""
import json
# 读取数据
with open('数据处理\\输入神经元的数据处理\\2_word_weights.json', 'r', encoding='utf-8') as f:
_data = json.loads(f.read())
new_data_list = {}
# 找到并存储出现次数超过38的关键词
for keyword in _data.keys():
if _data[keyword]['total_doc_num'] >= 20:... | [
"56833537+cjw-bot@users.noreply.github.com"
] | 56833537+cjw-bot@users.noreply.github.com |
6ae367f46c4e0630eabdc3e3c950b315dad2b7c9 | 7044947d6a1e5d0754af1c3b9ecb4407452d61c4 | /pitstop/encodings/__init__.py | 4ec53cf02b334023b962835cb60f2d0f39a05b81 | [
"MIT"
] | permissive | darvid/pitstop | 1e2d3ea0f45b037f558ae1b4f28396bdfa89a51a | 517fd3631b437bc5591cea10aacbecde7d21e9ac | refs/heads/master | 2020-04-09T04:16:21.166646 | 2018-12-05T02:36:54 | 2018-12-05T02:36:54 | 160,016,392 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | """Provides encoding interfaces for various configuration file formats."""
| [
"david.gidwani@gmail.com"
] | david.gidwani@gmail.com |
ce1acce5ee2167090f5425a41c17edd5b087b61e | 473727c4829597b0cba18126e2c56888ad8c71e3 | /leetcode/213. House Robber II.py | 3601d4ee49a093ee7d9c9a8023f85a59fba79672 | [] | no_license | unclemeth/python_au | d3fc99b01125ea0b6d3352e762df5556e21134fc | ff49977d39217614840fdc35e6460898a3e13fb6 | refs/heads/master | 2023-05-08T12:57:09.453617 | 2021-05-28T21:11:37 | 2021-05-28T21:11:37 | 302,641,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | class Solution:
def rob(self, nums):
if not nums: return 0
if len(nums) < 3:
return max(nums)
nums1 = nums[:-1]
if len(nums1) < 3: return max(nums1)
a = nums1[0]
b = max(nums1[0], nums1[1])
for i in range(2, len(nums1)):
Curr_max = max... | [
"unclemeth@mail.ru"
] | unclemeth@mail.ru |
32f27d3345124aa64f6acab0a9804e45ee8ce109 | 975f7bb7a94d6dae5a2e13e27081f3ab3e7cc22e | /Contactmanager/Contactmanager/urls.py | c84a2b7c13e0f9e563aa8364764b104c3197d914 | [] | no_license | saipraneethkurmelkar/THIRDJANGO | 91fa04d7bfcd06534015ab1acfe4780ca6c117c8 | 0fe9102f7491f9c7609a505baf51b13cc7929db5 | refs/heads/master | 2020-04-17T11:16:23.293622 | 2019-01-19T10:33:25 | 2019-01-19T10:33:25 | 166,534,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | """Contactmanager URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"info@info.com"
] | info@info.com |
63fbe68ce66e9cf557af763efa4ef7d6f3c9431e | 589c7b665871fd901070461af0529a83bed50dbd | /Python_LetsKodeIt/Exception-Handling.py | d9d332b3cd03448029645666b1562e4b8bb34f25 | [] | no_license | rajeshvelur/django-deployments-example | 661ab09a0e8385ece9078a1125d8a25030f30e93 | baa03f066a45fe89cd670889dfab4c705f286112 | refs/heads/master | 2020-04-01T08:25:17.248545 | 2019-06-20T15:31:05 | 2019-06-20T15:31:05 | 153,029,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | # def exceptions_handling():
# try:
# a = 30
# b = 0
# c = 20
#
# d = (a/b)-c
# print(d)
# except:
# print("Zero Division Exception")
# raise Exception("this is an exception")
# else:
# print("Bcos no exception found")
# finally:
# ... | [
"rajesh.kumar1@spglobal.com"
] | rajesh.kumar1@spglobal.com |
d1dd1de24c57b4399179bb5d549a990b01e72380 | 754a7854a09fb9e3add486e32d0ccb86b02a8847 | /14_ng.py | 81fa21b37320b13e645093af48fbf3b37a3dda1d | [] | no_license | AmanouToona/atcoder_Intermediate | 724824d0aba932b0cbc09b1e05a91741a1435497 | 61a2f454a8a95a3dd775edaf59ec60ea95766711 | refs/heads/master | 2023-01-03T19:21:51.710058 | 2020-10-26T12:16:42 | 2020-10-26T12:16:42 | 267,562,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | # Square869120Contest #4 B - Buildings are Colorful!
import sys
N, K = map(int, sys.stdin.readline().strip().split())
a = list(map(int, sys.stdin.readline().strip().split()))
def dfs(height=a[0], cost=0, target=K, can_see=1, i=1):
if can_see == target:
return cost
# 端まで探索したとき
if i == len(a):
... | [
"amanou.toona@gmail.com"
] | amanou.toona@gmail.com |
f759243ca8cb43b3d912b30fca2464aca3d24563 | fcbc308e67905631116f7f8bb8723fb615da328b | /week4/linked_list3.py | 4e6ca97373fc75c67105e65bb7ace0e59d96bef7 | [] | no_license | Sally-A/Python_fundamentals | b08d8f4d838431c4a4bce9772d53e5fa130f5689 | 14707757b17170c4568635bdcb4f68acda7a7446 | refs/heads/main | 2023-08-10T11:33:41.516127 | 2021-09-11T17:17:18 | 2021-09-11T17:17:18 | 396,183,497 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | class Node:
def __init__(self, value):
self.value = value
self.next = None
class LinkedList:
def __init__(self):
self.head = None
def append(self, value):
new_node = Node(value)
if self.head is None:
self.head = new_node
print("Head Node... | [
"Sally.Anderson@gmx.com"
] | Sally.Anderson@gmx.com |
9be2c18bb860725099d2e3a23e3256236c2683db | de482bf09ff73d60f59924c2f67b74431d91bd6d | /detector.py | e75714e19d71ce17a710049ca8f5d3f0fda734d3 | [] | no_license | fulequn/MTCNN | 2f42b2f11dc363595a2480ca97c6b7cce028563e | 6abcc11e1b69b34a989291c5d0c4210f079f20d4 | refs/heads/master | 2022-04-03T20:22:31.933960 | 2020-02-13T11:49:55 | 2020-02-13T11:49:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,571 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@Author: JianboZhu
@Contact: jianbozhu1996@gmail.com
@Date: 2019/12/1
@Description:
"""
import os
import glob
import numpy as np
import cv2
from nets.mtcnn import p_net, o_net, r_net
from preprocess.utils import py_nms, process_image, convert_to_square
class Detector:
d... | [
"1191353802@qq.com"
] | 1191353802@qq.com |
1df0bc1d14f1f081ed9efbbc55acd412710f0d32 | 82050bff6e809419a170a992924f33b09bdf26fb | /functions/braceParser.py | b0177cffac00b112bed9b12e2e323ff5c08669f0 | [] | no_license | Phoshi/OMGbot | f1ffb9ae4d98bfe04bb68647c48335afdf39b224 | 402a50dcaa570dad3d17da6b84a201518c85b550 | refs/heads/master | 2016-09-05T16:34:39.830212 | 2012-02-29T23:23:24 | 2012-02-29T23:23:24 | 1,910,305 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,716 | py | # -*- coding: utf-8 -*-
#BraceParser.py
class countError(Exception):
def __init__(self, expr, msg):
self.expr=expr
self.msg=msg
def __str__(self):
return self.msg
def parseBraces(input):
matchArray=[]
lookingForConditionals=True
conditionalArray=[]
conditionalSyntax=["(",... | [
"AHPhoshi@gmail.com"
] | AHPhoshi@gmail.com |
ae969e5baa7b48325cb6f6fdbe1d53881a439e63 | c248b9e128eaf1fe8b49f5865e2a1e6f6dbf856d | /main_app/migrations/0004_finch_toys.py | b1a60f0048953a80b4e18f7025e7d40296a7956f | [] | no_license | jenny-martin/finchcollector | 8826c02689289a115e9c446631b7bc009c7beaf4 | b6722d9ea018bf937608a3e0fa8791fa534f79c3 | refs/heads/master | 2020-06-12T01:09:42.708428 | 2019-06-27T18:49:29 | 2019-06-27T18:49:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 2.2 on 2019-06-27 05:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main_app', '0003_auto_20190627_0504'),
]
operations = [
migrations.AddField(
model_name='finch',
name='toys',
... | [
"jennymartin@Jennys-MacBook-Pro.local"
] | jennymartin@Jennys-MacBook-Pro.local |
192bda4fe1e44cd80c1eec10fcbed5a8fa12c812 | 27648171f6e9675ea1a2716445d34a4346693a86 | /rnn_mnist.py | 6773ed60e49b792ecba3763595642991632370fd | [] | no_license | kniranjankumar/toyexamples | fc2700baec30f2d2888e3cb4f3f4f7b648402986 | f30df3f4265fd4adc9093503abbfd09f65716443 | refs/heads/master | 2020-03-06T19:35:37.809594 | 2018-03-30T20:15:38 | 2018-03-30T20:15:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | import tensorflow as tf
from tensorflow.contrib import rnn
import tensorboard
#import mnist dataset
from tensorflow.examples.tutorials.mnist import input_data
mnist=input_data.read_data_sets("/tmp/data/",one_hot=True)
#define constants
#unrolled through 28 time steps
time_steps=28
#hidden LSTM units
num_units=128
#row... | [
"kniranjankumar.eee@gmail.com"
] | kniranjankumar.eee@gmail.com |
053cc4671f3315c7c3119626f671455faea3e89f | 2c04c06f8604a58ac9828aa6ee157593363a4806 | /day_16.py | 88dc24649a2f7f043f43246829d7a61ca0fd9fa4 | [] | no_license | mtskillman/advent_of_code_2015 | e3ee16cb26127bb16a0617129ea8a5568c55a6aa | 9b3efe1e63a519040dffc5442a65db859fa7475d | refs/heads/master | 2020-09-14T23:41:23.163003 | 2019-12-18T22:08:58 | 2019-12-18T22:08:58 | 223,296,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | class Sue(object):
def __init__(self):
self.data = {
"Sue": None,
'children': None,
'cats': None,
'samoyeds': None,
'pomeranians': None,
'akitas': None,
'vizslas': None,
'goldfish': None,
'... | [
"noreply@github.com"
] | noreply@github.com |
75e88cff3fe29feac841a80d10159553491a9f31 | 8c11776fc0e57b64eaae57ad858ee1a17bc7e468 | /classes/room.py | 8c6806ab0319e5da4a5589d0afa80882dcc32578 | [] | no_license | sluisdejesus/weekend_02_homework | 1e6c42c595b1d839b06a24a7de49fe00af46f93f | 7147fae8d9f42deb9e2cd7c9ad26be6dafee2a93 | refs/heads/main | 2023-06-05T16:34:30.715855 | 2021-06-27T20:42:37 | 2021-06-27T20:42:37 | 380,834,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | class Room:
def __init__(self, name, capacity, entry_fee):
self.name = name
self.capacity = capacity
self.entry_fee = entry_fee
self.songlist = []
self.guest_list =[]
def guest_list_length(self):
return len(self.guest_list)
def add_guest(self, guest):
... | [
"sluisdejesus@gmail.com"
] | sluisdejesus@gmail.com |
b68050786382db1605fb5824277e5debdaa21223 | c9829e9c06ac4f3c7de5056816373dd9239b32f9 | /FIBD/fibd_nick2.py | e10303797467018ec1c395fe577e813fc289a4a1 | [] | no_license | KorfLab/Rosalind | 74a6e741c7029adfa9b22d5726290aabbcd8c82a | ac6bcac289d56c88bcff524329b6905d7dc32c8e | refs/heads/master | 2020-06-10T11:23:31.438577 | 2017-04-04T03:08:27 | 2017-04-04T03:08:27 | 75,968,327 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | #!/usr/bin/env Python2.7
#fibd_nick2.py
#actual recursion which is bad for runtime
#adults
def rab_a(n,m):
if n < 2:
return 0
else:
return rab_a(n-1,m) + rab_y(n-1,m) - rab_y(n-m,m)
#young
def rab_y(n,m):
if n == 0:
return 0
elif n == 1:
return 1
else:
return rab_a(n-... | [
"noreply@github.com"
] | noreply@github.com |
c973341b4f11c03a21a805bbdb4c380ecfb3f7b0 | 064370ae71f0c36acafcf3e862623b16768f4f5f | /profiles/admin.py | 606cf2db8bf04f7a1236c4d4d00b1c6818bea6ed | [] | no_license | Seishin/thesis-server | c2d6310679c13e870f7563a58583db59377c6164 | f50220083805d1249a3403c8c67842258d808ab3 | refs/heads/master | 2021-01-18T18:16:52.703827 | 2013-10-14T18:50:54 | 2013-10-14T18:50:54 | 13,569,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from django.contrib import admin
from profiles.models import *
admin.site.register(Profile)
admin.site.register(Student)
admin.site.register(Faculty)
admin.site.register(Major)
admin.site.register(Mark) | [
"seishin90@gmail.com"
] | seishin90@gmail.com |
264bf2869c0e3418827933e5e74ceb8aca07fb31 | 467db1b130cf66ed614bf79aaf3d6c8e614ed279 | /Quesko/Quesko/asgi.py | dbc1ed039d2a809f3ac90c0eaf2b5470c1633578 | [] | no_license | prabhat510/Quesko | c84b2894122ca8896dc910fcf7b7f76a1f2dfe91 | 39a1c7f4e9835b895b57a90267282ba84fa5756e | refs/heads/master | 2023-06-06T22:29:31.102631 | 2021-06-29T04:36:13 | 2021-06-29T04:36:13 | 380,930,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for Quesko project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"prabhatbhargava510@gmail.com"
] | prabhatbhargava510@gmail.com |
51bf928b89bd5bd6aae923b7e82be036bc0ee86b | 6c646968638c7dc8702059cf9820ff5d8170b97f | /ML_HW3_Maxent.py | 8f9da2f787e90ab14da66a24ba730af60a64c91d | [] | no_license | AnushreeDesai35/ML_LogLinearModel | b131d9ed638c612e26ab9e1259993c23aeb19e01 | 1814f3dc177c80c99b65effddeb261a9ff7f1d89 | refs/heads/master | 2020-05-07T15:55:01.562397 | 2019-04-10T20:38:00 | 2019-04-10T20:38:00 | 180,659,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,877 | py | #%% Change working directory from the workspace root to the ipynb file location. Turn this addition off with the DataScience.changeDirOnImportExport setting
import os
try:
os.chdir(os.path.join(os.getcwd(), 'ML_HW3_Anushree_Desai_Code'))
print(os.getcwd())
except:
pass
#%%
import gzip, pickle
import numpy as np
fro... | [
"anushreerdesai@gmail.com"
] | anushreerdesai@gmail.com |
90ca6cd3d511b423fe14fa6ce58530a108c3b1c8 | 525dbcabc7bc0103c25d31e665234d7288e2b109 | /spider/ArticleSpider/ArticleSpider/spiders/fang.py | 8555decd5c48703e0d538e3803b5ff019c346ff0 | [] | no_license | zihanbobo/spider | 8ffce0bc33c2be52f27a3c5ede4953e903c2ae08 | bfe14b64d4bc308e3625217ca10b8844628d0777 | refs/heads/master | 2022-10-29T19:05:39.504154 | 2020-06-22T07:20:12 | 2020-06-22T07:20:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,553 | py | # -*- coding: utf-8 -*-
import scrapy
import re
import copy
from urllib import parse
class FangSpider(scrapy.Spider):
name = 'fang'
allowed_domains = ['fang.com','esf.fang.com']
start_urls = ['https://www.fang.com/SoufunFamily.htm']
def parse(self, response):
trs = response.xpath('//div[@class="... | [
"1723742002@qq.com"
] | 1723742002@qq.com |
996bbdb7c1851bb11a386d797fe76ac642f526bd | 8e096d61a991896d12ddcbea45481350610b70f9 | /mysite/mysite/settings.py | 3b6059f9f0d9af3357feffcb9d854df46efd2620 | [] | no_license | belac2014/Distributed-web | 73f0317b55676e6f8b36dee082014c2047a8f814 | dd73f5ff91d6a19866bf09a15feae3a5041bc999 | refs/heads/master | 2021-01-18T22:13:56.073045 | 2016-10-30T15:48:25 | 2016-10-30T15:48:25 | 72,358,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,166 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
#... | [
"noreply@github.com"
] | noreply@github.com |
552c2eeb9f0700849e6c8187b82028428a7bf597 | a4ab4d9fa6cfcc40735d3ce36b44bb75761bafcb | /train.py | 20890b22f01f1b24de05a897f501b3792d0bbb41 | [
"MIT"
] | permissive | RemusMaz/tensorflow-deeplab-v3 | 5d2ee1e262777820682a8cf874d3962de47a7488 | ceef67876c73d80d225817e5fbf7d640b63a7a9a | refs/heads/master | 2020-06-22T22:11:55.472815 | 2019-07-23T11:09:25 | 2019-07-23T11:09:25 | 198,413,089 | 0 | 0 | MIT | 2019-07-23T11:03:10 | 2019-07-23T11:03:10 | null | UTF-8 | Python | false | false | 10,484 | py | """Train a DeepLab v3 model using tf.estimator API."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import os
import sys
import tensorflow as tf
import deeplab_model
from utils import preprocessing
from tensorflow.python import debug as ... | [
"rishizek@gmail.com"
] | rishizek@gmail.com |
14c287e40ef9f07fe3dd6944c53d3460a99de7cb | 85b7487c00cabf70cbcf180c5015ac4886e78fb1 | /test/support/__init__.py | bdbdb8f5f19075bc664a148dbdf532d577c3550c | [] | no_license | mkatsimpris/test_jpeg | 7e686f27ac54db4128f4edbeb42b7cd284db0fa4 | ee626d87e26a08d5ce80f73a883f00703ff34e70 | refs/heads/master | 2020-04-06T04:49:58.952565 | 2016-08-17T21:41:25 | 2016-08-17T21:41:25 | 49,828,665 | 3 | 2 | null | 2016-07-25T16:50:52 | 2016-01-17T17:58:21 | Verilog | UTF-8 | Python | false | false | 254 | py |
from __future__ import absolute_import
from .jpeg_prep_cosim import prep_cosim
from .jpeg_v1_intf import JPEGEncV1
from .jpeg_v2_intf import JPEGEncV2
from .jpegenc_v1_top import convert as convertv1
from .utils import set_default_args, get_cli_args
| [
"chris.felton@gmail.com"
] | chris.felton@gmail.com |
ea73fc00d79fab77b32fe0f24d9a8ff83f5dd9d9 | a50b0a95ea78261db784f6b18c2c261586ade594 | /561L_output_to_BigWig_GFF3.py | 3d1e7e679dc81986444b2556a8b8f63e74d0cdee | [] | no_license | moss-lab/561L | b0763d6a383afb167ac30ed6f033156ddbc10d60 | 16e3da9b8f48be0da3c25b5a33b97f6407e33b26 | refs/heads/master | 2022-02-11T01:17:54.895702 | 2021-11-05T18:45:58 | 2021-11-05T18:45:58 | 119,561,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,784 | py | #!usr/bin/python3.6 -w
#This program will take a the output from the ZScore_calculation.pl program append
# convert it into bigwig tracks.
#
# Usage:
#
# $ python3.6 thisScrip.py inputfile
#
import sys # this will allow for the use of system argument inputs
import re
import pyBigWig
filename = sys.argv[1] # this s... | [
"randrews@iastate.edu"
] | randrews@iastate.edu |
8bd4bf5943f0f605a35ed8fb4e0e76f7c9860468 | b781f91398860c1ecfd4d69a4c64b770e40ab602 | /time.py | 1b419b58c02feb893740ed5702d17d6e80ddc156 | [] | no_license | lclarke98/Hue-motion-sensor | 90bc53aef710cac9d8156af8585eefcd465dbdbc | 3a99e8a608997e713167f27beb8750723e155df3 | refs/heads/master | 2022-04-08T13:13:09.982197 | 2020-01-01T22:09:25 | 2020-01-01T22:09:25 | 196,085,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import datetime
from astral import Astral
city_name = 'London'
a = Astral()
a.solar_depression = 'civil'
city = a[city_name]
print('Information for %s/%s\n' % (city_name, city.region))
timezone = city.timezone
print('Timezone: %s' % timezone)
print('Latitude: %.02f; Longitude: %.02f\n' % \
(city.latitude, ci... | [
"48065423+lclarke98@users.noreply.github.com"
] | 48065423+lclarke98@users.noreply.github.com |
3d7b976dfd0d9a0a52763a1c2002dca8ee09d178 | 4f1f639ab5ca26a5e9efb57902bdf8ff62443446 | /t/vektivaSmarWi/smarwiEmulator.py | 956c0d9136d5e2429d2db2d90b99e33827ceeba9 | [
"BSD-3-Clause"
] | permissive | CESNET/siotgateway | 9965ae67d7c86014b6bb799d03b1e0a5063c11c6 | f3f4bc59a27760dddb818ae83c7c3371a7c2d757 | refs/heads/master | 2023-04-15T09:38:47.509990 | 2019-11-03T20:09:26 | 2019-11-03T20:09:26 | 133,476,838 | 1 | 1 | BSD-3-Clause | 2018-11-04T20:51:18 | 2018-05-15T07:26:52 | C++ | UTF-8 | Python | false | false | 16,112 | py | import argparse
import http.server
import json
import logging
import paho.mqtt.client as mqtt
import re
import signal
import socketserver
import sys
import time
from threading import Thread, Lock, Event, current_thread
DEFAULT_HTTP_SERVER_PORT = 8080
# HTTP server runs on localhost
DEFAULT_MQTT_URL = "localhost"
DEFAU... | [
"xbedna62@stud.fit.vutbr.cz"
] | xbedna62@stud.fit.vutbr.cz |
a02b765eefb1c6726e25ba1b5d0361858f7e85fa | c015cd73e1e8c48b4d4aea3c871835bef02941bd | /testing.py | 118b6cd2e58873b1731d4bc1471ae5bb5059df07 | [] | no_license | RichaYadav/python | 02fa218f9774f4a90df02ac4e9dcf33fc7813612 | 13fa1a0648a6e24ef7cd791cea3fb1fcbc3c66d2 | refs/heads/master | 2021-01-23T04:14:46.423229 | 2017-03-25T19:12:06 | 2017-03-25T19:12:06 | 86,180,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | import json
from pprint import pprint
from db import database
class Testit:
def parse_insert(self):
file = open("test2.json")
json_data = json.load(file)
pprint(json_data)
#for r in json_data['results']:
# kind = r['kind']
Testit().parse_insert()
| [
"noreply@github.com"
] | noreply@github.com |
240c3495c4ce8e4a18d227a9481367db872addca | dd8db5054f3e9cb3aa434cdf72c68a23bf4ab4cb | /botCode.py | 520e4981b7a2402707338ce9a4a9a9b852f2d298 | [] | no_license | Skinbow/MathBot | 60f10bfdfcb23581a5318c314706899b4b6fedb6 | a7917c3002434381db0a30391ae098fe75710e72 | refs/heads/master | 2020-05-15T18:39:21.012128 | 2019-04-20T18:05:49 | 2019-04-20T18:05:49 | 182,435,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,862 | py | # -*- coding: utf-8 -*-
import config
import telebot
import random
import threading
flag = 0
x = 0
y = 0
score = 0
# 0 - игра не началась
# 1 - игрок ждет вопрос
# 2 - мы ожидаем ответ
# 3 - пауза
# 10 - начать ли заново?
# 11 - ожидать ответа
# 12 - начать заново
TimeOut = False
waitingThread = threading.Thread(tar... | [
"noreply@github.com"
] | noreply@github.com |
819f04b29755ef76d76e6ed4a25e45463c984b64 | 359bdc553338ff1d6a79b97fd2cb944d7dffe9d0 | /db_repository/versions/054_migration.py | f7603392694742787cb8c69c6f8cbc0ce40244ff | [] | no_license | HumanInteractionVirtuallyEnhanced/PythonAnywhere | 3f8776906d1f41fb89baee95a1729f6ba03f55b6 | d9f2fbc7d59d302b38728de5f0dd16830cd72860 | refs/heads/master | 2021-01-10T17:55:45.561457 | 2015-10-06T18:07:57 | 2015-10-06T18:07:57 | 43,767,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | from sqlalchemy import *
from migrate import *
from migrate.changeset import schema
pre_meta = MetaData()
post_meta = MetaData()
user = Table('user', post_meta,
Column('id', Integer, primary_key=True, nullable=False),
Column('nickname', String(length=64)),
Column('email', String(length=120)),
Column('... | [
"rijul.gupta@yale.edu"
] | rijul.gupta@yale.edu |
19f97b46e444e83a2f72744a9002611efe7ccf0a | 69e5676a801c5446ddec5e1cfd8daf527dbb3ab9 | /stringcheese/wrangling/get_fficutout.py | 917178ace1351e624d1dfa092c3a7e383136a123 | [
"MIT"
] | permissive | lgbouma/stringcheese | 96d8d48aaa8da9da92744401bba5498399758636 | e7f5919335f18d54f331e67f4df1a48e4904526d | refs/heads/master | 2020-07-07T10:11:29.697659 | 2020-03-29T19:05:52 | 2020-03-29T19:05:52 | 203,321,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import requests
from astroquery.mast import Tesscut
def get_fficutout(c_obj, cutoutdir=None, sector=None):
# c_obj (SkyCoord): location of target star
print('beginning download tesscut for {}'.format(repr(c_obj)))
try:
tab = Tesscut.download_cutouts(c_obj, size=20, sector=sector,
... | [
"bouma.luke@gmail.com"
] | bouma.luke@gmail.com |
eab276022ecd0a31712c12691147b17b34c02bb8 | 8c2fa488008257c9fd69b86b45e9a9842b70fdff | /PS2/Disparity_with_noise/contrast_disparity/disparity_with_contrast.py | cf01e106bb020548f7b4793a7e8a8da4897d456d | [] | no_license | dheeraj141/Computer-Vision-Udacity-810-Problem-Sets | bf002f3c4e6fad274ec3a159f2c44a89b6828123 | 7b3439083f5706b552ad17cd5ab0d721def80cc9 | refs/heads/master | 2021-06-24T12:11:55.355716 | 2021-06-13T00:37:37 | 2021-06-13T00:37:37 | 208,757,980 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,507 | py | import numpy as np
import cv2 as cv
import ps12 as ps
import sys
import math
import multiprocessing as mp
#main function to calculate SSD
def check_img(img):
if img is None:
return 0
else:
return 1
def add_gaussian_noise(mean, sd, left_image):
h,w = left_image.shape
... | [
"dhiru5040@gmail.com"
] | dhiru5040@gmail.com |
1a6a6d190573f01bbf7d17a030aaa51dbe22656f | 51dcd31096526bfa6aeae4baea9f0f45657c6623 | /ocean/tests/util.py | dba4670d5424620103eed74a400c139a2532af16 | [] | no_license | sopac/ocean-portal-docker | eba5de774e5a2b3e9b019440c39e7f0041715dd9 | 159aeba7143e66fdd9ed253de935407f898b4873 | refs/heads/master | 2021-01-20T08:07:58.698449 | 2017-09-10T09:24:04 | 2017-09-10T09:24:04 | 90,103,531 | 1 | 5 | null | 2017-12-13T03:30:45 | 2017-05-03T03:19:57 | Python | UTF-8 | Python | false | false | 826 | py | #
# (c) 2012 Commonwealth of Australia
# Australian Bureau of Meteorology, COSPPac COMP
# All Rights Reserved
#
# Authors: Danielle Madeley <d.madeley@bom.gov.au>
import os
import os.path
from glob import glob
import pytest
from ocean.config import get_server_config
config = get_server_config()
def clear_c... | [
"sachindras@spc.int"
] | sachindras@spc.int |
a8d257e4514cb20cbd1b1b0e338ee8cdb6d97d59 | 80ab528c686fb2867fb35f067e0ea42cb29faed9 | /playground/playground/urls.py | 6268eb7111707afe3dff5070f8a766d6c4d0939e | [] | no_license | HajimeK/playground | 1f11698f5967adf53d2d2276457e62dbbccb8d81 | 586d335210e3588b0b907fc0a087eaf6a62cba84 | refs/heads/master | 2021-01-10T17:46:08.886233 | 2016-03-29T14:43:29 | 2016-03-29T14:43:29 | 54,985,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'playground.views.home', name='home'),
# url(r'^playground/', include('playground.foo.urls')... | [
"Boz@Hajime-no-MacBook-Air.local"
] | Boz@Hajime-no-MacBook-Air.local |
329c0354906ea7def69064595589467c698a674a | d2720ce687c6000b06255d51824770e0f91e04ca | /stepper.py | 267c5e17ffb11e2af50b1bca497cfccc928eda5c | [] | no_license | patildayananda/Raspberry-Pi | 92eae96579b599b23640f2c9431a31fded3c7ed4 | 835ace7b9d6843ef8697e6b8b6efe7cf44f29282 | refs/heads/master | 2021-06-02T00:48:11.897537 | 2016-08-17T06:39:05 | 2016-08-17T06:39:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
coil_A_1_pin = 24 # pink
coil_A_2_pin = 23 # orange
coil_B_1_pin = 4 # blue
coil_B_2_pin = 17 # yellow
# adjust if different
StepCount = 8
Seq = range(0, StepCount) # seq size is of 8
Seq[0] = [0,1,0,0]
Seq[1] = [0,1,0... | [
"noreply@github.com"
] | noreply@github.com |
077dd4703b1e8f583618f83d20f53a9b6442c9c0 | 105c59fdd7e87d0d826177b4eba34ad7f6d22231 | /tests/scripts/tree.py | 479ec8df167885e5e44bb64b7bd2516a8ee52e1f | [
"MIT"
] | permissive | Jesse-McDonald/EM-MAGIC | 5af40e7b6b1f06b7ef9a39b4488cba5348af9445 | 5c0ef082bce75ba2bcc795a556b8738dc30fc503 | refs/heads/master | 2020-03-23T20:53:12.321459 | 2018-08-02T21:51:26 | 2018-08-02T21:51:26 | 142,068,953 | 0 | 0 | MIT | 2018-08-02T21:51:28 | 2018-07-23T21:01:02 | C++ | UTF-8 | Python | false | false | 433 | py | #Returns the paths of all files in a directory and all sub directories relative to start directory
import os
def tree(directory,target="f"):
paths=[]
for currentDir,dirs,files in os.walk(directory):
if target=="f":
for file in files:
paths.append(currentDir+"/"+file)
for dir in dirs:
paths+=(tree(dir)... | [
"jamcdonald@lcmail.lcsc.edu"
] | jamcdonald@lcmail.lcsc.edu |
08fd520672df3be648ba10e90ded14bc29eb24ed | 41c0259d0717443a641e7e5c883c8ff12d418c30 | /week/9/writeup/part1.py | a0c811b57eba66af9b860bded74c28796ad3daf8 | [] | no_license | kodirupe/389Rfall18 | 9cae986e86c81a583ae82ab6c9f3601b1a517f18 | d3f4639692c36893e8b5ffa177db592dfa89756c | refs/heads/master | 2021-07-25T09:10:50.381596 | 2018-12-12T02:06:02 | 2018-12-12T02:06:02 | 147,029,368 | 0 | 0 | null | 2018-09-01T20:10:59 | 2018-09-01T20:10:59 | null | UTF-8 | Python | false | false | 846 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
# importing a useful library -- feel free to add any others you find necessary
import hashlib
import string
# this will work if you place this script in your writeup folder
wordlist = open("../probable-v2-top1575.txt", 'r')
# a string equal to 'abcdefghijklmnopqrstuvwxyz'.... | [
"rupe.kodi@gmail.com"
] | rupe.kodi@gmail.com |
897e083576693619a543b424205541faf51766de | 2e912d2551874e238219a9cc4c84eed2422efe69 | /util.py | 3b31453d5da7401ce5b4b7b1fffa6fbad944798d | [
"MIT"
] | permissive | snowfox1939/texstitch | a3ab631c9aa710b04187c134e8904424c45fd5b7 | a719d675b2bded9e85641d570d461a552619ad36 | refs/heads/master | 2020-06-01T23:16:09.288981 | 2017-08-09T01:10:55 | 2017-08-09T01:10:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,508 | py | from PIL import Image, ImageTk
from tkinter import filedialog as tk_fd
import tkinter as tk
import os
FILES_IMG = (("Image files", ("*.jpg", "*.png")), ("All files", "*.*"))
FILES_STITCH = (("Json file", ("*.json")), ("All files", "*.*"))
data_path = None
def input_int(prompt, imin=None, imax=None):
'''
Pro... | [
"jellonator00@gmail.com"
] | jellonator00@gmail.com |
cf1dec6881d70e2ef54464bca3024d4a54e679c1 | 8a4cde6d1cf568b168100d561c6d6062f919160f | /stacks.dynamically.py | a118b5b56555ae37144633b50f01e9f79daf8e12 | [] | no_license | yash-saini/Python_Programes | 0a4146aa687b9f27a1f0490875db832303e41cc7 | 5312f151c7c04bfac736769bdff77503cb98627b | refs/heads/master | 2020-12-19T15:40:43.415349 | 2020-06-19T16:30:40 | 2020-06-19T16:30:40 | 235,777,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | class stacks():
def __init__(self,l=[]):
self.l=l
self.choice()
def choice(self):
while 1:
u=input('1=continue 2=exit')
if u==1:
n=input('push=1 pop=2')
if n==1:
data=input('data to be... | [
"noreply@github.com"
] | noreply@github.com |
570990629c0c9b3a5c2630cefadd7527dacb12c3 | e9b91d2eb84fefcf9f245249b49c6c7967dc81d2 | /udemy-data-science-course/9-data-projects/2-stock-analysis.py | 2d0be8a7c87627db58decb47c77c23d43467d77d | [] | no_license | sidchilling/python-data-analysis-learning | ea78b8f3db29f4699835b15df0f63b2a07f7fa6d | 674a65f614c897635c4f4a463b7c08facf643b5b | refs/heads/master | 2021-01-11T23:02:44.792783 | 2017-04-20T15:05:40 | 2017-04-20T15:05:40 | 78,539,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,574 | py | from __future__ import division
import numpy as np
import pandas as pd
from pandas import DataFrame, Series
import matplotlib as mtp
mtp.use('TkAgg')
import matplotlib.pyplot as plt
import seaborn as sns
from scipy import stats
import time
# 1. What was the change in price of the stock over time?
# 2. What was the... | [
"siddharthsaha@Webonises-Macbook-Pro.local"
] | siddharthsaha@Webonises-Macbook-Pro.local |
8c55b1b583c89eaaf63961ca00dde5c69b6b67c5 | 5e5799e0ccce7a72d514fbc76dcb0a2108013f18 | /Textfile2DefDomGeom.py | 710ab37655fe1cd3158b6347c04304f6a2e29644 | [] | no_license | sourcery-ai-bot/dash | 6d68937d225473d06a18ef64079a4b3717b5c12c | e1d1c3a601cd397d2508bfd4bb12bdb4e878cd9a | refs/heads/master | 2023-03-07T17:15:39.174964 | 2011-03-01T17:11:21 | 2011-03-01T17:11:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | #!/usr/bin/env python
#
# Use doms.txt or nicknames.txt file to create a default-dom-geometry file and
# print the result to sys.stdout
#
# URL: http://icecube.wisc.edu/~testdaq/database_files/nicknames.txt
import sys
from DefaultDomGeometry import DefaultDomGeometryReader, DomsTxtReader, \
NicknameReader
if __n... | [
"dglo@icecube.wisc.edu"
] | dglo@icecube.wisc.edu |
3c1e2609185afba2ced84ebd4fc0350d03478685 | a0fe82f6134fa6f0423d95116ffb5c4a15f6a299 | /Eduspace/student/views/student.py | fb79a9c91e56322d53d0a27a17ea7dff2f19beb9 | [] | no_license | akshaykrsinghal/demorepository | bdc8bc81b4944ba2effcafc8f108a335a27fce4b | b845150740a4e7127718e2265c5e55d60b1c11c6 | refs/heads/master | 2022-12-19T17:07:38.027458 | 2020-10-10T10:37:46 | 2020-10-10T10:37:46 | 302,876,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | from django.http import HttpResponseRedirect
from django.shortcuts import render, redirect
from ..models import *
def student(request):
a=request.session['rollno']
# image=user.objects.filter(rollno=a)
image=user.objects.filter(rollno=a)
data={'images':image}
print(image)
return render(re... | [
"59149089+Akshaykumarsinghal@users.noreply.github.com"
] | 59149089+Akshaykumarsinghal@users.noreply.github.com |
695d512109a6db109ae5579759132098cdb07cf1 | b28e4c21d12f14bd0baeaada80ff813fa9b9c57a | /setup.py | 545213907c4424bbe605de770e4e8ed9785be7ad | [
"MIT"
] | permissive | bikegriffith/sanic | 005c250b2d9d7ddb17995f3b6b084338bd7c7d81 | 385158b84d2c31e33e778a687936acc19efed950 | refs/heads/master | 2023-04-05T16:40:54.371995 | 2016-10-15T02:55:03 | 2016-10-15T02:55:03 | 70,962,717 | 0 | 0 | MIT | 2023-04-04T00:18:32 | 2016-10-15T03:05:37 | Python | UTF-8 | Python | false | false | 573 | py | """
Sanic
"""
from setuptools import setup
setup(
name='Sanic',
version="0.1.0",
url='http://github.com/channelcat/sanic/',
license='BSD',
author='Channel Cat',
author_email='channelcat@gmail.com',
description='A microframework based on uvloop, httptools, and learnings of flask',
packag... | [
"channelcat@gmail.com"
] | channelcat@gmail.com |
0945e2340abb7961a09bf19356b325727714a0a7 | b92b0e9ba2338ab311312dcbbeefcbb7c912fc2e | /build/shogun_lib/examples/undocumented/python_modular/kernel_spherical_modular.py | ef002d63c31f4dc1896ca111b2223acffcd201b9 | [] | no_license | behollis/muViewBranch | 384f8f97f67723b2a4019294854969d6fc1f53e8 | 1d80914f57e47b3ad565c4696861f7b3213675e0 | refs/heads/master | 2021-01-10T13:22:28.580069 | 2015-10-27T21:43:20 | 2015-10-27T21:43:20 | 45,059,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | from tools.load import LoadMatrix
from numpy import where
lm=LoadMatrix()
traindat = lm.load_numbers('../data/fm_train_real.dat')
testdat = lm.load_numbers('../data/fm_test_real.dat')
parameter_list=[[traindat,testdat, 1.0],[traindat,testdat, 5.0]]
def kernel_spherical_modular (fm_train_real=traindat,fm_test_real=te... | [
"prosen@305cdda6-5ce1-45b3-a98d-dfc68c8b3305"
] | prosen@305cdda6-5ce1-45b3-a98d-dfc68c8b3305 |
ec1e5dbc338ecf43d1bd53ded885b1450fb0c5be | da570c2047d335b3553e63c27ac7f60b57b28b7e | /images/urls.py | 6c3df5aaf6b9ca607cd5fbcabe80ae605ee575b6 | [
"MIT"
] | permissive | mfannick/viewImages | 8c799fc52566de03f4909d36f5ccc50e7fff9564 | 27e447faff455fba306ef3e677d5f2f63160065e | refs/heads/master | 2021-09-09T11:53:42.786004 | 2019-10-14T09:21:16 | 2019-10-14T09:21:16 | 214,357,014 | 0 | 0 | null | 2021-09-08T01:21:15 | 2019-10-11T06:11:06 | Python | UTF-8 | Python | false | false | 425 | py | from django.conf.urls import url
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns=[
url('^$' ,views.homePage,name='homePage'),
url(r'^search/', views.searchImageByCategory, name='searchImageByCategory'),
url(r'^description/(\d+)',views.imageDescrip... | [
"mfannick1@gmail.com"
] | mfannick1@gmail.com |
82bb97b65913316755124594969ad638d47401ba | 657a0e7550540657f97ac3f7563054eb4da93651 | /Boilermake2018/Lib/site-packages/chatterbot/logic/low_confidence.py | bb8ebfd230f6cde219dcb021a1575d6b17714cb8 | [
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0"
] | permissive | TejPatel98/voice_your_professional_email | faf4d2c104e12be61184638913ebe298893c5b37 | 9cc48f7bcd6576a6962711755e5d5d485832128c | refs/heads/master | 2022-10-15T03:48:27.767445 | 2019-04-03T16:56:55 | 2019-04-03T16:56:55 | 179,291,180 | 0 | 1 | CC0-1.0 | 2022-10-09T13:00:52 | 2019-04-03T13:01:50 | Python | UTF-8 | Python | false | false | 1,930 | py | from __future__ import unicode_literals
from chatterbot.conversation import Statement
from .best_match import BestMatch
class LowConfidenceAdapter(BestMatch):
"""
Returns a default response with a high confidence
when a high confidence response is not known.
:kwargs:
* *threshold* (``float``)... | [
"tpa244@uky.edu"
] | tpa244@uky.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.