seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
Screen.COLOUR_YELLOW,
Screen.COLOUR_GREEN,
Screen.COLOUR_CYAN,
Screen.COLOUR_BLUE,
Screen.COLOUR_MAGENTA,
]
# The cool characters from codepage 437
NOISE_DOS = (
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sys.exit(-1)
if header:
print header
print '=================='
for datarow in data:
print datarow
| ise-uiuc/Magicoder-OSS-Instruct-75K |
override func viewDidLoad() {
super.viewDidLoad()
locationManager.delegate = self;
locationManager.distanceFilter = kCLLocationAccuracyNearestTenMeters
locationManager.desiredAccuracy = kCLLocationAccuracyBest
mapView.delegate = self
mapView.showsUserLocation = true
mapView.userTrackingMode = .Follow
setupData()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
IConnectableLayer* AddDepthToSpaceLayer(const DepthToSpaceDescriptor& depthToSpaceDescriptor,
const char* name = nullptr);
IConnectableLayer* AddDepthwiseConvolution2dLayer(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
operations = [
migrations.AlterModelOptions(
name='order',
options={'permissions': (('export_order', 'Can export order'),)},
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
froms: SelectItem[];
@Input()
mailEdition: MailEdition;
@Output()
cancelMailView = new EventEmitter<MailEdition>();
constructor(private messageService: MessageService,
private notmuchService: NotMuchService) {
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
public function index()
{
}
/**
* @group Group B
*/
public function update()
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def gen_primes_sundaram_sieve(max_limit: int) -> {int}:
if max_limit < 2:
return {2}
max_number = (max_limit - 1) // 2 + 1
numbers = list(range(0, max_number))
for i in range(1, max_number):
for j in range(i, max_number):
try:
numbers[i + j + (2 * i * j)] = 0 # mark n where 2n+1 is not a prime as 0
except IndexError:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class VssJsonCollectionWrapper(VssJsonCollectionWrapperBase):
"""VssJsonCollectionWrapper.
:param count:
:type count: int
:param value:
:type value: str
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
f.write(scene + ';')
f.write(str(index) + ';')
f.write(zone_str + ';')
f.write(str(thresholds[scene][index]) + ';')
for index_img, img_quality in enumerate(image_indices):
f.write(str(img_quality))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("### closed ###")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
await submission.mod.approve()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Дано натуральное число n. Выведите все числа от 1 до n. Без использования циклов.
def print_and_decr(i: int) -> int:
print("%d\n", i)
i -= 1
if i > 1:
print_and_decr(i)
print_and_decr(821)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
return false;
}
}
/// <summary>
/// Returns 'true' if a connection is attached to the connector.
/// The other end of the connection may or may not be attached to a node.
/// </summary>
public bool IsConnectionAttached => AttachedConnections.Count > 0;
/// <summary>
/// The connections that are attached to this connector, or null if no connections are attached.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using namespace Windows::UI::Xaml::Controls::Primitives;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
FlattenLogitsLayer = layerwise.FlattenLogitsLayer
def maxpool_model(
model_config,
num_layers = 4,
last_maxpool = 2):
"""Creates a larger 4-layer model (similar to the one in MAML paper)."""
conv_args = {'model_config': model_config,
'maxpool_size': 2,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assignment = get_parent_assign(node)
except AstFailure as e:
if with_raise:
raise e
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tests += PoetTests.allTests()
XCTMain(tests)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u8 & 0x01) << 3);
self.w
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</Overlay>
</TouchableWithoutFeedback>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'sound': 'default',
'badge': 1,
'content_available': False,
'mutable_content': False,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "==> Giving ${SSH_USER} sudo powers"
echo "${SSH_USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/${SSH_USER}
chmod 440 /etc/sudoers.d/${SSH_USER}
# Fix stdin not being a tty
if grep -q "^mesg n" /root/.profile && sed -i "s/^mesg n/tty -s \\&\\& mesg n/g" /root/.profile; then
echo "==> Fixed stdin not being a tty."
fi
echo "==> Installing vagrant key"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
batch shape matching that of observations, to allow for a different
distribution for each observation in the batch.
"""
raise NotImplementedError
def act(self, observations):
"""
Args:
observations: np.array of shape [batch size, dim(observation space)]
Returns:
sampled_actions: np.array of shape [batch size, *shape of action]
TODO:
Call self.action_distribution to get the distribution over actions,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("="*38)
prod = 0
while prod < len(produtos_prec):
print(f'{produtos_prec[prod]:.<28}R$ {produtos_prec[prod+1]:>5.2f}')
prod +=2
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import_scope.import(scope, graph.chain_customizer());
| ise-uiuc/Magicoder-OSS-Instruct-75K |
where:{
id: user.id
},
data:{
twoFactorEnabled: true
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logger.debug("Federated avg: created new weights. Empty buffer")
return new_weights, []
return implementation
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class TestUrlCreator(TestCase):
def setUp(self):
pass
def test_url_creator_returns_correct_url(self):
# Pre-generated url for testing purposes
correct_url = 'http://example.rest/api/service.stub/key.stub/Y4COBwOqmksoSS22XMjDyUb1x4Q'
url = create_full_url(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#define WAVERR_STILLPLAYING 33
#define WAVERR_UNPREPARED 34
#define WAVERR_SYNC 35
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
<?php namespace tests\app\libraries\homework\Gateways;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/** @noinspection PhpUnusedParameterInspection */
$userId, $mode = 'test'
) {
$testMode = ($mode != 'run');
$message = "Ensure DB Indexes\n";
$numberOfIndexesCreated = 0;
$website = Website::get();
$onDevMachine = strpos($website->domain, 'dev.') !== false;
$onLocalMachine = strrpos($website->domain, '.local') !== false;
$message .= "\n------------- Main Database:\n";
$mainCollectionName = ProjectModelMongoMapper::instance()->getCollectionName();
$mainIndexes = ProjectModelMongoMapper::instance()->INDEXES_REQUIRED;
$mainIndexesToCreate = MongoStore::getIndexesNotSetInCollection(SF_DATABASE, $mainCollectionName, $mainIndexes);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>src/constants.ts
export const DEFAULT_NAME = "<NAME>";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "Installation completed successfully."
echo "Done...You can use Minikube!"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
generator_test.test_generators()
if __name__ == '__main__':
main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
}
],
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import ik
import twist_interpolators
__all__ = ['stretch', 'twist_interpolators']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void EMIT_SOUND( CBaseEntity* pEntity, int channel, const char *sample, float volume, float attenuation )
{
EMIT_SOUND_DYN( pEntity, channel, sample, volume, attenuation, 0, PITCH_NORM );
}
void STOP_SOUND( CBaseEntity* pEntity, int channel, const char* const pszSample )
{
EMIT_SOUND_DYN( pEntity, channel, pszSample, 0, 0, SND_STOP, PITCH_NORM );
}
// play a specific sentence over the HEV suit speaker - just pass player entity, and !sentencename
void EMIT_SOUND_SUIT( CBaseEntity* pEntity, const char *sample )
| ise-uiuc/Magicoder-OSS-Instruct-75K |
LICENSES_TXT="public/opensource_licenses.txt"
cat LICENSE > "${LICENSES_TXT}"
echo "" >> "${LICENSES_TXT}"
echo "" >> "${LICENSES_TXT}"
echo "---" >> "${LICENSES_TXT}"
echo "" >> "${LICENSES_TXT}"
cat LICENSE_next_learn_starter >> "${LICENSES_TXT}"
echo "" >> "${LICENSES_TXT}"
echo "" >> "${LICENSES_TXT}"
echo "---" >> "${LICENSES_TXT}"
echo "" >> "${LICENSES_TXT}"
NODE_ENV=production yarn --silent licenses generate-disclaimer >> "${LICENSES_TXT}" | ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
self.rightInner = right
if right.getLeftInner() is None:
right.setLeftInner(self)
def setAdjOuter(self, outer: Outer):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.root = tk.Tk()
self.root.wm_title("PyFRC Robot Simulator v%s" % __version__)
# setup mode switch
frame = tk.Frame(self.root)
frame.pack(side=tk.TOP, anchor=tk.W)
self._setup_widgets(frame)
self.root.resizable(width=0, height=0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
response = LambdaResponse()
url_paths = {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ProtocolViewer:
"""
This class is concerned with accessing the protocol information from the SQLite database.
It was built as the protocol information spans four tables, three of which are recursive
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import json
client = slack.WebClient(token=os.environ['SLACK_API_TOKEN'])
print("channels_retrieve_test: \n" )
print(client.channels_list())
# still testing files to struct a correct model for it
print("channel test:\n ")
client.channels_history(channel='CQNUEAH2N')
print("replies test : \n")
print(client.channels_replies(channel='CQNUEAH2N',thread_ts='1575037903.018300'))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>vo0doO/pydj-persweb<filename>authentication/socialaccount/providers/foursquare/urls.py
from authentication.socialaccount.providers.oauth2.urls import default_urlpatterns
from .provider import FoursquareProvider
urlpatterns = default_urlpatterns(FoursquareProvider)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@property
@pulumi.getter(name="layerName")
def layer_name(self) -> pulumi.Input[str]:
"""
The name or ARN of the Lambda Layer, which you want to grant access to.
"""
return pulumi.get(self, "layer_name")
@layer_name.setter
def layer_name(self, value: pulumi.Input[str]):
pulumi.set(self, "layer_name", value)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logger.info("Database exists, and is proper")
else:
logger.error("Database does not exist or is not proper")
exit(1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
adress: string;
country: string;
city: string;
postalCode: string;
phone: string;
items: Array<ICartProduct>;
orderDate: string;
status: string;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# mkserno.sh: Stores git commit hash into serno.h
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
SERNO_FILE="serno.h"
REVH_NEW="$(git log -n1 --abbrev=20 --format='%h')"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
subscriber = pubsub_v1.SubscriberClient()
# The `subscription_path` method creates a fully qualified identifier
# in the form `projects/{project_id}/subscriptions/{subscription_name}`
subscription_path = subscriber.subscription_path(
project_id, subscription_name)
# def callback(message):
# print('Received message: {}'.format(message))
# message.ack()
#
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use std::process::Command;
use tungstenite::handshake::client::Request;
let mut server = Server::bind("localhost:0")?;
server.set_external_renderer(Command::new("cat"));
let addr = server.addr();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
integer, initial_Age. In this constructor, you should check that the
initial_Age is not negative because we can't have people with negative ages.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pv_schedule_request = PrimaryValidatorScheduleSignedChangeRequest.create(
begin_block_number=100,
end_block_number=199,
signing_key=another_node_key_pair.private,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Project Euler Problem 173: https://projecteuler.net/problem=173
We shall define a square lamina to be a square outline with a square "hole" so that
the shape possesses vertical and horizontal symmetry. For example, using exactly
thirty-two square tiles we can form two different square laminae:
With one-hundred tiles, and not necessarily using all of the tiles at one time, it is
possible to form forty-one different square laminae.
Using up to one million tiles how many different square laminae can be formed?
"""
from math import ceil, sqrt
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var industry2 = TestModelsSeeder.SeedIndustry2();
var report3 = TestModelsSeeder.SeedReport3();
var industry3 = TestModelsSeeder.SeedIndustry3();
report1.IsDeleted = true;
report2.IsDeleted = true;
using (var arrangeContext = new InsightHubContext(options))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Migration(migrations.Migration):
dependencies = [
('polls', '0001_initial'),
]
operations = [
migrations.AlterField(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//-------------------------------------------------------------------------------------------------
// private methods
//-------------------------------------------------------------------------------------------------
private void doDamage()
{
mTarget.setHP( mTarget.getHP() - mActer.getAttack()/10f );
}
private void getActer()
{
mActer = GetComponentInParent<Unit>();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Add = Button(root, text="Add", command=addadd)
Add.grid(row=0, column=0, sticky=E+W+S+N)
Exit = Button(root, text="Exit", command=root.quit)
Exit.grid(row=0, column=1, sticky=E+W+S+N)
TKroot.mainloop()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tag_elements = re.split('\t',tags)
tag_tuple = (tag_elements[0],tag_elements[1])
tagged_sentence.append(tag_tuple)
tagged_sentence = []
sentence_data.append(tagged_sentence)
return sentence_data
def save_model(self, taggerObject, path="tnt_pos_tagger.pic"):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[EnumMember(Value = "ID_DESC")] IdDesc,
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
do
echo -n "→ $filename..."
msgfmt "$filename"
returnValue=$?
if [ $returnValue -ne 0 ]; then
ERRORS=`expr $ERRORS + 1`
echo "contains errors!"
else
echo "ok"
fi
done
echo ""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# g1 = group_l2[0]
# g2 = group_l2[1]
# f,p = stats.f_oneway(g1['od'],g2['od'])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
email = str(input("Email: "))
if email == "":
print("Email is compulsory!")
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class QiubaiItem(scrapy.Item):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
RAILS_ENV=production
PID_FILE=/opt/bitnami/redmine/tmp/pids/redmine.pid
LOG_FILE=/opt/bitnami/redmine/logs/production.log
mkdir -p /opt/bitnami/redmine/tmp/pids
chown ${USER}: -R /opt/bitnami/redmine/tmp
chmod -R 1777 /opt/bitnami/redmine/tmp
info "Executing user-defined init scripts"
if [ -e /docker-init.d/ ]; then
cd /docker-init.d/
run-parts --verbose --exit-on-error --regex=".+" ./
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
closedir(dir);
} else if (errno == ENOENT) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pickle.dump(data_list, data_file)
else:
with open(filename, "wb") as data_file:
pickle.dump([], data_file)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public boolean existsById(Long id) {
// TODO Auto-generated method stub
return false;
}
@Override
| ise-uiuc/Magicoder-OSS-Instruct-75K |
AppDomain.CurrentDomain.UnhandledException -= OnUnhandledException;
Tools.ConsolePrint("Server stopped!\n");
return WebkitErrors.Ok;
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace {
typedef std::function<void ()> func_t;
class mtcallback_func : public main_thread_callback {
public:
mtcallback_func(func_t const & f) : m_f(f) {}
void callback_run() {
m_f();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
extension ScrollViewAbstraction
{
public init( o1: O1)
{
self.init(bounds: o1.bounds |> Extent.init,
exterior: ARect(origin: o1.outerOrigin |> APoint.init,
size: o1.outerSize |> Extent.init),
interior: ARect(origin: o1.origin |> APoint.init,
size: o1.size |> Extent.init))
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use std::fs::File;
use std::io::prelude::*;
use std::io::{Error, ErrorKind};
#[derive(Deserialize)]
#[derive(Debug)]
struct ConfUnit {
#[serde(alias = "Description")]
description: Option<String>,
#[serde(alias = "Documentation")]
documentation: Option<String>,
#[serde(alias = "Requires")]
requires: Option<String>,
#[serde(alias = "Wants")]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub(crate) fn unit_by_coord(&self, coord: UnitCoord) -> Option<&SignedUnit<'a, H, D, KB>> {
self.by_coord.get(&coord)
}
pub(crate) fn unit_by_hash(&self, hash: &H::Hash) -> Option<&SignedUnit<'a, H, D, KB>> {
self.by_hash.get(hash)
}
pub(crate) fn contains_hash(&self, hash: &H::Hash) -> bool {
self.by_hash.contains_key(hash)
}
pub(crate) fn contains_coord(&self, coord: &UnitCoord) -> bool {
self.by_coord.contains_key(coord)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub trait Multisegment<Scalar> {
type Point: self::Point<Scalar>;
type Segment: self::Segment<Scalar, Point = Self::Point>;
fn segments(&self) -> Vec<Self::Segment>;
}
pub trait Contour<Scalar> {
type Point: self::Point<Scalar>;
type Segment: self::Segment<Scalar, Point = Self::Point>;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Create a BSpline surface instance
surf01 = BSpline.Surface()
# Set degrees
surf01.degree_u = 2
surf01.degree_v = 1
# Get the control points from the generated grid
surf01.ctrlpts2d = sg01.grid
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo cp -f ./xstartup ~/.vnc/xstartup
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# logger_kamma.setLevel(logging.DEBUG)
logger_fqueue = logging.getLogger('kamma.queue')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/* Get delay provider */
let mut delay = Delay::new(p.TMRSE1, &mut syscon);
loop {
led.set_high().ok();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>digicert/digicert_express
from base_platform import BasePlatform
class UbuntuPlatform(BasePlatform):
APACHE_SERVICE = 'apache2ctl'
APACHE_RESTART_COMMAND = 'service apache2 restart'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
source "`dirname $0`/ttcp_activate.sh"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'2W0':[15.79, 108.95, 237.93, 0.], '2W1':[15.01, 120.45, 240.01, 0.], '2W2':[17.97, 125.56, 243.83, 0.],
'3C1':[10.99, 115.63, 226.18, 0.], '3C2':[10.84, 117.73, 219.17, 0.], '3N1':[11.9, 126.73, 228.04, 0.],
'3N2':[11.43, 126.97, 224.13, 0.], '3W1':[13.14, 148.12, 229.10, 0.], '3W2':[14.01, 133.06, 234.48, 0.],
'4C3':[11.68, 150.85, 219.34, 0.], '4N1':[12., 151.75, 190.41, 0.], '4N2':[12.24, 138.18, 206.75, 0.],
'4W1':[12., 151.31, 224.04, 0.], '4W2':[12., 165.62, 201.74, 0.], '5C1':[10.4, 184.48, 176.72, 0.],
'5N1':[11.68, 188.46, 210.23, 0.], '5N2':[10.98, 183.80, 195.04, 0.], '5W1':[12.73, 185.75, 221.30, 0.],
'5W2':[10.83, 162.54, 211.10, 0.], '6C2':[9.29, 217.70, 111.99, 0.], '6N1':[11.24, 180.30, 156.76, 0.],
'6N2':[11., 173.55, 145.55, 0.], '6W1':[11.09, 188.43, 171.41, 0.], '6W2':[11., 182.77, 151.02, 0.],
'7C1':[8.07, 199.37, 115.59, 0.], '7N1':[9.93, 187.51, 122.57, 0.], '7W1':[9.86, 192.48, 135.62, 0.],
'8N1':[8.64, 181.83, 109.53, 0.]} | ise-uiuc/Magicoder-OSS-Instruct-75K |
// See the message definition for how this works.
if (seen_instance_ids_->find(instance) != seen_instance_ids_->end()) {
// Instance ID already seen, reject it.
*usable = false;
return;
}
// This instance ID is new so we can return that it's usable and mark it as
// used for future reference.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for (int j = 0; j <= sequentialRuns; j++) {
int ct = 0;
BinaryNode<Integer> node = nonb.getRoot();
while (node != null && !node.getValue().equals(val+j)) {
if (val < node.getValue()) { node = node.getLeftSon(); }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Negocio aprovado pois a parcela é de R$ {} e voce pode pagar R$ {} mensais".format(parcela,margem))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return render_template('index.html')
def process(img):
if 'examples' in img:
im = Image.open(img)
name = img.split('.')[0].split('/')[-1]
else:
im = Image.open('files/' + img)
name = img.split('.')[0]
old_size = im.size # old_size[0] is in (width, height) format
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include<bits/stdc++.h>
using namespace std;
void MaxK(int arr[], int n, int k){
deque<int> Q(k);
int i = 0;
for(i; i < k; i++){
while(!Q.empty() and arr[i] >= arr[Q.back()])
Q.pop_back();
Q.push_back(i);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// WKRKit
| ise-uiuc/Magicoder-OSS-Instruct-75K |
expect(response.error).toBeUndefined();
});
});
describe('error', () => {
it('Expect it creates error response with default status', () => {
const response = PgNotifyResponse.error({message: 'Error'});
expect(response.status).toEqual(500);
expect(response.error).toEqual({message: 'Error'});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @copyright (C) 2011 - 2014 The VirtueMart Team
* @Email: <EMAIL>
*
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*
* www.virtuemart.net
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* Copyright (C) 2021, <NAME>
*
*/
#include "Listener.h"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_prototype: unknown,
propertyKey: string,
descriptor: PropertyDescriptor,
): void {
if (!descriptor.get) {
throw new Error(`@memoized can only be applied to property getters!`);
}
if (descriptor.set) {
throw new Error(`@memoized can only be applied to readonly properties!`);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
r1 = float(input('Insira o comprimento da primeira reta:'))
r2 = float(input('Insira o comprimento da segunda reta:'))
r3 = float(input('Insira o coprimento da terceira reta: '))
if r1 + r2 > r3 and r2 + r3 > r1 and r1 + r3 > r2:
if r1 == r2 == r3:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public string help;
public Func<string[], string> function;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// 120 (НДС 20 /120). Тег 1106
/// </summary>
[Description("НДС 20/120")] Vat120_1106 = 120
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
except ImportError:
from distutils.core import setup
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "lab_m1/Tema2/Wall.h"
Wall::Wall(glm::vec3 position, glm::vec3 scale) {
m_position = position;
m_scale = scale;
m_modelMatrix = glm::translate(m_modelMatrix, position);
m_modelMatrix = glm::scale(m_modelMatrix, scale);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.google.netpcapanalysis.interfaces.dao.PCAPDao;
import com.google.netpcapanalysis.interfaces.dao.ReverseDNSLookupDao;
import com.google.netpcapanalysis.dao.MaliciousIPDaoImpl;
import com.google.netpcapanalysis.interfaces.dao.MaliciousIPDao;
import com.google.netpcapanalysis.dao.GeolocationDaoImpl;
import com.google.netpcapanalysis.interfaces.dao.GeolocationDao;
import com.google.netpcapanalysis.dao.ReverseDNSLookupDaoImpl;
import com.google.netpcapanalysis.interfaces.dao.ReverseDNSLookupDao;
import java.io.IOException;
import java.util.List;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def main():
count_to_by(10,1)
count_to_by(34,5)
count_to_by(17,3)
if __name__ == '__main__':
main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Response response;
populateCustomerList();
Jsonb jsonb = JsonbBuilder.create();
CustomerContainer customerContainer = new CustomerContainer();
customerContainer.setCustomerList(customerList);
Set<ConstraintViolation<CustomerContainer>> constraintViolations = validator.validate(customerContainer);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> EXTMODE3_A {
| 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.