seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
for epoch, line in tqdm(enumerate(lines)):
line = line.strip()
if line == '':
break
info = json.loads(line)
tb_writter.add_scalar('Loss/train', info['train_loss'], epoch)
tb_writter.add_scalar('Loss_bbox/train', info['train_loss_bbox_unscaled'], epoch)
tb_writter.add_scalar('Loss_ce/train', info['train_loss_ce_unscaled'], epoch)
tb_writter.add_scalar('Loss/test', info['test_loss'], epoch)
tb_writter.add_scalar('Loss_bbox/test', info['test_loss_bbox_unscaled'], epoch)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod reply;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def on_done(self, index):
if not index is -1:
LiveReload.Plugin.togglePlugin(index)
def run(self):
sublime.active_window().show_quick_panel(LiveReload.Plugin.listPlugins(),
self.on_done)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
// Create the SwiftUI view that provides the window contents.
let contentView = ContentView()
// Use a UIHostingController as window root view controller.
if let windowScene = scene as? UIWindowScene {
let window = UIWindow(windowScene: windowScene)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
struct Resp: Encodable {
var msg: String
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// InitializeImageFromFile(image, image_file_path, ground_width, ground_height);
//
// const float inner_radius = std::atof(argv[6]);
// const float base_thickness = std::atof(argv[7]);
// const float front_thickness = std::atof(argv[8]);
// const int smooth = std::atoi(argv[9]);
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rest: {
background: string;
text: string;
border: string;
};
hover: {
background: string;
text: string;
};
pressed: {
background: string;
text: string;
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from flask import request
from project import db
from project.errors import bp
| ise-uiuc/Magicoder-OSS-Instruct-75K |
;;
esac
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
cp ./programs/mozilla.cfg "${1}/"
cp ./programs/local-settings.js "${1}/defaults/pref/" | ise-uiuc/Magicoder-OSS-Instruct-75K |
mkdir -p ~/.config/gotopath
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return '*'
def __repr__(self):
return "Anything"
Anything = AnythingType()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
MOVE_FIG_START = (15, 3)
MOVE_FIG_CAPTURE = (18, 3)
MOVE_COLOR = (21, 1)
MOVE_PROM = (22, 2)
#----- castling -----#
CASTLING_LEFT = 0
CASTLING_RIGHT = 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public init(icon: String,
title: String,
color: Color) {
self = BottomBarItem(icon: Image(systemName: icon),
title: title,
color: color)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case "$1" in
-h|--help)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[tokio::main]
async fn main() {
let filter = ::warp::any().map(|| {
return "Hello World";
});
let addr: SocketAddr = "[::]:5000".parse().unwrap();
::warp::serve(filter).run(addr).await;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Lorem Ipsum".indexOf(" "))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
source /etc/apache2/envvars
| ise-uiuc/Magicoder-OSS-Instruct-75K |
},
V3 {
charges: [u16; DVC_CAPABILITIES_CHARGE_COUNT],
},
}
impl PduParsing for CapabilitiesRequestPdu {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include <mizuiro/image/format/color_ns/types/value_type.hpp>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
|(?P<NUM>[0-9]+)
""", regex.VERBOSE)
# Split file contents by its lines.
lines = content.splitlines()
# For each line, scan
for line in lines:
column_n = 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
yearmonthday = (string[0].rsplit("-", 3))
hoursminutes = (string[1].rsplit(":", 2))
#print(yearmonthday)
#print(hoursminutes)
yeard = int(yearmonthday[0])
monthd = int(yearmonthday[1])
dayd = int(yearmonthday[2])
hourd = int(hoursminutes[0])
minuted = int(hoursminutes[1])
# tämä loopitus tyhmää, voisi käyttää valmista kirjastoa
| ise-uiuc/Magicoder-OSS-Instruct-75K |
del response.data[key]
response.data["error"] = ", ".join(errors)
return response
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// Created by Kas Song on 2021/03/18.
//
import XCTest
@testable import CalculatorApp
class CalculatorAppTests: XCTestCase {
private var calculator: Calculator! = Calculator()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let navigationBarAttributes = Appearance.shared.navigationBarAttributes
navigationBar.barTintColor = navigationBarAttributes.backgroundColor
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.gwtbootstrap3.client.ui.Label;
import org.gwtbootstrap3.client.ui.ListBox;
import org.gwtbootstrap3.client.ui.TextBox;
import org.jboss.errai.ui.shared.api.annotations.DataField;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@lcc.test("Check method 'eth_coinbase'")
@lcc.depends_on("TestRPC.TestRPC.TestRPC.main_check")
def eth_coinbase(self):
payload = self.rpc_call("eth_coinbase", [])
response = self.get_response(payload)
require_that("'result'", response["result"], equal_to(self.account_address))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/usr/bin/env bash
python demo.py -i TestImages -o TestImagesResult --isDlib True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>tests/test_isahc.rs<gh_stars>1-10
mod common;
use common::*;
// #[cfg_attr(not(feature = "isahc-client"), ignore)]
#[cfg(feature = "isahc-client")]
mod isahc_tests {
use isahc::AsyncReadResponseExt;
use consumer::{Consumer, IsahcClient};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import command, speech, sound, model, helper
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var typedValue = new TypedValue();
if (Mvx.Resolve<IMvxAndroidCurrentTopActivity>()?.Activity?.Theme.ResolveAttribute((value ? Resource.Attribute.app_color_accent : Resource.Attribute.app_color_disabledControl), typedValue, true) ?? false)
drawable.SetColor(new Color(typedValue.Data));
return drawable;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
account = Account.objects.create(name=user.username)
profile_model = Profile.get_profile_model(self.cleaned_data['account_type'])
profile_model.objects.create(user=user, account=account)
return user
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cs4 = CrossSection(base_cp * BASE_SCALE, 0.4)
cs5 = CrossSection(base_cp * BASE_SCALE, 0.5)
cs6 = CrossSection(base_cp * BASE_SCALE, 0.6)
cs7 = CrossSection(base_cp * BASE_SCALE, 0.7)
cs8 = CrossSection(base_cp * BASE_SCALE, 0.8)
cs9 = CrossSection(base_cp * BASE_SCALE, 0.9)
# for deformation_filter in [
# plane,
# concave_ellipsoid,
# concave_cylinder_vert,
# concave_cylinder_diag_down,
# concave_cylinder_diag_up,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
aafc::CollectorBuildResult::CollectorBuildResult( aaoc::EntityCollector *collector,
EntityType collectorType,
const aslp::ParseResult& result,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public async Task<List<Course>> RetriveCoursesAsync()
{
SqlOperation sqlO = new SqlOperation() { ProcedureName = "RET_COURSES" };
List<Course> listWM = new List<Course>();
BaseEntity wm = new Course();
try
{
List<Dictionary<string, object>> data = await SqlDaoInstance.ExecuteQueryProcedureAsync(sqlO);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
try
{
using (this.progressService.Show())
{
var connection = await this.connectionService.GetConnectionAsync();
this.Person = await connection.GetPersonDetails(this.PersonID, false);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == '__main__':
db_id = duplicate_sim("", sys.argv[0], sys.argv[1:])
print("ID of new simulation: {0}".format(db_id))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while True:
tem = random.randint(30, 40)
pre = 2 + random.random()
log = {'temperature': tem, 'pressure': pre}
print(log)
body = {'username': 'daipei5', 'mac': 'b6:00:1d:d0:2c:34', 'log': log}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pass
def bar(foo):
pass | ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
ms.get_response()
raise AssertionError("Should not be reached")
except MemcacheError as e:
assert "Error parsing response header" in str(e)
fake_socket.recv_into.side_effect = recv_into_mock(
[b"HD c1\r\nVA 2 c1", b"\r\nOK\r\n"]
)
ms = MemcacheSocket(fake_socket)
result = ms.get_response()
assert isinstance(result, Success)
assert result.int_flags == {IntFlag.RETURNED_CAS_TOKEN: 1}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
);
public function beforeSave($options = []){
if(isset($this->data[$this->alias]['password'])){
| ise-uiuc/Magicoder-OSS-Instruct-75K |
defaults write com.googlecode.iterm2.plist PrefsCustomFolder -string '~/code/tools/dotfiles/src/os/init/macos/iterm'" \
"Pull iTerm2 preferences from dotfiles"
execute "defaults write com.googlecode.iterm2.plist NoSyncNeverRemindPrefsChangesLostForFile_selection -int 2" \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
req.getSession().removeAttribute("admin");
resp.getWriter().print("<script>alert('退出登陆成功!');window.location.href='"
+ req.getContextPath() + "/admin/login.jsp';</script>");
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
VertexArray::VertexArray(ag::span<VertexAttribute> attribs) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .sanic import Sanic
from .blueprints import Blueprint
__all__ = ['Sanic', 'Blueprint']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i, data_i in enumerate(dataloader, start=iter_counter.epoch_iter):
iter_counter.record_one_iteration()
# Training
# train generator
if i % opt.D_steps_per_G == 0:
trainer.run_generator_one_step(data_i)
# train discriminator
trainer.run_discriminator_one_step(data_i)
if iter_counter.needs_printing():
losses = trainer.get_latest_losses()
try:
print_current_errors(opt, epoch, iter_counter.epoch_iter,
iter_counter.epoch_iter_num, losses, iter_counter.time_per_iter)
except OSError as err:
print(err)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
f4=np.load("model4.npz",allow_pickle=True)
f5=np.load("model5.npz",allow_pickle=True)
model=f["model"]
print("exp model1")
model2=f2["model"]
print("exp model2")
model3=f3["model"]
print("exp model3")
model4=f4["model"]
print("exp model4")
model5=f5["model"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
- str: NOT DEFINED
"""
return self._get_attribute(self._SDM_ATT_MAP['SnapshotSettingsName'])
@property
def SnapshotViewContents(self):
# type: () -> str
"""
Returns
-------
- str(allPages | currentPage): NOT DEFINED
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>apps/organization/migrations/0017_merge.py
# -*- coding: utf-8 -*-
| ise-uiuc/Magicoder-OSS-Instruct-75K |
nlp = spacy.load("en_core_web_sm", exclude=["ner", "lemmatizer", "textcat"])
dict_path = "scicopia_tools/tests/resources/taxa.tsv"
nlp.add_pipe("taxontagger", config={"wordlist": dict_path}, after="tagger")
chemicals_path = "scicopia_tools/tests/resources/chemicals.txt"
# tagger -> chemtagger -> taxontagger
nlp.add_pipe("chemtagger", config={"wordlist": chemicals_path}, after="tagger")
return nlp
def test_recognition_overlap(pipeline):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def _replace(s, vals=replace_list):
if s is None:
return ''
_s = s
for u, v in vals:
_s = _s.replace(u, v)
return _s
def compare_elements(el1, el2):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
field: {
color: DefaultPalette.themeDarker,
selectors: {
'&::placeholder': {
color: DefaultPalette.themeDarker
}
}
}
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#limitations under the License.
from pyscrap3 import Item
from pyscrap3 import ItemList
class DemoItem(Item):
"""Los Item son ideales para guardar contenido único como el
título de una página o el cuerpo de una noticia."""
def __init__(self):
super().__init__()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Returns True if others have bid on the item.
TODO: Throws TypeError if user not logged in
"""
# auction = Auction.objects.get(id=auction)
has_bids = False
try:
current_bid = Bid.objects.filter(auction=auction).aggregate(Max('bid_amount'))
if current_bid['bid_amount__max']:
has_bids = True
except Bid.DoesNotExist:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.parent = parent;
this.topBlock = parent.topBlock;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'SQLAlchemy>=1.0,<2.0',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "======== prepare repos dir"
mkdir -p ${reposDir}
ls -l ${reposDir}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/*
PhotoComment.swift
Created on: 31/8/18
Abstract:
this model will serve the photo comment object
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>portal/models/new.py
# -*- coding: utf-8 -*-
from datetime import datetime
from django.db import models
class News(models.Model):
"""
用于管理站点新闻消息
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
- name: the name of the victim associated with the label
- matches: a boolean of whether the name was in the sentence
- feats: an array of integers representing the selected features
:param input_: an iterable of unicode documents
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:return: bool is Django 2.1 or below and is SQLite the DB
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
import CoreData
public protocol SchemaProtocol {
init()
var model: ObjectModel { get }
var previousVersion: SchemaProtocol? { get }
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dEbox = fp.ptp(dEbox*Edm1pad[np.ix_(y_box_AS_ind,x_box_AS_ind)], mp.P2.compact.dx*NboxPad1AS,wvl, mp.d_dm1_dm2) # forward propagate to DM2 and apply DM2 E-field
dEP2box = fp.ptp(dEbox*Edm2WFEpad[np.ix_(y_box_AS_ind,x_box_AS_ind)]*DM2stop[np.ix_(y_box_AS_ind,x_box_AS_ind)]*np.exp(mirrorFac*2*np.pi*1j/wvl*DM2surf[np.ix_(y_box_AS_ind,x_box_AS_ind)]), mp.P2.compact.dx*NboxPad1AS,wvl,-1*(mp.d_dm1_dm2 + mp.d_P2_dm1) ) # back-propagate to DM1
# dEbox = fp.ptp_inf_func(dEbox*Edm1pad[np.ix_(y_box_AS_ind,x_box_AS_ind)], mp.P2.compact.dx*NboxPad1AS,wvl, mp.d_dm1_dm2, mp.dm1.dm_spacing, mp.propMethodPTP) # forward propagate to DM2 and apply DM2 E-field
# dEP2box = fp.ptp_inf_func(dEbox.*Edm2WFEpad[np.ix_(y_box_AS_ind,x_box_AS_ind)]*DM2stop(y_box_AS_ind,x_box_AS_ind).*exp(mirrorFac*2*np.pi*1j/wvl*DM2surf(y_box_AS_ind,x_box_AS_ind)), mp.P2.compact.dx*NboxPad1AS,wvl,-1*(mp.d_dm1_dm2 + mp.d_P2_dm1), mp.dm1.dm_spacing, mp.propMethodPTP ) # back-propagate to DM1
#
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[NWNEventHandler(AFTER_LEAVE)]
[NWNEventHandler(BEFORE_KICK)]
[NWNEventHandler(AFTER_KICK)]
[NWNEventHandler(BEFORE_NEW_LEADER)]
[NWNEventHandler(AFTER_NEW_LEADER)]
public static void EventHandler(string script)
{
var e = new PartyEvent(script);
switch (script)
{
case BEFORE_JOIN: BeforeJoinParty(e); break;
case AFTER_JOIN: AfterJoinParty(e); break;
case BEFORE_LEAVE: BeforeLeaveParty(e); break;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case refreshTokenInvalid
case accessTokenInvalid
case accessTokenExpired
case passCodeNotValid
case fieldNotBlank
case fieldSizeMax
case fieldSizeMin
| ise-uiuc/Magicoder-OSS-Instruct-75K |
protected InstanceParameter(GirModel.InstanceParameter model)
{
Model = model;
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@ApiPropertyOptional()
name: string;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>Chacix/oxide-lang
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def transactional(func):
@wraps(func)
def commit_or_rollback(*args, **kwargs):
try:
res = func(*args, **kwargs)
db.session.commit()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
api_key = Users.gen_api_key()
self.assertEqual(len(api_key), 64)
self.assertTrue(api_key.isalnum())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
</div>
</section>
@endsection
| ise-uiuc/Magicoder-OSS-Instruct-75K |
parent_branch_with_remote=$(git rev-parse --abbrev-ref --symbolic-full-name @{u})
parent_branch="${parent_branch_with_remote##*/}"
github_username=$(git config user.name)
remote_url=$(git ls-remote --get-url)
base_url=$(dirname "$remote_url")
repo_name=$(basename -s .git "$remote_url")
full_url="$base_url/$repo_name"
zprURL="$full_url/compare/$parent_branch...$github_username:$current_branch?expand=1"
open $zprURL
}
_zpr
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Coordinates = spaced_coordinate("Coordinates", "xy")
Orientation = NamedTuple(
"Orientation", [("rot_x", float), ("rot_y", float), ("rot_z", float)]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
docker run --name stomp-rabbitmq --rm -d -p 61030:61030 -v ${CONFIG_PATH}/rabbit/:/etc/rabbitmq/ rabbitmq:${VERSION} | ise-uiuc/Magicoder-OSS-Instruct-75K |
log_format()
log_format_elk(server_config.project_name, ip="192.168.3.11", port=9999, elk_sign=server_config.elk_sign)
api = Api(app)
api.add_resource(UserInfoController, '/api/user_score')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let task = URLSession.shared.dataTask(with: URL(string: url)!) { data, _, error in
if let error = error {
emitter.onError(error)
return
}
guard let data = data,
let image = UIImage(data: data) else {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return redirect('/static/index.html')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
LoopVarEntry(Types.Type t) {
super(t);
}
LoopVarEntry(Translate.Access a, Types.Type t) {
super(a, t);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
byte = raw[i]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public func valueFont() -> RFFont {
return RFPreferredFontForTextStyle.body
}
}
public class RFFontStrategy_BoldTitle: RFFontStrategy {
public func titleFont() -> RFFont {
return RFPreferredFontForTextStyle.headline
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.init_app()
def teardown_method(self, method):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(name)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
exec "123"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use crate::{
analyzer::MorphAnalyzer,
container::{
abc::*,
decode::*,
paradigm::ParadigmId,
stack::{StackAffix, StackHyphenated, StackSource},
HyphenSeparatedParticle, Lex, Score,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import os
import pytest
import stat
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
System::current().stop();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include <berlin/Main.h>
#endif
#ifndef INCLUDED_Type
#include <Type.h>
#endif
#ifndef INCLUDED_StringTools
#include <StringTools.h>
#endif
#ifndef INCLUDED_StringBuf
#include <StringBuf.h>
#endif
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .IFileConverter import IFileConverter
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function adminReadNotice($id){
DB::update("update receivers set status = 1 where notificationId = $id");
$result = DB::select("SELECT * FROM notifications where notificationId = $id");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import {OuterService} from "../../services/OuterService";
@Controller("/products")
@Scope("request")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tar -xzf weed-fs-latest-linux-386.tar.gz
echo "starting servers";
mkdir /tmp/data1
mkdir /tmp/data2
./weed/weed master &
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return await file.arrayBuffer();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>norbertosanchezdichi/TIL<filename>Python3/Exercises/DictionaryMethods/dictionary_methods.py
inventory = {'croissant': 19, 'bagel': 4, 'muffin': 8, 'cake': 1}
print(f'{inventory =}')
stock_list = inventory.copy()
print(f'{stock_list =}')
stock_list['hot cheetos'] = 25
stock_list.update({'cookie' : 18})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if len(post_vars) > 0:
from_name = post_vars.get('fromName', [''])[0]
from_email = post_vars.get('fromEmail', [''])[0]
to_name = post_vars.get('toName', [''])[0]
to_email = post_vars.get('toEmail', [''])[0]
subject = post_vars.get('subject', [''])[0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
override func viewDidDisappear(_ animated: Bool) {
activityLabel.isHidden = true
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@api.depends('commercial_partner_id', 'sale_line_id.order_partner_id.commercial_partner_id', 'parent_id.sale_line_id', 'project_id.sale_line_id')
def _compute_sale_line(self):
for task in self:
if not task.sale_line_id:
task.sale_line_id = task.parent_id.sale_line_id or task.project_id.sale_line_id
# check sale_line_id and customer are coherent
if task.sale_line_id.order_partner_id.commercial_partner_id != task.partner_id.commercial_partner_id:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var score2 = GameScore(points: 20)
score2.objectId = "yolo"
score2.createdAt = Date()
let objects = [score, score2]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
contentimage=content/x__style_transfer__200316__06_01.0.jpg
resultoutfile=nst/x__style_transfer__200316__06_01__var1.jpg
#$interpreter_cmd $nst_script $styleimage $contentimage $resultoutfile
echo $goalline
echo "Version 6.1a Variation 2 - jgi_acrylic__anger_land.JPG"
styleimage=img/jgi_acrylic__anger_land.JPG
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use crate::Result;
pub struct Delete {
data: DeleteData,
logger: Logger,
tracer: Arc<opentracingrust::Tracer>,
}
impl Delete {
pub fn new(logger: &Logger, interfaces: &mut Interfaces) -> Delete {
| 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.