seed stringlengths 1 14k | source stringclasses 2 values |
|---|---|
# def testCommissioned(self):
# salary = 50000.0
# rate = 25
# self.emp.make_commissioned(salary, rate)
# for d in range(5):
# self.emp.classification.add_receipt(400.0 + d*25)
# self.assertEqual(self.emp.classification.compute_pay(), round(salary/24+2250.0*rate/100.0, 2))
if __name__ == '__main__':
unittest.main() | ise-uiuc/Magicoder-OSS-Instruct-75K |
@print_calls
def part2(graph):
return nx.shortest_path_length(graph.to_undirected(), "YOU", "SAN") - 2
def load(data):
return nx.DiGraph([line.split(")") for line in data.split()])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
app = Flask(__name__)
app.config["SECRET_KEY"] = getenv("SECRET_KEY", default="secret_key_example")
login_manager = LoginManager(app)
users: Dict[str, "User"] = {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def forward(self, output, target):
# output = torch.log((output) + self.eps)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def schedule(block_num, block_size, total_size):
"""''
block_num: 已下载的数据块
block_size: 数据块的大小
total_size: 远程文件的大小
"""
per = 100.0 * block_num * block_size / total_size
if per > 100:
per = 100
print('当前下载进度:%d' % per)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def to_dict(self):
if self._columns is None:
raise ValueError
else:
return {c: getattr(self, c) for c in self._columns}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from colosseum.agents.episodic import psrl
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ServiceBase.Run(ServicesToRun);
}
else
{
QJ_FileCenterService service = new QJ_FileCenterService();
System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite); // forces debug to keep VS running while we debug the service
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
impl Renderable<Footer> for Footer {
fn view(&self) -> Html<Self> {
html! {
<footer class="Footer",>
{ "The source for this site is available " }
<a href="https://github.com/g-s-k/parsley",>{ "here" }</a>
{ "." }
</footer>
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Drawable:
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.conf.urls import url
from django.urls import path
from rest_framework import routers
from maintainer import views
router = routers.DefaultRouter()
router.register("autocomplete/maintainer", views.MaintainerAutocompleteView, basename="maintainer_autocomplete")
router.register('maintainer', views.MaintainerAPIView, basename='maintainer')
urlpatterns = [
url(r'^(?P<m>[-a-zA-Z0-9_.]+)/$', views.maintainer, name='maintainer'),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.lblTrack.translatesAutoresizingMaskIntoConstraints = false
self.lblTrack.leadingAnchor.constraint(equalTo: self.contentView.leadingAnchor, constant: 8).isActive = true
self.lblTrack.trailingAnchor.constraint(equalTo: self.lblDuration.leadingAnchor, constant: 8).isActive = true
self.lblTrack.topAnchor.constraint(equalTo: self.contentView.topAnchor, constant: 8).isActive = true
self.lblTrack.heightAnchor.constraint(equalToConstant: 18).isActive = true
self.lblArtistAlbum.font = UIFont.systemFont(ofSize: 12, weight: .regular)
self.lblArtistAlbum.textAlignment = .left
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// RelativePathForScript.swift
// Pyto
//
// Created by Adrian Labbe on 11/16/18.
// Copyright © 2018 Emma Labbé. All rights reserved.
//
import Foundation
/// Get the path for the given script relative to the Documents directory.
///
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if self.verbose > 0:
print('\nEpoch %05d: %s improved from %0.5f to %0.5f,'
' saving model to %s'
% (epoch + 1, self.monitor, self.best,
current, filepath))
self.best = current
if self.save_weights_only:
| 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. 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
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
// implied. See the License for the specific language governing
// permissions and limitations under the License.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[optional]
server: str API server to access for this API call. Possible
values are: 'https://adwords.google.com' for live site and
'https://adwords-sandbox.google.com' for sandbox. The default
behavior is to access live site.
version: str API version to use.
http_proxy: str HTTP proxy to use.
Returns:
GenericAdWordsService New instance of AdParamService object.
"""
headers = self.__GetAuthCredentialsForAccessLevel()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
resp = client.delete(f"/message/{json_data['id']}")
assert resp.status_code == 200
def test_invalid_delete_message_by_id(client):
resp = client.delete(f"/message/0")
assert resp.status_code == 204 | ise-uiuc/Magicoder-OSS-Instruct-75K |
#convert the vgg16 model into tf.js model
print(keras.__version__)
print(tfjs.__version__)
save_path = '../nodejs/static/sign_language_vgg16'
tfjs.converters.save_keras_model(model, save_path)
print("[INFO] saved tf.js vgg16 model to disk..")
acc = history.history['acc']
val_acc = history.history['val_acc']
loss = history.history['loss']
val_loss = history.history['val_loss']
epochs = range(len(acc))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
yield return null;
continue;
}
var actual = config.CurrentConfigValue.AsString();
var desired = config.DesiredConfigValue.AsString();
if (config.DriftDetected != true && string.Equals(actual, desired, System.StringComparison.OrdinalIgnoreCase))
{
yield return null;
continue;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
host42 = 'root@10.84.21.35'
host43 = 'root@10.84.21.36'
host44 = 'root@10.84.21.37'
host45 = 'root@10.84.21.38'
host46 = 'root@10.84.21.39'
host47 = 'root@10.84.21.40'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Created by Natasha Murashev on 6/3/18.
//
import Foundation
struct RegistrationSessionViewModel: SessionDisplayable {
private let session: Session
private let dataDefaults: SessionDataDefaults
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <summary>
/// 碰撞节点
/// </summary>
[Title("节点信息")]
[LabelText("抓取碰撞体")]
public BoxCollider Collider;
[LabelText("发送碰撞体")]
public BoxCollider SendCollider;
[LabelText("发送碰撞等级")]
[ValueDropdown("SendColliderLevelS")]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TOKEN = input(f"{time_now()} Please input your bot token: ")
bot = discord.Bot(command_prefix=".")
@bot.event
async def on_ready():
print(f"{time_now()} Logged in as {bot.user}")
USER_ID = input(f"{time_now()} Please input USER ID: ")
MESSAGE = input(f"{time_now()} Please input the spam message: ")
user = await bot.fetch_user(USER_ID)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
unsafe {
while let Some(msg) = self.0.pop() {
self.0.app().__dispatch(msg, self);
while let Some(msg) = self.0.pop() {
self.0.app().__dispatch(msg, self);
}
self.0.app().__render(self);
}
}
self.0.ready(true);
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# n_eggs_next_taken += (target_weight//next_egg_to_consider)
# # explore left branch if not take any next egg
# n_eggs_next_not = dp_make_weight(egg_weights[1:], target_weight, memo)
# if target_weight%next_egg_to_consider >= 0:
# result = n_eggs_next_taken
# else:
# result = n_eggs_next_not
# return result
# Method 2 (dynamic programming)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
num = [ eval(i) for i in input().split()]
product = lambda x,y:x*y
print(product(num[0],num[1])) | ise-uiuc/Magicoder-OSS-Instruct-75K |
@classmethod
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@requestclass
class GetDataOperationJobListRequest(PagingParameter, OrderByParameter):
DataOperationId: Optional[int] = None
DataOperationName: Optional[str] = None
OnlyCron: Optional[bool] = None
OnlyUndeleted: Optional[bool] = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//Mandamos la respuesta
echo json_encode($serverResponse);
//Nos desconectamos de la base de datos
mysqli_close($link);
?> | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.DSEL_data_ = X
self.DSEL_target_ = y
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# check that clamped lambda/alpha is the smallest
if parm()[-1] != np.min(parm()):
# print('\nClamped lambda too large. '+
# 'Ok during burn-in, should not happen during sampling!\n')
parm()[-1] = np.min(parm())
# after updating lambda, ratios need to be precomputed
# should be done in a lazy fashion
compute_lbda_ratios(parm.layer)
def compute_lbda_ratios(layer):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return retval | ise-uiuc/Magicoder-OSS-Instruct-75K |
"--raw_data_path",
required=True,
# default='./data/raw_data/',
type=str,
)
parser.add_argument(
"--file_num_for_traindata",
default=512,
type=str,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'https://www.googleapis.com/auth/cloud-platform',
'https://www.googleapis.com/auth/pubsub', )
\g<0>""",
)
s.replace(
"google/cloud/pubsub_v1/gapic/publisher_client.py",
"import google.api_core.gapic_v1.method\n",
"\g<0>import google.api_core.path_template\n",
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
manager = InsightAsyncJobManager(api=self._api, jobs=self._generate_async_jobs(params=self.request_params()))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
})
return input
}()
lazy var answerPlaceLab : UILabel = {
let lab = UILabel.getLab(font: UIFont.regularFont(16), textColor: FZM_GrayWordColor, textAlignment: .left, text: "请再次输入新密码")
return lab
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Read the json
jsonDict = json.load(infile)
runtime = get_runtime(jsonDict)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from src.db.sqlalchemy import Base
from src.model.category import Category
class Local(Base):
__tablename__ = 'compra_local_local'
id = db.Column(db.Integer, helper.get_sequence(__tablename__), primary_key=True)
name = db.Column(db.String(64), nullable=False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package org.biojava.bio.seq.db.biofetch;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# use an infinite loop to watch for door opening
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "Graphics.Layouts.h"
#include "Common.Sounds.h"
#include "Options.h"
#include "Game.Descriptors.h"
#include "Game.ScenarioDescriptors.h"
#include <map>
#include "Context.Editor.NewRoom.h"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
([u'itemId'], 'item_id'),
([u'planQty'], 'product_qty'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (parser.getNumberOfSyntaxErrors() > 0) {
System.exit(ExitCodes.PARSE_ERROR);
}
try {
return new SmtlibToAstVisitor().sexpr(sexpr);
} catch (smtlibParseException e) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
//
// Created by Yasin Akbas on 26.05.2022.
//
import Foundation
protocol Request {
var client: NLClient { get set }
var options: [NLClientOption] { get set }
func loadOptions()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def main():
attributes = dict()
for i in range(1, len(sys.argv)):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--hostname-override="127.0.0.1" \
--address="0.0.0.0" \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
dataField: "link",
caption: "菜单地址",
dataType: "string"
} as DxiDataGridColumn,
{
dataField: "power",
caption: "菜单权限",
dataType: "number"
} as DxiDataGridColumn
],
querys: []
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use BitWasp\Buffertools\Buffer;
use BitWasp\Buffertools\BufferInterface;
class PublicKeyFactory
{
/**
* @param string $hex
* @param EcAdapterInterface|null $ecAdapter
* @return PublicKeyInterface
* @throws \Exception
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
router.register('login',views.LoginViewSet,basename='login')
router.register('task',views.TaskViewset)
urlpatterns = [
path('helloview/',views.HelloAPIView.as_view()),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Асинхронная сессия для запросов
class RequestsSession:
def __init__(self) -> None:
self._session: Optional[aiohttp.ClientSession] = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
g++ -std=c++1y -m64 -O3 RS.cpp -ors64g-avx2 -static -s -fopenmp -mavx2 -DSIMD=AVX2
g++ -std=c++1y -m64 -O3 RS.cpp -ors64g-sse2 -static -s -fopenmp -DSIMD=SSE2
g++ -std=c++1y -m64 -O3 RS.cpp -ors64g -static -s -fopenmp
g++ -std=c++1y -m32 -O3 RS.cpp -ors32g-avx2 -static -s -fopenmp -mavx2 -DSIMD=AVX2
g++ -std=c++1y -m32 -O3 RS.cpp -ors32g-sse2 -static -s -fopenmp -msse2 -DSIMD=SSE2
| ise-uiuc/Magicoder-OSS-Instruct-75K |
LANGUAGE_CODE = 'en'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self):
self.custom_config = r'--oem 3 --psm 6'
def readimage(self,address):
s = pytesseract.image_to_string(address, config=self.custom_config)
return s
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn ft_metadata(&self) -> FungibleTokenMetadata;
}
#[near_bindgen]
impl FungibleTokenMetadataProvider for Contract {
fn ft_metadata(&self) -> FungibleTokenMetadata {
self.ft_metadata.clone()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const workingDayByMonth2 = new WorkingDayOfYearByMonth(2, 21);
const workingDayByMonth3 = new WorkingDayOfYearByMonth(3, 23);
const mealTicketsExceptions: Array<MealTicketRemovalSummaryDTO> = [
/*
There are 2 meal exceptions for the month of March
*/
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
echo "######################"
echo Welcome to Alohomora
echo "######################"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
doe_size : int
The size of the doe to use. If base_doe is a numpy array, this
has no effect and doesn't have to be passed.
obj_wgt : float or iterable of floats:
If not None, these weights will be used for combining the
estimated mean and the variance/std. dev. If iterable, it
must be the same length as the number of stochastic input
variables as used for the objective function.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self._delself()
self.datas.__setitem__(key, val)
def __delitem__(self, key):
self._delself()
self.datas.__delitem__(key)
def __len__(self):
return len(self.datas)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def middleNode(self, head: ListNode) -> ListNode:
p1 = p2 = head
while p1 != None and p1.next != None:
p1, p2 = p1.next.next, p2.next
return p2 | ise-uiuc/Magicoder-OSS-Instruct-75K |
let userID: ID?
init(for user: UserRepresentation?) {
self.userID = ID(user?.id)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __str__(self):
"""String representation."""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Any, Dict, List, Tuple
from ..utils import lazy_import
from .core import Serializer, buffered, PickleSerializer
from .exception import ExceptionSerializer
ray = lazy_import("ray")
class RaySerializer(Serializer):
"""Return raw object to let ray do serialization."""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package id.ac.ui.cs.mobileprogramming.wisnupramadhitya.target.data.model;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return property_exists($this, 'redirectTo') ? $this->redirectTo : '/home';
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
| ise-uiuc/Magicoder-OSS-Instruct-75K |
REQUIREMENTS = f.read().splitlines()
with open("README.md", "r")as f:
LONG_DESCRIPTION = f.read()
setup(
name='paddle1to2',
version=paddle1to2.__version__,
install_requires=REQUIREMENTS,
author='T8T9, PaddlePaddle',
author_email='<EMAIL>',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (lc>1024):
dt=dt[dt.index(b"\n")+1:]
if (time.time()>lt):
lt=time.time()+30
fs.write("log.log",dt)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func stop() {
session.stopRunning()
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
( cd $BASEDIR/launchcmd && GOOS=linux go build -a -o $BASEDIR/image/launch )
( cd $BASEDIR/buildpackapplifecycle/launcher && GOOS=linux CGO_ENABLED=0 go build -a -installsuffix static -o $BASEDIR/image/launcher )
pushd $BASEDIR/image
docker build -t "eirini/launch" .
popd
rm $BASEDIR/image/launch
rm $BASEDIR/image/launcher
docker run -it -d --name="eirini-launch" eirini/launch /bin/bash
docker export eirini-launch -o $BASEDIR/image/eirinifs.tar
docker stop eirini-launch
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Token resource
api.add_resource(TokenResource, '/authservice/token', endpoint='auth_token')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
?>
<div class="site-index">
<h2> <span><?php ?></span> ADD PROPERTY</h2>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
?> | ise-uiuc/Magicoder-OSS-Instruct-75K |
print("response (actual, expected)")
print("---------------------------")
print(("src1", hex(actual_src1), hex(expected_src1)))
print(("src2", hex(actual_src2), hex(expected_src2)))
print(("A", hex(actual_A), hex(expected_A)))
print(("B", hex(actual_B), hex(expected_B)))
print(("operation", hex(actual_operation), hex(expected_operation)))
print(
("shift_amount", hex(actual_shift_amount), hex(expected_shift_amount))
)
print(("add_sub", hex(actual_add_sub), hex(expected_add_sub)))
print(("signed", hex(actual_signed), hex(expected_signed)))
return False
return True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
添加新模具
</button>
<!--分页-->
<?php echo $this->pagination->create_links(); ?>
<!--模态框-->
<div class="modal fade" id="fix" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from preacher.core.scheduling.listener import Listener
def test_listener():
listener = Listener()
listener.on_end(sentinel.status)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cp "C:/Users/Pete/Google Drive/Research/OpenFOAM/turbinesFoam/video/unh-rvat-les-bdf45a7-6_thresh-30fps.ogv" videos/unh-rvat-alm-les.ogv
cp "C:/Users/Pete/Google Drive/Research/OpenFOAM/turbinesFoam/video/unh-rvat-near-surface-1.75mps.ogv" videos/unh-rvat-alm-free-surface.ogv
cp "C:/Users/Pete/Google Drive/Research/OpenFOAM/turbinesFoam/video/NTNU-HAWT-LES-c0dd89db.ogv" videos/ntnu-hawt-alm-les.ogv
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[ '/proc' = "$i" ] && continue
[ '/dev' = "$i" ] && continue
echo $i
umount -l $i
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
t = 2
msg = np.array([1,0,1], dtype=np.uint8)
expected = np.array([1, 1, 0, 0, 1, 0, 1], dtype=np.uint8)
bch = BCH(n, m, k, t)
gen = np.array([1, 0, 1, 1, 1], dtype=np.uint8)
bch.set_generator(gen)
cdw = bch.encode(msg)
assert np.all(strip_zeros(cdw) == expected)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
super(position, sourceFileName, source, symbolId);
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package spark.kmedoids.eval.synthetic;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class PrivateEndpointConnection(Model):
"""The Private Endpoint Connection resource.
:param private_endpoint: The resource of private end point.
:type private_endpoint: ~_restclient.models.PrivateEndpoint
:param private_link_service_connection_state: A collection of information
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# API job update frequency check.
_API_UPDATE_WAIT_PERIOD = 5 # Time in seconds to wait between checking jobs on the API.
def __init__(self, session, schema=None):
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Some(dict)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "hs_common.h"
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#if defined(HAVE_MMAP)
#include <sys/mman.h> // for mmap
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class FileStorageTest {
@Autowired
TestFileStorage fileStorage;
@Autowired
FileStorageLocator fileStorageLocator;
@Test
void testSaveLoad() throws IOException {
URI ref = fileStorage.createReference("testfile");
fileStorage.saveStream(ref, new ByteArrayInputStream("some content".getBytes()));
InputStream inputStream = fileStorage.openStream(ref);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.terraformersmc.modmenu.gui.ModListWidget;
import net.fabricmc.loader.api.ModContainer;
import net.minecraft.client.Minecraft;
public class IndependentEntry extends ModListEntry {
public IndependentEntry(Minecraft mc, ModContainer container, ModListWidget list) {
super(mc, container, list);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Auth::routes();
Route::resource('answers', AnswersController::class);
Route::get('/home', [HomeController::class, 'index'])->name('home');
Route::get('/profile/{user}', [HomeController::class, 'profile'])->name('profile');
Route::get('/contact', [HomeController::class, 'contact'])->name('contact'); | ise-uiuc/Magicoder-OSS-Instruct-75K |
impl SharedState {
pub fn new() -> Self {
let parameters = Arc::new(parameter::BaseliskPluginParameters::default());
let parameters_clone = Arc::clone(¶meters);
Self {
parameters,
modmatrix: modmatrix::ModulationMatrix::new(parameters_clone),
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return self._send_request(format_query("BATTLE", ident))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def hasPathSum(self, root: 'TreeNode', sum: 'int') -> 'bool':
if not root:
return False
def helper(node,val):
if not node:
return False
val -= node.val
if node.left is None and node.right is None:
return val == 0
return helper(node.left, val) or helper(node.right, val)
return helper(root,sum)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>calebho/gameanalysis
"""Module for performing game analysis"""
__version__ = '8.0.3'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
return (character >= 'a' && character <= 'z')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
marker = '+'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
train_questions_file.close() | ise-uiuc/Magicoder-OSS-Instruct-75K |
alias,
}) => (
<Box height="100%" display="flex" maxHeight="1.25rem">
<Tooltip title={<BreadcrumbTextTooltipContent alias={alias} name={name} />}>
<svg
xmlns="http://www.w3.org/2000/svg"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private bool MessageArrived(CurrentMessageInformation arg)
{
if (NestedTransactionScope == null)
{
NestedTransactionScope = new TransactionScope(TransactionScopeOption.Suppress);
}
return false;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
@Data
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$parentModulesId = $this->model->where('id', $parentId)->value('modules_id');
}
if ($this->modules_id >0){
$parentModulesId = $this->modules_id;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.customer = spark.read.parquet(dir + "customer")
self.lineitem = spark.read.parquet(dir + "lineitem")
self.nation = spark.read.parquet(dir + "nation")
self.region = spark.read.parquet(dir + "region")
self.orders = spark.read.parquet(dir + "orders")
self.part = spark.read.parquet(dir + "part")
self.partsupp = spark.read.parquet(dir + "partsupp")
| 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.