seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
// MARK: UINavigationControllerDelegate
public func navigationController(_ navigationController: UINavigationController, animationControllerFor operation: UINavigationControllerOperation, from fromVC: UIViewController, to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
if (isInteractivelyPopping && operation == .pop) {
return interactivePopAnimator
}
return nil
}
public func navigationController(_ navigationController: UINavigationController, interactionControllerFor animationController: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? {
if (isInteractivelyPopping) {
return interactivePopAnimator
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bool freezeRotations;
bool monochromeDebris;
float debrisLifetime;
float debrisScale;
float velocityMultiplier;
float drag;
};
bool LoadConfig();
void SetupConfig(); | ise-uiuc/Magicoder-OSS-Instruct-75K |
// fn test_it_create_configuration() {
// let config_id = format!("riklet-{}.toml", Uuid::new_v4());
// let config_path = std::env::temp_dir().join(PathBuf::from(config_id));
//
// assert!(!&config_path.exists());
//
// let configuration = Configuration::load().expect("Failed to load configuration");
//
// assert!(&config_path.exists());
// assert_eq!(configuration, Configuration::default())
// }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn validation_message(&self) -> String {
self.inner.validation_message().unwrap_or(String::new())
}
}
impl From<web_sys::HtmlTextAreaElement> for HtmlTextareaElement {
fn from(inner: web_sys::HtmlTextAreaElement) -> Self {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private ObjectMapper objectMapper;
@Mock
private JsonFactory jsonFactory;
@Rule
public MockitoRule mockitoRule = MockitoJUnit.rule();
private DefaultJsonableJacksonService service;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
static let title = "Name is Empty"
static let message = "Type any name you want to save it with and try again"
}
struct Identifier {
static let cell = "name"
static let controlsController = "Controls Window Controller"
}
struct Error {
static let Creation = "SporthEditor: Error while creating a local storage directory at path:"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Ported from MATLAB Code
<NAME>
24 March 2021
:param prefix: output directory to place generated figure
:param rng: random number generator
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"@org_scala_lang_scala_library",
"@org_scala_lang_scala_reflect"
],
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import numpy as np
import torchvision as tv
class YoloTrans(nn.Module, ABC):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
input_layer = InputBlock(
num_channels=self.num_channels[:2],
kernel_size=self.kernel_size[0],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if id is None:
ppl = [Person(p) for p in pplclxn.find()]
log.debug(ppl)
else:
p = pplclxn.find_one({'lname': id})
return Person(p)
return ppl
# return [PEOPLE[key] for key in sorted(PEOPLE.keys())]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
package org.pprun.hjpetstore.dao.hibernate;
import java.util.List;
import javax.annotation.Resource;
import org.junit.Test;
import static org.junit.Assert.*;
import org.junit.Ignore;
import org.pprun.hjpetstore.dao.AbstractDaoTest;
import org.pprun.hjpetstore.dao.CategoryDao;
import org.pprun.hjpetstore.domain.Category;
import org.springframework.test.context.ContextConfiguration;
/**
| ise-uiuc/Magicoder-OSS-Instruct-75K |
declare(strict_types=1);
require __DIR__.'/../vendor/autoload.php';
require __DIR__.'/lib/example-helper.php';
$tmpDir = createTestFiles();
echo "Chmod 0777 recursively ...\n\n";
$tmpDir->chmod(0777, true);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from store.neo4jstore import Neo4jStore
from store.sqlitestore import SqliteStore
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn metrics(&self, session: &Session) -> HashMap<&str, i64> {
let context = Context::new(self.core.clone(), session.clone());
let mut m = HashMap::new();
m.insert("affected_file_count", {
let mut count = 0;
self
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from js_reimpl_common import run_op_chapter1_chapter2
def run_op(keys, op, **kwargs):
return run_op_chapter1_chapter2("chapter1", None, keys, op, **kwargs)
def create_new(numbers):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while(timer < shakeDuration) {
transform.localPosition = transform.localPosition + new
Vector3(Random.Range(-shakeIntensity, shakeIntensity), 0f, Random.Range(-shakeIntensity, shakeIntensity));
yield return null;
timer += Time.deltaTime;
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
yield
foremanlite.logging.teardown()
@pytest.fixture
| ise-uiuc/Magicoder-OSS-Instruct-75K |
columns: table => new
{
id = table.Column<int>(nullable: false)
.Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
n = table.Column<int>(nullable: true),
comment = table.Column<string>(maxLength: 4000, nullable: true),
location = table.Column<string>(maxLength: 250, nullable: true),
timestamp = table.Column<string>(maxLength: 50, nullable: true),
SCORM_Course_id = table.Column<int>(nullable: true),
SCO_identifier = table.Column<string>(maxLength: 255, nullable: true)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn canon_escaped_first_line() {
assert_canon(
b"- --foo\nbar\n- --baz\n--\n",
b"--foo\nbar\n--baz\n",
b"--foo\r\nbar\r\n--baz",
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for coords in ENEMY_SPAWNS:
for z in range(3):
sm.spawnMob(WATCHMAN, coords[0] + z, coords[1], False) # we add z so they dont spawn all clumped together | ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# 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, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from django.urls import reverse
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test
| ise-uiuc/Magicoder-OSS-Instruct-75K |
detector->appId = pattern.client_id;
else
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pos = mc.player.getTilePos()
x = pos.x
z = pos.z
distance = math.sqrt((homeX - x) ** 2 + (homeZ - z) ** 2)
far = distance <= 50
mc.postToChat("Your home is nearby: " + str(far))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
IUnitOfWork PeekUnitOfWork();
T GetRepository<T>()
where T : class, IRepository;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
GOPMIN="30"
OUTRES="1920x1080"
FPS="30"
THREADS="0"
QUALITY="ultrafast"
CBR="1000k"
WEBCAM="/dev/video0"
WEBCAM_WH="320:240"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>zero88/qwe-iot-gateway
package io.github.zero88.qwe.iot.data.unit;
interface InternalDataType extends DataType {
InternalDataType setCategory(String category);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert targets.shape[-1] == 3 and targets.shape[-2] == 3
n_joints = predictions.shape[-3]
ori_shape = predictions.shape[:-3]
preds = np.reshape(predictions, [-1, 3, 3])
targs = np.reshape(targets, [-1, 3, 3])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(B[a]) | ise-uiuc/Magicoder-OSS-Instruct-75K |
class TestUser: EVObject {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else
{
var result = await dbService.UpdateItemAsync(id, resourceDocument, dbSettings.ResourcesCollectionId);
resources.Add(result);
}
}
else if (resourceObject.resourceType == "Action Plans")
{
actionPlans = UpsertResourcesActionPlans(resourceObject);
var resourceDocument = JsonUtilities.DeserializeDynamicObject<object>(actionPlans);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Route::post( '/', '\Dexperts\Authentication\Controllers\UserController@store');
Route::get( '/api-token', '\Dexperts\Authentication\Controllers\ApiTokenController@update');
});
Route::prefix('rights')->group(function() {
Route::get('/', '\Dexperts\Authentication\Controllers\RightsController@index');
Route::get('/create', '\Dexperts\Authentication\Controllers\RightsController@create');
Route::post('/', '\Dexperts\Authentication\Controllers\RightsController@store');
Route::get('/{rights}/edit', '\Dexperts\Authentication\Controllers\RightsController@edit');
Route::get('/{rights}/delete', '\Dexperts\Authentication\Controllers\RightsController@delete');
Route::patch( '/{rights}', '\Dexperts\Authentication\Controllers\RightsController@update');
});
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import javax.swing.AbstractAction;
import javax.swing.Action;
import org.junit.Test;
/**
*
* @author boris.heithecker
*/
public class CouchDBMappingsTest {
public CouchDBMappingsTest() {
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// </summary>
public class MapperAssemblyLink
{
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Lowest Payment: ", monthlyPayment)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function massDestroy(MassDestroyEventRequest $request)
{
Event::whereIn('id', request('ids'))->delete();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from checkov.bicep.checks.resource.azure import * # noqa
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.all()
.all()
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
See also http://gazebosim.org/tutorials/?tut=ros_comm
== Table of contents ==
%TOC%
"""
ROBOT_LIBRARY_SCOPE = 'SUITE'
def __init__(self):
self.ros_lib = BuiltIn().get_library_instance('RosGazeboLibrary.ROS')
# Create and destroy models in simulation
# http://gazebosim.org/tutorials/?tut=ros_comm#Services:Createanddestroymodelsinsimulation
| ise-uiuc/Magicoder-OSS-Instruct-75K |
});
}
}
};
export default requiresAuthorize;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertFalse(self.storage_pool.get_orphaned_volumes())
def test_get_file_list(self):
host_mock = Mock()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private readonly IExpressionExecutor _condition;
public Value? Execute(Frame frame, TextWriter output)
{
while (_condition.Execute(frame, output).AsBoolean)
{
var result = _body.Execute(frame, output);
if (result.HasValue)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return image[len(registry) + 1:]
fatal_error("Invalid image to strip: %s Registry not in whitelist: %s", image, WHITELISTED_DOCKER_REGISTRIES)
def mirror_images(images: List[str]):
for image in images:
relative_image = strip_image_registry(image)
for mirror in DOCKER_REGISTRY_MIRRORS:
mirror_image = '/'.join((mirror, relative_image))
try:
run_cmd(['docker', 'tag', image, mirror_image])
run_cmd(['docker', 'push', mirror_image])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
impl Repository {
pub fn new(response: RepositoryResponse) -> Result<Repository> {
Ok(Repository {
created_at: response.created_at.parse::<DateTime<Utc>>()?,
updated_at: response.updated_at.parse::<DateTime<Utc>>()?,
size: response.size,
forks_count: response.forks_count,
})
}
}
impl fmt::Display for Issue {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let systemAttributes: AnyObject?
do {
systemAttributes = try FileManager.default.attributesOfFileSystem(forPath: paths.last!) as AnyObject?
let freeSize = systemAttributes?[FileAttributeKey.systemFreeSize] as? NSNumber
return freeSize
} catch let error as NSError {
debugPrint("Error Obtaining System Memory Info: Domain = \(error.domain), Code = \(error.code)")
return nil
}
}
public func size(_ length : Int64) -> Float {
let data = Float64(length)
if data >= gigabytes {
return Float(data / gigabytes)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public bool StopsNextTestsIfFail;
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
public void error(CharSequence content) {
if (logger != null) {
logger.error(content);
}
}
public void error(CharSequence content, Throwable error) {
if (logger != null) {
logger.error(content, error);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// GoogleTranslateSwift
//
// Created by Daniel Saidi on 2021-11-15.
// Copyright © 2021 Daniel Saidi. All rights reserved.
//
import Foundation
import SwiftKit
struct GoogleTranslateLanguageDetectionApiResult: ApiModel {
let data: ResultData
struct ResultData: Decodable {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import {observer} from 'mobx-react';
import * as React from 'react';
import {SchemaDir} from '../../../../../domain/states/objects/fileTree/SchemaDir';
import {SchemaFile} from '../../../../../domain/states/objects/fileTree/SchemaFile';
import {SchemaTree} from '../../../../../domain/states/objects/fileTree/SchemaTree';
import {SchemaTreeItem} from '../../../../../domain/states/objects/fileTree/SchemaTreeItem';
import {If} from '../../helper/If';
import {Icon} from '../Icon';
import {Link} from '../Link';
import styles from './FileTreeStyles.scss';
import {SchemaFileVariant} from "../../../../../domain/states/objects/fileTree/SchemaFileVariant";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Adds a --start-ip-rotation flag to parser."""
help_text = """\
Start the rotation of this cluster to a new IP. For example:
$ {command} example-cluster --start-ip-rotation
This causes the cluster to serve on two IPs, and will initiate a node upgrade \
to point to the new IP."""
parser.add_argument(
'--start-ip-rotation',
action='store_true',
default=False,
hidden=hidden,
help=help_text)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function testGetPrimaryFieldAsRouteParametersIfRouteParametersNotSetted()
{
$row = $this->createMock(Row::class);
$row->method('getPrimaryField')->willReturn('id');
$row->method('getPrimaryFieldValue')->willReturn(1);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// configuration database
// $config['db']['database'] = "";
// $config['db']['username'] = "";
// $config['db']['password'] = "";
// route
$config['route']['default'] = "world";
?> | ise-uiuc/Magicoder-OSS-Instruct-75K |
("ᆱ/Pᄉ", "ᆷᄊ"),
("ᆱ/Pᄌ", "ᆷᄍ") ]
for str1, str2 in pairs:
out = re.sub(str1, str2, out)
gloss(verbose, out, inp, rule)
return out
def balb(inp, descriptive=False, verbose=False):
rule = rule_id2text["10.1"]
out = inp
syllable_final_or_consonants = "($|[^ᄋᄒ])"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
res = self.request(url)
corpus = Corpus.from_dict(res)
# corpus = Corpus(name=res['name'], description=res['description'])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
del states_dict_new[key]
torch.save(states_dict_new, save_path) | ise-uiuc/Magicoder-OSS-Instruct-75K |
{ $sliders= Slider::orderBy('priority','asc')->get();
$products = Product::orderBy('id','desc')->paginate(3);
return view('frontend.pages.index',compact('products','sliders'));
}
public function contact()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
protocol=JsonDocument,
)
if value is not None:
return self.get_dict_as_object(value, self.cls,
ignore_wrappers=self.ignore_wrappers,
complex_as=self.complex_as,
protocol=JsonDocument,
)
return process
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub type AutoExecutableFactory = fn() -> ExecutableFactoryResult;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
str(config['test_merchant1']['merchant_id']),
str(config['test_merchant1']['product_id']),
str(amount),
str(config['test_merchant1']['cf']),
config['test_merchant1']['secret_word']
]).lower().encode('utf-8')
md5_hash = hashlib.md5()
md5_hash.update(string_for_signature)
sign = md5_hash.hexdigest()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package de.andidog.mobiprint;
public class FilteredOrderCollectionAdapter
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
original_cmd_line = copy.deepcopy(sys.argv)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
return true
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class Structure : MonoBehaviour
{
public Inventory Inventory = new Inventory();
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
useEffect(() => {
const subscription = store.subscribe(key, setValue, {
withInitialValue: true,
}) as Subscription;
return () => subscription.unsubscribe();
}, []);
return [value, setter];
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
MDPATH=`dirname $f`
echo "================="
echo $MDPATH
pylint $MDPATH
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Register('porta', 1, 0x10),
Register('ddrb', 1, 0x11),
Register('portb', 1, 0x12),
Register('rcsta1', 1, 0x13),
Register('rcreg1', 1, 0x14),
Register('txsta1', 1, 0x15),
Register('txreg1', 1, 0x16),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# -*- coding: utf-8 -*-
"""
Created on Fri Sep 27 10:01:04 2019
@author: hamil
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
width_origin,
width_new,
'The width has not changed. It is still ' + str(width_origin) + 'px'
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return jsonify(serializable_format), 201
# return jsonify(node.tangle.DAG), 201
# problem with the original code was that, DAG dictionary has Transaction Objects as values,
# and those are not serializable as JSON objects.
# return jsonify(node.DAG), 201
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def dobro(preco):
res = preco * 2
return res
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class MemberExampleTestCase(unittest.TestCase):
def test1(self):
x = JSGPython('''doc {
last_name : @string, # exactly one last name of type string
first_name : @string+ # array or one or more first names
age : @int?, # optional age of type int
weight : @number* # array of zero or more weights
}
''')
rslts = x.conforms('''
{ "last_name" : "snooter",
"first_name" : ["grunt", "peter"],
"weight" : []
}''')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if use_cuda:
images = images.cuda()
labels = labels.cuda()
images = Variable(images.view(-1, 28 * 28))
labels = Variable(labels)
# Forward + Backward + Optimize
opt_net1.zero_grad() # zero the gradient buffer
opt_net2.zero_grad() # zero the gradient buffer
opt_dni.zero_grad() # zero the gradient buffer
| ise-uiuc/Magicoder-OSS-Instruct-75K |
eventTableView.reloadData()
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from odoo import fields, models
class ProjectTask(models.Model):
_inherit = "project.task"
priority = fields.Selection(selection_add=[("2", "High"), ("3", "Very High")])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
npts = 500
h_1 = np.zeros(npts)
h_2 = np.zeros(npts)
h_3 = np.zeros(npts)
h_4 = np.zeros(npts)
h_5 = np.zeros(npts)
h_7 = np.zeros(npts)
for m in range(npts):
h_1[m] = return_point(m, npts, 1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<SiteNav isHome={false} />
| ise-uiuc/Magicoder-OSS-Instruct-75K |
operations = [
migrations.AlterField(
model_name='hostlist',
name='f_groups_id',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
org_repos = GithubRepo.schema().loads(response.text, many=True)
org_repos.sort(key=operator.attrgetter('watchers'), reverse=True)
print(f'Top 3 {org_name} Repos:')
printdump(org_repos[0:3])
print(f'\nTop 10 {org_name} Repos:')
printtable(org_repos[0:10], headers=['name', 'lang', 'watchers', 'forks'])
inspect_vars({'org_repos': org_repos})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
published_at__ne=None,
)
context = {"episodes": episodes, "settings": settings}
with open(os.path.join(settings.TEMPLATE_PATH, "rss", "feed_template.xml")) as fh:
template = Template(fh.read())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//! Default constructor.
Population::Population():
mIsParsed(true),
mYear(-1),
mTotalPop(-1),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import torch
import torchvision
import torchvision.transforms as transforms
import torch.nn as nn
# import torch.nn.functional as F
import torch.optim as optim
import utils.utils as util
import utils.quantization as q
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using AutoMapper;
using LMSContracts.Interfaces;
using LMSEntities.DataTransferObjects;
using LMSEntities.Helpers;
using LMSEntities.Models;
using LMSRepository.Data;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
?> | ise-uiuc/Magicoder-OSS-Instruct-75K |
* get all the IF rows from attributeDefNameSet about this id (immediate only). The ones returned imply that
* this is also assigned. Those are the parents, this is the child.
* @param attributeDefNameId
| ise-uiuc/Magicoder-OSS-Instruct-75K |
hidden_all.append(net[seq_index])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} from './use-browser-cache-provider';
export type { BrowserCacheContextProviderProps } from './use-browser-cache-provider';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
function populateToCitizen() {
/usr/local/bin/citizen provider \
$(jq -r .namespace ../version.json) \
$(jq -r .provider ../version.json) \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class Product
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return super(CrashFormView, self).dispatch(*args, **kwargs)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<td>%%send_to_spark -i variable -t str -n var</td>
<td>Sends a variable from local output to spark cluster.
<br/>
Parameters:
<ul>
<li>-i VAR_NAME: Local Pandas DataFrame(or String) of name VAR_NAME will be available in the %%spark context as a
Spark dataframe(or String) with the same name.</li>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function down()
{
Schema::drop('examings');
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#region Value
string displayName = null;
DisplayAttribute displayAttribute = null;
if (ReflectionHelpers.TryGetAttribute(property, out displayAttribute))
{
displayName = displayAttribute.GetName();
}
else
{
displayName = property.Name;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<Button endIcon={<>⟬</>}>test default button</Button>
);
expect(container.firstChild).toMatchSnapshot();
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dict(step='all')
])
),
rangeslider=dict(
visible=True,
thickness=0.3
),
type='date'
))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Bean
public MQListener getListenerWrapper() {
return new MQListener();
}*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Draw Function from pygames
Using the screen blit
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def setUp(self):
pass
def test_explicit_definition(self):
pass
class SQLPerformanceTestCaseTests(unittest.TestCase):
def test_infer_metadata(self):
test_loader = TINCTestLoader()
test_suite = test_loader.loadTestsFromTestCase(MockSQLPerformanceTestCase)
test_case = None
for case in test_suite._tests:
if case.name == "MockSQLPerformanceTestCase.test_query02":
test_case = case
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public interface HrAttendanceGroupSonMapper extends MyBaseMapper<HrAttendanceGroupSon> {
/**
* 查询考勤组排班子列表
*
* @param hrAttendanceGroupSon 考勤组排班子
* @return 考勤组排班子集合
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
parser = vars(get_parser().parse_args(args))
# Get arguments
data_dir = os.path.abspath(parser["data_dir"])
n_splits = int(parser["CV"])
if n_splits > 1:
out_dir = os.path.join(data_dir, parser["out_dir"], "%i_CV" % n_splits)
else:
| 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.