blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3e81f7d248a6650325e67b869748c10261cd184 | e70168265db3e3686685a916d69b9ac3f5786bab | /improve.py | a3473c13c09eb7e9295efe94b8ebdbe21bd234f0 | [] | no_license | fjmnwd/Movie | e5a17b6325cd6227fa998a6ffd21ae51e3d951c8 | ae94da1b2928430e9448d26282858ad4b84826fb | refs/heads/master | 2022-12-18T07:28:55.581724 | 2020-09-23T14:07:08 | 2020-09-23T14:07:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,748 | py | import pandas as pd
import numpy as np
import gym
from gym import spaces
import pickle
import random
import copy
class UserModel():
def __init__(self, data):
self.data = data #data should be pd.read_csv
'''
self.userId = 758 #Change the start user Id here
self.rating_index = 0
... | [
"yu_yang1998@126.com"
] | yu_yang1998@126.com |
3b05ba43e8c97459cc904758527508ef052c1002 | a31bb4bb77fb3a40b00ac6b3e4cdaf3bb4fa54d7 | /day1/homework_1.py | 2f52d3f618844257173f256af1cce1e478afb238 | [] | no_license | lin790292154/python_note | 457069a5d0adc6991321f5eb4644e1c91c597fff | 3b35a3087117aadc0b8b63a260ef55e5b20f5e96 | refs/heads/master | 2021-08-31T19:58:15.775229 | 2017-12-22T17:14:40 | 2017-12-22T17:14:40 | 110,909,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | # write by kratos
'''
作业二:编写登陆接口
输入用户名密码,有一个文件存储用户名密码文件
认证成功后显示欢迎信息
输错三次后锁定,下次在使用这个用户名登陆的时候,显示已锁定,使用py文件处理的知识(考虑用list?记录在硬盘里,)
'''
i = 0
while i < 3 :
user = {}
_username = "kratos"
_password = "abc123"
username = input("please input your username:")
password = input("please input your... | [
"lin790292154@163.com"
] | lin790292154@163.com |
830093de9a3620fbb61ee2f90a96b66d2ec4f095 | 3b748ae86e0aac5209f959ed0d138b2e424d5877 | /lotus/protocols/harvester_protocol.py | af1329dc2673c69d096f788a13c4fa463c1e3d82 | [
"Apache-2.0"
] | permissive | ralf9090/lotus-blockchain | 1d3435c4c90b075335a3ab05054629b64dc99d79 | 9401860fd4940b14c2bf17a3b28c3422ec7d7542 | refs/heads/main | 2023-06-06T03:40:54.849450 | 2021-06-24T12:28:19 | 2021-06-24T12:28:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | from dataclasses import dataclass
from typing import List, Tuple
from blspy import G1Element, G2Element
from lotus.types.blockchain_format.proof_of_space import ProofOfSpace
from lotus.types.blockchain_format.sized_bytes import bytes32
from lotus.util.ints import uint8, uint64
from lotus.util.streamable import Stream... | [
"pamenarti@gmail.com"
] | pamenarti@gmail.com |
0cf0f075bde7831ba4cd2d79af4751059674ba3c | b090a06d91ff9c9e2cc0081d37f896827273722a | /write_tmp_table.py | 48fd0cce22fbc25fc698685f5eedc96abba01153 | [] | no_license | parer-inc/write_tmp_table | 12aecb4eedd1217198c3d8be458d920a1e09e78b | 0e7d7bb162351d39712be8600172d8da27918668 | refs/heads/master | 2023-06-17T18:44:31.011637 | 2021-07-18T07:38:13 | 2021-07-18T07:38:13 | 373,458,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | """This service allows to write in tmp tables"""
import os
import sys
import time
import MySQLdb
from rq import Worker, Queue, Connection
from methods.connection import get_redis, get_cursor
r = get_redis()
def write_tmp_table(data, name):
"""Writes data into tmp table"""
cursor, db = get_cursor()
if not... | [
"maxfy@gmail.com"
] | maxfy@gmail.com |
bc9651705d2cdbc1b60c670bf4009ebf28d59985 | 3b196ab9d052197d83c74528fc5281d3ac83716d | /lab01/lab1.py | afd6fc95cb50e2eec73ac66b79cbe423743bf0d3 | [] | no_license | efancher/rack_python2 | 232755ea258af0dcaaad932c48089e837ea47575 | ce7b5c49813a6a7e633e60599da94f7a58102be9 | refs/heads/master | 2020-05-04T21:56:06.057255 | 2014-12-03T19:25:10 | 2014-12-03T19:25:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import argparse
from random import randint
parser = argparse.ArgumentParser(description='Patent database search engine')
parser.add_argument('--author',
nargs='*',
help='last first')
parser.add_argument('--patent_num',
help='pa... | [
"student@localhost.localdomain"
] | student@localhost.localdomain |
311edadad78711af325fada868cc172f1ba691a6 | 95d258219319e6d2a3b7299da728172de06d653c | /marsScraper.py | e66ad778445cd6b5322a1130a4189e3be75553bd | [] | no_license | zelson71/web-scrape-challenge | 646d9a1102ea83f23f27e1ef71ce985f435d7f0e | 343d7810f53aaedbb2777b487510ac68c750d37f | refs/heads/master | 2021-02-13T10:37:41.697977 | 2020-03-15T00:47:30 | 2020-03-15T00:47:30 | 244,688,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,963 | py | from splinter import Browser
import time
import pandas as pd
import requests
import pymongo
from bs4 import BeautifulSoup as bs
def call_browser():
executable_path = {
"executable_path": r"D:\webdriver\chromedriver.exe"}
return Browser("chrome", **executable_path, headless=True)
def scrape_mars():
... | [
"zelson1@gmail.com"
] | zelson1@gmail.com |
ce0f1eb28227cc019378b551343282eb71220279 | f76d9c980416d7e5943d761a4fd1c7b30a382415 | /menu.py | f6da91a536ee8455965745c8b396744d40cc1b28 | [] | no_license | sophmintaii/programming2020_notebook | b0333c86a15dce1750405590839d914b7ffe61e8 | ef7add5d2ccf8ff9fa8299de0f396bf088ae40d4 | refs/heads/master | 2021-02-10T16:26:39.521821 | 2020-03-02T15:01:08 | 2020-03-02T15:01:08 | 244,398,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | from notebook import Notebook, Note
import sys
class Menu:
'''Display a menu and respond to choises when run.'''
def __init__(self):
self.notebook = Notebook()
self.choices = {
'1': self.show_notes,
'2': self.search_notes,
'3': self.add_note,
'4':... | [
"sophmintaii@gmail.com"
] | sophmintaii@gmail.com |
472a40203e6da949395c55e21bb682f15f0f068e | d3c177ac06152627670e5cd109018b5d2d5108cd | /oop/ex39_shelf.py | 6c712985945622ce37bea5b5b6f30b2a04501b5e | [] | no_license | kangli914/pycharm | e8af11819d975706ba5fc91044ef879e5248e0b8 | 1132022a6ae85b3cc4bc71e80d23ac1bef08b2a3 | refs/heads/master | 2023-08-07T13:45:47.358431 | 2023-07-06T12:21:14 | 2023-07-06T12:21:14 | 64,769,776 | 0 | 0 | null | 2023-07-25T23:27:06 | 2016-08-02T15:39:35 | Python | UTF-8 | Python | false | false | 2,576 | py | #!/usr/bin/env python3
"""A simple shelf calss containing all the books and prices."""
class Book():
"""A book containing the title, author and price."""
def __init__(self, title, author, price, width):
self.title = title
self.author = author
self.price = price
self.width = w... | [
"kang.li@elasticpath.com"
] | kang.li@elasticpath.com |
e13b6c30c9a4e22156a45a45d2bf73e13f999e36 | e782a5dfb8ea4c13e15a564a994ae2ac410870cd | /images2gif.py | 686ed599789df254fc20e52eceb974b58344103a | [] | no_license | darren1231/image2gif_example | 50742dc2da88dd8b47cd7d349054ef9630ab6190 | 655f5819a7918d12db676106d16cbf1d40241b2f | refs/heads/master | 2021-01-09T20:30:30.969354 | 2016-07-05T10:44:22 | 2016-07-05T10:44:22 | 62,628,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,111 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2012, Almar Klein, Ant1, Marius van Voorden
#
# This code is subject to the (new) BSD license:
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of s... | [
"darrendarren1231@gmail.com"
] | darrendarren1231@gmail.com |
6f8f55d475bcc0e553f442897fd874177c3d347c | 2491df3f643539e6055bb0b2a4b659474c57491f | /interval.py | 1c48b76451542d32868f5e00496c2a8e10df5e23 | [] | no_license | ghilbing/Ejemplos | 85efc91346028b8a3d26d7680d9286b26234c771 | 339a45ef48c9a61002a01f7c823cc42d34fab409 | refs/heads/master | 2021-05-13T13:58:33.010157 | 2018-02-26T20:44:44 | 2018-02-26T20:44:44 | 116,724,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | def interval(intervals, new_interval):
s = new_interval.start
e = new_interval.end
parts = merge = []
left = []
right = []
for i in intervals:
parts[(i.end < s) - (i.start > e)].append(i)
if merge:
s = min(s, merge[0].start)
e = max(e, merge[-1].end)
return left +... | [
"ghilbing@gmail.com"
] | ghilbing@gmail.com |
3786313e353f958667e0c9f7b1754844fc21fc10 | 0cc1361096f45b45525807a3b384921c0b3d2a59 | /suricata-4.1.4/suricata-update/suricata/update/sources.py | bf7b64bf03a43fe71482cc0e2314d4e12171cba4 | [
"GPL-2.0-only",
"MIT"
] | permissive | lzskyline/DPDK_SURICATA-4_1_1 | 5890fd52edee736ebd58bdebdc2036c507750d71 | 0a521852db64e2b8c0e6df16253d1fa44117041f | refs/heads/master | 2022-12-01T20:05:25.887658 | 2020-08-19T05:44:34 | 2020-08-19T05:44:34 | 288,617,550 | 0 | 0 | MIT | 2020-08-19T02:50:59 | 2020-08-19T02:50:58 | null | UTF-8 | Python | false | false | 5,975 | py | # Copyright (C) 2017 Open Information Security Foundation
#
# You can copy, redistribute or modify this Program under the terms of
# the GNU General Public License version 2 as published by the Free
# Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; wi... | [
"vipin.varghese@intel.com"
] | vipin.varghese@intel.com |
deb060c65bec0dc35726bc3dff74609147f50792 | 8a622db4bc330f4aaaa4dc6a0ee24e360eceac5a | /models/document.py | 34b266a27e9d2cfa4422d8e60555a0ef37e28de2 | [] | no_license | claylee/flaskpic | 54c626800883d9662cdac142bd7687f0e0d9bab4 | fb8de1876a65be478165e32850dda85b1c6cd7a5 | refs/heads/master | 2020-03-22T03:40:20.871443 | 2018-08-21T06:01:12 | 2018-08-21T06:01:12 | 139,445,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | import os
import sqlite3
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import Column, Integer, String
from database import db
class picdocument(db.Model):
__tablename__ = 'picdocument'
pdocid = Column(Integer, primary_key=True)
pcateid = Column(Integer)
title = Column(String(80), unique=True... | [
"16773293@qq.com"
] | 16773293@qq.com |
f84670cb711ec6c7279b855e8cd0135361db30af | 2d69db4b30ac719f7e6d08f1453d07f81ea6755b | /BERT/TREC/script/train_DR.py | d4d4eb1023fa349e3841fbb0ea554f22e62e03a0 | [] | no_license | iluntsai99/IR-Final | a1f2004177e803fc4e989d537e358c520743c796 | 4a2b0720d0809ca56ece009ee2c8cf26a1f4af3c | refs/heads/main | 2023-06-06T17:20:14.639322 | 2021-06-26T06:44:49 | 2021-06-26T06:44:49 | 378,167,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,547 | py | import json
import numpy as np
from argparse import ArgumentParser, Namespace
from pathlib import Path
from typing import Dict
import torch
from tqdm import tqdm
from torch.utils.data import DataLoader, Dataset, ConcatDataset, Subset
from transformers import AdamW, BertForQuestionAnswering, BertTokenizerFast, BertFor... | [
"b06902135@ntu.edu.tw"
] | b06902135@ntu.edu.tw |
9ddb472d2ff2e53ba564d04caed1083c15bdb513 | 2033d6d7b9547c6722bfc9f52379683ebfca7186 | /pbf_kao_gui/Commands/new_pygame_screen.py | e4d417e14846ac385b85c64668550296c079c27d | [] | no_license | cloew/KaoGUIPBF | 5119e4f149343804d6e031b14d920a9e2229eb2b | 819a908bccfd579c9d0666f216395d08e230353f | refs/heads/master | 2021-01-01T20:16:57.033719 | 2015-02-17T16:39:51 | 2015-02-17T16:39:51 | 16,234,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | from pbf.helpers.filename_helper import GetPythonClassnameFromFilename
from pbf.templates.template_loader import TemplateLoader
from pbf_kao_gui.templates import TemplatesRoot
class NewPygameScreen:
""" Command to Create a new Pygame Screen """
TEMPLATE_LOADER = TemplateLoader("pygame_screen.py", Templ... | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
71986d71f9394307b82757ff9a3a6674007991e8 | 7b5af208c9228ef38c5db7b0f29a68e63f9f3539 | /ecommerce/ecommerce/settings.py | df80ca1ba7f243782429feefd8db842b300790da | [] | no_license | dtellogaete/djangoecommerce | 274abb8c93a4f2eb87130ca0fe83248e6f7e8f02 | fd48c80b6641d262a0ff64f7e21cb212d31e9cb9 | refs/heads/master | 2020-05-05T13:12:59.321546 | 2019-04-08T05:40:46 | 2019-04-08T05:40:46 | 180,066,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | """
Django settings for ecommerce project.
Generated by 'django-admin startproject' using Django 1.11.20.
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... | [
"dtellogaete@gmail.com"
] | dtellogaete@gmail.com |
e43e67636acb6d9b763f0061a6d01dc615c170b1 | af84faa0eedb07725755b89e1ce254ed2317286c | /Basics/00_Installing/04_RTDExample.py | dc6d58bf390de8444be6e40ee25d5dd24b5788ea | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | ambaamba/Examples | cdc59a0db40097e9401941facb88e09f41f96abf | 88cfc58ca0ce81e70bb3fde964b11d8a094bddf8 | refs/heads/master | 2020-12-23T10:39:33.696844 | 2019-12-17T11:23:21 | 2019-12-17T11:23:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | #!/usr/bin/env python3
# -----------------------------------------------------------------------------
# Copyright (c) 2016+ Buro Petr van Blokland + Claudia Mens
# www.pagebot.io
#
# P A G E B O T
#
# Licensed under MIT conditions
#
# Supporting DrawBot, www.drawbot.com
# Supporting Flat, xxyxy... | [
"michiel@kauwatjoe.com"
] | michiel@kauwatjoe.com |
bbafdb13e4deef27510ee14c7934c4231e0f204a | cdb0bc928e9e280c645d221dfa35b609bde6d3bb | /LectureExercises/Lecture12/remove_duplicates.py | 66fcfb17919821fff5e624a543e8013f1b2f93c3 | [] | no_license | JPWS2013/SoftwareDesign | c58fb629d3cd8d182f4daaa0c300cc128a617b85 | 073216451273b3b3b3f7b9e76e25ec5f0447cb8e | refs/heads/master | 2021-01-18T17:08:40.464639 | 2013-11-05T03:24:26 | 2013-11-05T03:24:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | def remove_duplicates(origList):
newlist=[]
for eachElement in origList:
anElement=eachElement
if anElement not in newlist:
newlist.append(eachElement)
return newlist
original=[1,2,3,4, 3, 6, 10,5,6,7, 3, 1, 2]
unique=remove_duplicates(original)
print unique | [
"justin.poh@students.olin.edu"
] | justin.poh@students.olin.edu |
79194be936ca7bb05eed1f4829f853891f8336f8 | 2de05b2984d04b12713bb805b370009b4d8c8eb0 | /robot_R2Link.py | 20da154a60109b20ee3aef9b38bd58e6c457d99e | [] | no_license | prasun-biswas/robot2link | 5a759fe1750729d3b85b8bae3dd2434031264dc5 | 15a90bc18c61fe964c103dcf8b0a3700ee8aa65f | refs/heads/master | 2023-08-16T14:25:14.207578 | 2021-10-14T13:09:57 | 2021-10-14T13:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,597 | py | # import math
# import sys, getopt, time
# import numpy as np
# from roboticstoolbox import *
# from spatialmath import SE3
# from collections import OrderedDict
# import motor
#
# class R2Link(DHRobot):
# """
# This solution is built with roboticstoolbox library.
#
# R2Link class is written by inhe... | [
"Rpblikescodes@gmail.com"
] | Rpblikescodes@gmail.com |
e33b7e0b004944fe986a82dc58d7668f0d622a18 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/1488.py | 04ea069f2a72cc94a1d2641d3b845e5b20b5ece6 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | # https://code.google.com/codejam/contest/2974486/dashboard#s=p1
import sys
def readline():
return sys.stdin.readline().rstrip()
f0 = 2
t = int(readline())
for case in range(t):
line = readline()
[c, f, x] = [float(s) for s in line.split()]
time = x/f0
time2 = c/f0 + x/(f+f0)
more = time2 < ti... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e460987659cd47ba935b57c02703ad4734ec63b1 | 3ceb355faf43e83d35e1b16225e549d3a77c198d | /ConvModel.py | 8e883547414c899d3a9ee16d37755f8b829e9357 | [] | no_license | michaelyang1/ConvolutionalNeuralNetwork | 7cd1a6fb3143a508d8fd6c2cb63e89a06c5f9676 | fcdd2a5fe9643823e3e238129b4a40caf41e3b81 | refs/heads/master | 2023-08-06T11:36:12.955184 | 2021-09-28T06:01:17 | 2021-09-28T06:01:17 | 242,405,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,788 | py | from layers import Layers
import numpy as np
import random as rand
class ConvModel:
act_tensor = list()
layer_info = list() # identifies what type of layer (conv, pool, or fc)
w_tensor = list()
b_tensor = list()
dw_tensor = list()
db_tensor = list()
dz_tensor = list() # z = w * x + b
... | [
"noreply@github.com"
] | noreply@github.com |
821ac809362efc6c4fa8ff3c0aba68f2d7e215fd | bc4aba1299c11ee2bbc6a7457c9d0c540fa42031 | /mysite/mysite/settings.py | 8b30256f75a0580858b26238a2c74501968a0d50 | [] | no_license | userimack/django19_polls | 5e774c1d28d011cd3d055575f35aef55bd956735 | 62f9ada9ea9329d0bc5424c1c96afc88b56c7c2c | refs/heads/master | 2021-01-09T21:57:31.546213 | 2016-02-17T10:52:33 | 2016-02-17T10:52:33 | 48,939,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,898 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
impor... | [
"mahendra.k12@gmail.com"
] | mahendra.k12@gmail.com |
f427c480806215058ec77aeae058ee4fa46a9ce9 | d14a590ca20c4ab38fb105c83391f375b8a28190 | /app/seeds/user_image.py | cec3dfc25f4f0eb48fa59a35e786ad0f846640f1 | [] | no_license | cygnus33065/skybnb | fd80d4c8bf2c2f0a6ea2ac0aef34b049d2ad8a94 | 100fcd2f4717e4379dd4207c8401c9599515c315 | refs/heads/main | 2023-03-31T03:35:07.254999 | 2021-03-30T14:32:01 | 2021-03-30T14:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | from app.models import db, UserImage
def seed_user_image():
user1 = UserImage(img_url = "https://skybnb.s3.amazonaws.com/r2d2.jfif",
user_id=1)
user2 = UserImage(img_url = "https://skybnb.s3.amazonaws.com/emperor.jfif",
user_id=2)
user3 = UserImage(img_url = "https://sky... | [
"cygnus_33065@yahoo.com"
] | cygnus_33065@yahoo.com |
8d10a13fa2beb53bf9ae7392bd14ecff5447d645 | 186b96d22baeaf35f82a9630298e18d7e9d5f7e9 | /catkin_ws/devel/lib/python2.7/dist-packages/hector_nav_msgs/srv/_GetSearchPosition.py | 67db034258e99be117ff1eb159e28424de234800 | [
"MIT"
] | permissive | siketh/ASR | 99e668c54c80ee063db388793eae3fff7c5e410e | 8c222a26d27606db180ef63bada5cfe70980d76e | refs/heads/master | 2021-01-19T17:59:05.095152 | 2015-08-07T01:01:07 | 2015-08-07T01:01:07 | 36,843,166 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 16,195 | py | """autogenerated by genpy from hector_nav_msgs/GetSearchPositionRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import std_msgs.msg
class GetSearchPositionRequest(genpy.Message):
_md5sum = "a579e8b989d066f6c17946ab0... | [
"troman360@gmail.com"
] | troman360@gmail.com |
6cbcd367b16049963e5ce0e5fbbdf3d3bc47ceea | bb5961e5e026e547f0af87e73add4a05799b8b4b | /modelseedpy_escher/model/escher_from_modelseed.py | 1f75fe86fc8b84b537ae19ee36b986cc9a764516 | [] | no_license | ModelSEED/ModelSEEDpy-Escher | 947794420366b26dd411ad5ac99777a2e31d1aa3 | 4b483dc8b8af9df60d6f755b15deb1a677f63886 | refs/heads/master | 2023-08-22T06:15:15.558020 | 2021-09-28T08:28:38 | 2021-09-28T08:28:38 | 193,557,434 | 2 | 1 | null | 2021-08-09T18:56:46 | 2019-06-24T18:21:58 | Jupyter Notebook | UTF-8 | Python | false | false | 5,326 | py | import copy
import logging
logger = logging.getLogger(__name__)
def get_cmp_token(cmps):
if 'k' in cmps:
return 'k'
if 'km' in cmps:
return 'km'
if len(cmps) == 1:
return list(cmps)[0]
if len(cmps) == 2:
if 'b' in cmps and 'e' in cmps:
return 'b'
if... | [
"fliu@anl.gov"
] | fliu@anl.gov |
ebb2fa048817413a11e3f6b1fa17173e0b9a4846 | 95594364c548081b4f139b0fec2d2474d23129da | /Pretreatment/Audio/Step3_Assembly.py | a86b07697b9a6e3da8c5f926464515397e374d1f | [] | no_license | Grace-JingXiao/AVEC_2017_DDS_CNN_Research | 0e932e2e5f38039dd2884595e6d75bc67da8e20a | 71d04f3d765efb18f6dbe99eab3ef12e5e5f8489 | refs/heads/master | 2020-09-05T22:09:02.904761 | 2019-09-11T06:07:53 | 2019-09-11T06:07:53 | 220,227,983 | 1 | 0 | null | 2019-11-07T12:06:41 | 2019-11-07T12:06:40 | null | UTF-8 | Python | false | false | 906 | py | import numpy
import os
if __name__ == '__main__':
loadpath = 'D:/PythonProjects_Data/AVEC2017-OtherFeatures/Step1_features3D/'
savepath = 'D:/PythonProjects_Data/AVEC2017-OtherFeatures/Step3_features3D_Assembly/'
os.makedirs(savepath)
ususalShape = 0
for foldname in os.listdir(loadpath):
t... | [
"35563563+BaoZhongtian@users.noreply.github.com"
] | 35563563+BaoZhongtian@users.noreply.github.com |
eadd4b70a072df6660696ff314f2153142aa5122 | 15cf675b48fd42d35572151ed1c3f6ef67a6989b | /talks/events/migrations/0006_auto_20150220_1536.py | 7b13d8a89362a93d868cbeae0e8eabd0e3c6fedb | [
"Apache-2.0"
] | permissive | davan690/talks.ox | 9b2cc2b7379da39f6fe2eb3d87ed2f574d60e433 | a90b034b34600c06bc68cda0e48dd3c0663f4538 | refs/heads/master | 2021-12-16T15:30:46.530871 | 2018-07-12T14:27:54 | 2018-07-12T14:27:54 | 239,358,467 | 0 | 0 | Apache-2.0 | 2021-11-29T18:00:53 | 2020-02-09T19:07:47 | null | UTF-8 | Python | false | false | 559 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def extract_lastname(apps, schema_editor):
# Extract the last name of each person in the database
Person = apps.get_model('events', "Person")
for person in Person.objects.all():
person.lastnam... | [
"andyhaith@gmail.com"
] | andyhaith@gmail.com |
a1ceafb1077ce23b37f9f874fde026507757b03d | 41db99b01c461d5d6acfa444eccb7d9cd2d92283 | /day_12/d12.py | a732f3bc99ce8641a7376e6624e5db8687bec774 | [
"MIT"
] | permissive | allisoncstafford/advent_of_code | 412867210fe77207fa3c9ec00c239cb9cbd40134 | a0f19a7b23e3112698944512efa2d23794c02a82 | refs/heads/master | 2022-07-02T00:47:12.283366 | 2020-05-12T01:05:45 | 2020-05-12T01:05:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | import re
def read_input(filename):
'reads the text file'
text_file = open(filename, "r")
input_str = text_file.readlines()
text_file.close()
return input_str
def extract_positions(lines):
"""extracts postiions from a list of lines with each line representing a
moon eg. <x=-1, y=-4, z=0>... | [
"allisonhonold@gmail.com"
] | allisonhonold@gmail.com |
aa7e54c13f82ec435d13c5be8999b09e623f6ee0 | e07b8420df6ebe15b0de68ca6889fcaa68d8fad3 | /Keras/study/cross_entrophy.py | 18e196f4acd85efa5fad1fc77cdf07724becf698 | [] | no_license | AllenLiuX/Machine-Learning-Projects | 2fcbb3dc3d8efee08de9d96020e551a9c0758fa6 | ea20ea04cb956a9fb8f7099ddb7ec36ab5730cc2 | refs/heads/master | 2023-01-24T05:46:33.123993 | 2020-11-21T08:24:05 | 2020-11-21T08:24:05 | 299,807,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | import numpy as np
import matplotlib.pyplot as plt
from keras.datasets import mnist
from keras.utils import np_utils
from keras.models import Sequential
from keras.layers import Dense, Activation
from keras.optimizers import SGD
# (x_train, y_train), (x_test, y_test) = mnist.load_data()
f = np.load('mnist.npz')
x_tra... | [
"13120200491@163.com"
] | 13120200491@163.com |
2f7e7080307ec0ae3515529e27fa46310cc9f7cb | a0a0932b6ab6ec47c2757d8929216790f5bc6535 | /order/apps.py | 63251174a40de7091e5dd63e488b3497605ea2bb | [] | no_license | lianglunzhong/latte-erp | b4e6e3b13c4bce17911ff166fecc36172e0bea5b | b58936c8d9917f3efdcb3585c54bfd3aba4723c2 | refs/heads/master | 2022-11-27T03:08:23.780124 | 2017-04-28T02:51:43 | 2017-04-28T02:51:43 | 89,660,834 | 0 | 0 | null | 2022-11-22T01:04:12 | 2017-04-28T02:48:50 | Python | UTF-8 | Python | false | false | 179 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class OrderConfig(AppConfig):
name = 'order'
verbose_name = u"订单"
| [
"liang.lunzhong@wxzeshang.com"
] | liang.lunzhong@wxzeshang.com |
685f04e0c0f07cbb98b502b709102b8bcd3bff79 | 2da5a50c2a0553bc53c435c56f6b6345f6195d21 | /hdds/register_disease_data/migrations/0001_initial.py | 3673f13858587ae01550fe3bada25f279c6d75bf | [] | no_license | belayeba/human_disease_diagnosis_system | 917460cfab06f3d095bbe399471cf5f5a721c98f | 123fd0305e6bc5bca59a3119a79d02dd408543d2 | refs/heads/master | 2023-01-18T21:50:02.995810 | 2020-11-21T17:09:17 | 2020-11-21T17:09:17 | 243,480,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,388 | py | # Generated by Django 3.0.3 on 2020-03-11 08:03
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Disease',
fields=[
('id', models.AutoField(... | [
"belay.eba016@gmail.com"
] | belay.eba016@gmail.com |
16ef3d223f079493d4a3c4362d4f4344f6552bc8 | 72cbac49f71d036291da20f43c43d101e9611ba1 | /operators/Greater.py | 1833a77d2fb684f9f4c98626b211d73a6b9b5234 | [] | no_license | indraoli429/Programming-In-python | 37475cda42957072a2e681231c68fc8a6551a17d | 951c390f134630b780ccc9d60db06b016b179182 | refs/heads/master | 2022-01-16T20:07:12.515835 | 2019-08-05T13:33:20 | 2019-08-05T13:33:20 | 172,559,922 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | a=int(input("Num1:"))
b=int(input("Num2:"))
if a == b:
print("Equal")
elif a>b:
print ("Number a is greater and its value is",a)
else:
print("Number b is greater and its value is",b)
| [
"indraoli429@gmail.com"
] | indraoli429@gmail.com |
d1ed1674435e189104e24538cd3e574fd8fa6e1f | 2da6c97243555d6a3e2fb4f33aeb5bc4bd535b35 | /guess-the-number/guess_number.py | b9efab1dfa7b91b67ea870c29d8de551c7e6acbb | [] | no_license | nerau12/Python-projects | d954690aa3dde8c5d13be3e8ae505fb65ebfd855 | 16f4d698bd31c81bb8c4fe11ee28a5789ba14076 | refs/heads/master | 2023-07-11T00:41:31.181275 | 2021-08-16T16:59:43 | 2021-08-16T16:59:43 | 198,076,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | #import random library
from random import randrange
class Guess_Number:
def __init__(self):
self.number = int(randrange(1,100))
self.guess = 0
self.num_of_guesses = 0
self.max_num_of_guess = 5
#plays game
def guess_number(self):
print("Program has user guess a ... | [
"jljersin@comcast.net"
] | jljersin@comcast.net |
9d58deb66cafc15a91330362ae99840ca17760ae | e31c3b05c6ff7569fd0f5fe9a3fd5a887480730d | /city_info/maharashtra/maharashtra_info.py | 9a9c8fff9bd5f1f6ee6c252eab1dac6bbf23ee9f | [
"MIT"
] | permissive | sachinwakle/city-info | 0b3fb472908af8221d7ad1655c33732b203fe6ff | 6008a4ad0a3f5d77a9b0add95388ec242c835caf | refs/heads/master | 2022-08-01T05:17:17.934036 | 2020-05-17T18:15:58 | 2020-05-17T18:15:58 | 264,450,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | """
:mod:`maharashtra_info` -- The Maharashtra state information
============================================================
.. module:: maharashtra_info
:platform: Linux
:synopsis: module illustrating how to document python source code
.. note::
This module does not provide any significant functionality... | [
"sbwakle@hotmail.com"
] | sbwakle@hotmail.com |
f590d324152bef02b3a740a0dd778ee819d5f584 | bd0f8d0d239d5f636c00b5e20dc7b1ab01c07cee | /learn_class/getattr.py | 27bc5970f002d6f7e49927e0976c56c46be0f14e | [] | no_license | LeonNie52/Learn_Python | 0bae3a4ba05fdd9eb1986e1b963ccfd8a21e27b0 | c7c2bdc17806af62a08f55cfea9080672f156364 | refs/heads/master | 2021-05-31T10:01:14.173925 | 2016-01-13T13:08:41 | 2016-01-13T13:08:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | '''
__getattr__ 拦截属性点号运算
'''
class Student(object):
def __init__(self, name):
self.name = name
def __getattr__(self, attr):
if attr == 'score':
return 99
raise AttributeError('\'Student\' object has no attribute \'%s\'' % attr)
s = Student('Leon')
print(s.name)
print(s.score)
# print(s.age)
| [
"LeonNie52@163.com"
] | LeonNie52@163.com |
75b4c8766f5c0a3e6ded56ac7b6155469058c0d7 | e1db36958c3ba78e4034c0c0c10be6fda27780ca | /Evaluation/code/eval_re_dist.py | fbb08145c02181b8e5a68bcc04e620a4fd260298 | [] | no_license | crystal-xu/KBEnrichment | 3cf645fa2383439d85ff18c817f42e468b6ffc98 | 50137d7151d4bb7da4759743d90c56091919980f | refs/heads/master | 2022-12-05T16:35:16.237361 | 2020-08-21T06:06:11 | 2020-08-21T06:06:11 | 288,887,348 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,335 | py | #!/usr/bin/env python
'''
###############################################################
Usage: F1-score versus different relation distances.
Run the script:
python3 eval_re_dist.py --data DocRED/Dialogue
###############################################################
'''
import os.path
import json
import argparse
fr... | [
"guaixiaoxu@outlook.com"
] | guaixiaoxu@outlook.com |
48c442804dedfff7672389b1005c72e1d04aa4f5 | f23ccf39b1cb4638416646f0ecc70d3b2ca87053 | /carbonDVRServer/transcoder/transcoder.py | 203d565bee6e38eb87da1291da1f5b214d1499c2 | [] | no_license | carbonDVR/carbonDVR | 6a0a19bf20a9a150690b03fed6fe837abf630f36 | b62c22bf860197c9fdcc43299927fe65408f772e | refs/heads/master | 2021-08-19T11:22:52.213908 | 2019-11-12T20:21:04 | 2019-11-12T20:21:04 | 41,271,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,662 | py | #!/usr/bin/env python3.4
import os, os.path
import logging
import time
import subprocess
import io
import psycopg2
import datetime
def getMegabitsPerSecond(filename, duration):
# returns bitrate of file, in Mb/s
if not os.path.isfile(filename):
return 0
if duration.total_seconds() == 0:
... | [
"james.mumper@gmail.com"
] | james.mumper@gmail.com |
c884d72e82a615af52dd1bb3369c3907a82fb5c8 | 54ec98fe78efd5a07990ee654e4e688c056eb4b8 | /calc_stat.py | 0aec04386be11d600c75ea1ffd65b22a4c2410ba | [
"BSD-3-Clause"
] | permissive | AspirinCode/hit-likeness | ee0da6c806199dae48020f680b580372f7459c71 | 31d0d5cae5ed051ff3efae3ef639ead05cb4be63 | refs/heads/master | 2022-04-06T18:41:03.776559 | 2020-03-14T16:29:10 | 2020-03-14T16:29:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,358 | py | #!/usr/bin/env python3
#==============================================================================
# author : Pavel Polishchuk
# date : 15-02-2019
# version :
# python_version :
# copyright : Pavel Polishchuk 2019
# license :
#===========================================... | [
"pavel_polishchuk@ukr.net"
] | pavel_polishchuk@ukr.net |
bcebf757b6c0d09c0f8c88fefa5ac7dba7d092df | c925f8349f3521b25ae2f0f10cc35aa0c1a14785 | /inhouse_databases.py | ac97cbf533390fd683c362630f89236fab871e95 | [] | no_license | russodanielp/ciipro | 892794aa3eb5a50e7f888f0908a3009fbaff99e3 | 0b4701c62b5f2d42f99df4de7f8e9241d9af9113 | refs/heads/master | 2022-06-04T08:06:30.081336 | 2019-10-09T21:52:21 | 2019-10-09T21:52:21 | 67,820,805 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,189 | py | import pymongo
from ciipro_config import CIIProConfig
from rdkit import Chem
from datasets import DataSet
uri = "mongodb://{}:{}@{}/?authSource={}&authMechanism=SCRAM-SHA-1".format(CIIProConfig.DB_USERNAME,
CIIProConfig.DB_PASSWORD,
... | [
"russodanielp@gmail.com"
] | russodanielp@gmail.com |
4064cfc6e48a79f5dc89b8a44d5d06a8f2a35b29 | f82b870abe3f26bf7766b3c89a05bd40b1eabec3 | /ml/config_uvicorn.py | 647779ac652c85681cc090306c984c5a9b416910 | [
"GPL-3.0-only"
] | permissive | jasonzhuyx/pyml | ec0e0fdc9410bc8f33a3c89e41a280683d08e168 | fa84edff9e897549f3f1e6c315c5a0756fe0359e | refs/heads/master | 2020-04-18T14:24:00.180451 | 2019-09-01T05:28:11 | 2019-09-01T05:28:11 | 167,587,524 | 0 | 0 | Apache-2.0 | 2019-01-25T17:38:17 | 2019-01-25T17:38:17 | null | UTF-8 | Python | false | false | 14,434 | py | # -*- coding: utf-8 -*-
# Gunicorn Configuration File (for unvicorn)
# Reference - http://docs.gunicorn.org/en/stable/configure.html
#
# To run gunicorn by using this config, run gunicorn by passing
# config file path, ex:
#
# $ gunicorn --config=gunicorn.py MODULE_NAME:VARIABLE_NAME
#
import multiprocessing
#... | [
"jason.zhuyx@gmail.com"
] | jason.zhuyx@gmail.com |
c205f8c46b863a632e3fe38baa0cd98c509905b5 | 63a7f3f0e6448bc0ba21847c57fcdb4fc23abb7a | /project6/ecommerce/ecommerce/urls.py | 47f8dc0148f60120dbcbd857a1077a16c3502156 | [] | no_license | alaminbhuyan/Django-Projects | 33854b972312b19387b3b0c5a054464a5b7d843c | c46a5691954ccaa016144793115cfffd8b1058d9 | refs/heads/master | 2021-01-26T13:40:18.729125 | 2020-03-31T16:42:13 | 2020-03-31T16:42:13 | 243,444,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | """ecommerce URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-bas... | [
"alaminbhuyan321@gmail.com"
] | alaminbhuyan321@gmail.com |
9ffca6b93fa007784b86b335e420ee88d70b61cf | af59bdd048dd6f7cb36a82b8aa53fbb707009596 | /optimizers/opt_factory.py | f368ae8b7d9d9b0ceed849846e81b0e85a96255a | [] | no_license | GreatGameDota/NFL-Impact-Detection | 8b2c44b0e3970a12d603d692befeea05ebc809ab | 493d5bd8ce738815cf49c69b11520e874b68b3a2 | refs/heads/master | 2023-02-08T09:03:14.756184 | 2020-12-28T19:51:27 | 2020-12-28T19:51:27 | 320,885,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | import torch
def get_optimizer(model, lr=0.001, lookahead=False):
# base_opt = torch.optim.Adam(model.parameters(), lr=lr)
params = [p for p in model.parameters() if p.requires_grad]
optimizer = torch.optim.SGD(params, lr=lr, momentum=0.9, weight_decay=0.0004)
return optimizer | [
"17858650+GreatGameDota@users.noreply.github.com"
] | 17858650+GreatGameDota@users.noreply.github.com |
212953611e16a73c32f310c5769c10ea1a31a979 | adb748ac7d24f6184ad81881d6caf5ea4689c38f | /spatialdata/units/NondimElasticQuasistatic.py | 3e050ad231632b437bb4a2686b50c9bb5b8b973c | [
"MIT"
] | permissive | Zilhe/spatialdata | 7a291703703cc2ff254cceec3683dc066925b5f4 | fee0e77dcb820d466857a0e914af265255709285 | refs/heads/main | 2023-04-30T08:16:55.977142 | 2021-05-19T01:41:42 | 2021-05-19T01:41:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,928 | py | # ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geodynamics.org).
#
# Copyright (c) 2010-2017 University of California, Davis
#
# See COPYING for license... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
5fa2b845f83212582d26725f1eaaf33ef08a6686 | 5979cb2c053ca271dc50bec7322b40b246827aeb | /main.py | ac7876d8f4c679909d72ddb35a98ab04e618eb10 | [] | no_license | aidanmc95/SendEmail | e2d431c734687f44702e67814dd41aa438f65e45 | a6d896737cdc1c3227c6c0f6378ac7c031020f23 | refs/heads/main | 2023-01-03T16:05:14.343894 | 2020-10-30T00:04:59 | 2020-10-30T00:04:59 | 308,468,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,014 | py | #!/usr/bin/env python
"""
Use this script to email individual results to patients through the
clinical@mobilexpressclinics.com gmail account.
This fits into the utils pipeline. It uses the output of requisition_roster
to find emails, requisition/accession IDs, and
Reference:
This is based on a (incomplete and misle... | [
"aidanmc95@gmail.com"
] | aidanmc95@gmail.com |
115d224d4d53ad5e1efcbed04307a6808bf8146e | 626b27b048a2c43bf1dab7509926accdadf2807a | /plant_disease/webserver/web/settings.py | 4e7e65c5769a3ed7ee96c3f45a32bc7b215ba0ae | [] | no_license | AswinGnanaprakash/code_box | d3b369458a73debcf82077f24006ff3d90f6a5cf | 27b8a7daff8a7f8293e8041086f511ef8390db35 | refs/heads/master | 2023-01-08T08:03:12.658265 | 2020-12-04T07:33:53 | 2020-12-04T07:33:53 | 209,298,509 | 1 | 0 | null | 2022-12-27T15:38:05 | 2019-09-18T12:06:02 | Jupyter Notebook | UTF-8 | Python | false | false | 3,160 | py | """
Django settings for web project.
Generated by 'django-admin startproject' using Django 2.0.10.
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
# Bu... | [
"Aswin@localhost.localdomain"
] | Aswin@localhost.localdomain |
2bd6b1e8422efed7276a2603afae0509399afee4 | 578b28074dd5a40b5facc705c52c93f62c6fc3d1 | /venv/bin/rstpep2html.py | c854b7e8264ab10cef4c9dacef6cd1ec32218728 | [
"MIT"
] | permissive | kfajarbowo/djumail | 237eaa1fa3e3329e683d1abbb49910d98d980250 | e6aa8794b372989537b5e210bfd5cdc093cd147e | refs/heads/main | 2023-08-05T09:54:09.257844 | 2020-11-29T14:01:04 | 2020-11-29T14:01:04 | 412,712,163 | 0 | 0 | MIT | 2021-10-02T06:33:24 | 2021-10-02T06:33:24 | null | UTF-8 | Python | false | false | 718 | py | #!/home/hajidalakhtar/kodingan/PYTHON/GOOGLE-MAIL/venv/bin/python3
# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML from PEP
(Python En... | [
"hajidalakhtar@gmail.com"
] | hajidalakhtar@gmail.com |
ee7531e0c603f1da58441201aa9edfb6ddd4b581 | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/views_20201115164620.py | ec1fa1c5ffa54349752a175c646dd05ab409740e | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,513 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
# contains user signup + login form
def view_index(request):
# bonus, if user is already logged in, lets not show them login/registration page,
# and instead redirect them to /books, which is already where ... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
f953239a3cbd5872122af0e99aa1484593f04dd2 | 6aa8c62c58e6f80e27e5999f5e4de9a758c9a7af | /main.py | f0645abf7154cbec2da17c8b66a047d17ddfccf2 | [] | no_license | glory9/stackOverflow-Clone | 10ca62729d07417a2058d571453d2dc2dd1fd500 | c174188614b29ab95dbe7aa85ca904926adb76e7 | refs/heads/master | 2022-10-18T07:36:52.025838 | 2020-06-17T01:15:19 | 2020-06-17T01:15:19 | 268,255,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | from SearchEngine import get_top_questions
from flask import Flask, request, render_template, jsonify
app = Flask(__name__)
@app.route('/')
def index():
return render_template("results.html")
@app.route('/search', methods=['GET', 'POST'])
def search():
if request.method == 'POST':
search_query = re... | [
"gloryadedayo10@gmail.com"
] | gloryadedayo10@gmail.com |
57651bd056392553b7461799fcdab49cd38ccc3f | c21960247829b620d0e36a3408ef8099d248c742 | /cirq/protocols/equal_up_to_global_phase.py | a6db82844732657e2d5140fb5820451d2b01ddff | [
"Apache-2.0"
] | permissive | iamvamsikrishnad/Cirq | ce1439853c9172690e3340fec70b47fd5614e2d1 | 4bec5447242c0d06f773a075383eea9dae0eebd3 | refs/heads/master | 2020-06-06T06:15:10.526041 | 2019-06-19T02:32:58 | 2019-06-19T02:32:58 | 192,661,193 | 1 | 0 | Apache-2.0 | 2019-06-19T04:57:38 | 2019-06-19T04:57:38 | null | UTF-8 | Python | false | false | 4,248 | py | # Copyright 2019 The Cirq Developers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"craiggidney+github+cirqbot@google.com"
] | craiggidney+github+cirqbot@google.com |
aeae36f67211e4e78af7b807e4ed3ef45afc1885 | 00285a455856c992d4094cd9cb396f73f6263023 | /openacademy/models/__init__.py | 0b35ca9f45d4609ea3e11b274db3373dd2902949 | [] | no_license | ibo-odoo/game_demo | 18cde19e9848cb525ca484d0a139cbdccaa803d4 | 59d05c56f6bf07be70f0420bb65aae2219f92746 | refs/heads/master | 2020-07-26T22:34:55.051834 | 2019-09-16T11:45:52 | 2019-09-16T11:45:52 | 208,769,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | # -*- coding: utf-8 -*-
from . import courses
from . import partner
from . import wizard | [
"ibo@odoo.com"
] | ibo@odoo.com |
dab9d36b8c73fe53c08593529ac46e9be7d0d02a | e188e4eb38ebce288a4c9dcb0841efbeafff64d5 | /python_errors/try_except_else.py | f2d9ad87fdae85b8ad08a1f313fac6d28c19a129 | [] | no_license | ankit89shama89/PowerShell | f208e7080eb750de4a71fb5c4bada383a724aafa | 59c3ed447352373e4343f45692f3f18603e14270 | refs/heads/master | 2022-01-22T18:42:28.792164 | 2022-01-18T19:02:25 | 2022-01-18T19:02:25 | 112,322,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | class User:
def __init__(self, name, marks):
self.name = name
self.marks = marks
def __repr__(self):
return f'User {self.name}'
def find_percent(user):
max_marks = user.marks["max"]
obtain_marks = user.marks["obtain"]
percent = (obtain_marks * 100) / max_marks
return pe... | [
"71321015+Ankit-Sharma-ggn@users.noreply.github.com"
] | 71321015+Ankit-Sharma-ggn@users.noreply.github.com |
1f56fe40b451d5516f870d77dd826ba62bf2b62a | b9c5683767e3cef9ede041259b867308329885d9 | /081_SMGB/smgb.py | 38043277be303678b5b4ebde6fca99327f594e21 | [] | no_license | chu-he/rosalind | 65612a2eee2d48335b774bbf699890a2b6785249 | f47adf214f4b1b805f68a149aba19f92e7081505 | refs/heads/master | 2020-07-11T15:06:11.866414 | 2019-09-27T23:59:41 | 2019-09-27T23:59:41 | 204,577,392 | 2 | 0 | null | 2019-09-27T23:59:42 | 2019-08-26T23:11:58 | Python | UTF-8 | Python | false | false | 2,325 | py | import datetime
import numpy
import operator
import sys
sys.path.append('../read_FASTA')
from read_FASTA import *
# Modified to allow zeroes for local alignment
def semiglobal_align(a, b):
print(a)
print(b)
# S matrix - score
S = numpy.zeros( (len(a)+1, len(b)+1), dtype=numpy.integer )
# D m... | [
"chuhhe@gmail.com"
] | chuhhe@gmail.com |
f6cc1430383d4a0ca97013407d782e7884823f7c | e54d8c065cad7b62b4f130c2c0230adf324ad785 | /test.py | dbec50335b70fc6ff74819a6876222557f0238cc | [] | no_license | AlejandroHernandezMunuera/BlitzNet_KD | e710c7d5aa34b7e9502cb24a184a5db58d0f9fe8 | 692f581bcb64fc6e271ad8870231ccaff0048411 | refs/heads/master | 2020-05-18T19:35:43.696123 | 2019-08-09T16:09:51 | 2019-08-09T16:09:51 | 184,611,779 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,696 | py | #!/usr/bin/env python3
from glob import glob
import logging
import logging.config
import os
import tensorflow as tf
import numpy as np
from PIL import ImageFont
from config import get_logging_config, args, evaluation_logfile
from config import config as net_config
from paths import CKPT_ROOT
import matplotlib
matpl... | [
"alejandrohernandezmunuera@gmail.com"
] | alejandrohernandezmunuera@gmail.com |
b5fd20af137de58b757e8b55bfffde6aa2cc80f8 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/unwieldy.py | 30434fbf85008b2c83c8b9159fa9d0a2baf010fe | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('unwieldy', __name__, url_prefix='/unwieldy')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('rep... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
f16923e24dab06b3bc5648ef66acc72cf73711b4 | 9507457a2fd693bf95ee34a1b2e5d2e65a19aeac | /wsgiref/handlers.py | b413a162ee43e4cabea3d76c554a9e8539b718ab | [] | no_license | ryomahan/read-python | 512c0cb188fec5fe595d7fd266b01be1c6758e4c | 6ceb81c405fa0b071be2a90f805f0e951125e3d0 | refs/heads/master | 2022-11-08T23:47:32.186858 | 2020-06-23T19:09:44 | 2020-06-23T19:09:44 | 274,065,832 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,008 | py | """Base classes for server/gateway implementations"""
from .util import FileWrapper, guess_scheme, is_hop_by_hop
from .headers import Headers
import sys, os, time
__all__ = [
'BaseHandler', 'SimpleHandler', 'BaseCGIHandler', 'CGIHandler',
'IISCGIHandler', 'read_environ'
]
# Weekday and month names for HTTP ... | [
"ryomahan1996@gmail.com"
] | ryomahan1996@gmail.com |
457e4393f15ff076963a57bd297035f82ea7eeff | 9ca2966e0bcf48cfb68c3e21a0e1d4addef8d643 | /1- python/4-while-loops/multiply.py | 20a853562d0492dd74d6245fb9dd87b8c8f831bc | [] | no_license | wmantly-stuff/prep-work | a591dd1f930e5c23a11d6b20e8b56019677a33c8 | d14b9d42b81b719a8750dd00ab896df0bdc34065 | refs/heads/master | 2020-04-13T23:34:58.686208 | 2015-08-02T02:43:43 | 2015-08-02T02:43:43 | 41,127,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | def multiplication_table(number):
pass
| [
"mendonca.kr@gmail.com"
] | mendonca.kr@gmail.com |
6c3cee0d518b7e09a352a7a9febe99dee52efab2 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/scripts/zd/ats_ZD_Combo_Palo_Alto_WISPr_Enable_Disable.py | 19bc854ef34aece8a3cf553113c84ee16e59b58f | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,190 | py | '''
Created on 2011-7-25
@author: Administrator
'''
import sys
import time
import copy
import libZD_TestSuite as testsuite
from RuckusAutoTest.common import lib_KwList as kwlist
from RuckusAutoTest.common import Ratutils as utils
from RuckusAutoTest.common import lib_Constant as const
BROWSER_STARTED = False
#-----... | [
"tan@xx.com"
] | tan@xx.com |
9ba8cd705b3ea4ebdac3677bb35d35400211b3f0 | a82721b7cbbe3fbfb56ad07e68c299692fb7c49b | /app/forms.py | fe691d3bc83457ec3635b2de1731b80c308f0f6c | [] | no_license | arquimedesjr/app_wep_issacar | 5df3deb94a8c9100ba5f8816838dacdffac5341a | cd9a89da92900ce600b8c2b8f6e2bba1f9223870 | refs/heads/master | 2022-12-23T21:51:36.327401 | 2020-10-06T18:14:15 | 2020-10-06T18:14:15 | 290,600,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | from django import forms
from django.forms import ModelForm
from django.views.generic import CreateView
from .models import *
class JovemForm(forms.ModelForm):
class Meta:
model = Jovens
fields = ['foto', 'nome', 'telefone', 'tribo', 'grupo', 'presenca']
class EditJovemForm(forms.ModelForm):
... | [
"arquimedeslqjunior@gmail.com"
] | arquimedeslqjunior@gmail.com |
8b332439a2fe2e912f9c5478e97e3bb5fc6ab0dd | 08fe752455b2e8bea36f69bd7eb0d70641691514 | /12월 3주차/[BAEKJOON] 12904_A와 B.py | abd5edb88c54b6248ff79f668d83207e4fb1c09a | [] | no_license | 2020-ASW/gayoung_yoon | 69a7a20c073710aaec76261cac59aa6541250588 | 0ad21c5484ed087d704d72b03fc1f14c3fa9e25f | refs/heads/main | 2023-02-14T19:28:38.966502 | 2021-01-10T07:56:10 | 2021-01-10T07:56:10 | 320,287,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # S = "B"
# T = "ABBA"
# S = "AB"
# T = "ABB"
'''
조건1 문자열의 뒤에 A를 추가한다.
조건2 문자열을 뒤집고 뒤에 B를 추가한다.
S -> T를 확인하기 위해 T -> S로 변경가능한지 check!
'''
S = list(input())
T = list(input())
while True:
if len(S) == len(T):
break
if T[-1] == 'A':
T.pop()
else:
T.pop()
T = T[::-1]
if S =... | [
"gyyoon4u@naver.com"
] | gyyoon4u@naver.com |
513441ca0605b94e533042b091aea4e190179b11 | 23a0130020e00bf09dbf9e158460ed3534adddba | /Main.py | 155f306f28acf1e00c4b54d05604fb7743806502 | [] | no_license | Smikhalcv/diplom_adpy-10 | f6923e1e6ad3c99faa0eba294050448affca5737 | 072a69b95e821c2804966fc21f6214f274573206 | refs/heads/master | 2022-10-14T16:59:43.901261 | 2020-06-11T22:02:16 | 2020-06-11T22:02:16 | 260,189,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | from User.get_token import Token
from User.user_id import id_user
from search_peoples import Search
from mongo_db import Mongo_DB
from executor import get_result
if __name__ in '__main__':
database = Mongo_DB('VKinder')
database.create_db()
token = Token()
access_token = token.read_token()
user_id ... | [
"Smikhalcv@yandex.ru"
] | Smikhalcv@yandex.ru |
83b3e4bcdfc43752af6d8f242b0fa5cb0721728f | ee47996afcf6c6d24774146b5ee030403dc01eea | /projetoBD/projetoBD/cicloponto/urls.py | 51bad5ba228c224ef60c0f76cd4237011e1a75ac | [] | no_license | BikeTour/BikeTour | 02b6c6d8026d999e088fdd40607529ce6c117ab7 | 84ffdedc7fa0e5d1331c0b3083d4f615aa742543 | refs/heads/master | 2016-08-06T21:51:23.859568 | 2015-02-05T21:56:43 | 2015-02-05T21:56:43 | 30,365,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from django.conf.urls import patterns, include, url
from cicloponto import views
urlpatterns = patterns('',
url(r'^$', views.view_index, name='index'),
)
| [
"ahbfl@cin.ufpe.br"
] | ahbfl@cin.ufpe.br |
3e44e5700649b0d92d4a9f923381038bd4e3afd6 | c404e62ccf7e05aa9ac11966d7577636d6b15b7e | /main/views.py | 49e298b161609fbaf92a8e025dfa534e37cc6c05 | [] | no_license | aafrolov/taskmanager | ac733998e70412efcb0d70a5ef12b1b197f952ac | 2c4df0b61512e9a0937e79e41453bdeb7fe4e0b5 | refs/heads/master | 2022-11-28T11:23:00.492927 | 2020-08-04T05:45:16 | 2020-08-04T05:45:16 | 284,758,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | from django.shortcuts import render
from .models import Task
# Create your views here.
def index(request):
tasks = Task.objects.all()
return render(request, 'main/index.html', {'title': 'Главная страниыца сайта', 'tasks': tasks})
def about(request):
return render(request, 'main/about.html')
| [
"fatboy911@yandex.ru"
] | fatboy911@yandex.ru |
d82c30ed6377642abf460cd06aaa5f18b1a2ab09 | 120eb56bc85c0e1db022214f2e0c324ff9ecf878 | /com/lorry/nlp/seq2seq/model.py | d8d79d602e78f626673c3f897f0d72bb5a37f939 | [] | no_license | lorrywu/learning_mine | 4dd7ef0c3183ca71c7e1d1adde60d4bcff42d327 | 68e5d78f1f85cbcea6a9067b3684bfcab6cce814 | refs/heads/master | 2021-05-05T11:01:09.342558 | 2018-01-30T07:10:38 | 2018-01-30T07:10:38 | 118,102,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,989 | py | #coding:utf-8
import torch
import torch.nn as nn
from torch.autograd import Variable
from torch import optim
import torch.nn.functional as F
import util
use_cuda = torch.cuda.is_available() # 如果您的计算机支持cuda,则优先在cuda下运行
class EncoderRNN(nn.Module):
def __init__(self, input_size, hidden_size, n_layers = 1):
... | [
"ruihong0417@qq.com"
] | ruihong0417@qq.com |
037013d19617f9b02b3337331e13de4e9cdcd676 | ab0468dc2bf238f5b9c8a48792e27703dfe2a1bb | /tests/test_core.py | 0dfcc9a6bd72cc2e69d959f304b196a88c3fcd8f | [
"MIT"
] | permissive | man-c/coinmetrics | a42a5d832a6e7fe02af2e3ff7764466c07ff82eb | 9e95b65142d13783f36fb40e48553bcf1a5dfcdf | refs/heads/master | 2021-08-17T21:18:31.161667 | 2018-11-15T01:29:56 | 2018-11-15T01:29:56 | 145,102,046 | 6 | 0 | MIT | 2018-08-31T11:53:28 | 2018-08-17T09:38:30 | Python | UTF-8 | Python | false | false | 6,524 | py | import pytest
import responses
import unittest
import unittest.mock as mock
from coinmetrics import CoinMetricsAPI
from requests.exceptions import HTTPError
class TestWrapper(unittest.TestCase):
@responses.activate
def test_failed_get_supported_assets(self):
# Arrange
responses.add(responses.... | [
"panos@blocktopus.io"
] | panos@blocktopus.io |
e2c158e3f656f285c4a43b5659535cac960cdcc0 | a8a9c8225a339cc697b3df5be0a845b0d2deaadd | /GUI/text8.py | 636a412415e1901e4581c2446ced339b581a5af6 | [] | no_license | caozhengbo/Python-project | c0eb4d305ab42e7b2d35007f75b2402a865b0e7c | 01322f307d8b75973f21fc76de0b8c80306598da | refs/heads/master | 2023-01-20T06:37:14.525449 | 2020-11-29T00:44:20 | 2020-11-29T00:44:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | import tkinter #使用Tkinter前需要先导入
# 实例化object,建立窗口window
window = tkinter.Tk()
# 给窗口的可视化起名字
window.title('My Window')
# 设定窗口的大小(长 * 宽)
window.geometry('500x300') # 这里的乘是小x
# 在图形界面上创建一个标签label用以显示并放置
label = tkinter.Label(window,
bg='green',
fg='white',
... | [
"63592056+kiloGrand@users.noreply.github.com"
] | 63592056+kiloGrand@users.noreply.github.com |
d43fe161415a8d6d8f309c1223eb5b97daa4d53c | 7329206bf4ba983f14c6f9d954404dc15c29d170 | /dist/game/data/scripts/village_master/orc_occupation_change_1/__init__.py | 121a51cec57a201da5b4665848cc98dd9f466d9d | [] | no_license | polis77/polis_datapack_h5 | 4d5335a5ecf5f1f7aee6379256416cd4919cb6bb | d262c5c8baaf5748cbbcdb12857e38508a524ef0 | refs/heads/master | 2021-01-23T21:53:33.264509 | 2017-02-25T07:52:12 | 2017-02-25T07:52:12 | 83,112,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,444 | py | # Created by DrLecter, based on DraX' scripts,
# this script is part of the L2J Official Datapack Project
# Visit us at http://www.l2jdp.com/
# See readme-dp.txt and gpl.txt for license and distribution details
# Let us know if you did not receive a copy of such files.
import sys
from com.polis.gameserver.model.quest ... | [
"policelazo@gmail.com"
] | policelazo@gmail.com |
57fa1e216a94e99f84020ecf330b30deb570d9e2 | a8a0bd398a10d0113fc35b21afb3a17984db3ab7 | /gmaps_vis/damage_plotter.py | 5790629c3df05673db61cdef221130c3d759cce2 | [] | no_license | abhijit-15/visualization | 1ee04156d17580616bc5426aa78f3b156569f1fc | a2107f7333a18684aa2f660fc411d73b59c55a7f | refs/heads/master | 2021-06-14T12:23:25.141353 | 2017-04-30T09:47:47 | 2017-04-30T09:47:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,549 | py | #Author : Abhijeet Phatak
import os
import csv
from tkinter import *
from collections import defaultdict
legend_x = ['black','dark blue','green','sky blue','yellow','red','pink','orange','pale green','maroon','navy','brown','gold','lavender','white']
legend_y = ['"#000000"','"#0000FF"','"#008000"','"#00BFFF"',... | [
"noreply@github.com"
] | noreply@github.com |
a3b844220c56a60eec21ae2867a91eaa3735a7fc | d588eee4ee1c9b99d07d7c79ff011318136283cd | /manage.py | 171a48dbbf23a6ffce598f974c956f1e62952c30 | [] | no_license | YusukeYoshihiro/task_app_api | 8d1150ac7e86a9331c9f3fe78b77fb1b4abaaac1 | 949abb89880b380ef4c4c2ad1091b72c2da81593 | refs/heads/master | 2023-06-02T19:51:25.718179 | 2021-06-18T00:51:46 | 2021-06-18T00:51:46 | 356,664,704 | 0 | 0 | null | 2021-06-18T00:51:47 | 2021-04-10T18:33:56 | Python | UTF-8 | Python | false | false | 680 | py | #!/usr/bin/env python
# modified
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'task_app_api.settings')
try:
from django.core.management import execute_from_command_lin... | [
"yusuke.10.25.61@gmail,com"
] | yusuke.10.25.61@gmail,com |
4bb05b091867737e9ecaec70c098f12cf3a01a8a | 9da0e040c87ca42a0407061e914067c59b959096 | /rich/text.py | 394fc494bc5a967ebe4347553e5af92fb75da82c | [
"MIT"
] | permissive | 4thel00z/rich | dc52d1068f23dab347932c4fabcde637379fa742 | 54b7e3c88108a14c9ac327a01728c279d70d9c54 | refs/heads/master | 2022-07-18T12:36:50.920553 | 2020-05-17T13:52:48 | 2020-05-17T13:52:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,112 | py | import re
from operator import itemgetter
from typing import (
TYPE_CHECKING,
Any,
Dict,
Iterable,
List,
NamedTuple,
Optional,
Tuple,
Union,
cast,
)
from typing_extensions import Literal
from ._emoji_replace import _emoji_replace
from ._loop import loop_first_last, loop_last
fr... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
e7178ef5f52a5a03256d57812f66c73025d02733 | d03578a5a3210c7b5e9f9e279f27a5a579b42ebe | /question44-best-time-to-buy-and-sell-stock.py | 4d9784aed12c5dcd8e27c8e9e7956cd0e7d203f7 | [] | no_license | prakash079/200leetcodequestions | e713140823d6508a99a53706bd44fe528f110ed9 | 1cbcca7091ad563185bffb7671ded4de0e007ee6 | refs/heads/master | 2022-12-21T20:19:29.620630 | 2020-10-04T20:20:07 | 2020-10-04T20:20:07 | 286,579,887 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #question-link=https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
________________________+++++++++++++++++++++++________________+++++++++++++++_____________________+++++++++++++++++
#solution
class Solution:
def maxProfit(self, prices: List[int]) -> int:
priceLen = len(prices)
... | [
"noreply@github.com"
] | noreply@github.com |
934b5a5e49c6aeef30d24a8aee92d6700168a332 | bfbd620258c4e1abfede49b9aa932fafbc406ab8 | /run.py | 61026d672d674b4fb75faac898d6fe17b25f5018 | [
"MIT"
] | permissive | Tina-otoge/KeysManiac | 6868b25d7fbc4d14b949fd819c837bf15ebf28ff | b51f6c4a2e741425ff0be75c7348bf359df13b64 | refs/heads/master | 2023-07-22T03:53:57.101634 | 2020-02-09T17:02:45 | 2020-02-09T17:02:45 | 215,703,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from pyglet.app import run
from keysmaniac.game import Game
from keysmaniac.scenes import PlayScene
from keysmaniac.scene import Scene
from songs.twinkle.tutorial import package
class DummyScene(Scene):
pass
game = Game()
game.scene = DummyScene()
game.scene.context['song'] = package
game.load_scene(PlayScene)
r... | [
"skielred@gmail.com"
] | skielred@gmail.com |
5ce1fd94a18c7948a5b5ea5f5d877dfb6fd03398 | 7c0498701d7b290b2885c09e5ae470231c3ab649 | /SpatialNavBackend/training/views.py | b68daf51adc1cf07c3b42d32a0dce65c44fb3969 | [] | no_license | laurenschee/SpatialNavBackend | 6d02ffa62d37674fabc93013ed3aac31d8077df3 | 1210a92f9a7d6d3985263f18201d132e1d4ea94b | refs/heads/master | 2021-08-31T01:57:42.082296 | 2017-12-20T05:32:04 | 2017-12-20T05:32:04 | 112,361,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from .models import Slide
# Create your views here.
def training_home(request):
slide = Slide.objects.first()
city = slide.get_city()
context = {
'slide': slide,
'city': city,
}
re... | [
"lauren@magniware.ca"
] | lauren@magniware.ca |
6b014248f5dc76503225fc18bf7655e4b95e1d3e | 7a5ae489523cd6127b0df9cae4789384a0799297 | /python/histogram.py | fc510622eb29db271e6ab65f7bbfc6fb9beca3a9 | [] | no_license | iracigt/gr-kc2qol | f47e1c4076ed632b1fb6de76d290aa38c53bfd7e | 0f41d3bb24b6b3730e89b6df5c041eed793fd6ac | refs/heads/master | 2021-07-03T14:25:10.698160 | 2020-04-04T22:28:40 | 2020-04-04T22:28:40 | 140,978,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2018 Grant Iraci.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This softwa... | [
"grantira@buffalo.edu"
] | grantira@buffalo.edu |
4a5645b058dedbb212ed6113473af30b4eb7d48f | e64ec24eed5f1c82017b2a4fbb5827b57e84977a | /talentmap_api/available_tandem/urls/available_tandem.py | c55f6f554a09c0f129b1592abfa41da80e43fc12 | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | MetaPhase-Consulting/State-TalentMAP-API | b7b07f36a20357fd8fb65b7c9adad4947509baf2 | 95735dfb3960e219fbb11337d8b8e9bac7a451a4 | refs/heads/dev | 2023-08-19T02:50:12.414838 | 2023-08-16T12:49:47 | 2023-08-16T12:49:47 | 153,376,898 | 8 | 1 | NOASSERTION | 2023-09-14T04:06:12 | 2018-10-17T01:22:57 | Python | UTF-8 | Python | false | false | 685 | py | from django.conf.urls import url
from rest_framework import routers
from talentmap_api.available_tandem.views import available_tandem as views
router = routers.SimpleRouter()
urlpatterns = [
url(r'^favorites/export/$', views.FavoritesTandemCSVView.as_view(), name='export-all-tandem-favorites'),
url(r'^favori... | [
"scott.m.burdick@gmail.com"
] | scott.m.burdick@gmail.com |
2592d28fb5f3680d1324df3073feaa1e5934d16e | 960b3a17a4011264a001304e64bfb76d669b8ac5 | /mstrio/utils/formjson.py | 1a7443b172fcf930301b16b20e88b803adfcb11c | [
"Apache-2.0"
] | permissive | MicroStrategy/mstrio-py | 012d55df782a56dab3a32e0217b9cbfd0b59b8dd | c6cea33b15bcd876ded4de25138b3f5e5165cd6d | refs/heads/master | 2023-08-08T17:12:07.714614 | 2023-08-03T12:30:11 | 2023-08-03T12:30:11 | 138,627,591 | 84 | 60 | Apache-2.0 | 2023-07-31T06:43:33 | 2018-06-25T17:23:55 | Python | UTF-8 | Python | false | false | 2,139 | py | def _map_data_type(datatype):
if datatype == 'object':
return "STRING"
elif datatype in ['int64', 'int32']:
return "INTEGER"
elif datatype in ['float64', 'float32']:
return "DOUBLE"
elif datatype == 'bool':
return "BOOL"
elif datatype == 'datetime64[ns]':
retu... | [
"noreply@github.com"
] | noreply@github.com |
bfe345ce14c4723ae817adad5a25dfa732f0e79d | fedb94ddf52f56e00ac1c615d9122480153aeddb | /nsqrPy/cmdr/commands/cmdClipboard.py | f163eefadb4d600a5641c0d0f7dcba0bb81c13ad | [] | no_license | insequor/nsqrCommander | 9ac66ec53fb14e024b72dacfc70d5832a22b21aa | 19b17113e310933b90400cccb0e4c7591e3a3d7a | refs/heads/master | 2021-01-01T06:18:39.075889 | 2014-01-04T21:32:30 | 2014-01-04T21:32:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,795 | py | #=============================================================================
#=== Ozgur Aydin Yuksel, 2007 (c)
#=============================================================================
#=============================================================================
#=== CONFIGURATION PARAMETERS
#================... | [
"ozgur@insequor.com"
] | ozgur@insequor.com |
8079e7c0070fb7f2259f0841bdbfdf4061c16d82 | 08bfc8a1f8e44adc624d1f1c6250a3d9635f99de | /SDKs/swig/Examples/test-suite/python/overload_numeric_runme.py | 5c80fb9fa3daff4ae841ab619589410a4f917df7 | [] | no_license | Personwithhat/CE_SDKs | cd998a2181fcbc9e3de8c58c7cc7b2156ca21d02 | 7afbd2f7767c9c5e95912a1af42b37c24d57f0d4 | refs/heads/master | 2020-04-09T22:14:56.917176 | 2019-07-04T00:19:11 | 2019-07-04T00:19:11 | 160,623,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d59bc759f2c6bc1cca8b0a8bc70aca5b1e64ce1a52153ed569bfe234315d4512
size 1317
| [
"personwithhats2@Gmail.com"
] | personwithhats2@Gmail.com |
194572b805dd1fe506078e1e26aed8e7dd30142e | b3c1c9e5e195760150449c212f26aab5c55ffcbb | /.leetcode/3.无重复字符的最长子串.py | f43b35d313a7619c5a753a9588d4656e71f66d35 | [] | no_license | chenmingjian/did_chenmingjian_coding_today | 65a44cd342112132d895854dddd146af140cfa60 | 083d8434350661cc681976af3d30632b2e52d9c1 | refs/heads/master | 2021-08-17T17:31:37.511016 | 2020-07-23T03:29:32 | 2020-07-23T03:29:32 | 206,304,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | #
# @lc app=leetcode.cn id=3 lang=python3
#
# [3] 无重复字符的最长子串
#
# @lc code=start
import collections
class Solution:
def lengthOfLongestSubstring(self, s: str) -> int:
i = 0
ans = []
a = collections.OrderedDict()
for index, c in enumerate(s):
if c in a:
ans... | [
"chen@chenmingjian.com"
] | chen@chenmingjian.com |
6a6472d218919c251680fcc9003abd61cac4570a | 5f06dc5ac93157985d49c4156cf7db468e851aee | /Final-Project/code/task2_seq2seq/Alphabet.py | b669c648bff5f0acf7424c7b56aa7d6d3bafbb64 | [] | no_license | Guardianzc/Projects-of-Neural-Network-and-Deep-Learning-DATA130011.01 | 16cc4dd77eb65c08c0152dec8cbe00f6ecfd3819 | 9a5c3bc3671f9af12f5007f701e757849444bdcd | refs/heads/master | 2021-05-24T16:49:36.847471 | 2021-04-20T04:42:38 | 2021-04-20T04:42:38 | 253,659,448 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,345 | py | import torch
class Alphabet(object):
def __init__(self, filelist, store = False, load = False):
self.alphabet = {}
self.index = []
if load:
with open('Alphabet.txt','r') as f:
textline = f.readlines()
for texts in textline:
... | [
"noreply@github.com"
] | noreply@github.com |
583d4e23b65f984ba202876acb1201c70362d1e4 | d7d53826ab804a3d0f229b0a189f2626d4ebe99b | /platforms/renren/tests/__init__.py | 80a2fd3dcd7289818ac37ae1ad56d06bdbb697e4 | [] | no_license | zbcbcbc/xiaomaifeng | 6e299e7f1d13dbca95af7a1e46d66dd0d1c86b08 | 91b7da9404678227d3c2c4a446777be6dacdedb7 | refs/heads/master | 2020-12-02T16:58:26.661967 | 2016-09-04T17:53:51 | 2016-09-04T17:53:51 | 67,359,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | from platforms.renren.tests.models import * | [
"viczhang1990@gmail.com"
] | viczhang1990@gmail.com |
28411f7a486a3d0405a5bd4f5704e6e12c4bfcf5 | 93f36c1c6097691de7bc2be43f8c714a4736f8be | /test/test_history.py | 07621ddb124ed0517c259826b29f09e659d604d5 | [] | no_license | subscreasy/subscreasy-python-client | 28e5e54f6714af6081343a0550a3591d76ba7423 | f74e572226bdd381f987b95954ceefacc7fb2b07 | refs/heads/master | 2020-03-18T22:36:53.227457 | 2018-05-30T09:11:24 | 2018-05-30T09:11:24 | 135,354,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | # coding: utf-8
"""
Api Documentation
Api Documentation # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.com.kodfarki.subscreasy.client... | [
"halil.karakose@kodfarki.com"
] | halil.karakose@kodfarki.com |
c6e7a41f411c28428cdffda9d8489491dfb15727 | cce6364dd85b62782671cd8048873eede2045137 | /primary/3_isPalindrome.py | 499cab542bacb21c2fb831b1a52c66aa1c3dc427 | [] | no_license | gmt710/leetcode_python | ed647958440f66583b8717dae7bca49c516984da | 441623afee3713506b702c5fd462c7ba84b48442 | refs/heads/master | 2020-03-28T05:11:02.851792 | 2019-04-17T09:14:51 | 2019-04-17T09:14:51 | 147,761,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def isPalindrome(self, head):
"""
:type head: ListNode
:rtype: bool
"""
q = []
while(head):
... | [
"noreply@github.com"
] | noreply@github.com |
6f016c6e14ba1db84b10f1cf9cd07f3a5fa4dfff | 41dca7a1a0b7f8bfdba1eb916337528e41808309 | /twittertimes/__init__.py | 3c6d62e82b59f4d72e657d6fbd39277747da902d | [] | no_license | dergraf/gae-twittertimes | 163660a4d7dd0f4dbd4ced45512882ac1c1565a5 | 887739f4e9a9b7823d920728d0bf1d0c097307e9 | refs/heads/master | 2021-01-01T16:39:49.167505 | 2013-06-12T09:36:03 | 2013-06-12T09:36:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from flask import Flask
import settings
app = Flask('app')
app.config.from_object('twittertimes.settings')
import views
| [
"andre@dergraf.org"
] | andre@dergraf.org |
957513c686964b7b5491fe8b44a631eed3ccb544 | dbd3a1b28b6c3eb39773c8c98cc37769946fecee | /compbio-notebook/test/test_bio/test_pybedtools.py | 60f1a28dd6e8851870cb52d76ea1fa0c69327113 | [
"BSD-3-Clause"
] | permissive | lukauskas/compbio-notebook | 69933c27dadf0ec9ac0ddff836c8a82b1ae16e8b | 8b6f689c415b12b314edabae5d0a9ef7d9bc1153 | refs/heads/main | 2023-04-02T20:22:34.910776 | 2021-04-06T15:28:31 | 2021-04-06T15:28:31 | 316,163,743 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | import logging
import pytest
LOGGER = logging.getLogger(__name__)
@pytest.mark.parametrize(
"name,command_list",
[
(
"Sort bedfile",
[
"import pandas as pd",
"import pybedtools"
"x = pd.DataFrame([['chr10', 123, 235], ['chr1', 1... | [
"saulius.lukauskas@helmholtz-muenchen.de"
] | saulius.lukauskas@helmholtz-muenchen.de |
282c2999d64bf92c8642ee70a7b90770ea2bcee0 | e657045f0fb2339927ab12a4a8e48e979181c762 | /flockHistorySaver.py | 08eb790c32874435890ded64301db4706f64f40c | [] | no_license | bhavul/Flock-History-Extractor | b1e2efff10661e21621e27577a547cb969e2d379 | b566cc981653eb4278cf1678e0ae810ba1b2a7af | refs/heads/master | 2021-01-20T09:55:20.751823 | 2017-05-04T19:56:52 | 2017-05-04T19:56:52 | 90,303,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,229 | py | from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdri... | [
"bhavul.g@endurance.com"
] | bhavul.g@endurance.com |
931602884d1cb512161cc9ce477f276bbb8c1cfa | 981f1a81ba19baa36bcb109d55ee8e7520fe5aca | /Orm_test.py | 4ae2a3d305124b2e735345ed8a1505038ff06f51 | [] | no_license | Pythondeveloper6/Library-System-Python-PyQt5 | 6f1a43bdeae0d4689ed5da1f6710e7211dae52fd | 28971eb5232d2f42de12fb396abacda12b4d3c65 | refs/heads/master | 2020-09-15T09:41:34.853547 | 2020-07-01T18:30:15 | 2020-07-01T18:30:15 | 223,413,327 | 24 | 14 | null | 2019-12-22T12:21:16 | 2019-11-22T13:48:48 | Python | UTF-8 | Python | false | false | 621 | py | from peewee import *
# db = SqliteDatabase('people.db')
# Connect to a MySQL database on network.
db = MySQLDatabase('myapp', user='root', password='toor',
host='localhost', port=3306)
class Person(Model):
name = CharField()
birthday = DateField()
class Meta:
database = ... | [
"pythondeveloper6@gmail.com"
] | pythondeveloper6@gmail.com |
52dc9f72f90aadecf4f042df48c23a69397710f6 | bc06161fc2a7ac28931042a9e503a276c003870c | /mysite/country_sites/migrations/0002_auto_20200322_1529.py | dc50142c7660442be65e4199df6bbc440a1385c2 | [] | no_license | ilineserg/django_indeed | ac324ee886509b10b119f528ab0c1c0ed809ac25 | 911380593b0068bbe6fd7ac33d8086f180557f4d | refs/heads/master | 2021-02-10T03:31:56.939497 | 2020-04-02T08:34:46 | 2020-04-02T08:34:46 | 244,348,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # Generated by Django 3.0.3 on 2020-03-22 15:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('country_sites', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='indeedcountrysites',
name='states... | [
"ilineserg@gmail.com"
] | ilineserg@gmail.com |
be8b0bdb9949d3fba833d14501f7f11ea578b1dc | a1a815c695f9aec7592a0e5cc3d88a801126e75c | /migrations/versions/5ab07360b2ae_initial_migration.py | b154c3c287a9179af06c778247a2d79aca4d6843 | [
"MIT"
] | permissive | Glutexo/donors_registry | 89eec094f3f09cb2066a37a81e4ac88ce52d7537 | 276f91e26c730fd507fa9cd136eab02cb30d8e1b | refs/heads/master | 2023-04-19T00:19:20.434158 | 2020-11-01T11:00:09 | 2020-11-01T15:36:06 | 291,071,207 | 0 | 0 | null | 2020-08-28T14:45:57 | 2020-08-28T14:45:56 | null | UTF-8 | Python | false | false | 981 | py | """Initial migration
Revision ID: 5ab07360b2ae
Revises:
Create Date: 2020-08-28 12:22:12.017566
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "5ab07360b2ae"
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto g... | [
"lbalhar@redhat.com"
] | lbalhar@redhat.com |
8133535963d532e868eb52ba6d62ed1a78ed14d0 | 98792f67db98921c885c080fd4be22be30120a7e | /Examples/LogisticRegression/mllib_accel/examples/LogisticRegressionApp.py | 5a61d148fbdccc41de5688d2ee8fd0e1688e5e99 | [
"Apache-2.0"
] | permissive | vineyard2020/SPynq | fb598ab98eddcaf49f5954b12e72d6901d0422cf | 8c1c1379c150042def06412cc081582f1a5edaa9 | refs/heads/master | 2021-01-23T00:05:59.336836 | 2017-06-03T13:26:25 | 2017-06-03T13:26:25 | 85,693,129 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,869 | py | from pyspark import SparkContext
from pyspark.mllib_accel.classification import LogisticRegression
from sys import argv
if __name__ == "__main__":
if len(argv) != 8:
print("Usage: LogisticRegressionApp <train_file> <chunkSize> <alpha> <iterations> <test_file> <numPartitions> <accel>")
exit(-1)... | [
"jgstamelos@gmail.com"
] | jgstamelos@gmail.com |
8832c88ca4bb5f837452cf863b70cae242b5a968 | 7bab40b1673af39934f73f0ab8d51c7466b8524c | /寻找两个有序数组的中位数.py | c1b734ce7e9e1e7082c6dd32b728dfeeb9c7af8a | [] | no_license | wshzd/Interview | 53134f4f4f2f7347548927e8648c99e5651d584d | 2fda1086a1b6c262b7272dbef0abe905caf91395 | refs/heads/master | 2023-05-08T00:20:54.602868 | 2021-05-28T04:06:16 | 2021-05-28T04:06:16 | 261,673,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | 题目:寻找两个有序数组的中位数
def median(A, B):
m, n = len(A), len(B)
if m > n:
A, B, m, n = B, A, n, m
if n == 0:
raise ValueError
imin, imax, half_len = 0, m, (m + n + 1) / 2
while imin <= imax:
i = (imin + imax) / 2
j = half_len - i
if i < m and B[j-1] > A[i]:
... | [
"noreply@github.com"
] | noreply@github.com |
1136c6923f5b46ab2360eb4494b1157796fcccb7 | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/views/mgr/model_edit/gacha_header.py | 2db815f7f6f2334c265f0fe81fb7afe0a57ec6a9 | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | # -*- coding: utf-8 -*-
from platinumegg.app.cabaret.views.mgr.model_edit import AdminModelEditHandler,\
AppModelForm, ModelEditValidError, AppModelChoiceField
from defines import Defines
from platinumegg.app.cabaret.models.Gacha import GachaHeaderMaster, GachaMaster
class Handler(AdminModelEditHandler):
"""マ... | [
"shangye@mail.com"
] | shangye@mail.com |
f76fbcf1174c3d892accc6c96e63fe8fe84fbb0e | d2e9c5036de01dcecf219e712a34776a84fb6d29 | /yelingling/huarun/apps.py | e15c88c68746acf8135fc442bbaa8eada6d697c9 | [] | no_license | yelmos/huarun | 09d24f98db11c9fdd582a15d0e48c41955226763 | 5148fb1de4ef125c9cea9ffe8f5140c9dca1a4d3 | refs/heads/master | 2020-04-03T08:27:08.055570 | 2018-10-31T08:01:01 | 2018-10-31T08:01:01 | 155,133,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class HuarunConfig(AppConfig):
name = 'huarun'
| [
"3224685430@qq.com"
] | 3224685430@qq.com |
4e9fdcd6864c529f610a85c427cfadcb547a94d9 | e3c760d172e297cc47e0fd440e7bcf6e37bbba0e | /user_agent_demo/spiders/httpbin.py | cf71f6bb937af0950dae211f84ec45dd9626500b | [] | no_license | spannycheng/user_agent_demo | 27d62a24917a5ec7988a87896d2ec256da7ba9f0 | be7e9d60546f33d192401d4a46f4e4a91e9cd596 | refs/heads/master | 2020-12-20T03:05:10.868080 | 2020-01-24T05:01:48 | 2020-01-24T05:01:48 | 235,942,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # -*- coding: utf-8 -*-
import scrapy
import json
class HttpbinSpider(scrapy.Spider):
name = 'httpbin'
allowed_domains = ['httpbin.org']
start_urls = ['http://httpbin.org/user-agent']
def parse(self, response):
user_agent = json.loads(response.text)['user-agent']
print("="*50)
... | [
"spanny@163.com"
] | spanny@163.com |
b8cf99fd81f6f1f3561ab0404d60fff2ef8eb97e | 6e5b84a8cd56213d538dd60cfedf349b2d225dd6 | /superlists/settings.py | fde87ed8cb095addc0e10bcd891c6cbea47e0069 | [] | no_license | jonabadie/superlists | 01c156617d05dd735d6a6bab5060385b96355398 | f5b321cf338503b7adc30c4b878f6baaf36293ec | refs/heads/master | 2023-01-31T17:28:24.342594 | 2020-12-13T13:54:41 | 2020-12-13T13:54:41 | 319,378,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,231 | py | """
Django settings for superlists project.
Generated by 'django-admin startproject' using Django 3.1.4.
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 path... | [
"abadiejoni@hotmail.fr"
] | abadiejoni@hotmail.fr |
4794b8286baeb292c78ac16c7f2490c4d2a36e08 | 81d933d44ca96028ca433d725e3a7b7c8179633b | /TSR/preprocessing/cnn1.py | 42394b763e01f61861c42e33685f289a2a58c80f | [] | no_license | MM803-TSR/Traffic-Sign-Recognition | a87ea60d72c4a66567e9f51f75bc178127bfe86b | 86eedc67c600e3063a2c1293af01dc4ee847d392 | refs/heads/master | 2020-03-31T11:09:10.459958 | 2018-12-17T14:24:20 | 2018-12-17T14:24:20 | 152,165,100 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,416 | py | import numpy as np
import os
import glob
import h5py
import pickle
import cv2
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential, model_from_json
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Conv2D
from keras.layers.po... | [
"9inecats@gmail.com"
] | 9inecats@gmail.com |
8d11cbc6dd0035bf24777ebc7c1664a25e47373c | 13a0f6ceab50c6f3863aca193b1ef177910a3004 | /DynamoDB/DeleteMovieData.py | 4f2395c35e9563b7e42f429482bd571d3dbff2c1 | [
"MIT"
] | permissive | rehanabdul/AWS_Generics | 374521ce9ca5e0ea96927d3f05755676f3d27866 | 6a98cbfaa6949908aaacd91eae005b4e2d693328 | refs/heads/main | 2023-05-17T11:26:54.136530 | 2021-06-12T13:48:57 | 2021-06-12T13:48:57 | 376,293,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | from decimal import Decimal
from pprint import pprint
import boto3
from botocore.exceptions import ClientError
def delete_underrated_movie(title, year, rating, dynamodb=None):
if not dynamodb:
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('Movies')
try:
response = table.de... | [
"klickrehan@gmail.com"
] | klickrehan@gmail.com |
46d48d296da9cdaf46d0434fe4793994fd31ad1d | 452bd2a3b025db0c8c42922db61d8ab84188bfa4 | /train.py | b6b29596ea5ac746cb26c8ce95c8ba74fbd1787d | [] | no_license | arianhosseini/point-and-sort | a6b5498c723466a8c138cf9040e6858789ade41b | 15eace431b7f3c2d466ea7c722e56722db96a09b | refs/heads/master | 2021-01-13T09:42:27.113050 | 2016-11-07T13:44:17 | 2016-11-07T13:44:17 | 72,909,269 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,904 | py | #!/usr/bin/env python
import logging
import numpy
import sys
import os
import importlib
import theano
from theano import tensor
from blocks.extensions import Printing, SimpleExtension, FinishAfter, ProgressBar
from blocks.extensions.monitoring import DataStreamMonitoring, TrainingDataMonitoring
from blocks.graph impo... | [
"arian.ah@hotmail.com"
] | arian.ah@hotmail.com |
886cc2c5fcddba65dc70c85d5cb0c261518b81e4 | 9340fdb7250d6466899f238fe5fc33b91b062f34 | /backend/newwork_1986/settings.py | 529c88bcd24aa0bc0340cba58609104e7722128b | [] | no_license | crowdbotics-apps/newwork-1986 | 09b600d13fcff79afef424d120dfec6944715265 | d000f09ac7384fe83e04c64028cda1e0ef9aa033 | refs/heads/master | 2022-12-15T07:50:34.384076 | 2019-04-05T17:35:53 | 2019-04-05T17:35:53 | 179,727,307 | 0 | 0 | null | 2022-12-06T15:22:15 | 2019-04-05T17:35:50 | JavaScript | UTF-8 | Python | false | false | 4,740 | py | """
Django settings for newwork_1986 project.
Generated by 'django-admin startproject' using Django 1.11.16.
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/
"""
imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d0b5f552bc141ba07cc218e99d6a1ddf3b30256a | c79d5796cf7c5f178b1af3d182a2a68f7688a40a | /Models/License-Plate-Recognition-Nigerian-vehicles-master/License-Plate-Recognition-Nigerian-vehicles-master/ml_code/model_comparison2.py | 10ce53a715c9e09a7b021d05080bd75d68a06d6c | [
"MIT"
] | permissive | lancelot1337/AutoGuard | 755d6a44bfe1d72609545b27de19994f3964e582 | 25399832b15e4033472f7d0598f66d2692520849 | refs/heads/master | 2022-12-12T22:27:55.252488 | 2021-08-11T07:59:48 | 2021-08-11T07:59:48 | 174,671,166 | 1 | 2 | MIT | 2022-12-09T15:16:00 | 2019-03-09T09:00:57 | Python | UTF-8 | Python | false | false | 1,528 | py | import numpy as np
from sklearn.svm import SVC
from sklearn.neighbors import KNeighborsClassifier
from ml_config import MachineLearningConfig
from sklearn.cross_validation import cross_val_score
from ml_validation import AccuracyValidation
from sklearn.naive_bayes import GaussianNB
from sklearn.tree import DecisionTree... | [
"nipunjain099@gmail.com"
] | nipunjain099@gmail.com |
0298966e5aa9c6c26add9537f0b3e7ddc4976c3d | 20147a06152ec96eaa334641d9e57540f1233706 | /Python/Sort/QuickSort.py | 0e4eb3108ab58e64cd8ec5b64d7c3f38321d9a73 | [
"MIT"
] | permissive | Eragon5779/CodeForReference | 756b2b787fe64003551cb74efe76fb8e61960255 | e91618c1ef7d119b35b9e1a86d0cfb3bcdc87e8a | refs/heads/master | 2021-01-19T09:26:51.829599 | 2015-11-30T14:59:19 | 2015-11-30T14:59:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | def quicksort (sortablelist):
'''Quick sorts the list must print the list after done sorting'''
output = quicksorthelper(sortablelist, 0, len(sortablelist) - 1)
def quicksorthelper (sortablelist, first, last):
'''Called in a recursive fashion'''
temp = []
if first < last:
middle = partition... | [
"kmh11894@Gru.SGF.EDUBEAR.NET"
] | kmh11894@Gru.SGF.EDUBEAR.NET |
45a5be2694c8826657a581b8bf57df261c5f3e0e | 67926b9ab01ebf53066f365278c67df3e45c920e | /tool/utils.py | 6704adb51ab7b524b3a6655f93dd0850472e94a7 | [] | no_license | li-hoan/face_recognition | 1ec4c362b0bfab0d73820f500f00b8bb1202f664 | e9d22e5c4a4244138048968bfa17bc4030e98f03 | refs/heads/master | 2023-01-24T07:32:27.924278 | 2020-12-07T06:47:58 | 2020-12-07T06:47:58 | 319,215,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,036 | py | import numpy as np
#重叠率
def iou(box, boxes, isMin = False): #1st框,一堆框,inMin(IOU有两种:一个除以最小值,一个除以并集)
#计算面积:[x1,y1,x2,y3]
box_area = (box[2] - box[0]) * (box[3] - box[1]) #原始框的面积
area = (boxes[:, 2] - boxes[:, 0]) * (boxes[:, 3] - boxes[:, 1]) #数组代替循环
#找交集:
xx1 = np.maximum(box[0], boxes[:, 0]) #横坐标... | [
"haha@li.com"
] | haha@li.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.