code
stringlengths
3
6.57k
log.debug(f"bucket_prefix_match()
bucket_map.split('/')
object_name.startswith("/".join(bucket_map.split('/')
log.debug(f"Prefixed Bucket Map matched: s3://{bucket_check}/{object_name} => {bucket_map}")
get_sorted_bucket_list(b_map, bucket_group)
log.warning(f"Bucket map does not contain bucket group '{bucket_group}'")
isinstance(b_map[bucket_group], dict)
sorted(list(b_map[bucket_group].keys()
e.count("/")
isinstance(b_map[bucket_group], list)
sorted(list(b_map[bucket_group])
e.count("/")
check_private_bucket(bucket, b_map, object_name="")
log.debug('check_private_buckets()
format(bucket)
get_sorted_bucket_list(b_map, 'PRIVATE_BUCKETS')
log.debug(f"Sorted PRIVATE buckets are {sorted_buckets}")
bucket_prefix_match(bucket, prepend_bucketname(priv_bucket)
check_public_bucket(bucket, b_map, object_name="")
get_sorted_bucket_list(b_map, 'PUBLIC_BUCKETS')
log.debug(f"Sorted PUBLIC buckets are {sorted_buckets}")
bucket_prefix_match(bucket, prepend_bucketname(pub_bucket)
log.debug("found a public, we'll take it")
log.debug('we did not find a public bucket for {}'.format(bucket)
main.route('/')
index()
get_sources('business')
get_sources('sports')
get_sources('technology')
get_sources('entertainment')
render_template('index.html',title = title, sources = sources,sports_sources = sports_sources,technology_sources = technology_sources,entertainment_sources = entertainment_sources)
main.route('/sources/<id>')
articles(id)
get_articles(id)
render_template('articles.html',title= title,articles = articles)
WrapperSchema(BaseLayerSchema)
fields.Nested('LayerSchema')
schema_config()
WrapperConfig(BaseLayerConfig)
__init__(self, layer, **kwargs)
super(WrapperConfig, self)
__init__(**kwargs)
TimeDistributedSchema(WrapperSchema)
schema_config()
TimeDistributedConfig(WrapperConfig)
TimeDistributed(Dense(8)
TimeDistributed(Dense(32)
TimeDistributed(Conv2D(64, (3, 3)
BidirectionalSchema(WrapperSchema)
schema_config()
BidirectionalConfig(WrapperConfig)
Bidirectional(plx.layers.LSTM(units=128, dropout=0.2, recurrent_dropout=0.2)
pytest_addoption(parser)
parser.addoption('--browser_name', action='store', default="chrome", help="Choose browser: chrome or firefox")
app(request)
request.config.getoption("--browser_name")
request.config.getoption("--base_url")
Application(browser_name=browser_name, base_url=base_url)
print("\nquit browser..")
fixture.destroy()
get_optim_type_name(self, id)
optimType.types.get(id)
get_solver_method_name(self, id)
solverMethod.methods.get(id)
get_status_str(id)
DataRoomBase(BaseModel)
DataRoomCreateRequest(DataRoomBase)
DataRoomCreate(DataRoomCreateRequest)
DataRoomRole(str, Enum)
DataRoomUserRoleRequest(BaseModel)
DataRoomTeamRoleRequest(BaseModel)
DataRoomUpdate(DataRoomBase)
DataRoomInDBBase(DataRoomBase)
response(flow)
pymongo.MongoClient(MONGO_URL)
flow.request.url.startswith(url1)
print(flow.request.url)
json.loads(flow.response.text)
collection.insert(content)
flow.request.url.startswith(url2)
print(flow.request.url)
json.loads(flow.response.text)
collection.insert(content)
TradingAlorythm(command, market, amount, coinname, step, stoploss, key, secret)
Bittrex(key, secret)
timedelta(seconds=20)
datetime.now()
print("buying {0} of {1} coins".format(amount, coinname)
TestTrading.buy_limit(market, amount, coinprice)
datetime.now()
print("Connecting to Bittrex")
print("Timer ticked")
print("Updating stock exchange...")
TestTrading.get_ticker(market)
TestTrading.get_balance(coinname)
TestTrading.get_open_orders(market)
json.dumps(t)
print(t)
print("Balance is {} ".format(balance['result']['Available'])
print(orders)