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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5d0c0e70a2c52249e45511283e53cdf7c94a047d | 4fbf061b645ce1b0e493072c5b5f71e39ba94315 | /4. Median of Two Sorted Arrays.py | 7155e2ad0b73acf38b5075c619548a326abdaaad | [] | no_license | chenshenyuan/leetcode | 2bc6442be3a693b7838da44b15c98f77ba414611 | 1d1bf79ed85218999038e5d661cb7fba508520b1 | refs/heads/master | 2021-04-12T06:30:21.079965 | 2017-09-27T03:22:42 | 2017-09-27T03:22:42 | 94,503,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,532 | py |
# check if two list add to odd number elements list
def sum_as_odd(a, b):
total = len(a) + len(b)
if total % 2 == 1:
return True
else:
return False
# find out the index needed, 2 index for odd
def find_target(list1, list2):
target_index = []
len1 = len(list1)
len2 = len(list2)
... | [
"chenshenyuan1990@gmail.com"
] | chenshenyuan1990@gmail.com |
9a0dea09a403ff056bcb820328729f83c27e4587 | 9c93bc66ad54af85580c4238ec332d85200218e6 | /smartapi/migrations/0013_auto_20210414_1638.py | 1a956b6beb54317687dda4632e5f5226c0eacc73 | [] | no_license | andoedo94/smartdjango | ce01876389327cc31d36bf62796d9259c4a7ecb2 | bf0dfff2596be79faec1868fda9702e9d5f74f44 | refs/heads/master | 2023-05-10T22:53:12.222675 | 2021-06-02T02:33:58 | 2021-06-02T02:33:58 | 372,676,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # Generated by Django 3.1.6 on 2021-04-14 21:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('smartapi', '0012_tweet_tweet_id'),
]
operations = [
migrations.RenameField(
model_name='usertweet',
old_name='usuarios_id',
... | [
"eduardoandrespaternina@gmail.com"
] | eduardoandrespaternina@gmail.com |
2b9acdd2649c3b8ede22e1943f256787fcb0885d | 183ae402622e1455f4f0be497880a8d33eeb9878 | /env/bin/python-config | 4a487edef71dfbe470a7f3fb92872332f72a8912 | [] | no_license | techtona/new_django_app | ce1ad653e6a590b4ff71bd029ff05dcd1232c1ba | 03bcf00b468eec65b2b578116d1f29a3dc964310 | refs/heads/master | 2021-01-21T10:34:28.634135 | 2017-02-28T16:46:29 | 2017-02-28T16:46:29 | 83,456,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,350 | #!/home/techtona/projectDjango/env/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.version_i... | [
"jati.pikukuh@mail.ugm.ac.id"
] | jati.pikukuh@mail.ugm.ac.id | |
527865cd7b30fbf8bdca663552d18ccf1eb46c6e | 80244a37a7ec09d7e7fd508276ec72d428950e50 | /2_class/2_class_predict_ndpi.py | 25060ae20134fc0dbcfd050967bc34e23ef44871 | [] | no_license | flying-zfy/Lung_animal_model | 786f92f7e837993f6be1d95742a9217c03787cd5 | 597e0d0279c9a9069cacb01e2938223e2249fd70 | refs/heads/master | 2021-04-13T19:09:39.476612 | 2020-03-24T11:01:22 | 2020-03-24T11:01:22 | 249,180,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,137 | py |
"""
@author: zhaofy
"""
from __future__ import division
import openslide as opsl
import numpy as np
import cv2
import os
from skimage import io
from keras.models import load_model
import tensorflow as tf
import matplotlib.pyplot as plt
from tqdm import tqdm
import glob
import stain_utils as utils
import stainNorm... | [
"392463738@qq.com"
] | 392463738@qq.com |
58205aed50d630a346507a27cda6b8736cc96800 | 5ddea065e9d4ef251be6376eaf9ba67810dfd08a | /rfSchema.py | dc53e848bad992c111e86dfe021b00785c4763b9 | [
"BSD-3-Clause"
] | permissive | nimo1491/Redfish-Interop-Validator | cd106ce4d860a622f68848cfb4f6433a99cd9bbe | 05f58c0fbebcb5c5835c00b50ed1f66189a4870c | refs/heads/master | 2020-05-16T10:16:39.311443 | 2019-04-24T07:23:01 | 2019-04-24T07:23:12 | 182,977,992 | 0 | 0 | null | 2019-04-23T09:11:39 | 2019-04-23T09:11:39 | null | UTF-8 | Python | false | false | 39,574 | py | # Copyright Notice:
# Copyright 2016-2018 DMTF. All rights reserved.
# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-Interop-Validator/blob/master/LICENSE.md
from collections import namedtuple
from bs4 import BeautifulSoup
from functools import lru_cache
from collections import... | [
"tomas.g.2012@gmail.com"
] | tomas.g.2012@gmail.com |
57ef82412c8a9413d3ccc8095f0f5d21c99f0814 | 6697e41e91090f0eec532d46abd1415930130e7f | /sub.py | 076e7e2c2d8703b4940dcbb0aa77962b6174df4f | [] | no_license | vaishcan/math | 019fd59ad091874c9ebb3fdf79586ed04f12bd89 | a814475c2e7c9669b79683931533f03db624e2c4 | refs/heads/master | 2021-01-11T17:21:32.023432 | 2017-01-23T01:38:47 | 2017-01-23T01:38:47 | 79,759,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,763 | py | #!/usr/bin/python
from random import randint
from datetime import datetime, timedelta
import time
import sys
(correct, wrong, tottime)=(0,0,0)
MAXQUESTIONS=30
FILENAME=".reports/subtractionsreport.txt"
##if (len(sys.argv) > 1):
# MAXQUESTIONS=int(sys.argv[0])
#print MAXQUESTIONS
#exit()
def genReport():
d = datetim... | [
"vaishvan@outlook.com"
] | vaishvan@outlook.com |
6674da9d098fafc27683b5faa3cb173b173dca4f | 437c29e53f2c20d41b134b6f49e2abb15da7f48a | /tama.py | 263bb1e405829d060cb4a25cc153fa049d3ccd13 | [] | no_license | messyv/classwork | fe170f8ba2c60e0734618dad9417b26f951b950b | e7ea8ae4da31d94822faa29299e0d6c3e72508e2 | refs/heads/master | 2022-12-28T11:25:27.551237 | 2020-10-19T17:16:31 | 2020-10-19T17:16:31 | 296,388,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py |
szomjas = 0
ehezes = 0
cmd = ''
while cmd != 'vége':
cmd = input("Tamagochi:")
ehezes += 1
if cmd == 'etet':
ehezes -= 7
if ehezes > 7:
print("Éhezem!")
szomjas += 1
if cmd == 'itat':
szomjas -= 7
if szomjas > 7:
print("Szomjazom!")
if ehezes > 10:
print("Meghaltam.")
cmd = 'vége'... | [
"noreply@github.com"
] | messyv.noreply@github.com |
dbffe0154bc07e3e8416502de5c23ab330d083b1 | 7b60c00eb1a45fb8fb58aefaf786a5c29700ed7e | /payment_gateways/migrations/0010_auto_20180828_1359.py | 8d6ce36b12732ee6fe2536c64631d11c09c2feff | [] | no_license | kshutashvili/mfo | 521b126146b7582ca6b56bc6bb605f4aee79dfc2 | 663662dd58ee0faab667d5e9bb463301342cb21a | refs/heads/master | 2022-12-15T20:00:44.759395 | 2019-06-23T17:06:13 | 2019-06-23T17:06:13 | 203,863,751 | 0 | 0 | null | 2022-11-22T02:24:17 | 2019-08-22T19:56:43 | Python | UTF-8 | Python | false | false | 992 | py | # Generated by Django 2.0.2 on 2018-08-28 10:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('payment_gateways', '0009_auto_20180828_1259'),
]
operations = [
migrations.AlterModelOptions(
name='city24payment',
... | [
"phonxis@gmail.com"
] | phonxis@gmail.com |
253e032a7578b0693751dc6c07b7ec26f2937f27 | 3fe96227e910eb3ef13b80ded266da924d32cb86 | /pump/main/models.py | 26fe322b093b7cff7fe553bf16ab51637c5d9dc2 | [] | no_license | akingon/pump | b974054c54d12b8efa644a161e3ab9acb9b82601 | 6ce07a9b3faf7e1ed97062f854f57624a896e8a7 | refs/heads/master | 2021-01-18T06:32:25.974631 | 2015-05-01T14:27:22 | 2015-05-01T14:27:22 | 31,909,188 | 0 | 0 | null | 2015-03-09T16:18:46 | 2015-03-09T16:18:46 | null | UTF-8 | Python | false | false | 3,054 | py | from django.db import models
from django.template import Context
from django.template.loader import get_template
from .criteria import Houghton, ABC, PassFail
class Response(models.Model):
added = models.DateTimeField(auto_now_add=True)
# Houghton
q1 = models.TextField(blank=True, default="")
q2 = mod... | [
"anders@columbia.edu"
] | anders@columbia.edu |
5fde33f81980c6a116e4ad56f66585cead51eb71 | 3477093df6f27c9a0ae27e05462b832a43c6fbf5 | /basic-python/docstring.py | 8ff6fbff8e87d80a9a18f0e5354c3ea9c4bae447 | [] | no_license | giabao2807/python-study-challenge | d18d320471c8577d26f44f9afa804494549fd078 | b88dd3bde351d7c0e955c71912572b2c20a54b36 | refs/heads/master | 2023-08-17T23:29:45.188611 | 2021-09-22T14:24:45 | 2021-09-22T14:24:45 | 402,494,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | def sum_range(start: int, stop: int, step: int = 1) -> int:
'''Tính tổng các số trong khoảng [start, stop)
start: giá trị đâu khoảng
stop: giá trị cuối khoảng
step: khoảng giữa hai giá trị liền nhau
'''
sum = 0
for i in range(start, stop, step):
sum += i
return sum
sum_range(1, ... | [
"102190252@sv1.dut.udn.vn"
] | 102190252@sv1.dut.udn.vn |
2a88a53564e857628d4d08aa866a03296d356443 | f0096d7c8d73593a6796b3790a769d8515b25791 | /ASOS/Crawl_Product_url.py | 8bc61727fc937f63ed01854072f9f5affea8ad69 | [] | no_license | wannahavetattoo/crawl-selenium | d8e7739c2fcf45313ed53363acfe87a05e23caf2 | f2718bd1d56771cfc4b31308f8ae129ee8694050 | refs/heads/master | 2021-03-01T10:01:23.293875 | 2020-03-08T09:13:52 | 2020-03-08T09:13:52 | 245,775,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,937 | py | '''
Created on 2016年10月11日
Crawl product url.
Entrence: the 1st layer of categories.
@author: Administrator
'''
from selenium.webdriver.support.ui import WebDriverWait
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
... | [
"llz@llzdeMacBook-Pro.local"
] | llz@llzdeMacBook-Pro.local |
840164d5a14a0caf4c19930e425304128403178c | 41ede4fd3bfba1bff0166bca7aee80dcf21434c6 | /suvari/gtk2chain/reverses2/libgsf/actions.py | a7de56c2638edd3d8d8dcf8cb916ee27fd666874 | [] | no_license | pisilinux/playground | a7db4b42559a21cc72fd4c8649e0231ab6a3eb3c | e4e12fff8a847ba210befc8db7e2af8556c3adf7 | refs/heads/master | 2022-08-12T23:03:27.609506 | 2022-08-11T18:28:19 | 2022-08-11T18:28:19 | 8,429,459 | 16 | 22 | null | 2022-08-11T18:28:20 | 2013-02-26T09:37:11 | Python | UTF-8 | Python | false | false | 678 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.configure("--disable-static ... | [
"suvarice@gmail.com"
] | suvarice@gmail.com |
4579354e9fef8529b99b4ddb1052d47e9dd7a0a4 | a1cfa30e706c284d97b7343a9dc4350629ee7c1a | /dataParser/dataParser/settings.py | 4c09a2a1beb2a716cb85645dab4d3a78ea4aa588 | [] | no_license | ssg1990/MySpider | 71356378d599f8622fd0eacb6fd89f6bdee3db9e | 8fcd664845b5fa4417d4bed13e35a0c78bef8f12 | refs/heads/master | 2021-01-01T06:53:16.970677 | 2017-07-18T02:14:16 | 2017-07-18T02:14:16 | 97,541,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,540 | py | # -*- coding: utf-8 -*-
# Scrapy settings for dataParser project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/lat... | [
"dawn@xmind.org"
] | dawn@xmind.org |
6356e396e1f06ad96c207c3352e9b02ce7c69163 | 95be1f0ae00227c465f5d290f15f27ac623b273c | /DecisionTree.py | 8f1845082949eeacd9dfd0a6fa94060cf040c6ac | [] | no_license | kaushiknk98/Decision_Tree_From_The_Scratch | 653b1b004043c1451d86fe238185f587da912b93 | dfd1a3ad3cd7c18cc29e5d2968068c4673092cd1 | refs/heads/master | 2020-09-01T02:59:29.489320 | 2019-10-31T21:22:19 | 2019-10-31T21:22:19 | 218,864,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,500 | py | from __future__ import print_function
import math
def unique_vals(rows, col):
"""Find the unique values for a column in a dataset."""
return set([row[col] for row in rows])
def class_counts(rows):
"""Counts the number of each type of example in a dataset."""
counts = {} # a dictionary of label ->... | [
"32977878+kaushiknk98@users.noreply.github.com"
] | 32977878+kaushiknk98@users.noreply.github.com |
154cf1797ba703fb75d04a85b23575cf6b70617e | d78b5efbd65cb569d090a069e2ec9f6dadf28072 | /mac/shop/migrations/0003_contact.py | 9a0096be173286301254e3a097e2518cda8298ad | [] | no_license | shivamkcodes/myawesomecart | b45b0ab11595c7a6425918a7920b5812caff30e6 | c0fedbc31323c1224d81b9af2afe621af78a89ff | refs/heads/master | 2021-01-04T09:42:21.307516 | 2020-02-14T11:48:45 | 2020-02-14T11:48:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | # Generated by Django 3.0.2 on 2020-01-12 11:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0002_auto_20200112_1505'),
]
operations = [
migrations.CreateModel(
name='contact',
fields=[
... | [
"shivamguglani306@gmail.com"
] | shivamguglani306@gmail.com |
2bde280bff0c8dae04a48e9d42a834501d6d9a3b | 59a244c6dd813ee8d1aa8f6b5b97884441cb1ccc | /AccessControl/urls.py | c9c347a2e358a875fd2c2fc902ea29ccb66f8014 | [] | no_license | VinayakShukl/AccessControl | 449c498bc0543a2599d72314d0dea331179d500f | ad23b51867c1c4a1e1c099cda9c2782d4b541002 | refs/heads/master | 2016-09-05T19:19:28.167509 | 2013-12-15T14:10:07 | 2013-12-15T14:10:07 | 13,715,224 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include... | [
"vinayak11118@iiitd.ac.in"
] | vinayak11118@iiitd.ac.in |
a6155469c7847c6cf0ccc2729c4d9592933d03f9 | b634d405072b2013e47d5fdfb585807695acd276 | /work1-mapprocess.py | c3632a40f1b018ecfdaf05f0c3e5d97beec8fbfa | [] | no_license | uvcyclotron/miniDEM | 0f902db23936eb603457d4c90b899e38742b8d89 | 3097339a8448fcd1228dcf8de6424043ea7c3c6e | refs/heads/master | 2021-01-23T07:26:05.477495 | 2014-04-24T20:52:25 | 2014-04-24T20:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | '''
Assignment for the Multimedia Project
Utkarsh Verma
2011A7PS137P
Map Image Processing Module
'''
from __future__ import print_function
import numpy
import cv2 as cv
from matplotlib import pyplot
import json
from colorama import init, Fore, AnsiToWin32
import sys
#load the contour map
img = cv.im... | [
"utkarsh.nvm@gmail.com"
] | utkarsh.nvm@gmail.com |
7879ca81348c624f31155cb54edc381e6820a388 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02602/s085786581.py | 99dcc1901822553bf70ab6c5531a4412172e6f36 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | n, k = map(int, input().split())
A = list(map(int, input().split()))
for i in range(k, n):
if A[i-k] < A[i]: print('Yes')
else: print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e8f98f81fddd7ab8606cf4a92a637ea8342d3535 | 36c46ac6e19ea611e5ebe5d851c4ea14a3613bf5 | /beets/util/__init__.py | 67a878342bf2ad83e7b2d31fa5431f33bd156803 | [
"MIT"
] | permissive | navinpai/beets | e0fd569f255f3dc642dd431c6e283ae6d095ab42 | 94569a774e8075337f96a071ce77e1df692add98 | refs/heads/master | 2021-01-18T10:42:33.321553 | 2011-08-29T01:25:38 | 2011-08-29T01:25:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,849 | py | # This file is part of beets.
# Copyright 2011, Adrian Sampson.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, ... | [
"adrian@radbox.org"
] | adrian@radbox.org |
856cafc1cb397a949b9b66f141fd903d80ae32a8 | a2b8d3dd6455687d92daa0ef212d09a9a2b09052 | /mySinaSpider/mySinaSpider/spiders/tweetsSpider.py | dbfe588366e2981c8b0933558f0a5d870fb3e33f | [] | no_license | gpf951101/spider | f21a3a9d8f8e6ce180c0c13ca9b7eb63df6cd57d | cd49e4cc7c22fdb37164ced2e2485e05e3082b2e | refs/heads/master | 2020-03-10T20:14:00.409970 | 2018-04-15T01:37:50 | 2018-04-15T01:37:50 | 129,565,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,714 | py | # -*- coding: utf-8 -*-
# @Time : 2018/3/7 18:08
# @Author : gpf
# @Email : gpf951101@163.com
# @File : tweetsSpider.py
# @Software: PyCharm
from scrapy_redis.spiders import RedisSpider
import re
import requests
from scrapy.http import Request
from mySinaSpider.weiboID import weiboID
import dateti... | [
"gpf951101@163.com"
] | gpf951101@163.com |
894470565632c354601a1f2e8da3fe816265ca36 | 7b33d6f68e4b6dc419495858718345a39146dab8 | /bin/todo.py | 0e5515a817c960eb79adea98c5455932943c4c77 | [] | no_license | santiwanti/todobot | 170f4b69b00df4ab695200eb12e5765b61d08310 | 610f529388a3edd196397983e75085a5b90f554f | refs/heads/master | 2021-04-28T17:46:25.542913 | 2018-02-22T17:08:41 | 2018-02-22T17:08:41 | 121,856,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | class Todo(object):
def __init__(self, id_num, description, sender=None, recipient=None):
self._id_num = id_num
self._sender = sender
self._recipient = recipient
self._description = description
@property
def id(self):
return self._id_num
@property
def sender... | [
"santi.dtord@gmail.com"
] | santi.dtord@gmail.com |
01bd0799665e1006b58f2728ebf8ebe9a2ffc11b | 626b32ea3f7d21674e9cd4b09ae95a1bc74100d4 | /src/bls-signatures/python-impl/tests.py | 3f0fc6137cf4c0f1ee2d6f5375634cc24928da99 | [
"MIT",
"Apache-2.0"
] | permissive | tecracoin/tecracoin | f3f61586f7d47adbe97b80244e056284390021e2 | a0c87b9ca21dd3eb58f2ee63ae15418be8d00ccc | refs/heads/master | 2021-08-18T06:09:42.932352 | 2021-07-26T10:37:48 | 2021-07-26T10:37:48 | 195,856,535 | 4 | 8 | MIT | 2021-06-14T12:45:21 | 2019-07-08T17:21:21 | C | UTF-8 | Python | false | false | 13,147 | py | # flake8: noqa: E501
import time
from ec import (generator_Fq, generator_Fq2, default_ec, default_ec_twist,
y_for_x, hash_to_point_Fq, hash_to_point_Fq2,
twist, untwist, sw_encode)
import random
from fields import Fq2, Fq6, Fq12, Fq
from bls import BLS
from keys import PrivateKey, Publi... | [
"peter@shugalev.com"
] | peter@shugalev.com |
76e90a96e1b7f817c4d699069d5ed218591c8132 | ba5fdceae79d7744a18f0bc0424550c937b3a31e | /stories_utils.py | 5ef2ab6b956a478203de790a7c1902ee158e4131 | [] | no_license | AbimbolaObadare/apple_health_analysis | bd70bc0ed3901fec0c6e924967bdea882be2b284 | f537cdebdf338fcb1b920d4e30db5cf0e7959fbf | refs/heads/master | 2023-03-22T20:57:40.812542 | 2020-11-17T23:20:39 | 2020-11-17T23:20:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | import functools
import itertools
import statistics
from collections import namedtuple
from typing import Any, Callable, Dict, Iterator, List, Sequence, Tuple, Union
from intervals import Interval
from utils import csvdict_generator, always_true
MonthlyRunStatistics = namedtuple("RunDurationAndDistance", ("name", "du... | [
"beijingbayou@gmail.com"
] | beijingbayou@gmail.com |
7d5a16b79347dc1a7ab5601542779245f50ac4dd | d4b344780e893a19d44aed51ebfe514c91e920c2 | /aliyun-python-sdk-openanalytics-open/aliyunsdkopenanalytics_open/request/v20180619/UntagResourcesRequest.py | 953b86ca9d42e26feb6484c0520c3745231814fc | [
"Apache-2.0"
] | permissive | WenONGs/aliyun-openapi-python-sdk | 6d164160eac7a8020e3b8d1960d170e08d2c8f23 | b6de95a32030b421665c0833c9d64d92fcaf81c8 | refs/heads/master | 2023-04-28T06:36:51.740098 | 2021-05-17T09:37:00 | 2021-05-17T09:37:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
b439c84adf990acd44f64d602d38e3a94fe18c25 | 8ac37df1a153ae6d0191c82a3176344ea0be8e09 | /functions/windows/CommentView.py | 0f7db6cdf37b2f4afb2e95dca63516f400d60b85 | [] | no_license | rcardo35/Beat-Team-12 | f7993e680b4a9b5331fad671a9e7e3444c0772d0 | 5b01a99e6c141e068e43e1b0e48341987b99257a | refs/heads/master | 2020-09-22T06:33:53.317135 | 2019-10-26T01:12:28 | 2019-10-26T01:12:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'CommentView.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.set... | [
"42951440+bacardiel05@users.noreply.github.com"
] | 42951440+bacardiel05@users.noreply.github.com |
7b5df4dac2143732faee10b0e26a450630d63b0f | 6cfab27a1f3bf5508fce224afddfa5b3e1363f23 | /旅法师文章更新检测.py | 0a0366a3b9ab6db40ed19fbac00e11f35e6fb700 | [] | no_license | FinchChen/bilibili | 95960670a4bc10888b1c0dccc10f2726b9ec72b3 | 1016b822b4ec956503451c5840243c308c5d07ec | refs/heads/master | 2021-04-28T13:11:31.048153 | 2018-03-04T19:48:13 | 2018-03-04T19:48:13 | 122,097,981 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import requests
import time
import smtplib
from email.mime.text import MIMEText
def sendEmail(title,message,destination):
fromaddress = 'ringlgamesh@gmail.com'
toaddress = destination
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
serv... | [
"finchyifanchen@gmail.com"
] | finchyifanchen@gmail.com |
cc01e0008420ba62eeee954a8c66fd4233c9ae6b | 405bd7dd4cc6bd330d7556274805ab1492e1018f | /integrated/headers/header_dialogs.py | 71816d1ba4627fb57eef933b2355098733ac97eb | [
"MIT"
] | permissive | Eleyvie/wreck | b9aca423ceed7e067ab8ee0f6c5984a3a70093d9 | 19d6149dc91465865918a706a17e14f5cf3c343d | refs/heads/master | 2016-08-12T23:57:21.531179 | 2015-12-04T08:07:05 | 2015-12-04T08:07:05 | 47,388,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | ###################################################
# header_dialogs.py
# This file contains declarations for dialogs
# DO NOT EDIT THIS FILE!
###################################################
speaker_pos = 0
ipt_token_pos = 1
sentence_conditions_pos = 2
text_pos = 3
opt_token_pos = 4
sentence_consequence... | [
"Aliaksandr_Lomski@epam.com"
] | Aliaksandr_Lomski@epam.com |
a3e4daeb4540e86a191320c9288566f3e820d966 | c311518808d62988fea8d558ea7e1ef4405972c5 | /DB_app/models.py | c56d12b1c2ebec216057ff2dc61af72eff226e8b | [] | no_license | majidAdibian77/Restaurant-management | d38c3c9d1278056f9ce6924cc6a2bd97cfc6ef95 | 7cdb7f929c8ba9621eb6090bee7e88ab15b68f8e | refs/heads/main | 2023-02-01T09:57:19.536477 | 2020-12-20T18:35:24 | 2020-12-20T18:35:24 | 308,071,419 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,840 | py | from django.core.validators import MinLengthValidator, MinValueValidator
from django.db import models
from django.utils import timezone
from django.db.models.signals import pre_save, pre_delete
from django.dispatch import receiver
class User(models.Model):
national_id = models.CharField(max_length=10, validators=... | [
"majidad09@gmail.com"
] | majidad09@gmail.com |
2d14765400832c7f24d422e89a908788df38f9b1 | 21f23350cc15bb7755f01c05953359e9298251ef | /setup.py | cff4780388c6ef5f8c50cdbe2cf81f901bf3080f | [
"MIT"
] | permissive | ProbonoBonobo/gemeinsprache | 38f86e50d82519094f8b18ffad4990b18c3c4f76 | 041671f12a41d57a2faf3a4d827227a2d2dc5419 | refs/heads/master | 2020-04-29T18:42:10.682721 | 2019-03-18T16:56:13 | 2019-03-18T16:56:13 | 176,331,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | # -*- coding: utf-8 -*-
# Learn more: https://github.com/kennethreitz/setup.py
from setuptools import setup, find_packages
with open('README.rst') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='gemeinsprache',
version='0.1.0',
description='General purpose ut... | [
"kzeidler@gmail.com"
] | kzeidler@gmail.com |
6802c93ff58c3831da0616987f9c4532b06dcf92 | 95904f9169360a31458d46f5715e72f7a512afbd | /silvertask-web/core/views.py | 837f97578597af6488301fad9a6b821f110b19b3 | [
"MIT"
] | permissive | tnakamura/SilverTask | 08c2c801df0560cc0fee1b085effaf55dabd3e4d | 5140bce6611565929c9558705eb8f407176cc3e9 | refs/heads/master | 2021-01-19T18:07:42.731266 | 2014-01-31T21:19:21 | 2014-01-31T21:19:21 | 2,317,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | # -*- coding: utf-8 -*-
from werkzeug import (
Response,
)
from kay.utils import (
render_to_response, url_for,
render_json_response, get_or_404
)
from kay.auth.decorators import login_required
from core.models import (
Task
)
import simplejson
@login_required
def index(request):
return render_to_respons... | [
"griefworker@gmail.com"
] | griefworker@gmail.com |
f3af1d5624b20305293c36b02658229491e07512 | bb5ec9039b86f1844f6608f2a77cbba9ef77f416 | /Lecture_12/name.py | 43cac66339a8cbed958cbcce7a241594a8815e74 | [] | no_license | tengdann/SI_507 | ab1bf88652512fb5d7147ed9ea03be9b970584bf | 09cf7e3ba60916b1149cb24defd016aa3c53ca6d | refs/heads/master | 2020-03-28T04:04:44.276085 | 2018-12-05T21:52:37 | 2018-12-05T21:52:37 | 147,692,812 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/name/<nm>')
def hello_name(nm):
return render_template('name.html', name=nm)
if __name__ == '__main__':
app.run(debug=True) | [
"tengdann@umich.edu"
] | tengdann@umich.edu |
cab43f5a1b4b715082e34d18d0530568beb56d91 | 08dcc234d750ec0485bc506ae40f91dc12d7f516 | /todoapp/migrations/0002_auto_20150221_1512.py | 77cd326a509361c7d143cd4e9f9effa44c472ac2 | [] | no_license | 14bmkelley/todolist | 665946cac2c5e1af2460225282a240915791bf48 | 835464a39c1a43037d37c0edbefc4bc2c2510385 | refs/heads/master | 2021-01-01T05:31:44.669429 | 2015-02-28T01:52:30 | 2015-02-28T01:52:30 | 31,447,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('todoapp', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Note',
new_name='Task'... | [
"14bmkelley@gmail.com"
] | 14bmkelley@gmail.com |
4de77a3c6177dbcfc98bc5b1eb9590de44674832 | 4063c06f2239cc887c80ec8a4ed8b7ccdbe19a02 | /maxSpacingKClustering.py | a48beb2308db8d21d7966c98c1aa0c580a262c30 | [] | no_license | vanessa-bergen/AlgorithmsCourse | 20f5aceac9023872ed5a4de0d2851c3294c657e9 | f22c670f006b0fa24001ad095628f34989918408 | refs/heads/master | 2023-03-11T10:31:12.928720 | 2021-02-16T16:46:08 | 2021-02-16T16:46:08 | 330,781,258 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,817 | py | """
In this programming problem and the next you'll code up the clustering algorithm from lecture for computing a max-spacing k-clustering.
This file describes a distance function (equivalently, a complete graph with edge costs). It has the following format:
[number_of_nodes]
[edge 1 node 1] [edge 1 node 2] [edge 1... | [
"vanessa.bergen1@gmail.com"
] | vanessa.bergen1@gmail.com |
f05abbc218cb04485f740ea4a68d7def597c8a36 | 2be371e9d02415f021597ff6483160c02c80af63 | /Lib/test/test_importlib/extension/test_loader.py | 6707fc1ba8a8211a360fa7291737561219d72921 | [
"CC-BY-4.0",
"MIT",
"Python-2.0"
] | permissive | Ma233/RustPython | 7893114e4d27cab9b71633db0ab27a084d458466 | 5d6c32398991da0d075a74f7507ef6406300193d | refs/heads/master | 2021-06-26T00:09:28.711036 | 2020-12-20T15:26:30 | 2020-12-20T15:26:30 | 190,310,528 | 0 | 0 | MIT | 2019-06-05T02:14:45 | 2019-06-05T02:14:44 | null | UTF-8 | Python | false | false | 12,102 | py | from .. import abc
from .. import util
machinery = util.import_importlib('importlib.machinery')
import os.path
import sys
import types
import unittest
import importlib.util
import importlib
from test.support.script_helper import assert_python_failure
class LoaderTests(abc.LoaderTests):
"""Test load_module() for... | [
"palaviv@gmail.com"
] | palaviv@gmail.com |
b4e1ebbc795815ff08d8939927b0ced162c3d4cc | ef46adcd3bed245807f169db788f4bb183b87f51 | /sklearn/preprocessing/label.py | 6afaae035444606946018cb807257351a880070b | [] | no_license | auroua/aurora_detection | b35cddee8c77dafc70ee3869e51df8cc9a742d2d | ad4f940dccf9280a6efc9e2528285ec76042d6e6 | refs/heads/master | 2021-01-10T13:20:56.933107 | 2016-01-04T14:23:48 | 2016-01-04T14:23:48 | 44,159,924 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 26,702 | py | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Mathieu Blondel <mathieu@mblondel.org>
# Olivier Grisel <olivier.grisel@ensta.org>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# Joel Nothman <joel.nothman@gmail.com>
# Hamzeh Alsalhi <ha258@cornell.edu>
# Licens... | [
"auroua@yeah.net"
] | auroua@yeah.net |
2b95bf170b8546ca587bb3eaa5593e9c6e0fab28 | a4d602f284352c5e13011d17fdd5c1c7eaa168ad | /training/code/prueba1.py | cd89d1a332eb90c2d7fa7cfcd1b95183265f9786 | [] | no_license | petervices/Simple-and-practical-exercises | f33fc6ccc647cdc3542d55e0b04f65728656db8a | bac61141f0c293f88d1e2f38fceb0edaa2bf1ed8 | refs/heads/main | 2023-05-14T07:02:07.650486 | 2021-05-19T12:54:46 | 2021-05-19T12:54:46 | 368,854,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | available_toppings = ['mushrooms', 'olives', 'green peppers',
'pepperoni', 'pineapple', 'extra cheese']
requested_toppings = ['mushrooms', 'french fries', 'extra cheese']
for requested_topping in requested_toppings:
if requested_topping in available_toppings:
print("Adding " + requested_topping + ".")
... | [
"noreply@github.com"
] | petervices.noreply@github.com |
53114fee0e98b0bbf00e07b2d7eede989c2ddcab | 108b27b9882261150c56bf2dfe21b4ad6f03e5c1 | /Cap 8/1_op_morf.py | 6675a9c3bf48dc9877967cc39e18bb130f984811 | [] | no_license | hugosousa111/opencv-studies | 9dfd93dc4e8a63d4040fe412be65f875b187f218 | 2e1b0e0b65bb127330d2eb8bd99fd05741c6907f | refs/heads/master | 2020-05-26T15:37:03.268191 | 2020-01-26T12:37:20 | 2020-01-26T12:37:20 | 188,289,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | import cv2
import numpy as np
#retangular,elipse e cruz.
print(cv2.getStructuringElement(cv2.MORPH_RECT,(5,5)))
print(cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(5,5)))
print(cv2.getStructuringElement(cv2.MORPH_CROSS,(5,5)))
#criando um elemento estruturante
elementoEstruturante = np.matrix([
[0, 0, 1, 0, 0],
[0, 1,... | [
"hugosousa111@gmail.com"
] | hugosousa111@gmail.com |
84e7c0c084c0f59fe6a539530e79861333fb80d0 | fe5a48ce4196dedcde2ffb2f753fc92cf6c710f5 | /script.py | 0414982811f99744eaaeeebef35d304fb4bcf4a9 | [] | no_license | vickyjkwan/data_challenge | af42ad092fcaa2515350529406bba53064165955 | d184e4bb92acc4f6259c212e45bfb4d98864c410 | refs/heads/main | 2023-04-03T07:54:53.388512 | 2021-04-10T18:04:32 | 2021-04-10T18:04:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,034 | py | from pyspark import SparkContext
from pyspark.sql import SparkSession
from pyspark.sql.functions import date_format
from pyspark.sql.types import StructType, StructField, StringType, DoubleType
import json
def create_spark_session():
"""Create spark session.
"""
spark = SparkSession.builder.config("spark.j... | [
"mathilda_sorciere@yahoo.com"
] | mathilda_sorciere@yahoo.com |
e83c32f3031150d7e8b24c162d99cb0b8819dddb | c61fa80dfba722e1017dad2bbf99cd4f612c71bc | /build/android/pylib/perf/perf_control_unittest.py | bd30a4eea7af9e0472dc4ddd91f390aec27abdf3 | [
"BSD-3-Clause"
] | permissive | RayHuo/chromium | dcd7bd281ff709732eb275cc35d600b9e9c75d60 | f33ffcad1835b5cfdb0d65a35d83e98f5aa735dd | refs/heads/master | 2021-01-24T04:56:02.878963 | 2014-06-12T14:29:56 | 2014-06-12T14:29:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import sys
import unittest
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))
from pylib import android_commands
from... | [
"skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98"
] | skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98 |
b6542980555fe27fde1765fa72bc2a691b8a0f44 | a59568148b79abaeaa7911f37b3734f72f86d758 | /django/website/datamap/migrations/0008_auto__del_field_field_formattedname.py | 1988a35be7e9c351a07b60ce5e43de4feb8fd049 | [
"MIT"
] | permissive | rasulov3645/opendatacomparison | 55bd0820bd21f2b5c3f53055d89f8c3b80d5985f | 2dcfefbd931fa4c7a0981a7f6bd966259aa4f16a | refs/heads/master | 2021-06-23T06:20:54.775422 | 2015-05-06T15:11:31 | 2015-05-06T15:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,674 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Field.formattedname'
db.delete_column(u'datamap_field',... | [
"sarah@bonvaya.com"
] | sarah@bonvaya.com |
c1c53c9c6a183e27023b0b54f9d68e8992fce6af | a33a55aa75b36c3dbc01422a23124010e00a9c43 | /sbnet_tensorflow/benchmark/benchmark_configs.py | dda8c58e28e6bfe4c91c5fda91ed3d272f0d3eef | [
"Apache-2.0"
] | permissive | damonmo/sbnet | 943883701805809203b7f84f2096f799def98c9e | ad106e6da541135b0b348433a1412991a2a2183e | refs/heads/master | 2022-09-04T23:09:30.097235 | 2020-05-27T14:10:48 | 2020-05-27T14:10:48 | 267,304,891 | 0 | 0 | NOASSERTION | 2020-05-27T11:47:04 | 2020-05-27T11:47:03 | null | UTF-8 | Python | false | false | 1,307 | py | """
Sparse Blocks Network
Copyright (c) 2017, Uber Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless re... | [
"wavelet@gmail.com"
] | wavelet@gmail.com |
a2d3e2843cd09ddb4df7e1798d8510d5409ff5ff | 3061a7b2719f0ee20efd5fd1a6321f798264c0c4 | /4.py | b4b1e461e23c9a7d3fd3c4931eac7baa94b2be6d | [] | no_license | Iliavas/olympyada1 | e40f56653be29d187eeadb460bd8e5f693a1deeb | 080aa83d5ff0737c4d052464af6af7b3eda52952 | refs/heads/master | 2022-04-04T02:02:18.352982 | 2020-02-17T14:05:05 | 2020-02-17T14:05:05 | 240,663,933 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,707 | py | from math import sqrt
def search(ks, bs):
for i in range(len(ks)):
for j in range(len(bs)):
try:
if ks[i] == bs[j]:
del ks[i]
del bs[j]
truer.append(True)
else: truer.append(False)
except: search(ks, bs)
if not len(ks): return True
else: False
def dist(x1, x2):
return sqrt(x1 ** 2 ... | [
"noreply@github.com"
] | Iliavas.noreply@github.com |
d67f91f8967dfc865dfcc2c47be20db0cc437608 | d04474cb7f05c7a2f4dd79fb831b3f9cfbf8cbe9 | /apps/libro/admin.py | a8bda75a2a239a50ae15ecb08c07eaa25568db12 | [] | no_license | juandm1b1/biblioteca | ae2d61d85228ba876413516dbaac21c135b071f8 | fdd90db6453c05d4257ee7d4d89370572de35fee | refs/heads/main | 2023-02-23T02:06:49.405989 | 2020-12-06T23:13:14 | 2020-12-06T23:13:14 | 316,828,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from django.contrib import admin
from .models import Autor, Libro
# class LibroAdmin(admin.ModelAdmin):
# #lib = Libro()
# # autores = []
# # for autor_id in lib:
# # autores.add[autor_id]
# list_display = ('titulo', 'autor_id')
admin.site.register(Autor)
admin.site.register(Libro) | [
"juandm1b1@gmail.com"
] | juandm1b1@gmail.com |
43e35d8e316118f9c98c684cd069945ffd0012f2 | e20d8c1003707ae437438f684f296228b0c87228 | /0x0A-python-inheritance/9-rectangle.py | a1086ccbdd1631b3160dad817dfcab11d3cdb61d | [] | no_license | jtt-berkeley/holbertonschool-higher_level_programming | 88428fb0d839de2e260b5822903ac85442d2a85a | d1f54255f141efe50aa1abcd7877433409e62e2e | refs/heads/master | 2021-06-17T02:21:42.293493 | 2017-05-05T05:32:24 | 2017-05-05T05:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | #!/usr/bin/python3
class BaseGeometry:
def area(self):
raise Exception("area() is not implemented")
def integer_validator(self, name, value):
if not isinstance(value, int):
raise TypeError("{} must be an integer".format(name))
if value <= 0:
raise ValueError("{} ... | [
"jimmy.tran@holbertonschool.com"
] | jimmy.tran@holbertonschool.com |
c9de3cec05d3f3046559f4d8e7e7f95a8b23248e | 78cc4a9de8815bb042b25f70cbea5da2058553e8 | /src/fetch/fetchclass/grap_userinfo.py | bc27d9475706abb115c0787ee0e0262e5e6afa7e | [] | no_license | simple2source/fetch_crwal | 504c6aae18cc6c9520c3a5b6cb5e76fb65500d82 | 390998556f72a2053574e6ad5c58cbf0b850c8c0 | refs/heads/master | 2021-01-19T02:47:07.951209 | 2016-06-26T03:57:38 | 2016-06-26T03:57:38 | 52,797,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | # coding: utf-8
"""
script to send email daily about the grap user info in MySQL grapuser_info table
"""
import MySQLdb
import common
from prettytable import PrettyTable
import datetime, time
import libaccount
sql_config = common.sql_config
def update_num():
try:
sql = """select grap_source, user_name fr... | [
"dbawww@126.com"
] | dbawww@126.com |
ce5b8d2c1b81229fe2a3cb6864010b6d460f4bc0 | e65cc10b724ac89cf64a7b8e6be7d6bf98498156 | /venv/Lib/site-packages/comtypes/gen/_C866CA3A_32F7_11D2_9602_00C04F8EE628_0_5_4.py | 6b036f1102d8fd81ea2a0634aee6032840a7c0ea | [] | no_license | nizam754/Audio_Book_py | 1ab30748744e7902e411beff84ef3def83ef488d | 9d5d381a096190caf9f9ec9c765fb11ff8743cce | refs/heads/main | 2023-03-05T02:00:04.555897 | 2021-02-17T09:54:11 | 2021-02-17T09:54:11 | 339,672,146 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309,342 | py | # -*- coding: mbcs -*-
typelib_path = 'C:\\Windows\\System32\\Speech\\Common\\sapi.dll'
_lcid = 0 # change this if required
from ctypes import *
import comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0
from comtypes import GUID
from ctypes import HRESULT
from comtypes.automation import VARIANT
from comtypes impo... | [
"m.nizam754@outlook.com"
] | m.nizam754@outlook.com |
6464029d3066871a58131fc7207d49913a72b1ef | 15ce9f8cd8658eb00475f9f99e1715ba36d54abd | /quizzes/models.py | ea03629e1e2301b9e715343e74638bdb97b9aea1 | [] | no_license | naninuneter55/zunda | f4f961ea223a4a3d55b7f05eb3fc70f0042f792a | 96f8b8d93ef2ca00e68fc7f81e2be51bbde01e2b | refs/heads/master | 2021-04-30T18:18:50.093756 | 2017-01-29T12:17:54 | 2017-01-29T12:17:54 | 80,343,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | from django.db import models
class Question(models.Model):
title = models.CharField('タイトル', max_length=256)
question = models.TextField('問題文', max_length=1024)
correct_answer = models.CharField('正解', max_length=256)
def __str__(self):
return "{}".format(self.title)
class Meta:
ver... | [
"naninuneter55@gmail.com"
] | naninuneter55@gmail.com |
63f1be347c7875fec36366c86232173a42630430 | 3a7412502b89b917f23cda9a3318d2dc4d02185b | /panoptes/analysis/panels/events/admin.py | c24c66fb0d3a697e3b34747002864d68c5a7f646 | [
"BSD-2-Clause"
] | permissive | cilcoberlin/panoptes | 5f0b19d872993bc5c7f51a44c9ccc596fe0a8ab5 | 67d451ea4ffc58c23b5f347bfa5609fa7f853b45 | refs/heads/master | 2021-01-21T00:17:42.038637 | 2012-07-10T03:20:47 | 2012-07-10T03:20:47 | 1,660,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py |
from django.contrib import admin
from panoptes.analysis.panels.events.models import LocationCalendar
class LocationCalendarAdmin(admin.ModelAdmin):
list_display = ('name', 'location', 'calendar_id')
ordering = ('location', 'order')
admin.site.register(LocationCalendar, LocationCalendarAdmin)
| [
"justin.locsei@oberlin.edu"
] | justin.locsei@oberlin.edu |
eaaf116f787ec66326cc1df3f123b94029ec5a75 | 01c557188db9bb6233f561308ff7dea3c75fe6ed | /3.4.py | e25e678ab862e52c0bcacabae2a05bd9b891499c | [] | no_license | namnh68/PyFML2015 | 2f36e4a17c97f7dfe3357a9644acd072d77aea50 | 8d17a7275c8958b47550b99756ab97c2bd2f8f65 | refs/heads/master | 2021-05-30T18:57:12.663699 | 2015-07-16T06:30:41 | 2015-07-16T06:30:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | input = range(16)
for i,j in enumerate(input[2:]):
print i+1, j | [
"trananhkma@gmail.com"
] | trananhkma@gmail.com |
28c5a21d4c7789378290adf994ed3dbae06b6b28 | c15367c43f8b9ba97193b3219b60e78795972069 | /visual/example12.py | dc99f0c5c9b297dad741caff2364324e25ae8bc6 | [] | no_license | tyiannak/multimodalAnalysis | 7db72bf72b7e80c75b725d344c41510ec2356af9 | 6c94f6598df806c5b3f37f684a80838f7b198729 | refs/heads/master | 2023-07-20T06:55:08.698240 | 2023-05-19T16:32:54 | 2023-05-19T16:32:54 | 144,073,835 | 90 | 28 | null | 2023-07-06T21:16:30 | 2018-08-08T22:24:15 | Jupyter Notebook | UTF-8 | Python | false | false | 972 | py | """!
@brief Example 12
@details: Visual features visualization for 2 images using matplotlib.
(Color features)
@author Theodoros Giannakopoulos {tyiannak@gmail.com}
"""
from visual_features import ImageFeatureExtractor
import matplotlib.ticker as ticker
from matplotlib import pyplot as plt
filename1 = '../data/images... | [
"tyiannak@gmail.com"
] | tyiannak@gmail.com |
a9839736ca41d4edfa084d32a6f6dd4521bc3d3e | 0812fbe5d63940b90340a2abe5e3cb4700a0a567 | /contrib/wallettools/walletunlock.py | ab35e9985426e322a81b36e8a0dff225532825cc | [
"MIT"
] | permissive | SnowFlakes-Dev/SnowFlakes-Coin | 2c317d5dc61c4d3736b35188d8dbe6ddd89b7adb | e51af22cef27a49eddc248f3183eb8dae42b9dc9 | refs/heads/master | 2020-06-10T13:03:59.609321 | 2016-12-08T17:26:06 | 2016-12-08T17:26:06 | 75,959,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from jsonrpc import ServiceProxy
access = ServiceProxy("http://127.0.0.1:11112")
pwd = raw_input("Enter wallet passphrase: ")
access.walletpassphrase(pwd, 60)
| [
"SnowFlakesDev@gmail.com"
] | SnowFlakesDev@gmail.com |
d66540afaf20abaf663f389f0f341b02916f5cfd | c1c343d386d7f158bbd24b9589a2179cf2aa05d0 | /mns/demo_sms_api.py | 6c9a76c944bb094a50289f625c65d5dd25a74356 | [] | no_license | ArtrixTech/AliSMS_Server | b4ea030704fc0cb5c65cdee856a05e5db8ad966f | 3481775c1cf8338f973a7b579a939c16f99ff64b | refs/heads/master | 2020-03-14T03:36:53.929344 | 2018-04-28T16:46:31 | 2018-04-28T16:46:31 | 131,423,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,194 | py | #!/usr/bin/env python
# coding=utf8
import sys
import datetime
from aliyunsdkcore.acs_exception.exceptions import ServerException
from aliyunsdkcore.client import AcsClient
from aliyunsdkcore.profile import region_provider
from mns.aliyunsdkdybaseapi.request import QueryTokenForMnsQueueRequest
import const
sys.path.ap... | [
"Artrix@Artrix.tech"
] | Artrix@Artrix.tech |
e14da05a864d9042993c6d67327c7a39708ec3e6 | 9041e3dec84cffc37ae44f57d86c6be58217e0c5 | /BATTLESHIP.py | b2834a17c3369c90bf5486e11f5fedf4d301ae4b | [] | no_license | ArcOverStar/Battleship | 6298c81291ec5dc95dd71444b164d9f73d94846e | a1793d6f5924902f1b9aa4a0262202652ee74410 | refs/heads/master | 2022-10-23T08:54:46.469675 | 2020-01-29T14:11:10 | 2020-01-29T14:11:10 | 234,870,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,141 | py | import random, sys
UB=[]#User's board
CB=[]#Computer's Board
TB = [["0","0","0","0","0","0","0","0","0","0"],#Target Board
["0","0","0","0","0","0","0","0","0","0"],
["0","0","0","0","0","0","0","0","0","0"],
["0","0","0","0","0","0","0","0","0","0"],
["0","0","0","0","0","0","0","0","0"... | [
"noreply@github.com"
] | ArcOverStar.noreply@github.com |
a3a8d2a2108a913278b32155c5d8e49a56753f34 | e1788ba41ba5b877db72fc26ba4b13cc5823bd25 | /project1/crm/migrations/0001_initial.py | 0aca398f542328a33b2d804504f1e8a0bd544503 | [] | no_license | alexsproject/django_training_website | 137005029c96291894ecd5290f858043c1c219e6 | d31ab4523fd9076b0401287d7206a283b570062c | refs/heads/master | 2023-08-05T11:30:29.433730 | 2021-09-17T14:55:16 | 2021-09-17T14:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # Generated by Django 3.2.5 on 2021-07-30 13:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Order',
fields=[
('id', models.BigAutoField... | [
"nick1nick@protonmail.com"
] | nick1nick@protonmail.com |
b2e647ca7e61dc983ece0837c25e3743abde5e29 | e755453c853ae400d94f562ad215b59166b63782 | /tests/splay_tests/test_contains.py | 90f77cc4f6c2ffda415a14fbc9008bc8390adea1 | [
"MIT"
] | permissive | lycantropos/dendroid | 0cb3e276dd9c476b82b0b7a17c25c2e05616a993 | fd11c74a395eb791caf803c848805569869080f6 | refs/heads/master | 2023-04-07T11:07:55.550796 | 2023-03-27T00:46:03 | 2023-03-27T00:46:03 | 215,369,321 | 0 | 1 | MIT | 2020-09-24T05:02:02 | 2019-10-15T18:29:36 | Python | UTF-8 | Python | false | false | 891 | py | from typing import Tuple
from hypothesis import given
from dendroid.hints import Value
from tests.utils import (BaseSet,
are_keys_equal,
implication,
to_height,
to_max_binary_tree_height,
set_v... | [
"azatibrakov@gmail.com"
] | azatibrakov@gmail.com |
35d243ae6f29dfcb026617ec2a480b2659d6a02c | 921feabbbe06377108001242b974bdf72400a1a0 | /deploy/web.py | ce8bd9ef0b31e055234d50745e6241c39a31e1e1 | [] | no_license | binary-person/movie-sentiment-analysis | 5ce473ea5d0b9647f71a092fad9cb3eb38972ec9 | 461508daf29b77a6cd8ade80d87998966dcecc60 | refs/heads/master | 2022-04-02T04:42:20.122655 | 2020-01-15T01:06:19 | 2020-01-15T01:06:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf
import numpy as np
import sys
import re
from http.server import BaseHTTPRequestHandler, HTTPServer
import urllib
TAG_RE = re.compile(r'<[^>]+>')
def remove_tags(text):
return TAG_RE.sub('', text)
def preprocessing_text(text):
# Remove... | [
"simoncheng559@gmail.com"
] | simoncheng559@gmail.com |
3ed90e530afc8cd24b6878229713a18868c048c6 | b7193fb2e70d384970b9560a5d9a8fd93164afe1 | /transfer_learn.py | dad8ab37b51e0a71a9529ee4b792cc77e7dc155c | [] | no_license | Shubham0209/Tensorflow-Codebase | 616c19bc915d526faa9d2f503acc8fe596bf8f2d | eb8afcfc4244b85031e4f105df3eda7902e497c6 | refs/heads/main | 2023-04-15T20:30:53.904341 | 2021-05-04T11:13:32 | 2021-05-04T11:13:32 | 327,263,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,918 | py | import os
import tensorflow as tf
from tensorflow.keras.optimizers import RMSprop
from tensorflow.keras.preprocessing.image import ImageDataGenerator
import matplotlib.pyplot as plt
from tensorflow.keras import layers
from tensorflow.keras import Model
from tensorflow.keras.applications.inception_v3 import Incep... | [
"noreply@github.com"
] | Shubham0209.noreply@github.com |
0a235b0652821accf132cd7c6930576f4368404b | bf96501f8b436130063b28ba5a0b71be6413e1a3 | /dlsiteSpider/dlsiteSpider2.py | 99321c93b1c61ac39849de4edf804a14025ae1dd | [] | no_license | mudssky/python3Spiders | 7d6716a2eb98f4c45eeca2b71fe32338aaa7c604 | 9983b3d081596a7d71e8a434dc895beea74d3a01 | refs/heads/master | 2023-01-24T10:53:09.790475 | 2023-01-16T13:07:39 | 2023-01-16T13:07:39 | 162,007,534 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,602 | py | # -*- coding: utf-8 -*-
import requests
# import time
import os
import json
from pyquery import PyQuery as pq
from multiprocessing import Pool
import time
import re
rjidList=[]
urlList=[]
infoList=[]
htmlPathList = []
def read_rjid(rjidList,filename):
'''
从文件中把rjid读入到列表
:param rjidList: 用于存放rjid的列表
:par... | [
"mudssky@gmail.com"
] | mudssky@gmail.com |
1eb86b1ba5cd1f6dc936de93034d2d7a5b77a4d1 | 2ed1741d1309bd5568a500e5f69960f94bc4ed65 | /Source Codes/PartC_Scam/Job1B_Scam_Aggregation.py | 1b5900b50e47ff48aed6e27a8f730373697a97b4 | [] | no_license | JakeBGitHub/EthereumAnalysis_Hadoop | 774c297c6ec1fba7316979bd5c956e947e6d7ce7 | 5062a6735eeaec1e6969cfeaefc9a40b7fa78617 | refs/heads/master | 2022-08-21T21:05:27.844851 | 2020-05-22T11:03:42 | 2020-05-22T11:03:42 | 266,079,123 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | from mrjob.job import MRJob
import re
import time
import datetime
#This line declares the class PartBJob1, that extends the MRJob format.
class scam_agg(MRJob):
# this class will define two additional methods: the mapper method goes here:
def mapper(self, _, line):
try:
fields = line.split("\t... | [
"noreply@github.com"
] | JakeBGitHub.noreply@github.com |
de1964489e7a06b573dd7b0b5646fc231e174d46 | 146cd740649b87032cbbfb97cde6ae486f76230b | /venv/lib/python3.6/site-packages/PIL/BdfFontFile.py | fc85c8a287d218f13805660da1f2d7bc33c3793c | [] | no_license | shellyhuang18/plank-filter-master | 8b7024c46334062496f05d31eefc618ebae50b4e | 8993a5b00f45841c3385fe997857bfdd10b71a84 | refs/heads/master | 2020-03-30T18:14:45.017957 | 2018-12-27T20:51:25 | 2018-12-27T20:51:25 | 151,490,556 | 0 | 1 | null | 2018-12-19T22:42:26 | 2018-10-03T22:50:58 | Python | UTF-8 | Python | false | false | 3,119 | py | #
# The Python Imaging Library
# $Id$
#
# bitmap distribution font (bdf) file parser
#
# history:
# 1996-05-16 fl created (as bdf2pil)
# 1997-08-25 fl converted to FontFile driver
# 2001-05-25 fl removed bogus __init__ call
# 2002-11-20 fl robustification (from Kevin Cazabon, Dmitry Vasiliev)
# 2003-... | [
"shellyhuang81@gmail.com"
] | shellyhuang81@gmail.com |
1d26c9f93159d2e3cdcc75af3f75804536f6b6a2 | d825bcb0f3c494387f22b1c1ac761b6563ba388a | /posts/migrations/0001_initial.py | 026f161a84a69741e09043b88a365bc4d1d3502a | [] | no_license | ustinvaskin/UstinVaskin-SEI-44-Project-4 | d60efaca7217fb10fe04f6b9ebe8d99f74d4b553 | 6c0ad17266fd95411df31031a964dc5ea4fa404b | refs/heads/master | 2020-12-12T12:53:27.382093 | 2020-04-02T06:56:54 | 2020-04-02T06:56:54 | 234,130,843 | 0 | 1 | null | 2020-03-06T18:00:35 | 2020-01-15T17:07:41 | JavaScript | UTF-8 | Python | false | false | 1,867 | py | # Generated by Django 3.0.4 on 2020-03-06 16:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"ustin.vaskin2011@gmail.com"
] | ustin.vaskin2011@gmail.com |
ca245b61e5a67cdd9fe9c043bf4e5b42559a11a5 | 5cbf9143152173359c634a376fe748a30674cff3 | /text.py | c78b7d81879f22f0b57804236dc1e2d18f5510b9 | [] | no_license | eatfingersss/SpiderDemo | b578d3af9852a93ca15f1c684809e8b1d60adae8 | 0e52d005611017ca17aeb06a70d1ca3b35047be5 | refs/heads/master | 2020-03-27T21:28:25.348530 | 2019-06-08T03:09:18 | 2019-06-08T03:09:18 | 147,146,958 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,050 | py | # -*- encoding:utf-8 *-*
import os
import re
import random
from urllib import request
from bs4 import BeautifulSoup
ua_list = ["Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (... | [
"eatfingersss@eatfingersss.top"
] | eatfingersss@eatfingersss.top |
e4ff0e7628f0b153ac84f54932d7be59746127b4 | be0c6e2071945edcb47ee4f3fadc1f4629a2c6aa | /grandapp/migrations/0105_auto_20210224_1527.py | d80a750747203ef42ed7326139cdc3f30142b816 | [] | no_license | QuackenbushLab/grand | 9719a395e6a30951c3ffdef1eccdb5e422da737c | f23031d1f240550d25c2842b4af0aae08c653bae | refs/heads/master | 2023-08-10T09:58:58.381264 | 2023-07-25T18:23:26 | 2023-07-25T18:23:26 | 201,113,575 | 5 | 2 | null | 2022-06-24T19:11:29 | 2019-08-07T19:18:58 | JavaScript | UTF-8 | Python | false | false | 1,050 | py | # Generated by Django 3.0.2 on 2021-02-24 15:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('grandapp', '0104_auto_20210224_0043'),
]
operations = [
migrations.AddField(
model_name='ggbmd1sample',
name='link',... | [
"marouen.b.guebila@gmail.com"
] | marouen.b.guebila@gmail.com |
2271a3894f8aed24f43eb36ad364f8d90932ad2a | 8ac6c43aeb713d39538ea378ceb655b3a9ace554 | /Courses/admin.py | 2fbc54bae728ab7e1dbb0feaf610957e3771d493 | [] | no_license | 3BDO-debug/Mental-Education | 65d0ab377ba6a4ac8857cb9804d0a5a260a2ba0e | cdcbd6378cfd1882493dd129dc15919a3e4d0889 | refs/heads/main | 2023-04-27T18:56:38.434506 | 2021-05-12T03:21:24 | 2021-05-12T03:21:24 | 338,002,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.CourseLesson)
admin.site.register(models.Course)
| [
"rooted39@gmail.com"
] | rooted39@gmail.com |
8ef138ebd36f6c65242e71e1476783a146817c9b | 8f6252ea32574dc2f0b1d706e85282d2fbdfab5e | /boxsystem.py | dd2235284d1544cf9de7f3b11a7c390187ed7a39 | [
"Apache-2.0"
] | permissive | paki-the-box/packi-es | ad536012dab8261dd0d599c5655635f876207781 | 337b16ce7dcadf425210d38bdcdb53f4d12098af | refs/heads/master | 2023-02-21T04:17:08.712737 | 2020-11-09T20:20:06 | 2020-11-09T20:22:07 | 311,455,154 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,408 | py | from uuid import UUID, uuid4
from eventsourcing.application.process import ProcessApplication
from eventsourcing.domain.model.aggregate import AggregateRoot
from eventsourcing.system.definition import System
class User(AggregateRoot):
def __init__(self, name, **kwargs):
super(User, self).__init__(**kwar... | [
"j.feinauer@pragmaticminds.de"
] | j.feinauer@pragmaticminds.de |
d46e87a538d7d2f28ee2a12aa13e3ecb0c6ccf4b | bf8170efd6944d86e23c2b72c32595ffa706fdf5 | /Practice/texttopng.py | 242d7567a3d5edade75e379a681fbd4ce3f9ca1d | [] | no_license | sunilkurahatti/Learnpy | 0dd381d95d234df7f7f4b70fd0e4a9a59f5741ad | 55206471f8ff0c2b7653576d94c65d3e3609f42b | refs/heads/master | 2020-04-08T01:34:53.479847 | 2018-12-16T06:03:00 | 2018-12-16T06:03:00 | 158,900,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # with open('mine.txt','rb') as rt:
# with open('jpg.png','wb') as wp:
# for line in rt:
# wp.write(line)
import time
f=open('22.png','rb')
wf=open('333.png','wb')
a=time.time()
size=100000
pt=f.read(size)
while len(pt) >0:
# print(pt, end='')
wf.write(pt)
pt=f.read(size)
f.close()
wf.close()
print("time tak... | [
"sunilkurahatti@gmail.com"
] | sunilkurahatti@gmail.com |
398f2846b2e62433d3f80acb9788403a2b855607 | 28e4f30aea6d6bcd1b736d968329c82a74fbddb5 | /testing/hierarchies.py | 38c872f5f6e95741fd6831f7f548cbb60ad15055 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0",
"Apache-2.0"
] | permissive | druwadi/exhale | 29e7ea6381dbf0820e624add22b2a076cc2cf740 | ea5a933cfccc74234822d80dc85b509a6257f95e | refs/heads/master | 2020-04-12T17:14:13.828780 | 2018-12-23T08:30:10 | 2018-12-23T09:10:14 | 162,638,768 | 0 | 0 | BSD-3-Clause | 2018-12-20T22:42:02 | 2018-12-20T22:42:01 | null | UTF-8 | Python | false | false | 42,426 | py | # -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2018, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
# ... | [
"svenevs@users.noreply.github.com"
] | svenevs@users.noreply.github.com |
6ed5f68e9e400070cd30140a79a7a876e9457eda | 8188bb529e538926fda5e90c62e1eaba38cff4f8 | /apps/__init__.py | 26c8f87ee9cbfb2d2b8c6406523ae10f59ee3280 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | wangyibin/bioway | 68fbc59d65c0f94dcf2d4d56785522a62797fadd | a534f35fc6f96fe1b3a6ca78853a5aa076337328 | refs/heads/master | 2020-03-30T15:14:35.049692 | 2019-01-25T06:03:42 | 2019-01-25T06:03:42 | 151,354,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from .base import must_open
| [
"738339463@qq.com"
] | 738339463@qq.com |
f278aee08b3587ee3848d7a1ffd76e40d4563c8d | 3fc287d12dd020c3debe8a683e656ca1f28b66e0 | /src/main/python/imageconv.py | eb83b48087d07eb00e9223abd3d13cce8889cd8c | [] | no_license | chiizudesu/Client-Browser | 9ae68263dd6075925540273868c8b591a5383d80 | 90d36a80ac637e25fbc15dd3fc2d18f4e8091163 | refs/heads/master | 2022-04-03T07:41:13.343158 | 2019-12-21T04:05:07 | 2019-12-21T04:05:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | import cv2
from PIL import Image
def imageset():
sizes = [16, 24, 32, 48, 64]
for i, x in enumerate(sizes, start=1):
image = r"C:\Users\John.IOCA\Desktop\icon.png"
image = cv2.imread(image, cv2.IMREAD_UNCHANGED)
dim = (x, x)
resized = cv2.resize(image, dim, interpolation=cv2.IN... | [
"John@ioca.co.nz"
] | John@ioca.co.nz |
86dc1a57e11f317970f25281ad83897e0b82f304 | 1506cd8a8730968af43459ee4f1b9f5ae11cdb20 | /Django/drf/project/app/Serializers.py | 3aa9b3b2c2a37f73033fd2e628f054bf93d55adf | [] | no_license | mikaelgba/Python_Web_Repository | 7d3c0c8e882a0d5db307abecf5fb6ae8543a5bbf | 3a119c590d2008318c554facceeefde48181c5fc | refs/heads/master | 2023-04-08T14:21:22.133444 | 2021-04-26T16:44:28 | 2021-04-26T16:44:28 | 289,719,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from rest_framework import serializers
from .models import HQ
class HQSerializer(serializers.ModelSerializer):
class Meta:
model = HQ
#fields = ['id','name_hq','author','publishing_company']
fields = '__all__' | [
"mikaelgba@gmail.com"
] | mikaelgba@gmail.com |
e285903e0893828eaab4609c1ae4bccee37a9753 | 38ccc81b0b187222ca9afd9b48cabd92362062c7 | /Martin Georgiev/Homework/problem7.py | 9f033cb03101c9b408fb65506a61ec4b147d5de5 | [] | no_license | yanita-d/Bioinformatics2020 | 828527120a275ec854e777f3d9ab7f7bc89b2dc3 | 21f6d48152b89baaeb7b6a281641fd884170b984 | refs/heads/main | 2023-03-01T23:29:51.534362 | 2021-02-05T22:25:45 | 2021-02-05T22:25:45 | 303,945,804 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | from Bio.Seq import Seq
from Bio import SeqIO
startCodon = 'AUG'
stopCodonsRNA = ['UAA', 'UAG', 'UGA']
def findLocations(s, t):
result = []
for idx in range(0, len(s) - len(t) + 1):
if(s[idx : idx+len(t)] == t):
result.append(idx)
return result
def checkORF(orf):
return any(list(m... | [
"martin.g97@abv.bg"
] | martin.g97@abv.bg |
c473c01b649bfa2899057b5a357af368ea8d7926 | dce30a6b816597e155a28c7e03eef6e24d139869 | /cinder/tests/unit/volume/drivers/dell_emc/unity/test_driver.py | 0f7cb261d77c84c4a29b1b1c28b679d96756c2ad | [
"Apache-2.0"
] | permissive | tadashimishima/cinder | b3f1c60c39b10051c71ef95ad67d52b1b363eb25 | 095418d74efa93ff7ad2874925225070307b774c | refs/heads/master | 2021-01-12T03:59:22.527454 | 2017-01-22T14:08:32 | 2017-01-22T14:08:32 | 77,450,437 | 0 | 0 | null | 2016-12-27T11:26:44 | 2016-12-27T11:26:43 | null | UTF-8 | Python | false | false | 7,349 | py | # Copyright (c) 2016 Dell Inc. or its subsidiaries.
# 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 requi... | [
"tina.tang@emc.com"
] | tina.tang@emc.com |
0567d7ec35c92e92a988d2f434a8923a1e27e9d8 | 293e385b9f91e384d420ca610e4f86ed2979b08c | /food.py | 61d094683c13500c50eb0c22951c27f57487ba38 | [] | no_license | umarshabir/Snake-Game | 006f47a5bf9e3977816c21bb2cc51769f6e57aea | 62075f6e3bf26ea628d0784c0246779bdd2f5668 | refs/heads/main | 2023-03-17T21:57:11.131173 | 2021-03-10T16:18:16 | 2021-03-10T16:18:16 | 346,408,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | from turtle import Turtle
import random
class Food(Turtle):
def __init__(self):
super().__init__()
self.shape("circle")
self.penup()
self.shapesize(stretch_len=0.5, stretch_wid= 0.5)
self.color("blue")
self.speed("fastest")
self.refresh()
... | [
"noreply@github.com"
] | umarshabir.noreply@github.com |
ad6a1db8a3b61a08a3621b592a55727497ceb0c6 | cf792745acd81c472625e5592b0e540db50c17cd | /books_site/urls.py | cbdefa3651cf317b707fd9a3f4a3e9f3ccfb445f | [] | no_license | AnniePawl/Django-Book-Site | 3e293b22ab9b571c6c806fee4e4a4124d940c878 | 80b34545f1211abb2e63884cfe9c6401048a37c9 | refs/heads/master | 2022-04-17T18:13:04.539849 | 2020-04-15T01:17:29 | 2020-04-15T01:17:29 | 255,183,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | """books_site URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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... | [
"annampawl@gmail.com"
] | annampawl@gmail.com |
b62cc73e9ad0db86c4a1e002a88d487c61fb5241 | 9a5ae490a0f941e97432446ea772a128eb59e460 | /lib/python/treadmill_aws/cli/admin/aws/user.py | 4be4eab7eef8e34dca308ac02e0cfa12fdf7bf51 | [
"Apache-2.0"
] | permissive | godsarmy/treadmill-aws | d6cc75dddecfa72ce5dfc687ae5f6fdb35510802 | 18d650be09d1054386066fb6993de3af6ec6a42e | refs/heads/master | 2020-03-28T23:38:00.727753 | 2018-09-14T19:43:43 | 2018-09-14T19:43:43 | 149,300,600 | 0 | 0 | Apache-2.0 | 2018-09-18T14:19:42 | 2018-09-18T14:19:42 | null | UTF-8 | Python | false | false | 3,729 | py | """Implementation of treadmill admin AWS user manager.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import io
import json
import os
import click
from treadmill import cli
from treadmill_aws import awscontext... | [
"andreikeis@users.noreply.github.com"
] | andreikeis@users.noreply.github.com |
fc38a91aee0d0eecf16e77775e854770ccbd2cf0 | c51c544b4bfadb976cbde73bb8e1c8ac70618327 | /ex3/03.py | 903ec04f572683744ee0e2fefac8ad42d2188f7e | [] | no_license | TaRhyN-2007/GeekBrains | 83a26081432a1a2eceeae2bf9d39751112a46689 | efc5327d1e921e2088f65af5be354458b22c8e82 | refs/heads/main | 2023-01-03T20:58:37.041690 | 2020-10-28T13:37:31 | 2020-10-28T13:37:31 | 301,714,907 | 0 | 1 | null | 2020-10-28T13:37:32 | 2020-10-06T12:13:18 | Python | UTF-8 | Python | false | false | 129 | py | def sum_max (a, b ,c):
minimal = min(a, b, c)
sum_all = a + b + c
return sum_all - minimal
print(sum_max(1, 2, 3))
| [
"TaRhyN-2007@users.noreply.github.com"
] | TaRhyN-2007@users.noreply.github.com |
dcaf9d597bc70825c0dfb9cd82262feee85ab9a6 | 5674634fc64afeea0e8adf2b66c703007a56e8c7 | /usd/19.11/rezbuild.py | 1f2628a857aebd2dcba7844d24940428d705ae5e | [
"MIT"
] | permissive | Colorbleed/rez-packages | 07d4cab161ebc8d0af508edc8167b299fe03a279 | c8e8012e5327dc97573de65207eaa76fd1cf179f | refs/heads/master | 2022-10-12T20:42:19.126606 | 2019-11-28T19:54:18 | 2019-11-28T19:54:18 | 221,001,744 | 31 | 7 | MIT | 2022-09-30T02:12:40 | 2019-11-11T14:40:53 | Python | UTF-8 | Python | false | false | 3,890 | py | """Rezbuild for USD on Windows
Note: Currently 3rd Party dependencies are not Rezified
but included in the package. This makes it bigger
than it *has* to be and additionally makes building
the package a lot heavier since it'll download all
dependencies and build all of them using USD's own
... | [
"roy_nieterau@hotmail.com"
] | roy_nieterau@hotmail.com |
c15068f05affb8b3175b6991c4a3e32293852d72 | 9fd90bd2b2016465dadddc731c13c512274327c4 | /solver.py | 021c721b7e6eea29b27986ba507292509ab484a5 | [] | no_license | velojason/maze-solver | 751a7da19cf306279aabdb653e4500eb10205e4d | 8fb8f34a803fe7dbc8403bb0dd85442f7d6c6d5b | refs/heads/master | 2021-09-03T04:59:28.362725 | 2018-01-05T19:53:48 | 2018-01-05T19:53:48 | 112,406,241 | 0 | 0 | null | 2018-01-05T19:53:48 | 2017-11-29T00:39:45 | Python | UTF-8 | Python | false | false | 2,714 | py | def pathfinder(maze, destination):
prev = []
queue = []
path = []
for x, line in enumerate(maze):
for y, value in enumerate(line):
if value != 'O':
distance = float('+inf')
previous = None
prev.append({'c': (x, y), 'p': previous})
... | [
"noreply@github.com"
] | velojason.noreply@github.com |
b9fc89711d8d5ef03f63e904aa46d309cee00d91 | 77923becb46943df4f2360fd651d73a0a3074f54 | /test_main.py | 00a18a3865389410f49072b7f5a9ba8e84bc4afa | [
"MIT"
] | permissive | internetmosquito/bloowatch_site | 9f6956e32cea933384c72ec97b77e5121f50feda | 8a4fa814a5255b36ee094bb6589e241205a2ed65 | refs/heads/master | 2021-01-10T09:45:56.523931 | 2015-12-02T12:46:54 | 2015-12-02T12:46:54 | 44,955,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | __author__ = 'mosquito'
import os
import unittest
from views import app, db
from _config import basedir
from models import RegisteredMail
TEST_DB = 'test.db'
class MainTests(unittest.TestCase):
############################
#### setup and teardown ####
############################
# executed prior t... | [
"alejandrovillamarin@gmail.com"
] | alejandrovillamarin@gmail.com |
8d32cc2b75d0799d3691a28784850c0c4ad2dc57 | a99eeaa6a2cb2d61ed1207a0c7d3e88452a19f4f | /filesManage/settings.py | ed09b20cbd8e5a947b2d0f9b05254781b6276225 | [] | no_license | SweetShance/myweb | a8b91953630f93de3a9ea05d823524b542a698b2 | d49abd8aa5d857d565f4b0560c9907dd6bbb6390 | refs/heads/master | 2020-05-02T22:16:17.130629 | 2019-04-24T09:21:56 | 2019-04-24T09:21:56 | 178,246,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,056 | py | """
Django settings for filesManage project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | [
"2391454874@qq.com"
] | 2391454874@qq.com |
0c87e8d62731907e5730a66a9a585858c48baab9 | 45c86c7e7c6e84dcae3eba5544d93db6bee19905 | /venv/lib/python2.7/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py | 50d18037e88dceca1d054d694fcec1680aab9b8b | [] | no_license | 5eanpoint/moweb | 60b5ed74183b019e04e4fa243d3c1930c4cb4a64 | bbf0d96b651230c231115a3eace7b950a908b57e | refs/heads/master | 2016-09-14T05:29:27.601814 | 2016-05-24T06:40:05 | 2016-05-24T06:40:10 | 59,546,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,529 | py | import hashlib
import os
from pip._vendor.lockfile import LockFile
from pip._vendor.lockfile.mkdirlockfile import MkdirLockFile
from ..cache import BaseCache
from ..controller import CacheController
def _secure_open_write(filename, fmode):
# We only want to write to this file, so open it in write only mode
fl... | [
"seanpoint@icloud.com"
] | seanpoint@icloud.com |
1c660f7eb6cd6c21de54f71f2cd0080e032decb8 | 9eaba2f81bb99bc07eaa26a3c2236ff8ebf95454 | /main.py | c86a56a2c575f60d933ce544490c0cdccd0e08be | [] | no_license | appleseeds-bootcamp/be-software-design | d2547af1987913b447c93bb7542be7f7de098a27 | d86c7e79a4657995b29a7bc62f04f90f06fcdbc3 | refs/heads/master | 2022-06-22T04:14:02.014168 | 2019-07-27T12:06:53 | 2019-07-27T12:06:53 | 198,824,595 | 0 | 1 | null | 2022-06-03T22:45:50 | 2019-07-25T12:10:27 | Python | UTF-8 | Python | false | false | 112 | py | from api.animals_api import AnimalsAPI
import api.animals_api as api
if __name__ == "__main__":
api.run()
| [
"matan.bakshi@gmail.com"
] | matan.bakshi@gmail.com |
521cb224ad52191adba63ca94eb5e30e50dc3e50 | a31a964c326dab78d36efc0c1d649b74c8566b3c | /hotshelper/hotshelper/asgi.py | addcb852a5d59ef0929ba33ae18cb967f9a1a99f | [] | no_license | soft1q/hots-picker | ad4dbe0ed99fb534deb9580687d71955a6e6309c | bda09b0d9f7b520baf89d62660e4cb43dcef119b | refs/heads/master | 2022-04-09T09:56:39.018961 | 2020-01-13T03:50:46 | 2020-01-13T03:50:46 | 209,843,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for hotshelper 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"levashov.as@phystech.edu"
] | levashov.as@phystech.edu |
31d79fbba7fb82f7ef11c5b5c3dcdd9a76d77cab | 6a7602fbcaeb69f9b3abfc75264db46140d82691 | /Labs/Lab6/task4/task.py | 222120326ade6519c40d0245bbfc9e1f14c4275b | [] | no_license | hasanahmvd/CS1026B | 9cbd3f9c4f7db65609822559450aedf94a7c97c5 | 3a1b37909b2974ca3f26d9ff313b6a60a1058071 | refs/heads/master | 2020-03-23T21:17:15.261865 | 2018-12-11T19:46:47 | 2018-12-11T19:46:47 | 142,095,562 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # Replace the placeholders and complete the Python program.
def zFirst(words):
# We will need two lists
zresult =[]
result =[]
for word in words:
if word.lower()[0] == 'z':
# If it does, add it to the first list
zresult.append(word)
else:
# Does not b... | [
"hasanahmed@invitetech.com"
] | hasanahmed@invitetech.com |
fe015c8400e19c12263aed77b5f68f983b32df37 | 3467c4d2ff1074327faf819bbc6d0dfc649d6316 | /ZoomEye.py | ffb32326a45fb6938d1ae6bf798be7391a214b2c | [] | no_license | hiddes/ZoomEye | 172b426f767ea4db11af28825d6699e3abec6bdc | 3fda3a8fe3521a7713f56e15918a3e81d4daad4a | refs/heads/master | 2021-01-20T18:15:49.457971 | 2016-08-02T15:39:09 | 2016-08-02T15:39:09 | 64,589,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | # coding: utf8
# Author: hidden
# Create: 2016.08.01
# import os
from GetResults import HostRequest, WebRequest
from Config import LOGIN_DATA, USERNAME, PASSWORD, HEADERS, AUTO_FILED
from Login import login
GET_TYPE = {'host': HostRequest, 'web': WebRequest}
class ZoomEye(object):
def __init__(self, is_login=Fal... | [
"hiddes@126.com"
] | hiddes@126.com |
10ad52de6c43973344d9b49643fff17b973755ed | 52bb9e1745d3825dfd24f28f63b3d3da333646f9 | /blog/api/permissions.py | 903cc0f49238a2cc138dfbefd2d004372f3eab0a | [] | no_license | himanshuchanchad/blog-project | e3bb4900c22e3ceed0fd2c2c653c54350ddcc948 | ed2dea85b6acb9be3db096e00bcae93371e4629c | refs/heads/master | 2020-04-26T12:30:36.849218 | 2019-04-14T16:15:13 | 2019-04-14T16:15:13 | 173,552,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from rest_framework.permissions import BasePermission
class isowner(BasePermission):
message='You are not the owner of these post'
my_safe_method=['PUT']
def has_permission(self, request, view):
if request.method in self.my_safe_method:
return True
return False
def has_obje... | [
"himanshuchanchad@gmail.com"
] | himanshuchanchad@gmail.com |
563dca472050bd627e9622bcac889b9a2918ab28 | c4036dd56a495d9bbdf33d7e24501048bb9fe673 | /flasRestful.py | 794d57e03268412c5a8227fee9692c07eda7e151 | [
"MIT"
] | permissive | rowrodney/Automation | b125246559249aa4a8d9a91183c66207ec7fefc1 | b6aa8bc802fa369a974868764c941c80f9edd2d2 | refs/heads/master | 2023-08-11T04:48:47.385625 | 2021-10-06T08:26:39 | 2021-10-06T08:26:39 | 272,594,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | from flask import Flask
from flask_restful import Resource, Api
app = Flask(__name__)
api = Api(app)
class Student(Resource):
def get(self, name):
return {'student': name}
api.add_resource(Student, '/student/<string:name>') # http://127.0.0.1:5000/student/Rolf
app.run(port=5000) | [
"rowrodney@gmail.com"
] | rowrodney@gmail.com |
3440ae0cb78e579db0a6945b28742609be05790a | 0d77846403606b8300a53e05cd2103d5470b6a6a | /tensorflow/python/profiler/profiler_client.py | dc542e2c726ecdbd9c79293f77ca662075532b7a | [
"Apache-2.0"
] | permissive | alubanana/tensorflow | e7cb694073773be4c46607e7af4fb8ed9c74b812 | 454f89ab3baacbac567d6bcceef4c743f23ce58b | refs/heads/master | 2021-01-04T15:44:16.441471 | 2020-02-14T22:50:45 | 2020-02-14T22:56:47 | 240,614,446 | 1 | 0 | Apache-2.0 | 2020-02-14T23:12:02 | 2020-02-14T23:12:01 | null | UTF-8 | Python | false | false | 2,762 | py | # Copyright 2020 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 |
a11038f551ebd4201627884892acccc3acde2aed | 79eaee1be3db992c3ae2e9d33202bfdfdb930567 | /pypaypal/entities/trackers.py | 8e6e1401bd3616ab60f8f57f5f9d9b33adcf05c2 | [
"Apache-2.0"
] | permissive | ivcuello/pypaypal | 23d9b879820a60b29bd60598047b91b7b37d135d | 957cbd4e8d2127b0fc639825ce3a3924acd3216d | refs/heads/master | 2023-03-30T10:13:14.329087 | 2021-04-03T21:49:59 | 2021-04-03T21:49:59 | 205,468,377 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,269 | py | """
Module with all tracking related entities
"""
from typing import Type
from datetime import datetime
import dateutil.parser
from pypaypal.entities.base import T, PayPalEntity, ResponseType, ActionLink
class Tracker(PayPalEntity):
"""
Object representation of a paypal tracker
"""
def __ini... | [
"ivcuello@gmail.com"
] | ivcuello@gmail.com |
728cc126542349da484dede5471de6e2eead4a2c | 0599d87e5e8187cdd6516a0a79d5688a4687484e | /user/views.py | add944ddaff29b80748767d1b2ffc9369bcc973a | [
"MIT"
] | permissive | xiesesshifang/xsadmin | 1d72525cfca9bb429c582c6b351b6e32ad9f5c77 | 7ae457f32fbc6111ceba8555caf2e51db94984bd | refs/heads/master | 2021-01-19T20:33:32.455169 | 2017-04-12T07:06:05 | 2017-04-12T07:06:05 | 88,518,274 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,755 | py | from django.shortcuts import render, render_to_response
from django.views.generic import *
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth import logout as auth_logout,update_session_auth_hash
from django.shortcuts import redirect,get_object_or_404
from django.contrib.sites.shortcuts ... | [
"840652591@qq.com"
] | 840652591@qq.com |
62de7214cbbb58088e81b4e8ebc6c15cdc680be6 | 960ea105720ba818c4c9e26d126e059c56db78e0 | /Prac_01/loops.py | f46e3b7f9fdaac1d8b70454bbc286a666e0ae178 | [] | no_license | jc485282/CP1404-Practicals | 53ceae8805e9cb617adbacab8e291f85bc87bf15 | 28f9af2f29058d30fd50921bcae4d6d4eb891bb3 | refs/heads/master | 2020-04-09T10:43:06.816525 | 2019-01-16T16:00:35 | 2019-01-16T16:00:35 | 160,280,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | for i in range(1, 21, 2):
print(i, end='')
print()
for i in range(0, 101, 10):
print(i, end='')
print()
for i in range(20, 0, -1):
print(i, end='')
print()
| [
"noreply@github.com"
] | jc485282.noreply@github.com |
1f784c31254304cbeea8bb578c7e922eca5de503 | f4839aba3494fec3418b091fa339c911fe96930f | /Coursera mini project_blackjack.py | fdc07bb87af3e4a2a5025676ef359da6e2df5e09 | [] | no_license | luw517/mini-projects-python | dc433bf6f45f88f8025bb344afa9a38f2d9c7426 | 12e2adc17fb67f7c499b9eaac6f1825b839121b2 | refs/heads/master | 2021-08-31T06:29:02.323477 | 2017-12-20T14:58:32 | 2017-12-20T14:58:32 | 114,899,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,801 | py | # Mini-project #6 - Blackjack
import simplegui
import random
# load card sprite - 936x384 - source: jfitz.com
CARD_SIZE = (72, 96)
CARD_CENTER = (36, 48)
card_images = simplegui.load_image("http://storage.googleapis.com/codeskulptor-assets/cards_jfitz.png")
CARD_BACK_SIZE = (72, 96)
CARD_BACK_CENTER = (36, 48)
card_... | [
"noreply@github.com"
] | luw517.noreply@github.com |
384bec76d831b6c1a9203a2c705f025e1dd26c5f | 8259a1fc7e4cfd1a819fd949ae22462217af03c3 | /VitaminC/examples/jtdemo_sun_earth.py | 300021c7b0602dd835405a57d4939023d74211bd | [] | no_license | yugol/inwonderland | 757fd56906427e9451bde52043bd5198e86d2678 | 0544494c506b53a26c6272108aa1df593e5d0dfb | refs/heads/master | 2021-01-17T04:44:38.345350 | 2016-04-30T21:17:32 | 2016-04-30T21:17:32 | 33,028,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | #!/usr/bin/python
""" turtle-example-suite:
tdemo_planet.py
Gravitational system simulation using the
approximation method from Feynman-lectures,
p.9-8, using turtlegraphics
Example: heavy central body, light planet,
Note the (small) movement of the sun!
Demostrates two features of th... | [
"iulian.goriac@dc13d4f6-1963-11df-85bb-b9a83fee2cb1"
] | iulian.goriac@dc13d4f6-1963-11df-85bb-b9a83fee2cb1 |
5e58125ab93ffe8cb48942528452a4bac3b4f7c5 | 3a544f7ba71a0da5a4903553e26435a4e3a16cb3 | /mentorPage/admin.py | 01c340c62add9e4a8468b4b1369a09be2a7e5e3a | [] | no_license | jaya-shankar/Mentor-Platform | 380eb6f09f0acd2e51c2dbf177cfb1f7dcdcd7bb | 21df36290336e0c5607b863c02adbe7f5625576a | refs/heads/master | 2023-02-14T17:02:59.145980 | 2021-01-16T07:45:44 | 2021-01-16T07:45:44 | 269,875,860 | 3 | 0 | null | 2020-07-09T14:11:41 | 2020-06-06T05:12:11 | JavaScript | UTF-8 | Python | false | false | 152 | py | from django.contrib import admin
from .models import Course,Chats
# Register your models here.
admin.site.register(Course)
admin.site.register(Chats) | [
"bjayashankar2102@gmail.com"
] | bjayashankar2102@gmail.com |
79a04a38f256ee75b15d70dbfb980288bf2f544b | a5159b84dd6ca1ea5e4b93e10195fcde49f4b09e | /docs/conf.py | f8db12349092346d3aab33c43b31ceddd681f8a5 | [] | no_license | TimeExceed/tianyi | 1d49a8a86a5b0ee8c9649484fd91647e75c17c12 | bfe9b3539decf21fc8f22c7622debd9f3e74612f | refs/heads/master | 2023-06-25T08:02:34.583009 | 2021-07-17T08:32:57 | 2021-07-31T04:04:44 | 373,176,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | project = "陶大's Personal Library"
copyright = '2020, 陶大'
author = '陶大'
extensions = [
'sphinx.ext.todo',
]
templates_path = ['_templates']
language = 'en'
exclude_patterns = []
html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
todo_include_todos = True
| [
"tyf00@aliyun.com"
] | tyf00@aliyun.com |
4b9fcd38b679c47c7499b1fee6ff55de98530901 | a8a3f1c5d71bb61d374afb56736244aa8ebfbf98 | /calibration/gamma_time_lineup/calc_calib.py | 391fff66d0782e264284362fa212211813f18356 | [] | no_license | Loopdiloop/master_thesis | 203939e2b6dea67744a2b9df92f9659d6604ced4 | f9c85f7f660d3b286715e6c309349be18df40ae9 | refs/heads/master | 2023-05-03T09:43:55.938040 | 2021-05-27T17:49:32 | 2021-05-27T17:49:32 | 244,980,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | """ Script for calulating shifts of time alignment, assuming gain is of no signgificant relevance to the area we're interested in.
"""
import numpy as np
i, peaks = np.loadtxt('time_alignment_peaks.txt', unpack=True)#, delimiter=" ",
#peaks = loaded_peaks[:,1]
actual = 200.
#gain = (actual_6k - actual_2k)/(peak... | [
"mamoll@uio.no"
] | mamoll@uio.no |
715cf98dba667b2bfec6230af954d8a27ad01105 | c06774afd4d9eb5072cfb03e30077307eaf5f1e2 | /Chapter 14 - Exercise 14.5.py | 192cac7494fe72c555a0ffba3e3e9f5314c995d3 | [
"MIT"
] | permissive | DeveloperTinoco/SDEV-220 | 5879d11c414f3aa366f365f709cccfac2c4f1b9d | ef1d169bc39fbee6e8f57643b2cdfd7654b46d63 | refs/heads/main | 2023-03-29T07:33:48.443128 | 2021-03-26T04:57:34 | 2021-03-26T04:57:34 | 350,524,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,615 | py | # THIS PROGRAM WAS SUPPOSED TO EMBED THE GRAPH INTO THE TKINTER WINDOW BUT I DID NOT DO THAT PORTION OF THE ASSIGNMENT SO FEEL FREE TO ATTEMPT IT YOURSELF
from tkinter import *
from tkinter.ttk import *
from tkinter.filedialog import askopenfile
import matplotlib.pyplot as plt
# Creates the global empty dictio... | [
"noreply@github.com"
] | DeveloperTinoco.noreply@github.com |
9931696439c16d6f260bc2a55c2e59b9c061e79e | 03f24f60dd62865dd6402c3666952d7fbe683276 | /conans/test/functional/generators/components/propagate_specific_components_test.py | e3efebea1d28acb2d4163e0b5fe81b57f50c94e4 | [
"MIT"
] | permissive | SSE4/conan | cc4e97c700cd072a9a2741a3d38caa982fd3fbdf | 808b4635f0915e93a6d5c2794c1c73ca9b606bd1 | refs/heads/develop | 2023-01-22T15:51:31.834947 | 2020-10-26T15:03:40 | 2020-10-26T15:03:40 | 78,608,147 | 0 | 1 | MIT | 2021-06-29T07:42:01 | 2017-01-11T06:06:54 | Python | UTF-8 | Python | false | false | 5,798 | py | import textwrap
import unittest
from conans.test.utils.tools import TestClient
class PropagateSpecificComponents(unittest.TestCase):
"""
Feature: recipes can declare the components they are consuming from their requirements,
only those components should be propagated to their own consumers. If re... | [
"noreply@github.com"
] | SSE4.noreply@github.com |
b4150d116c9be477b3d501231d89ebeae46b0aa9 | e44c1ac44a3cc912fbeaa0152b9294a03fd893ea | /test/test_boolean_syntax.py | 5239ddb35aae0c52b65012e4a9d113be293c672b | [
"BSD-2-Clause"
] | permissive | umd-lhcb/pyTuplingUtils | ca03db1975f7f283caab1436ac1c5d85fad75d2a | 85f3ca90f01389f834af6de1044364843210c4c5 | refs/heads/master | 2023-03-10T00:12:40.922444 | 2023-03-03T23:31:09 | 2023-03-03T23:31:09 | 215,201,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,192 | py | #!/usr/bin/env python3
#
# Authorop: Yipeng Sun
# License: BSD 2-clause
# Last Change: Thu Jun 18, 2020 at 02:47 AM +0800
import unittest
from context import pyTuplingUtils as ptu
parser = ptu.boolean.syntax.boolean_parser.parse
class ArithmeticTest(unittest.TestCase):
def test_var(self):
self.assertEq... | [
"syp@umd.edu"
] | syp@umd.edu |
8090400b56a7ae121122c331067a121bc835fc6a | e7197b01550ffcab70b81a9046078a37ac4a98c7 | /sounds.py | 60a90b5e7e530745f760d594a8b3ee14cd88d84e | [] | no_license | clarissalittler/pygame-tutorials | d1b8408d131209c260632f61884697f94e5f723a | 927edbed8c56c60e869c164c92e9c3f130edb5c5 | refs/heads/master | 2021-08-23T13:09:22.026136 | 2017-12-05T01:24:57 | 2017-12-05T01:24:57 | 106,308,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | import pygame
pygame.init()
size = [600, 480]
screen = pygame.display.set_mode(size)
done = False
img = pygame.image.load("thumb.png")
img = pygame.transform.scale(img,(100,100))
imgRect = img.get_rect()
imgRect.center = (300,240)
crash = pygame.mixer.Sound("crash.wav")
while not done:
for event in pygame.even... | [
"clarissa.littler@gmail.com"
] | clarissa.littler@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.