text stringlengths 3 1.05M |
|---|
package serviceaffinity
import (
"context"
"reflect"
"sort"
"testing"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
schedulerv1alpha2 "k8s.io/kube-scheduler/config/v1alpha2"
framework "k8s.io/kubernetes/pkg/scheduler/framework/v1alpha1"
fakeframework "k8s.io/kubernetes/pkg/scheduler... |
namespace Microsoft.Azure.Management.Monitor.Models
{
/// <summary>
/// Defines values for OperatorModel.
/// </summary>
public static class OperatorModel
{
public const string Equals = "Equals";
public const string NotEquals = "NotEquals";
public const string GreaterThan = ... |
'use strict';
var path = require('path');
var CleanCSS = require('clean-css');
var chalk = require('chalk');
var maxmin = require('maxmin');
module.exports = function(grunt) {
var minify = function(source, options) {
try {
return new CleanCSS(options).minify(source);
} catch (err) {
grunt.log.e... |
package com.googlecode.dex2jar.ir;
import java.util.ArrayList;
import java.util.List;
import com.googlecode.dex2jar.ir.expr.Local;
import com.googlecode.dex2jar.ir.stmt.LabelStmt;
import com.googlecode.dex2jar.ir.stmt.StmtList;
/**
*
* @author <a href="mailto:pxb1988@gmail.com">Panxiaobo</a>
* @ver... |
package com.intellij.ide.actions;
import com.intellij.idea.ActionsBundle;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.Presentation;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.wm.IdeF... |
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("01.... |
package org.apache.camel.converter;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import junit.framework.TestCase;
import org.apache.camel.util.CaseInsensitive... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>AudioListing Structure Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset='utf-8'>
<script src="../js/jquery.min.js" defer></script>
... |
import gulp = require('gulp');
import karma = require('karma');
function runKarma(singleRun: boolean): void {
karma.server.start({
configFile: __dirname + '/karma.conf.js',
singleRun: singleRun
});
}
gulp.task('test:unit:karma', ['build:test:unit'], () => runKarma(true));
karma.server.start({port: 9876}... |
def mash_attrib(name, joiner='-'):
res = ''
for c in name:
if c.isupper():
res += joiner + c.lower()
else:
res += c
return res
def round_val(val, digits):
return round(val, digits)
def get_listener(eventtype, item):
#print "get_listener", eventtype, item
... |
@class FMDatabase;
@interface FMDatabaseQueue : NSObject {
NSString *_path;
dispatch_queue_t _queue;
FMDatabase *_db;
}
@property (atomic, retain) NSString *path;
+ (id)databaseQueueWithPath:(NSString*)aPath;
- (id)initWithPath:(NSString*)aPath;
- (void)close;
- (void)inDatabase:(... |
<!DOCTYPE group PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<group>
<p>These instructions show how to setup a basic C++ project which uses the
<b>VLFeat</b> library and the g++ compiler. Our project will consist of the
following simple file, which we w... |
package com.facebook.buck.halide;
import com.facebook.buck.cxx.Archive;
import com.facebook.buck.cxx.CxxDescriptionEnhancer;
import com.facebook.buck.cxx.CxxPlatform;
import com.facebook.buck.cxx.CxxPreprocessables;
import com.facebook.buck.cxx.CxxPreprocessorDep;
import com.facebook.buck.cxx.CxxPreprocessorInput;
i... |
using System.Globalization;
using System.Threading;
namespace Abp.Threading
{
/// <summary>
/// This class is copied from here:
/// http://www.zpqrtbnk.net/posts/appdomains-threads-cultureinfos-and-paracetamol
/// It's a workaround for application startup problem.
/// </summary>
public static ... |
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Symfony\\Component\\Filesystem\\' => array($vendorDir . '/symfony/filesystem'),
'Symfony\\Component\\Debug\\' => array($vendorDir . '/symfony/debug'),
'Sitecake\\' => ... |
set -eu
## Stage 1
roscore &
ROS_NAMESPACE=stereo
sleep 2
## Stage 2
# Start camera drivers
echo "Start camera drivers" >&3
roslaunch pgr_camera_driver camera_node.launch _camera_node:=left _serialnumber:=13021177 _calibration_file:=stereo_intrinsics.ini &
roslaunch pgr_camera_driver camera_node.launch _camera_n... |
cask :v1 => 'magican' do
version :latest
sha256 :no_check
url 'http://www.magicansoft.com/download/Magican.pkg'
name 'Magican'
homepage 'http://www.magicansoft.com/'
license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder
pkg 'Magican.pkg'
uni... |
require 'rack/authenticate'
|
package com.shhdj.note.common.util;
/**
* Created by shhdj on 2017/5/21.
*/
public class HashUtil {
public static int indexFor(int hash, int length) {
// assert Integer.bitCount(length) == 1 : "length must be a non-zero power of 2";
return hash & (length-1);
}
}
|
package org.apache.rocketmq.connect.rabbitmq.connector;
import org.apache.rocketmq.connect.jms.Config;
import org.apache.rocketmq.connect.jms.Replicator;
import org.apache.rocketmq.connect.jms.connector.BaseJmsSourceTask;
import org.apache.rocketmq.connect.jms.pattern.PatternProcessor;
import org.apache.rocketmq.con... |
<?xml version="1.0" encoding="UTF-8"?>
<sem:triples uri="http://www.lds.org/vrl/church-events/modern-church-events/mi-vida-mi-historia-museum-exhibit" xmlns:sem="http://marklogic.com/semantics">
<sem:triple>
<sem:subject>http://www.lds.org/vrl/church-events/modern-church-events/mi-vida-mi-historia-museum-exhibit<... |
import java.util.*;
/**
* You are given a string, S, and a list of words, L, that are all of the same
* length. Find all starting indices of substring(s) in S that is a
* concatenation of each word in L exactly once and without any intervening
* characters.
*
* For example, given:
* S: "barfoothefoobarman"
* ... |
namespace NRules.RuleModel
{
/// <summary>
/// Visitor to traverse rule definition (or its part).
/// </summary>
/// <typeparam name="TContext">Traversal context.</typeparam>
public class RuleElementVisitor<TContext>
{
public void Visit(TContext context, RuleElement element)
{
... |
// @preserve jQuery.floatThead 1.2.8 - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2014 Misha Koryak
// @license MIT
/* @author Misha Koryak
* @projectDescription lock a table header in place while scrolling - without breaking styles or events bound to the header
*
* Dependencies:
* jquery 1.9.0 + ... |
shell-test command, rel ge
--SKIPIF--
<?php
if (!getenv('PHP_PEAR_RUNTESTS')) {
echo 'skip';
}
?>
--FILE--
<?php
require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc';
$reg = $config->getRegistry();
$pkg = new PEAR_PackageFile($config);
$info = $pkg->fromPackageFile(dirname(__FILE__) . DI... |
package tests.javax_servlet_http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import java.io.IOException;
import java.io.PrintWriter;
public class HttpServletDoServletInfoTestServl... |
\section{Jeu\-Libre Class Reference}
\label{class_jeu_libre}\index{Jeu\-Libre@{Jeu\-Libre}}
Inheritance diagram for Jeu\-Libre\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_jeu_libre}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item
void {... |
<?xml version="1.0" encoding="UTF-8"?>
<definitions
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti="http://activiti.org/bpmn"
targetNamespace="Examples">
<process id="dynamicServiceTask">
<startEvent id="theStart" />
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="task1... |
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace StockQuant.WinForm.Forms
{
public partial class MainForm : Form
{
private readonly List<Form> forms;
private readonly QuantForm frmQuant;
public MainForm(QuantForm frmQuant)
{
Ini... |
<?xml version="1.0" encoding="utf-8"?>
<PRONOM-Report xmlns="http://pronom.nationalarchives.gov.uk">
<report_format_detail>
<FileFormat>
<FormatID>1672</FormatID>
<FormatName>MySQL Table Definition Format</FormatName>
<FormatVersion>
</FormatVersion>
<FormatAliases>
</... |
set -e
DIR=`dirname $0`
source ${DIR}/common.sh
# verify that jars have not been added to the repo
JARS=`find . -name "*.jar"`
if [ "$JARS" ]; then
echo "ERROR: The following jars were found in the repo, which is not permitted. Instead add the jar to WORKSPACE as a maven_jar."
echo $JARS
exit 1
fi
# verify tha... |
var should = require("should");
var path = require("path");
var NodeEnvironmentPlugin = require("../lib/node/NodeEnvironmentPlugin");
var Compiler = require("../lib/Compiler");
var WebpackOptionsApply = require("../lib/WebpackOptionsApply");
var WebpackOptionsDefaulter = require("../lib/WebpackOptionsDefaulter");
des... |
<?php
/**
* Service definition for Partners (v2).
*
* <p>
* Searches certified companies and creates contact leads with them, and also
* audits the usage of clients.</p>
*
* <p>
* For more information about this service, see the API
* <a href="https://developers.google.com/partners/" target="_blank">Document... |
@interface PodsDummy_Pods_edXTests : NSObject
@end
@implementation PodsDummy_Pods_edXTests
@end
|
package com.apina.sso.core.session;
import java.util.HashMap;
import java.util.Map;
/**
*
*/
public class SessionData {
private String token;
private String username;
private String realm;
private Map<String, String> attributes;
private Long sessionStart;
public SessionData(String realm, St... |
"""This module contains the Timeline Model.
"""
from google.appengine.ext import db
from django.utils.translation import ugettext
from soc.models import linkable
class Timeline(linkable.Linkable):
"""The Timeline Model, representing the timeline for a Program.
"""
program_start = db.DateTimeProperty(
... |
/** PURE_IMPORTS_START _scheduler_async,_scan,_observable_defer,_map PURE_IMPORTS_END */
import { async } from '../scheduler/async';
import { scan } from './scan';
import { defer } from '../observable/defer';
import { map } from './map';
export function timeInterval(scheduler) {
if (scheduler === void 0) {
... |
HelloWorldRest
==============
Demo hello world rest
|
"""Binary for training translation models and decoding from them.
Running this program without --decode will download the WMT corpus into
the directory specified as --data_dir and tokenize it in a very basic way,
and then start training a model saving checkpoints to --train_dir.
Running with --decode starts an intera... |
<?php
namespace Composer\Installers;
class OctoberInstaller extends BaseInstaller
{
protected $locations = array(
'module' => 'modules/{$name}/',
'plugin' => 'plugins/{$vendor}/{$name}/',
'theme' => 'themes/{$name}/'
);
/**
* Format package name.
*
* For pa... |
#ifndef __LUAGL_UTIL_H__
#define __LUAGL_UTIL_H__
#if LUA_VERSION_NUM > 501
#define luagl_getn(L,i) ((int)lua_rawlen(L, i))
#else
#define luagl_getn(L,i) ((int)lua_objlen(L, i))
#endif
lua_Number luagl_tonumber(lua_State *L, int idx);
lua_Integer luagl_tointeger(lua_State *L, int idx);
int luagl_... |
<?php
/**
* @file
* Contains \Drupal\field_ui\FieldUiPermissions.
*/
namespace Drupal\field_ui;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Symfony\Component\DependencyInjection\Contai... |
require 'test/spec'
require 'stringio'
require 'rack/lint'
require 'rack/mock'
context "Rack::Lint" do
def env(*args)
Rack::MockRequest.env_for("/", *args)
end
specify "passes valid request" do
lambda {
Rack::Lint.new(lambda { |env|
[200, {"Content-type" => "test/plain", "C... |
using System.ComponentModel.DataAnnotations;
namespace EmpMan.Web.Models
{
public class ContactDetailViewModel
{
public int ID { set; get; }
[Required(ErrorMessage = "Tên không được trống")]
public string Name { set; get; }
[MaxLength(50, ErrorMessage = "Số điện thoại không vư... |
goog.provide('goog.editor.LinkTest');
goog.setTestOnly('goog.editor.LinkTest');
goog.require('goog.dom');
goog.require('goog.dom.NodeType');
goog.require('goog.dom.Range');
goog.require('goog.dom.TagName');
goog.require('goog.editor.Link');
goog.require('goog.testing.jsunit');
goog.require('goog.userAgent');
var anch... |
package service // import "github.com/docker/docker/volume/service"
import (
"context"
"fmt"
"net"
"os"
"path/filepath"
"sync"
"time"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/volume"
"github.com/docker/docker/volume/drivers"
volumemounts "github.com/docker/docker/volume/mounts"
"github... |
var _ = require('lodash'),
url = require('url'),
moment = require('moment'),
config = require('../../server/config'),
schema = require('../../server/data/schema').tables,
ApiRouteBase = '/ghost/api/v0.1/',
host = config.server.ho... |
package springfox.documentation.spring.web.dummy.controllers;
import org.springframework.stereotype.Component;
@Component
public class InheritedServiceImpl implements InheritedService {
@Override
public String getSomething(String parameter) {
return parameter;
}
} |
/**
* ReconciliationError.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201502;
/**
* Lists all errors associated with reconciliation.
*/
public class ReconciliationError extends com.google.api.a... |
/*
* 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 applicable law or agreed to in writing, software
* distribut... |
package com.baidu.ueditor.define;
import java.util.Map;
import java.util.HashMap;
/**
* 定义请求action类型
* @author hancong03@baidu.com
*
*/
@SuppressWarnings("serial")
public final class ActionMap {
public static final Map<String, Integer> mapping;
// 获取配置请求
public static final int CONFIG = 0;
public static fina... |
package com.intellij.openapi.vcs.configurable;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vcs.VcsBundle;
import com.intellij.openapi.vcs.VcsConfiguration;
import com.intellij.ui.JBColor;
import com.intellij.ui.components.JBCheckBox;
import com.intellij.ui.components.JBLabel;
import com.i... |
package org.eclipse.rdf4j.spring.demo.model;
import java.util.Objects;
import org.eclipse.rdf4j.model.IRI;
import org.eclipse.rdf4j.sparqlbuilder.core.SparqlBuilder;
import org.eclipse.rdf4j.sparqlbuilder.core.Variable;
/**
* @since 4.0.0
* @author Florian Kleedorfer
*/
public class Artist {
public static fina... |
<?php
namespace Intervention\Image\Gd\Commands;
use \Intervention\Image\Point;
use \Intervention\Image\Size;
class FitCommand extends ResizeCommand
{
/**
* Crops and resized an image at the same time
*
* @param \Intervention\Image\Image $image
* @return boolean
*/
public function ex... |
package network
// Tests network performance using iperf or other containers.
import (
"context"
"fmt"
"time"
"github.com/onsi/ginkgo"
appsv1 "k8s.io/api/apps/v1"
v1 "k8s.io/api/core/v1"
discoveryv1 "k8s.io/api/discovery/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/wait"
... |
if RUBY_PLATFORM =~ /mswin|mingw32|windows/
require 'win32/registry'
require_relative 'wmi_helper'
end
module Windows
module RegistryHelper
@@native_registry_constant = ENV['PROCESSOR_ARCHITEW6432'] == 'AMD64' ? 0x0100 : 0x0200
def get_hive_name(path)
Chef::Log.debug("Resolving registry shortcuts... |
package com.intellij.codeInsight.daemon.impl.analysis;
import com.intellij.codeInsight.daemon.impl.HighlightInfo;
import com.intellij.codeInsight.daemon.impl.HighlightInfoType;
import com.intellij.psi.*;
import com.intellij.psi.util.MethodSignature;
import com.intellij.psi.util.PsiTypesUtil;
import com.intellij.psi.u... |
package org.apache.aries.jmx.cm;
import static org.osgi.jmx.JmxConstants.PROPERTIES_TYPE;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Dictionary;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.List;
import javax.management.openmbe... |
var log = require('./logger').create('launcher')
var q = require('q')
var baseDecorator = require('./launchers/base').decoratorFactory
var captureTimeoutDecorator = require('./launchers/capture_timeout').decoratorFactory
var retryDecorator = require('./launchers/retry').decoratorFactory
var processDecorator = require(... |
package org.apache.hadoop.zebra.types;
import java.io.StringReader;
import java.util.Iterator;
import java.util.Map;
import java.util.HashSet;
import junit.framework.Assert;
import org.apache.hadoop.zebra.types.CGSchema;
import org.apache.hadoop.zebra.schema.ColumnType;
import org.apache.hadoop.zebra.parser.ParseEx... |
namespace NArchive {
namespace N7z {
class CFolderOutStream:
public ISequentialOutStream,
public CMyUnknownImp
{
public:
MY_UNKNOWN_IMP
CFolderOutStream();
STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize);
private:
COutStreamWithCRC *_outStreamWithHashSpec;
CMyComPtr<ISequentia... |
export { UserAdmin20 as default } from "../../";
|
namespace SpecificationPattern.Specifications.Base
{
using System;
public class NotSpecification<TEntity> : ISpecification<TEntity>
{
private readonly ISpecification<TEntity> specification;
public NotSpecification(ISpecification<TEntity> specification)
{
if (specificat... |
package main
func f(args ...int) {
g(args)
}
func g(args ...interface{}) {
f(args) // ERROR "cannot use|incompatible"
}
|
package org.hss.sny.sooryanamaskarayagnya;
import android.app.ActionBar;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
impo... |
import("sqlbase.sqlcommon.{withConnection,inTransaction,closing}");
import("sqlbase.sqlobj");
import("etherpad.testing.testutils.*");
function run() {
withConnection(function(conn) {
var s = conn.createStatement();
closing(s, function() {
s.execute("delete from just_a_test");
});
});
sqlob... |
package org.dna.mqtt.moquette.messaging.spi.impl;
import java.nio.ByteBuffer;
/**
*
* @author andrea
*/
class DebugUtils {
static String payload2Str(ByteBuffer content) {
byte[] b = new byte[content.remaining()];
content.mark();
content.get(b);
content.reset();
return ... |
/*$Id: SenTestCaseRun.h,v 1.6 2005/04/02 03:18:20 phink Exp $*/
// Copyright (c) 1997-2005, Sen:te (Sente SA). All rights reserved.
//
// Use of this source code is governed by the following license:
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided tha... |
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
config.action_mailer.default_url_options = { host: 'http://edify.atlaswarner.com' }
# SMTP settings for Action Mailer to interact with Mandrill.
config.action_mailer.smtp_settings = {
address: ... |
require 'strongbolt/generators/migration'
module Strongbolt
module Generators
#
# Creates a migration to add an unique index to user_groups_users,
# so that a user can only exist once in a group.
#
class FixUniqueGroupMembersGenerator < Rails::Generators::Base
include Strongbolt::Generators... |
using YAF.Lucene.Net.Util;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace YAF.Lucene.Net.Analysis.Synonym
{
/// <summary>
/// Parser for the Solr synonyms format.
/// <list type="bullet">
/// <item><description> Blank lines and lines starting wi... |
require 'chef/config'
require 'chef/mixin/params_validate'
require 'chef/mixin/from_file'
require 'chef/mash'
require 'chef/json_compat'
require 'chef/search/query'
require 'chef/mixin/api_version_request_handling'
require 'chef/exceptions'
require 'chef/server_api'
# OSC 11 BACKWARDS COMPATIBILITY NOTE (remove after ... |
package transport
import (
"net/http"
"testing"
)
type testRoundTripper struct {
Request *http.Request
Response *http.Response
Err error
}
func (rt *testRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
rt.Request = req
return rt.Response, rt.Err
}
func TestBearerAuthRoundTripper(t... |
var assert = require('assert');
var elliptic = require('../');
describe('EC API', function() {
it('should instantiate with valid curve (secp256k1)', function() {
var ec = new elliptic.ec('secp256k1');
assert(ec);
assert(typeof(ec) == "object");
});
it('should throw error with invalid curve', functi... |
/**
* \file SDL_keyboard.h
*
* Include file for SDL keyboard event handling
*/
#ifndef _SDL_keyboard_h
#define _SDL_keyboard_h
#include "SDL_stdinc.h"
#include "SDL_error.h"
#include "SDL_keycode.h"
#include "SDL_video.h"
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
#i... |
package org.apache.isis.core.metamodel.facets.value.url;
import java.net.URL;
import org.apache.isis.core.metamodel.facetapi.FacetHolder;
import org.apache.isis.core.metamodel.facets.object.value.vsp.ValueFacetUsingSemanticsProviderFactory;
public class URLValueFacetUsingSemanticsProviderFactory extends ValueFacetU... |
namespace operations_research {
namespace sat {
// This class represents a number in [0, ub]. The encoding uses ub binary
// variables x_i with i in [0, ub) where x_i means that the number is > i. It is
// called an EncodingNode, because it represents one node of the tree used to
// encode a cardinality constraint.
//... |
using namespace std;
using namespace metaSMT;
using namespace metaSMT::solver;
using namespace metaSMT::logic;
namespace proto = boost::proto;
using boost::dynamic_bitset;
using boost::assign::list_of;
std::ostream & operator<< (std::ostream & out, vector<unsigned> const & v)
{
out <<"( ";
foreach(unsigned u, v) {
... |
// -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2012 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.google.appinventor.components.runtime;
import android.content.pm.Acti... |
#include <list>
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "protocolrecords/GetClusterNodesRequest.h"
using std::list;
using namespace libyarn;
using namespace testing;
class TestGetClusterNodesRequest: public ::testing::Test {
protected:
GetClusterNodesRequest getRequest;
};
TEST_F(TestGetClust... |
import os
ON_RTD = os.environ.get('READTHEDOCS') == 'True'
ON_TRAVIS = os.environ.get('TRAVIS') == 'true'
try:
import astropy_helpers
except ImportError:
# Building from inside the docs/ directory?
import os
import sys
if os.path.basename(os.getcwd()) == 'docs':
a_h_path = os.path.abspath(o... |
package org.apache.activemq.artemis.core.version;
public interface Version {
String getFullVersion();
String getVersionName();
int getMajorVersion();
int getMinorVersion();
int getMicroVersion();
int getIncrementingVersion();
boolean isCompatible(int v);
}
|
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Copyright 2013 Manuel Munz <freifunk at somakoma dot de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the ... |
package tt.dao.impl;
import tt.dao.ResourceTypeDaoI;
import tt.model.Tresourcetype;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Repository;
@Repository
public class ResourceTypeDaoImpl extends BaseDaoImpl<Tresourcetype> implements ResourceTypeDaoI
{
@Override
... |
<?php
class Controller_AssociadoCategoria extends ControllerAdmin {
private $controller_name = "associado_categoria",
$url_path = "associado-categoria",
$model_name = "associado_categoria",
$id_field = "id_associado_categoria",
$titulo_pagina = "Categorias de Associados",
$column_label = array("ID","Nom... |
require 'i18n/backend/base'
module I18n
begin
require 'oj'
class JSON
class << self
def encode(value)
Oj::Rails.encode(value)
end
def decode(value)
Oj.load(value)
end
end
end
rescue LoadError
require 'active_support/json'
JSON = A... |
// .NAME vtkQuad - a cell that represents a 2D quadrilateral
// .SECTION Description
// vtkQuad is a concrete implementation of vtkCell to represent a 2D
// quadrilateral. vtkQuad is defined by the four points (0,1,2,3) in
// counterclockwise order. vtkQuad uses the standard isoparametric
// interpolation functions fo... |
from markdown import message, CRITICAL
import sys
## Import
def importETree():
"""Import the best implementation of ElementTree, return a module object."""
etree_in_c = None
try: # Is it Python 2.5+ with C implemenation of ElementTree installed?
import xml.etree.cElementTree as etree_in_c
excep... |
/*! UIkit 3.0.0-rc.4 | http://www.getuikit.com | (c) 2014 - 2017 YOOtheme | MIT License */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
typeof define === 'function' && define.amd ? define('uikitlightbox', ['uikit-... |
package org.apache.camel.dataformat.bindy.model.simple.spanLastRecord;
import org.apache.camel.dataformat.bindy.annotation.CsvRecord;
import org.apache.camel.dataformat.bindy.annotation.DataField;
@CsvRecord(separator = "\\s+", autospanLine = true)
public class RegexSpanLastRecord {
@DataField(pos = 1)
priv... |
package com.thinkgem.jeesite.common.persistence.dialect.db;
import com.thinkgem.jeesite.common.persistence.dialect.Dialect;
/**
* @author poplar.yfyang
* @version 1.0 2010-10-10 下午12:31
* @since JDK 1.5
*/
public class DerbyDialect implements Dialect {
@Override
public boolean supportsLimit()... |
<?php
namespace Symfony\Component\Finder\Tests;
use Symfony\Component\Finder\Expression\Expression;
class ExpressionTest extends \PHPUnit_Framework_TestCase
{
/**
* @dataProvider getTypeGuesserData
*/
public function testTypeGuesser($expr, $type)
{
$this->assertEquals($type, Expressio... |
package org.jf.dexlib2.iface.instruction.formats;
import org.jf.dexlib2.iface.instruction.OffsetInstruction;
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction;
public interface Instruction21t extends OneRegisterInstruction, OffsetInstruction {
}
|
CC = gcc
OTHER_HEADERS = ../../mjpg_streamer.h ../../utils.h ../output.h ../input.h
CFLAGS += -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC
#CFLAGS += -DDEBUG
LFLAGS += -lpthread -ldl
all: output_autofocus.so
clean:
rm -f *.a *.o core *~ *.so *.lo
output_autofocus.so: $(OTHER_HEADERS) output_autofocus.c processJP... |
namespace url_canon {
namespace {
template<typename CHAR, typename UCHAR>
bool DoCanonicalizeStandardURL(const URLComponentSource<CHAR>& source,
const url_parse::Parsed& parsed,
CharsetConverter* query_converter,
CanonOutput*... |
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.Runtime.InteropServices;
using System;
using System.Collections.Generic;
/// <summary>
/// Plays video using Exoplayer rendering it on the main texture.
/// </summary>
public class GvrVideoPlayerTexture : MonoBehaviour {
private const i... |
function hasRender(Class) {
var prototype = Class.prototype;
if (!prototype) {
return false;
}
return typeof prototype.render === 'function';
}
function descendsFromReactComponent(Class, React) {
if (!React.Component) {
return false;
}
var Base = Object.getPrototypeOf(Class);
while (Base) {
... |
module.exports = function () {
throw 'beep';
};
|
@import url('widgets.css');
/* FORM ROWS */
.form-row {
overflow: hidden;
padding: 8px 12px;
font-size: 11px;
border-bottom: 1px solid #eee;
}
.form-row img, .form-row input {
vertical-align: middle;
}
form .form-row p {
padding-left: 0;
font-size: 11px;
}
/* FORM LABELS */
form h4 {
... |
var inst = require("../index").getInstance();
inst.applyConfig({ debug: true, filter: "debug" });
module.exports = inst.use("event-base");
|