seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
if (err.validation) {
void reply.status(200).send({
status: Status.Failed,
code: ErrorCode.ParamsCheckFailed,
});
}
loggerServer.error("request unexpected interruption", parseError(err));
void reply.status(500).send({
status: Status.Failed,
code: ErrorCode.ServerFail,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class acetz(tzinfo):
"""An implementation of datetime.tzinfo using the ZoneSpecifier class
from AceTime/tools.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import time
import threading
import argparse
import tushare as ts
import numpy as np
import pandas as pd
from pandas import datetime as dt
from tqdm import tqdm
from utils import *
with open('../../tushare_token.txt', 'r') as f:
token = f.readline()
ts.set_token(token)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
1 agaggttcta gcacatccct ctataaaaaa ctaa
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="col-lg-12 col-xl-10">
<h1>{{ $post->title }}</h1>
<div>
{!! $post->body !!}
</div>
</div>
</div>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let message = item.userInfo?[SFExtensionMessageKey]
os_log(.default, "Received message from browser.runtime.sendNativeMessage: %@", message as! CVarArg)
let response = NSExtensionItem()
response.userInfo = [ SFExtensionMessageKey: [ "Response to": message ] ]
context.completeRequest(returningItems: [response], completionHandler: nil)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
62
55
| ise-uiuc/Magicoder-OSS-Instruct-75K |
m_timer.stop();
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
encap = Encapsulation()
encap.sell()
encap.__my_price = 20
encap.sell()
encap.setprice(20)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
entry_point='gym_collectball.envs:CollectBall'
) | ise-uiuc/Magicoder-OSS-Instruct-75K |
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import threading
_SparseOperationKitEmbeddingLayerStoreKey = "SparseOperationKitEmbeddingLayerStore"
class _EmbeddingLayerStore(threading.local):
def __init__(self):
super(_EmbeddingLayerStore, self).__init__()
self._embedding_layer_container = dict()
def _create_embedding(self, name, constructor, **kwargs):
if constructor is None:
raise ValueError("embedding_layer: '{}' does not exist and "
"cannot create it with constructor: "
"{}".format(name, constructor))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var tests = [XCTestCaseEntry]()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@pulumi.getter(name="indexDocument")
def index_document(self) -> Optional[pulumi.Input[str]]:
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
_button = GetComponent<Button>();
}
private void Start()
{
_audioSource = FindObjectOfType<AudioSource>();
_button.onClick.AddListener(() => _audioSource.PlayOneShot(clickSound, 1));
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
for (var i = 0; i < stringElements.Length; i++)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return False
dp = [False for i in range(n + 1)]
dp[0] = True
for i in range(1, n + 1):
for j in range(i - 1, -1, -1):
if dp[j] == True:
substring = word[j:i]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
request_id,
date,
request_server_encrypted,
})
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def inserting(data: DataSubItem):
return (
data.root.action == Action.INSERT or
(data.root.action == Action.UPSERT and data.saved is NA)
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Add-ons
* Add more functions to the MathServiceLibrary
* Ability to compute Power of 2 values (v1 to the power of v2)
* Ability to compute the square root of a value
* Ability to computer the log of a value
*
* Rebuild server app
* Create new client app to use all the services provided by the updated Math library
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
response = requests.get(GOOGLE_DRIVE_EXPORT_URL, params={'id': origin})
with open(filepath, 'wb') as file:
checksum = hashlib.md5(response.content)
file.write(response.content)
if checksum.hexdigest() != model.value.get('checksum'):
os.remove(filepath)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func applicationWillResignActive(_ application: UIApplication) {}
func applicationDidEnterBackground(_ application: UIApplication) {}
func applicationWillEnterForeground(_ application: UIApplication) {}
func applicationDidBecomeActive(_ application: UIApplication) {}
func applicationWillTerminate(_ application: UIApplication) {}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Image("People Network")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert_eq!(
expected_queue,
shadow
.into_dequeue_choiceless(ActionPointsDestroyed(Action::Move(Move::Kick), 0, false))
.queue
);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing
protocol a{{}typealias d:d}var _={class B<where B<}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public const int MaxIdentityCodeLength = 14;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cp /var/run/argo-dataflow/handler Handler.java
javac *.java
java -cp . Main | ise-uiuc/Magicoder-OSS-Instruct-75K |
import sys
with open(sys.argv[1]) as file:
for n in(int(n) for n in file):
print(bin(n).count('1') % 3)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def force_write(message: bytes, ser: serial.Serial):
while len(message) != 0:
written = ser.write(message)
message = message[written:]
ser.flush()
def load(file: str, ser: serial.Serial) -> bool:
with open(file, "rb") as f:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
canonical_smiles = canonical_molecule.to_smiles(
isomeric=True, explicit_hydrogens=True, mapped=True
)
task.central_bond = (1, 2)
else:
canonical_smiles = canonical_molecule.to_smiles(
isomeric=True, explicit_hydrogens=True, mapped=False
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
guard let mintAuthorityOption = keys["mintAuthorityOption"]?.toUInt32(),
let mintAuthority = try? PublicKey(bytes: keys["mintAuthority"]),
let supply = keys["supply"]?.toUInt64(),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert_raises,
raises,
assert_almost_equal,
assert_true,
assert_false,
assert_in,
)
from pyne.utils import QAWarning
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class FilterModule(object):
''' Expand Kraken configuration file '''
def filters(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from unittest import TestCase
from checklists_scrapers.spiders import DOWNLOAD_FORMAT, DOWNLOAD_LANGUAGE
from checklists_scrapers.spiders.ebird_spider import JSONParser
from checklists_scrapers.tests.utils import response_for_data
class JSONParserTestCase(TestCase):
"""Verify the checklists extracted from the API JSON data."""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import android.content.Intent;
import android.os.Bundle;
import androidx.activity.result.ActivityResultLauncher;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self):
self.__map: Dict[str, NehushtanWebsocketConnectionEntity] = {}
self.agent_identity = str(uuid.uuid4())
def register(self, websocket):
entity = NehushtanWebsocketConnectionEntity(websocket)
self.__map[entity.get_key()] = entity
print(f"TestWebsocketRegisterAgent[{self.agent_identity}] registered [{entity.get_key()}]")
return entity
def unregister(self, key: str):
if self.__map.get(key):
del self.__map[key]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
flutter pub run build_runner build --delete-conflicting-outputs
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if rbac_authentication_enabled == True:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
gApplication = this;
InitContext();
setResizeCallback([this](nanogui::Vector2i newSize) { this->WindowResized(newSize.x, newSize.y); });
}
CApplication::~CApplication() {}
void CApplication::Done() {
std::ofstream out(jsonPath);
out << std::setw(4) << prefs << std::endl;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
model = opennre.get_model('tacred_bert_softmax')
result = model.infer({
'text': 'He was the son of <NAME> mac <NAME>, and grandson of the high king Áed Uaridnach (died 612).',
'h': {'pos': (18, 46)}, 't': {'pos': (78, 91)}})
print(result)
if __name__ == '__main__':
infer_wiki80_bert_softmax()
# infer_tacred_bertentity_softmax()
# infer_tacred_bert_softmax() | ise-uiuc/Magicoder-OSS-Instruct-75K |
break
sampled_ids.append(predicted)
inputs = self.word_embeddings(predicted)
inputs = inputs.unsqueeze(1) # (batch_size, 1, embed_size)
return [pred.item() for pred in sampled_ids]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
main = ReadMangaEu
| ise-uiuc/Magicoder-OSS-Instruct-75K |
new TranslationInfo(LanguageCode.FI, "Mongolian"),
new TranslationInfo(LanguageCode.FR, "Mongol"),
new TranslationInfo(LanguageCode.GA, "Mongóilis"),
new TranslationInfo(LanguageCode.GD, "Mongolian"),
new TranslationInfo(LanguageCode.GL, "Mongolia"),
new TranslationInfo(LanguageCode.GU, "Mongolian"),
new TranslationInfo(LanguageCode.HE, "מונגולי"),
new TranslationInfo(LanguageCode.HI, "मंगोलियाई"),
new TranslationInfo(LanguageCode.HR, "Mongolski"),
new TranslationInfo(LanguageCode.HT, "Mongolyen"),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
before_last = ~models.Q(session=end.session) | models.Q(idx__lte=end.idx)
before_last = models.Q(time__lte=end.time) & before_last
else:
before_last = models.Q(time__lte=end)
return cls.objects.filter(after_first, before_last)
@property
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.core.cache import cache
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response
from django.template.context import RequestContext
from django.template.loader import render_to_string
from django.utils.translation import ugettext as _
from djblets.siteconfig.views import site_settings as djblets_site_settings
from reviewboard.admin.checks import check_updates_required
from reviewboard.admin.cache_stats import get_cache_stats, get_has_cache_stats
from reviewboard.admin.forms import SSHSettingsForm
from reviewboard.reviews.models import Group, DefaultReviewer
from reviewboard.scmtools.models import Repository
from reviewboard.scmtools import sshutils
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for h in self.layers:
out = h.forward(out)
return out
def score(self, X, Y):
P = self.predict_op(X)
return np.mean(Y == P)
def predict(self, X):
return self.predict_op(X)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
callback_invoke_count_(0),
frames_captured_(0) {}
void SetUpOnMainThread() override {
ASSERT_TRUE(PathService::Get(DIR_TEST_DATA, &test_dir_));
}
// Attempts to set up the source surface. Returns false if unsupported on the
// current platform.
virtual bool SetUpSourceSurface(const char* wait_message) = 0;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"Two",
Type="String",
),
"Three": Parameter(
"Three",
Type="String",
),
"Four": Parameter(
"Four",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
wget geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz -O data/GeoIP.dat.gz
gzip -d data/GeoIP.dat.gz
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sys.exit(-1)
#estimates the timeshift between the camearas and the imu using a crosscorrelation approach
#
#approach: angular rates are constant on a fixed body independent of location
# using only the norm of the gyro outputs and assuming that the biases are small
# we can estimate the timeshift between the cameras and the imu by calculating
# the angular rates of the cameras by fitting a spline and evaluating the derivatives
# then computing the cross correlating between the "predicted" angular rates (camera)
# and imu, the maximum corresponds to the timeshift...
# in a next step we can use the time shift to estimate the rotation between camera and imu
| ise-uiuc/Magicoder-OSS-Instruct-75K |
outfile.close()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
),
(
"^(a|b).*", // match everything beginning with "a" or "b"
false, // negate expression and filter away anything that matches
vec![
"+---------------+--------+",
"| words | length |",
"+---------------+--------+",
"| Blood Orange | 12 |",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sorted_key_list = sorted(dict_len.items(), key=operator.itemgetter(1), reverse=True)
sorted_dict = [{item[0]: dict[item [0]]} for item in sorted_key_list]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# JOBS_FILE should be structured with space separated values as below, one job
# per line:
# VERSION ARCH CONFIG KERNEL DEVICE_TREE MODULES
# MODULES is optional
find_jobs () {
# Make sure there is at least one job file
if [ `find "$OUTPUT_DIR" -maxdepth 1 -name "*.jobs" -printf '.' | wc -c` -eq 0 ]; then
echo "No jobs found"
clean_up
# Quit cleanly as technically there is nothing wrong, it's just
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("\n-*-*-*-*-*-*")
print("-*-*-*-*-*-*")
print("-*-*-*-*-*-*\n")
f = open("Week-11/readline.txt", "r")
print(f.readlines())
f.close | ise-uiuc/Magicoder-OSS-Instruct-75K |
pop.add_reporter(stats)
pop.add_reporter(neat.StdOutReporter(True))
pe = neat.ParallelEvaluator(multiprocessing.cpu_count(), eval_genome)
winner = pop.run(pe.evaluate)
# Save the winner.
with open('winner-feedforward', 'wb') as f:
pickle.dump(winner, f)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (sp.service != null) {
throw new IllegalArgumentException("cannot add to collection: " + sp);
}
final String name = sp.getName();
final Filter f = sp.filter;
synchronized (this) {
/* select the bucket for the permission */
Map<String, ServicePermission> pc;
if (f != null) {
pc = filterPermissions;
if (pc == null) {
filterPermissions = pc = new HashMap<String, ServicePermission>();
}
} else {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
b1 = _core.safe_load(plt_path, getattr(plt_path.active[0].regs, dst_reg))
b2 = _core.safe_load(plt_path, getattr(plt_path.active[0].regs, src_reg))
n = _core.safe_load(plt_path, getattr(plt_path.active[0].regs, reg_n))
# we untaint buffers only if n is not tainted
if not _core.is_tainted(n, plt_path):
if not _core.is_tainted(b1, plt_path):
b1 = None
if not _core.is_tainted(b2, plt_path):
b2 = None
# if either of the two is not tainted, we untaint the other
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Method upon client to be invoked.
_CLIENT_METHOD = "put-deploy"
# Name of smart contract to dispatch & invoke.
_CONTRACT_FNAME = "withdraw_bid.wasm"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from time import process_time as timer
| ise-uiuc/Magicoder-OSS-Instruct-75K |
response_threshold = 3
timeout = 5
url = "https://campus.exactas.uba.ar"
try:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
filename=$(basename -- "$1")
extension="${filename##*.}"
filename="${filename%.*}"
#git clone https://github.com/ifigueroap/noweb-minted
#sudo ln -s /path/to/noweb-minted/noweb-minted /usr/local/bin
#sudo ln -s /path/to/noweb-minted/guessPygmentizeLexer.py /usr/local/bin
# bugs
# git clone https://bitbucket.org/romildo/pygnoweb/
# -filter $PWD/pygnoweb/pygnoweb.py
noweave -latex -delay $1 > ../../../documents/$filename.tex
notangle -R$filename.py $1 > $filename.py
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# default=102,type=int,
# help="Provide output size for the model")
parser.add_argument("-verbose",dest="verbose",
default=1,type=int,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
inline std::string_view statement::column_value<std::string_view>(int idx) const noexcept
{
auto first = (const char *)sqlite3_column_text(c_ptr(), idx);
auto size = (size_t)sqlite3_column_bytes(c_ptr(), idx);
return std::string_view(first, size);
}
#if __cpp_char8_t >= 201811
template<>
inline std::u8string_view statement::column_value<std::u8string_view>(int idx) const noexcept
{
auto first = (const char8_t *)sqlite3_column_text(c_ptr(), idx);
auto size = (size_t)sqlite3_column_bytes(c_ptr(), idx);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn is_same_type(other: i32) -> bool {
$(other == NPY_TYPES::$npy_types as i32 ||)+ false
}
fn npy_data_type() -> NpyDataType {
NpyDataType::$npy_dat_t
| ise-uiuc/Magicoder-OSS-Instruct-75K |
exit $? | ise-uiuc/Magicoder-OSS-Instruct-75K |
if isinstance(scene, tina.PTScene):
scene.lighting.set_lights(np.array([
[0, 0.92, 0],
], dtype=np.float32))
scene.lighting.set_light_radii(np.array([
0.078,
], dtype=np.float32))
scene.lighting.set_light_colors(np.array([
[1.0, 1.0, 1.0],
], dtype=np.float32))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if [[ "$3" == "" ]] ; then
echo "error: missing path to the configuration file template"; exit 1
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TOKEN = ""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
total_loss = 0.0
num_batches = 0
train_top1.reset_states()
train_top5.reset_states()
if not dali_mode:
train_iter = iter(train_input)
for _ in range(nstep_per_epoch):
# on_batch_begin
global_steps += 1
if global_steps == 1:
start_time = time.time()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</>
);
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Name for the canticle in its own language
pub local_name: String,
/// Latin name for the canticle
pub latin_name: Option<String>,
/// The content of the psalm, by section
pub sections: Vec<CanticleSection>,
}
#[derive(Clone, Debug, Hash, Eq, PartialEq, Serialize, Deserialize)]
pub struct CanticleSection {
/// Title of section, if any
pub title: Option<String>,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# clients through the server
import socket
import thread
import sys
def recv_data():
"Receive data from other clients connected to server"
while 1:
try:
recv_data = client_socket.recv(4096)
except:
#Handle the case when server process terminates
print ("Server closed connection, thread exiting.")
thread.interrupt_main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
++count;
}
while(k != 2*i-1)
{
if (count <= rows-1)
{
cout << i+k << " ";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from . import colored
from . import progress
from .core import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const gameName = "саванна";
const description = "Тренировка Саванна развивает словарный запас. Чем больше слов ты знаешь, тем больше очков опыта получишь.";
return (
<GameMenu gameName={gameName} description={description} path="savannah" />
);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
def __init__(self, d, dil, nin, nout, gpu=True):
self.d = d
self.nin = nin
self.nout = nout
# Fill dilation list
if dil:
dil.reset()
self.dl = np.array([dil.nextdil() for i in range(d)],dtype=np.int32)
# Set up temporary images, force creation in first calls
self.ims = np.zeros(1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>scripts/compute_rmse.py
#!/usr/bin/python
import math
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export type Something = Diff<any, Nothing>;
/**
* Check if given value is of type Nothing.
*
* @param {Nothing | Something} value - Any type of value.
* @returns {boolean} true if value is Nothing, false if value Something.
*/
export function isNothing(value: Nothing | Something): boolean {
return value === null || value === undefined;
}
/**
* Check if given value is of type Something.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Loads the Kodi plugin data from addon.xml"""
root_dir = dirname(abspath(__file__))
pathname = join(root_dir, 'addon.xml')
with open(pathname, 'rb') as addon_xml:
addon_xml_contents = addon_xml.read()
_id = search(
r'(?<!xml )id="(.+?)"',
addon_xml_contents).group(1)
author = search(
r'(?<!xml )provider-name="(.+?)"',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.logger.exception(data_retrieval_exception)
try:
processed_data = self._process_data(data_retrieval_failed,
[data_retrieval_exception],
[data])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(act_limit) | ise-uiuc/Magicoder-OSS-Instruct-75K |
result = await connection.execute(
sa.insert(Log).values(params.dict()).returning(*Log.__table__.columns)
)
if result.rowcount == 0:
raise HTTPException(status_code=500, detail="The log could not be created")
except IntegrityError:
raise HTTPException(status_code=400, detail=f"No logger with id {params.logger_id}")
created_log = await result.fetchone()
return dict(created_log)
@router.get('/latest')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
:type nums: List[int]
:rtype: int
"""
nums_set = set(nums)
full_length = len(nums) + 1
for num in range(full_length):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ImageSearchPresenter: BasePresenter {
// MARK: - Properties
weak var viewController: ImageSearchViewControllerProtocol!
// MARK: - Methods
}
// MARK: - ImageSearchPresenterProtocol
extension ImageSearchPresenter: ImageSearchPresenterProtocol {
func prepareRequirementsForPresentation() {
viewController.properlyPresentDetailView()
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Text;
namespace BigFloatingPoint.FunctionalTests.UsingOperators
{
public class WhenIncrementing : IncrementTest
{
protected override BigFloat PostIncrement(ref BigFloat value)
{
return value++;
}
protected override BigFloat PreIncrement(ref BigFloat value)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// The simplest way to initialize a new gtk application
let application =
Application::new(None, Default::default()).expect("failed to initialize GTK application");
// UI initialization
application.connect_activate(|app| {
// Window
let window = ApplicationWindow::new(app);
window.set_title("First GTK Program");
window.set_default_size(350, 70);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:param data: A python dictionary.
"""
mapper = inspect(model_instance.__class__)
for key in data:
if key in mapper.c:
setattr(model_instance, key, data[key])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def debug(self, tag, msg, *args):
"""
Log '[tag] msg % args' with severity 'DEBUG'.
Args:
tag (str): Logger tag.
msg (str): Logger message.
args (Any): Auxiliary value.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
which tmux > /dev/null 2>&1
if (( $? != 0 )); then
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BOOST_TEST(c == "World");
BOOST_TEST(c == Config("World"));
BOOST_TEST(c == String("World"));
BOOST_TEST(c != "hello");
BOOST_TEST(c != Config("hello"));
// Bool
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export * from './GridLines';
//# sourceMappingURL=index.d.ts.map | ise-uiuc/Magicoder-OSS-Instruct-75K |
)
def handle_solution_attempt(event, vk_api, questions, db, keyboard):
restored_answer = db.get(event.user_id).decode()
correct_answer = restored_answer.replace(' (', '.')
if event.text == correct_answer.split('.')[0]:
logger.info(f'User {event.user_id} answered correctly!')
vk_api.messages.send(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Create your tests here.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
return true
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@JsonIgnore
private final Environment env;
@Override
public String getHash() {
return hash;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
blueSlider.value = 0
blueSlider.maximumValue = 0.0
blueSlider.maximumValue = 255.0
alphaLabel.text = "Alpha"
alphaStepper.value = 1.0
alphaStepper.minimumValue = 0.0
alphaStepper.maximumValue = 1.0
alphaStepper.stepValue = 0.1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
continue
fi
local file=
for file in "$dir"/*; do
concat "$file"
| 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.