seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def rob(self, root: TreeNode) -> int:
def helper(node):
#return [rob,not_rob]
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
VRTX 184 190396.40625 3856569.46875 -3748.21680
VRTX 185 189998.03125 3857391.79688 -3852.51367
VRTX 186 190265.68750 3857397.62500 -2728.66333
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rm "$NDK_FILENAME";
# Move ndk into the proper place.
rm -rf ${NDK_HOME}
mv android-ndk-r10e ${NDK_HOME}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
r_given_value = robjects.FloatVector(given_value)
args = (r_mean, r_cov, r_dependent_ind, r_given_ind, r_given_value)
r_cond_mean, r_cond_cov = r_package_cond_mvnorm.condMVN(*args)
r_cond_mean, r_cond_cov = np.array(r_cond_mean), np.array(r_cond_cov)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
def sanitize(self, target):
target['tags']['type'] = target['tags']['type'].replace('pgpg', 'paging_')
target['tags']['type'] = target['tags']['type'].replace('pswp', 'swap_')
# vim: ts=4 et sw=4:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
server = smtplib.SMTP_SSL(mailserver, 465) # 连接邮件服务器
server.login(username, password) # 通过用户名和密码登录邮件服务器
failed = server.sendmail(From, Tos, msg.as_string()) # 发送邮件
server.quit() # 退出会话
if failed:
print('Falied recipients:', failed) # 如果出现故障,打印故障原因!
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def name_outfile(self, antecedents, user_options):
from Betsy import module_utils
original_file = module_utils.get_inputid(antecedents.identifier)
filename = 'control_illumina_' + original_file + '.gct'
return filename
| ise-uiuc/Magicoder-OSS-Instruct-75K |
constructor(domainEventPublisher: DomainEventPublisher);
forCommand(): CommandType<SourceSetLoadingCommand>;
handle(aggregate: StructureAggregate, command: SourceSetLoadingCommand): void;
publish(aggregate: StructureAggregate, command: SourceSetLoadingCommand): void;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
print("Cino")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
});
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
return view("dashboard.users.index",[
"users" => User::all()
]);
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
return view("dashboard.users.create",[
"user... | ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
<!-- end banner -->
<div id="our_team" class="team-main pad-top-100 pad-bottom-100 parallax">
<div class="container">
<div class="row">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "Installing to ~/.m2"
mvn clean install
else
echo "unrecognized parameter: $1"
fi
else
echo "Installing to $LOCALREPO"
mvn clean install -Dmaven.repo.local=$LOCALREPO
fi | ise-uiuc/Magicoder-OSS-Instruct-75K |
"REAC1": ("forward", 1/10),
"REAC2": ("", 10)
}
</pre>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return isAccepted;
}
void setRate(int rate) {
if (rate < 1)
System.out.println("You can't place rating lower than 1");
else if (rate > 5)
System.out.println("You can't place rating higher than 5!");
else
this.rate = rate;
}
int getRate() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mv "$REL_DIR/vm.args.bak" "$REL_DIR/vm.args"
# Run any post-upgrade hooks
run_hooks post_upgrade
| ise-uiuc/Magicoder-OSS-Instruct-75K |
time.sleep(1)
botao_adicionar_horario = wd.find_element_by_xpath(
'/html/body/div[8]/div[5]/div/div[4]/div/div/div[2]/button')
botao_adicionar_horario.click()
time.sleep(3)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public colors?: boolean;
public networkName: string;
public timeout: number;
public verbose: boolean;
public types: any;
constructor(
filesPath: string,
mocha?: MochaOptions,
network?: string,
networkName?: string,
bail = false,
timeout = 0,
colors = false,
verbose = false
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == '__main__':
nm.say_hi() | ise-uiuc/Magicoder-OSS-Instruct-75K |
defaultPhoto: {};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
RegistrationRequestEntity req = newTemplateRequest(clock, realm, null, 0);
RegistrationRequestDTO dto = cleanupDto(requestMapper.entityToDto(req));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int VLCPlayer::pause()
{
if(mp==nullptr) return -1;
libvlc_media_player_set_pause(mp,1);
return 0;
}
int VLCPlayer::resume()
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def run_inference(trt_file, num=1):
inputs = torch.rand(1, 3, 608, 1088).cuda()
## Run inference with TensorRT
# trt_model = TRTWrapper(trt_file, ['input.1'], ['922', '925', '928', '931'])
trt_model = TRTWrapper(trt_file, ['input.1'], ['hm', 'reg', 'wh', 'id_feature'])
sum = []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (filter != null)
{
filterCount++;
yield return filter;
}
}
}
logger.Log(LogLevel.INFO, $"Found {filterCount} blob filters in the gitigno... | ise-uiuc/Magicoder-OSS-Instruct-75K |
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Copyright holder (SMART Technologies ULC) nor
the names of its contributors (<NAME>) may be used to endorse or
promote products derived from this softwar... | ise-uiuc/Magicoder-OSS-Instruct-75K |
tokens = line.split(',')
depths.append(float(tokens[0]))
mlmc.append(float(tokens[1]))
correlation, rmse, p_val = get_stats(depths, mlmc)
print(f"Pearson's Correlation coefficient: {correlation}, RMSE: {rmse}, p value: {p_val}")
if __name__ == "__main__":
main() | ise-uiuc/Magicoder-OSS-Instruct-75K |
partitions: A list of available partitions (during startup)
"""
self.partitions = partitions
def partition(self, key, partitions=None):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public struct SetRecoveryEmailAddress: Codable, Equatable {
/// New recovery email address
public let newRecoveryEmailAddress: String?
/// Password of the current user
public let password: String?
public init(
newRecoveryEmailAddress: String?,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(f"{liters:.3f}") | ise-uiuc/Magicoder-OSS-Instruct-75K |
# generated_role = service_name + "_" + func.__name__
generated_role = "s"
authorized_roles = []
if other_roles:
authorized_roles = other_roles.split("|")
authorized_roles.append(generated_role)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return False
return True
@app.route('/process', methods=['POST'])
def form_page():
if not checkForValuelength(request.form):
flash("All fileds are required and password must be 8 or more characater")
return redirect('/')
elif not validNamefileds(request.form):
flash("Name a... | ise-uiuc/Magicoder-OSS-Instruct-75K |
nullable=False, primary_key=True)
def __repr__(self):
return "<Name: {}>".format(self.first_name)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
internal override void WrapInContainer(AggregationContainer c) => c.ScriptedMetric = this;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if result[i] & (1 << j):
string = "#" + string
else:
string = " " + string
ret.append(string)
return ret
if __name__ == "__main__":
| ise-uiuc/Magicoder-OSS-Instruct-75K |
log.success("ok")
def check_auth_token(api):
"""Check the authorization token for the core API."""
log.info("Checking: authorization token for the core API")
with log.indent():
if api.check_auth_token_validity():
log.success("ok")
else:
log.error("Fatal:... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import javax.persistence.Id;
import lombok.Data;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
vmax = max(vmax, right + val);
return right + val;
}
else
{
vmax = max(vmax, val);
return val;
}
}
}; | ise-uiuc/Magicoder-OSS-Instruct-75K |
capture.get_temperature_c()
);
}
Ok(())
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
WTFLogAlways("%s\n", source().utf8().data());
RELEASE_ASSERT_NOT_REACHED();
}
}
}
} // namespace Inspector
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
return Ok(ret);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// let time_taken: ReadTime = estimated_read_time::text(&content, &read_tech_doc);
///
/// let word_count: u64 = time_taken.word_count();
/// let seconds: u64 = time_taken.seconds();
/// ```
pub fn text(content: &str, options: &Options) -> ReadTime
{
let read_time = read_time::calculate_read_time(content, options);
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace App\Http\Controllers;
use App\Http\Requests\RegisterRequest;
use App\Http\Response\HttpResponse;
use App\Models\User;
use App\Utils\Constants;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Log;
class RegistrationController extends Controller
| ise-uiuc/Magicoder-OSS-Instruct-75K |
request = mock.Mock()
request.META = {'HTTP_X_SENTRY_AUTH': 'Sentry sentry_key=value, biz=baz'}
request.GET = {}
result = helper.auth_from_request(request)
assert result.public_key == 'value'
def test_valid_missing_space():
helper = ClientAuthHelper()
request = mock.Mock()
request.META... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.add_routes([aiohttp.web.post(path, callback, **options)])
def add_view(self, path, callback, **options):
if not 'name' in options:
options['name'] = callback.__name__
self.add_routes([aiohttp.web.view(path, callback, **options)])
def add_subapp(self, path, app):
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def f(a, b):
print(f"{'a':<10}{'b':<10}{'b-a':<10}{'m':<10}{'m²':<15}{'Test m² > a'}")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
conf_runner.run_configurations(dump_models=True, multiprocessing=args.parallel, n_workers=args.n_workers)
return args.load | ise-uiuc/Magicoder-OSS-Instruct-75K |
return Objects.equals(operand1, au.operand1) &&
Objects.equals(operand2, au.operand2);
}
@Override
public int hashCode() {
return Objects.hash(operand1, operand2);
}
@Override
public String toString() {
return "A(" + operand1 + " U " + operand2 + ")";
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
length = self.ctrl.numberOfImages()
self.sliderLabel.setText('%i / %i' % (f+1, length))
if length > 0:
self.frameSlider.setMinimum(0)
self.frameSlider.setMaximum(length-1)
def processImage(self):
self.ctrl.processImage()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"ConfigurationProvider",
"ConnectivityService",
"FirmwareInstaller",
"FirmwareURLDownloadHandler",
"InboundMessageDeserializer",
"OutboundMessageFactory",
"OutboundMessageQueue",
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# "fan_out": # of nodes in layer "l+1"
def debug_initialize_weight(fan_in, fan_out):
W = np.zeros((fan_out, fan_in+1))
W = np.reshape(range(len(W.ravel(order="F"))), W.shape)/10
| ise-uiuc/Magicoder-OSS-Instruct-75K |
time.sleep(1)
except KeyboardInterrupt:
print("Ctrl C pressed, schedule stopped")
# cancel schedule
schedule.cancel_job(alarm)
################################################################
# led usage
print('\n\n\n')
print("=== led demo ===")
SLEEP_TIME = 1
# initialize clock display
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
[Display(Name = nameof(Default))]
Default,
[Display(Name = nameof(DecisionDate))]
DecisionDate,
[Display(Name = nameof(DiagnoseCode))]
DiagnoseCode,
[Display(Name = nameof(ProtocolDate))]
ProtocolDate
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @return void
*/
public function up()
{
Schema::create($this->table_db, function (Blueprint $table) {
$table->id();
$table->string('phone');
$table->string('email');
});
MainModel::insert([
[
'phone' => 'phone_1'... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public void resetCount(String address, String name) {
if (isEnabled) {
TimedCounter<String> counter = ipLoginFailureCounts.get(address);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Component that implements Resilient function 'fn_aws_iam_deactivate_mfa_devices'"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Y = [3, 4, 4, 3]
Z = [1, 2, 1, 1]
ax.plot_trisurf(X, Y, Z)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Copyright © 2018 Witek Bobrowski. All rights reserved.
//
import Foundation
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
public interface MyPredicate<In> {
boolean test(In element);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@include('components.header')
@section('container')
<div class="container">
<div class="row">
<x-formedit :post='$post' :user='$user'/>
{{-- <div class="col-lg-auto">
<x-recent>
</div> --}}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
parameters = parameters ?? throw new ArgumentNullException(nameof(parameters));
data = data ?? throw new ArgumentNullException(nameof(data));
responseBuilder = responseBuilder ?? throw new ArgumentNullException(nameof(responseBuilder));
if (!parameters.Response... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>alemesa1991/School-Projects
git checkout $*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from ..typing import SpectrumType
def add_adduct(spectrum_in: SpectrumType) -> SpectrumType:
"""Add adduct to metadata (if not present yet).
Method to interpret the given compound name to find the adduct.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
2. Redistributions in binary form must reproduce the above copyright
| ise-uiuc/Magicoder-OSS-Instruct-75K |
python -m pip install --upgrade pip
pip install pipenv
pipenv install
pipenv run python run_tests.py --admin-pass $admin_<PASSWORD> --analyst-pass $analyst_pass --slack-webhook-url "$slack_webhook_url" -e $env --ci --file $file --processes 4 | ise-uiuc/Magicoder-OSS-Instruct-75K |
def _resolve_node(self, name: str):
key = next((k for k in self._definition["nodes"].keys() if name == k.split(".")[-1]), None)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Rewiew(models.Model):
user = models.ForeignKey(Helper, on_delete=models.SET_NULL, null=True)
star = models.IntegerField()
comment = models.TextField(max_length=1500, default='.')
def __str__(self):
return self.user.user.username
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { PaymentFlow, PaymentFlowHold } from '@vality/swag-anapi-v2';
export function isPaymentFlowHold(flow: PaymentFlow): flow is PaymentFlowHold {
return flow.type === 'PaymentFlowHold';
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
$CI =& get_instance();
$system_lang = $CI->common_model->get_lang();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 27. Remove Element
# Python 3
# https://leetcode.com/problems/remove-element
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ByValueController(Controller):
def get(self):
param_key = 'csrf'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<p>She added: 'He has another propensity: around evening time he gets a kick out of the chance to hop on me and rest. At the point when he was a little cat, it didn't cause me any bother.</p>
<p>'However, presently he has become enormous and weighty, and, obviously, it is hard to rest like that.</p>
<p>'Kefir is pres... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
find.blocking(self)
}
/// Convenience method to find a document in a collection using a given filter.
///
/// This function is mainly intended for use cases where the filter is known to return unique
/// hits. If you need something more complicated use `find` or the `FindBuilder`.... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<input type="search" placeholder="Search"
class="w-full px-2 py-3 pl-10 leading-normal text-white transition bg-gray-900 border border-transparent rounded appearance-none focus:outline-none focus:border-gray-400">
<div class="absolute search-icon" style="top: 1rem; left: .8rem;">
<svg class="w-4... | ise-uiuc/Magicoder-OSS-Instruct-75K |
print(python_script)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case wiki = "wiki"
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* You may obtain a copy of the License at:<br>
* <br>
* http://www.apache.org/licenses/LICENSE-2.0
* </p>
* <p>
* 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... | ise-uiuc/Magicoder-OSS-Instruct-75K |
data_pd['ts'] = data_pd['timestamp'].apply(datetime.fromtimestamp)
data_pd = data_pd.set_index(pd.DatetimeIndex(data_pd['ts']))
data_pd.sort_index(inplace=True)
last_month = data_pd[-1:].index.month+1 if data_pd[-1:].index.month != 12 else 1
self.mean = data_pd[data_pd.index.month==last_mo... | ise-uiuc/Magicoder-OSS-Instruct-75K |
_filter.OnNext(p => p.Age > 20);
_results.Data.Count.Should().Be(80, "Should be 80 people in the cache");
_results.Messages.Count.Should().Be(3, "Should be 3 update messages");
_results.Messages[2].Removes.Should().Be(10, "Should be 10 removes in the third message");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
expect(self.sut.state.counter).to(equal(expected))
}
}
func test_whenDecrementAction_thenExpectCounterToDecrease() {
expect(self.sut.state.counter).to(equal(0))
(1...5).forEach { expected in
sut.dispatch(CountAction.decrement)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
A less than operator (``<``).
"""
from regression_tests.parsers.c_parser.exprs.binary_ops.binary_op_expr import BinaryOpExpr
class LtOpExpr(BinaryOpExpr):
"""A less than operator (``<``)."""
def is_lt_op(self):
"""Returns ``True``."""
return True
def __str__(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
})
}
export default function Index() {
const { datoQuerySubscription } = useLoaderData()
const {
data: { promotions, morePosts },
} = useQuerySubscription(datoQuerySubscription)
return (
<section className='bx-page-row hidden md:flex'>
<div className='bx-page max-w-112'>
<Promotions {... | ise-uiuc/Magicoder-OSS-Instruct-75K |
rm -rf *
git checkout master . | ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
##########################################################
# GTSFM dependencies (including GTSAM) previously installed using conda
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if position in flipped_tiles:
# Flip back
flipped_tiles.remove(position)
else:
# Flip
flipped_tiles.append(position)
return flipped_tiles
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if abs(item) >= abs(a_max):
i_max, a_max = i, item
A.insert(i_max, A[0])
A.pop(i_max+1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.myStringInBase = myStringInBase
}
public private(set) var myStringInBaseSetCallCount = 0
public var myStringInBase: String = "" { didSet { myStringInBaseSetCallCount += 1 } }
}
public class BaseProtocolBMock: BaseProtocolB {
public init() { }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
op|'('
op|'*'
name|'args'
op|','
op|'**'
name|'kwargs'
op|')'
newline|'\n'
nl|'\n'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#c = data_service.updateFinanceBasic('000418')
c = data_service.updateTradeBasic('600000','sh')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const std::vector<Real>& w_sub = subvector(w, head, tail);
t.push_back(r_sum(y_sub, w_sub));
}
const std::vector<Real>& y_sub = subvector(y, m_k, n);
const std::vector<Real>& w_sub = subvector(w, m_k, n);
t.push_back(r_sum(y_sub, w_sub));
return std::move(t);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/** @return The Low */
@JsonProperty("Low")
public Double getLow() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import cv2
import os
import sys
import re
import xml.etree.ElementTree as ET
from PIL import Image
imgreadpath = 'E:\\Users\\yolov5-develop\\VOCData_EL\\JPEGImages\\' # 原始jpg存放的文件夹
imgwritepath = 'E:\\Users\\yolov5-develop\\VOCData_EL\\JPEGImages_flip\\' # 水平翻转后的jpg保存文件夹
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def _ext_pdf(self, var, norm):
raise SpecificFunctionNotImplemented
def ext_pdf(
self,
var: ztyping.VarInputType,
norm: ztyping.NormInputType = None,
*,
options=None,
) -> ztyping.PDFReturnType:
"""Probability density function, nor... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
from tracing import TracerMiddleware
from metrics import PrometheusMetricsFactory, PrometheusReporter | ise-uiuc/Magicoder-OSS-Instruct-75K |
use distro::{ Distro };
use uptime::{ Uptime };
use package_managers::{ PackageManagers };
use shell::{ Shell };
use resolution::{ Resolution };
use wm::{ Wm };
use de::{ De };
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Xticklabs = []
RatioL = []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
investment's initial cost
"""
denominator = (Complex(1, 0) + discount_rate) ** np.arange(1, len(cash) + 1)
cash = list(map(lambda x: x if isinstance(x, Complex) else Complex(x, 0), cash))
return np.sum(np.array(cash) / denominator)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cp -r ofsted-prototype/page/* ofsted-prototype-dist
cp $target ofsted-prototype-dist/
sed -i -e 's|ofsted-prototype-fastopt[.]js|ofsted-prototype-opt.js|' ofsted-prototype-dist/govuk.html
zip -r ofsted-prototype-dist.zip ofsted-prototype-dist
rm -r ofsted-prototype-dist
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
printf '$AWK and $WORKDIR must be set\n' >&2
exit 1
fi
SCRIPT=$WORKDIR/test.temp.run
cat > $SCRIPT <<EOF
#!$AWK -f
{ print }
EOF
chmod a+rx $SCRIPT
printf 'a\nb\nc\nd\n' | $SCRIPT
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def check_output(*args, **kwargs):
proc = subprocess.Popen(*args, stdout=subprocess.PIPE, **kwargs)
stdout, stderr = proc.communicate()
if proc.returncode:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?= empty($agents)
? ''
| 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.