seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
#include <lmdb.h>
#include <memory>
#include <string>
#include <optional>
namespace lmdb {
class env {
public:
class deleter;
class factory;
enum class flags : unsigned int {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return Cvss;
}
public CvssV3Builder AttackVector(AttackVector param) { UsedMetrics.Add("AV"); Cvss.AttackVector = param; return this; }
public CvssV3Builder AttackComplexity(AttackComplexity param) { UsedMetrics.Add("AC"); Cvss.AttackComplexity = param; return this; }
public CvssV3Builder PrivilegesRequired(PrivilegesRequired param) { UsedMetrics.Add("PR"); Cvss.PrivilegesRequired = param; return this; }
public CvssV3Builder UserInteraction(UserInteraction param) { UsedMetrics.Add("UI"); Cvss.UserInteraction = param; return this; }
public CvssV3Builder Scope(Scope param) { UsedMetrics.Add("S"); Cvss.Scope = param; return this; }
public CvssV3Builder ConfidentialityImpact(Impact param) { UsedMetrics.Add("C"); Cvss.ConfidentialityImpact = param; return this; }
public CvssV3Builder IntegrityImpact(Impact param) { UsedMetrics.Add("I"); Cvss.IntegrityImpact = param; return this; }
public CvssV3Builder AvailabilityImpact(Impact param) { UsedMetrics.Add("A"); Cvss.AvailabilityImpact = param; return this; }
public CvssV3Builder ExploitCodeMaturity(ExploitCodeMaturity? param) { UsedMetrics.Add("E"); Cvss.ExploitCodeMaturity = param; return this; }
public CvssV3Builder RemediationLevel(RemediationLevel? param) { UsedMetrics.Add("RL"); Cvss.RemediationLevel = param; return this; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//draw slider
switch (indicatorType) {
case TAB_INDICATOR_TOP:
bgRect.top = 0;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
exit 1
fi
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
#include "ibuilder.h"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
direct_i = n_obs_tris * n_src_tris
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import flask
blueprint = flask.Blueprint('rooms', __name__, template_folder='templates')
from . import routes
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
from __future__ import absolute_import
| ise-uiuc/Magicoder-OSS-Instruct-75K |
get_image()
print("get_image")
# load_image()
i1 = cv2.imread("%s/screen.png"%path)
scale_percent=40
w=int(i1.shape[1]*scale_percent/100)
h=int(i1.shape[0]*scale_percent/100)
dim=(w,h)
resized = cv2.resize(i1,dim,interpolation=cv2.INTER_AREA)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
array('id' => 'rafting-takeout_site','class' => 'form-control'))
}}
</div>
<div class="col-sm-2 ">
{{ Form::label('rafting-trip_type', 'Trip Type') }}
{{ Form::select('rafting-trip_type',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Route::get('/classes','APIController@indexClass');
/*
Route::get('/user', function (Request $request) {
return $request->user();
})->middleware('auth:api');
*/ | ise-uiuc/Magicoder-OSS-Instruct-75K |
'SimpleROINet',
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BlackQueen,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn foo(x: &[u32; 2]) -> &[u32] { x }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* 计算雷达图坐标
*/
void computeRadar();
/**
* 设置各角类型文本颜色
* @param color 颜色
*/
void setAxisValueColor(int color);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class PlaintextToHexSecretSharerTest(ShamirSharingTest):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
admin.site.register(ShowTime, ShowTimeAdmin)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// This method can be called from any thread
///
func reportError(_ type: BgfxError, message: String)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if private_key is None:
raise exceptions.AuthenticationError("Missing private_key.")
return session.Session(public_key, private_key, cache=cache)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.dictionary = Dictionary()
def add(self, doc_id, doc):
for word in doc:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>thorstenb/pyxb
from pyxb.bundles.opengis.raw._smil20 import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__version__ = '0.0.12'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if sheet.parsestate == 2:
sheet.parsestate = 1
sheet.timestamp = None
sheet.fields = []
cls.checkstate(sheet, 1, 1)
cls(sheet, tokens)
def __init__(self, sheet, tokens):
index = tokens[0]
assert index[0] == 'F'
index = int(index[1:])
assert index == len(sheet.fields)
sheet.fields.append(self)
if index < 2:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"://p.scdn.co/mp3-preview/", "://anon-podcast.scdn.co/"
),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
connect()
start()
#try:
# client.get_all_orders()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
fn load(&mut self) {
self.cursor = self.saved_cursor;
self.row = self.saved_row;
self.col = self.saved_col;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# saved_stdout = sys.stdout
# global out_stream
out_stream = StringIO()
# sys.stdout = out_stream
with contextlib.redirect_stdout(out_stream):
with contextlib.redirect_stderr(out_stream):
logger = make_logger()
logger.debug('Log Message')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mod constant_ops;
mod env_ops;
mod local_ops;
mod mem_ops;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[cfg(feature = "future")]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class StructureSetStructuresTests(StructureSetTest):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private var input: Input!
private struct Input {
}
func solvePart1() -> Any {
return 0
}
func solvePart2() -> Any {
return 0
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
contributed_services = [
service('object_folders', models.ObjectFolder),
service('object_files', models.ObjectFile),
service('object_events', models.ObjectEvent)
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
break
if timeout and time.time() - start_time > timeout:
raise TimeoutException('Thread {} timeout after {}s'.format(
thr, timeout))
time.sleep(join_sleep)
def interruptible_join(thread):
"""Joining a thread without ignoring signal interrupts."""
while True:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</li>
<li><a class="close-link"><i class="fa fa-close"></i></a>
</li>
</ul>
<div class="clearfix"></div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
#
from PIL import Image, ImageOps
import numpy as np
import random
import imgaug as ia
from imgaug import augmenters as iaa
from imgaug import parameters as iap
class AugStyle(object):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cd "$(dirname "${BASH_SOURCE}")";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dev_right.append(laygen.relplace(name = "I" + objectname_pfix + 'BNDRHT'+str(i+1), templatename = d, gridname = pg, refinstname = dev_right[-1].name, direction='top',
shape=shape_right[i+1], transform=transform_right[i+1]))
dev_top=[]
dev_top.append(laygen.relplace(name = "I" + objectname_pfix + 'BNDTOP0', templatename = devname_top[0], gridname = pg, refinstname = dev_left[-1].name, direction='top',
shape=shape_top[0], transform=transform_top[0]))
for i, d in enumerate(devname_top[1:]):
dev_top.append(laygen.relplace(name = "I" + objectname_pfix + 'BNDTOP'+str(i+1), templatename = d, gridname = pg, refinstname = dev_top[-1].name,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
T: EthSpec,
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from scipy.signal import convolve2d
from ..hyp_defs import float_cpu
class MeanVarianceNorm(object):
"""Class to perform mean and variance normalization
Attributes:
norm_mean: normalize mean
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if venue is not None:
return "{}, {}".format(venue.name, venue.publication_date)
else:
return ""
def papers(request):
# Retrieve the papers ordered by newest addition to DB first.
# limit to maximum 50 papers until we get pagination to work.
# However, even with pagination, we are going to want to limit
# the number of papers retrieved for speed, especially when the
# the DB grows large.
all_papers = Paper.nodes.order_by("-created")[:50]
# Retrieve all comments about this paper.
all_authors = [", ".join(get_paper_authors(paper)) for paper in all_papers]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static function getDescription()
{
return 'Parses phan (static analysis) in json format';
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# continuation
attributes[-1] = (attributes[-1][0],
attributes[-1][1],
attributes[-1][2]+l[1:])
continue
items = l.split(':')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
comparison = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from geode.value import Worker
import sys
def worker_test_factory(props):
x = props.get('x')
y = props.add('y',5)
return cache(lambda:x()*y())
def remote(conn):
inputs = conn.inputs
x = inputs.get('x')
assert x()==7
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
leftSpeed = SPEED
rightSpeed = SPEED
motors[0].setVelocity(leftSpeed)
motors[1].setVelocity(rightSpeed) | ise-uiuc/Magicoder-OSS-Instruct-75K |
FIXTURE_DATA_TEST_CASE(RunLarge, CPPPermuteFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(PermuteParametersLarge, framework::dataset::make("DataType", DataType::U8)))
{
// Validate output
validate(Accessor(_target), _reference);
}
TEST_SUITE_END()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
renderButton.isEnabled = false
renderButton.backgroundColor = .gray
}
func showFormulaImage(data: Data) {
gotResponse()
formulaImageView.image = UIImage(data: data)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// The take-profit-limit order. Unused for now.
TakeProfitLimit,
/// The limit-maker order. Unused for now.
LimitMaker,
/// Fallback for all other variants.
#[serde(other)]
Other,
}
impl ToString for OrderType {
fn to_string(&self) -> String {
match self {
Self::Limit => "LIMIT",
Self::Market => "MARKET",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ProgramEvent()
ProgramEvent(10)
def test_message(self):
evt = ProgramEvent()
self.assertEqual(evt.Message, [0xC0, 0])
evt = ProgramEvent(7)
self.assertEqual(evt.Message, [0xC0, 7])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
writer.visitVarInsn(Opcodes.ASTORE, ctx.getSlot());
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return self.name
| ise-uiuc/Magicoder-OSS-Instruct-75K |
KeyBind(pygame.K_b, pygame.KMOD_NONE, 'comm2')])
self.expect_generated_text(['a b'])
def test_commands_are_generated_in_order_of_pattern(self):
self.when_pattern_is((('comm1', 'comm2'),))
self.when_config_is([KeyBind(pygame.K_a, pygame.KMOD_NONE, 'comm2'),
KeyBind(pygame.K_b, pygame.KMOD_NONE, 'comm1')])
self.expect_generated_text(['b a'])
def test_two_lines_generate_2_lines_(self):
self.when_pattern_is((('comm1',), ('comm2',),))
self.when_config_is([KeyBind(pygame.K_a, pygame.KMOD_NONE, 'comm2'),
KeyBind(pygame.K_b, pygame.KMOD_NONE, 'comm1')])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cpus_per_task=1 # pour message erreur
fi
fi
mpirun="mpirun -np $NB_PROCS"
sub=PBS
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</ul>
</div>
<div class="rd-navbar-main-element">
<!-- RD Navbar Search-->
<div class="rd-navbar-search rd-navbar-search-2">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$message = $this->getMessageResponse(true, ["log on"]);
if ($request->hasSession()) {
$request->session()->put('auth.password_confirmed_at', now()->toDateTimeString());
$request->session()->put(MyAppConstants::USER_EMAIL_LOGGED, $credentials['email']);
$request->session()->put(MyAppConstants::USER_ID_LOGEED, $userLogged->getIdUserLogged());
// hardcore
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// should be the last #include
#include <Pothos/serialization/impl/type_traits/detail/bool_trait_def.hpp>
namespace Pothos {
//* is a type T void - is_void<T>
#if defined( __CODEGEARC__ )
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Environment:
//
// OUT_DIR
// Directory where generated files should be placed.
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Add the molecule and its isomeric SMILES representation to prediction list for the current model
candidates[imode][cv_fold] |= {(cid_can, smi_cnd)}
# Track spectra information and their corresponding models
df_spec2model[imode].append((acc, cid, cv_fold, imode, ikey1))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
java -Djava.security.policy=client.policy -Djava.rmi.server.codebase=http://localhost:8000/ DynamicClient | ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="login-wrapper ">
<!-- START Login Background Pic Wrapper-->
<div class="bg-pic">
<!-- START Background Pic-->
| ise-uiuc/Magicoder-OSS-Instruct-75K |
extension Optional {
func unwrap() throws -> Wrapped {
guard let result = self else {
throw NilError()
}
return result
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bool IsDisposed { get; }
/// <nodoc />
IntPtr Injector();
/// <nodoc />
| ise-uiuc/Magicoder-OSS-Instruct-75K |
internal static void RemoveWithLock<T>(this ICollection<T> collection, T item, AsyncReaderWriterLock rwLock)
{
using (rwLock.WriterLock())
{
collection.Remove(item);
}
}
internal static async Task RemoveWithLockAsync<T>(this ICollection<T> collection, T item, AsyncReaderWriterLock rwLock)
{
using (await rwLock.WriterLockAsync())
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace iQuest.VendingMachine.PresentationLayer.Pay
{
public interface ICashPaymentView
{
float AskForMoney();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# -*- coding: utf-8 -*-
##################################################################################
# jlr_copy_deformer_weights_UI.py - Python Script
##################################################################################
# Description:
# This tool was created to copy the weight map of a deformer of an object to the deformer of another object.
#
# The deformers do not have to be of the same type between them. It is possible to copy the weight map of
# a wire deformer into a weight map of a cluster deformer or other deformer.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// RSSFeedSkipHour.swift
//
// Copyright (c) 2017 Nuno Manuel Dias
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
allowanceUIFilter: !!+entity.allowanceUIFilter,
complianceUIFilter: !!+entity.complianceUIFilter,
retiredIndicator:
!!entity.tradingEndDate && entity.tradingEndDate <= new Date(),
tradingEndDate:
entity.tradingEndDate &&
entity.tradingEndDate.toISOString().split('T')[0],
};
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
minBuy = 999999 # probably should use sys.maxint
maxProfits = 0
for i in xrange(len(prices)):
minBuy = min(minBuy, prices[i])
maxProfits = max(maxProfits, prices[i] - minBuy)
return maxProfits
| ise-uiuc/Magicoder-OSS-Instruct-75K |
id: string;
extensions: string[];
}
export declare type LanguageExtensionDefinitions = LanguageExtensionDefinition[];
export declare type ExtensionToLanguageIdMap = Map<string, Set<string>>;
export declare const languageExtensionDefinitions: LanguageExtensionDefinitions;
export declare const languageIds: string[];
export declare function buildLanguageExtensionMap(defs: LanguageExtensionDefinitions): ExtensionToLanguageIdMap;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class ScraperUtils {
public static int interval(int value, int min, int max, String name) {
if (value < min || value > max) {
throw new IllegalArgumentException(name + " should be between " + min + " and " + max + ": " + value);
}
return value;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if value is not None:
convert = column.get('convert', None)
if callable(convert):
value = convert(value)
return value
func = column.get('function', None)
if callable(func):
return func(assay, **kwargs)
default = column.get('default', None)
return default
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @param url The url
*/
public void setUrl(String url) {
this.url = url;
}
/**
*
* @return The imageUrl
*/
public String getImageUrl() {
return imageUrl;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
""".data(using: .utf8)!
let expectedJSONObject = try JSONSerialization.jsonObject(with: expected, options: []) as! NSDictionary
XCTAssertEqual(encodedJSONObject, expectedJSONObject)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
raise EnvironmentError('Unsupported platform')
result = []
for port in ports:
try:
s = serial.Serial(port, 9600)
s.close()
result.append(port)
except:
pass
return result
""" on_port_change()
Updates the serial port when the combobox changes.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
impl<T> FormatTreeNode<T>
where T: Display
{
pub fn new(payload: T) -> Self {
Self {
payload,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ratingImageView.setImageWithURL(business.ratingImageURL!)
distanceLabel.text = business.distance
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// EngineState+Extensions.swift
// MexicanTrain
//
// Created by Home on 26/06/2020.
//
import Foundation
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sock = create_socket('0.0.0.0', 443)
while True:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
string typeName,
string keyList,
IntPtr qos);
/*
* u_result
* u_topicGetQos (
* const u_topic _this,
* u_topicQos *qos);
*/
[DllImport("ddskernel", EntryPoint = "u_topicGetQos", CallingConvention = CallingConvention.Cdecl)]
public static extern V_RESULT GetQos(
IntPtr _this,
ref IntPtr qos);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
c0 = C(x)
c1 = C(x*x)
d = D(c0)
result0 = d.c.x == x
d.c = c1
result1 = d.c.x == x*x
c1.x = 0
result2 = d.c.x == 0
d.c = c0
result3 = d.c.x == x
return result0 and result1 and result2 and result3
@testbench
def test():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
public LabelScenario1()
: base("[Label] Empty")
{
View = new Label();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
hidden_size = 128
drop_prob = 0.2 | ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace App\Models\Modulos\Parametrizacion;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Genero extends Model
{
use HasFactory;
protected $table = 'tbgenero';
/**
* @var string
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
columns="vmax_accdb vmax_python gmax_accdb gmax_python wot".split(),
index=veh_names(veh_samples),
).astype({"gmax_accdb": "Int64", "gmax_python": "Int64"})
wots_df = pd.concat(
vehres["wot"].values, keys=veh_names(veh_samples), names=["vehicle"]
)
vehres = vehres.drop("wot", axis=1)
vehres["vmax_diff"] = (vehres["vmax_python"] - vehres["vmax_accdb"]).abs()
vehres["gmax_diff"] = (vehres["gmax_python"] - vehres["gmax_accdb"]).abs()
with pd.option_context(
"display.max_rows",
130,
"display.max_columns",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sendemail($department[0], $message_content,"Contact Department",null,null,$_POST['your_email'],false);
$this->session->set_flashdata("flash_data", array( "err"=>"success", "message" => "Message Sent"));
$res = array('msg'=>'Message sent', 'err' => false);
$this->session->set_flashdata('results', $res );
redirect(base_url("investor/files"));
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
lim=np.array([[[l_lim_o2Tpos,u_lim_o2Tpos],[l_lim_o2Tpro,u_lim_o2Tpro],[l_lim_o2Tneg,u_lim_o2Tneg]],[[l_lim_testTpos,u_lim_testTpos],[l_lim_testTpro,u_lim_testTpro],[0,0]]],dtype=np.float64)
#make directories for saving raw_outputs
try:
os.makedirs("../../raw_output/EnvEq/"+f_name)
except:
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
uint32_t txns_processed = 0;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("pycuse hello")
cd = cuse.CUSEDev("cuse-hello", fg=True, debug=True)
print(cd)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void Asm_x64::build_jmp(LtacNode *node) {
auto jmp = static_cast<LtacJmp *>(node);
switch (jmp->op) {
case Operator::None: writer << "\tjmp "; break;
case Operator::Equal: writer << "\tje "; break;
case Operator::NotEqual: writer << "\tjne "; break;
case Operator::Greater: writer << "\tjg "; break;
case Operator::Less: writer << "\tjl "; break;
case Operator::GreaterEq: writer << "\tjge "; break;
case Operator::LessEq: writer << "\tjle "; break;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
threshold = estimateThreshold(c)
for sp in map(Spectrum, c.execute("select * from Spectra")):
real_peaks = sp.fwhms / sp.mzs**2 > threshold
mzs = sp.mzs[real_peaks]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[ApiController]
public class AuthController : ControllerBase
{
private IConfiguration _config;
static readonly log4net.ILog _log4net = log4net.LogManager.GetLogger(typeof(AuthController));
private readonly IUserRepo repo;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// reply with the new created object identifier
reply = contact;
break;
case "read":
if (contact.getId() == 0) {
query = em.createNamedQuery("getContacts");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TS_ASSERT_EQUALS(s, "\"world\"");
s = "\\\\world\\\\";
unescape_string(s, true, '\\', '\"', false);
TS_ASSERT_EQUALS(s, "\\world\\");
s = "\\";
unescape_string(s, true, '\\', '\"', false);
TS_ASSERT_EQUALS(s, "\\");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
i if i == 300 => "This is Sparta!",
_ => "larger than or equal 10, and even",
};
println!("{}", result);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
</div>
</div>
@endforeach
| ise-uiuc/Magicoder-OSS-Instruct-75K |
WATERWAYS,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
#
# Copyright (c) 2021 Red Hat
#
# SPDX-License-Identifier: Apache-2.0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
s += '\n%s' % session.items()
return s
app.run(debug=True)
| 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.