seed stringlengths 1 14k | source stringclasses 2 values |
|---|---|
class GcsFolderDestination(proto.Message):
r"""Export folder destination of the data.
Attributes:
output_folder_uri (str):
Required. Cloud Storage directory to export
data to.
"""
output_folder_uri = proto.Field(
proto.STRING,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
sessionPath=$(curl -s -i -X POST http://localhost:8080/challenge-response/v1/newSession?nonceSize=32 | grep Location | cut -f2 -d: | tr -d ' \r')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const result = await fetch(`${baseUrl}/${url}`, {
method,
headers: {
'Content-Type': 'application/json',
},
signal,
...rest,
});
let resultData =
result.headers.has('Content-Type') && !result.headers.get('Content-Type')?.trim()?.startsWith('application/json')
? await result.text()
: await result.json();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"label": "열어보기",
"messageText": "짜잔! 우리가 찾던 보물입니다"
},
{
"action": "webLink",
"label": "구경하기",
"webLinkUrl": "https://e.kakao.com/t/hello-ryan"
}
]
}
]
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
encoder_mask=prev_state["encoder_mask"],
num_spaces=num_spaces,
batch_id=batch_ids,
encoder_outputs=prev_state["encoder_outputs"],
)
if post_process is not None:
logits = post_process(out, model_inputs)
else:
logits = out.logits
logits = logits.squeeze(1)
cur_const = allowed_words_mat[batch_ids, num_spaces]
if banned_tensor is not None:
# Remove word pieces that would result in generating a banned (aka already-guessed) word
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (!m_module && m_AlternativeLoad && IsAbsolutePath(m_name))
{
m_module.reset(LoadLibraryEx(m_name.c_str(), nullptr, LOAD_WITH_ALTERED_SEARCH_PATH));
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// 刷新
public func reload() {
if let request = self.originalRequest {
self.loadRequest(request)
}
}
public func setupProgress() {
let progressView = UIProgressView(frame: .zero)
self.progressView = progressView
self.webView.addSubview(progressView)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if ($total_row > 0) {
$output = '';
$thead = "
<tr class='thead-dark'>
<th>رقم التسجيل</th>
<th>إسم الكابتن</th>
<th>الجنسية</th>
<th>رقم الهاتف</th>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if self.access_token:
self.access_retrieve_time = time.time()
else:
self.access_retrieve_time = 0
if self.refresh_token:
self.refresh_retrieve_time = time.time()
else:
self.refresh_retrieve_time = 0
# expiration tracking can be improved if we use JWT
# but avoiding it now for simplicity and
# to avoid another dependency
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return (
u'Translated(src={src}, dest={dest}, text={text}, pronunciation={pronunciation}, '
u'extra_data={extra_data})'.format(
src=self.src, dest=self.dest, text=self.text,
pronunciation=self.pronunciation,
extra_data='"' + repr(self.extra_data)[:10] + '..."'
)
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export * from './roles.component';
export * from './role.component';
export * from './manager.component';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void log6(LogId id, KVLogList kv_list) override
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// confirm that we received the test message when calling get_message
println!("This is the message that we store: {}", contract.get_message(String::from("foo.near")));
assert_eq!(String::from("love message"), contract.get_message(String::from("foo.near")));
}
#[test]
fn get_message() {
let context = VMContextBuilder::new();
testing_env!(context.build());
let m = "love Message";
let mut contract = Messages { message_map: LookupMap::new(b"l".to_vec()) };
contract.message_map.insert(&String::from("foo.near"), &String::from("love Message"));
println!("Value retrieved: {}", contract.get_message(String::from("foo.near")));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif self.params['shuffle']:
np.random.shuffle(choices)
# duplication is required for triplet loss at least.
duplicated_choices = []
for choice in choices:
for _ in range(self.params['duplicate_n_times']):
duplicated_choices.append(int(
np.random.choice(
self.images_indexes_per_class[self.labels[choice]],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
index = 0
print 'input file is {0} with {1} lines \n'.format(fname,cnt)
with open(fname) as fp:
for line in fp:
ds[index] = float(line)
index += 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* User: hemengyuan
* Date: 16/1/4
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import javax.swing.table.DefaultTableCellRenderer;
import models.User;
public class CustomerFrame extends JFrame {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Radar
# ~~~~~~~~~~~~~~~~~~~~~
# Put radar on car. The radar will be created relative to the car coordinate system.
radar1 = app.create_sbr_radar_from_json(
radar_file=radar_lib,
radar_name="Example_1Tx_1Rx",
offset=[2.57, 0, 0.54],
use_relative_cs=True,
relative_cs_name=car1.cs_name,
)
###############################################################################
# Setup and validation
# ~~~~~~~~~~~~~~~~~~~~~
| ise-uiuc/Magicoder-OSS-Instruct-75K |
13. Pull image(ImagePA) from project(PA) by robot account(RA), it must be not successful;
14. Push image(ImageRA) to project(PA) by robot account(RA), it must be not successful;
15. Delete robot account(RA), it must be not successful.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "$0 <target_dir> <config_file>"
exit 1
fi
TARGET_DIR=$1
CONFIG_FILE=$2
set -ex
multistrap --no-auth -a arm64 -d $TARGET_DIR -f $CONFIG_FILE
find $TARGET_DIR/usr/lib/aarch64-linux-gnu -lname '/*' -printf '%p %l\n' | while read link target; do ln -snfv "../../..${target}" "${link}"; done
find $TARGET_DIR/usr/lib/aarch64-linux-gnu/pkgconfig -printf "%f\n" | while read target; do ln -snfv "../../lib/aarch64-linux-gnu/pkgconfig/${target}" $TARGET_DIR/usr/share/pkgconfig/${target}; done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export const CategorySchema = SchemaFactory.createForClass(Category) | ise-uiuc/Magicoder-OSS-Instruct-75K |
useExchangeModalsStore,
useExchangeModalsDispatch,
} from '../../../context';
export const useUpdateSupplyModalEffects = () => {
const { updateSupply } = useExchangeModalsStore();
const dispatchModals = useExchangeModalsDispatch();
const isOpen = updateSupply?.open;
const handleModalClose = () => {
dispatchModals({
type: ExchangeModalsActionsEnum.SHOW_UPDATE_SUPPLY,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>p2pu/learning-circles
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2019-07-10 06:05
from __future__ import unicode_literals
| ise-uiuc/Magicoder-OSS-Instruct-75K |
EXPECT_GE(num_labels, num_major_ticks - 1);
}
EXPECT_LE(num_labels, num_major_ticks + 1);
// Boxes: One box per each label + Background box + margin box.
EXPECT_EQ(num_boxes, num_labels + 2);
// Everything should be between kZValueTimeBar and kZValueTimeBarLabel.
EXPECT_TRUE(mock_text_renderer_.IsTextBetweenZLayers(GlCanvas::kZValueTimeBar,
GlCanvas::kZValueTimeBarLabel));
EXPECT_TRUE(mock_batcher_.IsEverythingBetweenZLayers(GlCanvas::kZValueTimeBar,
GlCanvas::kZValueTimeBarLabel));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private static final long serialVersionUID = -911790554283478225L;
private short count;
public ShortContainer(short count) { this.count = count; }
public void inc() { count++; }
public void dec() { count--; }
public void inc(short n) { count += n; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if [[ ! -f ".env" ]]
then
echo "Error: .env not found."
cp .env.example .env
fi
/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
| ise-uiuc/Magicoder-OSS-Instruct-75K |
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
let mut input = input.clone();
for (i, n) in caves.iter().enumerate() {
input = input.replace(n, &i.to_string());
}
let mut tunnels: Vec<Vec<usize>> = Vec::new();
for _ in caves {
tunnels.push(Vec::new());
}
for line in input.lines() {
let c: Vec<usize> = line.split("-").map(|c| c.parse().unwrap()).collect();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def lncp(source, dest):
''' Symlink or copy if that fails. Should work for Linux and Windows
Parameters
----------
source : str
The Source
dest : str
The Destination
'''
if os.path.isdir(dest):
dest = os.path.join(dest, os.path.basename(source))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif encode == 'oct':
dec = oct_dec(src)
elif encode == 'bin':
dec = bin_dec(src)
# dec to target
if decode == 'raw':
target = dec_raw(dec)
elif decode == 'b64':
target = dec_b64(dec)
elif decode == 'hex':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
unique_classes = set(labels)
for ts, label in zip(timeseries, labels):
timeseries_per_class[label].append(ts)
random_samples = {}
for c in unique_classes:
random_idx = np.random.choice(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public interface IRemoteObjectsRecord {
void Register(object obj);
void DestroyByType<T>(Func<T, bool> condition) where T:class;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<Query virtualSchemaName = "default" formatter = "TSV" header = "1"
uniqueRows = "0" count = "" datasetConfigVersion = "0.6" >
<Dataset name = "hsapiens_gene_ensembl" interface = "default" >
''' + '\n'.join(['<Attribute name = "{}" />'.format(f) for f in fields]) + '''
</Dataset>
</Query>'''
def parse_args():
parser = argparse.ArgumentParser(
description="Download ensemble reference"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void setSpqrMetrics(SPQRNodeMetricsConfiguration spqrMetrics) {
this.spqrMetrics = spqrMetrics;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var outsideInvoked: Bool = false
@discardableResult
public override func relay(changes: Changes<Value>) -> Bool {
guard super.relay(changes: changes) else { return false }
bondingRelay?.relay(changes: changes)
return true
}
@discardableResult
public func bonding(with twoWayRelay: TwoWayRelay<Value>) -> Self {
addNext(relay: twoWayRelay)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return (
<Pane display="flex" flexDirection="row">
<Pane>
<SidebarNavigation />
</Pane>
<Pane width="100%">
<NestedRoutes route={route} />
</Pane>
</Pane>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Terraria.Enums
{
[Flags]
public enum AnchorType
{
None = 0,
SolidTile = 1,
SolidWithTop = 2,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
quadrado.retornar_valor_lado(3)
print('----------------')
print('Total da area ficou em :')
quadrado.calcular_area(3)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#data = imaging.nonlinearity(data, "gamma").by_value(1/2.2, [0, 65535])
# gamma by table
# data = imaging.nonlinearity(data, "gamma").by_table("tables/gamma_2.4.txt", "gamma", [0, 65535])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
input_data = np.concatenate([payoff_matrix_split[x] for x in selected_indices]).astype(np.float32)
input_prob = np.concatenate([col_prob_split[x] for x in selected_indices]).astype(np.float32)
input_action = np.concatenate([col_action_split[x] for x in selected_indices]).astype(np.uint8)
self.input_data = torch.from_numpy(input_data)
self.input_prob = torch.from_numpy(input_prob)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# The reason we need nest_asyncio is that we run multiple event loops in a
# single thread, that's not allowed. The future work should be create a new
# thread for each event loop so we can get rid of nest_asyncio
import nest_asyncio
nest_asyncio.apply()
from .teeport import Teeport
| ise-uiuc/Magicoder-OSS-Instruct-75K |
emit: (type: string, data?: T) => any;
destory: () => any;
}
export type WcListFilterHandler<T = any> = (item: T, index: number, list: T[]) => any;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# delimiters
# Outputs:
# tns build ios
##
build_ios_release () {
local -r key_name='ios'
local -r tns='tns build ios --release --for-device'
local -r key_content="$(get_key_value "${main_key_content}" "${key_name}" "{" "}")"
local -r options="$(get_key_value "${key_content}" "options" "${delimiters}" "${delimiters}")"
local -r formatted_options="$(get_formatted_options "${options}")"
local -r file_name="$(get_file_name "${key_name}" "${options}")"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
boxes_list, scores_list, labels_list = collect_boxlist(preds_set, cur_id)
if fusion_type == 'nmw':
boxes, scores, labels = non_maximum_weighted(boxes_list, scores_list,
labels_list, weights=weights, iou_thr=iou_thr, skip_box_thr=skip_box_thr)
elif fusion_type == 'wbf':
boxes, scores, labels = weighted_boxes_fusion(boxes_list, scores_list,
labels_list, weights=weights, iou_thr=iou_thr, skip_box_thr=skip_box_thr)
ids = np.tile(cur_id, (boxes.shape[0], 1))
cur_boxes = np.concatenate((np.expand_dims(scores, 1), boxes[:,[0,2,1,3]]), 1)
if len(all_boxes):
all_boxes = np.append(all_boxes, cur_boxes, 0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"--disable-scripts", "--disable-doc"
)
_make = bb.watch(make)
_make("CC=" + str(clang), "clean", "all")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case Token::IDENTIFIER:
case Token::PARENTHESES_O:
nodent = expression();
break;
default:
Error();
break;
}
return nodent;
}
If* Syntactic::Selection_S() {
If* nodeif = new If();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Marks the size parameters in the metadata."""
for param in parameters:
mechanism = common_helpers.get_size_mechanism(param)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
extension Presenter {
private static var didImportPlugins = false
| ise-uiuc/Magicoder-OSS-Instruct-75K |
annotations, *_ = annotate_args_kwargs(script_fun, new_args, new_kwargs)
for annot in annotations:
print(annot)
# CHECK: Torch Tensor (shape=(-1, 3, 32, 32), dtype=torch.float32)
# CHECK: Torch Tensor (shape=(-1, 3, 32, 32), dtype=torch.float32)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.label = label;
}
public URI getOntologyId() {
return this.ontologyId;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
final class ListTableViewController: UITableViewController {
// MARK: - Property
private let list: [String] = ["Normal", "Scroll"]
// MARK: - Life Cycle
override func viewDidLoad() {
super.viewDidLoad()
self.navigationItem.title = "UPsSegmented"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise
api.update_with_media("temp_image.jpg", status=f"#{hex_number}")
print(media_url)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from mangrove.form_model.validator_factory import validator_factory
from mangrove.form_model.field import TextField, UniqueIdField
from mangrove.form_model.validators import MandatoryValidator, UniqueIdExistsValidator
from mangrove.datastore.entity import Entity
class TestMandatoryValidator(unittest.TestCase):
def setUp(self):
self.validator = MandatoryValidator()
self.field1 = TextField('a', 'a', 'a')
self.field2 = TextField('b', 'b', 'b', required=False)
self.field3 = TextField('c', 'c', 'c')
self.field4 = TextField('d', 'd', 'd')
self.fields = [self.field1, self.field2, self.field3, self.field4]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'<desc> *(Description:)?': 'description',
'<narr> *(Narrative:)?': 'narrative'
}
class TrecQueries(BaseQueries):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.DATA.append(data)
service = TestTcpService(
"127.0.0.1", aiomisc_unused_port, **{"loop": loop})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, event_id, trucker_whatsapp, date):
self.event_id = event_id
self.trucker_whatsapp = trucker_whatsapp
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def hotkey_layout(self, hotkey: str) -> Optional[DDConfigLayout]:
"""hotkey eg: `q_press_left_click_right`. Returns None if hotkey is invalid."""
layout = self.create_layout()
hotkeylist = hotkey[2:].split("_")
if len(hotkeylist) % 2 != 0:
return None
for i in range(0, len(hotkeylist), 2):
mode = hotkeylist[i]
btn = hotkeylist[i + 1]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?= $voter; ?> <?= $userRating ? '(' . $userRating . ') ' : ''; ?><?= Yii::t('bot', 'reacted to a message from'); ?> <?= $candidate; ?><?= $candidateRating ? ' (' . $candidateRating . ') ' : ''; ?>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_init_by_factory(self, mock_loader, mock_valid_directory):
config = Config.subreddit('foo')
mock_valid_directory.assert_not_called()
assert config.env in ['development', 'testing', 'production']
assert config.name == 'foo'
assert str(config) == '/r/foo configuration'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'https://labelqa.estafeta.com/EstafetaLabel20/services/EstafetaLabelWS?wsdl',
'https://label.estafeta.com/EstafetaLabel20/services/EstafetaLabelWS?wsdl',
]
__url_tracking__ = [
'https://trackingqa.estafeta.com/Service.asmx?wsdl',
'https://tracking.estafeta.com/Service.asmx?wsdl',
]
__url_quote__ = [
'http://frecuenciacotizador.estafeta.com/Service.asmx?wsdl',
'http://frecuenciacotizador.estafeta.com/Service.asmx?wsdl',
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
@SpringBootApplication
@ServletComponentScan("com.asiainfo.mysso.client.filter")
public class ClientApplication {
public static void main(String[] args) {
SpringApplication app = new SpringApplication(new Object[] { ClientApplication.class });
app.setAdditionalProfiles(new String[] { "client" });
app.run(args);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static CommitAttempt BuildNextAttempt(this ICommit commit)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return self._name
@name.setter
def name(self, value):
"""Key name can be set by Key.key or Key.name. Key.key sets Key.name
internally, so just handle this property. When changing the key
name, try to load it's metadata from MimicDB. If it's not available,
the key hasn't been uploaded, downloaded or synced so don't add it to
the bucket set (it also might have just been deleted,
see boto.s3.bucket.py#785)
"""
self._name = value
if value:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private static Response error404(String message) {
return Response.status(404).entity(new Message(message)).build();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import time
def test_sleep_400ms():
time.sleep(0.4)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
X_train,X_test,y_train,y_test = train_test_split(X,y,random_state=42)
vectorizerC = CountVectorizer()
X_train_document_term_matrix = vectorizerC.fit_transform(X_train)
X_test_document_term_matrix = vectorizerC.transform(X_test)
# The common method for text classification is naive bayes
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def regenerate(model, evolve_mode="rand", device="cpu"):
for _, m in model.named_modules():
if hasattr(m, "weight") and m.weight is not None:
if hasattr(m, "mask"): ## Conv and Linear but not BN
assert m.split_rate < 1.0
if m.__class__ == conv.SplitConv or m.__class__ == linear.SplitLinear:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func beganDragging(_ swipableView: SwipableView)
// 位置の変化が生じた際に実行されるアクション
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def show_logs():
errors = get_flashed_messages(category_filter=["error"])
warnings = get_flashed_messages(category_filter=["warning"])
if len(warnings) > MAX_WARNINGS:
warnings = warnings[:MAX_WARNINGS]
warnings.append(
f"Too many warnings (>{MAX_WARNINGS}) - Skipping further warnings..."
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public int TimesUsed { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .client import Check | ise-uiuc/Magicoder-OSS-Instruct-75K |
),
parsed.line_separator,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
async def run(ctx):
await ctx.send(''' `bot invite link:`
<https://discord.com/api/oauth2/authorize?client_id=732933945057869867&permissions=538569921&scope=bot>''') | ise-uiuc/Magicoder-OSS-Instruct-75K |
from .library import Library
def main():
location = Library.find_library(os.getcwd())
library = Library(location)
library.organize_all()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.rightDir = 0
print("Motors Initialized")
def msg_received(self, msg, msg_type):
# This gets called whenever any message is received
if msg_type == MsgType.TWIST:
self.processTwist(msg.velocity, msg.omega)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
aima.test.core.experiment.logic.propositional.algorithms.WalkSATExperiment
| ise-uiuc/Magicoder-OSS-Instruct-75K |
z2_copy = z2.copy()
z2 = z2/z2.max()
dog_not_norm = z1 - z2
dog = (z1 - z2)/np.max(z1-z2)
dog[dog<0] = 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for key in info.keys():
setattr(self, key, info[key])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for _ in range(5):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if(cv_kp[0] < left_display.shape[1] and cv_kp[1] < left_display.shape[0]):
cv2.circle(left_display, (int(cv_kp[0]), int(cv_kp[1])), 3, color, -1)
if(kp_spine[0] < left_display.shape[1] and kp_spine[1] < left_display.shape[0]
and left_hip[0] > 0 and left_hip[1] > 0 and right_hip[0] > 0 and right_hip[1] > 0 ):
cv2.circle(left_display, (int(kp_spine[0]), int(kp_spine[1])), 3, color, -1)
cv2.addWeighted(left_display, 0.9, overlay, 0.1, 0.0, left_display) | ise-uiuc/Magicoder-OSS-Instruct-75K |
# UNDERWAY return 0
return AssignmentStatus.ASSIGNMENT_UNDERWAY
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertEqual(test.name(), 'test') | ise-uiuc/Magicoder-OSS-Instruct-75K |
from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.components.system.models import DockerEvent, SystemInfo
from python_on_whales.exceptions import DockerException
from python_on_whales.test_utils import get_all_jsons, random_name
def test_disk_free():
docker.pull("busybox")
docker.pull("busybox:1")
docker_items_summary = docker.system.disk_free()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
result.update({'data': value})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ignore = [f for f in os.listdir(opendbc_root) if not f.endswith('_generated.dbc')]
comp = filecmp.dircmp(opendbc_root, d, ignore=ignore)
assert len(comp.diff_files) == 0, f"Different files: {comp.diff_files}"
test_generator()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class AdapterDataSet<E extends BaseItem> extends ArrayList<E> implements List<E>, RandomAccess, Cloneable, Serializable {
public AdapterDataSet() {
super();
}
public AdapterDataSet(Collection<? extends E> c) {
super(c);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use into_hashmaps::{clone_to_hashmap, into_hashmap, IntoHashmap};
pub use unwinds::{clone_unwind, unwind, Unwinds};
mod unwinds;
mod into_hashmaps;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
lst_wp.append(Weighted_point_2(Point_2(14, 1), 1))
was.make_alpha_shape(lst_wp)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
return "Using - " + value;
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
@num_guesses.setter
def num_guesses(self, val):
self._num_iterations = val
def on_recursion(self, depth):
if depth > self.max_recursion_depth:
self.max_recursion_depth = depth
def get_max_recursion_depth(self):
return self.max_recursion_depth
| ise-uiuc/Magicoder-OSS-Instruct-75K |
source migration_common_settings.sh
# HARDCODED ${ORACLE_HOME}/lib path.
# If ORACLE_HOME variable is set and Oracle libraries are present, then setup bash_profile
if [ ! -z ${ORACLE_HOME} ] && [ -d ${ORACLE_HOME}/lib ]; then
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return fb.evaluateObjectExpression('[%s objectAtIndex:%i]' % (views, index))
def viewsCount(views):
return int(fb.evaluateExpression('(int)[%s count]' % views))
def accessibilityIdentifier(view):
return fb.evaluateObjectExpression('[%s accessibilityIdentifier]' % view)
def isEqualToString(identifier, needle):
return fb.evaluateBooleanExpression('[%s isEqualToString:@"%s"]' % (identifier, needle))
def setTextInView(view, text):
fb.evaluateObjectExpression('[%s setText:@"%s"]' % (view, text))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class NewProgressView: UIView {
// MARK: - Outlets
@IBOutlet var gifView: UIImageView!
@IBOutlet var messageLbl: UILabel!
class func instanceFromNib(frame: CGRect) -> NewProgressView? {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pay_rate = 400
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package com.costa.luiz.comics.domain;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import cv2
def loadVideo(Video_FILE, maskFile):
mask = cv2.imread(maskFile, 0)
fourcc = cv2.VideoWriter_fourcc(*'MPV4')
# fourcc = cv2.cv.CV_FOURCC(*'XVID')
video_out = cv2.VideoWriter('new_video.mp4', fourcc, 30, (480, 848))
counter = 0
for frame in get_frames(Video_FILE):
if frame is None:
break
dst = cv2.inpaint(frame, mask, 3, cv2.INPAINT_TELEA)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __str__(self):
return self.nome
| ise-uiuc/Magicoder-OSS-Instruct-75K |
do
echo "[-] Running task for model: $model, rep: $r, k-fold: $k"
sbatch $FLAGS --wrap="python ../main.py --model $model --repetition $r --kfold $k --timestamp $exec_ts --configfile $config"
#sbatch $FLAGS --wrap="python -c \"print(10000)\""
#python ../main.py -m $model -r $r -k $k -cf $config
TOTAL=`expr $TOTAL + 1`
sleep 2s
done
done
| 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.