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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8762d9569f6a4062b10098bbe7048b61fbeb966f | 7ac75b06cae17762da5ac1e0d1434ee6f8e9f992 | /py4e/chapter02/ex02_05.py | cf7d0ae0c19f54510b6419ce87afebe5f1e07b60 | [] | no_license | reeeborn/py4e | 6f7ab25afa015680e7e87cf3a6da7d3ea0fefac2 | 6df41c64024491072aa3d62c67192645d5210b20 | refs/heads/master | 2020-11-27T04:38:38.332462 | 2018-09-02T00:07:25 | 2018-09-02T00:07:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # Python for Everyone
# Chapter 2 Exercise 5
# Convert Celsius temp to Farenheit temp
tempC = input('Enter Temperature(Degrees Celsius) ')
tempF = (int(tempC) * 9 / 5) + 32
print("The temperature is", tempF, "degrees Farenheit")
| [
"djmartz77@gmail.com"
] | djmartz77@gmail.com |
4ece02798c873f833c7e4af2748359a5b373b3a5 | 975effcca2be35e52b4beab408340a9e7a43c62b | /food/firebase.py | 6fd6486b5f022bcfe17e5a5bbe8be640a20fe701 | [] | no_license | hello1988/food | 5f95e8b3d64d2a3e214fe3b173dd17deb7f7d537 | 3e593bb0ac8603420fc9da7e4f544c3a59969b2d | refs/heads/master | 2022-12-11T01:27:14.586275 | 2018-06-27T03:34:03 | 2018-06-27T03:34:03 | 122,143,797 | 0 | 0 | null | 2022-09-23T21:39:19 | 2018-02-20T01:45:04 | JavaScript | UTF-8 | Python | false | false | 1,366 | py | # encoding=utf8
import pyrebase
import datetime
import time
from django.conf import settings
class Firebase():
def datetime_timestamp(self):
dt = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
s = time.mktime(time.strptime(dt, '%Y-%m-%d %H:%M:%S'))
return int(s)
firebase = pyr... | [
"hello19881990@gmail.com"
] | hello19881990@gmail.com |
c53dee9264542f7b3e2324679aef5f054ab766b0 | 1ad8ed97b5d1886be33fd0d11319f2ef90d52e97 | /opencv/face_randmark.py | d2b0e3a146fa0fb28ee0022308a92a656ca60aa9 | [] | no_license | hmoni2/python | f8001cf62c3e23ade848b51f47d68feac1586015 | fff57494e6109ed04e7b2fd0f2ca6727b9ad8c66 | refs/heads/master | 2023-04-22T19:58:31.862121 | 2021-04-27T00:43:45 | 2021-04-27T00:43:45 | 359,983,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | py | import cv2
import time
# 초기 설정
cap = cv2.VideoCapture(0,cv2.CAP_DSHOW)
cap.set(3,480)
cap.set(4,320)
cascPath = "haarcascade_frontalface_default.xml" ##python 폴더에 있어야함
faceCascade = cv2.CascadeClassifier(cascPath)
#이미지 읽기
#image = cv2.imread(imagepath)
start_time = time.time()
count = 0 #웹캠 사진 찍어서 이미지 저장
while Tr... | [
"hmmmoni2@gmail.com"
] | hmmmoni2@gmail.com |
0a7ad3d21b62c28ce3cf592d4bc5bfe95cfbece9 | 1ed98f507301298216c95f55696909b8d61256b4 | /django_project/urls.py | 0f43009e3c3de892042246824f6c47c8772398ef | [] | no_license | KevinLi3/Blog-web-app | 1b030ed6d4ee5229597d74b19256327efc6eccce | 358039a85db709bee8a207dd0d5a128efbad6bbb | refs/heads/master | 2022-12-09T10:23:33.116779 | 2020-09-19T03:09:45 | 2020-09-19T03:09:45 | 294,915,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | """django_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Clas... | [
"li.kevin5599@gmail.com"
] | li.kevin5599@gmail.com |
b9600c0958de6b5ab678b485bd0979bbea995dbc | caea972fef4196f0e76e935a930986ce3538441c | /main.py | 45c37ccf4e2debb505503bec91c707c8c39c9694 | [] | no_license | CassieBoyd/student-exercises | ad9bf10b5e8616df0663ce2b0da5a3b0b3d3529e | 2e031c2453b401fa9c61589924af8984676758af | refs/heads/master | 2020-12-18T14:46:07.856561 | 2020-02-04T21:12:06 | 2020-02-04T21:12:06 | 235,424,987 | 0 | 0 | null | 2020-02-04T21:12:07 | 2020-01-21T19:31:37 | Python | UTF-8 | Python | false | false | 2,911 | py | from exercise import Exercise
from cohort import Cohort
from student import Student
from instructor import Instructor
"""
Once you have defined all of your custom types, go to main.py, import the classes you need, and implement the following logic.
Create 4, or more, exercises.
Create 3, or more, cohorts.
Create 4, ... | [
"cassandra.bacon@gmail.com"
] | cassandra.bacon@gmail.com |
374ad93c2c3d59b6be6b5e6933cd527e0fb38404 | 4541aa803edcc669d9c30da84713dab0372147b7 | /dj-wineshop/cart/migrations/0001_initial.py | c3fec171495942796e4a0348594e1046531e2738 | [] | no_license | gflexx/wineshop | c99c08d07324b51f80d9dc3cbe2de345d899ce0e | 79d9c3024b61a7b839b5caef5482a33ae31cea04 | refs/heads/master | 2023-05-02T01:51:58.961504 | 2021-05-15T10:12:46 | 2021-05-15T10:12:46 | 367,459,429 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | # Generated by Django 3.2 on 2021-05-14 18:54
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('wine', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Cart',... | [
"glennenri24@gmail.com"
] | glennenri24@gmail.com |
5af737dfb28d40b677608a602d3dc01dd931f3e4 | bf9ba25347fac407af678dda907adce43d8d1abd | /lesson2.py | 515002972d20f35efc23fda8358d9957fb06ac87 | [] | no_license | Safintim/fp | 7026626bbd1c257ade2534dbfc5447ea0497afb8 | 966508246af95f2dafd4d77d5c3026b883a5f318 | refs/heads/master | 2020-03-31T07:41:11.626933 | 2018-10-09T09:56:22 | 2018-10-09T09:56:22 | 152,030,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from pymonad import curry
# 2.3.1
@curry
def concatenation(x, y):
return x + y
hello_arg = concatenation('Hello, ')
print(hello_arg('Sergey'))
# 2.3.1
@curry
def greeting_func(greeting, mark1, mark2, name):
return greeting + mark1 + name + mark2
greeting = greeting_func('Hello', ', ', '!')
print(greeti... | [
"Sarami96"
] | Sarami96 |
62cfd539b1bebbe78a6871db701185082f9c9562 | 248f2b43ad73ebe3b6bb494ecc04d358ac5bb650 | /extension.py | d7b886dd5569c96038f305cbcd7ce2ebd784ef07 | [] | no_license | Wingzxy/Cloud-Computing | 36bfd288d748d845b6ce900e5b3cc3e7e7b0c0b8 | 9612edf2b84b02776b4a48e02230ffd0d5f0b0de | refs/heads/master | 2020-09-26T11:06:16.205563 | 2019-12-06T11:49:21 | 2019-12-06T11:49:21 | 226,242,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from init import multi_upload
import sys
def gpfs(time, confidence):
if time < 60:
print("Can't find a golden nonce")
else:
multi_upload(8, 8)
if __name__ == '__main__':
t = sys.argv[1]
T = int(t)
l = sys.argv[2]
L = int(l)
gpfs(T, L)
| [
"noreply@github.com"
] | Wingzxy.noreply@github.com |
c70eed05a92b16acabfa6d414235d7b4202bfb57 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/12145101.py | 384c0e17cafb0bcd9dad51a29f6d1105b5c8d67b | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/12145101.py generated: Wed, 25 Jan 2017 15:25:20
#
# Event Type: 12145101
#
# ASCII decay Descriptor: [B+ -> (J/psi(1S) -> mu+ mu-) (K*+ -> K0S pi+)]cc
#
from Configurables import Generation
Generation().EventType = 12145101
Generation().SampleGenerati... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
f2cc87fdd70ce779e399f29725f12173499bfb4e | a9e173b920222f8a5fa78af805cb0afaf0f1f26d | /accounts/views.py | 4925289103105fce4cd2029b217a014f16b1b6c7 | [] | no_license | mmomiof/Social | be34bfddc9502812800de5bb9480620abaff3b9f | 7838a78461e5cc7ce0d3418ba92da0a81c1bf377 | refs/heads/master | 2022-12-11T09:52:37.885545 | 2020-09-17T14:51:46 | 2020-09-17T14:51:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | from django.shortcuts import render, redirect
from django.contrib import messages, auth
from django.contrib.auth.models import User
def register(request):
if request.method == 'POST':
# Get form values
first_name = request.POST['first_name']
last_name = request.POST['last_name']
username = request.P... | [
"65576248+nayazer@users.noreply.github.com"
] | 65576248+nayazer@users.noreply.github.com |
7b62197a3a0395b563b62d68bc34066d8fa2643f | b972ff5e0d3160130c5fb626f8480e601a6e02d6 | /myDB.db.py | bc78ac542e0fb5add9980d5895121f81b756324b | [] | no_license | Libbybacon/Python_Projects | 5f67cece102b00aedbf6f2fe680ecfb5da67c2ce | b48993c22f4c93d23bf9269448bd9f2b4630d4cd | refs/heads/main | 2023-03-06T12:03:59.564868 | 2021-02-18T03:59:30 | 2021-02-18T03:59:30 | 335,131,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | # This script creates a new database and adds certain files from a given list into it.
import sqlite3
conn = sqlite3.connect('filesDB.db')
fileList = ('information.docx','Hello.txt','myImage.png', \
'myMovie.mpg','World.txt','data.pdf','myPhoto.jpg')
# Create a new table with two fields in filesDB datab... | [
"libbybacon@github.com"
] | libbybacon@github.com |
772a6ad3a6397d97884d96b0c2eff4b9458abb49 | 5c442b0d98de3227d00ca665636b95482b983d00 | /QBN_train.py | 302ee99dcf000c06693ffa2bdaae09010c62f9ab | [] | no_license | modanesh/visTorch | 01752160e66d7b6d70034b8a6f52fbcff01b2456 | 589e0d51346f3489ea85bbe3fc9225e4e2ead6d2 | refs/heads/master | 2020-05-17T04:59:54.970409 | 2019-11-14T01:22:25 | 2019-11-14T01:22:25 | 183,521,373 | 1 | 0 | null | 2019-04-25T23:02:37 | 2019-04-25T23:02:37 | null | UTF-8 | Python | false | false | 23,925 | py | import math
import os
import pickle
import random
import torch
import torch.nn as nn
from torch import optim
import numpy as np
from env_wrapper import atari_wrapper
from additional_functions import TernaryTanh
from torch.autograd import Variable
import tools as tl
import torch.nn.functional as F
from tools import plot... | [
"mohamad4danesh@gmail.com"
] | mohamad4danesh@gmail.com |
3669c5113cce4c275dc8a863ede897e74d63e585 | ef4aff3a1544e7f0ae615312cc8233f3682c03ed | /tensorflow/contrib/optimizer_v2/checkpointable_utils_test.py | 54bc23cdefab58bd84c378a2cf99327c48f0a3f1 | [
"Apache-2.0"
] | permissive | linusmartensson/tensorflow | ecbf85a9fefb6f0e8e4ed96b13a0498ca1aa33ee | eb5db1ae67c5654aa5c91567fdee22182452972a | refs/heads/master | 2020-03-10T14:38:59.897325 | 2018-04-13T17:07:38 | 2018-04-13T17:07:38 | 129,431,840 | 1 | 0 | Apache-2.0 | 2018-04-13T17:08:37 | 2018-04-13T17:08:36 | null | UTF-8 | Python | false | false | 32,824 | 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 |
2bd43d18862d348ebdf02e18618f7228b7bb0b65 | bcfc9977a83b61a8af4ff3ebda68e863e1ea4efa | /JDCode.py | 68c2786ed42b47fdf0453b83bc7c1ab963ac4ade | [] | no_license | dataman105/update_table_upload_download | 0ddff67a18477f9c31ded0140c8152648fc40bfc | 5098059b4b5a31c0a9330d6b1be0ed1e4e999c43 | refs/heads/master | 2020-04-18T05:24:55.000349 | 2019-01-25T09:02:29 | 2019-01-25T09:02:29 | 167,278,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,866 | py | import requests
import re
import time
import random
import json
import pymysql
import urllib.request
###全量地址数据
ip='111.72.107.240:36410'
headers={
'user-agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36',
'accept-encoding':'gzip, deflate, br'
}
ori... | [
"398769187@qq.com"
] | 398769187@qq.com |
2be7a8a9ee715680ffbf093d6346beccfab3be45 | e83eb457ac7a9a3da8fac20dd0313e2794e798b0 | /app/sudokugame.py | 8ce179e7e54ff3001da5c302442192b9dc02bf2a | [] | no_license | atfelix/sudoku | a2669286035d59f24b4520d9f39107f0973ed84a | c5c645b26704f187021852625504287f66800312 | refs/heads/master | 2021-01-18T13:12:16.193951 | 2017-02-24T20:32:36 | 2017-02-24T20:32:36 | 80,746,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,199 | py | # file: gui/sudokugame.py
# author: Adam Felix
# help: new coder tutorials
from constants import *
class SudokuError(Exception):
"""
An application specific error.
"""
pass
class SudokuBoard(object):
"""
Sudoku Board representation
"""
def __init__(self, board_file):
... | [
"adam.tyler.felix@gmail.com"
] | adam.tyler.felix@gmail.com |
fdf14e8fe1c0dc4e8126c7755b6c6ba328dcd0b3 | d2035f8c6f464f8449a5c0a88971e8e9fef7dd14 | /user_test.py | 5fcdc742600e0d6e83b513a0b60945576f3a8bbf | [] | no_license | Reilly-Oduory/password-locker | ff14b1f1ef4fd7344a5b5274f198aa333a8dc383 | e0b6e75718832051bd8c5257543f39d93a1aabbf | refs/heads/master | 2023-05-06T10:21:52.288057 | 2021-06-01T00:11:08 | 2021-06-01T00:11:08 | 371,707,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | import unittest
from user import User
class TestUser(unittest.TestCase):
def setUp(self):
self.new_user = User("reilly", "1234")
def tearDown(self):
User.user_list = []
def test_instance(self):
self.assertEqual(self.new_user.user, "reilly")
self.assertEqual(self.new_user.... | [
"reilly.oduory@student.moringaschool.com"
] | reilly.oduory@student.moringaschool.com |
dc1671dccf55d68ba1cfd63132b1dd6164c5e2b6 | d5689f76df60788196c6fbeffa04ec79c7b7a9e6 | /main/admin.py | 7571c7ee4fdf497c1d4e4795cb3b9273f87b9463 | [] | no_license | deepanshugarg2812/Pooling-app | b78d151cf009f357952b5b407b32993ac2277660 | 0b7c3c29ff24b1b922506b95adee1ffc5fe7d4b1 | refs/heads/master | 2021-01-06T09:19:45.377535 | 2020-02-18T05:09:55 | 2020-02-18T05:09:55 | 241,277,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from django.contrib import admin
from main import models
admin.site.register([
models.Question,
models.Choice,
models.Answer
]) | [
"deepanshugarg2812@gmail.com"
] | deepanshugarg2812@gmail.com |
dafa64c24bb4f0e4560a9d47f56637395ffbd06c | 1ad9426c5851eb4474296273cc72a3c9d8857aec | /chap5.py | c4081724aa833f075da2c29515bc970a3fb029a4 | [] | no_license | manellbh/nltk-cheatsheet | 49c994472372d8d01f43c9bcad51d1bc28a078f5 | 7cb99273d83c211d846ed9e57bc0e07522ab5779 | refs/heads/master | 2022-01-05T22:54:20.114738 | 2013-09-16T01:18:29 | 2013-09-16T01:18:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,457 | py | from __future__ import division
import nltk,re, pprint
from nltk.corpus import brown
import operator
""" P.14: Use sorted and set to get a sorted list of tags used in the Brown Corpus """
def sort_tags():
brown_news_tagged = brown.tagged_words(simplify_tags=True)
tags = []
for (word, tag) in brown_news_tagged:
if... | [
"khoatran@berkeley.edu"
] | khoatran@berkeley.edu |
b9fe656bbcb5367df4eccfdcab5d0f629d229d25 | 30b1a1d384a74c3283df34bf7c9de5f2f3173e5f | /budget/filters.py | ab57893e664dd6a0a7a2120b40674597254eb682 | [
"MIT"
] | permissive | adrianyim/Budget-Balance-Senior-Project | 0eba4b03633a685b1823f80cf76fd8b2c1f3843a | 75bd3e7399c96e424d2d00637364e83d3820b5ca | refs/heads/master | 2022-12-31T11:36:26.588472 | 2020-10-23T22:10:02 | 2020-10-23T22:10:02 | 229,025,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | import django_filters
from .models import New_item
class ItemFilters(django_filters.FilterSet):
item_type_choices = [
('Housing', 'Housing'),
('Transportation', 'Transportation'),
('Utilities', 'Utilities'),
('Food', 'Food'),
('Entertainment', 'Entertainment'),
('Edu... | [
"adriany93@gmail.com"
] | adriany93@gmail.com |
47c6b68496885ab34704d2382192d5877d046df7 | 251f5c092d4b7760cec8c2b6324e5290b917721f | /locations/spiders/auchan.py | 59d0482876134b5e1ddcdafcbabe9b24efad50b8 | [
"MIT",
"CC0-1.0"
] | permissive | thomas536/alltheplaces | 663a2441054ba62df6d6e070c19b1ba91f2f4f1f | ac4d4783572d55c0799fe6aeb5f6c0e72fad55fb | refs/heads/master | 2021-11-27T12:21:46.387422 | 2021-09-08T18:33:46 | 2021-09-08T18:33:46 | 242,420,362 | 0 | 0 | NOASSERTION | 2021-09-09T05:00:22 | 2020-02-22T22:25:57 | Python | UTF-8 | Python | false | false | 2,507 | py | # -*- coding: utf-8 -*-
import json
import re
import scrapy
from locations.items import GeojsonPointItem
from locations.hours import OpeningHours
DAYS = {
"1": "Mo",
"2": "Tu",
"3": "We",
"4": "Th",
"5": "Fr",
"6": "Sa",
"7": "Su"
}
class AuchanSpider(scrapy.Spider):
name = "auchan"... | [
"2924736+thismakessand@users.noreply.github.com"
] | 2924736+thismakessand@users.noreply.github.com |
68de86a98286ce40597f77071926c91c19f1cfe7 | 8b632de61821174ff816dd458c6e3550b4449f13 | /50.py | 815049058042f4827f15919d8eabcb5d8b0146c2 | [] | no_license | nzhoucsu/leetcode | ed6e99c88c61628b98099c4f25b97db3cfe15287 | 3f16ebe9da5c68b5748e17c6eefb735dadae0f1f | refs/heads/master | 2020-04-17T08:59:02.068772 | 2019-01-26T17:31:29 | 2019-01-26T17:31:29 | 166,437,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | if x == 0:
return 0.0
if n == 0:
return 1.0
if n < 0:
x = 1.0/x
n = -n
half = self.myPow(x, n//2)
if n%2:
return half*half*x
else:
return half*half | [
"nzhoucsu@gmail.com"
] | nzhoucsu@gmail.com |
c08c441e6197b6499cf91b96336b88b38c3942e9 | 4cd6edef8553c6d49417b437e9ea984538125150 | /SModelWrap.py | 693bc4c6f12815a269ca985ae4ff1db5071bff7d | [
"WTFPL"
] | permissive | SrzStephen/ModelWrap | 280e56e770e52e5dc9106c54c912785191702def | b80bced09e5d2ae68193d46a84810cd46a907c79 | refs/heads/main | 2023-02-27T01:27:38.092074 | 2021-02-06T17:41:29 | 2021-02-06T17:41:29 | 336,590,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | from pandas import DataFrame
from numpy import ndarray
import pandas as pd
class ModelPerClass:
"""
Wrapper around a generic Model (SciKitLearn or otherwise).
Goal is for you to provide a dict of trained models and the relevent key,
Does not implement predict_proba (because array sizes are going to be... | [
"stephen@motts.id.au"
] | stephen@motts.id.au |
39fbc6be8eec773a0933d226632a5c61e7b7b62a | 49f5a9c505eb850aca073eaaa485b763755c6349 | /gegalkin.py | 5280d1e5d738728f1468f5723bd86fce12bf4987 | [] | no_license | readiv/bonwin_proxmark | 34efad9a2388aeaa12e5161f8419fab570335da1 | 945614e70dba207dfb34b49a6c275278a6ab6137 | refs/heads/master | 2021-01-08T10:39:19.834319 | 2020-03-04T23:04:07 | 2020-03-04T23:04:07 | 242,005,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,542 | py | # -*- coding: utf-8 -*-
name_file = "uin_key_ff.txt"
# 0000003c e3fcf9dfe7f4
n_byte_uid = 0 # Номер стартового байта. Нумерация 0,2,4,6
n_byte_key = n_byte_uid # Номер стартового байта. Нумерация с 0
key_00000000 = "00 00 00 00\tdf fc f9 df df cc"
def get_bit(uid_key: str, i_mask_bit: int = 0 ): # Возвращает номе... | [
"hd3200@gmail.com"
] | hd3200@gmail.com |
5832d395d65684014916c925fcfebfdd07368442 | e34110b784f32e34c3fe155d0555fca1ed1f2ad7 | /person.py | 771b6f0a4058a147da15774db1023151941e8756 | [] | no_license | Bjornwolf/Coviz | 8de221ddbfd23ae14ee6ca38769cb6af48a4af7c | 130381c8e723ce0800aa4e1004124ddd0dd9b8d0 | refs/heads/master | 2021-03-15T10:00:01.209688 | 2020-03-12T15:17:47 | 2020-03-12T15:17:47 | 246,841,719 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | class Person(object):
def __init__(self, state, sociability, infection_time):
self.state = state
self.sociability = sociability
self.infection_time = infection_time
def infect(self):
if self.state == 'healthy':
self.state = 'infected'
def tick(self):
if ... | [
"noreply@github.com"
] | Bjornwolf.noreply@github.com |
ac8e35ab63bda973ae6333380d19b45aa339273e | 7e0d3d55abd268f86c3ab355e9e6808f2f845221 | /TianJin_Spidernew.py | 84bf89edb6843bdeeb88d1aedd9ff5ce48831388 | [] | no_license | BennyKuya/MySQLtest | e9d781928837b4426f4c2a1add6e061eb6a6ad52 | 3a00257b2aa10971271117d7b1ff31ce259c642e | refs/heads/master | 2021-02-06T09:22:13.928099 | 2020-07-26T10:41:59 | 2020-07-26T10:41:59 | 243,901,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,804 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 29 05:32:06 2020
@author: Administrator
"""
import pymysql
import requests
import time
import re
import datetime
import random
def agent():
user_agent_list = [
'Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; 125LA; .NET CLR 2.0.50727; .NET CLR 3.0... | [
"noreply@github.com"
] | BennyKuya.noreply@github.com |
e404d6b0a29db1667fdbbef3adcc9529b3219b24 | da934e0010380fdc6894063540f61b0ebc2c9ded | /vendor/Twisted-10.0.0/doc/historic/2003/pycon/deferex/deferex-complex-raise.py | 8005e45b917f772f7ca37f7ff1a08b382680adb5 | [
"Apache-2.0",
"MIT"
] | permissive | bopopescu/cc-2 | ed4f1dfe3c98f476ff619058d99855a16272d36b | 37444fb16b36743c439b0d6c3cac2347e0cc0a94 | refs/heads/master | 2022-11-23T03:57:12.255817 | 2014-10-02T06:10:46 | 2014-10-02T06:10:46 | 282,512,589 | 0 | 0 | Apache-2.0 | 2020-07-25T19:36:05 | 2020-07-25T19:36:05 | null | UTF-8 | Python | false | false | 227 | py | class MyExc(Exception):
"A sample exception."
try:
x = 1 + 3
raise MyExc("I can't go on!")
x = x + 1
print x
except MyExc, me:
print 'error (',me,'). x was:', x
except:
print 'fatal error! abort!'
| [
"anotherjesse@gmail.com"
] | anotherjesse@gmail.com |
64a9868fbebd5e6a96bc4c844558394735670e23 | b8849355e1b4adabc6054477ec087745fd979c6d | /tcpclient.py | b8727944091aa79c05c8b6c583378f5fdb8d2673 | [] | no_license | LittleBuster/DokuMail | 85a4a558f1a4b4fa2b6eedba48d6e466f709b8df | 574d4ebf3b2ea77b9b874c640bf463ab20533974 | refs/heads/master | 2021-01-24T06:07:23.082725 | 2015-05-08T13:52:12 | 2015-05-08T13:52:12 | 21,331,417 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,427 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import shutil
import socket
import json
import hashlib
import platform
from crypt import *
from configs import Configs, PacketHeader
from compress import *
from keys import AppKeys
from logger import Log
from PyQt4 import QtCore
from paths import AppPath
class TcpClient(QtCo... | [
"Denisov172@gmail.com"
] | Denisov172@gmail.com |
228cab6a55c4fd93d9858d5d7d8f80e40b0862f4 | d63cdbf6ac977348c94979530719e16601e1d8d5 | /gorgeous/wsgi.py | f26b1e570e263b5f176a5f74b40bf77d39600ad5 | [] | no_license | web-developer77/Django-Clothy | 22f27c79290c9c7fcc22ec6ad2c2def46bb28cb4 | dcda1d0bfec628c9d8170f0583c95a9f654580ce | refs/heads/master | 2023-06-10T05:11:57.146941 | 2021-07-08T11:22:00 | 2021-07-08T11:22:00 | 383,831,071 | 2 | 0 | null | 2021-07-08T11:22:01 | 2021-07-07T14:43:04 | Python | UTF-8 | Python | false | false | 484 | py | """
WSGI config for gorgeous project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import Djan... | [
"koa06800@gmail.com"
] | koa06800@gmail.com |
94aef605f02c02e7b2e6aec09478cf550791d550 | 8320f4367fb5aed478bf00bb1bb393bd716f469f | /hmm/hmmlearn.py | e839670f16e8ede5915c28bcd57fc092d12c4788 | [
"Apache-2.0"
] | permissive | sjayakum/csci544 | 1ce9af68c4a0c8e857fadccb31e5eb56fbfe9cb8 | c452ed518fda0909836107668428791be90b82b4 | refs/heads/master | 2021-06-16T22:03:58.824754 | 2017-03-18T23:33:50 | 2017-03-18T23:33:50 | 80,076,270 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,348 | py | f = 0
vocab = []
data_set_tags = []
data_set_words_split = []
distinct_tags = []
def learn_huristic():
pass
def load_data(file_name):
global f, vocab,data_set_tags,data_set_words_split,distinct_tags
with open(file_name, 'r') as file_pointer:
f = file_pointer.read()
lines = f.split... | [
"suraj.jayakumar@gmail.com"
] | suraj.jayakumar@gmail.com |
a7f6231ec810cb96698d9d0fcdff8cd39bbea50f | 4038c0d075b203c353a2c68eccfbf5666d9cb635 | /q-3-1.py | e261080d9fd0e80cd2fb8d1b0162a204fedefd3d | [] | no_license | dhawal777/LogisticKmeansHirerchical | fd2c94246bf8edc5417a8b30b637343bb4af1d13 | a562ef7494b0762e88b5c52effb5ddb96f79491e | refs/heads/master | 2021-10-19T03:20:21.112146 | 2019-02-17T06:47:05 | 2019-02-17T06:47:05 | 171,090,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,890 | py | #!/usr/bin/env python
# coding: utf-8
# In[14]:
import numpy as np
import pandas as pd
from sklearn.preprocessing import LabelEncoder,OneHotEncoder
import sklearn as sk
from sklearn.model_selection import train_test_split
from sklearn.metrics import r2_score
from sklearn.metrics import classification_report, confusi... | [
"dhawalvrr@gmail.com"
] | dhawalvrr@gmail.com |
32af7006ba6b6f9f0a98bb7d13fb355eadaff6ae | e493798de1448c155e0299c2395a4592a3140887 | /devices/devcmd.py | 03b46167f99345e2dc5ccb7348263e314e2aa18b | [] | no_license | sanyaade-iot/core-zerynth-toolchain | c7823bb63a70aac03fcf9705ef340b102e513fd8 | 53a72334c1a2bdfc268f101401d1da6b4cb04ff1 | refs/heads/master | 2021-04-06T01:17:34.463758 | 2018-02-20T15:49:57 | 2018-02-20T15:49:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,519 | py | """
.. _ztc-cmd-device:
*******
Devices
*******
In the ZTC a device is a peripheral that can execute Zerynth bytecode. In order to do so a device must be prepared and customized with certain attributes.
The main attributes of a device are:
* :samp:`alias`, a unique name given by the user to the device in order to id... | [
"g.baldi@zerynth.com"
] | g.baldi@zerynth.com |
b08ed496f35ec6171b123e2018f270299ebd55fd | 4eb1f72e04ed31fef5bbf2623ad1a2ecd03aa0ad | /migrations/versions/1530db5e0641_.py | 1005050fcf7bf13410793d7540cafc7ecdd58c7d | [] | no_license | tiennt-no1/flask_lab | 8f73515fee0d08a8e94aff83a9af003fb1c9d8a6 | 8775b32194ace24637ec1454f72eceeec88e2ffe | refs/heads/master | 2023-03-09T01:18:02.547261 | 2021-03-03T17:40:05 | 2021-03-03T17:40:05 | 342,493,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | """empty message
Revision ID: 1530db5e0641
Revises: 3b0df184a708
Create Date: 2021-03-03 23:15:24.214261
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1530db5e0641'
down_revision = '3b0df184a708'
branch_labels = None
depends_on = None
def upgrade():
pa... | [
"tiennt.june.20@gmail.com"
] | tiennt.june.20@gmail.com |
2e11929c3c04682e85b99c70e0c443440673a539 | 057149a24c55be96e02ae76ab4e59fc916f720a3 | /backend/today.py | e0ef8edec772776006a22b05ca56d66356c65261 | [] | no_license | nikkird/personal-desktop-voice-assistant | f56cd9a80b2aaec744b63fe44a014120ce2aa1a1 | 8d3d010404e47ac0fb91a56f4b084d8a096cb14e | refs/heads/main | 2023-08-13T21:40:40.691335 | 2021-10-05T13:22:32 | 2021-10-05T13:22:32 | 401,955,102 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | import random
from datetime import datetime
import holidays
from backend.tts import Speak
def call_time():
strTime = datetime.now().strftime("%H:%M:%S")
Speak(strTime)
def call_day():
strTime = datetime.now().strftime("%A")
print("in today.py:" + strTime)
Speak(strTime)
def da... | [
"noreply@github.com"
] | nikkird.noreply@github.com |
20f6fd6a8ac0a73f028f205121af5d9d93420d81 | ecab535afdf192df992e1148b2b5230e5385d36b | /website/bookshelf/urls.py | fec00c0b48ec7dd7f67a33a2acc66720ea14146d | [] | no_license | Shalmali1271/Bookshelf | 30caf635da3656d8bb8360aa43a161b4662be502 | d0faed136fc0c99aae5bbe41c73253efe66c892c | refs/heads/main | 2023-06-25T07:15:02.945947 | 2021-07-11T07:18:53 | 2021-07-11T07:18:53 | 384,760,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from django.http import request
from django.urls import path
from .views import CreateBook, BookList, BookDetailview
from django.conf.urls import url
from . import views
urlpatterns = [
path('create-book/', CreateBook.as_view(), name = "create-book"),
path('list-book/', BookList.as_view(), name = "list-book")... | [
"59409625+Shalmali1271@users.noreply.github.com"
] | 59409625+Shalmali1271@users.noreply.github.com |
78958c12ca78facf308e9b73852c1197af318fac | 33fcda8821796595dc510f7157664db5b30c4310 | /vim/vimfiles/plugged/jupyter-vim/pythonx/jupyter_vim.py | 7177500b38a75769330b48d0ef5505b511f42fa2 | [
"MIT"
] | permissive | ChrisGVE/win_config | d41f38be5042917583f9f299c199b4af90531fb6 | f2b3afec14a52b1cfded42c8385fdafc5e12cb8c | refs/heads/main | 2023-03-04T17:12:35.993949 | 2021-02-15T14:24:18 | 2021-02-15T14:24:18 | 338,777,353 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,217 | py | ##############################################################################
# File: pythonx/jupyter_vim.py
# Created: 07/28/11 22:14:58
# Author: Paul Ivanov (http://pirsquared.org)
# Updated: [11/13/2017] Marijn van Vliet
# Updated: [02/14/2018, 12:31] Bernie Roesler
# Updated: [15/12/2019] Tinmarino
... | [
"christian.berclaz@mac.com"
] | christian.berclaz@mac.com |
7556c744dc5c73ce75e5506f1c680c0c6067a4be | f40a4c0a9acbcd659a7c528ebe5f78494515a75b | /Python studying/Codes of examples/2.2-boolean_expression.py | 3bd40869bb89f8f58aa816c5042c6c5891759acf | [
"Apache-2.0"
] | permissive | BoyangSheng/Skill-studying | 834d5b5b4c4ab0aea21a4f0e2abea22039b961b8 | 974c37365fff72e2c7b1e27ae52cb267c7070c9e | refs/heads/main | 2023-04-09T11:11:47.856727 | 2021-04-19T06:54:41 | 2021-04-19T06:54:41 | 318,980,279 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | x = 6
y = x in [3,5,8,9]
print(y)
x = 6
y = (x == 3) or (x == 5) or (x == 8) or (x == 9)
a = 's' in 'science'
print(a) | [
"summernights@stu.xjtu.edu.cn"
] | summernights@stu.xjtu.edu.cn |
fadcb0ce44b6124de4c47191551238a9847ac862 | bac99fd938258ad068851b7c90e6ef81f8feb3e9 | /setup.py | 82694131e4feeeb21d979ac7a1ce19e9729cf6a5 | [] | no_license | yunstanford/attrs-schema | 9e0ef87302fd62c84d7ed9ade98799eed493545f | 0b423231429af15856e8f1f10612eef16da5044a | refs/heads/master | 2021-06-21T03:28:14.783336 | 2017-06-27T15:12:02 | 2017-06-27T15:12:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | #!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
is_release = False
if "--release" in sys.argv:
is_release = True
sys.argv.remove("--release")
base = os.path.dirname(os.path.abspath(__file__))
README_PATH = os.path.join(base, "README.rst")
install_requires = ['attrs']
... | [
"yusuke@tsutsumi.io"
] | yusuke@tsutsumi.io |
b0f65270883773f3df80bcab170272bced29458e | 409ed6910b4554b6fb5c4aeed472004cf26d3c4e | /Sisonke Gaming/Inyoka noga.py | bdbe0804a90e59fc59b35a5d027b2970acdf20f7 | [] | no_license | vuyisile/Sisonke-Gaming | 13165dffbcf4623cb8a51bee16fb1189c75d37c6 | dcf1fa4659fd3c0205843c1f986f6dfb0562d8d4 | refs/heads/master | 2022-09-01T23:57:35.234981 | 2016-02-06T08:47:51 | 2016-02-06T08:47:51 | 51,194,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,122 | py | # Wormy (a Nibbles clone)
# By Al Sweigart al@inventwithpython.com
# http://inventwithpython.com/pygame
# Released under a "Simplified BSD" license
#KRT 14/06/2012 modified Start Screen and Game Over screen to cope with mouse events
#KRT 14/06/2012 Added a non-busy wait to Game Over screen to reduce processor loading... | [
"f.n.weni@gmail.com"
] | f.n.weni@gmail.com |
cd5cc7e02f3ce003640bef345ad599f7d7d2dd48 | fa2d5ea9fd8eefdab0f1dd35b40e77600bdeb69f | /data/views.py | 23a9215d663b22401043a2691120fa67c37795a7 | [
"MIT"
] | permissive | bobcosc/masteringmastery | ec81ccabf6edbfbc55ed068190c5fac0775161c3 | a02d67441a1a7d5ff2a125e40197469145bef6db | refs/heads/master | 2020-12-24T20:24:12.694958 | 2016-05-05T10:36:14 | 2016-05-05T10:36:14 | 57,078,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | from django.shortcuts import render
from data.models import Player, Champion, PlayerChampionMastery
from data.helper import *
from django.views.generic import TemplateView
import collections
from data.serializers import *
from django.http import Http404
from rest_framework.views import APIView
from rest_framework.respo... | [
"bobsnewgit@gmail.com"
] | bobsnewgit@gmail.com |
c39a69512fefe44b27094bf002dede8450c57b79 | 38836427823c6b26bec3c70aa89982f2a20b70ec | /Awurama - userinput.py | 560aaa00f7588fda7a21611941d73f20ec927e25 | [] | no_license | oawurama/Python-Assignment | 3210912e6f1faabbf6aa4cd5354ee7dfc5ee3560 | 4d3b352e090ea9b56292b31893985388240e2f83 | refs/heads/master | 2021-03-01T09:52:16.972089 | 2020-03-08T08:11:08 | 2020-03-08T08:11:08 | 245,774,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | Firstname = input ("Enter your first name: ")
Lastname = input ("Enter your Last name: ")
month = input ("Which month were you born? ")
day = input ("Which day were you born? ")
year = input ("Which year were you born?")
a = " was born on "
print ("{} {} {} {} {} {}" . format (Firstname, Lastname, a, month, day, year,)... | [
"oawurama94@gmail.com"
] | oawurama94@gmail.com |
e9df49caebaa296fae94bb091ddfc4025ed2252a | 922f688710308a0f3498789467e87f31f8b40656 | /100_nokku/chap07/60.py | 5e436dbb9158a769c0276c9e598431ffac0a8a21 | [] | no_license | noritake41/100_nokku | f7905d3463a9baeaa90e6cf7b2daa639d6a95cdf | 94d7b3ca95486be8d6c05a699712695c29f65068 | refs/heads/master | 2020-04-12T08:39:08.112037 | 2018-12-19T06:32:42 | 2018-12-19T06:32:42 | 162,391,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # coding: utf-8
import gzip
import json
import leveldb
fname = 'artist.json.gz'
fname_db = 'test_db'
# LevelDBオープン、なければ作成
db = leveldb.LevelDB(fname_db)
# gzファイル読み込み、パース
with gzip.open(fname, 'rt') as data_file:
for line in data_file:
data_json = json.loads(line)
# key=name+id、value=areaとしてDBへ追加... | [
"administrator@KM-S09.local"
] | administrator@KM-S09.local |
d6de3e62458bf8481eb0d81b0d7787b5841f7c06 | 9f4604a47472ab4fb3a521d86f2dd28d9067d96e | /Python/Livro Introdução à programação com Python/Capitulo3/exercicio 3.13.py | b5cdc338d641337d598f4483596eb5a737a95330 | [] | no_license | LuBonani/Projetos | 4039f4f38113cbc5b29bdd08a324a9a4b4dae9cf | 59ab35a9ea2e0a07d24e0640266be4e0ee21e0bd | refs/heads/master | 2023-01-21T00:51:21.279387 | 2020-12-07T18:20:31 | 2020-12-07T18:20:31 | 286,602,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | c = int(input("Entre com a temperatura em celsius"))
f = ((9*c)/5)+32
print("a temperatura em °f é %d" % f)
| [
"bonani.luciana@gmail.com"
] | bonani.luciana@gmail.com |
e31b80a8e3828892709f5407520a2915c3eb7e35 | 8a0c059415d8d10bca4084e3d766850f62e4403e | /leapYear.py | 7ede68ed2004ac3dbca6cc52c2e8299447085d79 | [] | no_license | junanyeap/ncnu_1072_python_oldfish | 087bc1beae73005b951cfeadbeb0c85396b9f89c | 4e01adc0bac5c607dc92c3d0b3a75701a72dfbc3 | refs/heads/master | 2020-04-25T05:03:45.472003 | 2019-06-24T03:37:45 | 2019-06-24T03:37:45 | 172,530,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | #學號:104213070
#姓名:葉潤安
def leapYearJudge(year):
# 依傳遞來的year,做下面兩項判斷來計算是否爲閏年
# 其中一項符合,即是閏年
# 是---則return true,否---則return false
return (year%4==0 and year%100!=0) or (year%400 == 0 and year % 3200 !=0)
def main():
# [WRONG] 宣告變數year,存儲使用者輸入的年份
# define and link year with input()
... | [
"junanyeap@gmail.com"
] | junanyeap@gmail.com |
3c87e5773d851cc122f29d4aa600b2547b1dad80 | 7a86aabeae1071c09573dde886d7d31b472cbd35 | /intro_to_cs/pycharm/exercise1_default.py | dbc7088a1b194e973323594e99733c1431707b02 | [] | no_license | kkrugler/codecademy-validator | 7453f1f82e6488aecb959af0f9d3a8b05eca2ee2 | fe5749cfb12705e0c16f7060111dd4e9b4ffc9ba | refs/heads/master | 2021-01-21T21:40:01.819302 | 2016-05-17T15:43:43 | 2016-05-17T15:43:43 | 29,620,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # Replace the values in the assignment statements below with
# your answers to questions 1-20 (see the directions).
answer_1 = 0
answer_2 = 0
answer_3 = ''
answer_4 = ''
answer_5 = ''
answer_6 = ''
answer_7 = 0
answer_8_name = ''
answer_8_value = 0
answer_9_name = ''
answer_9_value = 0
answer_10 = 0
answer_11 = ''
ans... | [
"Schmed@TransPac.com"
] | Schmed@TransPac.com |
85913214afde9535603ff14a932b07d7558b026e | b5ac646f40aa42af35da50f49e71a688e1ed0096 | /2_scrape_re.py | 32fd722267b6ebcd46cec682b7a544c83fb77ab9 | [] | no_license | apotree/Web-crawling | 66b7381ee48fb966e0b9fe25f0cc56434e27a5ca | fcb5ae27a59aff793d212d128a22c0a9c41f94b1 | refs/heads/master | 2020-11-26T13:26:02.193744 | 2020-02-04T06:07:27 | 2020-02-04T06:07:27 | 229,085,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | import re
from html import unescape
# 이전 절에서 다운로드한 파일을 열고 html 이라는 변수에 저장
with open('dp.html') as f:
html = f.read()
# re.findall()을 사용해 도서 하나에 해당하는 HTML을 추출
for partial_html in re.findall(r'<td class="left"><a.*?</td>', html, re.DOTALL):
# 도서의 URL을 추출
url = re.search(r'<a href="(.*?">', partial_html).gro... | [
"noreply@github.com"
] | apotree.noreply@github.com |
528eee062ae34fe37c4faef7476ca86ea33b715a | bb32566f0c4688292b8f37d29630e0b7a18be24b | /work2017/leetcode/twosum.py | a1b66f92b5ab8c02b712271029e60ec2b150ce80 | [] | no_license | Chencheng78/python-learning | 4c7dd3a5ad39ac2e96b9ff0a1b9aabb56e863f7f | 63eb7ee9e547f899eafa698556f6adeb518795bb | refs/heads/master | 2022-07-27T02:40:03.067820 | 2022-07-12T09:05:47 | 2022-07-12T09:05:47 | 55,224,905 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | class Solution(object):
def twoSum(self, nums, target):
while nums != []:
i = nums.pop()
if target-i in nums:
return [nums.index(target-i), len(nums)]
if __name__ == '__main__':
a = Solution()
b = a.twoSum([2, 7, 11, 15], 26)
print b | [
"geniuscc7@163.com"
] | geniuscc7@163.com |
a24bae27bb6b0cff5762be20e58aa3f3f8f23c9c | f471614ec6bea8d3da056f19c47e1f85964102af | /mF6W.py | cb71a2f08b8e4dce44f6ada0e146709f408cffc6 | [] | no_license | mashmatt/techgym_ai | 0e8d8075397b495fc4e4d122ba6b2b07f2788cbc | 67e405a1427525ac766f56eeaac54238570791e6 | refs/heads/master | 2022-12-01T09:56:28.515789 | 2020-08-21T12:38:01 | 2020-08-21T12:38:01 | 262,057,198 | 0 | 0 | null | 2020-05-07T13:25:46 | 2020-05-07T13:25:45 | null | SHIFT_JIS | Python | false | false | 2,761 | py | #Tech-Gym-13-16-Q
#ディープラーニング画像分類器:CNN
#手書き文字データ
###ハイパーパラメータ###
#活性化関数
#隠れ層の数、隠れ層のチャンネル数
#ドロップアウトする割合(rate)
#学習率(Ir)
#最適化関数(optimizer)★
#誤差関数(loss)
#バッチサイズ(batch_size)
#エポック数(epochs)
#必要なライブラリ
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridsp... | [
"noreply@github.com"
] | mashmatt.noreply@github.com |
1a512a86d440af4af8f017b2d2487561beb88245 | f2cbd7496abb1eee9054ff709d159d52f70f22dc | /spectral_cluster_sol.py | 96adf4c2bbdd40d655350073a6306bc485d4d788 | [] | no_license | fhung2/hophacksspring2018 | a69c89d4a6911264bbc2967d972b7b80a39bd59a | 4f18a956f66001b4ccdf8ab9d9995a6330aed131 | refs/heads/master | 2021-04-29T11:10:03.133719 | 2018-02-18T00:51:02 | 2018-02-18T00:51:02 | 121,825,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py | from scipy.io import loadmat
from sklearn.cluster import SpectralClustering
import numpy as np
from sklearn.metrics.cluster import supervised
from scipy.optimize import linear_sum_assignment
data = loadmat('../digits/digits-train.mat')
# data = loadmat('../objects/objects-train.mat')
#fea_hog = np.array(data['fea_ho... | [
"jrusso15@jhu.edu"
] | jrusso15@jhu.edu |
3961e6e425d4740afb32b711fe98adf73250d297 | 25fe650d23a4ea5c485b72c42434b64f5036fa82 | /wrapper/pract.py | d549c87a71c34b399bd10915fef4a410b44e8895 | [] | no_license | kyu-chan/P_R | ba6cdb8bea0b262c4b151c73dd370d54b3b0e0ed | 493e20a69a8830f8ed36c0029e873bb7b97c5cb8 | refs/heads/master | 2023-04-05T13:13:06.596611 | 2021-03-30T13:38:52 | 2021-03-30T13:38:52 | 352,969,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | import pandas as pd
import numpy as np
from wrapper import common
class Pract:
def DDM(self, d, r, g):
p = d / (r - g)
return(p)
def DCF(self, r, *cf): ### 구글링해보니 *가 불특정 n개를 의미
n = 1 #당연히 기말기준
p = 0 ## 초기값 주고
for c in cf:
p = p + (c / (1+r)**n)
... | [
"iopoh0203@gmail.com"
] | iopoh0203@gmail.com |
0fc52acc1436737d689acd9f26d8be0c207d3ec1 | 58d9951c8533132276b674b9653aedcaf1f2096d | /final_project_main.py | 1423dfe0dad1e1c1d15c157323729f9e85838460 | [] | no_license | ajp619/IS602_Final_Project | d55a3b01fd702fb5ff5c2483f6ded105e77aa243 | 6a84572006d694d9cecc4378fff95142debeb4eb | refs/heads/master | 2021-01-19T11:33:04.514533 | 2013-12-23T19:56:08 | 2013-12-23T19:56:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | py | """
IS602 Final Project
Do the themes we see as a child show up later in political speeches
"""
__author__ = 'Aaron'
import create_speech_corpus
import create_tv_corpus
from projectutils import create_heat_map, plot_heat_map
import matplotlib.pyplot as plt
def get_speech_seed():
"""
Links to list of speeches... | [
"ajp619@outlook.com"
] | ajp619@outlook.com |
866fe4478abd3813a0c973bc7b480b7c5189ece0 | a69503fd428c61419118090f45cc7b51f7c48c44 | /main.py | 92075f27bd188893609d6dd1ef9f2bf76df8285e | [] | no_license | ianish07/invisible-cloak | a4459d32f377b97fd1582b58623611eb0672a844 | 1f3b193d221c7d247e42fbf4e2e566ce26a4271a | refs/heads/master | 2022-11-21T11:45:04.237876 | 2020-07-17T09:14:36 | 2020-07-17T09:14:36 | 280,377,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,301 | py |
import numpy as np
import time
import cv2
cap = cv2.VideoCapture(0) # '0' refers to the primary camera, will change (eg. '1'/'2'') for any external ones
## Allow the system to sleep for 2 seconds before the webcam starts
time.sleep(2)
background = 0
for i in range(30):
#capturing the background for initial f... | [
"ianish07@gmail.com"
] | ianish07@gmail.com |
ec285e46a757036c22792f80a49af5ea90265538 | 89d4bdfc8c05067a9d0f1917d5ab135c285dc959 | /Apriori/apriori.py | c18019094d198b21c60033d6e1fe9b01da4b7bf5 | [] | no_license | rliu054/machine-learning-from-scratch | 06c1a726055db251dc92ac75b7f516a96eec97ef | fc5ca0430aaa03f032a3319384d116e7c0ec7644 | refs/heads/master | 2020-03-19T10:22:49.076779 | 2018-10-19T20:36:17 | 2018-10-19T20:36:17 | 136,365,119 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,921 | py | def load_data_set():
return [[1, 3, 4], [2, 3, 5], [1, 2, 3, 5], [2, 5]]
def gen_set_list_size_one(data_set):
""" Get a list of itemsets with length 1. """
itemsets = []
for trans in data_set:
for item in trans:
if [item] not in itemsets:
itemsets.append([item])
... | [
"iamliurui@gmail.com"
] | iamliurui@gmail.com |
b9978baea9f85c3b6621e5e94ed47e99c6a2e315 | d9b620102da4a3632250da29b4b39d533a58686d | /nsePrediction/BarChart/apps.py | ea1c7f97cfc1da044462c1c07b5cff476e0c325b | [] | no_license | SwagataRoy98/NseToolsPredictionAndCharts | ca9839652905c068a023a16e56e3decdc7e0337c | 65dd1dcbe433842224a6d8369e2b9a1d671aa4d9 | refs/heads/master | 2023-07-10T17:12:27.314119 | 2021-07-24T06:11:28 | 2021-07-24T06:11:28 | 385,275,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from django.apps import AppConfig
class BarchartConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'BarChart'
| [
"r.swagata2016@gmail.com"
] | r.swagata2016@gmail.com |
008ef7ca47cef56af92cf66086f5e616c21552e5 | dbca6a3e9e1f80649e7f26dc76e53c26508e8288 | /survaeflow/transform/bijection/shift.py | ec7e59e6489911ca6d826f18275295dd9ea98944 | [
"MIT"
] | permissive | revsic/tf-survae-flows | 95e6cbef5f03cfc02db4c5da3e6e07519bd73a7a | 950a06c5e85ffedec6a024e81dc5fae557e2aae8 | refs/heads/main | 2023-04-18T05:24:11.086108 | 2021-05-05T14:44:08 | 2021-05-05T14:44:08 | 326,727,004 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | from .. import Transform
class Shift(Transform):
"""Constant Shifter.
"""
def __init__(self, shift):
"""Initializer.
Args:
shift: tf.Tensor, [tf.float32; [B, ...]], shift bias,
broadcastable to the inputs.
"""
super(Shift, self).__init__()
... | [
"revsic99@gmail.com"
] | revsic99@gmail.com |
1b0474675f8594688ac332cef6d772f875546ee4 | d2bb3512d9be21beabaa168b9458dc3953fe2061 | /The Messanger Project/MessangerBeta (GUI Rec) (One Way) (With Dynamic Canvas)/MessengerTest.py | c80550b9354d269294a4b5c091999ca01d95256b | [] | no_license | arelyx/Messenger-Project | 0da19c4adf201039a9d16e48afdec6cfafd797f9 | dfa48bb2cb2ab6980c4d08df390ec6bac0fdf0c4 | refs/heads/master | 2022-06-11T03:22:20.777112 | 2020-05-02T07:25:11 | 2020-05-02T07:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import time
import os
while True:
text = input('What Do You Wanna Say? ---->')
message = open('MessageData.txt', 'w')
#appendfile.write('\n')
message.write(text)
message.close()
readMessage = open('MessageData.txt','r')
print (readMessage.read())
readMessage.close()
time.sleep(0.05)... | [
"noreply@github.com"
] | arelyx.noreply@github.com |
2539bf36d6a792a9aed22d6687c73d6dc1d1aba0 | b9dedd970eae03cea283188bba63d89463428f4e | /detailviewadvance/detailviewadvance/asgi.py | 76141c558d4fdc52e923fc314a1937bb916ccffe | [] | no_license | Firoz-Thakur/Django-game | 08cabb9fed2e61a14d9d1848a1253b757bd98d2c | ec2689ecef9c8037de96a2271dc8d34fdf9bf405 | refs/heads/master | 2023-08-02T11:45:48.895901 | 2021-10-08T17:22:37 | 2021-10-08T17:22:37 | 349,045,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
ASGI config for detailviewadvance 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"firozbhaikardar21@gmail.com"
] | firozbhaikardar21@gmail.com |
5f8935d15ae86cd6bd9e37647685e21ba388b52b | 473a9043010f47aaf4c101c3a22c96152a1da50d | /interface/shortcuts/dialog.py | bae511a2b36ffc55289888181c55a44d23072115 | [] | no_license | bmartins95/TagApp | ad057fca1ffa4a3f49f3d9a00afdafe0753fbf69 | 4c0cf67ad440f5cd1f0f1aa1b9fcc89a283deec2 | refs/heads/main | 2023-04-19T00:11:32.809919 | 2021-04-23T10:53:18 | 2021-04-23T10:53:18 | 358,332,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,298 | py | from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QDialog
from PyQt5.QtWidgets import QDialogButtonBox
from server.server import Server
class Dialog(QDialog):
"""A template dialog class that defines default functions such as,
createProjectDict, createForm, createButtonBox, setMainLayout and
moveTo... | [
"bruno.martins.cesfi@gmail.com"
] | bruno.martins.cesfi@gmail.com |
e3a628780e884be8146c3183c1ac6262517c3b3f | 54e9c9f74c79fa47e4f492fa60bbb799f28652c5 | /satc_front/headless/ref2sink_cmdi.py | 159eb2d13935f53df3c65294db59835d30e3f844 | [] | no_license | Cossack9989/SaTC | 9830a91c6c67e547a86e940bf78f95f0206afaa5 | 2adc0f8e154b3b63e6b9968922437fe3532b6975 | refs/heads/main | 2023-07-06T04:10:32.274818 | 2021-07-08T14:02:51 | 2021-07-08T14:02:51 | 395,564,622 | 2 | 0 | null | 2021-08-13T07:55:57 | 2021-08-13T07:55:56 | null | UTF-8 | Python | false | false | 12,361 | py | # Find path to sink functions from reference of given strings. Different output format for the function calling certain check functions. Find more params heuristicly.
# @author tkmk
# @category Analysis
import time
import sys
from ghidra.util.classfinder import ClassSearcher
from ghidra.app.plugin.core.analysis import... | [
"tt.jiaqi@gmail.com"
] | tt.jiaqi@gmail.com |
609c7b5dab24d54b1bb8b651774f5ea99e7e3c1a | 9695983ca3fd5b742255dc7c27c2d97451110dba | /miller/models/document.py | 10f8d50840372ddc2053e52760a8fd1a509b9f93 | [] | no_license | inmagik/miller | b94f5fcf7454616495d4adef20598b333be3c342 | 40217fc6c01ec18de6a264ea096dfddf4ad84c7a | refs/heads/master | 2021-01-22T22:34:21.738286 | 2017-12-12T12:07:46 | 2017-12-12T12:07:46 | 92,777,842 | 0 | 0 | null | 2017-05-29T21:50:06 | 2017-05-29T21:50:06 | null | UTF-8 | Python | false | false | 20,349 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import shutil,os,codecs, mimetypes, json, requests, tempfile, logging, PyPDF2, bibtexparser, errno
from actstream import action
from actstream.actions import follow
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.postgres.f... | [
"gui.daniele@gmail.com"
] | gui.daniele@gmail.com |
754ae18913fa53c3f6491ed3c9f8dd6add8f7112 | 65a0f03a21bb30b271a724a327d2312b230fb8a3 | /freeze_model.py | 608d1ab23965c1217c385822b9a5b912b3600154 | [] | no_license | pod3275/Deep_Knowledge_Tracing | 86cc759b97b6b3efe0c6f2d95e6e12d2faad70a6 | acb899c5606fa6d9bd0596108f573ad097971c41 | refs/heads/master | 2023-03-10T18:09:29.148918 | 2021-02-26T08:44:32 | 2021-02-26T08:44:32 | 342,514,469 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 27 16:50:02 2021
@author: LSH
"""
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
from tensorflow.python.tools import freeze_graph
def generate_freezed_graph():
freeze_graph.freeze_graph('./results/model/model.pb',"", True, './results/model/LSTM-102',
... | [
"sangheon_lee@tmax.co.kr"
] | sangheon_lee@tmax.co.kr |
3365499c58315b1ab7f490a845e64dd33914485c | 9dedde0a8e77f85106e11b64803853733f5744b5 | /lib/relay.py | 03e5b0f2147bef285077c16d16ac61a02e8ab715 | [] | no_license | mdegrazia/piWarmer | 46466866c5ebb68234afc085496e1f886a8ba357 | 54b30ad56cf55c1676044eb488128f093ccf9529 | refs/heads/master | 2021-01-12T06:09:10.854687 | 2017-12-27T20:49:26 | 2017-12-27T20:49:26 | 77,316,716 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | import RPi.GPIO as GPIO
import subprocess
import time
class relay(object):
"""Class that controls an AC/DC control relay
Attributes:
name: Relay name (IE - Heater, Light, etc.
GPIO_PIN: BCM GPIO PIN on rasperry pi that the AC/D control relay is plugged into
"""
def __init__(self,name="relay",GPIO_P... | [
"noreply@github.com"
] | mdegrazia.noreply@github.com |
ab5921e4841a4ea9e40abc6143c666860fb6e899 | e4117e535c8f0d5d93d6bf17382eb25f63930eef | /initLBP.py | f8b7d6655fd4b5fbcc96e6f1cbfa5b60f2fb7801 | [] | no_license | UpCoder/MedicalLBP | 2f1e933f3a2671e59015856155b008f8ef0b3076 | a1f98f31240932abf0bc84ed33174c2ac79d920c | refs/heads/master | 2021-01-18T18:40:07.717801 | 2017-04-10T03:03:59 | 2017-04-10T03:03:59 | 86,870,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | from extractFeature import extractFeature as EF
import numpy as np
import kCrossValidation as KCV
import KCrossValidationPR as KCVPR
def initLBP():
dirPath = 'D:\\MedicalImageAll'
allData,allCountArr = EF(dirPath)
label1_1 = (np.ones((18, 1)))
label1_2 = (np.ones((18, 1)))
label2_1 = (np.ones((10, ... | [
"546043882@qq.com"
] | 546043882@qq.com |
f7220d766059c398ce9ddce4db0d786c79982507 | 6d569717e6e2b7ff70b810b9210b1ec753477b38 | /examples/nod.py | 2616d68573a5381dc443c6d189b9ad8fa29013e9 | [
"MIT"
] | permissive | unton3ton/In_Rust_We_Trust | fc85191e47e2bb41bb2c90b68b22ea266fd727f5 | 43513b4a34b2d7e20950db9a0ac811721db06a1a | refs/heads/master | 2023-08-16T18:25:39.658698 | 2020-06-19T12:34:07 | 2020-06-19T12:34:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | def nod(x,y):
if y != 0:
return nod(y, x % y)
else:
return x
n1 = int(input("Введите n1: "))
n2 = int(input("Введите n2: "))
print("НОД = ", nod(n1,n2))
print("НОK = ", int((n1*n2)/nod(n1,n2))) | [
"noreply@github.com"
] | unton3ton.noreply@github.com |
39c5ec8e7c2341d971c5187271dee557b5788d86 | 1b84b1cfed163cff380d13f428ce77ccaf22c9b7 | /generate.py | b7465fa87e7cc4daec9fffc0144a0d25ae80d243 | [] | no_license | Sagiaj/Data-Mining | b4cb8fb709c291270effc10f78f814d7c8337ebc | 6f6a9bf2ec111061ddd803ef01e954448906278d | refs/heads/master | 2021-01-23T02:10:25.883457 | 2017-10-30T21:48:44 | 2017-10-30T21:48:44 | 102,435,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | def gen(dim, numberOfPoints):
import random
return [[random.randint(1,100) for i in range(dim)] for j in range(numberOfPoints)] | [
"sagiajaj@gmail.com"
] | sagiajaj@gmail.com |
9192d014f6dccd5e8794d066a7d0b63fa47e8c57 | 950b1cc985544b2f8e4aed85865043058ab15f82 | /caixa/admin.py | a9a095f72a4b107ed4ebb9f995648f62afe66efa | [] | no_license | rubensrojas/Django-api-internship-test- | 088e79b64698ce1f4688b7412f6b79775b4b09a0 | c2e859542b59fd2ab3f7ea5441501ed49d618063 | refs/heads/master | 2021-03-13T06:19:01.273962 | 2020-03-25T13:00:03 | 2020-03-25T13:00:03 | 246,647,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from django.contrib import admin
# local
from .models import Product
from account.models import Account
# Register your models here.
admin.site.register(Product)
admin.site.register(Account) | [
"troy.rubens@gmail.com"
] | troy.rubens@gmail.com |
f198dc27184c102bb69f4454494fc0748e1a4a64 | 1e1376342cc8256de400857500ad6784a50514a7 | /opentelemetry-api/src/opentelemetry/configuration/__init__.py | d0fc11dc594f99cb51ccf05255b54b71f8f7b71b | [
"Apache-2.0"
] | permissive | nirsky/opentelemetry-python | 7f62abb123a640c4b7e9d773714e1c55976c974f | 8d09319c43a24b05d14128361de2c9afe8c856b6 | refs/heads/master | 2022-07-17T23:24:52.654516 | 2020-05-12T23:37:01 | 2020-05-12T23:37:01 | 260,860,682 | 0 | 0 | Apache-2.0 | 2020-05-03T08:36:35 | 2020-05-03T08:36:34 | null | UTF-8 | Python | false | false | 5,291 | py | # Copyright The OpenTelemetry Authors
#
# 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 ... | [
"noreply@github.com"
] | nirsky.noreply@github.com |
997d622013234e1c3c077b2ab2c3f4ce830f7c02 | 8c8e7f6038ca689623c3a6330a7231b0f5ac2c56 | /stats.py | 45a79bdd0993160b831cc7380e6f988bead89c9f | [
"MIT"
] | permissive | numediart/multi-rnn-wordlevel | 68a420ff680d4768cf963965f15d047d8119736c | 214e43f6c6f9de3a610389881ffbe4521c9df635 | refs/heads/main | 2023-08-14T03:48:19.490074 | 2021-09-24T09:55:04 | 2021-09-24T09:55:04 | 409,272,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,634 | py | # The MIT License (MIT)
#
# Copyright (c) 2018 UMONS
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, m... | [
"loic.vandenbemden@umons.ac.be"
] | loic.vandenbemden@umons.ac.be |
677c6baf6c50f3cb9bbffa21f022ff7a933218cb | da1848ea034a426378fec386739c9230065d73cb | /NOx_2020/lowess.py | 4ffee5c96f93f9f54c1c673f31ae60bb8f791470 | [] | no_license | matt-rowlinson/cvao | 54ab4b9cf09d407f54e5c1596e6fc6bc71d6334e | 8a95850885b0059936a671c24c2918c9ca76dda0 | refs/heads/main | 2023-05-15T00:27:44.951038 | 2021-06-04T08:16:09 | 2021-06-04T08:16:09 | 349,418,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,372 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import pandas as pd # Pandas handles dataframes
import numpy as np
import scipy
import matplotlib # Numpy handles lots of basic maths operations
import matplotlib.pyplot as plt # Matplotlib for plotting
import seaborn as sns ... | [
"matthew.rowlinson@york.ac.uk"
] | matthew.rowlinson@york.ac.uk |
cac1686c7e8af01ee5e5486215adb5c2c9d50c4c | 025d7484c52b204bc286dfb9d17fc08e8e03604e | /hr_applicant_portal/models/shiping.py | 0a3620e6fdc5223a8e8c4598e0c276483afd8d41 | [] | no_license | gotorishab/stpi | 3e2d2393a3b64f313c688bfcb4855052ea5e62b4 | a548e923f80e124ea5f90f4559ec727193c70528 | refs/heads/master | 2021-07-05T16:19:39.932782 | 2021-04-30T03:58:05 | 2021-04-30T03:58:05 | 236,436,956 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See COPYRIGHT & LICENSE files for full copyright and licensing details.
from odoo import api, fields, models, _
from odoo.http import request
class StockPicking(models.Model):
_inherit = "stock.picking"
def _compute_access_url(self):
for move in self:
... | [
"rgupta@dexciss.com"
] | rgupta@dexciss.com |
8d94abc692154699bbb4efe0f1971261ee8b2409 | 62033cc33fb92fc5c4e9d6741ad41a82bd17c2ae | /portfolio.py | 012895b1d27b84c6dc0d5821c1a999d5b8e8646b | [] | no_license | diarts/portfolio | 5ea8fe9ef0adcff729694930915496b6f8b03e2f | 666632ee3d05a8c4e1e099548e55e307ad229f53 | refs/heads/develop | 2023-05-10T20:22:34.122127 | 2019-07-29T10:06:35 | 2019-07-29T10:06:35 | 185,640,484 | 0 | 0 | null | 2023-05-01T20:58:13 | 2019-05-08T16:12:03 | CSS | UTF-8 | Python | false | false | 249 | py | from application import create_app
from database import db
from model import Buttons, Location
app = create_app('development')
@app.shell_context_processor
def make_shell_context():
return {'db': db, 'Buttons': Buttons, 'Location': Location}
| [
"diarts@mail.ru"
] | diarts@mail.ru |
868b1bd8d68f7c2eea08fdb19e308f7c8df2d6ed | 9e06b7e744b83ae05de1bed4a1f4936526dee79c | /deepspeech_recognizer.py | 538837ab45198f54fac248eba0d660b4baf2b656 | [] | no_license | dimasKaskader/SpeechRecognitionTesting | f18a31943fdb4b5844dcdae669c8206bf59eb9af | f70a956798b15dd0af897bcd67d716dc9d86acb5 | refs/heads/master | 2020-06-02T23:04:01.102324 | 2019-06-11T09:56:43 | 2019-06-11T09:56:43 | 191,337,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,631 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import argparse
import numpy as np
import shlex
import subprocess
import sys
import wave
from deepspeech import Model
from timeit import default_timer as timer
try:
from shhlex import quote
except Impor... | [
"diantigers@gmail.com"
] | diantigers@gmail.com |
2cff1c703e744c7315bcc829d41e5720e0a69b84 | 13ad405784e51417fe73bf0d023d362fba7c0cdf | /web/polls/migrations/0011_auto_20181028_2328.py | dc9dac31a82350a766b28ea55e3c419badc8f6fa | [] | no_license | skkulsc/skku | f37d7e49cc7039aa814f0da294f430e52aa81b81 | 1195e6fb5f9e05f8f873917eb7b42c997de84b02 | refs/heads/master | 2021-04-09T15:18:55.890165 | 2019-03-19T00:48:52 | 2019-03-19T00:48:52 | 125,811,634 | 0 | 0 | null | 2018-04-14T16:12:05 | 2018-03-19T06:29:44 | Python | UTF-8 | Python | false | false | 345 | py | # Generated by Django 2.1.2 on 2018-10-28 14:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('polls', '0010_auto_20181028_2232'),
]
operations = [
migrations.AlterModelOptions(
name='usernewstable',
options={'managed':... | [
"arc3577@gmail.com"
] | arc3577@gmail.com |
687156af1feb55adfd093213a26ed0719f652c5d | 444d5554ee2b1a0ecfb88bb8d037de763088718c | /app.py | 821593aa49e9d1fad9fbddac03b5f0293e3e0280 | [] | no_license | LeOric32/tripsearch32 | 9542a3bece4c2de8976b7456cfcea0c6b3575bd5 | e0ae3c8dfc1eb7eef2366f65bc5490a8d725ffde | refs/heads/main | 2023-05-06T16:44:20.796658 | 2021-05-31T03:10:25 | 2021-05-31T03:10:25 | 372,363,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | import os
from flask import Flask, request, jsonify
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config.from_object(os.environ['APP_SETTINGS'])
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db = SQLAlchemy(app)
from models import Book
@app.route("/")
def hello():
return "Hello World... | [
"dmitryzhuk99@gmail.com"
] | dmitryzhuk99@gmail.com |
098fa385ab05531a49d9ff3730c6664c729553f4 | c5857b50862bf56397739e7c2f524bb7b233e929 | /homeassistant/components/device_tracker/xiaomi_miio.py | 615688923888eaf4d38fb73814b4d3ad043c637d | [
"Apache-2.0"
] | permissive | nickw444/home-assistant | 6668beaf1b1cc0dbcf0d3246b5bb57766cd66a2c | 8d48164f25f3b7f272ee486ecdeb6e1e8e4c6174 | refs/heads/dev | 2023-08-23T11:26:32.812468 | 2018-04-11T01:38:23 | 2018-04-11T01:38:23 | 129,087,456 | 0 | 1 | NOASSERTION | 2021-08-31T22:42:32 | 2018-04-11T12:05:55 | Python | UTF-8 | Python | false | false | 2,434 | py | """
Support for Xiaomi Mi WiFi Repeater 2.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/device_tracker.xiaomi_miio/
"""
import logging
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.components.device_tra... | [
"tpr@iki.fi"
] | tpr@iki.fi |
225efff7388866e6b7c5dfe7f5e55e2a5358b8ab | 81dc2411ea6e9b59e80aad01a30e11ab8d581fff | /python-problems/problem9.py | 2cef7a55f80b4839e0325b78e413221a857ad475 | [] | no_license | arnav13081994/python-deepdive | fb9445e3b5536af34093e993772fa0569df520a1 | 7b906291d044f4ca7387de6e1833a61c9583c966 | refs/heads/master | 2023-07-07T14:05:08.688553 | 2021-08-16T02:45:33 | 2021-08-16T02:45:33 | 254,629,266 | 1 | 0 | null | 2020-04-10T12:29:16 | 2020-04-10T12:29:15 | null | UTF-8 | Python | false | false | 1,325 | py | """
Given a list of numbers and a target sum, return all quadruples that add up to that sum
"""
def return_unique_members(lst):
""" Given an iterable of tuples, return only unique tuples.
Uniqueness is defined if no 2 tuples have all the same elements. Order doesn't matter"""
ans = []
set_unique = set()
f... | [
"arnav13@gmail.com"
] | arnav13@gmail.com |
e7055c9eb9ec3adfdd75c281b6197d9323c37786 | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/badd18a84b236c9e6c34057512cb569a/snippet.py | 5c0a7a521adb4a2054174cb1ea11fc02afb8bbc5 | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 13,006 | py | #######################################################
#### NOW AT A GITHUB REPO ####
#### https://github.com/tusing/unicorn_phat ####
#######################################################
#!/usr/bin/env python
# Display a list of user-defined color bars;
# fill the remaining area w... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
2301af008976fde42176705242bac2e43f6e3771 | 6f73053e9c5a8bb40f34dd12a9a000ad3ca84f1f | /exchange/libs/event_emitter.py | cd93d0424e6ee51ed63efd71d65c43c385e0d644 | [] | no_license | Bizilizi/python-crypto-exchange | 9610857580b5c0239a9cbd778246c65e693a8d31 | 9eef1641e8cc04a7b3922447b05c04e37268187b | refs/heads/master | 2022-12-01T14:28:28.819215 | 2020-08-14T06:26:37 | 2020-08-14T06:26:37 | 287,306,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,733 | py | from __future__ import annotations
import abc
import asyncio
import inspect
import typing as t
from .flow import in_memory_flow
if t.TYPE_CHECKING:
from .flow import Flow, Fork
class Comparable(t.Protocol):
def __eq__(self, other: t.Any) -> bool:
...
EType = t.TypeVar("EType", bound=Comparable)
E... | [
"ewriji@airlab.team"
] | ewriji@airlab.team |
12ad1a02b2450bb3663044ef6246c0d0947bec5f | 0ed7fa8dda9d692f8c85bf6c93f4e63124fcf90b | /speg/position.py | f9222d738c138b8367b90d168584ff937f13f4ff | [
"MIT-0"
] | permissive | avakar/speg | 95866e580a5627ac4c710dbbbf3eaeabda317192 | 877acddfd5ac5ae8b4a4592d045e74e108477643 | refs/heads/master | 2023-03-17T12:01:34.766183 | 2018-08-19T20:16:41 | 2018-08-19T20:16:41 | 46,519,449 | 2 | 2 | null | 2018-06-20T18:44:10 | 2015-11-19T20:48:30 | Python | UTF-8 | Python | false | false | 1,360 | py | from functools import total_ordering
@total_ordering
class Position(object):
def __init__(self, offset=0, line=1, col=1):
self.offset = offset
self.line = line
self.col = col
def advanced_by(self, text):
text_len = len(text)
offset = self.offset + text_len
nl_po... | [
"vejnar.martin@gmail.com"
] | vejnar.martin@gmail.com |
0d91ac265f2efc25902758f309817b33515a272f | ddd466457316662a1455bae429740eb3c8411444 | /python_bbq/Project_Modules/my_modules/vsearch.py | 967205eb40ea9f80675e763743fca62f37bad6f8 | [] | no_license | fingerman/python_fundamentals | 9ef46e51d6e9b8328e9c949fa0f807f30bd6e482 | 1fb604220922530d1171200a3cf3a927c028a6ed | refs/heads/master | 2023-01-09T12:02:26.712810 | 2020-01-22T16:12:32 | 2020-01-22T16:12:32 | 151,728,846 | 0 | 0 | null | 2022-12-27T15:34:12 | 2018-10-05T13:58:10 | Python | UTF-8 | Python | false | false | 318 | py | #################
def search4vowels(phrase: str) ->set:
"""Return any vowels in phrase"""
vowels = set('aeiouAEIOU')
return vowels.intersection(set(phrase))
def search4letters(phrase: str, letters: str) ->set:
"""Return letters found in string"""
return set(letters).intersection(set(phrase))
| [
"adamov.george@gmail.com"
] | adamov.george@gmail.com |
822df2d0e10c6ae5a245ed3b8a4fbb0b6b242884 | 71fec15a7b758c05f6749081d636a4a70ec159dd | /server.py | a5d443dd66c147ed8c3126f6ce957f3bd96207b2 | [] | no_license | clauxx/terminal_chat | e5b9f128d3e44f76c90fd6a00fb6f54ea533f32f | 820a1eb9af75879237236eeb1efd37442918ac5d | refs/heads/master | 2021-01-13T05:17:47.207350 | 2017-02-15T15:21:34 | 2017-02-15T15:21:34 | 81,321,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | import re
import socket
import time
class Server:
def __init__(self, port=8888):
self.port = port
self.users = {}
self.socket = None
def init_socket(self):
self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
host = self.socket.getsockname()[0]
self.... | [
"cristian.lungu@hsrw.org"
] | cristian.lungu@hsrw.org |
fbf3880115b9c73fd35049960a201e9665ec6096 | 34ea39dbc91e339a61b9b301a127e34f29e559cd | /선형 자료구조/배열/Problem10_array-partion-i.py | 6ccd4582a060bef9b32aa3c704ecafec91d3aa27 | [] | no_license | miniii222/PythonAlgorithm-Interview | 402ed56df7e6c090451d49d3629f4927073d40d5 | a6aee1a7d00e2d428b7a8d8d2e83d492de269359 | refs/heads/master | 2022-11-29T20:08:55.767986 | 2020-08-17T08:33:15 | 2020-08-17T08:33:15 | 284,401,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | #https://leetcode.com/problems/array-partition-i/
#출처 : https://github.com/onlybooks/algorithm-interview
#Solution : Pythonic Code
def arrayPairSum(self, nums: list[int]) -> int:
return sum(sorted(nums)[::2])
| [
"noreply@github.com"
] | miniii222.noreply@github.com |
27b818820f40ca578641b9ba891ac3ab278efebf | 22af28d4b78599b6d105aec6b6e1c4fde3eadac7 | /demo/settings.py | b702359d6a09562976d93813bda320879db1c5d5 | [] | no_license | JohnnyFang/celery_django | fe1a11885fab2b5cd4fcadf8be873d48268ce9b7 | 1bb79ef87c1bc3d6611c5372b3aa5f14fb5ecec6 | refs/heads/master | 2021-08-08T05:21:05.048664 | 2017-11-09T16:45:29 | 2017-11-09T16:45:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,628 | py | """
Django settings for demo project.
Generated by 'django-admin startproject' using Django 1.11.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
#... | [
"formatcomvinicio@gmail.com"
] | formatcomvinicio@gmail.com |
1a379c9bd7da175c9e0947adbcc3615b16118880 | 8a5ab31bc017747607847b36a409cb0e8b74fdbb | /downloadImage.py | c3e31e6ef48b97d74cfb245022b733f6d13e8e9f | [] | no_license | talentneptuner/weibo_tr_clawer | 7b341ae243749810a4148169f3ee39b995c03101 | ebe1d6065791793a295bfd2315406983ff6529d4 | refs/heads/master | 2021-07-07T09:44:51.753047 | 2020-10-28T13:00:05 | 2020-10-28T13:00:05 | 193,014,701 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | import pymysql
import urllib
import time
if __name__ == '__main__':
conn = pymysql.connect(host='192.168.22.241', port=3306, user='my_admin', passwd='Alex19900807.',
db='yibin_earthquake',
charset='utf8mb4') # 基本的本机MYSQL配置
sql = 'select id,mid,img_... | [
"talentneptuner@163.com"
] | talentneptuner@163.com |
db7831fb24e67bf4245437ef891c3154a6b6f4ce | 856728b53544deb7b7f6c10e1570b601c1a2ba46 | /pages/views.py | 95f58c59fbf469dd59bcd22773f4c069a97353bb | [] | no_license | mangakid/django-real-estate-tutorial | ccfd8b173276f39d7c7f32d96ee4372bb4fdc707 | e2cbc1cc08dc974a09cf8d9ba73f68806a9a7300 | refs/heads/master | 2020-04-20T22:21:26.839603 | 2019-02-04T19:42:07 | 2019-02-04T19:42:07 | 169,137,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | from django.shortcuts import render
from django.http import HttpResponse
from listings.choices import price_choices, bedroom_choices, state_choices
from listings.models import Listing
from realtors.models import Realtor
def index(request):
listings = Listing.objects.order_by('-list_date').filter(is_published=True... | [
"8886696+mangakid@users.noreply.github.com"
] | 8886696+mangakid@users.noreply.github.com |
4e43a1bf78ffedfac56d93899a6ca1fc7ca7e535 | 59db7f70000486c72e9fb6f6e67102f64e028022 | /replace_to_make_regular_bracket.py | d95382c41cbb4cb72ab8f3b0e3c7eb855321c2ba | [] | no_license | PritiGiramkar/Code-Forces-Coding | 77e9abdea634747b1a72cb501081db4f5a7c7f7c | daf4e1db03ae0af0fb955e3c0866c0f97267bfdf | refs/heads/main | 2023-05-31T10:34:05.698149 | 2021-06-23T16:46:04 | 2021-06-23T16:46:04 | 379,667,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | str1=input()
ls={'(':')','{':'}','[':']','<':'>'}
str2=[]
cnt=0
flag=0
for i in str1:
if i in ls:
str2.append(i)
else:
if len(str2)!=0:
if ls[str2[-1]]==i:
str2.pop()
else:
cnt+=1
str2.pop()
else:
flag=1
break
#print(cnt)
if len(str2)==0 and flag==0:
print(cnt)
else... | [
"noreply@github.com"
] | PritiGiramkar.noreply@github.com |
96705adc78d0df97195fbd2bec5f447c45cab3aa | a6b685845e5db8fd3ec476fabff2928378e291a1 | /modulos_sopa/Configurar_juego.py | 4c4b9a6785b1b9221971256b80194321b24357b9 | [] | no_license | KaitoKurogami/TrabajoPython | befc5d8e4797edd636d6d91676a1990d330a673d | 2a87424cb8a0867d66334b4a646e6c7eb5103ae3 | refs/heads/master | 2020-06-06T15:34:04.452046 | 2019-07-29T00:00:59 | 2019-07-29T00:00:59 | 192,779,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,254 | py | import PySimpleGUI as sg
import os
import json
ruta_app = os.getcwd()
from modulos_configurar import modulo_colores as mc
from modulos_configurar import modulo_palabras as mp
def Configurar(reporte_pantalla,dic_config):
'''
recibe un diccionario como estructura base para los reportes en pantalla
y un diccionario... | [
"andresmgr@gmail.com"
] | andresmgr@gmail.com |
c226692fab8359ef902f651b3a8ebccade940686 | f8acc7aa41f0eea25ae4f157c3cd5e6990ce98d9 | /tests/metrics/test_stats.py | 71260c0b3405feefbe08169ab4bb3b2fb97290ce | [] | no_license | lucarios1701/confluent_kafka_helpers | 4878cb7b0657c19b1db245819dd317bd25416db1 | f9a66e6d9f2bd905310db7d4be9187337a141fd5 | refs/heads/master | 2022-04-27T07:51:04.302004 | 2020-04-28T10:03:17 | 2020-04-28T10:03:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | import json
from confluent_kafka_helpers.metrics.stats import StatsParser
stats = {
'brokers': {
'b1': {
'name': 'b1'
}
},
'topics': {
't1': {
'topic': 't1',
'partitions': {
'p1': {
'partition': 'p1'
... | [
"simon.wahlgren@fyndiq.se"
] | simon.wahlgren@fyndiq.se |
00fd5b9ab4abff6d0f54ce71b3a70d669846407c | 2297cd589424cb2326b7d919d2899382e7e1b7e2 | /setup.py | 7d48f94fcf00abe4487b119042015b0a630536e9 | [] | no_license | charlmert/restify | 2492fd2781def6b6c4b6a71dc05e4918e23eda5b | 850c272f93efdcba8750bd13de8b8684e8f18428 | refs/heads/master | 2021-01-10T19:10:46.467986 | 2013-01-29T16:38:46 | 2013-01-29T16:38:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 John Paulett (john -at- paulett.org)
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
from distutils.core import setup
import restify as _restify
imp... | [
"charl.mert@gmail.com"
] | charl.mert@gmail.com |
e6ee973cf07efc51bd8ba452a6628918bba1b744 | eb9549901447a2a990afd496feefe187ab943fe5 | /diofant/tensor/array/tests/test_arrayop.py | e1566ca469838d33635250127cf31c04a0f4300b | [
"BSD-3-Clause"
] | permissive | Blendify/diofant | 9d81891a0ade4fb2f19ef0462d1932d09800e746 | 4f88083494cbe04a02ae92ec1a6b66d29f57b06d | refs/heads/master | 2020-04-01T02:30:07.942059 | 2018-10-12T10:13:04 | 2018-10-12T10:13:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,205 | py | import random
import pytest
from diofant import (Derivative, Permutation, adjoint, conjugate, cos, exp,
log, sin, symbols, transpose)
from diofant.abc import (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r,
s, t, u, v, w, x, y, z)
from diofant.combinatorics.permutat... | [
"skirpichev@gmail.com"
] | skirpichev@gmail.com |
34cb64dc2d013efe0f40e5007b684dc7c638e017 | fe059d3433d5d5b7d12521d51903c3472c9cac76 | /source/show and tell- raghava/scrap.py | 0ee8037fc9941b0ebf518efa199e722ce30d3851 | [] | no_license | gt784/BDA_Project | a32487ba131cbb5e826ae8e9e5d1f7e926d2ee30 | 5ec76340473218847258c4c9e8257c16f19383e9 | refs/heads/master | 2021-01-22T21:32:54.460355 | 2017-05-10T21:38:48 | 2017-05-10T21:38:48 | 85,436,282 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | import nltk
from nltk.corpus import brown
print(brown.words()) | [
"noreply@github.com"
] | gt784.noreply@github.com |
df2be2d4f3a8c1d67dcb29bf830dcc3f5089e1ce | bfe48084578811546c1a7ca57f5efe25876eb329 | /nlb_private_ips_finder/nlb_private_ips_finder.py | 019dfedbcb6edb9cb1cf36c868bf0cb3b3e701bc | [] | no_license | juanma-cvega/aws-nlb-alb-bridge | 7709a572c57449582db084cd8f871737895ed676 | d04cbc4ba0e277b7cc0ccf61384bb4bcb2a7fb7b | refs/heads/master | 2020-06-01T10:41:33.997858 | 2019-06-17T09:28:36 | 2019-06-17T09:28:36 | 190,752,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,702 | py | import boto3
import cfnresponse
DEFAULT_LISTENER_PORT = 80
def lambda_handler(event, context):
success = True
data = {}
try:
if event['RequestType'] == 'Create' or event['RequestType'] == 'Update':
print(event['RequestType'] + " resource using NLB private IPs")
nlb_descri... | [
"jmcarnicero@ippon.fr"
] | jmcarnicero@ippon.fr |
4ae945987b421ac692ec0423dac58906391d3383 | 35d69a44d0cecdd54c4ae92c721d0363b09481b5 | /Preprocessing.py | 77025db5655c1b5658b3daea7d3508dbfec4df36 | [] | no_license | CleverCracker/Quantum_Image_Based_Search_Engine | c9ac5da4a4ae2b38afc1b01e74323fd271f5b384 | 42baeb62714d685a011213fe209cab208154e301 | refs/heads/main | 2023-09-05T13:03:36.715114 | 2021-11-15T07:10:55 | 2021-11-15T07:10:55 | 428,158,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import numpy as np
from PIL import Image
def image_normalization(imagePath, w=32, h=32):
image = Image.open(imagePath).convert('LA').resize((w, h), Image.ANTIALIAS)
image = np.array([[image.getpixel((x, y))[0]
for x in range(w)] for y in range(h)])
# 2-dimentional data convert to 1... | [
"clavercracker.gul@gmail.com"
] | clavercracker.gul@gmail.com |
07e306d29db8b59bc2a35ebb4973c20087b9075d | daad6e0af15f4fd0171808fb068e5d8e3faab42a | /examples/examples/settings.py | 90538f8d7647a6ec0b52643764b431d6e4b3d1e2 | [
"MIT"
] | permissive | Captricity/drf_openapi | 0f40dd45890f5db952bd9300e90e3ca0720a9a7b | 55788a816638a08315d62ac81f045330404e7baf | refs/heads/master | 2021-01-21T04:25:26.529516 | 2017-09-26T03:54:19 | 2017-09-26T04:21:43 | 101,911,666 | 0 | 0 | MIT | 2020-11-19T20:26:08 | 2017-08-30T17:47:34 | Python | UTF-8 | Python | false | false | 3,255 | py | """
Django settings for examples project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import o... | [
"limdauto@gmail.com"
] | limdauto@gmail.com |
bc2bc3ac824de42c2f0dedfef8bd25dec0d3f0b1 | ed3a6c06014a8ef47a19eec2679cbae541685308 | /bot1.py | 3c59c7e5c7a3b7a3a6cac31a1c966c832cda6472 | [] | no_license | brianpaul-99/CPS847_Group10_Assignment1 | 594f253b1ab658554f90da16be82cfad9411985a | 4a5528b5a9e0949253ed53be006b9c376595bfb0 | refs/heads/main | 2023-02-27T15:09:55.328603 | 2021-01-31T21:24:39 | 2021-01-31T21:24:39 | 333,554,616 | 0 | 0 | null | 2021-01-31T21:24:40 | 2021-01-27T20:42:38 | Python | UTF-8 | Python | false | false | 1,265 | py | import slack
import os
from pathlib import Path
from dotenv import load_dotenv
# Import Flask
from flask import Flask
# Handles events from Slack
from slackeventsapi import SlackEventAdapter
# Load the Token from .env file
env_path = Path('.') / '.env'
load_dotenv(dotenv_path=env_path)
# Configure your f... | [
"noreply@github.com"
] | brianpaul-99.noreply@github.com |
92ff7182a4b2fd9d5bde25f42bbb76dbbf40fc54 | 9a61fc626d17994d77da478cfbde0d2c34ae2be7 | /03_Django/03_django_crud/articles/urls.py | 9773dfc02c72df49bd61813f940a144c6a89fa57 | [] | no_license | EUNS00/TIL | 96679db3344d6bd6de60c118dc9de51d4b6b28ea | 71c523406b856f68e10a32be06f837c20e3b3a06 | refs/heads/master | 2023-01-12T21:10:30.192150 | 2020-07-29T00:29:00 | 2020-07-29T00:29:00 | 195,937,989 | 1 | 1 | null | 2023-01-07T11:37:10 | 2019-07-09T05:22:44 | Python | UTF-8 | Python | false | false | 162 | py | from django.urls import path
from . import views
#6.
urlpatterns = [
path('', views.index),
path('new/', views.new),
path('create/', views.create),
] | [
"leeus5629@naver.com"
] | leeus5629@naver.com |
76419b2d98032140f8459c4ccf1b355a8b3e1356 | 71cb5d016dcb34f975dbea4c28ad08d2ec80e297 | /your order, please.py | 89d5cb6321ed06cc6fee2646db1ae2632ec0794e | [] | no_license | viliam-gago/codewars | 87e3eb5bee2eddcef041a2d17e6089eb006c395d | 58a3d6ad406ff3693e2fd188dddbdf754a35aba3 | refs/heads/master | 2020-12-19T18:24:14.150932 | 2020-06-19T12:56:45 | 2020-06-19T12:56:45 | 235,813,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | def order(sentence):
if sentence:
sentence = sentence.split(' ')
ordered = list(range(len(sentence)))
for word in sentence:
for letter in word:
if letter.isnumeric():
ordered[int(letter) - 1] = word
return ' '.join(ordered)
re... | [
"viliam.gago@seznam.cz"
] | viliam.gago@seznam.cz |
12885ff9e784ef9753b4fc2fb746d103ddf42031 | fd55bb02402691c90bc39ad4b1f8785e7f3a95ba | /4. Ingestion/PyCompute/main.py | f541469292448b092bc66dc701a0455c42466c08 | [] | no_license | Manju2012/bootcamp | 5c3e4ee06ba279a1efb57501b8647f1cee0c37ea | 4faaeb0493fa5300a28e397478e196432995c761 | refs/heads/main | 2023-09-06T09:18:06.708130 | 2021-11-19T06:08:58 | 2021-11-19T06:08:58 | 429,685,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | import psycopg2
import datetime
import os
from google.cloud import bigquery
import pandas as pd
import pandas_gbq
import pytz
import logging
import google.cloud.logging
def use_logging_handler():
clientlogging = google.cloud.logging.Client()
clientlogging.setup_logging()
text = "DAtaframe Generated"
logging.info(... | [
"naganurprasad@yahooo.in"
] | naganurprasad@yahooo.in |
b298ca299bd394996aa7361a70c57d92b2062222 | eb42bf62df4d668eb0c509f026888f1010998afd | /src_clean/util_clean.py | aab119580f0aebc540d6502f81b02f4cab898bf4 | [] | no_license | Tar-Telperien/Spring2020_LowResourceNLP | 04c6d652e1d26297273c771598701230041690de | b6f364d7e1485f45e1d5ab20ac1bf8becf352959 | refs/heads/master | 2023-02-06T18:54:21.508746 | 2020-12-22T17:46:31 | 2020-12-22T17:46:31 | 274,702,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,317 | py | import logging
import math
import os
import random
import string
import sys
import time
from collections import defaultdict
from dataclasses import dataclass
from datetime import timedelta
from enum import Enum
from functools import partial
from typing import List
import numpy as np
from torch.optim.lr_scheduler impor... | [
"venicapiea@verizon.net"
] | venicapiea@verizon.net |
ff173730fa93fe66232ab20004d4e2e0af9d20d3 | 8dc7902014a01cce4220cde2b7bd5dd8044251b4 | /app/models.py | b4f8dd82fb46659177f42c08b0b3a77e54bb5cc2 | [
"MIT"
] | permissive | parkerws/FishTips_Flask | a3817743deaf29a9e6581da828f469b4f6dd8e5d | 481faea8f507999c534cd791cd43744ddb6c3c55 | refs/heads/master | 2023-02-15T05:18:54.125627 | 2020-12-23T03:40:48 | 2020-12-23T03:40:48 | 322,951,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | from datetime import datetime
from time import time
from app import db, login, app
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from hashlib import md5
class User(UserMixin, db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Colu... | [
"parkerws3824@gmail.com"
] | parkerws3824@gmail.com |
2a13aeb2fd4c1a9cb591b2a62d8e3e9831e5503e | 82884dc7208e9c0a25eb1211daeda9c944cfd331 | /handlers/users/ten_minutes_meet.py | 5afd55bdca4b896545426e34a069aa99b7db713a | [] | no_license | gradinarnn/telegram_bot | 081100e22b6775f56d5fea8e88a21dac4640f15e | 19d1cc20450cafc58d03239cf7263088543585d1 | refs/heads/master | 2023-08-06T01:07:25.665283 | 2021-09-14T07:06:50 | 2021-09-14T07:06:50 | 380,561,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | from aiogram import types
from aiogram.dispatcher import FSMContext
from aiogram.dispatcher.filters.builtin import Command
from keyboards.inline.callback_data import change_meeting_status_callback
from keyboards.inline.inline_buttons import one_button
from loader import dp
@dp.message_handler(Command("fast_meet"))
a... | [
"gradinarnn@gmail.com"
] | gradinarnn@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.