seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
int n;
cin >> n;
vector<int> a(n + 1), b(n + 1);
for (int i = 1; i <= n; ++i) cin >> a[i] >> b[i];
auto c = convolution(a, b);
for (int i = 1; i <= 2 * n; ++i) cout << c[i] << endl;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return jinja
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return sum == num;
}
};
// WTF
class Solution {
public:
bool checkPerfectNumber(int num) {
static unordered_set<int> n = {6, 28, 496, 8128, 33550336};
return n.find(num) != n.end();
}
}; | ise-uiuc/Magicoder-OSS-Instruct-75K |
return ("daddress", t[0])
def dcommand(self, t):
return ("dcommand", str(t[0]))
def doaddress(self, t):
return ("doaddress", t[0])
def dosymbol(self, t):
return ('dosymbol', str(t[0]))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
value = value.replace('\r', '')
value = value.replace('\n', '')
return value
class QueryTestCase(unittest.TestCase):
def test_parse_names(self):
self.assertEqual(None, parse_names(u''))
self.assertEqual(None, parse_names(u' '))
self.assertEqual(None, parse_names(u'\t'))
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
commandLine.appendPath(backDeployLibPath)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def authrization_heder_token(
api_key: str = Depends(APIKeyHeader(name="Authorization")),
) -> str:
try:
token_prefix, token = api_key.split(" ")
except ValueError:
raise HTTPException(
status_code=status.HTTP_403_FORBIDDEN,
detail="unsupported authorization type",
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# 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 |
#Coded by <NAME>, Founder Teknohouse.ID, Co-founder and former CTO of Indisbuilding
#pin 15 = relay 4 = dispenser_cewek
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod animation;
pub mod control_state;
pub mod controllable;
pub mod local_player;
pub mod physics;
pub use animated_sprite::*;
pub use animation::*;
pub use control_state::*;
pub use controllable::*;
pub use local_player::*;
pub use physics::*;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</a>
</div>
</div>
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
and modify ranges of data contained by a buffer object even though OpenGL
might still be using other parts of it.
This extension also provides a method for explicitly flushing ranges of a
mapped buffer object so OpenGL does not have to assume that the entire
range may have been modified. Further, it allows... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def has_object_permission(self, request, view, obj):
return True
class AnyGroupJWTBasePermission(JWTBasePermission):
'''
give access for all authenticated users that belong to any group
'''
def has_permission(self, request, view):
# TODO Temp. Remove as deprecated when all m... | ise-uiuc/Magicoder-OSS-Instruct-75K |
private MqttClient client;
private MqttConnectOptions options = new MqttConnectOptions();
@Override
protected void startUp() throws Exception {
MemoryPersistence persistence = new MemoryPersistence();
String broker = config.getProperty("mqtt.broker", "tcp://localhost:1883");
Str... | ise-uiuc/Magicoder-OSS-Instruct-75K |
reactor.stop()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var detected = false
// MARK: - Public Variables
// We do not declare as `weak` reference type because the implementing ViewController
// which declares / holds the EvrythngScanner instance will hold EvrthngScanner's instance.
// Hence, this delegate should be manually set to nil to avoid ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import os
import hashlib
from datetime import datetime
import configparser
from random import randint
import collections
import time
def getDigest(input):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="heading">
<h1>Placement <span>Form</span></h1>
</div>
<?php echo $this->Form->create('Placement');?>
<fieldset>
<?php
echo $this->Form->input('form_for');
echo $this->Form->input('branch');
echo $this->Form->input('category');
echo $this->Form->input('stu_name');
echo $this->Form->input('fath... | ise-uiuc/Magicoder-OSS-Instruct-75K |
init?(map: Map) { }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Permissions({ @Permission(value = RolePermission.MANAGEMENT_USERS, acls = READ) })
public Response getUsers(@BeanParam PaginationParam paginationParam) {
UserCriteria criteria = new UserCriteria.Builder().build();
List<User> users = userService
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function create()
{
$data = RelatedNews::all();
return view('admin.judicial.relatednews_info.create', compact('data'));
}
public function edit($id)
{
$data = RelatedNews::where('rn_id', $id)->get()[0];
return view('admin.judicial.relatednews_info.edit', compa... | ise-uiuc/Magicoder-OSS-Instruct-75K |
out_path = "data/out"
if not os.path.isdir(out_path):
os.mkdir(out_path)
os.mkdir(os.path.join(out_path, 'anomaly_detection'))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, lang: str):
super().__init__()
self.lang = lang
self.moses = sacremoses.MosesTokenizer(lang)
self.rm_accent = lang in self.LANG_WITHOUT_ACCENT
self.ready = True
def do(self, text: str):
text = text_normalizer.normalize(
text, accen... | ise-uiuc/Magicoder-OSS-Instruct-75K |
[1] 1 16.8973559126 2.6933495054 1.0
[2] 1 5.5548729596 2.7777687995 1.0
[3] 0 46.1810010826 3.1611961917 0.0
[4] 0 44.3117586448 3.3458963222 0.0
[5] 0 34.6334526911 3.6429838715 ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
marks = {'James': 90, 'Jules': 55, 'Arthur': 77}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cmds_map = [new_tmux_cmd(session, "ps", base_cmd + ["--job-name", "ps"])]
for i in range(num_workers):
cmds_map += [new_tmux_cmd(session,
"w-%d" % i, base_cmd + ["--job-name", "worker", "--task", str(i), "--remotes", remotes[i]])]
cmds_map += [new_tmux_cmd(session, "tb", ["tensorboard ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.ReDraw()
# Register event handlers
self.Bind(wx.EVT_SIZE, self.onSize)
self.Bind(wx.EVT_PAINT, self.onPaint)
def MakeNewBuffer(self):
size = self.GetClientSize()
self.buffer = BitmapBuffer(size[0], size[1],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dtype="float32", )
# first_layer 与 first_layer_mask 对应着infer起始层的节点
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with open(test_directory / f'{filename}.txt', 'w') as f:
f.write(s)
assert 15 == count_words_threading(str(test_directory / '*.txt'))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@autobind
private async fetchData(filter: TFilter): Promise<TData> {
return jsonMutationDataFetcher<TRaw, TData>(
this.props.mutationName,
this.props.filterFormatter ? this.props.filterFormatter(filter) : filter,
this.props.formatter
);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#==============================================================================
# Generic Django project settings
#==============================================================================
ALLOWED_HOSTS = ['*']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('gender', models.CharField(blank=True, choices=[('None', '未定義'), ('Male', 'オス'), ('Female', 'メス')], max_length=10, null=True, verbose_name='オス・メス')),
('count', models.IntegerField(default=1, verbose_name='個数')),
('connector', models.ForeignKey(on_delete=django.db.models.... | ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
export declare function addClass(elm: Element, classes: string | string[]): void;
//# sourceMappingURL=../../../../../../../../../splide/src/js/utils/dom/addClass/addClass.d.ts.map | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.centralWidget = QtWidgets.QWidget(MainWindow)
self.centralWidget.setObjectName("centralWidget")
#%% QFrames
| ise-uiuc/Magicoder-OSS-Instruct-75K |
KBDR = 0xFE02 // Keyboard data
}
// Returns a bool based on whether the number given
// represents a negative number or not
pub const fn is_negative(x: u16, bit_count: u16) -> bool {
x >> (bit_count - 1) == 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return true;
}
}
return false;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @author <NAME> (hohwille at users.sourceforge.net)
* @since 1.0.0
*/
public interface SignatureVerifier<S extends SignatureBinary> extends SignatureVerifierSimple {
/**
* @param signature the {@code byte} array with the signature as raw data.
* @return {@code true} if the given signature is valid, {@code ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mRendererID);
}
uint32_t OpenGLIndexBuffer::getCount() const
{
return mBuffer.mSize;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(6):
q.append(((qpast[i]+deltaT*qdot[i]) + np.pi) % (2 * np.pi) - np.pi)
qpast = q
#send control
for i in range(6):
set_joint_orientation(joints_id[i], q[i], mode=opmode)
ic(Rf)
#close.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
foreach ($users as $key => $user) {
$auth = ApiAuth::where('uid', $user->id)->first();
$return[] = [
'id' => $user->id,
'Username' => $user->email,
'ClientKey' => ($auth) ? $auth->client_key : '',
'ClientSecret' => ($auth) ? $auth->client_secret : '',
'ApiKey' => ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ise-uiuc/Magicoder-OSS-Instruct-75K | |
use_softmax=False)
if resume:
gesture_classifier.load_state_dict(checkpoint_classifier)
if num_layers_to_finetune > 0:
# remove internal padding for training
| ise-uiuc/Magicoder-OSS-Instruct-75K |
await fixture.tearDown()
})
describe('bonding curve', function () {
const tokensToDeposit = curatorTokens
it('reject convert signal to tokens if subgraph deployment not initted', async function () {
const tx = curation.signalToTokens(subgraphDeploymentID, toGRT('100'))
await expect(tx).rev... | ise-uiuc/Magicoder-OSS-Instruct-75K |
new_name='product',
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(main())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
apps=(
google-chorme
firefox
slack-desktop
spotify
vlc
whatsapp-web-desktop
| ise-uiuc/Magicoder-OSS-Instruct-75K |
filename = 'image.jpg'
img = cv2.imread(filename)
img = cv2.resize(img, (640, 480), interpolation = cv2.INTER_AREA )
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
gray = np.float32(gray)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mask = np.abs(pxdiff) >= pxThreshold
if pxCount is not None:
assert mask.sum() <= pxCount
maskedDiff = diff[mask]
if maxPxDiff is not None and maskedDiff.size > 0:
assert maskedDiff.max() <= maxPxDiff
if avgPxDiff is not None and maskedDiff.size > 0:
assert maskedDiff.mean()... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public static string UploadDirectory { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
local_url = "/home/garrison/Code/blogengine/output"
remote_url = "http://www.example.com"
site_title = "My Vanilla Blog"
site_description = "The really cool blog in which I write about stuff"
copy_rst = False
disqus_shortname = "mydisqusshortname"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from ..models.unique_identifier import UniqueIdentifier
from .base_heap_object_factory import HeapObjectFactory
class KvpHeapObjectFactory(HeapObjectFactory):
def __init__(self, obj: Dict, options: Options = None) -> None:
super().__init__(obj, options)
self._items = obj.items()
self._obj... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# glove.save(_GV_MODEL_FILE, binary=False)
glove2word2vec(glove_input_file=_GV_MODEL_FILE, word2vec_output_file=_GV_W2V_MODEL_FILE)
# with open(_GV_MODEL_FILE, 'rb') as f:
# buf = f.read()
# print(buf)
model = KeyedVectors.load_word2vec_format(_GV_W2V_MODEL_FILE, binary=False)
print(mod... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.Milliseconds = Milliseconds
self.Items = Items
}
}
struct TimedMessage {
let Milliseconds: UInt
let bytes: [UInt8]
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.head = head
def encode(self, content):
return super().encode('<!DOCTYPE html><html><head>' + self.head + '</head><body>' + str(content) + '</body></html>')
def run_server(info, port, encoder = JsonEncoder(), response_cache = {}):
class MyHandler(http.server.SimpleHTTPRequestHandler):
def respond(self, con... | ise-uiuc/Magicoder-OSS-Instruct-75K |
agent_func = """
@flamegpu_device_function
def helper(x: numpy.int16) -> int :
return x**2
@flamegpu_agent_function
def pred_output_location(message_in: MessageBruteForce, message_out: MessageBruteForce):
id = FLAMEGPU.getID()
offset = 10
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
<!-- END of PAGE CONTENT | ise-uiuc/Magicoder-OSS-Instruct-75K |
$exception->setSeverity(12346664321);
$this->expectException(LogicException::class);
new Exception($exception);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ConfigVariableList exclude_texture_scale
("exclude-texture-scale",
PRC_DESC("This is a list of glob patterns for texture filenames "
"(excluding the directory part of the filename, but including "
"the extension); for instance, 'digits_*.png'. Any texture "
"filenames that match one of t... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"""End-to-end tests for traffic control library."""
import os
import re
import sys
import unittest
import traffic_control
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('tf_auth', '0008_auto_20170417_0012'),
]
operations = [
migrations.RunPython(forwards, migrations.RunPython.noop)
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
scan_array = scan_nii.get_fdata()
scan_array[scan_array <= min_] = min_
scan_array[scan_array >= max_] = max_
tmp = nib.Nifti1Image(scan_array, affine = scan_nii.affine)
os.system(f"rm {scan_id}")
nib.save(tmp, scan_id)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
for key in rooms[roomIdx]:
if not seen[key]:
seen[key] = True
stack.append(key)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include "callback.h"
int main()
{
int i = 0;
omp_set_num_threads(2);
#pragma omp parallel for
for (i = 0; i < 10; i++)
{
printf("Hello World #%d\n", i);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
A DynamoDB table has an ItemCount value, but it is only updated every six hours.
To verify this DAG worked, we will scan the table and count the items manually.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
title=random.choice(NEGATIVE_REPLIES),
description=(
"Your display name is too long to be catified! "
"Please change it to be under 26 characters."
),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
isEnabled=False
)
),
mlbRuntime=ElastigroupThirdPartiesIntegrationMlbRuntime(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@pytest.mark.parametrize("value", (("",), (1, 2)))
def test_get_netcdf_metadata_number_with_warning(value):
"""Tests computing the unpacked data type for a NetCDF variable."""
key = "name"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* limitations under the License.
*/
#include "WriteChecker.h"
#include <activemq/transport/inactivity/InactivityMonitor.h>
#include <decaf/lang/System.h>
#include <decaf/lang/exceptions/NullPointerException.h>
using namespace activemq;
using namespace activemq::transport;
using namespace activemq::transport::inac... | ise-uiuc/Magicoder-OSS-Instruct-75K |
name="openne",
url="https://github.com/thunlp/OpenNE",
license="MIT",
author="THUNLP",
description="Open Source Network Embedding toolkit",
packages=find_packages(),
long_description=open("README.md").read(),
zip_safe=False,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Mail\OrderShipped;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;
class OrderController extends Controller
{
/**
* Ship the given order.
*
* @param Request $request
* @param int $orderId
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$('#newsletter-register-button').prop('disabled', true);
$.post('{{route('email.register')}}', data, function(result){
$('#newsletter-register-button').prop('disabled', false);
$(that).find('.newsletter-message').remove();
if(result.status == 'er... | ise-uiuc/Magicoder-OSS-Instruct-75K |
package org.dreamwork.config;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
* Created by IntelliJ IDEA.
* User: seth.yang
* Date: 12-3-29
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TVisit: VisitMap<TNode>,
{
type Item = TNode;
fn walk_next(&mut self, context: TGraph) -> Option<Self::Item> {
self.next(context)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return cm_response
@admin_cm_log(log=True, pack=False)
@cm_request
def multiple_change_quota(cm_response, **data):
"""
Method changes quota as described by \c data.
@clmview_admin_cm
@cm_request_transparent{user.multiple_change_quota()}
"""
return cm_response
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from robot.libraries.BuiltIn import BuiltIn
import json
class VariablesBuiltIn:
@staticmethod
def getVariables():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return RepositoryReference.for_repo_obj(repository)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func test_loadCommentsCompletion_doesNotAlterCurrentRenderingStateOnError() {
let comment0 = makeComment(message: "a message", username: "a username")
let (sut, loader) = makeSUT()
sut.loadViewIfNeeded()
loader.completeCommentsLoading(with: [comment0], at: 0)
assertT... | ise-uiuc/Magicoder-OSS-Instruct-75K |
';
$buffer .= $indent . ' <div class="pt-3 d-flex justify-content-between">
';
$buffer .= $indent . ' <div class="w-25 bg-pulse-grey" style="height: 35px"></div>
';
$buffer .= $indent . ' <div class="w-25 bg-pulse-grey" style="height: 35px"></div>
';
$buffer ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
int main() {
vector<int> coins;
coins.push_back(1);
coins.push_back(2);
coins.push_back(5);
int amount = 3;
vector<int> dp(amount + 1, INT_MAX);
// d[0] - 0
dp[0] = 0;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Migration(migrations.Migration):
dependencies = [
('movies', '0010_actors_moved'),
('person', '0003_refactoring_movie_person_m2m_rels'),
]
operations = [
migrations.AddField(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'W':None
}
self.fitted_ = False
def _init_params(self, X):
"""_init_params
Initialize the network parameters according to the dataset
Parameters
----------
X: size (n,p) with n the number of samples and p the number of features
"... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
<div class="col-md-12">
<div class="row justify-content-center"><h1>edit the post</h1></div>
{{-- <div class="row justify-content-center align-items-center"> --}}
<form method="post" action="{{ route('categories.update',$categories->id)}}">... | ise-uiuc/Magicoder-OSS-Instruct-75K |
extract_known_predicates(os.path.join(output_dir, 'features.pckl'), workdir)
print('Generating the model for unknown predicates********************************')
output_dir = os.path.join(workdir, 'unknown_preds')
work_with_one_model(cleared_corpus_path, ling_data, output_dir)
if __name__ == "__... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "string.h"
#include "TimeImp.hpp"
#include "CivilianTimeImp.hpp"
CivilianTimeImp::CivilianTimeImp(int hr, int min, int pm) : TimeImp(hr, min)
{
if (pm)
strcpy(whichM_, " PM");
else
strcpy(whichM_, " AM");
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo " No Reset"
;;
esac
echo "::: Remote device memory information :::"
(
set -x #echo on
ampy --port $PORT run $KIOTA/util/mcu_mem_info.py
)
echo "::: Done :::"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('api', '0022_auto_20190823_1553'),
]
operations = [
migrations.AlterField(
model_name='loan',
name='loan_period',
field=models.FloatField(default=0.0),
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
let id = gl.create_vertex_array().unwrap();
let model = TriangleSurface { gl: gl.clone(), id, count: indices.len() };
model.bind();
let index_buffer = buffer::ElementBuffer::new(&gl)?;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
touch $LOGGER
LOG_MODE="stdout"
#LOG_MODE="discret"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
[HttpPost]
public async System.Threading.Tasks.Task<IActionResult> Login([FromForm]LoginInfoModel model, [FromQuery]string callback)
{
var err = await userService.LoginAsync(null, model.Username, model.Password, callback);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# def patch(self):
# cache = os.path.join(self.directory, 'config.cache')
# text = '''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import android.view.GestureDetector;
import android.view.MotionEvent;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>objects/CSCG/_2d/mesh/do/find.py
from screws.freeze.main import FrozenOnly
from root.config.main import sIze
import numpy as np
class _2dCSCG_Mesh_DO_FIND(FrozenOnly):
"""A wrapper of all find methods for mesh.do."""
def __init__(self, meshDO):
self._DO_ = meshDO
self._mesh_ = mesh... | ise-uiuc/Magicoder-OSS-Instruct-75K |
flexGrow: 1,
},
padding: {
padding: theme.spacing(3),
},
demo2: {
backgroundColor: 'transparent',
},
}));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@staticmethod
def matrixbandpart(args: list, node):
assert len(args) == 3
tmp = packtorange(args[:1], node)
return Range(left=min(tmp.left, 0), right=max(tmp.right, 0))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
PhysicsSystem::MaterialInfo info;
info.mass = 10.0f;
info.restitution = 0.05f;
info.angular_damping = 0.3f;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self):
message = "商品链接无效, 请检查后重试"
super().__init__(message)
class InvalidInputTime(Exception):
def __init__(self):
message = "抢购时间无效, 请按照格式重新输入"
super().__init__(message)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
FileAllowed(allowed_format, f"Wrong format! Allowed: {allowed_format}.")
]
)
submit = SubmitField("Upload Avatar")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
End of preview. Expand in Data Studio
oss-code-seeds
A combined dataset of open-source code snippets (seeds) curated from multiple high-quality sources. The intended use is to serve as seeds for generating coding instruction-response pairs via the OSS-Instruct approach — where a model is prompted with a real code snippet to produce a grounded, diverse coding problem and its solution.
Columns
seed: A raw code snippet from open-source software (OSS), serving as the seedsource: The original HuggingFace dataset the seed was taken from
Sources
| Dataset | Description |
|---|---|
ise-uiuc/Magicoder-OSS-Instruct-75K |
Seeds used to generate the Magicoder dataset via GPT-3.5, multi-language GitHub snippets |
bigcode/self-oss-instruct-sc2-concepts |
Filtered Python functions from The Stack V1 used in the SelfCodeAlign pipeline |
Intended Use
Feed the seed column into your own model API to generate coding problems and
solutions, effectively replicating or improving upon the OSS-Instruct pipeline
with your own model.
from datasets import load_dataset
ds = load_dataset("PursuitOfDataScience/oss-code-seeds", split="train")
for row in ds:
seed = row["seed"]
source = row["source"]
# prompt your model with seed to generate a problem + solution
- Downloads last month
- 12