seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
<Layout>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for($i = 0; $i < count($product_images); $i++){
echo "<div class='gallery'>";
echo "<img width='100' src='http://localhost/remsonrails/public/images/product_images/".$product_images[$i]."'>";
echo "</div>";
if ($i === 1) {
echo "<br/> <br/> <br/> <br/> <br/> <br/><br/> <br/> <br/> <br/> <br/> <br/>";
}
for($j = $i; $j<= $i; $j++){
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ssh <EMAIL>@cat<EMAIL> "cd ~/fb-event-scraper/ && docker-compose down && docker-compose up --build -d" | ise-uiuc/Magicoder-OSS-Instruct-75K |
return len(word)
for c in word:
if c in vowels:
num_of_char[word] += 1
else:
num_of_char[word] = 1
return(c)
analyze_word('word') | ise-uiuc/Magicoder-OSS-Instruct-75K |
import time
import maze_map
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
#!/bin/bash
for LQN in $(ls ../*/*mock.go );do
DIR=$(echo ${LQN}| awk -F/ '{print $2}')
SRC=$(echo ${LQN}| sed 's/\_mock//' )
mockgen -source ${SRC} -package=${DIR} -destination=${LQN}
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
result = czip(din, sec_opnd) | decoupler | fmap(f=f, fcat=czip, lvl=2)
acc, fin_res = result | Union[qtype, qtype] | demux
acc | fifo(intfs=[temp_res], depth=max_size)
return fin_res
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from ._advent_timer import * | ise-uiuc/Magicoder-OSS-Instruct-75K |
Output: Normal pumping function of the left and right side of the heart. Heart valves are normal
-
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.logger.info(f"No {plural_name}")
return
try:
translation_model = model.translations.rel.related_model
except AttributeError:
translation_model = None
objs_to_create = []
manually_created = []
num_of_skipped = 0
# gtfs_kit returns DataFrames and extra dataset uses list
iterable_data = (
gtfs_data if isinstance(gtfs_data, list) else gtfs_data.itertuples()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@endforeach
</tbody>
</table> | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub struct Organization {
pub name: String,
}
#[cfg(test)]
mod tests {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
float scale_y = screen_h / 1080; if (scale_y > 1.0f) scale_y = 1;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export * from './Identity';
export * from './Wallet';
export * from './Key';
export * from './Chain';
export * from './Session';
export * from './Data';
export * from './Cache';
export * from './Node';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
image = self.image_repo.list()[0]
self.assertEqual(image.locations, orig_locations)
class TestImageMemberRepo(test_utils.BaseTestCase):
def setUp(self):
super(TestImageMemberRepo, self).setUp()
self.db = unit_test_utils.FakeDB()
self.db.reset()
self.context = glance.context.RequestContext(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// using the `process(_:localization:)` or `copy(_:)` rules.
/// Alternatively, exclude resource files from a target by passing them to the
/// target initializer’s `exclude` parameter.
public struct Resource: Encodable {
/// Defines the explicit type of localization for resources.
public enum Localization: String, Encodable {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
macro_rules! constant_same_as {
($name:ident, $value:expr) => {
pub(crate) use cfg::$name;
#[cfg(test)]
paste::paste! {
#[test]
fn [< test_ $name >]() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
opacity: 1;
}
`;
export const Content = styled.div`
display: flex;
flex-direction: column;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
credentials = service_account.Credentials.from_service_account_info(credentials_info)
else:
# Explicitly use Compute Engine credentials. These credentials are
# available on Compute Engine, App Engine Flexible, and Container Engine.
credentials = compute_engine.Credentials()
return credentials
| ise-uiuc/Magicoder-OSS-Instruct-75K |
result = klass(**kwargs)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<!-- ============================================================== -->
<?php echo view('dgac/topbar'); ?>
<!-- ============================================================== -->
<!-- End Topbar header -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Left Sidebar - style you can find in sidebar.scss -->
<!-- ============================================================== -->
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { DragDropModule } from '@angular/cdk/drag-drop';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
m[2][3] = z.data[2];
m[3][0] = w.data[0];
m[3][1] = w.data[1];
m[3][2] = w.data[2];
m[3][3] = w.data[3];
}
revMatrix44::~revMatrix44()
{
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mouse = pygame.mouse.get_pos()
radar = Radar(mouse[0], mouse[1], 25)
screen.fill(WHITE)
draw_barrier()
radar.radiate()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Copyright (c) 2018 Magic Leap, Inc. All Rights Reserved.
// Use of this file is governed by the Creator Agreement, located
// here: https://id.magicleap.com/creator-terms
//
// %COPYRIGHT_END%
// ---------------------------------------------------------------------
// %BANNER_END%
using System.Collections;
using UnityEngine;
using UnityEngine.XR.MagicLeap;
namespace MagicLeap
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@kp.setter
def kp(self, kp):
"""Set the proportional gain."""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
{{/tables}}
`;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
LICENSE = 'BSD 3 LICENSE'
cmdclass = {}
# -- versioning ---------------------------------------------------------------
import versioneer
__version__ = versioneer.get_version()
cmdclass.update(versioneer.get_cmdclass())
# -- dependencies -------------------------------------------------------------
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# platform = multi_platform_fedora,Red Hat Enterprise Linux 8
echo 'set -g lock-command locker' >> '/etc/tmux.conf'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
infowindow2.setContent("<h4>"+name+"</h4><a href=<?=url('/local')?>/"+id+">"+routes_count+" Vias</a>");
infowindow2.setPosition(event.feature.getGeometry().get());
infowindow2.setOptions({pixelOffset: new google.maps.Size(0,-30)});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Reference Signal Received Power measurement according to mapping table in ETSI TS 138.133 [i.14].
* @return nrNCellRsrp
**/
@Schema(description = "Reference Signal Received Power measurement according to mapping table in ETSI TS 138.133 [i.14].")
public Integer getNrNCellRsrp() {
return nrNCellRsrp;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory)]
[CategoriesColumn]
public class SelectBenchmarks : RandomBenchmarksBase
{
[BenchmarkCategory("Array")]
[Benchmark(Baseline = true)]
public int Linq_Array()
{
var sum = 0;
foreach (var item in System.Linq.Enumerable.Select(array, item => item))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
par += matriz[l][c]
print('=-'*15)
for l in range (0,3):
for c in range(0,3):
print(f'[{matriz[l][c]:^5}]', end='')
print()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Copyright (c) 2020 Airbyte
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
from pipeline.pipeline import Pipeline
__all__ = ["Pipeline"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# (i = 1, ..., m) for some d1, ..., du in Const(k).
# In that case, solutions of
# a*Dp + b*p = Sum(ci*qi) = Sum(dj*Sum(aji*qi))
# are the same as those of
# (a/d)*Dp + (b/d)*p = Sum(dj*rj)
# where rj = Sum(aji*qqi).
if not V: # No non-trivial solution.
return [], eye(m) # Could return A, but this has
# the minimum number of rows.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for a in ax.ravel():
a.set_axis_off()
plt.tight_layout()
plt.show() | ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_write_energy_to_db(self):
row_count = get_db_row_count(db, "production")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public List<File> Files { get; set; }
}
public class DriverConfig
{
public OpMode OpMode { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
`chat_time`
)
VALUES (NULL,
'$_SESSION[name]',
'$_POST[chat]',
NOW()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name = input('Please enter your name:\n')
age = int(input("Please enter your age:\n"))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def gender_create(sender, instance, **kwargs):
instance.type = instance.type.lower()
pre_save.connect(gender_create, sender=Gender)
def user_create(sender, instance, **kwargs):
instance.email = instance.email.lower()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</Options>
</FutureOptions>
<Allergens>
<Allergen contained="YES">AU</Allergen>
<Allergen contained="CANCONTAIN">AW</Allergen>
</Allergens>
<NutrientValues>
<NutrientValue code="GCAL">260.00</NutrientValue>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self._driver.execute_script("arguments[0].scrollIntoView();", element)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="main-panel">
<?php include_once('lib/navbar.php'); ?>
<div class="content">
<div class="container-fluid">
<div class="row">
<?php if(isset($_GET['aksi']) && $_GET['aksi'] == 'edit') : ?>
<?php include_once('content/edit_pelanggan.php'); ?>
<?php else: ?>
<?php include_once('content/pelanggan.php'); ?>
<?php endif; ?>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
XCTAssertTrue(project.mainGroup.subitems.contains { $0.path == "a.txt" })
let projectWithoutExtraFiles = try Xcodeproj.generate(
projectName: projectName,
xcodeprojPath: outpath,
graph: graph,
options: XcodeprojOptions(addExtraFiles: false),
diagnostics: ObservabilitySystem.topScope.makeDiagnosticsEngine()
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* The number of times to retry a failed health check before the container is considered
* unhealthy. You may specify between 1 and 10 retries. The default value is 3.
*/
retries?: number;
/**
* The optional grace period within which to provide containers time to bootstrap before failed
* health checks count towards the maximum number of retries. You may specify between 0 and 300
* seconds. The startPeriod is disabled by default.
*
* Note:
* If a health check succeeds within the startPeriod, then the container is considered healthy
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data['dir_vel'] = get_DirFromN(data['east_vel'],data['north_vel'])
# Signed Speed
spd_all = np.sqrt(data['east_vel']**2+data['north_vel']**2)
# Determine flood and ebb based on principal direction (Polagye Routine)
print 'Getting signed speed (Principal Direction Method) -- used all speeds'
s_signed_all, PA_all = sign_speed(data['east_vel'], data['north_vel'],
spd_all, data['dir_vel'], params['flooddir'])
data['mag_signed_vel'] = s_signed_all
if options['showRBRavg'] or debug:
print 'Plotting RBR vs average'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if(filter_var($float, FILTER_VALIDATE_FLOAT))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
private Type enumType;
private Dictionary<object, NamingAttribute> namingMap = new Dictionary<object, NamingAttribute>();
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__all__ = []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Time: 6:02 PM
*/
namespace App\Controllers;
use App\Core\Http\Controller as BaseController;
class Controller extends BaseController
{
/**
* The namespace where controllers will live
*
* @var string
*/
public static $namespace = "\\App\\Controllers";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
_qname = GS_TEMPLATE % 'rowCount'
class Worksheet(atom.core.XmlElement):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for row in data.splitlines():
if not row:
continue
if 'fold along x=' in row:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
for (int i = 0; i < args.length; i++)
{
if (args[i].equals("-P") == true && (i + 1) < args.length)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
done
clear
echo -e "\n\n ---- RESULTADOS ---- \n"
echo " La suma de los pares hasta el número $num es: $suma_pares"
echo " El producto de los impares hasta en $num es : $producto_impares"
echo -e "\n\n" | ise-uiuc/Magicoder-OSS-Instruct-75K |
(Box::new(RecreateWithCheapest::default()), 100),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Returns:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class StreamTransport:
def __init__(self, stream):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<!DOCTYPE html>
<html>
<head>
<title>Cookie test</title>
</head>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert 'plantes' not in index
assert 'plant' in index
@pytest.mark.models
@pytest.mark.parametrize('text,lemma', [("was", "be")])
def test_tagger_lemmatizer_read_exc(path, text, lemma):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from caffe.proto import caffe_pb2
from google.protobuf import text_format
# Global variables
bn_maps = {}
def make_parser():
parser = argparse.ArgumentParser()
parser.add_argument('--model', type=str, required=True,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
td = (tf.tanh(td_) + 1) * 25 / 6 + 25 / 3
k = get_variable(0.0083, k_)
Rm = get_variable(209, Rm_)
a1 = get_variable(6.6, a1_)
C1 = get_variable(300, C1_)
C2 = get_variable(144, C2_)
C3 = 100
C4 = get_variable(80, C4_)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Test(new TestOrderedDict()),
Test(new TestInlinePattern()),
Test(new TestTreeProcessor()),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'''
gst-launch-1.0 \
videotestsrc is-live=true ! \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
printf("[ %s ][ %u ]: failed to stop router.\n", c.domain.c_str(), c.router_id);
} else {
printf("[ %s ][ %u ]: router stopped.\n", c.domain.c_str(), c.router_id);
}
} break;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo '[default]\n
aws_access_key_id = $id\n
aws_secret_access_key = $key\n
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.mCriteria = criteria;
this.mFlags = flags;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'''
卡牌类型枚举类
'''
UR = "UR"
SSR = "SSR"
SR = "SR"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_names(self) -> Set[str]:
"""Returns the list of names for directly addressing the function"""
self.names.add(self.help_name)
return self.names
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def main():
out = []
# The input file is generated using the Signal Identification Guide (sigidwiki.com)
# stored as the "db.csv" file from the Artemis 2 offline database (markslab.tk/project-artemis).
with open("db.csv", "r") as f:
for line in f:
data = line.split('*')
if len(data) > 7:
description, freqStart, freqStop, url = data[0], int(data[1]), int(data[2]), data[7]
current = {"freqStart": freqStart, "freqStop": freqStop, "description": description, "url": url}
if (freqStart != 0 or freqStop != 0):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
select: {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
using TeamLegend.Models;
public class TeamDetailsViewModel
{
public string Id { get; set; }
public string Name { get; set; }
public string Nickname { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__author__ = 'peter'
def test_cross_dict_dicts():
assert cross_dict_dicts({'a':{'aa': 1}, 'b':{'bb': 2}}, {'c': {'cc': 3}, 'd': {'dd': 4}}) == {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if extent < 0.8: # circle
num = 3
elif extent >= 0.8: # square
num = 4
arena[y_pos][x_pos] = num
print(num)
return num
"""arena = [[3, 4, 1, 0, 3, 0, 1, 4, 3],
[4, 2, 2, 3, 1, 2, 1, 2, 4],
[3, 1, 1, 3, 3, 3, 3, 2, 1],
[0, 4, 4, 4, 1, 1, 2, 2, 0],
[3, 2, 0, 3, 0, 2, 0, 4, 1],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
QRD_inPlace(A)
Note that the decomposition represented is A=QR.
Matrix R is stored in the upper triangular portion of A.
Householder vectors are stored in the lower sub-triangular portion of A.
Householder vectors are normalized so that v[0] is 1.0;
"""
m=A.collength
n=A.rowlength
if m < n:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
),
],
)
def test_add_module_action(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try? contentFile.write(to: fileURL, atomically: true, encoding: .utf8)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
exec /opt/app-root/bin/oc "$@"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if inspector_frames:
driver.switch_to_frame(inspector_frames[0])
driver.execute_script('return document.querySelector(".inspector-view-tabbed-pane").shadowRoot.getElementById("tab-console")').click()
driver.switch_to_active_element().send_keys('chrome\n')
driver.find_element_by_class_name('console-object-preview').click()
time.sleep(1) # wait for crash!
expanded = driver.find_element_by_css_selector('.console-view-object-properties-section.expanded')
assert(expanded is not None)
finally:
driver.quit()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return self._till_regex
@property
def time_of_day_regex(self) -> Pattern:
return self._time_of_day_regex
@property
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Runtime.CompilerServices;
using Windows.UI.Xaml.Controls;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#endif //FASTTRAINSERVICE_SHORTESTPATHPROVIDER_HPP
| ise-uiuc/Magicoder-OSS-Instruct-75K |
st_tensorboard(logdir=logdir, port=6006, width=1080)
"""
, language="python")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
XPATH_PASSWORD_INPUT = "//form//input[contains(@placeholder,'Password')]"
XPATH_SUBMIT = "//form//button[contains(@type,'submit')]"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use thiserror::Error;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
</div>
</div>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
verify_email_address=True,
verification_email={
'sender': '<NAME> <<EMAIL>>',
'subject': 'Verify your email address',
'body_text': 'Click here {{ user.full_name }}: {{ verification_url }}',
'body_html': '<a href="{{ verification_url }}">Click here</a> {{ user.full_name }}'
},
verification_successful_url='/verification_successful',
verification_failed_url='/verification_failed',
reset_password_url='/reset_password',
reset_password_email={
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/sh
set -x
docker build . -t rainbowh2020/k8s-test-cluster:v0.0.2 -t rainbowh2020/k8s-test-cluster:latest
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous">
<title><?php echo $judul; ?></title>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>akmoore/salesconnect
<?php
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}],
u'type': u'virtual server'
}
self.assertEqual(vm_info, vm_info_expexted)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import visualisation
import read_sensors as sensors
import localization_logic as loc
import sys
import sensor_fusion as fusion
# Dictionary for holding positions
positions = fusion.positions # See sensor_fusion.py file for the positions dictionary
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.animationTimer.setUpdateInterval(fInterval)
self.animationTimer.setDuration(duration)
self.animationTimer.valueChanged.connect(self.updateAnimation)
def updateAnimation(self):
"""
Updates the animation displayed by changing the worm frame
being displayed.
"""
self.frame = self.animationTimer.currentFrame()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
callback(Result.failure(error))
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import qrcode.image.svg
| ise-uiuc/Magicoder-OSS-Instruct-75K |
);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
baseWeb: 'https://dota2stats.the-cluster.org'
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use super::os_services;
const ACPI_ALLOCATE_BUFFER: u64 = u64::MAX;
/// An uninitialized output buffer for ACPICA to put store data in.
///
/// This wraps an ACPI_BUFFER marked as ACPI_ALLOCATE_BUFFER. When passed to
/// an ACPICA function (using the `buffer_ptr` method), ACPICA will
/// automatically allocate a buffer of the appropriate length and store 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.