seed
stringlengths
1
14k
source
stringclasses
2 values
/// </summary> public class AlipayDataDataserviceSdfsdfResponse : AlipayResponse { } }
ise-uiuc/Magicoder-OSS-Instruct-75K
} public class FigmaNode { public string id { get; set; } public string name { get; set; } public string type { get; set; } [DefaultValue (true)] [JsonProperty(DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)] public bool visible { get; set; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
if i-prev > 0: yield i if i+1 < len(construction): yield i+1 prev = i+1 def split_locations(self, construction, start=None, stop=None): """ Return all possible split-locations between start and end. Start and end will not be returned. """ start = start if start is not None else 0 stop = stop if stop is not None else len(construction) for i in range(start+1, stop):
ise-uiuc/Magicoder-OSS-Instruct-75K
void Update () { } public void readTest () { FileStream file = new FileStream ("Assets/Resources/brunnen.ctm", FileMode.Open); CtmFileReader reader = new CtmFileReader (file); OpenCTM.Mesh m = reader.decode (); UnityEngine.Mesh um = new UnityEngine.Mesh ();
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_skyproj_basic(tmp_path, skyproj, lon_0): """Test full sky maps.""" plt.rcParams.update(plt.rcParamsDefault) # Full image fig = plt.figure(1, figsize=(8, 5))
ise-uiuc/Magicoder-OSS-Instruct-75K
// always reflects the _true_ state of the underlying ring buffer // regardless of any race conditions. let event_lock = self.common.lock_event(); let rb = this_end.ringbuf(); if rb.is_full() { this_end.pollee().del_events(Events::OUT); } if !rb.is_empty() { peer_end.pollee().add_events(Events::IN); } } } impl File for Producer {
ise-uiuc/Magicoder-OSS-Instruct-75K
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
ise-uiuc/Magicoder-OSS-Instruct-75K
if [ -r "std.out" ] then diff -wB temp.txt std.out >/dev/null if [ $? -eq 0 ] then
ise-uiuc/Magicoder-OSS-Instruct-75K
const Real mp = (mandatoryPoint != Null<Real>()) ? mandatoryPoint : process->x0(); const Real qMin = std::min(std::min(mp, process->x0()), process->evolve(0, process->x0(), t, InverseCumulativeNormal()(eps))); const Real qMax = std::max(std::max(mp, process->x0()), process->evolve(0, process->x0(), t, InverseCumulativeNormal()(1-eps))); const Real dp = (1-2*eps)/(size-1); Real p = eps; locations_[0] += qMin;
ise-uiuc/Magicoder-OSS-Instruct-75K
return S def solve(Clauses, Variables):
ise-uiuc/Magicoder-OSS-Instruct-75K
'rilt', # 0xb9 'rilp', # 0xba
ise-uiuc/Magicoder-OSS-Instruct-75K
# Wait monitor respond time.sleep(3)
ise-uiuc/Magicoder-OSS-Instruct-75K
let bibleReader: OsisBibleReader; beforeEach(() => { bibleReader = new OsisBibleReader(); }); it('looks up single verses', () => { console.log(bibleReader.parseReference('Mark 10:5')); }); });
ise-uiuc/Magicoder-OSS-Instruct-75K
} else { update_max_durable_sql_no(sql_no); // TODO: defense inspection int64_t redo_log_ts = (0 == lob_start_log_ts_ ? log_ts : lob_start_log_ts_); if (redo_log_ts > memtable->get_freeze_log_ts()) { ret = OB_ERR_UNEXPECTED; TRANS_LOG(ERROR, "replay should not overflow", K(ret), K(redo_log_ts), K(*memtable)); } } } else {
ise-uiuc/Magicoder-OSS-Instruct-75K
def init(bot): bot.add_cog(FeedCog(bot)) from . import pixiv, twitter
ise-uiuc/Magicoder-OSS-Instruct-75K
{ this->::espi::IdentifiedObject::parse (p, f); for (; p.more_content (); p.next_content (false)) {
ise-uiuc/Magicoder-OSS-Instruct-75K
import os import platform
ise-uiuc/Magicoder-OSS-Instruct-75K
# If should turn on if incoming == "a_on": display.show(Image("99999:99999:99999:99999:99999")) radio.send("a_on") elif incoming == "a_off": display.show(Image("00000:00000:00000:00000:00000")) radio.send("a_off")
ise-uiuc/Magicoder-OSS-Instruct-75K
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" DIRS=( "$SCRIPT_DIR/../python/" "$SCRIPT_DIR/../scripts" ) YEAR=2021 OWNER="<NAME>" TEMPLATE="$SCRIPT_DIR/templates/license-py-sh.tmpl"
ise-uiuc/Magicoder-OSS-Instruct-75K
} return try EapAkaAttributeClientErrorCode(payload: payload.subdata(in: 2..<4)) } static let SIZE = 4 // type, size=1, payload:2 }
ise-uiuc/Magicoder-OSS-Instruct-75K
//! Types used during network sessions. pub use crate::{ session_message_event::SessionMessageEvent, session_status_event::SessionStatusEvent, }; pub mod config; pub mod play; mod session_message_event; mod session_status_event;
ise-uiuc/Magicoder-OSS-Instruct-75K
return sha raise ValueError(f'{version} was not found') if __name__ == '__main__': version = '3.0.0' path = '~/skoltech/aspire/server/different_xcms' # Load from github repo_clone_url = 'https://github.com/sneumann/xcms.git' repo, local_repo = init_repo(repo_clone_url=repo_clone_url, path=path, version=version)
ise-uiuc/Magicoder-OSS-Instruct-75K
("EGLD", 39), ("SAND", 40), ("THETA", 41), ("XTZ", 42), ("CAKE", 43),
ise-uiuc/Magicoder-OSS-Instruct-75K
objtype = 'calcjob' priority = 20 @classmethod def can_document_member(cls, member, membername, isattr, parent): return inspect.isclass(member) and issubclass(member, CalcJob)
ise-uiuc/Magicoder-OSS-Instruct-75K
from .value import Value from .x_helpers import get_wm_class class ApplicationEvent(Enum):
ise-uiuc/Magicoder-OSS-Instruct-75K
@Utility final public class UtilityClass { private UtilityClass() {} public static void m1() { }
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Convert a Caffe model file to TensorFlow checkpoint format. Assume that the network built is a equivalent (or a sub-) to the Caffe definition. """ import tensorflow as tf from nets import caffe_scope from nets import nets_factory
ise-uiuc/Magicoder-OSS-Instruct-75K
def set_twist(self, forward_rate, turn_rate):
ise-uiuc/Magicoder-OSS-Instruct-75K
// Use XCTAssert and related functions to verify your tests produce the correct results. } }
ise-uiuc/Magicoder-OSS-Instruct-75K
override func canMoveItem(at index: Int) -> Bool { return isReorderable } override func moveObject(from sourceIndex: Int, to destinationIndex: Int) { guard let object = object else { return } let item = object.items.remove(at: sourceIndex) object.items.insert(item, at: destinationIndex) }
ise-uiuc/Magicoder-OSS-Instruct-75K
private CatalogueType catalogueType; public CatalogueValidator(CatalogueType catalogueType) { this.catalogueType = catalogueType; } public ValidationMessages validate() { idExists(); validateLines(); logger.info("Catalogue: {} validated", catalogueType.getUUID()); return new ValidationMessages(errorMessages,errorParameters); }
ise-uiuc/Magicoder-OSS-Instruct-75K
struct A<T where B : b> { static let end = a
ise-uiuc/Magicoder-OSS-Instruct-75K
public interface BackdropActions { void showBackview(); void closeBackview(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
# list of character to make some combination stringKey = '<KEY>' # hashedMessage is 'abcd' hashedMessage = 'e2fc714c4727ee9395f324cd2e7f331f' # if your hashedMessage too complex, it may take for a long time for i in range(len(stringKey)): pm = itertools.combinations(stringKey, i) for item in pm:
ise-uiuc/Magicoder-OSS-Instruct-75K
e = e.value e.validator = self raise e else: defer.returnValue( result ) def match_gotResult( result, self, value, d ): if isinstance( result, Failure ): if not isinstance(result.value, Invalid): raise d.errback( Invalid( value, self, matchType=self.type, criterion=result.value ) ) else:
ise-uiuc/Magicoder-OSS-Instruct-75K
@Bean public JwtAccessTokenConverter accessTokenConverter() {
ise-uiuc/Magicoder-OSS-Instruct-75K
echo """\ [Unit] Description=Automount disks according to disk labels [Service] ExecStart=/opt/sdslabs/automount.sh [Install] WantedBy=multi-user.target """ > /etc/systemd/system/automount.service
ise-uiuc/Magicoder-OSS-Instruct-75K
auth=conf.dav__auth) my_dbtool = backend.SQLiteDb(conf.sqlite__path, "utf-8", "stricts", conf.debug) # sync: abook = syncer.get_abook() # type (abook): dict for href, etag in abook.iteritems(): if my_dbtool.needs_update(href, etag):
ise-uiuc/Magicoder-OSS-Instruct-75K
} } /** * Create and broadcast a new transaction of <amount> <toAddressHash> from the first unspent ones. */ public async send(amount: number, toAddressHash: string, fromAddressHash?: string): Promise<void> { if (this.STATE === WalletState.EMPTY) { throw new Error(`ElectraJs.Wallet: You can't #send() from an empty wallet (#state = "EMPTY").`) } if (this.LOCK_STATE === WalletLockState.LOCKED) {
ise-uiuc/Magicoder-OSS-Instruct-75K
self.btn_about.setMaximumSize(QtCore.QSize(20, 20)) self.btn_about.setCursor(QtCore.Qt.PointingHandCursor) self.btn_about.setAutoFillBackground(True) self.btn_about.setText("") self.btn_about.setFlat(True) self.btn_about.setObjectName("btn_about") self.gridLayout.addWidget(self.btn_about, 0, 2, 1, 1) self.btn_settings = QtGui.QPushButton(self.centralWidget) self.btn_settings.setMinimumSize(QtCore.QSize(20, 20))
ise-uiuc/Magicoder-OSS-Instruct-75K
export default initTemplate
ise-uiuc/Magicoder-OSS-Instruct-75K
original_stdin = sys.stdin sys.stdin = io.BytesIO(self._TEST_DATA) input_reader = tools.StdinInputReader() string = input_reader.Read() self.assertEqual(string, u'A first string\n') string = input_reader.Read() self.assertEqual(string, u'A 2nd string\n') # UTF-8 string with non-ASCII characters. string = input_reader.Read() self.assertEqual(string, u'þriðja string\n')
ise-uiuc/Magicoder-OSS-Instruct-75K
config["LOWEST_CPU"] = "arm11mpcore" config["ENABLE_HARD"] = get_yes_no("Enable VFP ABI", True) if not config["ENABLE_HARD"]: config["ENABLE_THUMB"] = get_yes_no("Enable Thumb") import sys sys.argv=["","kernel/mmaps/3ds11.mc"]
ise-uiuc/Magicoder-OSS-Instruct-75K
lg.debug('x={}'.format(x)) lg.debug('y={}'.format(y)) lg.debug('kwargs={}'.format(kwargs))
ise-uiuc/Magicoder-OSS-Instruct-75K
let insertChange = changes[insertIndex].insert! let deleteChange = changes[deleteIndex].delete! let move = Move<T>(item: insert.item, fromIndex: deleteChange.index, toIndex: insertChange.index) // .insert can be before or after .delete
ise-uiuc/Magicoder-OSS-Instruct-75K
def run_montage(input_files, output_path): """Run exiftool in subprocess and return the output""" # montage -geometry 300x300+10+10 -label '%f' -fill "#ffffff" -background "#111111" *.jpg index.jpg output_path = Path(output_path)
ise-uiuc/Magicoder-OSS-Instruct-75K
try: if not(os.path.isdir(dir)): os.makedirs(os.path.join(dir)) except OSError as e: if e.errno != errno.EEXIST: print("Failed to create directory!!!!!") raise print("Generating post : ",f_dir) with open(f_dir, 'w') as f:
ise-uiuc/Magicoder-OSS-Instruct-75K
# [-3, 7, -9, 10] # # ]) # b=torch.argmax(a,dim=1) # # x=torch.tensor([ # [0.1,0.2,0.7], # [0.8,0.1,0.1] # ])
ise-uiuc/Magicoder-OSS-Instruct-75K
// Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "iioservice/libiioservice_ipc/sensor_client.h" #include <memory>
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_increment_by_one(): assert increment_by_one(3) == 4
ise-uiuc/Magicoder-OSS-Instruct-75K
for root, _, files in os.walk(folder_path): for file_ in files: file_lower = file_.lower() if file_lower.endswith(tuple(['.zip', '.rar', '.7z'])): file_path_zip = os.path.join(root, file_) list_file_path_zip.append(file_path_zip) return list_file_path_zip def get_list_dict(list_file_path_zip, document_hashtag): l = [] for index, file_path in enumerate(list_file_path_zip): d = {} index_str = f'{index+1:03}'
ise-uiuc/Magicoder-OSS-Instruct-75K
});
ise-uiuc/Magicoder-OSS-Instruct-75K
/** Use `.toBeDefined` to check that a variable is not undefined * ```ts * import { expect, test } from "https://deno.land/x/unitest@$VERSION/mod.ts"; * * test("there is a new flavor idea", () => {
ise-uiuc/Magicoder-OSS-Instruct-75K
fondo_base = False else: fondo_base = True pass
ise-uiuc/Magicoder-OSS-Instruct-75K
// @has with_primitives.json "$.index[*][?(@.name=='WithPrimitives')].visibility" \"public\" // @has - "$.index[*][?(@.name=='WithPrimitives')].kind" \"struct\" // @has - "$.index[*][?(@.name=='WithPrimitives')].inner.generics.params[0].name" \"\'a\" // @has - "$.index[*][?(@.name=='WithPrimitives')].inner.generics.params[0].kind" \"lifetime\" // @has - "$.index[*][?(@.name=='WithPrimitives')].inner.struct_type" \"plain\" // @has - "$.index[*][?(@.name=='WithPrimitives')].inner.fields_stripped" true pub struct WithPrimitives<'a> {
ise-uiuc/Magicoder-OSS-Instruct-75K
model.evaluate(x_test, y_test, verbose = 2)
ise-uiuc/Magicoder-OSS-Instruct-75K
print('O triplo de {} é igual a {}.'.format(num, triplo)) print('A raiz quadrada de {} é igual a {:.2f}.'.format(num, raiz))
ise-uiuc/Magicoder-OSS-Instruct-75K
/home/runner/.cache/pip/pool/f5/c1/0f/e7b8b80a368c9841621dc7d1939541c14648fb37079b8f125b2fcda6ba
ise-uiuc/Magicoder-OSS-Instruct-75K
##! ##! Sets Analytical Evolute colors. ##! def Evolute_Analytical_Colors(self): bcolor=self.BackGround_Color() self.Curve_Colors_Take(self.Color_Schemes_Analytical[ bcolor ])
ise-uiuc/Magicoder-OSS-Instruct-75K
let mut left = Message { note: "left", counter: &mut count };
ise-uiuc/Magicoder-OSS-Instruct-75K
return $this->hasOne('App\Models\Tipousuario', 'idTipoUsuario', 'idTipoUsuarioFK'); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
__version__ = "0.5.0"
ise-uiuc/Magicoder-OSS-Instruct-75K
# new data_dir = '/media/inch/ubuntu/data/Competition/data/RSC_data/' train_images_dir = os.path.join(data_dir, 'train/images') train_labels_dir = os.path.join(data_dir, 'train/labels') val_images_dir = os.path.join(data_dir, 'val/images') val_labels_dir = os.path.join(data_dir, 'val/labels') if not os.path.exists(train_images_dir): os.makedirs(train_images_dir)
ise-uiuc/Magicoder-OSS-Instruct-75K
ip link set dev $swp3 up ip link add name br1 type bridge vlan_filtering 1 ip link set dev br1 up
ise-uiuc/Magicoder-OSS-Instruct-75K
return this; } public TgUnionType2 getUnion2() { return union2; } @Observable public TgUnion setUnion1(final TgUnionType1 union1) { this.union1 = union1; return this; }
ise-uiuc/Magicoder-OSS-Instruct-75K
public static void Shuffle<E>(this List<E> list) { Random random = new Random(); while (list.Count > 0) { int randomIndex = random.Next(0, list.Count); list.Add(list[randomIndex]); list.RemoveAt(randomIndex); } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
''' import numpy as np def LAMBDA( ahat, Qahat, ncands = 2 ): ###########################################################################
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_read_write() -> None: spots = make_spots() with TemporaryDirectory() as dirpath: zarr_directory = Path(dirpath) / "archive.zarr" spots.save_zarr(url=zarr_directory) see_spot_run = spots.load_zarr(f"{zarr_directory}.{SPOTS_NAME}.zarr") # assert that data aren't mutated upon reading assert see_spot_run.identical(spots)
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash FILE=/usr/local/bin/kcov if [ ! -f "$FILE" ]; then echo "$FILE does not exist" wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz tar xzf master.tar.gz cd kcov-master mkdir build
ise-uiuc/Magicoder-OSS-Instruct-75K
actual atoms of the bulk mpid : str mpid of the bulk bulk_sampling_str : str string capturing the bulk index and number of possible bulks
ise-uiuc/Magicoder-OSS-Instruct-75K
formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser = self.initialize(parser) # get the basic options opt, _ = parser.parse_known_args()
ise-uiuc/Magicoder-OSS-Instruct-75K
if a.GetIdx() == c.GetIdx() or d.GetIdx() == b.GetIdx(): continue ap = atom_map[a] bp = atom_map[b] cp = atom_map[c] dp = atom_map[d] if a.GetAtomicNum() == ap.GetAtomicNum() \ and b.GetAtomicNum() == bp.GetAtomicNum() \ and c.GetAtomicNum() == cp.GetAtomicNum() \ and d.GetAtomicNum() == dp.GetAtomicNum(): angle = oechem.OEGetTorsion(parent_mol, ap, bp, cp, dp)*oechem.Rad2Deg torsion_inchi = get_specific_dihedral_inchi_key(frag_mol, [a, b, c, d])
ise-uiuc/Magicoder-OSS-Instruct-75K
var r6 = c.y(); // error }
ise-uiuc/Magicoder-OSS-Instruct-75K
// Add a command to schedule a cronjob commands.addCommand(CommandIDs.addCron, { label: 'Schedule visualization', caption: 'Schedule recurring execution for visualizations', icon: runIcon, execute: async (args: any) => { // Create dialog for scheduling jobs const file = factory.tracker.currentWidget ? factory.tracker.currentWidget.selectedItems().next()
ise-uiuc/Magicoder-OSS-Instruct-75K
class SubstanceCVConverter(XmlConverter): def convert(self, xml): item = {} item["term_english_equiv"] = str(xml.attrib["term-english-equiv"]) item["term_id"] = str(xml.attrib["term-id"]) item["term_lang"] = str(xml.attrib["term-lang"]) item["term_revision_num"] = str(xml.attrib["term-revision-num"]) return item
ise-uiuc/Magicoder-OSS-Instruct-75K
def _parse_offset(raw_offset): """Parse the offset.""" if raw_offset is None: return timedelta(0) negative_offset = False if raw_offset.startswith('-'):
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>DilwoarH/digitalmarketplace-utils from dmutils.flask_init import pluralize import pytest
ise-uiuc/Magicoder-OSS-Instruct-75K
} fn set_aggregate(&mut self, signer: PublicAccount) { self.abs_transaction.set_aggregate(signer) } fn as_any(&self) -> &dyn Any {
ise-uiuc/Magicoder-OSS-Instruct-75K
# Cell # hide from sklearn.compose import ColumnTransformer, make_column_transformer from sklearn.pipeline import Pipeline from sklearn.impute import SimpleImputer
ise-uiuc/Magicoder-OSS-Instruct-75K
self.label_2 = QtWidgets.QLabel(Form) self.label_2.setGeometry(QtCore.QRect(350, 100, 201, 51)) font = QtGui.QFont() font.setFamily("Times New Roman") font.setPointSize(16) self.label_2.setFont(font) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.pswLE = QtWidgets.QLineEdit(Form) self.pswLE.setGeometry(QtCore.QRect(220, 230, 250, 30)) font = QtGui.QFont() font.setFamily("宋体") font.setPointSize(16)
ise-uiuc/Magicoder-OSS-Instruct-75K
if (m_pSuites[dwSuite].aiTests) delete [] m_pSuites[dwSuite].aiTests; } if (m_lpMachineName) delete [] m_lpMachineName; } DWORD CTSTestData::GetSuiteCount () const
ise-uiuc/Magicoder-OSS-Instruct-75K
try: DBNAME = config_obj.get('connection_info','dbname') USER = config_obj.get('connection_info','dbuser') connectionstring=("dbname={dbname} " "user={dbuser}" .format(dbname=DBNAME,dbuser=USER) ) conn = psy.connect(connectionstring) cursor = conn.cursor() except KeyboardInterrupt: print "Shutdown requested because could not connect to DB" except psy.Error as e:
ise-uiuc/Magicoder-OSS-Instruct-75K
from security.utils import can_choose_prisons def prison_choice_available(request): return { 'prison_choice_available': ( request.user.is_authenticated and can_choose_prisons(request.user) ) }
ise-uiuc/Magicoder-OSS-Instruct-75K
count += count_yes(group_answers, person_count) group_answers = {} person_count = 0 # Read answers else: person_count += 1 for char in line: # Increase question yes count if char in group_answers: group_answers[char] += 1 else:
ise-uiuc/Magicoder-OSS-Instruct-75K
} else { dPos?.next = pos dPos = pos } sFlag = !sFlag pos = pos?.next } sPos?.next = double.next dPos?.next = nil return single.next
ise-uiuc/Magicoder-OSS-Instruct-75K
# ../../efu/efu_stop.sh sleep 3 stopDaquiri #saveDaquiri #closeDaquiri 90
ise-uiuc/Magicoder-OSS-Instruct-75K
docker run -v $(pwd)/authdata.json:/usr/src/app/conf/authdata.json -v $(pwd)/data:/usr/src/app/localData -v $(pwd)/metadata:/usr/src/app/localMetadata -p 8000:8000 -d scality/s3server
ise-uiuc/Magicoder-OSS-Instruct-75K
from ledger.genesis_txn.genesis_txn_file_util import genesis_txn_file from plenum.bls.bls_key_manager_file import BlsKeyManagerFile from plenum.common.constants import NYM, VERKEY, ROLE, TARGET_NYM, ALIAS, NODE, \ DATA, CLIENT_IP, CLIENT_PORT, NODE_IP, \ NODE_PORT, SERVICES, BLS_KEY, VALIDATOR, TRUSTEE, STEWARD, BLS_KEY_PROOF, CURRENT_TXN_PAYLOAD_VERSIONS from plenum.common.test_network_setup import TestNetworkSetup from plenum.common.txn_util import getTxnOrderedFields, get_seq_no, get_txn_id, get_payload_data, get_type, get_version, \ get_protocol_version from plenum.common.util import randomString from storage import store_utils from stp_zmq.zstack import ZStack portsStart = 9600
ise-uiuc/Magicoder-OSS-Instruct-75K
page = 'saved' return _user_links(request, saved, page) def _user_links(request, queryset, page): queryset = queryset.order_by('-created_on')
ise-uiuc/Magicoder-OSS-Instruct-75K
img = img.crop((x, 0, x+w, w)).resize((320,320))
ise-uiuc/Magicoder-OSS-Instruct-75K
protected abstract void augmentPagination(Screen cern, Mechanism formerFormalities); }
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.contrib import admin from django.urls import path, include from mpulseapp.views import MemberView, MemberCreate, FileUploadView urlpatterns = [ #Path for admin page, mainly to check on model instamces instead of using SQLite DB browser path('admin/', admin.site.urls), #Path for REST Framework authentication, required path('api-auth/', include('rest_framework.urls')), #Path for member list view, support detail view with param id, ph, cmid, aid path('api/members/', MemberView.as_view(), name='post-list'), #Path for creating a new member over POST with form-data populated
ise-uiuc/Magicoder-OSS-Instruct-75K
} public function index() { return view('lad::artisans.index'); } public function run(Request $request) { $optionsArrKeys = $optionsArrValues = $optionsArr = [];
ise-uiuc/Magicoder-OSS-Instruct-75K
handle = fields.TypedField("Handle", WinHandle) type_ = fields.TypedField("Type", String)
ise-uiuc/Magicoder-OSS-Instruct-75K
.map(|s| usize::from_str(s).unwrap()) .collect(); let mut part = 1; loop { let mut configurations = HashSet::new(); configurations.insert(banks.clone()); let mut step = 1; loop { reallocate(&mut banks);
ise-uiuc/Magicoder-OSS-Instruct-75K
print("No") # The contest was not rated
ise-uiuc/Magicoder-OSS-Instruct-75K
('base', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='Product',
ise-uiuc/Magicoder-OSS-Instruct-75K
// // Created by Arthur Narimanov on 7/24/21. // import UIKit @main class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow?
ise-uiuc/Magicoder-OSS-Instruct-75K
def call_limit(count): def decorator(func): @functools.wraps(func) def wrapper(*args, **kw): if decorator.calls >= count:
ise-uiuc/Magicoder-OSS-Instruct-75K
[[ "${actual}" == "${expected}" ]] || \ fail "SHA256 for compressed archive file did not match. actual: ${actual}, expected: ${expected}" # Non-existent tag output_path="non-existent.tar.gz" "${generate_git_archive_sh}" --tag_name "v9999.0.0" --output "${output_path}" [[ -f "${output_path}" ]] || fail "Expected file to exist when tag does not exist. ${output_path}" [[ -s "${output_path}" ]] || \ fail "Expected file to not be empty for when tag does not exist. ${output_path}"
ise-uiuc/Magicoder-OSS-Instruct-75K