seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
batch_size = 64
num_unrollings = 50
dropout = 0.2
vocabulary_size =128
ix = tf.Variable(tf.truncated_normal([vocabulary_size, num_nodes],stddev=0.02)) | ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.codehaus.jackson.map.annotate.JsonDeserialize;
/**
* Created by dmitry.rudenko on 7/28/2017.
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
translator_combo['values'] = ('구글', '파파고','카카오')
translator_combo.set("구글")
translator_combo.current(0)
def resultform():
global point1, point2, t_start, translator
| ise-uiuc/Magicoder-OSS-Instruct-75K |
c1xc2_1 = ddlsfz * dlsfy - ddlsfy * dlsfz
c1xc2_2 = ddlsfx * dlsfz - ddlsfz * dlsfx
c1xc2_3 = ddlsfy * dlsfx - ddlsfx * dlsfy
curvature = np.sqrt(c1xc2_1 ** 2 + c1xc2_2 ** 2 + c1xc2_3 ** 2) / (dlsfx ** 2 + dlsfy ** 2 + dlsfz ** 2) ** 1.5
return line, curvature
else:
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
plt.xlabel('Tempo')
plt.ylabel('Amplitude')
plt.grid(True)
# Apresenta o Gráfico
| ise-uiuc/Magicoder-OSS-Instruct-75K |
static
good_bool
create_definition_footprint(
const instance_collection_parameter_type&,
const footprint& /* top */) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if result_number > num_games/2:
wins+=1
wins_per_bot[bot_name] = wins
sorted_bots = sorted(wins_per_bot.items(), key=operator.itemgetter(1))
sorted_bots.reverse()
#print(sorted_bots)
#print ranked bots
with open("bot_scores.md", "w") as o:
o.write("# Bot Scores\n")
o.write("Results of "... | ise-uiuc/Magicoder-OSS-Instruct-75K |
case newAxis
case squeezeAxis
case index(Int)
case range(Range<Int>, stride: Int)
case closedRange(ClosedRange<Int>, stride: Int)
case partialRangeFrom(PartialRangeFrom<Int>, stride: Int)
case partialRangeUpTo(PartialRangeUpTo<Int>, stride: Int)
case partialRangeThrough(PartialRangeThrough<Int>, stride:... | ise-uiuc/Magicoder-OSS-Instruct-75K |
$this->assertInstanceOf(Address::class, $address);
$this->assertSame([
'street' => null,
'house_no' => null,
'town' => 'Collingwood',
'municipality' => 'Victoria',
'province' => null,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
> Verse 5\n\
W: Anyway, this cake is great.\n\
E: When I look up there it makes me glad I'm not you.\n\
SW: there is research to be done on the people who are still alive.\n\
< Verse 5\n\
< Verse 4\n\
< Verse 3\n\
<Portal: Still Alive Verse 1\n\
>Last One Verse 6\n\
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function down()
{
Schema::drop('solicitudes');
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
set -e
VERSION=1.9.4
SOURCE=http://ftp.gnu.org/gnu/inetutils/inetutils-$VERSION.tar.gz
wget -c -S $SOURCE
tar xvzf inetutils-$VERSION.tar.gz
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//Sanitize inputs
if(root == null || S == null){
return;
}
//Decode
Node node = root;
final StringBuilder sb = new StringBuilder();
for(char c : S.toCharArray()){
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self['myRights'] = {
'mayReadItems': can_select,
'mayAddItems': can_select,
'mayRemoveItems': can_select,
'maySetSeen': can_select,
'maySetKeywords': can_select,
'mayCreateChild': True,
'mayRename': False if self['role'] else Tr... | ise-uiuc/Magicoder-OSS-Instruct-75K |
done
for file in onlyR1/CNS_5/*.fa*; do
name=`basename "$file"`
sed -i "s/>.*/>${name%%.*}/" "$file"
done
# align with augur (mafft)
mkdir -p onlyR1/alignment
cat CNS_5/*.fa* > onlyR1/alignment/all_not_aligned.fasta
augur align \
--sequences onlyR1/alignment/all_not_aligned.fasta \
--reference-sequence refs/REF_NC... | ise-uiuc/Magicoder-OSS-Instruct-75K |
// Copyright (c) 2019 Dolar, Ziga. All rights reserved.
//
import Foundation
internal extension Bundle {
static func resourceBundle(for type: AnyClass) -> Bundle? {
let moduleBundle = Bundle(for: type)
let moduleName = moduleBundle.resourceURL?.deletingPathExtension().lastPathComponent
if... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if options:
params["OptionSettings"] = options
return client.create_environment(**params)
def delete(profile, environment, force=True):
"""Delete an Elastic Beanstalk environment.
Args:
profile
A profile to connect to AWS with.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let inputs = vec![
ferris_base::core::direction::Direction::RIGHT,
ferris_base::core::direction::Direction::RIGHT,
];
let end = vec![
| ise-uiuc/Magicoder-OSS-Instruct-75K |
window.destroy()
# check if all buttons are filled
elif buttons == "X" or buttons == "O":
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return data
@pytest.fixture(scope="module")
def json_test_file_path(test_path_root: Path, json_data):
file_name = "test_data.json"
file_path: Path = test_path_root / file_name
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("constituida de linhas de linhas com 8 bytes de largura.", end=" ")
print("A MP possui uma capacidade de 16MB.")
cap_larg = bit_dados()
blocos = eval(input("Digite a capacidade da MP: ")) / cap_larg[1]
linhas = cap_larg[0] / cap_larg[1]
tag_bit = bit_tag(blocos, linhas)
pot = log(cap_l... | ise-uiuc/Magicoder-OSS-Instruct-75K |
response, status = {'message': 'Not authorized to perform this action'}, \
http_status.HTTP_401_UNAUTHORIZED
else:
response, status = {'subscriptions': ProductSubscriptionSchema().dump(subscriptions, many=True)}, \
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>ConsoleGameEngine/Exceptions.cpp
#include <iostream>
#include <exception>
#include "SEngine.h"
using namespace std; | ise-uiuc/Magicoder-OSS-Instruct-75K |
prng = np.random.RandomState(42)
# Draw 1000 observations from a Weibull distribution with
# shape=1.5 and scale=3, which represents significant
# wave height.
sample_0 = prng.weibull(1.5, 1000) * 3
# Let the second sample, which represents spectral peak
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use crate::delay::{
AsyncDelayMs as _async_embedded_traits_delay_AsyncDelayMs,
AsyncDelayUs as _async_embedded_traits_delay_AsyncDelayUs
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import {
USER_ALLOWED_RELATIONS,
USER_ALLOWED_SELECT_FIELDS,
USER_ALLOWED_SORT_FIELDS,
} from '../constants/user-fields';
import { FindAllQueryDTO } from '../../shared';
export class FindUsersQueryDTO extends IntersectionType(
FindAllQueryDTO(USER_ALLOWED_SELECT_FIELDS, USER_ALLOWED_SORT_FIELDS, USER_ALLOWED_R... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<script src="/resepmu/application/assets/sweetalert/jquery.sweet-alert.custom.js"></script>
</body>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cod = tyeval(node.body, scope, bindings)
return Function(dom, cod)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
url="https://github.com/joakimmj/md-tangle",
packages=setuptools.find_packages(),
keywords=['markdown', 'tangle', 'literate programming'],
platforms=['any'],
classifiers=[
"Environment :: Console",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//==============================================================================
// Destructor =
//==============================================================================
Extension::~Extension()
{
/*//DEBUG_ERR(libHandle==NULL || foobarPtr==NULL);... | ise-uiuc/Magicoder-OSS-Instruct-75K |
// Created by Adam on 2022/1/12.
//
import XCTest
class Adam_20220112_TalentedUITests: XCTestCase {
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
// In UI tests it is usually best to stop immediately... | ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
return self.highest_bid.user.username
except AttributeError:
return None
@property
def highest_bid_amount(self):
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class SomeInfoWidget(flx.PyWidget):
def init(self):
with flx.FormLayout():
self.label = flx.Label(title='name:')
flx.Widget(flex=1)
@flx.reaction
def update_label(self):
self.label.set_text(self.root.store.username)
class Store(flx.PyComponent):
username = fl... | ise-uiuc/Magicoder-OSS-Instruct-75K |
mkdir tmp
BUILD_PREFIX=$PWD/tmp
CONFIG_OPTS=()
CONFIG_OPTS+=("CFLAGS=-I${BUILD_PREFIX}/include")
CONFIG_OPTS+=("CPPFLAGS=-I${BUILD_PREFIX}/include")
CONFIG_OPTS+=("CXXFLAGS=-I${BUILD_PREFIX}/include")
CONFIG_OPTS+=("LDFLAGS=-L${BUILD_PREFIX}/lib")
CONFIG_OPTS+=("PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig")
CONFIG_... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return var0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if opcao == 0:
print('JOGADOR VENCEU!')
elif opcao == 1:
print('COMPUTADOR VENDEU')
elif opcao == 2:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
List of Messages that meet the specified query. Note that the
returned list contains Message IDs, you must use get with the
| ise-uiuc/Magicoder-OSS-Instruct-75K |
default_mailing_model_id=self.env.ref('event.model_event_registration').id,
default_mailing_domain=domain,
),
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
build)
npm run build
;;
semantic-release)
env
npx semantic-release --branch $BRANCH_NAME
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using ProductAPI.Configuration;
using ProductAPI.Service;
namespace ProductAPI
{
public class Startup
{
public const string MONGODB_SECTIONKEY = "MongoDB";
public IConfiguration _configuration { get; }
public Startup(IConfiguration configuration)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import sys
import re
# Test application to check whether EMR pipeline and reading the data works
# This code is from the EMR example:
# https://s3.amazonaws.com/elasticmapreduce/samples/wordcount/wordSplitter.py
def main(argv):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.Package(url: "https://github.com/PerfectlySoft/Perfect-MySQL.git", majorVersion: 3)
],
exclude:["Podfile","Podfile.lock","Pods","src","Swift-FFDB","Swift-FFDB.xcodeproj","Swift-FFDB.xcworkspace","Swift-FFDBTests","SwiftFFDB.podspec"]
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_DBSBuffer.UpdateAlgo_
Add PSetHash to Algo in DBS Buffer
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.playSlider.value = sender.playValue
| ise-uiuc/Magicoder-OSS-Instruct-75K |
x.append(int(input()))
x.sort()
ans=sum(x[1:])
x=[]
for i in range(2):
x.append(int(input()))
ans+=max(x)
print(ans) | ise-uiuc/Magicoder-OSS-Instruct-75K |
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
func applicationDidEnterBackground(application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timer... | ise-uiuc/Magicoder-OSS-Instruct-75K |
-days 2000 \
-set_serial 20283 \
-extensions server -extfile openssl.cnf
cat server.crt ca.crt > server.chain
openssl asn1parse -in ca.crt -out ca.der
openssl rsa -in server.key -out server.rsa
rm *.csr ca.crt ca.key server.crt server.key
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Top-level package for BCI-4-ALS."""
import importlib_metadata
__author__ = """<NAME>, <NAME>"""
__email__ = '<EMAIL>'
__version__ = importlib_metadata.version('bci4als')
from bci4als.experiments.offline import OfflineExperiment
from bci4als.experiments.online import OnlineExperiment
from .eeg import EEG
from .ml_m... | ise-uiuc/Magicoder-OSS-Instruct-75K |
setTimeout(dt.ajax.reload, 0);
//
// $(".box-body").removeClass('overlay');
// $(".box-body i.fa.fa-refresh.fa-spin").remove();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
t.forward(x)
t.left(90)
input("press enter to exit")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Generating {}".format(filename))
with open(filename, 'w') as f:
for k in range(nrows):
values1 = rng.integers(1, 1000, size=10).tolist()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('卖出 %s, %6d, %6.2f, %8.2f, %4.2f' %
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, plane=0, back_child=0, front_child=0):
self.plane = plane
self.back_child = back_child
| ise-uiuc/Magicoder-OSS-Instruct-75K |
status_code=status.HTTP_403_FORBIDDEN,
detail=f"You have not returned books that you have borrowed. Return them to borrow new books."
)
trn_status = db.query(models.StatusCode).filter(
models.StatusCode.status_id == 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('Predicted boxes are only output if their score is above score_thresh.'
))
@register_config('object_detection')
class ObjectDetectionConfig(RVPipelineConfig):
chip_options: ObjectDetectionChipOptions = ObjectDetectionChipOptions()
predict_options: ObjectDetectionPredictOptions = ObjectDetect... | ise-uiuc/Magicoder-OSS-Instruct-75K |
final EntryTypeDesc entryTypeDesc = entryPacket.getTypeDescriptor().getEntryTypeDesc(entryType);
final int version = versionID > 0 ? versionID : entryPacket.getVersion();
final long lease = (expiration > 0 || keepExpiration) ? expiration : LeaseManager.toAbsoluteTime(entryPacket.getTTL());
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
The name of the file to read the model from
"""
model = storage.load_model(model_name)
model.summary()
start = time.clock()
score = model.evaluate_generator(gen.finite_generator("data\\validation"), steps=30)
end = time.clock()
print("Time per image: {} ".format((end-start)/300))... | ise-uiuc/Magicoder-OSS-Instruct-75K |
d = {2: [2, 3, 'j'], '3': ['a', 'b', 'c']}
with self.assertRaises(Exception):
dinv = LsUtil.dict_inv(d)
d = {'A': ''}
with self.assertRaises(Exception):
dinv = LsUtil.dict_inv(d)
d = {'': 'A'}
with self.assertRaises(Exception):
dinv ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Args:
args (Optional[Sequence[str]]): The program arguments.
By default, command line arguments will be used.
Returns:
str: The value of the --template argument
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for (size_t j = 0; j < ii.size(); j++)
{
ii[j]->integer += 5;
}
std::cout << "ecs time " << clock() - begin_time << std::endl;
std::cout << "ecs time " << float(clock() - begin_time) << std::endl;
ii.clear();
ii.shrink_to_fit();
//___________________________________________________________
std::l... | ise-uiuc/Magicoder-OSS-Instruct-75K |
extension ViewController: UITableViewDataSource {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return nil
}
static let avatarDimension = 48
struct Avatar {
let imageURL: String
let url: String?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$0.edges.equalToSuperview()
}
tableView.register(UITableViewCell.self, forCellReuseIdentifier: UITableViewCell.description())
tableView.dataSource = self
tableView.delegate = self
tableView.estimatedRowHeight = 44
}
func setupBinding() {
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
inch = float(input())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Created by GS on 2017/10/30.
// Copyright © 2017年 Demo. All rights reserved.
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
show() | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
#else
// Update the dead reckoning algorithm
const auto filter_estimate{ object_X_filter_xy.GetEstimate() };
const auto glm_filter_estimate_pos{ glm::dvec3({ filter_estimate[0], filter_estimate[1], 0 }) };
const auto glm_filter_estimate_acc{ glm::dvec3({ filter_estimate[4], filter_estimate[5], 0 }) };
o... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use self::time_span::{ParseError, TimeSpan};
pub use self::time_stamp::TimeStamp;
pub use self::time::{GameTime, RealTime, Time};
pub use self::timer_phase::TimerPhase;
pub use self::timer::{CreationError as TimerCreationError, SharedTimer, Timer};
pub use self::timing_method::TimingMethod;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Ball::Ball(Ogre::Entity* ballEntity, Ogre::SceneManager* scnMgr)
{
// Create ball
// Set position, size
ballShape = scnMgr->getRootSceneNode()->createChildSceneNode();
ballShape->setPosition(0, 20, 0); // about mid screen
ballShape->setScale(0.1f, 0.1f, 0.1f);
ballShape->attachObject(ballEntity);
// ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
impl Default for Entry {
fn default() -> Self {
unsafe { MaybeUninit::zeroed().assume_init() }
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
df.to_excel(writer, index = False,sheet_name = ('Sheet 1'), columns =['JournalCode','JournalLib','EcritureNum','EcritureDate','CompteNum',
'CompteLib','CompAuxNum','CompAuxLib','PieceRef','PieceDate','EcritureLib',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# http://www.boost.org/LICENSE_1_0.txt
##############################################################################
"""update of units syntax : transitionnal
"""
__author__ = "<NAME> (<EMAIL>)"
__version__ = "$Revision: 1.0 $"
__date__ = "$Date: 2010 $"
__copyright__ = """ Copyright ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
from flask_mongoengine import MongoEngine
from flask_mail import Mail
from flask_assets import Environment
from flask_cache import Cache
from flask_bootstrap import Bootstrap
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// - dictionary: Dictionary with the object representation.
/// - projectPath: Absolute path to the folder that contains the manifest.
/// This is useful to obtain absolute paths from the relative paths provided in the manifest by the user.
/// - Throws: A decoding error if an expected property... | ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Category;
class CategoriesTableSeeder extends Seeder
{
/**
* Run the database seeds.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
NumberedCell(seq=2, r=1, c=2, a=0, d=4),
NumberedCell(seq=3, r=1, c=3, a=0, d=9),
NumberedCell(seq=4, r=1, c=6, a=4, d=5),
NumberedCell(seq=5, r=1, c=7, a=0, d=9),
NumberedCell(seq=6, r=1, c=8, a=0, d=4),
NumberedCell(seq=7, r=1, c=9, a=0, d=3),
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# print(status._json['text'])
#print(status.text)
for status in tweepy.Cursor(api.user_timeline, screen_name='@rogerfederer').items():
with open("tweetFedererComplete.txt", 'a', encoding='utf8') as text_file:
text_file.write(status.text + "\n")
strNoUrl = re.sub(r"http\S+", "", status.text... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.mspov.api.service.MspovApiService;;
//import com.mkyong.helloworld.service.HelloWorldService;
@Controller
public class MspovApiController {
private final Logger logger = LoggerFactory.getLogger(MspovApiController.class);
private final MspovApiService mspovApiService;
@Autowired
public MspovApiControl... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return audioUnit!
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void isTimePropType() {
Assert.assertTrue("isTimePropType", ClassUtils.isTimePropType(new java.util.Date().getClass()));
//
Assert.assertFalse("isTimePropType", ClassUtils.isTimePropType(new Long("1").getClass()));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@objc protocol SegmentedHeadViewDelegate: NSObjectProtocol {
@objc optional func didSelect(_ segmentedHeadView: SegmentedHeadView, index: Int)
}
class ApplyHeadView: UIView, ApplyHeadViewProtocol {
var headViewHeight: CGFloat {
return topViewHeight
}
weak open var delegate: ApplyHeadViewDelega... | ise-uiuc/Magicoder-OSS-Instruct-75K |
break;
case MotionEvent.ACTION_MOVE:
mCurrentY = event.getY();
if (mCurrentY - mFirstY > mTouchSlop) {
direction = 0;// down
} else if (mFirstY - mCurrentY > mTouchSlop) {
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from app import gettoken | ise-uiuc/Magicoder-OSS-Instruct-75K |
from unittest import TestCase, mock
from iclientpy import AbstractMap
class AbstractMapTestCase(TestCase):
def test_compute_bounds(self):
data = [[1, 2, 3], [4, 5, 6]]
lat_key = lambda d: d[0]
lng_key = lambda d: d[1]
map = AbstractMap()
result = map.compute_bound... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Credential.credential_list.remove(self)
@classmethod
def find_by_name(cls,name):
for credential in cls.credential_list:
if credential.credential_name == name:
return credential
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub(crate) enum Error {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
InitializeSecurityDescriptor(&sd, SECURITY_DESCRIPTOR_REVISION);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$user2 = $em->getRepository('AppBundle:User')->getUserByConfirmationToken($token);
$user2->setEnabled(true);
$user2->setToken(null);
$em->flush();
$this->addFlash(
'success_activation', $this->get('app.sweet_alerts')->registrationActivationSuccess());
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
// MARK - Internal methods
extension CellModel {
func setup(indexPath: IndexPath, delegate: CellModelDelegate) {
self.indexPath = indexPath
self.delegate = delegate
}
func didSelect(cell: Cell) {
selectionHandler?(cell)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
anno_info['image_id'] = img_id
anno_info['id'] = ann_id
out_json['annotations'].append(anno_info)
ann_id += 1
img_id += 1
cat = dict(id=1, name='text')
out_json['categories'].append(cat)
if len(out_json['annotations']) == 0:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const onEvent = (event: Event) => {};
let recorder = new window.MediaRecorder(mediaStream);
recorder = new MediaRecorder(mediaStream, mediaRecorderOptions);
recorder.start();
recorder.stop();
recorder.start(1000);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pg_rman show -a -B ${BACKUP_PATH} > ${TEST_BASE}/TEST-0002.out.4 2>&1
NUM_OF_PURGED_BACKUPS=`diff ${TEST_BASE}/TEST-0002.out.2 ${TEST_BASE}/TEST-0002.out.4 | grep DELETED | wc -l`
echo "Number of purged backups: ${NUM_OF_PURGED_BACKUPS}"
# clean up the temporal test data
| ise-uiuc/Magicoder-OSS-Instruct-75K |
username = "Username"
password = "Password"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
df = pd.read_csv('transcount.csv')
df = df.groupby('year').aggregate(np.mean)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from rest_framework import filters, viewsets
from apps.utils.rest.cached_views import cache_on_auth
from apps.utils.rest.permissions import HasAuthAPIKeyNoOrg, IsStaffOrReadOnly, ReadOnly
from .models import VarType
from .serializers import VarTypeReadOnlySerializer
logger = logging.getLogger(__name__)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@name.setter
def name(self, value: str):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def values(self) -> Sequence[str]:
"""
Set of values that are accepted for the given field.
An EC2 Transit Gateway Peering Attachment be selected if any one of the given... | ise-uiuc/Magicoder-OSS-Instruct-75K |
time.sleep(5)
for i in range(1):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
predictor with a small amount of noise has been added to allow for the study
of variable surrogacy
4. Option for a binary predictor and surrogate has been added
5. Toggle option for regression versus classification has been added
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 1. Size normalization.
lower = np.min(np_ink[:, 0:2], axis=0)
upper = np.max(np_ink[:, 0:2], axis=0)
scale = upper - lower
scale[scale == 0] = 1
np_ink[:, 0:2] = (np_ink[:, 0:2] - lower) / scale
# 2. Compute deltas.
np_ink[1:, 0:2] -= np_ink[0:-1, 0:2]
np_ink = np_ink[1:, :]
return np_ink, class_n... | ise-uiuc/Magicoder-OSS-Instruct-75K |
{
memcpy(&d[AdCmdLen], pData, DataLen);
txlen += DataLen;
}
| 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.