seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
TEST_F(PlainTextRangeTest, RangeContainingTableCellBoundary) {
SetBodyInnerHTML(
"<table id='sample' contenteditable><tr><td>a</td><td "
"id='td2'>b</td></tr></table>");
Element* table = GetElementById("sample");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
host.reportDiagnostic(diagnostic);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod user;
pub mod post; | ise-uiuc/Magicoder-OSS-Instruct-75K |
format='[%(asctime)s] %(message)s')
log.info("starting webserver at http://%s:%s/"
% (options.addr or 'localhost', options.port))
httpd = simple_server.WSGIServer((options.addr, options.port),
simple_server.WSGIRequestHandler)
httpd.s... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pickle_file = open(filename, 'wb')
pickle.dump(dimention, pickle_file)
pickle.dump(map_range, pickle_file)
pickle.dump(mapdata, pickle_file)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"sourceNode je NULL v handleApplyTemplatesInstruction!"},
{ ER_NO_NAME_ATTRIB,
"{0} mora vsebovati atribut imena."},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
String strLoc = "Loc_000oo";
String strValue = String.Empty;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from abc import ABC
from pathlib import Path
import pandas as pd
import scrapy
from src.crawl.utils import cleanup
from settings import YEAR, CRAWLING_OUTPUT_FOLDER
BASE_URL = 'https://ku-portal.kyushu-u.ac.jp/campusweb/slbssbdr.do?value(risyunen)={}&value(semekikn)=1&value(kougicd)={}&value(crclumcd)=ZZ'
PROG_DATA... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public SerachResults(Result result) {
this.result = result;
vlInfo = new VerticalLayout();
if (result.getPosterPath() == null) {
imgPoster = new Image("poster.png", "");
} else {
imgPoster = new Image("https://image.tmdb.org/t/p/w300" + result.getPosterPath()... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<!--<!–<a href="http://www.baidu.com" class="wl-project-link" style="background-image:url('images/twitter-icon.png')" target="_blank"></a>–>-->
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<br><br>
Суть каталога заключается в том, что заинтересованный покупатель быстро находит запрашиваемый товар из списка предложенных и, без лишних помех, осуществляет заказ. Подобный подход очень важен для пользователей интернета и посетителей аналогичных сайтов. Мы учитываем ваше мнение и создаем удобство выбора, а та... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from .main import fbnotify | ise-uiuc/Magicoder-OSS-Instruct-75K |
{
enum class SliderCurveType
{
LINEAR = 0,
BEZIER = 1,
CIRCLE = 2
};
struct SliderInfo
{
SliderCurveType curve_type;
std::vector<framework::Vector2<float>> curve_points;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export const wasCompiled=1; | ise-uiuc/Magicoder-OSS-Instruct-75K |
target = extract_target_polygon(bbox, polygons)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
await client.post.find_first(
order={
'desc': 'asc',
},
)
await client.post.find_first(
order={
'title': 'asc',
},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
put a setup.py file containing only a setuptools.setup() invocation.
"""
import setuptools
setuptools.setup()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
current_user: User = Security(get_current_active_user)
) -> User:
"""Gets whether or not the given user is a power user.
Parameters
----------
current_user : User
The current user to check for poweruser status.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return cv2.warpPerspective(img, M, shape, cv2.INTER_NEAREST)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
app = Flask(__name__)
Router.run(app) | ise-uiuc/Magicoder-OSS-Instruct-75K |
class DiGraph(object):
"""Renders a dot digraph built up from nodes and edges."""
@staticmethod
def _render_ID(value):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export declare class Helper {
static jsonStringifyAndEscapeNonASCII(arg: any): string;
static parseLink(resourcePath: string): {
type: string;
objectBody: {
id: string;
self: string;
};
};
static isReadRequest(request: RequestContext): boolean;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
IN_PROGRESS_RUN_STATUSES,
NON_IN_PROGRESS_RUN_STATUSES,
PipelineRun,
PipelineRunStatus,
)
def test_queued_pipeline_origin_check():
fake_pipeline_origin = ExternalPipelineOrigin(
ExternalRepositoryOrigin(
InProcessRepositoryLocationOrigin(
ReconstructableReposito... | ise-uiuc/Magicoder-OSS-Instruct-75K |
// From and to days are the same, the to-hour is before the from-hour and we've done this day before:
if (fromDay != toDay || (fromDay == toDay && fromHour < toHour) ||
(fromDay == toDay && fromHour > toHour && processed > 0))
retur... | ise-uiuc/Magicoder-OSS-Instruct-75K |
resList = resultNums.split(',')
await self.page.waitFor(1 * 1000)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public payIncomeTax():void
{
// ******
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
EXPECT_EQ("-1234567.00", mysqlx::Decimal::from_bytes(mysqlx::Decimal::from_bytes(std::string("\x02\x12\x34\x56\x70\x0d", 6)).to_bytes()).str());
EXPECT_EQ("-123456.11", mysqlx::Decimal::from_bytes(mysqlx::Decimal::from_bytes(std::string("\x02\x12\x34\x56\x11\xd0", 6)).to_bytes()).str());
EXPECT_EQ("1234567.20", m... | ise-uiuc/Magicoder-OSS-Instruct-75K |
void MeshBuilder::submit(Renderer& renderer) {
assert(!m_vertices.empty()); // Submitting empty mesh.
renderer.renderImmediate(RenderMode::TriangleStrip, m_vertices.data(),
static_cast<U32>(m_vertices.size()));
}
MeshBuilder::MeshBuilder(RenderMode renderMode) : m_renderMode{renderMod... | ise-uiuc/Magicoder-OSS-Instruct-75K |
title: Optional[str] = None,
save: Optional[Union[str, pathlib.Path]] = None,
):
"""Plot the RA/DEC Gaia density plot with a sample of objects over-plotted
source: https://vlas.dev/post/gaia-dr2-hrd/
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DIVIDENDS_SOURCES = [dohod_ru.dividends_dohod,
comony_ru.dividends_conomy,
smart_lab_ru.dividends_smart_lab]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[Display(Name = "Phân loại")]
public LogType LogType { get; set; }
[StringLength(2000)]
[Display(Name = "Nội dung")]
public string LogContent { get; set; }
}
public enum LogType
{
Info,
Warning,
Success,
Error,
Exception
}
}... | ise-uiuc/Magicoder-OSS-Instruct-75K |
name = 'Main'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__version__ = '0.0.1'
# HOME = os.path.join(os.path.dirname(__file__), '..', '..')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def next(self, increment=True):
logger.info('next()')
self.cursor = self.cursor + 1 if increment else self.cursor
if self.cursor < len(self.queue):
self.current_request = self.queue[self.cursor]
self.service.access(self.current_request.stop_id, self)
"""
Not allowing wrapped cursor... | ise-uiuc/Magicoder-OSS-Instruct-75K |
except HASL_Error as e:
_LOGGER.error("A communication error occured while "
"updating SI2 sensor: %s", e.details)
errorOccured = True
except Exception as e:
_LOGGER.error("A error occured while "
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"payload": {
"build_num": args.parallel_build_number,
"status": "done"
}
}
)
if response.status_code == 200:
print('Confirmed end of parallel build')
else:
print(
'Attempt ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
struct RootView: View {
}
// MARK: - Body
extension RootView {
var body: some View {
NavigationView {
List {
NavigationLink(destination: ManualObservableObjectExample()) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export * from './nz-checkbox.component';
export * from './nz-checkbox.module';
export * from './nz-checkbox-group.component';
export * from './nz-checkbox-wrapper.component';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return null;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
admin.site.register(Order) | ise-uiuc/Magicoder-OSS-Instruct-75K |
mkdir -pv $OUTPUT
cd $OUTPUT
DRYRUN=${DRYRUN:-}
{
echo "UNO.SH $*"
echo "DATE:" $( date "+%Y-%m-%d %H:%M:%S" )
which python
echo
$DRYRUN python $UNO --cell_feature_subset_path $FEATURES --train_sources $STUDY1 --preprocess_rnaseq $PREPROP_RNASEQ
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('epoch %d of %d, using time: %.2f , loss of train: %.4f' %
(epoch + 1, opt.num_epochs, time.time() - time0, loss_total))
scheduler.step()
# torch.save(model.state_dict(), 'model.pth')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$rp_reason_code_translation_699 = "Die Rate ist zu hoch für die minimal verfügbare Laufzeit. Die Rate wurde verringert.";
$rp_header_bank_transfer = "Rate per Überweisung";
$rp_header_debit = "Rate per Lastschrift";
$rp_switch_payment_type_bank_transfer = "Ich möchte die Ratenzahlungen selbst vorne... | ise-uiuc/Magicoder-OSS-Instruct-75K |
motion = Motion(translation=Vector2(0, 0), rotation=turn_speed)
else:
motion = Motion(translation=Vector2(0, 0), rotation=-turn_speed)
else:
radius = y * y / x
# Angle is clockwise rotation
angle = asin(x... | ise-uiuc/Magicoder-OSS-Instruct-75K |
assert settings.SECRET == 42.0
assert settings.PORT == 8080
assert settings.SERVICE["url"] == "service.com"
assert settings.SERVICE.url == "service.com"
assert settings.SERVICE.port == 80
assert settings.SERVICE.auth.password == "<PASSWORD>"
assert settings.SERVICE.auth.test == 1234
load... | ise-uiuc/Magicoder-OSS-Instruct-75K |
APP_HOMEPAGE="http://localhost:8080/api/MyApi?success=true"
SECONDS_BETWEEN_CONNECT_ATTEMPTS="2"
MAX_ATTEMPTS="5"
app_available=1
start_webserver()
{
echo "Starting the miniature web app with xsp4 ..."
original_dir="$(pwd)"
cd "./${WEB_APP_HOME}/"
xsp4 \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if arr.len() == 1 {
if let Ok(id) = arr[0].as_reference() {
self.change_content_stream(id, content)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub struct Cursor {
pub(in crate::mouse) ptr: *mut SDL_Cursor,
}
impl Drop for Cursor {
fn drop(&mut self) {
unsafe {
SDL_FreeCursor(self.ptr);
}
}
}
impl Cursor {
pub fn default() -> Result<Cursor> {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void WhileStmt::dump(int indent) const
{
cout << spaces(indent) << "WhileStmt " << this << " <" << m_loc << ">\n";
for(auto &init : inits)
{
init->dump(indent + 2);
}
if (cond)
{
cond->dump(indent + 2);
}
if (stmt)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if ($e instanceof \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException) {
// TODO: Maybe writing our own middleware for this would be better
// than trying to distinguish between them based only upon strings.
if ($e->getMessage() === 'Token has expired') {
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
exit.changed().await.unwrap();
}
println!("Shutting down...");
server.shutdown().await;
println!("Goodbye!");
}
SubCommand::Web(run) => {
let web_key: EncryptKey = load_key(run.web_key_path.clone(), ".read");
conf.... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@then('I should find dependency named {package} with version {version} in the stack '
'analysis')
def check_dependency(context, package, version):
"""Check for the existence of dependency for given package."""
jsondata = context.response.json()
assert jsondata is not None
path = "result/0/user_st... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('enroll', '0001_initial'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return lhs.shortest_weight_ <=> rhs.shortest_weight_;
}
void add_link(item* from, item* to, int weight)
{
auto& children = from->children_;
children.emplace_back(to, weight);
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
class Algorithm(ImportableModelComponent):
name = models.CharField(blank=False, max_length=128, unique=True)
fileFormats = models.ManyToManyField(ModelFileFormat)
validModes = models.ManyToManyField(AlgorithmMode)
def __str__(self):
return '%s object (%s)' % (self.__class__.__name__, self.nam... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@author
@detail Automatically generated by make_anlpy_project.sh 1.0.0
**/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def send_request(self, command, arguments=None):
request = self.timeline.record_request(command, arguments)
request.sent = self.channel.send_request(command, arguments)
request.sent.on_response(lambda response: self._process_response(request, response))
assert Request(command, argume... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5'])
# end
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let mut vertex : Vec<f32> = Vec::new();
let mut v_index : Vec<u32> = Vec::new();
let mut normals : Vec<f32> = Vec::new();
let mut n_index : Vec<u32> = Vec::new();
let mut texture : Vec<f32> = Vec::new();
let mut t_index : Vec<u32> = Vec::new();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Expr::Val(Value::Nil)
}
}
/// Desugar an `and` expression into nested `if` statements
fn desugar_and(mut body: Sequence) -> Expr {
if !body.is_empty() {
Expr::If(
Box::new(desugar(body.remove(0))),
Box::new(desugar_and(body)),
Some(Box::new(Expr::Val(Value::B... | ise-uiuc/Magicoder-OSS-Instruct-75K |
],
])('(%p) returns "200 OK" with JSON body %p', async (body, expected) => {
// Arrange - Act
const result = await postNotification(null, { body })
// Assert
expect(result.httpResponse.status).toBe(200)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this pro... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
Err(err) => Err(LPassError::new("Could not exec command", Some(Box::from(err))))
}
}
fn exec_lpass_no_output(args: &[&str]) -> Result<(), LPassError> {
match Command::new("lpass").args(args.iter()).stdout(Stdio::inherit()).stderr(Stdio::inherit()).output() {
Ok(_) => Ok(... | ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Souscategorie extends Model
{
use HasFactory;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Guid(InterfaceIds.IID_ICoreWebView2Environment),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ICoreWebView2Environment
{
void CreateCoreWebView2Host(
HWND parentWindow,
ICoreWebView2CreateCoreWebView2HostCompletedHandler handler);
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
for instance in response['managedInstances']:
if instance['currentAction'] != 'DELETING':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
import Foundation
struct BuildConfig: Codable {
static let `default`: BuildConfig = .load()
}
private extension BuildConfig {
static func load() -> BuildConfig {
guard let filePath = Bundle.main.path(forResource: "BuildConfig", ofType: "plist") else { fatalError("BuildConfig.plist not found") }
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
class RunSpin(AbstractSenario):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int main(void){
cin >> N >> K;
BFS();
printf("%d\n", visited[now]);
for(int i = track.size()-1; i >= 0 ; i--){
printf("%d ", track[i]);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("\033[1;32m [[ CMD : rm -rf %s ]]\033[0m"%(' '.join(tmp_cur_files + tmp_sub_files)))
def rm_tmp_folders(self):
del_file_list = [os.path.join(self.case_path,f) for f in os.listdir(self.case_path) if f.endswith("_tmp@")]
if self.detail and del_file_list != []:
os.system... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@slash_command(description="List all the bot commands")
async def help(self, ctx):
help_embed = discord.Embed(title='BRUHbot all commands', description="This command will show all BRUHbot commands and what does it do", color=0x14D93B)
help_embed.set_author(name='BRUHbot', icon_url='https://images-ext-2.discorda... | ise-uiuc/Magicoder-OSS-Instruct-75K |
egg_info = os.path.join(destination_eggdir, 'EGG-INFO')
os.rename(dist_info, egg_info)
os.rename(os.path.join(egg_info, 'METADATA'),
os.path.join(egg_info, 'PKG-INFO'))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
outstr += f'material="src: #image-{temp["8"]}; color: {temp["color"]}'
outstr += self.is_repeat(temp["repeat"], temp["41"], temp["43"])
outstr += '">\n</a-circle>\n</a-entity>\n'
return outstr
def make_cylinder(self, x, temp):
outstr = f'<a-entity id="cylinder-ent-{x}" \n'
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
//
import Foundation
import SwiftUI
struct CircleText_Preview: PreviewProvider {
static var previews: some View {
CircleText(radius: 200, text: "Dwarves Foundation Looking for Golang, FE candidates")
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(f'{i+1}) {headings[i]} : {w[0]}')
weights_list.append([headings[i], w[0]])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if width == round(Mm(210), -4):
return 'A4'
elif width == round(Inches(8.5), -4):
return 'Letter'
else:
raise Exception('Unknown Page Size')
RE_REFS = re.compile(r'\[([\d,-]+)\]')
RE_FIG_TITLES = re.compile(r'(^Figure \d+:)')
RE_FIG_INTEXT = re.compile(r'(Fig.\s?\d+|Figure\s?\d+\s+)... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Task<ReadOnlyCollection<Position>> Search(string searchText, int maxResults, CancellationToken cancellationToken = default);
Task<Position> GetById(int positionId, CancellationToken cancellationToken = default);
Task<Position> AddNewPosition(PositionCreateCommand positionCreateCommand, Cancellat... | ise-uiuc/Magicoder-OSS-Instruct-75K |
weak var item: ItemModel?
weak var viewModel: ViewModelProtocol?
var id: String?
init(id: String? = nil) {
self.id = id
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
set limiter = 0
set filter_freq = 0
set name = ${test_case}-NE${NE}-t${tstep}
set sfreq = 6
@ sfreq *= 3600
set sfreq = `echo "$sfreq / $tstep" | bc`
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if ((du -b ${dira[i]})>max_size) then
mogrify -resize 720 ${dira[i]} #If the size of the image, found with du, is greater the max size, then we resize it whit the command resize, and adjust the width to 720
echo "${dira[i]}" #And we print the path of the image
fi
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// System.out.println("OverlaySrcPort: " + outerSrcPort);
// System.out.println("OverlayDStPort: " + outerDstPort);
IPacket udpData = udpPacket.getPayload();
byte[] udpPayload =udpData.serialize();
ByteBuffer vxlanDataBB = ByteBuffer.wrap(udpPayload);
vxlanDataBB.position(4);
Integer vnid = new Integer(v... | ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILI... | ise-uiuc/Magicoder-OSS-Instruct-75K |
let out = hconn_s.process(None, now());
eprintln!("-----client");
let _ = hconn_c.process(out.dgram(), now());
let out = hconn_s.process(None, now());
let _ = hconn_c.process(out.dgram(), now());
process_client_events(&mut hconn_c);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return HttpResponse(u'')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* Licensed 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
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .buyback_metrics import *
from .fei_metrics import *
from .fei_volume_metrics import *
from .pcv_metrics import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Plugin,
Site,
SsoUser,
Upload,
User,
Role,
};
export * from './connect';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
// printf("%s\n", inttostr(u).c_str());
if(u == strtoint(beg))
{
tempPath.push_back(u);
int tempH = 0, tempHM = 0;
for (int i = 0; i < tempPath.size(); i++)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export interface Money {
cents: number
currency: Currency
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in $users
do
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_reduce(x, reduction=reduction)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def build_source(bld, name, env, path):
if bld.env.STATIC:
return bld.static_library(
name,
bld.platforms,
path=path,
features=['motor:warnings:off', 'motor:deploy:off', 'motor:deploy:bullet', 'motor:nortc'],
extra_includes=[path.make_node('src')],... | ise-uiuc/Magicoder-OSS-Instruct-75K |
############## All in one
fig = plt.figure(figsize=(14,3))
#
ax1 = fig.add_subplot(1,4,1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* to be converted
*/
public ConvertRomanButtonListener(JTextField resultTarget, JTextField valueSource)
{
valueTextField = valueSource;
resultTextField = resultTarget;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Creates a new EntryDialog. Takes all the arguments of the usual
MessageDialog constructor plus one optional named argument
"default_value" to specify the initial contents of the entry.
'''
if 'default_value' in kwargs:
default_value = kwargs['default_value']
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
for(int i=0;i<5;i++){
print();
}
close();
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from mitemp_bt.mitemp_bt_poller import MiTempBtPoller, \
MI_TEMPERATURE, MI_HUMIDITY, MI_BATTERY
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/*
great use of union find (in the comment)
*/
class RightTriangle {
public:
long long triangleCount(int places, int points, int a, int b, int c) {
if (places & 1) {
return 0;
}
set<long long> S;
for (int i=0; i<places; ++i) {
S.insert(i);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.util.List;
public class DominiosImports {
private List<DominioParams> dominios;
public List<DominioParams> getDominios() {
return dominios;
}
public void setDominios(List<DominioParams> dominios) {
this.dominios = dominios;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# FIXME
# create an image
ImageType = type(im1)
print(ImageType)
image = ImageType.New()
# get sizes
region1 = im1.GetLargestPossibleRegion()
region2 = im2.GetLargestPossibleRegion()
a1 = im1.TransformIndexToPhysicalPoint(region1.GetIndex())
b1 = im1.TransformIndexToPhysicalPoi... | 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.