seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
from handy import read
import numpy as np
breaker = ' -> '
lines = read(5)
"""lines = ["0,9 -> 5,9",
"8,0 -> 0,8",
"9,4 -> 3,4",
"2,2 -> 2,1",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
if count == 0:
res += s[i]
return res
if __name__ == '__main__':
print(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
#!/bin/sh
cd tests/benchmark
go test -bench=. -benchtime=20s -benchmem | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertContains(school_search_api(request), '[]')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import android.widget.TextView;
import com.justwen.trip.bean.TicketInfo;
/**
* Created by Justwen on 2018/11/4.
*/
public class TicketAdapterEx extends BaseAdapter<TicketInfo, TicketAdapterEx.TicketViewHolder> {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// MARK: PUT
case .putRunStatus,
.putRunPlayers:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
model.handleDeletionByArchetypeReferenceIds([2, /* not existing -> */ 123456789])
})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private void AddResourceDictionary(string resourceFileName)
{
Resources.MergedDictionaries.Add(new ResourceDictionary
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#endif // EAGINE_UNITS_DIM_MASS_DENSITY_HPP
| ise-uiuc/Magicoder-OSS-Instruct-75K |
i=5
printf "ha"%.0s {1..$i}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def md2html(text):
return pypandoc.convert_text(text, to='html5', format='md',
extra_args=['--mathjax', '--standalone', '--toc',
'--template=templates/markdown_template.html', '--css=static/css/template.css',
])
def html2headercontent(htmltext):
header = re.search(r... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<option value="" disabled="">-- Pilih Kategori --</option>
<option value="CCTV" <?php if ($result['quotation_category']=="CCTV") echo "selected"?>> CCTV </option>
<option value="Jaringan" <?php if (... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="container">
<center>
<h1 class="display-1">500</h1>
<h2>Server Error</h2>
<hr width="50px">
<p>Something went wrong. Please contact web master</p>
</center>
</div> | ise-uiuc/Magicoder-OSS-Instruct-75K |
if getCamera{ alert.addAction(actionCamera) }
if getPhotos{ alert.addAction(actionPhotoLibrary) }
if getVideos{ alert.addAction(actionVideo) }
if getFiles{ alert.addAction(actionFile) }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
struct ContentView: View {
@State private var selectedUser: User? = nil
var body: some View {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using FluentValidation;
using OPCAIC.ApiService.Models.Users;
using OPCAIC.Application.Infrastructure.Validation;
namespace OPCAIC.ApiService.ModelValidationHandling.Validators.Users
{
public class EmailVerificationValidator : AbstractValidator<EmailVerificationModel>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class drf_mscnt_Timestamp_Serializer(QueryFieldsMixin, ModelSerializer):
class Meta:
model = drf_mscnt_Timestamp
id_field = 'id'
fields = ('__all__')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Easy (62.75%)
# Likes: 658
# Dislikes: 57
# Total Accepted: 42K
# Total Submissions: 65.7K
# Testcase Example: '"loveleetcode"\n"e"'
#
# Given a string S and a character C, return an array of integers representing
# the shortest distance from the character C in the string.
#
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pass
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
task = mocker.patch('matl_online.public.views.matl_task.delay')
task_id = '12345'
task.return_value = type('obj', (object,), {'id': task_id})
socketclient.emit('submit', {
'uid': session_id_for_client(socketclient),
'code': '0',
'inputs': '1',
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
copy(f_path, dst)
elif op.isdir(f_path):
if file.startswith('.'):
continue
if file not in dst_files:
os.makedirs(op.join(dst, file))
merge(f_path, op.join(dst, file))
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Db.RemoveRequest(message.RequestId);
}
public void Handle(RmaRequestAboutToAutoAccept message)
{
Console.WriteLine(Environment.NewLine);
using (Colr.Yellow())
Console.WriteLine(
"!!!!!!!!!!! Rma request {0} for customer {... | ise-uiuc/Magicoder-OSS-Instruct-75K |
for module in find_modules(import_name, include_packages=True, recursive=True):
import_string(module)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for environment in configuration["environments"]:
if not process_scheduling(environment):
logging.error("Some issue processing %s" % environment["asg"])
else:
print "Some error loading schedules.yaml"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use Doctrine\Common\Persistence\ObjectManager;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
readonly TRANSFER_ID=$2;
readonly TRANSFER_KEY=$3;
readonly SOFTWARE_NAME=$4;
readonly SOFTWARE_VERSION=$5;
readonly FILEPATH=$6;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from torch.nn import MSELoss, L1Loss, CrossEntropyLoss
from .loss import losswrapper, MSELead
def build_model(cfg):
model_name = cfg.MODEL.model
if model_name == 'model_nefnet':
return Model_nefnet(theta_encoder_len=cfg.MODEL.theta_L, lead_num=cfg.DATA.lead_num)
else:
raise Valu... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.setpoint = sla*self.st
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</a>
<a href="/bords/create" class="bords-index-itemBox-button">
<div class="bords-index-itemBox-item">
testaaaaaaaaaaaa
</div>
</a>
<a href="/bords/create" class="bords-index-itemBox-button">
<div class="bords-index-itemBox-item">
testaaaaaaaa... | ise-uiuc/Magicoder-OSS-Instruct-75K |
assert_near_equal(cs_safe.arctan2(y, x), expected, tolerance=1e-8)
x += complex(0,1e-50)
y += complex(0,1e-50)
cs_derivs = cs_safe.arctan2(y, x).imag/1e-50
expected = [0., 1., 0., -1.]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import numpy as np
import speechpy
from scipy.io import wavfile
from python_speech_features import mfcc
class PythonMFCCFeatureExtraction():
def __init__(self):
pass
def audio2features(self, input_path):
(rate, sig) = wavfile.read(input_path)
mfcc_feat = mfcc(sig, dither=0, highfreq=... | ise-uiuc/Magicoder-OSS-Instruct-75K |
is quite costly though.
"""
stype = type(a)
e = (stype.bit_length - 1) // 2
r, r2 = stype(0), stype(0) # r2 = r**2
j = 1 << e
for _ in range(e+1):
h, h2 = r + j, r2 + (2*r + j) * j
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void runTest_ReservedBooks_AddAsList_repository_exception_rollback() throws Exception {
String testName = "runTest_ReservedBooks_AddAsList_repository_exception_rollback";
log.info(testName+": started");
// prepare test context
setupByteman(testName);
bookInventoryHelper.assureRemoveAll();
// set... | ise-uiuc/Magicoder-OSS-Instruct-75K |
className={clsx(classes.switchItem, {
[classes.switchItemActive]: techLevel === currentTier,
})}
src={
require(`@shared/assets/images/techLevel-${techLevel}.png`)
.default
}
alt="techLevel"
onClick={() =>... | ise-uiuc/Magicoder-OSS-Instruct-75K |
class CloudStorageException extends \Exception
{
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
return(retval)
#
# Extract request ID from the header
#
def getRequestId(data):
retval = binascii.hexlify(data[0:2])
return(retval)
def parseHeader(data):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def setUpClass(cls):
cls.parser_under_test, manager, mock_command = initialize_test_pieces(commandname)
CreateSiteUsersParser.create_site_user_parser(manager, mock_command)
def test_create_site_users_parser_users_file(self):
with mock.patch('builtins.open', mock.mock_open(read_data='tes... | ise-uiuc/Magicoder-OSS-Instruct-75K |
ch.perform()
resp = buffer.getvalue().decode("utf-8")
header_len = ch.getinfo(pycurl.HEADER_SIZE)
header = resp[0:header_len]
upload = json.loads(resp[header_len:])
ch.close()
def buildBody(self, bodies, boundary):
body = ''
for b in bodies:
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"name": "<NAME>",
"email": "<EMAIL>"
}
@app.route("/submit", methods=['POST', 'GET'])
def submit():
if(request.method == "POST"):
return request.form
return "No data has benn sent!"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>100-1000
@model IList<PageHistoryViewModel>
@{
ViewBag.Title = SiteStrings.History_Title;
}
<h1>History</h1>
<p>@Html.ActionLink(SiteStrings.History_CurrentVersion, "Index", "Wiki", new { id = ViewData["PageId"] }, null) </p>
<p>@SiteStrings.History_Help_Label</p>
@if (Model.Count() > 0)
{
<ta... | ise-uiuc/Magicoder-OSS-Instruct-75K |
$validate = validate('ProjectWokerValidate');
if (!$validate->scene('addInfo')->check($data)){
return returnInfo('', 201, "材料:{$v['goods_name']} 添加失败 <br>原因:" . $validate->getError());
}
$ret_add = ProjectWokerInfoModel::create($data);
if (!$re... | ise-uiuc/Magicoder-OSS-Instruct-75K |
for fp in p.glob("**/*.md.raw"):
add_title_prefix_for_rawmeta(fp, ext=".raw")
for fp in p.glob("**/*.nbdata.raw"):
add_title_prefix_for_rawmeta(fp, ext=".raw")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ispc_module!(simple_tasks);
fn main() {
unsafe {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return new Promise<string>((resolve, reject) => {
unityProcess.once('close', async (close) => {
if (close === 0) {
resolve(stdoutAggregator);
} else {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import logging
import numpy as np
from gi.repository import Gdk, GdkPixbuf, GObject, Gtk
from classes.database import PenSettings
class Pen(object):
__log = logging.getLogger("ProcessPlot.classes.Pen")
orm_model = PenSettings
@classmethod
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int IsKeyDown(GT::Script &script)
{
script.Push(GetContext(script).IsKeyDown(static_cast<Key>(script.ToInteger(1))));
return 1;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (!s.empty()) {
acronym_str.push_back((boost::algorithm::to_upper_copy(s)).front());
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Copyright 2020 Google LLC
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... | ise-uiuc/Magicoder-OSS-Instruct-75K |
null
);
export default DataTypesEditor;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export { default as iconPlusBlueLight } from './plus-blue-light.svg';
export { default as imgNotFound } from './img-not-found.svg';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
exit 2;
fi
[ "${ARCHIVALMAIN:-}" ] || read -r -p "Do you want this mainnet node to be an archival node? (Default $ARCHIVALDEFAULT): " ARCHIVALMAIN
ARCHIVALMAIN=${ARCHIVALMAIN:-$ARCHIVALDEFAULT}
if [ "$ARCHIVALMAIN" == "yes" ]; then
IS_ARCHIVAL_MAINNET_NODE=true
fi
elif [ "$RELEASEMAIN" == "no" ]; ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#[cfg(not(windows))]
pub(crate) fn cleanup_tempfiles_nix(sig: &libc::siginfo_t) {
cleanup_tempfiles();
let restore_original_behaviour = SignalHandlerMode::DeleteTempfilesOnTerminationAndRestoreDefaultBehaviour as usize;
if SIGNAL_HANDLER_MODE.load(std::sync::atomic::Ordering::SeqCst) == restore_original_beh... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# save and show plot
plt.savefig('../heatmap.svg', format='svg', dpi=600)
plt.savefig('../heatmap.png', format='png', dpi=600)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
We move the player to the new square, giving them
£200 if they pass go.
'''
# We need to find if the player is further round the board than
# the destination square, so we can decide whether to give them
# £200 for passing go...
go_square_position = game.state.boa... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Explanation:
# return the length of list.
"""
Definition of ListNode
class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
"""
class Solution:
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.validate()
def validate(self):
self.illegal = False
if re.match("^(\d{1,3}\.){3}\d{1,3}$", self.ip):
self.illegal = reduce(lambda x, y : x and y, map(lambda x : True if int(x) <= 255 else False, self.ip.split(".")), True)
if self.illegal == False:
raise ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
berrymq.twitter("%s:removed" % self.id_name, remove_file)
for remain_file in (oldfiles & newfiles):
if new_info[remain_file] != old_info[remain_file]:
berrymq.twitter("%s:modified" % self.id_name, remain_file)
self.fileinfo = new_info
def ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from ._GMatElastoPlasticQPot3d.Cartesian3d import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import random
import numpy as np
def set_seed(random_state: int = 42) -> None:
"""Function fixes random state to ensure results are reproducible"""
np.random.seed(random_state)
random.seed(random_state)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fflush(stdout);
}
return 0;
}
void Ask(int id)
{
if (vis[id]) return;
cout<<"? "<<id<<endl;
fflush(stdout);
int cnt,x;
cin>>cnt;
if (cnt==0) exit(0);
while (cnt--) {
cin>>x;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator #词云生成库
import matplotlib.pyplot as plt #绘制库
back_color = imread('C:/Users/wzx/Desktop/word.jpg') # 解析该图片
# 使用内置的屏蔽词,再添加'损害'
STOPWORDS.add('《共·惨党宣言》')
#设置字体
font = 'C:/Windows/Fonts/simhei.ttf'
wc = WordCloud(background_color='white', # 背景颜色
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from itertools import chain
def id_best_users(*args):
best_users = set.intersection(*(set(a) for a in args))
cnt = Counter(chain(*args))
users = {}
for k, v in cnt.iteritems():
if k in best_users:
users.setdefault(v, []).append(k)
return [[k, sorted(v)] for k, v in sorted(users... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RBiocgenerics(RPackage):
"""S4 generic functions needed by many Bioconductor packages."""
homepage = "https://www.bioconductor.org/packages/BiocGenerics/"
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
jvalue_from_jfloat, jvalue_from_jint, jvalue_from_jlong, jvalue_from_jobject,
jvalue_from_jshort, Jvm,
};
pub use crate::jvm_array::JvmArray;
pub use crate::jvm_attachment::JvmAttachment;
pub use crate::jvm_boolean_array::JvmBooleanArray;
pub use crate::jvm_byte_array::JvmByteArray;
pub use crate::jvm_char_arra... | ise-uiuc/Magicoder-OSS-Instruct-75K |
grep " [A-Z_]*(.*)" $infile |grep -v UNKNOWN|sed -e "s/\([A-Z_]*\)(\([0-9]*\),.*/public static final int \1 = \2;/" >>$outfile
cat >>$outfile <<EOF
| ise-uiuc/Magicoder-OSS-Instruct-75K |
global scale
return int(val * scale /100)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from flask import Blueprint, jsonify, request, redirect, abort, url_for, render_template
main = Blueprint('main', __name__)
# routes
@main.route('/', methods = ['GET'])
def Abort():
return redirect(url_for('main.index'))
# abort(403)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@staticmethod
def list_Of_Floats(num1, num2, length, theSeed):
aList = []
seed(theSeed)
for each in range(length):
number = random.uniform(num1, num2)
aList.append(number)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
super.awakeFromNib()
configureCollectionView()
}
private func configureCollectionView(){
collectionView.register(UINib(nibName: "PinnedCollectionViewCell", bundle: nil), forCellWithReuseIdentifier: "PinnedCollectionViewCell")
collectionView.delegate = self
collectionView.... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import { combine } from 'zustand/middleware'
import create from 'zustand'
import { ChannelAttributes } from '@tidify/common';
export type Selection = 'overview' | 'members' | 'calendar' | 'kanban' | ChannelAttributes;
export const useSelectedChannel = create(
combine(
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from tflite_runtime.interpreter import Interpreter
| ise-uiuc/Magicoder-OSS-Instruct-75K |
clone->AllocateImportDeclarations(NumImportDeclarations());
for (i = 0; i < NumImportDeclarations(); i++)
clone->AddImportDeclaration((AstImportDeclaration*)
ImportDeclaration(i)->Clone(ast_pool));
clone->AllocateTypeDeclarations(NumTypeDeclarations());
for (i = 0; i < NumTypeDeclarations(); i++)
clon... | ise-uiuc/Magicoder-OSS-Instruct-75K |
UpdatedBy = $"{{ Id: '{updateUser.Id}', Name: '{updateUser.Name}' }}",
ReportingData = "new report"
};
_reportRepositoryMock.Setup(s => s.Get(reportId)).Returns(oldVersion).Verifiable();
_reportRepositoryMock.Setup(s => s.SaveAuditRecord(It.IsAny<Audi... | ise-uiuc/Magicoder-OSS-Instruct-75K |
istio.deploy()
if __name__ == '__main__':
main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# elif(variable=='img3'):
# print('3')
# return 'hello'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
page.type('input[name="username"]', username)
page.type('input[name="password"]', password)
page.click('button[type="submit"]')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return int(masked_value, 2)
memory = {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
disabled={isSubscribed}
onClick={() =>
apiSetSubscribeStatus(code, true).then(() => setSubscribed(true))
}
>
<Icon name="bell" /> {isSubscribed ? 'Subscribed' : 'Subscribe'}
</button>
</>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def send_file():
with open(file_path, 'rb') as targetfile:
while 1:
data = targetfile.read(20 * 1024 * 1024) # 每次读取20M
if not data:
break
yield data
response = Response(send_file(), content_type='application/octet-stream'... | ise-uiuc/Magicoder-OSS-Instruct-75K |
// file LICENSE at the root of the source code distribution tree.
//
// This is a GENERATED FILE, changes made here WILL BE LOST.
//
import Foundation
public final class BinanceSigner {
public static func sign(input: TW_Binance_Proto_SigningInput) -> TW_Binance_Proto_SigningOutput {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.macOS(.v10_12)],
products: [
.library(
name: "GSPlayer",
targets: ["GSPlayer"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return;
}
State = SG_Recorder.RecorderState.Recording;
}
/// <summary>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
emb = self.layernorms_proj[idx](tf.math.maximum(emb[:, :, :dim],
emb[:, :, dim:]))
emb = self.dropouts_proj[idx](emb)
emb = self.mask2([emb, inp_len, self.stride * self.stride])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
taskSemaphore.signal()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Migration(migrations.Migration):
dependencies = [
('purchases', '0008_auto_20200430_1617'),
]
operations = [
migrations.RenameField(
model_name='itempurchase',
old_name='supplier_price',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assertThat(storedByTrackId.values(),
jsonEquals(requestInfoList.stream().filter(i -> i.getRootJobId().equals(jobId1)).collect(
toList())).when(IGNORING_ARRAY_ORDER));
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mentions = re.findall("@([a-zA-Z0-9]{1,15})", cleanhtml(data['content']))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
packages=find_packages(),
install_requires=['Pillow','easy-pil', 'discord.py']
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from rest_framework.viewsets import GenericViewSet
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Change dir and removes the tmp build path
cd /tmp || exit 1
rm -rf "$buildroot"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @date 2017年6月28日 下午8:06:53
*
*/
package com.tangkuo.cn.main; | ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
open -n /Applications/Electrum-GRS.app --args --testnet
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
impl Key for BudgetComponent {
fn key<'a>(&'a self) -> &'a str {
match self {
BudgetComponent::Income => "income",
BudgetComponent::Expenses => "expenses",
BudgetComponent::Balance => "balance",
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.npatterns = [] # Will hold the actual number of patterns for each subset after data file has been read
def _loadData(self, matrix):
self.data_matrix = matrix
if matrix is None:
self.taxon_labels = []
self.ntax = 0
self.nchar = 0 # use... | ise-uiuc/Magicoder-OSS-Instruct-75K |
lhs_dilation=(1,),
rhs_dilation=(1,),
dimension_numbers=dn,
feature_group_count=p.filter_shape[1])
if p.bias:
out = out + theta.b
return out
class LightConv1D(base_layer.BaseLayer):
"""Lightweight conv layer.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
answer = (meta.M @ xyz_array.T).T
answer_df = dd.from_dask_array(answer)
answer_df.columns = self.get_column_names('xyz')
df = df.merge(answer_df, left_index=True, right_index=True)
return df
| ise-uiuc/Magicoder-OSS-Instruct-75K |
auto chunk_id = pos_list[ChunkOffset{0}].chunk_id;
auto referenced_segment =
typed_segment.referenced_table()->get_chunk(chunk_id)->get_segment(typed_segment.referenced_column_id());
// If only a single segment is referenced, we can resolve it once and avoid some more expens... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"Light Sandy Day":0xe1dacf,
"Light Sea Breeze":0xb7cdd9,
"Light Sea Cliff":0xb9d4e7,
"Light Sea Spray":0xabd6de,
"Light Sea-Foam":0xa0febf,
"Light Seafoam Green":0xa7ffb5,
"Light Security":0xe0e9d0,
"Light Shell Haven":0xf1e8ce,
"Light Shell Tint":0xfce0d6,
"Light Shetland Lace":0xe7dccf,
"Light Shimmer":0xa3d4ef,
"Lig... | ise-uiuc/Magicoder-OSS-Instruct-75K |
attrs = _get_attrs(self.app.client_manager, parsed_args)
attrs.update(
self._parse_extra_properties(parsed_args.extra_properties))
obj = client.create_address_scope(**attrs)
display_columns, columns = _get_columns(obj)
data = utils.get_item_properties(obj, columns, fo... | 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.