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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3a87d592cde203deedef3e8df7131bca17d15baf | f508d22d4ce8a350c14dfbc783991a1fe59e5547 | /Video/Django_StreamingHttpResponse_and_countdown_in_loop.py | a753a1b1f057470f2356a97858ffb9af31804835 | [] | no_license | zDragon117/SomeCrapCode | e7459e42325e29c051da6d5065ea77cc1db600ac | 812c6fade4e4e63eea5ddfd75e3b629d68c6b0e9 | refs/heads/master | 2021-10-25T00:08:12.040472 | 2021-04-15T16:08:51 | 2021-04-15T16:08:51 | 249,888,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | globalIsOver = False
def gen_camera_stream_resp(
camera_source,
fps=10,
scale_width=720,
scale_height=-1,
):
countdown(120)
while True and not over():
try:
frame = camera_source.get_stream_data(
scale_width=scale_width,
scale_... | [
"thepathtosuccess1346@gmail.com"
] | thepathtosuccess1346@gmail.com |
5661147fb32392e5da9c640eb4c2970ac23560ef | f5b95b7b520d6986eed909eebba7a13d839b2164 | /function/variable length arguments/demo2.py | 45287652be2149fa1b24093b8f42d125b7be27e1 | [] | no_license | NeenaBenny1995/Luminaronlineclassneenabeny | 0a5e2e80c70aca5d60aee39f3e4872818abf4f20 | 2753b7f293e072b6654bf4b5efab05a6fe98756c | refs/heads/master | 2023-04-30T08:30:10.908393 | 2021-05-20T08:25:54 | 2021-05-20T08:25:54 | 368,791,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | def print_employee(**kwargs):#accept argument as key value pair
print(kwargs)
print_employee(id=100,name="Arjun",salary=10000) | [
"neenabenny555@gmail.com"
] | neenabenny555@gmail.com |
499a03357c8ae0101e94a0ea850bdfd693fd861f | 77fc5af96da1d461c86c7f9668b64b99ca04a1b6 | /codes/montecarlo.py | 32c0ce13aa246aa42786f17cd7c0371a3c56965c | [] | no_license | rene-d/edupython | 5b6bc8ddb5eb8ec896ee70fb961d4e689af1075a | 1261d0c7aae17bb2d4ff3370860768b73ba4172d | refs/heads/master | 2020-11-24T10:07:18.504472 | 2019-12-21T21:03:08 | 2019-12-21T21:03:08 | 228,099,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | # Découpe d'un carré en 3 zones
# https://edupython.tuxfamily.org/sources/view.php?code=montecarlo
# Les zones sont les domaines du plan délimitées par les courbes
# des fonctions carré et racine carrée, à l'intérieur du carré unité,
# dans un repère orthonormal.
# Les aires sont obtenues par la méthode de Monte Carlo... | [
"rene.devichi@gmail.com"
] | rene.devichi@gmail.com |
6a6975ede1ec62e3b6946074fc686843e6cf3c4a | d1cf5e22ddf7f03ca032a405455802794273bd7b | /init.wsgi | 9e8ff9cd8f5edeb7e8328139524937a2c02b3c63 | [] | no_license | bibek-p/psabots | 4af99dac0b4d2f3d82396ccb85bd3c2bde03ac3d | a9b763ae132cdab73a91794dbd6568e2d3be3e05 | refs/heads/main | 2023-08-02T16:41:04.053578 | 2021-09-16T05:56:40 | 2021-09-16T05:56:40 | 405,976,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | wsgi | activate_this = '/home/bitspan/testing_bitspanindia_com/venv/bin/activate_this.py'
with open(activate_this) as file_:
exec(file_.read(), dict(__file__=activate_this))
import sys
sys.path.insert(0,"/home/bitspan/")
from testing_bitspanindia_com import app as application
| [
"root@dedi.bitspanindia.com"
] | root@dedi.bitspanindia.com |
bdb70c823e7f2efc492d211d2b17fc90893b5be9 | 40c4ffab36810c3d43825f61a14c61a4ede8b6d2 | /venv/mysite/polls/models.py | d347611bf71a2f8a1fa47626da08b2f7df5d760d | [] | no_license | Andrei705/pythonProject | d2ffa0c1731e4bc42f98a51edd0df5ccf6620260 | ac9c97b24c982edb6615e16a598583cbc828490f | refs/heads/master | 2023-09-01T03:05:25.929920 | 2021-10-19T10:55:53 | 2021-10-19T10:55:53 | 388,744,103 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | from django.db import models
# Create your models here.
class Object_folder(models.Model):
name = models.CharField('Папка', max_length=100)
name_films = models.CharField('Название фильма', max_length=100)
name_cinema = models.CharField('Название кинотеатра', max_length=100)
def __str__(self):
... | [
"75162990+Andrei705@users.noreply.github.com"
] | 75162990+Andrei705@users.noreply.github.com |
73a032a0612a77d65c7a07200994e83c69f92ce3 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2751486_0/Python/TheTaintedOne/solution.py | 746f30c4b1aac93a50dee4c7e781e4c5746595eb | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | import sys
lines = sys.stdin.readlines()
ntests = int(lines[0])
vowels = set(["a", "e", "i", "o", "u"])
linenum = 1;
for c in xrange(0, ntests):
name, csize = lines[linenum].split()
csize = int(csize)
# print "[" + name + "]"
# print start_size, num_others
cons = [];
for cc in name:
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
00df633d7c8b33c3a85ec2a26c6b5ab806db56b6 | d2b4a7bcf22f494edd7bc8d91e256f2c95fc3e46 | /0x0A-python-inheritance/1-my_list.py | 586dffe1974e28f7ddbb7e400964310cf48a0d3c | [] | no_license | sidcarrollworks/holbertonschool-higher_level_programming | 72c56d90b24eab9b7fcb1861be17be2019db4041 | 26295d1e3c1e68ad22a7b3fe28fae2e938fadd9a | refs/heads/master | 2022-05-03T23:10:49.527658 | 2018-05-10T19:40:40 | 2018-05-10T19:40:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | #!/usr/bin/python3
'''
Inherit
'''
class MyList(list):
def print_sorted(self):
print(sorted(self))
| [
"squidcarroll@gmail.com"
] | squidcarroll@gmail.com |
83497eb9655ea0c266abbffacf149e61e78c537c | f521f594f6c9189433b4fcab5155d1194fcbeac2 | /parse/log_decorator.py | 83d1568cc5671d5fc685d6ac4f49e3d36e860ef2 | [] | no_license | easyinplay/tor_spider_scrapy | cd1a8241ff1e744a10d812998ea49ce38a6c310e | 736285d1bd0a82b4e1db2857a232a1623993482a | refs/heads/master | 2023-02-02T11:03:45.312559 | 2020-12-22T08:57:43 | 2020-12-22T08:57:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | import os
import logging
import functools
from datetime import datetime
def _logger():
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
sh = logging.StreamHandler()
today = datetime.now()
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # 上一级目录
# fh = loggin... | [
"chen752869839@qq.com"
] | chen752869839@qq.com |
72739765e377bc2c3ededd2471ef4acd179e7817 | f0f80303b43aa2b248eb8bd8b97c0fa42e8dd7c2 | /src/data_visualization/display_pairwise.py | 22c49dc6d722b1fdd7ff44550dde17a85c52b273 | [
"MIT"
] | permissive | CrivelliLab/Deep-Protein-Scoring | 7377bb02bbd72ccddf4faaa25a5d90310097f767 | 059791a54133c2d03eb14cf98fba1c6ef27c8f49 | refs/heads/master | 2020-05-04T23:55:23.606379 | 2019-03-23T19:17:28 | 2019-03-23T19:17:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | '''
display_pairwise.py
Updated: 3/20/18
'''
import os
import h5py as hp
import numpy as np
import matplotlib.pyplot as plt
# Data parameters
data_folder = '../../data/T0882/'
################################################################################
if __name__ == '__main__':
# Set paths relative to thi... | [
"rz4@hood.edu"
] | rz4@hood.edu |
be22c1e11ed28eafca08cf5bcfe0da6b20b66836 | 7c13de6b7831f99b8790452e03953e5ded0aca64 | /classy_vision/generic/distributed_util.py | ec5211f4123496d80e7c9396eef6df0d0e8b1338 | [
"MIT"
] | permissive | vreis/ClassyVision-2 | 3f99d3c06ec422e81e29b0f38f02a7ce56e480d6 | 80aa4d421d1203b4b92bb9b848ccc866816e4f6d | refs/heads/master | 2021-07-15T18:03:14.212417 | 2019-12-06T16:48:19 | 2019-12-06T16:50:46 | 226,377,934 | 0 | 0 | MIT | 2019-12-06T17:27:46 | 2019-12-06T17:27:45 | null | UTF-8 | Python | false | false | 5,284 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
# Default to GPU 0
_cuda_device_index: int = 0
# Setting _cuda_device_index to -1 internally implies th... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
cb32c7cea02c9d8b4ab326ff7d7b6217ae6c00d9 | 1d67056d57c656f6d64ab315b60c36c62317ad50 | /nameGender.py | 538bf13eedfa42510b9133812260f40bee940b4f | [] | no_license | Drob-AI/Book2Ontology | dd7d6462bf14f6c721368eb2afca90ed3284f1f5 | b3daa6a491acafe0b4388f4de9b566d7ec760792 | refs/heads/master | 2021-01-17T17:25:34.073352 | 2016-07-08T00:51:21 | 2016-07-08T00:51:21 | 62,723,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,844 | py | from nltk.collocations import TrigramAssocMeasures
from nltk.collocations import TrigramCollocationFinder
from random import sample
def read_raw_data(file_name):
f = open(file_name, 'r')
raw_data = []
for line in f:
raw_data.append(line)
f.close()
return raw_data
def char_type(characte... | [
"bladespinner@gmail.com"
] | bladespinner@gmail.com |
b34e8eb425d1099c4b4358e74814477818dfc003 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/vulkan-deps/vulkan-validation-layers/src/scripts/common_ci.py | 88e5f1af7cda75fbf03793a27e6bf5f32ce53c52 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 10,787 | py | #!/usr/bin/python3 -i
#
# Copyright (c) 2015-2017, 2019-2023 The Khronos Group Inc.
# Copyright (c) 2015-2017, 2019-2023 Valve Corporation
# Copyright (c) 2015-2017, 2019-2023 LunarG, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licen... | [
"jengelh@inai.de"
] | jengelh@inai.de |
64822061c6bd698ceeda74ad46900f76caebdc88 | bfc5b2f0743c6e9adb877fa891d874529760b007 | /deb-update.py | 18034002a5b26f694c39deac88fe1fe16ca05cfc | [] | no_license | MrNathanSmith/arbitrary-python | 930603b760bf46250a71e5729517e90f8bff3f5e | 80e5dd256bddae750a1ab941dedbef8319870ed1 | refs/heads/master | 2021-01-21T23:24:02.032325 | 2017-06-23T18:10:11 | 2017-06-23T18:10:11 | 95,242,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | #!/usr/bin/python
import os
import sys, traceback
import time
print ""
print "A Simple Update/Upgrade Python Script For Debian"
print ""
#Options
print "~~~~~~~~~~~~~~~~~~~~~~~"
print "Update/Upgrade Debian"
print "~~~~~~~~~~~~~~~~~~~~~~~"
print "(1) System Update"
print "(2) System Upgrade"
print "(3) Distribution ... | [
"noreply@github.com"
] | noreply@github.com |
c8d58bad12f2d00dbaaa0a198b391fe827e89ccc | 79a60fa1daeaa9dbe0cb551423fe28c2f2cf7da3 | /websocket/bottle/mqttwsweb.py | a0e1c343be062aba3efa12502005552a8a3d9e11 | [
"MIT"
] | permissive | swkim01/mqtt | a505494815cd5f487cbc1e434fd0546c1bc08eac | 030d9106bf791b54538aac8789df872abaa96e17 | refs/heads/master | 2021-01-10T22:07:04.788958 | 2019-07-19T01:41:07 | 2019-07-19T01:41:07 | 42,844,241 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | #-*- coding: utf-8 -*-
from bottle import route, get, request, template, response, static_file
from bottle import run
#import json
host="<HOST IP>"
port=8008
wsport=9001
@route('/mqttws31.js')
def mqttws31():
return static_file("mqttws31.js", root=".")
@get('/mqttwschart')
def dht22chart():
return template("... | [
"swkim01@gmail.com"
] | swkim01@gmail.com |
68ea6c85f64c98acc2cb88a841724df7e5d89167 | 925cb9f77ca120fa33f5b68bb0e733942c33fe0c | /Dojo_survey_with_validation/server.py | 4d011a44228c28efa4ee729c1b6a81967212a02e | [] | no_license | dhurataK/Python_Flask | 58c309813ad455e247b1e653ec8134f23e0667f4 | dd55a6800addf8eb6a87f65b4ef8f7b41d511d1b | refs/heads/master | 2020-12-31T06:22:40.073635 | 2016-09-23T15:28:43 | 2016-09-23T15:28:43 | 68,420,179 | 0 | 1 | null | 2016-09-18T22:47:04 | 2016-09-16T23:05:18 | HTML | UTF-8 | Python | false | false | 1,082 | py | from flask import Flask, render_template, request, redirect, session, flash
app = Flask(__name__)
app.secret_key = "verySecret!"
@app.route('/')
def home():
return render_template('index.html')
@app.route('/result', methods=['POST'])
def validate():
name = request.form['name']
location = request.form['loc... | [
"dhuratakamberi_@hotmail.com"
] | dhuratakamberi_@hotmail.com |
6eff69d26d7e3eaee11c0cb00bccf058d78dcb99 | 7640f7e8ea742cd8938e62d165929a044036cd31 | /BTransR_train.py | c4897af6963778cae662897ed0a2e671b06ded2a | [] | no_license | Jason101616/BTransX | 94fffe0598ca7f073e28319cbea3ca54a5cc9c39 | ab3e11b693705b3cd74c92404932b0542d988ad9 | refs/heads/master | 2021-06-20T19:49:28.063663 | 2017-08-15T03:51:03 | 2017-08-15T03:51:03 | 100,281,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,347 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2017-03-29 14:06
# @Author : Zhang Du
# @File : BTransR_train.py
import numpy as np
from constants import *
import json
import random
class BTransR:
def __init__(self, step = 0.001):
def load_aligned_triples():
with open(path_align... | [
"duz1@andrew.cmu.edu"
] | duz1@andrew.cmu.edu |
68e3dbcc684161b2f8d32f752aaad8f778937993 | 9f6b9a40444df2b09960b5b531232ee6975e74dd | /level_1.py | 13d4ca664e2d9291979dc351d30188b94817ea48 | [] | no_license | nildiert/hodor | f60e94f4a64b8b0217c760104f501a6a586d4129 | 3c8b2df854ed2af6c5345250bc8f557b52761aee | refs/heads/master | 2020-06-02T06:19:44.740188 | 2019-06-10T02:59:23 | 2019-06-10T02:59:23 | 191,067,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | from lxml import html
import requests
import time
def req_values(url):
page = requests.get(url)
tree = html.fromstring(page.content)
me = tree.xpath(next_val)
return ([page, tree, me])
try:
url = 'http://158.69.76.135/level1.php'
data = {'id':'730','holdthedoor':'submit'}
next_val = '//td[... | [
"niljordan23@gmail.com"
] | niljordan23@gmail.com |
3b731d40bb96886cefc781104bd86c32f03bdaea | 67c2b8719515a00714ae07e6be1257d5986b9528 | /pyQT/笔记/列表.py | 697b5217758465f5b48de7193aa605a2a8f69167 | [] | no_license | zhangxf2020/jeee | b980cfda0e2b79b1e736ff5b4fea38fdfea9a89d | 922a9ec42591397bf1a7f94cd84f63d459f2dbae | refs/heads/master | 2021-02-19T10:04:53.804492 | 2020-03-16T01:25:40 | 2020-03-16T01:25:40 | 245,301,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | a = '32.123'
print('.' in a) | [
"fan102684@163.com"
] | fan102684@163.com |
14bfb45539a15719c26658a0696082529fc4bc0f | 65465c6a8ffde330dea87c347b5a6f8345f0bdca | /p3/urls.py | 2cdfbf5928658f3f5bc0f17c9e063acab2b297b6 | [] | no_license | Saranyaram890/p3 | 27a0fa81ea16772e73b8a61fb306893c63977ba5 | 48fad442244da2d97f2444806540bc0a133e3e45 | refs/heads/master | 2022-11-22T14:51:58.800929 | 2020-07-23T02:04:37 | 2020-07-23T02:04:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | """p3 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-based view... | [
"anburangaa@outlook.com"
] | anburangaa@outlook.com |
7ba038517977014232bb369d1a1be06c6546ca03 | fcc47f227245e523e5603c7ac2b86ed301e91874 | /chapter02/work04.py | eccc4f7cd6998df9d0ba6c7685efc6f4151b0cde | [] | no_license | programmingkids/python-level3 | f420566c104f2ffe411afbad0a67ae72acfd3584 | 52a0abdf3410060edfcf69f0395b85f754def06b | refs/heads/master | 2022-12-15T02:16:01.102846 | 2020-09-17T08:18:00 | 2020-09-17T08:18:00 | 289,796,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | colors = ["red","blue","green","yellow","pink"]
| [
"ec2-user@ip-172-31-11-152.ap-northeast-1.compute.internal"
] | ec2-user@ip-172-31-11-152.ap-northeast-1.compute.internal |
050414edb4e192e13b8368dffaf21774c78ca1cb | 163554ecfd9c3b059171e42166cf2b4c550e0ea7 | /dataclassificationapp/wsgi.py | 406ce971ba6d58416e1052f9bf20c706db98d671 | [] | no_license | danielRos01/DataCassifierBackend | 9ca2e18aa08a75538373f14570d2589c3bf26038 | 6fba2f5c5ca0f4c2e248e65223f33d17606d0e63 | refs/heads/main | 2023-01-19T02:38:12.629536 | 2020-11-22T20:22:32 | 2020-11-22T20:22:32 | 315,088,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for dataclassificationapp 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault... | [
"daniel.socoza079@gmail.com"
] | daniel.socoza079@gmail.com |
ef91d187951a98f0a2cc58320241353d9beb1284 | dd24ca271419b49be54a0f632eeaf684da3f4a71 | /python3/exercise/csdn.py | 2d1aca3e0e27ffb2b9403eb1adb22208f1a8af2b | [] | no_license | Soulor0725/PycharmProjects | fd766d7760900f7aa2c47f130974017f13c184db | 664bb3c54b7ece844263b5a3e3adc4731ea772ff | refs/heads/master | 2021-09-14T22:22:49.920606 | 2018-05-21T07:12:52 | 2018-05-21T07:12:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,789 | py | '''''
program: csdn博客爬虫
function: 实现对我的csdn主页所有博文的日期、主题、访问量、评论个数信息爬取
version: python 3.5.1
time: 2016/05/29
author: yr
'''
import urllib.request,re,time,random,gzip
#定义保存文件函数
def saveFile(data,i):
path = str(i+1)+".txt"
file = open(path,'wb')
page = '当前页:'+str(i+1)+'\n'
file.... | [
""
] | |
7cb7899c5d50aeeb8857f7c68469cd872242a07d | 37183206f6b97a329367df0913f7bd1e9504278b | /services/equity_parser.py | dbe8f05e9ddc3c5e38ad56d0979784f2c80986ff | [] | no_license | imaayush/Equity | d9b31b45d7f57d22006c5cbcb0356884e15250c7 | 5a5851f1d436c874e383c78098f9342632f967a7 | refs/heads/master | 2021-09-02T00:02:11.163788 | 2017-12-29T09:13:55 | 2017-12-29T09:13:55 | 115,530,509 | 0 | 0 | null | 2017-12-29T08:41:49 | 2017-12-27T14:47:18 | Python | UTF-8 | Python | false | false | 3,013 | py | import os
from .constants import FIELDS_NAMES
class EquityParser():
"""Take .csv file path as input and return list of dic"""
def _is_readable_file(self, path):
return os.path.isfile(path) and os.access(path, os.R_OK)
def __init__(self):
self.column_names = FIELDS_NAMES
self.erro... | [
"aayuhtiwari41@gmail.com"
] | aayuhtiwari41@gmail.com |
64402309d95926900ca65d4eebb29551360c1b03 | 1def774fa7899e53de2f63578518a634050c1e82 | /section6/security.py | 62396f43b2da68138c6f88accf1c0ffbf869ea3b | [] | no_license | albayona/flask_content | f570e937c92c2813e5db8919cfa1707918178034 | 7030da7a8457ec818112bacee011d21343cab841 | refs/heads/master | 2023-01-29T00:54:59.864671 | 2020-12-17T04:27:34 | 2020-12-17T04:27:34 | 314,171,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | from flask import request, jsonify
from flask_jwt_extended import create_access_token, get_jwt_claims, create_refresh_token, jwt_required, get_raw_jwt, \
jwt_refresh_token_required, get_jwt_identity
from blacklist import BLACKLIST
from models.user import UserModel
from functools import update_wrapper
from flask_re... | [
"al.bayona@uniandes.edu.co"
] | al.bayona@uniandes.edu.co |
5961d295b23abd4a5c1995b3f10bf6ccb333c741 | 44600adf1731a449ff2dd5c84ce92c7f8b567fa4 | /colour_down/adaptation/fairchild1990.py | 4ce1a10481213f117c2508f1c43f594b728df699 | [] | no_license | ajun73/Work_Code | b6a3581c5be4ccde93bd4632d8aaaa9ecc782b43 | 017d12361f7f9419d4b45b23ed81f9856278e849 | refs/heads/master | 2020-04-11T23:16:43.994397 | 2019-12-28T07:48:44 | 2019-12-28T07:48:44 | 162,161,852 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,432 | py | # -*- coding: utf-8 -*-
"""
Fairchild (1990) Chromatic Adaptation Model
===========================================
Defines *Fairchild (1990)* chromatic adaptation model objects:
- :func:`colour.adaptation.chromatic_adaptation_Fairchild1990`
See Also
--------
`Fairchild (1990) Chromatic Adaptation Model Jupyter No... | [
"ajun73@gmail.com"
] | ajun73@gmail.com |
e0008060475c57100422a4370823f602a7d1dbaf | de4f05070b7194b00facd823ce369e2733034ea1 | /EC2/GetEC2Instance.py | 065371954d97b7998fa4965e5e5df48296e69405 | [] | no_license | JeongWonjae/AWS_CLI_Script | 2679e6072c210665f0c7c65705f73c67a6c591b6 | 91c5c122799a0b930f9eb3652ae1570ef1abbcec | refs/heads/master | 2023-06-01T22:27:32.824199 | 2021-06-24T05:46:59 | 2021-06-24T05:46:59 | 345,669,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,707 | py | import boto3
import json
session=boto3.session.Session(profile_name='DemoUser', region_name='us-east-1')
client=session.client('ec2')
instances=[]
# for minimize call API set 'MaxResults=1000'
response=client.describe_instances(MaxResults=1000)
# response = {'Reservations': [{'Groups': [], 'Instances': [{'AmiLaunchIn... | [
"justv95@naver.com"
] | justv95@naver.com |
80bfdaf5259b84ac700aab294d7db8d5372259c3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02546/s914300427.py | 3dad5d294d902104d5bf9e91b64a4bd3c9b6633e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | S = input()
if(S[-1] == "s"):
S += "es"
else:
S += "s"
print(S) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e55b0c7aae5064490a387ff915342f70c51b626a | 336705b43988965b7601cdb47b0588e31c88b880 | /TG_AutoConfigurator/plugins/inline.py | 6f87931dcaba06a65cd9f69b2c5707eab79ddc4c | [
"MIT"
] | permissive | qwertyadrian/TG_AutoConfigurator | 13b251fe5477cb6918286d08816e3d0d0e827d70 | d3aee59076ae4b1e77f2c0d487d56b6d74021f5a | refs/heads/master | 2022-06-22T15:03:33.685971 | 2022-06-08T15:10:36 | 2022-06-08T15:10:36 | 192,208,383 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | from pyrogram import InlineQuery, InlineQueryResultArticle, InputTextMessageContent
from ..TG_AutoConfigurator import AutoConfigurator
from ..utils import tools
@AutoConfigurator.on_inline_query()
def inline(bot: AutoConfigurator, query: InlineQuery):
if tools.admin_check(bot, query):
string = query.quer... | [
"20292956+qwertyadrian@users.noreply.github.com"
] | 20292956+qwertyadrian@users.noreply.github.com |
685535ed109dab696f4e5360794e0b67396276b8 | 91905ec87a4724d8e8d3c084574b616cc3ae03d4 | /mysite/urls.py | 9352a7c1d4216b202affaf2e23dedfb5b1c249c6 | [
"MIT"
] | permissive | evvrivas/mis_proyectos | c64a58ff2ad506063947f9cf1ac426ab6a7383a4 | ed4c9c1bc1b1ae8eeca968a10f77b8e1c1515e92 | refs/heads/master | 2021-05-06T15:42:54.998970 | 2020-06-11T05:45:01 | 2020-06-11T05:45:01 | 113,632,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,617 | py | #from django.conf.urls import patterns, include, url
#from django.contrib import admin
#from mysite.views import Index
##########################
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import url,include
from django.contrib import admin
from django.conf import settings
import mysite.s... | [
"evvrivas@gmail.com"
] | evvrivas@gmail.com |
d95e8925cc8de16faad7f38369d751625be57b1b | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/networkx-1.11-py27_0/lib/python2.7/site-packages/networkx/algorithms/centrality/betweenness.py | b8c2b125f647b1c691d87810ce7eb454c7f0ab78 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 11,680 | py | # coding=utf8
"""
Betweenness centrality measures.
"""
# Copyright (C) 2004-2015 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
from heapq import heappush, heappop
from itertools import count
import networkx... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
4061b69cd1a0426dd429f731702ee97b4ae88e23 | 90bc2d33954d4db8608e77d0430a3f8c0a920d64 | /midaasTask/asgi.py | b37d065f6e1f66323b5d92de7d437d3e0dbdbf95 | [] | no_license | anil-bothe/midaasTask | 873512a7bb31ba7c7a711e2c3a4085cc6e2505fe | 33420cb97682dbba8246b388cf3ac990e314df64 | refs/heads/master | 2023-07-09T18:49:46.301471 | 2021-08-02T05:59:56 | 2021-08-02T05:59:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for midaasTask project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"anil_bothe@yahoo.com"
] | anil_bothe@yahoo.com |
a24404703336545fc6ae88cede1fb645987258ff | 8c409c79ef8a9aeacb2ba8af99fcb8456529257f | /python/png2svg/png2svg.py | cc74b3131ad3546c06b263f5f417e292f9a29522 | [] | no_license | damo-wang/book | 97cec663770c6565d92f9657542b2fe38f851a0a | 3254d1d2afc4dac239b65c80a9ec425a628fd1e1 | refs/heads/master | 2022-10-16T17:36:34.127248 | 2022-10-14T15:04:17 | 2022-10-14T15:05:12 | 107,131,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | import aspose.words as aw
doc=aw.Document()
builder=aw.DocumentBuilder(doc)
shape=builder.insert_image("Input.png")
shape.image_data.save("Output.svg")
| [
"hemoparrot@gmail.com"
] | hemoparrot@gmail.com |
3317db01ff8d0d5eff65cd314197024a8f717d5c | cc196a0111bbdcc04af7e579bc87e808cc0c7b02 | /trident/__init__.py | 880dacc18d173da5184a33655707722ed4ae11ab | [
"MIT"
] | permissive | Jackliaoall-AI-Framework/trident | 73819a95121d9d4dbf81d28ae32aea43c0541840 | cd26c1108c05c3ab4c262f9b416a126b2ad2f858 | refs/heads/master | 2023-01-15T15:15:10.544946 | 2020-11-23T04:15:33 | 2020-11-23T04:15:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | """trident api"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
from importlib import reload
from sys import stderr
defaultencoding = 'utf-8'
if sys.getdefaultencoding() != defaultencoding:
reload(sys)
sys.setdefaultencoding(defaultencod... | [
"allan@asiaminer.com.tw"
] | allan@asiaminer.com.tw |
227893b265ced510ed159a0e46ff9adff34c2178 | ba1d012f951b0d96c43805d79195bfa1d9c7892e | /backend/base/migrations/0003_auto_20210423_1734.py | de050484f5dbb22671769c496d0c2ccfca8cc833 | [] | no_license | ramoncelestino/react-django-blog | 89c22bf00b35ae35ca0a1e27e0d74e79a4b3dea3 | 7820bfb50bb9bdeaa0dce1d95a3b460c3074fae6 | refs/heads/main | 2023-04-28T01:04:24.984416 | 2021-05-01T01:26:13 | 2021-05-01T01:26:13 | 361,168,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # Generated by Django 3.2 on 2021-04-23 20:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0002_auto_20210423_1730'),
]
operations = [
migrations.RenameField(
model_name='city',
old_name='city',
... | [
"ramoncelesteramos@gmail.com"
] | ramoncelesteramos@gmail.com |
c15f0bec4691b59ccddfa52d5cf261f07b0ea133 | 1789386464cb22e1d00fec011b440970cf4a923c | /ch2/ch2p1.py | 2a3e816d27344def35a743d2263c36b76696b3a7 | [] | no_license | milnorms/pearson_revel | 06f14d382ed106e24705c91e87b0244bfe81f2f4 | ac72692394962d3952888a90791e7468b73d9bf3 | refs/heads/master | 2020-12-01T16:56:45.509114 | 2019-12-29T05:05:25 | 2019-12-29T05:05:25 | 230,703,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | '''
(Financial application: calculate tips)
Write a program that reads the subtotal and the gratuity rate and computes the gratuity and total. For example, if the user enters 10 for the subtotal and 15% for the gratuity rate, the program displays 1.5 as the gratuity and 11.5 as the total. Here is another sample run:
... | [
"mili@milis-mbp.home"
] | mili@milis-mbp.home |
b0c14efa30aa6296d714f88a56de72b29a3cb346 | 821d830910c354cb89767a77e00c77deb592ca0c | /bayesnet/math/__init__.py | a7e1743bd4c1a5cdfed8a8de29633ed4e5c1f037 | [
"MIT"
] | permissive | zxsted/BayesianNetwork | c61aa77a511e96852dec38f268f0dc31b6752cac | efe75b5416a262741fa60ad09380684886e91eff | refs/heads/master | 2021-05-09T05:38:43.513255 | 2017-10-25T06:58:26 | 2017-10-25T06:58:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | from bayesnet.math.add import add
from bayesnet.math.divide import divide, rdivide
from bayesnet.math.exp import exp
from bayesnet.math.log import log
from bayesnet.math.matmul import matmul, rmatmul
from bayesnet.math.mean import mean
from bayesnet.math.multiply import multiply
from bayesnet.math.negative import negat... | [
"r0735nj5058@icloud.com"
] | r0735nj5058@icloud.com |
168173786349698c8ae6e3a87590ff088b046c10 | 13119e54911404e9be9fe6a9b7732f23a16f5e1f | /lists/tests/test_models.py | d70ca968d7fd6ac126e80610e5b95ae2db78d6ef | [
"MIT"
] | permissive | PatrickLeonard/superlists | d290f24c96f5faa3e06f7934ca301ac787f2b4c0 | c99cdb5ed32009a878016da9e3bb2659a267f851 | refs/heads/master | 2021-01-11T02:29:49.721734 | 2016-11-14T02:01:54 | 2016-11-14T02:01:54 | 70,960,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,197 | py | from django.contrib.auth import get_user_model
User = get_user_model()
from django.core.exceptions import ValidationError
from django.test import TestCase
from lists.models import Item, List
class ItemModelTest(TestCase):
def test_default_test(self):
item = Item()
self.assertEqual(item.text, '')
... | [
"patrickleonard789@gmail.com"
] | patrickleonard789@gmail.com |
69f9dd47463c7924f4b97ceba4c0412bd8f0fad0 | 4addd4aa5f38387be3ee1fc9cefff69485d74e1a | /GOPE/Gopesa/principal/migrations/0001_initial.py | 8fbff4085107be2c0cfcfefd2c190f1af34c8f6c | [] | no_license | A01701833/GOPESA | a40f2a328dd9f7e108ab5a7e85f1d99c6a047a0e | 33dda28a8fe66ef3f76d22c16ace9e37c7ff1937 | refs/heads/master | 2020-04-08T09:29:24.321695 | 2018-11-26T20:14:09 | 2018-11-26T20:14:09 | 159,226,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # Generated by Django 2.1.1 on 2018-11-16 20:45
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Propiedades',
fields=[
('id', models.AutoFi... | [
"A01701833@itesm.mx"
] | A01701833@itesm.mx |
82bf1eea5257be4934bb0ac54853d03f28b2cab4 | fcf656dccbf69fd2fe6abe4fa82b5e9722bc3052 | /util/__init__.py | e8c2b4443a05f4f240f2f5008f3ef4edd7fc6b3e | [] | no_license | tetrapus/Karkat | 7630374fe3d3ecea3706b29ccfa1ec08722db5fd | 6e898ce3e6814924314bd0106b1b844adced7258 | refs/heads/master | 2021-01-17T08:55:42.857753 | 2017-10-31T03:51:07 | 2017-10-31T03:51:07 | 9,131,639 | 9 | 10 | null | 2023-06-28T11:38:30 | 2013-03-31T15:01:06 | Python | UTF-8 | Python | false | false | 1,381 | py | import threading
from . import services
from . import irc
from . import text
from . import dcc
from . import images
from . import files
from . import throttle
from . import database
# Taken straight from the xchat source. Thanks, xchat!
rfc_tolowertab = {'A': 'a', 'G': 'g', '\\': '|', '^': '~', 'D': 'd', 'C': 'c', 'T... | [
"joey@tetrap.us"
] | joey@tetrap.us |
020f0da0cd7aa01961d16151a1bafcc96e78372c | dc696115f95a173c358f749b3ab867681f4b4cbb | /code/centroid_plot_csv_new_1.py | 86c267194d2e750849c67b552f803d94a68bbf6d | [] | no_license | smohammed/GalexScanCalibration | 2c81a660f6a19b5c5125f9fcce1b5a0857152d7c | 59953cd2312b2f639891e434a54c5b9e8aabd155 | refs/heads/master | 2020-04-27T18:58:27.816939 | 2018-08-30T12:31:35 | 2018-08-30T12:31:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,166 | py | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import c3
from astropy.io import fits as pyfits
import numpy as np
from astropy import wcs as pywcs
import sys
import aplpy
import os
from sklearn.neighbors import KernelDensity
import csv
import math
import asp_cal
import glob
from astropy.coordin... | [
"wsdun1029@gmail.com"
] | wsdun1029@gmail.com |
49387a3cdc6c6e23837c5436d99d317dbd2554eb | 40b262d813d07a113914d6009af8737898f2e096 | /Platos test/apps/schedules/migrations/0001_initial.py | 8cf8f0fa053f62e70fdc4f248d417b5c4d27999c | [] | no_license | Nish8192/Python | cb6de3b96e790464a0a4ad10eda86ce4f79688b4 | 5c03beff6f3669d5cfb6b31c5749827db8b6a627 | refs/heads/master | 2020-12-23T16:56:18.301723 | 2017-05-27T02:09:02 | 2017-05-27T02:09:02 | 92,563,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 22:44
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('login_register', '0001_initial'),
]... | [
"nish8192@gmail.com"
] | nish8192@gmail.com |
907b8d2e4fbac6eb91146f0df7ba54c27035b164 | 3da93763bbc39692ef6f468a91c42b335674af44 | /python/tautau.py | 4b3b070d64b461333e438d27ae701bc767b0a60c | [] | no_license | mbirostris/cpt | 59f5fd0a45bf2c044b55156835dbb1c5c460ee84 | 5bae5d82647e271e686f892b0b762425563f1e50 | refs/heads/master | 2020-06-06T03:07:26.096708 | 2015-06-23T08:04:12 | 2015-06-23T08:04:12 | 27,839,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,947 | py | import sys
import ROOT#gROOT, TCanvas, TF1, TFile
from root_numpy import root2array, root2rec, tree2rec
import os
import shutil
import math
from ROOT import * #gROOT, TCanvas, TF1, TFile
import pylab as pl
import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 im... | [
"olszewski.mikael@gmail.com"
] | olszewski.mikael@gmail.com |
3a3796bf98f90c15d5b4c72280decdc7e412449c | 7e5c96cf9091f3912b51215f98e4e75a1fd5fe56 | /lucky/lucky.py | 1d572cd3c5a6d7528c63213dd644cac608dfe1a7 | [
"BSD-3-Clause"
] | permissive | aenon/shiba_cogs | ef3cdff2d274cb8029b9fc7204a119c5c92e4c80 | cb65b75f648698f63913b8b38ed7bafa33df6f4c | refs/heads/master | 2021-07-13T06:09:02.672212 | 2017-10-18T07:04:34 | 2017-10-18T07:04:34 | 105,968,419 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | import discord
from discord.ext import commands
class lucky:
"""Cog for Husky Lucky"""
def __init__(self, bot):
self.bot = bot
@commands.command()
async def lucky(self):
"""Cog for Husky Lucky
instagram https://www.instagram.com/thehuskylucky/
get random post: descript... | [
"s.sn.giraffe@gmail.com"
] | s.sn.giraffe@gmail.com |
2da7f4194e18775060afca1bfc1dcd85d1009570 | 3411ad233c411c06765f4b07f8670c12025178b6 | /201-300/231-240/237-deleteNodeInLinkedList/deleteNodeInLinkedList.py | 9b19cef457feb64cb67a51b92b91f733e6ae73ed | [
"MIT"
] | permissive | xuychen/Leetcode | 7d9d31fed898ce58440f5ae6665d2ccaf1a4b256 | c8bf33af30569177c5276ffcd72a8d93ba4c402a | refs/heads/master | 2021-11-19T20:39:43.741589 | 2021-10-24T16:26:52 | 2021-10-24T16:26:52 | 140,212,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def deleteNode(self, node):
"""
:type node: ListNode
:rtype: void Do not return anything, modify node in-place instead.
... | [
"xuychen@ucdavis.edu"
] | xuychen@ucdavis.edu |
a366043bb5e6902c35d10a0d2a4c4f20f7c00e59 | 09790593dd44a1ad31b387bbe4adea927697d3ef | /gitrepo/python/potega.py | bc854f3e91c77fa6df3de3052f801055ae4470c6 | [] | no_license | kuba332211/gitrepo | 0baa6179725fee3f200c619f0b436e89906a76a1 | b80b1931337b886bd6cff343b0feae4ce3055dbb | refs/heads/master | 2020-03-28T01:02:56.559496 | 2019-10-11T06:36:16 | 2019-10-11T06:36:16 | 147,471,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# potega.py
# obliczanie potęgi podstawy podniesionej do wykładnika
def potega_it(a, n):
wynik = 1
for i in range(n):
wynik = wynik * a
#print(wynik)
return wynik
def main(args):
#a =int(input("Podaj podstawę: "))
#... | [
"noreply@github.com"
] | noreply@github.com |
afff7325a984dc8bfcc0c081baafbff71099bdcd | 8d7d847f109183365022112a6b76cb20fa158255 | /Crawler/Crawler/settings.py | fd19646728c9c25cb290559bf94c5142869e8503 | [] | no_license | Xarliend/DataViewSite | 42e59fed9483ff2f877a40b4f31a1b82c5435ecd | 59921492547d68908e6e8f54a062baeb05b19580 | refs/heads/master | 2022-11-24T15:12:01.842042 | 2020-01-04T22:21:17 | 2020-01-04T22:21:17 | 227,699,982 | 0 | 0 | null | 2022-11-04T19:31:04 | 2019-12-12T21:29:47 | Python | UTF-8 | Python | false | false | 3,089 | py | # -*- coding: utf-8 -*-
# Scrapy settings for Crawler project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/top... | [
"43079993+Xarliend@users.noreply.github.com"
] | 43079993+Xarliend@users.noreply.github.com |
c862a250c2c47d807e95c99304745e82a2d09ea8 | fa60cc12d59d73376e5812c11613c238c2e17447 | /performance/stat.py | f5f255373f674e68f841a6e5920a0e80f710348e | [] | no_license | ftao/playzmq | 1a466c364d0f4c935d678656cd6eb8aceb571703 | dde945f27850159c0cfc4d1ecda53e9f32331612 | refs/heads/master | 2020-03-30T11:30:52.107291 | 2012-02-06T15:10:34 | 2012-02-06T15:10:34 | 3,289,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | #!/usr/bin/env python
'''
Do stat calucation on data
'''
import time
import json
import sys
import itertools
import zmq
def stat(data, field):
total = 0
count = 0
for item in data:
total += item[field]
count += 1
return total, count, total * 1.0 /count
def get_data_stream(socket):
... | [
"ftao@debian.localdomain"
] | ftao@debian.localdomain |
f5aa93af1b204622e971696dced1aaeadd31c668 | 9b7ccf0deba84b8d53efcd42d407a7650feb1848 | /djangoAnswer/djangoAnswer/manage.py | dc86f99c714f93995a3a750e48089906ae5e7f68 | [] | no_license | Ryu-Morimoto/Django-Training | 37ba72232714164b992f333630172d638a91238f | 3e5a1a4501e2bb04a841f8ae7b3155ef204192eb | refs/heads/master | 2022-12-10T00:26:46.832692 | 2020-01-21T04:29:55 | 2020-01-21T04:29:55 | 298,179,922 | 0 | 0 | null | 2020-09-24T05:42:46 | 2020-09-24T05:42:45 | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoAnswer.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"hukusuke1007@gmail.com"
] | hukusuke1007@gmail.com |
57b500dbbccbef6d98b6b6d9293526c6082141e2 | 3ff9a091e9546b336b5d167fb3678c315e2a6e44 | /testing/test_calc.py | cbc579781beafe9ef19d32d8a33b008117c3ab31 | [] | no_license | titoeb/python_tuts | 7b2a8b7a6a3d5afc83d0f44a7ec46c575ec6ef3b | 4efb0e364ba929ce2cf8dd21a7fa86fec5e049f6 | refs/heads/master | 2021-05-25T07:30:19.292777 | 2020-04-07T11:27:36 | 2020-04-07T11:27:36 | 253,715,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | import unittest
from unittest.mock import patch
import calc
class TestCalc(unittest.TestCase):
def test_add(self):
self.assertEqual(calc.add(10, 5), 15)
self.assertEqual(calc.add(5, -5), 0)
self.assertEqual(calc.add(-10, -5), -15)
def test_subtract(self):
self.assertEqual(cal... | [
"tim.toebrock@rewe-digital.com"
] | tim.toebrock@rewe-digital.com |
0a86e4fc0405ed8ccd273d8afd97faa2407ff8a0 | 1f9f0f53555a32417cd4f8a84ca65b766b7b5230 | /sequence_operations/nucleotides_and_complements.py | 256313ac7ac21c94612ccff312c05ba9636c9dd5 | [] | no_license | AlexThePav/biopython_tutorial | 56044ca924e04fbce545cb712efa4fb5e23050fd | ed8950ba0e199498340c54e8dc5eba0b0cc7b69d | refs/heads/master | 2020-05-27T11:28:49.980694 | 2019-06-06T15:58:38 | 2019-06-06T15:58:38 | 188,601,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from Bio.Seq import Seq
from Bio.Alphabet import IUPAC
my_seq = Seq("GATCGATGGGCCTATATAGGATCGAAAATCGC", IUPAC.unambiguous_dna)
print(repr(my_seq))
print(repr(my_seq.complement()))
print(repr(my_seq.reverse_complement()))
print(repr(my_seq[::-1])) | [
"alexandrupavilcu@gmail.com"
] | alexandrupavilcu@gmail.com |
ca2d354525667e6ce05dcbd15758dec072a1e2c1 | 0559941516569d39a040341ab0861975fa70a327 | /Code/src/hellopython/第二章/test/monthrate.py | a933543be04d02f56c353bc94fe127fb1b402d5d | [] | no_license | LYTXJY/python_full_stack | e4cadfea45a711a72d56229d6032d46c0b752899 | 9e99b0d9d44e7191b0358a02e114bbcd18eee635 | refs/heads/master | 2021-02-03T22:34:13.939998 | 2020-03-11T14:05:29 | 2020-03-11T14:05:29 | 243,561,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #计算利率
#月供 = 贷款数*月利率 / (1 - 1/(1+月利率)**(年限*12))
years = eval(input("请输入贷款年限:"))
money = eval(input("请输入贷款金额:"))
monthrate = eval(input("请输入贷款月利率:"))
monthmoney = money * monthrate / (1 - 1 / (1 + monthrate) ** (years * 12))
totalmoney = monthmoney * years * 12
print("月供:", monthmoney, "总还款:", totalmoney)
... | [
"18822148155@163.com"
] | 18822148155@163.com |
5c28ac9cbfe8f5ad592a4cfcd48b4f8f7a649334 | 3553129c1ddef3cab5f4aa7670c8c2f7dc970884 | /GuardCam_Test.py | b092b2dc7896273bc44b396a53586454c046a853 | [] | no_license | kichichoi102/GuardCam_HackATL | f979d8f3f00d6f451fb8744d494955af6deb0ea0 | f70f6ecc1abd9b3b74b46524dd68c3e43cfb6e29 | refs/heads/main | 2022-12-23T13:45:14.721945 | 2020-10-04T03:51:43 | 2020-10-04T03:51:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | import os, io
from google.cloud import vision_v1
import pandas as pd
request = vision_v1.GetProductSetRequest(name="name")
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = r'###Directory to Google Cloud Key#####'
client = vision_v1.ImageAnnotatorClient()
file_name = "offenders1.png"
image_path = f'.\Images... | [
"noreply@github.com"
] | noreply@github.com |
42fed63039e8e6390da8ccfcffd357ec6875fbb3 | 08aec07b5db889e586a56e36efea31c21c5695f2 | /day009/ex56.py | 9e14fad93694867afc15eb03ad6e7d9908ee1a76 | [] | no_license | nileshnegi/hackerrank-python | 7bb19929d2b963f02b37259c06b893c6520f33dc | 0d2ab9ee40156e81b568ab4d5a6d5cd4f6ca7385 | refs/heads/master | 2023-01-07T07:20:44.859336 | 2020-11-11T14:30:21 | 2020-11-11T14:30:21 | 279,877,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | """
Introduction to Sets
Ms. Gabriel Williams is a botany professor at District College.
One day, she asked her student Mickey to compute the average
of all the ```N``` plants with distinct heights in her greenhouse.
"""
def average(array):
array = set(array)
return sum(array) / len(array)
if __name__ == '__... | [
"nilesh_negi@yahoo.co.in"
] | nilesh_negi@yahoo.co.in |
3139deb12ad44574e293d66cbb6426e59600c5f6 | bd479e1066ea0a7b0009ed09b4b0ee1579b4865f | /Posneg.py | 755981813c2c062c4080adfb85553ec292eb991f | [] | no_license | thiruraja98/thiru | 20cebbd5eba8574c6b22e8219782b08658d40458 | 3b554d8429d88426e1ab65a4a16035e3cde55ab4 | refs/heads/master | 2021-07-05T16:39:23.992082 | 2019-08-13T09:12:23 | 2019-08-13T09:12:23 | 202,102,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | a=eval(input())
if a>0:
print('Positive')
elif a==0:
print('Zero')
else:
print('Negative')
| [
"noreply@github.com"
] | noreply@github.com |
f2e42d00a9c9ec787e590be61a586dcb7a5ca218 | 938645067e93c08e8c4f2bf26a03565e0dc9002b | /filter/particle_filter.py | bb8b15b5700119d309c42c3cf2e1186bc15661ed | [
"MIT"
] | permissive | kolaszko/particle_filter | 51d584e90d78a3837a21dad1025dc8550c93c7fd | 9fedcee5ef2eb00a1fa85398327121e3df53f94c | refs/heads/main | 2023-02-27T17:51:39.468016 | 2021-02-04T11:12:56 | 2021-02-04T11:12:56 | 335,359,281 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import abc
class ParticleFilter(abc.ABC):
@abc.abstractmethod
def resample(self):
pass
@abc.abstractmethod
def predict(self):
pass
@abc.abstractmethod
def update(self):
pass
| [
"mikolaj.lysakowski.bk@gmail.com"
] | mikolaj.lysakowski.bk@gmail.com |
8721ca56dbed0cde63624d1757fe5ab6f98163e1 | 85d3f57352d709dac225b782559d6cd056f8f371 | /Code/Map/perlin2D.py | bd38877dc4093e9f6582bdc68cdd00eb88bf4fe2 | [] | no_license | RhumTeam/caribbean-conquest | 7324b847a53e38139609e1f988c87ce60ff6719b | 4b8aa9fd333a6caa07f98ecbc55296061e6effad | refs/heads/master | 2020-05-02T11:05:22.700052 | 2015-02-24T22:25:42 | 2015-02-24T22:25:42 | 27,838,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | # -*- coding: utf-8 -*-
import math
import Image, ImageDraw
import sys
PERSISTENCE=0.66
NB_OCTAVE=6
def Noise(x, y):
n = x + y * 57
n = (n<<13) ^ n
return ( 1.0 - ( (n * (n * n * 15731 + 789221) + 1376312589) & 0x7fffffff) / 1073741824.0);
def SmoothedNoise(x, y):
corners = ( Noise(x-1, y-1)+Noise(x+... | [
"trash140@gmail.com"
] | trash140@gmail.com |
912e2103ce003cb1d9fcd5a02369716b032b4a25 | 63872807248066ffd0435dcd12ea37d60dc4a9e2 | /pyCDFTOOLS/draw_clock.py | c02c4946e1043f9c0b18b75c93bb072decd01a2e | [
"MIT"
] | permissive | malzubairy/NEMO-related | 8214d80216a874b710c487e14f586596941fa587 | 81ea5a5e94aa40b90e95093384bf769ec269afc4 | refs/heads/master | 2020-04-27T02:59:48.745286 | 2019-03-04T09:28:04 | 2019-03-04T09:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,159 | py | #!/usr/bin/env python3
# JM: 27 Nov 2018
# draw a clock
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.colors import LinearSegmentedColormap
# units in radians
def draw_clock(yyyymmdd, clock_color = "xkcd:grey", progress_color = "Spectral", fontsize = 14, ax = None):
"""
fairly dumb way of d... | [
"julian.c.l.mak@googlemail.com"
] | julian.c.l.mak@googlemail.com |
78c173508b8ba231c1887527ff227333e548ecf8 | f010d4693aa8c3a8ba10220cec010a1138fc9311 | /venv/bin/faker | 85b96713c2cc50149d465d9527ac94eb10891e19 | [] | no_license | difasdfs/project_crisbardashboard | a4cf028e65a76688bd347e12b888cad910db5ae5 | 5c47bff0d491c29abb1cddaad152e66d5624336d | refs/heads/main | 2023-02-03T09:58:09.859779 | 2020-12-26T03:53:56 | 2020-12-26T03:53:56 | 315,183,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | #!/home/itcrisbar/project_crisbardashboard/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from faker.cli 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())
| [
"itcrisbar@vps.server.local"
] | itcrisbar@vps.server.local | |
d3977fe8da468335955c73585ad4373f968ec62b | 52e8841ac9603e994fc487ecb52f232e55a50e07 | /Bio/HMM/Utilities.py | 17db3f4ed0ad626cb1de97b7c921f6692d2f4f6b | [] | no_license | rored/RozszerzenieBio.PDB | aff434fddfe57199a7465f79126eba62b1c789ae | 7c9d696faacabff912b1263fe19291d6a198c3c2 | refs/heads/master | 2021-01-21T04:50:37.903227 | 2016-06-23T19:15:42 | 2016-06-23T19:15:42 | 55,064,794 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | # This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
#
"""Generic functions which are useful for working with HMMs.
This just collects general functions which you might like to use in
dealing with HMMs.
... | [
"Viktoria@MacBook-Pro-Viktoria.local"
] | Viktoria@MacBook-Pro-Viktoria.local |
1cad87f1ea1c3f03aecf8351b053019008d5baf7 | e40315aeb61693217be4902326772b23f5376c63 | /Algorithm/Ex_210320/Ex4_210320.py | eeb59f0cc5db488853ea66e1bbf15314ac0c0d20 | [] | no_license | hb162/Algo | 939395ed14c21d2e4421f13acaa7212642064589 | 7d81faab3509b9d3ab2f3cf694d1ab43f410a5bc | refs/heads/master | 2021-01-06T08:24:49.422185 | 2020-04-26T15:47:06 | 2020-04-26T15:47:06 | 241,261,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | """
This problem was recently asked by Microsoft.
You 2 integers n and m representing an n by m grid,
determine the number of way you can get from the top-left to the bottom-right of the matrix y going only
right or down.
"""
def num_ways(m, n):
count = [[0 for x in range(m)] for y in range(n)]
for row in ... | [
"hoangbui1699@gmail.com"
] | hoangbui1699@gmail.com |
b0395f5306037472584cb31f83bbac95066c2fa6 | 7e293e5992eea0e139f9420925a9bcb64d0fd7c2 | /data_sets/generate_data.py | 4f9c0ce0032bc0049e8a5d47b4efcaf54e9a29cd | [
"MIT"
] | permissive | xcleancode/Distributed_GPU_LSH_using_SYCL | 5dd0ee84220119ef8b1577b0dc3f357e9caf8195 | a1763670fa4e9df8ac1df4ffcc89b0c5ceed36cb | refs/heads/master | 2023-05-13T04:45:41.573043 | 2021-06-07T12:31:52 | 2021-06-07T12:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,743 | py | # @author Marcel Breyer
# @date 2020-08-06
# @brief Python3 script for generating data sets.
import argparse
import sklearn.datasets
import sklearn.preprocessing
import numpy as np
import sys
import csv
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
def size_in_bytes(numpy_type):
return... | [
"breyer.marcel@web.de"
] | breyer.marcel@web.de |
d61646415e900d73bea9e909cf48c210c74aa34e | 90efa4c9d1f0cead923f68dcc11aac3e2d6d464e | /mock.py | 2fdf98e7cce2d3205a9ad0578bd67d2553b9331f | [] | no_license | neutrixs/mockhmm | 8b8e3687f042a0af03a79895a57ede54f86b1e38 | 8917d418a8a64ba65f2b62a2d995ae1b6a5626fc | refs/heads/master | 2023-01-07T07:11:21.170602 | 2020-11-14T02:36:21 | 2020-11-14T02:36:21 | 312,730,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | try:
fileinput = open('yourtexthere.txt')
try:
input = list(fileinput.read())
#change eventh character to uppercase
for x in range(0, len(input), 2):
if input[x] != ' ':
input[x] = input[x].upper()
#change odd(th) character to lowercase
for x i... | [
"neutrixs@users.noreply.github.com"
] | neutrixs@users.noreply.github.com |
5b16d88b43724df85472827ca9a1de35f189620b | 6ed48bf3c72e61fe53144a3545ab305112c93501 | /appengine/findit/handlers/test/help_triage_test.py | ef11561424031e1e74e5d088f7422bb54953dd08 | [
"BSD-3-Clause"
] | permissive | eunchong/infra | ee5f7a9379977de8c814f90dbba3f6adbf06a75c | ce3728559112bfb3e8b32137eada517aec6d22f9 | refs/heads/master | 2022-11-27T06:26:57.415805 | 2016-04-08T12:34:36 | 2016-04-08T12:34:36 | 55,699,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,341 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import os
import webapp2
from testing_utils import testing
from common.git_repository import GitRepository
from handlers import help_triage
fro... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
4d78524c4de0d1e3185e43c58090b1505b7c540f | d734df2a2ee329592004b612d0086e79c3415cd0 | /mysite1/models.py | 8950eaa066ae5b7d905e382e46a1a1e6ab4f4269 | [] | no_license | pascal0101/site_web | ed115a678b65c4e106d6aab032cbfcd4b1bdd800 | ef2239af8f4a9d0b1e31e051d8674a3a8c252571 | refs/heads/master | 2021-01-04T20:59:23.281561 | 2020-03-02T20:47:33 | 2020-03-02T20:47:33 | 240,757,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class Galerie(models.Model):
titre_gal = models.CharField(max_length=255)
description_gal = models.TextField()
image_gal = models.ImageField(upload_to='image',blank=True,null=True)
created_at = models.DateTimeFiel... | [
"pascaldaf2016@gmail.com"
] | pascaldaf2016@gmail.com |
41daaf1adbcc65e25cceffa90071963053f3596a | e736c95a3f3ad27da62dcaac845dee12444aded3 | /game/migrations/0003_player_name.py | b4811f0a275f898c1a36196f9d6e2a6c588e06e5 | [] | no_license | jkosior/final_project | cd57cc95b4a37b7cbe562dcb7984d639d70473fb | 1089d45e1fad779335a8537784ebd5700ca2b819 | refs/heads/master | 2021-01-11T21:18:01.155492 | 2017-01-27T21:30:28 | 2017-01-27T21:30:28 | 78,759,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-19 10:30
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('game', '0002_auto_20170119_1019'),
]
operations = [
migrations.AddField(
... | [
"jakubjkosior@gmail.com"
] | jakubjkosior@gmail.com |
36766d4bfba27e36105b4e46042d32eeb52d8df3 | 9a244df757bc54f87897591b3684429c5225dd63 | /accounts/admin.py | 524591155a159579009e1909ed8bf635bcdbbeef | [] | no_license | AleiHsu/FileShareApp-Django | 058a277545e04c17a593f8d8a9ae1cf4cfca1c2a | f281c2bdb1098f215193fef5692d359e7eb2c135 | refs/heads/master | 2020-07-21T23:36:24.663113 | 2019-08-26T17:49:50 | 2019-08-26T17:49:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from django.contrib import admin
from accounts.models import FileShareAppUser
admin.site.register(FileShareAppUser)
| [
"midhunxavier@outlook.com"
] | midhunxavier@outlook.com |
9e02a82736c3444d9a8a3e3f92dc8fc5eb8cd8bc | c3f4e09bba013cc1ac99830077b89edad23b21f7 | /hello.py | dd4d12ce9e04dc511fd3be04347eaad83ca7458d | [] | no_license | mkemper/herokupythonwebapp | 70477d990c8640ac467f6e406b04a87b61f6ebe7 | 55e76253ac2ae346e8958a00792b50c2820ac7a9 | refs/heads/master | 2020-05-28T14:08:07.801003 | 2014-05-02T19:54:06 | 2014-05-02T19:54:06 | 18,992,699 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | import os
from flask import Flask
from flask import render_template
app = Flask(__name__)
@app.route('/')
@app.route('/hello')
def hello():
return render_template("index.html",title = 'TestApp',user = 'Gustave Gans')
| [
"kemper.mt@gmail.com"
] | kemper.mt@gmail.com |
1c8836bc37650343b37a3ca5631005b32f755b5a | 914c3c1e104e1a8b351ff80f85dc76ae8f278754 | /hw/hw05/problems/hw05.py | 57e765d42691abd65279d5524d3f125d19b45d16 | [] | no_license | ankhangkieu/CS61A | 1d0d6049262b9907896a3ecc3130b7f52a8ef44c | 7d0480417c602d67c6af3e180442d42e08fb8827 | refs/heads/master | 2020-12-30T16:02:40.087028 | 2017-05-14T03:58:47 | 2017-05-14T03:58:47 | 90,955,103 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,343 | py | def print_move(origin, destination):
"""Print instructions to move a disk."""
print("Move the top disk from rod", origin, "to rod", destination)
def move_stack(n, start, end):
"""Print the moves required to move n disks on the start pole to the end
pole without violating the rules of Towers of Hanoi.
... | [
"ankhangkieu@gmail.com"
] | ankhangkieu@gmail.com |
7633f6f9cb7e06d32f07fd0f6c3f93f846667e26 | c128d73f1d988686e3e7377520d7475ae59d8016 | /test/cmd2.py | 674d0464539f09de007c6d8e163e51833f2b15f4 | [] | no_license | astroumd/SSINGMA | a9aba4aea0d0bf799643ebd7064b222b5c801894 | 044923b6e036d3679e88839593244b834e8e2d09 | refs/heads/master | 2021-07-01T12:48:08.520640 | 2019-03-22T01:50:29 | 2019-03-22T01:50:29 | 107,312,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | #
# example command line parser usage - functional approach with keyword database
#
# casa -c cmd2.py a=100 'c=[100,200]'
script_keywords = {
'a' : 1,
'b' : 2.0,
'c' : [1,2,3],
}
import sys
ng_initkeys(script_keywords,sys.argv)
a = ng_getkey('a')
b = ng_getkey('b')
c = ng_getke... | [
"teuben@gmail.com"
] | teuben@gmail.com |
590d0792ed9b5ddff27a3a49cc9c5de45d34568e | 89de8181b45a566296859656fcac685f800a8567 | /build/lib/html_generator/Parameters/InitSize.py | 174e435415ef5d061edffffcf7a25d82d9914c62 | [] | no_license | ThibautMeric/Html-Generator | ad17a5df3ccbbcc1efd2b0ba8fbb07b2016daa49 | 3a23369c90b206b148b25ea9e8071adf2f9e6bbe | refs/heads/master | 2016-08-12T11:15:15.305540 | 2015-12-14T23:38:28 | 2015-12-14T23:38:28 | 47,994,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,330 | py | try:
import tkinter as tk
import tkinter.ttk as ttk
from tkinter import *
except:
import Tkinter as tk
import ttk as ttk
from Tkinter import *
from html_generator.Output.GenerateHtml import *
from html_generator.Parameters.RefreshSize import *
from html_generator.Parameters.ResetSizePM import *
... | [
"thibaut.meric@gmail.com"
] | thibaut.meric@gmail.com |
db81834a1330d52715975feeccd9568206f2acd0 | 4baedd3969d59f8b08fe9d37f6e38ce6c0c0147b | /create faces.py | c3ee223ae805b7f54acb8e192957398aea9e7fc7 | [] | no_license | revanth-reddy/face-recognition-in-person | 88c60ff7f6fa95ef2f8aca101a2ea384d405548f | 551b90a479759c44307561a605d0458fe099a9bd | refs/heads/master | 2021-03-24T12:34:13.136705 | 2018-02-16T13:13:09 | 2018-02-16T13:13:09 | 121,751,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | import numpy as np
import cv2
face_cascade = cv2.CascadeClassifier('/home/revanth/Downloads/opencv-master/data/haarcascades/haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('/home/revanth/Downloads/opencv-master/data/haarcascades/haarcascade_eye.xml')
cap = cv2.VideoCapture(0)
i=0
while(1):
... | [
"malerevanthreddy3099@gmail.com"
] | malerevanthreddy3099@gmail.com |
25afd7458f3c018650878cae8c24754bbd8587a0 | f27eb692d32dc7dafa848a08b0b6c8e530c02da4 | /videoToFrame.py | d466b67d4b80b7fd14831bc7d5139b240155ab3a | [
"MIT"
] | permissive | ebteles/PhytonVideoOpenCV | d9f8b9d230a43c95c91872ed43c50dabef51eb2d | 19d36616dc7829c58564405d73a44495379a6d8c | refs/heads/master | 2021-07-15T15:32:17.010788 | 2020-06-02T12:41:04 | 2020-06-02T12:41:04 | 162,626,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,863 | py | import os
import cv2
def video_to_frame(video_input, path_output='', ms_interval=0, verbose=False):
"""
Desmembra um vídeo em frames
Parâmetros:
video_input..: path + nome do arquivo de video
path_output..: path de destino. Se não informado assume o path do vídeo, subpasta "video_ou... | [
"noreply@github.com"
] | noreply@github.com |
9bdbd72fc4ed1a170536032760d6ca6dc7f9be45 | f4133969204cdc43719dd9da6edd1e438bc94d29 | /feb15/r1.py | bce2e6cae9073fd780db27e8cf61b782e909b185 | [] | no_license | elake/inclass | 305def75f832c963cfb0bfc12c2f150481e02903 | f64a1d93aff317af2b79d64ed64d2f0eecac8764 | refs/heads/master | 2021-01-20T11:23:34.937770 | 2013-04-03T23:51:31 | 2013-04-03T23:51:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | while True:
x = input()
print(x)
| [
"cmput296@ubuntu.(none)"
] | cmput296@ubuntu.(none) |
22cb5e3c5fe441e2cce941bfab73397ab2273493 | c5e2289993dead68e9052524e4671d099810436b | /web_3/Commons/xpath.py | b2e8fc0bdea54b2733111dbc105485543880222c | [
"MIT"
] | permissive | virgil-su/web | 1b3844fc94dc0ceecbb165d1f653a05f623c67b6 | 035c052aa4f69d300e7c78b15250e74da654065a | refs/heads/master | 2020-12-09T17:24:30.509026 | 2020-01-12T09:47:56 | 2020-01-12T09:47:56 | 233,368,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,217 | py | """
coding:utf-8
file: xpath.py
@author: virgil
@contact: XXXX@163.com
@time: 2019-12-30 18:01
@desc:
"""
from selenium.webdriver.common.by import By
# 登陆页面元素
class Login_xpath:
# 用户名输入
user_name = (By.XPATH, '//input[@name="phone"]')
# 用户密码输入
user_pwd = (By.XPATH, '//input[@name="pa... | [
"noreply@github.com"
] | noreply@github.com |
ea6b9660838f2e8fd925aa01965c74b18e242ec5 | c485d84480004eac760000e8d63080e62faaa2d0 | /PyCaliper/uom/enums.py | 43fbf6dac5207d868163907b1d47b8b19871ad11 | [
"MIT"
] | permissive | point85/PyCaliper | 94978781e22f9b63012dcb09014e9400492c6b4c | f63a53079809c1674f35fb16656e640236aaf797 | refs/heads/master | 2023-04-02T01:20:18.720121 | 2023-03-18T02:45:01 | 2023-03-18T02:45:01 | 200,130,753 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,604 | py | from enum import Enum, auto
##
# An enumeration of the basic types of units of measure
#
class MeasurementType(Enum):
SCALAR = auto()
PRODUCT = auto()
QUOTIENT = auto()
POWER = auto()
##
# This enumeration contains the values for fundamental constants commonly used in science, technology, engin... | [
"kentra@pacbell.net"
] | kentra@pacbell.net |
ee615403c191a3bc00a63b9ac501349fe54af94f | dec29f40788478f73798f23b79ca892b3121150a | /apps/core/forms.py | 2dea5904ea3b9ecfd5b3ba08032c83908459e911 | [] | no_license | RonaldTheodoro/django-ecommerce | 2c661e6f3ae0154ecb7a8e25183875da8c27d14f | 9097049107e5a7ab52474aa89fe40f02689fb24a | refs/heads/master | 2021-05-06T02:08:51.166682 | 2017-12-17T00:32:03 | 2017-12-17T00:32:03 | 114,499,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | from django import forms
class ContactForm(forms.Form):
fullname = forms.CharField(
widget=forms.TextInput(
attrs={'class': 'form-control', 'placeholder': 'Your full name'}
)
)
email = forms.EmailField(
widget=forms.EmailInput(
attrs={'class': 'form-control'... | [
"ronald.silva4@fatec.sp.gov.br"
] | ronald.silva4@fatec.sp.gov.br |
b4cba0aed6b443a871546588886b0d46079a56de | e51508672f529100ada250a25f21ae69ab620555 | /BeerTap.py | a149d3307072f4807e6807e3fbdc4db33454873b | [] | no_license | saurabhhack123/BeerTap | 750d01bcf2ab44990ba2623476c32d2698692209 | 139ea8e655130af7862b7e1b89b1c6d1db712c4b | refs/heads/master | 2020-05-25T22:49:21.353038 | 2019-05-22T11:12:57 | 2019-05-22T11:12:57 | 188,022,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | import math
class BeerTap:
# As divisors appears in pair i.e for number n => x,n/x
# we need to iterate till sqrt(n) since sqrt(n)*sqrt(n) = n , max value of x can be sqrt(n)
def findDivisors(self, tap_number):
divisors = []
divisors.append(1)
N = int(math.sqrt(tap_number))
for x in range(2,N+1):
if t... | [
"noreply@github.com"
] | noreply@github.com |
564551a4e2cb2a733a94a87c5bb71a3ed502b108 | 5ff3cc7db06df5bbad2c71d5c3849659889dc0c8 | /api/views/list_user.py | 8f4113b96717313517e5878ba71bcfaf86364b22 | [] | no_license | anshuldhariwal/canvas-gamification | 982c34d9f58858de9d28ce4e88e446c586a8a9f8 | 1fc58872a2710ee1890454dbe5028380ada0f19a | refs/heads/master | 2023-06-25T21:57:32.105958 | 2021-07-26T01:27:06 | 2021-07-26T01:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | from rest_framework import viewsets, filters
from django_filters.rest_framework import DjangoFilterBackend
from accounts.models import MyUser
from canvas.models import CanvasCourseRegistration
from api.serializers import UsersCountSerializers
class UsersCountViewSet(viewsets.ReadOnlyModelViewSet):
filter_backends... | [
"hungluongkhai@gmail.com"
] | hungluongkhai@gmail.com |
35396d0760f31e83ca7240e9d3d67e0d56afbc3e | 63dd276c62aaca6b17d4ffb3252d5025f81867a0 | /SWEA/D3/200825 1216 회문2/1216.py | a51069b3a97d78410a7c3f5f37a064e5b4f48242 | [] | no_license | najoven/algorithm | ad1b3529d37747af238df62e840eb670b5fc80b2 | c4ad0d9718bd0751b16bf5e8d2f80647b1d95533 | refs/heads/master | 2022-12-21T07:18:59.467139 | 2020-10-09T13:30:15 | 2020-10-09T13:30:15 | 284,969,428 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | import sys
sys.stdin = open('input.txt', 'r')
def find(N,M,case):
for i in range(N):
for j in range(N - M + 1):
check = case[i][j:j+M]
if M % 2 :
til = M//2
check1 = check[:til]
check2 = check[-1:til:-1]
if check1 == ch... | [
"kimnyyj0430@gmail.com"
] | kimnyyj0430@gmail.com |
54658a494ec68b8a046703c55bafacb49b523697 | a8703318a729bc82e6c9b5e31898f64d6271cb23 | /utils/calculate_fscore/rrc_evaluation_funcs.py | aa1b27cdd6882d7917e0b7bfba4428010ac5c115 | [] | no_license | zhaopeng0103/WordRetrievalNet | 2cec62be44d00b1eacfefa179c90060e1bde16ca | 8a96cae2c6fc2f212c1266fa2496354b2cca6232 | refs/heads/master | 2022-11-30T22:55:00.131324 | 2020-07-30T12:52:38 | 2020-07-30T12:52:38 | 277,347,595 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,307 | py | #!/usr/bin/env python3
# encoding: UTF-8
import os
import re
import sys
import json
import codecs
import zipfile
import traceback
import numpy as np
sys.path.append('./')
def order_points_clockwise(pts):
rect = np.zeros((4, 2), dtype="float32")
s = pts.sum(axis=1)
rect[0] = pts[np.argmin(s)]
rect[2] ... | [
"424107420@qq.com"
] | 424107420@qq.com |
d522119641e45ea7f443f1458d207a02f08aa4b8 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/ControlRegions/WgS/Full2016/plot.py | ae45e9fd7f7af563855309ae7753825d3ffa7ccb | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 10,880 | py | # plot configuration
# groupPlot = {}
#
# Groups of samples to improve the plots.
# If not defined, normal plots is used
#
groupPlot['DY'] = {
'nameHR' : "DY",
'isSignal' : 0,
'color': 418, # kGreen+2
'samples' : ['DY']
}
... | [
"d4space@gmail.com"
] | d4space@gmail.com |
bc49330d9a4a595ff699ee5ce2b5242ed738345d | 54cdc09c61d2859bce44c6640a8d47844a9bd19a | /CNN/CNN.py | c72c77ba0fca9acb54989d7a1457ee0c0abe23f3 | [] | no_license | tinypang/theano-sae | 4caea26ec3789bb5849ea3c88a50738a33d6f78f | ce7b13adbaabb362af42f1ef26ff350c3f92f12d | refs/heads/master | 2021-01-01T19:15:18.167182 | 2014-10-12T06:12:39 | 2014-10-12T06:12:39 | 22,026,996 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,021 | py | """This tutorial introduces the LeNet5 neural network architecture
using Theano. LeNet5 is a convolutional neural network, good for
classifying images. This tutorial shows how to build the architecture,
and comes with all the hyper-parameters you need to reproduce the
paper's MNIST results.
This implementation simpl... | [
"tiny@tinypang.me"
] | tiny@tinypang.me |
dfa897d3f257e32121c709f43bebd0d52f22631a | f032cbec4f03d8c163609d4c5144b38952b2cbe9 | /other/6_text_similarity/generic_process_corpus_gui.py | db1ee724f3ecd42c5669ccbac714535b829a2eae | [] | no_license | humlab/the_culture_of_international_relations | f12a604421debcc90996d98b8cccff6633615ffc | 4440753d396c88dc5902e85e4c7e38ef8aadcefd | refs/heads/master | 2022-11-13T14:05:01.373504 | 2022-11-01T16:30:16 | 2022-11-01T16:30:16 | 90,034,896 | 3 | 3 | null | 2021-09-06T08:08:06 | 2017-05-02T13:11:09 | Jupyter Notebook | UTF-8 | Python | false | false | 8,967 | py | import types
import ipywidgets as widgets
import textacy_corpus_utility as textacy_utility
import common.utility as utility
logger = utility.getLogger('corpus_text_analysis')
def process_corpus(corpus, terms_opts, process_function, process_opts):
def get_merged_words(scores, low, high):
ws = set([])
... | [
"roger.mahler@hotmail.com"
] | roger.mahler@hotmail.com |
9f94f52b89d4ce8f0f76455859a1583a0f880199 | 8b9ced705460be4b9a309d8e0bfbe12e59cabf44 | /TopologyCS.py | 6314459c31ae3bc55c42993495043e932e3ab4dd | [] | no_license | dereksnyder42v2/chattchat | 8b2263b6101df131c41224a30ff95405ca130988 | d61a808e99f3bc590dd52d494c819cc9fb5d86c2 | refs/heads/master | 2020-04-03T12:52:53.604766 | 2018-10-29T23:16:49 | 2018-10-29T23:16:49 | 155,267,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | #!/usr/bin/env python
from mininet.cli import CLI
from mininet.net import Mininet
from mininet.link import TCLink
from mininet.topo import Topo
from mininet.log import setLogLevel
class AssignmentNetworks(Topo):
def __init__(self, **opts):
Topo.__init__(self, **opts)
h1 = self.addHost('h1')
... | [
"dereksnyder42@gmail.com"
] | dereksnyder42@gmail.com |
e0a554e3f83931eb4c86d960ab5373c7a5b18a09 | bed61635fc04a05755b9697736d547a4ec6e3e00 | /unsupervised_exercise2_lb.py | 6f651f5c69f31c89529c3d656e0e87db64e8c916 | [] | no_license | LindaBand/PythonCourse | 4f3d447c24eaa43fae9d65990cb13640fa3f5102 | 84cd78fa7375bf85ce935e70d0ee54804c414039 | refs/heads/master | 2023-06-12T12:54:28.239531 | 2021-07-09T12:20:55 | 2021-07-09T12:20:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,278 | py | # 2 Exercises for Unsupervised Machine Learning
import pandas as pd
import seaborn as sns
from sklearn.preprocessing import StandardScaler
from sklearn.decomposition import PCA
from sklearn.datasets import load_iris
from sklearn.cluster import KMeans
from sklearn.cluster import AgglomerativeClustering
from sklearn.clu... | [
"noreply@github.com"
] | noreply@github.com |
e5a6e03e129e9a2e49ebe93d32408641afdbe96f | a3969ebc5c1249a6f1de4b57ea6796425d517506 | /single_example/RNNRegressor.py | a94159c423892e8864316374f7b7dda532601b59 | [
"Apache-2.0"
] | permissive | yan456jie/Keras-Project-Template | 562236696b4512a309f86d46433b1cec469c5393 | 871f15c570da3c1221c2dd5a50f669d88dc43dd6 | refs/heads/master | 2022-07-15T19:59:17.582336 | 2020-05-19T08:38:56 | 2020-05-19T08:38:56 | 262,476,726 | 0 | 0 | Apache-2.0 | 2020-05-09T03:01:18 | 2020-05-09T03:01:18 | null | UTF-8 | Python | false | false | 1,796 | py | import numpy as np
np.random.seed(1337) # for reproducibility
import matplotlib.pyplot as plt
from keras.models import Sequential
from keras.layers import LSTM, TimeDistributed, Dense
from keras.optimizers import Adam
BATCH_START = 0
TIME_STEPS = 20
BATCH_SIZE = 50
INPUT_SIZE = 1
OUTPUT_SIZE = 1
CELL_SIZE = 20
LR = 0... | [
"yan456jie@qq.com"
] | yan456jie@qq.com |
bec7a61f48caf11186980225e0146962951dd93b | a710b99705b05be44893cc37cf79f615df4b4ed1 | /fabtest2.py | e6d3437236a57794fe1abf06a813fe336622582f | [] | no_license | afcarl/fabfhmm | 628aab2e9f7c4cca7f90d914dfde85d0794fecd0 | 1addbbe257d7e13ca78274d9b3964cd23c3cbd22 | refs/heads/master | 2020-03-22T06:36:40.586302 | 2016-05-21T14:23:05 | 2016-05-21T14:23:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,529 | py | from fabfhmm import FactorialHiddenMarkovModel, protect, saveModel, loadModel
from cfabfhmm import CollapsedFactorialHiddenMarkovModel
import numpy as np
import os
import sys
import datetime
class Tee(object):
def __init__(self, name):
self.filename = name
self.file = open(name, "wb", buffering=0)
... | [
"shaohua@gmail.com"
] | shaohua@gmail.com |
34f96a0617099afd0d7f6f2da75c52d59c91696c | 3474b315da3cc5cb3f7823f19a18b63a8da6a526 | /scratch/KRAMS/src/ibvpy/core/i_bcond.py | 724c3af30b2cc5336fb60d2c0bd2d4c98c37a380 | [] | no_license | h4ck3rm1k3/scratch | 8df97462f696bc2be00f1e58232e1cd915f0fafd | 0a114a41b0d1e9b2d68dbe7af7cf34db11512539 | refs/heads/master | 2021-01-21T15:31:38.718039 | 2013-09-19T10:48:24 | 2013-09-19T10:48:24 | 29,173,525 | 0 | 0 | null | 2015-01-13T04:58:57 | 2015-01-13T04:58:56 | null | UTF-8 | Python | false | false | 1,522 | py |
from enthought.traits.api import Array, Bool, Enum, Float, HasTraits, \
Instance, Int, Trait, Str, Enum, \
Callable, List, TraitDict, Any, Range, \
Delegate, Event, on_trait_change, Button, \
... | [
"Axel@Axel-Pc"
] | Axel@Axel-Pc |
fdfa4a2268cefa2900b4d9fbc62c860a79d0dc02 | 77486c9dff2af1c9a22f6d1c9af1abd19aa9e5cb | /logger/Logger.py | 93a631b5ef3963d8c20cb61bd3285f2e45cecad7 | [] | no_license | rohanapte9/AddressParserUtility | cac7177cbdde899adfe7f0bd7264c8cb02e16218 | 03e56d2da9825dada412f90c07c53f002fe6da0e | refs/heads/master | 2023-02-19T14:53:10.414539 | 2021-01-19T01:43:25 | 2021-01-19T01:43:25 | 329,949,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | import os
from datetime import datetime
import logging
class Logger:
'''
Description:
Logger class provides methods to log debug statements in logs
For every test execution a unique log gets created with TestName and Timestamp.
Usage:
Every PyTest should be decorated with Logger with... | [
"rohan.apte9@gmail.com"
] | rohan.apte9@gmail.com |
87fcbdd19d932c6379de0cd46fd9d4a1f81b1b85 | 47ce68e1ff970318fd31ac43405d0e1fa3594bf6 | /Models/Autoencoders/TransposeConvAutoencoderDeepExtraLLR.py | 281d1a5861b11b1efe478d6108fd1c7b3310b5eb | [
"BSD-3-Clause"
] | permissive | Midoriii/Anomaly_Detection_Diploma | 7196da379f8aefbd4546ca23e8303d1829e059fb | 11145e3e5210a4e45a33d98b138213edb7bc5d3d | refs/heads/master | 2023-03-25T20:42:56.961210 | 2021-03-14T01:13:39 | 2021-03-14T01:13:39 | 261,205,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,910 | py | '''
Copyright (c) 2021, Štěpán Beneš
Convolutional Autoencoder with learnable Conv2DTranspose layers,
especially deep, the encoding is really small
With even further decreased learning rate
'''
import numpy as np
from Models.Autoencoders.BaseModel import BaseModel
from keras.layers import Input, Reshape, Dense, Flat... | [
"stephen.Team24@gmail.com"
] | stephen.Team24@gmail.com |
70d05dc54994db5893273369526ec0ec2b99f8cd | 2a77419a7ca40e8eba9659e3ab2084d216af8c03 | /Software/Cpp/ThCombination/plotter_large.py | dce0f29ba7486ad6363ff5fcce9a3b0066540f21 | [] | no_license | typesAreSpaces/master-thesis | 6e69430fa373607a4984c91ad1f1b747918572dd | 717cb60330d263e2ffd81357a67b0f1e06da63ed | refs/heads/master | 2023-07-09T18:59:38.120748 | 2021-08-09T18:48:44 | 2021-08-09T18:48:44 | 137,972,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,269 | py | import numpy as np
import matplotlib.pyplot as plt
plt.style.use('seaborn-whitegrid')
def parse_info(file_name, _data, num_tests):
_file = open(file_name, "r")
current_entry = 0
for line in _file.readlines():
if(current_entry >= num_tests):
break
_line = line.split()
if... | [
"jabelcastellanosjoo@unm.edu"
] | jabelcastellanosjoo@unm.edu |
f0048f35a102488b22f7294d7a551bf6eaa79731 | 51ccc5e75e4bbf25fb74e6ca56557604f7d94d40 | /lib/report/ReportGenerator.py | 55bb0efa1e86041b3726f29c060624d5bebd3184 | [
"Apache-2.0"
] | permissive | BiteFoo/Android-Malware-Sandbox | 185ab8f3220ff575b407c70d4d2a0d40fd8d3d5d | bd73b376afb3f1f83d5d15c4734540334cdaa534 | refs/heads/master | 2022-12-12T01:47:30.436254 | 2020-07-20T09:55:52 | 2020-07-20T09:55:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | from lib.model.Analysis import Analysis
import base64
import jinja2
import os
dirname = os.path.realpath(os.path.dirname(os.path.realpath(__file__))+'/../../')
class ReportGenerator:
@staticmethod
def b64encode(text):
return base64.b64encode(text).decode('utf8')
def generate(self, param):
... | [
"romain.kraft@protonmail.com"
] | romain.kraft@protonmail.com |
febd8ce3df6e298de1a12ebe6fc31dd1db4283da | c09a2bfda759eb85d0ebf6a1e3bfe89bef5ffebf | /shop/urls.py | 6b8329fa6b999fb2cec7b00e8a2847fa7faacb44 | [] | no_license | neonua/simple-shop-with-celery-test- | d8cbb84a7ef50bc2d154ea12a2b0c74ee6e569eb | c0475926f6927fc7917a7ae93703765b3faef25e | refs/heads/master | 2021-01-23T05:34:57.037939 | 2017-03-27T15:29:10 | 2017-03-27T15:29:10 | 86,317,732 | 0 | 0 | null | 2018-10-21T00:41:12 | 2017-03-27T09:38:37 | Python | UTF-8 | Python | false | false | 376 | py | from django.conf.urls import include, url
from django.contrib import admin
from shop_app.views import ProductList, CartList, CartAdd
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^$', ProductList.as_view(), name='index'),
url(r'^cart/$', CartList.as_view(), name='cart'),
url(r'cart/... | [
"neonua666@gmail.com"
] | neonua666@gmail.com |
60498b2a36b3b029e68117c353e9d62505294008 | 9dab41a71bf19a9ad17ee3e9f77c0f58aebd1d6d | /python/uline/uline/uline/handlers/app/official/operations/form.py | 54954fb7a2dabc703be3fa1e80e3641216ebec7a | [] | no_license | apollowesley/Demo | f0ef8ec6c4ceb0aec76771da8dd9a62fb579eac8 | 471c4af95d3a7222d6933afc571a8e52e8fe4aee | refs/heads/master | 2021-02-15T04:01:51.590697 | 2018-01-29T01:44:29 | 2018-01-29T01:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from wtforms import validators, fields
from uline.utils.form import BaseForm
class MessageSendSearch(BaseForm):
create_at = fields.DateTimeField(validators=[validators.Optional()])
message_content = fields.StringField(validators=[validators.Optional()])
sende... | [
"36821277@qq.com"
] | 36821277@qq.com |
e03cfd7c63c3793a0fda6c59cf1b16cf427ce1b5 | d672ea264b83db1018fbb4618ee92c333c29d2c1 | /scrape_mars.py | d50892bc802b6a2be17e6fefc7be70bc4145e55d | [] | no_license | jwiner97/MissionToMars | 2a7e09aa6bad2eaf801da40a932d888cb7210920 | c5186a58643b3b34c01c8d674d25f7c2230e5495 | refs/heads/master | 2020-05-14T13:02:59.904309 | 2019-04-25T00:35:23 | 2019-04-25T00:35:23 | 181,804,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,687 | py | # Dependencies
from bs4 import BeautifulSoup
from splinter import Browser
import pandas as pd
def scrape():
executable_path = {'executable_path': 'chromedriver.exe'}
browser = Browser('chrome', **executable_path, headless=False)
url = "https://mars.nasa.gov/news/"
browser.visit(url)
html = browse... | [
"jason.winer@gmail.com"
] | jason.winer@gmail.com |
6cd2e0122ca24485084040f7aa45748e009061fc | 434365a0910a57fe951eef9a3ed9580e6d0e8b9f | /uncle.py | ba96e9b25d32928258f760b0077e87bfa2d2fb20 | [] | no_license | alexvx2/ibmtest | 335a69db9cc0bc1675b6cb72dbf4a4422851e9e8 | 6430d1804f01ba6bc84f48b9332461c8af92fea7 | refs/heads/main | 2023-02-03T17:52:26.313831 | 2020-12-18T11:16:14 | 2020-12-18T11:16:14 | 322,276,036 | 0 | 0 | null | 2020-12-18T11:11:17 | 2020-12-17T11:36:53 | Python | UTF-8 | Python | false | false | 19 | py | print("i'm uncle")
| [
"noreply@github.com"
] | noreply@github.com |
8a73d714a277e2e95c277b0b22c59b9db9752930 | 5751c3b9f99fb4903732914b5511de8e882fa4ee | /Cluster_faces.py | bffd9024963be75d1cbf6abd512809510b9e059b | [] | no_license | liuzheng081/face_clustering | 15c5a0764858a2ae47751b0016a9f6e834b264aa | 487550f644789a874d8a7693cac527ebd0431081 | refs/heads/master | 2020-05-20T10:50:25.234417 | 2019-02-06T17:00:05 | 2019-02-06T17:00:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | """
Author: Pavel Krolevets @ Shanghai Jiao Tong University
E-mail: pavelkrolevets@gmail.com
"""
import numpy as np
from sklearn.cluster import KMeans
import pandas as pd
from shutil import copy2
import os
names = list(np.load('./np_embeddings/image_list.npy'))
embeddings = pd.DataFrame(np.load('./np_embeddings/embed... | [
"pavelkrolevets@gmail.com"
] | pavelkrolevets@gmail.com |
3878130f0f9cf98c52c5c9089cbe81841cf7040e | 20149c63930ebb2a950e45a7fafa12a17712695c | /ImageProcessing/camera.py | 914751cb174bbbf7236d7c86bdf4630599682c6b | [] | no_license | junyi1997/Final_OIT_projet | ffe7f1a1c61f8124ab72d5250e30c1e2cc49c1ab | 98fc039378021c6db259dbe79d7980750aa91710 | refs/heads/master | 2023-01-03T05:24:31.133416 | 2020-11-01T14:12:15 | 2020-11-01T14:12:15 | 201,788,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | import picamera
initialized = False
class Camera:
camera = None
def __init__(self):
self.camera = picamera.PiCamera()
def takePhoto(self, filepath):
""" Takes a photo and saves it to the /img directory. """
self.camera.capture(filepath)
def getPiCamera(self):
return self.camera
| [
"q5896799@gmail.com"
] | q5896799@gmail.com |
9a94061d04c08139ee1e90207e78997a7ba7a14b | 2e1ae73a738f3c0b3c4860887be1ebf2a08ba3b1 | /mongodbwrapper/mapping/RMLMapping.py | 360856ddab330e65335c163e4495f8223137aa2a | [] | no_license | keme686/MongoDB-Wrapper | 802a184ff6d8f31eb15a87968b451cdfc8cb37b0 | 6d4d2bb998f79f536f9903c140283e96992a5e9c | refs/heads/master | 2021-01-09T05:44:07.693843 | 2017-02-06T11:23:35 | 2017-02-06T11:23:35 | 80,821,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,797 | py |
__author__ = 'kemele'
import rdflib
class ReferenceMap(object):
def __init__(self, name, datatype="xsd:string", lang="en"):
self.name = name
self.datatype = datatype
self.lang = lang
def __repr__(self):
return self.name
class RMLPredicate(object):
def __init__(self, pred... | [
"keme686@gmail.com"
] | keme686@gmail.com |
d17fcbfb6ef91432543f311c1221ebe632b97677 | 79c6f8ab9799929b85b0d05bdbd1418fe517763e | /hsr/model/bidirectional_junction.py | 185e6b192992a79e1a89aa038296bbc7e3c0ce51 | [] | no_license | yukunchen113/compvae | e6e3bb43fcd6da8fc2fcad641cabec6a3b1a3530 | 5d893b1918ac8e5c53f3dd9477fd8785f8c3eb9d | refs/heads/master | 2023-08-15T16:54:20.976982 | 2021-09-29T04:13:19 | 2021-09-29T04:13:19 | 240,588,256 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | import tensorflow as tf
import numpy as np
class _Base(tf.keras.layers.Layer):
"""
input tensors a and b.
will output in the shape of b.
"""
def __init__(self, input_shape, output_shape):
super().__init__()
assert np.equal(input_shape[:-1], output_shape[:-1]).all()
self._shape_input = input_shape
self._sha... | [
"ychen@boomer"
] | ychen@boomer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.