seed
stringlengths
1
14k
source
stringclasses
2 values
root = newNode; else last.Insert(tuple,newNode); // Replace old leaf with new node. // Put the old leaf into the new branch. newNode.Insert(TupleC(lil.Key()),place); // Go around again and try and add a leaf to the new node. place = newNode; } while(1); RavlAssertMsg(0,"Should never get here. "); //: Should never get this far. return LiteralIndexLeafC(); } //: Delete key from index. // returns true if key existed, false otherwise.
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertIsInstance(objs.array, self.link.xp.ndarray) self.assertEqual(objs.shape, (1, self.n_bbox))
ise-uiuc/Magicoder-OSS-Instruct-75K
this.buttons.hide('close'); this.buttons.hide('filter'); this.buttons.hide('search'); this.subscriptions.user = this.service.user.subscribe(user => { if (typeof(user) != 'undefined' && user != null) { this.form.controls.picture.setValue(user.picture); this.form.controls.username.setValue(user.username); if (typeof(user.name) != 'undefined' && user.name != null) { (this.form.controls.name as FormGroup).controls.last.setValue(user.name.last);
ise-uiuc/Magicoder-OSS-Instruct-75K
if after is not None: after() if onSuccess is not None: onSuccess(result,';time ellipased =>', timeEP.total_seconds() * 1000) return result except Exception as ex: if onError is not None: onError(ex) return call return decorator @interceptor( before=lambda:print('Before executing ....'), after=lambda:print('After executing ....'), onSuccess=lambda *x: print('Result =>',*x),
ise-uiuc/Magicoder-OSS-Instruct-75K
const CONFIG_FILE = '.zombiesconfig';
ise-uiuc/Magicoder-OSS-Instruct-75K
// Upgrade the key_size if the client is bigger let encryption = mesh_hello_upgrade_key(key_size, hello_client.key_size); // Send over the hello message and wait for a response trace!("server sending hello (wire_format={})", wire_format); let hello_server = ReceiverHello {
ise-uiuc/Magicoder-OSS-Instruct-75K
assert!(output.status.success()); let mut reading = false; for line in stdout.lines() { if line.contains("END") { break; } if reading { let first_quote = line.find('"').unwrap();
ise-uiuc/Magicoder-OSS-Instruct-75K
if rwx[2] == 'x': digit += 1 return digit class FilePerm:
ise-uiuc/Magicoder-OSS-Instruct-75K
// Created by Jake Heiser on 3/29/18. // class CleanCommand: FlockCommand { let name = "clean" let shortDescription = "Clean the Flock build directory"
ise-uiuc/Magicoder-OSS-Instruct-75K
echo $_SERVER['REMOTE_ADDR']."<br>"; //1 echo $_SERVER['DOCUMENT_ROOT']."<br>"; //C:/xampp/htdocs echo $_SERVER['SERVER_SOFTWARE']."<br>"; //Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/8.0.5 ?> </body> </html>
ise-uiuc/Magicoder-OSS-Instruct-75K
AssignmentFactorySelector, Matcher, ValuesMapper, ) from di.core.assignment.factories import (
ise-uiuc/Magicoder-OSS-Instruct-75K
class ColorWriter(TextResource.TextResource):
ise-uiuc/Magicoder-OSS-Instruct-75K
context.request('POST', '/getTorrent', '{}') torrent = json.loads(context.getresponse().read()) if torrent.label is not str(None) or not torrent.label.lower() in ['BakaBT']: context.request('POST', '/stopTorrent', json.dump({'hash': torrent.info_hash})) print 'Stopping torrent' # Script is done, ensure interface knows it.
ise-uiuc/Magicoder-OSS-Instruct-75K
for action in data: actionInfo = ActionInformation.FromMapping(action) if actionInfo is not None: actionList.append(actionInfo) else:
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "Makefile.spc: #define IDO_SUBST(fc,oe,ne) $(?F:oe=ne)" echo "Makefile.spc: #define IC_CFLAGS" echo "Makefile.spc: #define ICSHARED -K PIC" echo "Makefile.spc: #define ICC /opt/SUNWspro/SC2.0.1/cc" echo "DocInstall.spc: #define ITAR tar xf /dev/rst8 \\ \$ sh xtract lelisp" echo "DocInstall.spc: #define IOS SOLARIS2.x" echo "DocInstall.spc: #define IMACHINE Sparc"
ise-uiuc/Magicoder-OSS-Instruct-75K
// sim.start(); // sim.clear_mem(); // // println!(" - forward: {}", sim); // // let mut sim = Sim::new(model.1.clone());
ise-uiuc/Magicoder-OSS-Instruct-75K
LogError("MonumentFinder is not loaded, get it at http://umod.org."); return false;
ise-uiuc/Magicoder-OSS-Instruct-75K
/* * NOTE FOR DEVELOPERS: *
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_dataset_name(mode): if mode == "bdd": return "BDDDataset_for_deeplab" if mode == "celebamhq": return "CelebAMaskHQDataset_for_deeplab" else: ValueError("There is no such dataset regime as %s" % mode) def get_dataloaders(opt): dataset_name = get_dataset_name(opt.dataset_mode)
ise-uiuc/Magicoder-OSS-Instruct-75K
for (Vector3f vec : vectors) { retVerts.put(vec.getX()); retVerts.put(vec.getY()); retVerts.put(vec.getZ()); } return retVerts.flip(); } /** * Create a float buffer from an array of vectors. The coordinates for each * vector are put into the buffer in order. * * @param vectors The array of vectors.
ise-uiuc/Magicoder-OSS-Instruct-75K
declare(strict_types=1); namespace dogit\tests;
ise-uiuc/Magicoder-OSS-Instruct-75K
import socket TCP_IP = '192.168.127.12' TCP_PORT = 5005 BUFFER_SIZE = 100 while 1: MESSAGE = input('Enter text') s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((TCP_IP, TCP_PORT)) s.send(MESSAGE.encode('utf-8'))
ise-uiuc/Magicoder-OSS-Instruct-75K
if l > len(v2): l = len(v2) # try to determine within the common length for i in range(l): if compareElements(v1[i], v2[i]): return compareElements(v1[i], v2[i]) # if the lists are identical till the end of the shorther string, try to compare the odd tail #with the simple space (because the 'alpha', 'beta', 'preview' and 'rc' are LESS then nothing)
ise-uiuc/Magicoder-OSS-Instruct-75K
class LetInNode(AtomicNode): def __init__(self, declaration_list, expr): Node.__init__(self) self.declaration_list = declaration_list self.expr = expr class BlockNode(AtomicNode): def __init__(self, expr_list): Node.__init__(self) self.expr_list = expr_list class ParentesisNode(AtomicNode): def __init__(self, expr): Node.__init__(self)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.keys = ["!info", ".info"] self.permissions = ["*"]
ise-uiuc/Magicoder-OSS-Instruct-75K
@client.event async def on_message_edit(_: discord.Message, message: discord.Message): await handle_commands(message) @client.event async def on_member_join(mem: discord.Member): if mem.guild.id == EX_SERVER: await send_log_message(f"{mem.display_name} has joined the server", discord.Embed.Empty, mem, discord.Colour.green(), client) channel = client.get_channel(EX_WELCOME_CHANNEL) mention = await channel.send(f"<@!{mem.id}>")
ise-uiuc/Magicoder-OSS-Instruct-75K
for job in $pidlist do echo $job wait $job || let "FAIL+=1" done
ise-uiuc/Magicoder-OSS-Instruct-75K
class Migration(migrations.Migration): dependencies = [ ('ct', '0015_migrate_fsm'), ] operations = [ migrations.AlterField( model_name='concept', name='title', field=models.CharField(max_length=200), preserve_default=True, ),
ise-uiuc/Magicoder-OSS-Instruct-75K
location = TextField() sensor = TextField() server = TextField() class Meta: database = db # This model uses the "database.db" class Humidity(Model): humidity = FloatField() timestamp = DateTimeField() location = TextField() sensor = TextField() server = TextField() class Meta:
ise-uiuc/Magicoder-OSS-Instruct-75K
Session::set('adminid',$admin['adid']); // $this->redirect('video/index'); return 3; } }else{ // echo "<script>alert('用户不存在');</script>"; return 2; } }else{ $admin=Db::name('幼儿园管理员')->where("kadacc",$a)->find(); // echo $admin=Db::name('admins')->getLastSQL(); if($admin){ //密码错误
ise-uiuc/Magicoder-OSS-Instruct-75K
# Input data _input_passcode = '<PASSWORD>' def setUp(self): GaiaTestCase.setUp(self) # Turn off geolocation prompt
ise-uiuc/Magicoder-OSS-Instruct-75K
f"{device_name}-{package}", strategy={'xor_synthesis': 'on'}) f_sum = run("wire Y4; OR3 o1(Y2, Y1, Y3, Y4); DFF ff(1'b0, Y4, Q);") f_ar = run("wire Y4; OR2 o1(Y1, Y2, Y4); DFFAR ff(1'b0, Y3, Y4, Q);") # PT3 can be either a part of the sum term, or serve as async reset.
ise-uiuc/Magicoder-OSS-Instruct-75K
{ Q.Dequeue().Dispose(); } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
import getopt from astropy.io import fits from astropy.table import Table import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Ellipse import matplotlib.colors as mcolors
ise-uiuc/Magicoder-OSS-Instruct-75K
Route::post('/role/create', [RoleController::class, 'roleCreate']); Route::get('/role/edit/{id}', [RoleController::class, 'roleEdit']); Route::post('/role/update/{id}', [RoleController::class, 'roleUpdate']);
ise-uiuc/Magicoder-OSS-Instruct-75K
if r > 0: pvalue = 1 - np.exp(-r*2*absmin_dt) ### cumulative probability of observing min_dt <= observed min_dt | estimated rate, the factor of 2 comes from looking on either side of the specified gps time else: pvalue = 1 ### limit is not great here...need to add CI
ise-uiuc/Magicoder-OSS-Instruct-75K
// import Foundation
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 #!/usr/bin/env bash # Copyright 2019 The Kubernetes Authors. # # 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
ise-uiuc/Magicoder-OSS-Instruct-75K
from .interfaces import IInterfaceDeclaration
ise-uiuc/Magicoder-OSS-Instruct-75K
} public void setMin(double min) { this.min = min; } public void setMax(double max) { this.max = max; } @Override public void setProb(double prob) {
ise-uiuc/Magicoder-OSS-Instruct-75K
# Create the container (outer) email message TO = SMTP_RECIPIENT FROM = SMTP_USERNAME msg = MIMEMultipart() msg.preamble = 'Rpi Sends image' # Attach the image fp = open('i1.jpg', 'rb') img = MIMEImage(fp.read()) fp.close()
ise-uiuc/Magicoder-OSS-Instruct-75K
ThrowIfFailed(_d3d12Device->CreateFence(_fenceValues[_frameIndex], D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(_fence.GetAddressOf()))); _fenceValues[_frameIndex]++; // Create an event handle to use for frame synchronization. _fenceEvent = CreateEvent(nullptr, FALSE, FALSE, nullptr); if (_fenceEvent == nullptr) {
ise-uiuc/Magicoder-OSS-Instruct-75K
]).where( and_( tableclause1.c.mime_type == FILE_MIME_TYPE_MAP, tableclause1.c.content_id == tableclause2.c.id ) )) with open(schema_file, 'rb') as f:
ise-uiuc/Magicoder-OSS-Instruct-75K
args.push_back(argv[i]); } Sprite::instance().init(args,fps); Shader shader("./Shader/vertexShader.glsl", "./Shader/fragmentShader.glsl"); glUseProgram(shader.id); assert(glGetError() == 0); while (1)
ise-uiuc/Magicoder-OSS-Instruct-75K
'''parse a post body''' return {k: v[0].decode('utf-8') for (k, v) in args.items()} def create_zip(files):
ise-uiuc/Magicoder-OSS-Instruct-75K
# print all_symbol pass
ise-uiuc/Magicoder-OSS-Instruct-75K
let offset: u64 = u64::from_le_bytes(buf); if offset == 0 { break; } else if offset + (length as u64) > iso_size { bail!( "Kargs area end outside ISO ({}+{} vs {})", offset,
ise-uiuc/Magicoder-OSS-Instruct-75K
echo(f"* ", fg=teal, nl=False) echo(f"Automatic help page generation") echo(f"* ", fg=aquamarine, nl=False) echo(f"Highlighting") echo(f"* ", fg=khaki, nl=False) echo(f"Lightweight")
ise-uiuc/Magicoder-OSS-Instruct-75K
public function getContent() { return $this->content;
ise-uiuc/Magicoder-OSS-Instruct-75K
if [ "$STDVERSION" != "c++98" ]; then CXXFLAGS="$CXXFLAGS -Wno-zero-as-null-pointer-constant -Wno-c++98-compat" fi if [ "$STDVERSION" == "c++98" ]; then CXXFLAGS="$CXXFLAGS -Wno-suggest-destructor-override -Wno-suggest-override" fi function compile_test {
ise-uiuc/Magicoder-OSS-Instruct-75K
import android.graphics.Typeface; import android.os.Build.VERSION; import android.os.CancellationSignal; import android.support.v4.content.res.FontResourcesParserCompat.FamilyResourceEntry; import android.support.v4.content.res.FontResourcesParserCompat.FontFamilyFilesResourceEntry; import android.support.v4.content.res.FontResourcesParserCompat.ProviderResourceEntry; import android.support.v4.provider.FontsContractCompat; import android.support.v4.provider.FontsContractCompat.FontInfo; import android.support.v4.util.LruCache; import android.widget.TextView; public class TypefaceCompat
ise-uiuc/Magicoder-OSS-Instruct-75K
@abstractmethod def executeinstruction(self, robot, table): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
manager = Manager(app) @manager.command def createDB(drop_first=False): ''' Create the database ''' if drop_first:
ise-uiuc/Magicoder-OSS-Instruct-75K
<div style="margin-bottom:5px;"> <input type="hidden" id="id" name="Id" />
ise-uiuc/Magicoder-OSS-Instruct-75K
5: 'm', 6: 'c', 7: 'd', 8: '', 9: 'd', 10: 'h', 11: 'K',
ise-uiuc/Magicoder-OSS-Instruct-75K
option_list = AppCommand.option_list + ( make_option('--database', action='store', dest='database', default=DEFAULT_DB_ALIAS, help='Nominates a database to print the ' 'SQL for. Defaults to the "default" database.'), ) output_transaction = True def handle_app(self, app, **options): return u'\n'.join(sql_custom(app, self.style, connections[options.get('database')])).encode('utf-8')
ise-uiuc/Magicoder-OSS-Instruct-75K
public protocol AbstractBinderDataSource: class { associatedtype View: UpdatableView var model: [SectionViewModel] { get set } var view: View? { get set } } open class BinderDataSource<View: UpdatableView>: NSObject, AbstractBinderDataSource { private var _model: [SectionViewModel]
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ public class ByteWord { private final byte[] bytes; /** * Instantiates a new Byte word. * * @param bytes the bytes */ public ByteWord(byte[] bytes) { this.bytes = bytes;
ise-uiuc/Magicoder-OSS-Instruct-75K
rpc_address \
ise-uiuc/Magicoder-OSS-Instruct-75K
time.sleep(0.1)
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Log the message that caused the update Args: update (Update): update event context (CallbackContext): context passed by the handler """ if update.message: try: with open(get_abs_path("logs", "messages.log"), "a", encoding="utf8") as log_file:
ise-uiuc/Magicoder-OSS-Instruct-75K
public class OrganizationRequest { public string Query { get; set; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
int32x4_t vqdmlsl_s16(int32x4_t N, int16x4_t M, int16x4_t P); int64x2_t vqdmlsl_s32(int64x2_t N, int32x2_t M, int32x2_t P); } // namespace pxl
ise-uiuc/Magicoder-OSS-Instruct-75K
return field; } @Override public Collection<T> getValue() { return value;
ise-uiuc/Magicoder-OSS-Instruct-75K
} socket->deleteLater(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
""" pass
ise-uiuc/Magicoder-OSS-Instruct-75K
from build.platform.python.tests import testlib PYTHON_VERSIONS = ["2.7", "3.4", "3.5", "3.6"] # 3.7, 3.8 are not runnable
ise-uiuc/Magicoder-OSS-Instruct-75K
Problem:
ise-uiuc/Magicoder-OSS-Instruct-75K
) grid0.addWidget(self.fuse_tools_cb, 20, 0, 1, 2)
ise-uiuc/Magicoder-OSS-Instruct-75K
tf.app.flags.DEFINE_float("max_gradient_norm", 5.0, "Clip gradients to this norm.") tf.app.flags.DEFINE_integer("batch_size", 16, "Batch size to use during training.") tf.app.flags.DEFINE_integer("size", 128, "Size of each model layer.") tf.app.flags.DEFINE_integer("word_embedding_size", 128, "Size of the word embedding") tf.app.flags.DEFINE_integer("num_layers", 1, "Number of layers in the model.") tf.app.flags.DEFINE_integer("in_vocab_size", 10000, "max vocab Size.") tf.app.flags.DEFINE_integer("out_vocab_size", 10000, "max tag vocab Size.") tf.app.flags.DEFINE_string("data_dir", "/tmp", "Data directory") tf.app.flags.DEFINE_string("train_dir", "/tmp", "Training directory.") tf.app.flags.DEFINE_integer("max_train_data_size", 0,
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * @return string */ public function getDirection() { return $this->direction; } /** * @param string $direction
ise-uiuc/Magicoder-OSS-Instruct-75K
* 这样下去....直到剩下最后一个小朋友,可以不用表演,并且拿到牛客名贵的“名侦探柯南”典藏版(名额有限哦!!^_^)。 * 请你试着想下,哪个小朋友会得到这份礼品呢?(注:小朋友的编号是从0到n-1) * * 如果没有小朋友,请返回-1 */ /** * Created by wcxdhr on 2020-02-21. */ public class LastRemaining { /** * 官方题解:
ise-uiuc/Magicoder-OSS-Instruct-75K
'UC_ATLAS_MWT2' : {'nickname':'UC_ATLAS_MWT2-condor','status':'OK'}, 'UC_ATLAS_test' : {'nickname':'UC_ATLAS_MWT2-condor','status':'OK'}, 'UC_Teraport' : {'nickname':'UC_Teraport-pbs','status':'notOK'}, 'UMESHTEST' : {'nickname':'UMESHTEST','status':'notOK'}, 'UNI-FREIBURG' : {'nickname':'UNI-FREIBURG-ce-atlas-pbs','status':'OK'},
ise-uiuc/Magicoder-OSS-Instruct-75K
void Shoot() { Instantiate(bulletPrefab, DronefirePoint.position, DronefirePoint.rotation); }
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash # Simple Bash script for a reverse shell
ise-uiuc/Magicoder-OSS-Instruct-75K
</form> <table class="table"> <tr> <th>NO</th> <th>NAMA DOSEN</th> <th>NIM</th> <th>TANGGAL LAHIR</th>
ise-uiuc/Magicoder-OSS-Instruct-75K
root.render_template('index.html')
ise-uiuc/Magicoder-OSS-Instruct-75K
nn.ReLU(), nn.Linear(1024, 1024), nn.ReLU(), nn.Linear(1024, 1024), nn.ReLU(), nn.Linear(1024, 1024), nn.ReLU(), nn.Linear(1024, 10), nn.Softmax(dim=-1), ) def forward(self, x): return self.main(x)
ise-uiuc/Magicoder-OSS-Instruct-75K
* Make a computer file size (2 kB to 2048) * @param string $str file size in a fancy format * @return int a file size in bytes
ise-uiuc/Magicoder-OSS-Instruct-75K
do set ${x//,/ } echo $1 $2 done for x in apple,green strawberry,red banana,yellow do xsplit=(${x//,/ }) echo "${xsplit[0]}s are ${xsplit[1]}" done
ise-uiuc/Magicoder-OSS-Instruct-75K
{ $categories = DB::table('table_category')->where('category_id',$category_id)->get(); return view('master.edit',['categories' => $categories]); }
ise-uiuc/Magicoder-OSS-Instruct-75K
ax.hist(bins[:-1], bins=bins, weights=counts, histtype='bar', edgecolor=None, color='steelblue', alpha=0.9, **kwargs) def _add_rugplot(self, data, ax=None, **kwargs): """ Rug plot
ise-uiuc/Magicoder-OSS-Instruct-75K
extension PXCardSliderPagerCell { private func setupContainerView(_ masksToBounds: Bool = false) { containerView.layer.masksToBounds = masksToBounds containerView.removeAllSubviews() containerView.backgroundColor = .clear
ise-uiuc/Magicoder-OSS-Instruct-75K
is_blocked = "1" if is_blocked else "0" info_dict = { "mac": mac, "name": name, "is_blocked": is_blocked, "down_limit": down_limit,
ise-uiuc/Magicoder-OSS-Instruct-75K
pub struct DaoIdError; impl common_rpc::GetError for DaoIdError { fn get_error() -> common_rpc::Error {
ise-uiuc/Magicoder-OSS-Instruct-75K
password = argv[2] data_type = argv[3] start_year = int(argv[4]) end_year = int(argv[5]) leiden_input = argv[6] #quality_func_Res --> CPM_R001 schema = argv[7] rootdir = argv[8] # "/erniedev_data3/theta_plus/Leiden/" sql_scheme = 'postgresql://' + user_name + ':' + password + '@localhost:5432/ernie' engine = create_engine(sql_scheme) data_name = data_type + str(start_year) + '_' + str(end_year) # Read from Postgres
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_kernel_getitem_single_batch(self): kernel = self.create_kernel_no_ard(batch_shape=torch.Size([2])) x = self.create_data_single_batch() res1 = kernel(x).evaluate()[0] # Result of first kernel on first batch of data randn_weights = kernel.randn_weights new_kernel = kernel[0] new_kernel._init_weights(randn_weights=randn_weights[0]) res2 = new_kernel(x[0]).evaluate() # Should also be result of first kernel on first batch of data. self.assertLess(torch.norm(res1 - res2) / res1.norm(), 1e-4) def test_kernel_getitem_double_batch(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
working_instance = getattr(working_instance, field) else: raise ValueError("missing sub-field in username search: {}".format(field)) username = working_instance() else: username = getattr(instance, settings.COTURN_USERNAME_FIELD) username = username() if not hasattr(settings, "COTURN_REALM"): raise ValueError("Coturn - missing COTURN_REALM entry in settings.py")
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Principal Component Analysis. Parameters: data - data matrix with observations on rows and variables on columns frac - percent of variation to keep, between 0 and 1 (defaults to 1) Returns: evecs - most important principal components (eigenvectors) evals - corresponding eigenvalues """ mn = data.mean(axis=0) data = data - mn # center data C = cov(data.T) # calculate covariance matrix evals, evecs = linalg.eig(C) # calculate eigenvectors and eigenvalues idx = argsort(evals)[::-1] # sort both in decreasing order of evals
ise-uiuc/Magicoder-OSS-Instruct-75K
use util::vnet::net::*; async fn create_listening_test_client(rto_in_ms: u16) -> Result<Client> { let conn = UdpSocket::bind("0.0.0.0:0").await?;
ise-uiuc/Magicoder-OSS-Instruct-75K
__lock = threading.Lock() def __init__(self, target, target_args=(), callback=None, callback_args=(), *args, **kwargs):
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self): mmiodev.__init__(self) self.addReg('sha_start', 0xfe00, 1, readonly=True) self.addReg('sha_state', 0xfe01, 1, readonly=True) self.addReg('sha_rdaddr', 0xfe02, 2) self.addReg('sha_wraddr', 0xfe04, 2)
ise-uiuc/Magicoder-OSS-Instruct-75K
else: tmpFig.show() #add array dictionary aDict = dict()
ise-uiuc/Magicoder-OSS-Instruct-75K
def shutdown(): returncode = subprocess.call("sudo shutdown -h now", shell=True) def mute(): returncode = subprocess.call("sudo amixer cset numid=2 0", shell=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>100-1000 import OpenEXR import Imath import numpy as np import simpleimageio as sio width = 420 height = 32 border_left = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
public void OnProgressChanged(Step step, int current, int total, object tag) { }
ise-uiuc/Magicoder-OSS-Instruct-75K
register(PathsFactory) register(PathItemFactory) register(OperationFactory)
ise-uiuc/Magicoder-OSS-Instruct-75K
data.write_file( fn, routine )
ise-uiuc/Magicoder-OSS-Instruct-75K
keyNormalizer, errors, services, logger) { } }
ise-uiuc/Magicoder-OSS-Instruct-75K
import torch import torchvision.transforms.functional as TF class RandomHorizontalFlip:
ise-uiuc/Magicoder-OSS-Instruct-75K