seed stringlengths 1 14k | source stringclasses 2 values |
|---|---|
namespace GaiaProject.ViewModels.Decisions
{
public class PlaceLostPlanetDecisionViewModel : PendingDecisionViewModel
{
public override PendingDecisionType Type => PendingDecisionType.PlaceLostPlanet;
public override string Description => "You must place the Lost Planet";
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
return
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ControlMessage{IDENTIFIER},
pImpl_{new Implementation{*msg.pImpl_}}
{}
EMANE::Controls::AntennaProfileControlMessage::AntennaProfileControlMessage(AntennaProfileId id,
double dAntennaAzimuthDegrees,
double dAntennaElevationDegrees):
ControlMessage{IDENTIFIER},
pImpl_{new Implementation{id,dAntennaAzimuthDegrees,dAntennaElevationDegrees}}
{}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Exception extends \Exception
{
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
return update
builder = ASAPBuilder(corner, top, side, figures)
builder.Build()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .signal import FakeSignal
class SimDevice(Device):
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// CCarBilboard_2View
IMPLEMENT_DYNCREATE(CCarBilboard_2View, CView)
BEGIN_MESSAGE_MAP(CCarBilboard_2View, CView)
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, &CView::OnFilePrint)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export class DisplayTemplateList1Item {
@IsString()
@IsNotEmpty()
token!: string;
@IsOptional()
@ValidateNested()
@Type(() => Image)
image?: Image;
@MainTextMaxLength(DISPLAY_TEMPLATE_ITEM_MAIN_TEXT_MAX_LENGTH)
@ValidateNested()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dialog
for dialog in observation["text"] if len(dialog[1]) > 0
]
)
self.batch_imitate(imitate)
utterances = self.batch_sample(sample)
if (
self.train_step % self.episode_num_dialog_dump == 0
) and self.train_step != 0:
self.checkpoint([sample, utterances])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import pickle
import scipy
import random
import correlation_module
import sys
sys.path.insert(0, "../../../lib") # add the library folder to the path I look for modules
sys.path.insert(0, "../../lib") # add the library folder to the path I look for modules specific to symmetric matrix
import latexify
import cavity_symmetric
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Test object processors in context of match rules with base types.
"""
grammar = """
Program:
'begin'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="col-xs-6 col-md-3">
<div class="panel panel-default">
<div class="panel-body easypiechart-panel">
<h4>Label:</h4>
<div class="easypiechart" id="easypiechart-blue" data-percent="92" ><span class="percent">92%</span>
</div>
</div>
</div>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self._ref_level.setSingleStep(PLOT_STEP)
self._ref_level.valueChanged.connect(self._update_plot_y_axis)
self._ref_label = QtGui.QLabel('Reflevel: ')
self._min_level = QtGui.QSpinBox()
self._min_level.setRange(PLOT_YMIN, PLOT_YMAX)
self._min_level.setValue(PLOT_BOTTOM)
self._min_level.setSuffix(" dBm")
self._min_level.setSingleStep(PLOT_STEP)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
public PhoenixObjectID CurrentItem { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
IArmor FeetSlot { get; }
IArmor GlovesSlot { get; }
IContainer BackPack { get; }
void EquipItem(int id);
void StoreItem(IItem item);
int GetBonusDamage();
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.ferreusveritas.dynamictrees.ModConfigs;
import com.ferreusveritas.dynamictrees.api.TreeHelper;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert consumer._request('error') is None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
"""
Download/upload files via wetransfer.com
transferwee is a script/module to download/upload files via wetransfer.com.
It exposes `download' and `upload' subcommands, respectively used to download
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$parti = $request->participante;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return background;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@author: Wajih-PC
'''
import numpy as np
from scipy.special import erfinv
def sigmrnd(input):
# Declaring variables as np float type to avoid Overflow warnings
minusone = np.float(-1.0)
plusone = np.float(1.0)
sigmVals = np.true_divide(plusone,np.add(plusone,np.exp(np.multiply(minusone,input))))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if env:
module_paths.append('settings.envs.{env}'.format(env=env))
if app:
module_paths.append('settings.apps.{app}'.format(app=app))
module_paths.append('settings.allowed_hosts')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>qcodes_contrib_drivers/drivers/ZurichInstruments/__init__.py
# empty __init__ file
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for handler in self.handlers:
handler(addr, key, value)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
START_TEXT = """
👋 Hi {},
I’m **[ImgBB](telegram.me/xImgBBbot)**. I can upload images on **ImgBB.com** & generate shareable link for it!
BTW, do press **Help** for more information about the process.
"""
ABOUT_TEXT = """🤖 **My Name:** [ImgBB](telegram.me/xImgBBbot)
📝 **Language:** [Python 3](https://www.python.org)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@router.get("/history/all", response_model=List[schemes.TxResponse])
async def all_wallet_history(
user: models.User = Security(utils.authorization.AuthDependency(), scopes=["wallet_management"]),
):
response: List[schemes.TxResponse] = []
for model in await models.Wallet.query.where(models.Wallet.user_id == user.id).gino.all():
await utils.wallets.get_wallet_history(model, response)
return response
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# We write all of the output to a temporary directory. If for some
# reason there are any failures, we will just nuke the temporary
# directory on exit.
tempdir = tempfile.mkdtemp()
try:
try:
CreateExecutableFolder(tempdir, args.name)
except Exception:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Copyright (c) 2022 Bitmatic Ltd.
//
// 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
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# conf.setdefault(...).update(...) doesn't work here as the
# setdefault may return the default value rather then a
# Section object.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
We tune these first as they will have the highest impact on model outcome. To start with,
let’s set wider ranges and then we will perform another iteration for smaller ranges.
Important Note: I’ll be doing some heavy-duty grid searched in this section which can take 15-30 mins
or even more time to run depending on your system. You can vary the number of values you are testing
based on what your system can handle.
"""
param_test1 = {
'max_depth':range(3,10,2),
'min_child_weight':range(1,6,2)
}
gsearch1 = GridSearchCV(estimator = XGBClassifier( learning_rate =0.1, n_estimators=140, max_depth=5,
min_child_weight=1, gamma=0, subsample=0.8, colsample_bytree=0.8,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export const selectTerminalSettings = createSelector(
selectTerminal,
(terminal: TerminalState) => terminal.settings
);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
continue
line = line.removeprefix('ssl_ciphers "')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def delete(self):
exit()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Backwards compatibility.
def clear() -> None:
"""Clear the terminal."""
print("\033[H\033[2J", end="", flush=True)
audio = Audio()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#%% Lax-Friedrich scheme not working...
t, Xl, Yl, Hl, Q1l, Q2l = ritter.solvePDE('lf')
#%% Rusanov scheme
t, Xr, Yr, Hr, Q1r, Q2r = ritter.solvePDE('rs')
#%%
n = 4
plot3D(Xl, Yl, Hl[n])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
""" pytest for area_zone.py"""
# Wrote by <NAME> <EMAIL> / <EMAIL>
# School of Architecture, University of Hawaii at Manoa
from __future__ import absolute_import
from __future__ import division
| ise-uiuc/Magicoder-OSS-Instruct-75K |
parser = argparse.ArgumentParser(description='Count columns and lines existing in file')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# split the line into CSV formatted data
line = line.replace ('*',',') # make the checkum another csv value
csv = line.split(',')
# keep track of the timestamps
ts_recv = float(csv[0])
if count == 1:
ts_now = ts_recv # only the first time
ts_prev = ts_now
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"Feature extractor failed with some error"
def test_analyze_wavfile_(self):
dic = {'beats_count': '25.0', 'mood_acoustic': 'acoustic',
'mood_party': 'not_party', 'moods_mirex': 'Cluster3',
'lossless': 'True', 'danceability': 'not_danceable',
'mood_aggressive': 'not_aggressive', 'key': 'F# minor',
'gender': 'male', 'chord': 'C# minor',
'voice_instrumental': 'instrumental', 'genre_tzanetakis': 'hip',
'tonal_atonal': 'tonal', 'mood_happy': 'not_happy',
'bpm': '95', 'mood_relaxed': 'relaxed',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tests_require=[
'pytest',
'pytest-asyncio',
'jsonschema',
],
extras_require={
'docs': [
'sphinx'
],
'postgres': [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
width: self.width,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"expected: {}; actual: {}".format(outs, actual_outs))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for e in pin.connections:
self.connectionInfo.append(e.serialize())
node._rawNode.kill()
else:
assert(False), "node {} not in graph".format(uid)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with io.open("README.md", encoding="utf-8") as f:
long_description = f.read().strip()
version = None
with io.open(os.path.join("foodemoji", "__init__.py"), encoding="utf-8") as f:
for line in f:
if line.strip().startswith("__version__"):
version = line.split("=")[1].strip()
version = version.replace('"', "").replace("'", "")
break
setuptools.setup(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int nodos[node_number];
for (int i = 0; i < node_number; ++i)
{
nodos[i] = i+1;
}
DisjSet disj_set(node_number);
int cont = 0, num_aristas = edge_number;
auto start = chrono::high_resolution_clock::now();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
it('should return mapped validationResult when it feeds internalValidationResult with arrayErros', () => {
// Arrange
const internalValidationResult: InternalValidationResult = {
key: 'test-key',
message: 'test-message',
type: 'test-type',
succeeded: true,
arrayErrors: [
{
name: { succeeded: true, message: '', type: 'REQUIRED' },
surname: { succeeded: true, message: '', type: 'REQUIRED' },
},
{
name: {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def downgrade(engine_name):
globals()[f"downgrade_{engine_name}"]()
def upgrade_registrar():
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from . import DutchDraw
from .DutchDraw import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
System.out.println("Next value: " + data[i]);
sum += i;
}
System.out.println("Sum is: " + sum);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from tests.utils import W3CTestCase
class TestAbsoluteReplacedWidth(W3CTestCase):
vars().update(W3CTestCase.find_tests(__file__, 'absolute-replaced-width-'))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn from(t: ImmediateTag) -> u64 {
(t as u64) << 32
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
public static void randomSet(int min, int max, int n, HashSet<Integer> set) {
if (n > (max - min + 1) || max < min) {
return;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
}
fileHandle.closeFile()
return taskOutput.contains("Completed")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo 'wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf' >> /etc/network/interfaces
echo 'iface default inet dhcp' >> /etc/network/interfaces
# build the supplicant file that holds our configuration
rm /etc/wpa_supplicant/wpa_supplicant.conf
touch /etc/wpa_supplicant/wpa_supplicant.conf
echo 'ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev' >> /etc/wpa_supplicant/wpa_supplicant.conf
echo 'update_config=1' >> /etc/wpa_supplicant/wpa_supplicant.conf
| ise-uiuc/Magicoder-OSS-Instruct-75K |
setopt APPEND_HISTORY
# include more information about when the command was executed, etc
setopt EXTENDED_HISTORY
# add comamnds as they are typed, don't wait until shell exit'
setopt INC_APPEND_HISTORY
# Share command history data
setopt SHARE_HISTORY
# don't record dupes in history
setopt HIST_REDUCE_BLANKS
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
SDS_LENSES_ISO: LazyCaseInsensitiveMapping = LazyCaseInsensitiveMapping(
{
"ISO Standard Lens": partial(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#Now, writing the to file:
out = []
for i in range(height):
for j in range(width):
RGB = convolve(pixel, kernel_identity, i, j)
#variable for each pixel x,y,z
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return DSN_HANDLERS[name]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Owner(BaseModelCardField):
"""The information about owners of a model.
Attributes:
name: The name of the model owner.
contact: The contact information for the model owner or owners. These could
be individual email addresses, a team mailing list expressly, or a
monitored feedback form.
"""
name: Optional[Text] = None
contact: Optional[Text] = None
_proto_type: dataclasses.InitVar[type(
model_card_pb2.Owner)] = model_card_pb2.Owner
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#packages = ['....', '....'],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export * from './src/google-libphonenumber.service';
@NgModule({
imports: [],
exports: [],
declarations: [],
providers: [GoogleLibphonenumberService],
})
export class GoogleLibphonenumberModule { }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# "Ours": [],
# "Ours (w/o BC smoothing)": [],
# "CoL": [],
# "CoL(w BC smoothing)": [],
# "MoPA Asym. SAC": [],
# "Asym. SAC": [],
# }
# line_labels = {
# "BC-Visual": [],
# } | ise-uiuc/Magicoder-OSS-Instruct-75K |
EndDialog(IDOK);
break;
}
// 新建模式 ------------------------------
//2.判断主题包文件夹或主题名是否已被其他主题包使用
bool bFind = false;
HDMTREEITEM hThemes = pXml->m_hProjThemes;
HDMTREEITEM hChild = pProjTree->GetChildItem(hThemes);
while (hChild)
{
DMXmlNodePtr pChildNode = (DMXmlNodePtr)pProjTree->GetItemData(hChild);
CStringA strOtherThemeName = pChildNode->Attribute(XML_NAME);
if (0 == strOtherThemeName.CompareNoCase(strThemeName))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
visualize_face_mask(X_train, y_train)
print('starting with Unet')
##### Convolutional Neural Network For Hair Segmentation
input_img = Input((im_height, im_width, 3), name='img')
model = get_unet(input_img, n_filters=16, dropout=0.05, batchnorm=True)
model.compile(optimizer=Adam(), loss="binary_crossentropy", metrics=["accuracy"])
# Summary
#model.summary()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Typed python client for interacting with Up's banking API."""
from asyncupbankapi.models.accounts import Account, Accounts
from asyncupbankapi.models.categories import Category, Categories
from asyncupbankapi.models.tags import Tags
from asyncupbankapi.models.transactions import Transaction, Transactions
from asyncupbankapi.models.utility import Ping
from asyncupbankapi.models.webhooks import Webhook, WebhookEvent, WebhookLogs, Webhooks
| ise-uiuc/Magicoder-OSS-Instruct-75K |
schedule.every(options.every).minutes.do(checker.run).run()
while True:
schedule.run_pending()
time.sleep(1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
},
},
},
},
}
def wait_for_status(cluster, color='yellow'):
url = '{}/_cluster/health'.format(cluster)
response = requests.get(url, params={'wait_for_status': color})
response.raise_for_status()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
certificateList.add(certificate);
}
}
certificates = new Certificate[certificateList.size()];
certificateList.toArray(certificates);
return certificates;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int i = 0;
while((i + wsize*lsize - 1) < A.size()){
unordered_map<string, int> tempMap;
int j = 0;
while(j < A.size()){
string temp = A.substr(i + j*wsize, wsize);
if(myMap.find(temp) == myMap.end()){
break;
}
else{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case "$ROOT_PART" in
mmcblk0*) ROOT_DEV=mmcblk0 ;;
sda*) ROOT_DEV=sda ;;
esac
# get last partition
LAST_PART=$(grep "$ROOT_DEV" /proc/partitions | tail -1 | awk '{print $4}' | xargs)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* limitations under the License.
*/
package greycatTest.internal;
import greycat.Graph;
import greycat.GraphBuilder;
import greycat.Node;
import greycat.chunk.Chunk;
import greycat.chunk.Interceptor;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<NAME> - 119210204
PRECO DE VENDA
'''
custo = float(input())
desp_indireta = float(input())
lucro_desj = float(input())
impostos = float(input())
comissao = float(input())
desc = float(input())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
grid = transit(grid, 8, [13, 9, 5, 7, 14], [0.05801706264076675, 0.341923243761946, 0.0494872820880747, 0.29583940098242745, 0.2547330105267852])
grid = inverse(grid, 11, 5)
grid = magnitude(grid, 14, [4, 6, 1, 0], 2)
grid = transit(grid, 13, [11, 0], [0.6569516962992897, 0.3430483037007103])
grid = sin(grid, 14, 5, 0.053526366336325744, 4.147364704932215)
grid = transit(grid, 4, [3], [1.0])
grid = sin(grid, 3, 12, -4.078686662791614, 24.459526349523884)
grid = inverse(grid, 15, 10)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* 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 writing, software
| ise-uiuc/Magicoder-OSS-Instruct-75K |
This will follow Mofjeld's notation.
F is proportional to the energy flux of the original signal, and
FF is proportional to the sum of the energy fluxes of the incident and
reflected waves.
RESULT: The two net fluxes are only equal for zero friction. I think this
may be because pressure work is a nonlinear term and some part of the
two waves pressure work can leak into the other.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace PhoneCall.Controls
{
public sealed partial class Dialpad : UserControl
{
/// <summary>
/// A user control that hosts the dial pad in the dial panel.
/// </summary>
public Dialpad()
{
this.InitializeComponent();
}
/// <summary>
/// Processes press and hold for the buttons that supports press and hold. E.g
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class PublicApiTests(TestCase):
def setUp(self) -> None:
self.client = APIClient()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def _handle_repeat_mode_changed(self, event: HEOSEvent):
raise NotImplementedError()
def _handle_shuffle_mode_changed(self, event: HEOSEvent):
raise NotImplementedError()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
### 2nd stage
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if !sorted {
for item in seq {
context.parse(writer, r#type.element(), item)?;
}
} else {
// sorted: in this case first parse to a vec and then sort that
let mut elements = Vec::with_capacity(len);
for item in seq {
let element_vec = context.parse_to_vec(r#type.element(), item)?;
elements.push(element_vec);
}
sort(context, r#type.element(), ascending, &mut elements)?;
for element in &elements {
writer.write_all(element)?;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"M": 1000}
s_len_num = len(s)
ans = 0
# for i in range(s_len_num-1):
# if lm2int[s[i]] < lm2int[s[i+1]]:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# This library is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with CairoSVG. If not, see <http://www.gnu.org/licenses/>.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let to_write = to_string_pretty(&project_file_json).unwrap();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using CSharpFunctionalExtensions;
namespace CoreDemoApp.Core.CQS
{
public interface ICommandHandler<TCommand, TResult>
where TCommand : ICommand
where TResult : IResult
{
TResult Handle(TCommand command);
Task<TResult> HandleAsync(TCommand command);
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
use Illuminate\Database\Eloquent\Model;
class ReturnOrder extends Model
{
use HasFactory;
protected $fillable = [
'user_id',
'payment_type',
'payment_id',
'paying_amount',
'balance_transaction',
'strip_order_id',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
column.sort()
result = [e for e in zip(*transverse)]
return result
def write_quantified(d, span_origin, n, filename):
dataset = quantilify_each(gather_many(d, span_origin, unittest.TestCase(), n))
with open(filename, 'w') as fp:
for (i, sample) in enumerate(dataset):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
for resource in readables:
# Если событие исходит от серверного сокета, то мы получаем новое подключение
if resource is server:
connection, client_address = resource.accept()
connection.setblocking(0)
INPUTS.append(connection)
print("new connection from {address}".format(address=client_address))
# Если событие исходит не от серверного сокета, но сработало прерывание на наполнение входного буффера
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn test_wrong_price_condition() {
let mut case = get_correct_btc_case();
if let CellDepView::PriceOracle(price) = &mut case.cell_deps[0] {
*price = 2 * BTC_PRICE;
}
case.expect_return_code = Error::UndercollateralInvalid as i8;
case_runner::run_test(case)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'ssids': '/configure/ssids_json',
'mr_topology': '/nodes/get_topology',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == '__main__':
remove_pool()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
serializer_class = PetSerializer | ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# <NAME>, <NAME>, <NAME>, and <NAME>.
# MDAnalysis: A Toolkit for the Analysis of Molecular Dynamics Simulations.
# J. Comput. Chem. 32 (2011), 2319--2327, doi:10.1002/jcc.21787
#
"""
Selection exporters
===================
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert blockState != null;
return blockState.with(FACING, context.getPlacementHorizontalFacing().getOpposite());
}
@SuppressWarnings("deprecation")
@Override
public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit) {
if(!worldIn.isRemote()) {
TileEntity tileEntity = worldIn.getTileEntity(pos);
if(tileEntity instanceof IncineratorGeneratorTile) {
INamedContainerProvider containerProvider = new INamedContainerProvider() {
@Override
| ise-uiuc/Magicoder-OSS-Instruct-75K |
EventsDict[eventKey] = eventName
a = 1
for key in EventsDict:
print "Pulling from " + str(EventsDict[key])+ "," + str(len(EventsDict) - a) + " events to go."
a += 1
MatchesR = requests.get(BaseURL + "/event/" + key + "/matches/timeseries", auth)
print MatchesR.text
if MatchesR.text != []:
file = open(myPath + "/matchKeys.json","a")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return true;
}
int AssetsFile::length()
{
int fileLength = 0;
fileLength = AAsset_getLength(m_file);
return fileLength;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"notfound": "skip",
"genecol": 1,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.terraforged.mod.client.gui.screen.Instance;
import com.terraforged.mod.client.gui.screen.overlay.OverlayScreen;
import com.terraforged.mod.util.TranslationKey;
import net.minecraft.nbt.CompoundNBT;
import java.util.function.Function;
| 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.