seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
Ok((a, b)) => (a, b),
};
let block_desc =
match PageTableEntry::new_lvl2_block_descriptor(output_addr, attribute_fields) {
Err(s) => return Err(s),
Ok(desc) => desc,
};
*entry = block_desc.into();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Pi[i].update(ep_states[i], ep_actions[i], ep_advantages)
ep_actions = [[] for _ in range(n_agent)]
ep_rewards = [[] for _ in range(n_agent)]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def append_value_in_PATH(v):
'''
把v添加到系统变量PATH中去
:param v:
:return:
'''
root_key = winreg.HKEY_CURRENT_USER
sub_key_name = r'Environment'
value_name = r'PATH'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
height=100, inner_radius=81, mid_radius=80, outer_radius=100
)
test_shape.solid
def incorrect_inner_radius2():
test_shape = paramak.CenterColumnShieldHyperbola(
height=100, inner_radius=50, mid_radius=80, outer_radius=49
)
test_shape.solid
self.assertRaises(ValueError, incorrect_inner_radius1)
self.assertRaises(ValueError, incorrect_inner_radius2)
def test_CenterColumnShieldHyperbola_faces(self):
"""Creates a center column shield using the CenterColumnShieldHyperbola
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def run(fname):
log=open(fname)
out=open(fname.replace('.txt','_lookup.pickle'),'w')
d={}
line='unopened'
while len(line)>0:
line = log.readline().strip()
if "] starting" in line or "] running" in line:
x=re.search("'(?P<name>.*)'",line)
testname=x.group('name')
elif 'command is' in line:
prefix,value=line.lstrip().split('command is')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertEqual(bv2pysmt(bx > by), fm.BVUGT(px, py))
self.assertEqual(bv2pysmt(bx >= by), fm.BVUGE(px, py))
self.assertEqual(bv2pysmt(bx << by), fm.BVLShl(px, py))
self.assertEqual(bv2pysmt(bx >> by), fm.BVLShr(px, py))
self.assertEqual(bv2pysmt(RotateLeft(bx, 1)), fm.BVRol(px, 1))
self.assertEqual(bv2pysmt(RotateRight(bx, 1)), fm.BVRor(px, 1))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for (int i = 0; i < N; i++) deg[i] = 0;
for (int i = 0; i < N; i++) for (int j = i+1; j < N; j++) if (cap[i][j] || cap[j][i])
adj[i][deg[i]++] = j, adj[j][deg[j]++] = i;
while(1) {
// an augmenting path
for (int i = 0; i < N; i++) prev[i] = -1;
queue<int> q;
q.push(S); prev[S] = -2;
while(!q.empty() && prev[T]==-1) {
int u = q.front(), v; q.pop();
for (int i = 0; i < deg[u]; i++) if (prev[v=adj[u][i]]==-1 && cap[u][v])
q.push(v), prev[v] = u;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert roc_auc_score(y, p[:, 1]) > 0.8, 'quality of classification is too low'
assert p.shape == (n_samples, 2)
assert numpy.allclose(p.sum(axis=1), 1), 'probabilities are not summed up to 1'
# checking conversions
lookup_size = n_bins ** n_features
lookup_indices = numpy.arange(lookup_size, dtype=int)
bins_indices = clf.convert_lookup_index_to_bins(lookup_indices=lookup_indices)
lookup_indices2 = clf.convert_bins_to_lookup_index(bins_indices=bins_indices)
assert numpy.allclose(lookup_indices, lookup_indices2), 'something wrong with conversions'
assert len(clf._lookup_table) == n_bins ** n_features, 'wrong size of lookup table'
# checking speed
X = pandas.concat([X] * 10)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include <QObject>
class OtherUnderscoreExtraPrivate : public QObject
{
Q_OBJECT
public:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ginst = Guild_Instance.by_id(msg.guild.id)
ginst.tc = msg.channel
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class MetricsService:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Materialize.toast("ERROR 500", "3000");
}
});
}
// });
chart.draw(data, options);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pip install shelltest
""")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
version=${BASH_REMATCH[1]}
echo $version
else
echo "0"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
declare var process: { env: { NODE_ENV: string; } }; | ise-uiuc/Magicoder-OSS-Instruct-75K |
for attr, value in validated_data.items():
if attr == 'password':
instance.set_password(value)
else:
setattr(instance, attr, value)
instance.save()
return instance
class TagSerializer(serializers.ModelSerializer):
class Meta:
model = model.Tag
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
public function getBaraja()
{
return $this->baraja;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static JsonResult ok(Object data) {
return new JsonResult(ResultEnum.SUCCESS).setData(data);
}
public static JsonResult ok(String msg) {
return new JsonResult(ResultEnum.SUCCESS).setMsg(msg).setData(null);
}
public static JsonResult fail(String defaultMessage, Integer code) {
return new JsonResult().setMsg(defaultMessage).setCode(code).setData(null);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <summary>
/// Highlights the text background and color the text.
/// </summary>
/// <param name="text"></param>
/// <param name="colorBackground"></param>
/// <param name="colorText"></param>
public static void HighlightText(string text, ConsoleColor colorBackground, ConsoleColor colorText)
{
Console.BackgroundColor = colorBackground;
Console.ForegroundColor = colorText;
Console.WriteLine(text);
Console.ResetColor();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from . import views
app_name = "oauth"
urlpatterns = [
path(r'oauth/authorize', views.authorize),
path(r'oauth/requireemail/<int:oauthid>.html', views.RequireEmailView.as_view(), name='require_email'),
path(r'oauth/emailconfirm/<int:id>/<sign>.html', views.emailconfirm, name='email_confirm'),
path(r'oauth/bindsuccess/<int:oauthid>.html', views.bindsuccess, name='bindsuccess'),
path(r'oauth/oauthlogin', views.oauthlogin, name='oauthlogin')
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
res.remove(2)
res.remove(3)
res.append(6)
while res.count(2)>=2:
res.remove(2)
res.remove(2)
res.append(4)
res.sort() | ise-uiuc/Magicoder-OSS-Instruct-75K |
if(blockedLast):
with open("/home/pi/blockedCalls.txt", "a") as blockedCalls:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import_external(
name = "org_apache_maven_resolver_maven_resolver_spi",
artifact = "org.apache.maven.resolver:maven-resolver-spi:1.4.0",
artifact_sha256 = "8a2985eb28135eae4c40db446081b1533c1813c251bb370756777697e0b7114e",
srcjar_sha256 = "89099a02006b6ce46096d89f021675bf000e96300bcdc0ff439a86d6e322c761",
deps = [
"@org_apache_maven_resolver_maven_resolver_api",
],
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
totalNumber += value;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
),
num = const $num,
options(att_syntax));
};
}
use syslib::syscall as SYS;
syscall!(fork, SYS::FORK, i32);
syscall!(exit, SYS::EXIT, i32);
syscall!(wait, SYS::WAIT, i32);
syscall!(pipe, SYS::PIPE, i32, fds: *mut i32);
syscall!(write, SYS::WRITE, isize, fd: i32, buf: *const u8, n: usize);
syscall!(read, SYS::READ, isize, fd: i32, buf: *mut u8, n: usize);
syscall!(close, SYS::CLOSE, i32, fd: i32);
syscall!(kill, SYS::KILL, i32, pid: i32);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class_name = "workflow_" + workflow_name
module_name = "workflow." + class_name
importlib.import_module(module_name)
full_path = "workflow." + class_name + "." + class_name
# Create the workflow object
f = eval(full_path)
logger = None
workflow_object = f(settings, logger, conn)
# Now register it
response = workflow_object.register()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertIsNotNone(tokenizer)
text = u"Munich and Berlin are nice cities"
subwords = tokenizer.map_text_to_token(text)
with tempfile.TemporaryDirectory() as tmpdirname:
filename = os.path.join(tmpdirname, u"tokenizer.bin")
with open(filename, "wb") as f:
pickle.dump(tokenizer, f)
with open(filename, "rb") as f:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __add__(self, other):
return UintN((self.number + other.number) % 2 ** self.n, self.n)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case GOVERNMENT_LAND_ACCESS = 8;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import git
r = git.Repo( sys.argv[1] )
num = 0
for info in r.blame( 'HEAD', sys.argv[2] ):
num += 1
commit = info[0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn bench_bose_xlarge(c: &mut Criterion) {
let bose = Bose {
prime_base: 251,
dimensions: 250,
};
c.bench_function("Bose (base 251, dims 250)", move |b| {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data = sdf.parse(valor);
// if (!valor.equals(sdf.format(data))) {
// data = null;
// }
} catch (ParseException ex) {
data = null;
}
return data;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct ObjectKey {
obj: Id<Object>,
selection: Vec<FieldSelection>,
}
impl ObjectKey {
pub fn new(obj: Id<Object>, selection: Vec<FieldSelection>) -> Self {
ObjectKey { obj, selection }
}
pub fn obj(&self) -> Id<Object> {
self.obj
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn main() {
let graphics_handles = AlvrGraphicsContext {
vk_get_device_proc_addr: ptr::null_mut(),
vk_instance: 0,
vk_physical_device: 0,
vk_device: 0,
vk_queue_family_index: 0,
vk_queue_index: 0,
};
if unsafe { !alvr_initialize(graphics_handles, None) } {
return;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ChronosTextEntry:
def decode(self: Reader):
self.readInt()
self.readString()
def encode(self: Writer):
self.writeInt(0)
self.writeString("BSDS is catly hacc")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import uuid
device = "hci0"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
plt.legend('Loss', loc='upper right')
plt.show() | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.list_ui['time_spectra']['text'].setText(base_file_name)
self.list_ui['time_spectra']['folder'].setText(folder_name)
self.parent.data_metadata['time_spectra']['folder'] = folder_name
elif self.data_type == 'normalized':
self.parent.data_metadata['time_spectra']['full_file_name'] = file_name
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for encoding in encodings:
try:
bytes = char.encode(encoding)
dump = ' '.join('%02X' % byte for byte in bytes)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export * as fs from './fs';
export * as testUtils from './test/testUtils';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
lock (comp._network._timeouts)
{
comp.Timeout = this;
comp._network._timeouts.Add(comp, this);
double ms = dur * 1000.0 + 500.0;
_dur = (int)ms; //convert to msecs
comp.Status = Component.States.LongWait;
_comp = comp;
}
}
public void Dispose()
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
export = LocalStore;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('machine_name', models.TextField(default='', help_text='Machine name of this setting, e.g., quantity.', max_length=50)),
('description', models.TextField(blank=True, help_text='Description of this setting.')),
('setting_group', models.CharField(choices=[('setting', 'Basic setting'), ('anomaly', 'Anomaly')], default='setting', help_text='What setting is this? Basic setting, or anomaly.', max_length=10)),
('setting_type', models.CharField(choices=[('daterange', 'Date range (start and end)'), ('boolean', 'Boolean (on or off)'), ('int', 'Integer'), ('choice', 'Choice from a list'), ('currency', 'Currency'), ('float', 'Float')], help_text='What type of setting is this?', max_length=20)),
('setting_params', models.TextField(blank=True, default='{}', help_text='Parameters for this setting. JSON.')),
],
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
report.add(
'ERROR',
el.sourceline,
"%s : List value [%d] out of range (%d not in %s"
% (prop_str, i, vv, prop_spec.range))
if 2 == len(prop_spec.split_pattern):
for ii, vv in enumerate(v):
if not prop_spec.range[0] <= vv <= prop_spec.range[1]:
report.add(
'ERROR',
el.sourceline,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_ = app.waitForExistence(timeout: 2)
let errorViewTitle = app.tables.staticTexts.firstMatch.label
XCTAssertEqual(errorViewTitle, "再読み込み")
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* ConvertGiropayErrors constructor.
*
* @param mixed $model
* @param ArrayObject $response
| ise-uiuc/Magicoder-OSS-Instruct-75K |
root.mainloop()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// specifies which entry in the currently loaded tree is to be processed.
// When processing keyed objects with PROOF, the object is already loaded
// and is available via the fObject pointer.
//
// This function should contain the \"body\" of the analysis. It can contain
// simple or elaborate selection criteria, run algorithms on the data
// of the event and typically fill histograms.
//
// The processing can be stopped by calling Abort().
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Establish _context = () => {
_subject = new SampleService();
};
private Cleanup _after = () =>
{
//Context Teardown
_subject.Dispose();
};
//Act
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private CompletionStage<Optional<Item>> fetchItem(long itemId) {
return CompletableFuture.completedFuture(Optional.of(new Item("foo", itemId)));
}
// (fake) async database query api
private CompletionStage<Done> saveOrder(final Order order) {
return CompletableFuture.completedFuture(Done.getInstance());
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import claripy
def main():
p = angr.Project('./issue', load_options={"auto_load_libs": False})
# By default, all symbolic write indices are concretized.
state = p.factory.entry_state(add_options={"SYMBOLIC_WRITE_ADDRESSES"})
u = claripy.BVS("u", 8)
state.memory.store(0x804a021, u)
sm = p.factory.simulation_manager(state)
def correct(state):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
transaction = null;
}
}
public async Task RollbackAsync(CancellationToken cancellationToken)
{
ThrowIfTransactionNull();
try
{
await transaction!.RollbackAsync(cancellationToken);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def predict(self, X):
y = []
for Xi in X:
y.append(self.predict_helper(Xi))
return y
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.actiontabs = QtWidgets.QTabWidget(self.action)
self.actiontabs.setGeometry(QtCore.QRect(20, 20, 571, 321))
self.actiontabs.setObjectName("actiontabs")
self.single = QtWidgets.QWidget()
self.single.setObjectName("single")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.company.checkboxes.*;
public class WindowsFactory implements GUIFactory {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
up = K.layers.UpSampling3D(name="upE", size=(2, 2, 2),
interpolation="bilinear")(encodeE)
else:
up = K.layers.Conv3DTranspose(name="transconvE", filters=self.fms*8,
**params_trans)(encodeE)
concatD = K.layers.concatenate(
[up, encodeD], axis=self.concat_axis, name="concatD")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.value.Connect(callback)
def Disconnect(self, callback: ValueCallback) -> None:
self.value.Disconnect(callback)
def Get(self) -> ModelNumber:
return self.value.Get()
@TransformInterface(RangeModel, InterfaceValue.Create, init=False)
@attr.s(auto_attribs=True, init=False)
class RangeInterface(Generic[ModelNumber, InterfaceNumber]):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from bs4 import BeautifulSoup
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.text(&length.to_string())
}
));
parent
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if top_count_keys:
for k in top_count_keys:
key = "top_events_%s" % k
if match[key]:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pkgs_to_install=(
nginx
mysql-server-5.5
mysql-client
php5-cli
php5-common
php5-fpm
php5-cgi
php5-curl
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export { default as queryValidator } from './queryValidator'
export { default as Request } from './Request'
export { default as Response } from './Response'
export { default as ServiceError } from './ServiceError'
export { JSONSchemaType } from 'ajv'
export * from './sentry'
export * from './constants'
export * from './types'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dev_df = csv2df(os.path.join(bq_path, "data/dev.csv"))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
operations = [
migrations.AlterField(
model_name='file',
name='owner',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='owned_files', to=settings.AUTH_USER_MODEL, verbose_name='owner'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in lst:
# print(i)
if _extension(i) == ".JPG":
itemlst.append(i)
return itemlst
def _extension(filepath):
lst = os.path.splitext(filepath)
# print(lst[-1])
return lst[-1] | ise-uiuc/Magicoder-OSS-Instruct-75K |
THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.logger.warning(getattr(e, "message", repr(e)))
else:
self.logger.warning(
"Number of transforms inconsistent with number of epochs"
)
def _np_to_native(self, data):
"""Convert numpy scalars and objects to native types."""
return getattr(data, "tolist", lambda: data)()
def _reindex(self, data, times, columns):
if len(data) != len(times):
if self.resample:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# - [4,7) is colored {1,11} (with a sum of 12) from the third and fourth segments.
# Note that returning a single segment [1,7) is incorrect because the mixed color sets are different.
#
#
# Constraints:
#
# 1 <= segments.length <= 2 * 10^4
# segments[i].length == 3
# 1 <= starti < endi <= 10^5
# 1 <= colori <= 10^9
# Each colori is distinct.
#
#
from typing import List
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Auth::routes();
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
Route::group(['middleware'=>['auth','admin']], function(){
Route::get('/dashboard', function () {
return view('admin.dashboard');
})
->name('dashboard');
Route::get('/role-register', [DashboardController::class,'register'])
->name('dashboard.register');
Route::get('/role-edit/{id}', [DashboardController::class,'edit'])
->name('dashboard.edit');
Route::put('/role-edit-action/{id}', [DashboardController::class,'update'])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
replicate_means.append(temp_mean) # Appends the time series of the
# mean OD value to a list storing the mean time series for each strain.
# I have 4 wells containing water so I calculate the mean OD separately for
# these. This can be skipped in general.
temp_df = df4.iloc[[60, 61, 62, 63]]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .flags import FlagsTrivia
from .pokemons import PokemonsTrivia
| ise-uiuc/Magicoder-OSS-Instruct-75K |
plot_returns_svg = plot_returns(bc.portfolio['daily'])
# handle update of market or robinhood data
| ise-uiuc/Magicoder-OSS-Instruct-75K |
npm run build
find ./build/ -iname *.map -delete
cargo build --release --target x86_64-pc-windows-gnu
cargo build --release | ise-uiuc/Magicoder-OSS-Instruct-75K |
rename "nvidia.com" "nvidia.opni.io" "${bases}"
bases=$(find ./crd/bases -name "*.yaml")
rm -rf "${config_dir}/crd/nvidia"
mkdir -p "${config_dir}"/crd/nvidia
mv ${bases} "${config_dir}/crd/nvidia"
popd &>/dev/null
rm -rf "${project_dir}/package/assets/gpu-operator"
mv assets "${project_dir}/package/assets/gpu-operator"
popd &>/dev/null
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Testing data set raster as a 2D NumPy array.
pred : array-like
Predicted values as a 2D NumPy array.
Returns
-------
y_true : array
1D array of true labels of shape (n_samples).
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'The streamer username (or "shoutcast" for SC legacy auth).'
)->addArgument(
'pass',
InputArgument::REQUIRED,
'The streamer password (or "<PASSWORD>:password" for SC legacy auth).'
);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
children: ReactChild | ReactChildren;
}
export const PageProfile: FC<IPageProfile> = ({ children }) => {
return (
<div className={`${styles.pageProfile}`}>
<div className={styles.container}>
<div className={styles.left}>
<Menu />
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
classifiers=[
"Programming Language :: Python :: 3",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from ctypes import cdll, c_char_p, c_void_p, cast
class Dota2Comm:
def __init__(self, name):
self.__dota2comm = cdll.LoadLibrary("dota2comm.dll")
self.name = name
self.__name = name.encode()
self.__receiveMessage = self.__dota2comm.receiveMessage
self.__receiveMessage.argtypes = [c_char_p]
self.__receiveMessage.restype = c_void_p
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/usr/bin/env bash
NAME=$1
SOURCE_FILE="sources/sources.json"
REAL_SHA256=$(nix-prefetch-git --rev "$(jq ".[\"$NAME\"].rev" $SOURCE_FILE)" --url "https://github.com/$(jq ".[\"$NAME\"].owner" $SOURCE_FILE)/$(jq ".[\"$NAME\"].repo" $SOURCE_FILE).git" --fetch-submodules | jq '.sha256')
echo "$(jq ".[\"$NAME\"].sha256 = $REAL_SHA256" $SOURCE_FILE)" > $SOURCE_FILE
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with_route = getattr(django.conf.settings, 'SQLCOMMENTER_WITH_ROUTE', True)
with_app_name = getattr(django.conf.settings, 'SQLCOMMENTER_WITH_APP_NAME', False)
with_opencensus = getattr(django.conf.settings, 'SQLCOMMENTER_WITH_OPENCENSUS', False)
with_opentelemetry = getattr(django.conf.settings, 'SQLCOMMENTER_WITH_OPENTELEMETRY', False)
with_db_driver = getattr(django.conf.settings, 'SQLCOMMENTER_WITH_DB_DRIVER', False)
if with_opencensus and with_opentelemetry:
logger.warning(
"SQLCOMMENTER_WITH_OPENCENSUS and SQLCOMMENTER_WITH_OPENTELEMETRY were enabled. "
"Only use one to avoid unexpected behavior"
)
db_driver = context['connection'].settings_dict.get('ENGINE', '')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sh ./shell_scripts/init-surge.sh $1 | ise-uiuc/Magicoder-OSS-Instruct-75K |
import android.os.Bundle;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Parameters
----------
src_image : numpy 2d array
Source image. Data type must be UINT8.
src_profile : dict
Rasterio profile of the source image.
dst_dir : str
Directory where the textures will be saved.
kind : str, optional
'simple', 'advanced', or 'higher' (default='simple').
x_radius : int, optional
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from pycfmodel.model.resources.properties.policy_document import PolicyDocument
from pycfmodel.model.resources.properties.property import Property
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@requests_mock.mock()
def test_send_reverse_client_request(self, mock):
content = 'client js content'
builder = EnvironBuilder(headers=self.headers, path='/fake_app_id/init.js')
env = builder.get_environ()
request = Request(env)
context = PxContext(request, self.config)
headers = {'host': px_constants.CLIENT_HOST,
px_constants.FIRST_PARTY_HEADER: '1',
px_constants.ENFORCER_TRUE_IP_HEADER: context.ip,
px_constants.FIRST_PARTY_FORWARDED_FOR: '127.0.0.1'}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return true;
default:
return false;
}
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('commercial_paper', models.FloatField(blank=True, default=0, null=True)),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
this.validating = validating;
this.validationComplete = validationComplete;
}
/// <inheritdoc/>
public override bool OnValidating(String path, T asset) => validating?.Invoke(path, asset) ?? true;
/// <inheritdoc/>
public override void OnValidationComplete(String path, T asset, Boolean validated) => validationComplete?.Invoke(path, asset, validated);
// State values.
private AssetWatcherValidatingHandler<T> validating;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
model_name='article',
name='pub_time',
field=models.DateTimeField(null=True),
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from sklearn.model_selection import KFold
from sklearn.mixture import GaussianMixture
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tar -C $m_dir -zcf $d_dir.tar.gz `basename $d_dir`
fi
else
echo "Creating archive $d_dir.tar.gz"
tar -C $m_dir -zcf $d_dir.tar.gz `basename $d_dir`
fi
done
done
echo "Finished creating tar.gz files for MAXDOAS" | ise-uiuc/Magicoder-OSS-Instruct-75K |
print(len(res))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if ! grep "PATH=\$HOME/local/bin:\$PATH" ~/.bash_profile ; then
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bash_profile
fi | ise-uiuc/Magicoder-OSS-Instruct-75K |
if name not in self.schema._declared_fields:
raise InvalidFilters("{} has no attribute {}".format(self.schema.__name__, name))
return name
@property
def op(self):
"""Return the operator of the node
| ise-uiuc/Magicoder-OSS-Instruct-75K |
body {
margin: 0;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
export default functionalGroupsLib
| ise-uiuc/Magicoder-OSS-Instruct-75K |
account_type='security',
capital_base=10000000,
commission = Commission(buycost=0.00, sellcost=0.00, unit='perValue'),
slippage = Slippage(value=0.00, unit='perValue')
)
}
def initialize(context):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Glide.with(activity).using(new FirebaseImageLoader()).load(spaceRef).into(holder.ivTeam1);
}
});
final StorageReference spaceRef2 = imagesRef.child(String.valueOf(team2.getIdTeam())+".png");
spaceRef.getDownloadUrl().addOnSuccessListener(activity, new OnSuccessListener<Uri>() {
@Override
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>jzmq/minos<filename>opentsdb/collector.sh
#!/bin/bash
$ENV_PYTHON metrics_collector.py > collector.log 2>&1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.