seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
premodel, normalizer = load_from_pickle(premodel_file, '../pretrain')
xgb_params['xgbdef'] = list(premodel[0].values())[0]
elif premodel_file == 'no' and scale_strategy == 'standard':
printx("standardly scale all features ...")
from sklearn.preprocessing import StandardScaler
normalizer = StandardSc... | ise-uiuc/Magicoder-OSS-Instruct-75K |
* count
* @param appUserId
* @return
*/
long count(Integer appUserId);
/**
* find page
* @param appUserId
* @param query
* @param rowBounds
* @return
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#endregion
#region Constructors
[JsonConstructor]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.objectsUIDAndQty = objectsUIDAndQty;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const [datasetState, setDatasetState] = useState<DatasetState>({header: null, rows: null, file: null, ipfs_path: ''});
const [submitTxOpen, setSubmitTxOpen] = useState<boolean>(false);
const [pushCommand, setPushCommand] = useState<Object>({});
function handleDatasetReady(file: File) {
Papa.parse(file, {
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
sbatch keras_data_generation_wrapper.sh ${inputs[@]}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def initialize(file):
"""This functions creates a variety of commands to load.
It returns the cf.
"""
#load the config file
with open(file, 'r') as yaml:
cf=ruamel.yaml.round_trip_load(yaml, preserve_quotes=True)
return cf
def azure_request(command, endpoint, key, postdata):
#S... | ise-uiuc/Magicoder-OSS-Instruct-75K |
var isActive: Bool { return self != .initial }
}
protocol SwipeActionsViewDelegate: AnyObject {
func swipeActionsView(_ swipeCellActionView: SwipeCellActionView, didSelect action: SwipeActionButton)
}
class SwipeCellActionView: UIView {
weak var delegate: SwipeActionsViewDelegate?
let orientatio... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
from sqlalchemy.orm import Session
from telegram import Update, ParseMode, Chat
from telegram.ext import CallbackContext
from . import _strings as strings
from ._scoped_session import scoped_session
from .models import GroupChat
from ...helpers import admin_only, deletes_caller_message
COMMAND_DESCRIPT... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import sys
import os
sys.path.append(os.path.join(os.path.realpath(__file__), "../"))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func sortedBeacons(_ beaconRegion: BeaconRegion) -> [Beacon] {
return beaconRegion.beacons.sorted {(b1: Beacon, b2: Beacon) -> Bool in
if b1.major > b2.major {
return true
} else if b1.major == b2.major && b1.minor > b2.minor {
return true
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
print('Sound value: {0}'.format(sensor.sound))
time.sleep(.3)
'''
import math
import time
from grove.adc import ADC
__all__ = ['GroveSoundSensor']
class GroveSoundSensor(object):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
""" Metoda vrací cestu k uploadovanému plakátu. """
def poster_path(instance, filename):
return "animals/" + str(instance.name) +"/foto/"+ filename
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>Octoberr/linuxdatacollect
iptables -t nat -A POSTROUTING --out-interface eth0 -j MASQUERADE
echo "1" >/proc/sys/net/ipv4/ip_forward
| ise-uiuc/Magicoder-OSS-Instruct-75K |
op.f("fk_operations_certificate_id_certificates"),
"operations",
"certificates",
["certificate_id"],
["id"],
)
def downgrade_domain():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return <MuteBtn {...props} />;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[derive(Debug, Default, XmlRead, XmlWrite)]
#[cfg_attr(test, derive(PartialEq))]
#[xml(tag = "w:tcPr")]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@staticmethod
def from_dict(value: dict) -> "ApiKey":
data = ApiKeyModel(**value)
return ApiKey(**data.dict())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
v = [x for x in v if x is not None] # purge invalid gamestates
gamestate = v[0]
pixel_buf = scene_draw.render_gamestate(gamestate)
pixel_buf[0] = 0x30
pixel_buf[1] = 0x50
pixel_buf[2] = 0x00
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo 1111111111111111111 >> /www/test/advanced/test.txt
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import json
import queue
from concurrent.futures import ThreadPoolExecutor
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ack: jest.fn()
};
return { listener, data, msg };
};
it("sets uderId of ticket and acknowledges the message", async () => {
const { listener, data, msg } = await setup();
await listener.onMessage(data, msg);
const updatedTicket = await Ticket.findById(data.ticket.id);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
public class NotificationReceiver {
private String firstName;
private String lastName;
private String serviceName;
private String ulbName;
private String mobileNumber;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return check_range(m, 0, 59)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub async fn chownr(absolute_path: &str) -> Result<()> {
let user = check_user().await?;
let user = user.trim();
let cmd = format!("chown -R {}:{} {}", user, user, absolute_path);
if async_command(&cmd).await.is_ok() {
Ok(())
} else {
Err(anyhow!("Failed adjusting permissions of {}",... | ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Lists all tags, with count aggregates
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
<div class="col-md-6 col-sm-6">
<?= $form->field($model, 'cities_areward')->textInput(['maxlength' => true]) ?>
</div>
<div class="col-md-6 col-sm-6">
<br/> <?= Html::submitButton('บันทึก', ['class' => 'btn btn-s... | ise-uiuc/Magicoder-OSS-Instruct-75K |
use Pecserke\Component\IcsDhcpServer\Configuration\Config;
use Pecserke\Component\IcsDhcpServer\Configuration\Host;
class ConfigTest extends \PHPUnit_Framework_TestCase {
public function testGetHosts() {
$config = new Config();
$this->assertEmpty($config->getHosts());
$host1 = new Host('... | ise-uiuc/Magicoder-OSS-Instruct-75K |
// CommunityCircle
//
// Created by 肖华 on 2020/7/25.
// Copyright © 2020 Konnech. All rights reserved.
//
#if !COCOAPODS
import FunBox
#endif
import AVFoundation
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def fake_has_service(*args, **kwargs):
return self.has_neutron
self.cloud.has_service = fake_has_service
def test_openstack_cloud(self):
self.assertIsInstance(self.cloud, shade.OpenStackCloud)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
}
});
alert.show();
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
await self.client.change_presence(status=discord.Status.online, activity=discord.Game(f'{len(self.client.guilds)}개 서버에서 작동'))
await asyncio.sleep(5)
await self.client.change_presence(status=discord.Status.online, activity=discord.Game(f'유저 {len(list(self.client.get_all_members()))}명과 함께 '))
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'If out array is provided, it should have the same shape as '
f'the input array. Input array has shape {orig_shape}, provided '
f'output array has shape {out.shape}.'
)
try:
out_view = out.view()
out_view.shape = (-1,) # no-copy reshape/ravel
except A... | ise-uiuc/Magicoder-OSS-Instruct-75K |
let greenPortal = Portal(color: #colorLiteral(red: 0.4028071761, green: 0.7315050364, blue: 0.2071235478, alpha: 1))
world.place(greenPortal, atStartColumn: 1, startRow: 5, atEndColumn: 5, endRow: 1)
func solveIsland() {
for i in 1 ... 3 {
moveForward()
collectGem()
turnRight()
turnR... | ise-uiuc/Magicoder-OSS-Instruct-75K |
// Created by 婉卿容若 on 16/5/18.
// Copyright © 2016年 com.ozner.net. All rights reserved.
// 容若的简书地址:http://www.jianshu.com/users/274775e3d56d/latest_articles
// 容若的新浪微博:http://weibo.com/u/2946516927?refer_flag=1001030102_&is_hot=1
import UIKit
class RNBaseUI: NSObject {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if verbose:
print("--Successful %s" % strftime(timeformat, localtime()), file=sys.stderr)
if __name__ == '__main__':
startTime = strftime(timeformat, localtime())
main()
endTime = strftime(timeformat, localtime())
fh = open('python.log', 'a')
print("%s\n\tRun time : %s - %s " % \
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
public function sendPost($port, $data)
{
try {
$client = new Client();
$Url = "http://127.0.0.1:{$port}/PythonRunner/App.php";
// $Url = "http://127.0.0.1/ViolinRunner/App.php";
$res = $client->request('POST', $Url, [
'form_params'... | ise-uiuc/Magicoder-OSS-Instruct-75K |
previous_token
and self.MAX_RESULTS_LIMIT
and (
cast(int, previous_token) * self.MAX_PER_PAGE >= self.MAX_RESULTS_LIMIT
)
):
return None
resp_json = response.json()
if isinstance(resp_json, list):
results = ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
/// 数组为空
guard let last = array.last else {
let list = [delegete.messageArray(arry: self, date: Date()), message]
array.append(contentsOf: list)
return [array.count-2, array.count-1].indexPaths()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# draw the text score and FPS
pt = b.top_left.int().tolist()
frame_vis = cv2.putText(
frame_vis, f"{b.score:.2f}", (pt[0], pt[1] - 12), cv2.FONT_HERSHEY_DUPLEX, 0.5, (255, 255, 255))
# write the processed frame
out.write(frame_vis)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import math
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import struct
#https://bitcoincore.org/en/segwit_wallet_dev/
class SWitnessTransaction(STransaction):
def __init__(version,flag,ins,outs,witness,locktime):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def _clean_name(self, name):
"""
Cleans the name so that Windows style paths work
"""
# Useful for windows' paths
return os.path.normpath(name).replace('\\', '/')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def build_queries(model: DeclarativeMeta, objects: Objects, queries: GraphQLFieldMap, inputs: Inputs) -> None:
object_type = build_object_type(model, objects)
objects[object_type.name] = object_type
queries[object_type.name] = GraphQLField(
GraphQLNonNull(GraphQLList(GraphQLNonNull(object_type))),... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public function isPerformAsync(): bool
{
return $this->performAsync;
}
public function getApplicationContextName(): string
{
return $this->applicationContextName;
}
public function getActivityId(): string
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Test init module
==================================
Author: Casokaks (https://github.com/Casokaks/)
Created on: Aug 15th 2021
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
application = ProtocolTypeRouter({
"websocket" : AuthMiddlewareStack(
URLRouter([
path('connect4ws/', include(connect4.routing)),
])
),
"channel" : ChannelNameRouter(
connect4.routing.channel_names
),
})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import unittest
from katas.kyu_7.binary_addition import add_binary
class AddBinaryTestCase(unittest.TestCase):
def test_equals(self):
self.assertEqual(add_binary(1, 1), '10')
def test_equals_2(self):
self.assertEqual(add_binary(0, 1), '1')
def test_equals_3(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// highkara
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else $data = DB::select('select * from `subscriptions` WHERE `tenant_id` = ? order by `'.$order.'` '.$asc, $_SESSION['user']['tenant_id']);
$subscriptiontypes = DB::selectPairs('select `id`,`name` from `subscriptiontypes` WHERE `tenant_id` = ?', $_SESSION['user']['tenant_id']);
$customers = DB::selectPairs('select `id... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def parse(self, response):
yield {
"uuid": str(uuid.uuid1()),
"timestamp": dt.datetime.now(),
"url": response.url,
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@{
ViewData["Title"] = "Submitted";
}
<h4>Success</h4>
<p>Your submission was successfuly uploaded to server.</p>
<p>You can now go to your <th:a asp-page="./Index">submissions</th:a>, to run some tests.</p>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# PYTHON 2 FALLBACK #
if python == 3:
base64string = base64.b64encode(bytes('%s:%s' % (options['username'], options['password']), 'utf-8'))
post_data = bytes(urlencode({
"query": query,
"header": "yes"
}), 'utf-8')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Ok(line.trim().into())
}
fn let_user_choose_example(examples: Vec<Option<String>>) -> Result<String> {
println!("q) Quit");
for (i, optional_example) in examples.iter().enumerate() {
if let Some(example) = optional_example {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
key={index}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
operations = [
migrations.AddField(
model_name='customerorderinfo',
name='show_memo',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_get_all_driver(self):
drivers = utils.get_all_driver()
self.assertEqual([], drivers)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
NotFoundSchema,
)
class InventoryAPI(APIView):
summary = "Returns toy inventories by status"
response_schema = InventoryByStatusSchema
def get(self, request):
...
return Response({})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} catch _ {
print("Error on save access token in keychain")
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
_dbg = output;
_enableDebug = (enableDebug && (_dbg != NULL));
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// replace it just below, after stringification
scope: (SCOPE_PLACEHOLDER as unknown) as null,
isStrictMode: options.strictMode ?? false,
};
if (usedLocals.length === 0) {
delete templateJSONObject.scope;
}
// JSON is javascript
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Data
public class NamedDependencyChangeReport {
private final String sourceName;
private final DependencyChangeReport report;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
socket.as_raw_socket() as usize,
IPPROTO_IPV6 as c_int,
IPV6_V6ONLY as c_int,
optval.as_mut_ptr().cast(),
&mut optlen,
),
PartialEq::eq,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# All imports
from syntactic_simplifier import SyntacticSimplifier | ise-uiuc/Magicoder-OSS-Instruct-75K |
pre_existent_value: PreExistentValue,
schema_duplicate_property_name: SchemaDuplicatePropertyName,
unknown_property_reference: UnknownPropertyReference,
unsupported_block_type: UnsupportedBlockType,
unsupported_data_type: UnsupportedDataType,
unsupported_property_type: UnsupportedPropertyType,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub y: usize,
}
impl Position {
pub fn new(x: usize, y: usize) -> Position {
Position {
x: x,
y: y,
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Look in the registry for the configured cache folder.
If there is no entry, then we create one.
:return:
"""
_winreg.aReg = _winreg.ConnectRegistry(None, _winreg.HKEY_CURRENT_USER)
try:
key = _winreg.OpenKey(_winreg.aReg, r"SOFTWARE\CCP\EVEONLINE")
path, _ = _winreg.QueryValueEx(... | ise-uiuc/Magicoder-OSS-Instruct-75K |
test('dnd 1->5, 4->2 and 3->5', async () => {
await trackMouse(page);
await makeDnd(page.mouse, 1, 5, getPositions([108, 0, 0, 0, 491]));
await makeDnd(page.mouse, 4, 2, getPositions([0, 228, 0, 419, 0]));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
CPU_EXTENSION = "C:\\Program Files (x86)\\IntelSWTools\\openvino\\deployment_tools\\inference_engine\\bin\\intel64\\Release\\cpu_extension_avx2.dll"
MODEL = "C:/Users/gremi/Documents/Julien/udacity_intel/models/intel/emotions-recognition-retail-0003/INT8/emotions-recognition-retail-0003.xml"
# if linux : /opt/i... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Download,
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif s1[x-1] == s2[y-1]:
arr[x-1][y-1] = 1 + lcs(s1, s2, x-1, y-1)
return arr[x-1][y-1]
else:
arr[x-1][y-1] = max(lcs(s1, s2, x-1, y), lcs(s1, s2, x, y-1))
return arr[x-1][y-1]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
./runRSA
| ise-uiuc/Magicoder-OSS-Instruct-75K |
foundUsernames = []
for user in usernames:
for i in range(0,50,1):
payload = {'username':user.strip(), 'submit':'Search'}
r = requests.post('http://mario.supermariohost.local:8180/command.php', params = payload)
if 'User Exists' in r.text:
foundUsernames.append(user.strip())
uniqueSet = ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
__new__(cls: type,dataType: object)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.bukkit.command.Command;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def fc(img):
if random.random() < p:
return img[..., ::-1]
else:
return img
return fc
def vertical_flip(p=0.5):
def fc(img):
if random.random() < p:
return img[..., ::-1, :]
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
echo "Aktif";
} else if ($c->isAktif == 2)
{
echo "Tidak Aktif";
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
fn context() -> Rc<Context> {
CONTEXT.with(|ctx| ctx.borrow().as_ref().unwrap().clone())
}
fn run() -> UiThread {
let (tx, rx) = mpsc::unbounded_channel();
let (id_tx, id_rx) = std::sync::mpsc::channel();
let (finish_tx, finish_rx) = watch::channel(None);
let (unwind_tx, unwind_rx) = oneshot::chan... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from setuptools import find_packages, setup
from app import __version__
# get the dependencies and installs
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'requirements.txt')) as f:
all_requirements = f.read().split('\n')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Alexa.NET.ConnectionTasks
{
public class TaskStatus
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this_label = str(i)
ax.plot(t_set,n_set, color=(1-color_scheme[i],0,color_scheme[i]), label=this_label)
if i ==0:
this_title = "initial G,k1,k2,k3 = " + str(p)
plt.title(this_title)
ax2 = fig.add_subplot(212)
ax2.plot(range(len(mse_list)),mse_list)
ax.legend()
ax.set_xlabel("t")
ax.set_ylabel("n")
ax... | ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace cvu {
int bayerCodeGray(EBayerCode code)
{
switch(code)
{
// OpenCV code is shifted one down and one left from
// the one that GigE Vision cameras are using
case EBayerCode::BG: return CV_BayerRG2GRAY;
case EBayerCode::GB: return CV_BayerGR2GRAY;
case EBayerCode::RG: return CV_Bay... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import { extractStories } from './extract-stories';
const parser = require.resolve('./collect-stories').replace(/[/\\]/g, '/');
// From https://github.com/sveltejs/svelte/blob/8db3e8d0297e052556f0b6dde310ef6e197b8d18/src/compiler/compile/utils/get_name_from_filename.ts
// Copied because it is not exported from the co... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from .assets import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def main():
N = int(argv[1]) if len(argv) > 1 else 3
t = Tokenizer(filter_punct=True, ws_norm=True, strip=True, replace_digits=True)
f = Featurizer(t, N=N)
f.featurize_in_directory(argv[2])
stderr.write('Featurized\n')
#m = f.to_dok_matrix(docs)
f.get_correlations()
stderr.write('Means ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
comix_out = CURRENT_DIR / "comix_dl" / comic.release_name
cmx_download_helper(comic, comix_out, neo_session.session, export)
logger.info("Finished downloading all comics")
neo_session.close()
@main.command("info", short_help="View information of specific comic")
@click.argument("comic_id", me... | ise-uiuc/Magicoder-OSS-Instruct-75K |
grads = self.hyper_map(F.partial(apply_decay, self.weight_decay), self.decay_tf, params, grads)
if self.reciprocal_scale != 1.0:
grads = self.hyper_map(F.partial(grad_scale, self.reciprocal_scale), grads)
lr = self.learning_rate
success = self.hyper_map(F.partial(ftrl_opt... | ise-uiuc/Magicoder-OSS-Instruct-75K |
text += TKStyleManager.timeString(end, for: timeZone)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//Product to update attach record, data from multiple carts.
private function getProductsForAttach($carts, $method, $cashier_id, $uuid)
{
$items = [];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from datetime import timedelta
from flask.ext.login import UserMixin, LoginManager, current_user, login_user
from itsdangerous import URLSafeTimedSerializer
from flod_frontend import app
import os
# Login_serializer used to encryt and decrypt the cookie token for the remember me option of flask-login
from proxy impo... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if ($pendaftaran->disetujui == 'n' && $request->state == 'y') {
$magang = FormMagang::find($pendaftaran->magang_id);
$magang->update(['slot_tersedia' => $magang->slot_tersedia - 1]);
}
$pendaftaran->update([
'disetujui' => $request->state,
'penye... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<div className={`${prefixCls}-title ${prefixCls}-title-align-${align.datetime}`}>
{author && <span className={`${prefixCls}-author`}>{author}</span>}
{datetime && <span className={`${prefixCls}-datetime`}>{datetime}</span>}
</div>
)}
{content && <d... | ise-uiuc/Magicoder-OSS-Instruct-75K |
plt.ylabel("Salary")
plt.show() | ise-uiuc/Magicoder-OSS-Instruct-75K |
mouse->GetScrollY(),
mouse->GetDownButtons()
);
return state;
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
// ctrl+s, so both are captured here
if (event.key === "s" && (event.altKey || event.ctrlKey)) {
// PreventDefault even if the page isn't in edit mode
// to avoid a situation where the shortcut sometimes saves
// and sometimes opens the system "Save" dialog
event.prevent... | ise-uiuc/Magicoder-OSS-Instruct-75K |
global picturecounter
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this ,SLOT (ImportPicture()) ) ;
////////////////////////////////////////////////////////
pickEncrypt = new PickPicture ( stack , plan ) ;
stack -> addWidget ( pickEncrypt ) ;
nConnect ( pickEncrypt,SIGNAL(FileSelected(QString)) ,
this ,... | ise-uiuc/Magicoder-OSS-Instruct-75K |
_fields_ = [("classes", c_int),
("names", POINTER(c_char_p))]
lib = CDLL("/home/pjreddie/documents/darknet/libdarknet.so", RTLD_GLOBAL)
lib.network_width.argtypes = [c_void_p]
lib.network_width.restype = c_int
lib.network_height.argtypes = [c_void_p]
lib.network_height.restype = c_int
def load_met... | 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.