text stringlengths 3 1.05M |
|---|
@interface PodsDummy_Pods_Shufflers_Example_Shufflers : NSObject
@end
@implementation PodsDummy_Pods_Shufflers_Example_Shufflers
@end
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Name: LP_Photo_curr.m
% Author: Claes Weyde
% Reine Gill modified with F107
% Descr... |
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.
*
* Tom St Denis, tomstdenis@gmail.com, http://l... |
package google
import (
"fmt"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
func dataSourceAccessApprovalOrganizationServiceAccount() *schema.Resource {
return &schema.Resource{
Read: dataSourceAccessApprovalOrganizationServiceAccountRead,
Schema: map[string]*schema.Schema{
"organization_id... |
<?php
final class PhabricatorMacroDisableController
extends PhabricatorMacroController {
public function handleRequest(AphrontRequest $request) {
$viewer = $request->getViewer();
$id = $request->getURIData('id');
$this->requireApplicationCapability(
PhabricatorMacroManageCapability::CAPABILITY)... |
class UpdateControllersForResponse < ActiveRecord::Migration[4.2]
def self.up
perm = Permission.find_by_name('do assignments')
controller = SiteController.find_or_create_by(name: 'response')
if controller
controller.permission_id = perm.id
controller.save
end
controller = SiteControl... |
require 'spec_helper'
require 'capistrano/hg'
module Capistrano
describe Hg do
let(:context) { Class.new.new }
subject { Capistrano::Hg.new(context, Capistrano::Hg::DefaultStrategy) }
describe "#hg" do
it "should call execute hg in the context, with arguments" do
context.expects(:execute)... |
package org.apache.hadoop.examples.pi;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import org.apache.hadoop.examples.pi.math.Summation;
import org.apache.hadoop.io.Writable;
/** A class for map task results or reduce task results. */
public class TaskResult implements Container<... |
package org.jhaws.common.net.client;
import org.apache.commons.lang3.StringUtils;
public class Input implements InputElement {
private static final long serialVersionUID = 8640479033953741491L;
private final String id;
private final String name;
private final InputType type;
priva... |
package org.elasticsearch.http;
import org.elasticsearch.rest.RestRequest;
/**
*
*/
public abstract class HttpRequest extends RestRequest {
}
|
module ShoudlCompile where
class Foo a where
foo :: a
instance Foo (a -> b) where
foo = error "urk"
test :: ()
test = foo 1
|
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>ObjectToString.java</file>
<line>20</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Call to default 'toString()'</problem_class>
<description>Call to default 'toString()' on <code>n</code> #loc</d... |
/*
* File: gbufferedimage.cpp
* ------------------------
* This file implements the gbufferedimage.h interface.
* See that file for documentation of each member.
*
* @author Marty Stepp
* @version 2016/07/30
* - added constructor that takes a file name
* - converted all occurrences of string parameters to cons... |
#ifndef PNGPP_IMAGE_INFO_HPP_INCLUDED
#define PNGPP_IMAGE_INFO_HPP_INCLUDED
#include "types.hpp"
#include "palette.hpp"
#include "tRNS.hpp"
#include "pixel_traits.hpp"
namespace png
{
/**
* \brief Holds information about PNG image.
*
* \see image, generator, consumer
*/
class image_info
... |
"""
Cells Utility Methods
"""
import random
from nova import db
# Separator used between cell names for the 'full cell name' and routing
# path
PATH_CELL_SEP = '!'
# Separator used between cell name and item
_CELL_ITEM_SEP = '@'
def get_instances_to_sync(context, updated_since=None, project_id=None,
deleted... |
package org.apache.cordova.contacts;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.PluginResult;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Activity;
import android.content.Intent;
import and... |
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE toc PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp TOC Version 1.0//EN"
"http://java.sun.com/products/javahelp/toc_2_0.dtd">
<toc version="1.0">
<tocitem text="External Code Formatter" target="ExternalCodeFormatter" image="folder">
<tocite... |
import datetime
import json
from urllib.parse import urlparse
from moto.core.responses import BaseResponse
class InstanceMetadataResponse(BaseResponse):
def __init__(self):
super().__init__(service_name=None)
def backends(self):
pass
def metadata_response(
self, request, full_ur... |
shared_examples_for 'has options' do |object|
if object.respond_to?(:call)
subject{ object.call }
else
subject{ object }
end
describe "dump options" do
before do
subject.dump_options = nil
end
after do
subject.dump_options = nil
end
it 'returns default options if not... |
package dockershim
import (
"time"
containertest "k8s.io/kubernetes/pkg/kubelet/container/testing"
"k8s.io/kubernetes/pkg/kubelet/dockertools"
"k8s.io/kubernetes/pkg/util/clock"
)
func newTestDockerService() (*dockerService, *dockertools.FakeDockerClient, *clock.FakeClock) {
fakeClock := clock.NewFakeClock(ti... |
<?php
namespace Aws\CloudTrail\Exception;
use Aws\Exception\AwsException;
/**
* Represents an error interacting with the AWS CloudTrail service.
*/
class CloudTrailException extends AwsException {}
|
#pragma once
#include <atomic>
#include <cstdint>
#include <list>
#include <memory>
#include <vector>
#include "envoy/thread_local/thread_local.h"
#include "common/common/logger.h"
#include "common/common/non_copyable.h"
#include "absl/container/flat_hash_map.h"
namespace Envoy {
namespace ThreadLocal {
/**
* Im... |
package org.onosproject.cluster;
import static com.google.common.base.Predicates.notNull;
import static org.junit.Assert.*;
import static org.onosproject.cluster.ControllerNodeToNodeId.toNodeId;
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
import org.onlab.packet.IpAddress;
import com.goo... |
/**
* Guice service provider interface
*/
package org.elasticsearch.common.inject.spi; |
import type { RefObject, ReactElement } from 'react';
import type { DragSourceOptions, DragPreviewOptions } from './options';
export declare type ConnectableElement = RefObject<any> | ReactElement | Element | null;
export declare type DragElementWrapper<Options> = (elementOrNode: ConnectableElement, options?: Option... |
// 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.
using System;
namespace Microsoft.SqlServer.TDS.ColInfo
{
/// <summary>
/// Status of the column
/// <... |
class CCommand;
class CCommandSrc {
public:
CCommandSrc(CCommand *command);
CCommandSrc(CCommand *command, FILE *fp);
virtual ~CCommandSrc();
CCommand *getCommand() const { return command_; }
virtual void initParent() = 0;
virtual void initChild() = 0;
virtual void term() = 0;
virtual void process(... |
var gulp = require('gulp');
var fse = require('fs-extra');
var jshint = require('gulp-jshint');
gulp.task('clean', function(done) {
fse.removeSync('dist');
fse.mkdirSync('dist');
done();
});
var ignore = ['!./dist/**', '!./node_modules/**', '!./coverage/**'];
gulp.task('lint', function() {
return gulp.src(['... |
#include "util/name_map.h"
namespace lean {
name const & rename_map::find(name const & k) const {
name const * it = &k;
while (name const * new_it = name_map<name>::find(*it)) {
it = new_it;
}
return *it;
}
}
|
// Package
///////////////
package com.hp.hpl.jena.ontology.impl;
// Imports
///////////////
import junit.framework.TestSuite;
import com.hp.hpl.jena.ontology.*;
import com.hp.hpl.jena.rdf.model.Literal;
import com.hp.hpl.jena.rdf.model.NodeIterator;
import com.hp.hpl.jena.rdf.model.RDFNode;
import com.hp.hpl.jena... |
<!--
~ Copyright 2014 Niek Haarman
~
~ 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 ag... |
package com.intellij.openapi.diff.impl.splitter;
import java.util.Comparator;
public class Interval {
public static final Comparator START_COMPARATOR = new Comparator() {
public int compare(Object o1, Object o2) {
if (o1 instanceof Interval) return ((Interval) o1).compareToStart((Integer) o2);
retu... |
namespace sf
{
////////////////////////////////////////////////////////////
/// \brief Structure defining the settings of the OpenGL
/// context attached to a window
///
////////////////////////////////////////////////////////////
struct ContextSettings
{
/////////////////////////////////////////////////////... |
package org.apache.trevni;
import java.io.IOException;
import java.util.List;
import java.util.ArrayList;
/** Metadata for a column. */
public class ColumnMetaData extends MetaData<ColumnMetaData> {
static final String NAME_KEY = RESERVED_KEY_PREFIX + "name";
static final String TYPE_KEY = RESERVED_KEY_PREFIX +... |
package hudson.slaves;
import hudson.ExtensionPoint;
import hudson.Util;
import hudson.DescriptorExtensionList;
import hudson.Extension;
import hudson.model.*;
import hudson.util.DescriptorList;
import java.util.Collections;
import java.util.HashMap;
import jenkins.model.Jenkins;
import org.jenkinsci.Symbol;
import o... |
require 'erb'
require File.expand_path('../../../spec_helper', __FILE__)
describe "ERB#def_method" do
it "define module's instance method to render eRuby file" do
input = <<'END'
arg1=<%= arg1.inspect %>
arg2=<%= arg2.inspect %>
END
expected = <<'END'
arg1="foo"
arg2=123
END
#
filename = 'example.rh... |
package org.apache.camel.component.wordpress.api.service;
import org.apache.camel.component.wordpress.api.model.Comment;
import org.apache.camel.component.wordpress.api.model.CommentSearchCriteria;
public interface WordpressServiceComments extends WordpressCrudService<Comment, CommentSearchCriteria> {
}
|
import textwrap
import unittest
from changes.experimental.categorize import parse_rules, _parse_rule, categorize, ParseError
class TestCategorize(unittest.TestCase):
def test_parse_empty_rule(self):
self.assertEqual(_parse_rule(''), None)
self.assertEqual(_parse_rule(' \n'), None)
self.as... |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>rubber-random</artif... |
<?php
/**
* @file
* Contains \Drupal\Core\Field\Plugin\Field\FieldWidget\OptionsButtonsWidget.
*/
namespace Drupal\Core\Field\Plugin\Field\FieldWidget;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Form\FormStateInterface;
/**
* Plugin implementation of the 'options_buttons' widget.
*
* @Field... |
<!-- BEGIN MUNGE: UNVERSIONED_WARNING -->
<!-- BEGIN STRIP_FOR_RELEASE -->
<img src="http://kubernetes.io/kubernetes/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/kubernetes/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/kubernet... |
package org.sakaiproject.content.impl;
import java.math.BigInteger;
import java.text.Collator;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import org.sakaiproject.content.api.ContentCollection;
import org.sakaiproject.content.api.ContentResource;
import org.sakaiproject.entity.ap... |
export interface NativeEventable {
addEventListener(name: string, handler: (...any: any[]) => any): any;
removeEventListener(name: string, handler: (...any: any[]) => any): any;
}
export declare class BrowserComponent<T extends NativeEventable> {
nativeComponent: T;
private _paused;
private _nativeH... |
package org.culturegraph.mf.stream.pipe;
import java.io.FileNotFoundException;
import javax.script.Invocable;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import org.culturegraph.mf.exceptions.MetafactureException;
import org.culturegraph.mf.framewo... |
public class ServiceClient {
public void execute() {
Util.invokeService(() -> System.out.println("Hello"));
}
} |
<?php
/**
* Redux Framework Instance Container Class
* Automatically captures and stores all instances
* of ReduxFramework at instantiation.
*
* @package Redux_Framework
* @subpackage Core
*/
class ReduxFrameworkInstances {
/**
* ReduxFrame... |
import {MongoClient} from 'mongodb';
import config from 'config';
import async from 'promise-async';
import downloader from 'image-downloader';
import path from 'path';
import fs from 'fs';
import {ambiences} from './utils/constants';
export default class ImageDownloader {
static async download() {
const db = a... |
<configuration>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/solr.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>logs/solr.%d{yyyy-MM-dd}.log</fileNam... |
package org.apache.logging.log4j.core.lookup;
import java.util.Objects;
import javax.naming.NamingException;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.Marker;
import org.apache.logging.log4j.MarkerManager;
import org.apache.logging.log4j.core.LogEvent;
import org.apache.logging.log4j.c... |
package org.apache.sqoop.schema.type;
import static org.testng.Assert.*;
import org.testng.annotations.Test;
public class TestSet {
@Test
public void testSetWithSameListType() {
Set a1 = new Set("A", new Text("T"));
Set a2 = new Set("A", new Text("T"));
assertTrue(a1.equals(a2));
assertEquals(a... |
'''
Created on Jan 16, 2012
@author: mchrzanowski
'''
import sys
from time import time
from fractions import gcd
def findInterestingFractions(LIMIT):
possibilities = set([])
for numerator in xrange(10, LIMIT):
for denominator in xrange(numerator + 1, LIMIT):
currentResult = ... |
SELECT f1.follower, COUNT(DISTINCT f2.follower) AS num
FROM follow f1
JOIN follow f2 ON f1.follower = f2.followee
GROUP BY f1.follower
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MIMWebClient.Core.Player.Skills
{
using MIMWebClient.Core.Events;
using MIMWebClient.Core.PlayerSetup;
using MIMWebClient.Core.Room;
public class MagicMissile : Skill
{
... |
use v6.c;
use HTTP::Easy::PSGI;
use Bailador::Command;
use Bailador::Utils;
class Bailador::Command::easy does Bailador::Command {
method run(:$app) {
my $config = $app.config;
my $p6w-app = $app.get-psgi-app();
my $host = $config.host;
my $port = $config.port;
my $... |
#ifndef __NMR_IMPORTSTREAM_GCC
#define __NMR_IMPORTSTREAM_GCC
#include "Common/Platform/NMR_ImportStream.h"
#include "Common/NMR_Types.h"
#include "Common/NMR_Local.h"
namespace NMR {
class CImportStream_GCC : public CImportStream {
private:
public:
CImportStream_GCC();
CImportStream_GCC(_In_ const nfWChar ... |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreeme... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Ionic makes it incredibly easy to build beautiful and interactive mobile apps using HTML5 and AngularJS.">
<meta name="keywords" content="html5,ja... |
/**
* The file contains styles for GWT widgets in the chrome theme, in RTL mode.
*
* In order to maintain cross-browser compatibility, the following syntax is
* used to create IE6 specific style rules:
* .gwt-Widget {
* property: rule applies to all browsers
* -property: rule applies only to IE6 (ov... |
module Fog
module Compute
class Cloudstack
class Real
# Deletes a firewall rule
#
# {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/deleteFirewallRule.html]
def delete_firewall_rule(*args)
options = {}
if args[0].is... |
var _ = require('../util')
var config = require('../config')
var templateParser = require('../parsers/template')
module.exports = {
isLiteral: true,
/**
* Setup. Two possible usages:
*
* - static:
* v-component="comp"
*
* - dynamic:
* v-component="{{currentView}}"
*/
bind: function... |
<?php
/**
* Wrapper for PHP warnings.
* You can disable notice-to-exception conversion by setting
*
* <code>
* PHPUnit_Framework_Error_Warning::$enabled = false;
* </code>
*
* @since Class available since Release 3.3.0
*/
class PHPUnit_Framework_Error_Warning extends PHPUnit_Framework_Error
{
public stat... |
"""Check that available RPM packages match the required versions."""
from openshift_checks import OpenShiftCheck
from openshift_checks.mixins import NotContainerizedMixin
class PackageVersion(NotContainerizedMixin, OpenShiftCheck):
"""Check that available RPM packages match the required versions."""
name = ... |
#include "config.h"
#include "bindings/core/v8/V8NPObject.h"
#include "bindings/core/v8/NPV8Object.h"
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8GlobalValueMap.h"
#include "bindings/core/v8/V8HTMLAppletElement.h"
#include "bindings/core/v8/V8HTMLEmbedElement.h"
#include "bindings/core/v8/V... |
package org.springframework.boot.web.servlet.mock;
import java.io.IOException;
import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
/**
* Simple mock Servlet that does nothing.
*
* @author Phillip Webb
*/
@Suppres... |
declare module "lodash-decorators" {
// Originally copied from ../node_modules/typescript/lib/lib.es6.d.ts
export interface ClassDecorator {
<TFunction extends Function>(target: TFunction): TFunction|void;
}
export interface PropertyDecorator {
(target: Object, propertyKey: string | symb... |
// @filename: es6ImportNameSpaceImport_0.ts
export var a = 10;
// @filename: es6ImportNameSpaceImport_1.ts
import * as nameSpaceBinding from "./es6ImportNameSpaceImport_0";
var x = nameSpaceBinding.a;
import * as nameSpaceBinding2 from "./es6ImportNameSpaceImport_0"; // elide this
|
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef GL_APICALL void (GL_APIENTRY *glGetPerfMonitorGroupsAMDPROC) (GLint * numGroups, GLsizei groupsSize, GLuint * groups);
typedef GL_APICALL void (GL_APIENTRY *glGetPerfMonitorCountersAMDPROC) (GLuint group, GLint * numCounters, GLint ... |
#ifndef __COVERAGETABLES_H
#define __COVERAGETABLES_H
/**
* \file
* \internal
*/
#include "LETypes.h"
#include "OpenTypeTables.h"
U_NAMESPACE_BEGIN
struct CoverageTable
{
le_uint16 coverageFormat;
le_int32 getGlyphCoverage(LEGlyphID glyphID) const;
};
struct CoverageFormat1Table : CoverageTable
{
... |
Meteorflux app
==============
Meteorflux is a Python-powered web service to create graphs of meteor flux observations
obtained by the MetRec software and stored in a PostgreSQL database.
Demo
----
To see the app in action, visit `http://meteorflux.io <http://meteorflux.io>`_.
Installation
------------
To install the ... |
using atom::Browser;
namespace mate {
#if defined(OS_WIN)
template<>
struct Converter<Browser::UserTask> {
static bool FromV8(v8::Isolate* isolate, v8::Local<v8::Value> val,
Browser::UserTask* out) {
mate::Dictionary dict;
if (!ConvertFromV8(isolate, val, &dict))
return false;
... |
/**
* Gumby Tabs
*/
!function($) {
'use strict';
function Tabs($el) {
Gumby.debug('Initializing Tabs', $el);
this.$el = $el;
this.$nav = this.$el.find('ul.tab-nav > li');
this.$content = this.$el.find('.tab-content');
var scope = this;
// listen for click event on tab nav and custom gumby set event
... |
/*globals window, document, jQuery, _, Backbone, _wpmejsSettings */
(function ($, _, Backbone) {
"use strict";
var WPPlaylistView = Backbone.View.extend({
initialize : function (options) {
this.index = 0;
this.settings = {};
this.data = options.metadata || $.parseJSON( this.$('script.wp-playlist-script')... |
void AddTaskFlowCascade(int trigger, int centrMin, int centrMax, int cut=1, int harmonic=2) {
AddTaskFlowCascade(trigger, centrMin, centrMax, "Xi",
Form("Xi%d%dcut%d", centrMin, centrMax, cut), 0, cut, "V0M", "VZESP", harmonic);
AddTaskFlowCascade(trigger, centrMin, centrMax, "Omega",
Form("Omega%d... |
import webpack from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
let name = 'Orb.Zone';
let vendorModules = /(node_modules|bower_components)/;
export default {
target: "web",
entry: {
app: "./src/app.js",
ozm: "./src/workers/ozm.js",
vendor: require("./src/vendor.js"),
},
outp... |
"""
=====================================================
Prediction Intervals for Gradient Boosting Regression
=====================================================
This example shows how quantile regression can be used
to create prediction intervals.
"""
import numpy as np
import pylab as pl
from sklearn.ensemble i... |
DocType is the basic building block of an application and encompasses all the three elements i.e. model, view and controller. It represents a:
- Table in the database
- Form in the application
- Controller (class) to execute business logic
#### Single Type
DocTypes can be of "Single" type where they do not represent... |
// Tool scripts for the sample pages.
// This file can be ignored and is not required to make use of CKEditor.
(function() {
// Check for sample compliance.
CKEDITOR.on( 'instanceReady', function( ev ) {
var editor = ev.editor,
meta = CKEDITOR.document.$.getElementsByName( 'ckeditor-sample-required-... |
package com.microsoft.windowsazure.core.pipeline.jersey;
import com.microsoft.windowsazure.core.pipeline.filter.ServiceResponseContext;
import com.sun.jersey.api.client.ClientResponse;
import java.io.InputStream;
import java.util.List;
public class JerseyServiceResponseContext implements ServiceResponseContext {
... |
"""
Testing for the bagging ensemble module (sklearn.ensemble.bagging).
"""
# Author: Gilles Louppe
# License: BSD 3 clause
import numpy as np
from sklearn.base import BaseEstimator
from sklearn.utils.testing import assert_array_equal
from sklearn.utils.testing import assert_array_almost_equal
from sklearn.utils.te... |
package nachos.threads;
import nachos.machine.*;
/**
* Coordinates a group of thread queues of the same kind.
*
* @see nachos.threads.ThreadQueue
*/
public abstract class Scheduler {
/**
* Allocate a new scheduler.
*/
public Scheduler() {
}
/**
* Allocate a new thread queue. If... |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {NativeEventTarget as EventTarget} from 'chrome://resources/js/cr/event_target.js';
import {DriveSyncHandler} from '../../externs/background/drive_sync_handler.js';
imp... |
class IDemoRecorder;
class INetMessage;
class INetChannelHandler;
class INetChannelInfo;
typedef struct netpacket_s netpacket_t;
typedef struct netadr_s netadr_t;
abstract_class INetChannel : public INetChannelInfo
{
public:
virtual ~INetChannel( void ) {};
virtual void SetDataRate(float rate) = 0;
virtual bool Re... |
module('Keyboard Navigation (All)', {
setup: function(){
this.input = $('<input type="text">')
.appendTo('#qunit-fixture')
.datetimepicker({format: "dd-mm-yyyy"})
.focus(); // Activate for visibility checks
this.dp = this.input.... |
package convey
import (
"flag"
"os"
"github.com/jtolds/gls"
"github.com/smartystreets/assertions"
"github.com/smartystreets/goconvey/convey/reporting"
)
func init() {
assertions.GoConveyMode(true)
declareFlags()
ctxMgr = gls.NewContextManager()
}
func declareFlags() {
flag.BoolVar(&json, "json", false, "... |
package spyglass
import (
"bytes"
"context"
"fmt"
"testing"
"k8s.io/test-infra/prow/kube"
)
// Tests getting handles to objects associated with the current Prow job
func TestFetchArtifacts_Prow(t *testing.T) {
goodFetcher := NewPodLogArtifactFetcher(&fakePodLogJAgent{})
maxSize := int64(500e6)
testCases :=... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- From: file:/Users/mingfli/src/android-sdk/facebook/res/values-hu/strings.xml -->
<eat-comment/>
<string name="com_facebook_image_download_unknown_error">Váratlan hiba történt egy kép betöltése közben.</string>
<string name="com_facebook_internet_pe... |
var Q = require("Q");
var _ = require("lodash");
var log = require("../../src/misc/log.js")();
var lobby = function () {
};
lobby.prototype.listRoles = function (data) {
var deferred = Q.defer();
data.client.on("list_roles_response", function (responseData) {
data.listRolesResponseData = responseData;
d... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE197_Numeric_Truncation_Error__int_listen_socket_to_char_81_bad.cpp
Label Definition File: CWE197_Numeric_Truncation_Error__int.label.xml
Template File: sources-sink-81_bad.tmpl.cpp
*/
/*
* @description
* CWE: 197 Numeric Truncation Error
* BadSource: listen_so... |
CREATE TABLE ACCOUNT(
USER_NAME VARCHAR(100) NOT NULL,
MAIL_ADDRESS VARCHAR(100) NOT NULL,
PASSWORD VARCHAR(40) NOT NULL,
ADMINISTRATOR BOOLEAN NOT NULL,
URL VARCHAR(200),
REGISTERED_DATE TIMESTAMP NOT NULL,
UPDATED_DATE TIMESTAMP NOT NULL,
LAST_LOGIN_DATE TIMESTAMP
);
CREATE TABLE REPOSITORY(
USER_N... |
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Management.Models;
namespace Microsoft.WindowsAzure.Management
{
/// <summary>
/// The Service Management API includes operations for listing the
/// available data center locations for a hos... |
#ifndef BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_MACROS_HPP_INCLUDED
#define BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_MACROS_HPP_INCLUDED
//type traits aren't working with nvcc
#ifndef __CUDACC__
#include <boost/type_traits.hpp>
#include <boost/static_assert.hpp>
#define BOOST_ODEINT_CHECK_CONTAINER_TYPE( Type1 , Type2 ) \... |
<?php
/**
* Config - an example for setting up system settings.
* When you are done editing, rename this file to 'Config.php'.
*
* @author David Carr - dave@daveismyname.com
* @author Edwin Hoksberg - info@edwinhoksberg.nl
* @version 2.2
* @date June 27, 2014
* @date updated Sept 19, 2015
*/
namespace Core;
... |
module Liquid
# An interrupt is any command that breaks processing of a block (ex: a for loop).
class Interrupt
attr_reader :message
def initialize(message = nil)
@message = message || "interrupt".freeze
end
end
# Interrupt that is thrown whenever a {% break %} is called.
class BreakInterr... |
package client
const (
AGENT_TYPE = "agent"
)
type Agent struct {
Resource
AccountId string `json:"accountId,omitempty" yaml:"account_id,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
Data map[string]interface{} `json:"data,omitempty" yaml:"data,omitempty"`
Description string... |
module Shell
module Commands
class Status < Command
def help
return <<-EOF
Show cluster status. Can be 'summary', 'simple', or 'detailed'. The
default is 'summary'. Examples:
hbase> status
hbase> status 'simple'
hbase> status 'summary'
hbase> status 'detailed'
EOF
end
def comma... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Immutable;
using System.Diagnostics;
namespace Microsoft.CodeAnalysis.CSharp
{
#pragma warning disable RS0010
///... |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.ui.default_browser_promo;
import android.app.Activity;
import android.content.Context;
import android.content.pm.ResolveInfo;
import andro... |
package org.apache.hadoop.service;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.service.Service.STATE;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import sta... |
#ifdef USE_TI_UIIOSANIMATOR
#ifdef USE_TI_UIIOSPUSHBEHAVIOR
#import "TiPushBehavior.h"
@implementation TiPushBehavior
-(void)_initWithProperties:(NSDictionary *)properties
{
_mode = UIPushBehaviorModeContinuous;
_items = [[NSMutableArray alloc] init];
_angle = 0;
_magnitude = 0;
_vector = CGVecto... |
namespace media {
class VideoFrame;
namespace cast {
namespace test {
// Encode a resilient barcode into |frame| containing all the bits
// from |bits|.
bool EncodeBarcode(const std::vector<bool>& bits,
scoped_refptr<media::VideoFrame> output_frame);
// Decode a barcode (encoded by EncodeBarCode) in... |