code stringlengths 3 6.57k |
|---|
self.assertFirstLineStartsWith(lines, 'usage: cinder') |
lines.index('Positional arguments:') |
lines.index('Optional arguments:') |
re.compile('^ {4}([a-z0-9\-\_]+) |
command_pattern.match(line) |
commands.append(match.group(1) |
set(commands) |
self.assertFalse(wanted_commands - commands) |
test_cinder_version(self) |
self.cinder('', flags='--version') |
test_cinder_debug_list(self) |
self.cinder('list', flags='--debug') |
test_cinder_retries_list(self) |
self.cinder('list', flags='--retries 3') |
test_cinder_region_list(self) |
self.cinder('list', flags='--os-region-name ' + region) |
Copyright (C) |
RNNSequence(BackReplacementPattern) |
RNNSequence (internal MO type for all recurrent layers) |
pattern(self) |
replace_pattern(self, graph: Graph, match: dict) |
RuleSet(object) |
swagger_types (dict) |
attribute_map (dict) |
__init__(self, name=None) |
name(self) |
name(self, name) |
to_dict(self) |
six.iteritems(self.swagger_types) |
getattr(self, attr) |
isinstance(value, list) |
x.to_dict() |
hasattr(x, "to_dict") |
hasattr(value, "to_dict") |
value.to_dict() |
isinstance(value, dict) |
to_dict() |
hasattr(item[1], "to_dict") |
value.items() |
to_str(self) |
pprint.pformat(self.to_dict() |
__repr__(self) |
self.to_str() |
__eq__(self, other) |
isinstance(other, RuleSet) |
__ne__(self, other) |
dydx(x,y) |
return ((x-y) |
rungeKutta(x0, y0, x, h) |
int(((x - x0) |
range(1, n + 1) |
dydx(x0, y) |
dydx(x0 + 0.5 * h, y + 0.5 * k1) |
dydx(x0 + 0.5 * h, y + 0.5 * k2) |
dydx(x0 + h, y + k3) |
print('The value of y at x is:', rungeKutta(x0, y, x, h) |
box_dim(A_c, h, prct_f) |
print('Contained Water: ', m_f, 'Liters') |
np.sqrt(A_c) |
box_dim(0.25, 0.15, 0.9) |
boxODE(x, t, m_f, m_a, A_s) |
print(t) |
print(boxODE(x=x0, t=0, m_f=m_f, m_a=m_a, A_s=A_s) |
vector (time window) |
np.linspace(0,54000,1000) |
odeint(boxODE,x0,t, args=(m_f, m_a, A_s) |
plt.plot((t/3600) |
plt.plot(t/3600,Tp, label='plate') |
plt.legend() |
plt.ylim(298, 340) |
plt.xlim(0,24) |
plt.show() |
np.arange(27000,28201,1) |
plt.figure(figsize=(5,5) |
plt.subplots() |
plt.plot((t/3600) |
plt.plot(xs/3600 + 5.8, ys, color='r') |
plt.plot(np.arange(27000,27601,1) |
plt.hlines(338, -100, 100, linestyle=':', color='k') |
plt.text(6.5, 339, 'Pasteurization Temperature') |
ax1.tick_params(direction='in', length=7,top=True, right=True, left=True) |
AutoMinorLocator(2) |
AutoMinorLocator(2) |
ax1.get_xaxis() |
set_minor_locator(minor_locator_x) |
ax1.get_yaxis() |
set_minor_locator(minor_locator_y) |
plt.xlim(6,21) |
plt.xlabel('Hour of Day') |
plt.ylim(298, 350) |
plt.ylabel('Water Temperature (K) |
plt.savefig('Figures/comb_img.png', dpi=300) |
upgrade() |
op.get_context() |
context.autocommit_block() |
context.bind.scalar(text("SELECT max(charid) |
range(1, max_charid + 1, BATCH_SIZE) |
text("UPDATE character SET hidden = settings ~ 'h', friends_only = settings ~ 'f' WHERE (charid BETWEEN :start AND :end) |
AND (hidden IS NULL OR friends_only IS NULL) |
text("UPDATE character SET hidden = settings ~ 'h', friends_only = settings ~ 'f' WHERE (hidden IS NULL OR friends_only IS NULL) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.