seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
def DataReceivedOnError(self, data):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"Rate limiting for:",
resolver, ctx,
"Could not retrieve arguments"
);
// TODO: Implement check here to get the amount of requests left and time left
return RedisResult::Ok(RedisValue::from("EXAMPLE RETURN"))
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
print('Found {} clusters and {} distances'.format(len(clusters), len(distances)),
file=sys.stderr)
print(len(clusters))
clusters = sorted(clusters)
for i in clusters:
print(i, end='')
for j in clusters:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Xml.Serialization;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Add the 8 FP MMX Regs to the FPU State
for idx in 0..NUM_FPMMX_REGS {
let from_idx = WinFpRegIndex::FpMmx0 as usize + idx;
unsafe {
fpu_state.fpr[idx] = WHV_UINT128::to_u8_array(&from.values[from_idx].Reg128);
}
}
fpu_state
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Run the migrations.
*
* @return void
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public List<ParsedMethod> getAdded() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
expect(guarantee_trailing_slash('http://localhost/'))->toBe('http://localhost/');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import json
# import pickle
import requests
# MY imports
from utility.hash_util import hash_block
from utility.verification import Verification
from block import Block
from transaction import Transaction
| ise-uiuc/Magicoder-OSS-Instruct-75K |
float f;
};
struct inheritance_extended : MIL_INHERITANCE(inheritance_extended, extended) {
MIL_BEGIN(inheritance_extended);
MIL_DEFINE_FIELD(float, f);
MIL_END;
};
TEST(structure_size, inheritance_size) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
python get_diffusion.py --file sample_traj.csv # NOTE this one will take awhile
# Automated testing and pycodestyle verification
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// ignore error
let _ = local.set_nodelay(true);
tasks.spawn(async move {
match connect_and_relay(local, raddr, conn_opts).await {
Ok(..) => log::debug!("[tcp]{} => {}, finish", addr, raddr.as_ref()),
Err(e) => log::error!("[tcp]{} => {}, error: {}", addr, raddr.as_ref(), e),
}
});
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return filtered_patients
return patients
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Post(models.Model):
title = models.CharField(max_length=255)
content = models.TextField()
author = models.ForeignKey(get_user_model(), on_delete=models.CASCADE)
category = models.ManyToManyField(Category)
def __str__(self):
if len(str(self.title)) > 20:
return self.title[:20] + '...'
return self.title
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Vector3 pos = target.transform.position;
fov = cam.fieldOfView;
distance = viewWidth / (2f * Mathf.Tan(0.5f * fov * Mathf.Deg2Rad));
pos.z = -Mathf.Abs(distance);
cam.transform.position = pos;
Debug.Log(distance);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
typers = {
'r': float
}
def setGlobal(key, value):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
points = [(1,9,'a'), (1,1,'b'), (7,7,'c'), (8,8,'e'), (7,3,'d'), (8,2,'f')]
actual = closest_pair(points, distance=modified_distance)
expected = ((7, 7, 'c'), (8, 8, 'e'))
self.assertEqual(actual, expected, 'should find the first closest pair')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#! /usr/bin/python
"""Setuptools-based setup script for numkit.
For a basic installation just type the command::
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import rospy
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
from smach_ros import SimpleActionState
#Import Action files from the message
from riptide_msgs.msg import BuoyAction, BuoyGoal, BuoyFeedback, BuoyResult
import riptide_msgs.msg
import actionlib
#**************************
#* LIGHTS, CAMERA, ACTION *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from pony.orm.core import db_session
from tornado.web import StaticFileHandler, url, Application
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<form action="{{ route('admin.teacher.update') }}" method="post">
@csrf
<input type="hidden" name="id" value="{{ $teacher->id }}">
<div class="form-group">
<label for="name" class="col-form-label">Nama</label>
<input type="text" id="name" class="form-control" name="name" value="{{ $teacher->name }}">
@error('name')
<span class="text-danger">{{ $message }}</span>
@enderror
</div>
<div class="form-group">
<label for="email" class="col-form-label">Email</label>
<input type="email" id="email" class="form-control" name="email" value="{{ $teacher->email }}">
@error('email')
<span class="text-danger">{{ $message }}</span>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
</div>
</div>
<div class="content-header-right col-md-4 col-12">
<div class="btn-group float-md-right">
<button class="btn btn-info dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="icon-settings mr-1"></i>Action</button>
<div class="dropdown-menu arrow"><a class="dropdown-item" href="#"><i class="fa fa-calendar mr-1"></i> Calender</a><a class="dropdown-item" href="#"><i class="fa fa-cart-plus mr-1"></i> Cart</a><a class="dropdown-item" href="#"><i class="fa fa-life-ring mr-1"></i> Support</a>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cout << "Layout: " << ev.getLayout () << endl;
LAYOUT (sx::String << sx::Int << sx::String << sx::Int << sx::String << sx::Int);
cout << ev.shiftString () << endl;
cout << ev.shiftInt () << endl;
cout << ev.shiftString () << endl;
cout << ev.shiftInt () << endl;
cout << ev.shiftString () << endl;
cout << ev.shiftInt () << endl;
}
cout << SX_SEPARATOR;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# flash_press_int_energy
return self.flash_press_prop(flow_sum_basis, flow_sum_value, frac_basis, frac_value, press,
'int_energy', int_energy_basis, int_energy_value, previous, valid)
elif vol_value is not None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// 刷新标题(例如语言更新)
func reloadTitles(titles: [String]) {
guard let viewControllers = viewControllers else { return }
for (index, viewController) in viewControllers.enumerated() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
report_csv_file = os.path.join(root_data_folder, 'moss_report.csv')
if not os.path.isabs(base_folder):
base_folder = os.path.join(abs_path, base_folder)
if len(join_file) > 0:
expected_keys = ["SC_Filepath", "Stackoverflow_Links"]
with open(join_file, mode='r', encoding='utf-8') as csv_file:
csv_reader = csv.DictReader(csv_file)
actual_keys = csv_reader.fieldnames
if expected_keys[0] != actual_keys[0] or expected_keys[1] != actual_keys[1]:
print("Error: Unexpected Headers! SC_Filepath and Stackoverflow_Links are required!")
return -1
if not only_parse:
submit_and_dl(user_id, base_folder, report_links_file, batch)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Input = WrapInput(this, input, isInputRedirected);
Output = WrapOutput(this, output, isOutputRedirected);
Error = WrapOutput(this, error, isErrorRedirected);
_cancellationToken = cancellationToken;
}
/// <summary>
/// Creates a <see cref="VirtualConsole"/> that uses in-memory output and error streams.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def clean(self):
self.name = self.name.strip().lower()
@push_notification.apply
class SlotSetAction(Document):
name = StringField(required=True)
set_slots = ListField(EmbeddedDocumentField(SetSlots), required=True)
bot = StringField(required=True)
user = StringField(required=True)
timestamp = DateTimeField(default=datetime.utcnow)
status = BooleanField(default=True)
def validate(self, clean=True):
if clean:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let line = line.trim();
if !line.starts_with('#') {
let kv = line.split(':').collect::<Vec<&str>>();
assert_eq!(kv.len() >= 2, true);
let k = kv[0].trim();
let v = kv[1].trim();
let c: char = {
assert_eq!(k.starts_with("U+"), true);
let tmp = k.split("U+").collect::<Vec<&str>>();
assert_eq!(tmp.len(), 2);
let code_point = u32::from_str_radix(tmp[1], 16).unwrap();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
uvicorn snippet_service.__main__:APP_OBJ --reload
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("¡Has dejado el ciclo con éxito!") | ise-uiuc/Magicoder-OSS-Instruct-75K |
font-family: arial, sans-serif;
border-collapse: collapse;
}
td, th {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[cfg(feature = "serde-derive")]
use serde::{Deserialize, Serialize};
use std::io::{Read, Write};
/// The Message Delivery Confirmation of a mobile-originated session.
///
/// The descriptions for these codes are taken directly from the `DirectIP` documentation.
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "serde-derive", derive(Serialize, Deserialize))]
pub struct ConfirmationStatus {
/// The SBD session completed successfully.
status: bool,
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for _ in 0..20 {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$appKey = $_POST['appKey'];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
./gradlew :chat:bintrayUpload
./gradlew :chat_ui:bintrayUpload
fi
if [[ "$TRAVIS_TAG" == "latest" ]]; then
generate_doc "$TRAVIS_TAG"
fi
if [ -n "$TRAVIS_BRANCH" ]; then
generate_doc $TRAVIS_BRANCH
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise ValueError
if ((ai == 0.0) and ((aji <= 0.0) or (aki <= 0.0) or (amj < 0.0) or (amk < 0.0))):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export "$_key"="$_val"
done
# Write the command to a file
echo -e "$_command" > "$_cmdfile"
# Always force the command file to exit with the last exit code
echo 'exit $?' >> "$_cmdfile"
set +e
2>"$_stderrfile" >"$_stdoutfile" bash "$_cmdfile"
_exitcode=$?
set -e
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mkdir $TEMP_DIR
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public interface Compiler {
CompiledCode compile(ObjectStoreSession<? extends ObjectSession> session, String src, String[] parameterNames);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if columns and column_fill_value:
df[columns] = df[columns].fillna(value=column_fill_value)
aggregate_funcs = _get_aggregate_funcs(df, aggregates)
# TODO (villebro): Pandas 1.0.3 doesn't yet support NamedAgg in pivot_table.
# Remove once/if support is added.
aggfunc = {na.column: na.aggfunc for na in aggregate_funcs.values()}
# When dropna = False, the pivot_table function will calculate cartesian-product
# for MultiIndex.
# https://github.com/apache/superset/issues/15956
# https://github.com/pandas-dev/pandas/issues/18030
series_set = set()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return pulumi.get(self, "tags")
@property
@pulumi.getter(name="transitGatewayAttachmentId")
def transit_gateway_attachment_id(self) -> Optional[str]:
"""
The ID of the transit gateway peering attachment.
"""
return pulumi.get(self, "transit_gateway_attachment_id")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
};
Some(input)
}
pub(crate) fn lens_structure_crate_output_list_event_trackers_output_event_trackers(
input: crate::output::ListEventTrackersOutput,
) -> std::option::Option<std::vec::Vec<crate::model::EventTrackerSummary>> {
let input = match input.event_trackers {
None => return None,
Some(t) => t,
};
Some(input)
}
pub(crate) fn lens_structure_crate_output_list_filters_output_filters(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[Input("Input 2", IsSingle = true)]
protected ISpread<IRigidBodyFilter> input2;
[Output("Output", IsSingle = true)]
protected ISpread<OrFilter> output;
public void OnImportsSatisfied()
{
this.output[0] = new OrFilter();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from feature_extraction import load_raw_features
from evaluation import post_processing
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function show(User $user)
{
return $user;
}
/**
* Update the specified resource in storage.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
x = np.expand_dims(x, axis=0)
x = preprocess_input(x)
yhat = model.predict(x)
labels = decode_predictions(yhat,top=10)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from pykotor.resource.formats.ssf.auto import detect_ssf, load_ssf, write_ssf
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package com.yahala.objects;
import android.graphics.Bitmap;
import android.graphics.Paint;
import android.text.Layout;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.StaticLayout;
import android.text.TextPaint;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
package com.example.app.ourapplication.util;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import java.util.ArrayList;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@staticmethod
def _gen_tf_record(frame, detections, filename, *args, **kwargs):
width = frame.header.width
height = frame.header.height
image_format = b'jpeg'
with open(filename, "rb") as file:
encoded_jpg = file.read()
filename = os.path.basename(filename).encode('utf-8')
xmins = []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Returns:
df (pandas.DataFrame): dataframe with calibrated and uncalibrated results for all the input files.
"""
df = pd.DataFrame(columns=["Name", "Error", "ECE", "MCE", "Loss", "Brier"])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (sock < 0) {
errorHandling("socket err");
}
memset(&myAddr, 0, sizeof(myAddr));
myAddr.sin_family = AF_INET;
myAddr.sin_addr.s_addr = inet_addr("127.0.0.1");
myAddr.sin_port = htons(6666);
int bindFlag = bind(sock, (struct sockaddr *) &myAddr, sizeof(myAddr));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def rule(event):
return any(ioc_match(event.get("p_any_sha256_hashes"), SUNBURST_SHA256_IOCS))
def title(event):
hashes = ",".join(ioc_match(event.get("p_any_sha256_hashes"), SUNBURST_SHA256_IOCS))
return f"Sunburst Indicator of Compromise Detected [SHA256 hash]: {hashes}"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
final int lookupId;
TargetLookupId(int i) {
lookupId = i;
}
public int getTargetLookupId() {
return lookupId;
}
}
public static final String TEMPLATE_TYPE_LOOKUP = "TEMPLATE_TYPE";
public static final String DYNAMIC_FORM_TYPE_LOOKUP = "DYNAMIC_FORM_TYPE";
public static final Integer DYNAMIC_FORM_DEFAULT_TYPE_ID = 1;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return extract(self.addon)
def test_extract_attributes(self):
extracted = self._extract()
for attr in self.attrs:
eq_(extracted[attr], getattr(self.addon, attr))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dimension=dimension)
self.embedding_manifold = embedding_manifold
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod ring;
pub mod stripe;
pub mod test_pattern;
pub use checkers::Checkers;
pub use gradient::Gradient;
pub use pattern::Pattern;
pub use ring::Ring;
pub use stripe::Stripe;
pub use test_pattern::TestPattern;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif "cub200" in dataset_path:
objset = cub_readAnnotation(dataset_path, label_name)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
measures.pop('interp_rr_function')
measures.pop('interp_rr_linspace')
print(measures)
plt = hb.plotter(title='')
plt.grid(color='r', linestyle='-', linewidth=0.2)
my_dpi = 96
plt.savefig(sys.argv[1]+'/ecg.png', dpi = my_dpi*10, bbox_inches = 'tight')
# plt.show() | ise-uiuc/Magicoder-OSS-Instruct-75K |
id='quoridor-v0',
entry_point='gym_quoridor.envs:QuoridorEnv',
) | ise-uiuc/Magicoder-OSS-Instruct-75K |
return array (
'WX_APPID' => 'wx1b949db30c7f1b43',
'WX_APPSTR' => '8c0d5ab24199ea950e1ae4922bcebf44',
'WX_TOKEN' => '<PASSWORD>',
'WX_PARTNERID' => '1490701782',
'WX_PARTNERKEY' => '<KEY>',
'WX_CALLBACK' => 'http://localhost:8089/home/weichat/index/uid/1524.html',
); | ise-uiuc/Magicoder-OSS-Instruct-75K |
return A.clientRequest();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public init(url: URL, client: HTTPClient) {
self.url = url
self.client = client
}
public func load(completion: @escaping (FeedLoader.Result) -> Void) {
client.get(from: url) { [weak self] result in
guard self != nil else { return }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export default app;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
synsets = json.load(open(data_dir + 'words_synsets.json'))
syn_obj = pd.DataFrame.from_dict(synsets['nouns'], orient='index', columns=['synset'])
syn_prd = pd.DataFrame.from_dict(synsets['verbs'], orient='index', columns=['synset'])
for prediction_type in all_prediction_types:
df[prediction_type + '_' + metric_type] = df[prediction_type + '_rank'] < int(metric_type[3:])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pass_over_Indy()
turtle.mainloop()
def create_ISS(shape, lat, long):
iss = turtle.Turtle()
iss.shape(shape)
iss.setheading(90)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if(target < nums[p]) r = p - 1;
else l = p + 1;
}
return -1;
}
}; | ise-uiuc/Magicoder-OSS-Instruct-75K |
x = self.cnn(input)
x = self.flatten(x)
x = self.hidden_layer(x)
x = self.output_layer(x)
return x
def main():
flags = tf.app.flags
| ise-uiuc/Magicoder-OSS-Instruct-75K |
temp = null;
first = first.next;
return v;
}
temp = first;
for (x = temp.next; x != null; x = x.next, temp = temp.next) {
if (x.key.equals(key)) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from health_check.conf import HEALTH_CHECK
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if instance is not None:
return instance.is_whitelisted
return False
@classmethod
def _fetch(cls, request):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:param dimension: The dimension where the source axis is. By default, it is assumed that the first dimension
is the source axis.
:return: a data with the same number of dimension of the input, where each element is the result of the user
defined function. All the dimensions are the same as the input data except the source axis. The source
axis is turned into the destination axis; which means, it's location in the dimension is the same, but
it's size has changed to reflect that of the destination axis. For example, if you have 4 dimensional
input, and the source axis is the second dimension, the output would be still 4 dimensional and the
destination axis would be still the second dimension. But the second dimension between the input and
output might have different numbers depending on the axis.
Examples:
* Let's say we have a daily data, and we want to calculate coefficient of variation (CV) for each month.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public override OsuGameMod LegacyMod => OsuGameMod.Key4;
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
class YosysConfig():
_DEFAULT_LINUX = '/usr/bin/yosys'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
(0, 0, 0, ),
(0, 0, 0, ),
(0, 0, 0, ),
(0, 0, 0, ),))),
"t": Glyph(numpy.array((
(0, 0, 0, ),
(0, 1, 0, ),
(1, 1, 1, ),
(0, 1, 0, ),
(0, 1, 0, ),
(0, 1, 0, ),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from rsmtool.configuration_parser import (Configuration,
ConfigurationParser)
_MY_DIR = dirname(__file__)
class TestConfigurationParser:
def setUp(self):
pass
@raises(FileNotFoundError)
def test_init_nonexistent_file(self):
non_existent_file = "/x/y.json"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
upmost value of the vertices of minimum bounding rectangle.
"""
points = np.asarray(points)
min_x = min_y = MAXD
max_x = max_y = MIND
for point in points:
x, y = point
if x > max_x:
max_x = x
if x < min_x:
min_x = x
if y > max_y:
max_y = y
if y < min_y:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Base<+T> {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
URL for this object::
`https://<Hostname|Ip address>//axapi/v3/admin-lockout`.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
find_args.append('-'+match_type)
find_args.append('{0}'.format(aprune))
find_args.append(')')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_nonexistent_template(self):
"""A route without a template should return a 404 status code."""
rv = self.client.get('/fake_route')
assert rv.status_code == 404
assert '404' in rv.data
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@inlinable
var componentDebugDescriptions: String {
get {
return [
"a: \(String(reflecting: self.a))",
"b: \(String(reflecting: self.b))",
"c: \(String(reflecting: self.c))",
"d: \(String(reflecting: self.d))",
"e: \(String(reflecting: self.e))",
"f: \(String(reflecting: self.f))",
"g: \(String(reflecting: self.g))"
].joined(separator: ", ")
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public override func layoutSubviews() {
super.layoutSubviews()
let searchBarHeight = self.heightForSearchView()
self.searchBar.frame = CGRect(x: 0, y: 0, width: self.bounds.width, height: searchBarHeight)
self.collectionView.frame = CGRect(x: 0, y: searchBarHeight, width: self.bounds.width, height: self.bounds.height-searchBarHeight)
}
fileprivate(set) var layout: SwiftDataTableLayout? = nil {
didSet {
if let layout = layout {
self.collectionView.collectionViewLayout = layout
| ise-uiuc/Magicoder-OSS-Instruct-75K |
frozenset( self.edges[e][0] for e in self.sub_edges_by_weight(1) ) \
& self.external_vtcs_set
extern_out_fermion_vtcs = \
frozenset( self.edges[e][1] for e in self.sub_edges_by_weight(1) ) \
& self.external_vtcs_set
extern_in_ghost_vtcs = \
frozenset( self.edges[e][0] for e in self.sub_edges_by_weight(3) ) \
& self.external_vtcs_set
extern_out_ghost_vtcs = \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
import Foundation
enum CastlesError: Error {
case insufficientGold
case unknown
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
break;
int arr[n];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, api_key:str, timeout:int):
# base URL's of the API
self.URL_ECONOMIC_EVENT_DATA = 'https://eodhistoricaldata.com/api/economic-events/'
super().__init__(api_key, timeout)
def get_economic_events(self, **query_params):
self.endpoint = self.URL_ECONOMIC_EVENT_DATA
return super().handle_request(self.endpoint, query_params) | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.package = package
self.dsm = dsm
self.limit_to = limit_to or []
self.enforce_init = enforce_init
RootNode.__init__(self, build_tree)
LeafNode.__init__(self)
if build_tree and build_dependencies:
self.build_dependencies()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if let Ok(mut x) = "3.1415".parse::<f64>() {
assert_eq!(8.1415, { x += 5.0; x });
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var tempPresentText: String {
return String(format: "%02.1f°", presentWeather.main.temp)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[derive(Debug, Copy, Clone)]
pub struct vnc_DisplayManager {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vnc_DataBuffer {
_unused: [u8; 0],
}
#[repr(C)]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Do any additional setup after loading the view.
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 判断 type-value 是否一致
def matches(self, type_, value):
return self.type == type_ and self.value == value
def __repr__(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if "status" in received:
assert received['status'] == messages[msg_nr]
update_contor()
elif "db" in received:
assert received["db"] == messages[msg_nr]
update_contor()
def test_cooling_system(client, auth):
global msg_nr
msg_nr = 0
global messages
messages = ['16',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
maxOpacity: 1,
minOpacity: 0,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Res.blocks = new UInt32[Res.numblocks];
//Res.blocks = new UInt32[1];
Array.Clear(Res.blocks, 0, Res.blocks.Length);
Array.Copy(src, 36, Res.blocks, 0, Res.blocks.Length);
return Res;
}
public static leaf_page_header ByteArrayToLeafPageHeader(byte[] src)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<th>Actions</th>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
prev_unchoked_peers = cur_unchoked_peers
| 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.