seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
y_out =[]
for i in range(10):
if pred_out[0][i]==classes[i]:
y_out.append(i)
for x in range(10-len(y_out)):
y_out.append('')
writer.writerow(answer+y_out)
csvfile.close()
if __name__ == "__main__":
main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public void setMonths(Month[] months) {
this.months = months;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
e5 = G.add_edge(1, 4)
c1[e1] = 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Base.query = db_session.query_property()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.WebBrowserView.Navigate(new Uri("https://www.bing.com").AbsoluteUri);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var result = await _handler.Handle(command, CancellationToken.None);
result.Should().Be(1234);
}
[Fact]
public async Task UpdateMiningPool_Success()
{
const ulong id = 99ul;
var pool = new MiningPool(id, 2, "PGZPZpB4iW4LHVEPMKehXfJ6u1yzNPDw7u", 3, 4, 5, 6, 7);
var command = new PersistMiningPoolCommand(pool);
_dbContext.Setup(db => db.ExecuteScalarAsync<ulong>(It.IsAny<DatabaseQuery>()))
.Returns(() => Task.FromResult(id));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// temporary logout before
$routes->post('logout', 'Admin\AuthController::logout',['as' => 'logout.process']);
$routes->get('', 'HomeController::admin');
$routes->group( '',['filter' => 'auth'], function($routes)
{
$routes->get('dashboard', 'Admin\DashboardController::dashboard',['as' => 'admin.dashboard']);
// profile pengguna login
$routes->get('pengguna/profile', 'Admin\UserController::profile', ['as' => 'pengguna.profile']);
$routes->get('pengguna/profile/edit', 'Admin\UserController::profileEdit', ['as' => 'pengguna.profile.edit']);
// Kategori Route
$routes->get('kategori', 'Admin\KategoriController::index', ['as' => 'kategori.index']);
$routes->post('kategori', 'Admin\KategoriController::store', ['as' => 'kategori.store']);
$routes->delete('kategori', 'Admin\KategoriController::delete', ['as' => 'kategori.delete']);
$routes->put('kategori', 'Admin\KategoriController::update', ['as' => 'kategori.update']);
$routes->get('kategori/create', 'Admin\KategoriController::create', ['as' => 'kategori.create']);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// RUN: not %target-swift-frontend %s -emit-ir
protocol P{class a}protocol A:P
extension P.a:A
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import TreeRouteManager from './route/RouteManager';
type IRouteAndConfig<Component> = Omit<RouteInfo<Component>, 'index'>;
interface DriverPayload {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
struct Jar(RefCell<ZipArchive<BufReader<File>>>);
impl Jar {
pub fn open(path: impl AsRef<Path>) -> Result<Self> {
Ok(Self(RefCell::new(ZipArchive::new(BufReader::new(File::open(path)?))?)))
}
pub fn read_class(&self, path: &str) -> Result<Class> {
let mut zip = self.0.borrow_mut();
let mut entry = zip.by_name(&format!("{}.class", path))?;
Class::read(&mut entry)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'expression': '.',
}
metrad = {
'simulation': np.linspace(a, b, 200),
'expression': np.linspace(a, b, 50),
}
dismodprm = {
'RDD': {'d': 5e-5},
'RRDD-E': {'d': 5e-5, 's': 200, 'v': 'E'},
'RRDD-R': {'d': 5e-5, 's': 200, 'v': 'R'},
}
dismodfun = {
'RDD': 'RDD',
'RRDD-E': 'RRDD',
'RRDD-R': 'RRDD',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public string UrlGrupo
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
LoadBase
)
from geojson_modelica_translator.modelica.input_parser import PackageParser
from geojson_modelica_translator.utils import ModelicaPath, simple_uuid
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//SELECT data types (indirectly) referencing the current type as a member of the select list
members.insert(SDAI.STRING(sMARKER_SELECT.typeName)) // -> Self
return members
}
//VALUE COMPARISON SUPPORT
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# IGNORE_BELOW_SEVERITY str [OPTIONAL]
# vulnerabilities severities to ignore, by CVE severity level
# aka if set to medium, would ignore medium/low/none/na
# available levels: critical, high, medium, low, none, na
#
IGNORE_BELOW_SEVERITY = "..."
# IGNORED_VULNERABILITIES list [OPTIONAL]
# vulnerabilities to ignore, by CVE code or by name
# feature only for use when vulnerability mitigated or on track to be fixed
#
IGNORED_VULNERABILITIES = ["..."]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Datarecorder(FrozenClass):
"""Set up and use the data recorder of a PI device."""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
//-------------------------------------------------------------------------------------------------------------------------
// Form Builder
public function form($title, $action, $method, $user)
{
return view('app.user.form', compact('title', 'action', 'method', 'user'));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
current_year = int(datetime.utcnow().strftime('%Y'))
current_week = int(datetime.utcnow().strftime('%W'))
in_user_range = True
while in_user_range:
query_result = self.moves_query(
path='/user/storyline/daily/{0}-W{1}?trackPoints=true'.format(
current_year,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public CheckpointCell(Object value, boolean checked) {
this.value = value;
this.checked = checked;
}
/**
* Get value of the cell
*
* @return value of the cell
*/
public Object getValue() {
return value;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sequence_output = sequence_output * (self.model_dim ** -0.5)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo -e '\nshare'
pipenv run python pk/share.py -s ${URL} -u ${USERNAME} -p ${PW} -f 'id:eq:P3jJH5Tu5VC' -t dataelement -a readonly -g 'name:like:Admin' readwrite -g 'name:like:Research' readwrite
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//web
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Stops playback and any ongoing downloads.
func stop()
/// Seeks to a specific time. If the seek operation fails this call should throw an error.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
async def subscriber():
client = mqttools.Client('localhost', 1883)
await client.start()
# Subscribe to two topics in parallel.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "gtest/gtest.h"
int main(int argc, char* argv[])
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
border_bottom = border_top
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# calculate accuracy
predictions = output.argmax(dim=1, keepdim=True).squeeze()
correct = (predictions == target).sum().item()
accuracy = correct / (len(target))
# backward + step
loss.backward()
optimizer.step()
lr_scheduler.step()
# tqdm
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return w[-1], sens[-1]
if __name__ == "__main__":
| ise-uiuc/Magicoder-OSS-Instruct-75K |
generate_shell_completions!(app, Bash, Zsh, Fish);
Ok(())
}
fn main() -> Result<()> {
println!("cargo:rerun-if-env-changed=SBF_GEN_COMPLETIONS");
if env::var("SBF_GEN_COMPLETIONS").is_ok() {
generate_completions()?;
}
Ok(())
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public List<Lancamentos> BuscarPorCategoria(int categoria)
{
using (OpFlixContext ctx = new OpFlixContext())
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class MessageHandler(Request):
def get(self):
redis_manager = get_global_conf("redis")
value = redis_manager.get_value()
result = {
"status": 0,
"desc": "ok",
"data": value
}
return self.response_as_json(result)
def post(self):
print(self.get_http_request_message())
from_user = self.get_parameter("from")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@register_policy
class ProhibitAutocmdWithNoGroup(AbstractPolicy):
def __init__(self):
super(ProhibitAutocmdWithNoGroup, self).__init__()
self.description = 'autocmd should execute in augroup or execute with a group'
self.reference = ':help :autocmd'
self.level = Level.WARNING
self.is_inside_of_augroup = False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
});
it('should return homepage path when category passed as \'null\'', () => {
const result = formatCategoryLink(null);
expect(result).toEqual('/');
});
describe('with default storeCode set to \'de\'', () => {
beforeEach(() => {
(currentStoreView as jest.Mock).mockImplementation(() => ({ storeCode: 'de' }));
});
it('should return formatted category url_path', () => {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Add new model to store
*
* @param key appropriate to the model
* @param model to add
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public void setId(BigInteger id) {
this.id = id;
}
public String getTableName() {
return tableName;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public Created(HttpHeaders httpHeaders, byte[] dataBytes, bool includeBody = true)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// let failures = expectFailure { $0.that(Foo()).key(\.name, "name") { $0.isEqualTo("Foo") }}
// guard failures.count == 1, let failure = failures.first else {
// XCTFail("Expected 1 failure, but found \(failures)")
// return
// }
// XCTAssertTrue(failure.message.contains("key: name"))
// }
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import pylab
import pandas as pd
import os
def model(typem=1, base=False, nc=1, window_length=None):
init = 1
if base:
init = 5
if typem == 1:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Solution:
def removeDuplicates(self, nums: List[int]) -> int:
if len(nums) == 0: return 0
i = 0
for num in nums:
if i < 2 or num > nums[i-2]:
nums[i] = num
i += 1
return i
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import Foundation
#if os(iOS) || os(tvOS)
public extension NSObject {
var className: String {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.dueDateSet.emit($event);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// rustfmt-wrap_comments: true
/// This may panic if:
/// - there are fewer than `max_header_bytes` bytes preceding the body
/// - there are fewer than `max_footer_bytes` bytes following the body
/// - the sum of the body bytes and post-body bytes is less than the sum of
/// `min_body_and_padding_bytes` and `max_footer_bytes` (in other words, the
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/*******************************************************************************
* Copyright 2012 EMBL-EBI, Hinxton outstation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php endforeach;?>
</table>
<?php if($WishFanbenModel['pagination']):?>
<div>
<div id="wish-goods-list-pager" style="clear:both;float:left;width:100%;">
<div class="btn-group" style="width: 49.6%;text-align: right;">
<?=\eagle\widgets\ELinkPager::widget(['isAjax'=>true , 'pagination' => $WishFanbenModel['pagination'],'options'=>['class'=>'pagination']]);?>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
lst.log()
break
| ise-uiuc/Magicoder-OSS-Instruct-75K |
line, = plt.plot(x, s, lw=2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
max(p_first.Y, p_second.Y),
0)
return p_left, p_right
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
result.setResponseMessage(message);
result.setReturnValue(serviceReturnValue);
return result;
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
protected ServiceResult createServiceResult(Integer responseCode, String message) {
try {
ServiceResult result = null;
if (responseCode != null) {
System.out.println(message + "=========================");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return true
}
fileprivate func initScreen() {
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = TourReviewNavigationController()
window?.makeKeyAndVisible()
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if self.data_complete():
conv.set_state('{relation_name}.available')
@hook('{requires:bind-rndc}-relation-{broken,departed}')
def departed_or_broken(self):
conv = self.conversation()
conv.remove_state('{relation_name}.connected')
conv.remove_state('{relation_name}.available')
def data_complete(self):
"""Check if all information for a RNDC connection has been sent
| ise-uiuc/Magicoder-OSS-Instruct-75K |
($1, $2, $3);
""", show_id, instance.kitsu_id, instance.slug)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def announce_all():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <returns></returns>
Task<OssObject> CallbackAsync(HttpRequest request);
/// <summary>
/// 流式下载(如果要下载的文件太大,或者一次性下载耗时太长,您可以通过流式下载,一次处理部分内容,直到完成文件的下载)
/// </summary>
/// <param name="objectName"></param>
/// <param name="filename">本地文件存储</param>
/// <returns></returns>
Task DownloadAsync(string objectName, string filename);
/// <summary>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int FireStepSerial::executeCore(const std::string &request, std::string &response) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Function to call to draw the histogram must have signature:
ret = plot_func(ax, edges, top, bottoms=bottoms,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use Selective\AudioType\AudioType;
/**
* Test.
*/
class AudioTypeTest extends TestCase
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from apostle.queue import Queue
def deliver(template_id, options):
if not template_id:
raise exceptions.ValidationError("No template id provided")
if not options and not "email" in options:
raise exceptions.ValidationError("No email address provided")
queue = get_queue()
queue.add(Mail(template_id, options))
queue.deliver()
def get_queue():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'link_layer_address': '0000.0000.0000',
'neighbor_state': 'REACH',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name='first_name', type='STR',
defaults={'label': 'first name', 'description': 'Used by the Office 365 blueprints', 'show_as_attribute': True})
CustomField.objects.get_or_create(
name='last_name', type='STR',
defaults={'label': 'last name', 'description': 'Used by the Office 365 blueprints', 'show_as_attribute': True}
)
CustomField.objects.get_or_create(
name='userPrincipalName', type='STR',
defaults={'label': '<NAME>', 'description': 'Used by the Office 365 blueprints',
'show_as_attribute': True}
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
operador_nome: string;
operador_rg: string;
operador_cnpjcpf: string;
operador_nit: string;
operador_email: string;
operador_datalancamento: Date;
operador_telefonefixo: string;
operador_telefonemovel: string;
operador_logradouro: string;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Feed(models.Model):
user = models.ForeignKey('auth.User', related_name='actions',
on_delete=models.CASCADE, db_index=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.start()
@property
def used_memory(self):
return mean(self.__used_memory)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ExampleTest extends TestCase
{
use WithoutMiddleware;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}),
}),
MyDynamicRootModule.register({ value: givenDefaultValue }),
MyDynamicRootModule.forFeature(givenName1),
MyDynamicRootModule.forFeature(),
],
}).compile();
const defaultFeature = appModule.get(getMyFeatureInjectionToken());
const name1Feature = appModule.get(getMyFeatureInjectionToken(givenName1));
expect(defaultFeature).toBe('featureProvider[default]: {moduleProvider[default]: {value: defaultValue}, name: undefined}');
expect(name1Feature).toBe('featureProvider[name1]: {moduleProvider[name1]: {value: name1Value}, name: name1}');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise MatrixRankTooSmallException()
else:
print(("There are fewer nonzero features or barcodes ({}) than requested "
"PCA components ({}); reducing the number of components.").format(likely_matrix_rank, n_pca_components))
n_pca_components = likely_matrix_rank
if (likely_matrix_rank * 0.5) <= float(n_pca_components):
print("Requested number of PCA components is large relative to the matrix size, an exact approach to matrix factorization may be faster.")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
l=5
pca = PCA()
pca.fit_transform(X_train)
#print(pca.explained_variance_ratio_.round(3))
np.cumsum(pca.explained_variance_ratio_).round(3)
def q_c(X,y):
# Perform PCA for each class separately, and plot for each class the proportion of variance explained vs the number of components ordered from the first PC until the last.
# What number of components would you take for further analysis?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def listify_mat(matrix):
matrix = np.array(matrix).astype(str)
if len(matrix.shape) > 1:
matrix_list = []
for row in matrix:
try:
matrix_list.append(list(row))
except:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ESP_IP = '192.168.7.1'
PORT = 10000
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print('try to connect')
sock.connect((ESP_IP, PORT))
print('connected...')
data = sock.recv(255)
print('msg: ', data.decode())
sock.close()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$table->string('jawaban_benar',1)->comment('Isian Pilihan A/B/C/D/E');
$table->string('pertanyaan_gambar',1)->default('N');
$table->string('created_by')->nullable();
$table->text('updated_by')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private struct Keys {
static let isAnimatedOffset = "isAnimatedOffset"
}
static var isAnimatedOffset: Bool {
get {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
test = list(map(int, input().split()))
print(fill1(test))
print(fill2(test))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@operation
@with_neutron_client
def delete(neutron_client, **kwargs):
delete_sg(neutron_client)
@operation
@with_neutron_client
def creation_validation(neutron_client, **kwargs):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import {RtcBaseService} from '@service/rtc/rtc-base.service';
import {ActivatedRoute} from '@angular/router';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import os
from config.base.base_config import BaseConfig
| ise-uiuc/Magicoder-OSS-Instruct-75K |
max_jobs: Maximum number of jobs the HyperparameterTuner triggers
max_parallel_jobs: Maximum number of parallel jobs the HyperparameterTuner trigger in one batch.
min_c: minimum c value configure as continuous parameter for hyperparameter tuning process
max_c: maximum c value configure as continuous parameter for hyperparameter tuning process
min_gamma: minimum gamma value configure as continuous parameter for hyperparameter tuning process
max_gamma: maximum gamma value configure as continuous parameter for hyperparameter tuning process
gamma_scaling_type: scaling type used in the Hyperparameter tuning process for gamma
"""
sagemaker_session = sagemaker.session.Session()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<a href="">
<i className={`fa fa-${props.icon}`}></i>
{props.label}
<i className="fa fa-angle-left pull-right"></i>
</a>
<ul className="treeview-menu">{props.children}</ul>
</li>
);
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @author "<NAME>"
* @created 3/11/18
* @link https://www.npmjs.com/package/iron-cache
*/
import { createClient } from 'iron-cache'
import Promise from 'bluebird'
import { default as _ } from 'lodash/index'
import AbstractCache from '../model/AbstractCache'
import CacheOpts from '../model/CacheOpts'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <summary>
/// Determine if a person is willing to dance
/// </summary>
/// <code>
/// var p = new Person();
/// var willingnessToDance = p.GetWillingnessToDance();
/// </code>
/// <returns></returns>
public bool GetWillingnessToDance()
{
return true;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (0 < nChar)
{
for (i = 0; i < g_cRfc1766; i++)
{
if (MimeRfc1766[i].LcId == Locale)
break;
}
if (i < g_cRfc1766)
{
MLStrCpyNW(pwszRfc1766, MimeRfc1766[i].szRfc1766, nChar);
hr = S_OK;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</html>
REJECT;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
If true errors will not stop bot working, by default `False`
httpSession : requests.Session, optional
HTTP Session from module `requests`, if `None` then standart session will be used, by default `None`
apiSession : VkAPI.ApiSession, optional
API Session from sub-module `_vkapi`, if `None` then API Session will be created by received token, by default `None`
longPollServer : LongPollManager.LongPollServer, optional
Long Poll Server from sub-module `longpoll`, if `None` then Long Poll Server will be created by received token and group ID, `wait` will be `30`, by default `None`
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .helpers import Delta, batch_flatten, batch_unflatten, prod, weights_init
__all__ = ["CondDist", "get_marginalDist"]
### CONDITIONAL DISTRIBUTIONS ###
| ise-uiuc/Magicoder-OSS-Instruct-75K |
move = click.prompt(
"Please pick a position id number for you next move", type=int
)
# TODO add some validation here
game_complete = tictac_class.take_turn(position_id=move)
else:
# selects a random position ID from the available moves
random_selection_id = randrange(len(available_moves))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# BYOL
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if experiment:
experiment.log_parameters(
vars(args), prefix="Device {} :: ".format(args.device_id)
)
# Setup task, e.g., translation, language modeling, etc.
task = tasks.setup_task(args)
# Load valid dataset (we load training data below, based on the latest checkpoint)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@{
Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
ViewBag.Title = "Roles";
}
<h2>@ViewBag.Title</h2>
<p>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
method: 'POST',
})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Roman_int r(Roman_int::V);
cout <<"Roman "<< r <<" equels "<< r.as_int()<<" "<<endl;
Roman_int rr;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.maxCharCount = maxCharCount
self.minCharCount = minCharCount
self.notInTopTen = notInTopTen
self.uniqueCharCount = uniqueCharCount
self.fromGivenCharCount = fromGivenCharCount
self.fromGivenChars = fromGivenChars
self.containVirginsMilk = containVirginsMilk
}
public func getUppercaseCount() -> Int {
return uppercaseCount
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public partial class hkbHandIkModifier : hkbModifier
| ise-uiuc/Magicoder-OSS-Instruct-75K |
VALUES
(%s, %s, %s, %s);
""", [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
page.register_page(resources.dashboard, Dashboard)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
hour = datetime.datetime.minute
hour = datetime.datetime.second
extend = "AM"
if hour > 12:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// ------------------------------------------------------------------------------
import { ITypeFilter } from "./ITypeFilter";
/**
* Type matcher interface
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ExcuseController extends Controller
{
public function addexcuse(Request $request)
{
for($i=0;$i<sizeof($request->excuses);$i++)
{
$excuse = new Excuse();
$excuse->excuseDate = $request->excuses[$i]['excuseDate'];
$excuse->cancelDate = $request->excuses[$i]['cancelDate'];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
O 'fullname' é a representação 'string' do próprio objeto.
"""
return str(self)
class Meta:
verbose_name = 'Usuário'
verbose_name_plural = 'Usuários'
class PasswordReset(models.Model):
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Conference.seatsAvailable <= 5,
Conference.seatsAvailable > 0)) \
.fetch(projection=[Conference.name])
if confs:
# If there are almost sold out conferences,
# format announcement and set it in memcache
announcement = '%s %s' % (
'Last chance to attend! The following conferences \
are nearly sold out:',', '.join(conf.name \
for conf in confs))
memcache.set(MEMCACHE_ANNOUNCEMENTS_KEY, announcement)
else:
# If there are no sold out conferences,
# delete the memcache announcements entry
announcement = ""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# <NAME> <<EMAIL>>
#
# Processes output of pcap-extract-traffic.sh and dumps raw binary contained
# in the traffic for further processing.
import fileinput
class TcpParser(object):
"""Parse tshark output and reassemble TCP data of same stream ids"""
def __init__(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_components(self) -> List[Component]:
"""Returns the components in the device
Returns:
| 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.