text
stringlengths
3
1.05M
package io.whz.synapse.util; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import java.nio.ByteBuffer; import java.nio.DoubleBuffer; import java.nio.IntBuffer; import io.whz.synapse.matrix.Matrix; import io.whz.synapse.pojo.dao.DBModel; import io.whz.synapse.pojo.neural.Model...
"""Fetching GCE metadata.""" import mutex import urllib2 from googlecloudsdk.core.credentials import gce_cache from googlecloudsdk.core.credentials import gce_read class Error(Exception): """Exceptions for the gce module.""" class MetadataServerException(Error): """Exception for when the metadata server canno...
''' Tests for gtfutils / query - Slightly redundant with fetch test in test_gtf.py, but that's okay :) ''' import os import unittest import ngsutils.gtf.query from ngsutils.gtf import GTF fname = os.path.join(os.path.dirname(__file__), 'test1.gtf') class GTFQueryTest(unittest.TestCase): def testQuery(self): ...
package org.nd4j.linalg.api.ops.impl.transforms.strict; import onnx.Onnx; import org.nd4j.autodiff.samediff.SDVariable; import org.nd4j.autodiff.samediff.SameDiff; import org.nd4j.imports.NoOpNameFoundException; import org.nd4j.linalg.api.ndarray.INDArray; import org.nd4j.linalg.api.ops.BaseTransformStrictOp; import...
'use strict'; module.exports = angular.module('env.dev', []) .run(require('./dev-init'));
@interface NSPasteboard (SafariInXcodeBookmarkExtras) - (id)safari_urlsOnPasteboard; @end
.class public final Lmf/org/apache/xerces/impl/Constants; .super Ljava/lang/Object; .source "Constants.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lmf/org/apache/xerces/impl/Constants$ArrayEnumeration; } .end annotation # static fields .field public static fina...
// Copyright 2019 The Oppia Authors. All Rights Reserved. // // 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 // // Unless required by ap...
 using System.ComponentModel.DataAnnotations; using biz.dfch.CS.Appclusive.Scheduler.Public; using System; using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; namespace biz.dfch.CS.Appclusive.Scheduler.Extensions ...
extern "C" { #endif #define USB_RAW_EPIN NRF_DRV_USBD_EPIN1 #define USB_RAW_EPOUT NRF_DRV_USBD_EPOUT1 #define USB_RAW_INTERFACE_ID 0 typedef enum { APP_USBD_RAW_USER_EVT_SUSPEND = 0, APP_USBD_RAW_USER_EVT_RESUME, APP_USBD_RAW_USER_EVT_START, APP_USBD_RAW_USER_EVT_STOP, APP_USBD_RAW_USER_EVT_RX_D...
/* * File: mcf52221_sysinit.c * Purpose: Power-on Reset configuration of the MCF52221. * * Notes: * */ #include "support_common.h" #include "exceptions.h" /********************************************************************/ static void pll_init(void) { MCF_CLOCK_CCHR =0x05; // The PLL pre divider - 48...
/* Editor: http://www.visualmicro.com visual micro and the arduino ide ignore this code during compilation. this code is automatically maintained by visualmicro, manual changes to this file will be overwritten the contents of the Visual Micro sketch sub folder can be deleted prior to publishing a pr...
package com.gcek.clf.tool.controller; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; imp...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Oops, we didn't mean to break that! (500) | Cincy Happy Hours</title> <style type="text/css"> body { background-color: #fff...
google-site-verification: google6eb3c4f4541eb88f.html
class AddEmailSubjectToMessages < ActiveRecord::Migration def self.up add_column :messages, :email_subject, :string end def self.down remove_column :messages, :email_subject end end
<html> <head> <script> var iid = 1; var scanning = false; var keyCodeNum = [48, 49, 50, 51, 52, 53, 54, 55, 56, 57]; var keyCodeArrow = [37, 38, 39, 40]; var keyCodeService = [8, 13, 27, 116]; parent.stbEvent.onBroadcastMessage = function(win_id, msg){ tr...
package precreator_test import ( "testing" "time" "github.com/BurntSushi/toml" "github.com/jportoles/influxdb092/services/precreator" ) func TestConfig_Parse(t *testing.T) { // Parse configuration. var c precreator.Config if _, err := toml.Decode(` enabled = true check-interval = "2m" advance-period = "10m" `...
/* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_CONF_H #define __STM32F4xx_CONF_H /* Includes ------------------------------------------------------------------*/ /* Uncomment the line below to enable peripheral header file inclusion */ #include "stm32f4xx...
<?php use DTS\eBaySDK\ResolutionCaseManagement\Enums\ProofType; class ProofTypeTest extends \PHPUnit_Framework_TestCase { private $obj; protected function setUp() { $this->obj = new ProofType(); } public function testCanBeCreated() { $this->assertInstanceOf('\DTS\eBaySDK\Reso...
/** * Created by MarkHsiu on 2015/10/20. */ function Logger(){ if(typeof Logger.single_instance === "undefined"){ Logger.single_instance=this; } return Logger.single_instance; } var single = (function(ddd){ var unique; function Const(){ // TODO code } unique = new Const(...
package com.sarality.app.view.action.test; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import junit.framework.TestCase; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.RobolectricTestRunner; import android.view.View; import com.sarality.app.view.act...
/* * Longest Substring Without Repeating Characters. * https://oj.leetcode.com/problems/longest-substring-without-repeating-character * -s/ * * Given a string, find the length of the longest substring without repeating cha * racters. For example, the longest substring without repeating letters for "abc * -abcbb" is "ab...
[//]: # (title: Publishing a Plugin) <!-- Copyright 2000-2021 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. --> When your plugin is ready, you can publish it to a plugin repository so that other users can install it. You c...
class ProgressBar; class CppUnitException; ///////////////////////////////////////////////////////////////////////////// // TestRunnerDlg dialog class AFX_CLASS_EXPORT TestRunnerDlg : public CDialog { // Construction public: TestRunnerDlg (CWnd* pParent = NULL); ~TestRun...
'use strict'; angular.module('myApp') .factory('userService', ['dataService', '$rootScope', function(dataService, $rootScope) { // User service was originally intended to make $http requests to the server to get // specific user data. Since the change of the back end data to neatly package all // relevant data to o...
package org.museautomation.builtins.network; import org.museautomation.core.*; import org.museautomation.core.resource.*; import org.museautomation.core.resource.types.*; import java.util.*; /** * @author Christopher L Merrill (see LICENSE.txt for license details) */ @MuseTypeId("proxy-config") public class Networ...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Nu...
package gitlab import ( "fmt" "net/http" "reflect" "testing" ) func TestCreateApplication(t *testing.T) { mux, server, client := setup(t) defer teardown(server) mux.HandleFunc("/api/v4/applications", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, http.MethodPost) fmt.Fprint(w, ` { "i...
package com.thoughtworks.go.server.valuestreammap; import com.thoughtworks.go.config.CaseInsensitiveString; import com.thoughtworks.go.domain.MaterialRevision; import com.thoughtworks.go.domain.Stage; import com.thoughtworks.go.domain.Stages; import com.thoughtworks.go.domain.valuestreammap.SCMDependencyNode; import...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
<?xml version="1.0" encoding="utf-8"?> <errors xmlns="urn:platinum/actor"> <actor base="{Application}" /> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ ~ MethodInvoker/ ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <error id="MethodInv...
"""Test for google.protobuf.internal.wire_format.""" __author__ = 'robinson@google.com (Will Robinson)' import unittest from google.protobuf import message from google.protobuf.internal import wire_format from google.protobuf.internal.utils import u class WireFormatTest(unittest.TestCase): def testPackTag(self):...
package miquilini.felipe.cliente; import java.io.IOException; import java.io.PrintWriter; import java.net.Socket; import java.util.Scanner; import miquilini.felipe.intermediario.status.LobbyStatus; import miquilini.felipe.intermediario.status.MesaStatus; import miquilini.felipe.servidor.Servidor; public a...
import React, {PureComponent} from 'react'; class Avatar extends PureComponent { render() { let extraClasses; switch(this.props.size) { case 'inline-list': extraClasses = 'avatar-inline-list u-xsmall'; break; case 'inline': extraClasses = 'u-xsmall'; break; ...
function Remove-DbaDbRole { <# .SYNOPSIS Removes a database role from database(s) for each instance(s) of SQL Server. .DESCRIPTION The Remove-DbaDbRole removes role(s) from database(s) for each instance(s) of SQL Server. .PARAMETER SqlInstance The target SQL Server instance or ...
#include <stdio.h> #include <unistd.h> /* sleep */ #include <pthread.h> void* print_msg(void *ptr) { sleep(5); // seconds printf("Message from thread: %s \n", (char*)ptr); return NULL; } int main(void) { pthread_t t1, t2; char *msg1 = "Thread One", *msg2 = "Thread Two"; // Create 2 threads, passings the string...
<?php // # Get Full HDWallet // This method allows you to retrieve all details about a given wallet, including full transaction information. // // API called: '/v1/btc/main/addrs/HDWallet-Name/full' require __DIR__ . '/../bootstrap.php'; if (isset($_GET['wallet_name'])) { $walletName = filter_input(INPUT_GET, 'w...
'use strict'; exports.type = 'perItem'; exports.active = true; var collections = require('./_collections.js'), pathElems = collections.pathElems.slice(), referencesProps = collections.referencesProps; pathElems.push('g'); pathElems.push('text'); /** * Move group attrs to the content elements. * * @examp...
 using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Linq; [Name("Inputs/Dragging Mouse")] public class CanvasClickSignal : Signal, IScope<BaseContextView> { } [Name("Inputs/Virtual")] public class VirtualInputActivation : PollingActivatingCommand, IEnableBinding<bool>, ...
import { SelectField } from 'material-ui'; import React from 'react'; const renderSelectField = ({ input, label, meta: { touched, error }, children, ...custom }) => ( <SelectField floatingLabelText={label} errorText={touched && error} {...input} onChange={(event, index, value) => input.onCh...
package com.github.kmbulebu.dsc.it100.commands.util; public class CommandChecksum { public static boolean verifyChecksum(String command, String data, String sentChecksum) { return calculateChecksum(command, data).equals(sentChecksum); } public static String calculateChecksum(String command, String data) { int...
For if/switch statement each branch is always performed but it may be swithed to perform no operation. This means that the body of the branch is not performed if it should not but the control always token passes trough that branch. This means that every node behind menitioned if-statement will recieve synchronization t...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//JP"> <!--Converted with LaTeX2HTML 2008 (1.71) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck an...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>User agent detail - Mozilla/5.0 (Linux; Android 4.1.2; GT-S5280 Build/JZO54K) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.58 Mobile Safari/537.31</title> <link rel="stylesheet" href="https://cdnjs.cloud...
<?php // autoload_real.php @generated by Composer class ComposerAutoloaderInite6e58c3e6dac45470284eb6dd1f8ecdc { private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } ...
namespace NancyTDD.Web { public class User { public string Name { get; set; } public int Age { get; set; } } }
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
import { ServiceClass } from '../../sdk/types/ServiceClass'; import { IUiKitCoreApp, IUiKitCoreAppService } from '../../sdk/types/IUiKitCoreApp'; const registeredApps = new Map(); const getAppModule = (appId: string): any => { const module = registeredApps.get(appId); if (typeof module === 'undefined') { throw n...
/** * @class Ext.calendar.CalendarView * @extends Ext.BoxComponent * <p>This is an abstract class that serves as the base for other calendar views. This class is not * intended to be directly instantiated.</p> * <p>When extending this class to create a custom calendar view, you must provide an implementation...
@implementation BKBaseTableViewCell + (CGFloat)cellHeightWithPadding:(CGFloat)padding { return [self cellHeight] + padding; } + (CGFloat)cellHeight { return 0; } + (NSString *)cellIdentifier { NSString *identifier = NSStringFromClass(self.class); return identifier; } - (void)setup:(id)object { ...
include ../../Library/GNU.mk Title= Ragel State Machine Compiler Name= ragel Version= 6.9 Site= http://www.colm.net/open-source/ragel/ Source= http://www.colm.net/wp-content/uploads/2014/10/$(Name)-$(Version).tar.gz License= GPL define check_hook cd $(BuildDir)/test ; ./runtests endef define test_hook $(BinDir)/...
package zj.remote.baselibrary.base; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.support.annotation.ColorRes; import android.support.v4.app.Fragment; import android.support.v7.app.AppCompatActivity; import com.badoo.mobile.util.WeakHandler; import java.util.ArrayList...
using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.DataBox.Models { public partial class ImportDiskDetails : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("mani...
<?php namespace Dataset; /** * Autoloader * * This class provides a default PSR-0 autoloader if not using Composer. * * @author Josh Lockhart <info@joshlockhart.com> * @since 1.0.0 * @package Upload */ class Autoloader { /** * The project's base directory * @var string */ static prot...
package org.mybop.gae.channelapi; /** * Different events launched by channel * @author GautierLevert */ public interface ChannelHandler { /** * Channel connected successfully and is now listening for message */ void onOpen(); /** * Message received from server * @param message complete message received ...
package org.testng.internal; import java.util.Iterator; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; import org.testng.ITestContext; import org.testng.ITestResult; import org.testng.collections.CollectionUtils; import org.testng.collections.Lists; import org.testng.internal.ITestInvoker.Fai...
package types // KeywordMarkerTokenFilter type. // // https://github.com/elastic/elasticsearch-specification/blob/4ca0cc05d3ae3fa06c2cd7be91905b656a474334/specification/_types/analysis/token_filters.ts#L230-L236 type KeywordMarkerTokenFilter struct { IgnoreCase *bool `json:"ignore_case,omitempty"` Keywords ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS | ------------------------------------------------------------------- | This file will contain the settings needed to access your database. | |...
/* * Holder for the resources for a given key (usually remoteAddress:remotePort) */ Copper.Resources = function() { this.resources = new Object(); }; Copper.Resources.prototype.resources = undefined; Copper.Resources.prototype.getResourcesForAddress = function(address){ if (typeof(address) !== "string" || addres...
@implementation NSURLRequest (SSL) +(BOOL)allowsAnyHTTPSCertificateForHost:(NSString*)host { return YES; } +(void)setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString*)host { } @end
package com.nightonke.boommenu; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); ...
module Queries module Group class FetchGreen < Inquery::Query::Chainable relation class: 'Group' def call relation.where(color: 'green') end end end end
@interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated....
java-problems = Solutions in Java to diverse coding problems. Started 2014-02-13
#ifndef _SQLITE3EXT_H_ #define _SQLITE3EXT_H_ #include "sqlite3.h" typedef struct sqlite3_api_routines sqlite3_api_routines; /* ** The following structure holds pointers to all of the SQLite API ** routines. ** ** WARNING: In order to maintain backwards compatibility, add new ** interfaces to the end of this stru...
<!DOCTYPE html> <html lang="ru"> {% include 'header.html' %} <link rel="stylesheet" type="text/css" href="static/css/style.css"> <body> {% include 'menu.html' %} <div class="container"> <h3>Поищем вам картинок по образцу и/или описанию</h3> <p>(подробные инструкции смотрите <a href="/about">там</a>)</p> <d...
package generated.zcsclient.mail; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for getSearchFolderResponse complex type. * * <p>The following sche...
define( ({ viewer:{ main:{ scaleBarUnits: "metric" //"english (for miles) or "metric" (for km) - don't translate. }, errors:{ createMap: "Impossible de créer la carte", bitly: 'bitly permet de raccourcir l\'URL pour le partage. Consultez le fichier Lisezmoi pour plus d\'informat...
namespace Palmmedia.ReportGenerator.Parser.Preprocessing { using System; using System.Globalization; using System.Linq; using System.Text.RegularExpressions; using System.Xml.Linq; using log4net; using Palmmedia.ReportGenerator.Common; using Palmmedia.ReportGenerator.Parser.Preprocessin...
package com.fleury.metrics.agent.transformer.visitors.injectors; import com.fleury.metrics.agent.model.Metric; import org.objectweb.asm.Label; import org.objectweb.asm.Type; import org.objectweb.asm.commons.AdviceAdapter; /** * Transforms from * * <pre> * public void someMethod() { * //original method code ...
@implementation JOFont @end @implementation UIFont(Extend) @end
package org.matrix.console.adapters; import android.content.Context; import android.content.Intent; import android.os.Handler; import android.os.Looper; import org.matrix.androidsdk.MXSession; import org.matrix.androidsdk.adapters.MessageRow; import org.matrix.androidsdk.adapters.MessagesAdapter; import org.matrix....
package com.kokolihapihvi.orepings.client.model; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.client.model.ModelLoaderRegistry; import net.minecraftforge.fml.relauncher.Side; import ...
namespace base { namespace internal { namespace { constexpr char kDetachDurationHistogramPrefix[] = "ThreadPool.DetachDuration."; constexpr char kNumTasksBeforeDetachHistogramPrefix[] = "ThreadPool.NumTasksBeforeDetach."; constexpr char kNumWorkersHistogramPrefix[] = "ThreadPool.NumWorkers."; constexpr char kNumA...
'''spotify utility classes''' from __future__ import absolute_import, print_function import logging import re from muslytics.Utils import AbstractTrack, AUDIO_FEATURES logger = logging.getLogger(__name__) class SpotifyTrack(AbstractTrack): """Representation of an Spotify music track.""" def __init__(self, ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
package kawa.lang; import gnu.expr.*; import gnu.kawa.format.Printable; import gnu.kawa.format.ReportFormat; import gnu.kawa.functions.DisplayFormat; import gnu.kawa.io.OutPort; import gnu.lists.*; import gnu.mapping.*; import gnu.text.*; import java.io.*; public class SyntaxRules extends Procedure1 implements Pr...
namespace PagerDutyApi.Model { /// <summary> /// http://developer.pagerduty.com/documentation/integration/events/acknowledge /// </summary> public class AcknowledgeEvent { public AcknowledgeEvent() { } public AcknowledgeEvent(IncidentEvent incident, string desc) ...
package de.mirkosertic.bytecoder.allocator; import de.mirkosertic.bytecoder.core.BytecodeLinkerContext; import de.mirkosertic.bytecoder.ssa.Program; import de.mirkosertic.bytecoder.ssa.TypeRef; import de.mirkosertic.bytecoder.ssa.Variable; import java.util.ArrayList; import java.util.List; import java.util.function....
package com.github.obsidianarch.gvengine.model; import com.github.obsidianarch.gvengine.core.ColorSystem; import com.github.obsidianarch.gvengine.core.NormalSystem; import com.github.obsidianarch.gvengine.core.PositionSystem; import com.github.obsidianarch.gvengine.core.VertexBufferObject; import org.lwjgl.util.vector...
/**************************************************************************//** * @file efm32g880f64.h * @brief CMSIS Cortex-M3 Peripheral Access Layer Header File * for EFM EFM32G880F64 * @version 5.4.0 ****************************************************************************** * # License * <b>Copyri...
import Data.Char import Data.List import qualified Data.Vector as V -- 1) Define a function partition to partition a list using a user-provided predicate function partition :: [a -> Bool] -> [a] -> [[a]] partition ps xs = [filter p xs | p <- ps] -- 2) Define a function cycleMap fs xs that maps various functions from ...
package logic.states; import java.io.IOException; import java.io.Serializable; import logic.Player; import logic.cards.Card; public final class GameState extends State implements Serializable { GameState(Game g) { super(g); } @Override State onEntry() { if (this.game.c...
package rest import "gopkg.in/ns1/ns1-go.v2/rest/model/account" // ddiTeam wraps an NS1 /accounts/teams resource for DDI. // Used for internally mapping between DDI permissions to maintain backwards compatibility. type ddiTeam struct { ID string `json:"id,omitempty"` Name string ...
package com.thecoffeine.storage.utils; import org.junit.Test; /** * Tests of {@link FileUtil} * * @version 1.0 * @see FileUtil */ public class FileUtilTests { /** * Check if util class is abstract. */ @Test( expected = InstantiationException.class) public void testNoInstances() throws Il...
use core::prelude::*; use alloc::boxed::Box; use local_ptr; use task::Task; /// Encapsulates some task-local data. pub trait Local<Borrowed> { fn put(value: Box<Self>); fn take() -> Box<Self>; fn try_take() -> Option<Box<Self>>; fn exists(unused_value: Option<Self>) -> bool; fn borrow(unused_value...
package net.fortytwo.flow.rdf.diff; import net.fortytwo.flow.rdf.RDFSource; import net.fortytwo.ripple.RippleException; /** * @author Joshua Shinavier (http://fortytwo.net) */ public interface RDFDiffSource { RDFSource adderSource(); RDFSource subtractorSource(); void writeTo(RDFDiffSink sink) throws ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="rustdoc"> <meta name="description" content="API documentation for the Rust `cosf32` fn in crate `std`."> <meta name="keywords" content...
ACCEPTED #### According to International Plant Names Index #### Published in Bradleya 9:77. 1991 #### Original name Melocactus dawsonii Bravo ### Remarks null
var Model = require ('ampersand-model'); var Collection = require ('ampersand-rest-collection'); var data_model = Model.extend ({ props: { "TimeSeconds": "number", "parsedDate": "string", "dateTimeStr": "number", "ipLayerProtocol": "number", "ipLayerProtocolCode": "string", "firstSeenSrcIp": ...
package com.online.market.test; import java.util.List; import org.junit.Test; import org.onlineframework.commons.util.MD5Util; import com.online.market.model.Admin; import com.online.market.service.IAdminManager; public class AdminManagerTest extends SpringUtils{ public IAdminManager adminManager=(IAdminManager)ap...
namespace mscorlib { namespace System { namespace Runtime { namespace InteropServices { //Public Methods Tests // Method GetIDsOfNames // Signature: mscorlib::System::Guid riid, mscorlib::System::IntPtr rgszNames, mscorlib::System::UInt32 cNames, mscorlib::System::UInt32 lcid, mscorlib::S...
package game; import java.util.*; import entity.*; import abstracts.*; import pathfinding.*; import game.SurvivalGame.TeamColor; import main.GameComponent; class FactionID { private int id; private boolean isSet; public FactionID() { Random random = new Random(); this.id = (int) (Math.rint(random.nextDouble()...
--------------------------------------------------------------------------------------------------------------------------- SQL Query & Manipulate Examples. --------------------------------------------------------------------------------------------------------------------------- L...
package de.codesourcery.javr.assembler.parser; /** * A location within a source file (line number and column). * * @author tobias.gierke@code-sourcery.de */ public class Location { public final int line; public final int column; public Location(int line, int column) { if ( line < 1 ) { ...
export class Loading { current: number; total: number; payload: any; constructor(current: number = 0, payload?: any) { this.current = current; this.total = 100; this.payload = payload; } }
import UglifyJS from 'uglify-js'; const concat = String.prototype.concat.bind(''); function optimizelify(code) { const forceDirective = '/* _optimizely_evaluate=force */'; const jshint = { start: '\n\/*jshint ignore:start*\/ ', end: ' \/*jshint ignore:end*\/', }; const safeLoop = parseSafeLoop(code);...
// Copyright 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/search/instant_loader.h" #include "chrome/browser/content_settings/tab_specific_content_settings.h" #include "chrome/browser/...
NS_ASSUME_NONNULL_BEGIN @interface RainbowColorizersManager () @property (nonatomic, copy, readonly) NSArray<id<RainbowColorizer>> *colorizers; @end @implementation RainbowColorizersManager + (instancetype)manager { static RainbowColorizersManager *instance = nil; static dispatch_once_t onceToken; dispa...