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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
be345fd726693b30f34806cf9fd8a3132ed73a97 | 73a6fa696dd8934760f3db4881c22f0f25f20a2c | /hovatrace.py | cb87206b17a74f7400d8b669f9caa3219265cd91 | [
"MIT"
] | permissive | jeweg/hovatrace | 4bc4b769b573cd6dfda038b0827eab4537363177 | 80798c612a5e935063786e82c93ca7c72437ea50 | refs/heads/main | 2023-01-19T19:38:16.586911 | 2020-12-03T14:30:52 | 2020-12-03T14:30:52 | 315,776,747 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,812 | py | #!/usr/bin/env python3
# MIT License
# Copyright (c) 2020 Jens Weggemann
#
# 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 right... | [
"jens@weggemann.de"
] | jens@weggemann.de |
258b822919f40b51fca5ac8df50a6ce96448a09d | f50bfc3130937c6666c6041641818e841bcc3c4a | /debug/um_translate_binary.py | d8966c46c74050c1c82219faa23cac4e434ce61e | [] | no_license | RagePly/icfp-06 | c067c43644cc282b28d321f46b667491572185a3 | 1d1c64e439bb69572bba98ef75a54a3489699c20 | refs/heads/master | 2023-01-21T16:59:59.438177 | 2020-12-04T16:12:40 | 2020-12-04T16:12:40 | 319,267,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | fileName = input("Filepath: ")
with open(fileName, "r") as f:
tmp = f.readlines()
with open("out/binaryOutput.txt","w") as f:
for line in tmp:
f.write("{}\n".format(str(bin(int(line.strip())))))
| [
"the.hugo.lom@gmail.com"
] | the.hugo.lom@gmail.com |
8cf8195d1def3ae3a4d1f092592eb10cafb46799 | b603733d0e2033571f978c204cd27ccb468108b7 | /src/wai/bynning/extraction/_Extractor.py | f132cb6097aea369435a95f713405574b2e0614f | [
"MIT"
] | permissive | waikato-datamining/wai-bynning | 38095edbecd7c65e13417692ad42e7180ea900c3 | 01b7368d4dc1094651d7cbe067576dfb3756a1d3 | refs/heads/master | 2020-07-07T20:30:56.565145 | 2020-03-31T03:22:41 | 2020-03-31T03:22:41 | 203,469,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | from abc import abstractmethod
from typing import Generic, Iterator, Iterable, TypeVar
InputType = TypeVar("InputType")
OutputType = TypeVar("OutputType")
class Extractor(Generic[InputType, OutputType]):
"""
Interface for classes which extract data of one type from data of another type.
"""
@abstract... | [
"coreytsterling@gmail.com"
] | coreytsterling@gmail.com |
cc2965e2337b8c65a2a78976c6e2ade58df647c6 | 88ff16e29df9ad953584b9ab065077c95f60e350 | /test/HTTP.py | 2c3f7b9c1140abab322d889b8ef9e9282c663e92 | [
"MIT"
] | permissive | Mon-ius/weapp_api | e42ba47342eb19d91bf6d1e97c1e8ef9a170a402 | 3e5b5fcfaee7ec01d093cbe5769b599ce4244c24 | refs/heads/master | 2021-06-28T22:40:30.109765 | 2019-04-16T01:08:22 | 2019-04-16T01:08:22 | 146,171,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | import base64
import sys
import requests as r
from avatar_generator import Avatar
from faker import Faker
from requests.auth import HTTPBasicAuth
url_01 = "http://127.0.0.1:5000/res"
url_02 = "https://weapi.monius.top/res"
url_03 = "https://xideas.herokuapp.com/res"
urls = [url_01, url_02, url_03]
def get_test(res):... | [
"m1105930979@gmail.com"
] | m1105930979@gmail.com |
66297d4af53a4f0fb39520ef4132934e2585601f | c6214ca3fd69299e2ea9c2d2d77b32b6f503a91c | /AtCoder/ABC/170's/171/171B.py | aa02ff2ec328654fa874c3d58ec9965b7acb9a94 | [] | no_license | sAto-3/AtCoder | efe024b1ca000c1b70471af19f21407f70ba94cb | d5ef48bee11371cebffd04ef43d1d4b2027842ab | refs/heads/master | 2023-08-19T17:05:24.759779 | 2020-07-12T13:40:05 | 2020-07-12T13:40:05 | 279,054,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | # B
n, k = map(int, input().split())
p = list(map(int, input().split()))
p.sort()
print(p)
print(sum(p[:k]))
| [
"17214@fukushima.kosen-ac.jp"
] | 17214@fukushima.kosen-ac.jp |
c9ea740e4e72b76cedee92076d445f7e738f14f7 | 8004831758776360a421b6cb458b48a120d1586e | /chapter_10/greet_user.py | 52e505301fe294fe854aedcd6d32515c6337c950 | [] | no_license | scott-gordon72/python_crash_course | 025d15952d7372c2a40780b7038008f9b39c42d2 | 605f1f7e8d90534bd9cb63f44098d95dec739e50 | refs/heads/master | 2022-06-04T19:29:40.142291 | 2020-04-25T01:13:48 | 2020-04-25T01:13:48 | 255,947,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | import json
filename = 'username.json'
with open(filename) as f:
username = json.load(f)
print(f"Welcome back, {username}")
| [
"scott.gordon72@outlook.com"
] | scott.gordon72@outlook.com |
59ff58e79151fd4fe156f65b1912bd72fbb537f8 | 72d7e53e53d0fd60a5dbc6ece5e6c3a19a1cddc8 | /Scripts/current-glyph/nudge.py | ca453d7f06e1b8cf41f6f64cabfb5fa679cf69ed | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | miguelsousa/hTools2 | d814d92f79d5f5bdaab16415626dd1f47692cfa9 | eab400677c1b21bb2519a7354a142e167c2b39ba | refs/heads/master | 2021-01-15T18:36:09.522992 | 2013-09-27T13:48:05 | 2013-09-27T13:48:05 | 6,453,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | # [h] nudge selected points
'''Nudge selected points by a given amount of units, with differents modes possible.'''
# debug
import hTools2
reload(hTools2)
if hTools2.DEBUG:
import hTools2.dialogs.glyph
reload(hTools2.dialogs.glyph)
# import
from hTools2.dialogs.glyph import nudgePointsDialog
# run
nudge... | [
"gustavo@hipertipo.com"
] | gustavo@hipertipo.com |
e5a45c2582c32769a4022236b9100eba97fe856d | 754b18bc08e0417722ba0efa2e4333ecb67b8268 | /setup.py | 181874a836193005d29daf6feda19f469dc12ed2 | [
"MIT"
] | permissive | b-ggs/Twitch-Chat-Downloader | 0ba26a31d2d176cfb096d935d95f0ddd27a285fe | 7d8b00d1836cbb804489a75b57d6af131fc2cc55 | refs/heads/master | 2021-11-23T04:00:44.567651 | 2021-05-15T11:34:58 | 2021-05-15T11:34:58 | 330,633,877 | 0 | 0 | MIT | 2021-01-18T10:41:20 | 2021-01-18T10:41:19 | null | UTF-8 | Python | false | false | 1,444 | py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'readme.md'), encoding='utf-8') as f:
readme = f.read()
requirements = ['requests>=2.23.0', 'twitch-python>=0.0.18', 'pytz>=2020.1', 'pyt... | [
"petter.zarlach@gmail.com"
] | petter.zarlach@gmail.com |
692a05543507c9a45449365de713ade53d90ef33 | 53c6a4b8fc143399cd12ac03cadd7c51b9d5dec3 | /my_django_project/my_django_project/settings.py | 55f620c6b87b974ede90a5ec637707cf23af408f | [] | no_license | karan-coder/my-first-blog | 13002f47cc1fd68edc705128375f799524d31c05 | d9f207ee72a8aadd2fbcf0f5fb07d39e9a433b53 | refs/heads/master | 2020-07-19T19:43:17.829360 | 2019-09-06T09:53:47 | 2019-09-06T09:53:47 | 206,503,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,154 | py | """
Django settings for my_django_project project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
im... | [
"karan.artomate@studio"
] | karan.artomate@studio |
27b9be34e5cc147280f36f8f4c2142b99745df23 | ee021f7f3f4986d3d16e8313124537462bea1a37 | /app/views.py | 3af7180dc053e000117bc0b767e75c071cd04359 | [] | no_license | pyprogs/analog | 2815b61dd43c68656c8f78221e8d217ca85e697d | d98956f6a14545ed93a9209c5213b0280f08cf4a | refs/heads/master | 2020-07-27T02:04:47.369662 | 2019-09-13T00:44:00 | 2019-09-13T00:44:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,668 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth import authenticate, login, logout, models, forms
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.core.mail import get_connection, send_mail
from django.conf import setti... | [
"1v1expert@gmail.com"
] | 1v1expert@gmail.com |
fe5e2cf35e5bbfda8bb53747c0cbf1bc642f00e1 | c0dad0d83af72c6e974c5e9626cb0949fa666456 | /personal_portfolio/projects/urls.py | 554dc122ff5bccfce374524d34d891a1510edf65 | [] | no_license | Hontiris1/Django-Portfolio-Resume | df3d6513a15fd2753469809a5eaee3590ed0c9f6 | b0fa968aae6143846e003381be0fb4550cb098e3 | refs/heads/master | 2022-12-25T10:28:09.188483 | 2019-12-21T16:35:46 | 2019-12-21T16:35:46 | 229,437,543 | 0 | 1 | null | 2022-12-19T22:54:39 | 2019-12-21T14:16:48 | Python | UTF-8 | Python | false | false | 226 | py | from django.urls import path
from django.conf.urls import url
from . import views
urlpatterns = [
path("", views.project_index, name="project_index"),
path("<slug:slug>/", views.post_detail, name="project_detail"),
]
| [
"56845190+Hontiris1@users.noreply.github.com"
] | 56845190+Hontiris1@users.noreply.github.com |
15d1c4dc00b96e0980199d3ab17065d53f04ffce | cf1e19f7b6354302037bca563b42218df7d79400 | /삼성 기출/[14499]주사위 굴리기.py | 02d746b8dd4fc841288e428981068ad16d41a419 | [] | no_license | kim-kiwon/Baekjoon-Algorithm | 680565ddeced2d44506ae6720cf32d8004db42f8 | 4699e6551d3e7451648b9256c54ea4318b71bd4d | refs/heads/master | 2023-04-13T11:10:21.031969 | 2021-04-26T10:50:08 | 2021-04-26T10:50:08 | 325,209,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | #요구조건에 따라 구현
n, m, x, y, k = map(int, input().split())
data = []
for _ in range(n):
data.append(list(map(int, input().split())))
orders = list(map(int, input().split()))
dice = [0, 0, 0, 0, 0, 0]
dx = [0, 0, 0, -1, 1]
dy = [0, 1, -1, 0, 0]
for o in orders:
#가능하다면 현재 좌표 변화
nx = x + dx[o]
ny = y + d... | [
"76721493+kim-kiwon@users.noreply.github.com"
] | 76721493+kim-kiwon@users.noreply.github.com |
4a5409dff72262d7e433c20870594b8b03ce19dc | 18e929c1128d3a1d01336db5d748962625b2435f | /intropylab-classifying-images/get_input_args.py | 13b37ac57cc802d57e89b2eabf8669b42456f80d | [
"MIT"
] | permissive | AustraliaAlexandra11/Udacity_AI_Python | e4f58fd33101bb3695a293f6dbff71d88356a622 | 8d66f4efabee6cf73674acefdce3c019fa902870 | refs/heads/master | 2022-05-22T12:20:47.220506 | 2020-04-24T17:30:41 | 2020-04-24T17:30:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,300 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# */AIPND-revision/intropyproject-classify-pet-images/get_input_args.py
#
# PROGRAMMER: Alexandra
# DATE CREATED: 14.04.2020
# REVISED DATE:
# PURPOSE: Create a function that retrieves the following 3 command line inputs
# from the user using the Argparse Python m... | [
"noreply@github.com"
] | AustraliaAlexandra11.noreply@github.com |
1bbbe0b99b9e11cf90de82fdc5527584ed64257a | eb89c747244588f5185a42b024ee306263ba6fde | /r_eco_mmender.py | bbe7c691eee733c969463a00016d843bad288680 | [] | no_license | mlisovyi/hackzurich2021_eco_recommender | 4004491c3b0413161406e58d8f6be9f6cb901cff | 84a118af427acf5fdb7c1ea688946182a347e198 | refs/heads/main | 2023-08-30T11:50:42.627905 | 2021-09-26T04:53:07 | 2021-09-26T04:53:07 | 410,081,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,787 | py | from typing import Any, Dict, Union
import numpy as np
import pandas as pd
import abc
from dataclasses import dataclass
class RecommenderError(Exception):
pass
@dataclass
class BaseRecommender(abc.ABC):
col_product_id: str = "id"
_fitted: bool = False
@abc.abstractmethod
def fit(self, X: pd.Da... | [
"mischa.lisovyi@mgb.ch"
] | mischa.lisovyi@mgb.ch |
cda5871aaa1cd77fa56ab3b28dc623079fdd31e7 | 7abc50131d92120ebeefe4c5b3f27e94622eb866 | /001_Python基础/031_pyhton类.py | 9c1f0d087986d630de8bbe34e97b29fda46e5e4e | [] | no_license | dogpi/StudyPython | 4b94b3b655cf509ad9002ea9da0d48746964bd7d | 87cabbfe46455e6e8864207cf614d7cd65062f89 | refs/heads/master | 2020-08-31T11:30:02.808766 | 2019-10-31T04:16:00 | 2019-10-31T04:16:00 | 218,680,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py |
# object:基类,超类,所有类的父类
class Person(object):
# 定义属性
# name = ""
# age = 0
# height = 0
# weight = 0
'''
构造函数:
在创建对象时自动调用
'''
def __init__(self, name, age, height, weight):
print("__init__")
print(name, age, height, weight)
self.name = na... | [
"noreply@github.com"
] | dogpi.noreply@github.com |
241af9ec509daa6b7d7db01173e6c44daffe6716 | f2946cbfe41fc5cdc16d104af1b1f054553e86fa | /dashboard/admin.py | 1c90b69f5faedb5c7394380ddaa1a633bf6ca069 | [] | no_license | ahmdkhan-cs/Facebook-Sentiments | bb12821ea575ed4ff40d99ca00e8b1542f409267 | 4b46e8f605dacb91061af897fdada633264b06be | refs/heads/master | 2022-12-01T16:31:51.107499 | 2020-08-17T16:10:57 | 2020-08-17T16:10:57 | 288,225,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.Page) | [
"akhn358@gmail.com"
] | akhn358@gmail.com |
861a7a1732edf6f26a65e98a821b9b2502a797ca | 89ee8d0ba8756a728c64841655bed4b980594f3a | /HOMEWORK 02/ZyLabs 8.10.py | 909c393416af64a7df4716129cb894c21d6f3475 | [] | no_license | cchan27/CIS2348 | 4fb9e9aad8614f321da47ff35b046a327866f496 | 333891851a65307fe6bb3f0ba43daf2c882c2fd2 | refs/heads/main | 2023-08-22T12:13:14.601183 | 2021-10-17T02:23:58 | 2021-10-17T02:23:58 | 401,477,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | # Caleb Chan, 1831296
usr_text = input()
word_a = ''
word_b = ''
for i in usr_text:
if i != "":
word_a = word_a + i.replace(' ', '')
word_b = i.replace(' ', '') + word_b
print(word_a)
print(word_b)
if word_a == word_b:
print('{} is a palindrome'.format(usr_text))
else:
print('{} is not a ... | [
"noreply@github.com"
] | cchan27.noreply@github.com |
8c7bbb0bbdab34e88b5bf60a7150a80da745acb5 | 001ce777a39dc272b5cfaec4dd368e984f30df61 | /Python/DL/Dev/neural/matrixcalc.py | 59e2f6af47c177313ff598f0e0086221c0348434 | [] | no_license | ogawa-yu/DevHome | d4c5dbce00822c8f19166d4cbf0d0713d928c653 | 6642a48af13fc02edd6e0ffa134f2ded5e89452d | refs/heads/master | 2021-07-07T08:55:45.393209 | 2019-01-06T03:07:56 | 2019-01-06T03:07:56 | 112,095,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | import numpy as np
import matplotlib.pyplot as plt
def printArray(X):
print("======Print Array=======")
print(X)
print(np.ndim(X))
print(X.shape)
print(X.shape[0])
print("======Print END =======")
A = np.array([1, 2, 3, 4])
B = np.array([[1.0, 2.0],
[3.0, 4.0],
[5.... | [
"badm.y.ogawa@gmail.com"
] | badm.y.ogawa@gmail.com |
4a041294c21b7209e66526b08ddc74cc9d670592 | f59baca7628598192b004b9ce69850034e17ffe9 | /src/posts/urls.py | a1d5da2108733cf150eec704fb33e6614aae367b | [] | no_license | ihdba/django_ajax | 8c41946b88f29947e19dde8282a351d736781d93 | 17f7ab9b8d0d80542b36d65de5623404025e3827 | refs/heads/main | 2023-03-31T14:27:36.087686 | 2021-04-11T07:43:47 | 2021-04-11T07:43:47 | 356,800,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | from django.urls import path
from .views import (
post_list_and_create,
load_post_data_view,
like_unlike_post,
post_detail,
post_detail_data_view,
delete_post,
update_post,
)
app_name = 'posts'
urlpatterns = [
path('', post_list_and_create, name = 'main-board'),
path('data/<int:n... | [
"ioannis@Ioanniss-iMac.local"
] | ioannis@Ioanniss-iMac.local |
5b1acdbbbc44548e7b618008e2273206942ec172 | 1d867cb4bc3eb7ae0acc66ad002745d717b0ef95 | /server/models/__init__.py | 6687ad890fa1d5113ebc80857af0282e48767225 | [] | no_license | plollaton/treinamento_python1_back | 641007af6c71902518e04a293dcea2968ad3d64b | 7932690cd10a75f8794cd87028e359abfb73bab9 | refs/heads/main | 2023-02-15T16:03:52.886082 | 2021-01-15T19:52:31 | 2021-01-15T19:52:31 | 330,005,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from .models import Album, Photos
try:
Album.create_table()
except:
pass
try:
Photos.create_table()
except:
pass | [
"plollaton@hotmail.com"
] | plollaton@hotmail.com |
8b955993a7f52285a6cd43ba2209597c4449cbec | 958d5bd8cde0c058ae44aad5d108c1adaef9a06a | /mysite/polls/migrations/0001_initial.py | c518310caddba276db9007b9e8fe573d22147b68 | [] | no_license | divya2424/django-basic | 342f83043a598ca4ebf9d59c234dbc4ca63c75c7 | cdfd96f0667e55a647cd9a70a1e134a7e3f7f247 | refs/heads/master | 2022-04-24T16:20:39.662803 | 2020-04-23T23:34:20 | 2020-04-23T23:34:20 | 258,354,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-04-23 19:48
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Cre... | [
"divya2401@bitbucket.org"
] | divya2401@bitbucket.org |
25489f7c159b13c6cf582874ffd69d3ed7ec89e3 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2126/60604/259679.py | 502aa7b2a7ea5ca5d11513058f3eccf895093494 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | n=input().split(',')
for i in range(len(n)):
n[i]=int(n[i])
n.sort()
res=[]
res.append(n[0])
for i in range(1,len(n)):
#print(res)
j=True
for j in res:
if n[i]%j!=0 and j%n[i]!=0:
j=False
if j:
res.append(n[i])
print(res)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
22839aa3e04df540b1da346258eed2b11d22b3e4 | 08fe752455b2e8bea36f69bd7eb0d70641691514 | /12월 3주차/[LEETCODE] 4Sum.py | 14110fd2126e3b1a5e36f8385f5a5fa01940b85c | [] | no_license | 2020-ASW/gayoung_yoon | 69a7a20c073710aaec76261cac59aa6541250588 | 0ad21c5484ed087d704d72b03fc1f14c3fa9e25f | refs/heads/main | 2023-02-14T19:28:38.966502 | 2021-01-10T07:56:10 | 2021-01-10T07:56:10 | 320,287,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | '''
정렬 후, a,b,c,d를 결정해야한다.
4중for문보다 a, b는 for문으로 결정하고, c,d는 while문 이용
'''
# class Solution:
def fourSum(nums, target):
nums = [1,0,-1,0,-2,2]
target = 0
nums = sorted(nums)
nums_len = len(nums)
# a, b를 설정하고 나서 c, d도 설정해야하기때문에
# for문 돌린 후 2개 값을 설정할 수 있어야한다.
check = set()
for a in range... | [
"gyyoon4u@naver.com"
] | gyyoon4u@naver.com |
4013c6f42b3aa290fa59fe04f8976bdb1f342c12 | 1abcfe11e193ec840c1ec0969d36e9bd0916f61f | /source/helpers.py | b37cf20b34a820b7dd7168a9707449e8c91a29cf | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"BSD-3-Clause"
] | permissive | jcushman/password_change_tool | ed690070f8de4ceede1a20ac74f62b990c9433d6 | efbf2968eef9d4e1f9b9053384b65386c918b75d | refs/heads/master | 2020-07-20T18:06:06.311266 | 2014-08-27T13:50:33 | 2014-08-27T13:50:33 | 22,996,875 | 1 | 0 | null | 2015-01-19T18:13:26 | 2014-08-15T17:13:15 | Python | UTF-8 | Python | false | false | 4,095 | py | import ctypes
from multiprocessing.pool import ThreadPool
import os
import sys
import threading
import wx
from wx.lib.pubsub import pub
import crypto
import platform_tools
from ramdisk import RamDisk
from global_state import GlobalState
def get_data_dir():
if hasattr(sys, "frozen"):
this_module = unicode... | [
"jcushman@gmail.com"
] | jcushman@gmail.com |
161d73575db110913f2bf402aa5a22d649d786ff | fa37de9fa7699e92cdcd4f753fa54b933830b967 | /rookery/checkers/ip.py | 263b11af5629e569d906b3931146a548a29a9328 | [] | no_license | BorisPlus/otus_webpython_020_021_celery | 1b37b3dcc3db3c95fc31bdf0136baa877325cbc5 | 68ea6597c19ba525ab52db158318276111a2546c | refs/heads/master | 2022-05-26T10:55:19.997403 | 2018-11-07T11:17:56 | 2018-11-07T11:17:56 | 156,196,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | #!/usr/bin/env python3
from .core.base_checkers import ip
def check(domain_url_or_ip):
return ip.check(domain_url_or_ip)
| [
"boris-plus@mail.ru"
] | boris-plus@mail.ru |
e52b50956b795494549c1453cc42a4e77b02fd23 | a15ca7096a1de7372569e8defb4fb012f9c00966 | /inference.py | 00cd5289945c89d84f00d45f46b0ed0d0cec5257 | [] | no_license | AniketGurav/Attention-OCR-pytorch | 9a32412eef2162f4937145304eea35498991251a | eacbb2f8f83eb47af08da6a3666715d714565071 | refs/heads/main | 2023-07-03T00:52:51.062816 | 2021-07-28T05:54:52 | 2021-07-28T05:54:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,408 | py | # Inference Script --> Given Image, Output Label
import torch
import os
from PIL import Image
from torchvision import transforms
from model.attention_ocr import OCR
from utils.tokenizer import Tokenizer
import json
import matplotlib.pyplot as plt
# Train and infer on same CNN Backbone
# Loading Json File
json_file="c... | [
"ankanroni3@gmail.com"
] | ankanroni3@gmail.com |
94622d6fcc9d234946d65e22c3520e93bf586eed | f715e2ff4f264cf4bc805a45a5019f527479e5ce | /unused/us07.py | 0e5bae80c851d21eaa2ceedf8c7ec16a9f9135a2 | [] | no_license | tarikkdiry/spring2018-ssw555 | 4b1207329f120c91fa12c9e9b06b6dfb38b5fede | 3b452a6479a569119b8d1d32a143bc8b80425419 | refs/heads/master | 2021-04-28T19:37:41.410394 | 2018-04-12T17:38:38 | 2018-04-12T17:38:38 | 121,900,740 | 0 | 1 | null | 2018-04-12T17:38:39 | 2018-02-17T23:15:24 | Python | UTF-8 | Python | false | false | 430 | py | from datetime import datetime
LEVELS = {'INDI':'0', 'NAME':'1', 'SEX':'1', 'BIRT':'1', 'DEAT':'1', 'FAMC':'1', 'FAMS':'1', 'FAM':'0', 'MARR':'1', 'HUSB':'1', 'WIFE':'1', 'CHIL':'1', 'DIV':'1', 'DATE':'2', 'HEAD':'0', 'TRLR':'0', 'NOTE':'0'}
def us07(Children):
'''Check to see if there are fifteen siblings, 15 kids... | [
"noreply@github.com"
] | tarikkdiry.noreply@github.com |
b2737dd27d92f56ef1286581da06f988d6e0ac27 | 28986e1726c3f7aed7a444a4d505ed6e62ed29df | /robot.py | b8f34403a8caec2f2dcd451ca0234e9a0284dfc5 | [
"MIT"
] | permissive | alexcc4/robot | 5e66c16a35a4fee8009af61b7f5e77510cd27f0a | 713b95a12aa7aa47aab97a0a812dcb7cd457e2ff | refs/heads/master | 2021-01-10T23:20:30.741602 | 2016-10-11T14:27:06 | 2016-10-11T14:27:06 | 70,598,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | #!usr/bin/env python
# -*- encoding: utf-8 -*-
import os
import time
from slackclient import SlackClient
# bot 的 ID 作为一个环境变量
BOT_ID = os.environ.get("BOT_ID")
# 常量
AT_BOT = "<@" + BOT_ID + ">:"
EXAMPLE_COMMAND = "do"
# 实例化 Slack 和 Twilio 客户端
slack_client = SlackClient(os.environ.get('SLACK_BOT_TOKEN'))
def handle... | [
"liangbinsi@gmail.com"
] | liangbinsi@gmail.com |
43ba1376aaedf3c6c736bd7a359121850f6e872d | 1590478d46b990b79ec9f6ca45f68273cbb0f6e8 | /oneD.py | 678515105c9c0fa55afdd468014887041c7a81a0 | [] | no_license | satyamshree22/oneDkinematicpy | 8e3362239b1db2b6dc9e2579f1f95ee9e9524486 | 0483f0dd462141d704e5f16a8b2c97d6fa2dffd1 | refs/heads/master | 2022-11-13T21:41:13.408759 | 2020-06-29T06:01:01 | 2020-06-29T06:01:01 | 275,740,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,678 | py |
import math
def final_velocity(initial_velocity=0,acceleration=0,time=0,final_position=0,initial_position=0):
# when time is t given
if time != 0 and acceleration !=0 :
# vx=vox +ax*t
final_velocity = initial_velocity + acceleration * (time)
return final_velocity
elif time ==... | [
"satyamshree22@gmail.com"
] | satyamshree22@gmail.com |
364d667b5e4354fe5c21f9390a0aa9c02c5bdcae | f613efb275bbb74dbee93e9bf5b89175a79bf9ef | /tweet.py | 9fa766d8aa91d6bae44cbeaedbb6718a6c29eeab | [] | no_license | plmwa/nittc-bot | 73321cdbf181c7b0dfad15e9ee8c513bf674ddb3 | eef9d3e97deeff824a1c75ad4089282855ff1d3d | refs/heads/main | 2023-06-08T03:51:46.642970 | 2020-12-16T08:01:01 | 2020-12-16T08:01:01 | 321,910,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | import os
from dotenv import load_dotenv
from requests_oauthlib import OAuth1Session
def tweet(a,b):
CONSUMER_KEY = os.environ["CONSUMER_KEY"]
CONSUMER_SECRET = os.environ["CONSUMER_SECRET"]
ACCESS_TOKEN = os.environ["ACCESS_TOKEN"]
ACCESS_TOKEN_SECRET = os.environ["ACCESS_TOKEN_SECRET"]
... | [
"townstgak@gmail.com"
] | townstgak@gmail.com |
bbede51527b82585df7b0832bdaf134cac397749 | 86e7542c386aca7386e5a107ee4c93e3480b9e50 | /kbackend/core/wsgi.py | 2b949153980f34f44777315de6cc6d8bddf69b9f | [] | no_license | patrikturi/kBackend | 9c07481396a0a2883f6d04c170cd27c0afa5e666 | e2c3d94251a17db748abe406c8d5b52a7f6d3e19 | refs/heads/master | 2023-02-06T21:47:28.346658 | 2020-12-26T14:06:17 | 2020-12-26T14:06:17 | 288,246,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | """
WSGI config for kbackend project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise import WhiteNoise
... | [
"patrik.turi.0xff@gmail.com"
] | patrik.turi.0xff@gmail.com |
dfecf2f243803bdb56737a4fa2c9e671acc37da9 | 2b73d950cfd1a617111eeed37ac58c2fde465a98 | /src/aihwkit/cloud/converter/definitions/onnx_common_pb2.py | 1279f04146c04ea97cb80b13677c1f8d17d8150e | [
"Apache-2.0"
] | permissive | tunghoang290780/aihwkit | 218756911dac42190ec504f99672e54eba709d46 | 801aa174f4b808aa6595f1fb2403944d0aad142f | refs/heads/master | 2023-05-06T20:19:40.692587 | 2021-05-17T10:15:31 | 2021-05-17T10:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 18,916 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: onnx_common.proto
# Some of the data structures in this file are derivatives of the ONNX
# specification (https://github.com/onnx/onnx), licensed under Apache-2.0
# as per the terms below.
# Copyright (c) ONNX Project Contributors
#
# Licensed under... | [
"noreply@github.com"
] | tunghoang290780.noreply@github.com |
7d45910362770b2b3ae5bd05ee081e705984bf84 | b2584b0905f41aa079f7cfa4a4177794e997e6ea | /store/admin.py | 14722e35266d138646e438ee21e5b169aa95ca6e | [] | no_license | kazi-akib-abdullah/greatkart-django | f4d393b84b19bc57cb98d66b7c3978cb31f19731 | 093ac8d327ae3c81a639b1a7d747fe7ea2422182 | refs/heads/main | 2023-06-06T07:30:38.139142 | 2021-06-17T23:24:22 | 2021-06-17T23:24:22 | 377,981,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from django.contrib import admin
from django.contrib import admin
from .models import Product
# Register your models here.
class ProductAdmin(admin.ModelAdmin):
list_display = ('product_name', 'price', 'stock', 'category', 'modified_date', 'is_available')
prepopulated_fields = {'slug':('product_name',)}
admin... | [
"45953236+kazi-akib-abdullah@users.noreply.github.com"
] | 45953236+kazi-akib-abdullah@users.noreply.github.com |
925f4b82b689fec23eb3d316b785b7da9fab7966 | a05f2d84a3c418c16976a04426eed58488362431 | /test1.py | d1b6555d9b319d2290934f378c2fecbc7e4ad6da | [] | no_license | codeproy/newPython | 8819180d81740c0a7c10f8cb18c1cdb9407ffa93 | 4f2097949d8f8de714aaf77a5d1f145ec9938ef4 | refs/heads/master | 2023-05-08T20:25:27.596265 | 2021-05-23T04:48:01 | 2021-05-23T04:48:01 | 69,076,074 | 0 | 0 | null | 2021-05-23T04:14:38 | 2016-09-24T03:01:19 | Python | UTF-8 | Python | false | false | 60 | py | # test
a = []
for b in a[:]:
else:
print ("not found")
| [
"partho.ece@gmail.com"
] | partho.ece@gmail.com |
96f9ea4e947740bc699e18205ebf697fa111a4f7 | fd53427af48fa3100e60f91a37285d0c3f1b70d5 | /jenkins/jenkins_lascon_sql.py | bfb880e1f13bc9a2da78ed8ca178eb1fe22043af | [] | no_license | devGregA/lascon-demo | 93da7fdf35fad61392bad1e9f6bd8f3f97de5332 | 7449756b87f459a09c902e7845ee2bbeb8ae155d | refs/heads/master | 2021-01-10T12:00:02.745825 | 2015-10-23T16:04:22 | 2015-10-23T16:04:22 | 44,783,250 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | # -*- coding: utf-8 -*-
import imp
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException
import unittest, time, re
import... | [
"you@example.com"
] | you@example.com |
95b4a05c7e3d418a43d634c186390312caa0c739 | 54b1eb176245485ea46e89f17b9d4d5ac8e8b0a3 | /quebap/projects/inferbeddings/sampling.py | 28d4654eb959b403df1543bef7a53f939e1dfff5 | [] | no_license | mitchelljeff/modelf | 1823c5001904c0beeee74c4394632256ae12d3f2 | 2e66a8f26e4d59a8e27c81a52e0e0e6d7ccab410 | refs/heads/master | 2021-01-11T18:02:00.436319 | 2017-01-20T16:45:00 | 2017-01-20T16:45:00 | 79,473,771 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | import tensorflow as tf
def random_truncated_exponential(w, num_samples):
"""
Sample from truncated independent exponential distributions using weights w (or inverse exponential distribution for
positive weight components).
Args:
w: a [num_rows, dim] matrix of `num_rows` weight vectors.
... | [
"sebastian.riedel@gmail.com"
] | sebastian.riedel@gmail.com |
8d7a0fb342ea8e2c84a29ddb6e44354ef089308b | 97f1a7a537865b3b5697100d2b94d5b526d6d1a4 | /mysite/settings.py | 573933c0f9f8b068833356345cdb018d24405e9b | [] | no_license | farhanulsheikh/Blog-App | f6b39e48d02f83df0792dd77764d40dbe7c25165 | aca10cf9b6ca7eba291cb918492f7a40c582783c | refs/heads/main | 2023-01-01T14:29:48.126782 | 2020-10-28T01:20:54 | 2020-10-28T01:20:54 | 305,951,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
from... | [
"farhan_i@live.ca"
] | farhan_i@live.ca |
cda69b02b2d17bd7a70d342fa445f30e0f22a236 | a5109ed60e25ddaa9cc2488df714f0f19a1b0620 | /hello.py | 699d5c38f793fd03829a7d17816bf9fb0c1605ff | [] | no_license | sukesuke0718/WebPythonProject01 | ed6a6e408ef0467db2d4778db99b57a9580cab77 | a08527e5f45b7cb4049bcad255f8245fbeed7a35 | refs/heads/master | 2020-03-31T04:29:27.119163 | 2018-10-07T05:09:04 | 2018-10-07T05:09:04 | 151,907,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | ###########################################
# PythonでWebアプリケーションを作ってみよう
# Flaskを使ってみる
###########################################
from flask import Flask
myapp = Flask(__name__)
@myapp.route('/')
def index():
return '''
<h2>Flaskの練習ページです</h2>
<p><a href="/hello">Helloページへ</a></p>
'''
@myapp.route('/h... | [
"sukesuke0718@gmail.com"
] | sukesuke0718@gmail.com |
4cd07865f55f378aa5da8e8aa8a16765655310c9 | 886fc24e518143d3602c78be10dfaead1068460b | /ios_notifications/__init__.py | cb159b8b4efbb1b3c13bf86519957f1425cc406a | [
"BSD-3-Clause"
] | permissive | tapanpandita/django-ios-notifications | e5558f1c3d7f0ed70afde2b01623005ac4f111ab | 74b5d03dda770eb2fc2690b0698a2d33e4f29442 | refs/heads/master | 2021-01-16T22:35:37.808222 | 2013-02-18T03:49:59 | 2013-02-18T03:49:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | # -*- coding: utf-8 -*-
VERSION = '0.1.3'
| [
"stephenmuss@gmail.com"
] | stephenmuss@gmail.com |
733d810f56a73cb57206d1b5840580439b6f728e | 32a02fa05cdf63e7c72bcbc3e8b35ec7e2f33130 | /toutiao_crawler/test_offline_script/filter_hyperlink_subjective.py | 7627735acd73764bc1f68871e106f63ad1613ad0 | [] | no_license | TTurn/haozhuo-script | f0893279d578ac853829017fcda6039345bb1eea | a4b3a927597b02ebc33065ca2a2c55e1673b0369 | refs/heads/master | 2020-12-02T21:24:21.616920 | 2017-07-16T05:16:29 | 2017-07-16T05:24:01 | 96,310,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,859 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/6/22 15:30
# @Author : Tuhailong
# @Site :
# @File : url_me_filter.py
# @Software: PyCharm Community Edition
import pymysql
import re
from bs4 import BeautifulSoup
def get_sample():
print("获取样本")
conn = pymysql.connect(host='116.62.106.69', por... | [
"tuhailong@hotmail.com"
] | tuhailong@hotmail.com |
61f3a65a9aec4745f98829c8e888a7d436ff3a81 | fb344544d2692df41c4186e63cc5b316a47f30ca | /pycoinone/response/v2.py | c945f22de7ba644dc9892dedecdc8e65c36b5174 | [] | no_license | jaehong-park-net/python-coinone | 5aecf101ec1bfe5354292fb781dbcd2c93bb6fe6 | 94a9cdb14f5c8b3b654d6275b3f834a4903b40c9 | refs/heads/master | 2020-08-31T02:03:01.370617 | 2020-01-02T06:14:22 | 2020-01-02T06:14:22 | 218,552,972 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,714 | py | from pycoinone.response import (
coinone_api_response,
UserInfoResponse,
BalanceResponse,
LimitOrderResponse,
PendingOrdersResponse,
CompleteOrdersResponse
)
@coinone_api_response
class UserInfoResponseV2(UserInfoResponse):
"""
{
"result": "success",
"err... | [
"jaehong.park.net@gmail.com"
] | jaehong.park.net@gmail.com |
222632780ec42a784bc66d6176316fa5ba923b58 | f3d40d64a166cc0089efc49ee4477ca50ea27e91 | /23. Merge k Sorted Lists.py | 903c4f7fac86aa55ef59c34de0b4c14028d3a951 | [] | no_license | liuxiaonan1990/leetcode | 129965efdb2218744fda29a12ea1d25e9170ae8d | 84f61ec2aa21b27c0d96b1c9a191c2b0c1ba5810 | refs/heads/master | 2020-12-14T08:51:45.540202 | 2017-10-12T03:19:10 | 2017-10-12T03:19:10 | 95,516,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def merge2Lists(self, l1, l2):
head = ListNode(0)
p = ListNode(0)
head = p
while l1 != None and l2 != None:
... | [
"liuxiaonan@100tal.com"
] | liuxiaonan@100tal.com |
034cb6e4a5eff7b56eb07284e9c5c6d26dc1bfe0 | a78514f0f9f738d8da864622d5ca97fd58e33a17 | /pysh/tests/test_examples/test_posix.py | 17eea77e9c44c81501d740f481944a74124cda7c | [] | no_license | caervs/pysh | 2e89d5c0adab849f2bfb9d77ecb1a89ffd312672 | fa9e2c16b50e587c40b97b93ce012b52c67e13b1 | refs/heads/master | 2021-01-10T12:56:50.550520 | 2016-11-12T07:07:13 | 2016-11-15T22:08:15 | 49,346,479 | 18 | 1 | null | 2016-04-19T04:16:06 | 2016-01-09T23:55:35 | Python | UTF-8 | Python | false | false | 355 | py | import io
import unittest
from pysh.examples import posix
class PosixTestCase(unittest.TestCase):
pass
class GrepWorks(PosixTestCase):
def test_matched_output(self):
stdin = io.StringIO("Hello\nWorld!")
stdout = io.StringIO()
posix.grep("Wo")(stdin=stdin, stdout=stdout)
asse... | [
"rdabrams@gmail.com"
] | rdabrams@gmail.com |
de73ff367943c136bc322b995e41b1487114249c | 7527086cdf51cef2f7ad6064ffb580011b29cc24 | /routeme/google/models.py | d8417b69652d42057890967c99d30556c95f3538 | [] | no_license | COMU/routeme | 41da683867fcd7d88c035dac7dfe2d7f36315043 | c48fed00f9bb8747effe2109febeb9585488037d | refs/heads/master | 2021-05-26T12:49:40.162932 | 2012-03-07T11:03:41 | 2012-03-07T11:03:41 | 3,165,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.contrib.auth.models import User
from django.db import models
from routeme.auth.models import LoginProfile
from routeme.google.backend import GoogleBackend
class GoogleProfile(LoginProfile):
email = models.CharField(max_length=100)
firstname = models.CharFi... | [
"demircan.serhat@gmail.com"
] | demircan.serhat@gmail.com |
5fe5b432ef2a1add3ff376f555b355954413d5a4 | 4f381c00eeedaf9d1f2b0acd8b751a484b110d37 | /studybuddy/urls.py | 8b76e1607a7cd1a32902c937dbca595bfe16bd20 | [] | no_license | rafsan99/studdy-buddy | acde8df476ab47b3da69a2f6101595c36ffce74e | 50f3ff3a84d46f35497cdadce6cd2f642a750dcd | refs/heads/main | 2023-08-21T20:49:51.324298 | 2021-10-10T11:48:55 | 2021-10-10T11:48:55 | 415,570,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | """studybuddy URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"rafsan.redwan69@gmail.com"
] | rafsan.redwan69@gmail.com |
c21fd10cd11e7750a5a0ad15ea4afe2db3c54928 | 32d07c93e6b71fba0fa6318b1e17f3b0952dcfd5 | /face.py | 73fa4fe1ebd5ce82dbd5a709fd7d1c2f5492c898 | [] | no_license | mrabhi05/FaceDetection | 22906ffb1200388ab1e99cb6caa15cee82172085 | afb1aac41b56b19536ddb3597645d46f14c9d0c3 | refs/heads/main | 2022-12-18T18:05:34.537288 | 2020-10-02T18:31:03 | 2020-10-02T18:31:03 | 300,702,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | import cv2
# Loading pre-trained Data
trained_face_data = cv2.CascadeClassifier('D:\Abhi\Study Zone\Projects\Face Detector\haarcascade_frontalface_default.xml')
# Choose an image to detect faces in
#img = cv2.imread('sop.png')
# To capture video from webcam
webcam = cv2.VideoCapture(0)
# Iterate for vid... | [
"noreply@github.com"
] | mrabhi05.noreply@github.com |
873d8b1768d130de659f3272c9a1ce25cb9be07a | 88107d99bba6f2cc6a0b24b8ec40c0c425079e0f | /Punto_1.py | 2a1d6e89278e8c058a3f303b8c90a176a31c26e1 | [] | no_license | Magnodev12/Prueba-Tecnica | 0eae0d85ca3f1b6050611fa658578984f3b3fe74 | e505a18d4a01abe089ef8ebd3ce11b006ab832cd | refs/heads/master | 2023-07-14T14:14:15.178745 | 2021-08-22T22:48:49 | 2021-08-22T22:48:49 | 398,903,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | n=5
def cruz(n):
resultado=""
if n == 0:
print("ERROR")
else:
for i in range(n):
for j in range(n):
resultado += "X" if (j==i or j==n-i-1) else "_"
resultado += "\n"
return resultado
print(cruz(n)) | [
"noreply@github.com"
] | Magnodev12.noreply@github.com |
f2985c2acb7271795c1237493f9ab033931a22e5 | 28a32fa0a1cbead19bac3f54ace2cb3f2f8b3e23 | /stream/api/subscription.py | f989747db84b3629723cdb4b74ad14d5737da4b2 | [] | no_license | ethanray123/Channelfix-Internship | 5fba70b3d5e874e79176c84b05e3ae426d651197 | 5735223344db9f6c86054355e723d3b1795cd94c | refs/heads/master | 2020-03-17T13:36:07.869433 | 2018-06-15T11:30:15 | 2018-06-15T11:30:15 | 133,637,679 | 0 | 0 | null | 2018-06-15T11:30:16 | 2018-05-16T08:53:43 | Python | UTF-8 | Python | false | false | 1,102 | py | from django.views import generic
from stream.models import Subscription
from django.http import Http404, JsonResponse
class SubscriptionAPI(generic.View):
model = Subscription
def get(self, request, *args, **kwargs):
if not request.is_ajax():
raise Http404
# Create queryset.
... | [
"rendave.lecciones3@gmail.com"
] | rendave.lecciones3@gmail.com |
752dfa2c8ef5b98706578a165c6fd4679eb50c42 | d8a935d00a9a77aac031cdf497f55a75fb0cb610 | /Scripts_confg_camera/cap_date_timelapse.py | a23a4cb741cab833f6cce86a7434b79a721ceac3 | [] | no_license | Vihelisa/PiCameraTests | b7909d957c834e41853bdc7808a190dad06abd5a | 3fa88f24acf587aa306342389a0f413c94bebd43 | refs/heads/main | 2023-06-30T19:16:42.007947 | 2021-08-09T16:37:25 | 2021-08-09T16:37:25 | 394,365,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | from time import sleep
from picamera import PiCamera
from datetime import datetime, timedelta
'''
Capitura imagens e salva com o tempo entre as capturas de acordo com a hora da máquina local
salvando o nome dos arquivos com a data em que foram tiradas as fotos.
'''
#Não deu certo nos testes, ver o que é
def wait():
... | [
"72274329+Vihelisa@users.noreply.github.com"
] | 72274329+Vihelisa@users.noreply.github.com |
e31d555c76b6e861f608c827fd4c72afa496f6af | 7ec9c49fa0f8f283b2c793566276d00f612a3b8b | /oldcontrib/media/image/admin.py | fadf2f181224895ed2c5ba6f1edcd8e89fe26a39 | [
"BSD-3-Clause"
] | permissive | servee/django-servee-oldcontrib | f432cae589d617d841b79111f6315a1853887a30 | 836447ebbd53db0b53879a35468c02e57f65105f | refs/heads/master | 2021-01-18T22:54:25.062212 | 2016-04-18T20:30:43 | 2016-04-18T20:30:43 | 1,524,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from django.contrib import admin
from oldcontrib.media.image.models import Image
class ImageAdmin(admin.ModelAdmin):
list_display = ('title',)
admin.site.register(Image, ImageAdmin)
| [
"issac.kelly@gmail.com"
] | issac.kelly@gmail.com |
e9ec1e470a754514330b03be6a7cb0561bc86464 | 5e83d62064ea4fd954820960306fb06cc8f0f391 | /products/serializers.py | 365966d6816dda4260eea788289ea5d68d1c05b9 | [] | no_license | bharatkumarrathod/cfe_ecommerce2_RESTapi | eff2fad0cbff7cb3def2c13de282b085aba7291d | a081cdbf10c1fbde58e128b9c9b287443c726071 | refs/heads/master | 2020-12-25T21:43:44.166109 | 2015-10-27T21:04:19 | 2015-10-27T21:04:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py | from rest_framework import serializers
from .models import Category, Product, Variation
class VariationSerializer(serializers.ModelSerializer):
class Meta:
model = Variation
fields = [
'id',
'title',
'price',
]
class ProductSerializer(serializers.Mode... | [
"carlofusiello@gmail.com"
] | carlofusiello@gmail.com |
f4c82d74b5f27744442849fdd0b7e0378486fa25 | 2210eb46294c460fc635f4a45a62744f159b7737 | /backend/uncle_park/spot/admin.py | 0cc46629cb3a7b2e237d938a7fe5e002ae300d70 | [] | no_license | Kashish-2001/uncle-park | 5dc294cd04e8c3eaac96f00f4b29d736dbe9f97b | b27e065d565a42e95c81ac45253a4ed8ff632135 | refs/heads/main | 2023-03-19T00:09:19.721001 | 2021-03-12T00:49:25 | 2021-03-12T00:49:25 | 346,879,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from django.contrib import admin
from .models import ParkingSpot
admin.site.register(ParkingSpot)
| [
"kashish.agrawal1907@gmail.com"
] | kashish.agrawal1907@gmail.com |
84c9a51305ac8e16c0952914654b4baabdc6ebec | b05a76d9b05b7dd09a0a0ddcaef041dfb7299247 | /stackl/__init__.py | a3ce7e90ae4d9e48303ba531c5b2cd995595f54b | [
"MIT"
] | permissive | ArtOfCode-/stackl | 5af7d3b8ddc0c4af402ed92bcc51e0dfbbca9193 | c66c025fa39c5fc5a6dbda7f0ea0628ee526b4b6 | refs/heads/master | 2020-04-03T00:48:50.545277 | 2018-10-28T13:19:06 | 2018-10-28T13:19:06 | 154,909,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,865 | py | import sys
import threading
from logging import StreamHandler
import logging
import os.path
import re
import pickle
import json
import requests
from bs4 import BeautifulSoup
from stackl.errors import LoginError, InvalidOperationError
from stackl.models import Room, Message
from stackl.events import Event
from stackl.ws... | [
"hello@artofcode.co.uk"
] | hello@artofcode.co.uk |
41e5021c0e1be2fbcbc2a62efcefce360bddb194 | da3a0f4a31b31f8c9d4141994f55437fc4dd93f0 | /todo/settings copy.py | 8b3a85bb6c7fffbb261cceb09b6910058cd7b9cb | [] | no_license | zackington/todo_python | b9a39e643a2b280639454dfb9e2542561f97c767 | f387ee4b52816d4e1a946ac1654ddf4e4da82f04 | refs/heads/main | 2023-02-23T05:48:12.302105 | 2021-01-29T15:28:56 | 2021-01-29T15:28:56 | 330,905,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,068 | py | """
Django settings for todo project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib im... | [
"zagatol96@gmail.com"
] | zagatol96@gmail.com |
894aef2056395bebd4c1c73efa7b7f804b4f5f01 | 284d20180008b09489a48d57180ac0037c09edfa | /drinks/mydrinks/views.py | fdacb0b5111bfa980705f0032d195b845192ed8d | [] | no_license | abki/django-drinks | ddbd97685ff84f9d2ad9b7a71275b16d5ca63295 | 827f4aa3365f2fbf507891eb43f6d9d78981ea6f | refs/heads/master | 2020-04-22T21:03:10.757767 | 2009-05-20T19:59:10 | 2009-05-20T19:59:10 | 205,957 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | from django import forms
from mydrinks.models import DrinkForm, CommentForm
class DrinkForm(forms.Form):
name = forms.CharField(max_length=254)
content = forms.TextField()
rating = forms.EmailField()
cc_myself = forms.BooleanField(required=False)
def addDrink(request):
if request.method == 'POST':... | [
"boubekki@enseirb.fr"
] | boubekki@enseirb.fr |
de42c53734da3da9116fffe9e3e19452e35b07cb | 09ea0b61ea2df531468e32877ad0e4883a6b812b | /csv_converter.py | b38af52dbc89e3b48d3dd2a263125e585c5dac24 | [] | no_license | matthewj301/lastpass_csv_to_dashlane_converter | d342d9144e11b84fdafc16b556f0654ed86053eb | 1919ffca754b2850fe6c1f78a8bbfa237326f8e0 | refs/heads/master | 2023-06-19T18:02:40.824618 | 2021-07-22T01:21:52 | 2021-07-22T01:21:52 | 388,290,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | import csv
from pathlib import Path
data_dir = Path(__file__).resolve().parent.joinpath('data')
password_csv = data_dir.joinpath('lastpass.csv')
fixed_csv = data_dir.joinpath('dashlane.csv')
if not fixed_csv.exists():
fixed_csv.touch()
site_name_to_proper_url_name = {'steam': 'store.steampowered'}
def fix_bad_... | [
"matthewj301@gmail.com"
] | matthewj301@gmail.com |
b8075d05508ad9f1869fce993a34b58e3a860165 | cde9143ed2535c147a6aafc1ef9c147d48668e9c | /Payload/ADLC/ShapeCharacterization/PythonScripts/Matching-2.py | 97b4903c24e53179042f7f6b57d2b74675063ecd | [] | no_license | Gowabby/Payload | 2eafdc0d1679923592aeed92a4288ecc68f0892b | 4e20a294afd07d99c1475f1590b25bd2ead1f376 | refs/heads/master | 2021-01-25T11:15:06.086970 | 2017-06-16T07:32:14 | 2017-06-16T07:32:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,455 | py | ###################################################
##Name: Andrew Olguin
##
##Date: 1-1-15
##
##Functionality: This code is meant to match objects in an image to a objects in training set.
##it uses FLANN and surf features to match two images together. This code is still
##under development.
##See this link for docume... | [
"andrew.olguin556@gmail.com"
] | andrew.olguin556@gmail.com |
f22c019ebbea833c2a0e0693688c327d115e88f5 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/kuv_02570-0126/sdB_KUV_02570-0126_coadd.py | c4cb9b302dad383bd2a7935c0b65bc65388dc997 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[44.897583,-1.235028], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_KUV_02570-0126/sdB_KUV_02570-0126_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sd... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
92cf58834da067af6b6f57cf1bb9a5d5f0b835c7 | a85f4a09b01facb31f2c83005eecf1a7f1a1966b | /app/views.py | 70a5ae46e4ca1d84902aaddee6c5e43dd2eda41b | [] | no_license | aogz/flask-mysql-docker | 2226835ec5d5161ec4164ccede1acf9ce6745318 | 00740ea19277e3ee5e505ce2fde7f1a59742ff29 | refs/heads/master | 2021-07-13T06:22:00.537011 | 2017-10-08T09:12:04 | 2017-10-08T09:12:04 | 106,135,369 | 0 | 0 | null | 2017-10-08T09:24:27 | 2017-10-07T22:43:18 | HTML | UTF-8 | Python | false | false | 389 | py | # -*- coding: utf-8 -*-
from app import app
from flask import render_template
from flask_login import current_user
@app.route('/')
def main():
if current_user.is_authenticated:
return render_template('main/profile.html')
else:
return render_template('main/landing.html')
@app.route('/settings... | [
"aogurzow@gmail.com"
] | aogurzow@gmail.com |
486bd69cc197bef259f8a8fa395e948d4c8b003d | 88cc3cadf2718133eeb8b9ebcec8c6827ba21cb3 | /Lesson7/oop/example3_namemangling.py | ae0a14e892ca545d4f7c01014ededd00f52878e1 | [] | no_license | misamoylov/otus-qa | 5324ceb26baec55697f02dcd54d4fd529c098057 | 2ad73495dcedb42e8e4eb7893d0bbd088eed3d2b | refs/heads/master | 2020-05-02T16:06:51.753814 | 2019-07-29T17:03:40 | 2019-07-29T17:03:40 | 178,060,763 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | class Example:
class_variable = "class_variable" # class variable
def __init__(self, variable):
self.variable = variable # instance variable, public
self._variable = " ".join(["private", variable]) # instance variable, private
self.__variable = " ".join(["Name mangling", variable])
... | [
"msamoylov@mirantis.com"
] | msamoylov@mirantis.com |
9e7abd882854f4b323766f990e57fa62d2206544 | dde4c00075eca23b94b8a5dd23292d82e170b34f | /PYTHON/python学习/bs4实战2.py | 3cb91f837680ba0a96b2d20b2719c31268d1622e | [] | no_license | ggw12138/hnu-osdesign-ghw | 5f405331413f21a958bacb1067c0452f268b34fe | 8e74c69ba39fa0af799b29d46e58e8ea966b21bb | refs/heads/master | 2023-02-04T23:31:54.575152 | 2020-12-23T05:12:59 | 2020-12-23T05:12:59 | 323,810,403 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | #-*- encoding:UTF-8 -*-
#誉天暑期训练营
import requests
from bs4 import BeautifulSoup
def getHTMLText(url):
r=requests.get(url,timeout=15)
r.raise_for_status()
r.encoding='utf-8'
return r.text
def getSoup(url):
txt=getHTMLText(url)
soup=BeautifulSoup(txt,"html.parser")
return soup
def getContent... | [
"893398418@qq.com"
] | 893398418@qq.com |
4c75dc681050d798e04dbde8ddf1199957ddb3fa | 7b613836abdfda73e29ca2d7eec9295c0c1c3005 | /python/misc/modules/jacob/import_module.py | e0b67daea8e5b2313713eea4988b4a1d6e4ae517 | [] | no_license | bennywinefeld/scripts | 31790202215277d33ad8204655f22227645a4e43 | 753e480849189072eabd705489606a21909cbebb | refs/heads/master | 2020-12-24T11:33:29.467917 | 2017-10-03T23:18:24 | 2017-10-03T23:18:24 | 73,028,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | import my_module
my_module.testFunction() | [
"benny.winefeld@gmail.com"
] | benny.winefeld@gmail.com |
97aa99c9a48d8eabd5f5ec4369635876825b0609 | 2ce2eb3998445ee6a1383c6828abf1e9afbb5616 | /impyute/imputation/ts/arima.py | b7b896d17b5a39c948981b4dc1e7ddd9d5c7e5dc | [
"MIT"
] | permissive | benchpress100/impyute | 325600ab8858d325dbb665c6dd85b4a44757ce88 | 5214761c627be83dda95b36cf9403fc3ea3d223b | refs/heads/master | 2020-03-27T06:45:46.882343 | 2018-07-06T04:28:54 | 2018-07-06T04:28:54 | 146,133,959 | 0 | 0 | MIT | 2018-08-25T22:30:00 | 2018-08-25T22:30:00 | null | UTF-8 | Python | false | false | 1,129 | py | """ impyute.imputation.ts.arima """
from impyute.util import find_null
from impyute.util import checks
# pylint: disable=invalid-name
@checks
def arima(data, p, d, q, axis=0):
"""Autoregressive Integrated Moving Average Imputation
Stationary model
PARAMETERS
----------
data: numpy.ndarray
... | [
"eltonlaw296@gmail.com"
] | eltonlaw296@gmail.com |
2c77fbb9d5a9a2c09f218a1ad7dca7782fbbee87 | 27cdea0b9826229c75f49f717d07d0dddc023893 | /Assignment 1 - Simple Python Code/first_module.py | d6792e90361e2ff7030befb5e6784c51c2618949 | [
"MIT"
] | permissive | masher1/SocialMediaMining | 6132a70a9772609cd1896c7fbcc0a11afee55188 | 615205159f363bffd8d6cd8fd32afd65cdfe4332 | refs/heads/master | 2020-12-20T04:44:01.065426 | 2020-03-01T07:36:34 | 2020-03-01T07:36:34 | 235,963,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,017 | py | """
Assignment 1: Simple Python Program
Author: Malkiel Asher
Requirements:
* Create a Python module with a __main__ , and at least 100 lines of code. You should use: if __name__ == "__main__":
* Define at least 1 class, and at least 1 function for each class you have defined. Your __main__ should instantiate objec... | [
"masher@syr.edu"
] | masher@syr.edu |
9a18fcbd5b6a8af3346248cf9bdb59ea679eb5fd | 3af8bd42cbf1f3a6f275cc7f5299a643511b56ff | /sentiment_analysis/bert/scripts/rerun.py | 953f1c0e8d9f757e14302718ffa26354013ce13e | [] | no_license | shravanc/msc_project | d54fbf6fda764038ca52d113ec5b582212f9a5bd | 9d815e2130a9c4c2ad9286a8f3471c2bf860ca93 | refs/heads/master | 2022-12-13T21:59:51.269615 | 2020-09-08T10:50:55 | 2020-09-08T10:50:55 | 276,747,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,347 | py | import os
import math
import datetime
from tqdm import tqdm
import pandas as pd
import numpy as np
import tensorflow as tf
from tensorflow import keras
import bert
from bert import BertModelLayer
from bert.loader import StockBertConfig, map_stock_config_to_params, load_stock_weights
from bert.tokenization.bert_token... | [
"shravan007.c@gmail.com"
] | shravan007.c@gmail.com |
7d6dbf62200acf666c154e067071df74342c1d85 | 745e2421cd2d110c37ec91315567678f50a7647f | /Decorators_Pattern.py | 2a6272a0972432cd8e30af73a5fe8db581cb92cc | [] | no_license | TetianaSob/Python-Projects | 3a5760b21029db2de1123d4aa23a614c3ba41c33 | c37528db7e8d65e903357e2cdb7fa64e46537f15 | refs/heads/main | 2023-03-19T15:30:58.800231 | 2021-03-02T16:51:56 | 2021-03-02T16:51:56 | 310,383,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | # Decorators_Pattern.py
from functools import wraps
'''
def my_decorator(fn):
@wraps(fn)
def wrapper(*args, **kwargs):
#do some stuff with fn(*args, **kwargs)
pass
return wrapper
'''
def log_function_data(fn):
def wrapper(*args, **kwargs):
print(f"you are about to c... | [
"noreply@github.com"
] | TetianaSob.noreply@github.com |
2bd3e8b73a200a47e022e2141e88a0e091cbf31a | e7069d85fd4a6fac4958f19b4d14503ffa42b4bb | /connecting_silos_kththesis_TCOMK_CINTE/mysite/polls/src/Canvas/unit_test/config.py | 6266a1209287643b1c764696f43ceb0a29bda5e3 | [] | no_license | ShivaBP/Bechelor-degree-project | cd062ff10e207e380a2c59bc0a50f073c2e866bd | 9f055d69ec9deabb6bd8ab3768c9d56787eed94d | refs/heads/master | 2022-07-21T01:18:41.893027 | 2018-11-16T14:38:13 | 2018-11-16T14:38:13 | 137,949,087 | 0 | 0 | null | 2022-07-06T19:49:14 | 2018-06-19T21:47:51 | HTML | UTF-8 | Python | false | false | 454 | py | # Configuration file for Automation Unit Testing Module in Canvas Module
# Please setup this file before start of the main application
#expected answer
#Configure before start of the program
kth_canvas="https://kth.instructure.com/"
#course_id 2139(sandbox)
thesis_course_id = 2139 #sandbox
#assignment_id 24565... | [
"shivabp@icloud.com"
] | shivabp@icloud.com |
dcaa3b2565bd2460e0ebd11c7443bf42bf8255a9 | 1e8b7dcbbc4ed9afcd24127c44c8f6975ce30e45 | /server/characters/migrations/0028_race_fieldvalues.py | 243b6894f3268856ae969ccf40cd9fcdfdfaee3d | [
"MIT"
] | permissive | Etskh/pathfinder-app | 8de61c6592f952141da417bcbb54c76937930b92 | c33dc0d2645d11ff5be3d29fe3167bdc12c61a79 | refs/heads/master | 2021-01-20T02:42:04.066255 | 2017-09-26T16:33:37 | 2017-09-26T16:33:37 | 101,333,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-25 17:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('characters', '0027_auto_20170924_1835'),
]
operati... | [
"etskh@hotmail.com"
] | etskh@hotmail.com |
e9f8308420ff20436e91c925c1895f85cfe0fee1 | 149010198ee955b9aa2d9cae535d20456f566239 | /static/urls.py | 111e334aa682c1e2c7a7d22120810f5352646383 | [] | no_license | Eslam-Elsawy/teigeneratortool | 01693cef01be1106a577a3877bed107bd5a3af4f | ed4e5161bbcbf63ed89f5ea10bb892c03f9b1c88 | refs/heads/master | 2020-03-19T01:30:09.547367 | 2018-06-10T03:26:11 | 2018-06-10T03:26:11 | 135,550,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('generatemarkup/', views.generatemarkup, name='generatemarkup'),
] | [
"eslam@uw.edu"
] | eslam@uw.edu |
65333f58eba150374b4791c10dff57bae3783292 | cf212b536a144ab727d7f76011ec723a1883e119 | /blog/urls.py | b5119a0f0be848e16719a49ad5e380989797c6b0 | [] | no_license | 2011180025/my-first-blog | 372d1e6507760aead2c983b808bf69d55a2bc1e1 | 788ff320df83c032343248d802818f0ff2bde137 | refs/heads/master | 2021-01-13T00:37:02.733309 | 2015-12-23T14:28:53 | 2015-12-23T14:28:53 | 48,492,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from django.conf.urls import patterns, url
from . import views
urlpatterns = [
url(r'^$', 'blog.views.post_list', name='post_list'),
url(r'^Net_present_value/$', 'blog.views.Net_present_value', name='Net_present_value'),
url(r'^Annuity/$', 'blog.views.Annuity', name='Annuity'),
url(r'^Bond/$', 'blog.views.Bond', n... | [
"cro@koreatech.ac.kr"
] | cro@koreatech.ac.kr |
d2a33da2412d0aa4015ea6b87bad6c8262b51874 | d1d24981c7c89f76d8db931db64ce7c0f9bfd7e5 | /viewProfile/apps.py | 8e2b9e23d54365873586a79a05bd951b268c23b7 | [] | no_license | Rafia26/Team_STAR_CSE327 | 13e3521b9668f34f12bf63883e0a13206d5d64c6 | f93f68e5c8ed94c762c74e644ed1018e3488922f | refs/heads/main | 2023-04-20T08:05:57.949141 | 2021-05-10T11:44:27 | 2021-05-10T11:44:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from django.apps import AppConfig
class ViewprofileConfig(AppConfig):
"""
This ViewprofileConfig class used to register
the app ViewprofileConfig in our project.
Attributes: name.
"""
name = 'viewProfile'
| [
"shahriar.shovon@northsouth.edu"
] | shahriar.shovon@northsouth.edu |
0407d709e31e375d0f7acf25e256100085d8200d | af866adac3d72520fee26f23d603c7f76c8aca51 | /Section3- Functions/returnFunction.py | 7006180439c77f70fb1070a6564f6d3680790200 | [] | no_license | SpencerTruett/AutomateTheBoringStuff | 3fda3efa7959166ceb61161968e178663a139e84 | 94233c6509087a7541dc6fad7751fb5d2bf01953 | refs/heads/master | 2023-03-27T20:11:55.139252 | 2021-03-22T23:41:02 | 2021-03-22T23:41:02 | 347,491,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | def plusOne(number):
return number + 1
newNumber = plusOne(5)
print(newNumber)
| [
"srtruett1993@gmail.com"
] | srtruett1993@gmail.com |
0cbf0ce46b4fe9c95eb58ea252a95298641b4671 | 1833d12882a9725d7e75494951ce64bb50dccc1f | /algo/interesting_problems/python/skyline_problem.py | 53cbabacdbf35990b96d207dd7729ccb36fd07c8 | [] | no_license | vivekkumark/BigO | c1c4c194a3568e66c6c494d4dfc6c6eb36af3f94 | 0d7ae294588aec1da1590bbb1abae2e8a96d7e3a | refs/heads/master | 2021-09-24T04:36:00.016018 | 2018-10-03T04:10:48 | 2018-10-03T04:10:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | from __future__ import print_function
def append_skyline(result, sk):
# redundancy is handled by not appending a strip if the
# previous strip in result has same height
if not len(result):
result.append(sk)
elif result[-1][1] != sk[1]:
result.append(sk)
def skyline_merge(s1, s2):
... | [
"vivekkumar1987@gmail.com"
] | vivekkumar1987@gmail.com |
19579a2894ac64b3ccba0354f93383ac9fa373e8 | ff0972ad07a72893f1e0aa02844dcc87dec5fa61 | /sisyphus/migrations/0009_auto_20180613_1054.py | ea2cc2b4007f18d9b8b31e1b746c7cac5190a87a | [
"MIT"
] | permissive | JessicaNgo/colossus | 6febcc616e1c8a12df0b0143cc74b368fa18d162 | c7e4ec9315b1181f200a0a8d0a2326b91136f137 | refs/heads/master | 2020-04-27T19:31:28.885998 | 2019-03-08T18:54:08 | 2019-03-08T18:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2018-06-13 17:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sisyphus', '0008_auto_20180117_1533'),
]
operations = [
migrations.AlterFiel... | [
"amcphers@bccrc.ca"
] | amcphers@bccrc.ca |
927298017bc99a56cd0be367e27fc3953b24df6c | 45c636632c7fdd2648f85d4e8a914a8ead4b6512 | /core/blocks.py | 616a6e3e6ab5e3ee4ac57cfc30ec1ff23a95b260 | [] | no_license | Erika1012/DeepFry | 716cba3f56b71ac0df42ed4406e614557a32e2d0 | 52d1be1553c8a4d7b68fd51ba62037fa31ce17c0 | refs/heads/main | 2023-06-03T06:40:34.884707 | 2021-06-18T09:52:54 | 2021-06-18T09:52:54 | 373,422,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,408 | py | from collections import Iterable
import itertools
import tensorflow as tf
from tensorflow.python.keras import layers
class DNN(tf.keras.Model):
"""
Deep Neural Network
"""
def __init__(self,
units,
use_bias=True,
use_bn=False,
d... | [
"noreply@github.com"
] | Erika1012.noreply@github.com |
f32be0db93bb51a51adb1c0ca44d6a393386a88b | 7c113fd5b6d96d557b43cb4b2b1b12c006a2ab09 | /mysite/urls.py | 77f0d7ada20485a08c3bf2558696473f8acfeb7c | [] | no_license | upinderawat/mysite | 2f3bec8059133b059e08908b40f69c9c9fa47371 | cabafc7c9c9eedaf63e11f708b6e896d09bae4a9 | refs/heads/master | 2020-04-14T13:16:43.803304 | 2019-01-13T13:12:49 | 2019-01-13T13:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"upinderawat@gmail.com"
] | upinderawat@gmail.com |
6974dd0629b949522de35a36af6999fa371e0f1c | 4f543fe474c0bab42c14a5e7a1b7531f8d46c2f9 | /pinclone/settings.py | 5865cb282ed48d64b8785d8d88b1d2ff9be60544 | [] | no_license | H-Yazdi/Pin-clone | 2d04fda82d3380a8ea7e5f9eee9a2eeab1d7d345 | f92a858d366f6c0baafef10c0c16c33152ab99c6 | refs/heads/master | 2022-12-17T22:36:03.193066 | 2020-09-21T06:50:13 | 2020-09-21T06:50:13 | 294,551,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,421 | py | """
Django settings for Pinterest project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"hamideh.shaterzadeh@gmail.com"
] | hamideh.shaterzadeh@gmail.com |
1ce4ba3eda2733fe1dfb46779210ee607b1a8714 | b9db91bdb30ba99aad8bbea251e5e1e8c2a7fa45 | /opt/src/experiment/clear.py | ca129566c4e78356bff95128a9f55ee2db030f13 | [] | no_license | jacoloves/python_tool | 682c3a91b535f15f1f8c9299e9b4c9ccbd5eea79 | 93ba5de17a727d6ccf9c67e4bca37ea502d06e5d | refs/heads/master | 2021-03-01T04:25:49.581952 | 2021-01-27T13:52:50 | 2021-01-27T13:52:50 | 245,753,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | # window clear
import os
import time
# os.system('clear')
# print()
# print()
# print(' _ _ _ _ _ _ _ _ ')
# print(' | |')
# print(' - - - - - -')
# print(' | | ')
# print(' | | ')
# print(' | | ')
# print(... | [
"5511068t@gmail.com"
] | 5511068t@gmail.com |
cb0d787f69d7856b94ffd65143e4b0933445d600 | f6ba01660d724ce3feb92a89feca952664a42dca | /패키지/1학기/모듈/sysmodule.py | b7ad3900c46fe31ce27442d2f676fa4d824f14e8 | [] | no_license | alswl4304/Programming-Python- | 0724e0681632cf8dc8dd18358458574ea58a7712 | f6152654efe7302b81913735598d0b60776ac6d1 | refs/heads/master | 2020-07-07T06:58:14.514266 | 2019-11-22T05:54:48 | 2019-11-22T05:54:48 | 203,284,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | import sys
print("실행 파일명: ", sys.argv[0])
for i in range(1,len(sys.argv)):
print("옵션",i,":",sys.argv[i])
sys.exit()
for i in range(1,100):
print("여기는 실행 ㄴㄴ") | [
"alswl4304@naver.com"
] | alswl4304@naver.com |
a25838568da6d2eed97bfd499c97bfa94f8743c5 | 6aec6d752ca457ba68e8cd0822a78ccfc034be6f | /tests/test_color_triplet.py | 4a592c867ac1c97dfbb5f5c040a1086bbb0cc03e | [
"MIT"
] | permissive | scalabli/quo | 1d1f399c86e6e9929238864ac3184cb2bde79fe7 | 6dbeb5b471517392d5ebf59e208d0f355dddff5f | refs/heads/master | 2023-09-01T08:55:49.037768 | 2023-08-02T16:10:42 | 2023-08-02T16:10:42 | 327,378,689 | 23 | 4 | MIT | 2023-09-08T17:11:32 | 2021-01-06T17:09:32 | Python | UTF-8 | Python | false | false | 469 | py | from rich.color_triplet import ColorTriplet
def test_hex():
assert ColorTriplet(255, 255, 255).hex == "#ffffff"
assert ColorTriplet(0, 255, 0).hex == "#00ff00"
def test_rgb():
assert ColorTriplet(255, 255, 255).rgb == "rgb(255,255,255)"
assert ColorTriplet(0, 255, 0).rgb == "rgb(0,255,0)"
def test... | [
"secretum.inc@pm.me"
] | secretum.inc@pm.me |
7b7380fb50dcff34baa9f0fcacdaa239ce98e0a5 | 43a78f0bcd94f617d2c55e5019f3f3475580165d | /Udemy/Section 24/logging_format.py | 10c2b7c10e8bd2242f367e0ca3eefbd1a2f9c101 | [] | no_license | ctramm/Python_Training | 2c35bd36b7cd1ea6598f915fafcf37ca048cf8ed | a0864a82bd6fb002c5f1a9aa7fb5d0b18341e6b0 | refs/heads/master | 2022-12-04T14:18:30.477562 | 2022-11-12T09:03:25 | 2022-11-12T09:03:25 | 171,736,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | """
Section 24: Lecture 143
Changing the format of logs
https://docs.python.org/3/library/logging.html#logrecord-attributes
https://docs.python.org/3/library/time.html#time.strftime
"""
import logging
logging.basicConfig(format='%(asctime)s :: %(levelname)s: %(message)s',
datefmt='%m/%d/%Y %I:%M:%... | [
"ctramm@wiley.com"
] | ctramm@wiley.com |
16fbff869fc8d49814edd99c35aa7c74588db82b | 84b85961ffec7ed47c20133758d5f27135b21ce9 | /src/base/baseFile.py | 3f11495a6dda1b22cdb80ceb65d6bf80b12ee986 | [] | no_license | hi-cbh/pytest | 67c70f0374a4d14711db05e337b6388a98c412c1 | 4da8fd4eae4b64e3b235e961238954afae84592e | refs/heads/master | 2021-01-20T22:23:10.253647 | 2017-09-10T12:48:23 | 2017-09-10T12:48:23 | 100,832,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,681 | py | # urs/bin/python
# encoding:utf-8
'''文件操作'''
# urs/bin/python
# encoding:utf-8
import os
import time
import operator
import subprocess
class BaseFile(object):
def adbFindFile(self, path, file):
'''查找文件时是否存在'''
try:
value = os.popen("adb shell ls "+path)
# ... | [
"hi_cbh@qq.com"
] | hi_cbh@qq.com |
57c9c6238d2f7787d7f5886e1072a184d1795a6b | f22ea8455b90cbe4cd7597a3c49c3db6d9e28df0 | /experiments/experiment_driver_policy.py | ef8193a08b7de4761e7d58aaefa6f1a38ea4715b | [] | no_license | NVlabs/sim-parameter-estimation | 7bd1a255987a79f68e43617b9a59914e7c3acb54 | 932d18545e71a649c59fa00c2fe4cfc0da080dee | refs/heads/master | 2023-01-14T07:22:40.768007 | 2020-11-20T05:16:23 | 2020-11-20T05:16:23 | 313,475,770 | 31 | 2 | null | 2020-11-20T01:20:47 | 2020-11-17T01:41:36 | Python | UTF-8 | Python | false | false | 2,670 | py | # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and rel... | [
"noreply@github.com"
] | NVlabs.noreply@github.com |
688e3d98ff2cd21d62dac591d75392af61b7d98e | 71bd065fb12ab2d07d4371f1903b45411b91735d | /openstack/neutron_plugin/neutron_plugin_contrail/plugins/opencontrail/loadbalancer/plugin.py | 21b38b7b77a6adab2038f9b06b1be479ceb183ab | [
"Apache-2.0"
] | permissive | syedaliawaissabir/BGPaaS | dffc3d07eddec91be3d70d8d226b2192511b61ff | 71931e462944e39d31ca16167f273ab9fa84145a | refs/heads/master | 2020-06-30T23:38:29.650304 | 2017-07-31T11:13:46 | 2017-07-31T11:13:46 | 74,343,705 | 0 | 1 | null | 2016-12-02T14:15:51 | 2016-11-21T08:46:43 | C++ | UTF-8 | Python | false | false | 1,720 | py | #
# Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
#
from loadbalancer_db import LoadBalancerPluginDb
try:
from neutron.extensions import loadbalancer
except ImportError:
from neutron_lbaas.extensions import loadbalancer
from neutron.db import servicetype_db as sdb
from neutron.plugins.common i... | [
"awaisalisabir@yahoo.com"
] | awaisalisabir@yahoo.com |
81eef8d835d5b1b148857bd544823ae8028dcb3e | 713fc732a037447897092722647e28cb7a9711a8 | /app/api_1_0/comments.py | 6ca08f3510891d5165443f4bd1257386b9c2f393 | [] | no_license | jkachhadia/StatsBoy | 9612eec07b44cf34f76c63eddbb085daa7869640 | ad9bb1f921dcb4c74b1ba842b015445c1e0abe33 | refs/heads/master | 2021-01-18T00:46:20.848151 | 2016-07-26T22:09:10 | 2016-07-26T22:09:10 | 64,026,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | from flask import jsonify, request, g, url_for, current_app
from .. import db
from ..models import Post, Permission, Comment
from . import api
from .decorators import permission_required
@api.route('/comments/')
def get_comments():
page = request.args.get('page', 1, type=int)
pagination = Comment.query.order_... | [
"jaykachhadia@hotmail.com"
] | jaykachhadia@hotmail.com |
5e83a0394b6546a5dfa08d44e4fc80cc7383122c | 24122f793b84ef1cd3640128b46c7561ef1aece2 | /wordcount/settings.py | b8c5e0c7f22fe973234b8b7736971ad2fef9ddd0 | [] | no_license | NikhilRaheja/wordcount-project | 3a9ae6b07c9a51c3b570eb0e9505961cc280b6c3 | 4d5ad69b5750f9badf5c4b4cc7ecbdec50d0fbdb | refs/heads/master | 2022-11-24T05:32:25.086113 | 2020-07-23T07:47:52 | 2020-07-23T07:47:52 | 282,161,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,108 | py | """
Django settings for wordcount project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
... | [
"nikhilraheja078@gmail.com"
] | nikhilraheja078@gmail.com |
2e5bf97774d140a22de4789799a566a8307ad69a | 1b3178461535d5a1b318fa6d978bbbc427a0d1c4 | /app/utils/seeds.py | ce62b4346a53015cb2c18042c7650b53785bc3eb | [] | no_license | cyr1z/api-movie-library- | 29d3cf4a3b56b544fdddf69511651848c8cc1be6 | b3a021bff8112a3eb81f553b3eb0df751a488adb | refs/heads/main | 2023-06-19T13:09:09.320541 | 2021-07-23T11:46:12 | 2021-07-23T11:46:12 | 381,181,110 | 1 | 0 | null | 2021-07-23T11:46:13 | 2021-06-28T23:01:54 | Python | UTF-8 | Python | false | false | 3,332 | py | """
Seeds
"""
import json
from faker import Faker
# Country
from app.config import ADMIN_PASSWORD
from app.models.country import Country
from app.models.director import Director
from app.models.genre import Genre
from app.models.movie import Movie
from app.models.user import User
with open("/data/countries.json") ... | [
"cyr@zolotarev.pp.ua"
] | cyr@zolotarev.pp.ua |
920f8a8bcceed014d6d96e90ad0fc9bdb4314b1b | 42839d11a80c0fcd9ba715f16c1d77ee0698b148 | /exercises/1901060015/d11/mymodule/stats_word.py | dca455f68f989dda36c0093b0c99fee51014d161 | [] | no_license | veryspecialdog/selfteaching-python-camp | 39ed65722f36c5aa99ff8cce6c4e62ea3e10394d | 8a2191320971d4baeef1307bf82f783e6e12a144 | refs/heads/master | 2020-05-09T15:49:18.125465 | 2019-07-28T05:48:38 | 2019-07-28T05:48:38 | 181,246,172 | 1 | 0 | null | 2019-04-14T01:23:00 | 2019-04-14T01:22:59 | null | UTF-8 | Python | false | false | 595 | py |
def stats_text_en(text):
# 文章字符串前期处理,分割英文
t=text.split()
from collections import Counter
t1=Counter(t).most_common(100)
return t1
def stats_text_cn(text):
# 文章字符串前期处理
from collections import Counter
import jieba
#分割汉字
t=jieba.cut(text)
return Counter(t).m... | [
"13141360658@163.com"
] | 13141360658@163.com |
3e1b166e0b309fd0f0c91377f3988b9cbdea28ad | 28f2d87c89bb2effa8afee3783160566a8dede31 | /augmentation.py | fa38ea8c9f2601be25ae19b187b8b94d02bb4183 | [] | no_license | saicharith15/ImageNet-Classification- | 63f80c1c0389b34cdaf474bd4659e28ffb00fce7 | a3a6bf8dbab496b4d7fcfee43d43d8fc26e10df5 | refs/heads/master | 2022-12-03T19:30:49.787306 | 2020-08-23T18:39:56 | 2020-08-23T18:39:56 | 289,746,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | from keras.preprocessing.image import ImageDataGenerator
import cv2
import os
import glob
import numpy as np
import copy
import sys
cv_img = []
count = 0
for img in glob.glob(".\images/tiger\*.jpg"):
n= cv2.imread(img)
cv_img.append(n)
count += 1
if count > 149:
break
print('Length Images:', l... | [
"saicharith15@gmail.com"
] | saicharith15@gmail.com |
ce170db8e933493608120be8ce4bcb840464300d | 8a71736fd431777fa5b872e9ea7af9e9b52e0290 | /PythonCookbook/<3>数字日期和时间/14-找出当月的日期范围.py | 4d696d763c6a9f7d67814cfd7633baf5ee5906d6 | [] | no_license | Haut-Stone/study_Python | 54538e56b52c363d57e32846595f1a1427db93e3 | 2442bacb07ceb2f4236b4f62b122c5fc5f7441a8 | refs/heads/master | 2021-01-12T04:01:19.828774 | 2018-04-04T11:24:49 | 2018-04-04T11:24:49 | 77,465,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | '''
'''
from datetime import datetime, date, timedelta
import calendar
def get_month_range(start_date=None):
if start_date is None:
start_date = date.today().replace(day=1)
_, days_in_month = calendar.monthrange(start_date.year, start_date.month)
end_date = start_date + timedelta(days=days_in_mo... | [
"haut.1604.stone@gmail.com"
] | haut.1604.stone@gmail.com |
0d943fb3cc8ab009cbbc50ea7818ce733ae8e338 | 53e8f26e057a105fd5751768b0872f3ec345bdca | /rockets/HERMES_V1/CONFIGURATION_FILES/config.py | 08d5dda6ef62c324bc3ae4e8690580e67bcb5231 | [] | no_license | oygx210/computational-fluid-dynamics | 85991876a785149ff2001eec6e9469742a520c11 | 977c47761254642b8a319cd30d5a9fd48f7b5d99 | refs/heads/main | 2023-03-14T00:39:09.976634 | 2021-03-14T11:50:47 | 2021-03-14T11:50:47 | 355,256,619 | 1 | 0 | null | 2021-04-06T16:24:19 | 2021-04-06T16:24:18 | null | UTF-8 | Python | false | false | 4,785 | py | __author__ = "Omar Kahol"
__email__ = "omar.kahol@skywarder.eu"
__description__ = "simulation setup"
#imports
import pythonCode.meshClasses.cfmesh as cfmesh
import pythonCode.meshClasses.snappyhexmesh as snappy
from pythonCode.meshClasses.point import point
import pythonCode.meshClasses.dynamicMesh as dynamicMesh
#si... | [
"okahol@yahoo.it"
] | okahol@yahoo.it |
9bf0681ad2c55e309a28a300ad5d60fe99371b97 | bb1a3a5f0f0f55af8ae8f920552fe12b8af2a186 | /newpassword.py | 0fbcd342553746a696b5d7eb62ef1cf6fd5193c6 | [
"MIT"
] | permissive | ninjay997/ProtonMail-Account-Creator | 710e4067705333d2b118ba0970b670c55e93d844 | 626313afa7c0c043d657ed8082df047a817e52c3 | refs/heads/master | 2022-11-24T20:00:54.689605 | 2020-08-01T20:56:27 | 2020-08-01T20:56:27 | 284,333,348 | 0 | 0 | MIT | 2020-08-01T20:24:44 | 2020-08-01T20:24:44 | null | UTF-8 | Python | false | false | 4,887 | py | # 🚀 This Project is in it's early stages of Development.
# 📌 Working on new features and main menu.
# ⚠️ Any Questions or Suggestions please Mail to: hendriksdevmail@gmail.com
# 🖥 Version: 1.0.0
from selenium import webdriver
from colorama import Fore, Back, Style
import warnings
import time
import random
import st... | [
"hendrik@whalar.com"
] | hendrik@whalar.com |
d3669f3390ac8a021ee5857a904aa488ac366791 | b6a31ec10b39a3dbae183ba40c42078cadf88946 | /152. Maximum Product Subarray.py | 0b12660ab67d3ee4203445bfded5f15062a8f6c3 | [] | no_license | QIAOZHIBAO0104/My-Leetcode-Records | 69fabd11b279f08861cd644973e51bf664da0d90 | 882724c8d50b2f21193c81e5072c31385c5e6b8e | refs/heads/main | 2023-07-11T00:17:02.368441 | 2021-08-07T16:19:45 | 2021-08-07T16:19:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | '''
https://leetcode.com/problems/maximum-product-subarray/
Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product.
Example 1:
Input: [2,3,-2,4]
Output: 6
Explanation: [2,3] has the largest product 6.
Example 2:
Input: [-2,0,-1]
Output:... | [
"noreply@github.com"
] | QIAOZHIBAO0104.noreply@github.com |
f68ec7739e968d9957ffa7c842660c9d7bdb8957 | 78cae5eb320ca54d86ac28d4040453d113fd4094 | /04-Hybrid/lab04_fft2.py | f7bc8aeeae6e17ce44bbf3ee29000790830b8d89 | [] | no_license | oftrujillo10/IBIO4680 | 251e762647f13877e0c733e465b22568bf0ec6bf | 03a41235291375d31c9b6ab9bca332d903dcd286 | refs/heads/master | 2021-05-05T06:50:11.681936 | 2018-05-09T17:24:07 | 2018-05-09T17:24:07 | 118,827,963 | 0 | 0 | null | 2018-01-24T22:04:09 | 2018-01-24T22:04:09 | null | UTF-8 | Python | false | false | 1,130 | py | #!/usr/bin/env python
import cv2
import numpy as np
import os
from scipy import misc
image1 = os.getcwd() + '/Imgs/cat.jpg'
image2 = os.getcwd() + '/Imgs/baby.jpg'
s,z = 500, 500
Cat = cv2.imread(image1,0)
Cat = cv2.resize(Cat, (s,z))
fcat = np.fft.fft2(Cat)
fscat = np.fft.fftshift(fcat)
Baby = cv2.imread(image2,0... | [
"otrujillo10.otp@gmail.com"
] | otrujillo10.otp@gmail.com |
f60040fcbd5b9d9540ad556e2406ea4de658879e | 4940788bb9994cb0616daf32dfcdf622e2c9f14d | /server/index.py | 05653d7585a2bc4155e0152d9d734a7e1f41a9d7 | [
"Apache-2.0"
] | permissive | damonchen/process-manager-sample | 9e255062ef36bec276f9e8c3b5f64270c7d9ab29 | 75c6d0468eba6f29f488fd4423c9466801dd8cc4 | refs/heads/master | 2022-11-28T18:06:27.902974 | 2020-08-11T10:36:44 | 2020-08-11T10:36:44 | 285,949,348 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | #!/usr/bin/env python
#coding=utf-8
import sys
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'hello sample'
def get_host_ip():
if len(sys.argv) > 1:
host_ip = sys.argv[1]
host_ips = host_ip.split(':')
if len(host_ips) == 2:
host, port... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
76053ca28bf3d79768964086ca7f070674960196 | 221d1ad342677d2fac8aa3f8d5c60e059a6316c9 | /pm4py/algo/discovery/inductive/variants/im/util/base_case.py | 1d8a90e0221a4a231f5cfe3a821d0742ec49024c | [] | no_license | niklasadams/explainable_concept_drift_pm | 06ff651fbdebece4adf96f94bfb4d1026da14c48 | 6bf84d727ab0bae76716a04ad28c7de73250c89d | refs/heads/main | 2023-08-26T18:21:49.955080 | 2021-10-29T18:53:48 | 2021-10-29T18:53:48 | 314,514,571 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | import logging
def empty_log(log):
'''Returns bool if log is empty'''
if len(log) == 0:
logging.debug("empty_log")
return True
else:
return False
def single_activity(log, activity_key):
'''Returns bool if log consists of single activity only'''
if log:
if len(log[0... | [
"niklas.adams@pads.rwth-aachen.de"
] | niklas.adams@pads.rwth-aachen.de |
78fe6c044adbbb0784feb9ac8473c43335b6086d | c7db31b1067f570e5dbb1b031800c80d04518bfb | /src/robotic_arm/recognition/face_face_recognition_impl.py | c2f9a89a01f36fa9179498269087b16e65110d1f | [] | no_license | kxxt/robotic-arm | d4735d0e872cf9f107a6d1bb3fbe8dbd8cbc1814 | 65a08d96277be3706484c7b185e6d12ce7d0f332 | refs/heads/master | 2023-06-16T12:57:52.806526 | 2021-07-12T04:09:21 | 2021-07-12T04:09:21 | 356,072,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,158 | py | from robotic_arm.recognition.base import ImageRecognitionService
import logging
import numpy as np
from robotic_arm.input.camera import get_frame
from datetime import datetime
class FaceRecognitionService(ImageRecognitionService):
def __init__(self):
ImageRecognitionService.__init__(self, 'face-recognitio... | [
"18085551+kxxt@users.noreply.github.com"
] | 18085551+kxxt@users.noreply.github.com |
a1fd630926e347c4a083d6d0779339bdce46e1dc | ba3a61adf0130b087b8934b1c8e45f171b027949 | /Individual1.py | 5308e5973458bee753c21602bcdfb83e3975221f | [
"MIT"
] | permissive | ZyryanovAV/lb10 | 5f7512a21c030ac41a0e52d00b7d36ded38a3ea9 | 8fd9708a0b6ae72fe2e65ab1a22495b51f81803f | refs/heads/main | 2023-01-19T14:51:08.969125 | 2020-12-07T01:05:35 | 2020-12-07T01:05:35 | 319,163,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,474 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Использовать словарь, содержащий следующие ключи: название пункта назначения; номер
# поезда; время отправления. Написать программу, выполняющую следующие действия:
# ввод с клавиатуры данных в список, состоящий из словарей заданной структуры; записи должны
# быть упоря... | [
"ar200103zeranov@yandex.ru"
] | ar200103zeranov@yandex.ru |
d4520d5f769f14642e5d090a5bb8e3b12d5ed2af | a2ceca8af01ef1b33c10f015e0ea84677ea411b7 | /myfirstproject/settings.py | 1a2a7ba052171e693233dd51cac4e474c987a311 | [] | no_license | alzol1/myfirstproject-root | b0f6dd9d470ec97cc5cefeb2ea4d5be1dbe65162 | 9c7523e7eba498ccc6f413aafce855a12313ad81 | refs/heads/master | 2022-12-23T23:37:49.296560 | 2020-09-22T07:31:03 | 2020-09-22T07:31:03 | 297,360,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | """
Django settings for myfirstproject project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from ... | [
"55974898+alzol1@users.noreply.github.com"
] | 55974898+alzol1@users.noreply.github.com |
f68e302debebc088152347cebcb5c94201df4492 | 5795e731efade5a3754f5973015206d42567142b | /mylists/listapp/migrations/0009_auto__add_field_link_read.py | 9a7b362c29dc15b9cbeeaaa13d1c612f176d6345 | [] | no_license | joaopimentel/mylists | c9f0a7ccd24d1615bfc2178062f4289a1229ec90 | 31cdadf28176cfb2f6906c72fd85dcf4d3ebf27f | refs/heads/master | 2021-01-20T12:41:39.757084 | 2013-02-12T22:42:14 | 2013-02-12T22:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,862 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Link.read'
db.add_column('listapp_link', 'read',
self.gf('django.db.mo... | [
"mail@joaopimentel.net"
] | mail@joaopimentel.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.