text
stringlengths
3
1.05M
package com.example.android.sunshine.app; public class Utility { /** * Helper method to provide the art resource id according to the weather condition id returned * by the OpenWeatherMap call. * * @param weatherId from OpenWeatherMap API response * @return resource id for the correspond...
<a href="<?php echo site_url('admin/view_projects'); ?>" role="button" class="btn btn-add-e">View Projects <span class="glyphicon glyphicon-folder-open"></span> </a> <a href="<?php echo site_url('admin/add_project'); ?>" role="button" class="btn btn-add-e">Add Project <span class="glyphicon glyphicon-plus"></sp...
import { module } from 'angular'; import { CREATE_LOAD_BALANCER_EXECUTION_DETAILS_CTRL } from './createLoadBalancerExecutionDetails.controller'; import { CORE_PIPELINE_CONFIG_STAGES_CREATELOADBALANCER_CREATELOADBALANCERSTAGE } from './createLoadBalancerStage'; export const CREATE_LOAD_BALANCER_STAGE = 'spinnaker.core...
package org.apache.camel.component.jetty; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; import org.junit.jupiter.api.Test; /** * Unit test with a simple route test. */ public class JettyContentBasedRouteTest extends BaseJettyTest { private String serverUri ...
$('#datetimepicker').datetimepicker({ }); // basic with some options $('#datetimepicker').datetimepicker({ dateFormat: "yy-mm-dd", timeFormat: 'HH:mm', nextText: "", prevText: "" }); // function within the plugin $('#datetimepicker').datetimepicker('formatTime', { format: "HH:mm", time: {...
import { ParagraphStatus } from '../../notebook/paragraph/paragraph.status' describe('JobComponent', () => { let $componentController beforeEach(angular.mock.module('zeppelinWebApp')) beforeEach(angular.mock.inject((_$componentController_) => { $componentController = _$componentController_ })) it('shou...
import { xor } from "lodash"; export = xor;
<?php namespace ProxyManagerTest\ProxyGenerator\LazyLoadingGhost\MethodGenerator; use PHPUnit_Framework_TestCase; use ProxyManager\ProxyGenerator\LazyLoadingGhost\MethodGenerator\IsProxyInitialized; /** * Tests for {@see \ProxyManager\ProxyGenerator\LazyLoadingGhost\MethodGenerator\IsProxyInitialized} * * @autho...
<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <ImageView android:id="@+id/image" android:layout_width="match_parent" android:layout_height="130...
<?xml version="1.0" encoding="utf-8"?> <project> <meta title="BarcodeTest" package="com.example.barcodetest" version="1.0.0" company="Company Name" /> <app main="Main" path="bin" file="BarcodeTest" /> <source path="src" /> <haxelib name="openfl" /> <include path="../common" /> <include path="...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>gHack</title> <link rel="stylesheet" href="/dist/build.css"> <link rel="stylesheet" href="/dist/main.css"> </head> <body> <div class="container-fluid"> <canvas id="snow"></canvas> <div ...
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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.apa...
using System.IO; using MediaBrowser.Common.Plugins; using MediaBrowser.Controller.Plugins; namespace TVHeadEnd.Configuration { /// <summary> /// Class TVHclientConfigurationPage /// </summary> class TVHclientConfigurationPage : IPluginConfigurationPage { /// <summary> /// Gets the ...
package org.xtuml.bp.ui.explorer; import org.eclipse.core.runtime.IAdaptable; import org.xtuml.bp.core.common.NonRootModelElement; public class MultipleOccurrenceElement implements IAdaptable { private NonRootModelElement element; public MultipleOccurrenceElement(NonRootModelElement element) { this....
<?php @include_once dirname(__FILE__).'/../config.local.php'; require_once dirname(__FILE__).'/../config.php'; require_once dirname(__FILE__).'/../inc/utils.php'; require_once dirname(__FILE__).'/../inc/db.php'; require_once dirname(__FILE__).'/../inc/auth.php'; require_once dirname(__FILE__).'/../inc/use...
<?php require_once 'phing/Task.php'; /** * A PHP code sniffer task. Checking the style of one or more PHP source files. * * @author Dirk Thomas <dirk.thomas@4wdmedia.de> * @package phing.tasks.ext */ class PhpCodeSnifferTask extends Task { protected $file; // the source file (from xml attribute) protected $f...
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft....
using System; using System.Collections.Generic; using System.Threading; using AcklenAvenue.Data.NHibernate; using DomainDrivenDatabaseDeployer; using FluentNHibernate.Cfg.Db; using MiniTrello.Data; using NHibernate; namespace MiniTrello.DatabaseDeployer { class Program { static void Main(string[] args...
require "requirement" class UnsignedKextRequirement < Requirement fatal true satisfy(build_env: false) { MacOS.version < :yosemite } def message s = <<-EOS.undent Building this formula from source isn't possible due to OS X Yosemite (10.10) and above's strict unsigned kext ban. EOS s +=...
using System.Runtime.InteropServices; namespace VCSJones.FiddlerCertGen.Interop { [type: StructLayout(LayoutKind.Sequential)] internal struct CERT_PUBLIC_KEY_INFO { public CRYPT_ALGORITHM_IDENTIFIER Algorithm; public CRYPT_BIT_BLOB PublicKey; } }
<div class="commune_descr limited"> <p> Villenoy est une ville géographiquement positionnée dans le département de Seine-et-Marne en Île-de-France. Elle comptait 3&nbsp;988 habitants en 2008.</p> <p>À Villenoy le salaire moyen mensuel par individu se situe à approximativement 2&nbsp;180 &euro; net. C'est supér...
"""Test the Min/Max config flow.""" from unittest.mock import patch import pytest from homeassistant import config_entries from homeassistant.components.min_max.const import DOMAIN from homeassistant.core import HomeAssistant from homeassistant.data_entry_flow import RESULT_TYPE_CREATE_ENTRY, RESULT_TYPE_FORM from t...
package org.apache.archiva.rest.api.model; import javax.xml.bind.annotation.XmlRootElement; import java.io.Serializable; import java.util.List; /** * @author Olivier Lamy * @since 1.4-M3 */ @XmlRootElement( name = "policyInformation" ) public class PolicyInformation implements Serializable { private List<...
class ContractTypesRepository def all ContractType.all end end
namespace autofill { // This class is only for easier writing of testings. All pure virtual functions // have been giving empty methods. class TestAutofillManagerDelegate : public AutofillManagerDelegate { public: TestAutofillManagerDelegate(); virtual ~TestAutofillManagerDelegate(); // AutofillManagerDelegate...
namespace download { SchedulingParams::SchedulingParams() : cancel_time(base::Time::Max()), priority(Priority::DEFAULT), network_requirements(NetworkRequirements::NONE), battery_requirements(BatteryRequirements::BATTERY_INSENSITIVE) {} bool SchedulingParams::operator==(const SchedulingParams& rh...
CKFinder.addPlugin( 'fileeditor', function( api ) { var regexExt = /^(.*)\.([^\.]+)$/, regexTextExt = /^(txt|css|html|htm|js|asp|cfm|cfc|ascx|php|inc|xml|xslt|xsl)$/i, regexCodeMirrorExt = /^(css|html|htm|js|xml|xsl|php)$/i, codemirror, file, fileLoaded = false, doc; var codemirrorPath = CKFinder.getPl...
ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in Paleontol Zh 1, January-February: 8. #### Original name null ### Remarks null
namespace content { ThreadSafeSender::ThreadSafeSender(base::MessageLoopProxy* main_loop, IPC::SyncMessageFilter* sync_filter) : main_loop_(main_loop), sync_filter_(sync_filter) { } ThreadSafeSender::~ThreadSafeSender() { } bool ThreadSafeSender::Send(IPC::Message* msg) { if ...
 namespace FakeSystemWeb.Tests { using System; using NUnit.Framework; public static class ExceptionAssert { public static void ArgumentNull(TestDelegate code, string paramName) { Assert.That(code, Throws.TypeOf<ArgumentNullException>().With.Property("ParamName").E...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>quickchick: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min....
from cms.models import CMSPlugin, Page from django.core.validators import MinValueValidator from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from ..conf import settings from .article import Article from .attribute import ...
import scala.language.dynamics class Dyn extends Dynamic { def selectDynamic(s: String): Dyn = new Dyn def get[T]: T = null.asInstanceOf[T] } object Foo { val dyn = new Dyn dyn.foo.bar.baz.get[String] }
try: import argparse parser = argparse.ArgumentParser() parser.add_argument('ligand_mol2', default=None, help='Input mol2 of the ligand with sybyl atom types') parser.add_argument('receptor_pdb', default=None, help='Input PDB of the receptor with AMBER atom types') parser.add_argument('complex_tarball...
var _ = require('lodash'), Promise = require('bluebird'), fs = require('fs-extra'), moment = require('moment'), featuredImageRegex = /^(!\[]\(([^)]*?)\)\s+)(?=#)/, titleRegex = /^#\s?([\w\W]*?)(?=\n)/, statusRegex = /(published||draft)-/, dateRegex = /(\d{4}-\d{2}-\d{2})-/, ...
package org.broadleafcommerce.core.catalog.domain; import org.broadleafcommerce.common.copy.MultiTenantCloneable; import org.broadleafcommerce.core.catalog.service.type.ProductOptionType; import org.broadleafcommerce.core.catalog.service.type.ProductOptionValidationStrategyType; import org.broadleafcommerce.core.cata...
 using System; using System.Collections.Generic; using System.Linq; using Moq; using NUnit.Framework; using XenAdmin.Dialogs; using XenAdmin.Dialogs.LicenseManagerSelectionVerifiers; using XenAPI; using Status = XenAdmin.Dialogs.LicenseManagerSelectionVerifiers.LicenseSelectionVerifier.VerificationStatus; ...
import * as ts from 'typescript'; import {absoluteFrom, AbsoluteFsPath, getSourceFileOrError} from '../../../src/ngtsc/file_system'; import {runInEachFileSystem, TestFile} from '../../../src/ngtsc/file_system/testing'; import {MockLogger} from '../../../src/ngtsc/logging/testing'; import {DeclarationNode} from '../.....
using UnityEngine; using System.Collections; public class RestartGame : MonoBehaviour { public GameManager GM; void OnMouseDown() { GM.RestartGame(); } }
import logging import types from docker.utils import auth from docker.utils import decorators from docker.utils import string_utils logger = logging.getLogger(__name__) class Image(): def __init__(self, session): self.session = session def list(self, image_name = None, show_all = False, labe...
YUI.add('datasource-xmlschema', function (Y, NAME) { /** * Extends DataSource with schema-parsing on XML data. * * @module datasource * @submodule datasource-xmlschema */ /** * Adds schema-parsing to the DataSource Utility. * @class DataSourceXMLSchema * @extends Plugin.Base */ var DataSourceXMLSchema = func...
echo "Checking test manual installation app..." PROJECTDIR="$(cd $(dirname $0)/../../..; pwd)" TESTDIR="$(cd $(dirname $0); pwd)" BUILDDIR="$(cd $(dirname $0); pwd)/build" rm -rf $BUILDDIR mkdir $BUILDDIR xcodebuild build -workspace "${PROJECTDIR}/Stripe.xcworkspace" -scheme StripeiOSStaticFramework -configuration R...
<a attribute="<TYPO descr="Typo: In word 'ttest'">ttest</TYPO> attribute"> plain text <TYPO descr="Typo: In word 'gooes'">gooes</TYPO> here <b>&amp;</b> <mail>fooo.baaaar@gmail.com</mail> <file email="fooo.baaaar@gmail.com"></file> <url>https://fooobaaar.com</url> <URL><![CDATA[http://www.fooobaaar.com/page?id=1]]></...
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright 2015 sourcestream GmbH 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...
using Microsoft.Win32.SafeHandles; using System; using System.Runtime.InteropServices; internal static partial class Interop { internal static partial class Sys { [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_CopyFile", SetLastError = true)] internal static extern int CopyFile(S...
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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.apa...
using System.Collections.Generic; using NUnit.Framework; using SQMImportExport.Import.ArmA3.Waypoint; using SQMImportExport.Import.Context; namespace SQMImportExport.Tests.Import.ArmA3 { [TestFixture] public class WaypointItemParserTests { private WaypointItemParser _sut; private SqmContex...
#pragma once #include "dialogs/projectManagement/managedClosableDialog.h" namespace qReal { class EditorManagerInterface; /// @brief Dialog for create a diagram /// This dialog prompts the user to create one of the available diagrams class QRGUI_DIALOGS_EXPORT SuggestToCreateDiagramDialog : public ManagedClosable...
<?php namespace Illuminate\Filesystem; use Closure; use Aws\S3\S3Client; use OpenCloud\Rackspace; use Illuminate\Support\Arr; use League\Flysystem\FilesystemInterface; use League\Flysystem\Filesystem as Flysystem; use League\Flysystem\Adapter\Ftp as FtpAdapter; use League\Flysystem\Rackspace\RackspaceAdapter; use Lea...
@ECHO OFF :: Delphi 10.1 Berlin @SET BDS=C:\Program Files (x86)\Embarcadero\Studio\18.0 @SET BDSINCLUDE=%BDS%\include @SET BDSCOMMONDIR=C:\Users\Public\Documents\Embarcadero\Studio\18.0 @SET FrameworkDir=C:\Windows\Microsoft.NET\Framework\v4.0.30319 @SET FrameworkVersion=v4.5 @SET FrameworkSDKDir= @SET PATH=%Framework...
package apple.photos; import java.io.*; import java.nio.*; import java.util.*; import com.google.j2objc.annotations.*; import com.google.j2objc.runtime.*; import com.google.j2objc.runtime.block.*; import apple.audiotoolbox.*; import apple.corefoundation.*; import apple.coregraphics.*; import apple.coreservices.*; imp...
{-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE CPP #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE ExistentialQuantification #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE InstanceSigs #-} {-# LANGUAGE KindSi...
webshims.register('form-shim-extend2', function($, webshims, window, document, undefined, options){ "use strict"; var isNumber = function(string){ return (typeof string == 'number' || (string && string == string * 1)); }; //support getSetAttribute var supportGetSetAttribute = !(('getSetAttribute' in $.support) ...
const Path = require('path') const checker = require('license-checker'); const packageJson = require('./package.json'); const dependencies = packageJson.dependencies; const devDependencies = packageJson.devDependencies; checker.init({ start: '.', }, function (err, packages) { const output = { ...
namespace leveldb { class VersionSet; struct FileMetaData { FileMetaData() : refs(0), allowed_seeks(1 << 30), file_size(0) {} int refs; int allowed_seeks; // Seeks allowed until compaction uint64_t number; uint64_t file_size; // File size in bytes InternalKey smallest; // Smallest internal key serve...
Data Exporter ============= [![Build Status](https://secure.travis-ci.org/sonata-project/exporter.png)](https://secure.travis-ci.org/#!/sonata-project/exporter) Data Exporter is a lightweight library to export data into different formats. ```php <?php // Prepare the data source $dbh = new \PDO('sqlite:foo.db'); $...
package com.izforge.izpack.panels.shortcut; import static com.izforge.izpack.util.Platform.Name.UNIX; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.Enumeration; import ...
<!doctype html> <title>undefined as ports</title> <script src="../../../resources/testharness.js"></script> <script src="../../../resources/testharnessreport.js"></script> <div id=log></div> <script> async_test(function() { postMessage('', '*', undefined); onmessage = this.step_func(function(e) { assert_array_e...
$.views.converters("upper", function(val) { return val.toUpperCase(); }); $.views.converters({ upper: (val: string) => val.toUpperCase(), lower: (val: string) => val.toLowerCase() }); $.views.converters.html("< > ' \" &"); $.views.converters.attr( "< > ' \" &"); $.views.converters.url("<_>_\"_ "); function ren...
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>waitable_timer_service::wait</title> <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="../../../boost_asi...
<?php namespace Illuminate\Support\Facades; /** * @see \Illuminate\Database\Schema\Builder */ class Schema extends Facade { /** * Get a schema builder instance for a connection. * * @param string $name * @return \Illuminate\Database\Schema\Builder */ public static function connect...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import ray @ray.remote def factorial(n): if n == 0: return 1 return n * ray.get(factorial.remote(n - 1)) def test_recursion(ray_start_regular): assert ray.get(factorial.remote(0)) == 1 ...
/*! * */ // the check unit test framework headers are noisy, disable these warnings #pragma GCC diagnostic ignored "-Wgnu-zero-variadic-macro-arguments" #include <stdlib.h> #include <check.h> #include <cjose/version.h> START_TEST(test_cjose_version_define) { ck_assert_str_eq(CJOSE_VERSION, VERSION); } END_TEST ST...
namespace llvm { class MCAsmBackend; class MCCodeEmitter; class MCContext; class MCInstrInfo; class MCObjectWriter; class MCRegisterInfo; class MCSubtargetInfo; class MCTargetOptions; class Target; class Triple; class StringRef; class raw_pwrite_stream; class raw_ostream; Target &getThePPC32Target(); Target &getThePPC...
* Update copyright notice and license to remove years * Create the correct compressed version * Remove the obsolete jQuery Plugin Registry file ## 3.1.12 * Fix possible 0 value for line height when in delta mode 1 ## 3.1.11 * Fix version number for package managers... ## 3.1.10 * Fix issue with calculating line h...
<?php if (!isset($render_rest) || $render_rest): ?> <?php echo $view['form']->rest($form) ?> <?php endif ?> </form>
#ifndef cmCTestEmptyBinaryDirectoryCommand_h #define cmCTestEmptyBinaryDirectoryCommand_h #include "cmCTestCommand.h" /** \class cmCTestEmptyBinaryDirectory * \brief Run a ctest script * * cmLibrarysCommand defines a list of executable (i.e., test) * programs to create. */ class cmCTestEmptyBinaryDirectoryComma...
require 'spec_helper' # Capybara docs: http://rubydoc.info/github/jnicklas/capybara/master describe "rails_admin" do context "as visitor" do it "redirects to login page" do visit rails_admin.dashboard_path current_path.should == new_user_session_path page.should have_content(I18n.t 'devise.fai...
package at.jku.se.eatemup.core.json.messages; import java.util.ArrayList; import java.util.HashMap; import at.jku.se.eatemup.core.json.CastType; import at.jku.se.eatemup.core.json.MessageType; import at.jku.se.eatemup.core.json.OutgoingMessage; public class GameStandbyUpdateMessage extends OutgoingMessage { public...
import logging from six.moves.urllib.parse import urljoin from scrapy.http import HtmlResponse from scrapy.utils.response import get_meta_refresh from scrapy.utils.python import to_native_str from scrapy.exceptions import IgnoreRequest, NotConfigured logger = logging.getLogger(__name__) class BaseRedirectMiddleware...
<?php /** * Created by PhpStorm. * User: Administrator * Date: 14-5-10 * Time: 下午11:42 */ class Articles_Model extends CI_Model { private $tableName = 'kc_article'; var $Id; var $title; var $category; var $date; var $introduction; var $editorValue; function insert($model) {...
package org.apache.cassandra.locator; import java.io.DataInputStream; import java.io.FilterInputStream; import java.io.IOException; import java.net.HttpURLConnection; import java.net.InetAddress; import java.net.URL; import java.nio.charset.StandardCharsets; import java.util.Map; import org.slf4j.Logger; import org....
package org.oscm.domobjects; import static org.junit.Assert.assertEquals; import java.util.concurrent.Callable; import javax.ejb.EJBException; import org.junit.Test; import org.oscm.test.data.Organizations; /** * Tests of the organization-related domain objects (incl. auditing * functionality) * * @author c...
jQuery.noConflict(); jQuery('html').hide(); jQuery(document).ready(function($){ jQuery('html').show(); //ブラウザ判定、body,formのid,class付与――――――――――――――――――――――――――――――――――― var userAgent = window.navigator.userAgent.toLowerCase(); /*new*/ var appVersion = window.navigator.appVersion.toLowerCase(); if (userAgent.indexOf(...
@class IOSLongArray; @protocol DKListEngineItem; @protocol ImActorModelMvvmAlgModification; @protocol JavaUtilList; @interface ImActorModelMvvmAlgModifications : NSObject #pragma mark Public - (instancetype)init; + (id<ImActorModelMvvmAlgModification>)addLoadMoreWithJavaUtilList:(id<JavaUtilList>)items; + (id<ImAc...
<?php /** @var \CodeDocs\Config $config */ $config->baseDir = __DIR__; $config->buildDir = './build'; $config->docsDir = './docs-src';
// Generated by typings // Source: https://raw.githubusercontent.com/aurelia/pal/master/dist/aurelia-pal.d.ts declare module '~aurelia-pal-browser~aurelia-pal/dist/aurelia-pal' { /** * Enables discovery of what features the runtime environment supports. */ export interface Feature { /** * Does the runtime env...
<?php namespace Slim\Http; /** * Slim HTTP Utilities * * This class provides useful methods for handling HTTP requests. * * @package Slim * @author Josh Lockhart * @since 1.0.0 */ class Util { /** * Strip slashes from string or array * * This method strips slashes from its input. By defa...
<?xml version="1.0" encoding="UTF-8"?> <!-- 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....
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright © 2014 Cask Data, Inc. 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 ...
<header>Udostępnianie po NFS</header> <include nfs> <h3>NFS w&nbsp;HPUX</h3> Ten moduł pozwala na skonfigurowanie katalogów (zwane w&nbsp;HPUX <i>exports</i>) udostępnianych przez Twój system poprzez NFS. Na pierwszej stronie znajduje się lista katalogów oraz klientów, dla których są one udostępniane. Możesz, poprze...
<?php /* Smarty version Smarty-3.1.14, created on 2014-11-22 20:09:10 compiled from "D:\PHProot\jprass-blog\Admin\Tpl\article\add.tpl" */ ?> <?php /*%%SmartyHeaderCode:2374154707ce64ed826-28593021%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( ...
package org.peon; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; /** * A task that can be run in a background worker thread by a peon. * * This class provides an implementation of the PeonTask interface that should work for most situations. Subclasses * should implemen...
Fork and clone the repo: git clone git@github.com:username/robolectric.git Create a feature branch to make your changes: git co -b my-feature-name Mavenize all required dependencies: ./scripts/install-dependencies.sh Perform a full build of all shadows: ./scripts/install-robolectric.sh ...
@class TimeSeriesData; @class VideoProperties; @interface ProtoVisExport : DPExport { VideoProperties *video; NSMutableArray *dataSets; NSMutableArray *annotations; int width; int height; } @property(assign) VideoProperties* video; @property int width; @property int height; - (void)addDataSet:(TimeSeriesD...
namespace google_apis { class ResourceEntry; // Callback type for GetResourceEntryRequest. typedef base::Callback<void(GDataErrorCode error, scoped_ptr<ResourceEntry> entry)> GetResourceEntryCallback; // This class performs the request for fetching a single resource entry. class GetRe...
namespace sandbox { // Get the base of the data buffer of the channel; this is where the input // parameters get serialized. Since they get serialized directly into the // channel we avoid one copy. void* SharedMemIPCClient::GetBuffer() { bool failure = false; size_t ix = LockFreeChannel(&failure); if (failure) ...
package com.google.common.collect; import static com.google.common.collect.DiscreteDomain.integers; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import java.util.Set; /** * Very simple powerSet iteration benchmark. * * @author Kevin Bourrilli...
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- From: file:/usr/local/google/buildbot/repo_clients/https___googleplex-android.googlesource.com_a_platform_manifest.git/klp-ub-dev/frameworks/support/v7/appcompat/res/values-vi/strings.xml --> <eat-comment /> <string name="abc_action_bar_home_descript...
require 'spec_helper' require 'bigdecimal' module Arel describe "Attributes::Time" do before :all do @relation = Model.build do |r| r.engine Testing::Engine.new r.attribute :created_at, Attributes::Time end end def type_cast(val) @relation[:created_at].type_cast(val) ...
// ------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation // 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 co...
require 'open3' class Cask::SystemCommand def self.run(executable, options={}) command = _process_options(executable, options) odebug "Executing: #{command.utf8_inspect}" output = '' exit_status = nil ext_stdin, ext_stdout, ext_stderr, wait_thr = Open3.popen3(*command.map(&:to_s)) if options...
<?php /** * ALIPAY API: alipay.zdataservice.unidata.query request * * @author auto create * @since 1.0, 2016-03-03 17:49:34 */ class AlipayZdataserviceUnidataQueryRequest { /** * 通用的查询入参 **/ private $queryCondition; /** * 返回数据的类型,内部业务系统分配 **/ private $uniqKey; private $apiParas = array()...
set -o errexit set -o nounset if [ -z "${TARGET_STORAGE:-}" ]; then echo "TARGET_STORAGE variable unset - skipping migration" exit 0 fi if [ -z "${TARGET_VERSION:-}" ]; then echo "TARGET_VERSION variable unset - skipping migration" exit 0 fi if [ -z "${DATA_DIRECTORY:-}" ]; then echo "DATA_DIRECTORY variable...
@interface MQTTMessage() @property (readwrite, assign) unsigned short mid; @property (readwrite, copy) NSString *topic; @property (readwrite, copy) NSData *payload; @property (readwrite, assign) MQTTQualityOfService qos; @property (readwrite, assign) BOOL retained; @end @implementation MQTTMessage -(id)initWithTopi...
package main import ( "bytes" "encoding/json" "fmt" "io" "io/ioutil" "net/http" "reflect" "strconv" "strings" "sync" "testing" "time" "github.com/golang/protobuf/jsonpb" "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes/empty" gw "github.com/grpc-ecosystem/grpc-gateway/examples/exa...
package org.apache.camel.component.weather; import java.util.Iterator; import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.Endpoint; import org.apache.camel.component.weather.http.AuthenticationHttpClientConfigurer; import org.apache.camel.component.weather.http.AuthenticationMethod; ...
<!-- @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http:/...
<?php /** * used to manage points * Created by PhpStorm. * User: Cangzhou.Wu * Date: 15-6-29 * Time: 下午2:05 */ namespace star\account\controllers\core; use Yii; use star\account\models\Activity; use star\account\models\ActivitySearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\Ve...
package http import "net/http" // clonedTransport returns the given RoundTripper as a cloned *http.Transport. // For versions of Go <1.13, this is not supported, so return nil. func clonedTransport(rt http.RoundTripper) *http.Transport { return nil }