blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1ace6c9b79d2976602572934c15bbfb976f2eea9 | 37d8c1058a2362734aaffd9d9b94288e08caa7ad | /cv/roto.1.py | 0926c62772f83c98186c56898cad0359f1531d99 | [] | no_license | lewan42/pstu_ecobot | ef9ccd9dadedd5d947ddf15f635ce3c982627215 | 11c72414d9388b90304d942e116b6f1c27b39368 | refs/heads/master | 2020-06-15T18:01:01.210289 | 2019-07-18T10:55:38 | 2019-07-18T10:55:38 | 195,358,356 | 1 | 0 | null | 2019-07-05T07:14:47 | 2019-07-05T07:14:46 | null | UTF-8 | Python | false | false | 5,199 | py | import serial
import sys
#Ver M1.01
#Edited by Masalskiy M from 20.11.2018
from time import sleep
ROTOADDR = 0x02; # адрес компьютера
MYADDR = 0x01; # адрес контроллера
CMD = 0xaa; # признак начала команды
SET_CT = 0x02; # команда - "встать в положение"
ASK_CT = 0x03; # команда - "вернуть положение"
S... | [
"master-forve@ya.ru"
] | master-forve@ya.ru |
0a96dabd1afb8bcf75c36331d8d72eba0c8e42d4 | 3aadfc743fb3440ef564003e332260365d9639e8 | /box_lake.py | eb3f4ad7f2ab42b77ef50e646dfdd52159ffdf24 | [] | no_license | bbuman/tbl | b33a41e78f71fd66b489b3a4b4b5d82c700b49ef | 0d1f683283d8e8e053d02958aa6ee5ddf12ac395 | refs/heads/master | 2023-02-03T10:29:11.802753 | 2020-12-15T07:49:31 | 2020-12-15T07:49:31 | 320,510,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,994 | py | class Lake:
def __init__(self, lake_area, lake_volume, benthic_macrophytes, benthic_macrofauna, benthic_bacteria, phytoplankton,
zooplankton, bacterioplankton, water_IC, water_OC, sediment):
"""Create the lake pool.
Keyword arguments:
lake_area -- area of the lake in the catchm... | [
"spam.rooster@protonmail.com"
] | spam.rooster@protonmail.com |
d929ed62a19aa356c1852b172451852bf8d303b6 | 0db18688bda2f7f1c14ed4c35a645c07cb0ca552 | /FYP UI/dashboard-updated.py | 26a81d6d083a01dc513530607bba3235e5eec526 | [] | no_license | hamzaiqbal786/FYP-Adaptive-Clustering-For-Gesture-Analysis | f472ca0803a2d931d2797df33bb6f7fddd73e855 | aeeaff93ef5e3e8287f13cf56607043c3ca4c159 | refs/heads/main | 2023-02-24T02:50:14.673243 | 2021-01-22T20:03:39 | 2021-01-22T20:03:39 | 332,046,912 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,096 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dashboard-updated.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QApplication, QWidget, QInputDia... | [
"noreply@github.com"
] | hamzaiqbal786.noreply@github.com |
f6db77f4a6e9500b2eac2f6f22c8da4e6e5571a5 | 9ebb54663069482988166480d1dde9e82bbf66cc | /main.py | 47820be4a5647056e521b0c89505475e826a2704 | [] | no_license | DHRUV-CODER/DogeHouse-Bot | f6a89cee96c1df27b2a5dad4cbd81406e5b22652 | 779948bf80c63cb2720a11eee66db5c7c9a9e5d5 | refs/heads/master | 2023-04-28T03:57:02.380063 | 2021-05-07T11:52:46 | 2021-05-07T11:52:46 | 356,579,395 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,246 | py | import dogehouse
import requests as r
import environ
import os
import keep_alive
import json
token = os.environ.get('TOKEN')
refresh_token = os.environ.get('REFRESH_TOKEN')
class Client(dogehouse.DogeClient):
@dogehouse.event
async def on_ready(self):
print(f"Logged on as {self.user.username}")
... | [
""
] | |
7844ad919dbe6add95bffc675d9fa9136a3abdc8 | b2ff37406e50976b8db1c75bde4297f5039f7391 | /Students/khushi_flask/Day1/file_read.py | 100a6f19c50c722efa30eb60f4a2be2a07e31636 | [
"MIT"
] | permissive | Throttlerz-devs/flask-tutorial | fa21a13e9b3c23992efaf33c5e3828d4086f9540 | 09e1ad364c73ffba4e698592219d448865c6b31a | refs/heads/master | 2023-08-01T07:02:37.069561 | 2021-09-17T04:53:14 | 2021-09-17T04:53:14 | 407,056,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py |
def read_data():
f=open('todo.txt','r')
data= f.read()
f.close()
return data
| [
"khushik16001@gmail.com"
] | khushik16001@gmail.com |
34fd6dcec550d6150395078c713f106bf57146a2 | 6103eb1edbc22f8ea5dddf244466074fe33ff3a6 | /clothes/urls.py | 04d3952c065a952434967ca337b593d09c52f8c6 | [] | no_license | adik0708/thewayshop | d888a77263269ff8d3f81b3beb94d2645f28690c | a3c71db489578b9231fd666954fdc2f237f31707 | refs/heads/main | 2023-04-17T02:38:17.825392 | 2021-05-04T15:01:00 | 2021-05-04T15:01:00 | 364,254,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from django.urls import path
from .views import home, products, search, contact, category_detail, outfit_detail
urlpatterns = [
path('', home, name='home'),
path('products/', products, name='products'),
path('search/', search, name='search'),
path('contact/', contact, name='contact'),
path('categor... | [
"akylbekov1@gmail.com"
] | akylbekov1@gmail.com |
221cf3f8b981c2f28598a2e9958dcaebe825e227 | 49ca5ef9d9ede14dcd08d5770fe763be649f2185 | /mooving_iot/utils/logger.py | 870132070d66bcf64bbe5edd629e0760f7aa07e1 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | DAVFoundation/iot-prototyping-platform | 94cacbb318c3a4bbd1b0297d8c53d179d77fa700 | 937578333a1a6a06235a8290486a2906d1a43a7c | refs/heads/master | 2022-06-12T14:42:03.726130 | 2019-12-31T21:06:54 | 2019-12-31T21:06:54 | 199,249,645 | 1 | 0 | NOASSERTION | 2022-05-25T03:06:38 | 2019-07-28T06:09:28 | Python | UTF-8 | Python | false | false | 3,568 | py | #***************************************************************************************************
# Imports
#***************************************************************************************************
# Global packages imports
import datetime
import os
import threading
# Local packages imports
import moovin... | [
"oleksandr.vanzuriak@lemberg.co.ua"
] | oleksandr.vanzuriak@lemberg.co.ua |
12ab47844ddb06acc0e92fde5463668505dcec45 | 29f08a6a1191c6f07c688136539337cf8a117c9d | /z3solver/z3solver.py | d71346a843c5f56651370910342b0b0847b30dd3 | [] | no_license | rajivkris/Artificial_Intelligence | b138420c8a71ab09c481de217d82862ac59a1650 | 045fef0c27d45d98f6b99a3a8b3f51d8215357b9 | refs/heads/main | 2023-01-27T12:48:21.206083 | 2020-12-01T19:27:18 | 2020-12-01T19:27:18 | 311,738,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | from z3 import *
x, y, z = Reals('x y z')
solver = Solver()
solver.add(2 * x + 3 * y == 5)
solver.check()
solver.add(y + 3 * z > 3)
solver.add(x - 3 * z <= 10)
print("Constraint added")
solver.add(x > -5, x < 5)
solver.add(y > 0)
print(f'Check satisfiability of solver {solver.check()}')
print(f'Solver model is {so... | [
"rajivkris@gmail.com"
] | rajivkris@gmail.com |
a28ad4adcf82d69674924724039e267f78fc5607 | 10a2875baa753e34bcb1784fad66c1606a7d3513 | /manage.py | f6e0af264bf5a2fb796373940e7fdc0bd695e004 | [] | no_license | cuong1404s7tp/city | eb7c30401d8d239f23afe844821457705dbdad86 | 33ae2f567bc1302648ec126e75b775b6dd916049 | refs/heads/master | 2020-04-18T02:17:21.588523 | 2019-01-23T09:39:55 | 2019-01-23T09:39:55 | 167,156,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'docity.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are y... | [
"cu.ong2177@gmail.com"
] | cu.ong2177@gmail.com |
6eba1fe4f4ea544882132374afc1bd2f331d7373 | d4ae6d6d1ab13a8a7fb3a8b895421a6a101f66f0 | /virtual/sysata/pessoa/migrations/0007_convocacao_convocados.py | e341deb8c37bbee74cd06cca32e91313e134ef82 | [] | no_license | eufrazio/programacao_comercial | 7c75558d91b7d0d5c781aefc7609a24b8f1dd77f | 0a268db18a97d92aa3bdd601ee44a095cc0870f2 | refs/heads/master | 2021-01-22T10:28:17.764085 | 2017-05-17T19:05:57 | 2017-05-17T19:05:57 | 82,005,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-05-09 12:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pessoa', '0006_auto_20170508_2258'),
]
operations = [
migrations.AddField(
... | [
"eufrazius@gmail.com"
] | eufrazius@gmail.com |
fbd2493206b5434d598dec27afe045e16aa5912e | 8430da1139e9ea5b81b8ac3b2ec0f96985824cf0 | /assessment/tree.py | 3cfa1fa83e6b78576019611bba51016931130c56 | [] | no_license | tom-wagner/ip | 7d453ff2bbff5555f8ad1353a69ee0f1eed386ea | 6dc6c6301df09d1dba9575e4f72a413d63b3a6d4 | refs/heads/master | 2022-02-20T20:37:31.295952 | 2019-09-28T01:36:23 | 2019-09-28T01:36:23 | 199,317,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | # START TIME:
class Tree:
def __init__(self, tree):
self.tree = tree
def breadth_first_traversal(self):
pass
def depth_first_traversal(self):
pass
def has(self):
pass
t = {
'v': 5,
'children': [
{'v': 9,
'children': [
{'v': 8,
... | [
"tom.wagner@xaxis.com"
] | tom.wagner@xaxis.com |
4e3b6f6b97c41325ad2959082ffe7e93c4e6cc92 | c60da36fc2e7630a4e767d5ac984a4cff2e44132 | /train.py | 5a47a51a419dfc93b5e64e92ea58c6cfeb1de9cc | [] | no_license | PMingEli/hand-writing-recognition | 55cc2c9b9deaff09edd4f54a395b6d21964968d4 | 3a04087da4f8611d637ffa95c106e3dd99c33b10 | refs/heads/master | 2022-11-21T04:07:02.492717 | 2020-06-28T15:20:50 | 2020-06-28T15:20:50 | 275,610,641 | 0 | 0 | null | 2020-06-28T15:13:11 | 2020-06-28T15:13:11 | null | UTF-8 | Python | false | false | 4,195 | py | import pickle
import os
import torch
import torch.nn as nn
import torch.optim as optim
from tensorboardX import SummaryWriter
from torchvision import transforms
from torchsummary import summary
from hwdb import HWDB
from model import ConvNet
def valid(epoch, net, test_loarder, writer):
print("epoch %d 开始验证..."... | [
"1076050774@qq.com"
] | 1076050774@qq.com |
21a700bb20d695f0545a44e8ea56ccd2d5c1ecbd | d82ac08e029a340da546e6cfaf795519aca37177 | /chapter_13_parallel_nn_training_theano/02_array_structures.py | 041b18247a74fa59fe0cfc17db87096150e8cf80 | [] | no_license | CSwithJC/PythonMachineLearning | 4409303c3f4d4177dc509c83e240d7a589b144a0 | 0c4508861e182a8eeacd4645fb93b51b698ece0f | refs/heads/master | 2021-09-04T04:28:14.608662 | 2018-01-15T20:25:36 | 2018-01-15T20:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | import theano
import numpy as np
from theano import tensor as T
# Config Theano to use 32-bit architecture:
theano.config.floatX = 'float32'
#theano.config.device = 'gpu'
# initialize
x = T.fmatrix(name='x')
x_sum = T.sum(x, axis=0)
# compile
calc_sum = theano.function(inputs=[x], outputs=x_sum)
# execute (Python L... | [
"jean.mendez2@upr.edu"
] | jean.mendez2@upr.edu |
e3f2a8fb28e4efa6e7cf865d6c07704aaea945ea | 837b0b70497d361ddd6794ca07d29cb2d3b55dbf | /model/notInUse/scripts/collectNikud.py | 589115dab2ddf479b5cfd055bdb5344cc82e78a0 | [] | no_license | LihiHadjb/nikud | 7dc213d35ea5558126392ccabbda689767430baf | 6968e20c0e0ccfdb67ecc4596479868eaa49897b | refs/heads/master | 2023-03-23T01:41:28.279697 | 2021-03-20T23:29:55 | 2021-03-20T23:29:55 | 300,214,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | import pandas as pd
with open('textToInputBasic.txt', 'r') as file:
text = file.read()
result = set()
for c in text:
if 'א' <= c <= 'ת' or 'a' <= c <= 'z' or 'A' <= c <= 'Z':
continue
result.add(c)
df = pd.DataFrame(result)
df.to_excel("collect.xlsx")
| [
"48348862+LihiHadjb@users.noreply.github.com"
] | 48348862+LihiHadjb@users.noreply.github.com |
b30cb1c91f51ab070f30533bea726b2f5ed62392 | 9672bb77d97f5bf69d110108314febf54c3bd7ef | /Certifications/Combine_Json.py | 251684e9336ea8d25e148faa9e4c6e594d22a45c | [] | no_license | haroonrasheed333/CareerTrajectory | 9001b60ebd03f85878b280320611e5d6a73d359b | 3461ecf86af52786cf4950bef54c601b941eac64 | refs/heads/master | 2021-01-25T08:32:16.745906 | 2013-12-12T03:22:32 | 2013-12-12T03:22:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import os
import json
source_dir = 'certifications_acr'
files = [ f for (dirpath, dirnames, filenames) in os.walk(source_dir) for f in filenames]
print len(files)
certifications_json = dict()
certifications_json['certifications'] = []
for filename in files:
jsonc = open(source_dir + '/' + filename)
jsonc = ... | [
"haroonrasheed@berkeley.edu"
] | haroonrasheed@berkeley.edu |
4bb43d3dd2e519289bd7d68b2eb6c251c1edeffc | b072a98e605a8325cf79efec92ffc564bd588916 | /example/face_extract_dirs_example.py | 0ce528fec03101b8ffda7fd93b87177ea712653c | [
"MIT"
] | permissive | J77M/facextr | 176b862fbfa03a210efccda1fabe5f3d2185ec75 | d13539f4816f0dfde300bd7612b18a9c06dcb3b1 | refs/heads/master | 2020-07-21T11:56:06.746216 | 2019-09-07T17:02:48 | 2019-09-07T17:02:48 | 206,856,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | '''
example for extracting faces from multiple directories and their subdirectories
extract all faces from images from paths in list - dirs
upload_path - directory, where faces will be stored
this code doesn't process face extraction if number of files is more then 10000
'''
import sys, os
sys.path.append(os.path.j... | [
"juro.marusic@gmail.com"
] | juro.marusic@gmail.com |
a7c6d0e74d240aa7da3f3c8beef4b72e3afe7cc6 | c7993e915ab093ae755977f2d844e4604df9f440 | /Praktikum 1 No.12.py | d48c3e8d35fe49c8847324a1b0adb6c92da65ffc | [] | no_license | ahmadalvin92/Chapter-05 | fe7981182535681604a40baad7f53d0975d98a6e | b316c9540f25a09ceb88a0829d82cea2331945d1 | refs/heads/main | 2023-01-03T11:53:08.432939 | 2020-10-30T14:01:57 | 2020-10-30T14:01:57 | 308,644,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | a = 8
b = 3
if (a > 0) and (b > 0):
print("keduanya positif")
else:
print("keduanya tidak positif")
a = 8
b = 3
if (a > 0):
if (b > 0):
print("Keduanya positif")
else:
print("Keduanya tidak positif")
else:
print("Keduanya tidak positif")
| [
"noreply@github.com"
] | ahmadalvin92.noreply@github.com |
5e95d15bbcb402658a0aa5ca152150228122ffa4 | 88be3911c7e73d4bf71b0482ee6d15f49030463a | /SEC31_Regex/Demo_findall.py | efd4979649d52b8aed3afc6af63204120a6ce980 | [] | no_license | skyaiolos/Python_KE | 85f879d1cb637debd2e3a0239d7c8d7bfb30c827 | 8cc42c8f4d1245de4b79af429f72a9ed2508bc1a | refs/heads/master | 2021-01-22T08:47:47.761982 | 2017-05-28T14:57:02 | 2017-05-28T14:57:02 | 92,634,507 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | """
# Script Description:
Python 正则表达式之RegexObject
"""
__author__ = "爱的彼岸(QQ:3124724)"
__copyright__ = "Copyright 2017,3124724@qq.com"
# Create by Jianguo on 2017/5/7
import re
text = "Tom is 8 years old, Mike is 25 years old."
# 模式对象, 表现编译后的正则表达式(编译为字节码并缓存)
# re.compile(r'模式')
print('findall()'.center(100, '*'... | [
"skyaiolos@aliyun.com"
] | skyaiolos@aliyun.com |
8ffb86706e389d8e762090671e43d0b079b34933 | d5ba272c47ca56435da778dd3f307cc0369910c5 | /IB CS/Hw/postfix_infix | 36e293092a08c92b78a26d21a69c6dfc5998de28 | [] | no_license | hhshhd/hhshhd | 34dc5c54b6d51ec169a693cd7c00805554eb4273 | de1508854f95441e45101c8d2472bab41df0f41c | refs/heads/master | 2020-03-27T12:03:53.116051 | 2020-02-19T08:09:55 | 2020-02-19T08:09:55 | 146,523,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,661 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Nov 18 21:16:02 2018
@author: hhshhd
"""
class Stack():
def __init__(self):
self.stack = []
def itself(self):
return self.stack
def isEmpty(self):
return self.stack == []
def push(self, item)... | [
"noreply@github.com"
] | hhshhd.noreply@github.com | |
687ddb9d4e990cf9ca5ebc733f3ffbe89ac6d8eb | 9aca5ecc08bc81a58f33ea0082f7cac360a1633d | /2Var Simplex Algorithm.py | 9919e5cfb9869b646f8477b3af6e6a328fa1b63c | [] | no_license | RealConjugate/Python-Algorithms | d31360d7684012882edd1af83e2521ddc51135e3 | 44b1bdd58d288c854db68c58c626e0f9470ac68a | refs/heads/master | 2021-07-01T08:57:14.777960 | 2021-06-30T20:02:17 | 2021-06-30T20:02:17 | 240,720,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,741 | py | from math import gcd
from decimal import Decimal
from tkinter import *
window = Tk()
window.title("Simplex Algorithm 2Var")
def InitialTable(a,b,c,d,e,f,g,h):
array = []
array.append([c,d,(1,1),(0,1)])
array.append([f,g,(0,1),(1,1)])
array.append([(-1*a[0],a[1]),(-1*b[0],b[1]),(0,1),(0,1)... | [
"noreply@github.com"
] | RealConjugate.noreply@github.com |
d86c18ba4ec7afad2c900121e66fde4e22ba5e2c | ec47c9f3fa378151a23c80525ceb1d0c02122d95 | /engine/urls.py | 7c7812c878312447bde3822619c98bbbf2d698d8 | [] | no_license | harshdalal442/udaaan | a45a5f1a397f2c0a9865c2b29e18720f47be9dfb | ad407fe2ce4b3985db81d88277df36dca059adce | refs/heads/master | 2022-12-11T11:04:39.984886 | 2018-10-14T16:25:09 | 2018-10-14T16:25:09 | 152,994,274 | 0 | 0 | null | 2022-12-08T01:02:34 | 2018-10-14T16:24:40 | Python | UTF-8 | Python | false | false | 290 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^screens/$', views.RegisterScreen),
url(r'^screens/(?P<theatre_name>[a-zA-Z0-9]+)/reserve/$', views.RegisterSeat),
url(r'^screens/(?P<theatre_name>[a-zA-Z0-9]+)/seats', views.RetreiveSeatInfo),
]
| [
"harsh.d.btechi14@ahduni.edu.in"
] | harsh.d.btechi14@ahduni.edu.in |
22b3ecfa2b4ceef4967d1ba577da57db61f5e99a | 69b4d9b7edb6241cc08c29b4c9b84ef7fe024b24 | /MusicMaze/model/graph/Vertice.py | 9660916446a22b611f873ad0ffab68d5b9272ced | [
"MIT"
] | permissive | CookieComputing/MusicMaze | 7e4c632c7d4dbb8686e17fc69cccadf832d28ab8 | 5a60fb23694583cfbfde3d19a0aec5292c5aa9cc | refs/heads/master | 2020-03-31T18:20:24.738412 | 2019-04-23T05:59:15 | 2019-04-23T05:59:15 | 152,455,032 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,632 | py | class Vertice:
"""This class represents an implementation of a vertice. A vertice in the
graph will be interpreted as a "position" that a user can walk onto in the
maze, and will consequently also be used as the cells of a maze."""
def __init__(self, name):
"""Initialize a vertice. A vertice sh... | [
"kevinxu1@yahoo.com"
] | kevinxu1@yahoo.com |
ea385301144e17aa355e09063a6bd7bb66103bb1 | d7faf47825b6f8e5abf9a9587f1e7248c0eed1e2 | /python/ray/tests/test_asyncio_cluster.py | bea440bdf4b27bb1b625ec135c2bbc2bd5dd6d5b | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ggdupont/ray | 7d7c7f39a8f99a09199fab60897da9e48b8e2645 | 15391026c19f1cbbb8d412e46b01f7998e42f2b9 | refs/heads/master | 2023-03-12T06:30:11.428319 | 2021-12-07T05:34:27 | 2021-12-07T05:34:27 | 165,058,028 | 0 | 0 | Apache-2.0 | 2023-03-04T08:56:50 | 2019-01-10T12:41:09 | Python | UTF-8 | Python | false | false | 815 | py | # coding: utf-8
import asyncio
import sys
import pytest
import numpy as np
import ray
from ray.cluster_utils import Cluster, cluster_not_supported
@pytest.mark.xfail(cluster_not_supported, reason="cluster not supported")
@pytest.mark.asyncio
async def test_asyncio_cluster_wait():
cluster = Cluster()
head_no... | [
"noreply@github.com"
] | ggdupont.noreply@github.com |
5f8fd14fe0082158a135dcb0d3498417336ebf42 | 904e00bb34a124e44d34ac1da61d4f6caca511c0 | /server/data/models.py | e9210f20a4f0f1c7c417b36d4dc8fb62f9e86c42 | [] | no_license | gunwooterry/inclusion-kaist | 2dcb64da394955ad2e9bb9f89d4e155263ba5d8a | cecc01d0afcf58d6208cb0832b190578f536adda | refs/heads/master | 2023-02-08T15:45:24.322827 | 2020-10-15T03:35:09 | 2020-10-15T03:35:09 | 115,467,626 | 1 | 0 | null | 2023-01-25T08:53:48 | 2017-12-27T01:19:13 | JavaScript | UTF-8 | Python | false | false | 1,150 | py | from django.db import models
class Organization(models.Model):
name_ko = models.CharField(max_length=100)
name_en = models.CharField(max_length=100)
description_ko = models.CharField(max_length=500, blank=True)
description_en = models.CharField(max_length=500, blank=True)
location_ko = models.CharF... | [
"gunwooterry@gmail.com"
] | gunwooterry@gmail.com |
1fcb94080d373a4e5d005f3584cbd8aee502b1f7 | 3969ae549b1d6ab8871ceb86e3a834bdf03a55cb | /Day 14/puzzle_2.py | 78167c96269891b4bb7f2543d5ae98bc164aec98 | [] | no_license | HealYouDown/advent-of-code-2015 | 7737603177e5ae1b74a98e58fb0c641779c9373e | 53c92dc090c40ff82342a611aee82826dbf86b0a | refs/heads/master | 2022-11-16T19:58:33.786271 | 2020-07-06T10:40:30 | 2020-07-06T10:40:30 | 277,513,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | import re
class Reindeer:
def __init__(self, line: str):
match = re.match(r"(.*) can fly (\d*) km/s for (\d*) seconds, but then must rest for (\d*) seconds.",
line)
self.name = match.group(1)
self.speed = int(match.group(2))
self.fly_time = int(match.group(3... | [
"jeremyregitz@gmail.com"
] | jeremyregitz@gmail.com |
a6a921b3c8898eaf78ef99de628b1da382cbb447 | 70e9fc1f810fac6bb90d840b30d66f23119e7633 | /predict.py | b9d4425bf66af423d74137ff19efb81414c1b29e | [] | no_license | RimaSadh/flowers_classifier | 1b671caa12c87317909945e61a61607a960ccee1 | 9de65872dda101eb07e3b81bd4cd2c16e475f3c2 | refs/heads/master | 2022-12-08T02:38:15.843521 | 2020-08-27T12:37:19 | 2020-08-27T12:37:19 | 290,755,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,403 | py | import argparse
import tensorflow as tf
import tensorflow_hub as hub
from PIL import Image
import numpy as np
import json
import warnings
warnings.filterwarnings('ignore')
# Function to define parser and its arguments
def define_arguments():
# Create parser object
parser = argparse.ArgumentParser(descrip... | [
"noreply@github.com"
] | RimaSadh.noreply@github.com |
dd57282a6f43709922c5f7cbe9ce63f81e77bcd0 | 414db33a43c50a500741784eea627ba98bb63e27 | /0x0A-python-inheritance/9-rectangle.py | 4092a9005ebb2873185b2c9b324c123b1c9c6344 | [] | no_license | rayraib/holbertonschool-higher_level_programming | 2308ea02bd7f97eae3643e3ce0a6489cc1ad9ff5 | 6b4196eb890ffcb91e541431da9f5f57c5b85d4e | refs/heads/master | 2021-09-14T09:12:26.664653 | 2018-05-11T03:23:12 | 2018-05-11T03:23:12 | 113,070,818 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | #!/usr/bin/python3
BaseGeometry = __import__('7-base_geometry').BaseGeometry
'''
subclass of BaseGeometry class
'''
class Rectangle(BaseGeometry):
''' representation of a rectangle'''
def __init__(self, width, height):
'''initialize the object attributes'''
BaseGeometry.integer_validator(s... | [
"binitarai11@gmail.com"
] | binitarai11@gmail.com |
89ddaad98abbd1f07088c068c03103c8d88bb637 | b4507e2b9f424e7ceea0b1ef189d698196926847 | /core/operators.py | 3d1095bd14943401579a29159fde564b13a7b202 | [] | no_license | sadernalwis/Scratchpad | 9e57b61fcee8b20d348328853490a69bc5bed395 | 0387993a9853dbaf9122d373c8ab5d412ba4f739 | refs/heads/master | 2023-02-13T12:39:29.136998 | 2021-01-13T00:36:01 | 2021-01-13T00:36:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py |
import bpy
from bpy.types import Operator
from libs.registry import autoregister
@autoregister
class SCRATCHPAD_OT_reload_sources(Operator):
"""Force reload of all shader source files"""
bl_idname = 'scratchpad.reload_sources'
bl_label = 'Reload Shader Sources'
def invoke(self, context, event):
... | [
"cmcmanning@gmail.com"
] | cmcmanning@gmail.com |
bd82d3e98d1a67cc87a28e599370a8b6475b91ae | 3467fe90c6c49b4ac86785d1da19d7183b2ac0f5 | /6002x/findCombination.py | 85d683714d531ae692f4b2fa142f7782b706f04d | [
"MIT"
] | permissive | CarlosEduardoAS/MITx | 277da453638da672c9946513bfb7a86e7446072b | 532695d69c77581b6df80c145283b349b75e4973 | refs/heads/main | 2023-05-02T13:50:15.283211 | 2021-05-25T20:02:48 | 2021-05-25T20:02:48 | 351,555,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 25 16:10:53 2021
@author: caear
"""
import numpy
import itertools
def find_combination(choices, total):
"""
choices: a non-empty list of ints
total: a positive int
Returns result, a numpy.array of length len(choices)
such that
* each eleme... | [
"79329559+CarlosEduardoAS@users.noreply.github.com"
] | 79329559+CarlosEduardoAS@users.noreply.github.com |
b7bda430b886d0141d2525d46d6a57a4df588c92 | ef42f9ebfc427882bc30f8b29692b8bf1195fc96 | /Codigo/homePage/migrations/0010_infolibro_preciolibro.py | c2bde5503c358d8d35efd6d538f7cae8c7c5dc97 | [] | no_license | IngSw201910/ZonaCultura | 9671a0fdab7ba2e80f53a88c5d520ddee12894cc | 9bf543c0082a6c361f7980ae35977a7183952873 | refs/heads/master | 2020-04-19T11:41:19.564671 | 2019-05-23T13:54:31 | 2019-05-23T13:54:31 | 168,173,720 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 2.2 on 2019-04-14 04:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homePage', '0009_auto_20190413_2135'),
]
operations = [
migrations.AddField(
model_name='infolibro',
name='PrecioLibro... | [
"dpbeltran97@gmail.com"
] | dpbeltran97@gmail.com |
902b09ed2ee809a19293ec13b3fccd3cf58d2dbf | 6ffd23679939f59f0a09c9507a126ba056b239d7 | /imperative/python/megengine/core/_trace_option.py | 638c142a12249cc9b7381b3c378d5b01f5b5ff9e | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | MegEngine/MegEngine | 74c1c9b6022c858962caf7f27e6f65220739999f | 66b79160d35b2710c00befede0c3fd729109e474 | refs/heads/master | 2023-08-23T20:01:32.476848 | 2023-08-01T07:12:01 | 2023-08-11T06:04:12 | 248,175,118 | 5,697 | 585 | Apache-2.0 | 2023-07-19T05:11:07 | 2020-03-18T08:21:58 | C++ | UTF-8 | Python | false | false | 862 | py | # -*- coding: utf-8 -*-
import os
from ._imperative_rt.core2 import set_cpp_use_symbolic_shape
_use_symbolic_shape = False
if os.environ.get("MEGENGINE_USE_SYMBOLIC_SHAPE"):
_use_symbolic_shape = True
_use_xla_backend = False
def use_symbolic_shape() -> bool:
r"""Returns whether tensor.shape returns a ten... | [
"megengine@megvii.com"
] | megengine@megvii.com |
e1b9f2842dd900818aff317fdcf377f37beb99ab | 62e7193227d4929f6fbc2f95542bfd7ce42f7e76 | /WindowsWrapper/create_experiment_dir.py | 8726e5e4a15f663aec08b00e7fc2c69da6e16b95 | [] | no_license | tomjmanuel/windows_ConvnetWrapper | 892ce9759ad90f7614bf8a81f52e284becc69a69 | 5ec9304d6db8b859e1a6d8a860a7f709706ff0c9 | refs/heads/master | 2020-07-04T05:51:28.610011 | 2019-08-13T21:22:54 | 2019-08-13T21:22:54 | 202,177,416 | 0 | 0 | null | 2019-11-02T07:26:01 | 2019-08-13T15:51:48 | Python | UTF-8 | Python | false | false | 2,453 | py | #!/usr/bin/env python
#########################################################
#
# Creates an experiment directory for cell detection pipeline
#
# Author: Alex Riordan
#
# Description: creates a user-specified directory with
# training/test/validation subdirectories and
# an autop... | [
"noreply@github.com"
] | tomjmanuel.noreply@github.com |
adf942ef17cc289e1c3cf16a609ecac205d03692 | fc314838b18c14a00310f0059d5358c7c4afabd6 | /special/models.py | 6796cb77ef4370af265ada4e6ba8966f501a7cd4 | [
"MIT"
] | permissive | opendream/asip | 5cb4b997fab2438193ae7490c159efced6dc3d91 | 20583aca6393102d425401d55ea32ac6b78be048 | refs/heads/master | 2022-11-28T23:28:18.405604 | 2020-03-10T04:56:23 | 2020-03-10T04:56:23 | 190,504,979 | 1 | 1 | MIT | 2022-11-22T01:10:46 | 2019-06-06T03:06:03 | HTML | UTF-8 | Python | false | false | 1,126 | py | from django.db import models
# Create your models here.
from common.constants import STATUS_PUBLISHED, STATUS_CHOICES
from common.models import AbstractPermalink, CommonTrashModel
import files_widget
class Special(CommonTrashModel, AbstractPermalink):
title = models.CharField(max_length=512)
image = files_wi... | [
"server@set.com"
] | server@set.com |
c83487e3debc10e945524c2ff7f63c1930983a75 | 537b1ccbd762bdad55d2cd49e6b24bb677a73dac | /reservations/migrations/0008_auto_20200831_0927.py | 633be69d4350db3fe06f58668b412e8eb5dad19b | [] | no_license | MahidharBandaru/webloom | d0ace50a01811a99c6e87380242d43cb1a81be0f | be45f5bf8c4e90417ab605b1d994d296e36b4dfb | refs/heads/master | 2022-12-10T04:38:31.035730 | 2020-09-01T14:34:08 | 2020-09-01T14:34:08 | 291,698,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | # Generated by Django 3.1 on 2020-08-31 09:27
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('reservations', '0007_auto_20200831_0925'),
]
operations = [
migrations.RemoveField(
model_name='reser... | [
"mahi.mahidhar2@gmail.com"
] | mahi.mahidhar2@gmail.com |
933d859ca1c6bf077fcdc57be83a050da83f1265 | a5dd8a280c96ab747215475e740cf49300bc13ab | /解析参数方法.py | fc4d549e9331d7d456aff38c8760b1819ae39061 | [] | no_license | leiqin01/python-learning | 93c00e14b2f6d59161e7b02ef2f69554393646c0 | 13c56a007530c375fd773f167edd2d677c4fd02b | refs/heads/main | 2023-03-23T11:34:26.875733 | 2021-03-13T16:56:10 | 2021-03-13T16:56:10 | 347,425,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | import sys
sys.float_info
sys.float_info.max
#Thonny的shell似乎运行不了这几行代码,直接使用IDLE可以运行 | [
"noreply@github.com"
] | leiqin01.noreply@github.com |
4fc93ceb92b53151fe738828150e99657579c265 | cf5d2b3cce51ae4ada792720164f92edf13db3ea | /perchess/pieces/rook.py | 270a9ecc6d307f301b53d0cc95d2956def6c291a | [] | no_license | rcisterna/perchess-py | 95d6f49d5e884f1433d4572f882701765e00a742 | fbd6650df6806345deb8bd801c3886e2f87cc54b | refs/heads/master | 2022-11-14T04:43:38.731098 | 2020-07-05T02:36:21 | 2020-07-05T02:36:21 | 275,480,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | from perchess.pieces import Piece, Colors, Movement
class Rook(Piece):
"""Torre."""
def __init__(self, color: Colors):
"""
:param color: Color de jugador.
"""
movements = []
for travel in range(1, 8):
movements.extend([Movement(travel, 0), Movement(-travel,... | [
"r.cisternasantos@gmail.com"
] | r.cisternasantos@gmail.com |
905cb8c5f6d0197487ae82ee1d0f00475fb00efe | 2153a7ecfa69772797e379ff5642d52072a69b7c | /library/test/test_compiler/sbs_code_tests/70_class.py | 64ce08233157b32ce3204a302018c8a61bc3d153 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"Python-2.0"
] | permissive | KCreate/skybison | a3789c84541f39dc6f72d4d3eb9783b9ed362934 | d1740e08d8de85a0a56b650675717da67de171a0 | refs/heads/trunk | 2023-07-26T04:50:55.898224 | 2021-08-31T08:20:46 | 2021-09-02T19:25:08 | 402,908,053 | 1 | 0 | NOASSERTION | 2021-09-03T22:05:57 | 2021-09-03T22:05:57 | null | UTF-8 | Python | false | false | 422 | py | # Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
class C:
pass
# EXPECTED:
[
LOAD_BUILD_CLASS(0),
LOAD_CONST(Code((1, 0))),
LOAD_CONST('C'),
MAKE_FUNCTION(0),
LOAD_CONST('C'),
CALL_FUNCTION(2),
STORE_NAME('C'),
...,
CODE_START('C'),
LOAD_NAME('__na... | [
"emacs@fb.com"
] | emacs@fb.com |
e2986c8aa61230f3eadcd07902d54ab807a0c186 | d3c395fee26b8c7d468df3b6fc8d46109e3282ce | /SA_Math.py | d74bef19f20c3a6c74f893f461c1fd61e47c6edf | [] | no_license | heshijiu/SA1.0 | 030c3810cc7fbca71c5fa1b89f18bd3b7b5d4163 | 18ac5f93b6dc597ebe5f5260fc7aa5313fe24896 | refs/heads/master | 2021-01-24T18:58:11.036256 | 2017-07-02T10:20:20 | 2017-07-02T10:20:20 | 86,162,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,008 | py | #!/usr/bin/Python
# -*- coding: utf-8 -*-
import cmath
class Point:
x = 0
y = 0
def __init__(self, x, y):
self.x = x
self.y = y
def __add__(self, other):
self.x += other.x
self.y += other.y
class Vector:
x = 0
y = 0
def __init__(self, x, y):
self.x ... | [
"noreply@github.com"
] | heshijiu.noreply@github.com |
b40cdf18254250789a2505f91f27df20c101aac1 | 1ed9e03e550469ebcf0a6de56d8cc87150a2b861 | /fedml_core/distributed/communication/__init__.py | 2547ee9667fa186251ebac9ccb53e01c04a03164 | [] | no_license | StevenLOL/FedML | ba211140b9eb5c3acd18a4e3c8a8aa9dd8c175e3 | fe4c6caeec680bb8f2fa8ae30c0717a4522e6f6c | refs/heads/master | 2022-11-28T09:39:45.270989 | 2020-08-02T16:52:07 | 2020-08-02T16:52:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from .com_manager import CommunicationManager
from .message import Message | [
"me@chaoyanghe.com"
] | me@chaoyanghe.com |
1c22d4445c54dc6358a0ba0086ed39af5a259b49 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/osconfig/agentendpoint/v1/osconfig-agentendpoint-v1-py/google/cloud/osconfig/agentendpoint_v1/services/agent_endpoint_service/transports/base.py | 1529267fb51e6ac71e8e7bfbcf4c92072cb41021 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,967 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
a37961de642964b227bc2185002940eabeba5a67 | 58be0e0db1be823d62c021e273f4073b7aa5e312 | /Index_strat/LSMarket_future288_0.36BHedit.py | 5fccbc5ccc54404f48bc7a46b0b662ccf1407f82 | [] | no_license | briansone/ai_a3d | 028f7e9fbabeafaff3c628712e703c1fbcc8cbdf | 80f053a4df0a4987edd0471966fca266e1f39e46 | refs/heads/master | 2022-11-30T20:57:44.913667 | 2020-08-16T09:00:24 | 2020-08-16T09:00:24 | 286,200,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,726 | py | import pandas as pd
from keras.models import Sequential
from keras.layers import Dense, Dropout
from sklearn.model_selection import cross_val_score
from keras.wrappers.scikit_learn import KerasClassifier
from keras.models import load_model
# from pprint import pprint as pp
import numpy as np
from sklearn.prepro... | [
"noreply@github.com"
] | briansone.noreply@github.com |
bd778f3a59e0229767373b451f37fe4d11718750 | 14fd8bd44393cfd196243be411039699bc0ee471 | /marketplace/migrations/0008_auto_20181202_0032.py | a28a321e50734e0df60c7ec6a0d7a3421c58b81d | [] | no_license | Icebreaker2018/Icebreaker | 5248d1fedfdc5321a3fc0633fe19304e2b67a995 | df1c0cd606bbb42be8a06ba330d0fd84248c1508 | refs/heads/master | 2022-12-16T16:24:00.520244 | 2018-12-11T03:24:04 | 2018-12-11T03:24:04 | 154,955,218 | 0 | 1 | null | 2022-12-08T01:18:11 | 2018-10-27T11:10:52 | CSS | UTF-8 | Python | false | false | 590 | py | # Generated by Django 2.0.5 on 2018-12-01 19:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('marketplace', '0007_auto_20181202_0022'),
]
operations = [
migrations.RemoveField(
model_name='... | [
"ajith.n17@iiits.in"
] | ajith.n17@iiits.in |
dbd667792f1668b9deab8ab7f7208a0d1aa2e8a7 | f819e7e7ef6199b136ab14c6eb7778a9ca8ce2c1 | /lib/plugins-loader/helpers/send_message.py | 112b1bb7ca5a312274223802c9b8690df7bd1286 | [] | no_license | ewnd9/limelight | e66a3ab790476a7bbe2c5b91f199599d4b778475 | 966b04af76218533d496c05355e4885142040734 | refs/heads/master | 2021-01-17T19:10:00.850748 | 2015-09-21T15:53:54 | 2015-09-21T15:53:54 | 55,278,092 | 1 | 0 | null | 2016-04-02T04:43:07 | 2016-04-02T04:43:07 | null | UTF-8 | Python | false | false | 1,519 | py | import urllib
import contacts
from applescript import asrun, asquote
import re
def normalize_phone(num):
drop = ' -.'
for c in drop:
num = num.replace(c, '')
if len(num) > 5 and re.match(r"^[0-9]+$", num):
return num
else:
return None
def send_message(recipient, body, attach_selected_files):
b... | [
"marc.brookman@gmail.com"
] | marc.brookman@gmail.com |
1000d07adde86b84f2994e67c3feb7eaa2dfe86f | 6ff32eb4b6383c8f87b768af3873c6cbab5fb60a | /store/migrations/0008_order_customer.py | 36944bf1561b3039c2a8672a4a9157d759de2ebf | [] | no_license | itsyst/django-e-commerce | 32fb99ce28bdfe368d2c7435578c53d61ae42fab | 034a0d9f07560abac7b9391b8d2b9159fb60e254 | refs/heads/master | 2023-07-06T04:04:54.119123 | 2021-08-08T19:59:01 | 2021-08-08T19:59:01 | 386,954,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # Generated by Django 3.2.5 on 2021-07-19 00:03
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('store', '0007_rename_membersship_customer_membership'),
]
operations = [
migra... | [
"contact@elhamzi.me"
] | contact@elhamzi.me |
cce49df897b7c13bc32a590dee0ca0638412edaa | ed71767a3f5da3004ef333fa05721eeb84988f5e | /HealthBot/HealthBot/settings.py | fd1d6ef046c2da5a36dbaf35957426a8a90432f6 | [] | no_license | IISE-Hackathon/HealthBotWebapp | 2c19606c19fef7c1f25749a54c2efe5a8b9fb301 | 2bdd9f66bcddcf956c7085a998379ae2db6c65f8 | refs/heads/main | 2023-02-06T04:10:07.380050 | 2020-12-20T02:34:05 | 2020-12-20T02:34:05 | 322,778,274 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,085 | py | """
Django settings for HealthBot project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"mk6386223@gmail.com"
] | mk6386223@gmail.com |
ba29949675b315b73286a3656adc6c73f7fb2e03 | c98e1a103faa18f7cb721607897466719f11642d | /sourcehold/maps/sections/section1049.py | 3627310bb37aa279e0c7ead5bc23d53a18a14296 | [
"MIT"
] | permissive | J-T-de/sourcehold-maps | fff77c9c1c3cdfae8cae7817e39ed0e4e1f0affb | 330ab1b3426dbd93b5de3b0c031419e54f6a1618 | refs/heads/master | 2022-12-08T23:32:40.874993 | 2020-09-12T17:57:32 | 2020-09-12T17:57:32 | 294,927,094 | 0 | 0 | MIT | 2020-09-12T11:08:31 | 2020-09-12T11:08:30 | null | UTF-8 | Python | false | false | 125 | py | from .types import TileCompressedMapSection
class Section1049(TileCompressedMapSection):
_TYPE_ = "B"
_CLASS_ = int | [
"gynt@users.noreply.github.com"
] | gynt@users.noreply.github.com |
9d892e264bfcc2053dc648cf5f782ca27011689f | 718b2424752e905e8c1451751b2afbca056ee3ff | /lacrosse_to_wunderground.py | d2675100ed09c27cfddccb1eaddbc23617b99f1b | [
"MIT"
] | permissive | niavasha/lacrosse_to_wunderground | e2308361cc8d3e46a4ca906d7405ba2af32020ab | 3aa1cfebca0320d01d6eea148735e31de664f9cd | refs/heads/master | 2022-04-07T15:14:36.674882 | 2020-01-23T18:08:18 | 2020-01-23T18:08:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,352 | py | """
Downloads weather data from La Crosse Cloud System from your personal
weather station and uploads it to Wunderground via the wunderground/weather
personal weather station API.
"""
import sys
import time
import requests
import json
import datetime
from lacrosse_weather.lacrosse import lacrosse_login, lacrosse_get_l... | [
"keith.prickett@sdvi.com"
] | keith.prickett@sdvi.com |
6c54d81e4263105997a4b7dbcb57d4d4673fe0e2 | 5d0fe4a9e026234fe15e6c4380355061bb4dac64 | /tests/functional/pages/profile/individual_enter_your_email_and_password.py | 4ed6007a0f1fe073b148c538f8fdceb4a783b69b | [
"MIT"
] | permissive | uktrade/directory-tests | 37e243862da8ac594cf1ea06ade714db5e1aba03 | 39ec6c26203580238e65566a472cbd80916e6726 | refs/heads/master | 2022-08-09T16:58:56.248982 | 2022-08-01T12:25:10 | 2022-08-01T12:25:10 | 71,367,747 | 4 | 3 | MIT | 2022-08-01T12:26:09 | 2016-10-19T14:48:57 | Python | UTF-8 | Python | false | false | 1,702 | py | # -*- coding: utf-8 -*-
"""Profile - Individual - Enter your business email address and set a password"""
from requests import Response, Session
from directory_tests_shared import PageType, Service, URLs
from tests.functional.utils.context_utils import Actor
from tests.functional.utils.request import (
Method,
... | [
"kowalczykjanusz@gmail.com"
] | kowalczykjanusz@gmail.com |
2b979052909dff740be6659a03ee1ad2b6daec66 | 3ef9439cc406f1c1a7a4877e2bee55acb8bad062 | /manage.py | 29c86fffcbc5e837668c6db3cb05c9d5d773fc5c | [] | no_license | Obsir/ixStudy | d6d031ff80248cc92f5af6cdad6d60ebc078f257 | 63f716d3a3660bb922d1c848bf8747386a102e6e | refs/heads/master | 2023-05-10T11:37:34.026374 | 2021-06-03T14:45:53 | 2021-06-03T14:45:53 | 369,462,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ixStudy.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"Obser47@outlook.com"
] | Obser47@outlook.com |
69af8143efa20aa1ca3024c64e30be8fef84b392 | ff7864a5ab14702de8aab5d6af036b80f68247a4 | /ipsolver/linprog/mehrotra/__init__.py | f8f342a3c5f9f5a2314245dee330a716a43855b0 | [] | no_license | codacy-badger/iplib | e99f90684cd7b57992da3cefbec7dea7d4d89af9 | 0f4eeea6cd6945a83f43b680c7321f7b9be2175e | refs/heads/master | 2020-04-22T23:55:52.732562 | 2019-02-14T16:43:28 | 2019-02-14T16:43:28 | 170,759,222 | 1 | 0 | null | 2019-02-14T21:16:27 | 2019-02-14T21:16:26 | null | UTF-8 | Python | false | false | 89 | py | from . import base_imp
from . import mehrotra_ipm
from . import regularized_mehrotra_ipm
| [
"maksym.shpakovych@gmail.com"
] | maksym.shpakovych@gmail.com |
ba3daecdc648fa1992bea625ee5b35854be3a673 | 066f580391746d4ebef860007a831452fa2657cb | /server_functions.py | ac803849057c73352456fd1323b08eb4a5125f64 | [] | no_license | KeremOzfo/Hybrid-Sparsification | a46c5e0747fa77a634ccbc17da651e4c8a0f8468 | 713e288b2c0636cb96c9fac75b6e072230368e8c | refs/heads/master | 2023-02-23T16:40:36.239354 | 2021-01-28T17:43:30 | 2021-01-28T17:43:30 | 330,001,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,404 | py | import torch
import math
import time
import numpy as np
import torch.nn as nn
def pull_model(model_user, model_server):
for param_user, param_server in zip(model_user.parameters(), model_server.parameters()):
param_user.data = param_server.data[:] + 0
return None
def count_parameters(model):
ret... | [
"keremozfatura@me.com"
] | keremozfatura@me.com |
984435c2ce0a43415fd4459d4871689edb1602c2 | f8141f06d7fb3f80788086669fb3bda86564aed5 | /Students/7-object-detection-frnn/cntk_helpers.py | d76e3c4124d1f1264447aed23227caa43b51421a | [
"MIT",
"CC-BY-4.0"
] | permissive | Azure-Samples/learnAnalytics-DeepLearning-Azure | bff46e9dbcd5c949e9e44cabed4c4db28d20df09 | 00df3cc0c98e8ed28bb33364138e748aa8364b5b | refs/heads/master | 2022-01-04T16:35:46.656647 | 2019-06-28T20:14:04 | 2019-06-28T20:14:04 | 102,758,327 | 8 | 6 | null | null | null | null | UTF-8 | Python | false | false | 38,360 | py | # Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root
# for full license information.
# ==============================================================================
from __future__ import print_function
from builtins import str
import pdb, ... | [
"alikaz.zaidi@gmail.com"
] | alikaz.zaidi@gmail.com |
7531cac66c00aa9fa817aaa518bfbbedc102318d | f21a735d8e3e0ab7bcde2a88caf7658e1008f9c0 | /simple_auto_encoder_keras/simple_auto_encoder_keras.py | 633ba837694466e5120e034fd27f699b04609fba | [] | no_license | alizarghami/simple_dl_examples | cdaa1c48ddfa74e9f8b246a77e5242d74baa4b12 | 64ffb75c19d4ae45eed589719339f13f8c96542b | refs/heads/master | 2023-02-15T19:12:55.258072 | 2021-01-07T09:41:37 | 2021-01-07T09:41:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 5 22:19:50 2020
@author: ali
"""
from keras.datasets import fashion_mnist
from keras.models import Sequential
from keras.layers.core import Dense
from keras.optimizers import Adam
import matplotlib.pyplot as plt
BATCH_SIZE = 1024
EPOCHS = 20
... | [
"alizarghami@gmail.com"
] | alizarghami@gmail.com |
f342ac5aa82cd4281c3d4189cda3b8f347147b4f | 1a5971b5e2960322b4f9d318b08e9fefa908a776 | /Height.py | d7dc80e06611ef6b9f7f1bea4e593b1f33cd840b | [] | no_license | mikesmithlab/Ball | 1253baf1f5c8a363683f86e741ffacbce3e5c774 | 33cc74aba6e4ff21bc1c6ec51a50cd390531f99b | refs/heads/master | 2020-04-04T11:02:28.506512 | 2019-04-15T13:49:42 | 2019-04-15T13:49:42 | 155,876,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,712 | py | from scipy import signal
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from tkinter import filedialog
import os
from scipy.signal import argrelextrema
from scipy import optimize
def createHistogram(ball,filename,binnum=100):
plt.figure()
file = filename[:-5]+'.txt'
ball['Height'].... | [
"mike.i.smith@nottingham.ac.uk"
] | mike.i.smith@nottingham.ac.uk |
b9b9950099375ec0726ae8664dd690b39569313e | 027ed4a5f07e2c74e3b709609cb782f5afc29558 | /src/tp1/ga_rainhas.py | 38f95811c3da9e85867419b7b7ec61c5391902a7 | [] | no_license | vicrsp/ce-ppgee | 1b0bebd6310150596137b01067b6443bf96a9851 | 360d26ce2a006629afa62be3a700ddc5eac08e84 | refs/heads/master | 2021-03-05T23:57:49.177900 | 2020-11-16T21:26:12 | 2020-11-16T21:26:12 | 246,164,688 | 0 | 0 | null | 2020-11-16T21:07:52 | 2020-03-09T23:37:10 | Python | UTF-8 | Python | false | false | 8,131 | py | from math import factorial
import numpy as np
import itertools
import random
class GAPermutation:
def __init__(self, fitness_func, pop_size=100, num_generations=300, max_int=8, crossover_probability=0.6, mutation_probability=0.05, use_inversion_mutation=False):
self.population_size = pop_size
self... | [
"victorspruela@gmail.com"
] | victorspruela@gmail.com |
eef6bd0e000db126892cd5cf1efaecae9b0e373f | fadcdc099a17a031190db8a073ceb9b8ff3c52a3 | /2017202085/src/srcipts/KGQA/neo_db/query_create_txt.py | d47e26de3052d2a6c38d23d93ce94aed54d78d61 | [] | no_license | info-ruc/nlp20projects | 751457d63e36baafc91aec2d8a6a9ed2c2634eef | 0684e6204378761b471415743cbd63efe906deb0 | refs/heads/master | 2023-02-08T05:25:27.467295 | 2020-12-30T00:24:16 | 2020-12-30T00:24:16 | 291,974,135 | 0 | 10 | null | 2020-12-30T00:24:18 | 2020-09-01T11:03:42 | Jupyter Notebook | UTF-8 | Python | false | false | 556 | py | from neo_db.config import graph, CA_LIST, similar_words
import codecs
import os
import json
import base64
def concept():
data = list(graph.run(
"MATCH (n:CONCEPT) RETURN n LIMIT 10000"))
f = open('../raw_data/concept.txt', 'w', encoding='utf-8')
for d in data:
f.write(d['n']['conceptNa... | [
"857316974@qq.com"
] | 857316974@qq.com |
9957e818b639a1c4714fa373df9e059a62e4b8d1 | 40777537b6c47ffa32b565484325dc4fb0d42e83 | /examples/separate_api_route_example.py | 9a7e8b1b7e8116671eaf6dbcadeca22ac5455def | [
"MIT"
] | permissive | muhammedfurkan/aiogram | 24e8e9c55ea01c6a2f08abd1122956640db92abd | 692c1340b4dda556da640e5f9ea2200848c06840 | refs/heads/dev-2.x | 2021-12-03T21:33:40.494047 | 2021-10-28T21:03:46 | 2021-10-28T21:03:46 | 200,087,088 | 0 | 0 | MIT | 2020-11-04T15:52:35 | 2019-08-01T16:46:50 | Python | UTF-8 | Python | false | false | 870 | py | # NOTE: This is an example of an integration between
# externally created Application object and the aiogram's dispatcher
# This can be used for a custom route, for instance
from aiohttp import web
from aiogram import Bot, Dispatcher, types
from aiogram.dispatcher.webhook import configure_app
bot = Bot(token=config.... | [
"noreply@github.com"
] | muhammedfurkan.noreply@github.com |
8ad510177a0ecc90f3b4308ee64dee9040f7d329 | 2f0603a1a61baaf588c25b1960d18500e7060933 | /Theano_code/dbn.py | 334cbbb7c64aa6108b59613270881771eaf03c29 | [] | no_license | mukami12/ReduceFA_2015 | 20a3b9dd4faf862465e5aec980a55734befa9a22 | a6fe51a8d315c8771911389b1f744878f556ab65 | refs/heads/master | 2020-03-31T14:54:15.798399 | 2016-05-22T09:16:20 | 2016-05-22T09:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,586 | py | import os
import sys
import time
import numpy
import theano
import theano.tensor as T
from theano.tensor.shared_randomstreams import RandomStreams
from logistic_sgd import LogisticRegression
from data_process import loadFeaturedData
from data_process import load10secData
from mlp import HiddenLayer
from rbm import R... | [
"heehwan.park@gmail.com"
] | heehwan.park@gmail.com |
21f9d1804e8d0e7fa36cfa13c8694012e9e3e993 | 7280a5bff73d67b16f0fce871dec606edd0c7347 | /test.py | 72f01014d94246fe0444d69e30d72f664a4d9e22 | [] | no_license | nj-sseo/Korean-language-classifier | 59032520514754a2beb335ffd02d0461671bb249 | ee467f7a7b8432d23ed7bf299a30742ebf969f86 | refs/heads/master | 2020-12-10T03:07:49.059802 | 2020-01-14T15:15:57 | 2020-01-14T15:15:57 | 233,489,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,867 | py | # -*- coding: utf-8 -*-
"""test
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1GixyCfk27jb3GlyRfsyFVX3f3rhPp0IE
"""
import random
import os
import time
import math
import torchvision
import torchvision.datasets as dset
import torchvision.transforms ... | [
"nj.ssseo@gmail.com"
] | nj.ssseo@gmail.com |
b3e8ae7b18054584b3712e746015b1abd10e5a7a | d1c637544d893247a4731d8638b7b13aebcc3f4e | /youtubeScrape.py | 26be9c5c00b6444c486cb178a0370923bce39666 | [] | no_license | jayachandra2128/Youtube-comments-scraper | 17c3b8119531166c122974ee6d1d8f921347fef6 | ecf88c6a89edf097c2a4f310cf73d44267f27693 | refs/heads/master | 2021-09-25T02:16:51.616218 | 2018-10-17T00:07:59 | 2018-10-17T00:07:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | py | import simplejson as json
import urllib2
from urllib import urlopen
import sys
import time
import csv
import os
import io
os.chdir(r'C:\Users\jc\Desktop')
csvFile =open('test.csv',"w")
#csvFile =open('test.tsv',"w")
#writer = csv.writer(csvFile,delimiter=',')
#writer.writerow('Comments')
csvFile.write("com... | [
"noreply@github.com"
] | jayachandra2128.noreply@github.com |
ca882b27134e8b7e97382771cc03bef0fcd2a3fe | 242f1dafae18d3c597b51067e2a8622c600d6df2 | /src/1300-1399/1344.angle.clock.py | 8f16b6ea976d0a6986c2e132b2eb2b95f928c1e3 | [] | no_license | gyang274/leetcode | a873adaa083270eb05ddcdd3db225025533e0dfe | 6043134736452a6f4704b62857d0aed2e9571164 | refs/heads/master | 2021-08-07T15:15:01.885679 | 2020-12-22T20:57:19 | 2020-12-22T20:57:19 | 233,179,192 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | class Solution:
def angleClock(self, hour: int, minutes: int) -> float:
h, m = hour % 12, minutes % 60
hA, mA = h * 30 + m / 60 * 30, m * 6
dA = abs(hA - mA)
return min(dA, 360 - dA)
if __name__ == '__main__':
solver = Solution()
cases = [
(2, 58),
]
rslts = [solver.angleClock(hour, minut... | [
"gyang274@gmail.com"
] | gyang274@gmail.com |
00e86c23f7f35dd581b7ede27815d2dc38061604 | f149dae096359ff81715fa3cd856d9dba81e1e52 | /nakey/core/admin.py | 2e010798ddb2271d9b90bcd08a83b6cb1a398042 | [] | no_license | aibaq/nakey | 2cfe65be10f3dfc146ee811ae57de988b84e7e01 | c93ff72ae5784d9145c36c46abf43edb37906f3b | refs/heads/master | 2022-12-10T21:41:42.561790 | 2019-10-13T16:13:38 | 2019-10-13T16:13:38 | 158,396,548 | 1 | 0 | null | 2022-11-22T03:13:58 | 2018-11-20T13:48:03 | JavaScript | UTF-8 | Python | false | false | 1,150 | py | from django.contrib import admin
from mptt.admin import MPTTModelAdmin
from .models import *
@admin.register(Banner)
class BannerAdmin(admin.ModelAdmin):
list_display = ('id', 'title', 'image')
@admin.register(Category)
class CategoryAdmin(MPTTModelAdmin):
list_display = ('id', 'name')
@admin.register(Col... | [
"aiba.prenov@gmail.com"
] | aiba.prenov@gmail.com |
c088e5173d99e3899018d41fce0902bfd0be8dab | 06c1179ff523f2de0b2caf68cc1f93b1012ced77 | /bot/cogs/polls.py | 34f8f43458c4e010df7a29845fc47d69488447a4 | [] | no_license | jpark9013/Discord-Bot | 6ab6bae3070ff9542dd862fc7fc2e732c3f8a3b1 | 290c638cf46379219ee5ac9426bf0ee98ee79776 | refs/heads/master | 2022-12-06T17:53:32.814677 | 2020-08-28T01:25:01 | 2020-08-28T01:25:01 | 281,536,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,342 | py | import operator
import time
import typing
from datetime import datetime
import discord
from discord.ext import commands, tasks
from utils.format import send_embed
class Polls(commands.Cog, name="Polls"):
def __init__(self, bot):
self.bot = bot
global db
db = self.bot.db
self.EMOJ... | [
"jpark9013@gmail.com"
] | jpark9013@gmail.com |
f3f1d4c14482ef7424b06e6354575ee7e493a375 | dfb55278f50b2e3fd040a62d40cedf225072a2f5 | /flask1.py | e27863fcbd061ab7f9fc8053c7c6ca19625df00a | [] | no_license | 2ahmedabdullah/first_repo | 26ab335d493a166da6c95e582e1a3498cc696d00 | 0bd93849f834a8b9682de7fde1541c9ff6e84c4f | refs/heads/main | 2023-07-29T14:44:36.837253 | 2021-09-14T11:33:49 | 2021-09-14T11:33:49 | 406,337,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from flask import Flask, request
app = Flask(__name__)
@app.route('/hello_world', methods=['GET', 'POST'])
def add():
#a = request.form["a"]
#b = request.form["b"]
#c = request.form["c"]
return "Hello World!"#str( int(a) + int(b) + int(c) )
if __name__... | [
"noreply@github.com"
] | 2ahmedabdullah.noreply@github.com |
66ebb027ebb9fcf1674157a1fd4328b8c803a1b6 | 60aa3bcf5ace0282210685e74ee8ed31debe1769 | /base/lib/encodings/cp1253.py | e32862ea0e2b0a2d349861903d7635099bf924b3 | [] | no_license | TheBreadGuy/sims4-ai-engine | 42afc79b8c02527353cc084117a4b8da900ebdb4 | 865212e841c716dc4364e0dba286f02af8d716e8 | refs/heads/master | 2023-03-16T00:57:45.672706 | 2016-05-01T17:26:01 | 2016-05-01T17:26:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | import codecs
class Codec(codecs.Codec):
__qualname__ = 'Codec'
def encode(self, input, errors='strict'):
return codecs.charmap_encode(input, errors, encoding_table)
def decode(self, input, errors='strict'):
return codecs.charmap_decode(input, errors, decoding_table)
class IncrementalEnc... | [
"jp@bellgeorge.com"
] | jp@bellgeorge.com |
82a31547b7df987e69677a23ad29f56ad9a5ccbe | 41c5f7da28b87a3034754254d21791b322e819d8 | /test/test_json_analysis_result_sub_group_all_of.py | e181c4639ce155f9ebebe587db93934f73ee12ae | [] | no_license | MADANA-IO/madana-apiclient-python | 16cb3eb807897903df2a885a94a2c02fc405818a | 40dc21ab43d9565ac3dff86d7270093cce112753 | refs/heads/master | 2023-03-08T05:02:32.616469 | 2021-02-11T10:17:30 | 2021-02-11T10:17:30 | 287,797,297 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | # coding: utf-8
"""
madana-api
<h1>API Quickstart Guide</h1> <p>This documentation contains a Quickstart Guide, a few <a href=\"downloads.html\">sample clients</a> for download and information about the available <a href=\"resources.html\">endpoints</a> and <a href=\"data.html\">DataTypes</a> </p>... | [
"dev@madana.io"
] | dev@madana.io |
c34ebf8df587e82c4940fe9afa6c7a9bfb778caf | 8d3d49f028960bb018adac71172847eb21887810 | /ruffus/test/test_branching_dependencies.py | 44a2bcdd246f96933c56a67f8a3caa307eca064b | [
"MIT"
] | permissive | msGenDev/ruffus | 534c2c834d64078471e28df3cc45f96edb549d57 | 8f2e3e34b8eb013bd38ca8fd2cab6af94dd38d31 | refs/heads/master | 2021-01-18T09:15:47.035339 | 2014-07-25T13:36:16 | 2014-07-25T13:36:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,581 | py | #!/usr/bin/env python
from __future__ import print_function
"""
branching.py
test branching dependencies
"""
#88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
# options
#888888888888888888888888888888888888888888888888888888888888888888888888888888888888888... | [
"src@llew.org.uk"
] | src@llew.org.uk |
61ba1bf8f484efe8d1927186299780006459dc35 | d8e839c8b630a6f4bd67cdbf3e8624178451719f | /testtask/constants.py | b7f029bb90483bd3249d3e1e988d6e956502bf44 | [] | no_license | andy071001/evaluate | ea5535224029caffbbd7cd66462790cb16635f1d | 0f94288e2b15864c9b9f21027c28d74011067586 | refs/heads/master | 2021-01-01T05:48:16.399143 | 2013-09-26T02:25:10 | 2013-09-26T02:25:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | #coding=utf8
VERIFY_CODE_LENGTH = 4
online_makepolo_url = "http://192.168.0.211/spc_new.php?search_flag=0&q="
strategy_makepolo_url = "http://caigou.makepolo.com/spc_new.php?search_flag=0&q="
alibaba_url = "http://s.1688.com/selloffer/offer_search.htm?n=y&keywords="
CON_REQ = 5
QUERY_WORD_PER_PAGE = 10
QUERY_TASK_PER... | [
"liuwenbin_2011@163.com"
] | liuwenbin_2011@163.com |
a3107b0c1a2da9aed5839d1306f79a2aa6a91e03 | 0d2f636592dc12458254d793f342857298c26f12 | /vowel.py | d1da799f259f873b5637804df56c23b3325a671c | [] | no_license | chenpc1214/test | c6b545dbe13e672f11c58464405e024394fc755b | 8610320686c499be2f5fa36ba9f11935aa6d657b | refs/heads/master | 2022-12-13T22:44:41.256315 | 2020-09-08T16:25:49 | 2020-09-08T16:25:49 | 255,796,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | vowel = ['a', 'e', 'i', 'o', 'u']
word= "milliway"
for letter in word:
if letter in vowel:
print(letter)
| [
"kkbuger1523@gmail.com"
] | kkbuger1523@gmail.com |
5a44841660257beadc2955a6caffe9c38d935a58 | 313cbdec2661f507409389a4d3f5a3bdd7248658 | /end-term design/server.py | 7a0ae5b366096e6d993b8a41b3c696c62d250725 | [] | no_license | huangjj27/web2.0_experiments | 673853e49d857bd1bbcd7f3d3bb2e3967494853e | a8151ca9ff1569865f1103aff45821d311206950 | refs/heads/master | 2021-01-18T13:21:44.627631 | 2016-07-01T13:34:36 | 2016-07-01T13:34:36 | 25,640,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,103 | py | #! encoding=utf-8
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
import os.path
import re
import time
from tornado.options import define, options
define("port", default=8888, help="run on the given port", type=int)
name_pattern = re.compile(r"[a-zA-Z0-9]{6,12}")
password_... | [
"349373001@qq.com"
] | 349373001@qq.com |
cc6579536149f92ed343cb5352c5a36895ee78d9 | dca141c8c887d09828b259e4e85edefe303a8684 | /basic/models.py | b4bf9f47c234654e050133059330db10ac672fcb | [] | no_license | ImLordImpaler/hackathon2.0 | f55cd499f0e64042d689d5ca0f2510edc6af6880 | 6dfbfb2a90c6e3b9e8ddc5cc22111bb592d3a195 | refs/heads/main | 2023-04-22T01:40:50.170012 | 2021-05-16T06:53:08 | 2021-05-16T06:53:08 | 367,805,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
class Profile(models.Model):
user = models.OneToOneField(User , related_name='profile_user',on_delete=models.CASCADE)
fname = models.CharField(max_length=... | [
"ksfastners619@gmail.com"
] | ksfastners619@gmail.com |
ae993260199a1bd4f613b868736c93d2f0d23f44 | 198a9eee33187d90bab8d4e2d57c0cea10eedb84 | /chap5/exe1.py | b010e5f90be03ca317a786ff0d17f81cf3748f1c | [] | no_license | mihirverma7781/Python-Scripts | 2fe7de78004dcc0ff7f5c7b5a85f0a0f4d539967 | 5fa6751fb072f4599d4919d2b0ee096b9064e963 | refs/heads/master | 2022-12-19T04:38:55.611510 | 2020-10-01T18:47:15 | 2020-10-01T18:47:15 | 300,388,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | number = list(range(1,11))
def square(l):
empty=[]
for i in l:
empty.append(i*i)
return empty
print(square(number)) | [
"mihirv7781@gmail.com"
] | mihirv7781@gmail.com |
da38fc3ea3b67732802f09a7cad2d4a6fc6d2eaf | 177b5e8c33d3fede31291556cf57cd9fda08bb73 | /03.welcome-user/data_models/__init__.py | ebbed7f923f54df3b6e1382d16d212dce66ae2f3 | [] | no_license | Lycrika/Prueba_bot | d6d32954cfb53989d7ed1dbcec262adf88eb383e | 3dc22991d6ef2d94a4b230ea9d0ddaff5e7db658 | refs/heads/master | 2022-12-10T23:07:54.561038 | 2020-09-03T16:54:32 | 2020-09-03T16:54:32 | 292,627,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .welcome_user_state import WelcomeUserState
__all__ = ["WelcomeUserState"]
| [
"noreply@github.com"
] | Lycrika.noreply@github.com |
50c8ed36aa0ef9ef9ff88d080685ef00cd226fff | 2ab8567a39de52b0bd31b69be40a6a4c1080121f | /posts/models.py | a2dab9e06801ccc00ec7edf08a48a3ddfb897215 | [] | no_license | urahman1517/twitter | d84526cfb93ca09f08344790118ec1a8f0c542c9 | 61052cf3feb2e9cf66ff765973c436064bbfb4f8 | refs/heads/main | 2023-07-01T22:32:26.273753 | 2021-08-20T04:26:42 | 2021-08-20T04:26:42 | 397,506,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | from django.db import models
from cloudinary.models import CloudinaryField
# Create your models here.
class Post(models.Model):
class Meta(object):
db_table = 'post'
name = models.CharField(
'Name' , blank=False, null=False, max_length=14, db_index=True, default='Anonymous'
)
body = mo... | [
"urahman1517@outlook.com"
] | urahman1517@outlook.com |
a2e495fdc47015c860dc2e716dfa6d8a401a6538 | 0b40232eb2395c27353c892ef4ccb5c604bb75be | /Array/third_max.py | 174029680ba012a49f9c34cb0d61196da859ba00 | [] | no_license | HareshNasit/LeetCode | 971ae9dd5e4f0feeafa5bb3bcf5b7fa0a514d54d | 674728af189aa8951a3fcb355b290f5666b1465c | refs/heads/master | 2021-06-18T07:37:40.121698 | 2021-02-12T12:30:18 | 2021-02-12T12:30:18 | 168,089,751 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | def thirdMax(self, nums):
"""
https://leetcode.com/problems/third-maximum-number/submissions/
:type nums: List[int]
:rtype: int
"""
nums_set = set(nums)
nums_list = list(nums_set)
nums_list.sort(reverse = True)
if len(nums_list) > 2:
re... | [
"harsh.nasit@mail.utoronto.ca"
] | harsh.nasit@mail.utoronto.ca |
448f10654f9220c75b2e6296a98881c99e513397 | ea54fa9ee09d90ec2db1c5740704d55577bc1b54 | /app/test.py | fafe813236502ee648c274261f4ee63939cd0caa | [
"MIT"
] | permissive | bayuajinurmnsh/test_task | 0cf004c2600bc4bd13cd822ee5478ab03a1f818e | 67331413d240f9fd3c67ab05343e5a216b112f4a | refs/heads/main | 2023-07-06T09:54:13.551712 | 2021-08-15T08:58:19 | 2021-08-15T08:58:19 | 395,964,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,563 | py | from logging import error
import unittest
from requests.api import request
from app import app
import technical
class Test(unittest.TestCase):
#UNIT TEST FOR app.py
URL = "http://127.0.0.1:5000/test_task/api/distance_address"
data_valid = {"address": "Moscow"}
key_invalid = {"adres": "Moscow"}
... | [
"bayuaji.nurmansah16@gmail.com"
] | bayuaji.nurmansah16@gmail.com |
7564c377061b8558390c11f80829db31740ea8d9 | 7b3305ce06473172df7e441dbaa4d486f1449171 | /linked_dynamic_solver.py | 96b6cda67a837cf320b97aea8e4ee57a44021661 | [] | no_license | Kylepoore/knapsack-solver | 6ffda82b442e6d1119b83820b44bb8a5d97411fd | 3eb27fc4740919ecab52ddeb5a572422236e7303 | refs/heads/master | 2020-04-05T23:40:41.176024 | 2013-07-18T03:28:10 | 2013-07-18T03:28:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,619 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
def solveIt(inputData):
# Modify this code to run your optimization algorithm
# parse the input
lines = inputData.split('\n')
firstLine = lines[0].split()
items = int(firstLine[0])
capacity = int(firstLine[1])
values = []
weights = []
for ... | [
"kylepoore1@gmail.com"
] | kylepoore1@gmail.com |
c2e4537265eacfee364c3be61266d0a16861c951 | dc39ccc50b7d34e5de84f3cc132c5cc096a32656 | /BASIC/class/attribute.py | 40377cc862a0cdd596c36046d3178d5438bfeccf | [] | no_license | Shukladas1115/Python | 0947aefd62a9ce4c3140360cb7259b031368709c | feb32bc2e2e7df377fc2d92330bfdacb83f31a55 | refs/heads/master | 2022-02-20T04:15:56.036495 | 2019-08-26T16:36:52 | 2019-08-26T16:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | class A(object):
x = 1
class B(A):
pass
class C(A):
pass
print(A.x, B.x, C.x) # 1 1 1
B.x = 2
print(A.x, B.x, C.x) # 1 2 1
A.x = 3
print(A.x, B.x, C.x) # 3 2 3 tại sao vậy?
'''
C doesn’t have its own x property, independent of A.
Thus, references to C.x are in fact references to A.x
C kế thừa... | [
"minhhien90@gmail.com"
] | minhhien90@gmail.com |
cd96121d34ea23c08f5222fe1efa991136ffc79b | 8b3345a2a5005dfe42afbd6a0653ac7fc61f037d | /server/app.py | 0d9764ae696d6f3c9c51fe32821d0cb4edc39d99 | [
"MIT"
] | permissive | bfortuner/label-ai | a40be4e65ef7c4f46f8810d98c3d13b114bc42fc | f05896c2b2c2d282763ee7db54b5f66066073961 | refs/heads/master | 2021-01-19T14:17:00.034167 | 2017-09-01T16:07:59 | 2017-09-01T16:07:59 | 100,892,823 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | from flask import Flask
from flask_cors import CORS
from flask_graphql import GraphQLView
from schema import Schema
from flask import Response, request, abort, send_from_directory
from PIL import Image
from io import StringIO
import config as cfg
import data
def create_app(**kwargs):
app = Flask(__name__)
ap... | [
"bfortuner@gmail.com"
] | bfortuner@gmail.com |
fec89b02f0a042bdaf94e3f1b051f4f3ce65eb22 | 286407dc9a39025447a2a796125125b5558882e1 | /comments_app/forms.py | c197c6c0599f2213a340f64f620cbf498d8c0b97 | [] | no_license | cyh1995/blog0.9 | f2a608e0bc2ffd91ee9fd8b68133eb5cc2698ef0 | ee535bfec3068a2e3b6cfafce34a7cd22263a284 | refs/heads/master | 2022-12-09T05:04:51.772719 | 2018-06-09T02:31:53 | 2018-06-09T02:31:53 | 136,444,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # 通过调用这个继承与form对象的类的一些方法和属性,来代替原有的前端表单
from django import forms
from .models import Comment
class CommentForm(forms.ModelForm):
class Meta:
model = Comment
fields = ['name','email','url','text']
| [
"969963179@qq.com"
] | 969963179@qq.com |
d3d9bd3030137f0b28db61765cc2c6f602ff6ca5 | 591806a05facb216f4bec4615c91417ea8b68293 | /yummy/restaurant/forms.py | e1a592327d58fd5c86d37518dee33e6e61ef8412 | [] | no_license | neostoic/yummy | e8e214b3e56605850c40a823f82bd85a50b282bd | bedbdd6239e8aab7ea38778bf5b92e2812095c55 | refs/heads/master | 2021-01-17T23:36:14.032762 | 2014-05-12T15:30:33 | 2014-05-12T15:30:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | from django import forms
from restaurant.models import Review
from django.utils.translation import ugettext_lazy as _
class ReviewForm(forms.ModelForm):
class Meta:
model = Review
fields = ['content', 'rating']
widgets = {'rating': forms.RadioSelect()}
labels = {'content': _('Write... | [
"ghylxdw@gmail.com"
] | ghylxdw@gmail.com |
f4c38240821bf96e65612f342986cf276694f90d | 34578a08451dc124f02fbba92a219da3347059cd | /.history/tools/views_20190502130213.py | 5ef8462e7964c7373832387076323b91f3acac43 | [] | no_license | gwjczwy/CTF-Exercises | b35d938b30adbc56c1b6f45dc36cea1421c702fb | c2d5c47f5047b1601564453e270ce50aad7f56fc | refs/heads/master | 2020-05-25T23:51:26.190350 | 2019-05-22T13:18:59 | 2019-05-22T13:18:59 | 188,042,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,399 | py | from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from json import dumps
from .models import Url,Money
import time
#########################
#配置变量
sourcePath=r'C:\Users\arnoux\Desktop\... | [
"zwy053@163.com"
] | zwy053@163.com |
3c8a6763e29d5fa0d860c9b0725bd43c3a8400b0 | 71aa88ebc6fc7b2b7cb119ab19e7d0815b2bb11b | /mysite/settings.py | 07aaac233aab2ed0e099f5c7e9826578132a24ac | [] | no_license | zv100558snv/my-first-blog | e69f9b9fe6a18b6499603c776038d24bd6c8c7e5 | 52d7544a604986dde2e969b4e7dd08d8f4d9a03b | refs/heads/master | 2021-01-25T11:33:33.377867 | 2017-06-16T17:57:40 | 2017-06-16T17:57:40 | 93,933,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,293 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"zv100558snv@gmail.com"
] | zv100558snv@gmail.com |
fa36d96624f3655b5258367533c44b0c14db498b | d364123a0655bff7e9d725382934fe2c15b5bfc4 | /Crawler/lianxi/hsimg_test.py | bc62fc7c1c354c4ba3007bd3c78507f7a0a83c1e | [] | no_license | yuan1093040152/SeleniumTest | 88d75361c8419354f56856c326f843a0a89d7ca6 | d155b98702bc46c174499042b43257696b861b5e | refs/heads/master | 2023-08-31T15:00:25.415642 | 2023-08-30T09:26:42 | 2023-08-30T09:26:42 | 227,269,300 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | #coding=utf-8
'''
Created on 2018年7月15日
@author: kai.yangf
'''
import requests,re,time
from multiprocessing import pool
from requests.exceptions import RequestException
from threading import Thread
def get_one_page(url):
try:
response = requests.get(url)
html = response.text
if response... | [
"1093040152@qq.com"
] | 1093040152@qq.com |
99b6572f5e721b9004712c8f912dddaaac91b703 | 712394b09a33cfb1d66726a32e051f2729fcc2a8 | /python/api_scraping.py | 70e864b5b95b99b9802c9377b1f046da89b386fb | [] | no_license | AaronDonaldson74/code-challenges | 6c8f0deade05ea33d589f98720ae2cc0090c046e | d266a6eee7364451b9b233abc44d8964738e6aab | refs/heads/master | 2022-07-16T16:53:18.914504 | 2020-05-22T15:05:50 | 2020-05-22T15:05:50 | 256,545,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | ####Mine didn't work
"""
import requests
import pprint
from bs4 import BeautifulSoup
r = requests.get('http://www.dailysmarty.com/topics/python')
html = r.text
soup = BeautifulSoup(html, 'html.parser')
# print(soup.find_all('a'))
links = soup.find_all('a')
for link in links:
if link.get('href'):
print(lin... | [
"Dev.Aaron.Donaldson@gmail.com"
] | Dev.Aaron.Donaldson@gmail.com |
30f79ab832c61791b1d7ad8a735e2dd76ec18658 | 1cb77df33f8a3abaf7d9e775e0b4d51867554341 | /mysite/settings.py | 38d216e79024bab6347fd8ea7820213b845f3aa8 | [] | no_license | EugeneLemeshevsky/Django.test | 6a0f50c84ce77156273d1de59fe4458b8cb1b11f | fe7991b139195118b5acbc7d866482e800826ada | refs/heads/master | 2021-01-19T20:22:35.155499 | 2017-05-18T15:31:24 | 2017-05-18T15:31:24 | 88,501,044 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
#... | [
"elemeshevsky@gmail.com"
] | elemeshevsky@gmail.com |
31f64762cb63b1fbd9b34933a297a9ed4438eddb | ffad0de28109d0156baba92b5793e6d8142ced7c | /server/channels_list_test.py | 84b54743e63a3c4deed2798a8d9a3f3a3ced6293 | [] | no_license | nomii15/COMP1531-server | 823753e11b78619b7f67c32d9f5f1f39d839b6f8 | af00ba90cdf2fa1ce5170a7a2bf506bfe550bbd7 | refs/heads/master | 2021-07-17T08:26:57.074709 | 2019-11-17T07:29:44 | 2019-11-17T07:29:44 | 228,518,923 | 1 | 0 | null | 2021-01-05T18:13:55 | 2019-12-17T02:47:02 | Python | UTF-8 | Python | false | false | 1,550 | py | import pytest
from channels_list import channels_list
from auth_register import auth_register
from channels_create import channels_create
'''
Provide a list of all channels (and their associated details) that the authorised user is part of
'''
def test_list_one():
#setup
register1 = auth_register("validemail... | [
"email@example.com"
] | email@example.com |
f389fa4b887a9f39521c43981f7fa8e10aff2cd2 | 779e9e07d82b745e81d135e298274d82371218ea | /Introduction_to_the_Bioinformatics_armory.py | 9b0a57f87236c6d7b1686e6ceec185f9f731f7eb | [] | no_license | TigerYassin/Rosalind | 099660b47e8137e0a092a651908a25f34ddb76ed | c11921f790c8ae0453df3d967784675a93921408 | refs/heads/master | 2021-01-19T08:00:40.142454 | 2017-04-22T19:57:03 | 2017-04-22T19:57:03 | 87,594,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | """
count how many times each time the each letter appears
working
"""
myString = raw_input("Enter your string")
A = myString.count("A")
G = myString.count("G")
T = myString.count("T")
C = myString.count("C")
print A,C,G,T | [
"yassin@incorporated.org"
] | yassin@incorporated.org |
7e076554b3b3afe2172491769a0650071b0ad1b5 | bf3d9406b1ae813c4f93a3f294483146848bd566 | /slp/util/parallel.py | 47e48ba7c49f98fdf3bea6393f8f65e1b6cf9879 | [
"MIT"
] | permissive | Hadryan/slp | 9c038c0273d7c3ff109bba1b5381a1b1a256e3ed | 9a5a2b4d56a256e953c5f2c8972b8cd8ca584ced | refs/heads/master | 2020-07-25T21:32:06.970945 | 2019-06-18T17:49:37 | 2019-06-18T17:49:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,327 | py | # flake8: noqa
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## Created by: Hang Zhang, Rutgers University, Email: zhang.hang@rutgers.edu
## Modified by Thomas Wolf, HuggingFace Inc., Email: thomas@huggingface.co
## Copyright (c) 2017-2018
##
## This source code is licensed under the MIT-... | [
"geopar@central.ntua.gr"
] | geopar@central.ntua.gr |
a4aa71959c2f1c3dce79168ddb51c85bfaa1899c | cdee5cc20a5085b40f8555e7199fe19403e005c3 | /experimental/graphicalClassification/MultiClassMajorityVote.py | e02402ed226105cb3faf7d5e5aab05424c9616b6 | [
"Apache-2.0"
] | permissive | visenger/aggregation | 1e908d11df701e900d94d6545f3cc35a6c7dc915 | 82dce87eaaf14b0b2bedd29fc82c026fda2a0138 | refs/heads/master | 2020-03-19T03:08:52.140663 | 2017-06-21T10:32:27 | 2017-06-21T10:32:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #!/usr/bin/env python
from __future__ import print_function
__author__ = 'greghines'
class MultiClassMajorityVote:
def __init__(self,subjectNodes,userNodes):
self.subjectNodes = subjectNodes
self.userNodes = userNodes
self.alpha = 0.6
def __classify__(self,attributeList):
for a... | [
"ggdhines@gmail.com"
] | ggdhines@gmail.com |
a8ed54d16d183772b2a0c8c2adc1a98cc0b4f006 | 4aa464b9fe64e12527524ae46e3fd52d8b555232 | /extractAndSplitSDF.py | 85d25b4018b9abb8dfe1959bc85bd7a588962811 | [] | no_license | amaunz/embrel | 8ebf669a6835b982761b2f7e9bde9434e3fd85c9 | 683b01fec6e7fe2f022e615c4325811d8dc09d62 | refs/heads/master | 2020-05-15T13:17:32.389335 | 2009-06-20T16:10:28 | 2009-06-20T16:10:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,046 | py | import sys
import getopt
import re
import os
import openbabel, pybel
def setHash(hash,key,value,debug=False):
if debug:
print 'debug::%s' % key
try:
hash[key] = value
except:
print key
pass
class SDFReader:
molecules = {}
fieldStructure = {'animals' : ['Dog_Primate... | [
"andreas@maunz.de"
] | andreas@maunz.de |
596371fc40da72e9144ca944c568c4e424504ca9 | 7d7a50abe111fbd95ef0fcc89a89a891938627da | /halalapp/models.py | 2b3b0449ff9cfe5655c2976df38e70f9e6fbf0e0 | [] | no_license | YounngR/HalalApp | 398e347dae2779b2e762d5f321887b6477774f1a | 593e7f3375e3150957587dda0e1782a244caf153 | refs/heads/master | 2022-03-29T23:12:16.767267 | 2019-12-01T09:13:46 | 2019-12-01T09:13:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | from django.db import models
class User(models.Model):
user_ID = models.CharField(max_length=20, blank=False)
user_PW = models.CharField(max_length=20, blank=False)
e_mail = models.CharField(max_length=20, null=True, blank=False)
phone_number = models.CharField(max_length=20, null=True, blank=False)
... | [
"syr94@daum.net"
] | syr94@daum.net |
a70c7ad6684dd6121db4c63219f381a8d520655e | eddb7468b7f1b54789893d509fbf119e0bbf1786 | /fetcher/BlessFetcher.py | dfd28dc77348cc81ddf4145907bb26bade96698a | [] | no_license | destinationluo/wedding-invitation-analysis | e86f6568de96c2de2fb217de9f4af011c35d86fb | 5762faad61a2181e22004f4f0b0de2117235944c | refs/heads/master | 2020-04-10T13:54:04.040371 | 2018-12-13T16:00:44 | 2018-12-13T16:00:44 | 161,061,875 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | # -*- coding: utf-8 -*-
__author__ = 'luoqian'
from datasource.MySQLUtil import *
class BlessFetcher(object):
def __init__(self, mysqlUtil: MySQLUtil):
self.mysqlUtil = mysqlUtil
def fetch(self, callback):
sql = "SELECT * FROM bless order by id desc"
self.mysqlUtil.executeQuery(sql... | [
"359583129@qq.com"
] | 359583129@qq.com |
bb9642dc5230886722fa77ed337f507f0a5ba8c9 | c72f2ab329485a67ac57b19f40ec77ae37195e52 | /tests/tools.py | eb91ba610df13cd4da8389cdbbf084031022c06b | [] | no_license | YiningGuo/Habit-Tracker | 26ab2cfc15fa74610d2625f7850d3d32eef2aa4a | 63883259ec8037206dd58ae7ed31e47c930d155f | refs/heads/master | 2021-05-11T01:34:16.319350 | 2018-03-13T07:46:45 | 2018-03-13T07:46:45 | 118,332,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | import os
import sys
import unittest
from google.appengine.ext import testbed
class TestTool(unittest.TestCase):
"""Test set up tools for unit testing"""
lib_path = os.path.abspath(os.path.join(__file__, '..', '..', 'py'))
sys.path.append(lib_path)
test_email = "test@example.com"
user_id = '123'
def set_... | [
"yguo9310@uni.sydney.edu.au"
] | yguo9310@uni.sydney.edu.au |
39ddeb9ad873ed4901adbf3640031f907f3503a3 | 2b5bc632859ca01b6b2feae6186b1314ed8c5187 | /everpad/provider/daemon.py | 5b6b49be3c92f2d0a2ee5e6669c92c7f6b8189b9 | [] | no_license | mcardillo55/everpad | c64e2d35bd4ccceff901d9720030dbb8adfcef56 | ab6271a5b73eedf81d0c31e351e567282dbd6685 | refs/heads/master | 2020-12-25T05:55:05.811394 | 2012-12-19T03:36:25 | 2012-12-19T03:36:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | import sys
sys.path.insert(0, '../..')
from everpad.provider.service import ProviderService
from everpad.provider.sync import SyncThread
from everpad.provider.tools import set_auth_token, get_db_session
from everpad.tools import get_auth_token, print_version
from everpad.provider import models
from PySide.QtCore import... | [
"nvbn.rm@gmail.com"
] | nvbn.rm@gmail.com |
4726012f426c9e8943505c2ecbca998aa912a06a | 246e9200a834261eebcf1aaa54da5080981a24ea | /project-euler/26-50/distinct-powers.py | 548316d3dcc396ed31b53767aa4519b6d076d20d | [] | no_license | kalsotra2001/practice | db435514b7b57ce549b96a8baf64fad8f579da18 | bbc8a458718ad875ce5b7caa0e56afe94ae6fa68 | refs/heads/master | 2021-12-15T20:48:21.186658 | 2017-09-07T23:01:56 | 2017-09-07T23:01:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | powers = set()
for i in range(2, 101):
for j in range(2, 101):
powers.add(i ** j)
print len(powers) | [
"jacquelineluo95@gmail.com"
] | jacquelineluo95@gmail.com |
08de3983cade375a46349f7de656f9ca3a921a9e | 89b45e528f3d495f1dd6f5bcdd1a38ff96870e25 | /PythonCrashCourse/chapter_06/exercise6_05.py | b03a04f3a086ec1337414ecd27d147eb1ba55d24 | [] | no_license | imatyukin/python | 2ec6e712d4d988335fc815c7f8da049968cc1161 | 58e72e43c835fa96fb2e8e800fe1a370c7328a39 | refs/heads/master | 2023-07-21T13:00:31.433336 | 2022-08-24T13:34:32 | 2022-08-24T13:34:32 | 98,356,174 | 2 | 0 | null | 2023-07-16T02:31:48 | 2017-07-25T22:45:29 | Python | UTF-8 | Python | false | false | 660 | py | #!/usr/bin/env python3
rivers = {
'amazon': 'brasil',
'nile': 'egypt',
'mississippi': 'usa',
}
for river, country in rivers.items():
if river == 'mississippi':
print("The " + river.title() + " runs through " + country.upper() + ".")
else:
print("The " + river.title() + " runs t... | [
"i.matukin@gmail.com"
] | i.matukin@gmail.com |
5455de00b15db2d7287cf466dab2e7fcaf5920cb | 9bc780c6414ce29fde8c8294db88a2464b563a59 | /myst/wsgi.py | a317d395bcdad76cde1aa1d4e78cca2452abc915 | [] | no_license | me3onik/test | 36d63105c9193971f59b4905cac7aadd740aa76f | b5057ef8a0e20c37b7cadcddb9e80b5cc20113e9 | refs/heads/master | 2020-05-26T08:09:12.176370 | 2019-06-13T07:55:29 | 2019-06-13T07:55:29 | 188,161,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for myst project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"me3onik@gmail.com"
] | me3onik@gmail.com |
b07e20842b46cac3da56fd62ca2c28f96062795b | f34184e6060b58680a9768c58f53e10ca17a0dc3 | /manage.py | 894acc68496b98d22c16a94be490e713ff01efaa | [] | no_license | ExtremelySeriousChicken/instaTravel | ee150249e6a4d061bfff1ec7f3ffa4ee11fff036 | d4dbb61ccea838197639f872cdfcd96af61eb91f | refs/heads/master | 2021-01-16T21:27:29.566892 | 2015-09-30T21:42:21 | 2015-09-30T21:42:21 | 42,782,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | #!/usr/bin/env python
import os
from app import create_app
from flask.ext.script import Manager, Shell
app = create_app('default')
manager = Manager(app)
if __name__ == '__main__':
manager.run() | [
"wijaya@umich.edu"
] | wijaya@umich.edu |
8ac9678fb6079ee9bfdb77dac2a762f5d30f718e | 2f1e83dc48cca5c14fad53ad95a4b920756508e4 | /src/z3c/menu/simple/menu.py | 02483430e7ffc333cd90b1dee8efeaea95e67078 | [
"ZPL-2.1"
] | permissive | ZeitOnline/z3c.menu.simple | c5839c70a3eaccc3c8a1a2f1e72de96b030f7176 | fc6f8ce8fddb5918a18e997e3adb53a58547b419 | refs/heads/main | 2023-02-22T19:45:47.983639 | 2019-12-12T10:14:33 | 2019-12-12T10:14:33 | 220,233,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,017 | py | ##############################################################################
#
# Copyright (c) 2005 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"tom.lazar@zeit.de"
] | tom.lazar@zeit.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.