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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5a7031394d020167401d415b01b1c26641cdcea8 | 3428fc46ae76d03220da813944421bbdf9631df5 | /linkedin_bot.py | fd3cd922e259baeee79cb835bfd1b8a2fe379bfa | [] | no_license | shakirshakeelzargar/tkinter | 1d321c1c4153b22d61750f06f0eb20a7d4eabed7 | 0990071a2f18afc3853f04611bb3f3c31ccb0a26 | refs/heads/master | 2022-11-14T18:42:14.801119 | 2020-06-15T12:57:51 | 2020-06-15T12:57:51 | 272,438,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,856 | py | from selenium import webdriver
import time
import os
from urllib.parse import quote
import configparser
from random import randint
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.... | [
"shakir.s@softcrylic.co.in"
] | shakir.s@softcrylic.co.in |
ec11bb3617b1bf1e5798aba01cf98d6ef1902aaa | 559dad409652172c4052749354dcb1f2f178f9c3 | /day01/my_regression.py | 9b5a932f63517fcefbb3ec5bd3ec318aac4604b8 | [] | no_license | panghu96/tensorflow | 5bb138e18212f2e69703b81bd91e0b8efa08f5cb | 5ffdc28012f95c6b12d3045f506fad27e4cbb15d | refs/heads/master | 2023-07-08T04:01:48.810876 | 2021-08-10T08:13:49 | 2021-08-10T08:13:49 | 394,577,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | """
自定义实现线性回归
"""
import tensorflow as tf
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
def regression():
# 创建指定名字的作用域
with tf.variable_scope("data"):
# 1.随机生成数据,x和y都必须是矩阵
x = tf.random_normal([100, 1], mean=1.70, stddev=0.50, name='x_data')
# 矩阵相乘,计算y. y = wx + b
y = tf.... | [
"1062571616@qq.com"
] | 1062571616@qq.com |
b82426fd99ef70095177e8a4947758a3ae5c3025 | 08bbb0f4f072c85665a14a573b405a2e40e01221 | /baekjoon/0329/12967.py | 5bab03ea632d1cfc8367b2fc18a3f83ee86ee567 | [] | no_license | Gyutae-Jo/algorithm | db8b905a08bc8dddaaab6a143e5fefd477981536 | 25e9d4bf5a1ec1f84e5f8066169dc792da0ab845 | refs/heads/master | 2023-05-24T15:04:45.839566 | 2021-06-09T05:06:56 | 2021-06-09T05:06:56 | 332,739,387 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,181 | py | # # 12976 - pqr
# import sys
# N_K = sys.stdin.readline().split()
# N = int(N_K[0])
# K = int(N_K[1])
# # N, K = map(int, input().split())
# # arr = list(map(int, input().split()))
# arr = sys.stdin.readline().split()
# cnt = 0
# total = 1
# for i in range(N):
# total *= int(arr[i])
# if total % K == 0:
# for ... | [
"ckt94@khu.ac.kr"
] | ckt94@khu.ac.kr |
cd035662a44e51d9cae8ad9af22afc792b3220dc | 9db3423c0c0b460eed51421857e207f5accad2a6 | /scraper.py | 9cc9ce0c4675389d961d2fc4dd41f45ac090e4c9 | [] | no_license | nathanleiby/bayes-thorn | 29322cf827b8faadf96c97a1cbd80c298919596d | b7d565c61009aaf442dbee389b57d328b84c52fa | refs/heads/master | 2020-12-25T19:15:00.012537 | 2014-11-16T19:37:13 | 2014-11-16T19:37:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | import os
import pandas as pd
from urlparse import urlparse
import urllib2
import extract_prices
from bs4 import BeautifulSoup
os.chdir("/Users/danfrankj/src/bayes-thorn")
df = pd.read_csv('escort_all_sampled.csv')
df['postAge'] = df['postAge'].convert_objects(convert_numeric=True)
def parse_backpage_url(url, seen... | [
"danfrankj@gmail.com"
] | danfrankj@gmail.com |
8d47ee8cce3c52d924a9a410f1ad5f3b69c62326 | 11ef95494e2ca425a6ffb4cf389dd4e78d1ba494 | /game_engine/types/size.py | 16413d3c575204f9ba2d84104e36209c6f57b276 | [] | no_license | dungeontiger/gutlicsArena | 011c66887982af5ae04a97cf45a0d75c83671d98 | ebf2a584cd87a3418639388425f4f65032c4265f | refs/heads/master | 2020-12-09T23:09:10.760397 | 2020-03-01T16:31:56 | 2020-03-01T16:31:56 | 233,442,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | import enum
class Size(enum.Enum):
SMALL = 0
MEDIUM = 1
LARGE = 2
| [
"Stephen.d.gibson@gmail.com"
] | Stephen.d.gibson@gmail.com |
6412d5edf654881f4c03fb542c80c4d66fd3c408 | d1a85e7907e43f13c9f28142671b7268e9d6b418 | /context_processors.py | b3914385312ec4766a018b475e9803bb63c5cede | [] | no_license | ezl/squareone | b288cd9922006365f4c25ff824fbe403d76b7469 | 5a59f9845859a975e2fee2fb9e51b3c0746ab62d | refs/heads/master | 2020-05-30T16:58:29.373604 | 2011-04-04T01:15:42 | 2011-04-04T01:15:42 | 1,335,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.contrib.sites.models import RequestSite
def request_site(request):
return {'site': RequestSite(request)} | [
"ericzliu@gmail.com"
] | ericzliu@gmail.com |
4a01c4de0b7f502cd3a3b7636430d6c45cbdb9b6 | ad7debb0ecd87597dbcd5083d0fe94fc8d88f7fa | /noobnews/tests.py | dd1a60d6150e279fd0c2fa5ede4622d22a851d1b | [] | no_license | EndaMcVey/NoobNews | 0bc6525080457251c6667b724f313bf99d543a5a | f4cccfead7926add4d2eeb55f6b2b6bdadc57bdc | refs/heads/master | 2022-12-11T01:34:17.886959 | 2019-05-24T12:21:59 | 2019-05-24T12:21:59 | 188,415,101 | 0 | 1 | null | 2022-12-08T01:46:09 | 2019-05-24T12:05:20 | CSS | UTF-8 | Python | false | false | 5,680 | py | from django.test import TestCase
from django.core.files.uploadedfile import SimpleUploadedFile
from django.core.files.storage import default_storage
from django.core.urlresolvers import reverse
from noobnews.models import VideoGame, VideoGameList, Genre, ratingValue, User, UserProfile, Review
import noobnews.test_utils... | [
"endamcvey@hotmail.com"
] | endamcvey@hotmail.com |
0e6f8a6a31f748ba3519f11636a59f0ac76ce07d | 6970ad9dfec3a2b3d00675b12dcd73b19e2d6f8f | /notebooks/model.py | eef4f6e208b1355e69bfdc5081b5b72ccbdd16b1 | [] | no_license | seanjparker/knowledge-distillation | e0ac709e312948f7fd0f86928efcfe0813d4411b | 63812cc9efe6ccf3d234bc8592945779757afe59 | refs/heads/master | 2023-02-21T18:33:44.661764 | 2021-01-16T02:32:12 | 2021-01-16T02:32:12 | 323,975,006 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,221 | py | import torch
from torch import nn
from torch.nn import functional as F
class BasicBlock(nn.Module):
expansion = 1
def __init__(self, in_planes, planes, stride=1):
super(BasicBlock, self).__init__()
self.conv1 = nn.Conv2d(
in_planes, planes, kernel_size=3, stride=stride, padding=1,... | [
"sean.parker067@gmail.com"
] | sean.parker067@gmail.com |
90bbd64df5c967ac7d128d777a73aca4f34eb441 | b0cf0e020a097382700721db025463554eb4742f | /logger.py | 6932d8dfcc465faff48981c678ea0d50282cc101 | [] | no_license | oslab-ewha/blkanal | 82887eb5d9f8f4d541daa35aa0539b30ebd11356 | 10126802030efd9281b56f4752fe73e0b73f09ca | refs/heads/master | 2023-02-18T03:17:47.302585 | 2020-12-23T04:12:42 | 2020-12-24T02:50:16 | 309,553,189 | 6 | 1 | null | 2021-01-06T02:11:50 | 2020-11-03T02:44:52 | Python | UTF-8 | Python | false | false | 730 | py | import logging
def init(prog):
global logger
#
log_path = None
level = logging.INFO
logger = logging.getLogger(prog)
if log_path != None:
handler = logging.FileHandler(filename=log_path)
else:
handler = logging.StreamHandler()
formatter = logging.Formatter('%(asc... | [
"cezanne@codemayo.com"
] | cezanne@codemayo.com |
38009bd31863e446cc553fda7789b52f3f9980fd | 17e9dac1b09a99fbe1d2dc006e58675f583ce0fd | /venv/Scripts/easy_install-script.py | 39ad86993f538851e236e54fc740f78720b68a99 | [] | no_license | Vc346/PirateTwitterBack | bee179be63722dfc765512156509f7d22d21b05b | ceb50f328f65a54647e597b8a45bc3ae52d68085 | refs/heads/master | 2020-08-04T13:12:27.379279 | 2019-10-01T16:42:48 | 2019-10-01T16:42:48 | 212,147,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!C:\Users\nyara\WebstormProjects\PirateTwitter\back\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scr... | [
"A01336434@itesm.mx"
] | A01336434@itesm.mx |
ebb236e44d2e50bfe6d2ca849747552c0f0f91ed | 20c1f61d4f3bdfec8bbe47e2b6bfa8d36e5456ea | /23.3/models.py | f3092c672fd38f269a536caa1da4f820e9b7f007 | [] | no_license | SNSTRUTHERS/springboard | de910db081838480a5bdc5275a85f4aff50f1570 | ebeb94906be8774c2f4e2b0e8eaefd6c1ce10959 | refs/heads/master | 2023-04-23T08:46:13.541922 | 2021-05-18T17:53:46 | 2021-05-18T17:53:46 | 287,401,487 | 0 | 1 | null | 2020-08-14T02:03:43 | 2020-08-13T23:45:48 | JavaScript | UTF-8 | Python | false | false | 3,233 | py | """Models for Blogly."""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy_serializer import SerializerMixin
db = SQLAlchemy()
def connect_db(app: Flask):
"""Connects a Flask application to the database.
Parameters
==========
app `Flask`
The Flask application t... | [
"snstruthers@gmail.com"
] | snstruthers@gmail.com |
c8ddfdccfaf6d9c4816507811c5039f504cfcc99 | b95a665b40a61e975ad0583767cb0356c39cab8c | /pythonOOPfeatures/5SpecialMethod.py | 2f19ddc4e8fbf543b1f9e310198423255a428d1f | [] | no_license | ConyYang/TrickyPackages_Python | 616d964df504507d40fc6d97ad579c998ab84602 | 7beda22107c8718cd96134b5714a3632910d4d52 | refs/heads/main | 2023-02-28T06:07:36.980701 | 2021-02-04T14:09:54 | 2021-02-04T14:09:54 | 309,988,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | class Employee(object):
raise_amount = 1.04
num_of_employ = 0
def __init__(self, first, last, pay):
self.first = first
self.last = last
self.pay = pay
self.email = first + last + '@company.co'
Employee.num_of_employ += 1
def fullname(self):
return '{}{}'... | [
"yangyubei0218@gmail.com"
] | yangyubei0218@gmail.com |
59abafbe78f6016e4f518df08d9a9076bc3bc6f1 | 621dfccf1ace31bcf48cd1e7cc80b8dbd556b21b | /01_Jump_to_python/3_control/4_exer/3_codingdojang/2_ Tap_to_WhiteSpace.py | 720c8bf9281e57b760b5b143a6847695baf87b57 | [] | no_license | hansangwoo1969/iot_python2019 | 35d90997b442845d1f5fa5a6119d5352a8dbe46f | e1ea46bb4afcc33e1fc28b43e845759d8688098b | refs/heads/master | 2020-06-14T22:19:47.647686 | 2019-09-19T07:40:16 | 2019-09-19T07:40:16 | 195,142,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | # 소스코드내에 사용된 탭(Tab) 문자를 공백 4개(4 space)로 바꾸어 주는 프로그램
# === replace(old, new, [count]) -> replace("찾을값", "바꿀값", [바꿀횟수]) ===
text = '123,456,789,999'
replaceAll = text.replace(",", "")
replace_t1 = text.replace(",", "", 1)
replace_t2 = text.replace(",", "", 2)
replace_t3 = text.replace(",", "", 3)
print("결과 :")
print(r... | [
"you@example.com"
] | you@example.com |
be4abfce4f2e0523a1b2af14d786546ccf6ac7c0 | aee1f0cff0690b3796092c061d0ace80884d586e | /415_Add_Strings.py | 42ae18d5a871e606ed7bbbf8effd62bfc8853f85 | [] | no_license | nickciaravella/leetcode | 486baaf3ce3bc9d3d3ec61195e611ad4742ee25d | 1bba7aadabd5d234a9482a661da84a6829adfb77 | refs/heads/master | 2020-03-18T00:54:52.426951 | 2018-05-25T05:58:11 | 2018-05-25T05:58:11 | 134,118,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # https://leetcode.com/problems/add-strings/description/
# Easy
from itertools import zip_longest
class Solution:
def addStrings(self, num1, num2):
"""
:type num1: str
:type num2: str
:rtype: str
"""
val = ''
carry = 0
for n1, n2 in ... | [
"nick.ciaravella@live.com"
] | nick.ciaravella@live.com |
9128ef94f59ce5b466db8f96c63f17bf7f301496 | 67ce544a9767af0c2a44fc6783260c2492183d02 | /Test/test_rotation.py | eadc7f6862c77bfa99185f616d80d81c213b84db | [] | no_license | givemealung/LemonTea | cb8a02dbd2f28fd568b852b3b86adc37f74e1dda | d4ee807166436d2c610ecff418f1321a5b9ace44 | refs/heads/master | 2020-04-09T18:14:04.886505 | 2018-12-05T11:05:08 | 2018-12-05T11:05:08 | 160,496,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | import cv2 as cv
import numpy as np
def rotate_bound(self, image, angle):
# grab the dimensions of the image and then determine the
# center
(h, w) = image.shape[:2]
(cX, cY) = (w // 2, h // 2)
# grab the rotation matrix (applying the negative of the
# angle to rotate clockwise), then grab th... | [
"givemealung@users.noreply.github.com"
] | givemealung@users.noreply.github.com |
323a59b8047c88211c419f0f35612ab000bfb532 | 2589ba31d1efccc0413f3c8e037adb20de70004a | /python/astro_metadata_translator/translators/helpers.py | 4236aeea46bc6e146822cfa66ab31cd82b2158f7 | [] | permissive | HyperSuprime-Cam/astro_metadata_translator | 0acf51b6f03c3427e4c5dcae4151037b0779f27d | b976306e3e6fb85232cc838a145475ae8f16ca31 | refs/heads/master | 2020-05-14T18:52:50.234657 | 2020-02-01T01:55:06 | 2020-02-01T01:55:06 | 181,917,815 | 0 | 0 | BSD-3-Clause | 2019-04-17T15:19:23 | 2019-04-17T15:19:23 | null | UTF-8 | Python | false | false | 5,920 | py | # This file is part of astro_metadata_translator.
#
# Developed for the LSST Data Management System.
# This product includes software developed by the LSST Project
# (http://www.lsst.org).
# See the LICENSE file at the top-level directory of this distribution
# for details of code ownership.
#
# Use of this source code... | [
"tjenness@lsst.org"
] | tjenness@lsst.org |
19d90aabbffa1ff627828091e33fba3d914b4dbd | b22fe6a78705084904a68e187d28136c13ab7760 | /apps/user_operation/apps.py | 8b260e734bb14bcc4b0dc536c614d4ea7f1868d5 | [] | no_license | testomg/DRFDemo | 5d43db66305f533f7c4fcb5d66104f0dbb2410f2 | 4241481d8324381a3b8fc8fab747b6eb0a87423f | refs/heads/master | 2022-11-29T13:31:54.766992 | 2020-08-15T16:02:42 | 2020-08-15T16:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from django.apps import AppConfig
class UserOperationConfig(AppConfig):
name = 'user_operation'
def ready(self):
import user_operation.signals | [
"ljh_132s@qq.com"
] | ljh_132s@qq.com |
0cd9c31eea6953e2e2fc3f5b66f096fae2d66ff7 | 3effac4a67f2bd6e644262f9e6d61962aa37c905 | /WorkbookBS/01_basics/ex32.py | 5d4cf0278fdd9c0665e7fab5bc2953bb02df8e98 | [] | no_license | WitoldKaczor/py_repo | 06b3080c057079b4c93fd110a66839b6b2af5eb7 | a95cd2ba5068c556a63cefc0fa2ff42dc688a1ef | refs/heads/master | 2022-11-15T06:27:07.351992 | 2020-07-09T11:02:18 | 2020-07-09T11:02:18 | 275,154,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | int1 = int(input('First integer: '))
int2 = int(input('Second integer: '))
int3 = int(input('Third integer: '))
int_min = min(int1, int2, int3)
int_max = max(int1, int2, int3)
int_mid = int1 + int2 + int3 - int_min - int_max
print('Sorted numbers:', int_min, int_mid, int_max)
| [
"63341757+WitoldKaczor@users.noreply.github.com"
] | 63341757+WitoldKaczor@users.noreply.github.com |
f1245fd5f0a11cd259b2d46738a5fab7b90f5370 | 2f6405caec09b1dd184f260f112efce530c6a143 | /mysite/mysite/settings.py | a1d437040d2dfc0c8e1aff694978f9a1843ef98a | [] | no_license | bjorksus/my-first-blog | a6f6b4ed49b97087c5d0e1c609e727b81dcc188e | cb823868eca26bd06cc0e16b2ef36a4b6b5e8803 | refs/heads/master | 2020-06-20T22:08:53.903330 | 2016-11-26T16:15:12 | 2016-11-26T16:15:12 | 74,820,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,167 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
#... | [
"asa_lindgren@yahoo.com"
] | asa_lindgren@yahoo.com |
486e795c0000a52d94070003291791381d950f24 | af962fc2c12aa158daa408e51e010e9a450241ea | /kbengine/assets/scripts/base/interfaces/GameObject.py | 548891b5dbb7cb9bae918b56ab2008608b907ea4 | [] | no_license | ruifly2012/ShiSanZhang | c93685501cf4dba94367cd091066d51bf1850210 | b9085046ac03e63087118b7555ab0b4f7f29c43f | refs/heads/master | 2020-05-14T13:18:24.114010 | 2019-04-16T08:31:34 | 2019-04-16T08:31:34 | 181,809,959 | 0 | 1 | null | 2019-04-17T03:23:53 | 2019-04-17T03:23:52 | null | UTF-8 | Python | false | false | 1,127 | py | # -*- coding: utf-8 -*-
import KBEngine
from KBEDebug import *
class GameObject:
"""
服务端游戏对象的基础接口类
"""
def __init__(self):
pass
def onEnterWorld(self):
"""
KBEngine method.
这个entity已经进入世界了
"""
pass
def onLeaveWorld(self):
"""
KBEngine method.
这个entity将要离开世界了
"""
pass
def getScriptNa... | [
"693749857@qq.com"
] | 693749857@qq.com |
3048750031b8a35363b103cc6375537337a7f8e7 | c8272c29fb80c2f097f1a850151c5a8faa993ccb | /src/pyelliptic/cipher.py | fb8d0d46144c0c4764638babf1360e4828384a95 | [
"GPL-3.0-only",
"GPL-1.0-or-later",
"MIT"
] | permissive | wmantly/PyBitmessage | 5aa7cf25ef5aa668c0998db528729256ca669638 | 11accf973a2b6229a94613b352fd5cbe2c862729 | refs/heads/master | 2020-12-25T00:19:49.727559 | 2018-09-26T18:14:56 | 2018-09-26T18:14:56 | 30,033,550 | 0 | 1 | MIT | 2018-09-26T18:14:58 | 2015-01-29T18:02:28 | Python | UTF-8 | Python | false | false | 2,675 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011 Yann GUIBET <yannguibet@gmail.com>
# See LICENSE for details.
from pyelliptic.openssl import OpenSSL
class Cipher:
"""
Symmetric encryption
import pyelliptic
iv = pyelliptic.Cipher.gen_IV('aes-256-cfb')
ctx = pyell... | [
"git@jonwarren.org"
] | git@jonwarren.org |
9844ffeb251ce2d3f012663c169bb3696ebed044 | e8ec436ebcabfa494e2f59499009333d45eda9a1 | /P3/P3_Query_DB.py | e8b276f7aff03fd465c8e14dbfc26ccb9b2d8279 | [] | no_license | petetheat/DAND_Udacity | ec32ee72c0202398f475638b0a34161f7e07f2f7 | 12dfa187e8eddd031f085a71955d083af8085222 | refs/heads/master | 2021-01-14T10:30:39.898688 | 2017-04-14T20:37:13 | 2017-04-14T20:37:13 | 82,033,021 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,832 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 02 17:30:30 2016
@author: Peter Eisenschmidt
"""
import sqlite3
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
#%% Open database
db = sqlite3.connect("P3_Bremen.db")
c = db.cursor()
#%% Database queries
... | [
"p.eisenschmidt@gmail.com"
] | p.eisenschmidt@gmail.com |
32da7c7dcdd60fe08e91d3e9259fdbf78987fc31 | e823989ba8d2b536e0d87516b6b96dbd3bcae14d | /1definitionfunction.py | dfd26a3c93b14d2f774061ce6bdb832a47ec8480 | [] | no_license | AlexMendozaa/Python_Crash_Course | 39503f0479afc39c9ca5139d3b2ac0e34fd98e1f | 13b5e2379aa95175b0f2a1cb01e91a295a557e0b | refs/heads/master | 2020-05-31T13:26:14.534238 | 2019-06-05T02:02:13 | 2019-06-05T02:02:13 | 190,303,371 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | def hello_world():
message = "Hello World"
print(message)
| [
"angel17mendoza@gmail.com"
] | angel17mendoza@gmail.com |
f445ab234342c95f1dfb2f9267ecdd52dfa63bb5 | ba14dedcc99297ac424580d52c276cc2862bcaeb | /___Python/RomanS/untitled/p07_file_io/m01_count_files.py | 75c674366a64344109584583d834c3b6e1e012ba | [
"Apache-2.0"
] | permissive | uvenil/PythonKurs201806 | ac8ddf7255f7c420f5e7c2c1d1f28d4d2c83e410 | 85afa9c9515f5dd8bec0c546f077d8cc39568fe8 | refs/heads/master | 2020-03-22T00:06:04.163119 | 2018-06-30T22:17:14 | 2018-06-30T22:17:14 | 139,224,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | from pathlib import Path
# Zähle die Anzahl Ordner in einem Ordner (incl. aller Unterordner)
def count_dirs(path):
subdirs = [subdir for subdir in path.iterdir() if subdir.is_dir()]
count = 0
for subdir in subdirs:
count += count_dirs(subdir)
return count + 1
count= count_dirs(Path... | [
"uvenil@web.de"
] | uvenil@web.de |
3804875fccfdcddc332d90909984baaf01922606 | c1aa240e35a7a8355a7ca9dcd546bdb6446b8509 | /Trie_Tree.py | f0f8f73acacee9fa36b47a3f9c5172469f20b7d6 | [] | no_license | LGSW/Algorithms | a713685c737b7f7578704cd9c859e98a411e0a59 | 1cdf9caf74299c36735069fef41e8e95f4ed68fc | refs/heads/master | 2020-03-24T22:21:58.025620 | 2018-08-12T03:23:28 | 2018-08-12T03:23:28 | 143,058,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | class Trie:
def __init__(self):
self.trie = {}
self.size = 0
def add(self, word):
p = self.trie
word = word.strip()
for c in word:
if c not in p:
p[c] = {}
p = p[c]
if word != '':
p[''] = ''
def search(self... | [
"41303602+LGSW@users.noreply.github.com"
] | 41303602+LGSW@users.noreply.github.com |
6db4e149d5148b1e14e2fd4f50023e8be42d556d | d053ffce6fb82d63f0c88d6c5d39a7cdf561a70f | /picammon.py | 887ccb922d87660ead99166643ab4dbb6bddeb83 | [] | no_license | theapu/picamscripts | 55eedc94515f4c0e2d7c13a9b2f32e8d3f37b165 | bd3ffbded065c2ec29fe41f19f28eeb3b96902e4 | refs/heads/master | 2021-01-19T04:52:15.215337 | 2013-09-16T14:37:27 | 2013-09-16T14:37:27 | 12,869,490 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | #!/usr/bin/python
import sys
import time
import os
# Packages for sending emails and attachments
import smtplib
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
watchdir = '/home/pi/picam/'
contents = os.listdir(watchdir)
count = len(watchdir)
dirmtime = os.stat(watchdir).st_mtim... | [
"theapu@gmail.com"
] | theapu@gmail.com |
329820e4fb0bdc8a6f6066a7fd3f7ef27e2680a6 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /cZ6zaRiKn7dfvJhnF_16.py | 64c5a53e5ff83398fdf70ff7162ad41d08b62c4b | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
Creates a function that takes a string and returns the concatenated first and
last character.
### Examples
first_last("ganesh") ➞ "gh"
first_last("kali") ➞ "ki"
first_last("shiva") ➞ "sa"
first_last("vishnu") ➞ "vu"
first_last("durga") ➞ "da"
### Notes
There is no empt... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b3dae15c899ddfcd56e004fb6d731077460a5bbb | 26076d82841fa3376aa1ae571e1e24fd6edc04f1 | /coupon-codes.py | e107c438fceae862b907c57122171c174cb4e4f5 | [] | no_license | grnwood/sfcc-stuff | a6f9c427010549fac8911ef4cd718abf2ee5a72b | a604c9673b908c257ddbef7ed2c3bdd931ccbb37 | refs/heads/main | 2023-08-14T17:07:51.344909 | 2021-10-06T20:04:03 | 2021-10-06T20:04:03 | 414,349,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | #! python3w
import xml.etree.ElementTree as ET
tree = ET.parse("C:/Users/jogreenw/AppData/Local/Temp/7zO0D747F01/coupons.xml")
root = tree.getroot()
for coupon in root.findall('coupon'):
desc = coupon.find('description')
if desc is not None:
if (desc.text) == 'Home Delivery':
cid = coupon.... | [
"grnwood@gmail.com"
] | grnwood@gmail.com |
1e2b5755554832e80defe145dcc51fac19a9392b | 97a019b52a56cfd16cd7c4dbb730e83c581d2b3e | /Archived/Research/PredictiveMouseTracking/process.py | dd72d04a9559bbe7dc2fd92a30b70b0dc624f85c | [] | no_license | nalinraut/high-level-Motion-Planning | f0263dcfa344b914159b0486370bc544552ac360 | 08cd792124defba63583ba6ae6394b20329d38c0 | refs/heads/master | 2020-03-09T04:20:12.846801 | 2018-04-09T06:11:29 | 2018-04-09T06:11:29 | 128,585,159 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,138 | py | import sys
import csv
import re
import copy
import math
import random
from database import Database
from timeseriesdb import TimeSeriesDatabase
def do_reach_default(db,obsfile,transfile,initfile,scalefile):
drop = ['iteration','time','target x','target y','widget x','widget y']
process = ["target rel x = {tar... | [
"rautnalin@gmail.com"
] | rautnalin@gmail.com |
bb15f603b4ce5286f3877fbe5c9f8d23abda767f | 7e334b54b3a92d642af688139edaa952135f1026 | /pythMatrix/PythagorasMatrix.py | a1018123597b004bb31fe28e9a8b680198970593 | [] | no_license | chinook82/calcMatrix.numero.py | db46dcf031bee2768788d56e49ee441cab363bd1 | b4e5b763aa3724dda3a954b9d15af12f9c9badf0 | refs/heads/master | 2021-01-01T16:52:45.911307 | 2017-08-04T10:14:06 | 2017-08-04T10:14:06 | 97,938,852 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | """ Class Pyphagoras Matrix """
class PythagorasMatrix:
pass
# end PythagorasMatrix class
| [
"cheguevaros@mail.ru"
] | cheguevaros@mail.ru |
cdb75a85f07982575bcab34275dda5cb319f027c | eb649fdf454118f54247501605b7ebcbf3f53dca | /drafts/amp_uvdist.py | c5ac63177627c0d9f26a703d1250bf505589a233 | [] | no_license | abulatek/knac | c20cdd9f1a79edb3cf6cc338107ab988181f33ca | 44421624d1873c112b7f665914311610450f817d | refs/heads/master | 2018-09-22T04:45:19.779829 | 2018-06-06T17:34:55 | 2018-06-06T17:34:55 | 93,764,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py | from astropy.io import fits
import matplotlib.pyplot as plt
import numpy as np
def amp_uvdist(sbfile,lbfile,binsize):
plt.clf()
filenames = [sbfile,lbfile]
for name in filenames:
image = fits.open(name)
u = image[0].data['UU']
v = image[0].data['VV']
u *= image[0].header['c... | [
"noreply@github.com"
] | abulatek.noreply@github.com |
33ef53497f24fd895f37e3502f3660d462331246 | 7bd96167a0e28b67d23d588536eb4eb9d3f30fc2 | /sstcam_sandbox/d181105_sim_telarray_cfg/pixel_mapping.py | bc9517e247a68b260a0ae22506a7107d01fc575a | [
"BSD-3-Clause"
] | permissive | watsonjj/sstcam-sandbox | 18bc6ca6ae4a0f09cdc1ae70396b79fc9d54a8a6 | 91330d3a6f510a392f635bd7f4abd2f77871322c | refs/heads/master | 2023-07-12T22:03:37.668204 | 2021-08-17T14:19:58 | 2021-08-17T14:19:58 | 128,373,226 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,343 | py | from sstcam_sandbox import get_data
from CHECLabPy.utils.files import create_directory
import numpy as np
import pandas as pd
import os
from target_calib import Mapping
def create_new_mapping(input_path, output_path):
"""
Create a TargetCalib Mapping file with the latest pixel positions,
but the prod3 pix... | [
"jason.jw@live.co.uk"
] | jason.jw@live.co.uk |
b572b186134842cde318ac3176c3a537bc2fd2a2 | 2ce474218a76137c28da34100b76732b71774514 | /noxfile.py | 45ac6e92aba53fe8374f7b5f0d0f5e76f96cf01d | [
"ISC"
] | permissive | connectedcars/nb-clean | 1c75d6541cad346e404fa62487d9ee53287dbf03 | 214481fe33f3cb0e4ef62a7e53f739b1ccab9460 | refs/heads/master | 2020-05-07T09:10:55.641838 | 2019-04-09T15:05:46 | 2019-04-09T15:05:46 | 180,366,143 | 0 | 0 | null | 2019-04-09T12:52:37 | 2019-04-09T12:52:37 | null | UTF-8 | Python | false | false | 1,088 | py | """Nox configuration."""
import nox
SOURCES = ["noxfile.py", "src"]
def install_dependencies(session):
"""Install Poetry and project dependencies."""
session.install("poetry")
session.run("poetry", "install")
@nox.session
def mypy(session):
"""Type check code with mypy."""
install_dependencies... | [
"scott@stevenson.io"
] | scott@stevenson.io |
36809d5546b14a81bb05f8539e7eee6d5ce6c676 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_165/ch84_2019_06_06_16_35_44_977490.py | 4474d83ec8994225edbf0e29de51fccb478e8ee1 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | def inverte_dicionario(dicionario_1):
dicionario_novo = {}
for nome,valores in dicionario_1:
if valores not in dicionario_novo:
dicionario_novo[valor] = []
dicionario_novo.append(nome)
return dicionario_novo
| [
"you@example.com"
] | you@example.com |
0ef874fe8275ef5798b65edcde8202115ad19c98 | 10b0b7a9adc6e293501488d91eac3b6bd8546b99 | /src/ros_deep_vision/data_monster.py | d1a7cc8e1b599a0e9a4e2cdef3de359e19eb51f2 | [
"MIT"
] | permissive | goolygu/ros-deep-vision | 9e0c552b6901cb07cfb3210caa53238b145c54b7 | 9328dfe6c13f5e3dd3e3a3f816cbbfbca15aaf3b | refs/heads/master | 2020-04-06T04:57:22.761956 | 2017-04-03T17:23:38 | 2017-04-03T17:23:38 | 46,363,009 | 9 | 4 | null | null | null | null | UTF-8 | Python | false | false | 65,673 | py | #! /usr/bin/env python
# -*- coding: utf-8
import roslib
import rospy
import sys
import os
import cv2
import numpy as np
import time
import StringIO
from threading import Lock
from misc import WithTimer
from numpy_cache import FIFOLimitedArrayCache
from app_base import BaseApp
# from core import CodependentThread
from... | [
"lku@cs.umass.edu"
] | lku@cs.umass.edu |
3893f77b41dce8ad59233c0410f8f973797f485a | b228f1130e7b4797a7f8061ad0a3021648bdafce | /server/test.py | 03e347db6761e5ef4d36ba463bde46adba54b3e1 | [] | no_license | flobe99/VerteilteSysteme | 14c5202076800bc657c8762df629d91d113188b9 | 6ad1457c3d59e97fb0cd17d6fc84da07ca4eab17 | refs/heads/main | 2023-05-24T15:14:44.357181 | 2021-06-15T14:41:04 | 2021-06-15T14:41:04 | 366,633,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,598 | py | #!/usr/bin/env python3
import unittest
import server
import database
import mongomock
import json
from urllib.parse import urlencode
from datetime import *
app = server.app.test_client()
def call(method, path, data):
return app.open( path, method=method, query_string=urlencode( data ))
# Wrapper for generating date... | [
"tobi-bungard@t-online.de"
] | tobi-bungard@t-online.de |
38661368c26aa1da318d78f95ed8e96aff94449e | 68117ea00c89e2416531b8bbe9f3ded2d82dc7a6 | /XGB_regressor.py | 3c308373bd678d5fd24344f98333d1aab35e82e5 | [] | no_license | dmcglynn10/WindForecast | 77f23b8abd6f6db6cfc6b6e62a9c0cafa168ae9b | dfa9ce367c8a9b0da96eae8cf8f5277f43594080 | refs/heads/main | 2023-06-17T23:00:48.469521 | 2021-07-13T18:31:45 | 2021-07-13T18:31:45 | 385,700,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 6 15:31:23 2020
@author: Daniel.McGlynn
"""
import xgboost as xgb
from sklearn.metrics import mean_squared_error
import pandas as pd
import numpy as np
def XGB_regressor(normalised_x, normalised_y):
"""Implements XGBoost Regressor """
data_dmatrix =... | [
"noreply@github.com"
] | dmcglynn10.noreply@github.com |
d15eaf4ac71e27cbe43d303f116879cdbc162b2b | 6cae49b177f24440f6ad6f2331ce6747c23eafec | /occu-table/Mohabir-Jason/formMagic.py | 03c904b1314086afa096922bba9749f6943e631d | [] | no_license | JasonMohabir/Flask_SoftDev | 37016b96bc7f835b5af22419e57b30273dae97bb | 3669a0c69fa27f454eb886fd44c5e5bf22fc16ea | refs/heads/master | 2021-06-11T18:49:19.934403 | 2016-10-11T17:30:26 | 2016-10-11T17:30:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | from flask import Flask, render_template, redirect
import random
app = Flask(__name__)
occL = open("static/occupations.csv").read();
occL = occL.split('\n')
lineZero = occL[0]
del occL[0]
lineLast = occL[len(occL)-1]
del occL[len(occL)-1]
occDict = {}
upperBoundL = []
currentUpperBound = 0
occL2 = []
for line in oc... | [
"jmohabir@stuy.edu"
] | jmohabir@stuy.edu |
2a7f86e7378adde57ac4d8825f6fda12c5641584 | 4a27c4bc014ad3c2342e2a548e265d8e693ebf25 | /sacluster/lib/cls/delete/delete_class.py | 1721c1c781162e3c8fa064cfe67b82a8eeff381c | [
"Apache-2.0"
] | permissive | hpc-team2020/sacluster | bdd5baa2f67a3688bd2e8b1ca025a97dca41995c | b4374fb5ebf39b21c1e6a1ba0d72fbda2f8f4b29 | refs/heads/master | 2023-08-11T15:06:13.570369 | 2021-10-04T05:03:37 | 2021-10-04T05:03:37 | 364,796,660 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 30,784 | py | import sys
import os
import datetime
import logging
from tqdm import tqdm
from concurrent import futures
import signal
logger = logging.getLogger("sacluster").getChild(os.path.basename(__file__))
path = "../../.."
os.chdir(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(path + "/lib/others")
from API_met... | [
"tsukiyama.sho675@mail.kyutech.jp"
] | tsukiyama.sho675@mail.kyutech.jp |
470c4c7bca3b8d12735c165a27f7358ffea8ad63 | 5bfd36d3ad0afe03aed0bacfe124cfc38b3b01cb | /__init__.py | fdb43eccc6ce141e20756a7e09baafba952f2788 | [] | no_license | rocailler/tele_bot | b53ab8988cba24290ffc9b1cd48e8604fb11628c | c8d5755be0c5acedcd737696cf3a1f55298514dd | refs/heads/main | 2023-01-18T21:52:20.106961 | 2020-11-20T16:36:47 | 2020-11-20T16:36:47 | 314,608,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | import requests
import os
def send_message(text, token, group_id):
os.environ['NO_PROXY'] = 'telegram.org'
requests.get('https://api.telegram.org/bot{}/sendMessage?chat_id=-{}&text={}'.format(token, group_id, text))
print('message sent: ', text)
if __name__ == '__main__':
send_message(text, ... | [
"noreply@github.com"
] | rocailler.noreply@github.com |
bdf97e5eac0773a85acc6dddcf93068b539e13f3 | 1bab2fc1968062c566e23b888b47de358d15213e | /leetcode/Binary Tree Maximum Path Sum/main.py | 36ad4718a97290705457cf7656b74647fe538aaa | [] | no_license | dalleng/Interview-Practice | 7bad4493c5f8131f988708bc4652d56dc961ed90 | b72229c50e87d1ff32d3538d13779953451b9daf | refs/heads/master | 2022-11-27T04:02:20.446524 | 2022-11-10T12:02:44 | 2022-11-10T12:02:44 | 44,450,636 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def maxPathSum(self, root: TreeNode) -> int:
self.max = None
self.mps(root)
return self.max
... | [
"diegoallen@gmail.com"
] | diegoallen@gmail.com |
5c82bdf13fb47780c93ec4b522b30db165482492 | b91578b96ffe63639d3efc70d4737b92091cd0b1 | /backend/unpp_api/apps/project/migrations/0071_auto_20180810_0753.py | c588c551d41e1036a9d7e44416026b07ae15c43f | [
"Apache-2.0"
] | permissive | unicef/un-partner-portal | 876b6ec394909ed2f72777493623413e9cecbfdc | 73afa193a5f6d626928cae0025c72a17f0ef8f61 | refs/heads/develop | 2023-02-06T21:08:22.037975 | 2019-05-20T07:35:29 | 2019-05-20T07:35:29 | 96,332,233 | 6 | 1 | Apache-2.0 | 2023-01-25T23:21:41 | 2017-07-05T15:07:44 | JavaScript | UTF-8 | Python | false | false | 952 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-10 07:53
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('project', '0070_auto_20180810_0729'),
]
operations = [
migrations.RenameField(
... | [
"maciej.jaworski@tivix.com"
] | maciej.jaworski@tivix.com |
e15c255280888dca99479b6ba6e64b392083d8ac | 29db018a8d18d99f0e7bf17102adc4fb12c0253a | /augment_images6.py | 3af00f1e1e426cb29dfa92d03685e600c6a0c3ee | [] | no_license | hafiz703/AI-Proj | 2796fb47b67988c5353ed4a252abfbd28ef13d9a | 9dce3f491a905b713d4472007c073ddcf8f57922 | refs/heads/master | 2021-01-01T06:09:01.998643 | 2017-08-07T19:40:41 | 2017-08-07T19:40:41 | 97,370,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,003 | py | from PIL import Image
import numpy as np
import math
import os
from random import randint
from colorsys import rgb_to_hsv, hsv_to_rgb
def resize_image(img_name):
shorterside = 250
pilimg = Image.open(img_name+".jpg")
w,h=pilimg.size
if w > h:
longerside= np.int32(math.floor(float(shorterside)*w... | [
"jang93@gmail.com"
] | jang93@gmail.com |
97432421da5686a55155023b69fb9729d2989ab9 | 5b245d51b2084c89de6d2c9e41c11debf1f58433 | /samples/basic/crud/ydk/models/infra/nc-create-config-infra-infra-clock-linux-20-ydk.py | 4438007faca8e47f9b4a2169928b312fe480ab4b | [
"Apache-2.0"
] | permissive | fmontoy/ydk-py-samples | 161071afc47bf05e7ad25506b3065fa052130173 | b46e37a87d73ded101a6c27988c99ef58dd3d344 | refs/heads/master | 2020-12-28T21:05:43.969348 | 2016-07-23T00:43:23 | 2016-07-23T00:43:23 | 63,990,521 | 0 | 0 | null | 2016-07-23T00:03:35 | 2016-07-23T00:03:35 | null | UTF-8 | Python | false | false | 2,915 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"saalvare@cisco.com"
] | saalvare@cisco.com |
b1604e1939a42f45ed1da431900f5e65732c66e3 | ae2a10fda58cede0fb69a00ba1cb6d9dd4ca7c0a | /evebot/__init__.py | b0ef723be1a3981b65384259496a9b2d49699305 | [] | no_license | pinkeen/evebot | c55763d8a76de17f1b7f621334b4a544957f4f5f | 5c1e8b37bd2387b61202d7cc972fe92ddbe1174d | refs/heads/master | 2021-05-30T01:41:45.497249 | 2015-11-17T14:34:38 | 2015-11-17T14:34:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | __version__ = '0.2.0'
| [
"pinkeen@gmail.com"
] | pinkeen@gmail.com |
36200ebc4b1b37c8c1e7c75209f118c1ba35d4a7 | 72f89a06dfb27c30b2c5cfc51535cf1337b9d697 | /DB_thread&calcilator&filter&mssql.py | dff18f8019e94ecdf101bcbfdfe3fcb9e890b46e | [] | no_license | DaLemon/stockyakult | 5b34c86be1166b9ea3662b8b85c543f62190cac3 | 77a1f0af31b82cbd3c9e7f857c09c83c5e5176d0 | refs/heads/main | 2023-03-08T00:09:33.298549 | 2021-02-19T14:23:32 | 2021-02-19T14:23:32 | 328,613,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,659 | py | import requests
import pymysql
import pyodbc
from bs4 import BeautifulSoup
from queue import Queue
import threading
import time
import datetime as dt
stock_info=[]
db_settings = {
"host": "**********",
"port": 3306,
"user": "root",
"password": "**********",
"db": "**********",
"... | [
"noreply@github.com"
] | DaLemon.noreply@github.com |
4e54bcac7ab0d1397ec7dea3927c9d7894f8ebd0 | 74082dce295f1db67c5bae83e8c5cf1268b8be23 | /Python-django-DepOA/DepOA/settings.py | 7aa62d86db28eae2a846fb49cf61ce97a18da1ed | [] | no_license | chu888chu888/Chuguangming.Django.HtmlTemplateCRMDemo | a6ff7914b7cfc15bb4ded2bb441fa51afbfc9610 | 37e113d9a8ee46ebf5c9f39bcbc8208aa3cb8203 | refs/heads/master | 2021-01-18T14:44:55.707071 | 2013-05-20T08:06:37 | 2013-05-20T08:06:37 | 10,168,564 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,603 | py | # Django settings for DepOA project.
import os
DIRNAME=os.path.abspath(os.path.join(os.path.dirname(__file__),".."))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('depsast', 'depsast@thudep.org'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgr... | [
"chu999chu999@gmail.com"
] | chu999chu999@gmail.com |
ff60447409f1f60b961cd873e62239504e08e8e6 | fc4c94d041a1510099c622fe4af553148e4d8440 | /Sim/Models/Simulation.py | ad164cab7e46cf71b61d4fef2876f1cd7fb81f35 | [] | no_license | zl326/RaceSim | 135b33aef4c47a6ce5a0eaff45a7dc55cd0d5e57 | 1efed8a7e173f997eb12be62d9ce2fbf5eb8aa6f | refs/heads/master | 2020-07-03T17:33:40.845910 | 2019-10-22T11:10:22 | 2019-10-22T11:10:22 | 201,987,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,082 | py | import pandas as pd
import yaml
import datetime
from astral import Location
import dateutil
import math
import numpy as np
from scipy.interpolate import griddata
import os
import copy
import pymongo
class Simulation:
kph2ms = 1/3.6
ms2kph = 3.6
rad2deg = 180.0/math.pi
deg2rad = math.pi/180.0
g... | [
"tom1my2li3@gmail.com"
] | tom1my2li3@gmail.com |
c09b88a41324a9278190be87dd7ac601f2af61b0 | a2dc244fe1c65dd3c30957513bf282bb23e20069 | /ansible/my_modules/action/batfish_testfilter.py | 6fed19d4d67aacc0d17529e20cbb516c38963f5e | [] | no_license | igoqueen5/ansible-batfish | 60e1d9906c799bb8002f9866e905be3881a3c04f | 55add982f5adf88d482b964e9104db6c592f49ad | refs/heads/master | 2020-06-25T12:03:11.834422 | 2019-08-12T10:57:51 | 2019-08-12T10:57:51 | 199,299,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,942 | py | # -*- coding: utf-8 -*-
# pylint: disable=E0611,C0111
# E0611:No name 'urllib' in module '_MovedItems'
# C0111:Missing class docstring
# flake8: disable=E111,E114
# (c) 2018, Lisa Go (@lisago)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Licens... | [
"oh.lisa@jp.fujitsu.com"
] | oh.lisa@jp.fujitsu.com |
f3b4af59fd5030bb5cdaad00e82843951dd20ba7 | 463979f26ecf5d7480913d0c5f4b3d4c6f8fddff | /digital_tuta.py | ba4f25dd1f9e31f605e7bf2da7e587ce23a29003 | [] | no_license | sjsakib/digital_tuta | 301646c09f878603f524b37177dd215e741e1a20 | c37be0325a4f43ba54acec56e38640427a84444d | refs/heads/master | 2021-01-10T04:13:33.918787 | 2016-04-03T05:14:38 | 2016-04-03T05:14:38 | 55,329,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,465 | py | #encoding:utf-8
from math import *
from functions import *
global p
p = '\nব্যাবহারকারীঃ---> '#prompt
s = None #user input string
banner()
exit = ['exit','বিদায়','খোদা হাফেজ','বাই','bye']
while not s in exit:
s = raw_input(p)
print "\nডিজিটাল তোতাঃ----> ",
if s in exit:
break... | [
"sjsakib.bd@gmail.com"
] | sjsakib.bd@gmail.com |
48072ce1f0ad677cab018047c999241ae7fbcb3f | bf24bb98588d310d1e7b4de076b6e05a4ea05647 | /news/models.py | 3c8568d839c4872469ef45c7736fedb0bfda7669 | [
"MIT"
] | permissive | freddy358/landing_page | e42fbb341a4ba5be28011c8e37166d433826a4a6 | df46be01e58ece5d500c7d40547cbdba673eea05 | refs/heads/master | 2020-06-17T07:04:01.672053 | 2019-07-08T15:28:23 | 2019-07-08T15:28:23 | 195,839,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | from django.db import models
class MainName(models.Model):
title=models.CharField(max_length=255)
url=models.CharField(max_length=200)
def __str__(self):
return self.title
class MainTitle(models.Model):
sitename=models.CharField(max_length=255)
mainname=models.CharField(max_length=255)
... | [
"farid.bakhishli@gmail.com"
] | farid.bakhishli@gmail.com |
c07f2619ac97efd5ccd2baee8b5067c853bc1158 | 63f930156e3ef8105346305916fbf8c9c438d5e4 | /recom_sys_all_ranked/apriori/spmf_data_generator.py | 3dffd1ada372282f3d120c81023cd4a6d4ca7db1 | [] | no_license | ACmagic/GAE | 3ddafdcd45d9e003c8099c99021ed58d64f56bfd | 00afdb9595dffee1a5e797a3e17d47baf5ba8b75 | refs/heads/master | 2020-03-29T21:19:23.467461 | 2018-07-19T14:19:51 | 2018-07-19T14:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | """
generate txt files used by SPMF
"""
import pickle
import numpy
data_path = '../../input/dota.pickle'
win_team_csv_path = 'dota_win_team.txt'
lose_team_csv_path = 'dota_lose_team.txt'
oppo_team_csv_path = 'dota_oppo_team.txt'
win_f = open(win_team_csv_path, 'w')
lose_f = open(lose_team_csv_path, 'w')
oppo_f = ope... | [
"czxttkl@gmail.com"
] | czxttkl@gmail.com |
fee9e22265cc85ca4cd46fefc0d7645fe866ef8b | c8f358b3e908099618665e9218fabae7dc9c66fe | /Routes/Create.py | 233ee1ea6df0b4a891b0e8cc3b4171f845e81ae1 | [] | no_license | twizzler/Houdini-Website | 462cce522c2084ca6a276d07bbeef00287388fab | f23036abc22ea19301a0d35894cd4f3a496dbc2f | refs/heads/master | 2021-08-10T16:55:03.652208 | 2020-04-13T09:26:15 | 2020-04-13T09:26:15 | 155,768,707 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | from flask import Blueprint
from flask import request, render_template
from Application import config, utils, database
import requests
import json
create = Blueprint('create', __name__, template_folder='templates')
class Create(object):
@staticmethod
@create.route('/create', methods=['GET', 'POST'])
def... | [
"noreply@github.com"
] | twizzler.noreply@github.com |
b7f9f287433ff5b1cd142a9307281405f9dbbfd1 | 4bdb8e324a833c10380bb7b1f436d1e9629c873c | /Anachebe_Ikechukwu/Phase 1/Python Basic 1/Day 3/Qtn_3.py | 395d4b5b4d5f60d8492e0ace25e108c9cb701e8c | [
"MIT"
] | permissive | dreamchild7/python-challenge-solutions | e3831a57447f6132dd098be8b941cc27db92ace2 | 29e2ca780e86fc8a3e9d4def897c26bfa6d6493d | refs/heads/master | 2022-11-08T17:23:57.763110 | 2020-06-19T08:38:20 | 2020-06-19T08:38:20 | 263,923,130 | 0 | 0 | MIT | 2020-05-14T13:29:33 | 2020-05-14T13:29:32 | null | UTF-8 | Python | false | false | 79 | py | print("This is \n a multi line \n\t String. It is \n Formatted \n\t\t in tabs") | [
"dreamchild7@outlook.com"
] | dreamchild7@outlook.com |
13a1f1028eb9fcbb96cecfbc3d02b7ee7cbc42f9 | ff7b0cc72c3f1b2e2f289bc6055f5c3b17db2c38 | /chinook/chinook/urls.py | bee58b57cbeefac37e24ce9d99c10a36e416eaee | [] | no_license | Abhiintheweb/project_chinook | 368b8b5ec71fac839e92a3179ae48be6fc10a8f0 | 19a313bf89c474febf42aa87098a2ec87308eb56 | refs/heads/master | 2022-04-22T16:58:53.686487 | 2020-04-24T09:53:30 | 2020-04-24T09:53:30 | 257,696,198 | 0 | 0 | null | 2020-04-24T09:23:11 | 2020-04-21T19:31:25 | Python | UTF-8 | Python | false | false | 1,213 | py | """chinook 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... | [
"abhishek.singh@admins-MacBook-Pro.local"
] | abhishek.singh@admins-MacBook-Pro.local |
1f3c814e7e781395dd93313aae0293543a565a9f | 5f0846828cf6788f9bb0ef3fe557cb777a6bf7d7 | /An Introduction to Interactive Programming in Python/project6_blackjack.py | fedab16f58e6cf20afd197c012cf2c8b567119f2 | [] | no_license | nabeelfahmi12/Fundamentals-of-Computing-from-Rice-Unversity | c8065a2a884e34a002f6477b4221292dd7661a9e | 438eb318221e30bf0ff24c1f0db0dd61939fdf49 | refs/heads/main | 2023-01-13T23:38:10.520031 | 2020-11-17T06:30:31 | 2020-11-17T06:30:31 | 308,280,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,953 | py | # Blackjack
# http://www.codeskulptor.org/#user40_b06kFMCAFJiUp04.py
import simplegui
import random
# load card sprite - 936x384 - source: jfitz.com
CARD_SIZE = (72, 96)
CARD_CENTER = (36, 48)
card_images = simplegui.load_image("http://storage.googleapis.com/codeskulptor-assets/cards_jfitz.png")
CARD_BACK_SIZE = (72... | [
"noreply@github.com"
] | nabeelfahmi12.noreply@github.com |
2ce9ac23cc7cdaa65e7d477ea29b58dfa9601295 | 607bc657720a3ddf66df32151d8d210ae1d6e2b9 | /3- Using IP Webcam to perform task 1/Task-3.py | bbbcc789c007202e4b1e58ce99a20b1322c6f3f8 | [] | no_license | MuhammadAffanWahid/Computer_Vision | 9149546b7e64d4ca51a2714de1a9271d4496e108 | 84056c89f4a2c45cd2e73a93d8a4da1fa43b446b | refs/heads/main | 2023-07-23T11:24:56.287249 | 2021-08-31T10:31:25 | 2021-08-31T10:31:25 | 395,269,149 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | from urllib.request import urlopen
import cv2
import numpy as np
url='http://172.16.20.202:8080/shot.jpg'
#url='http://192.168.1.4:8080/shot.jpg'
i=0
while True:
imgResp = urlopen(url)
imgNp=np.array(bytearray(imgResp.read()),dtype=np.uint8)
img=cv2.imdecode(imgNp,-1)
cv2.imshow('Image',cv2.resize(img... | [
"noreply@github.com"
] | MuhammadAffanWahid.noreply@github.com |
66943cf2f20d1afb0b5face9a0118bc83c5e4b83 | 81b52d4cfa08974119f9b0f4ecc04e9f65bfaa58 | /main.py | 6a6e8b202ee502eb5faf5a5f0921e0caa7214b56 | [] | no_license | vanajmoorthy/SudokuSolver | 3d835a317b81e6106e815cd6a70e585c97b81c28 | c3f6dc3e9268ae225015d1318841b01e70aade5e | refs/heads/master | 2022-04-17T21:51:07.912107 | 2020-04-17T22:52:59 | 2020-04-17T22:52:59 | 256,626,036 | 1 | 0 | null | 2020-04-17T22:52:24 | 2020-04-17T22:52:23 | null | UTF-8 | Python | false | false | 1,037 | py | import numpy as np
grid = np.array([
[0, 2, 0, 6, 5, 8, 0, 0, 9],
[7, 0, 0, 0, 0, 1, 5, 0, 0],
[5, 0, 0, 0, 0, 0, 0, 0, 2],
[0, 0, 7, 0, 0, 2, 3, 4, 5],
[0, 9, 0, 0, 1, 0, 0, 0, 6],
[0, 0, 5, 0, 0, 7, 0, 9, 1],
[0, 7, 0, 0, 0, 0, 9, 1, 0],
[9, 0, 0, 3, 0, 0, 0, 0, 0],
[6, 0, 0, 1, 0... | [
"shivbhatia10@gmail.com"
] | shivbhatia10@gmail.com |
419594e3ef1ee1e3d70ffbcdd4ca235dad6d61df | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02665/s402491742.py | b987775b8cb3a6948b09b8c7f2f5df1fd116af00 | [] | 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 | 667 | py | N = int(input())
A = list(map(int, input().split()))
B = []
if N == 0:
if A[0] != 1:
print(-1)
exit()
else:
print(1)
exit()
else:
if A[0] != 0:
print(-1)
exit()
else:
B.append(1)
for i in range(1, N + 1):
B.append((B[i - 1] -... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c13b1aae1a1a9059776ee92947cca4f9de0bd62b | 423d89ae3c05db0944b45c421174e9a653551189 | /dart/lib/collection/collection_sources.gypi | d7fcc266501687d679087af14d6e98472ef4a4af | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | kwalrath/bleeding_edge | 37d14e50f9a13a624dbca0ea2a22cae4c4a34275 | cef245f4c9e92398333da599d490cad40db49778 | refs/heads/master | 2020-12-24T15:32:07.816186 | 2012-10-29T08:38:15 | 2012-10-29T08:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | gypi | # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
# This file contains all sources for the dart:collection library.
{
'sources': [
'arrays.dart',
... | [
"ajohnsen@google.com@260f80e4-7a28-3924-810f-c04153c831b5"
] | ajohnsen@google.com@260f80e4-7a28-3924-810f-c04153c831b5 |
a9041e4264d06096ba86e38e3dfbcb50e9a85356 | 9f557f2ffc67e9f07478c7e2366daa7168ea56d5 | /TestRestApi/product_catalog_api/serializers.py | b241286fbd68660e5bdae4583c3049f197902b43 | [] | no_license | kolodkinv/ProductRestApi | 044904f7829ebbc1585cfe75c3fc8836d24fa1d5 | 94ce43cf2f6166b696d25f4f1e9c3919f6a42add | refs/heads/master | 2020-04-08T06:54:22.353646 | 2018-11-27T04:46:14 | 2018-11-27T04:46:14 | 159,117,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | from rest_framework import serializers
from product_catalog_api.models import Product, ProductRegister
class ProductSerializer(serializers.ModelSerializer):
class Meta(object):
model = Product
fields = ('url', 'title', 'SKU', 'date_creation', 'image', 'is_new')
def validate(self, data):
... | [
"vladimir.kolodkin@webpp.ru"
] | vladimir.kolodkin@webpp.ru |
fd69ba1ff167a6dbdabf8af06d4754e8b7bc7ce7 | b3fbd3e92c02e78c6a6cd51dba0c3394cb7ca649 | /DistanceMatrix/DistanceMatrix.py | 259350927ec82bd34cbfe323c973508be003f620 | [] | no_license | KieranM279/Rosalind-Challenges | debfcc1020306d254c42289978f8eca29de7d682 | 5e0b8e7cddbbe037668c77acebf60984768304a1 | refs/heads/master | 2023-03-23T06:57:20.823925 | 2021-02-20T15:11:47 | 2021-02-20T15:11:47 | 304,687,835 | 0 | 0 | null | 2021-02-16T18:16:22 | 2020-10-16T16:56:10 | Python | UTF-8 | Python | false | false | 1,626 | py |
from Bio import SeqIO
#### Step 1 #### Import the data ####
def Dictmaker(filename):
# Parse the FASTA formatted text file given by Rosalind
record = SeqIO.parse(filename,'fasta')
sequences = {}
# Loop through each record and add to a dictionary
for rec in record:
sequences[... | [
"70451332+KieranM279@users.noreply.github.com"
] | 70451332+KieranM279@users.noreply.github.com |
8e59c0d21bc251a1bc557059bc21b25c8f6282a0 | bc3e0035c60696bcd754991005b9596de0d29ec3 | /blog/migrations/0001_initial.py | 39aa477e0429f43b798a70c97eff56a5cb475cd5 | [] | no_license | bmonsueir/naturiere | 6700e4a1fa999c4094b8cee2035bcc993b0f8a19 | 2eac6d1ffec25d53d70ea286b0f7ee03bb603a82 | refs/heads/master | 2021-01-19T23:50:07.030575 | 2017-05-14T19:55:54 | 2017-05-14T19:55:54 | 89,039,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-05-05 21:08
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depende... | [
"bmonsueir@gmail.com"
] | bmonsueir@gmail.com |
0c2a744373f61ec8628bd435b7f2a4844ec4de24 | 621c49ed8e713103572ea2a1405429ac5835456d | /yumewatari/vendor/uart.py | 5b1e55d2cc31e545644c2edee7f791c6ed6ea7fb | [
"0BSD"
] | permissive | whitequark/Yumewatari | 751c7ee2b4086cce46759dc8150121c6b9d987ce | 0981d8c832850c72745808c022dc63944a7164bc | refs/heads/master | 2020-04-05T06:36:25.863887 | 2019-04-02T17:47:53 | 2019-04-02T17:47:53 | 156,643,351 | 54 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,783 | py | from migen import *
from migen.genlib.fsm import *
from migen.genlib.cdc import MultiReg
__all__ = ['UART', 'uart_bit_cyc']
class UARTBus(Module):
"""
UART bus.
Provides synchronization.
"""
def __init__(self, pads):
self.has_rx = hasattr(pads, "rx_t")
if self.has_rx:
... | [
"whitequark@whitequark.org"
] | whitequark@whitequark.org |
c107c7173288ef97e293a3795997983fde1a851b | b4e704f67214028cd0ba8b7a641a2267faf606e4 | /projectmf/data/initial_mealplan_data.py | 325fe23a1b305b251761047df5ba70f0e9a6ca6e | [] | no_license | matthias4366/mf-2 | d21b32aae9ae617d78b4b1541edc196f6f822e4e | 73e2110c031c8c17596e27af1143b557b1062b3c | refs/heads/master | 2022-10-23T05:54:32.889983 | 2020-06-11T15:40:04 | 2020-06-11T15:40:04 | 190,999,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | mealplan_initial_data = [
{
'name': 'Mealplan Sandor',
'nutrient_profile':
'sandor',
'fulldayofeating_list': [
'Pasta', # check
'Pasta',
'Pasta',
'Chili mexican',
'Chili mexican',
'Chili mexican',
... | [
"spam.matthias.h.schulz@gmail.com"
] | spam.matthias.h.schulz@gmail.com |
efe2450ed674337d07ec6f4bd09c73dff689dd14 | ba66da3901361854b9bb621586f1e49ad0121ee0 | /正式开班/Scrapy爬虫/yiwugou/yiwugou/settings.py | 0a401720e94bb79bd1cb4bc31ddf6545738731e8 | [] | no_license | luobodage/PythonBasis | c4739920055afbda03774d90151ab183a83583f8 | ea65536e759fec221a70d7647ae86120277d5459 | refs/heads/master | 2023-05-14T15:51:56.213282 | 2021-05-31T00:57:56 | 2021-05-31T00:57:56 | 322,145,745 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,245 | py | # Scrapy settings for yiwugou 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/topics/downloader-middleware... | [
"fuyu16032001@gmail.com"
] | fuyu16032001@gmail.com |
36f215554963e89e34152fa1be8ade2695aa7c85 | 12273ce7234d7e34df2968e7b254441d7819f136 | /CS4442_a2/3_f.py | d2a110ea993f0da42892d36bef9929dca52b5b3c | [] | no_license | mattySKR/CS4442 | de287577fb726536baa5a7f07d8b5924ca35540f | aabacaad39312670200820423899365ad3c54753 | refs/heads/main | 2023-07-15T12:38:32.154586 | 2021-09-03T21:52:11 | 2021-09-03T21:52:11 | 402,229,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn.decomposition import PCA
# Extracting the data
vals = np.loadtxt('faces.dat.txt')
# Creating our PCA object instance
pca = PCA(400)
# Fitting pca over the given data
pca.fit(vals)
# Computing our Principal components or Eigenvectors
comp = pca.componen... | [
"noreply@github.com"
] | mattySKR.noreply@github.com |
07afebad1d7801ecc79c60b77e84ee033a7a3457 | 5e8cd8bd77086d06ff915c49ffe3c85f37e3ee66 | /Class6-7-8-list/project_travis_security_guard.py | 4725e341c8dead9ef550773690607d398995295f | [] | no_license | QAMilestoneAcademy/python_basic | 05a7f88e570c39d71c15467bbed00e5783bbe5fa | 20fd6949df62515a20d1812301a02511e28410ec | refs/heads/master | 2023-01-05T22:19:27.184397 | 2020-11-07T09:05:33 | 2020-11-07T09:05:33 | 294,338,569 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | known_users = ["Shrek", "Donkey", "Fiona", "Patrick", "Bob", "Joe"]
print("Hi my name Travis")
name = input("What is your name? ")
name=name.strip().capitalize()
print(name)
if name in known_users:
print("Hello {}.How are you".format(name))
stay=input("Would you like to stay in the list-Yes/No: ")
stay=st... | [
"48306511+QAMilestoneAcademy@users.noreply.github.com"
] | 48306511+QAMilestoneAcademy@users.noreply.github.com |
5e7e8e6706206b0150b41af07a8abe66751ac96a | 488578a753f8cf51d4b50f61304b3a92fee0a79f | /Transformaciones_geométricas.py | 6b7a023628cb13f6ac3d289a4ff7e325e3da71e7 | [] | no_license | dairon20jb/Taller4 | c738f49b3fe937d126e574fafa889314af104b75 | 23a6b69aa7401702400c9517fb1442a0eb2bc47d | refs/heads/main | 2022-12-26T10:31:07.697141 | 2020-10-09T00:29:41 | 2020-10-09T00:29:47 | 302,481,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py |
import cv2
import os
import numpy as np
click = 0
refPt = list()
def click_event(event, x, y, flags, pafram): # Por cada click se guardan las coordenadas en las que se posicione el mouse
global click
if click < 3 : # Si click es mayor a tres se cierra la imagen
if event == cv2.EVENT_LBUTTONDOWN:
... | [
"dairon.barbosa@javeriana.edu.co"
] | dairon.barbosa@javeriana.edu.co |
9ebb3464ee77da1b477f86ec903b6e422aef4531 | 8486f822f9264e7fd98101e1e16c236b84a3e165 | /game_playing_agents.py | 53513336b11b611717f3943d7e0c3a719d2aa3e4 | [] | no_license | daunlee/mini_capstone | 6e4926c2bb4e8bb7bfcce2e4bd6ae54ec7978229 | cdc546bf4e296aa936466bc3ddbbebf53cae0a74 | refs/heads/master | 2020-05-30T01:35:28.560501 | 2019-06-12T22:24:06 | 2019-06-12T22:24:06 | 189,480,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,228 | py | from lab2_algorithms import *
from time import time
from math import sqrt
from lab2_util_eval import all_fn_dicts, always_zero
from connectfour_gamestate import ConnectFourGameState
from tictactoe_gamestate import TicTacToeGameState
from roomba_gamestate import RoombaRaceGameState
from nim_gamestate import NimGa... | [
"noreply@github.com"
] | daunlee.noreply@github.com |
f5837d589c9b72efb9bb9da96d52c1503d7136ad | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /7vN8ZRw43yuWNoy3Y_5.py | fc5744478874764cd33eda091a690328a1cfa51a | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | """
Create a function which takes in an encoded string and returns a dictionary
according to the following example:
### Examples
parse_code("John000Doe000123") ➞ {
"first_name": "John",
"last_name": "Doe",
"id": "123"
}
parse_code("michael0smith004331") ➞ {
"first_name": "m... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9ade747b227c3c62d7615d4baa5558f857f3ca45 | fd5f5a92c0de46ffcb039a43bc7fc04163581332 | /Seharali.py | 1bba983b58966f512814f66059e1204087a13d55 | [] | no_license | Paridoll786510/Seharali | b1e128107d9d48263c061654b50e4ffa6a49b765 | 8eb628661936bbfc819f507c1a99e4a2323e84cd | refs/heads/main | 2023-07-09T11:55:09.647501 | 2021-08-12T12:52:06 | 2021-08-12T12:52:06 | 395,316,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244,182 | py | # ECRYPT BY Sohni kuri
# Subscribe Cok Chanel YouTube Gua Anjing
# Dan Jangan Lupa Follow Github Gua
exec((lambda _____, ______ : ______(eval((lambda ____,__,_ : ____.join([_(___) for ___ in __]))('',[95, 95, 105, 109, 112, 111, 114, 116, 95, 95, 40, 34, 122, 108, 105, 98, 34, 41, 46, 100, 101, 99, 111, 109, 112, 11... | [
"noreply@github.com"
] | Paridoll786510.noreply@github.com |
2dada9662680945a673aa0d872099c21de1fbd90 | d2c164e0b828496af0b9fe105c89eacd441d2e5f | /synonyms/synonyms_tester.py | 1d57e3b3ba623f6f1a20300a2f943f853c2a5fda | [
"MIT"
] | permissive | JLefebvre55/ESC180-Labs | abfae38640967c1c6d5293c636b19becb0251bf8 | e34afaf235fabac6b5d284bddfd0b61d276ad50d | refs/heads/main | 2023-02-01T07:03:33.822607 | 2020-12-18T05:01:42 | 2020-12-18T05:01:42 | 315,552,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,039 | py | # No need to thank me but if you really want to express your gratitude
# feel free to get me some BBT once covid has passed :)
# Also don't even try looking at this code it's f****** disgusting
import socket, threading, json, contextlib, io, time
from random import *
synonyms = __import__("synonyms") #put your filen... | [
"jayden.lefebvre55@gmail.com"
] | jayden.lefebvre55@gmail.com |
d4c1f69239d68c94a286d903669854b493ab1ae4 | 0d4391537a80b405f15853fafc3746b8b710cd3b | /src/pjBallot/ballotTree.py | 093b2951df7433847e58726d2ab18ae59827ab3c | [] | no_license | simbara/Old-Voting | 54afa41de4684de10520bd19be4f1e89eaa869bd | a238167fd71242d9ff4c12e884a8a01204810266 | refs/heads/master | 2021-01-23T06:34:30.250664 | 2012-03-02T00:18:55 | 2012-03-02T00:18:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | class Race(object):
def __init__(self, name, selectionList, instructions):
self.name = name
self.selectionList = selectionList
self.instructions = instructions
self.works = "worker"
def __repr__(self):
return '<pjBallotObj>'
class Contest(object):
def __... | [
"rahul.rajan@gmail.com"
] | rahul.rajan@gmail.com |
8771d6eb8a5cf3ab0bb828212ec5ff42613a25f7 | 23fbc3d634b5c8251b847a8d248edb200df802d4 | /loopchain/tools/signature_helper.py | 18258ea3e9358e49faef30057dda48161a301184 | [
"Apache-2.0"
] | permissive | ahastudio/loopchain | 2d942b46602ae61bcadc4a3c7f586cd9f3792e0b | 88b76956c069fedc1a0a2d239f47c3866493ad0f | refs/heads/master | 2021-05-05T03:22:03.633035 | 2018-10-23T05:26:44 | 2018-10-23T05:26:44 | 157,025,637 | 0 | 0 | Apache-2.0 | 2018-11-10T22:05:26 | 2018-11-10T22:05:26 | null | UTF-8 | Python | false | false | 11,745 | py | # Copyright 2018 ICON Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"winDy@windystudio.com"
] | winDy@windystudio.com |
d6db02dcdcedad9af1fa0a7ffc7f9c8d89a09914 | a4191cc76c1d733c58bbb6692a75b0885bb74e13 | /VISION-master/차선/ENet-SAD/enetsad_node_ver0809.py | a21f0b7cda28f7110cd39d5ba22af0bdbb34abd0 | [] | no_license | js7850/sonjunseong | 69173d67e34ce2085d2e0617fbefa02cbc6676b5 | 0d8bb7c87fac07634abd4b002f1111108b42e939 | refs/heads/main | 2023-07-16T15:28:00.459349 | 2021-08-28T13:08:19 | 2021-08-28T13:08:19 | 400,545,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,686 | py | import argparse
import cv2
import torch
# import the necessary packages
from scipy.spatial import distance as dist
from scipy.linalg import norm
from collections import OrderedDict
torch.cuda.set_device(0)
from model import SCNN
from model_ENET_SAD import ENet_SAD
from utils.prob2lines import getLane
from utils.trans... | [
"noreply@github.com"
] | js7850.noreply@github.com |
4ab0bf842e869160e1880046207d6b03ddea7f2d | f669ff5e74fe3eea7f3c41fa21520ed77d0f02dc | /AirTecFugas/WebApiApp/views/EstatusFugaViews.py | 751149b1d7db4ed0f32e00c782fcc9bfac709a9a | [] | no_license | codingrebelsmx/airtec-fugas | e6fbfbb1784ef415b6be0e27ff3aa4cef69920ed | 4a466281a880bd8493f0ae22378dacd4bdd602e7 | refs/heads/master | 2023-01-03T23:00:33.634880 | 2019-08-29T02:31:47 | 2019-08-29T02:31:47 | 173,841,299 | 1 | 1 | null | 2022-12-27T15:34:00 | 2019-03-05T00:02:04 | HTML | UTF-8 | Python | false | false | 701 | py | # -*- coding: utf-8 -*-
from rest_framework.response import Response
from rest_framework import viewsets
from ModelsApp.models import Fuga
from WebApiApp.serializers.EstatusFugaSerializers import EstatusFugaSelectSerializer
class EstatusFugaListSelectView(viewsets.ModelViewSet):
""" View to returns list of Ubicaci... | [
"mmorales.dev@outlook.com"
] | mmorales.dev@outlook.com |
a75936de127b8aa0fd921938ecc10135d746592f | c4cca3f61155859de797e3236bf0838f20568c6b | /vector/v.stream.netid/v.stream.netid.py | d98b835f46567fe1591ef59da84efa9c9e430975 | [] | no_license | johnDorian/grass_addons | ac57123ab5760be513875cafd8c5cf23ef5af6a2 | e1529d2735d7000cd110a1d6cb4d8e2372c68550 | refs/heads/master | 2021-01-22T14:25:31.924198 | 2015-05-27T20:22:15 | 2015-05-27T20:22:15 | 33,500,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,371 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
############################################################################
#
# MODULE: v.streams.netid.py
# AUTHOR(S): Jason Lessels
# PURPOSE: Determine and assign network ids to each stream reach.
#
# COPYRIGHT:
#
# This program is free sof... | [
"jlessels@gmail.com"
] | jlessels@gmail.com |
36639507a244224213c81caf578caf5019bf4ff3 | 85fb09279630a06213c6334c660f5f0d053b972b | /mysql-diff.py | 56e1a5494fd1964007650f515d4cb48d49256463 | [] | no_license | gessnerfl/mysql-diff | 180bfc5ff2837715658a1cb1a944eff29fc135bf | 91a1c4075c7171c869854ff82c7d47c921d19b0d | refs/heads/main | 2023-07-30T12:47:39.178164 | 2021-09-24T06:58:09 | 2021-09-24T06:58:25 | 402,091,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | import argparse
import datetime
from pathlib import Path
from config.reader import *
from metadata.meta_data_provider import *
from diff.main import *
import csv
def write_meta_data(file_path: str, meta: Dict[str, Schema]):
with open(file_path) as f:
f.write(meta.__str__())
def write_output(file_path: ... | [
"florian.gessner@tis.biz"
] | florian.gessner@tis.biz |
a8d49053c2ac05b12cc81312ae3d74cc220b5792 | 7c0e18d21cbcfacc253c49eb286f314a9b28c78a | /user/decorators.py | 8fb415d5a8bdb2e4f78a0e459c9a2404485bd859 | [] | no_license | geoffrey-wen/TA | abd92d179fe79d9690fa362f8a462ff4b3f77c20 | 620fe067396e35dfaa1ac094f31a29454bbda1d2 | refs/heads/master | 2023-01-30T19:04:42.692716 | 2020-12-17T05:23:50 | 2020-12-17T05:23:50 | 294,910,270 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | from django.http import HttpResponse
from django.shortcuts import redirect
def unauthenticated_user(view_func):
def wrapper_func(request, *args, **kwargs):
if request.user.is_authenticated:
return redirect('home')
else:
return view_func(request, *args, **kwargs)
return ... | [
"giangervase@gmail.com"
] | giangervase@gmail.com |
37cae764334ae3d2d3130e53268545121a4e46f6 | 431dd18482549fb50070b70f324732e1beb1b6e2 | /app/image_app/views.py | 1111c7bcda38fdf35940b16e2742b14e9f364da7 | [] | no_license | OscarGibson/test_task_python | 2af843b3b4845aa093d2d429222b38863531e880 | c5353cca7139a3e209a5f16dc8290c13afc1e2ad | refs/heads/master | 2022-12-09T13:53:47.581636 | 2019-03-14T15:48:09 | 2019-03-14T15:48:09 | 175,651,873 | 0 | 0 | null | 2022-12-08T04:52:14 | 2019-03-14T15:42:15 | Python | UTF-8 | Python | false | false | 1,724 | py | from django.shortcuts import render
from .flicker_api import FlickerAPI
flicker_api = FlickerAPI()
def image_search_get(request):
text = request.GET.get('text', '')
sort_type = request.GET.get('sort_type', '')
page = request.GET.get('page', '')
if text != "":
data = flicker_api.find(text, so... | [
"dev@incorainc.com"
] | dev@incorainc.com |
15c83e79553ebe4c8a62abc3fa2c8f9649833fe0 | d7c5189ce11ff291f93871110d74cd7e509f5925 | /the-print-function-I-single-argument.py | 57eddfd38c5aad63c17e4de858efd4387fd583bc | [] | no_license | ihuomagold/Python_Progress | 2db955802503f47c2861c580d88019050e44221f | 79368c409c4d5ddc43e7b190204e75a8039a796d | refs/heads/master | 2022-12-12T15:16:07.674937 | 2020-08-11T12:43:37 | 2020-08-11T12:43:37 | 286,729,651 | 0 | 0 | null | 2020-08-11T12:43:39 | 2020-08-11T11:44:49 | null | UTF-8 | Python | false | false | 179 | py | print("I had spaghetti for breakfast")
print("I also ate one boiled egg")
print("I am working with Python")
print(8)
print(8 + 5)
print(32 - 18)
print("Hello" + "Python") | [
"noreply@github.com"
] | ihuomagold.noreply@github.com |
2288be423442e1f739d09472a412009598f7f402 | 8419eaa22e58a2efbb7bdf1bccfc66a9e3288d75 | /tensorflow/contrib/bayesflow/python/kernel_tests/layers_dense_variational_test.py | 4e9f1193511c35beead85914ca988fde69b3afde | [
"Apache-2.0"
] | permissive | PipelineAI/tensorflow | f539227fd5d3f304b4f246877e35303dbd388a0c | 5d8e69768230ea8765a7c78cf1fa22c3ab2a4757 | refs/heads/master | 2021-05-05T21:54:02.830548 | 2018-01-15T04:30:05 | 2018-01-15T04:30:05 | 115,791,564 | 0 | 1 | Apache-2.0 | 2018-01-15T05:38:46 | 2017-12-30T11:08:37 | C++ | UTF-8 | Python | false | false | 16,514 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
f5f4b54315810f228e8eea7df2b7e93ca321ec0f | 87ace37c0914e55687d04c7f7dc61d87f35bd895 | /python/unit 5/project.py | 027dc4b01bbbe6c259aff2a0004a0ffc2713114a | [] | no_license | MrMyerscough/Coding-Course-Stuff | e6495434e07ccc62bf68ab7bc8b6290a478124fe | f9b3705d7c098b6abb961b4f6ab39768f38b2896 | refs/heads/master | 2020-04-11T13:48:40.952406 | 2019-11-15T10:03:02 | 2019-11-15T10:03:02 | 161,830,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | # books? - library
# contacts ? - phone book
# songs - playlist
# employees - work directory?
# students - school directory?
# items in a shop
# videogames in a shop
| [
"isaiahwkahler@gmail.com"
] | isaiahwkahler@gmail.com |
e2d4f25dd72c294071243e7676c6a1470b5b5c46 | 33a634fcfe842c27fc4b2df3f49a77e319a0b348 | /31_truncate/truncate.py | 9c4e8a166262a92f1f45aed0e2552efe17797163 | [] | no_license | jasparvb/python-exercises | 50f5c30e0c930acdaebc3b6e003703cf85353b77 | 4631821aed29f8aa5ef770eeb1ea12dd49e90710 | refs/heads/master | 2021-05-21T23:44:30.213437 | 2020-04-04T22:09:03 | 2020-04-04T22:09:03 | 252,864,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | def truncate(phrase, n):
"""Return truncated-at-n-chars version of phrase.
If the phrase is longer than n, make sure it ends with '...' and is no
longer than n.
>>> truncate("Hello World", 6)
'Hel...'
>>> truncate("Problem solving is the best!", 10)
'Probl... | [
"jaspar@UMICH.EDU"
] | jaspar@UMICH.EDU |
4986665d7e1a7eaf3f41852e2f37ea4c038c51a7 | 5a281cb78335e06c631181720546f6876005d4e5 | /cinder-14.0.0/cinder/volume/flows/api/create_volume.py | 12569f59c100af228098fe7f2b1bab7149b575b1 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 37,033 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
9e38870ae3f2a1e81468c8ad0816a0ddb58d274b | 93cef55e254d64a23e28a4228e743a35188786c8 | /paciente/migrations/0004_preguntarespuesta_pregunta_historia.py | eea45754325c19dc7f97e8b160105213f47cd5de | [] | no_license | USBeHealthProject/eHealth | 25f5cf03c6e3677c0c43b4a3e1448a18055b7995 | c995150403a96ef221b8ba77beb9950eb00776e2 | refs/heads/master | 2021-01-13T16:28:50.642932 | 2017-03-31T15:17:02 | 2017-03-31T15:17:02 | 79,489,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('paciente', '0003_auto_20170226_2048'),
]
operations = [
migrations.AddField(
model_name='preguntarespuesta',
... | [
"marisela.delvalle93@gmail.com"
] | marisela.delvalle93@gmail.com |
d25d228bda99746095522c9c4e52fb45ffbbdb12 | f21adfcc4e7e0863a015f878e2ff3ed9d4119eb3 | /part_a/Franke.py | a2c7fea284fd0f0f45ff824de38baf381e6c0f74 | [] | no_license | arnlaugs/Fys-Stk-Project-1 | 8c7dbaa4ad0818cee0ec8f75dd9fe1ae070f179b | 9685239fe752434c56e624e3997830670b1805e9 | refs/heads/master | 2020-03-28T14:08:57.067791 | 2018-10-08T17:47:53 | 2018-10-08T17:47:53 | 148,460,960 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | # Importing functions from folder with common functions for project 1
import sys
sys.path.append('../functions')
from functions import *
from regression import OLS
import numpy as np
N = 1000
x = np.sort(np.random.uniform(0, 1, N))
y = np.sort(np.random.uniform(0, 1, N))
x_mesh_, y_mesh_ = np.meshgrid(x,y)
z = FrankeF... | [
"markus@asprusten.com"
] | markus@asprusten.com |
3884a03b732ddce02f8fc79170ebb93b2dac2c48 | 209a7a4023a9a79693ec1f6e8045646496d1ea71 | /COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/tests/test_errors.py | 9e887c00103f2f58623c9fbf4362f2812a1b757a | [
"MIT"
] | permissive | anzhao920/MicrosoftProject15_Invictus | 5e2347015411bbffbdf0ceb059df854661fb240c | 15f44eebb09561acbbe7b6730dfadf141e4c166d | refs/heads/main | 2023-04-16T13:24:39.332492 | 2021-04-27T00:47:13 | 2021-04-27T00:47:13 | 361,913,170 | 0 | 0 | MIT | 2021-04-26T22:41:56 | 2021-04-26T22:41:55 | null | UTF-8 | Python | false | false | 1,740 | py | import pytest
from pandas.errors import AbstractMethodError
import pandas as pd
@pytest.mark.parametrize(
"exc",
[
"UnsupportedFunctionCall",
"UnsortedIndexError",
"OutOfBoundsDatetime",
"ParserError",
"PerformanceWarning",
"DtypeWarning",
... | [
"ana.kapros@yahoo.ro"
] | ana.kapros@yahoo.ro |
7899cad4d30def6631efa09ea7835c4e2598f2f1 | 3705360ad17f0c6821cf1c683982c50413e23633 | /audioread-2.1.8/setup.py | bd90605d1910c452598043d29addb8e6bd2c5f3a | [
"MIT"
] | permissive | sleekEagle/audio_CNN | 17725d7cc6da315c4b7a3a55d697b4451dbeebcd | 33e63fa37c04c9b85873f09449cf7a8ffc31e330 | refs/heads/master | 2020-06-06T01:03:46.349390 | 2019-07-02T16:22:07 | 2019-07-02T16:22:07 | 192,596,089 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,941 | py | # This file is part of audioread.
# Copyright 2013, Adrian Sampson.
#
# 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, co... | [
"lahirunuwanisme@gmail.com"
] | lahirunuwanisme@gmail.com |
18860f487bd6c5951eccbcd21cb4cfef1e90fc37 | c8554d0aaa45cb087e5c36334477f10047d57394 | /gradio/demo.py | 2ad81ef24cdb3e645331aacae729fd20cec78082 | [
"Apache-2.0"
] | permissive | eyaler/U-2-Net | bd6ef847ee96cc1a2f375db6cc732ea6caa6aa32 | 2f54e75e1f05f5ca25e75480f275dc1eeadafdc4 | refs/heads/master | 2023-08-12T04:09:15.122278 | 2021-10-03T21:55:23 | 2021-10-03T21:55:23 | 328,661,996 | 1 | 0 | Apache-2.0 | 2021-10-03T21:55:23 | 2021-01-11T12:47:51 | Python | UTF-8 | Python | false | false | 1,360 | py | import cv2
import paddlehub as hub
import gradio as gr
import torch
# Images
torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2018/08/12/16/59/ara-3601194_1280.jpg', 'parrot.jpg')
torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2016/10/21/14/46/fox-1758183_1280.jpg', 'fox.jpg')
model = hub.... | [
"ahsengradio@gmail.com"
] | ahsengradio@gmail.com |
c86e8c832fe8478204873265025171e0b55c9257 | 6f75a44565c7ddaffa37d4c0dc88d643d596043d | /fundamental_view/preprocesser.py | 46816daf1720ef85a9ed1ac6023e8c7c45e758b4 | [] | no_license | SangHyung-Jung/stock_prediction_boaz | 2ee5c064506cc2c19f9b2305b0688734c0a54774 | d2a3b34dbcc7991c7e1f48fb39cec64bf9ab973f | refs/heads/master | 2022-12-22T20:21:56.899231 | 2020-10-06T06:53:24 | 2020-10-06T06:53:24 | 288,638,022 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,452 | py | import pandas as pd
import numpy as np
from datetime import datetime
class Preprocesser:
def __init__(self):
pass
##0815 함수 이름 수정함.
# 재무 데이터 컬럼 이름 설정
def set_fn_data_col_names(self, df):
col_list = ['Date', 'asset(1000)', 'debt(1000)', 'sales(1000)',
... | [
"cukirhkwk@hanyang.ac.kr"
] | cukirhkwk@hanyang.ac.kr |
e34582f98f0645eb530e767a8736ad3fdbaec08f | e37894e5502f18ffcc688e88e30eb6f54afcabb7 | /django-tutorial/test/ModelTest.py | c11d2e43ed636c4f3bc983918c3827baeba2f7ed | [] | no_license | dangq/test_django | 2764e87b9509b02564aa94c52c713594d74cd379 | 30f39fb310a3e228778cfa070b82495968078c82 | refs/heads/master | 2021-01-17T18:22:44.437647 | 2016-09-27T01:19:31 | 2016-09-27T01:19:31 | 59,747,566 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | from src.model.CandidateMovementModel import CandidateMovementModel
from src.predict.CandidateMovementPrediction import CandidateMovementPrediction
import src.const.TemplateData as templData
# Create Model
loc_training_data = '../data/trainingdata/dataset_07_Apr.csv'
can = CandidateMovementModel(loc_training_data)
mod... | [
"an.dang@jvn.edu.vn"
] | an.dang@jvn.edu.vn |
ad33576265fdfba0ce89d23f8f9daa5399a47c72 | 79710c763de75f2b8aaaebb6e9e69fa01edfa451 | /varaston_hallinta/asgi.py | 76af613bc6ee0c9fc31fa89e2ad171e0dc0bc210 | [] | no_license | mika1407/varasto | 0617b9bf1f5c3838dc8da198ea012831b1cba1f3 | ad7f3158e10e79523c073f8062e487fb57e49c6b | refs/heads/main | 2023-04-12T20:21:27.399207 | 2021-05-04T13:53:03 | 2021-05-04T13:53:03 | 363,675,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
ASGI config for varaston_hallinta 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('DJ... | [
"koneautomaatio@hotmail.com"
] | koneautomaatio@hotmail.com |
f2398be14fed7aa56b8340c3607d6ee35234bdd7 | 77bfeb1655a39a794dae79aea73aecaef2eaf8bb | /console.py | 72705250870dec1a2ac35d5e97accbe6dfe63f2f | [] | no_license | AJThomas145/week4_DB_music_lab | 098f2b147091ab28c013091b2ddfe8100ad43860 | 981bcb08c145a4388541e97941b41007a23e0c25 | refs/heads/main | 2023-08-30T18:02:15.945826 | 2021-09-29T08:59:07 | 2021-09-29T08:59:07 | 411,318,011 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import pdb
from models.artist import Artist
from models.album import Album
import repositories.artist_repository as artist_repository
import repositories.album_repository as album_repository
album_repository.delete_all()
artist_repository.delete_all()
artist_1 = Artist("Meatloaf")
artist_repository.save(artist_1)
ar... | [
"ajthomas145@gmail.com"
] | ajthomas145@gmail.com |
9792053cdb68495e95c61ba2c6b1bbe745ac5578 | acdc2595746bc79787fae9a53320963355602498 | /minimize_options/matyas_function_options.py | 7c0218fbecb4cfc43f1203246f4c19697625fb93 | [] | no_license | pansershrek/Diplom | 05f7d6b8d47dd5cc3aa1ff132b77dba7f26dc964 | d21cddd72ca2b405c7c85e9efcc21bfbaea4ec50 | refs/heads/master | 2023-07-22T15:05:35.318511 | 2021-06-11T01:29:50 | 2021-06-11T01:29:50 | 299,112,693 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | import tensorflow as tf
from utils.utils import convert_variables
"""
Minimize options
"""
matyas_function_options = [
{
"x": convert_variables([10, 10]),
"opt": tf.keras.optimizers.Adam(learning_rate=0.7),
"eps": 0.0001,
"max_steps": 100,
},
{
"x": convert_variabl... | [
"g.skiba@corp.mail.ru"
] | g.skiba@corp.mail.ru |
482b4d53a3c7ea3bafc52b262c2e05d8fb2d3acf | 21d0e2660780a96fdd2580a73e814119200eb139 | /get_wenku_img/wenku.py | 05d131534ff0294d98952986700cd42f878d638e | [] | no_license | kifast/spider | 0aa7d3a6abfb5785902b3b9ffe0817482a45b3cf | 195e2444c335567e8bfc220964d05f746c2b17b5 | refs/heads/master | 2023-01-21T08:45:59.263208 | 2020-12-03T11:42:05 | 2020-12-03T11:42:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,236 | py | # 多线程爬取 轻小说文库的插图
# -*- coding:utf-8 -*-
import requests
import re
import os
import io
import sys
import threading
from lxml import etree
from queue import Queue
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0',
}
sys.stdout = io.TextIOWrapper(sys.stdout.bu... | [
"jinl1874@foxmail.com"
] | jinl1874@foxmail.com |
55bdb4c228a78bde95ee20f0ef7443da88fed7d1 | 7685231de16d819e51fd5976e135b98e56f1d729 | /SessionState.py | 037f6d7f4dc5b63d1d21c5b83b8f65899f764a88 | [] | no_license | manika-lamba/Topic-Modelling-Open-Source-Tool | f8a8be4f2d00441b43ccdb8f0f4e3c6b8c300a8b | 47f443e7979b18e66507422bb5bcaba56dcd96c3 | refs/heads/master | 2023-01-21T00:45:20.825226 | 2020-11-10T16:59:42 | 2020-11-10T16:59:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | import streamlit.ReportThread as ReportThread
from streamlit.server.Server import Server
class SessionState(object):
def __init__(self, **kwargs):
for key, val in kwargs.items():
setattr(self, key, val)
def get(**kwargs):
# Hack to get the session object from Streamlit.
ctx = Re... | [
"bamigbadeopeyemi@gmail.com"
] | bamigbadeopeyemi@gmail.com |
95e2a54236f8e4004b2184729defd8d7cbed2b96 | 0741d7325a656244205f1ad1037a0ecf8e40917c | /xpyvideos/youpy.py | bc7c425fee042b970650f94de78f19922e08d318 | [] | no_license | prodigeni/xpyvideos | 8d9ec85c12a43f609c90a59351c4623d68b2fa71 | 682335eb85a385273bf64f26ee47aa16fcedd220 | refs/heads/master | 2020-12-25T04:38:25.374958 | 2014-07-05T00:34:07 | 2014-07-05T00:34:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,831 | py | #!/usr/bin/env python2
# Imports
from __future__ import print_function
import subprocess
import re
from sys import exit
from os import remove
from os.path import abspath
from os.path import join as path_join
from .packages.pytube.api import YouTube
from .packages.pytube.utils import print_status
from .packages.pytube.... | [
"darthoring@gmail.com"
] | darthoring@gmail.com |
5609f638481b61ed4a5b8c081b48fdbea9637e7c | 1316ec3dadf5614eec01391352a01690f86fceba | /mha.py | f58b3f1912160753be934a3671236ca384840fcd | [] | no_license | ljarabek/medslike | 76bb21a5bd79230ee711f55befbc0e4d72524db5 | e90afdf52c233b94832db559ef30b9dd4587fb7a | refs/heads/master | 2021-01-24T09:46:15.584554 | 2018-04-30T16:53:34 | 2018-04-30T16:53:34 | 123,027,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,166 | py | """
This class reads and writes mha files (images or vector fields)
Author: Paolo Zaffino (p.zaffino@unicz.it)
Rev 19
NOT TESTED ON PYTHON 3
"""
import numpy as np
class new():
"""
PUBLIC PARAMETERS:
data=3D/4D matrix
size=3D/4D matrix size
spacing=voxel size
offset=spatial offset of data data
data_type='... | [
"leon.jarabek@rocketmail.com"
] | leon.jarabek@rocketmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.