blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
4b67e7ff399bcd6df368357f00b2f7d69f2ca6ad
dbf9ca9f46020e255246eaa45c5a094a0ec5ac43
/django/django_full_stack/amadon/apps/poorly_coded_store/urls.py
31dc103b0e8e0d26c09fe923d12b435d56b51d1d
[]
no_license
Tandd2015/python_stack
677ef9772aa54c727d239024c17812516dabe293
d63af9f8442ce7d631a4fec7fe494ea307b02709
refs/heads/master
2022-02-05T21:51:32.545489
2020-07-16T18:15:07
2020-07-16T18:15:07
206,409,519
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index), url(r'^checkout$', views.checkout_index), url(r'^amadon/buy$', views.amadon_buying), ]
[ "tandd2015@outlook.com" ]
tandd2015@outlook.com
963e864510c02d03f393dda68b55ceb7ee18fe59
8ab9ecba0bb8e474803b587e5b56978264ba0060
/Residual network/util.py
402570bcde540705eebdf2faa943fd8862858dc2
[]
no_license
ewu001/Deep-learning-with-convolutional-network
646ff6673f1e517a1ace89cec888c2f313423af1
4d63d9fee2607d00ce8caff066f5a23942359db6
refs/heads/master
2020-12-09T10:07:45.204460
2020-01-11T19:14:50
2020-01-11T19:14:50
233,272,866
0
0
null
null
null
null
UTF-8
Python
false
false
2,388
py
import os import numpy as np import tensorflow as tf import h5py import math def forward_propagation_for_predict(X, parameters): """ 3 layer model: LINEAR -> RELU -> LINEAR -> RELU -> LINEAR -> SOFTMAX Arguments: X -- input dataset placeholder, of shape (input size, number of examples) par...
[ "59420306+ewu001@users.noreply.github.com" ]
59420306+ewu001@users.noreply.github.com
78892b1fe9d2c4ea6c02dc6d8137c39b0dab819d
a7fc9dff8c5ca42cc4435f8f57ca64e187688650
/classifyMusic.py
4dbad4d88684b9edb0c5b7779d3de51a7d49fe0a
[ "Apache-2.0" ]
permissive
IArrationality/voiceai
5d07ba4943193a639571a9df714b01b9a1db2026
47ee48e642e1e141101adfd697dd03913dc2f614
refs/heads/master
2023-03-17T00:58:50.865410
2017-04-14T17:53:25
2017-04-14T17:53:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
906
py
from sklearn import cluster import json import pickle list = [] data = [] nameList = [] with open('music_metadata.json') as data_file: data = json.load(data_file) for song in data: nameList.append(str(song["name"])) list.append((float(song["energy"]), float(song["tempo"]), float(song["centroid"]), float(song[...
[ "vidursatija@gmail.com" ]
vidursatija@gmail.com
83ee413fda04f449f6526de6a49368ced91020e1
477a3a53c90355434982a88979e6845ab3c279e6
/collective/externalizelink/__init__.py
6210661e894ded712a521bba498d1bc4710a84be
[]
no_license
collective/collective.externalizelink
dac2738d77b0db51be4ef8a0ac3909454d2584d6
54fa332edab64061f7656cdb77ce240629f48682
refs/heads/master
2023-08-18T10:39:49.519346
2014-05-02T13:16:37
2014-05-02T13:16:37
19,216,893
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
# -*- extra stuff goes here -*- import logging from zope.i18nmessageid import MessageFactory _ = MessageFactory('collective.externalizelink') logger = logging.getLogger('collective.externalizelink') def initialize(context): """Initializer called when used as a Zope 2 product."""
[ "luca@keul.it" ]
luca@keul.it
72256797911fd1d2f4086199d9208a6f445d9b2d
caa6dced49f2d03d4fed4c0e9c6f09d0d374e7ce
/leetcode/211_design_add_and_search_words_data_structure.py
7694a60a8c77adcd524ee56cdb1942e524202e68
[]
no_license
hooong/baekjoon
72e70cea5769467609150416be6f075f9d4c136a
541f67859de0871ecfa134f8e5c6a8f399d17a1e
refs/heads/master
2022-04-06T09:21:26.761766
2022-03-02T12:57:21
2022-03-02T12:57:21
180,535,683
0
0
null
null
null
null
UTF-8
Python
false
false
1,216
py
class WordDictionary: def __init__(self): self.trie = {} def addWord(self, word: str) -> None: cur = self.trie for ch in word: if ch not in cur.keys(): cur[ch] = {} cur = cur[ch] cur['*'] = {} def search(self, word: str) -> bool: ...
[ "tjrwns0529@gmail.com" ]
tjrwns0529@gmail.com
a4cf42f2de2ac6b15740ea0a339f19e5160ade80
105aeb11792ef666693ba8c2fa84b53eef8e4778
/quick_scraper.py
23c144adb08a384fdcc7706096ec47bbc44a1757
[ "MIT" ]
permissive
CodeFanatic23/newsBehavior
6a26ecf52a1d990ccf0cf31f361cd17347641c18
8b10ca339dc9bc4cbc033acee5707ff777a4e85c
refs/heads/master
2021-01-11T14:14:49.765909
2017-04-17T18:04:50
2017-04-17T18:04:50
81,243,638
0
0
null
null
null
null
UTF-8
Python
false
false
3,846
py
import scrapy from bs4 import BeautifulSoup import sys import os import _pickle as pickle import pandas as pd from .scrape_with_bs4 import * import datetime class ContentSpider(scrapy.Spider): name = "yolo" handle_httpstatus_list = [i for i in range(100,999) if i!=200] BASE_PATH = os.path.dirname(os.path.a...
[ "awesome@AWESOME.localdomain" ]
awesome@AWESOME.localdomain
25a2374839cd2c7f930233b6db890caca568dfb0
13696a9691b173d75b11b4aee22b79d4ea6b7c0b
/test/test_catalog_info_response_limits.py
827202ca652ed76a76bc7410801e23ae23589d58
[ "Apache-2.0" ]
permissive
square/connect-python-sdk
410613bc4b04f0f70176275591a16c9e49e25ede
e00e2889b2dd2c55048219cbe64db79962a68633
refs/heads/master
2023-06-15T09:24:17.190416
2019-08-15T17:44:41
2019-08-15T17:44:41
64,772,029
53
45
Apache-2.0
2020-12-20T18:41:31
2016-08-02T16:07:17
Python
UTF-8
Python
false
false
1,284
py
# coding: utf-8 """ Copyright 2017 Square, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable la...
[ "yang@squareup.com" ]
yang@squareup.com
a5e2b6e8d569206a8301e3712f4e280d509449a7
98c5d00f821c5fe516ef8e5e2bcee8eb68eda3f6
/dirbot/pipelines.py
a7afe458de55d73acd8f2af194c99cd43ba9daa9
[ "MIT" ]
permissive
java1001/crawler_links_website
36107c3056cd553bda39a4a4634a27699f6e37cc
220368184bb0c98bdd9f90ddea4cce9ceff89e9f
refs/heads/master
2016-09-06T06:56:10.504018
2015-07-22T14:27:47
2015-07-22T14:27:47
39,508,825
3
1
null
null
null
null
UTF-8
Python
false
false
3,314
py
from datetime import datetime from hashlib import md5 from scrapy import log from scrapy.exceptions import DropItem from twisted.enterprise import adbapi class FilterWordsPipeline(object): """A pipeline for filtering out items which contain certain words in their description""" # put all words in lowerca...
[ "hanhhuudoan@gmail.com" ]
hanhhuudoan@gmail.com
1e263b3cac8762c460e2841631a5e16b52522fb5
144b707fc34a9247d1031ceab341cbed783659c4
/AzureDataLake/asgi.py
80468fd6f0c33a1f7e54b6f5796d109b1b494095
[]
no_license
Hari-prasad-129/datacomparetool
20f306422f48d99cc770674cb88271dae218a8b3
c114b8117c56e8c23fb811ed085e2728413fe96c
refs/heads/master
2023-06-14T06:54:49.395926
2021-07-13T14:35:30
2021-07-13T14:35:30
385,633,868
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
""" ASGI config for AzureDataLake project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO...
[ "300072970@BLRM-300072970.local" ]
300072970@BLRM-300072970.local
4a68c7e592a01f77ff122680a68193458b1fabfd
8bc4e3f82a1bfd1587630b9405e7b883626ef2e1
/BBB/PatchCPSInstallerCMFInstaller.py
7a789cadd95c70f9f4be3d614cfa785b03a8ea55
[]
no_license
nuxeo-cps/products--CPSLuceneCatalog
a7bec49b730bb871ab5ba2ba49589eb53c14f2ac
e57772c36eca51b4c9d08565cc9238866552500d
refs/heads/main
2023-01-23T11:03:25.833385
2010-01-01T16:44:32
2010-01-01T16:44:32
317,961,739
0
0
null
null
null
null
UTF-8
Python
false
false
1,795
py
# (C) Copyright 2006 Nuxeo SAS <http://nuxeo.com> # Author: Julien Anguenot <ja@nuxeo.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as published # by the Free Software Foundation. # # This program is distributed in the hope...
[ "devnull@localhost" ]
devnull@localhost
10df3e09b4623c5572d881fcb803c48ba838be08
a49f40455986f138b419c0eea917a369f84e6e0e
/utilss/discordUtils.py
82bab4de64531cb0530771bcbf8bb8bf5a9c15a8
[]
no_license
LiteralGenie/ZeroBot
aa367e6f33b352ddd1544a35d6b0ad6e7c74b450
4eaff29678dadd7eb8d164d0c028e5824b91f80c
refs/heads/master
2021-09-27T06:52:26.775641
2021-09-18T21:42:31
2021-09-18T21:42:31
238,117,400
2
0
null
null
null
null
UTF-8
Python
false
false
4,146
py
from utilss import utils, globals from utilss.commands import * import utilss.sheetUtils.sheetUtils as sheetUtils import discord, json, traceback import utilss.sheetUtils.parseMsgs as parse import utilss.sheetUtils.createSheet as sheet CONFIG= utils.loadJson(globals.CONFIG_FILE) class Client(discord.Client): def...
[ "frothsavd@gmail.com" ]
frothsavd@gmail.com
8b2324f62bfd9afa1616350ddc22100c00c0de19
f84c7c209d21a03ad88cec1efd2795edb8d97a8b
/Skyfit Menu.py
2906d687b5f051c4bf4988e6e8aa94e48d20e0a4
[]
no_license
Chapinzo/python
3d036c35e995ff00d51fd212660098cf1b55baa2
88fdc8e8b928a32ca61978ba2c6547f3eb20c99a
refs/heads/master
2022-12-04T12:41:34.834680
2020-08-24T23:57:24
2020-08-24T23:57:24
277,551,608
0
0
null
2020-08-24T23:57:25
2020-07-06T13:37:57
Python
UTF-8
Python
false
false
2,035
py
#This is a Skyfit Menu print("This is a Skyfit Gym Menu") #Display the welcome message print("\t") print("Welcome to Sky fit Gym Menu") #Welcome the user #Request for details print("\t") first_name = input("Please what is your name:\r") Lastname = input("What is your surname:\r") fullname = (first_name +" "...
[ "noreply@github.com" ]
noreply@github.com
566aec85a27a89e4b6081ffa2e1548f26e034677
334fcae13a0927b879f3cda454bd4d8855a05971
/pyCharm/pandas.dataframe.merge.py
59aaea1aff362887912c05b99417c466601440ec
[]
no_license
cleartime/lean-py-100days
439724b395f15694c9756382adad98ff8b543853
b63f9e12b3f0e30009963ed7db1fcf80e0b10b9b
refs/heads/master
2020-04-22T10:10:27.797514
2019-02-27T07:49:45
2019-02-27T07:49:45
170,295,895
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
import numpy as np import pandas as pd from pandas import Series, DataFrame d1 = DataFrame({'key':['x','y','z'], 'data_set1':[1,2,3]}) d2 = DataFrame({'key':['a','b','c'], 'data_set2':[4,5,6]}) d3 = pd.merge(d1,d2) d4 = pd.merge(d1,d2, how='left') d5 = pd.merge(d1,d2, how='right') d6 = pd.merge(d1,d2, how='outer') d7 ...
[ "562606139@qq.com" ]
562606139@qq.com
6084438e54162ab818dd2e2004f8e3122056a822
3119eb1944f96d5c32221f7e68d7227bc1350109
/mysite/settings.py
74272c00826b4c2db69c3254919da5cd90ab29bf
[]
no_license
anil1pma/RemindMeLater
35f10030919d83dbe1cbf9ce43e35d5f13bf588a
37e3b529751a3d94d3b0c6d8c12d55e51ce37e95
refs/heads/master
2021-01-20T20:56:38.460531
2016-07-24T21:15:18
2016-07-24T21:15:18
64,084,082
0
0
null
null
null
null
UTF-8
Python
false
false
3,061
py
""" Django settings for mysite project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ #Send Mail Info EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.zoho.com' EMAIL_HOST...
[ "anil.bhu2009@gmail.com" ]
anil.bhu2009@gmail.com
eb18d262501a3f0f5037223192af0cf5469af69d
13cfec97e43d55d8e940a20972c9f167c72d9327
/tests/path.py
6cda0cfa5eb64909e4177bfa1cfba678437ae4eb
[]
no_license
hofa/py_game_ddz_asyncio_protobuf
bf22a9adec4b68459595722c93a50c8cc943fe06
b3d13cc40875be1c283e163cfb2bef097cb315da
refs/heads/master
2020-04-09T22:21:02.282086
2018-12-06T06:13:33
2018-12-06T06:13:33
160,625,959
1
0
null
null
null
null
UTF-8
Python
false
false
178
py
import sys, os sys.path.append(os.path.abspath("..")) print(os.path.abspath("..")) print(os.path.dirname(os.path.realpath(__file__)) + "/../") print(os.path.dirname(os.getcwd()))
[ "liuweilong@funtsui.com" ]
liuweilong@funtsui.com
2fc60233814185b1c1d01f8ff2198f079d658b48
bd40df660eda9536089aaf9b75c600f246154c6b
/Day08/Part01/main.py
ba8536bf39f358d28bea5b8e1225fa6eb0eac27c
[]
no_license
superjodash/advent2019
0543ac5ed842ce478f4ce44e5f343ab8812d9e15
9675cb4038a08aed4835c78713326929b83374e6
refs/heads/master
2020-12-14T02:56:10.225248
2020-02-12T05:54:39
2020-02-12T05:54:39
234,613,875
0
0
null
null
null
null
UTF-8
Python
false
false
989
py
width = 25 height = 6 dim = width * height def main(): img = load_file() layerCount = int(len(img) / dim) fewestZeros = None layerData = {} for layerIndex in range(0, layerCount): layer = layerData.get(layerIndex) if(layer == None): layer = [0, 0, 0] layer...
[ "jkemp@matthewsbooks.com" ]
jkemp@matthewsbooks.com
91ad3df12a0b300e02ed46114d6beaa8e3a658ce
3eb068cc71bddbec131defe21c0ae9a430efb1d5
/scripts/export_condcomments.py
c233e20062381449e029649ea62059e5b26107fc
[ "Unlicense" ]
permissive
hivdb/hivfacts
b2830acb513a1688bc780c6680e3dd35c4e60371
58ac768d5099f14c9c99cfaf18a016b1e79e5fe3
refs/heads/main
2023-08-07T13:54:18.492995
2023-07-20T12:44:25
2023-07-21T02:01:13
158,280,510
3
2
Unlicense
2023-07-21T02:01:15
2018-11-19T19:43:15
Java
UTF-8
Python
false
false
1,945
py
#! /usr/bin/env python3 import os import json import yaml import click from yaml import Loader from sqlalchemy import create_engine BASEDIR = os.path.dirname( os.path.dirname(os.path.abspath(__file__)) ) VERSIONS_PATH = os.path.join( BASEDIR, 'data', 'algorithms', 'versions.yml') DATABASE_URI = os.environ.get...
[ "philiptz@stanford.edu" ]
philiptz@stanford.edu
e24cfca7650647d0fd68d5b65a3f02ec842aa1ae
01f44a6a3298566b8d03dc6c32431a1b9e236809
/p2.py
b9811ad8552198f0f21008fc12a05035a9261d54
[]
no_license
nmwalsh/project-euler-solutions
3ca49123e55c2da04e2a4316b07f06fe06b3a868
3413fac909e31bc84f14564a98ffaf8a0ec4dfda
refs/heads/master
2021-05-14T14:35:52.330261
2018-01-10T01:41:37
2018-01-10T01:41:37
115,973,454
0
0
null
null
null
null
UTF-8
Python
false
false
920
py
""" Problem 2 Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued...
[ "nicholaswalsh.official@gmail.com" ]
nicholaswalsh.official@gmail.com
8c04564df7c3a89af5d2e4f21836754bffffc055
0395525e4cf99944b496e4bf6de183ae5456b0e2
/array/taskX.py
8ae6254d35203f5c4b9e4c1c60c4e191f70d60cc
[]
no_license
Dismissall/info_msk_task
a98610d854c7adfb2b829e5593d9eebe5013b972
0f29d18ccfb6834af318418e6f6006681d295e4c
refs/heads/master
2020-06-27T09:30:03.289481
2019-09-01T15:31:30
2019-09-01T15:31:30
199,649,794
0
0
null
null
null
null
UTF-8
Python
false
false
233
py
sizeL, steps = map(int, input().split()) L = ["I"] * sizeL for i in range(steps): begin, end = map(int, input().split()) for element in range(begin - 1, end): L[element] = '.' [print(x, end="") for x in L]
[ "noreply@github.com" ]
noreply@github.com
70ecad88c9ac84c198f61883c5e1885f3efc6486
1b45990df208915d9456412e5d195d4771ead1ab
/cd71A.py
8e230df2d37a0d8e9bd59f150c09a2cbb6fe2ed9
[]
no_license
AhasanulIslam/python_code
0b906697f1ca8d3e4078c245951d3a74aedfb35c
f3e8047d883760ddca1827665fa6e901e7232a35
refs/heads/main
2023-02-05T21:33:31.374831
2020-12-29T00:56:31
2020-12-29T00:56:31
325,209,338
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
int_input = int(input()) for new in range(0, int_input): sting_input = str(input()) length = len(sting_input) if (length > 10): print(f'{sting_input[0]}{length-2}{sting_input[length-1]}') else: print(sting_input)
[ "bsse1024@iit.du.ac.bd" ]
bsse1024@iit.du.ac.bd
f8f82570e0f4443ac61f4cefdf713224bdfd4d23
b2609138cde5297601025f6cf2a0ce4c247559e3
/mysite/urls.py
142222e4bc408dae921b00d2e73494098b5dc4d9
[]
no_license
miltonArango/DjangoTutorial
7593f007e367da5ed0c2fbd60af5cc62225a9b73
aa21322d4d191a6bf485bbc237df42e01039f43e
refs/heads/master
2021-01-10T06:39:39.294595
2015-11-01T02:10:33
2015-11-01T02:10:33
45,325,235
0
0
null
null
null
null
UTF-8
Python
false
false
1,139
py
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
[ "arangogiraldo@unicauca.edu.co" ]
arangogiraldo@unicauca.edu.co
f760c53b3760bd59a2fee205e7f36427d7253daa
d59c2c70aa76331da774a73f29aac6817722dece
/commonfile.py
5187725697bcd8a3c63fd9420d7e9adc6ed7c0b7
[]
no_license
prashant799778/c
88966bac643fa9e7d6d004c42f8a4fcf87265924
6bc8c4287e9cee2c18e634c3b3cffe1b0387c6ab
refs/heads/main
2023-01-29T17:58:59.642222
2020-12-08T09:49:26
2020-12-08T09:49:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,917
py
from datetime import datetime,timedelta import pytz import json import config import hashlib import random import uuid #current datetime time zone india def CurrentDatetime(): ist = pytz.timezone('Asia/Kolkata') ist_time = datetime.now(tz=ist) ist_f_time = str(ist_time.strftime("%Y-%m-%d %H:%M:%S")) ...
[ "noreply@github.com" ]
noreply@github.com
775e0a21e4da3bce7f0a14f7e13c3fe2481f27eb
d8c388015385f0f4a59f2873f5299c0038897e3f
/server/node_modules/dtrace-provider/build/config.gypi
b539aa8443265b0e44496d018964ffe94c0fe282
[ "BSD-2-Clause" ]
permissive
MrJangoBox/PremoApp
ebf92557993785bed0dc424f2f5f69ee831ab634
e879a3d188c1b35352d0c59b9dfb85844ead78b4
refs/heads/master
2020-04-06T06:58:10.361437
2016-09-04T06:28:41
2016-09-04T06:28:41
64,789,011
2
0
null
null
null
null
UTF-8
Python
false
false
3,939
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "host_arch": "x64", "icu_data_file": "icudt57l.dat", "icu_da...
[ "d3t0ur@hotmail.com" ]
d3t0ur@hotmail.com
f27bd70b1b95e95d8ddd07beb64a9a5fe2bb5ccf
92f434e7dd0ead31ffda8a3388b3876c5bc6b1c4
/combination_sum.py
d7c37a7156257643d1161db000bbff7192e494a8
[]
no_license
annaymj/LeetCode
8da53859816cd537dff40885f2c86aa4266be311
7694d0798fe55c69f350013b9329a5844c8c5e35
refs/heads/master
2021-10-01T20:31:34.627983
2021-09-20T03:22:03
2021-09-20T03:22:03
195,608,033
4
0
null
null
null
null
UTF-8
Python
false
false
1,648
py
``` Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order. The same number may be chosen from candidates an unlimited number of times. Two combinations are u...
[ "noreply@github.com" ]
noreply@github.com
1bcc6bd718a97a342700ea58fa2056cd7891915a
732835ff027f10e326022108157ce7a371a6b5fe
/data/interp/interp_data_preprocessor.py
2dc824ef91a1d77c208e925d59c788b17096568e
[]
no_license
NeedsMorePie/interpolator
a476fcac02667013037bf5389e17f8136e373144
494d503c729ba018614fc742f1aee1e48d37127e
refs/heads/master
2020-03-16T20:18:33.615418
2018-09-04T21:43:44
2018-09-04T21:43:44
132,954,308
2
3
null
2018-09-01T19:01:31
2018-05-10T21:05:29
Python
UTF-8
Python
false
false
8,493
py
import multiprocessing import os.path import numpy as np from common.utils.data import * from data.interp.interp_data import InterpDataSet from joblib import Parallel, delayed class InterpDataPreprocessor: def __init__(self, tf_record_directory, inbetween_locations, shard_size=1, validation_size=0, max_shot_len=1...
[ "xdaviswu@gmail.com" ]
xdaviswu@gmail.com
e6eb6911400fa80166135a89111fe9226a54f964
f24335fe2f38935e45017b40f5d032010a61f246
/from_scratch/logistic_regression/init.py
f2b64f2aa7d6ff6052a5bf285df530d36c83add5
[]
no_license
guruprasaad123/ml_for_life
85a8bab14a7e3f8329e66ed0dba02eb11669205b
04a47792d6b288e0c2deb28740827089ce7e97dd
refs/heads/master
2022-11-29T11:49:41.461117
2021-03-23T17:27:22
2021-03-23T17:27:22
176,289,176
4
0
null
2022-11-21T21:30:32
2019-03-18T13:13:31
Jupyter Notebook
UTF-8
Python
false
false
5,537
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt import gradient_descent as gd import time from collections import OrderedDict def create_data(): data = OrderedDict( amount_spent = [50, 10, 20, 5, 95, 70, 100, 200, 0], send_discount = [0, 1, 1, 1, 0, 0, 0, 0...
[ "jiiva116@live.com" ]
jiiva116@live.com
ddd00e589ec924d8b2bce0b19db3a2e20f929e9d
2e89cc44dae7b8425a3b969094729fb174bc1d3a
/rlpyt/ul/models/rl/sac_rl_models.py
d36350e379ba5b98097d15fb88e0f1bc8c3defec
[ "MIT" ]
permissive
ZiwenZhuang/rlpyt
161d9d0f6d99f7a6883ff33dafeb4d3f245821ce
95a05a86f576190cf6217fd9aad7b5f615ee97d1
refs/heads/master
2021-08-10T12:17:11.325561
2021-07-01T05:04:39
2021-07-01T05:04:39
215,345,715
1
0
MIT
2019-10-15T16:27:50
2019-10-15T16:27:49
null
UTF-8
Python
false
false
6,426
py
import torch import torch.nn as nn import torch.nn.functional as F from rlpyt.models.conv2d import Conv2dModel from rlpyt.models.mlp import MlpModel from rlpyt.utils.tensor import infer_leading_dims, restore_leading_dims def weight_init(m): """Custom weight init for Conv2D and Linear layers.""" if isinstan...
[ "adam.stooke@gmail.com" ]
adam.stooke@gmail.com
d834bca54d6d57c07bac682035f245028c3acca3
6e0dc5501f7295690432125605a3db6dee3220fd
/hc_django/project/models.py
2a59b564e6ac4af4f612b385f99eca01f494e901
[ "Apache-2.0" ]
permissive
HuangeHei/hcwy
efd49296c4c87e2c85b76d5a7ca44ca1d55c2407
21b78f102a7c4dbcd7e4522e5074073429f86b93
refs/heads/master
2020-03-06T22:07:32.020788
2018-04-03T09:24:19
2018-04-03T09:24:19
127,095,540
0
0
null
2018-03-28T07:15:01
2018-03-28T06:39:11
Python
UTF-8
Python
false
false
501
py
from django.db import models # Create your models here. class ProjectType(models.Model): type_name = models.CharField(max_length=1024) # Type Name type_desc = models.CharField(max_length=1024) # Type 简介 def __str__(self): return self.type_name class Projects(models.Model): project_name = m...
[ "330202725@qq.com" ]
330202725@qq.com
bc3047e4e9af54346d95aa12cf6ce060c4f27b6d
0ee967f58a52b473366d200748b526d10b946cd6
/sopy/migrations/a7cdfb24f1_wiki_redirect.py
fed9fe0fae0d0587126ea188941d60deddfebb03
[ "BSD-3-Clause" ]
permissive
AlexFrazer/sopython-site
22374ebcb8f802877bbee058baf4ac4252166645
4ede64cf6d04def596be13feeaa4d84ce8503ef3
refs/heads/master
2021-01-17T19:13:09.786186
2016-08-18T17:03:37
2016-08-18T17:03:37
22,970,109
0
0
null
null
null
null
UTF-8
Python
false
false
802
py
"""wiki redirect Revision ID: a7cdfb24f1 Revises: 54a3343a03b Create Date: 2015-05-16 09:43:45.455535 """ from alembic import op import sqlalchemy as sa revision = 'a7cdfb24f1' down_revision = '54a3343a03b' branch_labels = () depends_on = None def upgrade(): op.add_column('wiki_page', sa.Column('redirect_id',...
[ "davidism@gmail.com" ]
davidism@gmail.com
09f6cbedee6846b56a8cde264b31ac9a2339f362
a0187b956995a3089905154e657fc72b9c26253e
/manage.py
66ff5b32e8e6a215a663a5cba60c41b76d45b7cf
[ "MIT" ]
permissive
elleryq/site_framework_demo
ac21d29195dc4ddbf2a593de9963cea6d99920a2
cb58860b01c34a2d020a8c8fa416d30feae3d277
refs/heads/master
2022-12-03T01:12:30.749440
2020-08-19T03:49:23
2020-08-19T03:49:23
288,624,070
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'site_framework_demo.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ...
[ "elleryq@gmail.com" ]
elleryq@gmail.com
4532f799a2f525f142defee87eccd2d03128772e
acffeddbf87a0599352953646315ebdf970df927
/posts/migrations/0008_auto_20200715_1347.py
f9ac2c17b81736bf87602dbe62819a51cafbceae
[]
no_license
lelematos/django-simple-commerce-model
a69d345b978714ad0c1a168ead227350b7262467
b018e79692c80ace0c3cb99f9c5efe3e540e3853
refs/heads/master
2022-12-13T02:34:10.904803
2020-09-09T13:34:33
2020-09-09T13:34:33
279,939,521
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
# Generated by Django 3.0.8 on 2020-07-15 16:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0007_auto_20200714_1720'), ] operations = [ migrations.AlterField( model_name='item', name='tamanhos', ...
[ "lematos1999@hotmail.com" ]
lematos1999@hotmail.com
d84086205a421a8b6e2dd784d8e6b03134fc95b8
60ab7236a66115475e32e630bdafe07174b07306
/tests/__mocks__/pika.py
c2fa89a7cf8b758d79b78784e5b66591a16c356b
[]
no_license
KJBose/Tools-RmqPy
b8d69fefc78a4eb837a9ab9159bb5de32ad071ba
3444a44d6509bc262f79cc40aca5789ab16e681f
refs/heads/master
2023-04-09T06:53:22.509060
2021-04-19T17:42:23
2021-04-19T17:42:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
class Channel: def __init__(self): pass def exchange_declare(self): pass def queue_declare(self, queue, durable): pass def queue_bind(self, queue, exchange): pass def basic_qos(self, prefetch_count): pass def basic_consume(self, queue, on_message_callback): pass def start_consuming(self): pa...
[ "2bose.on@gmail.com" ]
2bose.on@gmail.com
dfd76324264cbc26e6c3808485bbb31e31d13615
5360372275da84dad50f4743eaed4d5cba2a3b4c
/bag/views.py
736053d67e59a4941fd17c9847edb252317ae3d4
[]
no_license
JihanePett/jbonjovi
ebcc6c6bb1837fb9d294a0ab35e71e8008f2b5a9
bb70e42f0b166eee8bb6afbe2502f66ca81dca24
refs/heads/master
2023-02-28T00:42:39.838778
2021-02-05T11:12:09
2021-02-05T11:12:09
331,971,738
0
1
null
null
null
null
UTF-8
Python
false
false
4,279
py
from django.shortcuts import render, redirect,\ reverse, HttpResponse, get_object_or_404 from django.contrib import messages from products.models import Product # Create your views here. def view_bag(request): """ A view that renders the shopping bag contents page """ return ren...
[ "jihane.petticrew@gmail.com" ]
jihane.petticrew@gmail.com
d332bb4c6d7967b7712450c34ae4edf3bc54394d
80854c2ae9665e41d432a411788e10fd25c62e42
/advent4.py
bc7242ace08a0d26f0a23663aa7eacb99bb00407
[]
no_license
Lammmas/aoc2019
f61589da634b0efb60e2ea45297880b0648e3e64
d18789b95eff92b00c143ec498a2da57461f6146
refs/heads/master
2020-11-24T23:38:15.117779
2019-12-16T17:46:16
2019-12-16T17:46:16
228,391,164
0
0
null
null
null
null
UTF-8
Python
false
false
519
py
start = 153517 end = 630395 count = 0 for c in range(start, end + 1): code = [ int(e) for e in str(c) ] decr = False same = False prev = -1 for n in code: if n == prev: same = True elif n < prev: decr = True break prev = n hasPair = False if same: numbers = {} for n in code: if str(n)...
[ "renna@reemet.me" ]
renna@reemet.me
f9f6cfbe20450566ba49576cc6d511634b8e84b8
559f9baf0143e5c0aec8cc4050371c1276b3347e
/code/annt.py
7213b77a636e46638457d6425222c96d871ce18f
[]
no_license
jkfurtney/dotfiles
1b8e6f494eb48e95ed3cb3add43998df1c0efecb
3e81d7291684c019f65ac0b80214afc0578ddf3e
refs/heads/master
2023-05-25T08:25:56.024770
2023-05-22T17:47:00
2023-05-22T17:47:00
68,296,776
6
0
null
null
null
null
UTF-8
Python
false
false
638
py
import time import pyttsx engine = pyttsx.init() def say(data): engine.say(data) engine.runAndWait() numbers=['zero','one','two','three','four', 'five','six','seven','eight','nine','ten','eleven','twelve'] def say_time(): s = time.localtime() h, m = s.tm_hour, s.tm_min if m == 30: suffix ...
[ "jkfurtney@gmail.com" ]
jkfurtney@gmail.com
ca7e3822837e1022c25e71a04a08ef872eb2c937
5a0260b3792d479722cfe396347babbf45157cf9
/assert4.py
5d5b659650264b1f5851ad0b8709fbc6f700d3d8
[]
no_license
paddumelanahalli/agile-programming
9167807afd8c83653d4eb79c9931fcaac859403b
afb7d6b0441c24dff30523096b995c2046fa550f
refs/heads/master
2023-03-09T19:54:36.372513
2023-03-03T04:52:28
2023-03-03T04:52:28
169,643,104
0
2
null
null
null
null
UTF-8
Python
false
false
304
py
# initializing number a = 4 b = 0 # using assert to check for 0 print("The value of a / b is : ") assert b != 0, "Divide by 0 error" print(a / b) # Test case 2 x = "hello" #if condition returns False, AssertionError is raised: assert x == "goodbye", "x should be 'hello'" # Test case 3 x = "hello"
[ "noreply@github.com" ]
noreply@github.com
b5a7b3986df24c714e294140a514a6b2c6d588d8
fb8415ac14b1a75089ca145e4367f74e8dd7977e
/ODE.py
c270423adb35e5e24e6333425b284a6798f49bb1
[]
no_license
yuuch/ode-homework
c816dd52addfde613a17b1f685ea30833e69c6b2
56e9febc2c2a3d4d2cf512bdcd58a93c8dd8734e
refs/heads/master
2020-03-25T00:10:39.346584
2018-11-02T08:37:46
2018-11-02T08:37:46
143,172,706
0
0
null
null
null
null
UTF-8
Python
false
false
3,358
py
import numpy as np import matplotlib import matplotlib.pyplot as plt def explicit_euler_method(u_0=1 ,v_0=1,n=10000): # initial conditions t_interval=[0,100] mat_of_coe=[[98,198],[-99,-199]]# matrix of coefficients u_value_list=[u_0] v_value_list=[v_0] h = (t_interval[1]-t_interval[0])*1.0/n ...
[ "ywchcs@gmail.com" ]
ywchcs@gmail.com
62ab7f2cf3236ecacf9734a1e433a4e4c6fc26ba
20a0bd0a9675f52d4cbd100ee52f0f639fb552ef
/transit_odp/timetables/transxchange.py
5131e1145b84322f07c74c7182aed99a52639682
[]
no_license
yx20och/bods
2f7d70057ee9f21565df106ef28dc2c4687dfdc9
4e147829500a85dd1822e94a375f24e304f67a98
refs/heads/main
2023-08-02T21:23:06.066134
2021-10-06T16:49:43
2021-10-06T16:49:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,067
py
import logging import zipfile from collections.abc import Iterator from pathlib import Path from typing import List, Optional from lxml import etree from pydantic import BaseModel from transit_odp.common.xmlelements import XMLElement from transit_odp.common.xmlelements.exceptions import NoElement from transit_odp.val...
[ "ciaran.mccormick@itoworld.com" ]
ciaran.mccormick@itoworld.com
1ca416d2fa6c49c7791aad99940c8a5f39e04731
ab8dc4b855906799c869b26c41767f08d2c05128
/settings.py
7d84a8dd8c5e9b9f03097fbdb252f2cf9ecf7b06
[]
no_license
span1ard/rss_update_notifier
3b4bcb0b79edacbb29242b94df7647206a1ab377
847d55dc8c42cc343259f5f3f209d4e3cded6311
refs/heads/master
2020-04-05T17:31:05.757370
2018-11-11T09:43:05
2018-11-11T09:43:05
157,064,707
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
# settings rss_list_file = 'rss_list.txt' # file with list your rss channels timeout = 120 # time between queries # available modes, pick one or more subprocess_mode = False file_mode = False shell_mode = False # do not set True if stdout_mode True init_ent_count = 5 # the number of entries from the channel shown...
[ "noreply@github.com" ]
noreply@github.com
96e6f090af7124edf646f6756f1619345d2b5808
9b82291d67fb442124f6d34154e330a1c5079e6a
/sneakers/migrations/0002_auto_20191021_1829.py
dd665833d3ad680741692650ee95d52b78db2f95
[]
no_license
katrek/sneakermarket
bae80dbaec386f19eeacb546d087db03fbe65374
58b42cd83a0e4fb527efadbdbcf2c978edb807f2
refs/heads/master
2020-08-18T06:39:17.602292
2019-10-22T18:34:51
2019-10-22T18:34:51
215,759,479
0
0
null
null
null
null
UTF-8
Python
false
false
821
py
# Generated by Django 2.2.6 on 2019-10-21 18:29 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), ('snea...
[ "akatrek@gmail.com" ]
akatrek@gmail.com
5ad36e086471a28c386754e13e41fc6808c08bc9
d203e90dda31b0ff1a49f0a553c51d37ce587dbe
/landlab/grid/structured_quad/structured.py
eec849124775e98996c377fe136cceb7b4ff8846
[ "MIT" ]
permissive
gregtucker/landlab
2077f3d4e41fca06b9b08feddab395d343e97079
975104e1a1af34c8cc64381081e8d1d39b28e8dc
refs/heads/master
2021-01-18T12:19:05.275300
2015-09-01T22:03:01
2015-09-01T22:03:01
39,078,020
0
0
null
2015-07-14T13:59:58
2015-07-14T13:59:58
null
UTF-8
Python
false
false
4,694
py
#! /usr/bin/env python """ Examples -------- >>> import numpy as np >>> from landlab.grid.structured_quad.structured import StructuredQuadGrid >>> (y, x) = np.meshgrid(np.arange(4.), np.arange(5.), indexing='ij') >>> grid = StructuredQuadGrid((y, x)) >>> grid.number_of_nodes 20 >>> grid.number_of_node_rows == 4 True >...
[ "mcflugen@gmail.com" ]
mcflugen@gmail.com
c7a5c42d257dc66dc4ccfd96746a2683f6614f50
fc93668dd9d324e8c7de1f8f7ead0d15232e9cb8
/SSD/train.py
79e50f566d37bbbd51c680e065f46d7de2f48cbc
[ "MIT" ]
permissive
tormey97/MasterProject
551aaed2299ee3ec494691324bbbb644fe1edf2d
d4f5d6a4d6e0df83ee44c726b16878595cd5fa44
refs/heads/main
2023-06-06T22:37:32.592523
2021-06-27T07:35:58
2021-06-27T07:35:58
344,808,313
0
0
null
null
null
null
UTF-8
Python
false
false
4,271
py
import argparse import logging import os import torch import torch.distributed as dist from SSD.ssd.engine.inference import do_evaluation from SSD.ssd.config import cfg from SSD.ssd.data.build import make_data_loader from SSD.ssd.engine.trainer import do_train from SSD.ssd.modeling.detector import build_detection_mod...
[ "torstme@stud.ntnu.no" ]
torstme@stud.ntnu.no
ed6425edc893df682b3844d0b2db82e4b26db86a
60df08d44172e169aef7f2e4e60ec65bcf15b494
/monitor_downloads.py
8858c72b7752ea14c26375120978ebc4fd01b7f9
[ "MIT" ]
permissive
apchavan/File-autoplacer
6f21a0e5803459a41d1a39de60842c15357b7aa4
f71f39f6f3125e0c311504fcb4acae6760e69c3d
refs/heads/master
2020-07-27T02:14:41.357723
2020-02-16T11:01:25
2020-02-16T11:01:25
208,833,624
3
0
MIT
2019-10-24T08:13:58
2019-09-16T15:25:55
Python
UTF-8
Python
false
false
7,665
py
""" Functions to monitor 'Downloads' directory. """ import distutils.errors as distutils_errors import os import random import time from distutils.dir_util import copy_tree, remove_tree from distutils.file_util import copy_file from platform import system import app_data import audio_formats import directory_names im...
[ "ameyc96@gmail.com" ]
ameyc96@gmail.com
61d7063179f93d20eb1cfb1ff03940d9692e7a55
dfb5dd691a2e91570fe8439e21b7b474303ec306
/python网络数据采集/my_爬虫_进阶_之路/scrapy框架/my_spiders/电商项目集合/my_flask_server/mogujie_parse.py
def219d3c02d0d5e1e36e96f09b4ac61d275df54
[]
no_license
17637462979/python-2
92556a917ed3d91c605b8da81457a8574af292cb
bfc0b34e2c31cda7618d0cbed6890a0513a55022
refs/heads/master
2020-07-28T01:30:08.381607
2019-09-18T03:29:25
2019-09-18T03:29:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,899
py
# coding:utf-8 ''' @author = super_fazai @File : mogujie_parse.py @connect : superonesfazai@gmail.com ''' """ 蘑菇街页面解析 """ import sys sys.path.append('..') from decimal import Decimal from settings import IP_POOL_TYPE from sql_str_controller import ( mg_insert_str_2, mg_update_str_3, mg_update_str_4,)...
[ "superonesfazai@gmail.com" ]
superonesfazai@gmail.com
cff9ca4a4258f8e409289cf41a801d52dbb646fa
550d6012c5f14e87803dbb29abc9edf8a34a1ca9
/Lab01.py
f5998fbfc2cd2b216a473fc4aa8fc77331f06c5c
[ "Apache-2.0" ]
permissive
gksmfzz1/JavaProject
d89eb5efb4f265a2fe747e0c11da63049d5695cf
6b22badf8052a66928ab3ef2f60e83bfa54466c1
refs/heads/master
2021-05-06T00:49:18.766105
2018-01-26T09:01:35
2018-01-26T09:01:35
114,331,132
0
0
null
null
null
null
UTF-8
Python
false
false
3,667
py
#1 print() 를 이용 다음 내용을 출력 print(' /\_/\ ----- ') print('( \' \' ) / Hello \ ') print('( - )< Junior |') print(' | | | \ Coder!/ ') print('(__|__) ----- ') print('* * ** **** **** * *') print('* * * * * * * * * *') print('***** * * **** **** * * ') print('* * ****** * * *...
[ "gksmfzz1@gmail.com" ]
gksmfzz1@gmail.com
a74d39a7ed47f3466aa8e74441bccf8c60d82327
aa84ffe9453175f50195c420064533e94308eaf7
/hw/8/hw7.py
9793949ed263094d4c38445a36951e1714f9db2b
[]
no_license
AryaAbhishek/ASE_aarya_sbhadau
5caa3f0b76c93ba4e2da0e861c8b01c67819b0dd
4291737404fa932992b4e2903970881fe5439cd3
refs/heads/master
2020-07-13T04:55:55.779298
2019-11-28T23:35:17
2019-11-28T23:35:17
204,995,098
0
0
null
null
null
null
UTF-8
Python
false
false
5,488
py
import random, math from hw4 import Num, Table, cells, rows, file, fromString seed = random.seed import csv # Build a distance function that reports the distance between two rows: def distance(i, j, cols): d = n = 0 p = 2 for col in cols: n += 1 d0 = col.dist(i.cells[col.pos], j.cells[col...
[ "abhishekarya001@yahoo.in" ]
abhishekarya001@yahoo.in
258d9b057d63b655387f61435807603242c543ba
fe9e49ad74317e0bbdf3bb306f76adc618b376a9
/p1-tests-martin/test_bool_arithmetic.py
3522680fb840a8f59830442d765716c783f7fc71
[]
no_license
blishko/usi-cc-tests
56556983cd24c94d45a47491be5850bc2245940c
364fd8123ca9ede4858dfd2da1beb740819fa07e
refs/heads/master
2020-05-25T21:35:08.228115
2019-05-31T19:37:24
2019-05-31T19:37:24
188,001,144
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
print True + True print True + False print False + True print False + False print True - True print True - False print False - True print False - False print True * True print True * False print False * True print False * False print -True print -False print +True print +False
[ "blichm@usi.ch" ]
blichm@usi.ch
cdf43734eec6423bf3ea7671cf418e1083ca3f4c
ba6921a268198bc0af433622c021533905f5d462
/tests/system/providers/google/cloud/dataproc/example_dataproc_spark_async.py
edb704f6bcc95e746cf65f861e54337477d0fd78
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
potiuk/airflow
b6447765b1a7b586a3d6c8d7ba9262f6bf68fbfd
ca2f3013bcb123c4b3973a5b85de77094bf2c459
refs/heads/main
2023-08-30T13:05:50.698888
2023-05-21T21:08:14
2023-05-21T21:26:14
173,467,275
8
7
Apache-2.0
2023-05-21T21:58:40
2019-03-02T15:50:53
Python
UTF-8
Python
false
false
3,837
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...
[ "noreply@github.com" ]
noreply@github.com
146bf7d3e84c6e45a66688596a17cbc95264edf7
0421849de8e06a60e2e6522d591666c771f6f23d
/setup.py
76df59cb560f26f2e7488ab774426e74ef766093
[]
no_license
irskep/gw0rp
68f4c5a905dc590325dc6d9354da26f2974ba0c9
f985c919141e19ee099766c18b7fe416f921836c
refs/heads/master
2021-01-22T04:01:07.174867
2017-05-26T06:04:44
2017-05-26T06:04:44
92,418,799
1
0
null
null
null
null
UTF-8
Python
false
false
638
py
""" This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from setuptools import setup OPTIONS = dict( argv_emulation=True, frameworks=['libavbin.dylib','pymunk/libchipmunk.dylib'], plist = dict(CFBundleIconFile='gw0rp.icns')#, PyRuntimeLocations=['/Library/Frameworks/Pyth...
[ "steve@steveasleep.com" ]
steve@steveasleep.com
7f460fc00756afe2813233fae211f7d73cbdd5ae
531c47c15b97cbcb263ec86821d7f258c81c0aaf
/sdk/synapse/azure-synapse-nspkg/setup.py
f43112c0a11de1a4dd5c84fa945d4b6109ee771e
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
YijunXieMS/azure-sdk-for-python
be364d3b88204fd3c7d223df23756386ff7a3361
f779de8e53dbec033f98f976284e6d9491fd60b3
refs/heads/master
2021-07-15T18:06:28.748507
2020-09-04T15:48:52
2020-09-04T15:48:52
205,457,088
1
2
MIT
2020-06-16T16:38:15
2019-08-30T21:08:55
Python
UTF-8
Python
false
false
1,353
py
#!/usr/bin/env python # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------...
[ "noreply@github.com" ]
noreply@github.com
2cd5dc24279b938bfffb5ee23d7cc5374d2009d4
103ec492a2e30af0634f4a9cef30a6b2ddc63cdd
/models/encoders/core/pyramidal_blstm.py
386cb989c141cd78bc88b5317a0acb3d99707688
[ "MIT" ]
permissive
superhg2012/tensorflow_end2end_speech_recognition
800c9880e6cf6ec4036d09fe3248cfbd4d594618
6abf9631c0b6d608c249284cba85aee0a391c98e
refs/heads/master
2021-07-07T12:24:23.058110
2017-10-04T08:20:59
2017-10-04T08:20:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,968
py
#! /usr/bin/env python # -*- coding: utf-8 -*- """Pyramidal bidirectional LSTM Encoder class.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf class PyramidalBLSTMEncoder(EncoderBase): """Pyramidal Bidirectional LSTM Encoder...
[ "hiro.mhbc@gmail.com" ]
hiro.mhbc@gmail.com
17a0169e232c08825edaf79508f39be114dec58a
4b6d80db4fe03e213d0f55ddbfcf86a01b4ee5a6
/generate_sample.py
6675107399ac2851038f1bb5fd7f803a8f1b106d
[]
no_license
natalie-woerle/Weather-Visualizer
d70efa71d6a58b4014994e62d02c8daa78541c4a
cef8754d8ce3e7b4adda562954fac4b6812b953b
refs/heads/main
2022-12-27T21:04:04.532144
2020-10-12T19:29:18
2020-10-12T19:29:18
303,480,354
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
from parse_web import WeatherParser import os import random from datetime import datetime,date parser = WeatherParser() def generate_sample(): os.chdir(parser.csv_directory) start_dt = date.today().replace(day=1, month=1).toordinal() end_dt = date.today().toordinal() random_day = date...
[ "noreply@github.com" ]
noreply@github.com
a580f1dad684d130a74dbaf6cc30bf9f4051adfa
7df49bf9a5fa6dfd53a1a888913e30926e1cdf34
/even-getallen.py
8541d4a40bf2a4685021c5a60aed0c4517bddbdc
[]
no_license
Rouamu/forever-young
74349cdc0727c99a0d4adaf8aa4e848b4653ac5e
c6088f7cee887567ee4bf4588500ea26e5474b3e
refs/heads/main
2023-08-21T18:54:29.515770
2021-10-11T08:08:33
2021-10-11T08:08:33
409,884,852
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
for i in range(20,50,2): print(i)
[ "Roua.mulham@gmail.com" ]
Roua.mulham@gmail.com
4782d50ed3d190192ad7c23f3fec7e4f81caff01
0d9252d483372ba70cc9319008ce874439f3d21f
/student_app/migrations/0002_auto_20200225_1245.py
fb3b7c1a56b5fd14770629858688dd357b4408c1
[]
no_license
AjayJangid17/Student_Form
0c2df4f104772d49239c3d47e8527e7633cfcf46
b5f563d7519a86f2c8eaf2ccf170fd94d614643d
refs/heads/master
2022-10-03T05:33:45.626322
2020-02-27T13:55:46
2020-02-27T13:55:46
243,525,500
0
0
null
2022-09-23T22:35:26
2020-02-27T13:26:13
Python
UTF-8
Python
false
false
1,065
py
# Generated by Django 3.0.3 on 2020-02-25 12:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('student_app', '0001_initial'), ] operations = [ migrations.AddField( model_name='studentform', name='address', ...
[ "ajayjangid178@gmail.com" ]
ajayjangid178@gmail.com
89258605a3e246f4fc077795bad4a92a251671fe
4546a122fc7c01aae9772c88f2844c705bdf5242
/config/settings/production.py
d69314582447e73b8db6d1a42d849a39749f8f63
[ "MIT" ]
permissive
damildrizzy/devfolio
c7d351cb365277afa4c5f436a63e6b2c66105557
21b709b34f71d7cf0ea2131c5dfe9c82aa9cd7fd
refs/heads/master
2022-04-15T18:09:58.836305
2020-04-11T15:26:43
2020-04-11T15:26:43
254,665,439
0
0
null
null
null
null
UTF-8
Python
false
false
8,086
py
import logging import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration from sentry_sdk.integrations.logging import LoggingIntegration from sentry_sdk.integrations.celery import CeleryIntegration from .base import * # noqa from .base import env # GENERAL # ------------------------------------...
[ "damiloladrizzy@gmail.com" ]
damiloladrizzy@gmail.com
3132075cd1af439907a9361da793fe4c8dc6e977
de2a6c2d179cb6d0c583b54e09d1bf29c0892af1
/bank_pay.py
ad997e810c401a685e7034e2469ded1660a38ea5
[]
no_license
yyww322/RailWay
af6bf4a960e191811d63aed894285cebd2ba61cb
00af82a3bf62341203956098ccac37972b9ab50f
refs/heads/master
2021-01-10T01:40:31.582879
2015-11-16T09:13:27
2015-11-16T09:13:27
46,093,179
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
balance = 4213 annualInterestRate = 0.2 monthlyPaymentRate = 0.04 minipay=0 totalpaid=0 for mon in range(1,13) : minipay=balance*monthlyPaymentRate min_int=int(minipay*100+0.5) min_ans=float(min_int)/100 totalpaid+=minipay balance=(balance-minipay) balance=balance+annualInterestRate*balance/12 ...
[ "110161598@qq.com" ]
110161598@qq.com
70ebf42b0284e8968265696f81ac123a57e60175
de70353efdddc68a4612accdf3b5ce1848ebf153
/STA-EXAM 1-AnmolSureshkumarPanchal.py
b9916aaf425f99e8981653356df6a958e1a8d8d1
[]
no_license
AnmolPanchal/Statistical-Computing
cec43a5e462cb541e436eeb238e060f990ef4ba7
a678cc82b1adc2cc7f91502b6207303908744cc7
refs/heads/master
2020-04-11T01:58:25.744611
2018-12-12T04:15:41
2018-12-12T04:15:41
161,431,687
1
0
null
null
null
null
UTF-8
Python
false
false
12,779
py
# coding: utf-8 # # Question 1 - Bootstrap, jackKnife, CI # In[201]: import pandas as pd import numpy as np import math from sklearn.metrics import f1_score from sklearn.model_selection import train_test_split import matplotlib as mp import matplotlib.pyplot as plt from sklearn.tree import DecisionTreeRegressor fr...
[ "noreply@github.com" ]
noreply@github.com
3411eab83cab3ceb57f6cd5eda2384ad592f80c4
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02753/s317320814.py
1d01cebc3d9e84f7bab93a183ff353992a529d51
[]
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
72
py
S = len(set(input())) if S == 2: print('Yes') else: print('No')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f0588455a5d8e043143afee399191423e28f8734
84e986f28e006d7d3d7f8227b0fbe2d5334612bb
/aws_xray_sdk/ext/django/middleware.py
c10fec7c6d9e2ffaec3e6ac23246b25b8875e4ce
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
azatoth/aws-xray-sdk-python
40fe3cf250977fa4706880bcf316c49a38b90b08
dc5086373c47e9a5e32882cfb20796d9f988a3a4
refs/heads/master
2020-03-18T07:32:46.703269
2018-05-21T20:38:17
2018-05-21T20:38:17
134,459,375
0
1
Apache-2.0
2018-05-24T08:32:27
2018-05-22T18:34:27
Python
UTF-8
Python
false
false
2,993
py
import logging import traceback from aws_xray_sdk.core import xray_recorder from aws_xray_sdk.core.models import http from aws_xray_sdk.ext.util import calculate_sampling_decision, \ calculate_segment_name, construct_xray_header, prepare_response_header log = logging.getLogger(__name__) # Django will rewrite so...
[ "haotianw@amazon.com" ]
haotianw@amazon.com
b97f74a1f0621e7869d7ba6dbce18fdd009b8709
2e1c3b6a76cb17383421105298f9c5f9aa048ee0
/Newbie-Python/newbie-python-59.py
3a7663e1148559fffb1926392c7cada603400f85
[]
no_license
viewless/Skillreceiving
e31a0c1e4177eefea3d2288317026fb1777ae4bc
3a5a5860c4595ca108d531d5b3b1248e60e0f0ae
refs/heads/master
2020-06-11T14:16:52.386960
2019-06-27T13:57:01
2019-06-27T13:57:01
193,995,531
0
0
null
2019-06-27T00:29:29
2019-06-27T00:29:28
null
UTF-8
Python
false
false
641
py
sum = float(input()) mesec = int(input()) simple = sum complex = sum for i in range(mesec): simple += (sum * 0.03) complex += complex * 0.027 print("Simple interest rate: ", end = "") print(str("%.2f" % simple) + " lv.") print("Complex interest rate: ", end = "") print(str("%.2f" % comple...
[ "noreply@github.com" ]
noreply@github.com
d3d0752d658dc6192d9911d8f0c9d9b421b40a88
8ea9d7e5db9756915a35b52be5e3d12a66254f24
/64.最小路径和.py
4ba73a3e290210ee1e4bdacc636970011aa292ad
[]
no_license
Sander-houqi/leetcode-py
236a7733343fc92b739f8283f953fd2996643737
315c37cf88cd21cff0fb96eccbf52589252e24ed
refs/heads/main
2023-05-12T07:29:02.719586
2021-05-17T09:09:24
2021-05-17T09:09:24
341,113,282
0
0
null
null
null
null
UTF-8
Python
false
false
708
py
# # @lc app=leetcode.cn id=64 lang=python3 # # [64] 最小路径和 # # @lc code=start class Solution: def minPathSum(self, grid: List[List[int]]) -> int: if not grid or not grid[0]: return 0 rows,cols = len(grid), len(grid[0]) dp = [ [0]*cols for _ in range(rows)] # 左上角初始化 ...
[ "houqi1@staff.sina.com.cn" ]
houqi1@staff.sina.com.cn
b26849f52600f81305a87609fd1e3a4afcf64817
7aceea648a4075f8151ae9aa7e03a577bb3034c0
/test_docker.py
81bd1e592d16de17e3c52b7056ae0c32f95447c8
[]
no_license
bas079/DockerRedisPython
c79b01c084806eaf86f6ae4a5eba64729ecf67da
9e14c3dbc724a3f7340ca62bf217873a3cfbeca8
refs/heads/master
2020-04-12T23:30:52.491822
2018-12-30T16:49:29
2018-12-30T16:49:29
162,821,956
0
0
null
null
null
null
UTF-8
Python
false
false
682
py
from selenium import webdriver import time import re CHROME_DRIVER = "C://Users//Anna//Downloads//chromedriver_win32//chromedriver.exe" SITE_NAME = "http://192.168.99.100:5000/" #Open chrome driver driver = webdriver.Chrome(executable_path=CHROME_DRIVER) # Opening chrome browser on a desired page driver.get(SITE_NAM...
[ "bas079@gmail.com" ]
bas079@gmail.com
5f035ea9290e53b5924dac886e9088c275dc4110
4a5548330b88e7d210995be983f1a6c09e1f6d12
/Seed/views.py
b24253e2f6421d170e84ff67a38e8de9c3031221
[]
no_license
kimwoojoo/Seedgermination
0c3377dc747b1705b2fec96a38b9ba65b70a220c
550977885b25b34e8aaf7e46a3d943ecfc1e67cf
refs/heads/master
2020-03-27T06:02:17.152112
2019-03-07T09:47:43
2019-03-07T09:47:43
146,073,301
0
0
null
null
null
null
UTF-8
Python
false
false
1,865
py
from django.shortcuts import render, get_object_or_404, redirect from django.http import HttpResponse, JsonResponse from .forms import ImageExampleForm from .retrain import run_inference_on_image from mysite.settings import MEDIA_ROOT import json import time import os BASE_DIR = os.path.dirname(os.path.dirname(os.path...
[ "kyr1217@gmail.com" ]
kyr1217@gmail.com
827386bee3c894244614bc9be21b0dcc1ff5dfc6
39d7f92a87490893faf70958ac75a18d7f4010ed
/tests/test_blog.py
b3278ab7bead96ffd75376a7756c8ad87f66964c
[]
no_license
rahuls321/Python-Web-App-with-Flask-
94ebab6189cef19e74d8dabef854f0fc092d0071
43d1def8bc1b18f5812a75b9db1ca1c0721fadbb
refs/heads/master
2022-12-13T03:58:03.094409
2020-09-10T11:48:24
2020-09-10T11:48:24
294,392,912
0
0
null
null
null
null
UTF-8
Python
false
false
2,608
py
import pytest from flaskr.db import get_db def test_index(client, auth): response = client.get('/') assert b"Log In" in response.data assert b"Register" in response.data auth.login() response = client.get('/') assert b'Log Out' in response.data assert b'test title' in response.data as...
[ "kumarsrahul123@gmail.com" ]
kumarsrahul123@gmail.com
675f616d7429e42b9bc576d686ae7a8e6c317952
5ce40c9a72d066d60a623790eb936fa4232b05ea
/Token_test/views.py
4264305185ee99106ee04315b8a629a508d27229
[]
no_license
Prashant9931/GUI_project
0d3835a29e678c4d3dc53e7dbc5fc269cb63ae82
5e42d43d2150a66938fdbe9cb27912b01eaf57e7
refs/heads/master
2020-06-20T00:04:42.735120
2019-07-15T07:25:15
2019-07-15T07:25:15
196,921,408
0
0
null
null
null
null
UTF-8
Python
false
false
1,370
py
from django.shortcuts import render,redirect from django.http import HttpResponse from django.views.decorators.csrf import csrf_protect, csrf_exempt from django.contrib.auth.models import User,auth from rest_framework.decorators import api_view from django.http import HttpResponse # from Token_test.models import User...
[ "tprashant665@gmail.com" ]
tprashant665@gmail.com
189c9ba3749f61709f665e9f312e3474846fd1e7
75adf2c86e13612bb584fe28bf7e6272dadaee30
/env/bin/symilar
0fc460f87e111154fb24921042335bd53a23ec70
[]
no_license
yushghimire/python-flask-try
84af540cae7319e8685738f2bb6bd5c442ef3612
e1020a577c09ce8ba4de5a720d9eb3f5c8ac4223
refs/heads/master
2020-03-27T15:55:24.267992
2018-08-30T12:42:49
2018-08-30T12:42:49
146,747,790
1
0
null
null
null
null
UTF-8
Python
false
false
264
#!/Users/yushghimire/mywork/python-flask-web/env/bin/python # -*- coding: utf-8 -*- import re import sys from pylint import run_symilar if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run_symilar())
[ "ayushghimire@lftechnology.com" ]
ayushghimire@lftechnology.com
61e2b14749e868fd2a135d4e5ed2ec7b33bdd3b7
24abbefb90b95e8c63416cc028202d0623accf0d
/proc_image_usage.py
510ef8695f20569ff48c324a17ac5c142435afb9
[]
no_license
hehao98/pkudean-CAPTCHA-identification
250a6abd146b9fad8459ed7c21398cea96969ace
e313fb0bd753187198d332cda1803782391672f9
refs/heads/master
2021-05-15T06:41:55.741060
2017-12-13T04:46:19
2017-12-13T04:46:19
114,070,876
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
import proc_image # Process 100 images in the data folder, split it to 4 character images # and store the result in train folder proc_image.proc_image('data', 'train', 100)
[ "hehao1998@pku.edu.cn" ]
hehao1998@pku.edu.cn
66784abd494206206b62b19a1ff3e51a284cfcca
1a04d15acc0d5375f79e65c059662462890a4226
/test2.py
b34bc857a9a9a32a6eb31cd715e757d846e70c7b
[]
no_license
Zero-Qzy/Connect6
6fd682cbcc59a3d87d524a807a2d4dfb5cd41f34
2f16b4835554d63d65de24f0327f0a8a96c5a915
refs/heads/master
2020-07-29T22:45:12.255598
2019-09-27T06:45:38
2019-09-27T06:45:51
209,989,275
0
0
null
null
null
null
UTF-8
Python
false
false
7,686
py
import tensorflow as tf from captcha.image import ImageCaptcha import numpy as np import matplotlib.pyplot as plt from PIL import Image import random number=['0','1','2','3','4','5','6','7','8','9'] #alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'] ...
[ "Qi_zero@outlook.com" ]
Qi_zero@outlook.com
ea7414ccd524b613d35517979602e7d31e295b12
057782f7ac628468e5b21b90ad21781e91bb5857
/keras_ocr/__init__.py
238e1e43cbe5a56d803d0fa6bd2ee870a3db8552
[ "MIT" ]
permissive
shitoubiao/keras-ocr
b5b88189f2e248657280ea3000b734c3785a4646
4cbe4fa07bc19cbaf3a4e65106a0e7e8b58674f7
refs/heads/master
2020-11-29T19:55:50.654788
2019-12-24T03:29:02
2019-12-24T03:29:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
from . import detection, recognition, tools from ._version import get_versions __version__ = get_versions()['version'] del get_versions
[ "faustomorales@gmail.com" ]
faustomorales@gmail.com
875d11808705856a784ae3ebcbcd68faf06e2c35
f82e45a4fac9eb14ccd5688e4146a006e0dc5f6f
/euler3.py
3199d573eca8614ce53518ffb71eae3794a4546a
[]
no_license
jinalex/Project-Euler
e16dbc02487a12bb14b5bc7df17324c4eeed0c58
44bb4dc5616ccef52e6b7a8c56f4fdeaa7b65420
refs/heads/master
2020-05-19T14:16:27.146406
2015-05-07T01:26:28
2015-05-07T01:26:28
27,042,397
0
0
null
null
null
null
UTF-8
Python
false
false
485
py
import random import math def primeCheck (num,k): prime = False for i in range(k): a = random.randint(2, int (num**(0.5))) b = a**(num-1) if (b % num) == 1: prime = True else: prime = False return prime theThing = 600851475143 bigPrime = 0 for i in ...
[ "alex.b.jin@gmail.com" ]
alex.b.jin@gmail.com
0938f07833a08a453f022b3767ab79d424d1d1de
29d123b3372d6b18655eee80128fd01fc053dccd
/dbgate.cn.allupdate.py
a8c28829d893145f7fa6e7cfe96edfa91c7415a8
[]
no_license
zzlyzq/dbgate
28fd5f1807140745e5a52caf202b20254b60dd24
5ec17bef00ec5ffab996664fd3d54845c6cbf4c9
refs/heads/master
2020-09-17T14:50:53.650283
2016-09-09T09:56:39
2016-09-09T09:56:39
67,774,318
0
1
null
null
null
null
UTF-8
Python
false
false
2,048
py
#!/usr/bin/python # -*- coding:utf-8 -*- import urllib2 import os, sys, re import shutil import MySQLdb def haproxyConfigGenerate(): conn = MySQLdb.connect(host = 'db.bops.live',port=3306,user = 'ims_wr', passwd = 'xxx', db = 'ims') command = '''select db_ip,db_port,db_name,db_username,db_password,dbgate_port,requ...
[ "root@i-tr9h1f8i.(none)" ]
root@i-tr9h1f8i.(none)
d3071e66efa5f6c7ae9ff183d8dcc585789b2b35
9ffe22376b494ca27f51b3fe534ae1dbf3013f33
/apps/users/adminx.py
f9f268a8b5403c4351799917ab727c437028de67
[]
no_license
boyl/mxshop
42a01209dc65fd4753eaf9ce827f87e9d774ee74
66a1a85badd315703297f5f4adc864a4d40db760
refs/heads/master
2022-12-09T21:50:00.191631
2019-02-03T12:03:12
2019-02-03T12:03:12
166,653,438
0
0
null
2022-12-08T01:34:49
2019-01-20T11:27:48
JavaScript
UTF-8
Python
false
false
662
py
# coding=utf-8 import xadmin from xadmin import views from .models import VerifyCode class BaseSetting(object): # 添加主题功能 enable_themes = True use_bootswatch = True class GlobalSettings(object): # 全局配置,后台管理标题和页脚 site_title = "仙剑奇侠传" site_footer = "http://www.cnblogs.com/derek1184405959/" ...
[ "1228417956@qq.com" ]
1228417956@qq.com
9fdab581dc161102b34bdb24ddee40c25225b337
82bc1647b5db6b0cf6fe4a1a7c0d988a41d01d65
/动态规划/583.两个字符串的删除操作.py
ab5b3e0066f2286d4073a5c33664d1211b125c32
[]
no_license
QinHaoChen97/VS_C
8a6bc3f50be17109839bf4474a817244ff5be3e8
527c851298a351fe2e417ec014e8ed555bb0fab3
refs/heads/master
2023-05-25T15:00:09.594020
2023-05-03T15:27:56
2023-05-03T15:27:56
211,770,139
0
0
null
null
null
null
UTF-8
Python
false
false
1,287
py
# @before-stub-for-debug-begin from python3problem583 import * from typing import * # @before-stub-for-debug-end # # @lc app=leetcode.cn id=583 lang=python3 # # [583] 两个字符串的删除操作 # # @lc code=start class Solution: def minDistance(self, word1: str, word2: str) -> int: len1=len(word1) len2=len(...
[ "201630257288@mail.scut.edu.cn" ]
201630257288@mail.scut.edu.cn
a1c915823dfea8d60070e5700d3478369646fc9e
48207941ad9a15d8a482d4bd5b58e70670357612
/algorithm/Python/algorithm/swexport/d4/contact.py
f5f109c6b3c9d3b9fccc79e964f2a515273ac984
[]
no_license
chulsea/TIL
57d7b77217ebbd592771ee20a6f370c4c0893f23
b62e1edab9dd0fe475e6417c7af710702052660b
refs/heads/master
2020-04-11T21:13:33.140353
2019-04-18T03:16:35
2019-04-18T03:16:35
162,099,009
9
4
null
2019-01-08T00:15:20
2018-12-17T08:32:29
Jupyter Notebook
UTF-8
Python
false
false
962
py
import sys sys.stdin = open('inputs/contact_input.txt') def solution(adj_list, start): answer = start queue = [start] visited = [0 for _ in range(101)] visited[start] = 1 while queue: t = queue.pop(0) if visited[answer] < visited[t]: answer = t elif visited[ans...
[ "pkch9377@gmail.com" ]
pkch9377@gmail.com
df2658790a5cb574cb071b04555da9bfb0b9ffbb
e69940d0d8bbe1afeb06acce4332e6daf358dc3b
/open.py
eb68049060bb62e57e0fb68b74b03bb8a9731cfd
[]
no_license
fengjixuchui/loonix_container_escape
1cf988a7dd036dbe118d55e185b21e01bc244b59
fad4c7745d66a10da19047e8ab4f72fbba00e758
refs/heads/master
2023-06-07T16:46:46.806446
2021-06-17T01:52:36
2021-06-17T01:52:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
99
py
import os os.system("whoami") open("/proc/escape") # os.system("whoami") # os.system("/bin/bash")
[ "null333@cumallover.me" ]
null333@cumallover.me
23ada30d75c6cae41e886163fa61e4745621ac4e
43b5a19656139c6a1a47a3ad91297bf553a23949
/engine/object.py
fa4f7f4e22feb8518759859a6f39f69a0d041454
[]
no_license
sphoid/mm-demo
07d735028e4b44a5504e8312c078aaac49e267d8
bcac93204ed616d72a13ce987840f50afada1797
refs/heads/master
2023-01-03T15:56:03.830554
2020-11-02T00:33:54
2020-11-02T00:33:54
307,745,217
0
0
null
null
null
null
UTF-8
Python
false
false
1,013
py
from pygame.sprite import Rect from pygame.math import Vector2 class GameObject: def __init__(self, rect, name=None, attributes=dict()): self.name = name self.rect = rect self.flagged = False self.attributes = attributes def is_flagged(self): return self.flagged def flag(self): self.flagged = True d...
[ "brandon@digitaltrends.com" ]
brandon@digitaltrends.com
a644b62de928526c32cfb981e33d5612cd4b30b3
52a5df7c1cb83088d49a31b8a59c80e89394c8a3
/sources/app/books/migrations/0002_bookreview.py
04a599ce309d00ca0ce8944126e1e6748ff6877a
[]
no_license
lizardmon/Booken-Backend
02cab32979400ca109d2a42ab1e9d7e2b2fbec3a
32bcb0da29dd92a1d7711053e43a5225d4895fef
refs/heads/master
2022-12-12T19:21:09.116158
2020-02-12T10:18:13
2020-02-12T10:18:13
223,547,726
0
1
null
2022-12-08T03:19:17
2019-11-23T07:15:53
Python
UTF-8
Python
false
false
1,046
py
# Generated by Django 2.2.8 on 2020-01-25 07:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('books', '0001_initial'), ] operations = [ migrations.CreateModel( name='BookReview', ...
[ "sgy@tpay.co.kr" ]
sgy@tpay.co.kr
93f8f7671d059d757c8e9bd1718fbb7734d4ee2b
0114ef4f93611b91e73f22e262b79ed34e2f9af3
/dymos/transcriptions/explicit_shooting/ode_evaluation_group.py
6ecf7df7cf58cf5bae0659920144db8d5e222768
[ "Apache-2.0" ]
permissive
JustinSGray/dymos
c092796119b526e221fbf6a2d7fa156d673b3e15
620362b8429d03d23820517c9c61b5a2f0430410
refs/heads/master
2021-11-23T12:13:26.154594
2021-10-28T21:49:41
2021-10-28T21:49:41
162,737,356
0
1
Apache-2.0
2021-01-07T16:04:18
2018-12-21T16:48:08
Python
UTF-8
Python
false
false
17,390
py
import numpy as np import openmdao.api as om from .vandermonde_control_interp_comp import VandermondeControlInterpComp from .state_rate_collector_comp import StateRateCollectorComp from .tau_comp import TauComp from ...utils.introspection import get_targets, configure_controls_introspection,\ configure_time_intro...
[ "noreply@github.com" ]
noreply@github.com
9f294704ff416d1e9ad8eb07d8dc80ff0ef69ce1
9dc25eb9735b62aa1159dae3ae06a0e3eb32f6c3
/api/urls.py
255af256d868fb750cf0797d08104eacb5090b12
[]
no_license
Luweiwei1/restful
7900783aa74ded5d0746f9d663faa449566ee8bf
e2b32ba8268f1e4f922d070df882cc823fbe2561
refs/heads/master
2022-07-10T11:32:23.854187
2020-05-12T06:38:19
2020-05-12T06:38:19
263,515,600
0
0
null
null
null
null
UTF-8
Python
false
false
211
py
from django.urls import path from . import views urlpatterns = [ path('test', views.welcome), path('', views.test), path('books', views.get_all_books), path('authors', views.get_all_authors), ]
[ "roshan@gritfeat.com" ]
roshan@gritfeat.com
728a5efca9a3bcbbb05ee129f4290af38ef6d78d
35c9b0d0a0b51cad606630c920075096b1f77ebb
/venv/Scripts/easy_install-3.7-script.py
466658959f0bbfa0f68d1c16a51af43769f7b7bf
[]
no_license
raj9226/session11
1e1793585e4d2a72df65355273dd7919433ca81d
79f571103a6bf30558ebe1a77cae38ef00fafad8
refs/heads/master
2020-06-05T05:58:46.908576
2019-06-17T12:03:01
2019-06-17T12:03:01
192,338,529
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
#!"C:\Users\Rajeev yadav\PycharmProjects\session11\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-...
[ "imcoolrajeev9226@gmail.com" ]
imcoolrajeev9226@gmail.com
2e6d911d2c703d11696a5e0a8922485817b9af65
b0d06d89b28a575c961d02d117c7e5ded467e400
/MQTT_publisher_subscriber.py
0a39d2443dd438a588a06c8472ba6adc50c1b42b
[]
no_license
KnightFoxii/Internet-of-Things-
47e902f474816056a4e59083f85b8621e6094319
b11062b727ad86454c0cf9c355b8a693f3da57b3
refs/heads/master
2022-11-19T16:23:52.731728
2020-07-17T14:22:59
2020-07-17T14:22:59
280,442,464
0
0
null
null
null
null
UTF-8
Python
false
false
940
py
#!/usr/bin/env python3 import time import paho.mqtt.client as paho import Adafruit_DHT as dht broker="broker.hivemq.com" #broker="172.16.180.240" #broker="iot.eclipse.org" def on_connect(client2, userdata, flags, rc): print("Publisher Connected with result code "+str(rc)) time.sleep(2) #defin...
[ "noreply@github.com" ]
noreply@github.com
ed59cde894e4bfe61ad662c1a4e4cc2a9a1df1f0
ae66ad38a7b19c01f1099d671dd127716a5d4c34
/accounts/migrations/0042_remove_userprofile_specialty.py
7afae14e93dfea27e81f8ca0344fd5b72bd71263
[]
no_license
selbieh/django-freelacer-website
6fd1eb009e9b30738bfa59fa78f530144b273231
0971a7fc3dc7e63a1909bb6adf3a84d7d9083324
refs/heads/master
2022-11-22T19:07:48.470928
2019-11-24T12:24:26
2019-11-24T12:24:26
172,359,908
1
0
null
null
null
null
UTF-8
Python
false
false
337
py
# Generated by Django 2.0.4 on 2018-09-12 11:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accounts', '0041_auto_20180912_1305'), ] operations = [ migrations.RemoveField( model_name='userprofile', name='specialty', ...
[ "selbieh@gmail.com" ]
selbieh@gmail.com
d6679e7a3e5fab67fb72d4aac10e15205c544297
1a32e7722c1d690c52f39153064f26597211825f
/library/views.py
0b9786d1a40db8e0694b82c6f0df0d95d314d112
[]
no_license
joyonto51/user_login_system_in_django
7f07f9a5372b91a421129eb690bd2e2a73a6175e
06894cbe18de2f51dba07f5020a0a306b562868a
refs/heads/master
2021-09-26T09:22:33.964661
2021-02-22T14:31:31
2021-02-22T14:31:31
235,355,698
0
0
null
2021-09-22T18:31:51
2020-01-21T14:01:36
CSS
UTF-8
Python
false
false
1,509
py
from django.http import HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from rest_framework.response import Response from rest_framework.views import APIView from basic_auth.views import BaseView from library.forms import BookForm from library.models import Book, Author, Publis...
[ "joyonto51@gmail.com" ]
joyonto51@gmail.com
25db600de71c54d78389d3ed1d7b1b0ab183c00d
e17a610dda0a6ff39c2bce5642aa1b69ebe26fe1
/app/Pizza/Pizza/urls.py
5e6b6fd75530623045c4dac11cedc19661640b1a
[]
no_license
MelekhSV/WebSite
cd9b96167ca720b690e87211b13d769ac107ba5c
dc9eae37f6a810fd92c8d3462bde84f40635966a
refs/heads/master
2020-12-18T07:09:29.869597
2020-02-20T17:35:37
2020-02-20T17:35:37
235,320,401
0
0
null
null
null
null
UTF-8
Python
false
false
886
py
"""Pizza URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
[ "melex.1998@mail.ru" ]
melex.1998@mail.ru
0c21256062badde3c5b1216f8e1f319b71165db0
c7786c99f2900ff4ca2735f52e3ccbe356c420c3
/mpy-cross/mpy_cross/__main__.py
9d957bca025d642cd446a46c9f28cd368b80c065
[ "MIT", "GPL-1.0-or-later" ]
permissive
jbgagnon/micropython
6cecd0914e5a7e229e8b14a8e9129bc50b6e679a
cd3af4a27a100309990df5de3ea013c9c2e4f7d3
refs/heads/master
2022-09-10T03:37:13.714881
2022-09-06T13:16:09
2022-09-06T13:16:09
232,540,390
0
0
MIT
2020-01-08T10:41:56
2020-01-08T10:41:56
null
UTF-8
Python
false
false
1,477
py
#!/usr/bin/env python3 # # This file is part of the MicroPython project, http://micropython.org/ # # The MIT License (MIT) # # Copyright (c) 2022 Andrew Leech # Copyright (c) 2022 Jim Mussared # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentatio...
[ "jim.mussared@gmail.com" ]
jim.mussared@gmail.com
91afd317c7a23b308c9270d1099ed2098a8e8775
275586008cd4409183e7fe61bc15fa1fb2fa6f05
/sql/1.py
3c529990e5c47d32a9d8a16961e358b609d031da
[ "MIT" ]
permissive
Zuoxiaoxian/Excel_Oracle_conf_log
00e3eac991f3effa78e2cc1a439aadcf4cc2af1c
e4ded91c333af466542ba25dfd162f192347bc82
refs/heads/master
2020-03-19T02:49:30.456807
2018-06-01T04:46:37
2018-06-01T04:46:37
135,664,657
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
# -*- coding: utf-8 -*- # 作者 :xiaoxianzuo.zuo # QQ :1980179070 # 文件名 : 1.py # 新建时间 :2018/5/31/031 21:36 from excel_01 import excel_01 print("121212") zong_lists = excel_01.excel_01() for zong_list in zong_lists: for zong in zong_list: print("zong: ", zong)
[ "1980179070@qq.com" ]
1980179070@qq.com
77e54021441472e82756089a3436c146d8ad708c
2b6fccdf785b183c3294b068b08d92bfdcacb181
/Python/TimeDomainPropagator/Scripts/born_tests.py
a90e3b95af50074d19b560d6426f0be5dcb77d96
[]
no_license
rsarkar-github/Godzilla
63527b8eee1546c8fc66d653e3246f15f69a3f8c
edc7289a98f1dbaa9a8cdb862bcc7e41146aba3a
refs/heads/master
2022-11-14T04:50:20.359880
2022-11-10T20:27:36
2022-11-10T20:27:36
98,580,864
1
1
null
null
null
null
UTF-8
Python
false
false
2,190
py
from ..Propagator.BornScattering import* import numpy as np import matplotlib.pyplot as plt # Set parameters nz = 400 nx = 500 nt_ = 700 dx_ = 15 dz_ = 15 dt_ = 0.004 fmax_ = 10.0 pad_cells_x = 100 pad_cells_z = 100 # Create velocity vel2d_ = np.zeros((nz, nx), dtype=np.float32) + 2000 # Create vel pert vel_pert...
[ "rahulsarkar.iitkgp@gmail.com" ]
rahulsarkar.iitkgp@gmail.com
9aa92498b56d71c1d953076c5230ed4c68ff87d6
7370226f0f8b7498109ffb11c48827c44570c7c4
/golden_kamui/bin/pip3
f05b8f3f1fd8303995019ec3552466ce85497536
[]
no_license
patchgi/golden_kamui
2ea015a5cfa90a635670bfca12012fe649d3020c
8d1bbf565f245351a3feb9ab8d608337773295bf
refs/heads/master
2022-12-11T00:09:18.706052
2018-04-08T10:59:50
2018-04-08T10:59:50
128,630,680
0
0
null
2022-12-08T00:42:41
2018-04-08T10:43:38
Python
UTF-8
Python
false
false
251
#!/Users/patchgi/workspace/golden_kamui/golden_kamui/bin/python # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "pacchigi0910@gmail.com" ]
pacchigi0910@gmail.com
81412c0717d458f9d334e3be5d12234e39bf130b
aa780e180a952570d94dc71c7cfdbbda414d6cf5
/delivery/delivery/factorytest.py
9761abb4cfefec873e9fa7834777ab223e07e05d
[]
no_license
adel121/FSTDelivery
6e5389ae04cf3499755dd58ff630e0ff66302c4a
b1604b3a3f94c6a243308bf1fcf9399d2f1cf344
refs/heads/master
2023-03-15T17:17:59.389969
2021-03-07T23:31:33
2021-03-07T23:31:33
345,476,604
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
import factory from factory.django import DjangoModelFactory from models import Client, Delivery_In, Delivery_Out, Manager def dt(): Company= factory.Faker("name") Phone = factory.Faker("phone_number") Location = factory.Faker("location") print(Company) #if __name__ == "__main__": # print("run from internal")
[ "you@example.com" ]
you@example.com
0484d24c7a091a4e29afad5ae7a8f55d7981047d
55550afe1c18aacba9a481c690755cb7395d35f1
/Week_06/G20190343020041/LeetCode_127_0041.py
3b342e1c69f73f0eef1a6dce242075a2bde647a5
[]
no_license
algorithm005-class02/algorithm005-class02
eb5c0865fbb2c58362fddcd4fc8f8b9d02bb208c
1a1abf5aabdd23755769efaa6c33579bc5b0917b
refs/heads/master
2020-09-22T11:48:20.613692
2020-03-02T05:31:11
2020-03-02T05:31:11
225,177,649
45
153
null
2020-03-02T05:31:13
2019-12-01T14:47:06
Java
UTF-8
Python
false
false
3,353
py
# 给定两个单词(beginWord 和 endWord)和一个字典,找到从 beginWord 到 endWord 的最短转换序列的长度。转换需遵循如下规则: # # # 每次转换只能改变一个字母。 # 转换过程中的中间单词必须是字典中的单词。 # # # 说明: # # # 如果不存在这样的转换序列,返回 0。 # 所有单词具有相同的长度。 # 所有单词只由小写字母组成。 # 字典中不存在重复的单词。 # 你可以假设 beginWord 和 endWord 是非空的,且二者不相同。 # # # 示例 1: # # 输入: # beginWord = "hit", # endWord = "cog", # wordList = [...
[ "tianxuefeng@shuidihuzhu.com" ]
tianxuefeng@shuidihuzhu.com
1c9a32a153b468e182125b2d04b0bc8d300cd2c6
c4a83b3074f241084ee7d121fd0487eb3cedeb48
/app.py
7c0d1db7cfd634fbf8412fe80b1c66b52edf38bd
[]
no_license
mattsunner/file-namer
b785b12dd257e80e771ed50ea47e018a11fc9bcf
85538ebd5bd1e24757021ae10ef972694b98423a
refs/heads/master
2021-05-24T17:10:57.659765
2020-04-07T02:51:07
2020-04-07T02:51:07
253,671,049
0
0
null
null
null
null
UTF-8
Python
false
false
539
py
""" File Renamer Author: Matthew Sunner """ # imports import os # Renamer def main(): # Update this to change the base name of all files nameBase = "Presentation" fileType = ".pptx" # Update to reflect needed file type extension for count, filename in enumerate(os.listdir("xyz")): # Use...
[ "sunner.matt@gmail.com" ]
sunner.matt@gmail.com
8fb0b6346a7f498e6e6ae0ef868624747fedfbda
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_040/ch84_2020_04_13_01_39_55_701842.py
31f09490382824aef354d4726769738885db0668
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
233
py
def inverte_dicionario(x): dicionario = {} for nome,idade in x.items(): if idade not in dicionario: dicionario[idade] = [nome] else: dicionario[idade].append(nome) return dicionario
[ "you@example.com" ]
you@example.com
6c69cea4c687c96d1cc49a3d15c79b2c3a898666
e5ad51960e526e186867b098e7b8c044c5662df0
/model_seq2tree.py
878ac49b9df51e9ec99628049c8bfa3e11d7de26
[]
no_license
satos---jp/neural_decompiler
ce81ad1f9f6fb94aba3174a06c436c6af1917dfd
38dca83fe79b7718955f06c9cb18222ca74de61a
refs/heads/master
2021-07-18T00:27:15.408955
2020-05-26T12:56:12
2020-05-26T12:56:12
160,679,472
4
0
null
null
null
null
UTF-8
Python
false
false
6,259
py
import numpy as np import chainer import chainer.links as L import chainer.functions as F from chainer import training from chainer.training import extensions from chainer import serializers from chainer import cuda from cuda_setting import isgpu if isgpu: xp = cuda.cupy else: xp = np def sequence_embed(embed, xs...
[ "syogo8118@yahoo.co.jp" ]
syogo8118@yahoo.co.jp
e46fec238c3aaede65cf0647e8172acfe651ea69
bb3b858056dc21ebf42400ee70925406a01b9df5
/formEntry/migrations/0002_auto_20171105_2055.py
28fb4460a20e2feac349835d92d213a73b91861e
[]
no_license
justingschumacher/ProjectStatusDashboard
375d7f45f4cf71ac733dc55b918c29aed4687157
03f519bf35ae009a4f8ca31ad22441b112e3a9a2
refs/heads/master
2021-09-12T21:12:51.736850
2018-04-20T21:20:10
2018-04-20T21:20:10
109,703,718
0
0
null
null
null
null
UTF-8
Python
false
false
708
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-06 04:55 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('formEntry', '0001_initial'), ] operations = [ migrations.Crea...
[ "justin@justinschumacher.net" ]
justin@justinschumacher.net
5bab6d9efcb4ae37b92d4802abc1a955635a38f9
b9831e156d9e1f08abb88a632f45f9902183e0a8
/CanvassVirtual/Canvass/my_auth/urls.py
b28da0c7dcd572635940fa7e21d5c5a2cfe56c61
[]
no_license
Canvass-PEC/Canvass
37795127bf63153ea6da3ec87badfb069fa0dbfc
5bf91606441976a3047849f699b333bbc9ae3241
refs/heads/master
2020-03-31T18:59:39.420217
2018-10-15T10:40:24
2018-10-15T10:40:24
146,416,596
0
0
null
null
null
null
UTF-8
Python
false
false
905
py
"""Canvass URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "robinttt333@gmail.com" ]
robinttt333@gmail.com
1ffa3daf5190c3c64ab474fdc5d1a5428a9de59a
692fd907a868d16065eed2e46d6011910445ec56
/.svn/pristine/1f/1ffa3daf5190c3c64ab474fdc5d1a5428a9de59a.svn-base
efab79b1ba4afca4b3dfd8edfa2d21c291e6b6ec
[]
no_license
1185973378/zhou
793d8991d558f677762a5a787b4f8e907375ae09
2821b58d60276ffad2ac5d4e495967ec1623b402
refs/heads/master
2021-08-18T22:02:22.565320
2017-11-24T02:40:45
2017-11-24T02:40:45
111,510,617
0
0
null
null
null
null
UTF-8
Python
false
false
307
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from django.http import HttpResponse # Create your views here. def index(request): return HttpResponse("这是一个主页,可以放一个介绍我们公司的动态视频(例如qq安装时!)")
[ "1185973378@qq.com" ]
1185973378@qq.com
08203a2a2bde791173a982f2df5e7761707c80f6
2886af0b937f709c52896ffa1a465b4e5a1640e1
/venv/Lib/site-packages/pip/_vendor/urllib3/request.py
ad96c5b2993588ed9dc3b0388551f1bcccd94ca6
[]
no_license
TheBugKing/RapidNews
fb904f94bf7de279945430af5c409221db75386f
20c0a5fee793e1b15e107a4a1d94a39502608e93
refs/heads/master
2022-12-23T01:10:08.546449
2018-09-04T08:59:57
2018-09-04T08:59:57
147,233,471
0
1
null
2022-12-14T14:28:27
2018-09-03T17:13:32
Python
UTF-8
Python
false
false
5,995
py
from __future__ import absolute_import from .filepost import encode_multipart_formdata from .packages.six.moves.urllib.parse import urlencode __all__ = ['RequestMethods'] class RequestMethods(object): """ Convenience mixin for classes who implement a :meth:`urlopen` method, such as :class:`~urllib3.conn...
[ "antarikshkalita@gmail.com" ]
antarikshkalita@gmail.com
bc5881a05c6e909e084192f3ce40d88b9d5a29c3
6d8f60ea657cdc4d82ae6f9272e3614a9ac6e525
/learningStuff/tensorflow_learning.py
0838cb7503812a6c940f99828d665d58c5a14445
[]
no_license
bibongbong/pythonCookBook
4d6dc3904a1afa1250304b66ec99a98c1a80649f
c92c75f2d5256de0bb2ec879a7d6484a22cc6bcd
refs/heads/master
2021-06-10T01:37:26.178698
2021-06-01T13:52:18
2021-06-01T13:52:18
152,709,122
0
0
null
null
null
null
UTF-8
Python
false
false
4,097
py
import tensorflow as tf from tensorflow import keras import numpy as np import matplotlib.pyplot as plt print(tf.__version__) #从Tensorflow直接访问Fashion MNIST,导入和加载数据 fashion_mnist = keras.datasets.fashion_mnist (train_images, train_labels),(test_images, test_labels) = fashion_mnist.load_data() ''' Fash...
[ "bibongbong@gmail.com" ]
bibongbong@gmail.com
f12335bce20645d638681a0e894420cab9a0c193
a4c7f5cd089efbf92e5ba904d378e23da1dc8130
/test/wavy_surface.py
cb432bf0b8cb83734e4856584972f4103ce8b145
[]
no_license
socketteer/hallucinator
65ca6842d1343e6547e5612ffb8b63c2268f2944
87705406004fc88850b760e1322e6aedef927fa7
refs/heads/master
2023-06-26T17:56:41.239228
2021-07-30T02:59:07
2021-07-30T02:59:07
189,884,880
16
1
null
null
null
null
UTF-8
Python
false
false
2,237
py
import hallucinator as hl from typing import TypedDict, NamedTuple, Tuple import math def wavy_surface(amplitude: float = 1, frequency: float = 1, direction: float = 0, phase: float = 0, rotate_x: float = 0, rotate_y: float = 0, ...
[ "lreyn@umich.edu" ]
lreyn@umich.edu
319c864f1daa02655eec34ce43dfbabd4ef6e894
3a0a50bd242b10c271566d7e4c177f8d38ce2602
/tkinterify.py
36e4ff901ecb87a725d43e49ce2e2c2fa9d67c30
[ "MIT" ]
permissive
rbricheno/tkinterify
3ba7c84dd29936c9140a07c4b3881ee2612771a2
5f06e06c2bc8684c8a7a3b971e674aab9b79910d
refs/heads/master
2020-04-02T07:13:50.871646
2018-10-22T21:28:30
2018-10-22T21:28:30
154,186,863
4
1
null
null
null
null
UTF-8
Python
false
false
4,157
py
import tkinter import click import sys from io import StringIO def tkinterify(cli_group, app_name="Tkinterified App"): # Create and configure root root = tkinter.Tk() root.wm_title(app_name) tkinter.Grid.rowconfigure(root, 0, weight=1) tkinter.Grid.columnconfigure(root, 0, weight=1) # Create...
[ "noreply@github.com" ]
noreply@github.com