text stringlengths 3 1.05M |
|---|
package com.google.zxing.oned.rss;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.DecodeHintType;
import com.google.zxing.NotFoundException;
import com.google.zxing.Result;
import com.google.zxing.ResultPoint;
import com.google.zxing.ResultPointCallback;
import com.google.zxing.common.BitArray;
impo... |
static cc8* _meshShaderFSH = SHADER (
varying LOWP vec4 colorVarying;
varying MEDP vec2 uvVarying;
uniform sampler2D sampler;
void main() {
gl_FragColor = texture2D ( sampler, uvVarying ) * colorVarying;
}
);
#endif
|
"""Telemetry-based chromeos functional tests."""
|
require "support/shared/integration/integration_helper"
require "support/shared/context/config"
describe "knife config get-profile", :workstation do
include IntegrationSupport
include KnifeSupport
include_context "default config options"
include_context "with a chef repo"
let(:cmd_args) { [] }
subject d... |
/*=====================================
HEADER
=======================================*/
#header {
height: 40px;
}
#header * {
font-size: 13px;
font-weight: normal;
}
.admin-title, #user-tools {
margin: 5px 10px 5px 2px;
}
h1 {
font-size: 24px;
padding: 10px 0 20px;
z-index: ... |
Promise.all = Promise.all || function () {
var args = Array.prototype.slice.call(arguments.length === 1 && Array.isArray(arguments[0]) ? arguments[0] : arguments);
return new Promise(function (resolve, reject) {
if (args.length === 0) return resolve([]);
var remaining = args.length;
function res(i, val... |
{-# LANGUAGE ViewPatterns #-}
module Tinc.GhcPkg (
PackageDb
, GhcPkg(..)
, listGlobalPackages
) where
import System.Process
import Tinc.Package
import Tinc.Types
data PackageDb
class (Functor m, Applicative m, Monad m) => GhcPkg m where
readGhcPkg :: [Path PackageDb] -> [String] -... |
TOP=`pwd`
CND_CONF=Relocated_26K80
CND_DISTDIR=dist
TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/kelvin_ntc.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
OUTPUT_BASENAME=kelvin_ntc.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
PACKAGE_TOP_DIR=kelvinntc.x/
# Functions
f... |
"""Define tests for the Ambient PWS config flow."""
import json
import aioambient
import pytest
from homeassistant import data_entry_flow
from homeassistant.components.ambient_station import (
CONF_APP_KEY, DOMAIN, config_flow)
from homeassistant.const import CONF_API_KEY
from tests.common import (
load_fixt... |
require('../modules/es6.function.bind');
require('../modules/es6.function.name');
require('../modules/es6.function.has-instance');
module.exports = require('../modules/_core').Function; |
namespace Google.Cloud.Compute.V1.Snippets
{
// [START compute_v1_generated_FirewallPolicies_ListAssociations_async]
using Google.Cloud.Compute.V1;
using System.Threading.Tasks;
public sealed partial class GeneratedFirewallPoliciesClientSnippets
{
/// <summary>Snippet for ListAssociationsAs... |
'use strict';
var sinon = require('sinon');
var chai = require('chai');
var expect = chai.expect;
var MockedSerialPort = require('../test_mocks/linux-hardware');
var SerialPort = MockedSerialPort.SerialPort;
var hardware = MockedSerialPort.hardware;
describe('SerialPort', function () {
var sandbox;
beforeEach(f... |
import isEqual from 'ember-runtime/is-equal';
QUnit.module('isEqual');
QUnit.test('undefined and null', function() {
ok(isEqual(undefined, undefined), 'undefined is equal to undefined');
ok(!isEqual(undefined, null), 'undefined is not equal to null');
ok(isEqual(null, null), 'null is equal to null');
ok(!isEq... |
ASTM protocol implementation
============================
``astm.protocol`` :: Common protocol routines
---------------------------------------------
.. automodule:: astm.protocol
:members:
``astm.server`` :: ASTM Server
------------------------------
.. automodule:: astm.server
:members:
``astm.client`` :: ... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
<?php
namespace Symfony\Component\Form;
/**
* Creates ResolvedFormTypeInterface instances.
*
* This interface allows you to use your custom ResolvedFormTypeInterface
* implementation, within which you can customize the concrete FormBuilderInterface
* implementations or FormView subclasses that are used by the ... |
'use strict';
const path = require('path');
const isDirectory = require('is-directory');
function getDirectory(filepath ) {
return new Promise((resolve, reject) => {
return isDirectory(filepath, (err, filepathIsDirectory) => {
if (err) {
return reject(err);
}
re... |
require "log4r"
require "vagrant/action/builtin/mixin_synced_folders"
module VagrantPlugins
module DockerProvider
module Action
# This action disables the synced folders we created.
class HostMachineSyncFoldersDisable
include Vagrant::Action::Builtin::MixinSyncedFolders
def initiali... |
namespace base {
class FilePath;
}
namespace internal {
enum PathComparisonReason {
PATH_COMPARISON_EQUAL,
PATH_COMPARISON_FAILED_UNKNOWN,
PATH_COMPARISON_FAILED_SAMEBASE, // Not the same path, but same BaseName.
PATH_COMPARISON_FAILED_SAMEDIR, // Not the same path, but same DirName.
};
// Returns a PathC... |
// A set of common functions needed by cmd/kubectl and pkg/kubectl packages.
package kubectl
import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)
func AddJsonFilenameFlag(cmd *cobra.Command, value *util.StringList, usage string) {
annotations := []st... |
"use strict";
exports.__esModule = true;
var _create = require("babel-runtime/core-js/object/create");
var _create2 = _interopRequireDefault(_create);
var _getIterator2 = require("babel-runtime/core-js/get-iterator");
var _getIterator3 = _interopRequireDefault(_getIterator2);
var _symbol = require("babel-runtime/... |
#include "RenderManager.h"
#include "Scene.h"
#include "ObjectRenderer.h"
namespace Etoile
{
RenderManager::RenderManager()
{
}
RenderManager::~RenderManager()
{
clear();
}
void RenderManager::renderOneFrame()
{
for(unsigned int i = 0; i < m_datas.size(); ++i)
{
ObjectRenderer* obj = m_datas[... |
using System;
using System.Runtime.Serialization;
namespace Simple.Data.Ado.Schema
{
using System.Security;
[Serializable]
[SecurityCritical]
public class AmbiguousObjectNameException : Exception
{
public AmbiguousObjectNameException()
{
}
public Am... |
#import <UIKit/UIKit.h>
@interface CameraViewController : UIViewController
@end
|
"""Implementation of OneConvergence Neutron Plugin."""
from oslo.config import cfg
from neutron.agent import securitygroups_rpc as sg_rpc
from neutron.api.rpc.agentnotifiers import dhcp_rpc_agent_api
from neutron.api.rpc.agentnotifiers import l3_rpc_agent_api
from neutron.api.rpc.handlers import dhcp_rpc
from neutron... |
module I18n
module Gettext
PLURAL_SEPARATOR = "\001"
CONTEXT_SEPARATOR = "\004"
autoload :Helpers, 'i18n/gettext/helpers'
@@plural_keys = { :en => [:one, :other] }
class << self
# returns an array of plural keys for the given locale so that we can
# convert from gettext's integer-i... |
package org.hswebframework.web.service.authorization.simple;
import org.hswebframework.web.dao.authorization.MenuDao;
import org.hswebframework.web.entity.authorization.MenuEntity;
import org.hswebframework.web.id.IDGenerator;
import org.hswebframework.web.service.AbstractTreeSortService;
import org.hswebframework.w... |
package com.google.android.exoplayer.extractor.mp4;
import com.google.android.exoplayer.C;
import com.google.android.exoplayer.MediaFormat;
import com.google.android.exoplayer.extractor.SeekMap;
import com.google.android.exoplayer.testutil.FakeExtractorOutput;
import com.google.android.exoplayer.testutil.FakeTrackOut... |
package events
const (
// volume relevant event reasons
FailedBinding = "FailedBinding"
VolumeMismatch = "VolumeMismatch"
VolumeFailedRecycle = "VolumeFailedRecycle"
VolumeRecycled = "VolumeRecycled"
RecyclerPod = "RecyclerPod"
VolumeDelete = ... |
/**
*
*/
package com.jarp.designpatterns.factorymethod.DataProvided;
/**
* @author JARP
*
*/
public class SoccerBall implements SportBall {
/* (non-Javadoc)
* @see com.jarp.designpatterns.factorymethod.SportBall#getDimensions()
*/
String Soccerball = "SoccerBall";
@Override
public String getDimensions... |
package statefulset
import (
"fmt"
"reflect"
"strings"
"testing"
"k8s.io/kubernetes/pkg/api/v1"
apipod "k8s.io/kubernetes/pkg/api/v1/pod"
)
func TestPetIDName(t *testing.T) {
replicas := 3
ps := newStatefulSet(replicas)
for i := 0; i < replicas; i++ {
petName := fmt.Sprintf("%v-%d", ps.Name, i)
pcb, ... |
namespace chrono {
namespace vehicle {
// -----------------------------------------------------------------------------
// Static variables
// -----------------------------------------------------------------------------
const std::string ChMacPhersonStrut::m_pointNames[] = {"SPINDLE ",
... |
var synonyms = require('./synonyms.js')
// TODO: use 'deeper' module?
var deepEqual = require('deep-equal')
var bufferEqual = require('buffer-equal')
// Load Buffer the old way for browserify's sake
var Buffer = require('buffer').Buffer
// this is actually the "working half" of the Test class.
// each method figures ... |
<?xml version="1.0"?>
<VerticalBoxLayout spacing="0" flex="1" filename="dash/SqlTest.TestSavedMetadata.xml">
<GroupBox flex="1">
<HorizontalBoxLayout flex="1">
<VerticalBoxLayout paddingTop="20">
<Button varName="savedMetaCompare" icon="admin/icon/16x16/plain/scales.png"/>
<Button varName="savedMetaSave" ... |
package javasmmr.zoowsome.models.animals;
import static javasmmr.zoowsome.repositories.EntityRepository.createNode;
import javax.xml.stream.XMLEventWriter;
import javax.xml.stream.XMLStreamException;
import javasmmr.zoowsome.services.factories.Constants;
public class Dolphin extends Aquatic {
public Dolphin(doubl... |
<!doctype html>
<title>Slow loading WebVTT file interrupted just after a cue text linebreak</title>
<script src=/media-resources/video-test.js></script>
<script>
function loadAndStall()
{
return "http://127.0.0.1:8000/resources/load-and-stall.php";
}
function vttTrack()
{
return "?name=../../../media/track/cap... |
var async = require('async');
// import the rest of the normal stuff
var mongoose = require('../../lib');
require('./person.js')();
var Person = mongoose.model('Person');
// define some dummy data
var data = [
{ name : 'bill', age : 25, birthday : new Date().setFullYear((new
Date().getFullYear() - 25)) },
{... |
<?xml version="1.0"?>
<!--
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.0
(... |
package images // import "github.com/docker/docker/daemon/images"
import (
"fmt"
"github.com/docker/go-metrics"
)
type invalidFilter struct {
filter string
value interface{}
}
func (e invalidFilter) Error() string {
msg := "Invalid filter '" + e.filter
if e.value != nil {
msg += fmt.Sprintf("=%s", e.value)... |
<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>AdminLTE 2 | Starter</title... |
package hu.javakurzus.bytemap;
import java.util.LinkedList;
import java.util.List;
public class Bytemap {
private static final int OBJECT_REF_SIZE = 12;
private final int width;
private final int height;
private int[][] rows;
private static int MAX_HOMO_LENGTH = (int) Math.pow(2, 24) - 1;
public Bytemap(i... |
// src/polyfills.js must be the first import.
import '../polyfills';
import {draw3p, init} from '../integration-lib';
import {register} from '../3p';
import {realclick} from '../../ads/vendors/realclick';
init(window);
register('realclick', realclick);
window.draw3p = draw3p;
|
"""
Client side of the saver manager RPC API.
"""
from oslo_config import cfg
import oslo_messaging as messaging
from nova import rpc
rpcapi_opts = [
cfg.StrOpt('saver_topic',
default='saver',
help='The topic saver nodes listen on'),
]
CONF = cfg.CONF
CONF.register_opts(rpcapi_opts... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace Nwazet.Commerce.Services {
public class Currency {
public static readonly Dictionary<string, Currency> Currencies = new Dictionary... |
/// <reference path="./gulp-istanbul.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import gulp = require("gulp");
import istanbul = require("gulp-istanbul");
function testFramework(): NodeJS.ReadWriteStream {
return null;
}
gulp.task('test', function (cb: Function) {
gulp.src(['lib/**/*.js', 'main.js'])
... |
// This software is part of the Autofac IoC container
// Copyright © 2011 Autofac Contributors
// http://autofac.org
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restrict... |
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define([ "jquery" ], factory );
} else {
// Browser globals
factory( jQuery );
}
}(function( $ ) {
/*!
* jQuery UI Core 1.11.1
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation... |
@implementation ROResponse
@synthesize rootObject = _rootObject;
@synthesize error = _error;
@synthesize param = _param;
- (id)init
{
self = [super init];
if (self) {
// Initialization code here.
}
return self;
}
-(void)dealloc
{
[_rootObject release];
[_error release];
[_para... |
package org.apache.carbondata.spark.testsuite.secondaryindex
import org.apache.carbondata.core.datastore.impl.FileFactory
import org.apache.spark.sql.{CarbonEnv, Row}
import org.apache.spark.sql.secondaryindex.command.ErrorMessage
import org.apache.spark.sql.test.util.QueryTest
import org.scalatest.BeforeAndAfterAll
... |
<link rel="import" href="../bower_components/polymer/polymer.html">
<polymer-element name="line-break-text" attributes="text">
<template>
<template repeat="{{ text | split as line }}">
{{ line }}<br>
</template>
</template>
<script>
Polymer('line-break-text', {
"text": "",
"split":... |
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef __GNUC__
# define alloca __builtin_alloca
# define HAVE_ALLOCA 1
#else
# ifdef _MSC_VER
# include <malloc.h>
# define alloca _alloca
# else
# if defined HAVE_ALLOCA_H || defined _LIBC
# include <alloca.h>
# else
# ifdef _AIX
#pragma alloca
# else
# ... |
package me.chanjar.weixin.mp.bean.outxmlbuilder;
import me.chanjar.weixin.mp.bean.WxMpXmlOutMusicMessage;
/**
* 音乐消息builder
*
* @author chanjarster
*/
public final class MusicBuilder extends BaseBuilder<MusicBuilder, WxMpXmlOutMusicMessage> {
private String title;
private String description;
private Strin... |
package org.elasticsearch.index.mapper;
import com.carrotsearch.hppc.ObjectObjectHashMap;
import com.carrotsearch.hppc.ObjectObjectMap;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.IndexOptions;
import org.apache.lucene.index.IndexableField;
import org.apache.lucene.util.BytesRef;
import o... |
YUI.add('io-upload-iframe', function (Y, NAME) {
/**
Extends the IO to enable file uploads, with HTML forms
using an iframe as the transport medium.
@module io
@submodule io-upload-iframe
@for IO
**/
var w = Y.config.win,
d = Y.config.doc,
_std = (d.documentMode && d.documentMode >= 8),
_d = decodeURIC... |
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.simpledrive"
android:versionCode="131"
android:versionName="7.1.0"
split="lib_slice_6_apk">
</manifest>
|
/**
* This script, when included in a html file, can be used to make collapsible menus
*
* Typical usage:
* <script type="text/javascript" language="JavaScript" src="menu.js"></script>
*/
if (document.getElementById){
document.write('<style type="text/css">.menuitemgroup{display: none;}</style>')
}
function ... |
<?xml version="1.0" ?>
<srv:container xmlns="http://doctrine-project.org/schemas/symfony-dic/cache"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:srv="http://symfony.com/schema/dic/services"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symf... |
<?php
/**
* Digg's API is no more and support has been removed
*/
function digg_shortcode( $atts ) {
return '';
}
add_shortcode( 'digg', 'digg_shortcode' );
|
package org.joda.primitives.collection.impl;
import java.lang.reflect.Array;
import java.util.Collection;
import java.util.Iterator;
import org.joda.primitives.DoubleUtils;
import org.joda.primitives.collection.DoubleCollection;
import org.joda.primitives.iterator.DoubleIterator;
/**
* Abstract base cl... |
<?php namespace Fannan\MembersModule\Member;
use Fannan\MembersModule\Member\Contract\MemberRepositoryInterface;
use Anomaly\Streams\Platform\Entry\EntryRepository;
class MemberRepository extends EntryRepository implements MemberRepositoryInterface
{
/**
* The entry model.
*
* @var MemberModel
... |
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
<filter>
<filter-name>LiftFilter</filter-name>
<display-name>Lift Filter</display-name>
<description>The Filter that intercepts... |
#if defined(_MSC_VER) || __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3)
#pragma once
#endif
#ifndef matrix_h
#define matrix_h
/*
* Copyright 1984-2003 The MathWorks, Inc.
* All Rights Reserved.
*/
/* Copyright 2003-2004 The MathWorks, Inc. */
/* Only define EXTERN_C if it hasn't been defined already.... |
require 'spec_helper'
describe Puppet::Type.type(:l23_stored_config).provider(:lnx_redhat7) do
let(:input_data) do
{
:eth1 => {
:name => "eth1",
:method => "static",
:ipaddr => "169.254.0.1/24",
:provider => "lnx_redhat7",
... |
require File.expand_path('../../../../spec_helper', __FILE__)
require File.expand_path('../../fixtures/classes', __FILE__)
describe "UNIXSocket#send_io" do
platform_is_not :windows do
before :each do
@path = SocketSpecs.socket_path
File.unlink(@path) if File.exists?(@path)
@server = UNIXServe... |
fs = require('fs')
options = {
key: fs.readFileSync('./key'),
cert: fs.readFileSync('./cert')
}
app = require('express.io')()
app.https(options).io()
// build realtime-web app
app.listen(7076)
|
package springfox.documentation.service;
public class ClientCredentialsGrant extends CredentialsGrant {
public ClientCredentialsGrant(String tokenUrl) {
super("application", tokenUrl);
}
}
|
<?php
namespace Symfony\Component\HttpKernel\Tests\Bundle;
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symf... |
<!DOCTYPE html><html xmlns:date="http://exslt.org/dates-and-times" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta charset="utf-8">
<title>PHPMailer version 5.2.4</titl... |
var through = require('through')
var Decoder = require('string_decoder').StringDecoder
module.exports = split
//TODO pass in a function to map across the lines.
function split (matcher, mapper, options) {
var decoder = new Decoder()
var soFar = ''
var maxLength = options && options.maxLength;
if('function' =... |
{-# LANGUAGE Haskell2010 #-}
{-# LINE 1 "dist/dist-sandbox-261cd265/build/System/Posix/Terminal.hs" #-}
{-# LINE 1 "System/Posix/Terminal.hsc" #-}
{-# LANGUAGE CApiFFI #-}
{-# LINE 2 "System/Posix/Terminal.hsc" #-}
{-# LINE 3 "System/Posix/Terminal.hsc" #-}
{-# LANGUAGE Safe #-}
{-# LINE 7 "System/Posix/Terminal.hsc"... |
docker stop momentum
docker rm momentum
docker run -d --name momentum -p 80:80 -p 3306:3306 -v `pwd`/:/app tutum/lamp
echo "Once the container is running, you can go to http://localhost/ to see the root directory. The app is at http://localhost/app/. You will need to initiate the database by getting the url http://lo... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classC... |
package com.google.zxing.client.result;
import com.google.zxing.Result;
/**
* Parses the "URLTO" result format, which is of the form "URLTO:[title]:[url]".
* This seems to be used sometimes, but I am not able to find documentation
* on its origin or official format?
*
* @author Sean Owen
*/
final class URLTOR... |
package pkglib
import (
"archive/tar"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"os"
"path/filepath"
"runtime"
"strings"
"github.com/containerd/containerd/reference"
"github.com/docker/docker/api/types"
registry "github.com/google/go-containerregistry/pkg/v1"
"github.com/linuxkit/linuxkit/src/cmd/li... |
define(
"dijit/_editor/nls/sl/LinkDialog", ({
createLinkTitle: "Lastnosti povezave",
insertImageTitle: "Lastnosti slike",
url: "URL:",
text: "Opis:",
target: "Cilj:",
set: "Nastavi",
currentWindow: "Trenutno okno",
parentWindow: "Nadrejeno okno",
topWindow: "Okno na vrhu",
newWindow: "Novo okno"
})
);
|
import datetime
from django.conf import settings
from django.contrib.admin.util import lookup_field, display_for_field, label_for_field
from django.contrib.admin.views.main import ALL_VAR, EMPTY_CHANGELIST_VALUE
from django.contrib.admin.views.main import ORDER_VAR, ORDER_TYPE_VAR, PAGE_VAR, SEARCH_VAR
from django.cor... |
using System;
using System.Reactive.Linq;
using Adaptive.ReactiveTrader.Client.Concurrency;
using Adaptive.ReactiveTrader.Client.Domain;
using Adaptive.ReactiveTrader.Shared.DTO.Control;
using Adaptive.ReactiveTrader.Shared.UI;
namespace Adaptive.ReactiveTrader.ControlClient.GUI
{
class CurrencyPairViewModel : Vi... |
<?php get_template_part('templates/page', 'header'); ?>
<div class="wrapper">
<div class="alert">
<?php _e('Sorry, but the page you were trying to view does not exist.', 'roots'); ?>
</div>
<p><?php _e('It looks like this was the result of either:', 'roots'); ?></p>
<ul>
<li><?php _e('a mistyped addre... |
describe :hash_store, :shared => true do
it "associates the key with the value and return the value" do
h = new_hash(:a => 1)
h.send(@method, :b, 2).should == 2
h.should == new_hash(:b=>2, :a=>1)
end
it "duplicates string keys using dup semantics" do
# dup doesn't copy singleton methods
key =... |
namespace Microsoft.Protocols.TestSuites.MS_WSSREST
{
/// <summary>
/// The request of this protocol.
/// </summary>
public class Request
{
/// <summary>
/// The parameter of http request Url.
/// </summary>
private string parameter;
/// <summary>... |
<!-- Adobe Analytics for Red Hat - DPAL (DTM Property Auto-Loader) - part 1/2 -->
<script id="dpal" src="https://www.redhat.com/dtm.js" type="text/javascript"></script>
<!-- Google Analytics for kie team: Global site tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={html-googleAnalyticsI... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
using System.Collections.Immutable;
using System.Diagnostics;
using System.Threading;
namespace... |
require "test_helper"
require "concurrent"
require "websocket-client-simple"
require "json"
require "active_support/hash_with_indifferent_access"
####
# 😷 Warning suppression 😷
WebSocket::Frame::Handler::Handler03.prepend Module.new {
def initialize(*)
@application_data_buffer = nil
super
end
}
WebSoc... |
/**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
from datetime import datetime
import json
from bson import ObjectId
from flask.ext.pymongo import MongoClient
import eve
from eve.auth import BasicAuth
from eve.tests import TestBase
from eve.tests.test_settings import MONGO1_PASSWORD, MONGO1_USERNAME, \
MONGO1_DBNAME, ID_FIELD, MONGO_DBNAME
class TestMultiMong... |
#ifndef SkStroke_DEFINED
#define SkStroke_DEFINED
#include "SkPath.h"
#include "SkPoint.h"
#include "SkPaint.h"
/** \class SkStroke
SkStroke is the utility class that constructs paths by stroking
geometries (lines, rects, ovals, roundrects, paths). This is
invoked when a geometry or text is drawn in a c... |
package api
import (
"net/http"
templateapi "github.com/openshift/origin/pkg/template/apis/template"
"k8s.io/apiserver/pkg/authentication/user"
)
func NewResponse(code int, body interface{}, err error) *Response {
return &Response{Code: code, Body: body, Err: err}
}
func BadRequest(err error) *Response {
retur... |
namespace base {
namespace android {
JavaHandlerThread::JavaHandlerThread(const char* name) {
JNIEnv* env = base::android::AttachCurrentThread();
java_thread_.Reset(Java_JavaHandlerThread_create(
env, ConvertUTF8ToJavaString(env, name).obj()));
}
JavaHandlerThread::~JavaHandlerThread() {
}
void JavaHandl... |
<?php
require 'webroot' . DIRECTORY_SEPARATOR . 'index.php';
|
/* freezer-js v0.7.0 (16-9-2015)
* https://github.com/arqex/freezer
* By arqex
* License: MIT
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
root.Freezer = factory... |
package okhttp3;
import java.net.MalformedURLException;
import java.net.Proxy;
import java.net.ProxySelector;
import java.net.UnknownHostException;
import java.security.GeneralSecurityException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import javax.net.SocketFactory;
im... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using IronPython.Hosting;
using Microsoft.PythonTools;
using Microsoft.PythonTools.Analysis;
using Microsoft.PythonTools.Intellisense;
using Microsoft.Pytho... |
var anime = (function() {
// Defaults
var defaultSettings = {
duration: 1000,
delay: 0,
loop: false,
autoplay: true,
direction: 'normal',
easing: 'easeOutElastic',
elasticity: 400,
round: false,
begin: undefined,
update: undefined,
complete: undefined
}
var valid... |
CREATE TABLE country (id VARCHAR(2) NOT NULL, name VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "country" ("id", "name") VALUES ('AF', 'Afgaanistan');
INSERT INTO "country" ("id", "name") VALUES ('AL', 'Albaani');
INSERT INTO "country" ("id", "name") VALUES ('GB', 'Albaasalaama Marganta');
INSERT INTO "country"... |
package org.apache.camel.component.file;
import java.io.File;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
import org.apache.camel.ContextTestSupport;
import org.apache.camel.Exchange;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.properties.PropertiesComponent... |
package io.awacs.component.org.jetbrains.java.decompiler.code.optinstructions;
import io.awacs.component.org.jetbrains.java.decompiler.code.Instruction;
import java.io.DataOutputStream;
import java.io.IOException;
public class INVOKESPECIAL extends Instruction {
public void writeToStream(DataOutputStream out, in... |
extern void evenmorehello(void) {
printf("Hello back from C-land\n");
}
|
<?php namespace Adamlc\Wufoo;
class WufooCurl
{
public function __construct()
{
//TIMTODO: set timout
}
public function getAuthenticated($url, $apiKey)
{
$this->curl = curl_init($url);
$this->setBasicCurlOptions();
curl_setopt($this->curl, CURLOPT_USERPWD, $apiKey... |
#ifndef CAT_H_INCLUDED
#define CAT_H_INCLUDED
#include <stdio.h>
#include <ctype.h>
#include "list.h"
#include "containers.h"
#include "userface.h"
typedef struct Cat{
char name[64];
char type; /*0 -presenters 1-presentations*/
List listofelements;
}Cat;
void PrintCatHeader(FILE*);
int PrintCat(Cat*, FILE*);
int ... |
<?php
namespace Doctrine\DBAL\Sharding;
use Doctrine\DBAL\Connection;
/**
* Sharding Manager gives access to APIs to implementing sharding on top of
* Doctrine\DBAL\Connection instances.
*
* For simplicity and developer ease-of-use (and understanding) the sharding
* API only covers single shard queries, no fan... |