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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c3a893c3d848b53fed2af2a0af5ef2a746813b2d | 352f7d1258e51d3b7e8cfcbb4b527c3e27a68fe5 | /tests/test_img_server.py | b8eca0fb172da1de0c121455a4bcb1751b25020c | [] | no_license | lidingke/fiberGeometry | 67b53535ca1060af1ab29de915f1190258d7986e | 1455fd815884a735d5b9e87aff07244ca9a95a23 | refs/heads/master | 2020-05-21T16:45:06.374649 | 2018-02-25T06:30:15 | 2018-02-25T06:30:15 | 62,809,512 | 1 | 1 | null | 2017-08-29T03:21:54 | 2016-07-07T13:37:45 | C | UTF-8 | Python | false | false | 2,947 | py | # coding:utf-8
from setting.config import SIMULATOR_IMG_SERVER_COFIG
from SDK.simulator.client import Client
from SDK.simulator.server import ImgServer, SeverMain, SharpSever
from threading import Thread
import multiprocessing
from tornado.ioloop import IOLoop
from functools import partial
from util.getimg import getIm... | [
"lidingke@hust.edu.cn"
] | lidingke@hust.edu.cn |
38d2dbf7b4c4318db1aa5f047796969a2fa6f580 | faa88b9ce08927d8b10df7ce4fa2b84a36ba1a1a | /main_part.py | f375259e69307399ed5e867056b61dce64e7caea | [] | no_license | Hengle/AzurLaneCharCuter | c2c03ead4261b460026c58c06f4b3bc069eb407a | 6bbbef1b99a265ccc6196ab714fb8cf004d51ba1 | refs/heads/master | 2020-04-13T09:16:47.926365 | 2018-10-07T04:23:15 | 2018-10-07T04:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | import os
import time
import holder as ch
differ = []
try:
os.makedirs("texture2D")
except FileExistsError:
pass
try:
os.makedirs("textAsset")
except FileExistsError:
pass
try:
os.makedirs("out")
except FileExistsError:
pass
texture2D = os.listdir('texture2D')
textAsset = ... | [
"noreply@github.com"
] | Hengle.noreply@github.com |
219150e42458beefd2bdfb1d0c2dce9894c0da99 | 509bcad7c66c86d7abb19eacc22a623f8b118017 | /tornado_study/second_day/second_1_re_url.py | aed4c894832100b869d36dd2a3c575773547630b | [] | no_license | yanliangchen/IT-notes | 9da6a2a1fbf142216bb76c27d06f5d3c83453f47 | 0ec660d050b98721702aa3c865443d390bad6a09 | refs/heads/master | 2022-12-13T21:47:26.841777 | 2019-10-11T09:37:55 | 2019-10-11T09:37:55 | 139,413,722 | 2 | 2 | null | 2022-11-22T01:57:46 | 2018-07-02T08:27:46 | HTML | UTF-8 | Python | false | false | 1,918 | py | # coding:utf-8
import tornado.web
import tornado.httpserver
import tornado.ioloop
import config
# 数据格式规范
import json
class IndexHandler(tornado.web.RequestHandler):
#通用接口
# 还可以自定义响应报文
# 中间如果没看到的话可能出现304(缓存,not modify )状态码
def set_default_headers(self): # 全局header
self.set_header... | [
"18518274668@163.com"
] | 18518274668@163.com |
05bf5726a0cdcdb2391ad837b8d4b800278ef405 | 04dcabae3204ea452bffa94aee36219fffb2f061 | /generate_wakeword_data_lists.py | 6a6c186cd88eb18c95e802de0832457ec15a59d0 | [] | no_license | alhuang10/SincNet | 2ecce54bce7add1eb5ec3e02bc90325fe803b057 | 380fa11b9992a15e34d2710257bcaf5cae842047 | refs/heads/master | 2020-04-17T01:42:35.287785 | 2019-02-11T21:18:29 | 2019-02-11T21:18:29 | 166,104,961 | 0 | 0 | null | 2019-01-16T20:14:00 | 2019-01-16T20:13:59 | null | UTF-8 | Python | false | false | 15,105 | py | import os
import numpy as np
import random
import pickle
from collections import defaultdict, OrderedDict
OUTPUT_DIR = 'wakeword_file_lists'
def get_unique_items(label_dict_file):
label_dict = np.load(label_dict_file).item()
return len(set(list(label_dict.values())))
def generate_label_dict(file_set, outpu... | [
"alhuang10@gmail.com"
] | alhuang10@gmail.com |
0b44cfd985f782a84ac2728b47d5a1534985b337 | 7aae6ca4e4eb098adfca9385f0861953f19a5b4a | /src/python/resultConvert.py | 50a177b206f79c26cb68eacb5a7e91d078224314 | [] | no_license | Hangzhi/FBDP-Lab4 | 0871f4b3c66ed88d6e5192b733333e8d2170a95a | 53a801b07f43d22c764a1ec62580712146373b3d | refs/heads/master | 2021-10-09T07:12:44.765446 | 2018-12-23T13:33:07 | 2018-12-23T13:33:07 | 161,329,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 17 21:11:47 2018
@author: Lenovo
"""
import pandas as pd
df=[]
sentiDic={}
resultfile=open('scratchBayesResult.txt','r')
line=resultfile.readline()
while line:
line=line.rstrip()
tmpSplit=line.split('\t')
tmpSplit
sentiDic[tmpSplit[0]]=t... | [
"noreply@github.com"
] | Hangzhi.noreply@github.com |
8eaa24b375d82559d9b3864a8fb2e7b5b1b5628c | 2e6f7d89f763b7e00f029fd4ed665469ada294bd | /recommendation-system/recommendation_system.py | 2b3a6c934cccd779497d46fcc5dc545c23c95f02 | [] | no_license | N0nl1n34r/capgemini-expedition-coding-challenge | dab7dcc2aa4fc89b586e098f57355ccae1f5c660 | f714020d3a5de6c1389af976d859fae0f0e18508 | refs/heads/master | 2023-07-04T07:43:06.663801 | 2021-07-29T17:55:08 | 2021-07-29T17:55:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | # this cli tool gives recommendations according to given rules.
# First argument is the json from which you want to give recommendations.
# Second argument is a dictionary where the key is a jsonata query and the value is a message,
# which gets printed, if the jsonata query evaluates to true.
from pyjsonata import js... | [
"d.hessel@wwu.de"
] | d.hessel@wwu.de |
ef2e2684ce859f054346f0e34b65fe4d07d65ab1 | d934d3084cd3dd38815706a72be321382eddc127 | /mappings/MinorCPU_fpu.py | 02ef6a9f937a73bc0571fd1914d7100918c7dedd | [] | no_license | Accelergy-Project/gem5-accelergy-connector | 58d6b27328c44a0e0512601ad9d42cf68cbf667c | e3af25e914e3a53f0bdfb8be784b33844baf6336 | refs/heads/master | 2023-03-24T19:56:33.674582 | 2021-03-17T19:40:39 | 2021-03-17T19:40:39 | 257,961,160 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | gem5_class = "MinorCPU"
accelergy_class = "func_unit"
path = "system.chip.cpu"
name_append = "fpu"
criteria = True
constants = [
("type", "fpu")
]
attributes = []
actions = [
("access",
["op_class_0::FloatAdd",
"op_class_0::FloatCmp",
"op_class_0::FloatCvt",
"op_class_0::FloatMult",
... | [
"frwang@mit.edu"
] | frwang@mit.edu |
65130fb22e04cf64a527af5eee14abb9c660c809 | 880b795f6aab85f0f7156127842368cfab46969e | /Python/25_libreria_requests.py | 7b5895b2377e9dd6ed2890b6e27326b4090fada5 | [] | no_license | jovannygomez/CursoLeonEoiPythonDjango | 0d3c40ef50d6c6954d5c63dfc63c772d4705ee5d | 346e0e95df71e9fbeee678d4592e2205eabec5be | refs/heads/master | 2021-08-31T04:45:31.254196 | 2017-12-20T12:01:55 | 2017-12-20T12:01:55 | 114,881,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | """
La libreria requests simplifica mucho el trabajo con llamadas y respuestas http
https://
"""
import requests
response = requests.get('https://httpbin.org/ip')
ip = response.json()['origin']
print('tu ip es', ip)
response = requests.get('https://swapi.co/api/people/')
people = response.json()['results']
for pers... | [
"jovanny-145@outlook.com"
] | jovanny-145@outlook.com |
e82f2269c0d7467870ca0afcbf475266fb410271 | 6370a0ee5785204f7d2e31906c9e8fb61a51d530 | /7_exception_assertion.py | 9a7bed105133e8f67bdccfbbb4cefec8249c1448 | [] | no_license | P-tan/pythonIntro | 7de9a813ed3f82d5bcfcea3234cca1f52c1945fe | 7e794f38f0d9f8acb2b2726fc66a45d9d3a1063d | refs/heads/master | 2020-12-31T01:02:31.926892 | 2016-09-15T20:16:10 | 2016-09-15T20:16:10 | 68,323,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,410 | py | # -*- coding: utf-8 -*-
#%%
test = [1, 2, 3]
test[3]
#%% 7.1 例外の処理
# 未処理例外
#%% try-except
try:
numSuccesses = 1
numFailures = 0
successFailureRatio = numSuccesses / float(numFailures)
print 'The success / failure ratio is ', successFailureRatio
except ZeroDivisionError:
print 'N... | [
"ptanmail@gmail.com"
] | ptanmail@gmail.com |
32e0bd56b4c4a6012c44ffeeb0f3cca83a06e528 | b14f04873a951ebb63593ca618af38bad5415c7a | /fetch_spacex.py | fdc073bdfcd84693663d7a06bb793a6b360e0a78 | [] | no_license | alezi06/space_insta | aa6ee1259cc9bedbf75cb62d50d8e82a0f35c00b | 30821263ce8e7d4980f3dc22665d2513175033fb | refs/heads/master | 2020-04-21T13:37:52.483650 | 2019-02-13T20:00:49 | 2019-02-13T20:00:49 | 169,603,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import os
import requests
from helpers import get_image_path
def fetch_spacex_last_launch():
url = 'https://api.spacexdata.com/v3/launches/latest'
response = requests.get(url).json()
image_links_list = response['links']['flickr_images']
os.makedirs(get_image_path(), exist_ok=True)
for image_num... | [
"alezi06@mail.ru"
] | alezi06@mail.ru |
609cf96a13149dacdc0965276d4fdf3f6c48b7ad | 31de1eaaaa6baf1b6b54543a895b4fbab8b27703 | /build/rosserial/rosserial_python/catkin_generated/pkg.installspace.context.pc.py | 45a938f9779c9acb5bdb702aba86afc1ed7022d6 | [] | no_license | PHSCRC/Ogrebot-ROS | dade38eeb0a08958e448427248f38275a18186dc | afde00120d16ffa45426555b9788da5291946284 | refs/heads/master | 2020-04-17T11:53:54.648548 | 2019-03-03T23:28:24 | 2019-03-03T23:28:24 | 166,558,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rosserial_python"
PROJECT_SPACE_DIR =... | [
"stephmorel8910@gmail.com"
] | stephmorel8910@gmail.com |
8790627ceaf3ba374592b7991b77b81a46f1e13a | 28969d0cfe474b5395686fc2f2093eab3dc1c99b | /29pygame/squish.py | 53ca62883f1a83d3638bbf621db435d6b71391bf | [] | no_license | strawwhat/pythonbasic | cf1a86d2c044b04119120e72fbf7f9eceb941d30 | 01e8b9fcdf7efa6d1fda6cf9b2e5a50c94d38b8f | refs/heads/master | 2021-01-23T00:19:58.216208 | 2017-06-26T15:46:39 | 2017-06-26T15:46:39 | 85,714,746 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,160 | py | #!/usr/bin/python
# *-*coding:utf-8 *-*
"""
29-4 主Game模块(Squish.py)
这个模块包括Squish游戏的主要游戏逻辑
"""
import os, sys, pygame
from pygame.locals import *
import objects, config
class State:
"""泛型游戏的超类,可以处理事件并且在给定的表面上显示自身"""
def handle(self, event):
"""只处理退出事件的默认事件处理"""
if event.type == QUIT:
sys.exit()
if event.t... | [
"bnm1122@yeah.net"
] | bnm1122@yeah.net |
e80ae22a9a4bd5dce59bdc85a6df5f6d5a884108 | 6c61a84b25a1016282cefd8989c96ec01f6f165d | /proxy.py | 4ef7bf9da01fc2638932ea90ddbe91dddb69c361 | [] | no_license | ariksu/testHub | d29117cce0e1ff3c2b90a98ea28bee903f404bfb | 7bf08eb97b541fce09bc873c1809f30e9ee148e3 | refs/heads/master | 2020-04-03T10:54:52.040119 | 2018-10-29T07:36:29 | 2018-10-29T07:36:29 | 155,206,080 | 1 | 0 | null | 2018-10-29T12:12:28 | 2018-10-29T12:12:27 | null | UTF-8 | Python | false | false | 4,626 | py | import sys, socket, threading, argparse
def request_handler(buff):
# perform the necesary packet modifications
return buff
def response_handler(buff):
# perform the necessary packet modifications
return buff
def receive_from(connection):
buff = "".encode()
# setting a 2 second timeout
... | [
"photoelf@gmail.com"
] | photoelf@gmail.com |
8e38fa863780ad5366169fad878261030b099615 | 95fce19d57e9e9e72d73bdd6f902b882f4de4713 | /01_hall_1.py | 25bd0eed6449d28537b690c304b21f895fe51450 | [] | no_license | alexmihaila64/Sunfounder_SensorKit_Python_code_for_RaspberryPi | af270a4dc2f57b99373406abda88c7492d29a6ab | 7c218720ee1c83daabe77b705cf8846c3b545558 | refs/heads/master | 2021-01-15T14:50:46.154356 | 2015-05-23T04:37:48 | 2015-05-23T04:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | #!/usr/bin/env python
import RPi.GPIO as GPIO
HallPin = 11 # pin11 --- hall
LedPin = 12 # pin12 --- led
def setup():
GPIO.setmode(GPIO.BOARD) # Numbers GPIOs by physical location
GPIO.setup(LedPin, GPIO.OUT) # Set LedPin's mode is output
GPIO.setup(HallPin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.o... | [
"chuanmorison@gmail.com"
] | chuanmorison@gmail.com |
fe45798e409363ccd46457c0363668f8f1751687 | b7d818def2a72abf31df102303b59e35ad002ba2 | /midwares/ml_alert.py | abf7855964b5a5a31fb469a01d62e4d285b6dca2 | [] | no_license | wisehead/python_lib | b0f2bd1881cb5398c6cf27ac0431d39689d3aeb3 | ae9f9252b370a1a74dc60a56db39567770e7f797 | refs/heads/master | 2022-09-05T07:48:38.414479 | 2022-08-20T15:01:38 | 2022-08-20T15:01:38 | 134,382,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,862 | py | #!/usr/bin/python
"""
use the python code to fetch the SQLs from suspect_sql_new, then analyze it
with machine learning algorithm. then insert the injection SQL into ml_ids_event_new.
Then the alert perl script will read it out and send it to security department.
"""
# -*- coding: UTF-8 -*-
import MySQLdb
from socket ... | [
"alex.chenhui@gmail.com"
] | alex.chenhui@gmail.com |
ccdee4252fa5b289fd38d1f0e47ebc13bf975a80 | 0f900a22552d9b94c1c86784e76e3935a1e7bdde | /IssueBook.py | 967ed2f0b21965d0882d64b4218f83578b2ebf96 | [] | no_license | Mini-Bong/LMS_Python_Tkinter | c24ef6a37015ca94bbec65c2559b6420d68ac5ba | 7a3ff836eff0156eea65aa94b849c0b0a23f9028 | refs/heads/master | 2023-03-24T05:15:00.155730 | 2021-03-21T06:11:59 | 2021-03-21T06:11:59 | 308,681,642 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,531 | py | import tkinter as tk
from tkinter import *
import pymysql
from PIL import ImageTk, Image
from tkinter import messagebox
dbName = "LMSdb"
empTable = "empdetail"
stuTable = "studetail"
bookTable = "books"
issueBookTable = "issueBookDetail"
count = 0
connector = pymysql.connect(host ='localhost', user = 'root', database... | [
"mg550210@gmail.com"
] | mg550210@gmail.com |
ad848a843635a1019e33e979d3ae7126f685e1b6 | a9bedca7e85106c92045a8399f5aca009d73ed43 | /weather/middlewares.py | 755a7341f46b1f82aa41a7bb5c37c9797b03ff2f | [] | no_license | Ruabye/ChinaWeather | d6f9506e5825f38ccda32ac943682208450a39f9 | f7119d5008b5327e7339c1c4b70ac419cc274e71 | refs/heads/master | 2022-12-10T15:58:28.888858 | 2020-09-20T00:49:17 | 2020-09-20T00:49:17 | 296,968,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,583 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class WeatherSpiderMiddleware:
# Not all methods need to be defined. If a method is not defined,
# scrapy acts as... | [
"rye8421bcd@126.com"
] | rye8421bcd@126.com |
c21b1ffdec708ffd7c485a3f60057cad62c5445c | ae033c4d58ec0c0c4b0c55550d7fbdabf919a21f | /BucketList/migrations/0008_auto__del_field_bucketlistitem_south_test.py | be55bc3669bc084b2f48faca07bf41f2326b6860 | [] | no_license | Cmlsltnl/BucketListCalculator | 9079fe72cf895778d4fae09c628bdbdf3cd1e5df | cb6bd6475e0fb3f8854f65abbaf883a1069cdb50 | refs/heads/master | 2021-01-13T03:08:45.214543 | 2015-01-21T21:58:49 | 2015-01-21T21:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,480 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'BucketListItem.south_test'
db.delete_column(u'BucketLis... | [
"michaelrsullivan1@gmail.com"
] | michaelrsullivan1@gmail.com |
ccdc10c3229a96f799ffb8a5d260e71f91cbf311 | 31514484f5722a23bb0bef1d47bce6e1a3958096 | /OracleOfNumpy/pic2oled.py | b1c015f6b31da68534abc2b152a38d3f695f174e | [] | no_license | moharkalra/Oracle | 0ecdf7eab1be7b31190e669c95eca802156aaa10 | 329d6a7930f1c8890f27270a8722878f42ad1024 | refs/heads/master | 2022-12-13T21:33:38.824188 | 2020-09-12T13:39:26 | 2020-09-12T13:39:26 | 294,867,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,243 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Picture to OLED screen (pic2oled)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Convert an image to a hexadecimal array for OLED screens.
Usage:
>>> python pic2oled.py <filename>
The script outputs a C declaration of a static array. Code output may be easily
included in source cod... | [
"mokamo01@yahoo.com"
] | mokamo01@yahoo.com |
ccffdde7de02461543a3f4f909b19626b7520c9f | f516b7561b93f640bcb376766a7ecc3440dcbb99 | /leetcode/easy/add-binary.py | a7a66ad52358184d587c15dba4b509ef2bcc902c | [
"Apache-2.0"
] | permissive | vtemian/interviews-prep | c41e1399cdaac9653c76d09598612f7450e6d302 | ddef96b5ecc699a590376a892a804c143fe18034 | refs/heads/master | 2020-04-30T15:44:42.116286 | 2019-09-10T19:41:41 | 2019-09-10T19:41:41 | 176,928,167 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | class Solution(object):
def addBinary(self, a, b):
"""
:type a: str
:type b: str
:rtype: str
"""
if len(b) > len(a):
a, b = b, a
a = a[::-1]
b = b[::-1]
count = 0
remainder = 0
result = ""
while count < l... | [
"vladtemian@gmail.com"
] | vladtemian@gmail.com |
1a8f004294ff64733c4322dbc48686f5461ec22d | c8f508ec84c88ec468db9b6d7989bff78e27fabb | /experiments/light_gbm.py | 810cf522b6f97a64f540e26faf590269b6678ef2 | [] | no_license | jirivrany/kaggle-malware-detection | 36cd1e4849485ad03e762c7766b5c178fc4ade01 | 49da5822313b162bb657dd5bc96022eb9c86a0a4 | refs/heads/master | 2020-04-12T04:24:26.970941 | 2019-02-18T09:11:26 | 2019-02-18T09:11:26 | 162,294,596 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,673 | py | # coding: utf-8
import warnings
import gc
import pickle
import time
import kaggle
import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import lightgbm as lgb
from datetime import datetime as dt
from sklearn.model_selection import KFold
from sklearn.metrics import ... | [
"jiri.vrany@tul.cz"
] | jiri.vrany@tul.cz |
3bc801af96cf998efd961d2ff892da8cd5f95e93 | 3de11c5630cad4ca816ad17dd2f6c743b8799108 | /djangorestframework/tutorial/tutorial/settings.py | 57a3ef605fb5ea039f858ff6b08cc8fa7ff71296 | [] | no_license | greenfrog82/TIL_Python | a6f03b0ae6f2260310faa5ef59d4bd01dcf6a1ed | 015116c5ff4a14f531e3693f9cfd3a921a674b81 | refs/heads/master | 2022-12-09T22:34:49.485937 | 2021-05-11T10:59:41 | 2021-05-11T10:59:41 | 154,969,150 | 0 | 1 | null | 2022-12-08T01:20:11 | 2018-10-27T13:44:56 | Python | UTF-8 | Python | false | false | 4,216 | py | """
Django settings for tutorial project.
Generated by 'django-admin startproject' using Django 2.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
i... | [
"greenfrog82@naver.com"
] | greenfrog82@naver.com |
21e89041981492ca1efd8f1c75f95ab846b97378 | 6d84ba122ccd5e49aef98d56e07ce5c4fdc4f068 | /blueprints/auth.py | e8a37760bcdf7c2665952899be7fbee501fc54ea | [] | no_license | accalina/divingclass | 0f828deea89b25f3066a3ef128a8716586c4a7eb | 04f686456896d2726f6ef217fac882ef679575ab | refs/heads/master | 2020-06-25T02:46:07.366952 | 2019-07-29T07:01:10 | 2019-07-29T07:01:10 | 199,175,219 | 0 | 0 | null | 2019-07-29T07:01:11 | 2019-07-27T14:30:19 | HTML | UTF-8 | Python | false | false | 2,066 | py | from flask import Blueprint, render_template, request, session, redirect
from model.model import Model
auth = Blueprint("auth", __name__, static_folder="../static", template_folder="../templates")
m = Model()
# ENDPOINT --------------------------------------+
@auth.route("/")
@auth.route("/index")
def index():
if... | [
"ikhsan.b@jublia.com"
] | ikhsan.b@jublia.com |
4b335c4d07a217713be2e5111abdcd20636a6b37 | 326142a582c8864240064692a6500dc12da91697 | /73_Set_Matrix_Zeroes.py | 2b600d488345bac320111b72d29f3cab61e917b7 | [] | no_license | qscez2001/leetcode | 960e775f3c7190ea2f2c3078a25714aafaf8801b | f124203c13b2e539acc7a863ec9b1a56363b1f96 | refs/heads/master | 2022-02-26T03:35:14.308765 | 2022-02-07T07:22:48 | 2022-02-07T07:22:48 | 238,398,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | '''
Given an m x n matrix. If an element is 0, set its entire row and column to 0. Do it in-place.
Follow up:
A straight forward solution using O(mn) space is probably a bad idea.
A simple improvement uses O(m + n) space, but still not the best solution.
Could you devise a constant space solution?
Example 1:
Inpu... | [
"qscez2001@gmail.com"
] | qscez2001@gmail.com |
c4b27d12b6acaf8a7adfe09e0103055bdda334d9 | d50cfc3b4b458ce237d690e6680c0a97f1e6f4f2 | /snmn/exp_clevr_snmn/test_net_vqa.py | 58c7732d7ae3e993701fb4ff7c9a750313df0f24 | [
"BSD-2-Clause"
] | permissive | sheffier/ml_nlp_vqa | d7fc23226a5acbcfe3f6d68533c5f428a12bf625 | c6b6cb7d2e684636de3b2ab41ebd72d627774137 | refs/heads/master | 2021-12-14T00:13:49.656751 | 2021-11-22T12:52:46 | 2021-11-22T12:52:46 | 199,274,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,288 | py | import argparse
import os
import numpy as np
import tensorflow as tf
from models_clevr_snmn.model import Model
from models_clevr_snmn.config import (
cfg, merge_cfg_from_file, merge_cfg_from_list)
from util.clevr_train.data_reader import DataReader
parser = argparse.ArgumentParser()
parser.add_argument('--cfg', r... | [
"ronghang.hu@gmail.com"
] | ronghang.hu@gmail.com |
01fa61b61414d147b0eea7f2609800fd9d303acb | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/codeabbey/_Python_Problem_Solving-master/Greatest Common Divisor.py | a5d6275ab69ff29ca8c3202f4e265872f942f71d | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 363 | py | a = int(input())
string = ''
for i in range(a):
temp1,temp2 = num1, num2 = [int(ele) for ele in input().split()]
while num1 != num2:
if num1 > num2:
num1 = num1 - num2
else:
num2 = num2 - num1
lcm = temp1 * temp2 / num1
string += '('+str(num1)+' '+str(int(... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
290e22b1f6b6de3fc599bd6df9cd64a87cbd8797 | 13df8da61a3c1595fb41f4c6b7d694c738e1bd8b | /Day_2_Assignment/d2.py | ff101b8a765b8f81764e1ff5fdbe4a1519e443e7 | [] | no_license | vedantg1000/Python-Zero-to-Hero-Aug- | de3071b3a818c495b875daf8c8a4ad16319576cd | daf245f5616603d7a83528190f9f975773e298d4 | refs/heads/main | 2023-07-11T12:41:26.787588 | 2021-08-24T10:06:24 | 2021-08-24T10:06:24 | 396,869,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | # Day 2 Assignment: Take a string input and print the number of occurrences of each character.
string = input("Enter any String: ")
for x in string:
print(x, "Ocurred", string.count(x), "times")
| [
"noreply@github.com"
] | vedantg1000.noreply@github.com |
2cc01863d67ed3e0b978db0deaaacd0dd6373f46 | d4f98f21a60cba036d82f8184c4395226ec36a12 | /zipfsong.py | 723283138a5dd4508c970abd1af5e0c703ffe2ae | [] | no_license | nborkowska/spotify | ebe353f903732af22713a38f5a327d074ccfa645 | 914ee3f24b803797289e6ea4e3b19032df9fd37b | refs/heads/master | 2021-01-20T01:54:10.122760 | 2013-04-09T15:20:54 | 2013-04-09T15:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | #! /usr/bin/env python
import sys
k, p = map(int, sys.stdin.readline().split())
scores=[]
for i in xrange(k):
data = sys.stdin.readline().split()
score = int(data[0])*(i+1)
scores.append((score, k-i, data[1]))
scores.sort(reverse=True)
for i in xrange(p):
print scores[i][2]
| [
"nborkowska@gmail.com"
] | nborkowska@gmail.com |
394f39ade830aa9742866fc64ae4126621679347 | bb9707ce73f4de70b0a200325fe09f4abffe0c8b | /ctfs/own/eko2019/resources/guess_my_number_remotely.py | a84a2a90cd0eb522abf5607a5ed40b2655eec7ff | [] | no_license | lmkalg/lmkalg.github.io | 32d5ed00a3415f0e146237de6090797ef4119d08 | f67480b3ca25f961b006adaa6ee54851cffbc4f6 | refs/heads/master | 2022-02-04T18:53:20.933450 | 2022-01-10T02:20:55 | 2022-01-10T02:20:55 | 217,159,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,286 | py | import socket
from threading import Thread
from SocketServer import ThreadingMixIn
import random
import time
import sys
TIME_BETWEEN_ANSWERS = 5
SOCKET_TIMEOUT = 10
MAX_CONNECTIONS = 256
MAX_CONNECTIONS_PER_IP = 10
NUMBER_OF_DIGITS = 5
MAX_AMOUNT_OF_VALID_ATTEMPTS = 4
MAX_AMOUNT_OF_ATTEMPTS = 100
FLAG = "ONA{861c4f... | [
"artusopablo@gmail.com"
] | artusopablo@gmail.com |
355b9c73805f1266127965145e5a42f596c654e5 | a8b96689030fc41e4271311e8e44e7e78550750c | /t/tensorflow/Ubuntu/tensorflow_1.11.0_gpu_ubuntu_16.04.py | 99adece71cb56c8f2c1c21cb6202ae38884deba7 | [
"Apache-2.0"
] | permissive | ppc64le/build-scripts | f7dd7f660fb447ecab7e3464fa7ba83c743ef785 | e10ab4c8d10b591fd23151bfe7a4f5921f45b59c | refs/heads/master | 2023-08-21T12:54:56.145453 | 2023-08-17T05:41:21 | 2023-08-17T05:41:21 | 81,145,663 | 79 | 367 | Apache-2.0 | 2023-09-14T14:26:59 | 2017-02-06T23:48:15 | Shell | UTF-8 | Python | false | false | 7,806 | py | #!/usr/bin/env python
# ----------------------------------------------------------------------------
#
# Package : TensorFlow
# Version : v1.11.0
# Source repo : https://github.com/tensorflow/tensorflow
# Tested on : docker.io/nvidia/cuda-ppc64le:9.2-cudnn7-devel-ubuntu16.04
# docker ... | [
"wdirons@us.ibm.com"
] | wdirons@us.ibm.com |
f137c72c221aea441a62da38d458a08d6c236a23 | ffb61ac9d593cf61c372a40909dfcbfb58842dc3 | /gui.py | f5c0be93e41bbcc3d4a8b7eb0e11db6c728c2f6e | [] | no_license | vasujain00/3D-Audio-For-Museum-Exhibits | 6797f003b681266f3b55e7dec777b7d32f29eea6 | 9f4777faa00a2bcb3d3de855d1d85becc3189122 | refs/heads/master | 2021-04-15T04:55:12.990265 | 2018-03-14T03:17:09 | 2018-03-14T03:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,045 | py | import sys
import hrtf
from PyQt5.QtWidgets import (QApplication, QWidget, QLabel, QRadioButton,
QToolTip, QPushButton, QDesktopWidget, QMessageBox, QGridLayout)
from PyQt5.QtGui import QIcon, QFont, QPixmap
class window(QWidget):
def __init__(self):
super().__init__()
self.radio_buttons = []
... | [
"shandysulen@gmail.com"
] | shandysulen@gmail.com |
b4fb587bbd2e9430ada729748ff9465c11b842d1 | efde933d7ccfc1976c6e2f90c4051aedc7569d25 | /josephus_problem_1.py | 167d8fffc137da1f442913ccc53fd33e1d82c5ad | [] | no_license | Hhzzj/python_homework | e986021cb572dbfe852b02797acc98fe7114f974 | 6dd054f5483744722d12ed555bfc5d5a14b34308 | refs/heads/main | 2023-07-03T08:06:02.336029 | 2021-07-25T08:20:43 | 2021-07-25T08:20:43 | 382,084,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,763 | py | import random
CHARS1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
CHARS2 = "abcdefghijklmnopqrstuvwxyz"
class people:
def __init__(self, last_name, first_name, people_id):
self.last_name = last_name
self.first_name = first_name
self.people_id = people_id
def get_name(CHARS): # 随机两个大写/小写字母... | [
"noreply@github.com"
] | Hhzzj.noreply@github.com |
88a8e524d1e9289cf9ef43c43ae6bd00e178ef5a | a122119df649ee4fe543951c7e702e85b3427670 | /build/baxter_common/baxter_maintenance_msgs/cmake/baxter_maintenance_msgs-genmsg-context.py | d53b14ce640c040fb4d738db0101fde2fe60683b | [] | no_license | Sean-Skilling/baxter-project | e126de1cf80aabebc176628182a23841b2a1a930 | e86ff6015aaf9c301de5ef9a92538974319ff2b3 | refs/heads/master | 2020-04-11T13:03:33.841852 | 2019-03-27T14:58:13 | 2019-03-27T14:58:13 | 161,802,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/seanskilling/baxter_ws/src/baxter_common/baxter_maintenance_msgs/msg/CalibrateArmData.msg;/home/seanskilling/baxter_ws/src/baxter_common/baxter_maintenance_msgs/msg/CalibrateArmEnable.msg;/home/seanskilling/baxter_ws/src/baxter_common/baxter_mai... | [
"2207516s@student.gla.ac.uk"
] | 2207516s@student.gla.ac.uk |
ac30a5209ae983f55392b30fbe675c86263eedb6 | c862dfef55eece86db110eb84d61f73a3f772551 | /smartcontract/venv/lib/python3.6/site-packages/boa_test/example/demo/ICO_Template.py | ec53f9fd41350b3dcd464a9a7b8cfe2955bbc86e | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | vedanova/neoinvoice | 682b8e1f83e8b92a70545560abd7c56b2d6e7d0c | bc9a0217858938b49f99fef13b3439f4a537a5f5 | refs/heads/master | 2020-03-31T09:22:56.662230 | 2018-05-11T14:19:32 | 2018-05-11T14:19:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,868 | py | """
NEX ICO Template
===================================
Author: Thomas Saunders
Email: tom@neonexchange.org
Date: Dec 11 2017
"""
from boa_test.example.demo.nex.txio import get_asset_attachments
from boa_test.example.demo.nex.token import *
from boa_test.example.demo.nex.crowdsale import *
from boa_test.example.dem... | [
"gil.bueno@martinlabs.com.br"
] | gil.bueno@martinlabs.com.br |
6e6da79ce5b90732e27a6125bc590e5dcfb3864e | 9ecf3f508998e2ca1008adce29351fa0192d96b8 | /KNN识别海绵宝宝和派大星.py | d07d8af5554f520fdb3a11f5e4d5fb930c17d55a | [] | no_license | Suspect-wu/carton | 5dfff9cd3d05a6f1902b7f260f0a512302fc804d | 7ebcec49968db2e43e89a1819e6bdaf18c567894 | refs/heads/master | 2022-11-01T10:32:23.643037 | 2022-10-31T06:59:44 | 2022-10-31T06:59:44 | 271,221,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,343 | py | import numpy as np
import os
from sklearn.neighbors import KNeighborsClassifier
import csv
from sklearn.preprocessing import scale
import matplotlib.pyplot as plt
import matplotlib.font_manager as fm
from sklearn.metrics import classification_report
from PIL import Image
plt.rcParams['font.sans-serif']=['simhei']
plt.r... | [
"1021513495@qq.com"
] | 1021513495@qq.com |
b85d7944f883d5fc1dae7e069f5d5cb234104815 | 0df124c41cbaa94750df79fc70bf911d298610a7 | /train_kFold.py | af272569fc2d9f5c6934814ab1624fffa7f18f92 | [] | no_license | bcaitech1/p2-klue-HYLee1008 | 7093a9245fe3ad9bf29251a4c12f12a801b9f4f5 | c22d1a1ba8e3aa89198d786845a0ad6efc69e27c | refs/heads/main | 2023-04-10T11:18:11.500052 | 2021-04-22T11:23:23 | 2021-04-22T11:23:23 | 360,466,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,318 | py | import argparse
import pickle as pickle
import os
import pandas as pd
import numpy as np
import torch
import random
import transformers
import glob
import time
import json
import wandb
from sklearn.metrics import accuracy_score
from transformers import AutoTokenizer, BertForSequenceClassification, Trainer,... | [
"discone1008@gmail.com"
] | discone1008@gmail.com |
72ef91d4df5dfb1686ca6fbeecaa9e4f263501c5 | 0c302024c543b9606a428039c6987c0205c8b3fa | /accounts/urls.py | 70623c0c90c3167127889b0f71638f6be9c92fff | [] | no_license | PrrrStar/ProjectNP | 868c5df7e94f6d683e9374f86b8af3e74526b20f | f1d50febdd1884d030efaa5f6ae2bd6056070c38 | refs/heads/master | 2023-01-11T04:21:35.263955 | 2020-11-14T02:27:34 | 2020-11-14T02:27:34 | 292,203,596 | 7 | 6 | null | 2020-09-16T17:47:18 | 2020-09-02T06:53:53 | Python | UTF-8 | Python | false | false | 554 | py | from django.urls import path, include
from .views import *
from django.conf import settings
from django.views.decorators.csrf import csrf_exempt
urlpatterns = [
path('user_signup/', user_signup, name='user_signup'),
path('user_login/', user_login, name='user_login'),
path('user_logout/', csrf_exempt(user_... | [
"42401897+PrrrStar@users.noreply.github.com"
] | 42401897+PrrrStar@users.noreply.github.com |
7a3c32699a35792ebbc6e0e18450ac35ad6de42d | cbb1c237ce552ad22d4c9874de333aba4158a5bb | /2937.py | ac823d5e0d362b2cfeadf2fb3ae32710027113a8 | [] | no_license | Juvora/Lesson_2 | ab27b566e2568b19fc84ff2761d7aa7343ee3214 | 2c5a7cd70e97e76b4df8c7bef127017fb427deb8 | refs/heads/master | 2020-06-30T03:08:57.449354 | 2019-08-05T21:28:37 | 2019-08-05T21:28:37 | 200,704,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | num1 = int(input())
print("The next number for the number ", num1," is ",num1 + 1, ".", sep='')
print("The previous number for the number ", num1," is ",num1 -1, ".", sep='') | [
"12340987@rambler.ru"
] | 12340987@rambler.ru |
781f3a6e160c379ff6d954df386de30bf152e432 | 86afce3d1e07c6580f9448f120a5150b44e0eb96 | /Python/result_tree.py | c6d27d7409b88687e3c9f5f0c577b30f48943387 | [] | no_license | GrayXue/AutomationWithCANalyzer | 1a5f3b458e9e216eb65edfedce5f578900ba2478 | 34e7bd4af72edad414969d3a0cee74f5322b273c | refs/heads/master | 2020-04-16T02:56:21.199075 | 2018-11-30T14:31:28 | 2018-11-30T14:31:28 | 165,214,185 | 0 | 1 | null | 2019-01-11T09:12:09 | 2019-01-11T09:12:09 | null | UTF-8 | Python | false | false | 894 | py | import ttk
import Tkinter as tk
class ResultTreeList(ttk.Treeview):
def __init__(self, parent=None, **kw):
ttk.Treeview.__init__(self, parent, **kw)
self.make()
def make(self):
#self.column("#0", width=90)
list_columns = ["pass", "partial", "fail", "total"]
... | [
"noreply@github.com"
] | GrayXue.noreply@github.com |
b8e2120fcd66ff56ce5658f05e466269e248c642 | 99459cd11263f721155316164afddd1accf6419f | /stack.py | 7dd3b5ad53c0b158b87031a28ec838fc68eca0de | [] | no_license | dvmazuera/cs-data-structures-assessment | 5dc767241bb8a1821726c5b13a96140a59d0babf | 21082045955fa23cf26dd9dd52fdf9c22c0db31b | refs/heads/master | 2021-01-22T11:29:32.020412 | 2017-05-29T03:55:31 | 2017-05-29T03:55:31 | 92,704,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,950 | py | class StackEmptyError(IndexError):
"""Attempt to pop an empty stack."""
class Stack(object):
"""LIFO stack.
Implemented using a Python list; since stacks just need
to pop and push, a list is a good implementation, as
these are O(1) for native Python lists. However, in cases
where performance ... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
0a81afd1bccfde119b3571c2a5ba4395ebb7b44f | e5cd01fd620e8e746a20b883de7ac32bec4feb5c | /Ejercicios python/PE4/PE4E3.py | 53f599b8b515986576a6731ce8932f4c3575fac2 | [] | no_license | eazapata/python | 0f6a422032d8fb70d26f1055dc97eed83fcdc572 | 559aa4151093a120527c459a406abd8f2ff6a7d8 | refs/heads/master | 2020-08-27T09:19:29.395109 | 2019-11-23T20:11:14 | 2019-11-23T20:11:14 | 217,314,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | #PE4E3 Eduardo Antonio Zapata Valero
#Pida al usuario si quiere calcular el área de un triángulo o un cuadrado,
#y pida los datos según que caso y muestre el resultado.
fig=(input("Quieres calcular el área de un triángulo (t) o de un cuadrado (c) "))
if (fig=="t"):
print ("Ha elegido triángulo, introduce base y alt... | [
"you@example.com"
] | you@example.com |
a52a3c4e94bdbe454575ff4da9d26c86f6ef4074 | e05a68437fbc62eeaebad57f39029a6db9735876 | /attention/models_attention_bottom_separate.py | d89e6efcfa399a1e1f08c5a327ed3d78f0610c69 | [
"MIT"
] | permissive | OanaMariaCamburu/e-SNLI | 9883ecb737cc9282608abb2d4d09cd63e05aad4f | 7b585a3f077fdea899780eb0473940522ae44a2e | refs/heads/master | 2022-05-26T20:02:56.909008 | 2022-04-29T08:21:03 | 2022-04-29T08:21:03 | 154,048,758 | 158 | 31 | MIT | 2020-05-02T15:06:52 | 2018-10-21T20:21:07 | Python | UTF-8 | Python | false | false | 20,031 | py | """
The initialization only uses the premise and hypothesis embeddings but not the diff_product
"""
import numpy as np
import time
import torch
import torch.nn as nn
from torch.autograd import Variable
import sys
sys.path.append("..")
from mutils import get_keys_from_vals, assert_sizes
def array_all_true(arr):
for ... | [
"oanuru@dgx1.cs.ox.ac.uk"
] | oanuru@dgx1.cs.ox.ac.uk |
9f46d730ed7df2609c03ef721ca77d732286573c | 001014c8a5f7fb9d91deac4ea8392d8980917476 | /main.py | 17f66fe9dd873fbf79e821a1c9278993f4a714da | [] | no_license | lnfrnkln/blogz | 0ecb95054f6b6e4a9639af245de111a895a61acd | c5c0ff7d684b588db4536452d7d2bdce6df41153 | refs/heads/master | 2020-05-23T11:20:20.114914 | 2019-05-15T23:40:43 | 2019-05-15T23:40:43 | 186,734,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,107 | py | from flask import Flask, request, redirect, render_template, session, flash
from flask_sqlalchemy import SQLAlchemy
from hashutils import make_pw_hash, check_pw_hash
from datetime import datetime
app = Flask(__name__)
app.config['DEBUG'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://blogz:Blogz1111@l... | [
"lnfrnkln@gmail.com"
] | lnfrnkln@gmail.com |
a8dd63d37641bf5d2dbd04c750a68c9fc500b906 | d1fffb8ab83561b4dc588b7d87ed0a16d440a8a3 | /HW09_ReSub_Rahul_Kampati.py | e02a97d758f77db7ae22cd29f731d4be4db9128d | [] | no_license | rahulkris1/SSW810 | 6cba2892211f2b34d3e00982770fd4a9fbe6173e | a88634aabe82e2439cee0d7eb6bacabe0a22b78f | refs/heads/master | 2020-09-07T17:19:23.889631 | 2019-11-29T18:34:11 | 2019-11-29T18:34:11 | 220,858,008 | 0 | 0 | null | 2019-11-29T18:34:12 | 2019-11-10T22:10:50 | Python | UTF-8 | Python | false | false | 4,695 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 26 November 2019, 08:00
@author: Kampati Rahul
Creation of a data repository for students and instructors to keep track of data
"""
import os
from collections import defaultdict
from prettytable import PrettyTable
class Student:
def __init__(self, cw... | [
"rahulkrishkampati@gmail.com"
] | rahulkrishkampati@gmail.com |
588200b38ff9087f4a8f7ccd550934f464c836ad | 7ae1665ada0bf1a266dcf6352a19b8c19181dc3a | /hw7/NN_music.py | b547e64a691b6adcecbbe757fb6635163f5e042b | [] | no_license | markmty/601-IML | d71e3aaba6079178470f74c3239ad48fc905bda4 | 140c736ee459a66ffc8ead1412224c5747a10109 | refs/heads/master | 2021-01-11T14:19:26.244311 | 2017-02-08T16:07:35 | 2017-02-08T16:07:35 | 81,347,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,713 | py | import sys, math, random
import numpy as np
file_name1 = sys.argv[1]
fd1=open(file_name1)
data=fd1.read()
raw_list1=data.split("\n")
fd1.close()
raw_list1.pop(0)
raw_list1.pop(-1)
list1=[[]] * len(raw_list1)
for i in xrange(len(list1)):
list1[i] = raw_list1[i].split(",")
#print list1
if file_name1=="music_trai... | [
"mitianyu@loginsight.cn"
] | mitianyu@loginsight.cn |
aaa5cbfaf84c4bccfcde4ebbe5c529ec97c0fcb0 | a5636dd0de705a31f090a8914be9d1ad6b19fbb4 | /tag_app.py | ca13ee351e8caa1e234f5eacc708253f82824044 | [] | no_license | maryannv/tag-o-matic | 95544311942480a56c716241d0fdc29bf6765f34 | b7614f60821f05e5255464e424d64803d503b5c8 | refs/heads/master | 2021-01-10T07:17:11.060397 | 2015-05-22T19:55:19 | 2015-05-22T19:55:19 | 36,057,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,222 | py | import os, requests
from flask import Flask, jsonify, render_template, request
from TagHTMLParser import TagHTMLParser
app = Flask(__name__)
#app.debug = True
#### Routing ####
@app.route('/')
def home():
return render_template('index.html')
@app.route('/_parse_url')
def parse_url():
try:
urlinput =... | [
"vellanikaran@gmail.com"
] | vellanikaran@gmail.com |
92c78edbaa8a2661475a645022fa803e8a578c1e | f588ee667014ac20dea5a6621c9375ffead2b2e3 | /pedidos/migrations/0002_auto_20200804_0002.py | dac20be0e628fcedc6d641f2edf1af7014223327 | [] | no_license | alevarisco/Pyzzeria | 39958df6bfe06861f1957a8bb9f7dff07259bff8 | 6ea178883dfbd9de34e30fb342fd98fc4dd25c08 | refs/heads/master | 2022-11-26T14:50:03.234316 | 2020-08-06T21:13:47 | 2020-08-06T21:13:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # Generated by Django 3.0.8 on 2020-08-04 04:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pedidos', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='pizza_ingrediente',
name='id',
... | [
"techiendca@gmail.com"
] | techiendca@gmail.com |
c8f6fa99fa12ecc4e374395ccc33f4453288533c | c0f33647cb25f108d1516877eb4179296c51ade0 | /scraper.py | 4d55e666e6d70d76f5e3dba61f133601e315ca64 | [] | no_license | huiwamwang/web_scraper | 301b1d622f62cfa5d545940dfd546deb2095f5b3 | 6520f02a1130d2f877f766d3f9aa0e0d796a7c37 | refs/heads/master | 2023-03-16T00:02:18.015179 | 2021-03-07T20:15:59 | 2021-03-07T20:15:59 | 345,443,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | """A script to save articles from https://www.nature.com/nature/articles
as separated files at local directories.
User inputs number of pages to look at from nature website and article type to look for.
Article would be saved in separated folders, named 'Page_N', where N is from user input.
"""
import requests
import o... | [
"huiwamwang@google.com"
] | huiwamwang@google.com |
002f0f637f88023d65540b178cd521580a962c12 | f8862067042e61bd360802eac050477781985f89 | /stg/gaussian_elimination.py | d20ab1b19b9645694016553fc775fbefc1d36f2d | [] | no_license | sina33/heft | 12d6536b2b716ea2d8bcfaa98b6c2676a7d140c6 | c2d8d9c1f66921134fe3f1bbe0bd9563dd5c32a9 | refs/heads/master | 2020-04-03T02:18:25.603260 | 2018-12-06T21:11:23 | 2018-12-06T21:11:23 | 154,952,511 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,553 | py | total_cores = 4
low_perf_multiplier = 2
dag={1:(2,3,4,5,6,7),
2:(19,),
3:(7,8),
4:(9,),
5:(10,),
6:(11,),
7:(8,9,10,11,12),
8:(19,),
9:(12,13),
10:(14,),
11:(15,),
12:(13,14,15,16),
13:(19,),
14:(16,17),
15:(18,),
16:(17,18),
17:(19,),
... | [
"sina.saeedi.edu@gmail.com"
] | sina.saeedi.edu@gmail.com |
a148b2ef374d9aab9a2884d1787f6cefe2b61bff | 0e86dddccefd61089658695d17d7289fd2e81005 | /aula12.py | cc9c9b5b6c6ac139bfad179df13f281f5d4a0f43 | [] | no_license | cauegonzalez/cursoPython | 76279692b03e7d55610768db03475d6cb1ab2292 | d7e50d7882aa81ccbcfa5e2503151a6281711d48 | refs/heads/master | 2021-01-01T04:52:18.594691 | 2020-03-02T03:56:21 | 2020-03-02T03:56:21 | 97,258,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # coding=UTF-8
# Crie um programa que utilize cores nas saídas
print('====Exercício Aula 12====')
nome = raw_input('Qual é seu nome? ')
if nome == 'Cauê':
print('Que nome bonito!')
elif nome == 'Pedro' or nome == 'Maria' or nome == 'Paulo':
print('Seu nome é bem popular no Brasil')
elif nome in 'Ana Cláudia Ma... | [
"cauegonzalez@gmail.com"
] | cauegonzalez@gmail.com |
88f3a978e1ccdf33914b845f1988779d03433a82 | 3a2af7b4b801d9ba8d78713dcd1ed57ee35c0992 | /zerver/migrations/0051_realmalias_add_allow_subdomains.py | dec9cce79560fb47f11fae6a6962e964cc2a4a00 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | timabbott/zulip | 2b69bd3bb63539adbfc4c732a3ff9d52657f40ac | 42f239915526180a1a0cd6c3761c0efcd13ffe6f | refs/heads/master | 2023-08-30T21:45:39.197724 | 2020-02-13T23:09:22 | 2020-06-25T21:46:33 | 43,171,533 | 6 | 9 | Apache-2.0 | 2020-02-24T20:12:52 | 2015-09-25T19:34:16 | Python | UTF-8 | Python | false | false | 541 | py | # Generated by Django 1.10.5 on 2017-01-25 20:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0050_userprofile_avatar_version'),
]
operations = [
migrations.AddField(
model_name='realmalias',
name='al... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
60330c9e9345b3a0b3454a501e4ac549027af252 | 00869cee40a2fa1ca3f82b77103874d68d8a8583 | /Language_Detection/adbclassify.py | 2caa9231b89056e1f6b5a2ab0536543d3a6eeae8 | [] | no_license | Keshav-Patil/EEG_based_classification | 4de56f1b3f1d3f937c154a0078c1c01f58d62ad1 | 3ad4ff75db307d254d86fb0e8f51a97da7c94357 | refs/heads/master | 2021-03-13T03:20:26.843230 | 2017-05-16T18:44:32 | 2017-05-16T18:44:32 | 91,491,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,150 | py | import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import AdaBoostClassifier
from sklearn.svm import SVC
from sklearn.decomposition import PCA
from sklearn.preprocessing import normalize
from sklearn.cross_validation import train_test_split
from sklearn.ensemble import Gradien... | [
"keshavdpatil370@gmail.com"
] | keshavdpatil370@gmail.com |
321d7fac24ec2ab49e677d41746168cfef37cb36 | 7c14b4caa46e39f13a21c3582f7840d4cfa6dd2f | /logger.py | 1f7a40c0b8b0fd4145330c69132daafda7ca7a2a | [
"MIT"
] | permissive | hrnoh/autovc | fccbd5bd390204afc1db84cdb45024e3c7e7e74b | c434b1939338e1fe034e2f8cde473d4dd83e3c1f | refs/heads/master | 2020-11-28T19:09:10.178784 | 2020-01-13T11:58:18 | 2020-01-13T11:58:18 | 229,899,398 | 0 | 0 | MIT | 2019-12-24T08:04:58 | 2019-12-24T08:04:57 | null | UTF-8 | Python | false | false | 378 | py | # import tensorflow as tf
from tensorboardX import SummaryWriter
class Logger(object):
"""Using tensorboardX such that need no dependency on tensorflow."""
def __init__(self, log_dir):
"""Initialize summary writer."""
self.writer = SummaryWriter(log_dir)
def scalar_summary(self, tag, valu... | [
"hr_noh@korea.ac.kr"
] | hr_noh@korea.ac.kr |
70dd995cb028be14737e72a3c58cb07774785acb | e9ac72e0736ac17c5229c4b614dea510d643c88b | /aoj/alds1_1_d.py | 3c57f3ecc0e691e8c933b0ebf4bb8066a022cbd3 | [] | no_license | famasoon/kyopro | 204021162f9b3b50797e0fc674b4fbb6e806ca97 | 5876ca59cd9ca3c406cdc88ae857656e5e3886d4 | refs/heads/master | 2023-09-01T19:22:19.703108 | 2021-10-25T13:05:11 | 2021-10-25T13:05:11 | 213,641,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | n = int(input())
max_value = -2000000000
min_value = int(input())
for i in range(1, n):
new_value = int(input())
if new_value - min_value > max_value:
max_value = new_value - min_value
if min_value > new_value:
min_value = new_value
print(max_value)
| [
"famasoon@gmail.com"
] | famasoon@gmail.com |
133c52f2a3895ef25cbda24a61771d8971cd0763 | ee0e67450ed00a35cc3c566e456394e4f8f55c52 | /javsdt/JavbusYouma.py | c6bf4228492607134367388da7104720d81b85dd | [
"MIT"
] | permissive | wdcew/javsdt | 495e47c00d4e380c733f1568ba1f76e9f50be65a | 2f540f7c4f2fa9d0c93da1b428c50044c97d0be4 | refs/heads/master | 2023-04-03T09:33:29.451148 | 2021-04-09T00:37:00 | 2021-04-09T00:37:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,285 | py | # -*- coding:utf-8 -*-
import os, re
from shutil import copyfile
from traceback import format_exc
########################################################################################################################
from Class.Settings import Settings
from Class.JavFile import JavFile
from Functions.Status import ju... | [
"1780089183@qq.com"
] | 1780089183@qq.com |
0e10e7efaf7e20b32f5121b6c439c455706e8bcf | 97287008f36bb0a483def8c88a7fe3ee1a190091 | /locust_test.py | 7bf9a14ff5b5cd2fa68b2d2aa4070d373d162b62 | [] | no_license | olivetree123/miaosha | 2adb01ebbc1f55aaefa01343c9a981190a60b061 | aef4b4850863434ed694c774c4e5488af1cfca05 | refs/heads/master | 2022-12-17T19:37:13.125470 | 2020-09-25T02:56:58 | 2020-09-25T02:56:58 | 295,648,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | import os
import json
from locust import HttpUser, TaskSet, task, between
# class WebsiteTasks(TaskSet):
# def on_start(self):
# self.client.post("/api/login",
# json={
# "account": "gaojian",
# "cipher": "123456"
... | [
"gaojian@g13125g.h3c.huawei-3com.com"
] | gaojian@g13125g.h3c.huawei-3com.com |
1176757494ee948beb10dc386770bfbd2a823956 | a29310948867f5f07109fcd225a84282ad7eea16 | /design_models/template_method.py | c4f800913310ae0c850b9c6b745efc7ed06b179d | [] | no_license | likeweilikewei/Python-study-demo | 09b266c0756b6e340e8b8e3153a7e497be8ee1a9 | 7dd4bc851273a5815d8980f9857828abfa5364a7 | refs/heads/master | 2020-06-26T21:17:27.095532 | 2019-07-31T02:17:43 | 2019-07-31T02:17:43 | 199,760,324 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | #!/usr/bin/python
# coding:utf8
'''
Template Method
模板方法模式:
应用特性:重复做相同逻辑的事情,但是具体细节不同的场景
结构特性:相同逻辑抽取至父类,具体细节留置子类。可以说是对逻辑的抽象
'''
ingredients = "spam eggs apple"
line = '-' * 10
# Skeletons
def iter_elements(getter, action):
"""Template skeleton that iterates items"""
for element in getter():
action(ele... | [
"1293120583@qq,com"
] | 1293120583@qq,com |
f6c251cdce11dd0e1e9f351b3b011a956129af9d | 069b8abf52f678d42cb44da38ac57f1304c230e3 | /neitwork/__init__.py | 5619d5ca005491e0da6b5c46d3d2b7c59cab560c | [] | no_license | neiteng/neitwork | 6eea9d0b50bb95c6f9f33a21a806c499a2307b9b | fdf0410e7de2fdfcebcd1c3f2c440dfcefa65341 | refs/heads/master | 2021-04-28T14:55:11.904366 | 2018-02-26T06:18:08 | 2018-02-26T06:18:08 | 121,978,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from . import layer
from . import function
from . import optimizer
from . import trainer
| [
"neiteng.kyoto@gmail.com"
] | neiteng.kyoto@gmail.com |
a550ade57cabd95af59866ef0b3793d275a0b219 | 59716f114a27f15733701291943fc59b17d886fe | /temp.py | 17d0b374c1ff2f96eefc8733232fc1c448df9ca3 | [] | no_license | hq20051252/HTML-widget-Parser | 86e2dca65ba35c0137ec2efbde7bd4622e9bcdfe | 88abbebcd341ae0d07400699d83dd2493d80c7ba | refs/heads/master | 2016-09-05T16:19:23.962128 | 2011-07-19T09:03:08 | 2011-07-19T09:03:08 | 2,033,641 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | import MySQLdb
import sql_spec
q = sql_spec.connect('localhost','root','88888888','qiud')
qcur= q.cursor()
qcur.execute('''select player_id from playerinfo''')
result = qcur.fetchall()
fd = open('record.txt','w')
for r in result:
fd.write(r[0]+'\n');
| [
"hq20051252@163.com"
] | hq20051252@163.com |
8bc5e1adedaef3838104de40f4b1a42ff9eacbbb | 7645871c891fa84ba70689ff4b466d6e1bde36b0 | /blog/migrations/0001_initial.py | 95acf82171b107f67f89c303fe1564100b7680b9 | [] | no_license | NagaSrinivasulu/my_blog_django | adf087a884e95b59e2ff7b5e1cbc0144315a6ba6 | c0c9f9b0f989b6d66a532e5c7b969869284451de | refs/heads/master | 2020-03-29T21:21:28.362410 | 2018-09-27T09:16:26 | 2018-09-27T09:16:26 | 150,362,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.1.1 on 2018-09-25 07:36
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"nagasrinivasdaggumilli@gmail.com"
] | nagasrinivasdaggumilli@gmail.com |
7af112c1920d3187c00607f80751e86a3312d096 | f8f9f467ebe74b7d663fe8812f617e0639d03ae7 | /tools/gen_mozc_drawable.py | 4ad889f54ffdec945bf3311c7c08458acfc1b066 | [] | no_license | tmatz/unistroke-mozc | bf82ddcf49f3ddec41a913f4e28b64359cfc25c4 | 8f06b75a7813ec1344a3e8608a67fb6e07bbe0a6 | refs/heads/master | 2021-01-13T01:14:46.829459 | 2013-06-19T10:08:30 | 2013-06-19T10:08:30 | 10,733,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,847 | py | # -*- coding: utf-8 -*-
# Copyright 2010-2013, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this... | [
"matsu@users.sourceforge.net"
] | matsu@users.sourceforge.net |
056c9e4811f80752b17207d170437781ff891727 | ad553dd718a8df51dabc9ba636040da740db57cf | /.history/app_20181213160433.py | 0cdeeb5a5dad82ce5b51349eae825d57abecf7ae | [] | no_license | NergisAktug/E-Commerce-PythonWithFlask-Sqlite3 | 8e67f12c28b11a7a30d13788f8dc991f80ac7696 | 69ff4433aa7ae52ef854d5e25472dbd67fd59106 | refs/heads/main | 2023-01-01T14:03:40.897592 | 2020-10-19T20:36:19 | 2020-10-19T20:36:19 | 300,379,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,372 | py | import datetime
from flask import Flask,flash, request, render_template_string, render_template
from flask import Flask, url_for, render_template, request, redirect, session, escape, render_template_string
from flask_babelex import Babel
from flask_sqlalchemy import SQLAlchemy
from flask_user import current_user, login... | [
"nergis.aktug2014@gmail.com"
] | nergis.aktug2014@gmail.com |
1ece1d4e55f00e4c4abfc4a3a5fb886074f1a93d | 6e5ae7164c961f7ace769624099c902fe187d8a8 | /validator.py | a10409b0f5e083ab8b834a3743ee327d59c88aa7 | [] | no_license | RobertoCarnauba/swagger-validator | 0d8b22b2192aca3c7a2ca92ea0a643f110d36384 | 42e5aa860dd28683aea7dacd0e60a68520cde8ac | refs/heads/master | 2023-07-13T15:46:53.203086 | 2021-08-27T20:08:09 | 2021-08-27T20:08:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,725 | py | import yaml
swagger = yaml.safe_load(open(
'C:/Users/robertod/OneDrive - HDI SEGUROS SA/Área de Trabalho/python-swagger/swagger_validator/cor-pty-person-credit-score-read-be.yaml'))
print('----------------------------------------------------------------------------------------------------------------------')
print... | [
"betocarnauba@hotmail.com"
] | betocarnauba@hotmail.com |
c117cfa407d725ed6b6888c431a45f884438df39 | 895aed7b64768882783e1b5af6c6f09fccff0145 | /py/demoled.py | f320d122393ee082320fb5c0c4fa23dde71adbdd | [] | no_license | cghercoias/LPD8806_PI | 380936a0502b33b73262ffd08fd52ba0fe2117b9 | 1a31ea0b902e2f191b2c927c6a7505d729df6a84 | refs/heads/master | 2022-07-07T06:42:05.295834 | 2018-01-28T03:40:14 | 2018-01-28T03:40:14 | 118,633,055 | 2 | 2 | null | 2022-06-17T23:53:40 | 2018-01-23T15:56:44 | Python | UTF-8 | Python | false | false | 331 | py | #!/usr/bin/python
from bootstrap import *
from raspledstrip.animation import *
colors = [
(255.0, 0.0, 0.0),
(0.0, 255.0, 0.0),
(0.0, 0.0, 255.0),
(255.0, 255.0, 255.0),
]
while (1>0):
print "starting"
anim = RainbowCycle(led)
for i in range(384 * 2):
anim.step()
led.update()
led.fi... | [
"catalin.ghercoias@gmail.com"
] | catalin.ghercoias@gmail.com |
3d58de779e6e9ce278cac6d0c11ec7646a8fb43e | 8f3336bbf7cd12485a4c52daa831b5d39749cf9b | /Python/maximum-average-subarray-i.py | a92f4789fc9c877e00d034b9d34aa0c4a577f269 | [] | no_license | black-shadows/LeetCode-Topicwise-Solutions | 9487de1f9a1da79558287b2bc2c6b28d3d27db07 | b1692583f7b710943ffb19b392b8bf64845b5d7a | refs/heads/master | 2022-05-30T22:16:38.536678 | 2022-05-18T09:18:32 | 2022-05-18T09:18:32 | 188,701,704 | 240 | 110 | null | 2020-05-08T13:04:36 | 2019-05-26T15:41:03 | C++ | UTF-8 | Python | false | false | 398 | py | # Time: O(n)
# Space: O(1)
class Solution(object):
def findMaxAverage(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: float
"""
result = total = sum(nums[:k])
for i in xrange(k, len(nums)):
total += nums[i] - nums[i-k]
... | [
"noreply@github.com"
] | black-shadows.noreply@github.com |
c5b75b969940a862b60325eb6fdc193c6654cbfc | 72ff62840eb781451dec907b58010c39a5e46af1 | /brain/MCTS.py | 59e48df31be89ab5d3b9df4118f4d3b9c80a0ffa | [] | no_license | xiyanggudao/AIChineseChess | 1999c3d87e0757b5613d5d79364d1803f00af502 | a31a5d5f5399c0775c0a61224bc2505e061cb734 | refs/heads/master | 2021-01-01T19:54:00.425167 | 2018-01-13T16:16:56 | 2018-01-13T16:16:56 | 98,715,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,262 | py | import numpy as np
from chess.MoveGenerator import MoveGenerator
from chess.Chessgame import Chessgame
from chess.ChessData import Move
from chess.Chessman import Chessman
class MCTS:
def __init__(self, brain, maxNodes):
self.brain = brain
maxEdges = maxNodes*128
self.maxNodes = maxNodes
self.maxEdges = maxE... | [
"1766500102@qq.com"
] | 1766500102@qq.com |
1ef34ae80eb3844baa34b8e6599b9e63e7321d00 | caee936b6223b79cd144b9c0fd4f6800db6af45a | /tanamanhias/store/views.py | 0d5ba5b3d31e176161107aa8e6c266f1f2d2fd9f | [] | no_license | AnandaThalia/Website_RPL | 5751da3b8ecec54fe628ee7f57ea0c6c209f8750 | 7f4b6f0706d16992bd13d6e9d262a86700ea0218 | refs/heads/master | 2022-08-07T16:20:08.966062 | 2020-05-18T17:37:49 | 2020-05-18T17:37:49 | 264,828,724 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,510 | py | # view nya si app store
from django.shortcuts import render
from .models import *
from django.http import JsonResponse
import json
import datetime
from .utils import cookieCart,cartData,guestOrder
def store(request):
data = cartData(request)
cartItems = data['cartItems']
order = data['order... | [
"Ananda_Thalia54@apps.ipb.ac.id"
] | Ananda_Thalia54@apps.ipb.ac.id |
763490ed091de4d95628dd13632ec53d95b9087f | 1e418971e4d491f154b27b4bf1a9827b79a4ecc2 | /pyBoard/pyBoard/urls.py | dbd6a9adda7d0787e34addff4082b473e405fa3f | [] | no_license | JaeyongChoi4666/Django_work | c2e82b133608cacea1c087b68419ac384ae4d484 | 502ab87b839db50ffc245cb47d12a5d241e72c4b | refs/heads/main | 2023-06-03T01:10:42.095417 | 2021-06-16T07:23:30 | 2021-06-16T07:23:30 | 372,723,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | """pyBoard URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"jychoi2@naver.com"
] | jychoi2@naver.com |
a81da2eb335b9334d5ffe13dc3ee8929dd6a7c6e | 31b83dbd1098fbba49a1d559f9ecac4d3b118fc8 | /pyEX/premium/wallstreethorizon/__init__.py | 5cfb183f73a4383b500379e1896460420d585f9a | [
"Apache-2.0"
] | permissive | briangu/pyEX | 438f777bdf7661f47fe7b63a0a848d6e90f8e9df | 2eacc322932f4b686817b3d162cb1e4f399fd696 | refs/heads/main | 2023-07-15T16:15:17.277704 | 2021-08-17T16:36:36 | 2021-08-17T16:36:36 | 331,754,038 | 0 | 0 | Apache-2.0 | 2021-01-21T21:01:48 | 2021-01-21T21:01:48 | null | UTF-8 | Python | false | false | 23,317 | py | # *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from functools import wraps
... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
308bff52ce577ba49c9ba46d0fd7277f04669f7f | 0e94b21a64e01b992cdc0fff274af8d77b2ae430 | /spider/004_kekeenglish_daysentence.py | 35df50ab90f89a35b0fc40370d4b4fef02e20b22 | [] | no_license | yangnaGitHub/LearningProcess | 1aed2da306fd98f027dcca61309082f42b860975 | 250a8b791f7deda1e716f361a2f847f4d12846d3 | refs/heads/master | 2020-04-15T16:49:38.053846 | 2019-09-05T05:52:04 | 2019-09-05T05:52:04 | 164,852,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 11 13:18:16 2018
@author: Administrator
"""
import re
from lxml import etree
import urllib.request
import xlwt
response=urllib.request.urlopen('http://www.kekenet.com/kouyu/primary/chuji/')
html = response.read().decode("utf-8")
tr = etree.HTML(html)
#//div[@class="tb-b... | [
"ityangna0402@163.com"
] | ityangna0402@163.com |
3dbf3e87b4b004b83e913dd989ed2ab900c5eb16 | b9e9c89567894fd7e5ddfd27fe9068a074a92df7 | /pyramid_signup/tests/test_init.py | d1de398dc5429102f7465cb8ee45667f5212c697 | [] | no_license | AnneGilles/pyramid_signup | 8aeea113176dd64a326caa5f7704026e0538c94a | 0622d951e686f0926291d98559a6b4afa2c81241 | refs/heads/master | 2021-01-18T17:48:48.260300 | 2011-12-09T04:56:44 | 2011-12-09T04:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | from pyramid import testing
from pyramid_signup.models import User
from pyramid_signup.tests import UnitTestBase
from mock import patch
from mock import Mock
class TestInitCase(UnitTestBase):
def test_root_factory(self):
from pyramid_signup import RootFactory
from pyramid.security import Everyone... | [
"sontek@gmail.com"
] | sontek@gmail.com |
df112e7335a865a08acddb35152e374d2f38c333 | 9ace5b6c2380f69db7887774a9ef58a02d893ea6 | /proyecto/nestor_save_msgs/connection.py | 3493e35cdd541deade26f1e07e5973a100adae73 | [] | no_license | heru-nan/slack-bot-and-tutorials | 72babe351fc1969c3231c80505e8ef39b6d6cc25 | 40ef30b4e5b9557c348c6ea85937b500956b0a17 | refs/heads/main | 2023-02-15T13:44:41.067824 | 2021-01-08T17:39:06 | 2021-01-08T17:39:06 | 309,792,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | import os
import mysql.connector
from datetime import datetime, date
host = os.environ["MYSQL_HOST"]
port = int(os.environ["MYSQL_PORT"])
print("host: " + str(host) + " | port: " + str(port))
TABLE_QUERY = (
"CREATE TABLE `messages` ("
" `id` int(11) NOT NULL AUTO_INCREMENT,"
" `user` varchar(60) NOT N... | [
"hrwgallardo@gmail.com"
] | hrwgallardo@gmail.com |
04437caab3fc6597ee8e2f51e96b8e163651cd6c | beaa201c50588f215b44aae6dc57ad532edd240e | /powerof.py | 2c3c1f9dca9df7887b159742dd63bdf91b39fb50 | [] | no_license | karu99/python | 9e82daa48bdcba7ba195abe6bf05d4f31b1e56c0 | b8ce59eb74bb5b0c6b0ae7a60b620e8d31feae9e | refs/heads/master | 2020-06-14T10:14:09.304338 | 2019-07-16T09:29:06 | 2019-07-16T09:29:06 | 194,978,568 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | n,m=map(int,input().split())
flag=1
for i in range(1,100):
if(pow(m,i)==n):
print("yes")
flag=0
break
if(flag==1):
print("no")
| [
"noreply@github.com"
] | karu99.noreply@github.com |
71596ad05cca367d0a20f3d356341bed2b8ff66f | f99f080e4c9507b007d2c16ca5faae44f2694f8c | /lab2/lab_python_oop/Square.py | bcd5462ee3e2e9ce1773b839834b3f3e684dfaf4 | [] | no_license | amartery/RIP_5sem | 0424448fc3fb428f86abff64b28097c3dda25290 | d67ac8699c81d810a443623cc061ffcfa94ca1fb | refs/heads/main | 2023-02-11T02:49:22.895024 | 2021-01-05T15:13:37 | 2021-01-05T15:13:37 | 306,724,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from lab_python_oop import Rectangle
class Square(Rectangle.Rectangle):
"""Square"""
def __init__(self, a, color):
super().__init__(a, a, color)
def area(self):
return self.width * self.height
def __repr__(self):
return "Название класса: {}\n" \
"длинна стороны... | [
"amartery@gmail.com"
] | amartery@gmail.com |
36d1cdb0cf14edfe05793a672c0556d8c5875baa | d1e4f29e583ee964d63bc48554eaa73d67d58eb2 | /zerver/migrations/0222_userprofile_fluid_layout_width.py | 3b5c232bee7088bb888cc76437ff9bc3df92ee7b | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | hygolei/zulip | 299f636f9238f50b0d2746f1c371748f182f1f4e | 39fe66ab0824bc439929debeb9883c3046c6ed70 | refs/heads/master | 2023-07-11T22:50:27.434398 | 2021-08-09T10:07:35 | 2021-08-09T10:07:35 | 375,401,165 | 1 | 1 | Apache-2.0 | 2021-08-09T10:07:36 | 2021-06-09T15:20:09 | Python | UTF-8 | Python | false | false | 428 | py | # Generated by Django 1.11.20 on 2019-04-15 17:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("zerver", "0221_subscription_notifications_data_migration"),
]
operations = [
migrations.AddField(
model_name="userprofile",
... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
051f9297342646fcb998791b65313336c4cda8bd | dfa4163e86fc07beb35f63721dcaa317ec510ac4 | /app.py | a43ccf13bc93d6fc6e4fe4d02bd8b2adc87f500d | [] | no_license | shaw-s-yu/TBExtractor | d15c704b97dfbe67d62608f61b01dfe72f4a3d2c | 409003ca480820b5d2e1c808eef626bdf28e5c8c | refs/heads/main | 2023-03-15T02:36:00.752477 | 2021-03-27T16:50:03 | 2021-03-27T16:50:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | import sys
from utils import Utils
from model import Model
inputs = [1,2,3,4]
class App:
def __init__(self, mode):
self.mode = mode
self.utils = Utils()
self.model = Model()
self.modes = [
('1. generate article 6 from MOU01-22.txt', 'generate_article_6'),
('2. predict article 6', 'predict_article_6'),... | [
"46137960+AhoyKakkoii@users.noreply.github.com"
] | 46137960+AhoyKakkoii@users.noreply.github.com |
d01ed61eea9ac24d3da851fa306c831929e379e5 | e47876a625a039ff75de1e0ec9d13322ee526612 | /Unidad 13/LISTA_DOBLEMENTE_ENLAZADA.py | 0fcad1ff9c6ecedbabd22ddf5069592325c529f7 | [] | no_license | ruizsugliani/Algoritmos-1-Essaya | a8a189fd6b7557566ed6c836711f0fa35f035066 | 56553b135f59fa830099fb894c076c8663af978e | refs/heads/main | 2023-07-23T13:19:43.355425 | 2021-09-10T02:28:59 | 2021-09-10T02:28:59 | 404,926,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | class ListaDobleEnlazada:
def append(self, dato):
nuevo_nodo = _Nodo(dato)
if self.prim is None:
self.prim = nuevo_nodo
else:
actual = self.prim
while actual.prox:
actual.ant = actual
actual = actual.prox
... | [
"noreply@github.com"
] | ruizsugliani.noreply@github.com |
5adcc2b75ec8e92bbb4324fb2738b75d080041f2 | 25424a6ce39394c729088ac0dc0c1a8120eae3e5 | /interactiveeuler/__main__.py | d4261c497a066c5e3a163c9d8f8d4a1d1b7a940a | [] | no_license | mtutko/InteractiveEuler | 44a64b220b4c1241353ccf5b38dbc010d1c769dc | 1c7b9c36f00452b2aa532e5ba9f7845969167ece | refs/heads/master | 2023-03-14T18:09:04.114268 | 2021-03-16T20:07:13 | 2021-03-16T20:07:13 | 323,968,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,448 | py | """
This is the module InteractiveEuler.
It is used to create a fun, interactive fluids solver.
"""
import sys
import numpy as np
from matplotlib import cm
import pyqtgraph as pg
from PyQt5 import QtGui, QtCore, QtWidgets
import fluid as fl
N = 100
MATSIZE = (N, N)
# Enable antialiasing for prettier plots
pg.se... | [
"peastham@math.fsu.edu"
] | peastham@math.fsu.edu |
99e4d37b3396f9e02bf0b8bd87a5011fe44a4a26 | 1032053bae3f0d734ff20125cc9bf2c662866e30 | /algorithms/python/sorting/counting_sort.py | 742807eeac5c7e60f3188693e214d341c25bb55b | [] | no_license | ikvibhav/DSA_Fundamentals | 331254364c19ff95cfdd50823a94dd7c4c7982d6 | 267071f578bcdf2f307269a4d16ab668443fdb5d | refs/heads/main | 2023-06-26T05:04:44.090942 | 2021-07-20T08:18:57 | 2021-07-20T08:18:57 | 381,833,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,865 | py | '''
#Assuming the starting of the sequence as 0
def counting_sort(lst):
#Extract the range of the lst values. Create an index_count array using this.
index_count = [0 for _ in range(max(lst))]
#Increment the count for each value in the index array
for _,lst_item in enumerate(lst):
index_count[... | [
"ikvibhav@gmail.com"
] | ikvibhav@gmail.com |
89b4f1722d80c8df78c45b08ff5fbee768e5c2cc | db35c005ee43fd572e8e5cb30addc710d06080d9 | /escape-pods.py | 3ab6039a6f759b6ce7efc3de48a70c5be8a4e19c | [] | no_license | jamesa3/foo.bar | 65b6720f69f38cb197616ac47308f14d0953f458 | e448a222a79e71ac98ad985f922f0e616de86df7 | refs/heads/master | 2022-06-07T02:58:59.988039 | 2020-04-17T02:19:07 | 2020-04-17T02:19:07 | 246,315,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | def get_capacity_matrix(entrances, exits, m):
for i, row in enumerate(m):
row.insert(0, 0)
row.append(float('inf') if i in exits else 0)
entrances = [x + 1 for x in entrances]
c = list(m)
n = len(c) + 2
c.insert(0, [float('inf') if x in entrances else 0 for x in range(n)])
c.appe... | [
"james@cnscloud.io"
] | james@cnscloud.io |
590d2207a922188f883dab5476511635e22f0ab1 | 408f8c561a695ac20b792ba0c4a230c154dad347 | /scripts/slurm.py | 1526201ab8cdf66bbed803e8fe3ad1e4f9c182d0 | [] | no_license | andnp/acceleration-v2 | a407888c74a247e6d441259d50d77cf6194f728b | 52b8a42c3e315ddbb4549a3a941afda81e92be9b | refs/heads/master | 2022-11-26T05:42:17.680125 | 2020-08-02T23:25:01 | 2020-08-02T23:25:01 | 204,991,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | import time
import sys
import os
sys.path.append(os.getcwd())
from src.utils.model import loadExperiment
from PyExpUtils.runner import SlurmArgs
from PyExpUtils.results.paths import listResultsPaths
from PyExpUtils.utils.generator import group
from PyExpUtils.runner.Slurm import schedule, slurmOptionsFromFile
if len(... | [
"andnpatterson@gmail.com"
] | andnpatterson@gmail.com |
14147605374f069cff8d2de50567bb9cf4e835a8 | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /toontown/building/DistributedDoor.py | c8656242ed57b765f03716bc377f99ceb20175d6 | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 28,605 | py | # File: t (Python 2.4)
from toontown.toonbase.ToonBaseGlobal import *
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import *
from toontown.toonbase import ToontownGlobals
from direct.directnotify import DirectNotifyGlobal
from direct.fsm import Classi... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
dd5e7f37317396c24b71e4bac839eacd831d2205 | 54f75e2cf3094bd4073c24321adfd7b7b9a2d88a | /dsClass/mtcnn_detect.py | d0b08628acb852fc359914d01ac8df21ef222ba2 | [] | no_license | goolig/dsClass | 2bff1ac0a45f448246dc0e552f6a7952762a27bc | 67567d1d71a8a747c8a68c621045fe53ff139103 | refs/heads/master | 2021-11-26T20:24:12.761009 | 2021-11-11T11:43:40 | 2021-11-11T11:43:40 | 150,427,519 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 21,718 | py | '''
Tensorflow implementation of the mtcnn face detection algorithm
Credit: DavidSandBerg for implementing this method on tensorflow
'''
from six import string_types, iteritems
import numpy as np
import tensorflow as tf
import cv2
import os
class MTCNNDetect(object):
def __init__(self, face_rec_graph, model_path ... | [
"shtar@post.bgu.ac.il"
] | shtar@post.bgu.ac.il |
94b05859d11c2a2649a54bca4da3169f4c5a2088 | 905a984414e3b7ecfd7cb2999121606b576ce5cd | /flask_app/footballInfo/routesFootball.py | 85cb29ee69572d996012fd2c5dd845e4f963125d | [] | no_license | GuptaSiddhesh/Football-Rating-and-Review | 2dcd720a99e1b7caff93993eb75eadf279975cf2 | fb64ea6bf7787b5ace0ea0c597f8d7ad819c8816 | refs/heads/main | 2023-04-20T16:55:29.486948 | 2021-05-13T04:05:07 | 2021-05-13T04:05:07 | 366,276,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,711 | py | from flask import render_template, request, redirect, url_for, flash, Response
from flask import Blueprint
from flask import session
from flask_mongoengine import MongoEngine
from flask_login import LoginManager, current_user, login_user, logout_user, login_required
# stdlib
from datetime import datetime
from .. imp... | [
"36742817+pbangera@users.noreply.github.com"
] | 36742817+pbangera@users.noreply.github.com |
c9b9126eb7cfe8ea67cc1dd7bf1da71936a45f80 | 5f4adc8c51f9b7dd67a47f37eaf31e8ddb066f71 | /core/cp_plugins/systray.py | 9fc45cfcbb597ecc1d8dd71abfc8c312a66c380d | [
"Apache-2.0"
] | permissive | cryorooster/watcher | 1a4f186cb9d0a0c84f80e30073b313a0bd049995 | 0dd25241a01d7dcb9ffcd312cc2472b2c9cb2983 | refs/heads/master | 2021-01-23T04:45:09.272825 | 2017-02-05T23:36:39 | 2017-02-05T23:36:49 | 80,380,818 | 0 | 0 | null | 2017-01-29T23:39:16 | 2017-01-29T23:39:15 | null | UTF-8 | Python | false | false | 2,563 | py | import logging
import sys
import webbrowser
import cherrypy
import core
from cherrypy.process import plugins
from infi.systray import SysTrayIcon
logging = logging.getLogger(__name__)
class SysTrayPlugin(plugins.SimplePlugin):
'''
CherryPy plugin that creates a system tray icon for Windows.
Because Sys... | [
"nosmokingbandit@gmail.com"
] | nosmokingbandit@gmail.com |
529e1d1dcbc6ea47584217f70df3e62ca984ad37 | 7f3802c03f27fe61d9cdf9140385bee158a7f436 | /coma/interfaces/mrtrix3.py | 64464b2ce1b8aab6dc5213308fd641e63bab9a83 | [
"MIT"
] | permissive | GIGA-Consciousness/structurefunction | 0157e88f12577f7dc02b40e251cc40ee6f61d190 | 5c5583bb26d6092fa3b7a630192d8e79199f8df0 | refs/heads/master | 2023-07-11T20:01:58.844183 | 2015-01-05T09:06:48 | 2015-01-05T09:06:48 | 14,110,584 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,826 | py | def inclusion_filtering_mrtrix3(track_file, roi_file, fa_file, md_file, roi_names=None, registration_image_file=None, registration_matrix_file=None, prefix=None, tdi_threshold=10):
import os
import os.path as op
import numpy as np
import glob
from coma.workflows.dmn import get_rois, save_heatmap
... | [
"erik.ziegler@ulg.ac.be"
] | erik.ziegler@ulg.ac.be |
a6fd729b46af741538efa1be1f8af4c5325dd1ad | ffc076dc622cf3b745c6da899aff193c340cdbd1 | /graphs_weak.py | 4777964d866c02524f5af83a4dbe9303430657a6 | [] | no_license | casperhansen/RBSH | e10fb69af9e3ea67c67be1cc4ca0a77468bc81e5 | f464790c6d05f909a86f7b76defd4fec993ed5e7 | refs/heads/master | 2020-09-26T05:30:31.378722 | 2019-12-16T13:22:45 | 2019-12-16T13:22:45 | 226,176,650 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 12,570 | py | import tensorflow as tf
from tensorflow.python.framework import ops
from tensorflow.python.ops import math_ops
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import nn_ops
import numpy as np
from tensorflow.losses import compute_weighted_loss, Reduction
def hinge_loss_eps(labels... | [
"noreply@github.com"
] | casperhansen.noreply@github.com |
57055c02b52144a20b3dc308a1a65e5d180c2744 | 5c70f2e44f915d42240d5283a6455417eb8182e4 | /skills/views.py | 47537b9e89c5675cc54981aa69a7e45513d50b0d | [] | no_license | Lairion/MainAcadProg | 3aafd788609a8aeae8598b97a576f18b37995751 | 62870f704938008571044120a8e07466ead7bff9 | refs/heads/master | 2021-04-06T20:36:07.727625 | 2018-04-09T14:13:23 | 2018-04-09T14:13:23 | 125,405,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render,redirect
from .models import Skill,Project
# Create your views here.
class SkillsViews(object):
"""docstring for SkillsViews"""
@staticmethod
def skills(request):
skills = Skill.objects.all()
print(request.user)... | [
"nunyes_m_a@ukr.net"
] | nunyes_m_a@ukr.net |
5faff836f01be1ca229e5d45ff91386da1400121 | bc7cd6689a8052d442ded8e876de1e5f22bfad6c | /lsml/feature/provided/shape.py | c4f910d38d3f18cbd76060977e01cb6f94890147 | [
"BSD-3-Clause"
] | permissive | tor4z/level-set-machine-learning | 3a359e0d55137f3c0a9cbcaf25048c61573abd25 | 38460e514d48f3424bb8d3bd58cb3eb330153e64 | refs/heads/master | 2022-04-08T08:04:27.200188 | 2020-01-26T03:09:56 | 2020-01-26T03:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,052 | py | import numpy
from skimage.measure import marching_cubes_lewiner as marching_cubes
from skimage.measure import find_contours, mesh_surface_area
from lsml.feature.base_feature import (
BaseShapeFeature, GLOBAL_FEATURE_TYPE, LOCAL_FEATURE_TYPE)
class Size(BaseShapeFeature):
""" Computes the size of the region e... | [
"mhancock743@gmail.com"
] | mhancock743@gmail.com |
0b35dcbf119952569f6b72bfb2a263970be81c51 | 92b2914d39142f241b9003b3dd0c36e64ae3dce0 | /Learning/Courses/Applied Machine Learning in Python/Week2/Classifier+Visualization.py | caeb3a55011971016dfa1b33714ef79c22b4e575 | [] | no_license | akanumur/Data_Science_Everyday | 1dd492cb9e48fd225ed8516ee79dd668f5b636b0 | 442784fe2c968723cd54d584ca3dfec626238960 | refs/heads/master | 2022-12-12T07:53:25.639936 | 2020-08-21T23:19:54 | 2020-08-21T23:19:54 | 268,927,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,124 | py |
# coding: utf-8
# ---
#
# _You are currently looking at **version 1.0** of this notebook. To download notebooks and datafiles, as well as get help on Jupyter notebooks in the Coursera platform, visit the [Jupyter Notebook FAQ](https://www.coursera.org/learn/python-machine-learning/resources/bANLa) course resource._
... | [
"akanumur@uncc.edu"
] | akanumur@uncc.edu |
427c47514b38a992a79fd0148c3b909718f39386 | 82aaf5317c6c5009548da0b0e440c5dfb38d1fb8 | /SConstruct | c5641fe6243c20cfb9ebfcaeab1717dc1f2e98a4 | [] | no_license | listentowindy/to_silicon_valley | 62835f1cf256ccf65c845482117e4f5350e06624 | 876a6db9c5cbc2c6c613d468abd5807908364093 | refs/heads/master | 2021-01-10T08:45:49.744093 | 2015-12-19T07:59:55 | 2015-12-19T07:59:55 | 47,193,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | env = Environment(tools=['default', 'packaging'])
env.Append(CCFLAGS = Split('-g -ggdb -Wall -Wextra -DBTDEBUG'))
#env.Append(CCFLAGS = Split('-g -O2 -Wall -Wextra -DNDEBUG'))
#set include path
comroot='../../../com/'
cpppath=[
'./',
comroot+'thirdparty/gflags-2.0/include',
comroot+'thirdparty/glog-0.3.3... | [
"hongchunxiao.360.cn"
] | hongchunxiao.360.cn | |
9e46f87709b383c14f1fc7c392d2d1abab38e158 | e3013899b69d6bc9922b82f9648e5ada59b6cf7e | /project2/static-router.py | 03ab6239bea80b52b2cd6b7ac168400bf8379ef4 | [] | no_license | stacybird/CS594 | 24eec43f26045d28b96324b719fe346170f2e025 | cd261ce17f2b94495bc16eb889f283ebec9f4881 | refs/heads/master | 2021-01-01T19:16:24.725138 | 2013-06-08T07:05:18 | 2013-06-08T07:05:18 | 10,066,570 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 19,998 | py | #!/usr/bin/python
# Copyright (c) 2013 Charles V Wright <cvwright@cs.pdx.edu>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above c... | [
"dreamsong@gmail.com"
] | dreamsong@gmail.com |
ab771edf0437105d900a63d8b5655d39a750a2ff | 121c583ac01aa6ad3d5e417fe764236ecb98deb7 | /src/Modeling and evaluation/NN-multi-targets/drawModel.py | 79bcecb094ccdc523253f1d3c8e27316ca9735b9 | [] | no_license | thangdnsf/ML_DVFS | e00b82294d35c314209bc56458e7980abc200884 | 908810969588cbcf7c784c0f3ad829eb15bbe0b4 | refs/heads/master | 2023-06-07T03:35:52.696587 | 2021-06-25T18:03:13 | 2021-06-25T18:03:13 | 380,318,849 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,135 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 8 16:46:31 2021
@author: ndthang
"""
import pandas as pd
import numpy as np
import sys
import os
import time
import random
from model import DVFSModel
from datagenerator import HPC_DVFS, labels,labelsZ, make_weights_for_balanced_classes
from sklear... | [
"thangdn.tlu@gmail.com"
] | thangdn.tlu@gmail.com |
4ad9eb923372792981a00e9cb69f041884f5aec9 | 5e3cbf8bfded9d719f2af2256121bd17c2d53e84 | /GPUCheck.py | 462223c40c8635854b6e87e3c3a73372aa75d130 | [] | no_license | UnrealPawn/3d-mask-gan | dca929ab2828fa74e7db7ead685f4c00dc0c404e | 142f1705f1c5e9915593a9fe789d7fb8bf21beaf | refs/heads/master | 2020-04-24T07:47:03.243999 | 2019-02-21T07:05:55 | 2019-02-21T07:05:55 | 171,809,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | import os
os.environ["THEANO_FLAGS"] = "device=gpu%d,lib.cnmem=0"%(0)
from theano import function, config, shared, sandbox
import theano.tensor as T
import numpy
import time
vlen = 10 * 30 * 768 # 10 x #cores x # threads per core
iters = 1000
rng = numpy.random.RandomState(22)
x = shared(numpy.asarray(rng.rand(vle... | [
"183827350@qq.com"
] | 183827350@qq.com |
f62998c30aabd3f2ae38cf6aa13b33f4456ef7e1 | d0fe389bae13abfc9d666dc880c50b894b7c212d | /software/tool/test_pipeline/move_file.py | 5fd75b3eebadef6c39cadc438cc9d2d6974eda57 | [] | no_license | ab3nd/TinyRobo | 965c060e95ef6446a609b4954dda042d1ff16311 | b86d2f716fea4bcc420f81e1903484554fb33b51 | refs/heads/master | 2020-04-12T08:49:45.086755 | 2019-07-11T01:59:05 | 2019-07-11T01:59:05 | 39,583,602 | 7 | 2 | null | 2018-07-10T20:05:36 | 2015-07-23T18:17:14 | Jupyter Notebook | UTF-8 | Python | false | false | 819 | py | #!/usr/bin/python
#Get a file that starts with "recognizer_test" in the ~/.ros/ directory, and move it to a new directory
import json
import rosbag
import rospy
import os
import fnmatch
import yaml
#From https://stackoverflow.com/questions/1724693/find-a-file-in-python
def find(pattern, path):
result = []
fo... | [
"orphrey@gmail.com"
] | orphrey@gmail.com |
9a83f9b0df96736170c0b233641592d12a80cb24 | 4fcf20223f971875c24c1be921ed86681063070a | /taco/migrations/0002_auto_20210227_1527.py | 6af811ad7aada9f01bea2363f3fe02024d6254d0 | [] | no_license | victorhausen/taco-api | 52ee266256d5e128f00b6ac2d045fe51ee1c7aa5 | 0596ba16cb454fef0cb4b56bea5b086b48e1ab98 | refs/heads/main | 2023-03-18T11:24:02.600897 | 2021-02-27T15:28:51 | 2021-02-27T15:28:51 | 342,873,953 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,546 | py | # Generated by Django 3.1.7 on 2021-02-27 15:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('taco', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Taco',
fields=[
('id', models... | [
"hausen.victor@gmail.com"
] | hausen.victor@gmail.com |
1ddcd5557d75e12aacac8b96c81f84d3742dcb9c | 7a0b5b4315f7059fab4272c54d8c31b0fe956dbd | /Attributes.py | 3502604e17d2e7b22ba62b8464ccce4a26026ed2 | [] | no_license | welkerCode/MachineLearning-SVM | 94400d2a540d38e14f95ab0d14985e234b88b4cc | 3d3ef3e71e0186816903754bd676ad9c1535bb47 | refs/heads/master | 2020-03-11T16:51:51.124393 | 2018-04-23T23:08:20 | 2018-04-23T23:08:20 | 130,130,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | # I learned to parse workbooks with https://www.sitepoint.com/using-python-parse-spreadsheet-data/
class Attributes:
def __init__(self):
self.values = []
def addValue(self, newValue):
if self.values.count(newValue) == 0:
self.values.append(newValue)
def getValues(self):
... | [
"taylormaxwelker@gmail.com"
] | taylormaxwelker@gmail.com |
2138801a48a4de3e3f328339e1a0f23bbedcdf77 | 32d6370fe51c42cd99af52b03f81a82d687e5bb3 | /Desafio073.py | c73ea9d3a3a68dad7fa5feb6d681f879f71d1e3e | [] | no_license | AndreLovo/Python | a5f4b10c72641048dfd65b6c58bce3b233abeb07 | ea98a2ca572dfebf9be32502f041016ec14ac0d5 | refs/heads/master | 2022-05-03T13:08:37.178401 | 2022-04-10T16:41:54 | 2022-04-10T16:41:54 | 157,377,691 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | # Crie uma tupla preenchida com os 20 primeiros colocados da Tabela do Campeonato Brasileiro de Futebol, na ordem de colocação. Depois mostre:
# a) Os 5 primeiros times.
# b) Os últimos 4 colocados.
# c) Times em ordem alfabética.
# d) Em que posição está o time do São Paulo.
times =('Atlético-MG', 'Flamengo', ... | [
"noreply@github.com"
] | AndreLovo.noreply@github.com |
1b2353d1c72900274f10c25e52be0fc3a3553207 | fa9b5bbe55d261627b89a91d73a38ec4d132a76d | /plugins/ipythonnb/ipythonnb.py | 012d239d07599726919fd25906356bcaf544e113 | [] | no_license | jcbozonier/DataBozo | cfda67a6e32a3761c4f647d19aad62feaca75198 | 2f3e899a563919760a072da33e5547758a086e18 | refs/heads/master | 2021-01-23T13:49:36.068876 | 2013-12-30T02:41:10 | 2013-12-30T02:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,284 | py | import os
from pelican import signals
try:
from pelican.readers import BaseReader # new Pelican API
except ImportError:
from pelican.readers import Reader as BaseReader
try:
from pelican.readers import EXTENSIONS # old Pelican API
except ImportError:
EXTENSIONS = None
try:
import json
impor... | [
"darkxanthos@gmail.com"
] | darkxanthos@gmail.com |
c55812681bffcd67f705310e9d3133f402e043f6 | 9d8a3a2c0a15dbf1f90d801e6d705d1212cf09af | /services/web__morningstaronline_co_uk.py | ac5fc53d8d59be5e0045ca7297f649f07c83b74c | [] | no_license | rudolphos/NewsGrabber | f9bddc9a9b3a9e02f716133fd746f48cee635b36 | 86354fb769b2710ac7cdd5bd8795e43158b70ad2 | refs/heads/master | 2021-01-12T12:07:55.335079 | 2016-10-09T22:39:17 | 2016-10-09T22:39:17 | 72,316,773 | 0 | 0 | null | 2016-10-30T00:35:08 | 2016-10-30T00:35:08 | null | UTF-8 | Python | false | false | 417 | py | refresh = 5
version = 20160312.01
urls = ['https://www.morningstaronline.co.uk/britain',
'https://www.morningstaronline.co.uk/world',
'https://www.morningstaronline.co.uk/editorial',
'https://www.morningstaronline.co.uk/features',
'https://www.morningstaronline.co.uk/sport',
'https://www.morningstaronline.co.uk/a... | [
"Arkiver@hotmail.com"
] | Arkiver@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.