seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
def calculate_activity_portfolio(args, report_data=None):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#global course_count
#global section_count
departments = get_department_list()
courses = []
for department in departments:
print('Processing ' + department)
courses += scrape(department)
return courses
# goes through the listings for this department
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
*
* @export
* @enum {string}
*/
export enum TaskPriority {
Lowest = 0,
BelowNormal = 1,
Normal = 2,
AboveNormal = 3,
Highest = 4
}
export function TaskPriorityFromJSON(json: any): TaskPriority {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .problem import Pairsum as Problem
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"message",
timeout=player.data['duration'],
check=lambda message: self.similar(message.content.lower(), title) or (message.content.lower() == "forcestop" and message.author.id == ctx.author.id)
)
except asyncio.TimeoutError:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
i) indir=$OPTARG;;
o) outdir=$OPTARG;;
?) exit 1;;
esac
done
shift $((OPTIND-1))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Example:
@strategy('id')
class FindById:
...
Strategy Classes are used to build Elements Objects.
Arguments:
strategy_name (str): Name of the strategy to be registered.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else
projectiles.front()->update(dt);
world->dirty();
}
void ProjectileQueue::draw(Renderer& renderer)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
return string.Empty;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Led Start for a second with 50% power")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<span class="badge">{{ $task->order or '0' }}</span>
<span class="task-title-sp">{{ $task->name }}</span>
<div class="pull-right hidden-phone">
<button class="btn btn-primary btn-xs fa fa-pencil edit" data-toggle="modal" data-target="#myModal" data-id="{{ $task->id }}" data-name="{{ $task->name }}" data-task="{{ $task->task }}"></button>
<a href="{{ url('/recipes/', [$projectId,'delTask', $task->id]) }}" class="btn btn-danger btn-xs fa fa-trash-o"></a>
</div>
</div>
</li>
@endforeach
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import os
from BeautifulReport import BeautifulReport
report_dir = os.path.expanduser("~/")
if __name__ == '__main__':
test_suite = unittest.defaultTestLoader.discover('./tests', pattern='test_demo*.py')
result = BeautifulReport(test_suite)
result.report(filename='Test Report', description='report', report_dir=report_dir, theme='theme_default')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(nmin)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// construct fractional multiplier for specified number of digits.
//**************************************************************************
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# (http://www.pyimagesearch.com)
# USAGE
# BE SURE TO INSTALL 'imutils' PRIOR TO EXECUTING THIS COMMAND
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// 应用套件id
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { TransactionsContext } from '../contexts/TransactionsContext';
export function useTransactions() {
return useContext(TransactionsContext);
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
use dome_cloomnik::{register_modules, Context, HookResult, WrenVM};
#[no_mangle]
#[allow(non_snake_case)]
extern "C" fn PLUGIN_onInit(get_api: *mut libc::c_void, ctx: *mut libc::c_void) -> libc::c_int {
unsafe {
dome_cloomnik::init_plugin(
get_api,
ctx,
dome_cloomnik::Hooks {
on_init: Some(on_init),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*property_value = value.clone()
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "Minuit/MnFcn.h"
#include "Minuit/MinimumSeed.h"
#include "Minuit/MnStrategy.h"
#include "Minuit/InitialGradientCalculator.h"
#include "Minuit/VariableMetricEDMEstimator.h"
MinimumSeed SimplexSeedGenerator::operator()(const MnFcn& fcn, const GradientCalculator&, const MnUserParameterState& st, const MnStrategy& stra) const {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "colearn config selected"
REGISTRY="gcr.io/fetch-ai-colearn"
DOCKERFILE="Dockerfile.dev"
echo "Registry to upload is $REGISTRY"
;;
*)
echo "Wrong env selected. Try again"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
applyBackgroundBrightness(true, idleBgDim.Value);
}
private void applyTrackAdjustments()
{
//modRate
modRateAdjust.SpeedChange.Value = musicSpeed.Value;
CurrentTrack.ResetSpeedAdjustments();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_index_view_status_code(self):
self.assertEquals(self.response.status_code, 200)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"[[request_enums]]",
&self.get_request_enums(&store.requests)?,
);
output = output.replace("[[requests]]", &self.get_requests(&store.requests)?);
output = output.replace("[[beacons]]", &self.get_beacons(&store.beacons)?);
helpers::fs::write(dest, output, true)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
plt.show()
# 正确的显示方式
img_rgb = cv2.cvtColor(img_color, cv2.COLOR_BGR2RGB)
plt.title('Correct Display after converting with cv2.BGR2RGB')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_LOGGER = logging.getLogger(__name__)
ID = "id"
ENTRY_ID = "entry_id"
TYPE = "type"
@callback
def async_register_api(hass: HomeAssistant) -> None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
style: Style,
side: Side,
kind: PlayerKind,
num_disk: u32,
}
#[derive(Copy, Clone, Debug, Default, PartialEq, WidgetStyle)]
pub struct Style {
#[conrod(default = "30")]
pub player_name_font_size: Option<FontSize>,
#[conrod(default = "60")]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
isInline = true,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#cd dist/main
#./main | ise-uiuc/Magicoder-OSS-Instruct-75K |
return self._f(self._i.value())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// TODO Auto-generated method stub
BeliefBase beliefBase = new BeliefBase () ;
Scanner scan = new Scanner(System .in ) ;
boolean loop = true ;
while( loop ) {
printMenu() ;
try {
String choice = scan. nextLine() ;
switch (choice ) {
case "1" :
System.out.println("Feed me belief : ") ;
String beliefString = scan.nextLine() ;
System.out.println("order (between 1 to 10 ) : ") ;
String order = scan.nextLine() ;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
boolean firstInstall = settings.getBoolean(FIRST_INSTALL, true);
if (firstInstall) {
try {
Dialogs.displayIntroduction(this);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
var request: URLRequest = URLRequest(url: url)
request.httpMethod = "PUT"
request.httpBody = data
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("application/json; charset=utf-8", forHTTPHeaderField: "Accept")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
| ise-uiuc/Magicoder-OSS-Instruct-75K |
my_uname=`uname`
if [ ${my_uname} = "Darwin" ]; then
LIBTOOLIZE=glibtoolize
fi
root=`dirname $0`
cd $root
aclocal -I ./m4
autoheader
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
extension NSMutableAttributedString {
func applyAttributes(_ attributes: [NSAttributedString.Key: Any], toSubstring substring: String) -> NSMutableAttributedString {
let range = (string as NSString).range(of: substring)
self.beginEditing()
self.addAttributes(attributes, range: range)
self.endEditing()
return self
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except Exception as e:
return await ctx.send(default.traceback_maker(e))
await ctx.send(f"Unloaded extension **{filename}.py**")
os.remove('./cogs/' + filename + ".py")
open('./cogs/' + filename + ".py", 'wb').write(r.content)
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<link rel="stylesheet" href="{{ asset('porto/css/theme-shop.css') }}">
<!-- Current Page CSS -->
<link rel="stylesheet" href="{{ asset('porto/vendor/rs-plugin/css/settings.css') }}">
<link rel="stylesheet" href="{{ asset('porto/vendor/rs-plugin/css/layers.css') }}">
<link rel="stylesheet" href="{{ asset('porto/vendor/rs-plugin/css/navigation.css') }}">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use alloc::boxed::Box;
#[cfg(not(feature = "no_std"))]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#install XFCE4
sudo apt-get install xubuntu-desktop
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class CashmemoDetail implements Serializable {
private static final long serialVersionUID = -238431730120848753L;
private BigInteger orderid;
private String cashmemono;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""A base class for all encounter state objects."""
def doTurn(self, encounter):
"""
Do the next action for this encounter state.
encounter - Encounter object.
Returns An EncounterState to say the next state to go to or END_ENCOUNTER to end the whole thing.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
standard_kernel_tests(k)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import sys
from flask import Flask
from flask_caching import Cache
# instantiate the application
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cdk synth OpenTargets1911RodaTemplate
cdk synth OpenTargets2006RodaTemplate
cdk synth Chembl25RodaTemplate
cdk synth Chembl27RodaTemplate
cdk synth BindingDbRodaTemplate
cdk synth GTExRodaTemplate8
cdk synth ClinvarSummaryVariantTemplate
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LifeCycleWorkflowBackend.Settings.OperationSettings.OperationType.OperationTypeComponents
{
public class WipReportsSettings
{
[JsonProperty]
public string WorksheetName { get; private set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
callback = ('api.vm.base.tasks.vm_deploy_cb', {'vm_uuid': vm.uuid})
return execute(ERIGONES_TASK_USER, None, cmd, meta=meta, lock=lock, callback=callback,
queue=vm.node.fast_queue, nolog=True, ping_worker=False, check_user_tasks=False)
def vm_reset(vm):
"""
Internal API call used for VM reboots in emergency situations.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "minikube-cluster-network test passed!"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
options={
'db_table': 'bns_wbi_landscape_gender',
'managed': False,
},
),
migrations.CreateModel(
name='WBIPerLandscapeHHType',
fields=[
('id', models.BigIntegerField(primary_key=True, serialize=False)),
('dataset_year', models.IntegerField(blank=True, null=True)),
('hh_type', models.TextField(blank=True, null=True)),
('landscape', models.TextField(blank=True, null=True)),
('avg_wbi', models.DecimalField(blank=True, decimal_places=6, max_digits=29, null=True)),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "Find and replace in current directory!"
echo "File pattern to look for? (eg '*.txt')"
read filepattern
echo "Existing string?"
read existing
echo "Replacement string?"
read replacement
echo "Replacing all occurences of $existing with $replacement in files matching $filepattern"
find . -type f -name $filepattern -print0 | xargs -0 sed -i'' -e "s/$existing/$replacement/g"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let interruptHandler: InterruptHandler
init(_ file: AbsolutePath) throws {
interruptHandler = try InterruptHandler {
print("Hello from handler!")
SPMLibc.exit(0)
}
try localFileSystem.writeFileContents(file, bytes: ByteString())
}
func run() {
// Block.
dispatchMain()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Generated by Django 3.0.7 on 2020-07-03 18:01
from django.db import migrations, models
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.junit.Test;
import java.io.File;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class = "box2">
<h4 id = "Questions">Do you provide any food?</h4>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
await borg.send_message(event.chat_id, "`Lol Try .help`")
await asyncio.sleep(5)
else:
await event.edit(string)
elif input_str:
if input_str in CMD_LIST:
string = "Commands found in {}:\n".format(input_str)
for i in CMD_LIST[input_str]:
string += "\n " + i
string += "\n"
await event.edit(string)
else:
await event.edit("`Wait Checking..`")
await asyncio.sleep(2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let packet_count = take::<_, usize, _, _>(11usize);
preceded(tag(1, 1usize), length_count(packet_count, packet))(input)
}
pub fn subpackets_length(input: Bits) -> IResult<Bits, Vec<Packet>> {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
migrationBuilder.CreateIndex(
name: "IX_ChartyActionDonations_UserId",
table: "ChartyActionDonations",
column: "UserId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "CharityDonations");
migrationBuilder.DropTable(
name: "ChartyActionDonations");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL CHRISTOPHER DUFFY BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, 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.
'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sleep 10
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import traceback
class CMSSWTask(CondorTask):
def __init__(self, **kwargs):
"""
:kwarg pset_args: extra arguments to pass to cmsRun along with pset
:kwarg is_tree_output: is the output file of the job a tree?
:kwarg other_outputs: list of other output files to copy back (in addition to output_name)
:kwarg publish_to_dis: publish the sample information to DIS upon completion
:kwarg report_every: MessageLogger reporting every N events
"""
self.pset = kwargs.get("pset", None)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Returns
-------
subproblems: Subproblem Class
all subproblems initialized accroding to mop and params
idealpoint: estimated idealpoint for Tchebycheff decomposition
"""
#load already genereted weights vector in weight file
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* the violation message (never <i>null</i>)
*/
void addViolation(String message);
/**
* Formats and adds the given violation message.
*
* @param message
* the violation message (never <i>null</i>)
* @param arguments
* the format arguments (never <i>null</i>)
*/
void formatViolation(String message, Object...arguments);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from __future__ import annotations
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cout << i << " ";
}
cout << endl;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
drivername="$TARGETNAME"
driver="${drivername}.sys"
DDK_DIR="C:\\WinDDK\\7600.16385.1" # Change as needed.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def stopped(self):
return self._stop_event.is_set()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# def getStdTRModel(topic, msg, bgcolor=RgbColor.White, align = ALIGN.Left):
#
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from typing import Iterator
from typing import List
from typing import Optional
from typing import Union
from typing import cast
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.0.set_local_anchor1(anchor1);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Retrieves/builds an EventStore instance for the given EventStore identifier
*
* @param string $eventStoreIdentifier The unique Event Store identifier as configured
* @return EventPublisherInterface
*/
public function create(string $eventStoreIdentifier): EventPublisherInterface;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.accountId = accountId
self.budgetName = budgetName
self.newNotification = newNotification
self.oldNotification = oldNotification
}
public func validate(name: String) throws {
try validate(self.accountId, name: "accountId", parent: name, max: 12)
try validate(self.accountId, name: "accountId", parent: name, min: 12)
try validate(self.accountId, name: "accountId", parent: name, pattern: "\\d{12}")
try validate(self.budgetName, name: "budgetName", parent: name, max: 100)
try validate(self.budgetName, name: "budgetName", parent: name, min: 1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.github.instagram4j.instagram4j.IGClient;
import com.github.instagram4j.instagram4j.models.IGPayload;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
DownloadManager->ShutDown();
DownloadManager = nullptr;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import qm9.visualizer as vis
from qm9.analyze import analyze_stability_for_molecules
from qm9.utils import prepare_context
from qm9.sampling import sample_chain, sample
from qm9 import mol_dim
| ise-uiuc/Magicoder-OSS-Instruct-75K |
plt.savefig('plot_results_multiple.png')
if __name__=='__main__':
global_start_time = time.time()
epochs = 1
seq_len = 50
| ise-uiuc/Magicoder-OSS-Instruct-75K |
2
Output:
1
Explanation:
The minimum absolute difference is 1, which is the difference between 2 and 1 (or between 2 and 3).
Note:
There are at least two nodes in this BST.
This question is the same as 783: https://leetcode.com/problems/minimum-distance-between-bst-nodes/
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
CommentId = Guid.NewGuid();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function show($user, User $employee)
{
if ($user->isAdminOrManager() && $this->sameCompany($user, $employee)) {
return true;
}
return false;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
python setup.py bdist_wheel --universal
| ise-uiuc/Magicoder-OSS-Instruct-75K |
result += f"--- Query {i}\n"
result += sql.read().strip()
result += "\n\n\n"
result = result.strip()
with open("output.txt", 'w') as f:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeParseException;
import static java.time.format.DateTimeFormatter.ISO_OFFSET_DATE_TIME;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def check_for_readline():
from distutils.version import LooseVersion
readline = None
try:
import gnureadline as readline
except ImportError:
pass
if readline is None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* @Description 应用全局日志APO
* @author <EMAIL>
* @Github <a>https://github.com/rothschil</a>
* @date 2019/10/29 16:50
* @Version 1.0.0
*/
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface ApplicationLog {
/**
* 业务操作名称,例如:"修改用户、修改菜单"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Matching any line with a hex string.
const outer = RegExp(/^.*0x[a-fA-F0-9]*.*/, 'gm');
// Matching the hex string itself.
const inner = RegExp(/0x[a-fA-F0-9]*/, 'g');
export function yamlHexToBase64(input: string): string {
return input.replace(outer, (match) => {
match = match.replace(/'/g, '');
// Special case: domain fields are supposed to be hexadecimal.
if (match.includes('domain')) {
return match;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.clock.tick(60)
self.screen.fill((0, 0, 0))
self.draw_snake()
self.draw_food()
self.snake.did_snake_ate([self.food.y_coord, self.food.x_coord])
self.snake.is_snake_dead()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
database.PostgreSQLTestDB.create_fixture('postgresql_db')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
static void swap(Mesh& a, Mesh& b);
// Getters for the private fields
unsigned int getVAO();
unsigned int getVBO();
unsigned int getEBO();
// Destructor
~Mesh();
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
2022-03-11
'''
import re
from .baseclient import BaseClient
'''鱼C论坛客户端'''
class FishCClient(BaseClient):
def __init__(self, reload_history=True, **kwargs):
super(FishCClient, self).__init__(website_name='fishc', reload_history=reload_history, **kwargs)
'''检查会话是否已经过期, 过期返回True'''
def checksessionstatus(self, session, infos_return):
url = 'https://fishc.com.cn/'
response = session.get(url)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// - Parameter action: button action code
/// - Returns: remote controller button action
static func rcButtonAction(_ action: Int) -> BlackBoxEvent {
return BlackBoxEvent(type: "mpp_button", value: action)
}
/// Obtains a return-home state change event
///
/// - Parameter state: return home state
/// - Returns: return-home state change event
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import ctypes
def save_locals(frame: types.FrameType) -> None:
ctypes.pythonapi.PyFrame_LocalsToFast(ctypes.py_object(frame), ctypes.c_int(1))
try:
_ = apply # noqa
except NameError: # pragma: no cover
try:
from nest_asyncio import apply
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return weight
def contrastive_hebbian_learning(self,
activation: types.TensorLike,
weight: types.TensorLike,
expected: types.TensorLike,
eta: float = 0.1,
gamma: float = 0.1,
max_iter: int = 10) -> types.TensorLike:
"""Contrastive Hebbian Learning.
Args:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
description='Get git information for your django repository',
author='<NAME>',
author_email='<EMAIL>',
license='MIT',
url='https://github.com/spapas/django-git/',
zip_safe=False,
include_package_data=False,
packages=find_packages(exclude=['tests.*', 'tests', 'sample', ]),
install_requires=['Django >=1.4', 'six', 'GitPython > 1.0'],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rm "$TMPFILE"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return abortOnWriteCloseException(cause.getCause());
return false;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cmd = ' '.join(['zfs', 'clone', snapshot, destination])
return cls.run(cmd)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"${app[sudo]}" "${app[tee]}" "${dict[file]}" >/dev/null << END
[azure-cli]
name=Azure CLI
baseurl=https://packages.microsoft.com/yumrepos/azure-cli
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
END
return 0
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.word_embed_dim = word_embed_dim
with tf.variable_scope(scope_name) as s, tf.device(device) as d:
if mention_embed == None:
self.label_weights = tf.get_variable(
name="label_weights",
shape=[context_encoded_dim, num_labels],
initializer=tf.random_normal_initializer(mean=0.0,
stddev=1.0/(100.0)))
else:
context_encoded = tf.concat(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using LinCms.Web.Data.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace LinCms.Web.Controllers.Base
{
[Area ("base")]
[Route ("api/base/type")]
[ApiController]
| 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.