blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9b78524c9d93e922f28b4de5fbca7329542eac25 | 1a788bf6e897b7c0df1ba62e3fdf7232c144cf5e | /aliyun-python-sdk-cs/aliyunsdkcs/request/v20151215/DescribeClusterNodeInfoWithInstanceRequest.py | f2115a60523894d2c171e6c7bd440f8a4c283188 | [
"Apache-2.0"
] | permissive | GuozhaoWu/aliyun-openapi-python-sdk | e4448aa34c544a2bc594ddd22f0e7f0345d2ff04 | 0efff20e540a375f62bdd4ecd5533eff81c154c8 | refs/heads/master | 2021-01-21T09:02:51.595319 | 2017-08-30T07:56:19 | 2017-08-30T07:56:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
215f2ab820715a286898a34ec88398914b4b833d | 6fac20b656a950cadae1e64b7b67d607e7940cad | /lb_weight.py | 803fc3753c8eaf77ff6d2eb3253dad1937d99b19 | [] | no_license | Best1s/tencent_script | a499e54fbe1b00206f10b8fbb6a2373eb9814e04 | b35236098577869b3d46f25cce13f025a3aceb87 | refs/heads/master | 2023-03-11T00:52:14.154415 | 2021-02-19T08:35:30 | 2021-02-19T08:35:30 | 331,915,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,706 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#argv[1]:LoadBalancerId
#argv[2]:ListenerId
#argv[3]:Targets.0.InstanceId
#argv[4]:Targets.0.Port
#argv[5]:Weight
import sys
import base64
import hashlib
import hmac
import random
import time
import os
import requests
import socket
# get tencentcloud InstanceId
from tencentc... | [
"zhangbin@ppwang.com"
] | zhangbin@ppwang.com |
a485dc30e7230d31630cb45f6e656a840d5a9a93 | 1558786ded08e236187a937357959294da7cb6ba | /18.EM/18.6.GMM_pdf.py | 34ffb6685038ed047ca3494c5426667b5f3afa16 | [] | no_license | highclow/MachineLearning | e522ff4fb6b855b6a8152c8afa8beb78da5105c8 | 60482434de05e78332d82e4289abea0dd68e8c17 | refs/heads/master | 2023-04-09T06:08:23.032303 | 2020-06-08T03:23:50 | 2020-06-08T03:23:50 | 270,513,016 | 0 | 1 | null | 2021-04-26T20:21:47 | 2020-06-08T03:22:47 | Jupyter Notebook | UTF-8 | Python | false | false | 2,709 | py | # !/usr/bin/python
# -*- coding:utf-8 -*-
import numpy as np
from sklearn.mixture import GaussianMixture
import scipy as sp
import matplotlib as mpl
import matplotlib.colors
import matplotlib.pyplot as plt
from matplotlib.patches import Ellipse
import warnings
def expand(a, b, rate=0.05):
d = (b - ... | [
"lu.he@jd.com"
] | lu.he@jd.com |
74b5822b17147284bdd1dcaf4544898227ae0830 | 9ba5fc81b5553cf568adc597180cc695c75eadbc | /app/views.py | 3167e364070d945596f273c2057739b7bf9d65fc | [] | no_license | mahmudgithub/html-css-pactics | 85ab411fc7df877f82a8c27441f1469b7bcc0cf4 | 035723db2e8377004d5e223ee2c6a6f49449920a | refs/heads/master | 2023-02-23T14:46:14.171347 | 2021-01-29T05:42:44 | 2021-01-29T05:42:44 | 332,635,153 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.shortcuts import render
def one(request):
return render(request,'home.html')
| [
"mahmudhossain838@gmail.com"
] | mahmudhossain838@gmail.com |
c118cbaee6f21d1833c8a1cacf802f5e8f5e8db6 | dbbb144cc93f44e0f82b762af3fefe6fe3beb605 | /Chatbotforwip/models.py | 9ed77c7479879a596becd6d32e3a370b0baa7337 | [] | no_license | srijibrockz95/chatbotfor_zlsur | 5f4d9a0807818d85b6ba70a27392fd6b1aab7413 | e97b1522f2124290544450cd3813f592c4ba86c0 | refs/heads/main | 2023-04-19T08:54:43.311293 | 2021-05-12T13:06:47 | 2021-05-12T13:06:47 | 366,716,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,860 | py | from . import db
from sqlalchemy.sql import func
class Login(db.Model):
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
userfname = db.Column(db.String(120), nullable=False)
useremail = db.Column(db.String(120), nullable=False, unique=True)
userid = db.Column(db.String(20), nullable=F... | [
"srijibb5991@gmail.com"
] | srijibb5991@gmail.com |
08c28acaad47d0e0a42968f0f313be2783764ae7 | b793ceedf60fb87902bc005cc18bda0478ead7c7 | /sunrise.py | 957688fe6cf090485430e10317ae58235701988e | [] | no_license | thermalbarker/octocam-timelapse | 35f407bf2afa846ba897d9df663518aefe6b36d6 | 448097de97477914954e9f41d2769469e46da35e | refs/heads/master | 2021-01-01T21:58:45.302985 | 2020-03-29T09:53:07 | 2020-03-29T09:53:07 | 239,359,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,698 | py | #!/usr/bin/python
# Credits here: https://michelanders.blogspot.com/2010/12/calulating-sunrise-and-sunset-in-python.html
from math import cos,sin,acos,asin,tan
from math import degrees as deg, radians as rad
from datetime import date,datetime,time,tzinfo,timedelta
# Nicked from https://docs.python.org/2/library/datet... | [
"thermalbarker@gmail.com"
] | thermalbarker@gmail.com |
459b3b92cf722eddf20d6aac667403bdbfa38dff | 89c878102fa84dfb9d02ed6b7f79199b97035257 | /net/tcp_socket_server.py | 173d6a33347075d139e7c57413e0aae704d7ddb0 | [
"Apache-2.0"
] | permissive | chainren/python-learn | 5d9b4b77c12dfbfc7e9ae805a783576196494309 | 5e48e96c4bb212806b9ae0954fdb368abdcf9ba3 | refs/heads/master | 2022-11-30T13:41:25.993871 | 2020-06-10T13:46:50 | 2020-06-10T13:46:50 | 147,663,348 | 1 | 0 | Apache-2.0 | 2022-11-22T02:58:25 | 2018-09-06T11:26:26 | Python | UTF-8 | Python | false | false | 826 | py | # -- coding: utf-8 --
import socket
import threading
import time
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# 监听端口:
s.bind(('127.0.0.1', 8899))
# 开始监听端口
s.listen(5)
print('Waiting for connection...')
def handler(sock, addr):
print('Accept new connection from %s:%s...' % addr)
sock.send(b'Welcom... | [
"chenrengui@xiangshang360.com"
] | chenrengui@xiangshang360.com |
c8ada1d71f2f47e3580cec80fd31c1e946ed0204 | 6ddf8e93ee13fa92e4bca3d924382d6bd8b55336 | /코테 with Python/그리디/Q.04_만들 수 없는 금액.py | 406718c37eb1628b42388192c390098d19a69559 | [] | no_license | gkcksrbs/Coding_Test_With_Python | 8b5df49240458bdda3e1c4de6eb302052e0a1546 | 234e85a2b55a6c611618fb63a5c18873dd65c90d | refs/heads/master | 2023-02-26T15:29:25.789368 | 2021-02-03T06:08:18 | 2021-02-03T06:08:18 | 291,658,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | # 비효율
# from itertools import combinations
#
# N = int(input())
# coin = list(map(int, input().split()))
# lst = []
#
# for i in range(1, N+1):
# for j in combinations(coin, i):
# lst.append(sum(j))
#
# lst = list(set(lst))
# last = lst[len(lst)-1]
# Min = 0
#
# for i in range(1, last+1):
# if i not in ... | [
"70510732+gkcksrbs@users.noreply.github.com"
] | 70510732+gkcksrbs@users.noreply.github.com |
ecf2c8f7150e201c0a2133d4dc6498ba28c0b1d9 | dff43b744e22d8d5c6e0e597f4a313f4648e77bd | /lcu_connectorpy/__init__.py | 367210b786063f1edbc5b0f7fc72c4c40ad614b3 | [
"MIT"
] | permissive | intendednull/lcu_connectorpy | 57b2bb87e42871f44206a3d607714c7b2212d9e0 | deb1050fe3a3fdc513d63d2ab08ab92bc86ac2f9 | refs/heads/master | 2021-10-28T13:03:38.215911 | 2019-04-23T20:57:07 | 2019-04-23T20:57:07 | 181,576,028 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | from .connect import Connector
__all__ = ['Connector']
| [
"noah@coronasoftware.net"
] | noah@coronasoftware.net |
042003a699472ca85e5f334a84fcf5165eb2ec28 | beebc5ff44407f3f3a4c1463cd09f0917dbe5391 | /pytype/tools/arg_parser.py | cbfe85e340114e4d98881575cac90b2db29b3cb0 | [
"Apache-2.0",
"MIT"
] | permissive | mraarif/pytype | 4f190cb2591896133761295f3d84d80602dffb58 | 546e8b8114c9af54a409985a036398c4f6955677 | refs/heads/master | 2023-01-23T09:48:06.239353 | 2020-12-02T06:08:27 | 2020-12-02T06:08:27 | 303,069,915 | 1 | 0 | NOASSERTION | 2020-12-02T06:08:28 | 2020-10-11T07:53:55 | null | UTF-8 | Python | false | false | 3,677 | py | """Argument parsing for tools that pass args on to pytype_single."""
import argparse
from pytype import config as pytype_config
from pytype import datatypes
from pytype import utils as pytype_utils
def string_to_bool(s):
return s == "True" if s in ("True", "False") else s
def convert_string(s):
s = s.replace(... | [
"rechen@google.com"
] | rechen@google.com |
dbed13deeec7d3532a35f6642b2175ad1adafab0 | 414517f9cda31b307f6221c101c90481cdf6f294 | /testApp/accounts/forms.py | dd3c474402bac357e19086062888c0cd3f68e584 | [] | no_license | jutkarsh079/Django-TestApp | c63443b2d56f6eb7a8654cb8768b73a89c63e224 | 3c46943015baf9f8fca142bfd5c4f6642ddaee5c | refs/heads/master | 2022-10-10T04:33:19.770057 | 2020-06-10T05:49:30 | 2020-06-10T05:49:30 | 271,190,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import get_user_model
class UserCreateform(UserCreationForm):
class Meta:
fields = ("username", "email", "password1", "password2")
model = get_user_model()
def __init__(self, *args, **kwargs):
super().__ini... | [
"jainutkarsh@jains-MacBook-Pro.local"
] | jainutkarsh@jains-MacBook-Pro.local |
8d4d1a9e13927dcd6cc75f4d01265bdd8540bb3f | ee5474632d5a010fb2308c7c21af8aeb91bdb11b | /sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py | 179a022764a7ef306027821175add5d53ee14c24 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | qiang-zai/azure-sdk-for-python | b7ef8b90cee36c2aa92e5acae8152fecda1bab7b | e8ccd8bcbbab43c9b0f2f6323775c80a96cefeb0 | refs/heads/master | 2021-05-21T01:00:13.377148 | 2020-04-02T00:46:38 | 2020-04-02T00:46:38 | 252,476,851 | 1 | 0 | null | 2020-04-02T14:21:42 | 2020-04-02T14:21:42 | null | UTF-8 | Python | false | false | 21,565 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from typing import ( # pylint: disable=unused-import
Union,
Optional,
Any,
List,
Dict,
TYPE_CHECKING
)
from azure.core.tracing.d... | [
"noreply@github.com"
] | qiang-zai.noreply@github.com |
e236794a2ce83281e678cada00bcf18e030c4fb6 | 300e3e1ceec5940adf54a79f678c2a1a9e66aeb4 | /cognitive radio/radio.py | b84a99259a2077c7d38e76ad599a7e3ee69caace | [] | no_license | icopavan/cognitive-radio-3 | ff136c5361146c4c113b68d5cc73a6030786a24f | d3cbb8b60eacab88bdfa05be483d0aee279ec5f4 | refs/heads/master | 2021-01-18T14:58:15.809314 | 2014-05-05T20:13:54 | 2014-05-05T20:13:54 | 33,601,393 | 1 | 0 | null | 2015-04-08T10:57:56 | 2015-04-08T10:57:56 | null | UTF-8 | Python | false | false | 5,263 | py | from __future__ import division
import numpy as np
from rtl import *
from paudio import *
from FSK import *
from QAM import *
from OFDM import *
from syncronization import *
from receiver import *
from fm_demodulator import Demodulator
from helpers import *
# This file tests various parts of my project over an actua... | [
"peragwin@gmail.com"
] | peragwin@gmail.com |
7094a051df48048e91ca612f6c79782f53113d25 | 903c2f1cb06091f8199bf63d74111fe79dac6f8d | /packages&modules/Package2/module_script2.py | 0686bb4eced75b4c7f63e691fa6ee6557e230770 | [] | no_license | praneethpeddi/Python-Assignments | c8b4d8fa58244b033bb4cdf36f55e42b7e7cf6fc | 0a224aeae40a4cc55a5a7259ff2360fc61841abd | refs/heads/master | 2023-01-19T07:58:59.144309 | 2020-11-19T01:46:45 | 2020-11-19T01:46:45 | 299,494,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | try:
import module2
print("In module 2: import success")
module2.c()
print("function c is executed")
module2.d()
print("function d is executed")
except Exception as var:
print(var)
| [
"praneethpeddi1995@gmail.com"
] | praneethpeddi1995@gmail.com |
22998f536894be455f9fc54583b6c4a9508ff0a0 | b74aeebd25b39532b51457a1a1e7bf369a9f7ef2 | /fcdjango/fcdjango_venv/bin/django-admin | 99e65d705c4233d436acc8ab83178ea13b90bc4e | [
"MIT"
] | permissive | djangojeng-e/djangoproejcts | c16bffe98cd9b05805ecaa6cf8c2076155235fc9 | 1efc3bc04a4a1bef039c906584cfecf0231c177f | refs/heads/master | 2022-12-22T03:27:58.695116 | 2020-10-16T00:10:57 | 2020-10-16T00:10:57 | 221,873,289 | 0 | 1 | MIT | 2022-12-19T03:11:29 | 2019-11-15T07:57:41 | Python | UTF-8 | Python | false | false | 324 | #!/home/dkang/documents/dev/djangoproejcts/fcdjango/fcdjango_venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line... | [
"headfat1218@gmail.com"
] | headfat1218@gmail.com | |
b3cf6c55dcab70f99e1cfda480f07f4b9321806d | ec7243cb3d117bf86321707e8bbf55e4389fc66d | /source/scrape.py | 5e818c4c544a3909641173b0a469b71710946b89 | [] | no_license | datastoreking/number_scraping_lotterysite | 4a40f82773719d858840ac22f9c2b5144bc75169 | bc764013bf31c9ee6a57bdcb76b5c3008a2034de | refs/heads/main | 2023-09-02T06:25:44.820165 | 2021-11-01T06:39:20 | 2021-11-01T06:39:20 | 423,362,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,667 | py | from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
from selenium.common.exceptions import NoSuchElementException
impo... | [
"vladislavcukanov@gmail.com"
] | vladislavcukanov@gmail.com |
4a28229ccac1e54b1f8cb5515fe964ea7f8983da | f24f9284998e0487de34218e510961d5bbd5547b | /setting.py | 8cdb43afb467d02d767d68a88033db3247c9ec28 | [] | no_license | HZCKen/plane_game | 21780d8ae43bcfd6d70b1e43182c6f604ae1e155 | ee0a0e5cc49602f8ea62a84c7760d6ad6528efd7 | refs/heads/master | 2020-03-17T17:26:22.809258 | 2018-07-09T07:53:26 | 2018-07-09T07:53:26 | 133,788,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | class Setting(object):
def __init__(self):
self.screen_width = 900
self.screen_height = 600
self.backgrounColor = (230, 230, 230)
self.ship_speed_factor = 1.5
self.ship_limit = 3
self.bullet_speed_factor = 3
self.bullet_width = 3
self.bullet_height ... | [
"13826457912@163.com"
] | 13826457912@163.com |
744b012e97e4bc5c6f153076f46b9fef6a0756a6 | b59b44c83c86aac8ebd971c996e2f95486a39cc3 | /util/arp.py | b93c86d36a2df02fc347a8559d863126932e8acd | [] | no_license | angelhack-conectus/conectus-user-backend | c99d48b94331f250086689518001cd73a3311b51 | fa56fe826c1283313e6670788db7dfce38d75835 | refs/heads/master | 2020-05-30T14:44:27.509078 | 2019-06-04T06:50:16 | 2019-06-04T06:50:16 | 189,798,654 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | import subprocess
import re
import asyncio
mac_address = re.compile(
rb'[1234567890abcdf]{2}-[1234567890abcdf]{2}-[1234567890abcdf]{2}-[1234567890abcdf]{2}-[1234567890abcdf]{2}-[1234567890abcdf]{2}')
async def get_mac_address(ip):
p = await asyncio.create_subprocess_exec(
'arp', '-a', ip,
std... | [
"2_minchul@naver.com"
] | 2_minchul@naver.com |
56003e100cddd599f5959ab7d12a3d33fd7950b4 | 70d081ab363373aafd60f649d4b216110a5659c9 | /gpustat/util_test.py | cd18d39db2779c7cd2b0f00a77c0b9df74dc51ca | [
"MIT"
] | permissive | wookayin/gpustat | 37f9589f657920402fe37d5baaea93e7241ccd0d | e32e3f2cd7d1b08a08fa235efe1f69bc3d769171 | refs/heads/master | 2023-08-30T18:55:34.490915 | 2023-08-22T21:51:56 | 2023-08-22T21:52:11 | 56,966,563 | 3,623 | 290 | MIT | 2023-09-06T04:23:58 | 2016-04-24T10:46:43 | Python | UTF-8 | Python | false | false | 771 | py | import sys
import pytest
from gpustat import util
def test_safecall():
def _success():
return 42
def _error():
raise FileNotFoundError("oops")
assert util.safecall(_success, error_value=None) == 42
assert util.safecall(_error, error_value=-1) == -1
with pytest.raises(FileNotFo... | [
"wookayin@gmail.com"
] | wookayin@gmail.com |
2e2ad4e2b61111feb6acf532edbbb405d8fe638b | a088e9614ac6041fcf30d06e33b53529d3be395f | /05函数加强/07-匿名函数-lambda参数之默认参数.py | 61860ef30af5292af33ef87a551ccc22b5ddcc98 | [] | no_license | yeshengwei/PythonLearning | 69dd3f6168b66232de186bd459a7fb6f6d119893 | 97f4bffbe0c58fed708a63d21f73a5967359a78f | refs/heads/master | 2020-08-13T14:38:34.802900 | 2019-11-22T07:24:03 | 2019-11-22T07:24:03 | 214,985,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | func1 = lambda x, y, z=100: x + y + z
print(func1(1, 10, 1000))
| [
"yeshengwei@live.com"
] | yeshengwei@live.com |
85a43c44139b7e923b000451d7e3a74f01635743 | 2c580e0b03d5d87bf09a4a46c160f13233163772 | /tests/test_backends.py | 6c546612bed32db104e21da8366634e8fc701dbc | [
"MIT"
] | permissive | greglever/django_microsoft_auth | cefea785dbc7c53bf57cae164bdc913c49476086 | 25ac0195ac7a052034359211b70c770c905b549f | refs/heads/master | 2020-04-03T20:40:50.217761 | 2018-10-30T10:07:56 | 2018-10-30T10:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,350 | py | from unittest.mock import Mock, patch
from django.contrib.auth import authenticate, get_user_model
from django.test import RequestFactory, override_settings
from microsoft_auth.models import MicrosoftAccount, XboxLiveAccount
from microsoft_auth.conf import LOGIN_TYPE_XBL
from . import TestCase
CODE = 'test_... | [
"cbailey@mort.is"
] | cbailey@mort.is |
09da145aa374994d8a34de3e6af14b7df5557cb3 | a6f96f766ec5d71bf38b281e47dc9c8846017266 | /twistedbot/plugins/core/chat_follow.py | 2c59b084e6e7d905719a8cb30cf5382be7e6db57 | [
"MIT"
] | permissive | jonasrk/TwistedBot | 7b7a2de0c71256692aef0186cbec07e0bedb4b59 | 71448f81f8075774ab14677510e41e9af1d6e846 | refs/heads/master | 2021-01-18T15:03:52.335435 | 2013-07-06T21:36:59 | 2013-07-06T21:36:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py |
from twistedbot.plugins.base import PluginChatBase
from twistedbot.behavior_tree import FollowPlayer
class Follow(PluginChatBase):
@property
def command_verb(self):
return "follow"
@property
def help(self):
return "bot starts following you"
def command(self, sender, command, arg... | [
"lehner.lukas@gmail.com"
] | lehner.lukas@gmail.com |
0892b9b290e2a4186ff79137b2bf96b7e02217d4 | ed471e0bdda3a8c2b1c31ea4e87942b30cdf19dd | /expenses/wsgi.py | 6126c0706ac9ecb5155a5046fc4abb125161054f | [] | no_license | blinduck/expenses-server | 430dbfc3ed3466d172d3c35db9168014ea984fc8 | 16704a57d9cc5e96f2bb9c218cb399b285240ccb | refs/heads/master | 2023-02-11T17:41:16.887161 | 2020-09-20T13:20:11 | 2020-09-20T13:20:11 | 141,822,324 | 0 | 0 | null | 2023-02-02T02:18:05 | 2018-07-21T14:56:08 | Python | UTF-8 | Python | false | false | 394 | py | """
WSGI config for expenses project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"blinduck@gmail.com"
] | blinduck@gmail.com |
3ca963f46a088f2c62e5b44b7f948bfda20e7288 | 7b437e095068fb3f615203e24b3af5c212162c0d | /enaml/qt/qt_image_view.py | 333b3323dd96a76a7210114a6b6a475bdecd2f1d | [
"BSD-3-Clause"
] | permissive | ContinuumIO/enaml | d8200f97946e5139323d22fba32c05231c2b342a | 15c20b035a73187e8e66fa20a43c3a4372d008bd | refs/heads/master | 2023-06-26T16:16:56.291781 | 2013-03-26T21:13:52 | 2013-03-26T21:13:52 | 9,047,832 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 9,105 | py | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | [
"sccolbert@gmail.com"
] | sccolbert@gmail.com |
b9048c10a2f1cc5c89401780f2865d98ca74a65c | 40bf222b4515b16e1c3c069d84679c588667aea1 | /yoyi_dataset_encode.py | fbe82e1283850cd71ed7eb1c9bd57d93324f9009 | [] | no_license | wty9391/GMM | 1e6795a2a115632a208ae0172ce1b929beafc64e | 776ddf57aedefa1483dd2653b863a810e83d099f | refs/heads/master | 2022-05-16T16:38:21.104871 | 2022-03-11T04:39:52 | 2022-03-11T04:39:52 | 237,732,893 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,101 | py | import sys
import pickle
import numpy as np
from scipy.sparse import csr_matrix, vstack
import myutil.encoder as encoder
import myutil.truthful_bidder as truthful_bidder
# ../make-yoyi-data/original-data/sample/train.yzx.txt ../make-yoyi-data/original-data/sample/test.yzx.txt ./result/yoyi_sample
if len(sys.argv) <... | [
"272076302@qq.com"
] | 272076302@qq.com |
0093da243e6cad910e110757cd26a6bd4aba396b | 20f2ce3642ff52dce0c8eba162ce8b017dd5683a | /이것이 코딩테스트다_python/구현/2. 시각.py | 82a705e07f7d0ac1ac21662ce58992e5d316e942 | [] | no_license | HyoungSunChoi/Coding-Test | 90a3b80c878dac8916827ffd2d8936fbb98cc92e | 5f92966d49201e12046d1b0c23f941e5ebb3d59c | refs/heads/master | 2023-04-22T06:26:02.402969 | 2021-05-07T05:44:21 | 2021-05-07T05:44:21 | 320,179,730 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | '''
정수 N 이 입력되면 00시 00분 00초 부터 N시 59분 59초까지의 모든 시각 중에서
3이 하나라도 포함되는 모든 경우의 수를 구하는 프로그램을 작성
'''
n=int(input())
cnt=0
for i in range(n+1):
for j in range(60):
for k in range(60):
res= str(i)+str(j)+str(k)
if '3' in res:
cnt+=1
print(cnt) | [
"noreply@github.com"
] | HyoungSunChoi.noreply@github.com |
34bdcf45336ac9fad8e79e864eb308065846a1c8 | 1e331aa934cf8a4d08402c6374f4c8dcfef9fd9d | /Cliff/main.py | 6049f4139254bf6d208aceb2319e6eeca17d5aec | [] | no_license | 19LukaModric/Python-Test | da7383e1dfcb49e6a034c4e72d3cac2af1f31e13 | 4ace577cb9246d54a5c7c343c8173ae36ae8d145 | refs/heads/master | 2020-12-30T17:10:45.513854 | 2017-05-19T06:31:47 | 2017-05-19T06:31:47 | 91,060,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import logging
import sys
from cliff.app import App
from cliff.commandmanager import CommandManager
class DemoApp(App):
log = logging.getLogger(__name__)
def __init__(self):
super(DemoApp, self).__init__(
description = 'cliff demo app',
... | [
"cheben2014@outlook.com"
] | cheben2014@outlook.com |
a20d4050a3ca2eb9cf7b0fc5957e562aa85b3bfc | 814ed222a37ff1bd19e6cc2eaecc6985916bf9e4 | /getliquor.py | 8a2ede91caee13c3a2e8fc5fba272cc27ef876a8 | [] | no_license | parduhne/RecipeRetriever | 50bd2d5f7f4b40ad364534f36a132c68dfd1c9a3 | fd54e128d236df40074131f96dea064aa7972c60 | refs/heads/master | 2022-12-20T15:49:35.338764 | 2020-05-10T21:53:22 | 2020-05-10T21:53:22 | 231,953,781 | 0 | 0 | null | 2022-12-11T19:24:06 | 2020-01-05T17:42:44 | TypeScript | UTF-8 | Python | false | false | 2,777 | py | # Import libraries
import requests
import urllib.request
import time
from bs4 import BeautifulSoup
base_url = 'https://www.liquor.com'
buffer = []
def recursiveFoo(url):
# Connect to the URL
response = requests.get(url)
# Parse HTML and save to BeautifulSoup object¶
soup = BeautifulSoup(r... | [
"noreply@github.com"
] | parduhne.noreply@github.com |
55c65f3586112411d03526d841b82394469f0b13 | bb6a14c452b826a7fc3385273a82fa7f3db49139 | /Financial Engineering/FE_HW2.py | 12717d521bc9feec03018856a2253db3392921eb | [] | no_license | howbonoh/Some-works-back-in-school | a6ef60c04737b8da1f8b5c35c37cb4a5b40f0b94 | 37304b7ad4cba7091edc2f5b5693cabe9a82c027 | refs/heads/master | 2020-08-01T17:36:37.016167 | 2019-10-01T06:40:23 | 2019-10-01T06:40:23 | 211,062,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py |
# coding: utf-8
# In[1]:
import pandas as pd
import datetime
from dateutil.relativedelta import relativedelta
# In[2]:
def actual_actual(yieldOfMaturity,couponRate,settlement,maturity):
maturity = pd.to_datetime(maturity, format='%Y-%m-%d')
settlement = pd.to_datetime(settlement, format='%Y-%m-%d')
co... | [
"noreply@github.com"
] | howbonoh.noreply@github.com |
b20e7ab119cda61531f2177a8822de09c6c8933f | 198c1b47dc66e6775ecbd9533a109a4896c830b4 | /flaskr/myapp/Connection/MysqlConn.py | 7c189f6706c83d51ff2463f1f7bfefdf71f58f10 | [] | no_license | qianjiangchao1992/webFlask | 24eefffbd612119731e71c25d3cf719d067ef285 | ebb7ff6bc33ff9c302bbeb07bc531fc7d37c794e | refs/heads/master | 2020-09-27T09:35:36.062184 | 2019-12-14T10:49:36 | 2019-12-14T10:49:36 | 226,486,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,523 | py | import time
import pymysql
from configparser import ConfigParser
from queue import Queue
import threading
# 装饰器来计算时间时间
def time_calculate(f):
def wrapper(*args, **kwargs):
start_time = time.time()
res = f(*args, **kwargs)
end_time = time.time()
print("**********{}程序计算完成,所花时间为{}秒**... | [
"qjchao1992@163.com"
] | qjchao1992@163.com |
8f2efd28c60aa3c632a782cbd5dbf69191d7df80 | 4f3a99c6576c7191588ef08f71bc29d72b8ec080 | /data_handler.py | 4f569c1340c02a8199aab23bc4312107efd5e372 | [] | no_license | zlinzju/ManifoldAlignmentUCL | 33907212fabb4b736692897f8c5fa68ef5142e1c | 0eac9695e7e2a68e86fa6e9b3e73d311f681db49 | refs/heads/master | 2020-08-22T01:14:17.599045 | 2019-09-08T12:31:35 | 2019-09-08T12:31:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,514 | py | import pickle
import numpy as np
from scipy.spatial.distance import cdist,pdist, squareform
import scipy as scip
from scipy.linalg import eig,eigh
from scipy.stats import spearmanr
from math import factorial
import itertools
from sklearn.metrics import mean_squared_error as mse
import tensorflow as tf
from sklearn.mani... | [
"noreply@github.com"
] | zlinzju.noreply@github.com |
a9d7ff557ba46ec9e284b40f094a2d5158929c36 | eaec3fece2e9106cf402d6e9d03b51dbe10af3d7 | /cart/contexts.py | 4c6db6d15897119cd854d5877198fcb976302bc6 | [] | no_license | kmaaallen/Django-E-Commerce | a6948cf51dd8cc51db9570949994a5adce717a62 | 4bdfb40ce2cd4c5a0d0c0c47b439b54ff6b7d36d | refs/heads/master | 2021-11-24T17:21:02.053361 | 2021-11-06T11:38:28 | 2021-11-06T11:38:28 | 219,560,805 | 0 | 0 | null | 2021-11-06T11:38:28 | 2019-11-04T17:43:05 | Python | UTF-8 | Python | false | false | 647 | py | from django.shortcuts import get_object_or_404
from products.models import Product
def cart_contents(request):
"""
Ensures that the cart contents are available when rendering every page
"""
cart = request.session.get('cart', {})
cart_items = []
total = 0
product_count = 0
for id, quan... | [
"kmaaallen@gmail.com"
] | kmaaallen@gmail.com |
9b5c59f64aeca2a5ae4552827bf5df5b6fb8951e | 529850c2785de1f8b4585a0638596ba86c59b5ac | /mmdet/datasets/lvis.py | d7a2e919f5fcc30f94e731f47dc4a1554cb07967 | [
"Apache-2.0"
] | permissive | hhaAndroid/mmdetection | b68609d7f78ed1ff795d48ffe68a389d86980cfe | 5d34b77931c5f6516a694e1d46390166d404169e | refs/heads/master | 2023-08-16T04:26:36.263068 | 2023-06-02T09:07:43 | 2023-06-02T09:07:43 | 319,885,247 | 18 | 19 | Apache-2.0 | 2023-09-13T12:09:42 | 2020-12-09T08:04:56 | Jupyter Notebook | UTF-8 | Python | false | false | 46,184 | py | # Copyright (c) OpenMMLab. All rights reserved.
import itertools
import logging
import os.path as osp
import tempfile
import warnings
from collections import OrderedDict
import numpy as np
from mmcv.utils import print_log
from terminaltables import AsciiTable
from .builder import DATASETS
from .coco import CocoDatase... | [
"noreply@github.com"
] | hhaAndroid.noreply@github.com |
bcc1a31edbc8ec9e5e30ccfdce7356bbc0088ba1 | 2d5a5717015da6f659d85911da5a69a145b4c861 | /reccomender.py | a4798df1aa989a8f6ad237f57b7c4633ec07fe99 | [] | no_license | williewlchew/url-tagging | 14e2a026ba16d27c4a0b3b700c89139dbf8b7e63 | bf1dc4e3e9faf59216599675ab3940beab6c43f1 | refs/heads/master | 2023-01-28T04:55:43.443270 | 2020-12-11T03:13:45 | 2020-12-11T03:13:45 | 319,844,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,125 | py | '''
UrlTagging Reccomending
Willie Chew
2020
'''
import io, os, sys, pika, redis, hashlib, mysql.connector
import protos.links_pb2 as linksPb
redisHost = os.getenv("REDIS_HOST") or "localhost"
rabbitMQHost = os.getenv("RABBITMQ_HOST") or "localhost"
mysqlHost = os.getenv("MYSQL_HOST") or "localhost"
class RabbitHand... | [
"williewlchew@gmail.com"
] | williewlchew@gmail.com |
5bee624cf6a1512c53de9744c62b2e661ed4ff4e | 9f242385186a9a9eafc61322e4f92515b42e3325 | /DQN/DQN_p2_universe.py | f7aac3acb6a5e4bd2d53ff5ed0ee56513b853a66 | [
"MIT"
] | permissive | UofARLGames/reinforcement-learning | 5c826b378934d99b9198fe5931e811d5207c2156 | a1dfcf64087a3181b51b469d59fc34e6a494dcbd | refs/heads/master | 2020-05-21T06:05:58.973153 | 2017-03-31T23:20:47 | 2017-03-31T23:20:47 | 84,584,607 | 0 | 0 | null | 2017-03-10T17:29:46 | 2017-03-10T17:29:46 | null | UTF-8 | Python | false | false | 19,852 | py |
# coding: utf-8
# In[ ]:
#get_ipython().magic('matplotlib inline')
import gym
import itertools
import numpy as np
import os
import random
import sys
import universe
import pdb
if "../" not in sys.path:
sys.path.append("../")
from lib import plotting
from collections import deque, namedtuple
... | [
"mennatul@ualberta.ca"
] | mennatul@ualberta.ca |
1ebd169554ef609726d43aedd887225ea4fb9263 | 887b37befa1eac8f3d6de87fee4ba881fba169ce | /mysite/survey/migrations/0005_auto_20200414_2251.py | 0afcbe7ccdb32ef2708c807c9529fc089b4e1778 | [] | no_license | judetomas/django_polls | 16ae2f0206459c8ac8f71f8273f7766ef11a6663 | d444a469bf4ab33934fdf59f06ed99a1d93964bf | refs/heads/master | 2020-09-11T18:58:41.906228 | 2020-05-16T19:45:17 | 2020-05-16T19:45:17 | 222,159,695 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | # Generated by Django 2.2.5 on 2020-04-15 02:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('survey', '0004_remove_answer_answer_id'),
]
operations = [
migrations.CreateModel(
name='User',... | [
"eduj1samot@gmail.com"
] | eduj1samot@gmail.com |
d7fb0e5f89514b585e6801d0934118e1ee780914 | 2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f | /aws.getCanonicalUserId-python/__main__.py | 40fa0380f91a55b39b839daa26ac25a498186bc7 | [] | no_license | ehubbard/templates-aws | e323b693a18234defe6bd56ffcc64095dc58e3a1 | 2ae2e7a5d05490078017fed6d132dcdde1f21c63 | refs/heads/master | 2022-11-17T13:53:14.531872 | 2020-07-10T21:56:27 | 2020-07-10T21:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | import pulumi
import pulumi_aws as aws
current = aws.get_canonical_user_id()
pulumi.export("canonicalUserId", current.id)
| [
"jvp@justinvp.com"
] | jvp@justinvp.com |
cac7f6322f286045bff90d19c7c4da732cb5bb58 | 18111665be78761003021f5231e5bb1cdeba842c | /_app/forms.py | a48284ecb9ac93996d56e9b0772693bd9b7683d0 | [
"MIT"
] | permissive | Wilfongjt/lb-data | 0782896420d2bebc8aab7726f393952a112419c7 | eca16bcec6cae5822146dfce8ea56e5f533c7f87 | refs/heads/master | 2022-11-13T04:33:54.272265 | 2020-07-10T16:08:25 | 2020-07-10T16:08:25 | 255,879,629 | 0 | 0 | MIT | 2020-07-10T16:08:26 | 2020-04-15T10:14:25 | Python | UTF-8 | Python | false | false | 2,566 | py |
from list_forms import FormList
import json
class FormKeyList(list):
def __init__(self, dictionary):
if 'interfaces' in dictionary:
for formkey in dictionary['interfaces']:
self.append(formkey)
elif 'api-form' in dictionary:
self.append(dictionary['api-name'... | [
"wilfongjt@gmail.com"
] | wilfongjt@gmail.com |
d0e4abc5b35dc5ffc4c54602f2924a7977a22926 | a5836366b1ddbbf2bb00f8424b4acef51ba0ca36 | /src/action/exit.py | 5bd59e7429d5284f377f267f515904d643889e98 | [] | no_license | d4rckh/bhs | ccbfad6c116af43a48fed750ef68a24d4ea90dc1 | 52f3f39970f83e82d61e3d0c4ee482cd0761daac | refs/heads/master | 2022-12-05T23:53:24.177305 | 2020-09-02T15:11:11 | 2020-09-02T15:11:11 | 292,082,066 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from src.util.run_cmd import open as run_cmd
from src.util.cRes import cRes as res
from src.util.checkPort import checkPort
class Command:
def __init__(self, args, session):
self.args = args
self.ses = session
self.requiredPorts = []
pass
def run(self):
exit(0) | [
"m4dd0x.xxx@gmail.com"
] | m4dd0x.xxx@gmail.com |
84ed31ee8fbc6386e0418195aeda611fd7acf26b | 8ded1e1c993051f3d71c55905ea812cd014aab3e | /model/model_QSMnet+.py | 37d299f7391ef0ce9f0535483bcb310d5c9045d2 | [] | no_license | clydejung/QSMnet | 49dcb8ceb77994ff9d9454197f7c1343e1857522 | 078016a69afbf7ba44f9c3c4d32285fc18c3d8f3 | refs/heads/master | 2020-07-01T00:39:46.488768 | 2019-08-07T07:28:58 | 2019-08-07T07:28:58 | 200,997,611 | 0 | 0 | null | 2019-08-07T07:33:12 | 2019-08-07T07:33:12 | null | UTF-8 | Python | false | false | 8,814 | py | import tensorflow as tf
def batch_norm(x, channel, isTrain, decay=0.99, name="bn"):
with tf.variable_scope(name):
beta = tf.get_variable(initializer=tf.constant(0.0, shape=[channel]), name='beta')
gamma = tf.get_variable(initializer=tf.constant(1.0, shape=[channel]), name='gamma')
batch_mean, ba... | [
"wjjung93@snu.ac.kr"
] | wjjung93@snu.ac.kr |
5b8924f9597b4cc28c2c83320007c9c3565e364d | 681a708b81cc11a9fa15bf23ffeda9f07dc4846f | /LP2/Rafa/Sub_FinaL_AC.LP2/business/models.py | e656b714c2c3c809cf23af2a76b799ec826ad9d9 | [
"Apache-2.0"
] | permissive | RafaelaMiwaTokas/ACS-OPE | 57ffb0587f02a93bbc1e63311ac33937fc80efad | 7c37857982b6f621135a5ac0b9945bde02baafa1 | refs/heads/master | 2020-03-30T16:49:57.468191 | 2018-10-17T22:30:45 | 2018-10-17T22:30:45 | 151,429,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | from business.exceptions import ParametroNegativoException, ResultadoNegativoException, OperacaoMuitoFacilException, ParametroZeroException
class Calculadora():
def soma(self, a, b):
if a < 0 or b < 0:
raise ParametroNegativoException()
return a + b
def subtrai(self, a, b):
... | [
"1800706@SALAS.AULAS"
] | 1800706@SALAS.AULAS |
fa1e88b93bfadafa9a610505a1f1994c32e313f6 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/lag82/600-tideGauge.py | 8f9c90a0dc2de8f6b058903a57b951b859a2c87d | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,984 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 31 17:12:23 2020
****************************************************
Load predictors & predictands + predictor importance
****************************************************
@author: Michael Tadesse
"""
#import packages
import os
import pandas as pd
import datetime a... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
580529e04722c5f5a425b10e0393ded1433d5421 | 4f75a30a64a682468aa399367a652b97c151c4ef | /sdk/geetest_lib.py | b6ef2321d487e2bc26b65a7e3af78097b750b160 | [] | no_license | wdjlover/gt3-server-python-flask-bypass | eec010263e5675aaee32660de091469357a79cca | 11062beeb1ee23aab8e72cb4313419ce85e68217 | refs/heads/master | 2023-01-21T02:56:06.414627 | 2020-11-26T09:55:31 | 2020-11-26T09:55:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,940 | py | import string
import random
import json
import requests
import hmac
import hashlib
from .geetest_lib_result import GeetestLibResult
# sdk lib包,核心逻辑。
class GeetestLib:
IS_DEBUG = True # 调试开关,是否输出调试日志
API_URL = "http://api.geetest.com"
REGISTER_URL = "/register.php"
VALIDATE_URL = "/validate.php"
... | [
"wangbo@geetest.com"
] | wangbo@geetest.com |
bba2b711e7ce6925f1e86ef8dbe91b5ebc967e6e | 1561c3bab9abcfd0b943ef33695dcd1919e19fb2 | /backend/editors/regex_dict.py | 6094715e0334c2675b915c716bb89cc72b5b0cfc | [] | no_license | Cyki89/RealTimeTrackingApplication | 6dd7d8aefa9699cb75d3f8af3df0776f16e1d8ae | c5bbbf2ec80223f09b3e139fe02731d236dff29b | refs/heads/master | 2022-12-14T08:16:55.097769 | 2020-09-10T17:53:32 | 2020-09-10T17:53:32 | 291,335,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | import re
from backend.utils.utils import singleton
class RegexDict(dict):
def __init__(self):
super().__init__()
def __getitem__(self, item):
for k, v in self.items():
if re.search(k, item):
return v
raise KeyError
| [
"jakub.cykowski@gmail.com"
] | jakub.cykowski@gmail.com |
8657979c109138a54ea8897da438a5eb4cc0b1f3 | f1a29aea3a79d5696368e5dcf8ebdd615cb831c4 | /start.py | a4b0c301fc8e25185fee910048f84f6a52546ca6 | [
"MIT"
] | permissive | ChristopherSung/Stage1stHelper | 7817e641ac661afd8e1c8e901d94cfdba7db7287 | d86dbf1058150b59c3cb71f306a9812fab715c91 | refs/heads/master | 2023-08-16T05:48:28.081930 | 2021-10-15T06:53:40 | 2021-10-15T06:53:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | import json
import logging
import time
import os
from member import Member
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s - %(levelname)s: %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
)
logger = logging.getLogger(__name__)
config = json.load(open('./config.json', 'r', encoding='utf-8'))
refres... | [
"unknown"
] | unknown |
e78fbe197918f6638345b7ed338a008dbc44175a | a8c5397b5f32312095ef075c791502af055c6efb | /Processor/script/getkey.py | ccc057df0fb077629b4838489067c723d27c869e | [
"MIT"
] | permissive | LinkleYping/BlockImage_System | 77c126bfc55e8e5907178206d7d355cd58bb9dc3 | 66112a911c599eeb87ce0fbb3a10180739f45771 | refs/heads/master | 2022-10-25T00:17:16.156961 | 2020-06-15T02:45:37 | 2020-06-15T02:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | from random import Random
def random_str(randomlength):
str = ''
chars = 'abcdef0123456789'
length = len(chars) - 1
random = Random()
for i in range(randomlength):
str += chars[random.randint(0, length)]
return str
#
# if __name__ == '__main__':
# print(random_str(6))
| [
"heyilinge0@gmail.com"
] | heyilinge0@gmail.com |
cf63b953d2e55044236cb7a0d49e53c7e3e267a9 | c6759b857e55991fea3ef0b465dbcee53fa38714 | /tools/nntool/nntool/quantization/float/quantizers/quantize_float.py | 7c64d8773104ce0a2e7df691e9c41a6cb1372580 | [
"AGPL-3.0-or-later",
"AGPL-3.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0"
] | permissive | GreenWaves-Technologies/gap_sdk | 1b343bba97b7a5ce62a24162bd72eef5cc67e269 | 3fea306d52ee33f923f2423c5a75d9eb1c07e904 | refs/heads/master | 2023-09-01T14:38:34.270427 | 2023-08-10T09:04:44 | 2023-08-10T09:04:44 | 133,324,605 | 145 | 96 | Apache-2.0 | 2023-08-27T19:03:52 | 2018-05-14T07:50:29 | C | UTF-8 | Python | false | false | 1,835 | py | # Copyright (C) 2020 GreenWaves Technologies, SAS
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This progr... | [
"yao.zhang@greenwaves-technologies.com"
] | yao.zhang@greenwaves-technologies.com |
62fd032eecda11368b44164612bad0d2d25fcd0d | f7d7d8e7ddd5ec47ad801bfe07c4fa80389afcbe | /lib/assertions.py | f3973661b7ca0a9ffd8feb6a7a936c535c92b665 | [] | no_license | MarySukhorukova/LearnQA_Python_API | d151423639412fd000eb99bd52cc9a1bd6b5c4be | 263eaf489490862c5f241369577307e50e96d8ea | refs/heads/master | 2023-06-27T06:22:41.926552 | 2021-07-19T20:25:20 | 2021-07-19T20:25:20 | 377,433,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,547 | py | from requests import Response
import json
class Assertions:
@staticmethod
def assert_json_value_by_name(response: Response, name, expected_value, error_message):
try:
response_as_dict = response.json()
except json.JSONDecodeError:
assert False, f"response is not in JSON... | [
"57411226+MarySukhorukova@users.noreply.github.com"
] | 57411226+MarySukhorukova@users.noreply.github.com |
a5577ef843db47762ad28013db1fc9d919b1243d | 63b79c404d83e4980891c488f4d9592558ecda35 | /assets/src/ba_data/python/bastd/ui/coop/level.py | 8a8d60d6e175af38081aa58b8a129c77b0e3c9b7 | [
"MIT"
] | permissive | kakekakeka/ballistica | 56e8879cd5b4b990e5e05da3dfd300d7cbb45446 | 3ffeff8ce401a00128363ff08b406471092adaa9 | refs/heads/master | 2022-11-14T08:11:57.160782 | 2020-07-01T05:43:13 | 2020-07-01T05:49:44 | 276,755,445 | 2 | 0 | MIT | 2020-07-02T22:18:37 | 2020-07-02T22:18:36 | null | UTF-8 | Python | false | false | 3,467 | py | # Copyright (c) 2011-2020 Eric Froemling
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish,... | [
"ericfroemling@gmail.com"
] | ericfroemling@gmail.com |
f6019218c0ab19ab8d1de61088e9c3a88f0d22c1 | 1cb5d0275cd81cd49e4cf1bd158e2101a3fe5d79 | /Prac04/intermediate exercise 1.py | 45eae55e1263e7645d75d0cba89912ff1ed160d2 | [] | no_license | kkemei/Programming1-Practicals | 1479be8bd4931bcdfca15313c78c316ebf4ed71d | 2a064a27c6d43fc934e22b1505daf61726ffaeb5 | refs/heads/master | 2021-01-15T15:31:57.659734 | 2016-10-13T01:28:29 | 2016-10-13T01:28:29 | 68,797,239 | 0 | 0 | null | 2016-10-05T12:29:26 | 2016-09-21T08:38:19 | Python | UTF-8 | Python | false | false | 449 | py | def main():
numbers = []
for i in range(0, 5):
num_value = int(input("Enter a number? "))
numbers.append(num_value)
print("the first number is {}".format(numbers[0]))
print("the last number is {}".format(numbers[4]))
print("the smallest number is {}".format(min(numbers)))
print(... | [
"kipngetich.kemei@my.jcu.edu.au"
] | kipngetich.kemei@my.jcu.edu.au |
541a93cf695cfbde477fe29275eea22e11479520 | efcf128f6fbd5419fba137dd2db7775b41567b7f | /doll_control.py | 63979b91cb88a248e78f19e3466e9119d6b0777a | [] | no_license | dawnho/doll_control | e6b4975a158b81551375a6aa97a30c9665e35bb3 | ee14b05ea447be46c6e5390758cd7a583a6cb61f | refs/heads/master | 2021-05-15T20:15:30.090899 | 2017-10-22T06:20:52 | 2017-10-22T06:20:52 | 107,842,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from threading import Thread
import socket
import time
import RPi.GPIO as GPIO
VERBOSE= = TRUE
IP_PORT = 22000
P_BUTTON = 24
def setup():
GPIO.setmode(GPIO.BOARD)
GPIO.setup(P_BUTTON, GPIO.IN, GPIO.PUD_UP)
def debug(text):
if VERBOSE:
print "Debug:---", text
# ------ class SocketHandler -----
class SocketHandl... | [
"dawn.ho@gmail.com"
] | dawn.ho@gmail.com |
f807a94a2d8348d9dc63eb80f02da06acbb76740 | f7957eff1c606997661e21314dfe99550bc2e3cd | /code/server.py | f6d4290609e422bb90ff11cda45e03dd20cea7de | [] | no_license | halfopen/GraduationThesis | 3a738a346b8a1bbf1271fe65483a99c19dd048b1 | a7e763ca9d4995a5afaded61926df7c29ce5a84b | refs/heads/master | 2021-06-14T03:29:15.177322 | 2021-03-18T03:50:14 | 2021-03-18T03:50:14 | 204,376,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # coding: utf-8
from flask import Flask, request
from handler import Handler
from flask_json import FlaskJSON, JsonError, json_response, as_json
app = Flask(__name__)
json = FlaskJSON(app)
@app.route('/', methods = ['POST', 'GET'])
@as_json
def serve():
if request.method == "GET":
return "OK"
hdl = H... | [
"halfopen@yeah.net"
] | halfopen@yeah.net |
56ac1babdae96b39f0d63482131bf16c3706e4f6 | 7513cd51d989bf0dc43287a70b238a02aee51486 | /ch-13/ball/settings.py | 40abf3b897f2543ac6ff69fb019338ce5b0a9f51 | [] | no_license | aklap/python-crash-course | 826809649ba4f90fd3e12fcce26808e21e0adfec | 7854c5242eaa9b5c4e15de03e9fdf859c9124372 | refs/heads/master | 2020-04-17T07:25:54.124403 | 2019-01-30T20:38:59 | 2019-01-30T20:38:59 | 166,368,994 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | class Settings():
"""Class for settings of a game."""
def __init__(self):
self.ball_limit = 3
| [
"aklaporte@gmail.com"
] | aklaporte@gmail.com |
2218410e4e8156d005707c870ee0c2c1e2ca3200 | 711cdfa4ee0619fd5223e7f38356b112a7551f6a | /bible-chronicle/wsgi.py | e59b9374b07f82d825d54a31635b3fe4b31e40e9 | [] | no_license | ygmpkk/Bible-Chronicle | 5dc5894b16a62c9b10e9d0771026c4fa65745d6f | b922039061ef338ef2ef4e587004df718626d871 | refs/heads/master | 2020-12-24T17:18:17.562466 | 2012-06-03T12:22:55 | 2012-06-03T12:22:55 | 4,112,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | """
WSGI config for djproject project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`... | [
"Timothy@.(none)"
] | Timothy@.(none) |
6f5906bfbdeacf315d3770da2d384597f68228fe | 9a09e0fdd7de7bed272bd2ae88a28834220cd3f3 | /virtual/bin/pycodestyle | 6e7659838eb27eb6e35add6595080878e2491c14 | [
"MIT"
] | permissive | DancanOduor/Minute-Pitches | 5da9e46b2b4b21847c52ed76e851d872fb1fd22f | 50d56a609dfd7a5719f19ad3297959c3585dcd1c | refs/heads/master | 2022-10-07T13:33:38.047493 | 2019-11-27T12:29:06 | 2019-11-27T12:29:06 | 224,148,901 | 0 | 0 | MIT | 2022-09-16T18:14:07 | 2019-11-26T09:11:00 | Python | UTF-8 | Python | false | false | 246 | #!/home/moringa/python/Pitches/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pycodestyle import _main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(_main())
| [
"dancanoduor1990@gmail"
] | dancanoduor1990@gmail | |
a57a71644572968524842a8915273d496e97af7b | 1930fec37ace24d01946845e9566071e4e96fe63 | /tripletreid/embed.py | 598574590e2a22c411c302f7163e7ccff5876089 | [
"MIT"
] | permissive | Qidian213/DeepCC-T | 9e0599934c09495a3dfba051943892ca911fe730 | 697e792d38f46ecbe643ba756e517c2a893efb65 | refs/heads/master | 2021-10-26T08:04:26.753433 | 2019-04-11T09:16:31 | 2019-04-11T09:16:31 | 178,881,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,183 | py | #!/usr/bin/env python
from argparse import ArgumentParser
from importlib import import_module
from itertools import count
import os
import h5py
import json
import numpy as np
import tensorflow as tf
from aggregators import AGGREGATORS
import common
parser = ArgumentParser(description='Embed a dataset using a trained... | [
"xhx1247786632@gmail.com"
] | xhx1247786632@gmail.com |
490925720e8b660543d0809f52bca3389d2bca62 | d605b8aaba13de6be8760949548375c8f8714ccc | /undistort_img.py | ab7b996b6afb9c15c69bb4ad3aab6bc1af3488de | [
"MIT"
] | permissive | fwa785/CarND-Advanced_Lane_Lines | 733ac514679f39e5ef475ea01e4551e7610b59cc | b36852e2519128c40bc22a2efed92d8014496b7e | refs/heads/master | 2020-03-17T13:02:35.140426 | 2018-05-26T05:46:20 | 2018-05-26T05:46:20 | 133,614,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | import cv2
import pickle
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
def load_cal_dist():
# load the pickle file
file = open("wide_dist_pickle.p", "rb")
dist_pickle = pickle.load(file)
objpoints = dist_pickle["objpoints"]
imgpoints = dist_pickle["imgpoints"]
return objpoi... | [
"fwang@cs.stanford.edu"
] | fwang@cs.stanford.edu |
4a5682dd8ba47d528ee3f7d9b2205251941f53e1 | 428b2789f055f35a3d7221dfdd35ef2a74262f76 | /프로그래머스/가장 큰 수.py | 1833f4ecc4730ecf5ed22d045b2c48397f56b6d9 | [] | no_license | sinsomi/Coding-Test | eb9fcf9c9ef2b427287a8f9ea27320bf6616e49a | 881974b533dc8d1ba44e8734346e38a3e668fda8 | refs/heads/master | 2022-12-10T04:56:50.280532 | 2020-09-14T02:37:55 | 2020-09-14T02:37:55 | 287,198,959 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | def solution(numbers):
ans=''
numbers=list(map(str,numbers))
#문자열을 3번씩 나열한것을 기준으로 정렬
numbers.sort(key=lambda x:x*3,reverse=True)
return ''.join(numbers)
print(solution([3, 30, 34, 5, 9])) | [
"cindy960602@naver.com"
] | cindy960602@naver.com |
adc19dda16fb09b71ebe749693e137350ac13ad8 | 641b870d2fb27ed52371b92b91c37abdf2e4d44d | /8_17_20.py | f67eea0d0b9f634b12fb774578592be916f927b8 | [] | no_license | zoezirlin/COVID-19-Worldwide-Cases-and-Deaths-Analysis | c2831414979d113f265e33e07f73b442a68529b4 | 909179e8f24a341b397f81e00a43621578b58c2c | refs/heads/master | 2022-11-30T04:48:37.164514 | 2020-08-17T14:48:36 | 2020-08-17T14:48:36 | 285,699,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,118 | py | # COVID-19 Worldwide Analytics: Data from Our World in Data
## https://github.com/owid/covid-19-data/tree/master/public/data
# RQ1: is there a correlation between pop. 65+ and pop. 70+ in terms of total deaths?
# RQ2: is there a correlation between gdp per capia and total deaths? (chi-square)
# RQ3: diabetes prevelanc... | [
"noreply@github.com"
] | zoezirlin.noreply@github.com |
5a81a4197fa3eba25a940755bdd2addd0a67a411 | 27ff7fec0ae3f29f58089a2acab0aa3bc4e6e1f7 | /RIDE-python3/utest/namespace/test_retrievercontextfactory.py | ffcf5e68b915b40215bd7108b20d30b733dc6100 | [
"Apache-2.0"
] | permissive | zhangsong1417/xx | 01435d6057364991b649c1acc00b36ab13debe5a | c40cfdede194daf3bdf91b36c1936150577128b9 | refs/heads/master | 2020-04-06T14:06:23.011363 | 2019-07-09T02:38:02 | 2019-07-09T02:38:02 | 157,528,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | import unittest
from nose.tools import assert_equal
from robotide.namespace.namespace import _RetrieverContextFactory
from robotide.robotapi import ResourceFile
def datafileWithVariables(vars):
data = ResourceFile()
for var in vars:
data.variable_table.add(var, vars[var])
return data
class Retr... | [
"44634576+shuiling21@users.noreply.github.com"
] | 44634576+shuiling21@users.noreply.github.com |
36fe4d0372f7bd4c02c181de99948209bddf152f | 3876aa07bd0d9d2a264174537ff382663c995619 | /backend/server/server/settings.py | c47394a1d6f7eade47a3c037251e79b282f5d5c9 | [] | no_license | ImokAAA/image_enhancer | 9858970675bb351c84bcd6afe7c46742239f402f | 65f047e94d45f8d1113fa5df375aa1737a7158d2 | refs/heads/main | 2023-03-05T22:55:17.788420 | 2021-01-14T16:47:01 | 2021-01-14T16:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,088 | py | """
Django settings for server project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"Imangali@gmail.com"
] | Imangali@gmail.com |
78170bad3a84f196ad48194a53eb050217a1ffb5 | 6be1990abf99c85ef886b49dcea1824aabb648d3 | /weixinofneolocal/weixinofneolocal/zinnia/templates/zinnia/skeletonback.py | 87d92f772446a25a103c06be241af22031b913f8 | [] | no_license | neoguojing/cloudServer | b53ae205efe52cf0aea28dbb9e6c16c20caf991f | 7c19101789b0c46474269e4c8fe00e92203e9cd7 | refs/heads/master | 2020-12-04T23:02:23.551479 | 2017-09-22T03:08:35 | 2017-09-22T03:08:35 | 67,382,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,349 | py | {% load i18n staticfiles %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="{{ LANGUAGE_CODE }}" lang="{{ LANGUAGE_CODE }}" version="-//W3C//DTD XHTML 1.1//EN" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Zinnia's Weblog - {% block title %}{... | [
"guojing_neo@163.com"
] | guojing_neo@163.com |
228b7eb72785825bdb3372172019c0d93f9fa8cf | 9124307911fe2c868d0b52cce274e3e06d050dfc | /spider/doubanSpider/doubanSpider/run.py | 8f019a82e517f5bb666de728e7097c307a7035f8 | [] | no_license | shenzihu/wechat-library-system | 2458f953886136e2ddfe742f0a1879056b556f06 | 5a7c9a2bf2e3844c3b0c8ccb9db0ee2439869ed2 | refs/heads/main | 2023-03-06T13:18:54.430461 | 2021-02-17T03:43:19 | 2021-02-17T03:43:19 | 339,595,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from scrapy import cmdline
import time
import subprocess
import sched, os
if __name__ == "__main__":
cmdline.execute('scrapy crawl doubanSpider'.split())
# 初始化sched模块的scheduler类
# 第一个参数是一个可以返回时间戳的函数,第二个参数可以在定时未到达之前阻塞。
schedule = sched.scheduler(time.time, time.sleep)
... | [
"shenzihu123.123"
] | shenzihu123.123 |
7b67496f9c670cfea18d79b91e9e31e13296b6be | ed6efcd5ffb150b1cbc4fceb9976685e1edde354 | /JazzMock/Python/train.py | b7d09e77d8edaad8b56f84aa8bedf69c72533e17 | [] | no_license | zielo-hue/JazzMock | 71cdc9e07815eec48cc6b3ce4f380e6f6375fb62 | a27b8f419f63b3e2ae6885eb22f11144097ff0fe | refs/heads/master | 2023-08-25T20:29:59.778534 | 2021-11-07T19:34:35 | 2021-11-07T19:34:35 | 345,299,138 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | import os
import gpt_2_simple as gpt2
import sys
from datetime import datetime
model_name = "355M"
if not os.path.isdir(os.path.join("models", model_name)):
print(f"Downloading {model_name} model...")
gpt2.download_gpt2(model_name=model_name)
file_name = "dataset.csv" # File name of dataset
sess = gpt2.st... | [
"51804240+zielo-hue@users.noreply.github.com"
] | 51804240+zielo-hue@users.noreply.github.com |
32b1a41ac3b18a60699e71127b3e67b52f1e3621 | 249a31fd330dc179b89101f71f92f5474ce2a2dd | /back/fastapi/app/database/models.py | 3a15a7c84f98644ae58e296613755954bb392cb6 | [] | no_license | WilliamBamba/thermo_ia | f9838d968ee6a24ab8573fcf6b52bed92f7f6a12 | 941aef7e210363c73fcd86176cf89c655e4e406d | refs/heads/master | 2023-03-16T19:36:50.222152 | 2020-11-25T09:38:42 | 2020-11-25T09:38:42 | 343,266,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, DateTime
from sqlalchemy.orm import relationship
from sqlalchemy.sql import func
from app.database.config import Base
class Profile(Base):
__tablename__ = "profile"
id = Column(Integer, primary_key=True, index=True)
name = Column(Str... | [
"shajjad.hossain@etu.univ-lyon1.fr"
] | shajjad.hossain@etu.univ-lyon1.fr |
0ab4574b857eec1bbf73e814ebe45687b8341100 | f957e7a7dac20e987b6bd467f6342d2ecd358879 | /pset9/problem1_3.py | 7ab5cbfa1b2e4bb72f25e76c8fb64d65dfc26e1e | [] | no_license | Wambonaut/Computational-Physics-Homework | 375407b2ccce9f3b8ffb2a3a0126b8306f28ae2f | 8389e4c446b6f8e3cbdc6e51b6c228f18bc57935 | refs/heads/master | 2020-05-18T03:35:52.342590 | 2019-06-28T09:51:37 | 2019-06-28T09:51:37 | 184,148,341 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | import matplotlib.pyplot as plt
import numpy as np
import os
import random
from rng import rng
figFolderPath = os.path.join(
os.path.dirname(os.path.realpath(__file__)), 'figures'
)
if not os.path.exists(figFolderPath):
os.makedirs(figFolderPath)
a, c, m = 106, 1283, 6075
I0 = 329
r = rng(I0, a, c, m)
N = 1000... | [
"jona.a99@gmail.com"
] | jona.a99@gmail.com |
5b6f3a167a3e1434a0bf2ef489f91a1678c97a32 | 39d10f7090c881c29c4dab8bfbfbb3937c2fa0d7 | /game/views.py | 34478b7c5d631ab7512098bc72730441c23f80ed | [] | no_license | garncarz/vietcong1.eu | 0afe7e2f3c0017cfb543d6945f30d78dc2c83198 | 259e9869d30e31b41ce1e0afca3956fafd31fd40 | refs/heads/master | 2021-01-10T11:12:15.166627 | 2020-01-02T00:54:35 | 2020-01-02T00:54:35 | 43,337,611 | 2 | 0 | null | 2020-01-02T00:55:01 | 2015-09-29T01:33:50 | Python | UTF-8 | Python | false | false | 1,782 | py | from django.contrib import messages
from django.shortcuts import redirect
from django.views import generic
from rest_framework import viewsets
from . import forms
from . import models
from . import serializers
class ServerListView(generic.ListView):
model = models.Server
def get_queryset(self):
retu... | [
"ondrej@garncarz.cz"
] | ondrej@garncarz.cz |
062cd6337e303e827f0ceaf260029aef2efbade4 | 1e2624cb526210d1fefe5dfd979555bac55d4d26 | /third/urls.py | 0606c8bc28ee5e9a97e937d726b79dcae0bf6873 | [] | no_license | taemtaem0707/inflearn_python_board | 1a149792d297580ffc13ef60a79394208c4eb751 | a4508ba139a8882c3515b37e98fcb13c823a21a8 | refs/heads/master | 2022-12-01T19:14:55.532778 | 2020-08-15T12:17:03 | 2020-08-15T12:17:03 | 287,739,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | from django.urls import path
from . import views
urlpatterns = [
path('list/', views.list, name='list'),
path('create/', views.create, name='restaurant-create'),
path('restaurant/<int:id>/update/', views.update, name='restaurant-update'),
path('restaurant/<int:id>/delete/', views.delete, name='restaur... | [
"taemtaem0707@google.com"
] | taemtaem0707@google.com |
3d257eebb84ad0064a3d1098a6ab95ca1d2478ce | 733ab64585aace7ff3f679ed7a1d61562c0d83af | /naive_SVP_by_hand.py | 15234d44e7f3ddc06f9399ea0a056990cec17060 | [] | no_license | sunchaopku/Naive_SVP_by_hand | 877ef7d3e4ca121528376a43658535ce083ff1cc | df9961b61083df52fce676007231fce69b8850c2 | refs/heads/main | 2023-09-04T10:31:42.554849 | 2021-11-13T15:01:54 | 2021-11-13T15:01:54 | 427,695,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | m = 5
n = 5
B = matrix(ZZ, m, n)
for i in range(m):
for j in range(n):
B[i, j] = ZZ.random_element(1, 10)
n_rows = B.nrows()
n_cols = B.ncols()
x = matrix(ZZ, 1, n_cols, 0)
coef = matrix(ZZ, 1, n_rows, 0 )
[Gram, U]= B.gram_schmidt()
Gram
U
G = []
for i in range(n_rows):
G.append(norm(Gram[i]))
BBT = B*B.transpose... | [
"noreply@github.com"
] | sunchaopku.noreply@github.com |
3217885c91b5ce893f45b536fad802172adeef77 | 98a05e66a7f8b1c778345ca6e36fd83b84f693f6 | /colibri.py | 764f54f0a98f4f6b952dd4ebc82989610065cddd | [] | no_license | 0206627/Colibri | 7ff1c951cfb6f1a2be50faaaf893d6c372f0f90a | 34a1d0f5a83c16bc533ed70773d594dfb5950486 | refs/heads/master | 2022-09-05T05:02:56.637791 | 2020-05-20T03:49:18 | 2020-05-20T03:49:18 | 261,040,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | from components.avionics_component import CPU, SD
from components.comms_component import Antenna
from components.power_component import Batteries, EPS
from components.thermal_component import TempSensor
from flight_control.con_op_manager import ConOpManager
from flight_control.flight_system import FlightSystem
flight_... | [
"0206627@up.edu.mx"
] | 0206627@up.edu.mx |
bdfa59941b83aa98b2faca5d7e8397a676989276 | a7425779e8932aa9f499c1fe5c20c18b5b0dcebb | /main/migrations/0004_remove_company_logo.py | 298ca7f71bed6d57164b9be4bf3d783ba018495d | [] | no_license | nandesh553/django-test | ad94e0664a28b6baa0c0f7642a7da26ee5b2b6c6 | 612f6a11068a67ba7d5abcf7967fdea25002c564 | refs/heads/master | 2020-08-06T13:57:00.323319 | 2019-10-05T18:21:01 | 2019-10-05T18:21:01 | 212,999,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | # Generated by Django 2.2.5 on 2019-10-05 12:36
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0003_auto_20191005_1623'),
]
operations = [
migrations.RemoveField(
model_name='company',
name='logo',
),
... | [
"guptanandeshwar553@gmail.com"
] | guptanandeshwar553@gmail.com |
406afe1c16cb054bada93da9cd18e427ec91dec9 | be3c759bd915887a384d1ef437ebf7277c75bd06 | /DynamicProgramming/HouseRobber.py | 3f955e0a2cf78dc730de9f68598e24f0ce96fb45 | [] | no_license | yistar-traitor/LeetCode | c24411763d541b6eaf9ccc344c3fd24f9a00e633 | 0dd48b990f8bd0874630b1860361c6b3b2c801f6 | refs/heads/master | 2020-09-28T20:46:45.016872 | 2019-12-18T02:25:34 | 2019-12-18T02:25:34 | 226,861,515 | 0 | 0 | null | 2019-12-18T02:25:36 | 2019-12-09T12:04:01 | null | UTF-8 | Python | false | false | 1,600 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/8/24 18:01
# @Author : tc
# @File : HouseRobber.py
"""
你是一个专业的小偷,计划偷窃沿街的房屋。每间房内都藏有一定的现金,影响你偷窃的唯一制约因素就是相邻的房屋装有相互连通的防盗系统,如果两间相邻的房屋在同一晚上被小偷闯入,系统会自动报警。
给定一个代表每个房屋存放金额的非负整数数组,计算你在不触动警报装置的情况下,能够偷窃到的最高金额。
Input1:[1,2,3,1]
Output1:4
解释: 偷窃 1 号房屋 (金额 = 1) ,然后偷... | [
"2448424636@qq.com"
] | 2448424636@qq.com |
4063445b6de2618ea6da9d05ed34ca6f414dc48a | 8b22730050501c72421abda7f55db583773aa37c | /ecvheo1/Queue & Deque/2164.py | 6c48e5596959bfc79582f84e7f209a74ffa2ef43 | [] | no_license | naekang/uos-algorithm | 5f98b1eae7c3ee1bde4942976ce18d12cf0d5f19 | a0c03cfc5571c6c6dda5a710bd6e40e7c699e5e0 | refs/heads/main | 2023-08-06T18:28:39.447373 | 2021-10-04T05:43:19 | 2021-10-04T05:43:19 | 396,826,675 | 0 | 0 | null | 2021-08-16T14:18:20 | 2021-08-16T14:18:20 | null | UTF-8 | Python | false | false | 233 | py | from collections import deque
n = int(input())
li = []
for i in range(n, 0, -1):
li.append(i);
cardDeque = deque(li)
while len(cardDeque) != 1:
cardDeque.pop()
cardDeque.appendleft(cardDeque.pop())
print(cardDeque[0]) | [
"ecvheo@naver.com"
] | ecvheo@naver.com |
5854bb09c8e7f904a02592d7ae0b2ae00c3ff580 | a60e1ac0359986566cc79bc17bbc3f2d99d28486 | /src/Blog_Project/wsgi.py | 264ad976d9ff130104479c5d5c9019fd152cc565 | [] | no_license | zahidul-islam-144/Django-Mini-Blog-Site | fa278015ee8753e8e8e9c4322cfc850ed69e1a21 | f0630ad46d1ffb905361da2752b32c0a8dbfb847 | refs/heads/main | 2023-06-09T17:08:51.885515 | 2021-07-03T15:24:30 | 2021-07-03T15:24:30 | 382,640,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for myProject1 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"zahidul.islam1@northsouth.edu"
] | zahidul.islam1@northsouth.edu |
794d8c6e6c666f6dd5bf58524acc120035e325b6 | 3a395b378f818ed37fde4f47ba1ab06dc2e4f8bb | /venv/bin/ipython | e68785c72c9c2799dd7a3a32e119d9c054032438 | [] | no_license | PoliNa1993/MyLab | 391e400a248aec3dd69019847c81582688e21534 | a334830a19669da022ff88762e4825abb1dfd597 | refs/heads/master | 2021-03-27T15:56:32.173159 | 2017-10-12T17:22:51 | 2017-10-12T17:22:51 | 105,839,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/Users/polinaaniskina/Code/EasyLab/venv/bin/python3.5
# -*- coding: utf-8 -*-
import re
import sys
from IPython import start_ipython
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(start_ipython())
| [
"ppoolliinnaa@hotmail.com"
] | ppoolliinnaa@hotmail.com | |
3a32305e83ae2659bc69b1f0bd9521a5a6cc84ac | 241ba34c76bd55ffd5891a37c637d52cb4fe3ad0 | /stylize_example.py | 60d8ac335a2c3afee4d091c4724821bb7a68d85a | [] | no_license | tingleshao/neural_style_tf | 7c2408e4a5e72849003790bdec23aade9fad8a49 | fb32e58c20b9986457a3ba6629c9443fa5cba192 | refs/heads/master | 2020-12-03T09:29:55.863070 | 2017-07-11T17:50:54 | 2017-07-11T17:50:54 | 95,625,544 | 0 | 0 | null | 2017-06-28T03:37:19 | 2017-06-28T03:37:19 | null | UTF-8 | Python | false | false | 6,783 | py | """
This file contains code to run neural_style.py It shows a few usages of the function and output the
results.
"""
from general_util import *
if __name__=='__main__':
# First download the required files.
download_if_not_exist('http://www.vlfeat.org/matconvnet/models/beta16/imagenet-vgg-verydeep-19.mat', 'im... | [
"jerrylijiaming@gmail.com"
] | jerrylijiaming@gmail.com |
09aa66f1a4fca3aee8b591e74eef0c4a89bf44e4 | 65ea7da5b6673ce453066b2e2d8c3bcb3d3c9b27 | /config.py | 2d81b4733df2385399efa73bdb8d68b1413c3a17 | [] | no_license | pramuditorh/i-man | 980dc5076862fb3ba99eb28824de5571573539a1 | 1ab40e98f5ed125705257fb7b63a74ad31e4da77 | refs/heads/master | 2021-02-09T12:16:55.984807 | 2020-03-04T11:39:40 | 2020-03-04T11:39:40 | 244,281,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import os
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY')
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL')
SQLALCHEMY_TRACK_MODIFICATIONS = False | [
"pramuditorh@gmail.com"
] | pramuditorh@gmail.com |
8f6281ac85780bc3cec088d17f9a584e9ed80bcf | 33b424627a5b4d7f7cc045043682b6e1955bbfc7 | /snp2sim_analysis/trajectoryAnalysis/regenerate_structs.py | 5f354bfaf1b3de4372ea5a8150a6afc74db84582 | [] | no_license | mccoymd/snp2sim | e24b198fa192d1eec5e4ed539d6fc88a66e1e236 | f5a48b46a829cfc7c8de0d7528d9875cee9c7dd5 | refs/heads/master | 2021-08-09T01:02:20.340214 | 2021-06-16T20:43:57 | 2021-06-16T20:43:57 | 137,887,506 | 2 | 4 | null | 2019-09-11T13:57:22 | 2018-06-19T12:19:08 | Python | UTF-8 | Python | false | false | 703 | py | import os
import sys
variants = []
vmd = "\"/Applications/VMD 1.9.3.app/Contents/Resources/VMD.app/Contents/MacOS/VMD\""
for file in os.listdir(sys.argv[1]):
if file != "analysis" and not file.startswith("."):
variants.append(file)
for v in variants:
os.system("python /Users/vikram/Documents/georgetown/summer_201... | [
"vshiv@berkeley.edu"
] | vshiv@berkeley.edu |
c0ff6baf8808cc36e46893b22eb24a2f76b8e3b5 | b24302829278afbc8d95fa6e70aa11fd9ff983b6 | /32/test_inventory.py | 5c047e5f9ce3141ee6d140a5398639781bdb42fe | [] | no_license | boraxpr/bitesofpy | 1e01351021153dfe8a69b958593e90c6438f84b0 | ff0176e029ddbc6469ecf79ea9fc1c3ff284c2e5 | refs/heads/master | 2023-05-10T22:27:01.093996 | 2023-05-07T11:59:52 | 2023-05-07T11:59:52 | 215,345,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | from inventory import items, duplicate_items
def test_change_copy_only():
items_copy = duplicate_items(items)
assert items == items_copy
# modify the copy
items_copy[0]['name'] = 'macbook'
items_copy[1]['id'] = 4
items_copy[2]['value'] = 30
# only copy should have been updated, check ori... | [
"naipawat.poo@student.mahidol.ac.th"
] | naipawat.poo@student.mahidol.ac.th |
654705c73e1b9d0cf21c5d9f68039be32a512999 | 6b915ee382f9b7e0b301315703f12e07fc1428a7 | /src/geneviz/tracks/data.py | bf3e5d53298c44942926dcc35990cd02213b2413 | [
"MIT"
] | permissive | asalt/geneviz | 44d0b714e6a616678905f777180c0f8c8bea9246 | fe217080721c8a597d4b1fe2d82920105e95ee24 | refs/heads/master | 2020-03-29T07:30:49.061053 | 2017-05-10T18:01:41 | 2017-05-10T18:01:41 | 149,667,991 | 0 | 0 | MIT | 2018-09-20T20:39:56 | 2018-09-20T20:39:55 | null | UTF-8 | Python | false | false | 3,093 | py | # # pylint: disable=W0622,W0614,W0401
# from __future__ import absolute_import, division, print_function
# from builtins import *
# # pylint: enable=W0622,W0614,W0401
# import itertools
# import seaborn as sns
# import toolz
# from geneviz.tracks import Track
# class DataTrack(Track):
# _default_kws = dict(mar... | [
"julianderuiter@gmail.com"
] | julianderuiter@gmail.com |
a6b1c9a03945b18be055d66eae19ce38b7c8e2f4 | 592e4c0c68b699db6d27a5c279efbb86b0c670e8 | /edittodo_project/urls.py | 2e96344340838ac9568bc7fa31cd87648c268f8e | [] | no_license | LawrenceGao0224/Django_todolist | 49317e034f3646b9a4aef7cd96613606a2184690 | 3707dce632a0bfa250e633f74c41fa3f125b1549 | refs/heads/main | 2023-04-10T04:58:06.050149 | 2021-04-21T04:01:29 | 2021-04-21T04:01:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | """edittodo_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cl... | [
"bightt53523@gmail.com"
] | bightt53523@gmail.com |
0b96170da6867728c3cc90e8b465f05174ef45d9 | d9892e27470b303254c71c526717480c40c4baf0 | /meiduo_mall/meiduo_mall/utils/models.py | ff469b7e0d1972f01d4a45a1623b15c8a9792b67 | [] | no_license | zhenMoses/meiduo_dj | d6f14d1aafaa5ee476f8f5763c2e7338d784a165 | 32b1a721f5ed433b1446054b4a0025849b5b65af | refs/heads/master | 2020-04-17T07:07:48.523432 | 2019-02-18T11:10:23 | 2019-02-18T11:10:23 | 166,355,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from django.db import models
class BaseModel(models.Model):
"""模型基类"""
create_time = models.DateTimeField(verbose_name='创建时间', auto_now_add=True)
update_time = models.DateTimeField(verbose_name='更新时间', auto_now=True)
class Meta:
abstract = True # 表示此模型是一个抽象模型,将来迁移建表时,不会对它做迁移建表动作,它只用当... | [
"root@DESKTOP-6I0PKOQ.localdomain"
] | root@DESKTOP-6I0PKOQ.localdomain |
a8d3a0bbf3a7644dcfbf3797cb61e2b1791a10c3 | 56f8b95b75d3ea9e8a316ef43eaa61e5376feaec | /vocab.py | d91c147f200c8ca2e1ff4acf47a6231703baa808 | [] | no_license | p3i0t/TreeLSTM | 447ee8e8bf037275cd51982a7598aa97bc4c1dce | 1e0962fe46c0f50f2c42e8aba0e139bf826b622d | refs/heads/master | 2022-03-08T01:44:30.238286 | 2017-11-28T08:05:29 | 2017-11-28T08:05:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | # vocab object from harvardnlp/opennmt-py
class Vocab(object):
def __init__(self, filename=None, data=None, lower=False):
self.idxToLabel = {}
self.labelToIdx = {}
self.lower = lower
# Special entries will not be pruned.
self.special = []
if data is not None:
... | [
"1075837750@qq.com"
] | 1075837750@qq.com |
f95d00e357e663887c6fdebd6528e2754a4d7a64 | 43b59d7a8cea896a84eb0a658cda3601e30e24e5 | /9021/quiz_finish/quiz_3.py | 606990d4dfac803ab14516abd5ddd0cbc311f3bc | [] | no_license | VigoWong/UNSW_summary | 71bc5754dd19b965eeffabb4f320b5de9c88d118 | bafe369f984e6518c8270371c1cc8cd9103c7432 | refs/heads/master | 2022-07-07T12:49:56.156607 | 2020-05-10T08:27:18 | 2020-05-10T08:27:18 | 255,821,689 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,288 | py | # COMP9021 19T3 - Rachid Hamadi
# Quiz 3 *** Due Thursday Week 4
# Reading the number written in base 8 from right to left,
# keeping the leading 0's, if any:
# 0: move N 1: move NE 2: move E 3: move SE
# 4: move S 5: move SW 6: move W 7: move NW
#
# We start from a position that is the unique p... | [
"z5247672@ad.unsw.edu.au"
] | z5247672@ad.unsw.edu.au |
e9dc572135ea4ef8d42a863b163b9987a11db5d3 | 123d2df6d9d1e655ff72e1cd17ffb50a72dc7e3a | /Tic Tac Toe.py | d71f353f17347b7780de8f9bcc748ae0a0cfc58c | [] | no_license | PrabhjitDutta/Tic_Tac_Toe | 6ba6015283efac9dff138e247d277a8b4a2d50dd | 43a6f484e54635dbd5cff8689a856d60f508d54e | refs/heads/master | 2020-03-15T12:04:48.202760 | 2018-05-04T12:20:33 | 2018-05-04T12:20:33 | 132,135,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,989 | py |
def displayTable(l):
print(" {x} | {y} | {z}".format(x=l[0][0], y=l[0][1], z=l[0][2]))
print(" {x} | {y} | {z}".format(x=l[1][0], y=l[1][1], z=l[1][2]))
print(" {x} | {y} | {z}".format(x=l[2][0], y=l[2][1], z=l[2][2]))
def askinp():
while True:
try:
... | [
"duttaprabhjit6@gmail.com"
] | duttaprabhjit6@gmail.com |
1c4504c44308a745d32f5b358d7c5f292421063f | e871c676bdea8fa70c5024090ff90dc07068c549 | /app.py | 37e0336abca166a506c83b6bdfe724c32cc6fd2d | [
"MIT"
] | permissive | vishcomestrue/Restaurant-Review-Classifier-Using-NLP- | 72907ad8b8d977c9a4020e404109592768c27292 | 92b8df361f23209cfd93b70e4c118bf20364dccb | refs/heads/main | 2023-08-25T20:45:16.185900 | 2021-10-17T05:48:17 | 2021-10-17T05:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | from flask import Flask,render_template,url_for,request
import pandas as pd
import pickle
clf = pickle.load(open('restaurant_nlp.pkl', 'rb'))
app = Flask(__name__)
@app.route('/')
def home():
return render_template('home.html')
@app.route('/predict',methods=['POST'])
def predict():
if request.m... | [
"noreply@github.com"
] | vishcomestrue.noreply@github.com |
26322a2feb6508fe67e3f7a9fea395c1a1a4979d | 48f68936bacabf35193d6765f91bab49471ffaf5 | /myapp/migrations/0011_auto_20210211_2222.py | e795b10f743ca8b7dcb26145a36b6fb559b26959 | [] | no_license | Ekkasit1998/django-ecom | 21a51b3c30e9f8e79fbbf2f5293a0f99aa4681f2 | 6af8ccc4172f260f0e658ba40acac3a474e5bf55 | refs/heads/main | 2023-05-15T09:32:08.100240 | 2021-05-31T20:24:53 | 2021-05-31T20:24:53 | 372,594,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | # Generated by Django 3.0 on 2021-02-11 22:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0010_auto_20210205_1502'),
]
operations = [
migrations.AddField(
model_name='orderpending',
name='silptime',
... | [
"ekkasitpon1998@gmail.com"
] | ekkasitpon1998@gmail.com |
71409e1515a5187e496afd7370184a782b494726 | ed0f8b22c2b37d8066178d79a74623077a4afdce | /crslab/data/dataloader/redial.py | 6cd128902bcdd8e82628d7d49e0d1bf15731ce0f | [
"MIT"
] | permissive | VanChengkai/CRSLab | 5f1c4a0a7f14be34013d4c8296350f0662066f1d | 8b69dcbb8f8568244bb25f29f89bcd227e80d69c | refs/heads/main | 2023-04-15T04:36:05.120971 | 2021-04-25T16:16:17 | 2021-04-25T16:16:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,299 | py | # @Time : 2020/11/22
# @Author : Chenzhan Shang
# @Email : czshang@outlook.com
# UPDATE:
# @Time : 2020/12/16
# @Author : Xiaolei Wang
# @Email : wxl1999@foxmail.com
import re
from copy import copy
import torch
from tqdm import tqdm
from crslab.data.dataloader.base import BaseDataLoader
from crslab.data.datal... | [
"wxl1999@foxmail.com"
] | wxl1999@foxmail.com |
64d7089ac1740663367e9a615c9d00c9e0f7f813 | db0b01788ed76e5b3c387361916891c81c36689f | /Instruction.py | 4ec6dff3caecedd9c273512ecc942e2737ee22cd | [] | no_license | kushalmehta13/MIPS-CPU-Simulator | 83ef071252a69aa8577719605348577ad91b0b94 | 31da72febb776d78dda75cb71e294b5ec60095d8 | refs/heads/master | 2020-08-15T18:46:47.618575 | 2019-11-16T18:53:50 | 2019-11-16T18:53:50 | 215,390,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | class Instruction:
def __init__(self, inst):
self.inst = inst
self.instType = ''
self.op1 = ''
self.op2
self.op3 = ''
self.offset = 0
def setOp1(self, op1):
self.op1 = op1
def setOp2(self, op2):
self.op2 = op2
def setOp3(self, op3):
... | [
"kushalmehta13@gmail.com"
] | kushalmehta13@gmail.com |
71c7390bbd5f6de3c2210e3b57a6826df6b81282 | ff5f3e43acb6dd26b63d386d1e90b4b3795b940e | /data/scam_pagerank2.py | 106a0d2e2b867ced0d27a652e9bd453af52ceea4 | [] | no_license | manugoyal/wikipedia-pagerank | de7eb41042194bbc59fd7e6e335644fa556d0fd5 | ca82aab92cd3dc9d497d16a6fb7e2b16f416b420 | refs/heads/master | 2021-01-10T07:53:55.095560 | 2015-10-22T15:09:01 | 2015-10-22T15:09:01 | 44,555,631 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,612 | py | # Tool that suggests ways to artificially inflate your pagerank, without the
# restriction that you can only edit public pages.
import data_utils
import pagerank_utils
import copy
import numpy as np
def get_clean_data():
"""Returns the true pageranks, backlinks, outlinks_count, etc for wikipedia
as a map. Thi... | [
"manu.goyal2013@gmail.com"
] | manu.goyal2013@gmail.com |
87e241ebd07b7b4b41c2e8bc0b2e3e0de0383382 | 340fd9a6345a1fd6ea5c494fd1e25ef1a15cd83d | /my_blog/celery_tasks/email/tasks.py | e1f12962f31abad01edce72576156599fb1c4f27 | [] | no_license | ltfred/blog | 48024992922d570db7042d56855f6c28b7c581f8 | 9e7c9253a4576cbc443edea8fdebed92733d6f9f | refs/heads/master | 2020-07-26T15:24:24.215702 | 2019-09-23T02:18:55 | 2019-09-23T02:18:55 | 208,689,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | from django.core.mail import send_mail
from django.conf import settings
from celery_tasks.main import celery_app
@celery_app.task(bind=True, name='send_reset_email', retry_backoff=3)
def send_reset_mail(self, to_email, password):
# 标题
subject = '重置密码邮件'
# 内容
html_message = '感谢您使用Fred的个人网站,您的密码重置为:{},请... | [
"ltfred@163.com"
] | ltfred@163.com |
5477872da5a91004aec0826004a9730fb5d9934b | d0c82d7665c3b676b56097cfa944abe18f709c7e | /Python相关/捷联惯导相关/work2/read.py | 61e46bb888a933564ad4b7225730fc10adcd00e0 | [] | no_license | LRoel/collection | 78e7d83e942cfa305105b9584712a9977d0334e9 | 2890ac462c68e3b0f7bf8f30b208bbdc458521ba | refs/heads/master | 2021-05-16T12:29:21.102179 | 2017-05-11T12:56:26 | 2017-05-11T12:56:26 | 105,291,256 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,272 | py | #!/usr/bin/env python
# import rospy
import serial
import sys
import string
import operator
import numpy as np
import math
import matplotlib.pyplot as plt
# from sensor_msgs.msg import NavSatFix
# #print("import Nav")
# from work1.msg import comb
# #print("import comb")
glv_Re = 6378137
glv_f = 1 / 298.25
glv... | [
"lroel@LRMB.local"
] | lroel@LRMB.local |
6f44b107077e908b6ebd5b31c3cb038207655492 | 07b40e821b74fccd8e6601581ddd5d7fb89b613c | /geekbangpython/python_demo/07/zodiac.py | 7f9d107c9e09d819a86525954d66c1f22c95cc8f | [] | no_license | Natt7/python-learning | 4c3c6e402a8916bf558e0ae44a0f7d765b296cb0 | 9c7d860863f240b339aaf115757b901bc2952fd0 | refs/heads/master | 2020-04-10T22:05:08.509006 | 2019-02-12T13:35:13 | 2019-02-12T13:35:13 | 161,314,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | #记录12生肖,根据年份判断生肖
# zodiac_name = (u'摩羯座', u'水瓶座', u'双鱼座', u'白羊座', u'金牛座', u'双子座',
# u'巨蟹座', u'狮子座', u'处女座', u'天秤座', u'天蝎座', u'射手座')
# zodiac_days = ((1, 20), (2, 19), (3, 21), (4, 21), (5, 21), (6, 22),
# (7, 23), (8, 23), (9, 23), (10, 23), (11, 23), (12, 23))
#
#
# (month, day) = (2, 15)
#
#... | [
"natt.ni@qq.com"
] | natt.ni@qq.com |
94e655d50d9a0aa7e89be11d2ab8857b6b26f1bb | 94c70198b34198069fbd3b7aa29c828490bad391 | /ex090.py | 356368b5838ebf8e8330bf21b360ac97273dc840 | [
"MIT"
] | permissive | danilodelucio/Exercicios_Curso_em_Video | 5254fbf45807ac948fb93eb96c1335070fa22f5b | d59e1b4efaf27dd0fc828a608201613c69ac333d | refs/heads/master | 2022-04-17T15:50:16.130487 | 2020-04-22T11:44:46 | 2020-04-22T11:44:46 | 257,882,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py |
ficha = dict()
ficha['Nome'] = str(input('Nome: '))
ficha['Media'] = float(input(f'Média de {ficha["Nome"]}: '))
if ficha['Media'] < 5:
ficha['Situação'] = 'Reprovado'
elif ficha['Media'] >= 8:
ficha['Situação'] = 'Aprovado'
else:
ficha['Situação'] = 'Recuperação'
print('-' * 30)
for k, v in ficha.items(... | [
"danilodelucio@gmail.com"
] | danilodelucio@gmail.com |
adc03defaa2493bdf9c1e47722a936d366ad2fa3 | 98032a164e8a09c792879a0ee99aa01ee875b8c9 | /homework/mt0a/mt0a.py | 6feeec91c79f5e4699d1754f10241aad7b6b2805 | [] | no_license | olivia-salaben/astro98sp19 | 0056f143c666ba77f6f67ffa5e59ab293e8677c6 | 57a21661b4e1b736bb4498ce259b882c534461f1 | refs/heads/master | 2020-05-14T12:02:55.464087 | 2019-03-12T06:18:31 | 2019-03-12T06:18:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,311 | py | """ASTRONOMY 98/198 SPRING 2019"""
"""MIDTERM PART 1: REVIEW"""
"""
Hey everyone, Alex here. This week's "homework" (midterm part 1) is going to be a review.
It's come to my attention that the lectures have not been fully in line with the homework,
so this week I'm going to try to write something that is hopefully a l... | [
"nrui@berkeley.edu"
] | nrui@berkeley.edu |
3662c862ea6338dc8755352414e07032cbac6664 | e1175d0d4bd4fb0a19c1c55cf92c5acf2fcf6e38 | /holocron/models/__init__.py | 7991fdd3ad617336a208ea82800509448a481442 | [
"MIT"
] | permissive | waterbearbee/Holocron | 96db7103a18994dcd14aac260bbc36b70b5d1974 | 2b3c8a4f2ef59b9170546bd1d7907a971d47422e | refs/heads/master | 2022-05-24T21:34:16.348575 | 2020-05-03T21:10:37 | 2020-05-03T21:10:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from .res2net import *
from .resnets import *
from .darknet import *
from .detection import *
| [
"noreply@github.com"
] | waterbearbee.noreply@github.com |
3e49c2fbb08e1b3681c2720668a763a157e7f454 | 01874b9d88c5d8d16ed73303685e98b007d025e8 | /tritium/apps/subscriptions/migrations/0005_subscription_abi_methods.py | d8e567317e1c5af629ccb0e529243eab91fb0518 | [] | no_license | oohmygaud/txgun-backend | 191dce754f6b84855b3625564ed1722033a6ab76 | 0e96798fda4a1666f309dbfc30a9dee1bb3eabe7 | refs/heads/master | 2022-05-02T05:01:18.147765 | 2020-03-31T18:24:55 | 2020-03-31T18:24:55 | 251,443,986 | 2 | 0 | null | 2022-04-22T23:15:03 | 2020-03-30T22:36:24 | Python | UTF-8 | Python | false | false | 425 | py | # Generated by Django 2.0 on 2019-05-07 16:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('subscriptions', '0004_subscription_specific_contract_calls'),
]
operations = [
migrations.AddField(
model_name='subscription',
... | [
"worshamaj@gmail.com"
] | worshamaj@gmail.com |
3b8094b6039760bf30e4c185659fa96eeb16bb8a | e812a5f022071c9bec7e9e9e2466887ba7f8ae4c | /mysite/mysite/urls.py | bfa2fb5151045a6863bc31456d3a3538e2d6ac8b | [] | no_license | jvfarrell/my-django-site | 1fd7993155ae41a9c0307ef1f53e5a7ecd5454cb | 9d04c99e0b1f6a719b4b37ee97f624ea7a1991f7 | refs/heads/master | 2022-11-23T05:46:31.811411 | 2017-06-16T17:47:28 | 2017-06-16T17:47:28 | 91,369,330 | 1 | 1 | null | 2022-11-21T15:15:40 | 2017-05-15T18:10:12 | Python | UTF-8 | Python | false | false | 1,564 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"jvictorfarrell@gmail.com"
] | jvictorfarrell@gmail.com |
d19106c7aa31601b491ac5931a4fe3aecc22e1a3 | 32fd08556f6b00bcdb8266ec00cefa7f715b44b0 | /src2/ch5/recog/cifar10-mlp.py | 59a877df72c7b904ec3c24d9a18d091db4d27e27 | [] | no_license | TakahashiKazuki-0604/book-mlearn-gyomu | ae2c16143481b316a6da941a0140cea2fb999e8f | bf4248afca645ef4b3799dad70a29977c8179813 | refs/heads/master | 2022-09-19T23:01:53.405437 | 2020-05-29T14:16:56 | 2020-05-29T14:16:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | import matplotlib.pyplot as plt
import keras
from keras.datasets import cifar10
from keras.models import Sequential
from keras.layers import Dense, Dropout
num_classes = 10
im_rows = 32
im_cols = 32
im_size = im_rows * im_cols * 3
# データを読み込む --- (*1)
(X_train, y_train), (X_test, y_test) = cifar10.load_data()
# データを一... | [
"kujira@kujirahand.com"
] | kujira@kujirahand.com |
ead5f64b33ff99ac62a5610baa54d4bb1cf71562 | 4a03ee810730156cebe9e07d0f02984a1e4f98dc | /pandas/tests/indexing/multiindex/test_sorted.py | b1db930765093c1212aad66e4e229eeced7ea34a | [
"BSD-3-Clause"
] | permissive | iRaied/pandas | 2779fc4bf1b6b4896ef5f673dfdfd86310c1b176 | b9e46ad1b10bce78464a07454dafd680273af6ff | refs/heads/master | 2020-05-16T09:41:52.571366 | 2019-04-23T04:45:01 | 2019-04-23T04:45:01 | 182,958,410 | 1 | 0 | BSD-3-Clause | 2019-04-23T07:25:03 | 2019-04-23T07:25:02 | null | UTF-8 | Python | false | false | 3,401 | py | import numpy as np
from numpy.random import randn
from pandas.compat import lzip
from pandas import DataFrame, MultiIndex, Series
from pandas.util import testing as tm
class TestMultiIndexSorted:
def test_getitem_multilevel_index_tuple_not_sorted(self):
index_columns = list("abc")
df = DataFrame... | [
"jeff@reback.net"
] | jeff@reback.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.