seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
app.include_router(NoteRouter, prefix="/note")
@app.get('/api/hello')
async def hello():
return {'message': 'Hello world!'}
@app.get('/')
async def hello():
return {"message":"you won smoke you gon find me in Gotham"} | ise-uiuc/Magicoder-OSS-Instruct-75K |
options = webdriver.ChromeOptions()
options.add_argument('ignore-certificate-errors')
options.add_argument("--headless")
options.add_argument('--no-sandbox')
options.add_argument('start-maximized')
options.add_argument('disable-infobars')
options.add_argument("--disable-extensions")
dri... | ise-uiuc/Magicoder-OSS-Instruct-75K |
func fetchImagePerAlbum(albumId: Int, completion: @escaping (Result<[Photo]?, Error>) -> ())
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
//set up constants
define( 'OOP_EXAMPLE_PLUGIN__VERSION', '1.0.0' );
define( 'OOP_EXAMPLE_PLUGIN__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
$oopInit = new Oop();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
jmapProcess() {
buildOutputPath basicPath
DUMP_PATH=`printf "%s%s" "${basicPath}" ".hprof"`
echo "Now dump into: ${DUMP_PATH}"
# jmap -dump:live,format=b,file=/data/hbase/dumps/pid_29140_date_2016_12_14-09:26:37.hprof 29140
# cannot use live, because the option will make a gc
DUMP_EXEC=`print... | 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.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public Mistnost(string oznaceni, List<object> veciVMistnosti)
{
Oznaceni = oznaceni;
predmety = veciVMistnosti;
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
" WHEN 1 THEN 'One'\n" +
" WHEN 2 THEN 'Two'\n" +
" ELSE 'Other'\n" +
"END");
s = node.toString();
Assert.assertEquals("if (64'sd0 == 64'sd1) {\n" +
"\"One\"} else {\n" +
"if (64'sd0 == 64'sd2)... | ise-uiuc/Magicoder-OSS-Instruct-75K |
const reportComplete = transform.file(async (file) => {
const pathHash = getOriginalPathHash(file)
delete todo[pathHash]
if (file.event === "add") {
done[pathHash] = file.hash
}
if (file.event === "unlink") {
delete done[pathHash]
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "false"
fi
done <$1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'acquisition_mode': {'value': 'STEM'},
'beam_current': {'value': 0.0, 'units': 'NanoA'},
'beam_energy': {'value': 300.0, 'units': 'KiloEV'},
'convergence_angle': {'value': 13.0, 'units': 'MilliRAD'},
'magnification_indicated': {'value': 57000.0, 'units': 'UNITLESS'},
'mic... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Domain = Environment.GetEnvironmentVariable("E2E_Domain"),
ClientId = Environment.GetEnvironmentVariable("E2E_ClientId"),
ClientSecret = Environment.GetEnvironmentVariable("E2E_ClientSecret"),
ReuseAccessToken = false
};
if (auth0F... | ise-uiuc/Magicoder-OSS-Instruct-75K |
1: "Other",
2: "Mining",
3: "Processing",
4: "Energy",
5: "Utilities",
6: "Construction",
7: "Retail_and_wholesale",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
public function render(DataInterface $data): string;
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
@classmethod
def _create_user_role_on_project(cls, role_ids):
for role_id in role_ids:
cls.admin_roles_client.create_user_role_on_project(
cls._project_id, cls._user_id, role_id)
@classmethod
def _list_and_clear_user_roles_on_project(cls, role_ids):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
st = time.time()
# flip the frame horizontally for a later selfie-view display
frame = cv.cvtColor(cv.flip(frame, 1), cv.COLOR_BGR2RGB)
# to improve performance, optionally mark the frame as not writeable to pass by reference
frame.flags.writeable = False
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Configure the controller and send renew
self.device_reset_default()
controller.cmd_reply(
"DEV_SET_CONFIG,bss_info1,"
"{} 8x Boardfarm-Tests-24G-3 0x0020 0x0008 maprocks1 0 1".format(agent.mac))
controller.dev_send_1905(agent.mac,
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
else if ((a.rows() == 1) && (a.cols() == b.cols())) {
Eigen::Map<Eigen::RowVectorXd> *a_vector = new Eigen::Map<Eigen::RowVectorXd>(a.data(), a.cols());
return b.array().rowwise() * a_vector->array();
// Row-wise broadcast from b
} else if ((b.rows() == 1) && (a.cols() == b.cols())) {
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
resized_height = max_size
resized_width = int(round((max_size/float(image.size[1]))*image.size[0]))
image = image.resize((resized_width, resized_height), Image.ANTIALIAS)
image.save(resized_path, 'JPEG')
output = Path(resized_path).absolute()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Reference:
<NAME>
http://www.oosa.unvienna.org/pdf/icg/2012/template/WGS_84.pdf
"""
R0 = 6378137.0
f = 298.257223563
omega_E = 7.2921151467e-5
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Ezpizee\Utils;
final class EncodingUtil
{
private static $MD5_REGEX = '/^[a-f0-9]{32}$/';
private static $UUID_V4_REGEX1 = '/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i';
private static $UUID_V4_REGEX1_2 = '/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-... | ise-uiuc/Magicoder-OSS-Instruct-75K |
themeControl.selectedSegmentIndex = defaults.integer(forKey: "themeColorIndex")
}
changeViewTheme()
}
/**
* Change view background color
*/
func changeViewTheme(){
let colorIndex = defaults.integer(forKey: "themeColorIndex")
if colorIndex... | ise-uiuc/Magicoder-OSS-Instruct-75K |
with tempfile.NamedTemporaryFile(suffix=".dot") as dot_graph_file:
commands = []
commands.append(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Project name: SortingProblem
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'default': {
'HOST': '127.0.0.1',
'NAME': 'utopia',
'PASSWORD': '<PASSWORD>',
'USER': 'utopiatest_django',
'ENGINE': 'django.contrib.gis.db.backends.postgis',
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>TongSpeed/yu-ncov-server<gh_stars>0
import { PrismaClient } from '@prisma/client'
import * as Task from 'fp-ts/lib/Task'
import cuid from 'cuid'
import * as A from 'fp-ts/lib/Array'
import { pipe } from 'fp-ts/lib/pipeable'
import parse from 'csv-parse'
import { createReadStream, ReadStream } from 'fs'
import... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<button type="submit" class="btn btn-danger"><i class="fas fa-trash"></i></button>
</div>
</form>
</div>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
close_price=close_price,
)
@staticmethod
def save_from(event):
event["id"] = uuid_gen()
SignalAlert.insert(event).execute()
class TradeOrder(Model):
id = UUIDField(primary_key=True)
strategy = CharField()
buy_timestamp = BigIntegerField()
market = CharField... | ise-uiuc/Magicoder-OSS-Instruct-75K |
assert str(<Fragment>'''</Fragment>) == """'''"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return le, encoded
def read_image(path, w, h):
img = Image.open(path)
img = img.resize((w, h))
img = img.convert('RGB')
return np.array(img)
class ImageNetDataset(Dataset):
def __init__(self, width, height, img_paths, labels):
super().__init__()
self.width, se... | ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
public function __construct(HasClassName $object)
{
parent::__construct(sprintf('Not matching type. It should be "%s"', $object::className()));
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//! Additional types for generating responses.
#[cfg(feature = "erased-json")]
mod erased_json;
#[cfg(feature = "erased-json")]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for event in events:
if event.type == ecodes.EV_KEY:
if event.code == 297: #START
if event.value == 1:
to_break = False
except BlockingIOError:
#do nothing
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return "\n" + table.draw() + "\n"
def draw_lrt_table(test_titles, pv_names, stats):
from limix._display import Table
table = Table(test_titles, index=_describe_index())
for name in pv_names:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except KeyError:
raise ValueError(f"Invalid resource name: {resource_name}")
return resource_name
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sys.stdin = open('../input.txt', 'r')
si = sys.stdin.readline
n, k = map(int, si().split())
belt = deque(list(map(int, si().split())))
robot = deque([0] * 2 * n)
step = 1
while True:
belt.rotate(1)
robot.rotate(1)
robot[n - 1] = 0
for i in range(n - 2, -1, -1):
if robot[i] != 0 and robot[i + 1... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#include <unordered_map>
#include "dbConnection.h"
#include "serviceInstance.h"
#include "serviceList.h"
using namespace std;
using namespace dbUtilities;
namespace serviceCommon {
serviceList::serviceList() {
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mkdir obj/
mkdir lib/
make -j4
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if rowIndex == 0:
return [1]
s = [1]
for i in range(1, rowIndex + 1):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
export {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class MainClass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import timeit
from algs.modeling import numpy_error
from algs.table import DataTable, ExerciseNum, comma, caption
from algs.modeling import n_log_n_model
def merged_arrays(heap1, heap2):
"""Return combined array with sorted values."""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
f_ij = self.update_network(f_ij)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
user = request.user
prepare_user(user)
token,_ = Token.objects.get_or_create(user=user)
url = "travel://?token=" + token.key + '&id=' + str(user.id)
else:
url = "travel://error"
response = HttpResponse(url, status=302)
response['Location'] = url
return response
@... | ise-uiuc/Magicoder-OSS-Instruct-75K |
field="test"
id="testid"
title="test title"
searchkit={this.searchkit}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class AutoNetFeatureData(AutoNet):
@classmethod
def get_default_pipeline(cls):
from autoPyTorch.pipeline.base.pipeline import Pipeline
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//Класс лука, может использоваться как основное оружие
public class BowScript : WeaponScript
{
public GameObject ActivArrow { get; set; }
public Transform FierPoint;
public GameObject arrow;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def _notify_sync_not_full(self) -> None:
def f() -> None:
with self._sync_mutex:
self._sync_not_full.notify()
fut = self._loop.run_in_executor(None, f)
fut.add_done_callback(self._pending.discard)
self._pending.add(fut)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
void diag_subscriber::callback_(diag_msgs::diag_error msg)
{
mtx_.lock();
buffer_.push_back(msg);
//ROS_ERROR_STREAM(msg);
mtx_.unlock();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* @brief constructor
*/
Cylinder (int levels = 16);
/**
* @brief Constructs cylinder primitive with the specified setup
*
* The cylinder is aligned with the height in the z-direction.
*
* @param radius [in] radius of the cylinde... | ise-uiuc/Magicoder-OSS-Instruct-75K |
tasks = []
async def crawl(problem_id):
return await loop.run_in_executor(None, self.online_judge.get_submission, problem_id)
for problem_id in self.problems:
task = loop.create_task(crawl(problem_id))
tasks.append(task)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
setup(
name='dialog_py',
version='1.0a1',
description='Python API for cdialog/linux dialog',
long_description=long_description,
url='https://github.com/pasha13666/dialog_py',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* 最新の週間ランキング日を取得する
*
* @param string $format
*
* @return string
*/
function get_latest_ranking_day($format = ''){
| ise-uiuc/Magicoder-OSS-Instruct-75K |
= std::find_if(container.begin(), container.end(), bind(&RoomInfo::integer, _1) == 1);
std::cout << ite->integer_ << std::endl;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
max_policy = ">"
data[i][j].policy = max_policy
print("{:6s}".format(data[i][j].policy), end=" ")
print()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if args.debug:
androconf.set_debug()
# We need that to save huge sessions when leaving and avoid
# RuntimeError: maximum recursion depth exceeded while pickling an object
# or
# RuntimeError: maximum recursion depth exceeded in cmp
# http://stackoverflow.com/questions/2134706/hitting-ma... | ise-uiuc/Magicoder-OSS-Instruct-75K |
receiver: Users = self.session.query(Users).filter(Users.user_id == receiver_id).first()
if not receiver:
raise ReceiverDoesNotExist()
sender.wallet -= amount
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.usingLocalStorage
]
/// Receive unread message count after session did open.
public static let receiveUnreadMessageCountAfterSessionDidOpen = Options(rawValue: 1 << 0)
/// Use local storage.
public static let usingLocalStorage = Options(rawValue: 1 ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertEqual(bc[0][0], True, "should be zero")
self.assertEqual(bc[0][1], False, "should be one")
v=bc._decode(np.array([0.3,0.4,0.45]))
self.assertEqual(v, "c", "should be one")
v=bc._decode(np.array([0.2,0.1,0.1]))
self.assertEqual(v, "", "should be z... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_file_size():
assert isinstance(photo.file_size, int)
assert photo.file_size == PHOTO['file_size']
def test_size():
assert isinstance(photo.width, int)
assert isinstance(photo.height, int)
assert photo.width == PHOTO['width']
assert photo.height == PHOTO['height']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// [ActivationGroupImpl[UnicastServerRef [liveRef:
// [endpoint:[172.16.20.11:12345](local),objID:[de39d9c:15269e6d8bf:-7fc1, -9046794842107247609]]
e.printStackTrace();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Assert::same($this->indexPage->countItems(), (int) $quantity);
}
/**
* @When I delete the vendor :name
* @param string $name
*/
public function iDeleteTheVendor(string $name): void
{
$this->indexPage->deleteVendor($name);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if len(lists) == 0:
return None
if len(lists) == 1:
return lists[0]
node_result = self.merge_two_sorted_lists(lists.pop(), lists.pop())
while lists:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Clean up per-login resources allocated to this avatar.
"""
@implementer(IProtocolAvatar)
class ClientAvatar(object):
def __init__(self):
super().__init__()
self.__client = None
self.__server = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return new SuccessResultModel<PagedResult<GetIndustryViewModel>>(map);
}
/// <summary>
/// Get All Industries
/// </summary>
/// <returns></returns>
public virtual async Task<ResultModel<IEnumerable<GetIndustryViewModel>>> GetAllIndustriesAsync(bool include... | ise-uiuc/Magicoder-OSS-Instruct-75K |
[](double result, Token::Ptr tok) {
return result + token_to_num(tok);
});
return best_num_token(sum, args);
}
Token::Ptr op_sub(const vector<Token::Ptr> &args) {
double v1 = 0, v2 = 0;
if (args.size() == 1) {
v1 = 0;
v2 = token_to_num(args[0]);
} else if (ar... | ise-uiuc/Magicoder-OSS-Instruct-75K |
class RpiPrimary:
"""Class to create a primary node which will handle connections coming in from a secondary
This will form the basis of a general primary node which will be in charge of listening for connections
and handling each one.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
t = BatchTaskNoOutput(job_def=TEST_JOB_DEF, job_name='test_unregistered')
t.run()
def test_registered_task(self):
t = BatchTaskNoOutput(job_def_arn=self.arn, job_name='test_registered')
t.run()
def test_override_command(self):
t = BatchTaskOverrideCommand(job_def_arn=se... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import SwiftUI
import LoopKitUI
struct InsertCannulaView: View {
@ObservedObject var viewModel: InsertCannulaViewModel
@Environment(\.verticalSizeClass) var verticalSizeClass
@State private var cancelModalIsPresented: Bool = false
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.init_state = static_rep
types_table, predicate_table = static_rep
self.types = {}
for v in self.predicates.values():
v.clear()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
visit_count = client.session['visit_count']
assert visit_count[0]['path'] == '/'
assert visit_count[0]['count'] == 1
response = client.get('/')
assert response.status_code == 200
visit_count = client.session['visit_count']
assert visit_count[0]['path'] == '/'
assert visit_count[0]['coun... | ise-uiuc/Magicoder-OSS-Instruct-75K |
do
$VERBOSE && echo "----- moving plot dir: $(basename $k)"
$ECHO $OP $k $SINK_PLOTDIR || exit $?
done
fi
done
if ! $BACK; then
| ise-uiuc/Magicoder-OSS-Instruct-75K |
REQUIRE(vector.capacity() == 0);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
int res;
res = fact(n) / (fact(p) * fact(n - p));
return res;
}
/* Utilisation */
int main()
{
int n;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Adds region factory for deferred column regions implementations. Deferred regions serve as placeholders, constructing
* (and usually swapping themselves for) the "real" region on first access.
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public string WeaponRightSize { get; set; }
public string EarringBLeftSize { get; set; }
public string EarringBRightSize { get; set; }
public string IndexBLeftSize { get; set; }
public string IndexBRightSize { get; set; }
public string PinkyBL... | ise-uiuc/Magicoder-OSS-Instruct-75K |
// role:1,
// },
// ]
// },
{
name: 'WIP',
icon: 'fa fa-group',
url: '/wip',
role:-1,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Integer of the transactions index position in the block.
public let transactionIndex: Quantity
/// 32 Bytes - hash of the block where this transaction was in.
public let blockHash: EthData
/// Block number where this transaction was in.
public let blockNumber: Quantity
/// The tot... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
<div class="p-6 bg-white border-b border-gray-200">
<div class="pb-5 flex justify-between items-center">
<h1 class="text-lg font-... | ise-uiuc/Magicoder-OSS-Instruct-75K |
rotationEnabled = true
}
open override func loadView() {
let contentView = UIView()
contentView.autoresizingMask = .flexibleWidth
contentView.backgroundColor = UIColor.black
view = contentView
// Add CropView
cropView = CropView(frame: conten... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# for front sensor
if frontDist.getValue() < 0.05:
spin()
# if on black, turn away
if getColor() < 80:
spin()
wheel_left.setVelocity(speeds[0])
wheel_right.setVelocity(speeds[1])
delay(600)
# if sees victim, report it
if checkVic(cam.getImage()):
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Graphs
| ise-uiuc/Magicoder-OSS-Instruct-75K |
noisy_weight = self.noisy_weight * self.noise
noisy_bias = self.noisy_bias * self.out_noise
noisy_y = nn.functional.linear(x, noisy_weight, noisy_bias)
return noisy_y + normal_y
def __repr__(self):
return self.__class__.__name__ + '(' \
+ 'in_features=' + str... | ise-uiuc/Magicoder-OSS-Instruct-75K |
function uninstall_ppp_mode {
PPP_MODE_DETECTED=0
for f in "/etc/chatscripts/ltepi2" "/etc/ppp/peers/ltepi2"
do
if [ -f "${f}" ]; then
rm -f "${f}"
PPP_MODE_DETECTED=1
fi
done
if [ "${PPP_MODE_DETECTED}" == "0" ]; then
return
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</Collection>
</PropertyValue>
</Record>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise PermissionDenied(detail="Not allowed.")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from config import Config
else:
from .config import Config
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_create_ip_policy_invalid_subnet(self):
with self._stubs(None):
with self.assertRaises(exceptions.SubnetNotFound):
self.plugin.create_ip_policy(self.context, dict(
ip_policy=dict(subnet_ids=[1],
exclude=["1.1.1.1/24"... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'name' => 'a',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
lin = layers.LinSoftmax(20, 10).train()
o = lin(torch.randn(1, 20, 12, 24))
self.assertLess(o[0].max(), 0)
def test_linsoftmax_test(self):
"""
Test function of linear layer in eval mode (softmax)
"""
lin = layers.LinSoftmax(20, 10).eval()
o = lin(torc... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if env_variable is None:
click.secho(
"Cannot determine version number from env variable `bump`", fg="red"
)
sys.exit(1)
return contents, env_variable
def determine_category(name: str) -> str:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ansibleStatus=$?
if [ $ansibleStatus -eq 0 ]
then
echo "Added ${addNode} to the cluster"
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, jar_id, points_filename='jars.json'):
# pull raw positions from JSON
json_data = json.load(open(points_filename))
jar_data = json_data[str(jar_id)]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
(Value::Real(lhs), Value::Real(rhs)) =>
Ok(Value::Real(lhs * rhs)),
_ => Err(
format!("Unable to use '*' operator for {:?} and {:?} values.",
lhs, rhs)),
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"Phrase Code",Translation
_EMAIL_FRIEND_HINT, "Enviar esta página a un amigo"
_EMAIL_FRIEND, "Enviar Página"
_POPUP_HEADER, "Use esta ventana para enviar nuestra página a un amigo"
_EMAIL_SENDING_ERR, "Error en envío"
_INVALID_EMAIL_ADDRESS, "Correo electrónico incorrecto en el campo [[field_name]]"
_FIELD_MISSING_EMAI... | ise-uiuc/Magicoder-OSS-Instruct-75K |
* The title of the application.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("mac_ovs_destination is: {}".format(mac_ovs_destination))
interface_name = ovs_source + ovs_destination
print("interface_name is: {}".format(interface_name))
if not onos.verify_links(ip_sdn_controller, client_device, mac_ovs_destination):
vxlan_port = helpers.add_vxl... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
};
return (
<Select
mr="5"
onChange={onChange}
value={customer?.customerName ?? 'BanklessDAO'}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</tbody>
</table>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System;
using System.Collections.Generic;
using System.Text;
namespace SFXT.Graphics.Texels
{
public class FrameHelper
{
public uint Width { get; protected set; }
public uint Height { get; protected set; }
| 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.