Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
0
25.1k
<|turn>system
You are a helpful assistant that can provide a wide variety of outputs, including code, academic summaries, mathematical simplifications, and creative writing.<turn|>
<|turn>user
Provide an example of an OEIS sequence and a corresponding assembly-like implementation of its formula.<turn|>
<|turn>model
===========
; A072257: a(n) = ((6*n-17)*4^n - 1)/3.
; -6,-15,-27,21,597,4437,25941,136533,677205,3233109,15029589,68506965,307582293,1364546901,5995058517,26127717717,113100805461,486762960213,2084490794325,8887718991189,37749899220309,159795689903445,674367131702613,2838206015165781,11915774014084437,49914895870022997,208666782734832981,870695927958295893,3626898899909...
mov $1,-2
lpb $0
sub $0,1
add $1,$0
mul $1,4
lpe
add $0,2
sub $1,$0
sub $1,14
div $1,2
mul $1,3
add $1,21
mov $0,$1
.byte $01 ; Unknown purpose
.byte OBJ_TOAD, $0D, $04
.byte $FF ; Terminator<turn|>
____IMATRIX_SEPARATOR____<|turn>system
You are a helpful assistant.<turn|>
<|turn>user
Provide examples of C++ concurrent queues, Objective-C view controllers, and Emacs Lisp packages for Vietnamese input.<turn|>
<|turn>model
===========
//
// Copyright (c) 2015-2018 The NRDI developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef NRDI_CONCURRENTQUEUE_H
#define NRDI_CONCURRENTQUEUE_H
#include <mutex>
#include <condition_variable>
#include <deque>
template <typename T>
class concurrentqueue
{
private:
std::mutex mutex;
std::condition_variable condition;
std::deque<T> queue;
public:
void push(T const& value) {
{
std::unique_lock<std::mutex> lock(this->mutex);
queue.push_front(value);
}
this->condition.notify_one();
}
T pop() {
std::unique_lock<std::mutex> lock(this->mutex);
this->condition.wait(lock, [=]{ return !this->queue.empty(); });
T rc(std::move(this->queue.back()));
this->queue.pop_back();
return rc;
}
T popNotWait(){
std::unique_lock<std::mutex> lock(this->mutex);
T rc(std::move(this->queue.back()));
this->queue.pop_back();
return rc;
}
bool hasElements(){
std::unique_lock<std::mutex> lock(this->mutex);
return !queue.empty();
}
};
#endif //NRDI_CONCURRENTQUEUE_H
//
// RYJViewController.h
// RYJToolKit
//
// Created by developRen on 11/30/2020.
// Copyright (c) 2020 developRen. All rights reserved.
//
@import UIKit;
@interface RYJViewController : UIViewController
@end<turn|>
____IMATRIX_SEPARATOR____<|turn>system
You are a helpful assistant.<turn|>
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
75