seed stringlengths 1 14k | source stringclasses 2 values |
|---|---|
index = index.t().contiguous()
index, value = coalesce(index, value, tensor.size(0), tensor.size(1))
return index, value
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using Aura.Data;
using Aura.Messages;
namespace Aura.ViewModels
{
internal abstract class ElementViewModel<T>
: DataItemViewModel<T>
where T : Element
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "sql/dd/impl/types/object_table_definition_impl.h"
namespace dd {
namespace tables {
const Columns &Columns::instance() {
static Columns *s_instance = new Columns();
return *s_instance;
}
///////////////////////////////////////////////////////////////////////////
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import XCTest
@testable import DYZHIBO
class DYZHIBOTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[derive(Debug)]
pub struct HttpRedirect {
path: String,
}
impl HttpRedirect {
/// Create a new instance, with the location to which this strategy
/// will redirect the browser.
pub fn new(path: impl AsRef<str>) -> Self {
Self {
path: path.as_ref().to_string(),
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
void NavigationCommandFunc(string param)
{
// - Any "Region" is accessible via "IRegionManager"
_regionManager.RequestNavigate(RegionNames.Region_MainWindow, param);
}
#region Popup
private void PopupCommandFunc(string name)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fontFamily: 'RedHatDisplay',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public T Value
{
get {
if( (DateTime.Now - _lastUpdate).TotalMilliseconds > _timeoutInterval ) {
_cachedValue = Update();
_lastUpdate = DateTime.Now;
}
return _cachedValue;
}
}
protected abstract T Update();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return item.href
| ise-uiuc/Magicoder-OSS-Instruct-75K |
send_mail('<EMAIL>', 'Router Alert!', msg, '<EMAIL>')
elif devices[device][2] != old_devices[device][2]:
msg = "{device} config changed".format(device=devices[device][0])
send_mail('<EMAIL>', 'Router Alert!', msg, '<EMAIL>')
def main():
pynet_rtr1 = ('172.16.58.3', snmp_port)
pynet_rtr2 = ('172.16.58.3', snmp_port)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_search_in_python_org(self):
driver = self.driver("/chromedriver.exe"
self.assertIn("none", driver.title)
elem.send_keys("Ads")
elem.send_keys(Keys.RETURN)
def tearDown(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
function waitForCondition(driver: WebDriver) {
return async function(
text: string,
fn: (driver: WebDriver) => Promise<boolean>,
timeout: number
): Promise<boolean> {
return await driver.wait(new Condition<boolean>(text, fn), timeout);
};
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
organization = self.create_organization()
path = reverse('sentry-create-team', args=[organization.slug])
self.login_as(self.user)
resp = self.client.post(path, {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class LiquidsoapScriptView(TemplateView):
content_type = "text/plain"
template_name = "radio/radio.liq"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Field('importe','float'),
Field('descuento','float'),
Field('recargo','float'),
Field('total','float'),
Field('nota','string'), #referencia a facturas o presupuestos o notas de la misma tables
Field('fc_documento_id','integer'),
Field('fc_servicio_id','integer'),
migrate=False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return render(request, 'send.html')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither Moof IT Ltd nor the
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_client(account_sid, auth_token):
return Client(account_sid, auth_token)
def send_alert(client=None,body="Default:Found a Deer in backyard",to='+16174125569',from_='+15853265918'):
message = client.messages \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ClientException(String s) {
super(s);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
creation_time: datetime = Column(DateTime, nullable=False)
start_time: Optional[datetime] = Column(DateTime)
end_time: Optional[datetime] = Column(DateTime)
destruction_time: datetime = Column(DateTime, nullable=False)
execution_duration: int = Column(Integer, nullable=False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo apt-get install qtbase5-dev libgtk2.0-dev -y
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y
sudo apt-get install libatlas-base-dev libhdf5-serial-dev gfortran -y
# Optional
#sudo apt-add-repository ppa:mc3man/trusty-media
#sudo apt-get update
#sudo apt-get install ffmpeg python-opencv -y
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[macro_export]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn one_d_dynamics(t: f64, y: &Vector1<f64>) -> Vector1<f64> {
// Added For "WEIGHT"
sleep(Duration::from_micros(5));
// END WEIGHTING
(Vector1::new(3.0) - 4.0 * y) / (2.0 * t)
}
// Analytic Solution
pub fn one_d_solution(t: f64) -> Vector1<f64> {
Vector1::new(3.0 / 4.0 - 19.0 / (4.0 * t.powf(2.0)))
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def show_score(x, y):
score = font.render("Score : " + str(score_value), True, (255, 0, 0))
screen.blit(score, (x, y))
def player(x, y):
screen.blit(playerImg, (x, y))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
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 |
print(result)
# print(result) [<class 'int'>, <class 'str'>, <class 'float'>, <class 'list'>, <class 'dict'>]
# ali so vsi element različni.... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import custom_log as l
if __name__ == '__main__':
import folder_walk as walk
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
for phone_numbers_sid in phone_numbers_sids:
phone_number = client.messaging \
.services(sid="MG2172dd2db502e20dd981ef0d67850e1a") \
.phone_numbers \
.create(phone_number_sid=phone_numbers_sid)
print(phone_number.sid)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
generations (int): No of generations
no_of_parents(int): No of agents in a generation
agent_parameter_choices(Dict): Parameter choices for the agent
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export default function* handleApiError(
error: any,
failureAction?: (error?: any) => AnyAction
) {
if (failureAction !== undefined) {
yield put(failureAction(error));
return;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
new_y_dict = dict(sorted(y_dict.items(), key=lambda t: sorted_list[t[0]]))
wfp_y = yaml.dump(new_y_dict, Dumper=MyDumper, sort_keys=False, allow_unicode=True,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DEPENDENCIES = ['mqtt']
LOCATION_TOPIC = 'owntracks/+/+'
def setup_scanner(hass, config, see):
""" Set up a OwnTracksks tracker. """
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>views/default/object/kaltura_video.php
<?php
/**
* Kaltura video client
* @package ElggKalturaVideo
* @license http://www.gnu.org/licenses/gpl.html GNU Public License version 3
* @author <NAME> <<EMAIL>>
* @copyright <NAME> 2010
* @link http://microstudi.net/elgg/
*/
elgg_load_library('kaltura_video');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export namespace Configuration {
export interface Optional {
accountsCollection?: string;
roleCollectionPrefix?: string;
roles?: { [k: string]: Role };
}
export function validate(c: Configuration, pref: string = "") {
ow(c.accountsCollection, `${pref}Configuration.accountsCollection`, ow.string.nonEmpty);
ow(c.roleCollectionPrefix, `${pref}Configuration.roleCollectionPrefix`, ow.string.nonEmpty);
ow(c.roleRequestsCollectionPrefix, `${pref}Configuration.roleRequestsCollectionPrefix`, ow.string.nonEmpty);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
regardless of asked outputs.
:return:
a "reset" token (see :meth:`.ContextVar.set`)
"""
solution_layered = partial(_tristate_armed, _layered_solution)
"""
Like :func:`set_layered_solution()` as a context-manager, resetting back to old value.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// connections on port 55001
sf::TcpListener listener;
listener.listen(55001);
// Endless loop that waits for new connections
bool running = true;
while (running)
{
sf::TcpSocket client;
if (listener.accept(client) == sf::Socket::Done)
{
// A new client just connected!
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if eval is not None:
evalue, timevalue = eval(x, *args)
evalList.append(evalue)
time.append(timevalue)
else:
success = 0;
fnow = fold;
if flog:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo -e "\n******All nodes are running now.******"
break
fi
echo -e "\n******Waiting for nodes to get ready.******"
oc get nodes --no-headers | awk '{print \$1 " " \$2}'
echo -e "\n******sleeping for 60Secs******"
sleep 60
done | ise-uiuc/Magicoder-OSS-Instruct-75K |
type = OptionType.BOOLEAN,
default: defaultValue = false,
command = undefined,
expand = undefined,
},
]) => {
let subject: Option;
beforeEach(() => {
subject = new Option({
name,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let patternWidth = 2 / CGFloat(zoomScale)
context.setLineWidth(CGFloat(radLineWidth))
context.setStrokeColor(self.fenceRadiusColor.cgColor)
context.move(to: overlayRect.origin)
context.setShouldAntialias(true)
context.addLine(to: thumbPoint)
context.setLineDash(phase: 0, lengths: [CGFloat(patternWidth), CGFloat(patternWidth * 4)])
context.setLineCap(CGLineCap.round)
context.drawPath(using: CGPathDrawingMode.stroke)
} else {
self.thumbBounds = nil
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return reminder
def read_reminders_from_console():
'''Reads in a list of reminders from text input.
(To finish the list, the user should type nothing and enter.)
None, str input -> [str]'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# limitations under the License.
import argparse
import hmac
import os
import random
import string
import sys
from cryptography.hazmat.backends import default_backend
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == "__main__":
main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
avatar = request.FILES.get("avatar", None)
self.profile = Profile.objects.get(user=self.user)
if avatar:
self.profile.avatar = avatar
self.profile.save()
res = {
"user": self.user,
"avatar": self.profile.avatar
}
return render(request, self.template_name, res)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from gym.utils import seeding
class Operator(ABC):
# Set these in ALL subclasses
suboperators: tuple = tuple()
grid_dependant: Optional[bool] = None
action_dependant: Optional[bool] = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from DLA import main_single
| ise-uiuc/Magicoder-OSS-Instruct-75K |
task_type=$1
train_ratio=$2
if [ ${task_type} -eq 1 ]
then
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'result': 'rook-ceph-osd-2',
'metadata': {'status': 'success'},
'prometheus_alerts': [{'labels': ...}, {...}, ...]
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with self.assertRaises(errors.EfilterKeyError):
api.apply("my_func(1, 5)")
def my_func(x, y):
return x + y
with self.assertRaises(NotImplementedError):
api.apply("my_func(1, 5)",
vars={"my_func": my_func})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
display_inference_result(samples, predictions, outputs, denorm = True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private string GetAttribute(XmlNode xe,string name)
{
if (xe.Attributes[name] != null)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class PydanticMeta:
exclude = ["id"]
class Inbox(models.Model):
slug = fields.UUIDField(unique=True, default=uuid.uuid4)
title = fields.CharField(max_length=200)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
3 => { println!("Value is three"); }
_ => { println!("Any value match"); }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
F: Future<Output = ()> + 'static,
{
self.onstart.push(fut.boxed_local())
}
}
type BoxedNewService = Box<
dyn actix::ServiceFactory<
Request = (Option<CounterGuard>, ServerMessage),
Response = (),
Error = (),
InitError = (),
Config = (),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import * as funcs from "./functions";
(async () => {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return string_converter
def _MoveDown( self ):
selected_conversion = self._conversions.GetData( only_selected = True )[0]
( number, conversion_type, data ) = selected_conversion
swap_conversion = self._GetConversion( number + 1 )
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__email__ = '<EMAIL>'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise ReporterNotWorkingException(reporter)
return False
@staticmethod
def are_files_the_same(approved_file: str, received_file: str) -> bool:
if not exists(approved_file) or not exists(received_file):
return False
if filecmp.cmp(approved_file, received_file):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.btnCancelRD.Click += new System.EventHandler(this.btnCancelRD_Click);
//
// tbName
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for k,v in d.items():
print(k,"occured",v,"times") | ise-uiuc/Magicoder-OSS-Instruct-75K |
"geo": "geo",
"http": "http",
"meta": "meta",
"ssl": "ssl",
"whois": "whois"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class TimeperiodEnum(object):
"""Implementation of the 'Timeperiod' enum.
The periodic \n\nAllowed values \"daily\", \"weekly\", \"monhtly\"
Attributes:
DAILY: TODO: type description here.
WEEKLY: TODO: type description here.
MONHTLY: TODO: type description here.
"""
DAILY = 'daily'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def op(self, func):
try:
new_static = func(self.static)
return StaticDynamicDim(new_static, new_static)
except:
return StaticDynamicDim(None, func(self.static))
def __add__(self, other):
return self.op(lambda v: v + other)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
parser.add_argument('filename2', help='vecAnim1.vtk.')
args = parser.parse_args()
return args.filename1, args.filename2
if __name__ == '__main__':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sleep(Duration::from_millis(500));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* get the input file name.
*
* @param conf a configuration object
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
path = ''
host = parse_result._replace(netloc=netloc, path=path)
return host.geturl()
def remove_key_values(dictionary, keys=['self', '__class__']):
"""
Removes key values from dictionary
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
x[anomalyIdx, anomalyChannel] *= scalingFactor
anomaly_list.append(anomalyIdx)
x_data, y_data = [], []
for i in range(length):
offset = strides * i
x_tmp = x[offset:offset+numTimeSteps]
window = np.arange(offset, offset+numTimeSteps)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.a = a
self.b = b
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.网址去重ToolStripMenuItem.Text = "清理死亡";
this.网址去重ToolStripMenuItem.Click += new System.EventHandler(this.清理死亡ToolStripMenuItem_Click);
//
// 烟ToolStripMenuItem
//
this.烟ToolStripMenuItem.Name = "烟ToolStripMenuItem";
this.烟ToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
this.烟ToolStripMenuItem.Text = "网址去重";
this.烟ToolStripMenuItem.Click += new System.EventHandler(this.网址去重ToolStripMenuItem_Click);
//
// 整顿格式ToolStripMenuItem1
//
this.整顿格式ToolStripMenuItem1.Name = "整顿格式ToolStripMenuItem1";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace HandGestureRecord.GestureInput
{
/// <summary>
/// 指の識別子.
/// </summary>
public enum FingerId : int
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@keyword_access_check
@login_required
def keyword_csv(request, keyword):
"""Return a CSV with the responses for a single keyword."""
keyword = get_object_or_404(Keyword, keyword=keyword)
# Create the HttpResponse object with the appropriate CSV header.
response = HttpResponse(content_type="text/csv")
response["Content-Disposition"] = 'attachment; filename="{0}.csv"'.format(keyword.keyword)
writer = csv.writer(response)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.hours = mmap(numerizeTime, self.times)
self.seconds = mmap(toSeconds, self.times)
self.Xs = mmap(numerizeTime, self.times)
self.p = figure(plot_width=1400, plot_height=400)
self.df = pd.DataFrame.from_dict(self.cleansed)
self.nnBuyVolumes = [-1] * self.n
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .models import MyFile, CustomParam, Contact
# Register your models here.
class MyFileAdmin(admin.ModelAdmin):
list_display = ('uploaded_at', 'name')
list_filter = ('uploaded_at', 'name')
admin.site.register(MyFile, MyFileAdmin)
admin.site.register(CustomParam)
admin.site.register(Contact) | ise-uiuc/Magicoder-OSS-Instruct-75K |
aux = hView;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tm[3] = int(h)
else:
h = get("hour12")
if h:
h = int(h)
if string.lower(get("ampm12", "")) == "pm":
h = h + 12
tm[3] = h
m = get("minute")
if m: tm[4] = int(m)
s = get("second")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
\brief Calculates the cross product of two three-dimensional vectors
\ingroup fcpptmathvector
The cross product is defined here:
http://en.wikipedia.org/wiki/Cross_product
*/
template <typename T, typename S1, typename S2>
fcppt::math::vector::static_<T, 3> cross(
fcppt::math::vector::object<T, 3, S1> const &l, fcppt::math::vector::object<T, 3, S2> const &r)
{
return fcppt::math::vector::static_<T, 3>(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
prepared_covers = prepared_predicate(lgeos.GEOSPreparedCovers)
prepared_intersects = prepared_predicate(lgeos.GEOSPreparedIntersects)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
self.left_boundary.set_data(b_left[0],b_left[1])
if(self.right_boundary == None):
self.right_boundary, = self.ax.plot(b_right[0],b_right[1],c='r')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dotlink config ~/.config/nvim
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
return blend;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return
def stop(self):
self._stop = True
if self.threads:
for t in self.threads:
t.stop()
# not so nice solution to get rid of the block of listen()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
HEADERS = {'content-type': CONTENT_TYPE, 'X-Auth-Token': ''}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
num_kernel = 0
zero_kernel = 0
n_kernel = 0
state_dict = checkpoint['gen_state_dict']
for key in state_dict.keys():
if 'mask' in key:
mask = state_dict[key]
print(mask.shape)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import stko
import pytest
| ise-uiuc/Magicoder-OSS-Instruct-75K |
se = Session()
se.init_app(app)
db.init_app(app)
# 调试插件的实例化
| ise-uiuc/Magicoder-OSS-Instruct-75K |
areaRadiusB=110.88; // radius B of the location
areaAngle=21.54; // Rotation of the location
demography=CIV; // Demography
accessPoints[] = // Types: 0 - generic; 1 - on road; 2 - water; 3 - in forest
// [Type, [posX, posY], [radiusA, radiusB, angle]]
{
{LOCATION_AREA_ACCESSPOINT_ROAD, {3992.65, 5737.03}, 131.5},
{LOCATION_AREA_ACCESSPOINT_WATER, {4516.45, 4792.14}, 2.61},
{LOCATION_AREA_ACCESSPOINT, {4631.64, 4911.26}, 353.75},
{LOCATION_AREA_ACCESSPOINT_FOREST, {4877.27, 5293.49}, 260.38},
{LOCATION_AREA_ACCESSPOINT_WATER, {4863.08, 5493.37}, 235.14},
{LOCATION_AREA_ACCESSPOINT, {4906.77, 5210.8}, 276},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__in ULONG_PTR AsmHandler,
__in ULONG_PTR AsmHandlerEnd)
{
ASSERT(AsmHandlerEnd > AsmHandler);
SIZE_T asmHandlerSize = AsmHandlerEnd - AsmHandler;
ULONG_PTR pattern = 0xffffffffffffffff;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# and a random point from ajax and created the vector from the subtraction.
# this way ajax should have showed up in the position of the sphere (and i wanted to work from there)
# i really didn't try a lot of things here. i decided that it's better to focus on sphere first + area light first
transform_ajax([-6.23+(0.44+6.32),27.31+(0.36-27.31),-21.52+(0.051+21.52)])
subprocess.run(["nori.exe", xml_file]) | ise-uiuc/Magicoder-OSS-Instruct-75K |
import Combine
import UIKit
public extension UIButton {
/// A publisher emitting tap events from this button.
var tapPublisher: AnyPublisher<Void, Never> {
Publishers.ControlEvent(control: self, events: .touchUpInside)
.eraseToAnyPublisher()
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
convenience init(id:Int32, hero:Hero, headquarter:Headquarter, level:Int16){
self.init(context: DaikiriCoreData.manager.context)
self.id = id
self.hero_id = hero.id
self.headquarter_id = headquarter.id
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class RegistrationForm(UserCreationForm):
class Meta:
model = User
fields = ('email',)
class LoginForm(AuthenticationForm):
username = forms.EmailField()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
options.Services.Add(new NpgsqlConnectionInstance(typeof(NpgsqlConnection)));
options.Services.Add(new NpgsqlConnectionInstance(typeof(DbConnection)));
options.Advanced.CodeGeneration.SetTransactions(new PostgresqlTransactionFrameProvider());
}
public PostgresqlSettings Settings { get; } = new PostgresqlSettings();
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
observations = parallel_env.reset()
dones = {agent: False for agent in parallel_env.agents}
test_cycles = max_cycles + 10 # allows environment to do more than max_cycles if it so wishes
for step in range(test_cycles):
actions = {agent: parallel_env.action_space(agent).sample() for agent in parallel_env.agents if not dones[agent]}
observations, rewards, dones, infos = parallel_env.step(actions)
if all(dones.values()):
break
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import subprocess
import charms.reactive as reactive
import charms_openstack.charm
import charms_openstack.adapters
import charms_openstack.plugins
import charmhelpers.core as ch_core
| ise-uiuc/Magicoder-OSS-Instruct-75K |
app.ResultAndPrizes.message_id_33_duel_winning_numbers_for_5_draws()
app.ResultAndPrizes.parser_report_text_winners()
assert "ВЫИГРЫШНЫЕ НОМЕРА" in app.ResultAndPrizes.parser_report_text_winners()
app.ResultAndPrizes.comeback_main_page() | ise-uiuc/Magicoder-OSS-Instruct-75K |
docker build -t test-eventuate-mysql .
| 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.