seed
stringlengths
1
14k
source
stringclasses
2 values
assert ( updatedInfo.id == fileInfo.id ); currentUpdateIdentifier_ = updateIdent; LOG_INFO << "got update request ident:" << updateIdent; fileInfo = updatedInfo; string contents = SlurpFile ( fileInfo.name.c_str() ); currentChunks_ = parser.parseRmdSource ( contents ); bool usePrevious = includePrevious; int ta...
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.urls import path class CustomAdminSite(AdminSite): def get_urls(self): from degvabank.core import views urls = super().get_urls() my_urls = [ path( 'reports/client_transaction/', self.admin_view(views.ReportClientTransaction.as_view()...
ise-uiuc/Magicoder-OSS-Instruct-75K
from torch.utils.data import Dataset import os # Function to make dataset object class DatasetGenerator(Dataset): def __init__ (self, input_images, transform): ImageFile.LOAD_TRUNCATED_IMAGES = True
ise-uiuc/Magicoder-OSS-Instruct-75K
alarmTVC.navigationController?.navigationBar.largeTitleTextAttributes = UIColor.whiteTextColorAttribution alarmTVC.navigationItem.title = "Alarm" alarmTVC.navigationItem.largeTitleDisplayMode = .always let stopwatchCoordinator = StopwatchCoordinatorImpl(navigationController: sto...
ise-uiuc/Magicoder-OSS-Instruct-75K
if (!potSurf.ok()) { showError(VideoStitch::Core::ControllerStatus( {VideoStitch::Origin::Output, VideoStitch::ErrType::SetupFailure, VideoStitcherSignalSlots::tr("Panorama snapshot failed").toStdString(), potSurf.status()})); return; } surf = potSurf.release(); } else { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
// tag == 1), the other is nil (tag == 2) let objects = nib.instantiate(withOwner: self, options: nil) let mapViews = objects.compactMap { $0 as? MapView } // Check MapView 1 -- connected in IB let mapView = mapViews.first { $0.tag == 1 }! XCTAssertNotNil(mapView.mapInit...
ise-uiuc/Magicoder-OSS-Instruct-75K
labels=10, # Number of labels to randomly select max_number=-1, # Maximum number of images to use size=(100, 100), # Size of the images
ise-uiuc/Magicoder-OSS-Instruct-75K
} // namespace widgets } // namespace vgc
ise-uiuc/Magicoder-OSS-Instruct-75K
virtual bool isStable(); };
ise-uiuc/Magicoder-OSS-Instruct-75K
import cv2 import numpy as np import numpy as cv #import cv2 as cv
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ public String toString() { StringBuffer sb = new StringBuffer(); sb.append("CollectionCertStoreParameters: [\n"); sb.append(" collection: " + coll + "\n"); sb.append("]"); return sb.toString(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
pub mod ws; #[cfg(feature = "h2c")] pub mod h2; #[cfg(feature = "tls")] pub mod tls; #[cfg(feature = "udp")] pub mod udp; #[cfg(feature = "quic")] pub mod quic; trait IOStream: AsyncRead + AsyncWrite + Send + Sync + Unpin {}
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param width floating point x-radius * @param height floating point y-radius */ public Fish1PaintStrategy(AffineTransform at, double x, double y, double width, double height) { super(at, Fish1PolygonFactory.Singleton.makeShape(x, y, width, height)); }
ise-uiuc/Magicoder-OSS-Instruct-75K
# Install API docs tool sudo dnf install zeal -y # Install Octave
ise-uiuc/Magicoder-OSS-Instruct-75K
resolution_text = html.unescape(xml.xpath('/WA/RESOLUTION/DESC')[0].text) resolution_author = xml.xpath('/WA/RESOLUTION/PROPOSED_BY')[0].text print(resolution_author) print(type(resolution_author)) if resolution_author is None or str(resolution_author).strip() == '':
ise-uiuc/Magicoder-OSS-Instruct-75K
for a in range(10, 0-1, -1): print(a, end='-') sleep(1)
ise-uiuc/Magicoder-OSS-Instruct-75K
wr2: ( SIZEOF( SELF\multiple_arity_generic_expression.operands ) = 3 ); wr3: is_int_expr( index1 ); wr4: is_int_expr( index2 ); END_ENTITY; -- substring_expression (line:31062 file:ap242ed2_mim_lf_v1.101.TY.exp)
ise-uiuc/Magicoder-OSS-Instruct-75K
TTS - Tiny Test System Copyright : TTS Contributors & Maintainers SPDX-License-Identifier: MIT **/
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash curl -sL https://run.linkerd.io/install | sh export PATH=$PATH:$HOME/.linkerd2/bin linkerd check && linkerd viz install | kubectl apply -f - linkerd check || exit 1
ise-uiuc/Magicoder-OSS-Instruct-75K
unset -f extract_version if [ "${BUNDLED_WITH}" != "${BUNDLER_VERSION}" ]; then gem install bundler -v "${BUNDLED_WITH}" --no-document --force fi bundle check || bundle install --jobs "${bundle_install_jobs}" --retry "${bundle_install_retry}" fi
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Y = check_array(Y, order='C', dtype=np.float64, ensure_2d=False, allow_nd=True, copy=False) random_state = check_random_state(self.random_state) # run the elbo optimization over different initializations seeds = random_state.randint(np.iinfo(np.int32...
ise-uiuc/Magicoder-OSS-Instruct-75K
expect(stateStub.calledWith({ open: true })).toBe(true); stateStub.restore();
ise-uiuc/Magicoder-OSS-Instruct-75K
set -e function check_deps() {
ise-uiuc/Magicoder-OSS-Instruct-75K
bitbuf.addTrackStart(); bitbuf.addGap(600); for (auto& sector : track) { if (sector.header.sector != 1) bitbuf.addSector(sector, 0x20); }
ise-uiuc/Magicoder-OSS-Instruct-75K
/bin/cp ./autopkg/app_list.txt /Users/Shared/autopkg/ # Copy recipe overrides into place echo "Installing autopkg recipe overrides..." /bin/cp -r ./autopkg/RecipeOverrides/* ~/Library/AutoPkg/RecipeOverrides/ # Copy ipfs middleware into place echo "Installing IPFS middleware..." /usr/bin/sudo /bin/cp -r ./middleware...
ise-uiuc/Magicoder-OSS-Instruct-75K
node.data = data; node.next = null; Node n = head; if(head == null) { head = node;
ise-uiuc/Magicoder-OSS-Instruct-75K
# Create destination directory for i in $dest_conf_dir $dest_log_dir; do if [ ! -d $i ]; then mkdir -p $i fi done # Hidden ssh-rsa hiddenSshRsa(){ sed -i 's/ssh-rsa.*$/ssh-rsa .../g' $1 }
ise-uiuc/Magicoder-OSS-Instruct-75K
fi get_OS choose_theme
ise-uiuc/Magicoder-OSS-Instruct-75K
from .models import Image,UserProfile
ise-uiuc/Magicoder-OSS-Instruct-75K
} else { format = DRM_FORMAT_RGB565; } adf_id_t* dev_ids = nullptr; ssize_t n_dev_ids = adf_devices(&dev_ids); if (n_dev_ids == 0) { return nullptr;
ise-uiuc/Magicoder-OSS-Instruct-75K
return false; } void parse_args(int argc, char **argv) { if (argc < 4) {
ise-uiuc/Magicoder-OSS-Instruct-75K
pub mod cpu_info; pub mod log; pub use ffi::block_on;
ise-uiuc/Magicoder-OSS-Instruct-75K
except tweepy.error.TweepError as te: print("Error {} occur during retweeting {}".format(te, tweet.text))
ise-uiuc/Magicoder-OSS-Instruct-75K
//} //protected virtual string GetSummaryText(Site site) //{
ise-uiuc/Magicoder-OSS-Instruct-75K
tasks = [Task.create("echo %d" % i) for i in range(10)] self.assertEqual(Task.find(5).id(), 5) self.assertEqual(Task.find(5), tasks[5]) if __name__ == '__main__': unittest.main()
ise-uiuc/Magicoder-OSS-Instruct-75K
from cymbology.identifiers.sedol import Sedol from cymbology.identifiers.cusip import Cusip, cusip_from_isin from cymbology.identifiers.isin import Isin __all__ = ('Sedol', 'Cusip', 'cusip_from_isin', 'Isin')
ise-uiuc/Magicoder-OSS-Instruct-75K
use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; use Validator; class SaveEmail implements ShouldQueue {
ise-uiuc/Magicoder-OSS-Instruct-75K
else: print('Begin Testing on CPU') with torch.autograd.set_grad_enabled(False): tic = time.time() phi_Z = net(im_noisy, 'test') toc = time.time() - tic err = phi_Z.cpu().numpy() print('Time: %.5f' % toc) if use_gpu: ...
ise-uiuc/Magicoder-OSS-Instruct-75K
newDataWithId.insert(NEMOQMLPLUGINS_SOCIAL_CONTENTITEMID, newData.value(FACEBOOK_ONTOLOGY_METADATA_ID));
ise-uiuc/Magicoder-OSS-Instruct-75K
self.new_list2 = ["file1"]
ise-uiuc/Magicoder-OSS-Instruct-75K
def plot3d(recons): recons = recons[0].detach().cpu().numpy().transpose(2,3,0,1) #n = random.randint(0,recons.shape[-1]-1) #frame = recons[:,:,n] plt.imshow(np.mean(recons,-1)) plt.title('Reconstruction: mean projection') plt.show() def plot_slider(x): plt.title('Reconstruction: frame %d'%(x...
ise-uiuc/Magicoder-OSS-Instruct-75K
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { guard let windowScene = (scene as? UIWindowScene) else { return } let window = UIWindow(windowScene: windowScene)
ise-uiuc/Magicoder-OSS-Instruct-75K
# run commands on VM via ssh # ssh into VM
ise-uiuc/Magicoder-OSS-Instruct-75K
beforeEach(() => { fixture = TestBed.createComponent(MultipleThemesComponent);
ise-uiuc/Magicoder-OSS-Instruct-75K
'access_token': token, 'token_type': 'Bearer', 'expired_at': datetime.datetime.utcnow() + api_settings.JWT_EXPIRATION_DELTA, 'user': UserSerializer(user, context={'request': request}).data }
ise-uiuc/Magicoder-OSS-Instruct-75K
} //297,二叉树的序列化与反序列化 class Codec { func serialize(_ root: TreeNode?) -> String { guard root != nil else{ return "";
ise-uiuc/Magicoder-OSS-Instruct-75K
def assign(service,arg): if service=="yongyou_u8": return True,arg def audit(arg): vun_url=arg+"R9iPortal/cm/cm_info_content.jsp?info_id=-12" payload="%20UNION%20ALL%20SELECT%2067,67,@@version,67,67,67,67,67,67,67,67,67,67,67--" code,head,res,errcode,finalurl=curl.curl2(vun_url+paylo...
ise-uiuc/Magicoder-OSS-Instruct-75K
setuptools.setup( name="jupyterlab_heroku", version=version_ns["__version__"], author="<NAME>", description="A server extension for the JupyterLab Heroku extension", long_description=long_description, long_description_content_type="text/markdown", packages=setuptools.find_packages(), ins...
ise-uiuc/Magicoder-OSS-Instruct-75K
class WorldOfGooEnv(vnc_env.VNCEnv): def __init__(self): super(WorldOfGooEnv, self).__init__() # TODO: set action space screen shape to match # HACK: empty keys list fails for some weird reason, give it an 'a' self.action_space = VNCActionSpace(keys=['a'], buttonmasks=[1])
ise-uiuc/Magicoder-OSS-Instruct-75K
pub const WHEAT: Color = Color::new(245, 222, 179, 255); pub const BURLYWOOD: Color = Color::new(222, 184, 135, 255); pub const TAN: Color = Color::new(210, 180, 140, 255); pub const ROSYBROWN: Color = Color::new(188, 143, 143, 255); pub const SANDYBROWN: Color = Color::new(244, 164, 96, 255); p...
ise-uiuc/Magicoder-OSS-Instruct-75K
@staticmethod def train():
ise-uiuc/Magicoder-OSS-Instruct-75K
/// \brief /// Enable the features /// \details /// This function enables the right featuers on the nRF24L01+ for example /// the no_ack functionality void enable_features();
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>Sheldelraze/flask-api-template # -*- coding: utf-8 -*- import flasgger import flask import config from controller import general_controller, sample_controller app = flask.Flask(__name__) # add blueprint app.register_blueprint(general_controller.general_app) app.register_blueprint(sample_controller.sample_a...
ise-uiuc/Magicoder-OSS-Instruct-75K
# -*- coding: utf-8 -*- """Manages custom event formatter helpers.""" class FormattersManager(object): """Custom event formatter helpers manager.""" _custom_formatter_helpers = {}
ise-uiuc/Magicoder-OSS-Instruct-75K
} impl Ipv6Header { /// Renamed to `Ipv6Header::from_slice` #[deprecated( since = "0.10.1", note = "Renamed to `Ipv6Header::from_slice`" )] #[inline] pub fn read_from_slice(slice: &[u8]) -> Result<(Ipv6Header, &[u8]), ReadError> { Ipv6Header::from_slice(slice) } //...
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1-10 #!/usr/bin/env python # -*- encoding: utf-8 -*- """
ise-uiuc/Magicoder-OSS-Instruct-75K
s1.get_data();
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, notify, event, timeout):
ise-uiuc/Magicoder-OSS-Instruct-75K
var placeOfBirth: String? var profilePath: String?
ise-uiuc/Magicoder-OSS-Instruct-75K
* * @Annotation * * @package App\Validator\Constraints */ class UniqueEntityProperty extends BaseUniqueEntityConstraint {
ise-uiuc/Magicoder-OSS-Instruct-75K
rarity: 'Rare', name: sheet.getCellByA1(`AX${x}`).value, parentA: sheet.getCellByA1(`AY${x}`).value, parentB: sheet.getCellByA1(`AZ${x}`).value, yield: sheet.getCellByA1(`BA${x}`).value, },
ise-uiuc/Magicoder-OSS-Instruct-75K
best3 = result[0][0][size-3]+letter.offset letra1 = chr(list_sort[0][0][size-1]+letter.offset)
ise-uiuc/Magicoder-OSS-Instruct-75K
For Expense flow, if the product has a 'reinvoice policy' and a Sales Order is set on the expense, then we will reinvoice the AAL """ self.ensure_one() if self.expense_id: # expense flow is different from vendor bill reinvoice flow return self.expense_id.product_id.expen...
ise-uiuc/Magicoder-OSS-Instruct-75K
} public IAdminAddPeer AddPeer { get; }
ise-uiuc/Magicoder-OSS-Instruct-75K
OfferCount { Condition: "new".to_string(), FulfillmentChannel: "Amazon".to_string(), Value: 1, }, OfferCount { Condition: "used".to_string(), FulfillmentChannel: "Amazon".to_string(), Value: 5, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
import os, sys
ise-uiuc/Magicoder-OSS-Instruct-75K
from pyrosetta.rosetta.core.pose import setPoseExtraScore import os, sys class FilterContainer(object): def __init__(self, workspace, pose, task_id='0000', score_fragments=False, test_run=False, fragment_full_chain=None): self.workspace = workspace self.task_id = task_id self.po...
ise-uiuc/Magicoder-OSS-Instruct-75K
} }); } } private boolean isDown = false; private Handler handler = new Handler() { @Override public void handleMessage(android.os.Message msg) { switch (msg.what) {
ise-uiuc/Magicoder-OSS-Instruct-75K
if (stk::parallel_machine_rank(comm) == 0) { std::cout << "Found " << task_names_.size() << " tasks\n"; for (auto ts: task_names_) { std::cout << " - " << ts << "\n"; } std::cout << std::endl; } } void PreProcessDriver::run() { bool dowrite = (stk::parallel_ma...
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_tweeprints(request): if request.method == 'GET': tweeprints = serialize('json', Tweeprint.objects.all(), fields=('id', 'date_added', 'link', 'tweet_id', 'tweet_json', 'score', 'category', 'category_slug')) return HttpResponse(tweeprints, content_type="application/json") def get_most_recent(...
ise-uiuc/Magicoder-OSS-Instruct-75K
import java.io.InputStream; import java.util.HashMap; /** * Hidden API Stub of class com.android.internal.util.XmlUtils. * @author canyie */ public final class XmlUtils { private XmlUtils() {
ise-uiuc/Magicoder-OSS-Instruct-75K
id: 5149481867, priority: 1, content: String::from("testy test"), checked: 0, description: String::from(""), due: None, is_deleted: 0, }) ); }
ise-uiuc/Magicoder-OSS-Instruct-75K
# The images are shifted one pixel along the height and width by slicing. pixel_dif1 = images[1:, :, :] - images[:-1, :, :] pixel_dif2 = images[:, 1:, :] - images[:, :-1, :]
ise-uiuc/Magicoder-OSS-Instruct-75K
args['-' + ch].append(True) if len(parts) > 1: args['-' + parts[0][-1]][-1] = parts[1]
ise-uiuc/Magicoder-OSS-Instruct-75K
expected = {'red': ({'key': 1, 'ubid': 'a'}, {'key': 4, 'ubid': 'd'}), 'blue': ({'key': 2, 'ubid': 'b'}, {'key': 3, 'ubid': 'c'})} result = specs.mapped(ubids=ubids, specs=registry) assert expected == result def test_exist(): registry = [{'key': 1, 'ubid': 'a'}, {'key...
ise-uiuc/Magicoder-OSS-Instruct-75K
return $labels; } public function rules() { $rules = []; foreach ($this->behaviors as $behavior) { if (method_exists($behavior, 'rules')) { $rules += $behavior->rules();
ise-uiuc/Magicoder-OSS-Instruct-75K
posterior = get_posterior(name) if args.test: args.steps = 100
ise-uiuc/Magicoder-OSS-Instruct-75K
@endif @if(session('warning')) <div class="alert alert-warning alert-dismissible fade show" role="alert" wire:ignore> <i class="mdi mdi-alert-outline mr-2"></i> {{ session('warning') }} <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidde...
ise-uiuc/Magicoder-OSS-Instruct-75K
* * Licensed under the Flora License, Version 1.1 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://floralicense.org/license/ * * Unless required by applicable law or agreed to in writing, software * distributed under th...
ise-uiuc/Magicoder-OSS-Instruct-75K
if nump_array.shape[0] != 3:
ise-uiuc/Magicoder-OSS-Instruct-75K
t = 180 for i in range(t, 1, -1): t = t - 5 if t > 150: print("Time:", t, "| Do another lap.") continue if t > 120:
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public final void setSerial(int serial) { this.serial = serial;
ise-uiuc/Magicoder-OSS-Instruct-75K
def onHomogeneousScatterer(self, hs):
ise-uiuc/Magicoder-OSS-Instruct-75K
Choose a random valid move ''' candidates = [] for c in range(1, game_state.board.num_cols +1): candidate = Point(row=len(game_state.board._grid_v2[c])+1,col=c)
ise-uiuc/Magicoder-OSS-Instruct-75K
// 2. 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. // // 3. Neither the name of the copyright holder(s) nor the names of any contributors // may be used t...
ise-uiuc/Magicoder-OSS-Instruct-75K
return [];
ise-uiuc/Magicoder-OSS-Instruct-75K
public func isEqual(to object: Any?) -> Bool { guard let object = object as? Status404 else { return false } guard self.message == object.message else { return false }
ise-uiuc/Magicoder-OSS-Instruct-75K
def rstrip_word(text, suffix):
ise-uiuc/Magicoder-OSS-Instruct-75K
http1.onreadystatechange = () => { if (http1.status === 401) { reject(401); } else if (http1.readyState === 4) { if (http1.status === 200) { const sessionId = JSON.parse(http1.responseText...
ise-uiuc/Magicoder-OSS-Instruct-75K
int PacketSource_Raven::ParseOptions(vector<opt_pair> *in_opts) { KisPacketSource::ParseOptions(in_opts); if (FetchOpt("device", in_opts) != "") {
ise-uiuc/Magicoder-OSS-Instruct-75K
# -*- coding: utf-8 -*- from FSICdata.version import MAJOR, MINOR, PATCH, VERSION as __version__
ise-uiuc/Magicoder-OSS-Instruct-75K
import uvicorn rprint("Starting app") rprint(dir(app)) rprint(app.url_path_for('websocket_endpoint')) uvicorn.run('chat:app', host=HOST, port=PORT, log_level='info', reload=True)#, uds='uvicorn.sock')
ise-uiuc/Magicoder-OSS-Instruct-75K
exit $ERRORCOUNT
ise-uiuc/Magicoder-OSS-Instruct-75K
# list to store clicked coordinates coords = []
ise-uiuc/Magicoder-OSS-Instruct-75K
fdao_mailman_override = use_mock(Mailman_DAO())
ise-uiuc/Magicoder-OSS-Instruct-75K
public function show($slug){ return view('blog_detail', ['side' => Blog::getProjectBySlug($slug)]); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.Collections.Generic; using System.Net; using System.IO; using UnityEngine; using UnityEngine.Networking; using UnityEngine.UI; using TMPro; public class DogamDetail : MonoBehaviour { private static DogamDetail _instance = null; public static DogamDetail instance
ise-uiuc/Magicoder-OSS-Instruct-75K
''' tot_len = vol.shape[0] nchunks = int(np.ceil(tot_len/chunk_size)) max_val, min_val = _find_min_max(vol, normalize_sampling_factor) proc_times = [] copy_to_times = []
ise-uiuc/Magicoder-OSS-Instruct-75K
import matplotlib.pyplot as plt import pandas as pd
ise-uiuc/Magicoder-OSS-Instruct-75K
ioni_android_boat('\uf36a'), ioni_android_bookmark('\uf36b'), ioni_android_bulb('\uf36c'),
ise-uiuc/Magicoder-OSS-Instruct-75K