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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cca87d464d7c97efeb9fb43c0d6328b3a9531f32 | bfdb3daf5fb202087c8e578a33787d61afa9b43b | /approximate_matcher/__init__.py | ce4c677f6c4a1b258d188785c289068d850b4ae6 | [] | no_license | ptefu/SNP_Mutation_Finding | 09cc7a24f19300f6efa49a76eab54170e09ed0e1 | 1b7b7aa54755ca4242cd84d1f17f78a002acec81 | refs/heads/master | 2021-01-18T13:26:50.223990 | 2016-09-21T12:50:26 | 2016-09-21T12:50:26 | 68,816,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | from bwt import BWT
from seed_and_check import SeedChecker
# class encapsulating approximate matching with
# seed and check strategy, using BWT for exact matching
# of seeds
#
# Fields:
# _text: target string, with '$' character appended
# _bwt: object of class BWT, used for exact matching of seeds
class... | [
"noreply@github.com"
] | ptefu.noreply@github.com |
980437e82e17e3bf36c9971ae0f863c06893be96 | 7e0907bfe3fc66b2717ff43bbfc496d36e6ca733 | /objectfactory/factory.py | 04140eff2743bb8ec8da0b9656c6e00bbe61c1e4 | [
"MIT"
] | permissive | devinaconley/py-object-factory | 3941fff594d183cbef940288e02c97a0246ba62f | 6c97821feea8c47f7ad909cedbe57938c92761aa | refs/heads/develop | 2023-02-05T19:02:37.930532 | 2021-09-28T21:40:14 | 2021-09-28T21:40:14 | 144,293,421 | 12 | 0 | MIT | 2023-08-17T22:15:42 | 2018-08-10T14:03:53 | Python | UTF-8 | Python | false | false | 2,695 | py | """
factory module
implements serializable object factory
"""
# lib
from typing import Type, TypeVar
# src
from .serializable import Serializable
# type var for hinting from generic function
T = TypeVar( 'T', bound=Serializable )
class Factory( object ):
"""
factory class for registering and creating seria... | [
"devinaconley@gmail.com"
] | devinaconley@gmail.com |
261edbb03d21edcfbbddac4cbc666aaf4627ef69 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/1122.py | 85e9b1f3a0e158754afb90be8fab4af477aa1b48 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Apr 8 18:03:36 2017
@author: marshi
"""
def flipper(s,k):
'''
s:str(ex '-++')
k:str(ex '3')
'''
k = int(k)
s = [1 if c=='+' else 0 for c in s]
flip_range = len(s)-k+1
ret = 0
for i in range(flip_range):
if ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
dc24d3f5bbfdcd6719b2dce791a8e9b807c6f9df | 040f749318ab420de29e1a8d4814f48279aa903c | /Radiosondenaufsteig/docs/source/tephigram.py | 28792da77eb3af771f09d2aff01c56a1ed059260 | [] | no_license | meindlm97/Radiosondenaufstieg | 14df1df2eed066e4e644aca9dabd884d1f68b0ce | 396affe151aa3bd773b8255fde07b2a9c22d5a6a | refs/heads/master | 2020-12-03T16:58:05.186176 | 2020-01-06T22:33:33 | 2020-01-06T22:33:33 | 231,399,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,132 | py | #!/usr/bin/env python
"""
**Title: Radiosondenaufstieg**
*Author: Maximilian Meindl*
Description: Short Program to plot a Tephigram which includes a Temperature and humidity line. In second part a geographical map is plotted which shows the ascent point of the radiosonde.
"""
# Import the required packages
import ma... | [
"noreply@github.com"
] | meindlm97.noreply@github.com |
b8e37fd7750fd45aa1e19ae924b11d15d1cdaeec | 9e25a087c55cdf8acbd80d41c3a1fff702ca8593 | /python/custom/models.py | 267a0d7bbbff53bcf78c057ce51196d89d5a61e5 | [] | no_license | hav4ik/unzip-nets | 7dd04072fe434cb45bca844866dc272357664f32 | f10926ca9131e3c5ab77a979f30a1dcd332a9b8f | refs/heads/master | 2020-03-30T21:43:32.372606 | 2019-01-04T08:36:01 | 2019-01-04T08:36:01 | 151,639,696 | 2 | 0 | null | 2018-10-31T23:40:39 | 2018-10-04T21:44:34 | Python | UTF-8 | Python | false | false | 5,976 | py | import tensorflow as tf
layers = tf.keras.layers
def _get_keras_update_ops(model):
"""Gets a list of update_ops of keras model
"""
update_ops = []
for op in model.updates:
if isinstance(op, tuple):
update_ops.append(tf.assign(op[0], op[1]))
else:
update_ops.app... | [
"tran.thecoder@gmail.com"
] | tran.thecoder@gmail.com |
1ca9e7a15a4e3592e15187e133c4201e94259a15 | 45196ae7cd92bed9889c8396476b4d55e3a2a435 | /Working/ClassExamples/1_2.py | 052800e7fb7ecc37811f24a5552ec2bf17125415 | [] | no_license | StRobertCHSCS/fabroa-PHRZORO | 3b67dbabd747cc8025c0fb0cf9d51bcc167ee617 | 2b6cb2b900029ea6997d417dd2abd8f0d4364535 | refs/heads/master | 2020-07-24T21:28:46.922129 | 2019-12-09T14:46:24 | 2019-12-09T14:46:24 | 208,054,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | print(12345//10)
print(12345//100)
print(12345//1000)
print(12345 % 10)
print(12345 % 100)
print(12345 % 1000)
print(5 + 30 * 20)
print((5 + 30) * 20)
print(((5 + 30) * 20) // 10)
print("y"+"e"*2+"t")
print("a"+str(3))
| [
"charlie.ma22@ycdsbk12.ca"
] | charlie.ma22@ycdsbk12.ca |
dd8d212b9e0b58bef8a3d146df4ed91f431c6704 | c1bc72c54c607d7431dff293824659d640c41f2c | /djapps/auth/local/gaemodels.py | ebc1778d185d09fc62f15c49ec25329625ca4946 | [] | no_license | panyam/djapps | ded6ac4777048750986d9b554434d3983c297c3a | e54c5b04b50c2d074567dd652755e76bfe1b6c42 | refs/heads/master | 2021-01-01T19:25:11.029214 | 2014-01-22T06:13:15 | 2014-01-22T06:13:15 | 32,132,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,518 | py | from google.appengine.ext import db
import utils
UNUSABLE_PASSWORD = '!' # This will never be a valid hash
def check_password(raw_password, enc_password):
"""
Returns a boolean of whether the raw_password was correct. Handles
encryption formats behind the scenes.
"""
algo, salt, hsh = enc_password... | [
"sri.panyam@gmail.com"
] | sri.panyam@gmail.com |
a886c659da594993e85f09eb146cb505efe5fa7a | 558165d47cb4b545d7e81cdb0108db8f436a5ea6 | /habra_proxy/app/views.py | 26123907d886f1b378a0c893dd3d0bde7a438de5 | [] | no_license | Nick1994209/interview_tasks | 08365f152f2cfec559fbeceaeb117110ad02d9bc | 1f8c5279f2f0d52c3d147cac8b79918d780ec524 | refs/heads/master | 2020-04-24T10:58:15.569067 | 2019-02-25T17:48:10 | 2019-03-10T20:05:22 | 171,911,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | from aiohttp import web
from app import settings
from app.helpers import add_symbols
async def habra_proxy_handler(request):
path = request.match_info['path']
habra_status_code, habra_headers, habra_body = await request.app['habra_fetcher'].fetch(path)
response_headers = {header: habra_headers[header] f... | [
"NVKorolkov@domclick.ru"
] | NVKorolkov@domclick.ru |
3bec2c9d3fb8aa08d9400de024315c8c6a5b51a6 | abd9db1e08b8cd0dc7e988a04d0403037d035887 | /canvas_mouse.py | 2b27304d69da42a3f25d8905473ede7b3dd571dd | [] | no_license | atm1504/tkinter-learn | 4fd5bb368d75e38696af367612e384866b9a331c | 1e41cda5ba8c3aaeb64fa0621b58d83f0e53f242 | refs/heads/main | 2023-03-02T22:38:28.456185 | 2021-02-12T16:14:15 | 2021-02-12T16:14:15 | 323,787,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | from tkinter import *
from PIL import ImageTk, Image
root = Tk()
root.title("Learning Tkinter")
root.iconbitmap("./images/quality.ico")
root.geometry("800x600")
w = 600
h = 400
x = w // 2
y = h // 2
myCanvas = Canvas(root, width=w, height=h, bg="white")
myCanvas.pack(pady=20)
# myCircle = myCanvas.create_oval(x, y... | [
"atm1504.in@gmail.com"
] | atm1504.in@gmail.com |
8ee11b9aa31d99bf49a6ec750dce32bd8bb88126 | c27dd3290d07c210f4b9b2d28b9d2b5730a2a936 | /TensorStudy/Word2Vec.py | 5a161b96b063fae29e8dc0001a9e593f99ea6a47 | [] | no_license | 1493115830/test | a8985b1780c7376371b7c9f18573eedb8cb4e6e8 | 2b134aa197a23d835385ca35dc74ed893213772e | refs/heads/master | 2020-06-03T09:51:31.873104 | 2019-07-09T14:40:29 | 2019-07-09T14:40:29 | 191,527,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,554 | py | # encoding=utf8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
import math
import os
import random
import zipfile
import pandas as pd
import numpy as np
from six.moves import urllib
from six.moves import xrange # pylint: disable=redefi... | [
"1493115830@qq.com"
] | 1493115830@qq.com |
25ab6daf0b1b321bc621a135b76275efad1bb1a6 | 6f5451b3d46aaf94caea94580cf836124f05048d | /WebTextbook_scanner.py | 7614d0ec960c80cd8f70836bbaf32376635ac3ad | [] | no_license | are-38-a/WebTextbook_Scanner | 90b9cadf55338423d42359e783d13e3302f00211 | 7c455ea3f834c9733a633d1f4bec708310a5d0e9 | refs/heads/main | 2023-08-25T21:15:42.515283 | 2021-10-07T09:30:09 | 2021-10-07T09:30:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,676 | py | import pyautogui
import sys
import time
import os
import img2pdf
from PIL import Image
from PIL import ImageEnhance
def enhance_image(filename):
image1 =Image.open(filename)
con1 = ImageEnhance.Contrast(image1)
image2 = con1.enhance(1.5)
con2 = ImageEnhance.Sharpness(image2)
image3 = con2.enhance(1... | [
"85498974+miya-38-a@users.noreply.github.com"
] | 85498974+miya-38-a@users.noreply.github.com |
2a12e578f31192c0001b9b89e9a719f50b5da2da | c01a58ecd6614128e3c29a70e3e768b220a2a4a2 | /common/xrd-ui-tests-qautomate/variables/strings.py | a233680dec41ae8660d3bc1c1cb81e372fbfefeb | [
"MIT"
] | permissive | nordic-institute/X-Road-tests | 772a6d7485606c1f10b61a1260b8fb66111bf0be | e030661a0ad8ceab74dd8122b751e88025a3474a | refs/heads/develop | 2021-06-03T01:38:20.542859 | 2019-03-18T12:16:18 | 2019-03-18T12:16:18 | 125,643,677 | 2 | 3 | MIT | 2018-06-14T15:09:21 | 2018-03-17T15:36:32 | Python | UTF-8 | Python | false | false | 7,221 | py | import os
from QAutoLibrary.extension.parsers.parameter_parser import get_parameter, get_all_parameters
# Jetty log events
failed_to_generate_global_config = u'Processing internal configuration failed:'
# audit log events
login_user = u'Log in user'
logout_user = u'Log out user'
login_user_failed = u'Log in user fail... | [
"lasse.matikainen@qautomate.fi"
] | lasse.matikainen@qautomate.fi |
b53760c5590f9a61ad98412ea6665d450fccb0e3 | a08d0201faf9f96c1785307009eb951640d6db37 | /protocol/impl/radio_pb2.py | 6386b17e9085be46ff5a6e13e06f5917953cf95f | [
"Apache-2.0"
] | permissive | ykelle/spotipy-control | 4729ee71e23ca403db3951127388684c8270a158 | f2f25b86b4e40f5769fb7b74f6dabcfa19cbc2ff | refs/heads/master | 2020-08-19T02:34:03.709703 | 2020-03-10T20:12:49 | 2020-03-10T20:12:49 | 215,865,822 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | true | 18,004 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: radio.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflect... | [
"dborisov@pymedia.org"
] | dborisov@pymedia.org |
405a91a398a5c0fb9ef017dddb47ea0b984c35ca | 78c08cd3ef66836b44373280a333c040ccb99605 | /ostap/tools/splot.py | 6058ac4b1fcc07a0d338268419fd8dfb0b5d9790 | [
"BSD-3-Clause"
] | permissive | Pro100Tema/ostap | 11ccbc546068e65aacac5ddd646c7550086140a7 | 1765304fce43714e1f51dfe03be0daa5aa5d490f | refs/heads/master | 2023-02-24T08:46:07.532663 | 2020-01-27T13:46:30 | 2020-01-27T13:46:30 | 200,378,716 | 0 | 0 | BSD-3-Clause | 2019-08-03T13:28:08 | 2019-08-03T13:28:07 | null | UTF-8 | Python | false | false | 7,485 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==========================================================================================
## @file ostap/tools/splot.py
# Helper utilities to get sWeights in a form of function/histogram
# (often needed in practice, e.g to add these values to TTree,
# avoiding the di... | [
"Ivan.Belyaev@cern.ch"
] | Ivan.Belyaev@cern.ch |
488869c32fe0e14bcb21f369089469ef0f757606 | 403417ce4d126d7054942b0b4cb09aafec3daa17 | /genconfig.py | 5fe41167ecd4f6fffe549647c925f6a917635b25 | [] | no_license | gagnonlg/pixel-NN-training | 74f05802796df0e2d73cddf11114767f6985167b | a2a8758a7c79625d4926faa2557c8fdafe434c84 | refs/heads/master | 2019-07-13T21:15:00.026854 | 2017-08-07T13:57:40 | 2017-08-07T13:57:40 | 110,745,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,003 | py | import argparse
import re
import sys
def parse_args(argv):
p = argparse.ArgumentParser()
p.add_argument("--sizeX", type=int, default=7)
p.add_argument("--sizeY", type=int, default=7)
p.add_argument("--type", choices=['number','pos1','pos2','pos3', 'error1x', 'error1y', 'error2x', 'error2y', 'error3x',... | [
"louis.guillaume.gagnon@gmail.com"
] | louis.guillaume.gagnon@gmail.com |
ad473d28906000616ee429c441ad8565e19a76db | fa43c7ce1afa489996dac762e88431e8e8f58ff5 | /old/scripts/script3.py | dc92c029bf073c530a003c3ee76dc9996e07a7b8 | [] | no_license | JasThiara/Asset-Bubbles | 2ed588c0ded5ed8bef2097f76d143d584063f8f3 | 2188700ed9e7cdc5b96d52fa7df9b60eda9df1e2 | refs/heads/master | 2021-01-16T21:23:34.423436 | 2014-06-07T22:31:22 | 2014-06-07T22:31:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,400 | py | import ystockquote # going to ystockquote
import sched, time, datetime # to recieve scheduler, time and datetime
from sys import argv # from system get argument variable
script, symbol, start_specific_time, end_specific_time, filename, datarate = argv
def get_price_time(symbol):
price = ystockquote.get_price(symb... | [
"Jas@127.0.0.1"
] | Jas@127.0.0.1 |
d199bf88678cf0570adfc068e858f6ac73ff02e1 | 5c831405523d54b662de714cfc1ea1759d36d55a | /set4/NATOalphabet.py | 9edb4a339efed010f215ce55d83f8d40e32dd8e8 | [] | no_license | dandumitriu33/codewars-Python | 99feeb979723d556a4eeb0b2130ba48c2fd394c6 | e54ca88a3ec026e5fb770cfa44c1e8b669711a5e | refs/heads/master | 2020-08-29T13:08:26.325554 | 2019-11-24T18:19:36 | 2019-11-24T18:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | def nato(string):
nato_dictionary = {
'a': 'Alfa',
'b': 'Bravo',
'c': 'Charlie',
'd': 'Delta',
'e': 'Echo',
'f': 'Foxtrot',
'g': 'Golf',
'h': 'Hotel',
'i': 'India',
'j': 'Juliett',
'k': 'Kilo',
'l': 'Lima',
'm': ... | [
"dandumitriu33@gmail.com"
] | dandumitriu33@gmail.com |
6ea1c1cd65f230e1a97f8f67ddff9de781985aec | b0e9fcea70640eb73c62febc99ebe6ffe85ce10d | /research/improve_nas/trainer/optimizer.py | 03e74fb7f8a176ae3b07165d2e2b04c88674a8ab | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | mns2013/taek | 3a550eee9604b5cdfe95ac2c691a20e3126ccae1 | 385cb5117159a481998d729dda88c1fbd12df77c | refs/heads/master | 2023-09-02T01:58:04.015297 | 2021-10-22T20:40:45 | 2021-10-22T20:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,015 | py | # Lint as: python3
"""Definition of optimizers and learning rate schedules.
Copyright 2019 The AdaNet 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
https://www.... | [
"weill@google.com"
] | weill@google.com |
7a4afe01efdff40a87a5862423142c8f4ca45da6 | 67358d856f1ec155a15b0de72a7e5c112fed7766 | /foreman/architect.py | 6fe0cdc4220cfe83cc883e62fd5a961603bd4c9b | [] | no_license | rsumner33/pyforeman | 03c528bcd79c16c7a2062300209416ca35a99f70 | b7a5e32423b62acbc5d0f94d01a471cac84282f7 | refs/heads/master | 2022-07-18T02:52:19.038226 | 2018-05-07T01:25:30 | 2018-05-07T01:25:30 | 132,389,810 | 0 | 0 | null | 2020-02-22T08:57:13 | 2018-05-07T01:12:36 | HTML | UTF-8 | Python | false | false | 338 | py |
# Container class
class Blueprint:
def __init__(name, builder, materials, foundation):
self.name = name # String: uid of target material
self.builder = builder # Builder llambda
self.materials = materials # Frozenset of Strings (material uids)
self.foundation = foundation # Tu... | [
"rsumner868@icloud.com"
] | rsumner868@icloud.com |
85686c4d05e6b6d3672cc35bd6d1be81f39dc1a3 | 569d0015efa37a91730de1f2fb2a3187cb334046 | /advent_of_code_2017/03.py | 8b5a0c3f422a581900845b23b375b171a6bce197 | [] | no_license | jcbbeiter/misc-projects | a14bad6b0a879c44e19c09dfc8566841bece9a94 | f0f1f0abf5f45e8e2c4198ae52a03cc6b647e198 | refs/heads/master | 2020-09-09T06:11:33.000834 | 2018-07-08T00:52:29 | 2018-07-08T00:52:29 | 94,440,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | #!/usr/bin/env python2.7
import math
# First part
nums = [12, 23, 1024, 368078]
for num in nums:
factor = 1
while num > factor**2:
factor = factor + 2
largest = factor**2
smallest = (factor-2)**2
ring = (factor-1)/2
ordinal = (num-smallest)%(2*ring)
diff = ring-ordinal if ordina... | [
"jbeiter@nd.edu"
] | jbeiter@nd.edu |
add2d5dbd5073d4c3256e137cc374c427b69771a | 11e4bd1b29a66b97df9b3b32b2827eac88a24fd8 | /pysrc/829.py | 0cfb02a821fd116e08ad27b2f72a325433c7760d | [] | no_license | linkinpark213/leetcode-practice | 4db17462b67e7a1a34184aada041cb3854f78385 | 13379e6fdd9299c606889fefa0a38426ef4fa5e7 | refs/heads/master | 2021-07-08T16:16:28.428003 | 2020-09-16T14:30:51 | 2020-09-16T14:30:51 | 185,179,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | class Solution:
def consecutiveNumbersSum(self, N: int) -> int:
i = 1
count = 1
while i ** 2 <= 2 * N:
i = i + 1
temp = N - i * (i + 1) // 2
if temp >= 0 and temp % i == 0:
count += 1
print(i, end=', ')
print(count)
... | [
"linkinpark213@outlook.com"
] | linkinpark213@outlook.com |
69ea2fccd1bf4675dcc82489a7e1e6a2774b3b49 | c564aeb1370ed6dc9eb319f2cd3c6df6f0f73c8c | /schemas/person.py | 85df48bff97ee98c4e1b37fd54c4822fe2387560 | [] | no_license | dexx1220/flask-rest-api | 206603f17fb9057dfa53cd2c6031a3bd5bc8e508 | 99aac87f069f9b2025089e54b6c752b1af0b297c | refs/heads/master | 2022-12-10T00:06:31.336994 | 2020-01-07T17:44:00 | 2020-01-07T17:44:00 | 232,381,623 | 0 | 0 | null | 2022-12-08T03:24:17 | 2020-01-07T17:44:25 | Python | UTF-8 | Python | false | false | 296 | py | from models.person import Person
from config import db, ma
from marshmallow import fields
from .person_note import PersonNoteSchema
class PersonSchema(ma.ModelSchema):
class Meta:
model = Person
sqla_session = db.session
notes = fields.Nested(PersonNoteSchema, default=[], many=True) | [
"dexter.heng@S05242-MBPR.local"
] | dexter.heng@S05242-MBPR.local |
1383e6c1c998e8920abcf806361d456eb0406ada | beed259c9aaf824c5307d93ffa736255f2d98831 | /leetcode/huawei/鸡精.py | c46d16b5e3409e2a911d05f02e8ee154f8c8440d | [
"Apache-2.0"
] | permissive | chaofan-zheng/python_learning_code | 21345f97ebf74c3cad0ef488a93ec8a7fd771a63 | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | refs/heads/main | 2023-05-27T16:17:18.130492 | 2021-06-06T14:23:31 | 2021-06-06T14:23:31 | 338,234,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | """
1、数字涂色,涂相同色的数字都可以被同色的最小数整除,问最少需要多少种颜色?
2、输入一个K,从1到100报数,报到K后移除K,然后下一个从1开始继续报数,直到剩下的人数比K小,问剩下的人原来的编号是多少?
二星题:
3、服务器广播问题,输入一个二维数组,1和0组成,array[i][j]==1表示i和j直接相连,不等于1是间接链接,直接和间接连接的服务器都可以互通广播,
比如:A和B直接连接,B和C直接连接,则A和C间接连接。问初始需要给几台服务器,才能使所有服务器收到广播?
"""
# T1
# nums = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] # 考虑空和1
... | [
"417355570@qq.com"
] | 417355570@qq.com |
38cc87aaa7de26eae7ccf2dc51247306d80ed3bb | 9df85a773a056e50c7bbc9d1c821c5a33c1577fe | /handlers/tools.py | c7907e1518afebc1bcc81c4429effd0983c904f8 | [] | no_license | patrickt/mltshp | 207aa5cc2871400426daaa6e45293d420ca54cd7 | 7cc8a4f5af10f69c81048e6f82fc8f62fcf35ffb | refs/heads/master | 2021-01-18T20:53:18.755287 | 2017-04-02T05:46:06 | 2017-04-02T05:46:06 | 86,997,957 | 0 | 0 | null | 2017-04-02T16:06:41 | 2017-04-02T16:06:41 | null | UTF-8 | Python | false | false | 23,428 | py | from urlparse import urlparse, parse_qs
import os
import re
import random
import json
from tornado.httpclient import HTTPRequest
import tornado.auth
import tornado.web
from tornado.escape import url_escape, json_decode
from tornado.options import define, options
from BeautifulSoup import BeautifulSoup
from models im... | [
"brad@bradchoate.com"
] | brad@bradchoate.com |
85f4fa6516e46e1b52ec1a2be786f56b046039ea | 52d8e56620497a8780de1888afc45cfbe5af3548 | /secuenciales/ejercicio6.py | 7fb04f40290c33255b96bf00dc329a26c87126b5 | [] | no_license | Dwensdc/Upeu_practice1_FDP | 649c8c9a06146003fe2febc8ced1533f7724a00e | d9fc58eb80b643af08f74ef74be9383ca4bd1799 | refs/heads/main | 2023-04-16T19:03:07.919262 | 2021-05-09T23:16:31 | 2021-05-09T23:16:31 | 357,931,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | print("======================================================================")
print("CALCULAR ")
print("======================================================================") | [
""
] | |
3c02048a3bf779942c02996c3dea76cb18814ae5 | 78edd838985658cc1e1abb9dd482e937652526fe | /reverse.py | 7522f642a26e99c3b01847a60e1f4518600517f1 | [] | no_license | Tommyhu28/Epi-school2 | a576f00bb21708ea4a48215d600c1a9b38789f4a | 21a0d3b9dbc01a59b1993875524ca9401b03e2c6 | refs/heads/master | 2023-06-01T09:32:04.984032 | 2021-06-21T21:15:21 | 2021-06-21T21:15:21 | 379,064,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | def my_reverse(items):
size = len(items)
if (size < 1): return None
my_list = []
count = 1
while (count <= size):
my_list.append(items[-count])
count += 1
return print(my_list)
# s_list = [12,11,10,9,8]
# my_reverse(s_list) | [
"zonghonghu@gmail.com"
] | zonghonghu@gmail.com |
4df9e1ecab90826d4911cafc525a27c48d0ed37d | e8ab0029ebb965fc0479134b6faa5e6ebc790083 | /6_correlation.py | fe4bb91bdc53a133c80b2a001a085e5b760a62b6 | [] | no_license | shenglih/fluency | 0182411a0b867dd01c8e6f481dddad8975d0d3b7 | 2d38ed05703ee1237cd23fa1ab53fa5aa91557ac | refs/heads/master | 2021-09-16T12:45:20.579437 | 2018-06-20T19:18:03 | 2018-06-20T19:18:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,739 | py | #!/usr/sheng/env python
print "system argument 1: which feature file to use, no need to include .npy"
print "system argument 2: take log of memscore or not: 0, don't; 1, do."
print "system argument 3: take log of merged['mean'] or not: 0, don't; 1, do"
print "system argument 4: take log of popscore or not: 0, don't... | [
"noreply@github.com"
] | shenglih.noreply@github.com |
ead2d26459b946ec911a3765ca81dc830819ffb2 | 72805a17297659bf290083e01ac1579846f264f1 | /Virtual Dice roller/Dice_roller.py | 9b7fba5d883a38532152bdee73bee0bcb7000851 | [] | no_license | Viresh-nalwa/hacktoberfest_2021 | b502016b8a32a4b66de27da119547424a5f86f20 | 7d9eb5f7276dfd6e0e80a1732c315b10a02a4c2b | refs/heads/main | 2023-08-30T02:20:07.512512 | 2021-10-02T12:41:11 | 2021-10-02T12:41:11 | 412,615,808 | 0 | 0 | null | 2021-10-01T21:01:10 | 2021-10-01T21:01:09 | null | UTF-8 | Python | false | false | 1,672 | py | import tkinter
from PIL import Image, ImageTk
import random
# toplevel widget of Tk which represents mostly the main window of an application
root = tkinter.Tk()
root.geometry('700x500')
root.title('Virtual Dice Roller')
root["bg"] = "#296c92"
dice = ['dice1.png', 'dice2.png', 'dice3.png', 'dice4.png', 'dice5.png', '... | [
"varuneshnalwa2002@gmail.com"
] | varuneshnalwa2002@gmail.com |
6bc6a2fd982a58318b5ceeb28018bff8b8151a24 | e69bda77652222a71dd0f9a7cf73fedf8c6b0d1d | /python/args.py | 7e02f3f4b3024d24a3068f32077901f09701920e | [] | no_license | wajustinzhang/projects | acbfc8a65f4c4b1e77818d1e5987841c158fd34c | 19e11d3a1440105bb9a0cb3ebcd28ba0a06a0a9d | refs/heads/master | 2020-04-05T13:37:10.248424 | 2017-07-20T01:42:00 | 2017-07-20T01:42:00 | 94,920,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | import sys
# read args
print(sys.argv)
# string format
print('test {}'.format('python'))
# string join
print('test'.join('-----'))
# reverse a string
'hello world'[::-1]
oldList = [1,3,4]
# shallow copy
newList = oldList[:]
def foo(x='thisis'):
pass
def foo(x, *y, **z):
pass
def foo(x, y='test'):
pa... | [
"justinwazhang@gmail.com"
] | justinwazhang@gmail.com |
5b08782e2dbfa386aa516497f8b080c229e7762a | 492b1144c72a393f944e341176f9e42796c7598b | /ceilometer/objectstore/swift_middleware.py | 6bc77e95c8a2bf53213b3bd00ba5cabf1e165abc | [
"Apache-2.0"
] | permissive | lexxito/bachelors_thesis | 09913eb8357e2d8439f718da63bea0ebb358b86b | bec8dfb8d3610331c7ae5ec543e0b8da0948c164 | refs/heads/master | 2022-01-22T23:52:27.870965 | 2019-05-05T11:04:48 | 2019-05-05T11:04:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,611 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright © 2012 eNovance <licensing@enovance.com>
#
# Author: Julien Danjou <julien@danjou.info>
#
# 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 Lice... | [
"you@example.com"
] | you@example.com |
66c68a488457c61a4901c1167a03a57947674085 | 84e7c65cf71e52ee8bda64ea59026961f1d2bf12 | /examples/demo_dag.py | e9fd77714f041959e8668b34794f62e54eaaace0 | [
"Apache-2.0"
] | permissive | whugoh/marquez-airflow | a2d981562d14beecd417f036e21d7112a81a67d1 | 003a46507c2e1d97072d4a4c9e733374e04116a1 | refs/heads/master | 2020-04-27T09:46:54.560307 | 2019-02-21T18:07:57 | 2019-02-21T18:07:57 | 174,228,584 | 0 | 0 | null | 2019-03-06T22:07:22 | 2019-03-06T22:07:21 | null | UTF-8 | Python | false | false | 761 | py |
from marquez.airflow import MarquezDag as DAG
from airflow.operators.dummy_operator import DummyOperator
from datetime import datetime
DAG_NAME = 'test_dag_v2'
default_args = {
'mqz_namespace': 'demo',
'mqz_location': 'github://my_dag_location',
'mqz_input_datasets': ["s3://great_data", "s3://not_so_good_... | [
"rodrigo.araya@gmail.com"
] | rodrigo.araya@gmail.com |
8c98d8ffb72a318856ececa30e636d03426c350b | 2342616ec6a52911116e75253e119c6e72d6cb7f | /WholeBrain/Utils/permutation_htest2_np.py | ebecacc87bf64b8192720d6ba016a0f29b282ec1 | [] | no_license | dagush/WholeBrain | 40e435c874571429c3353de95b2c27e2ae6b5fd5 | 747ee61a5278fba39888edb31ae6ce69c41bf64d | refs/heads/master | 2023-08-31T04:06:19.608429 | 2023-08-28T20:40:49 | 2023-08-28T20:40:49 | 188,561,840 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,899 | py | # --------------------------------------------------------------------------------------
# PERMUTATION_HTEST2_NP - A "non-parametric" two-sample hypotesis test that, instead of
# relying on the test-type standard distribution, uses permutations of group labels to
# estimate the null distribution. The null distribution ... | [
"31112588+dagush@users.noreply.github.com"
] | 31112588+dagush@users.noreply.github.com |
c14d44c7e4d61d0ee286a68e6aa4a3540fb69fdc | 48871bea340c97091e75ab041101cebb860c603c | /freddie/db/fields.py | 3cbdb237f76f24c78cc389f04579076874aac200 | [
"MIT"
] | permissive | Keegan-y/freddie | 9826f3706315a8c7124fd7ae750804627481497b | 7fb812a66650d07612b4055509fac25d009acc68 | refs/heads/master | 2023-01-31T06:51:40.055938 | 2020-12-16T08:29:00 | 2020-12-16T08:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,971 | py | from typing import Any, Iterable, Type, Union
from peewee import (
Expression,
Field as DBField,
FieldAccessor,
ForeignKeyField,
MetaField,
Model,
Query,
)
class ManyToManyAccessor(FieldAccessor):
field: 'ManyToManyField'
def __get__(
self, instance: Model, instance_type:... | [
"a.gabdullin@tinkoff.ru"
] | a.gabdullin@tinkoff.ru |
0871ad25a47fbfb9af1d7c9305e12f557acba868 | 45e37cfce061f5c023af2d95611246991af79445 | /main.py | 3f51fec79de41270bb8ba8ffe22c805642319014 | [] | no_license | SYFT/5184Spider | ee075f1243e56935b529177f1350a1e335a73fba | d943bdceaed83f0fcc04206425094a7a123075dc | refs/heads/master | 2021-01-20T18:47:54.538110 | 2018-08-11T13:04:41 | 2018-08-11T13:04:41 | 62,187,793 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,739 | py | # -*- coding: utf-8 -*-
# package import
import urllib, urllib2, cookielib
import pytesseract
from PIL import Image
import sys
reload(sys)
sys.setdefaultencoding( "utf-8" )
# my pyfiles
from config import *
import denoise
# functions
def getCheckcode() :
"""
Use 'checkcode.jpg'
re... | [
"smallrqnoj@163.com"
] | smallrqnoj@163.com |
28409a0ac09ff5b5b2961428042e5d16a38e6e92 | cf6af4c65a8f0b02a41951388123b3dde233399d | /backend/venv/bin/flake8 | ab687fc978e1a73da18cd0a05a20d0637d713b19 | [
"MIT"
] | permissive | byamba3/mobilemetrics | 58e967e41c9da237866ba147b9bd160a04bcb371 | 2e6c53325ecff842bde8c8fe19de220e8f90cb1d | refs/heads/master | 2020-03-16T20:56:07.292243 | 2018-09-11T02:40:20 | 2018-09-11T02:40:20 | 132,978,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | #!/Users/cogitau/Github/Mobile-Metrics/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flake8.main.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"cogitau@Byambas-MacBook-Pro.local"
] | cogitau@Byambas-MacBook-Pro.local | |
ca7734726038079648104456812ee5d54bd3a63a | 55025c7978dd54461cbc433a2f6e973b473bb81b | /athena/models/kws/conformer_wakeup.py | 076a50f99c6a1734699329bb4f0f32ea2861944e | [
"Apache-2.0"
] | permissive | ishine/athena-1 | 32dabd36ef90e684dfddcf2402feaa2a6bde41b1 | 0be22c155c782207349ad6b2135f974d8673611f | refs/heads/master | 2023-07-27T17:03:40.353380 | 2022-12-02T02:43:19 | 2022-12-02T02:43:19 | 239,663,565 | 0 | 0 | Apache-2.0 | 2020-06-23T02:12:49 | 2020-02-11T03:00:59 | Python | UTF-8 | Python | false | false | 5,754 | py | # coding=utf-8
# Copyright (C) 2022 ATHENA AUTHORS; Yanguang Xu; Yang Han; Jianwei Sun
# 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/lic... | [
"nene.luo@gmail.com"
] | nene.luo@gmail.com |
6f5d642f6f4e18d927d2edafc5f17adb36ed550e | a2931ad429ba6848261c4c18abcb74be2c05a30b | /return.py | bce8695072d4d74d268d8bf90c37295bdfd01b49 | [] | no_license | amansarosh/python-functionality | 9c19d94c73ea3906f00e5efa8c2289386d05933d | 09fba1ffd43345e46240ca88b23d846c65ffc6d9 | refs/heads/master | 2020-11-29T09:06:53.281052 | 2019-12-27T06:25:20 | 2019-12-27T06:25:20 | 230,076,605 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | def cube (num):
return num*num*num # return breaks the function so nothing can be added after
result = cube(4)
print(result)
| [
"amansarosh13@gmail.com"
] | amansarosh13@gmail.com |
04fd223d42564ea7b883a0d71c3e3e63662024b4 | 33a865b20240007d8ff63bba5d8ddd20eaf37ccf | /5-A.py | 3acd184846e03437d602719085a950b4a6279e4d | [] | no_license | Guan-Ling/20210125 | b39673c4e4a1d3a47b6e5b7b7b3b9f7bb18609ab | 970eeb4e30ba22142eaae6f2ba4713515ac12f6c | refs/heads/master | 2023-02-22T10:11:25.715025 | 2021-01-29T09:01:28 | 2021-01-29T09:01:28 | 332,667,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | # Given a string, delete all the characters @ from this string.
# Bilbo.Baggins@bagend.hobbiton.shire.me
# Bilbo.Bagginsbagend.hobbiton.shire.me
s=input()
k=s.replace("@","")
print(k) | [
"x5j035j03x@gmail.com"
] | x5j035j03x@gmail.com |
e5f051658711903eb3072efecc81121e0d84abf4 | 96d31f7125e4f790bb648127a0843a5e6eff7925 | /3rdparty/blender/io_export_glhck/export_glhckm.py | c5730f6ef5b38719a8e9cf06e76770cf54b20878 | [] | no_license | Cloudef/glhck | 6797703960d7987736126b9dfb28fcb3d894d965 | 3592bd436c3571165a04881319a834cf49dbf9d0 | refs/heads/master | 2021-01-22T03:04:58.731501 | 2014-04-27T15:31:32 | 2014-04-27T15:31:32 | 4,010,391 | 8 | 0 | null | 2014-04-27T15:29:51 | 2012-04-12T23:17:22 | C | UTF-8 | Python | false | false | 51,326 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"mailroxas@gmail.com"
] | mailroxas@gmail.com |
a6cb063cbc50ca0b9dcd3bb40bca8952037c08a0 | 11b420a9e6dbe371167227f41ef8e344e3382612 | /ConvNets/active_learning/Acquisition_Functions/BCNN_Maximal_Uncertainty/Variation_Ratio/trial_variation_ratio.py | efcf695711ce8e03da6928171e4e1a4aaa424c3f | [
"MIT"
] | permissive | tarek-ullah/Active-Learning-Bayesian-Convolutional-Neural-Networks | 7092386758b68dc922efaa2c2eba055930bf2896 | f8b68038bd3b97c473e9c1de6b6cdee4538021f4 | refs/heads/master | 2021-01-13T06:57:19.343775 | 2016-11-02T12:22:16 | 2016-11-02T12:22:16 | 81,338,773 | 1 | 0 | null | 2017-02-08T14:34:15 | 2017-02-08T14:34:15 | null | UTF-8 | Python | false | false | 8,234 | py | from __future__ import print_function
from keras.datasets import mnist
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPooling2D
from keras.optimizers i... | [
"riashat.islam.93@gmail.com"
] | riashat.islam.93@gmail.com |
5dcc3330197b0a722daae4604cb2a2df775f3a8a | 1526f01b31f6970025b30c6f07fb7de5bb45162c | /objects.py | d30ab972cebcb2934ea6c1b4dcea497742bc77e5 | [] | no_license | andremene182/ProgrammingLab | b768268f06b9cdf03b289e47ba5709202eabe611 | 2daab45f174e9cc21cde0719061a999755002f6b | refs/heads/main | 2023-02-18T09:31:18.972594 | 2021-01-17T19:43:01 | 2021-01-17T19:43:01 | 310,743,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | class Pagina:
def __init__(self, numero, capitolo, testo):
self.numero = numero
self.capitolo = capitolo
self.testo = testo
pagina1 = Pagina(numero=1, capitolo="Ciccio", testo="Ciccio Bello")
print(pagina1.capitolo)
libro = []
class PaginaVuota(Pagina):
#pass = codice "vuoto"
pass
class Pagina... | [
"replituser@example.com"
] | replituser@example.com |
72bc738c1242776943eb2708e5355cd14ad5642c | 54383b87d0b37da153cf8e03b33bd29a21fd41a9 | /stockalyzer/twitter/viewsets/ticker.py | 59f69f251b50399834578eae739371af803ba0ad | [] | no_license | webclinic017/stockalyzer | ea626b03501ccd44cd7f930c55ea4fb71f370ede | cc8952585590965fac3ab3032e9abf052de96d29 | refs/heads/master | 2023-07-30T22:50:05.826530 | 2020-06-02T03:33:52 | 2020-06-02T03:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from rest_framework import viewsets
from ..models import Ticker
from ..serializers import TickerSerializer
class TickerViewSet(viewsets.ModelViewSet):
queryset = Ticker.objects.all()
serializer_class = TickerSerializer
| [
"52392083+UnrealConclusion@users.noreply.github.com"
] | 52392083+UnrealConclusion@users.noreply.github.com |
617b7fcfbb3ffd362a97f9fcad74bb32df8204c0 | 2fc14d2a8940c3b242f62cecbfe44cd4912e1f60 | /travelloapp/migrations/0001_initial.py | a842549ffe2e55683016cb88a7731f840f5a98d3 | [] | no_license | yashkuma/mydjangosite | d16a2b94791acca165224f259b5ae78390d2dac9 | 9f7712821523259ab641c51f236f4c2d869986c6 | refs/heads/master | 2020-12-15T08:28:52.291026 | 2020-01-25T11:21:46 | 2020-01-25T11:21:46 | 235,040,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # Generated by Django 3.0.2 on 2020-01-19 09:46
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='destination',
fields=[
('id', models.AutoFi... | [
"yashsriavstava05@gmail.com"
] | yashsriavstava05@gmail.com |
8fff146cf36fb4c9489dfd115b45aa95b4f9a17e | 872f24199d847f05ddb4d8f7ac69eaed9336a0d5 | /gcwrap/python/scripts/tests/test_fluxscale.py | 1cee186afb0855c93ed9c1f512518faf237ac9e3 | [] | no_license | schiebel/casa | 8004f7d63ca037b4579af8a8bbfb4fa08e87ced4 | e2ced7349036d8fc13d0a65aad9a77b76bfe55d1 | refs/heads/master | 2016-09-05T16:20:59.022063 | 2015-08-26T18:46:26 | 2015-08-26T18:46:26 | 41,441,084 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,132 | py | import os
import shutil
import testhelper as th
import numpy as np
from __main__ import default
from tasks import fluxscale
from taskinit import *
import unittest
import exceptions
''' Python unit tests for the fluxscale task
These tests will only verify if the fluxscale
tables created for an MS and an MMS agree. Th... | [
"darrell@schiebel.us"
] | darrell@schiebel.us |
891926bf78ef016c3894b110c6f83115b85d83e0 | 3cc04ab9312defd4ac6446083a8242dd02bfa29f | /auctions/admin.py | f2b3410565efd9b537e8ec6412c5cb90382570ef | [] | no_license | Aairah-iiitd/commerce | ccc883281cbfd66e0c757c38cab4427a36d6305d | f56e9a4a3dd678d76baa610b0fb72d88e18dd62f | refs/heads/master | 2022-12-10T06:58:28.229339 | 2020-09-09T14:37:34 | 2020-09-09T14:37:34 | 294,139,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(User)
admin.site.register(Listing)
admin.site.register(Bid)
admin.site.register(Comment)
admin.site.register(Category)
admin.site.register(Watchlist)
| [
"aairah19003@iiitd.ac.in"
] | aairah19003@iiitd.ac.in |
fd260fb87845a2aba848eb47e9c48d96a23f5186 | 3eeceb468cecedf598e758139a79a08caa1dac86 | /menufuncts.py | 3b28260b96051cb7fa21f023b82b8738203d081c | [] | no_license | emragins/aui-phone-directory | 6d12f3d3c455d6a1fb4c448dd4038907035dd728 | 05bfb3fb5f6c0eeeeea1b2b130bd5eed4ae01e62 | refs/heads/master | 2020-05-17T12:32:08.535836 | 2014-08-16T01:42:51 | 2014-08-16T01:42:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | '''
THESE WILL NOT WORK RIGHT
EXIT, however, works.
'''
import wx
import manager
def OnOpen(e):
parent = e.GetEventObject()
value = None
dlg = wx.FileDialog(parent, "Choose a file", parent.dirname, "", "*.*", wx.OPEN)
if dlg.ShowModal() == wx.ID_OK:
filename=dlg.GetFilename()
dirname=dlg.GetDirectory()
val... | [
"emragins@gmail.com"
] | emragins@gmail.com |
1fb69af258c774d30aa4281624d9eb7c87a2454f | 89a90707983bdd1ae253f7c59cd4b7543c9eda7e | /programming_python/Dstruct/OldIntro/graph.py | 664d9a73795568c14155b1f41928a37388d75057 | [] | no_license | timothyshull/python_reference_code | 692a7c29608cadfd46a6cc409a000023e95b9458 | f3e2205dd070fd3210316f5f470d371950945028 | refs/heads/master | 2021-01-22T20:44:07.018811 | 2017-03-17T19:17:22 | 2017-03-17T19:17:22 | 85,346,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | class Graph:
def __init__(self, label):
self.name = label
self.arcs = []
def __repr__(self):
return self.name
def search(self, goal):
Graph.solns = []
self.generate([self], goal)
Graph.solns.sort(lambda x, y: cmp(len(x), len(y)))
return G... | [
"timothyshull@gmail.com"
] | timothyshull@gmail.com |
fea6958d1b0ade9e32fc89a6eeb59c733ab95515 | af84e2773f7e3d2bcf3cad922680e90e9335a9f3 | /DocTrace_v3/DocTrace_v3/compare1.py | e732223b8f630c004f5f7051cf23971fc32ae4fb | [] | no_license | Durant21/docTrace_v3_test | 2e1f52e2e855a4a0ece577ed3bfa36b9b9e2f854 | 2ab789530d901452dcd85810c82dc56e3bd29f11 | refs/heads/master | 2020-08-05T06:14:08.730319 | 2019-10-02T19:38:33 | 2019-10-02T19:38:33 | 212,425,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | #!/usr/bin/env python3
""" Command line interface to difflib.py providing diffs in four formats:
* ndiff: lists every line and highlights interline changes.
* context: highlights clusters of changes in a before/after format.
* unified: highlights clusters of changes in an inline format.
* html: generates side... | [
"Dante.Fernandez@RESPEC.com"
] | Dante.Fernandez@RESPEC.com |
c467d043f39c9bba2a797c175826b9828869eee5 | 726edece32d8c4b71d7f3fb41ab3671d0b5c1268 | /simplesql/bin/pyflakes | f3466cef39b36cb79e87a066be43e1d8e2b82bd7 | [
"MIT"
] | permissive | Adebayo2016/DynamicResourceGCP | b6fe8e32861e6bfb7d934321c207843ae921d1d3 | 42e38615ca4bfd2dae17781f533663c40b250572 | refs/heads/main | 2023-07-18T11:15:10.050297 | 2021-08-25T22:22:18 | 2021-08-25T22:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/Users/user/Desktop/sqlproject/simplesql/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pyflakes.api import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"adewaleadebayo630@gmail.com"
] | adewaleadebayo630@gmail.com | |
10920a1bf7052f37820165e8fbb2f2bc7b6b4a0e | 6acfa9e789d932b9162b3e173e24e1ac8b3c707b | /timetable.py | 10051d817a2786bf578158a652a24ba350ba4f20 | [] | no_license | Hariomagr/VIT-DATA-Scraper | b5ebbd7ce8846a4b0246329267c51f2b0901971e | e475e4d6370834988c09206b6590a659b316e261 | refs/heads/master | 2020-03-22T23:48:33.027877 | 2018-10-10T07:01:36 | 2018-10-10T07:01:36 | 140,829,772 | 2 | 1 | null | 2018-10-10T07:01:37 | 2018-07-13T09:52:33 | Python | UTF-8 | Python | false | false | 1,275 | py | import index
import re
import json
from bs4 import BeautifulSoup
import warnings
warnings.filterwarnings('ignore', 'Unverified HTTPS request')
if(index.error==""):
url="https://vtopbeta.vit.ac.in/vtop/processViewTimeTable"
data={'semesterSubId':indeex.semester}
url=index.s.post(url,data=data,headers=index.h... | [
"33291061+Hariomagr@users.noreply.github.com"
] | 33291061+Hariomagr@users.noreply.github.com |
651a56387f752839ab1652841288259a7d5ef429 | 0562eb8b24c3b3dabdb87818cb3fe8b06d3f9502 | /pornhub/items.py | 94a5ced776c6571821e9ff6244a70a7e96dcbed6 | [] | no_license | danmeiyihen/pornhub | 24a4cd87eeaddc92791e8a7f3d0cf70dc26b995d | b875a7b87e49659ada07ed18d2796d7189b4cf52 | refs/heads/master | 2022-12-29T09:43:46.754001 | 2020-10-11T10:39:52 | 2020-10-11T10:39:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | # Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class WebmItem(scrapy.Item):
url = scrapy.Field()
filename = scrapy.Field()
key = scrapy.Field()
title = scrapy.Field()
class Mp4Item(scrapy.Item):
url = s... | [
"adultfree@qq.com"
] | adultfree@qq.com |
fc72eb8d3d2bd8bd7531d260fa73e1825386e41a | f2debc551cad02c8cd4d475fd61ddd5e87b94628 | /React_python/section5/01.py | 57acd1e0bfc5c92af96c071f26cd31ad8377beee | [] | no_license | JHadley1406/udemy_coursework | 36827d1a2f34d1b1538b7136d442a7ce15e18364 | 4da641311e1dad6e0e99a1576270f831f157cecd | refs/heads/master | 2020-07-05T11:46:22.327126 | 2019-08-16T02:02:29 | 2019-08-16T02:02:29 | 202,640,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | import unittest
from rx.testing import TestScheduler, ReactiveTest
from rx import Observable
from rx.subjects import Subject
class TestRx(unittest.TestCase):
def test_interval(self):
scheduler = TestScheduler()
interval_time = 300
def create():
return Observable.interval(inte... | [
"josiah.hadley@gmail.com"
] | josiah.hadley@gmail.com |
d1b9737e56a9e1f1030c73d7a5a44687fd579c5d | e1e59984f535a324aa5a0d416efa7c2e6a63d68c | /bastion/compute/vm/base.py | ad56a6f757a584c89683b6c0b76a75d2a247d34f | [
"Apache-2.0"
] | permissive | laureanok/bas7ion | 8cc85120537929f2b4fec7daaabb2bb72402a05a | 4cab1f5830e88beb208c4dfd564bf03eab1c2e8f | refs/heads/master | 2020-03-14T08:03:34.320308 | 2018-04-20T20:45:40 | 2018-04-20T20:45:40 | 131,516,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | # Clases base
class VirtualMachine:
def __init__(self, id, name, size, image, compute, primary_network_interface=None, subnet=None):
self.id = id
self.name = name
self.size = size
self.image = image
self.compute = compute
self.public_ips = []
self.private_i... | [
"locokluver@gmail.com"
] | locokluver@gmail.com |
b91ffe4a68c3964c38ba62c0c390f8833054cd1b | 2b682a01d19960e2039e2e064a742289b30da62c | /test/SConsArguments/UserManual/sconstest-arguments-usermanual-example_8.py | 1cce4717527a0d9fa8ff92be0cc930a6ea64ca86 | [
"MIT"
] | permissive | mcqueen256/scons-arguments | 952a427977c42161802225464e99bfeb4e5e9fd5 | f4b783fc79fe3fc16e8d0f58308099a67752d299 | refs/heads/master | 2021-01-01T16:11:53.403454 | 2017-02-15T19:46:28 | 2017-02-15T19:46:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,170 | py | #
# Copyright (c) 2012-2017 by Pawel Tomulik
#
# 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, merge, publ... | [
"ptomulik@meil.pw.edu.pl"
] | ptomulik@meil.pw.edu.pl |
01269b55904d518e01037bdb411e333e58eb02c2 | de2d70dfc457554cde2e8fde46f6717a40be3f68 | /movieratings/lensview/migrations/0002_auto_20160505_0130.py | 412deb03ddf2eb930cbb699c040e54896577e6ca | [] | no_license | vamsden/django-movies-2 | bc2982f4bc8441a71d81271ddcbe53bb931b2e09 | ff05fe54c076a2fd33ad68d06f37e04a81da016b | refs/heads/master | 2021-06-07T13:24:28.089015 | 2016-05-16T01:09:19 | 2016-05-16T01:09:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-05 01:30
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lensview', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"kross.jonathan+github@gmail.com"
] | kross.jonathan+github@gmail.com |
8f2d9fd868fec94161a6f765e8c7b5ea7f7220ab | f159aeec3408fe36a9376c50ebb42a9174d89959 | /26.Remove-Duplicates-from-Sorted-Array.py | 559bb0b49b3d162fc130d94c13f8768157617751 | [
"MIT"
] | permissive | mickey0524/leetcode | 83b2d11ab226fad5da7198bb37eeedcd8d17635a | fc5b1744af7be93f4dd01d6ad58d2bd12f7ed33f | refs/heads/master | 2023-09-04T00:01:13.138858 | 2023-08-27T07:43:53 | 2023-08-27T07:43:53 | 140,945,128 | 27 | 9 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/
#
# algorithms
# Easy (38.18%)
# Total Accepted: 458.2K
# Total Submissions: 1.2M
class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
hash_map ... | [
"buptbh@163.com"
] | buptbh@163.com |
23c6187e887e014e44b469f54bcc6ee61a7c1b59 | 2f444fd5cbe959d5c2f54db62fe036b8632d63e1 | /features/steps/edit_name_steps.py | a832c1b47faa7dc10a7f3c7d754de5df76f59372 | [] | no_license | 2678201791/WEB_01 | d50c915674ef21e496ad6b6fd92ef517f233a47f | c02218350e9b08283c299a7acd7edfeabef6c002 | refs/heads/master | 2023-04-27T06:37:35.575280 | 2021-05-20T12:56:56 | 2021-05-20T12:56:56 | 369,201,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,863 | py | from behave import given, when, then
from selenium import webdriver
from time import sleep
@given('(修改用户名)登录账号 {user}、密码 {password} 和新名字 {new_name}') # 对应步骤 Given 关键词 behave, 参数放在{}中
def step_impl(context, user,password,new_name): # context是上下文对象,有参数的话,加上对应参数
context.user = user # 将参数绑定上下文对象,以便其他步骤使用
co... | [
"1592256093@qq.com"
] | 1592256093@qq.com |
2d50b76a94b81eb63a3e1bb14c08395998f192ab | c9ffbf4d2f639b18f89c287a79879d77a1592ccd | /labs60.py | 5b813715d6e9cbb39691f49491d9959403697a33 | [] | no_license | mummyy/14royalmechd12018 | 34aedb5f05d03d5f0133c01597b652d51e2a76db | eb56ac34e299876d7f84acda3bcc55017a70976a | refs/heads/master | 2020-03-27T21:54:58.062568 | 2018-12-07T07:56:33 | 2018-12-07T07:56:33 | 147,186,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | a=['1','2','3','4','5','6','7','8','9']
def print_Board():
print(a[0],'|',a[1],'|',a[2])
print('----------')
print(a[3],'|',a[4],'|',a[5])
print('----------')
print(a[6],'|',a[7],'|',a[8])
playerOneTurn = True
while True:
print_Board()
p=input("choose an available place:")
if(p in a):
if(a[int(p)-1]=='X' ... | [
"noreply@github.com"
] | mummyy.noreply@github.com |
fcc7e7268b04893fa2336b169bbf1b0d9b9bcf63 | e18a22cda2b1f0e659c620cb87f8ad25fad52c41 | /tests/websocket_test.py | ea0bc189ef5bbe67a0ed2a4bd2ca6b86a6bd24d9 | [
"MIT"
] | permissive | robin-io/robin.io-py | b584c523e24c280a263a7c44e08c10798c62628b | 5c09523f0968714b8f0d0074126b21355a5cba67 | refs/heads/main | 2023-08-27T07:15:14.241639 | 2021-11-06T20:41:40 | 2021-11-06T20:41:40 | 389,207,073 | 1 | 0 | null | 2021-11-06T20:41:41 | 2021-07-24T21:40:31 | Python | UTF-8 | Python | false | false | 612 | py | import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
import unittest
from robin import Robin
robin_test = Robin("NT-QuNtKolpzoWLahimkIjGAllEcJwGrymaVxQX", True)
class BaseCase(unittest.TestCase):
def test_connect_success(self):
robin_test.connect(user_token="IZiaww... | [
"olufekosamuel@gmail.com"
] | olufekosamuel@gmail.com |
8a2551f9303c7bf7ee35bf83b055d6346882ac83 | 894e31222c54f21d8ae08b560f56a36e9a925e6e | /perm_comb.py | aa8dcc051d2fd7520cd12984eab99cb943d17a45 | [] | no_license | alx1056/permuation-combinatoric | d836bb0c2866ecaa2902a906251b038f5b0fe9a8 | 8feb3594ccfe9623b211767f65766fdf9af8708e | refs/heads/master | 2020-03-27T04:06:20.903553 | 2018-08-23T22:08:19 | 2018-08-23T22:08:19 | 145,911,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | import math
def permutation(n,r):
perm = (math.factorial(n)/(math.factorial(n-r)))
return perm
def combinatoric(n,r):
comb = (math.factorial(n)/(math.factorial(n-r))*(math.factorial(r)))
return comb
ans = input("Would you like to try a combinatoric (c) or permutation (p) ?")
if ans == "P" or "p": ... | [
"noreply@github.com"
] | alx1056.noreply@github.com |
2701ac289f95407695e869f6884bbbb02718b657 | 064e8f310d55b29e75a870a3c196bd6e3e06edbd | /ReadWrite.py | ffa9ea7e408e0cf752acb8ac88e142ebe8b9874f | [] | no_license | jsdosanj/Learning-Python-1.0 | 800a4dbd258bdca01a01bdd1ec715b76d18193b5 | 99d94e185c9ad11f588adb437b07a9066dbe7a0c | refs/heads/master | 2021-02-03T21:18:48.851845 | 2020-02-27T14:35:09 | 2020-02-27T14:35:09 | 243,541,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | FileName = "./Files/File1.txt"
Contents_str = ""
# FileWrite = open(FileName, "a") # a -> append
FileWrite = open(FileName, "w") # w -> write
FileWrite.write("Line1\n")
FileWrite.write("\n")
FileWrite.write("\n")
FileWrite.write("Line2\n")
FileWrite.write("\n")
FileWrite.write("\n")
FileWrite.close()
... | [
"noreply@github.com"
] | jsdosanj.noreply@github.com |
7cb9678900eef37341455b55ff59bd660712939e | 2eb1a7f2cd9e3bb15be7aea454ef3d4f0cde905e | /calc.py | f96fed201ba098f2b95edaaf9a7fb6c3387b02e8 | [] | no_license | ndmchv/first-project | ba1575d8e82fe87f8876743ea025d5c01d3977f4 | 8a69da23e727f3a656fa3b70587024052bc05282 | refs/heads/master | 2020-09-05T08:56:16.157141 | 2019-11-06T18:56:31 | 2019-11-06T18:56:31 | 220,049,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.keys import Keys
driver = webdr... | [
"noemi.csato@pontsystems.eu"
] | noemi.csato@pontsystems.eu |
4baa96326472ed548d38a8212fecc830b6eca38c | 6c0339c10e241fed0b409bb01c60eec2e726b5f1 | /exr03.py | 2168ef95617974641e8576f1f41cb5b7e0cc511c | [] | no_license | itongit/PythonSelenium | 3e0e2397cade6ead9ad9c2f8ff180a9f49fc1a41 | ee8b7b3166349922d9bdef4ea2cd224238c70fce | refs/heads/master | 2016-09-06T14:04:44.901709 | 2014-03-03T15:22:09 | 2014-03-03T15:22:09 | 16,912,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | print "I will now count my chickens:"
print "Hens", 25 + 30 /6
print "Rooters ", 100 -25 *3 % 4
print "Now I will count the eggs:"
print 3 + 2 + 1 -5 +4 % 2 -1 / 4 +6
print "Is it true that 3 +2 < 5 - 7?"
print 3 + 2 < 5 - 7
print "What is 3 + 2?", 3 +2
print "What is 5 - 7 ?", 5 - 7
print "Oh ,that's why it's F... | [
"hnuiton@gmail.com"
] | hnuiton@gmail.com |
37af1632d459c7092a3cd92f798ab33ae9196f2f | 4520f56d4952c788e198ee7eee39911c9a76c60f | /03_Bigdata/01_Collection/03_Web_crawling/02_Reguar_Expression/99_example/3_exam.py | b5823c6c37267bb153e001691f64f6f0b5a58c37 | [] | no_license | SuHyeonJung/iot_python2019 | bef8877a1cd41981ad2125291f5af44f4fd1701c | 7860630ae28c53677a3c2761c9e997b28ea55f26 | refs/heads/master | 2020-06-14T22:18:27.503781 | 2019-11-08T05:50:41 | 2019-11-08T05:50:41 | 195,142,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | import re
def text_match(text):
pattern = 'ab+'
if re.search(pattern, text):
return 'Found a match'
else:
return 'Not match'
print(text_match('ac'))
print(text_match('a'))
print(text_match('ab'))
| [
"galma94815@naver.com"
] | galma94815@naver.com |
f49f1cb53592cf5f6046837ea0eb160f4e614079 | fbf3b618e2f48e98d93b7839668f6206876029dd | /SpiderForPics/SpiderForPicsByMultiKey.py | 8cd3d6eb1beaa09d1120e3f07b160d783cacbb01 | [] | no_license | ProZoom/ProSpider | 928690665cef1d7e785779ac7506c3142488b8b3 | 13d29de42708f0c7d852d2f8317daf8e82fe56e1 | refs/heads/master | 2021-05-05T12:37:21.018564 | 2018-01-21T05:37:45 | 2018-01-21T05:37:45 | 118,307,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,016 | py | # coding:utf-8
import requests
import re
import itertools
import urllib
from Utils.baseUtils import *
from SpiderForPics.SpiderForPicsConfig import *
# 解码
def decode(url):
for key, value in str_table.items():
url = url.replace(key, value)
return url.translate(char_table)
def buildUrls(word):
wor... | [
"liyang.ok@outlook.com"
] | liyang.ok@outlook.com |
c53cf62606d1efe10e20058d3c82affdd1926dba | 4ed8c60a92fe7796a96ebc479ff2f76263ab17db | /pstp/models.py | 2534be14910f4b3f89927da0e85fcfac096f7a19 | [] | no_license | sethwoodworth/dashboard | 53771e7e629903185c0782a0bc0675428b47e231 | 1acd9421d02bae6d7ac04304bf956b4772b41719 | refs/heads/master | 2020-04-06T04:52:12.974756 | 2011-06-26T16:47:54 | 2011-06-26T16:47:54 | 936,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | from django.db import models
class Subject(models.Model):
#TODO
# - make last_update inform the last time this was saved
name = models.CharField(max_length = 20)
# last_update = models.DateTimeField('last updated')
def __unicode__(self):
return self.name
class Subheader(models.Model):
... | [
"alxjrvs@gmail.com"
] | alxjrvs@gmail.com |
2e544843338ba65b96975e4df4a525aa8bce87dc | 06d1b75d3651aa49c9b03dd43087bcf69ce30bd1 | /Wavelet_Handle_33/py/WaveletFitingAllModel_F1.py | 63484f72b4bcde8d363f7a61d09bbccaeb90c049 | [] | no_license | haven009/Tianchi_power | ee4c76418ec4c9b38170b943c933e7bfd4bde050 | a5bdcef8d82a357c4c288f2dc80df290d4891ca3 | refs/heads/master | 2021-01-23T02:04:57.418835 | 2017-06-13T03:22:41 | 2017-06-13T03:22:41 | 92,903,852 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 17,127 | py | import pandas as pd
import numpy as np
import pywt
import matplotlib.pyplot as plt
from datetime import datetime
from sklearn.externals import joblib
from sklearn.model_selection import KFold, train_test_split, GridSearchCV
from sklearn import metrics
import xgboost as xgb
from sklearn.feature_selection import SelectFr... | [
"13021093200@163.com"
] | 13021093200@163.com |
9abd5c922f0ed5f3fd7b3019a1b07f912904db92 | bcf2ac8e565ceb2ddae87b8194afe21fdee6a9b0 | /network/transpose_conv_bn_relu.py | ddc8703b4642ba68362bef74179507caea4186b1 | [] | no_license | xfcy6/ReversibleImage | d1644a426aacb4b20d1e2a09160cf1b59a07e13a | ff3f4823b06256a6a8a206050a670556f28f792c | refs/heads/master | 2022-12-22T04:15:38.356514 | 2020-09-17T13:10:14 | 2020-09-17T13:10:14 | 295,636,625 | 0 | 0 | null | 2020-09-15T06:34:22 | 2020-09-15T06:34:21 | null | UTF-8 | Python | false | false | 647 | py | import torch.nn as nn
class TransposeConvBNRelu(nn.Module):
"""
Is a sequence of Convolution, Batch Normalization, and ReLU activation
"""
def __init__(self, channels_in, channels_out, stride=1):
super(TransposeConvBNRelu, self).__init__()
self.layers = nn.Sequential(
nn... | [
"shinydotcom@163.com"
] | shinydotcom@163.com |
a2253899a346aaccd40f4bf9fdc2b3cba65b90bd | cabfcc9d0bddfa610afa701c43f197dbe5b542e0 | /scorecard.py | fe4acd6043bc10d6d314418c096254f00491be1b | [] | no_license | KRiteshchowdary/myfiles | 2d120a46b8b786a526e566155b77b7c7fddb1aa5 | 6a1a823e288fd8669d46cf1d1644dc7e27f8ac71 | refs/heads/master | 2020-04-05T15:02:40.140641 | 2018-11-10T05:16:47 | 2018-11-10T05:16:47 | 156,949,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | up = {'tim':'cook','steve':'jobs','elon':'musk','satyam':'nadela'}
user_id = raw_input("user_id please " )
if user_id not in up:
print("invalid user_id")
else:
password = raw_input("Enter password")
if(password == up[user_id]):
print("Access Granted")
else:
print("Access Denied")
| [
"noreply@github.com"
] | KRiteshchowdary.noreply@github.com |
67cb3304011ad3481c46db49247be7cbf1fe3fed | 80b6ad7f54edfca7210efe5b86339c109d961f95 | /module-1-create-blockchain/blockchain.py | 79db7dc785115ed45a57c60ee5aef6f36b61fbaf | [] | no_license | jamesevag/blockchain-mining-app | 054603a87025ebcddca0529948a5e5722456ce5e | d9ac3eff7ac0c1a60ef48fc07139aa0a8993e023 | refs/heads/master | 2020-04-09T12:45:55.880125 | 2018-12-04T13:43:33 | 2018-12-04T13:43:33 | 160,363,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,429 | py | # Module 1 - Create a Blockchain
# To be installed:
# Flask==0.12.2: pip install Flask==0.12.2
# Postman HTTP Client: https://www.getpostman.com/
# Importing the libraries
import datetime
import hashlib
import json
from flask import Flask, jsonify
# Part 1 - Building a Blockchain
"""
Created on Tue Dec 4 09:50:02 2... | [
"evangelopoulos@ckc.de"
] | evangelopoulos@ckc.de |
1dfbcde19d32b44caa566c604a5d48f049345777 | d49d46f7c4b97098893ff38c17044b789b66c66e | /change23.py | 90063020707d52c034b61f32cb15bb720fd62522 | [] | no_license | luolingyu/shiyanlou | 5120372cc0649a5678b2d67bd3368ce7a5a42e8d | 5a1848236b10debd90c4cfe8199d2294b7f316de | refs/heads/master | 2020-03-13T13:48:08.509265 | 2018-07-16T03:46:09 | 2018-07-16T03:46:09 | 131,145,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import pandas as pd
import matplotlib.pyplot as plt
def data_plot():
df = pd.read_json('./Code/user_study.json')
data = df.groupby('user_id').sum().head(20000)
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
ax.set_title('StudyData')
ax.set_xlabel('User ID')
ax.set_ylabel('Study Time')
... | [
"1324013683@qq.com"
] | 1324013683@qq.com |
d794340af0cf032252f4714625641533e2874df9 | 5967300de22f73c0d26377cf698afa7da1c161ae | /{{cookiecutter.project_slug}}/test/test_unit.py | b8040f0b3fa5b3b2ac171fc89358125405d02d1c | [
"MIT"
] | permissive | blueskyideas/cookiecutter-python | 2b966d9a24236cc8445474fdffc6d8111b242411 | 754c1c7f457e3cd13918308a4b946eaeac5b2529 | refs/heads/master | 2021-09-15T00:38:13.373862 | 2018-05-23T01:12:50 | 2018-05-23T01:12:50 | 104,700,380 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | import pytest
from .context import {{ cookiecutter.project_slug }}
def test_a():
assert 1 == 2 | [
"jeremyarr@gmail.com"
] | jeremyarr@gmail.com |
25b8e987ada61731b8253208098a1fe699cec88d | 7b2ee8dc4dea3f96bdf5b8c9a7fdf7f3a7428da4 | /plot_confusion_matrix.py | 6e13d57b7c1b089e408025e9ab788751305a0869 | [] | no_license | NathanVenos/Classifying_LEGO_Value_Retention | a33de67a5dae130151cfe5eb000286896af30277 | 31c5e89be4455da5e0c1becd063b67237586d899 | refs/heads/master | 2020-09-11T06:15:22.995835 | 2020-01-16T18:34:33 | 2020-01-16T18:34:33 | 221,967,566 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,169 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn.metrics import confusion_matrix
from sklearn.utils.multiclass import unique_labels
def plot_confusion_matrix(y_true, y_pred, classes,
normalize=False,
title=None,
cmap=plt.cm.Bl... | [
"nathanvenos@gmail.com"
] | nathanvenos@gmail.com |
30df9c3e6107c42a45cb51396d0d85bb418a2609 | 219194b550158689727452fc63cb9ab9ab2719d1 | /task_20/urls.py | 8b04b3420fe765b9bec6d259b8e19f5504d98138 | [] | no_license | RashaAlorabi/task_20 | a0d50622273f7831acf5486f38780631fd394014 | 01277ade8902ec4ca9eb381e26c9e0672bd8e6dc | refs/heads/master | 2020-04-24T03:24:01.847485 | 2019-02-20T13:28:02 | 2019-02-20T13:28:02 | 171,668,804 | 0 | 1 | null | 2019-02-20T12:26:00 | 2019-02-20T12:26:00 | null | UTF-8 | Python | false | false | 2,597 | py | """task_20 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"hamzamakia@gmail.com"
] | hamzamakia@gmail.com |
a3d4a897e93e9d0b048b5fe950873ab873cc4250 | 3d5e2e39a6b164fdbb27d232af08f0abae15f931 | /scripts/vis_inputs.py | 3a5988e1c242aacf7bb2ae220005aec29a696042 | [] | no_license | siyeopyoon/template_ffd | 431c46c907fa57d4c6de658be691d3d9efef739e | 0f9111ffb340449ad87fbf52220273a15819ec4f | refs/heads/master | 2021-09-20T08:48:44.426004 | 2018-08-07T10:58:18 | 2018-08-07T10:58:18 | 266,313,119 | 1 | 0 | null | 2020-05-23T10:27:49 | 2020-05-23T10:27:48 | null | UTF-8 | Python | false | false | 486 | py | #!/usr/bin/python
def main(model_id, mode):
from template_ffd.model import get_builder
builder = get_builder(model_id)
builder.vis_inputs()
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('model_id', help='id of model defined in params')
... | [
"thedomjack@gmail.com"
] | thedomjack@gmail.com |
f54b39d5c8881c8cec7fac0f99b7b4bc9c51323d | 9c68dc3cfae4d264e667ea7d8be9e1e9e9e74348 | /djasana/migrations/0009_auto_20180907_0850.py | df5fb8cc741e35e54f231adcc32ae6029ef85dc6 | [
"MIT"
] | permissive | zaptim/django-asana | 9b53584e68b88ce0f5c1b1ae0a2cff595452e431 | ab6d7166f28945292d5632ef766fc13cc2ea4cf3 | refs/heads/master | 2020-03-21T19:35:29.486609 | 2018-09-19T12:31:14 | 2018-09-19T12:31:14 | 138,958,510 | 0 | 0 | MIT | 2018-06-28T02:54:06 | 2018-06-28T02:54:05 | null | UTF-8 | Python | false | false | 400 | py | # Generated by Django 2.1 on 2018-09-07 08:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('djasana', '0008_auto_20180906_1407'),
]
operations = [
migrations.AlterField(
model_name='story',
name='target',
... | [
"tim@zapatacomputing.com"
] | tim@zapatacomputing.com |
7b7fd3da8f6a6ee41cc78c075dff5098dfcfa7ce | fb3d54b24081ed814ce8e25b5dc404d4b0ea839e | /Python2-Example100/Exercise094.py | 2535992f32d6de630fff356cb7a9227a5267460d | [] | no_license | zuolinye/Python-Learing | 7d55f062a03aec6270b74f63ce2da84b32d2f2df | 8eaac436a5c2647a06635cac1064824712af52cb | refs/heads/master | 2022-01-14T05:00:07.752781 | 2019-07-02T13:33:42 | 2019-07-02T13:33:42 | 112,070,315 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
#题目:时间函数举例4,一个猜数游戏,判断一个人反应快慢。
if __name__ == '__main__':
import time
import random
play_it = raw_input('do you want to play it.(\'y\' or \'n\')')
while play_it == 'y':
c = raw_input('input a character:\n')
i = random.randint(0,2**32) % 100
... | [
"33795120+zuolinye@users.noreply.github.com"
] | 33795120+zuolinye@users.noreply.github.com |
fb5a845898f4defbdf1187d17eadfd18ebab8342 | 6ca787fc18673d032a324a10a429d48bf257e11e | /examples/multidomain3d/SConscript | dacf16754a63b80ac93240770757d2f65d2fc6e6 | [] | no_license | maierbn/opendihu-snapshot | 714375c85264e2b20ec808daadd79eae540ece75 | e726802b3efed87a2d0ac5deb5389fbe070e73a2 | refs/heads/master | 2020-04-07T09:41:15.815678 | 2018-11-19T18:30:18 | 2018-11-19T18:30:18 | 158,261,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | # This script declares to SCons how to compile the example.
# It has to be called from a SConstruct file.
# The 'env' object is passed from there and contains further specification like directory and debug/release flags.
#
# Note: If you're creating a new example and copied this file, adjust the desired name of the exe... | [
"maier.bn@gmail.com"
] | maier.bn@gmail.com | |
674d0eb07f6adf1242d6178b627ef73d1d8ddf0e | e6428366f4392cb5be9fb16e98f04fa73ecb819a | /lambda_handler.py | bc53b76284df0c9c5153584ad1844df2046c0cb0 | [] | no_license | skambuilds/ColorPicker | d30c5d29c83c237b64fe8d9486168443a7c47f20 | d0a98f97ce5340cbe46c0761cef9f6ebd24ad01e | refs/heads/master | 2020-07-20T13:28:36.666772 | 2020-04-28T15:37:10 | 2020-04-28T15:37:10 | 206,650,323 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,530 | py | import json
import cv2
import numpy as np
import paho.mqtt.client as mqtt
import boto3
from botocore.exceptions import ClientError
# jpeg layers color
BLUE, GREEN, RED = 0, 1, 2
# mqtt_broker_ip = "insert public ip of the broker"
def lambda_handler(event, context):
s3 = boto3.client('s3')
# read image f... | [
"noreply@github.com"
] | skambuilds.noreply@github.com |
b90b91e0b4e9270c4064c52c5a88b4c433c7b1ec | a0cecab2c63c89b13d68105ba55a429c3d2d86a2 | /prepostpy/file.py | 83f6ff45160e677e1a1a1c635f316c949d3270f9 | [
"MIT"
] | permissive | adtzlr/prepostpy | d7f69603f7d32ee6839f452dab2b2a693604ee7e | c4ce1a06536d6b1a88be20a0c9ec7361a07ef708 | refs/heads/master | 2020-07-12T02:27:44.792039 | 2019-08-29T12:15:05 | 2019-08-29T12:15:05 | 204,693,591 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,695 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 13 15:05:55 2019
@author: dutzi
"""
import subprocess
import time
import os
import numpy as np
from types import SimpleNamespace
import py_mentat as pm
from .core import Table
from .core import Point
from .core import Curve
from .core import Node
from .core import Mate... | [
"dutzi@tugraz.at"
] | dutzi@tugraz.at |
ea5a7386ec4bcbae5f86d8531379450dcb7233bd | d46d182a5ebf505883c079d696b7ddceeea80560 | /migrations/versions/3b23e222e51e_.py | 84f3e321b96e252b5e1f5b9d511bcf65ecd59ff9 | [] | no_license | bunchito/fyyur | 6851907b2cf5b95f6867c4cc7b2dcf6e2a91b8e4 | 6ba66913688c13ab3fe28f972852882f0f78a091 | refs/heads/main | 2023-04-03T02:18:30.125088 | 2021-04-07T00:48:40 | 2021-04-07T00:48:40 | 354,876,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,616 | py | """empty message
Revision ID: 3b23e222e51e
Revises:
Create Date: 2021-04-05 10:08:01.943767
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '3b23e222e51e'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"enotragalaxiahay@outlook.com"
] | enotragalaxiahay@outlook.com |
01de628894d27c40f94c31eef7b2c069af409929 | 3428650cbf4dff148dfcdea98f9071fa0529a205 | /app.py | e8ae58f23bc316c3e5380de803b75e02bfba7765 | [] | no_license | Rfluegel1/timely-warning | 262398cf36d7ab5fc2e7375e84f0cae58867aab2 | 513a34ba6f83ab1b203cbd41bb51df87f98c7536 | refs/heads/master | 2022-12-12T05:26:50.651634 | 2020-01-19T20:22:36 | 2020-01-19T20:22:36 | 232,352,025 | 0 | 0 | null | 2022-12-08T07:02:19 | 2020-01-07T15:17:06 | Python | UTF-8 | Python | false | false | 2,624 | py |
from flask import Flask, render_template, request
from flask_wtf import FlaskForm
from wtforms import SubmitField, SelectField, Form, FloatField, BooleanField, StringField, PasswordField, validators
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_bootstrap import Bootstrap
from fla... | [
"noreply@github.com"
] | Rfluegel1.noreply@github.com |
c3575f7e25c72d4769383952cf02767e33e8b400 | a9ef505f36d62ae02b8af5f20ff225489486a5fc | /setup.py | 196b8dc3ee559b1674e106967ad84560e464445d | [] | no_license | deaconblues86/starwars | aea24bceb6c44e35f23d8a50de681c65b7db9693 | 1d824357ac7d09d9e01091aa875d6f6c1060c4d9 | refs/heads/master | 2020-04-20T22:59:12.566940 | 2019-02-05T18:42:10 | 2019-02-05T18:42:10 | 169,156,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | from distutils.core import setup
setup(name='StarWars',
version='1.0',
description='A few demo scripts run against the Star Wars API (https://swapi.co/)',
author='Brian Hammill',
author_email='hammillbc@gmail.com',
url='https://github.com/deaconblues86/starwars',
install_requires=[
... | [
"hammillbc@gmail.com"
] | hammillbc@gmail.com |
1e3f6cee13dfa20b5d5e267097948edeb4ec3c7c | 8e56e2f9877774d1e21814fd42bc55f1fcfd4259 | /tests/test_membername_json.py | ed0c368eaa767db1bf3a2d811a32ad8d8cf89059 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | reedlaw/www.gittip.com | 538246f96ab2282c5f7fc2062171cda6b3d5e558 | a2d9b2680b283eaf72b6185419b7e5d14d9dfe2a | refs/heads/master | 2020-12-29T03:18:23.972632 | 2013-10-05T17:08:52 | 2013-10-05T17:08:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,763 | py | from __future__ import unicode_literals
from nose.tools import assert_equal
import json
from aspen.utils import utcnow
from gittip.testing import Harness
from gittip.testing.client import TestClient
class TestMembernameJson(Harness):
def make_client_and_csrf(self):
client = TestClient()
csrf_to... | [
"neil@neilkistner.com"
] | neil@neilkistner.com |
4e535af2087d9d1e0c238e0b4d90748c74249280 | 32179992ead39aefb0503ec1ca9c929c063f256c | /geppytto/browser_agent/__init__.py | 9571bd8f25c74f62aa17fcac2a1b0c4fa8228fa4 | [] | no_license | myrfy001/geppytto | 60e63ad7351a6c82ad7d9bc2bd1692618b4b5d93 | fb13c46a2e0664fe872179490215208194bce8a8 | refs/heads/master | 2022-03-22T01:27:50.036626 | 2019-05-08T01:48:46 | 2019-05-08T01:48:46 | 160,212,159 | 2 | 0 | null | 2021-06-11T17:47:56 | 2018-12-03T15:25:58 | Python | UTF-8 | Python | false | false | 996 | py | # coding:utf-8
import pyppeteer
import asyncio
import sys
from os.path import abspath, dirname, join
import atexit
class AgentSharedVars:
host = None
port = None
agent_id = None
agent_name = None
advertise_address = None
user_id = None
api_client = None
node_name = None
is_stead... | [
"myrfy001@users.noreply.github.com"
] | myrfy001@users.noreply.github.com |
862c4485a1d357053b435263145fa8aa8e94f5fd | 4b9b505c716fe9461c46699985167d00f2b1b0b7 | /karlooper/utils/security.py | a6b49ad9bf9fe9cf468ed1cf0067c6d57f8743f8 | [] | no_license | smallearth/karlooper | 90544265f14467c2d3b2f294d581b07d1f81f039 | ce9175cd373836fd33c203144785b66ab4586c16 | refs/heads/master | 2021-01-16T19:35:59.225192 | 2016-06-24T06:50:58 | 2016-06-24T06:50:58 | 62,021,191 | 1 | 0 | null | 2016-06-27T02:56:54 | 2016-06-27T02:56:54 | null | UTF-8 | Python | false | false | 7,815 | py | # -*-coding:utf-8-*-
"""
security
~~~~~~~~
Use this model to encrypt string.
Usage
=====
>>> d = DES()
>>> d.input_key("123456789")
>>> s = "/static/hello.js"
>>> a = d.encode(s)
>>> print a
b14f1453ceddc91e492fbe883d552a2e
>>> b = d.decode(a)
>>> print b
/static/hello.js
"""
from functools import partial
__autho... | [
"karlvorndoenitz@gmail.com"
] | karlvorndoenitz@gmail.com |
00f837391df758c0483bf3e8b30ade2b348a0302 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/android_ip_webcam/test_config_flow.py | 881585ed5dc41540ac67e466440910a2322a55b4 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 3,556 | py | """Test the Android IP Webcam config flow."""
from unittest.mock import Mock, patch
import aiohttp
from homeassistant import config_entries
from homeassistant.components.android_ip_webcam.const import DOMAIN
from homeassistant.core import HomeAssistant
from homeassistant.data_entry_flow import FlowResultType
from .t... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
df733e92f407fdfe059b200e39d3b933c86f04cb | 80b7f2a10506f70477d8720e229d7530da2eff5d | /uhd_restpy/testplatform/sessions/ixnetwork/quicktest/customstep_98f1ecce7c2d88439541c6c12fb66c1d.py | 34a6a6c4ca7a2e371547464582d6029264da156a | [
"MIT"
] | permissive | OpenIxia/ixnetwork_restpy | 00fdc305901aa7e4b26e4000b133655e2d0e346a | c8ecc779421bffbc27c906c1ea51af3756d83398 | refs/heads/master | 2023-08-10T02:21:38.207252 | 2023-07-19T14:14:57 | 2023-07-19T14:14:57 | 174,170,555 | 26 | 16 | MIT | 2023-02-02T07:02:43 | 2019-03-06T15:27:20 | Python | UTF-8 | Python | false | false | 20,533 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
36b07b88f0974c367727cfea1f47bf2556260b8e | 7c7f9c64ddeb0f8f169ecc52bc2ce8e60a350472 | /Airbnb_pricer/model/models/__init__.py | aa26de62c176d3bccfe8e6b680d4e1713127d31d | [] | no_license | moe18/full-stack-ml-projects | 0fecd34ee93c24871e0b7221131807088c899756 | a1db2c6769c2e3ba078866c87fe4f6b6cbad34d4 | refs/heads/master | 2022-09-15T02:12:27.594149 | 2020-06-04T13:31:57 | 2020-06-04T13:31:57 | 269,367,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | """Model modules."""
| [
"mordechaichabot@Mordechais-MacBook-Air.local"
] | mordechaichabot@Mordechais-MacBook-Air.local |
26ca64a684cdd38a638de21d89583c4080b77706 | 91bb3c4e91b90af8340ef9120132e6e7dd3b947f | /ticket/test_view.py | 51289d49a98d1b38500e044d70be958c210f3039 | [] | no_license | Code-Institute-Submissions/Support-Software-Inc | 74a6eb5d343769e52e3e1c0dced7831dc62b8f30 | b854f2293593ff492e511d4b504eded5bab2add0 | refs/heads/master | 2021-05-18T04:48:41.653527 | 2020-03-29T19:22:02 | 2020-03-29T19:22:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | '''
Test file for Ticket views
'''
from django.contrib.auth.models import User
from django.test import Client, TestCase
from authentication.models import MyUser
class TestTicketViews(TestCase):
'''
Suite of tests for the Ticket model
'''
def setUp(self):
'''
Setup MyUser instance
... | [
"jameslowe241@gmail.com"
] | jameslowe241@gmail.com |
5f86eda4ff367ce24dccdd3d9112e5d7c56a9821 | f571f604bf6f467d0325a9d2ee0f3032f045b260 | /adjusted_goals_analysis.py | 614baee864b7b04c8ccfd03b35c18a63d76c89bd | [
"MIT"
] | permissive | leaffan/pynhldb | 307fab2cda3a99a6273bb0cbb81bcec5efb2966c | 73586d924060ccf92b0384346a5fc7013dde0b0d | refs/heads/master | 2022-11-27T06:07:48.170879 | 2022-11-14T11:43:10 | 2022-11-14T11:43:10 | 78,532,400 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import json
import argparse
from analysis._goals_per_game import retrieve_goals_per_season
from analysis._goals_per_game import calculate_adjustment_factors
from analysis._goal_leaders import retrieve_career_leaders
from analysis._goal_leaders import retrieve_ye... | [
"leaffan@gmx.net"
] | leaffan@gmx.net |
fecfa9414c8e6724a1669ff02fbb1293b2e03231 | 8fcae139173f216eba1eaa01fd055e647d13fd4e | /.history/scraper_20191220162402.py | a911c5737fce871af11f9e6df21d169327a70b5e | [] | no_license | EnriqueGalindo/backend-web-scraper | 68fdea5430a0ffb69cc7fb0e0d9bcce525147e53 | 895d032f4528d88d68719838a45dae4078ebcc82 | refs/heads/master | 2020-11-27T14:02:59.989697 | 2019-12-21T19:47:34 | 2019-12-21T19:47:34 | 229,475,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module docstring: One line description of what your program does.
There should be a blank line in between description above, and this
more detailed description. In this section you should put any caveats,
environment variable expectations, gotchas, and other notes abo... | [
"egalindo@protonmail.com"
] | egalindo@protonmail.com |
a7d0334fa16307ad59aca5e1fc4c491510487be5 | 1be7f4cef4693d115be8ec53ee3ad303579a0f37 | /SQLite/sqlite_demo.py | dd6ed1537b7fd8a050ecae485ad06af557e7337c | [] | no_license | schehat/python_snippets | fab511d415bbf1dc6ec06c2c0cbbde1b3411c1f0 | 93b74b8be446fc951e60945c73b29ce44c6b0c16 | refs/heads/main | 2023-08-04T22:21:23.303000 | 2021-09-19T08:50:23 | 2021-09-19T08:50:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | import os
import sqlite3
from employee import Employee
os.chdir(os.path.dirname(__file__))
# :memory: possible which runs on RAM, good for testing
conn = sqlite3.connect("employees.db")
# with the cursor sql commands can be executed
c = conn.cursor()
# c.execute(
# """Create Table employees(
# ... | [
"“schehat2000@live.de”"
] | “schehat2000@live.de” |
623adc6589da313688c6c4a0cbb0df1e70d47d73 | a47c11905907cb76d5c32382383d9e2b00f24599 | /exercises/guided_tutorials/mazesforprogrammers/common/mask.py | b83ff0d6d1696ef3981dcb4cc4cafd6f711d54e9 | [] | no_license | tetrismegistus/minutia | 9ea7db3c7e9f164c83a8cc3f082000fd894fb55b | 51d0d41740701ef117598ef3e00c99e208ee5ca8 | refs/heads/master | 2022-12-06T15:16:59.968911 | 2020-07-22T21:42:47 | 2020-07-22T21:42:47 | 160,570,462 | 12 | 1 | null | 2022-11-22T05:16:44 | 2018-12-05T19:51:17 | Python | UTF-8 | Python | false | false | 2,781 | py | from random import randint
from PIL import Image
from common.grids.grid import Rectangle
class Mask:
def __init__(self, grid_size: Rectangle):
self.rows = grid_size.w
self.cols = grid_size.h
self.bits = [[None for c in range(self.cols)] for r in range(self.rows)]
self.states = []
... | [
"madducks@gmail.com"
] | madducks@gmail.com |
23e7485c634591ed2bb85ccf70c390ca88d47ecf | 762e45c322763f11b20fb5c33aae9365142566a4 | /exchanges/bxinth.py | 1c6e8624cc8a40e89255d2d802c9f47da6467598 | [] | no_license | BlackSuns/MTScript | 6a5a898ba626bada57f754df4eec881a6f9a838b | 7d0b4524e4b9ead8f4ecb391c96acc878a9a41d9 | refs/heads/master | 2021-09-17T17:55:21.229159 | 2018-01-10T02:00:31 | 2018-01-10T02:00:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | import os
from .base import BaseExchange
class BxinthExchange(BaseExchange):
def __init__(self):
super().__init__()
self.exchange = 'bxinth'
self.exchange_id = 51
self.base_url = 'https://bx.in.th/api'
self.ticker_url = '/'
self.alias = ''
self.with_name ... | [
"larryrun80@gmail.com"
] | larryrun80@gmail.com |
8f341b240ac473bc82679b6ce68af47a730fe897 | 2c036ee6317aa5e1db0c6978c89b1ec6a08757b5 | /desktop_noti_for_stats_of_corona/main.py | 8bde75a67ef5e831bb0085e6e3d3d6369d60ebab | [] | no_license | Chayan199916/play-with-python | 3d648f39424418b6f6369887c8f5cd4e0d178684 | 36087556fc3e2e6b081e87c238b1575465989436 | refs/heads/master | 2023-05-09T08:25:24.665913 | 2020-11-19T14:17:53 | 2020-11-19T14:17:53 | 260,530,968 | 3 | 0 | null | 2021-06-02T01:39:47 | 2020-05-01T18:30:51 | Python | UTF-8 | Python | false | false | 244 | py | import win10toast
def notify_me(title, message):
toaster = win10toast.ToastNotifier()
toaster.show_toast(title, message, duration = 10)
if __name__ == "__main__":
notify_me("Chayan", "Let's stop the spread of this virus together") | [
"swapnomoy199916@gmail.com"
] | swapnomoy199916@gmail.com |
310cc9dbe57bb11fcf6618986a485917ab67391a | e39245418c39eb083634f1ec22daf9458ac938f3 | /class_func_inst.py | bab75f7a554b36899496173b6b0e6840438fc862 | [] | no_license | lbs1991/py | c5b2426978a622a1d82dd3751e9c5914052ead1e | ac5ca5b5df418c1a364238422c6d82f9ea69ecb6 | refs/heads/master | 2021-01-01T18:12:10.416736 | 2014-10-20T07:15:12 | 2014-10-20T07:15:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | #!/usr/bin/python27
class MyClass():
def __init__(self,x):
self.v = x
def func1(self):
print("haha",self.v)
inst1 = MyClass(3)
inst1.func1()
| [
"root@centos65.localdomain"
] | root@centos65.localdomain |
15f727855f6ed7f316a260a6a348715848ad38a2 | 18b14893e5305c3f2d03b4a1cb5707ff3415f709 | /api/views/fileupload.py | 227cb4d15de58e0af8797f8c9768c1dfcfbeb136 | [] | no_license | cqnu/ImageAI_RESTful_example | 04dbad5ab44cb85a7363f71ab162d924c42235dc | c9cc1c8561c34bee3cc802b3311f761e8e029e64 | refs/heads/master | 2023-08-30T23:24:26.020475 | 2020-01-29T06:27:33 | 2020-01-29T06:27:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,914 | py | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse, HttpResponseNotFound
from rest_framework.views import APIView
from rest_framework.decorators import api_view
from rest_framework.response import Response
import json
from django.core.files.storage import FileSystemStorage
from djang... | [
"vohungvi27@gmail.com"
] | vohungvi27@gmail.com |
e885b7756e8bc74d885b5349d2691775dc8e7f1a | 15c50cd776872bde5cd13ad644039ba279c51387 | /lambda_reboot.py | 4f691f3ae5390136feee3369f46c3382f7d5a31e | [] | no_license | hoopajube/workspaces | fa65bd68d19d175ca24f869117ecd1b3f0e583f8 | dc0671b011ce2540e6e2ec03cebd966c24f2f693 | refs/heads/master | 2020-05-21T14:37:49.662249 | 2019-05-02T04:34:36 | 2019-05-02T04:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | import boto3
import logging
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
client = boto3.client('workspaces')
# --- Main handler ---
def lambda_handler(event, context):
logger.info(event)
username = event['currentIntent']['slots']['username']
directoryid = event['currentIntent']['slots']['... | [
"alexanderpereyra@Alexanders-MacBook-Pro.local"
] | alexanderpereyra@Alexanders-MacBook-Pro.local |
a19c0f6fae3e6e7291510b544a360b1760e0497a | 8ba9e6ba4d48dbee1c55d3f2493626a5e0211ed2 | /reservation/migrations/0011_auto_20190510_1649.py | 8df7b85129c2c4abd32453e0e07d87a204729515 | [] | no_license | sarajoha/reservation-project | a23fe370e922f723fc7dbbff03eb1b9dc7c814f1 | 27ebd3d5e92213d1fde0b230186c27a449e869d7 | refs/heads/master | 2020-05-20T15:17:53.169840 | 2019-05-15T16:36:45 | 2019-05-15T16:36:45 | 185,641,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # Generated by Django 2.2 on 2019-05-10 21:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reservation', '0010_auto_20190510_1612'),
]
operations = [
migrations.AlterField(
model_name='user',
name='email',
... | [
"sjcc333@gmail.com"
] | sjcc333@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.