seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
}
const pedidoDeletado = await repo.delete(id);
if (!pedidoDeletado) {
throw new Error("Erro ao deletar pedido.");
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
parq.publish(bucket=bucket, key=key,
dataframe=dataframe, partitions=[])
def test_set_metadata_correctly(self):
columns, dataframe = self.setup_df()
bucket, key = self.setup_s3()
s3_client = boto3.client('s3')
partitions = ['grouped_col']
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
const char *vmember = imageOrDerived ? "mVertexDataCache" : "mVertexData";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
f_input.create_dataset(grp_name, data=dataset_preprocessed, compression="gzip")
f_input.flush()
print(f'{grp_name} input computation done')
else:
dataset_preprocessed = f_input[grp_name][...]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return model['pk']
else:
if all(model['fields'][field] == fields[field]
for field in fields):
return model['pk']
def _exists(self, model_name, fields):
"""Check if a specific record exists."""
return self._get_id... | ise-uiuc/Magicoder-OSS-Instruct-75K |
uint8_t Buffer[100];
size_t Buffer_Offset = 0;
for (; Buffer_Offset < FromUser.size() / 2; Buffer_Offset++)
{
const char L1 = FromUser[Buffer_Offset * 2];
const char L2 = FromUser[Buffer_Offset * 2 + 1];
if (!((L1 >= '0' && L1 <= '9') || (L1 >= 'A' && L1 <= 'F'))
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Converts a hexadecimal to an array of u8.
///
/// # Arguments
/// * `hex` - a hexadecimal ```String```.
pub fn hex_to_vec(hex: &str) -> Vec<u8> {
let mut vec = Vec::with_capacity(hex.len());
for chunk in hex.as_bytes().chunks(2) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
create_flavor_form.switch_to(1)
for project_name in selected_projects:
create_flavor_form.membership.allocate_item(project_name)
create_flavor_form.submit()
def edit_flavor(self, name, new_name=None, vcpus=None, ram=None,
root_disk=None, ephemera... | ise-uiuc/Magicoder-OSS-Instruct-75K |
score = score_corpus(predictions, ground_truth, lambda pred, ground: type_prefix_score(pred, ground))
log.info(f"average type prefix score (top-1): {score:.4}")
score = score_corpus(predictions, ground_truth, lambda pred, ground: type_prefix_score(pred, ground, weighted=True))
log.info(f"average weighted type prefix ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
$created = $service->createPermission($request->except('_token'));
if(!$created) {
return redirect()->back()->with('error', 'Permission not created');
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# file generated by setuptools_scm
# don't change, don't track in version control
version = '1.9.0'
version_tuple = (1, 9, 0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"users": [],
"contexts": [],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def runThread(func, args=(), name=None):
thr = threading.Thread(target=execute, args=(func, args), name=name or func.func_name)
try:
thr.start()
except threading.ThreadError:
crashlog("runThread.%s" % name)
class VK(object):
"""
The base class containts most of functions to work with VK
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cmake -DPostgreSQL_TYPE_INCLUDE_DIR=/usr/include/postgresql ..
make
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo ip link add vxlan0 type vxlan \
id 42 \
dstport 4789 \
dev eth0
# maintain bridge fdb
sudo bridge fdb append 00:00:00:00:00:00 dev vxlan0 dst 192.168.8.101
| ise-uiuc/Magicoder-OSS-Instruct-75K |
href='#'
className='group w-full md:w-24 lg:w-40 h-56 md:h-24 lg:h-40 block self-start flex-shrink-0 bg-gray-100 overflow-hidden rounded-lg shadow-lg relative'
>
<img
src='https://images.unsplash.com/photo-1538333702852-c1b7a2a93001?ixid=MnwxMjA3fDB8MHxwaG90by... | ise-uiuc/Magicoder-OSS-Instruct-75K |
sa.Column('name', sa.String(), nullable=True),
sa.ForeignKeyConstraint(['quota'], ['quota.guid'], ),
sa.PrimaryKeyConstraint('quota', 'guid', 'date_collected', name='quota_serviceguid_date')
)
### end Alembic commands ###
def downgrade():
### commands auto generated by Alembic - please adjust!... | ise-uiuc/Magicoder-OSS-Instruct-75K |
serializedObject.ApplyModifiedProperties();
}
}
#endif
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
T = [4, 11, 12, 4, 10, 12, 9, 3, 4, 11, 10, 10]
print(chef_monocarp(n, T))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def average_acceleration(v1 : float, v0 : float, t1 : float, t0 : float) -> float:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let preset: CircuitPreset = .resistorCapacitor
PlaygroundPage.current.wantsFullScreenLiveView = true
PlaygroundPage.current.needsIndefiniteExecution = true
PlaygroundPage.current.setLiveView(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, interval, func):
super(KeepAlive, self).__init__()
self.call_every = interval
self.func = func
@property
def active(self):
""" activated """
return self.__active
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$log->info("vérification des données entrantes \$_POST","");
$POST_Data_Avail=checkIncomingData($_POST);
?> | ise-uiuc/Magicoder-OSS-Instruct-75K |
from . import managers
| ise-uiuc/Magicoder-OSS-Instruct-75K |
log(message: string): void;
error(message: string): void;
warn(message: string): void;
debug(message: string): void;
verbose(message: string): void;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.fail("Bad values returned by Snapshot: %s" % err)
tablet_31981.init_tablet('idle', start=True)
# do not specify a MANIFEST, see if 'default' works
call(["touch", "/tmp/vtSimulateFetchFailures"])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
///A test for Excluded
///</summary>
[Test]
public void ExcludedTest()
{
AtomCategory category = new AtomCategory("term");
QueryCategory target = new QueryCategory(category); // TODO: Initialize to an appropriate value
bool expected = fa... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn new() -> Self {
let form = Application.CreateForm();
// 这里只做个演示
#[cfg(all(target_env = "msvc", target_os = "windows"))]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
endmodule
'''.format(i))
assert_dynamic_area(fp, i, 'neg_clk_with_enable_with_init_inferred_var_len')
import lfsr_area
re_lfsr = re.compile(r'lfsr_(\d+)\.v')
for fn in glob.glob('lfsr_*.v'):
m = re_lfsr.match(fn)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
firstName: {
type: String,
required: true,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>vishalnalwa/DAT210x-master---Old
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 19 17:14:36 2017
@author: m037382
"""
import pandas as pd
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TERMUX_PKG_SHA256=7c67875a1db1c1180a7579545d8981c77444cba99c5d4b46664889732765608c
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="readline, pcre2"
TERMUX_PKG_FORCE_CMAKE=true
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return None, gx, gy
def where(condition, x, y):
"""Choose elements depending on condition.
This function choose values depending on a given ``condition``.
All ``condition``, ``x``, and ``y`` must have the same shape.
Args:
condition (~chainer.Variable): Variable containing the condit... | ise-uiuc/Magicoder-OSS-Instruct-75K |
const CS_MINLENGTH = 'minlength';
/**
* constraint maximum length
* @var string
*/
const CS_MAXLENGTH = 'maxlenght';
/**
* constraint minimum value
| ise-uiuc/Magicoder-OSS-Instruct-75K |
. "$this_folder/mysys_common.inc"
# parameter check
usage()
{
cat <<EOM
usage:
$(basename $0) <keyvault_name> <service_principal_appid>
assigns keyvault read permissions to a service principal
EOM
exit 1
}
[ -z "$1" ] && { usage; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[inline(always)]
pub fn new(address: Address) -> Self {
Self(address)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
np.random.seed(0)
t = 1.5 * np.pi * (1 + 3 * np.random.rand(1, n_samples))
x = t * np.cos(t)
y = t * np.sin(t)
X = np.concatenate((x, y))
X += .7 * np.random.randn(2, n_samples)
X = X.T
# Create a graph capturing local connectivity. Larger number of neighbors
# will give more homogeneous clusters to the cost of comp... | ise-uiuc/Magicoder-OSS-Instruct-75K |
fn = lambda i: (i.X, i.Y)
else:
raise ValueError('Could not find appropriate columns. Possible combinations: lon/lat, lng/lat, long/lat, longitude/latitude, x/y, or X/Y')
df['geometry'] = df.apply(lambda i: Point(*fn(i)), axis=1)
return gpd.GeoDataFrame(df, crs=4326)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import time
from pe069 import prime_sieve
if __name__ == '__main__':
start = time.process_time()
prime = prime_sieve(300000)
for i in range(0, len(prime), 2):
if 2 * (i + 1) * prime[i] % prime[i] ** 2 > 10000000000:
print(i + 1)
break
print('Runtime is', time.process_tim... | ise-uiuc/Magicoder-OSS-Instruct-75K |
subgraph = self.create_subgraph_with_intrinsics(intrinsics, A, rules, SubA(),
_suba_root_subject_types)
#TODO perhaps intrinsics should be marked in the dot format somehow
self.assert_equal_with_printing(dedent("""
digraph {
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"headers": dict(err.headers.items()),
"body": '\n'.join(err.readlines())
})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int main(int argc, char* argv[])
{
cxxopts::Options options("ccoold", "CCool daemon");
options.add_options()
("h,help", "Show usage")
("i,interface", "Interface to use", cxxopts::value<std::string>()->default_value("usb"))
("n,no-daemon", "Do not run daemonized")
("s,socket", "Use specified socket", cxxopts::... | ise-uiuc/Magicoder-OSS-Instruct-75K |
all_books = BookModel.objects.all()
return render(request, 'index.html', {'books': all_books})
def create(request):
context = {}
form = BookModelForm(request.POST or None)
if form.is_valid():
form.save()
return redirect('books:index')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/usr/bin/env bash
echo '********** virtualenv venv **********'
echo `virtualenv venv`
source "./venv/bin/activate"
echo '********** pip **********'
echo `pip install --upgrade pip`
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.RepellerRadius = repellerRadius;
}
public int RepellerRadius { get; private set; }
public int RepelPower { get; private set; }
public override char[,] GetImage()
{
return new char[,] { { 'R' } };
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else: # Turn the led off in any other case
state = stateOFF
pi.write(LED_GPIO, 0)
logger.info('dweet state after receving dweet = ' + dweetState)
def print_instructions():
print("LED Control URLs - Try them in your web browser:")
print(" On : " + dweetURL + "/dweet/for/" + dweetID() + "?state=ON")
prin... | ise-uiuc/Magicoder-OSS-Instruct-75K |
/// If multiple calls needs to be made to HTTP API, use [RParifClient](./client/struct.RParifClient.html)
///
/// # Arguments
///
/// * `api_key` - API key
///
/// * `cities` - List of INSEE city code. See [here](https://data.opendatasoft.com/explore/dataset/correspondance-code-insee-code-postal%40public/table/)
/// or... | ise-uiuc/Magicoder-OSS-Instruct-75K |
field=models.CharField(default=1, max_length=255),
preserve_default=False,
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
father_occupation = models.CharField(max_length=200)
#Mother
mother_name = models.CharField(max_length=200)
mother_contact = models.CharField(max_length=10)
mother_email = models.EmailField(max_length = 200)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import os
import sys
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(linhas):
for j in range(colunas):
r, g, b = matrix_colorida[i, j]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def getting_dota2com_bio_stats(hero):
bio_stats = ""
output = open_site("http://www.dota2.com/hero/%s/?l=english" % str(hero))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class EMU(ExporterModel.Module):
def __init__(self, name=None):
if not name:
name = self.__class__.__name__
super(EMU, self).__init__(name, visible=True, core=True)
self.model = EMU_model | ise-uiuc/Magicoder-OSS-Instruct-75K |
#ifdef __cplusplus
}
#endif
| ise-uiuc/Magicoder-OSS-Instruct-75K |
XCTAssertEqual(inst.organizationReference?.reference, "Organization/1")
XCTAssertEqual(inst.patientReference?.reference, "Patient/pat1")
XCTAssertEqual(inst.priority?.code, "normal")
XCTAssertEqual(inst.targetReference?.reference, "Organization/2")
XCTAssertEqual(inst.text?.div, "<div>A human-readable renderi... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Utilities
moreutils parallel stow fortune sshfs
mosh atop iotop fortunes git vlock
# OS debugging
memtester smartmontools
# CUDA and such
libcupti-dev nvidia-cuda-doc nvidia-cuda-dev nvidia-cuda-toolkit
nvidia-visual-profiler
# Python
python-pip python-dev python-virtualenv ipy... | ise-uiuc/Magicoder-OSS-Instruct-75K |
/*---------------------------------------------------------------------------*/
/* Copyright (c) ORDBOK contributors. All rights reserved. */
/* Licensed under the MIT License. See the LICENSE file in the project root. */
/*---------------------------------------------------------------------------*/
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
setup() {
if [ "${BATS_TEST_NUMBER}" = 1 ]; then
echo "# Testing ${DOCKER_IMAGE_NAME_TO_TEST}" >&3
fi
}
@test "We can build successfully the standard Docker image" {
docker build -t "${DOCKER_IMAGE_NAME_TO_TEST}" "${BATS_TEST_DIRNAME}/../"
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
template<typename T, typename U, template <typename...> class seq, typename... Ts>
struct index_impl<T, seq<U, Ts...>> : std::integral_constant<std::size_t, 1 + index_impl<T, seq<Ts...>>::value> {};
template<typename T, typename seq>
struct contains_impl;
template<typename T, template <typename..... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Run all commands in commands.txt. Each command line executes first the model fitting,
# and then creates the trajectory of a single model and the ensemble. Therefore, each
# line can be executed separately and in parallel, for example, on a cluster environment.
cat "../commands.txt" | while read line; do eval "$line... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'''
Unit tests for the dataset parser.
'''
import unittest
from scraper.parser import parse_dataset
from scraper.classes.dataset import Dataset
from scraper.classes.dataverse import Dataverse
class TestParser(unittest.TestCase):
'''
Performs unit tests on the parsers. Requires both
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class args_key_is_empty_or_allowed(auth_base):
"""Denies if args key is non-empty and not allowed."""
def __init__(self, args_key, allowed_extractor_func):
self.args_key = args_key
self.allowed_extractor_func = allowed_extractor_func
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.Emit;
namespace Microsoft.CodeAnalysis.CSharp.Emit
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const [page, setPage] = useState<number>(1);
const { posts, totalPages } = useDrafts(page);
const handlePaginationChange = (
event: React.ChangeEvent<unknown>,
value: number
): void => {
setPage(value);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.file_commit_sha = file_commit_sha
self.content = content
self.github_obj = github_obj
self.repo_last_commit_sha = repo_last_commit_sha
self.pull_num = pull_num
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.g2 = (1-r)*self.g2+r*grad**2
rate = self.g*self.g/(self.g2+1e-16)
self.mem *= (1 - rate)
self.learningRate = self.fixedRate/(max(self.bestIter, 7))
self.mem += 1
alpha = np.minimum(self.learningRate, rate)/(np.sqrt(self.g2)+1e-16)
return params-grad*alpha | ise-uiuc/Magicoder-OSS-Instruct-75K |
tmp = torch.einsum("nm,bnj,jk->bmk",
net[k].weight,
tmp,
net[k].weight)
H = torch.cat(H, dim=1)
# mean over batch size scaled by the size of the dataset
H = h_scale * torch.mean(H, dim=... | ise-uiuc/Magicoder-OSS-Instruct-75K |
/// A separator is a _single line_ of text that can be used to annotate other choices. It is not
/// selectable and is skipped over when users navigate.
///
| ise-uiuc/Magicoder-OSS-Instruct-75K |
})
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
makeCellView(index: 5)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logbook.log.info(message)
has_orders = True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class IsPrime<number, 1> {
public:
enum {
primeNumber = 1
};
};
template<int number>
class PrimeNumberPrinter {
public:
PrimeNumberPrinter<number - 1> printer;
enum {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ImageModel() class instance of the single band with only the model components applied to this band
:return: SingleBandMultiModel() instance, which inherits the ImageModel instance
"""
return self._bandmodel
@property
def kwargs_model(self):
"""
:return: keyword... | ise-uiuc/Magicoder-OSS-Instruct-75K |
using UnityEngine.SceneManagement;
public class TransitionScene : MonoBehaviour {
public Animator animator;
private int levelToLoad;
public void FadeToLevel(int sceneIndex) {
levelToLoad = sceneIndex;
animator.SetTrigger("FadeOut");
}
public void OnFadeComplete() {
Sce... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return oldElement;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in $(seq 1 $portTests)
do # Getting a random port
#Bash $RANDOM generates only 15 bits of randomness (0 - 32767). If 16-bits are needed, one more bit should be generated (e.g. another call to $RANDOM)
port=$(( $RANDOM % ($portToo - $portFrom + 1) + $portFrom ));
echo "Trying UDP port $port"
sudo... | ise-uiuc/Magicoder-OSS-Instruct-75K |
jetSrc=cms.InputTag("good" + ilabel ),
subjetSrc=cms.InputTag("selected" + ilabel + "Subjets")
)
setattr( process, 'good' + ilabel + 'Packed', imerger )
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Orchestra\Testbench\Tests;
use Orchestra\Testbench\TestCase;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for entry in data:
fields = entry.split()
idx = fields[1]
dG = fields[2]
# attach dG tags to compound objects if present
if self.data.compounds:
# account for running this step compoundless
self.data.compounds[int(idx[0]... | ise-uiuc/Magicoder-OSS-Instruct-75K |
static func from(_ authorizationStatus: CLAuthorizationStatus) -> FlutterLocationPermission {
switch authorizationStatus {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
CswClockedDevice::CswClockedDevice():
_nChannels(0),
pSampleRate(100)
{
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sPayload.clear();
sFromNickName.clear();
sToNickName.clear();
sDestination.clear();
}
std::string CChat::ToString() const
{
return strprintf(
"CChat(\n"
" nVersion = %d\n"
" nTime = %d\n"
" nID = %d\n"
" bPrivate = %d\n"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 'collection' : 'musicfans_topics',
# 'polarity_id' : 0,
# 'polarity' : '',
# 'ref_id' : str(topic['_id']),
# }
# json.dump(json_data, fileJ)
#
# for response in topic['responses']:
# json_data = {
# 'payload' : res... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Retrieve the service-inventory records given the `params` criterial
or all.
Other Parameters
----------------
key-value options as defined by the "existing-services" API endpoint.
The `filter` parameter, for example, supports the following
API record... | ise-uiuc/Magicoder-OSS-Instruct-75K |
email=None,
organization=None,
):
self._uuid = generate_uuid()
self.name = name
self.first_name = first_name
self.last_name = last_name
self._parse_name(name)
self.address = address
| ise-uiuc/Magicoder-OSS-Instruct-75K |
};
}
pub(crate) use endpoint;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_norm_wrongInts(self):
filters = self.loadFilters()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from autolens.lens.model.result import ResultDataset
class ResultInterferometer(ResultDataset):
@property
def max_log_likelihood_fit(self):
return self.analysis.fit_interferometer_for_instance(instance=self.instance)
@property
def real_space_mask(self):
return self.max_log_l... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
int main(){
CSample obj;
int a;
while(1){
std::cin >> a;
obj.set(a);
std::cout << "input:"<<obj.get()<< std::endl;
std::cout <<obj.juging()<< std::endl;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ed_head_10 = ed_flights.head(10)
pd_head_10 = pd_flights.head(10)
assert_pandas_eland_frame_equal(pd_head_10, ed_head_10)
ed_tail_8 = ed_head_10.tail(8)
pd_tail_8 = pd_head_10.tail(8)
assert_pandas_eland_frame_equal(pd_tail_8, ed_tail_8)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn main() {
match parse_input_arguments() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
compareToken(
{ o: '', t: `${degreeA}`, d: degreeA },
undefined,
{ o: '', t: `${degreeB}`, d: degreeB },
undefined
)
).toEqual(degreeA - degreeB);
}
});
it("should return negative value if A's token has no degree and B's token has a degree", () => {
expect(
compareTok... | ise-uiuc/Magicoder-OSS-Instruct-75K |
google-chrome
google-drive-file-stream
spotify
slack
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<tr>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# local/srilm_baseline.sh
prepare_int_data.py data/text data/vocab_${vocab_size}.txt data/int_${vocab_size}
time_preprocessing=`date +%s`
time_optimization[2]=`date +%s`
# local/self_test.sh
for order in 3 4 5; do
get_counts.sh data/int_${vocab_size} ${order} data/counts_${vocab_size}_${order}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include <org/apache/poi/poifs/crypt/fwd-POI.hpp>
#include <org/apache/poi/util/fwd-POI.hpp>
#include <java/lang/Object.hpp>
#include <org/apache/poi/poifs/crypt/standard/EncryptionRecord.hpp>
template<typename ComponentType, typename... Bases> struct SubArray;
namespace java
{
namespace io
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let length = (!mask).leading_zeros();
if mask.leading_zeros() == 0 && mask.trailing_zeros() == mask.count_zeros() {
Ok(length as usize)
} else {
Err(CidrError::InvalidPrefixLength)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let authRequest = NSMutableURLRequest()
let bodyString = "grant_type=\(grantType)&resource=\(resourceId)&client_id=\(clientId)&username=\(username)&password=\(password)"
authRequest.URL = NSURL(string: tokenEndPoint)
authRequest.HTTPMethod = requestType
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
kwargs['command'] = self.onScroll
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} // namespace ui
| 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.