seed
stringlengths
1
14k
source
stringclasses
2 values
//! Return the cost of a ray-plane intersection test Float getTraversalCost() const noexcept override; //! Return the normal of the plane const Vector3& normal() const noexcept; //! Test ray-plane intersection IntersectionTestResult testIntersection(
ise-uiuc/Magicoder-OSS-Instruct-75K
instances=self._registry.explained_instances(), isclass=isclass, theme=self._theme), mimetype='text/html') return response(environ, start_response) def __call__(self, environ, start_response): app = se...
ise-uiuc/Magicoder-OSS-Instruct-75K
:param identifier: use the url as the identifier :param policy: not used currently :return: """ self.route_path = [nid for nid in self.rsearch(identifier)][::-1] return self.route_path @property
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>Aarnar/my_setup #!/bin/sh brightness=$(xbacklight -get | awk -F. '{print $1}') echo "🔆 $brightness"
ise-uiuc/Magicoder-OSS-Instruct-75K
images = element['dataset'][:][:][num_set * self.batch_size:(num_set + 1) * self.batch_size - 1] yield images def finalize(self): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
<br> <b>Password</b> <div class="font-weight-light">password</div> </div> </div> <div class="card" style="max-width: 18rem;"> <div class="card-body"> <h5 class="card-title">Paste is for source code and general debugging text.</h5> <p class="...
ise-uiuc/Magicoder-OSS-Instruct-75K
logger.debug(f"查找是否含有【今日已签到】文字")
ise-uiuc/Magicoder-OSS-Instruct-75K
self.reshape = P.Reshape() def construct(self, source_ids, source_mask, target_ids=None, target_mask=None): """ Process source sentence Inputs:
ise-uiuc/Magicoder-OSS-Instruct-75K
categories_list = [category for category in length_dict] #print(categories_list) for category in categories_list: output_path = os.path.join(args.datafolder,"results",length_dict[category][1]+".labels") if not os.path.exists(os.path.join(args.datafolder,"results")): os.m...
ise-uiuc/Magicoder-OSS-Instruct-75K
class FeaturedGame(db.Model): reference = db.ReferenceProperty(base.Game)
ise-uiuc/Magicoder-OSS-Instruct-75K
########################################################################## def setupDB(self, db): "Install a handler in the current DB." self.lastDbProgress = 0 self.inDB = False db.set_progress_handler(self._dbProgress, 10000)
ise-uiuc/Magicoder-OSS-Instruct-75K
return 0; } //Input:2 3 //Output:3 2
ise-uiuc/Magicoder-OSS-Instruct-75K
# Has to be done through normal database methods # def test_update(): # apkg = Apkg("example1.apkg") # for n in db.Notes.filter(db.Notes.data["field1"] == "data1"): # n.data["field3"] = "data2" # n.save() # apkg.close()
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, client): self.client = client @commands.command(name = 'youtube', aliases = ['yt'])
ise-uiuc/Magicoder-OSS-Instruct-75K
// 空matchers意味着"children应该为空". if (matchers.length === 0) { return element.children.length === 0 } if (element.children.length === 0) return false const context: IReadonlyContext = { ...this , collection: {}
ise-uiuc/Magicoder-OSS-Instruct-75K
currentValue = alist[index] position = index while position > 0 and alist[position-1] > currentValue: alist[position] = alist[position-1] position = position - 1 alist[position] = currentValue
ise-uiuc/Magicoder-OSS-Instruct-75K
* * ### ASN.1 Definition: * * ```asn1 * ACIItem ::= SEQUENCE {
ise-uiuc/Magicoder-OSS-Instruct-75K
def acosNode(): return funcNode("zacos", "x:real", "" + trunc(math.pi/2.0) + "-zasin(x)" , "out", "real");
ise-uiuc/Magicoder-OSS-Instruct-75K
# Ignore the headers of the topic output for i in range(0, len(topics)):
ise-uiuc/Magicoder-OSS-Instruct-75K
handle.GetInitHandle()->mem.mgpu.roiPoints.y, handle.GetInitHandle()->mem.mgpu.roiPoints.roiHeight,
ise-uiuc/Magicoder-OSS-Instruct-75K
* * @param string $partName * @return $this */ public function load($partName = null); }
ise-uiuc/Magicoder-OSS-Instruct-75K
height: 1,
ise-uiuc/Magicoder-OSS-Instruct-75K
KeyAgreementCurveType.P521, ], ) async def test_find_authcrypt_unpack_sender_and_recipient_keys_recipient_kids_in_secrets_same_type_positive(
ise-uiuc/Magicoder-OSS-Instruct-75K
def snap_pref(win): 'Makes a window obey the windows.sticky preference. (The window snaps to edges.)' from common import profile
ise-uiuc/Magicoder-OSS-Instruct-75K
class Migration(migrations.Migration): dependencies = [ ('crime', '0003_area'), ] operations = [
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RTDicomViewer.Message
ise-uiuc/Magicoder-OSS-Instruct-75K
mod from_plist; pub mod ops; mod plist; mod region; mod stretch; mod to_plist; pub use font::{Component, Font, Glyph, Layer, Node, NodeType, Path}; pub use from_plist::FromPlist; pub use plist::Plist; pub use region::Region; pub use stretch::stretch;
ise-uiuc/Magicoder-OSS-Instruct-75K
static public let paperSize = NSSize(width: 390, height: 390) static public let paperCutBoarderSize = NSSize(width: 440, height: 440) static public let paperCutBoardBackgroudColor : NSColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1) static public let paperCutBackgroundColor : NSColor...
ise-uiuc/Magicoder-OSS-Instruct-75K
def test__init(self): """Map should return a valid template""" map = Map() map._repr_html_() assert map.bounds is not None assert map._html_map is not None def test_bounds(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
// |download_progress| is set to 1 after download finishes // (i.e. verify, finalize and need-reboot phase) to indicate the progress // even though |status.download_progress| is 0 in these phases. switch (status.status) { case chromeos::UpdateEngineClient::UPDATE_STATUS_ERROR: state = kNotAvailableSta...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertEqual(request.url, "http+unix://%2Fvar%2Frun%2Fdocker.sock/info") def test_integration(self): from requests_unixsocket.testutils import UnixSocketServerThread with UnixSocketServerThread() as usock_thread: urlencoded_usock = requests.compat.quote_plus(usock_thread.uso...
ise-uiuc/Magicoder-OSS-Instruct-75K
vector_fst.AddArc(s0, arc) print(vector_fst) print(vector_fst.Info()) vector_fst.Write('a.fst') # fstprint tests/a.fst if __name__ == '__main__': unittest.main()
ise-uiuc/Magicoder-OSS-Instruct-75K
aws_secret_access_key=os.environ("DO_SPACE_SECRET"), region_name="ams3", ) def upload_video(local_path, path, bucket_name="video-space", acl="public-"): with open(local_path, "rb") as f: file = io.BytesIO(f.read()) try:
ise-uiuc/Magicoder-OSS-Instruct-75K
# Make an algorithm that reads an employee's salary and shows his new salary, with a 15% increase n1 = float(input('Enter the employee`s salary: US$ ')) n2 = n1 * 1.15
ise-uiuc/Magicoder-OSS-Instruct-75K
numV=50000 NUM_OF_PARTITIONS=10 mu=4.0
ise-uiuc/Magicoder-OSS-Instruct-75K
self.groupBox.setFlat(True) self.groupBox.setObjectName("groupBox") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_2.setContentsMargins(0, 10, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.teDesc = QtWidgets.QTextEdit...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.preset_button = Button(text='Preset', relief=RAISED, bd=4, padx=1, pady=1, height=2, width=6, font=('Helvetica', 14)) self.preset_button.grid(row=6, column=0, padx=5, pady=5, rowspan=2) self.preset_button.bind("<ButtonPress>", self.preset_button_press) self.d...
ise-uiuc/Magicoder-OSS-Instruct-75K
changes = self.handler.parse('$F,14,"00:12:45","13:34:22","00:09:47","Green "') self.assertEqual(changes,[]) changes = self.handler.parse('$F,14,"00:11:45","13:34:22","00:09:47","Green "') self.assertEqual(changes,["time to go",]) changes = self.handler.parse('$F,0,"00:00:00","13...
ise-uiuc/Magicoder-OSS-Instruct-75K
you may not use this file except in compliance with the License. You may obtain a copy of the License at
ise-uiuc/Magicoder-OSS-Instruct-75K
} /// Deserializes a lowercase hex string to a `Vec<u8>`. pub fn hex_to_buffer<'de, D>(deserializer: D) -> Result<Vec<u8>, D::Error> where D: Deserializer<'de>, {
ise-uiuc/Magicoder-OSS-Instruct-75K
#[inline] fn is_type_tracked() -> bool { // Trait objects can be anything. true } // No as_any. This enforces locking via ThreadedCcRef. } impl Trace for ThreadedCc<dyn Trace + Send> { fn trace(&self, tracer: &mut Tracer) { self.inner().trace_t(tracer) }
ise-uiuc/Magicoder-OSS-Instruct-75K
export declare const VERSIONS: { v1beta: typeof workflows_v1beta.Workflows; }; export declare function workflows(version: 'v1beta'): workflows_v1beta.Workflows; export declare function workflows(options: workflows_v1beta.Options): workflows_v1beta.Workflows; declare const auth: AuthPlus; export { auth }; export { w...
ise-uiuc/Magicoder-OSS-Instruct-75K
} class A<M> { func f<T : Nested>(_ t: T, _ keyPath: WritableKeyPath<M, T.U>) {} } class B<Y> : Nested { // expected-error {{type 'B<Y>' does not conform to protocol 'Nested'}} var i: Y? } class C<M> { func cFunc(_ a: A<M>) {
ise-uiuc/Magicoder-OSS-Instruct-75K
--dropout-p 0.2; python predict.py \ --model-name inceptionresnetv2 \ --experiment-name cdiscount_inceptionresnetv2 \ --dropout-p 0.2 \
ise-uiuc/Magicoder-OSS-Instruct-75K
from pydub import AudioSegment sound = AudioSegment.from_mp3('D:/360Downloads/caixi-from-net-common.mp3').set_frame_rate(11025) sound.export('D:/360Downloads/from-net-common-3.wav', format='wav')
ise-uiuc/Magicoder-OSS-Instruct-75K
} //--------------------------------------------------------------------------------------- // Remove event from the top. // // Returns: // Event that was just dequeued. // // Notes: // Caller then takes ownership of Event and will call Delete on it. // If IsEmpty() function returns NULL.
ise-uiuc/Magicoder-OSS-Instruct-75K
link_shared_paths()
ise-uiuc/Magicoder-OSS-Instruct-75K
Raises: ValueError: When the input `data_source` is malformed or not implemented. """ if runner == Runner.SPARK: return _SparkPatientQuery(data_source, code_system) if runner == Runner.BIG_QUERY: return _BigQueryPatientQuery(data_source, code_system) raise ValueError('Query engine {} is not suppor...
ise-uiuc/Magicoder-OSS-Instruct-75K
} struct ContentView05_Previews: PreviewProvider { static var previews: some View { ContentView05() } }
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace PackageManagement.Cmdlets.Tests.Helpers { public class TestableUpdatePackageCmdlet : UpdatePackageCmdlet { public FakeCmdletTerminatingError FakeCmdletTerminatingError; public FakePackageManagementConsoleHost FakePackageManagementConsoleHost; public FakeUpdatePackageActionsFactory FakeUpdatePackageAc...
ise-uiuc/Magicoder-OSS-Instruct-75K
dx --dex --output hide.dex Hide.class javac KeyGenerate.java java KeyGenerate>result.txt rm -rf *.class *.dex
ise-uiuc/Magicoder-OSS-Instruct-75K
package io.intercom.api;
ise-uiuc/Magicoder-OSS-Instruct-75K
&self, identifier: &InherentIdentifier, ) -> Result<Option<I>, Error> { match self.data.get(identifier) { Some(inherent) => I::decode(&mut &inherent[..]) .map_err(|e| Error::DecodingFailed(e, *identifier)) .map(Some), None => Ok(None), } } /// Get the number of inherents in this instance pub ...
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>null/grifarm/main.py
ise-uiuc/Magicoder-OSS-Instruct-75K
var_list = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope) endpoints['var_list'] = var_list return net, endpoints mobilenet_v2.default_image_size = 224 mobilenet_v2.name = 'MobilenetV2'
ise-uiuc/Magicoder-OSS-Instruct-75K
public override string Name { get { return CommandName; } } public override string Text { get { return "Output"; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
Application.renderer()->setDrawColor(nc); } else { Application.renderer()->setDrawColor(filler.color2); }
ise-uiuc/Magicoder-OSS-Instruct-75K
def __enter__(self): return self def __exit__(self, *ex): pass @abc.abstractmethod def listDevices(self, vendor): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
export = DistributeHorizontalLeft24;
ise-uiuc/Magicoder-OSS-Instruct-75K
pub mod vector3d;
ise-uiuc/Magicoder-OSS-Instruct-75K
class State { }
ise-uiuc/Magicoder-OSS-Instruct-75K
log = logging.getLogger() def send_sms(to, body): options = {} if settings.TWILIO_MESSAGING_SERVICE_ID: options['messaging_service_sid'] = settings.TWILIO_MESSAGING_SERVICE_ID else: options['from_'] = settings.TWILIO_FROM_NUMBER
ise-uiuc/Magicoder-OSS-Instruct-75K
this._camera.targetTexture = this._rt; this._texture = new Texture2D(NeodroidConstants._Default_Width,
ise-uiuc/Magicoder-OSS-Instruct-75K
# 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 KIND, either express or implied.
ise-uiuc/Magicoder-OSS-Instruct-75K
if self._cplex_engine_type: # default is CPLEX if we have it default_engine_type = self._cplex_engine_type default_engine_name = 'cplex'
ise-uiuc/Magicoder-OSS-Instruct-75K
def setup(client): client.add_cog(TieThePie(client))
ise-uiuc/Magicoder-OSS-Instruct-75K
}, }) export const { setAmount, setToken, swapInputs, setDialog, clearState } = swapSlice.actions export const swapReducer = swapSlice.reducer
ise-uiuc/Magicoder-OSS-Instruct-75K
import urllib.parse from time import sleep import requests class TooManyRequestsException(Exception): pass class UnexpectedCodeException(Exception): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
ln -s -f /usr/local/rabbitmq/sbin/rabbitmq-plugins /usr/bin/rabbitmq-plugins ln -s -f /usr/local/rabbitmq/sbin/rabbitmq-server /usr/bin/rabbitmq-server
ise-uiuc/Magicoder-OSS-Instruct-75K
def random_word_requester(): ''' This function should return a random word and its definition and also log in the MongoDB database the timestamp that it was accessed. ''' # perform a sample data aggregation rando = list(defs.aggregate([{'$sample': {'size': 1 }}]))[0] # update the list of de...
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public abstract class UIViewBase : UIBehaviour {
ise-uiuc/Magicoder-OSS-Instruct-75K
local i="$*" # remove leading whitespace characters i="${i#"${i%%[![:space:]]*}"}"
ise-uiuc/Magicoder-OSS-Instruct-75K
import React from "react"; const DataTableCreatePage = ({ speciesGroups, languages, datasetId }) => ( <DataTableCreatePageComponent speciesGroups={speciesGroups} languages={languages} datasetId={datasetId} /> ); export async function getServerSideProps(ctx) { authorizedPageSSR([Role.Any], ctx, true)...
ise-uiuc/Magicoder-OSS-Instruct-75K
flume-ng agent --conf-file flume_json.conf --name movieagent
ise-uiuc/Magicoder-OSS-Instruct-75K
} private void frmAbout_Load(object sender, EventArgs e) { lbl_version.Text = "Version : " + Application.ProductVersion + "\nAll Rights Reserved Sadena International ® Co."; for ( int i = 0 ; i < Statics.ValidTabletsIdList.Count ; i++) { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
} protocol P { typealias f : A { typealias B : (" protocol A : a { func a: c
ise-uiuc/Magicoder-OSS-Instruct-75K
self.samples[sample.sample_id] = \ import_sample(os.path.join(sample.work_directory,
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>cygraphblas/lib/monoid/ss.py from cygraphblas_ss.lib.monoid import *
ise-uiuc/Magicoder-OSS-Instruct-75K
<?php namespace App\Http\Controllers\Translator; use Illuminate\Routing\Controller as BaseController;
ise-uiuc/Magicoder-OSS-Instruct-75K
tmp = None
ise-uiuc/Magicoder-OSS-Instruct-75K
class DataCreatorAction: def __init__(self, func: Callable, priority_for_creation: int = 99, priority_for_removal: int = 99): self.func = func self.priority_for_creation = priority_for_creation self.priority_for_removal = priority_for_removal
ise-uiuc/Magicoder-OSS-Instruct-75K
public partial class CartPage { /// <summary> /// Initializes a new instance of the <see cref="CartPage" /> class. /// </summary> public CartPage() { InitializeComponent(); var cartDataService = App.MockDataService ? TypeLocator.Res...
ise-uiuc/Magicoder-OSS-Instruct-75K
# This doesn't do much. It's just fun to have; something to play with in future status = cycle(['hating on D2', 'Thinking...', 'bathroom break', 'dumping on Apex', '$help']) # Create an event that takes the on_ready function # This will do a few things once our bot goes live @bot.event async def on_ready(): ''' ...
ise-uiuc/Magicoder-OSS-Instruct-75K
import shelve import argparse import os
ise-uiuc/Magicoder-OSS-Instruct-75K
return object; }
ise-uiuc/Magicoder-OSS-Instruct-75K
if (n_pass == 0 and bool(random.getrandbits(1))) or (n_pass == 1 and coin not in selected_coins): selected_coins_sum += coin.amount selected_coins.add(coin) if selected_coins_sum == target: return selected_coins ...
ise-uiuc/Magicoder-OSS-Instruct-75K
'title1' =>'Vous devez activer votre transfert !', 'title2' =>'Notre système a détecté que votre cote de crédit est un peu bas!', 'title3' =>'Entrez votre code TVA', 'message1' => 'L\'opération de transfert à été interrompu. Veuillez consulter votre gestionnaire de compte...
ise-uiuc/Magicoder-OSS-Instruct-75K
]) person_names = [] cloth_names = [] with open(os.path.join(opt.data_root, data_list), 'r') as f: for line in f.readlines(): person_name, cloth_name = line.strip().split() person_names.append(person_name) clot...
ise-uiuc/Magicoder-OSS-Instruct-75K
class TestDist(unittest.TestCase): def test_something(self): ''' TestDist: '''
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in range(len(reputacoes_dos_jogadores)): casas_dec=12 booleano=True while booleano==True: if round(reputacoes_dos_jogadores[i],casas_dec)!=round(x[-1],casas_dec): casas_dec-=1 ...
ise-uiuc/Magicoder-OSS-Instruct-75K
if(tag & MC_MTX_TAG_ASSET_TRANSFER) { if(tag & MC_MTX_TAG_LICENSE_TOKEN) { tags.push_back(tx ? "transfer-license" : "license"); } else { tags.push_back(tx ? "transfer-asset" : "asset"); } ...
ise-uiuc/Magicoder-OSS-Instruct-75K
* molee module definition class */ class Module extends \yii\base\Module { /** * @inheritdoc */ public $controllerNamespace = 'frontend\modules\molee\controllers';
ise-uiuc/Magicoder-OSS-Instruct-75K
return stage = stages.first() stage.backends.append(BACKEND_APP_PASSWORD) stage.save()
ise-uiuc/Magicoder-OSS-Instruct-75K
('elections', models.ManyToManyField(to='election.Election')), ], options={ 'ordering': ['-created_at'],
ise-uiuc/Magicoder-OSS-Instruct-75K
}, autoDeleteMinutes: { title: 'Auto Delete Minutes', default: null, nullable: true, minimum: 1, description: `Amount of minutes after which the file will be automatically deleted. <br>The default value, \`null\`, means the file will be kept until manually delet...
ise-uiuc/Magicoder-OSS-Instruct-75K
url(r'^products/(?P<slug>[-\w]+)/', ProductDetail.as_view(), name="product-detail"), ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) \ + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
ise-uiuc/Magicoder-OSS-Instruct-75K
conf = get_config(overrides=override) if show_and_exit: print_config(conf) sys.exit(0) return conf def _form_result_path(orig_path, result_dir, fname_extra=''): fname = osp.basename(orig_path) base, extension = osp.splitext(fname)
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "$i" fi done
ise-uiuc/Magicoder-OSS-Instruct-75K
ngOnInit() { this.beanPiece = new BeanPiece(); } autoSave() { // auto save to local if (this.beanPiece.title) {
ise-uiuc/Magicoder-OSS-Instruct-75K
guard let controllers = pendingViewControllers as? [ViewableController] else { fatalError() }
ise-uiuc/Magicoder-OSS-Instruct-75K