text stringlengths 3 1.05M |
|---|
<?php
use common\modules\i18n\Module;
use yii\helpers\Html;
/**
* @var string $label
* @var string $inputName
* @var string $controllerPopup
* @var string $controllerView
* @var string $labelField
* @var \common\models\Bean $relatedBean
* @var array $options
* @var string $counter
*/
$uniqueRow = \backend\c... |
/*
* AppConstants
*/
export const DEFAULT_LOCALE = 'en';
|
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_flag_display"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@di... |
function isWebSQLValid() {
return typeof openDatabase === 'function';
}
export default isWebSQLValid;
|
package org.apache.sshd.scp.common;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.OpenOption;
import java.nio.file.Path;
import java.nio.file.attribute.PosixFilePermission;
import java.util.Collection;
import java.util.Set;
import org.apache.sshd.common.session.Session;
import org.apa... |
package org.apache.eagle.storage.jdbc.conn;
import org.apache.eagle.common.config.EagleConfigFactory;
import org.apache.eagle.storage.jdbc.JdbcConstants;
/**
* @since 3/26/15
*/
public class ConnectionConfigFactory {
/**
* Read connection config from config.properties
*
* @return
*/
pub... |
Bitwise OR two values, `x | y`.
For matrices, the function is evaluated element wise.
For units, the function is evaluated on the lowest print base.
## Syntax
```js
math.bitOr(x, y)
```
### Parameters
Parameter | Type | Description
--------- | ---- | -----------
`x` | number | BigNumber | Array | Ma... |
from django.db.backends.postgresql_psycopg2.introspection import DatabaseIntrospection
from django.contrib.gis.gdal import OGRGeomType
class GeoIntrospectionError(Exception):
pass
class PostGISIntrospection(DatabaseIntrospection):
# Reverse dictionary for PostGIS geometry types not populated until
# intro... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
/**
This is meant to contain useful utilities for IO related work in ReparsePoints
- MountVolume
- Encryption
**/
#define TRACE
#define DEBUG
using System;
using Sys... |
from mock import patch
from oslo_config import cfg
from magnum.conductor import k8s_api
from magnum import objects
from magnum.tests import base
class TestK8sAPI(base.TestCase):
@patch('magnum.objects.Bay.get_by_uuid')
def test_retrieve_k8s_api_endpoint(self, mock_bay_get_by_uuid):
expected_context ... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Tooltip - Custom content</title>
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
<script src="../../jquery-1.9.1.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widge... |
[](https://twitter.com/mrackwitz)
[](https://github.com/mrackwitz/MRProgress/blob/master/LICENSE)
[ %}
{% set script_files = script_files + ['_static/searchtools.js'] %}
{% block body %}
<h1 id="search-documentation">{{ _('Search') }}</h1>
<div id="fallback" class="admonition warning">
<script type="text/javascript">$('#fallback').hide();</script>
<p>
... |
module Mailid
module ApplicationHelper
end
end
|
from __future__ import absolute_import
import logging
import threading
from thriftpy.protocol import TBinaryProtocolFactory
from thriftpy.transport import (
TBufferedTransportFactory,
TTransportException
)
logger = logging.getLogger(__name__)
class TServer(object):
def __init__(self, processor, trans,... |
#ifndef DFGMinifiedNode_h
#define DFGMinifiedNode_h
#include <wtf/Platform.h>
#if ENABLE(DFG_JIT)
#include "DFGCommon.h"
#include "DFGMinifiedID.h"
#include "DFGNodeType.h"
namespace JSC { namespace DFG {
struct Node;
inline bool belongsInMinifiedGraph(NodeType type)
{
switch (type) {
case JSConstant:
... |
import subprocess
import sys
print(sys.executable)
if __name__ == '__main__':
p = subprocess.Popen([sys.executable, '-u', '_always_live_program.py'])
import attach_pydevd
attach_pydevd.main(attach_pydevd.process_command_line(['--pid', str(p.pid)]))
p.wait()
|
#ifndef ASF_H
#define ASF_H
/*
* This file includes all API header files for the selected drivers from ASF.
* Note: There might be duplicate includes required by more than one driver.
*
* The file is automatically generated and will be re-written when
* running the ASF driver selector tool. Any changes will be ... |
package com.thoughtworks.selenium.webdriven.commands;
import com.thoughtworks.selenium.webdriven.ElementFinder;
import com.thoughtworks.selenium.webdriven.JavascriptLibrary;
import com.thoughtworks.selenium.webdriven.SeleneseCommand;
import org.openqa.selenium.WebDriver;
public class KeyEvent extends SeleneseCommand... |
package yaml
import (
"errors"
"fmt"
"io"
"reflect"
"strings"
"sync"
)
// MapSlice encodes and decodes as a YAML map.
// The order of keys is preserved when encoding and decoding.
type MapSlice []MapItem
// MapItem is an item in a MapSlice.
type MapItem struct {
Key, Value interface{}
}
// The Unmarshaler in... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(jhawkins): Use hidden instead of showInline* and display:none.
/**
* Sets the display style of a node.
*/
function showInline(node, isShow)... |
Report an Issue
===============
Please follow the guidelines below when creating an issue so that your issue can be more promptly resolved:
* Provide information including: the version of PHP and Yii, the type of operating system and Web server, browser type and version;
* Provide the **complete** error call stack if... |
package scalapb.compiler
import com.google.protobuf.Descriptors._
import com.google.protobuf.{CodedOutputStream, DescriptorProtos, ByteString => GoogleByteString}
import com.google.protobuf.Descriptors.FieldDescriptor.Type
import scalapb.compiler.FunctionalPrinter.PrinterEndo
import scalapb.options.Scalapb
import scal... |
/**
* Check if an object is contained within another object.
*
* Returns `true` if:
* - all enumerable keys of *subset* are also enumerable in *superset*, and
* - every value assigned to an enumerable key of *subset* strictly equals
* the value assigned to the same key of *superset* – or is a subset of i... |
package org.lemurproject.galago.core.retrieval.iterator;
/**
* Start encoding Galago's retrieval type system a little better.
* @author jfoley.
*/
enum IteratorType {
INDICATOR, // Has a boolean for every document.
COUNT, // Has an integer for every document
// all COUNT iterators are also INDICATOR it... |
class Main {
public static void main(String[] args) {
System.out.println(43770);
}
}
|
package statefulset
import (
"fmt"
"reflect"
"time"
apps "k8s.io/api/apps/v1"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/wait"
app... |
/*
* 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... |
/*
* Thread pool implementation.
* See <thr_pool.h> for interface declarations.
*/
#include "thr_pool.h"
thr_pool_t *thr_pools = NULL;
pthread_mutex_t thr_pool_lock = PTHREAD_MUTEX_INITIALIZER;
int
create_worker(thr_pool_t *pool)
{
sigset_t oset;
int error;
pthread_t threadp;
(void) pthread_sigmask... |
import React, {Component} from 'react';
export default class NotFound extends Component {
render() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
}
|
class RenameContributionsReferalLink < ActiveRecord::Migration
def change
rename_column :contributions, :referal_link, :referral_link
end
end
|
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MaxFront | Bootstrap Front-End</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<l... |
import junit.framework.TestCase;
public class TestCompile2TestCase
extends TestCase
{
public void testCompile2()
{
TestCompile2 test = new TestCompile2();
}
} |
var camera, scene, renderer;
var bird;
var paths = [new boids.Vector3(0, 0, 190), new boids.Vector3(30, 30, 0)];
var path_index = 0;
function resize() {
renderer.setSize($('#main').width(), $('#main').height());
}
function animate() {
requestAnimationFrame(animate);
render();
renderer.r... |
package org.apache.druid.query.movingaverage.averagers;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class DoubleMinAveragerFactory extends ComparableAveragerFactory<Double, Double>
{
@JsonCreator
public DoubleMinAveragerFactory(
@JsonPr... |
module Spree
class UserSerializer < ActiveModel::Serializer
embed :ids, include: true
attributes :id,
:email,
:remember_token,
:persistence_token,
:reset_password_token,
:perishable_token,
:sign_in_count,
... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
Modified by Evan You @yyx990803
*/
var loaderUtils = require('loader-utils')
var path = require('path')
var hash = require('hash-sum')
var qs = require('querystring')
module.exports = function () {}
module.exports.pit... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... |
console.warn("THREE.OrbitControls: As part of the transition to ES6 Modules, the files in 'examples/js' were deprecated in May 2020 (r117) and will be deleted in December 2020 (r124). You can find more information about developing using ES6 Modules in https://threejs.org/docs/index.html#manual/en/introduction/Import-vi... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/websecurityscanner/v1beta/finding_addon.proto
namespace Google\Cloud\WebSecurityScanner\V1beta\VulnerableHeaders;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUt... |
namespace google {
namespace protobuf {
// Perform a lookup in a map or hash_map.
// If the key is present in the map then the value associated with that
// key is returned, otherwise the value passed as a default is returned.
template <class Collection>
const typename Collection::value_type::second_type&
FindWithDefa... |
/**
* User: Sohel
* Date: 3/22/15
* Time: 5:58 PM
*/
/**
* Constructor invocation pattern is when a function is invoked using new prefix.
* It will then create a new object with a hidden link to the function's prototype member and
* 'this' will be bound to new object
*/
/**
*
* @param string
* @construc... |
import { RenderingTest, moduleFor } from '../utils/test-case';
import { Component } from '../utils/helpers';
import {
isFeatureEnabled,
instrumentationSubscribe,
instrumentationReset,
run
} from 'ember-metal';
let canDataTransfer = !!document.createEvent('HTMLEvents').dataTransfer;
function fireNativeWithData... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Api\V2010\Account;
use Twilio\ListResource;
use Twilio\Values;
use Twilio\Version;
class AuthorizedConnectAppList extends ListResource {
/**
* Construct the AuthorizedCon... |
class Api::AttemptStopsController < Api::BaseController
def update
in_progress = if (attempt = current_player.attempts.in_progress.first)
attempt
else
current_player.attempts.order(created_at: :desc).first!
end
attempt_stop = in_progress.attempt_stops.find_by!(stop_id: params[:id])
i... |
// ========================================================================
// $Id: TableForm.java,v 1.6 2004/05/09 20:31:28 gregwilkins Exp $
// Copyright 1996-2004 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.... |
<?php
namespace yii\db\mssql;
use yii\db\ColumnSchema;
/**
* Schema is the class for retrieving metadata from a MS SQL Server databases (version 2008 and above).
*
* @author Timur Ruziev <resurtm@gmail.com>
* @since 2.0
*/
class Schema extends \yii\db\Schema
{
/**
* @var string the default schema used... |
var common = require("./common")
, odbc = require("../")
, db = new odbc.Database()
, assert = require("assert")
;
db.openSync(common.connectionString);
assert.equal(db.connected, true);
var stmt = db.prepareSync("select ? as col1, ? as col2, ? as col3");
assert.equal(stmt.constructor.name, "ODBCStatement");
... |
#include "trikPascalABCGeneratorLibrary/trikPascalABCGeneratorPluginBase.h"
#include <QtCore/QProcess>
#include <QtCore/QDir>
#include <qrkernel/platformInfo.h>
#include <qrkernel/settingsManager.h>
#include <trikGeneratorBase/trikGeneratorPluginBase.h>
#include <trikGeneratorBase/robotModel/generatorModelExtension... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Highcharts"] = fact... |
self.context['maxpercentage'] = np.random.uniform(1,10) |
<?php
namespace Symfony\Component\Form\Extension\Core\Type;
use Symfony\Component\Form\ButtonTypeInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
/**
* A form button.
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class ButtonType extends BaseType implements ButtonTypeInterfac... |
<?php
namespace PHPExiftool\Driver\Tag\RealRA4;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class AudioFileSize extends AbstractTag
{
protected $Id = 1;
protected $Name = 'AudioFileSize';
protected $FullName = 'Real::AudioV4';... |
// 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 Microsoft.Xunit.Performance;
namespace System.Tests
{
public class Perf_Double
{
public stat... |
<?php
namespace Dropbox;
/**
* There was an protocol misunderstanding between this SDK and the server. One of us didn't
* understand what the other one was saying.
*/
class Exception_ProtocolError extends Exception
{
/**
* @internal
*/
function __construct($message)
{
parent::__constr... |
package com.paypal.selion.grid.servlets.transfer;
import static org.powermock.api.mockito.PowerMockito.mock;
import static org.powermock.api.mockito.PowerMockito.when;
import org.mockito.Mockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.testng.PowerMockTestCase;... |
<?php
/**
* Holds information about a non-compiled Twig template.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
final class Twig_Source
{
private $code;
private $name;
private $path;
/**
* @param string $code The template source code
* @param string $name The template logical na... |
package com.facebook.buck.jvm.java.plugin.adapter;
/**
* Analogue to javac 8's {@link com.sun.source.util.Plugin} class for use within Buck, even on older
* versions of javac.
*/
public interface BuckJavacPlugin {
String getName();
void init(BuckJavacTask task, String... args);
}
|
SET DEFINE OFF;
INSERT INTO KRNS_DOC_HDR_T (DOC_HDR_ID,VER_NBR,FDOC_DESC,ORG_DOC_HDR_ID,TMPL_DOC_HDR_ID,EXPLANATION,OBJ_ID)
VALUES (10138,6,'Grants.gov Preloaded Questionnaire 2',null,null,null,SYS_GUID());
INSERT INTO KRNS_DOC_HDR_T (DOC_HDR_ID,VER_NBR,FDOC_DESC,ORG_DOC_HDR_ID,TMPL_DOC_HDR_ID,EXPLANATION,OBJ_ID) ... |
Acknowledgements
=======
We acknowledge the following people for their dedications to make this project a success and more secure.<br>(To be updated in a monthly basis)
### July 2015
- [filedescriptor](https://hackerone.com/filedescriptor)
- [jayaradha](https://hackerone.com/jayaradha)
### March 2015
- [smiegles](ht... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Alectoria ochroleuca var. sulphurea Motyka
### Remarks
null |
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.example.haotian.tutorial32">
<fragment xmlns:and... |
package com.example.android.directshare;
import android.widget.TextView;
/**
* A simple utility to bind a {@link TextView} with a {@link Contact}.
*/
public class ContactViewBinder {
/**
* Binds the {@code textView} with the specified {@code contact}.
*
* @param contact The contact.
* @p... |
#if USE(PLUGIN_HOST_PROCESS)
#ifndef HostedNetscapePluginStream_h
#define HostedNetscapePluginStream_h
#include <WebCore/NetscapePlugInStreamLoader.h>
#include <WebKit/npapi.h>
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
#include <wtf/RefPtr.h>
#include <wtf/RetainPtr.h>
namespace WebCore {
class F... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_13) on Mon Dec 14 15:25:03 MSK 2009 -->
<TITLE>
org.apache.poi.ss.usermodel.contrib Class Hierarchy (POI API Documentation)
</TITLE>
<META ... |
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" ... |
var TurnServiceTests = (function () {
function TurnServiceTests(turnService) {
describe('TurnService', function () {
var game;
var turnResult;
beforeEach(function () {
game = new Game();
turnResult = TurnResult.NotSet;
});
... |
<?php
/**
* Interface for spools.
*
* @author Fabien Potencier
*/
interface Swift_Spool
{
/**
* Starts this Spool mechanism.
*/
public function start();
/**
* Stops this Spool mechanism.
*/
public function stop();
/**
* Tests if this Spool mechanism has started.
... |
<?php
namespace ZfcTwig\View;
use Twig_Environment;
use Twig_Error_Loader;
use Zend\View\Resolver\ResolverInterface;
use Zend\View\Renderer\RendererInterface as Renderer;
class TwigResolver implements ResolverInterface
{
/**
* @var Twig_Environment
*/
protected $environment;
/**
* Constru... |
'use strict';
var Promise = require('../ext/promise');
var chalk = require('chalk');
var Task = require('../models/task');
var fs = require('fs');
var path = require('path');
function npmInstall(npm) {
return Promise.denodeify(npm.commands.install)(['ember-cli']);
}
module.exports = Task.extend({... |
<?php
require_once 'Zend/Gdata/Photos.php';
require_once 'Zend/Gdata/Photos/AlbumQuery.php';
require_once 'Zend/Http/Client.php';
require_once 'Zend/Http/Client/Adapter/Test.php';
/**
* @category Zend
* @package Zend_Gdata_Photos
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2012 Zend Technologie... |
export default Ember.Handlebars.makeBoundHelper(function(word) {
return word.split('').reverse().join('');
});
|
int main() {
ui8 byte = 0b11111111;
std::cout << int{byte} << std::endl; // {} does NOT allow implicit narrow conversion
uint x = 0xFF;
std::cout << int(x) << std::endl; // () allow implicit narrow conversion
ui32 word32 = 0xFFFFFFFF;
std::cout << si64{word32} << std::endl; // {} does NOT allow implicit n... |
#import "WXVideoComponent.h"
#import "WXHandlerFactory.h"
#import "WXURLRewriteProtocol.h"
#import <AVFoundation/AVPlayer.h>
#import <AVKit/AVPlayerViewController.h>
#import <MediaPlayer/MPMoviePlayerViewController.h>
#import <MediaPlayer/MPMoviePlayerController.h>
#import <AVFoundation/AVPlayerItem.h>
@interface W... |
"""Gradient checker for any ops, graphs.
The gradient checker verifies numerically that an op/graph properly
computes the gradients
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from tensorflow.python.framework import constant_op
f... |
/**
* @module ol/layer/WebGLPoints
*/
import {assign} from '../obj.js';
import WebGLPointsLayerRenderer from '../renderer/webgl/PointsLayer.js';
import {parseLiteralStyle} from '../webgl/ShaderBuilder.js';
import Layer from './Layer.js';
/**
* @typedef {Object} Options
* @property {import('../style/LiteralStyle.j... |
module Krypt
module X509
class Extension
include ASN1::Template::Sequence
asn1_object_id :id
asn1_boolean :critical, default: false
asn1_octet_string :value
end
class Attribute
include ASN1::Template::Sequence
asn1_object_id :type
asn1_set_of :value, ASN1::ASN... |
namespace ExampleApp
{
namespace Watermark
{
namespace View
{
class WatermarkDataRepository : public IWatermarkDataRepository
{
public:
void AddWatermarkData(const std::string& key,
const WatermarkData& wat... |
.. Algorithms/Runtime Algorithms//for_each |10
for_each
========
Synopsis
--------
.. parsed-literal::
template<
typename Sequence
, typename F
>
void for_each( F f );
template<
typename Sequence
, typename TransformOp
, typename F
>
void ... |
package org.zaproxy.zap.extension.search;
import java.util.ArrayList;
import java.util.List;
import org.parosproxy.paros.Constant;
import org.parosproxy.paros.db.DatabaseException;
import org.parosproxy.paros.model.HistoryReference;
import org.parosproxy.paros.network.HttpMalformedHeaderException;
import org.parospr... |
#pragma once
#include "PolyGlobals.h"
#include "PolyEntity.h"
#include "PolyShader.h"
#include "PolyRenderDataArray.h"
namespace Polycode {
class Material;
class Mesh;
class Texture;
class Skeleton;
class Image;
class ResourcePool;
/**
* 3D polygonal mesh instance. The SceneMesh is the base for all po... |
require "formula"
class Probatron4j < Formula
desc "Schematron validator (use with Java 1.5 or later)"
homepage "http://www.probatron.org"
url "https://probatron4j.googlecode.com/files/probatron4j-0.7.4.zip"
sha1 "0970cd2bf23eb0aab98d6537cad89bc340b877d2"
def install
libexec.install "probatron.jar", "no... |
package org.elasticsearch.index.engine;
import org.elasticsearch.index.shard.ShardId;
/**
*
*/
public class RollbackFailedEngineException extends EngineException {
public RollbackFailedEngineException(ShardId shardId, Throwable t) {
super(shardId, "Rollback failed", t);
}
} |
package registrytest
import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/plugin/pkg/scheduler/algorithm"
)
type Scheduler struct {
Err error
Pod *api.Pod
Machine string
}
func (s *Scheduler) Schedule(pod *api.Pod, lister algorithm.MinionLister) (string, error) {
s.Pod = pod
return s.Machine, s.E... |
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
private slots:
void on_pushButton_clicked();
void on_checkBox_clicked();
void on_spinBox_valueChanged(int arg1);
void on_comboBox_2_activated(int index);
void on_pushButton_2_clicked();
public:
explicit MainWindo... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="/js/scenario4.js"></script>
</head>
<body class="win-type-body">
<div id="scenarioView">
<div>
<h2 id="sampleHeader" class="win-type-subheader">Description:</h2>
<div id="scenar... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js canvas - geometry - cube</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
font-family: Monospace;
background-color: #f0f0f0;
margin: 0p... |
from os.path import basename
from Queue import Queue
from random import random, seed
from sys import argv, exit
from threading import Thread
from time import sleep
################################################################################
class Widget:
pass
class Stack:
def __init__(self):
self... |
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
<title>Canvas test: 2d.composite.solid.lighter</title>
<meta name="author" content="Philip Taylor">
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="com... |
from case import Case
class Case5_19(Case):
DESCRIPTION = """A fragmented text message is sent in multiple frames. After
sending the first 2 frames of the text message, a Ping is sent. Then we wait 1s,
then we send 2 more text fragments, another Ping and then the final text fragment.
Everything i... |
<?xml version="1.0"?>
<doc>
<assembly>
<name>MarkdownSharp</name>
</assembly>
<members>
<member name="P:MarkdownSharp.IMarkdownOptions.AutoHyperlink">
<summary>
when true, (most) bare plain URLs are auto-hyperlinked
WARNING: this is a significant deviati... |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faDeviantart: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligatu... |
package krasa.formatter.action;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.Presentation;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.DumbAwareAction;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.uti... |
<?php defined('SYSPATH') OR die('No direct script access.');
class Task_Jam_Model extends Minion_Task {
protected $_options = array(
'name' => FALSE,
'module' => FALSE,
'author' => FALSE,
'force' => FALSE,
'unlink' => FALSE,
'collection' => FALSE,
);
public function build_validation(Validation $valid... |
namespace ash {
namespace {
const int kPanelSnapToLauncherDistance = 30;
PanelLayoutManager* GetPanelLayoutManager(aura::Window* panel_container) {
DCHECK(panel_container->id() == kShellWindowId_PanelContainer);
return static_cast<PanelLayoutManager*>(panel_container->layout_manager());
}
} // namespace
PanelW... |
/* Finnish translation for the jQuery Timepicker Addon */
/* Written by Juga Paazmaya (http://github.com/paazmaya) */
(function($) {
$.timepicker.regional['fi'] = {
timeOnlyTitle: 'Valitse aika',
timeText: 'Aika',
hourText: 'Tunti',
minuteText: 'Minuutti',
secondText: 'Sekunti',
millisecText: 'Mil... |
extern void print(char name[8]);
void show()
{
char name[8];
print(name);
}
|
"""HTTP Client using pyCurl."""
from __future__ import absolute_import, unicode_literals
from collections import deque
from functools import partial
from io import BytesIO
from time import time
from kombu.asynchronous.hub import READ, WRITE, get_event_loop
from kombu.exceptions import HttpError
from kombu.five import... |
using namespace std;
typedef set<pair<const CWalletTx*,unsigned int> > CoinSet;
BOOST_AUTO_TEST_SUITE(wallet_tests)
static CWallet wallet;
static vector<COutput> vCoins;
static void add_coin(int64 nValue, int nAge = 6*24, bool fIsFromMe = false, int nInput=0)
{
static int i;
CTransaction* tx = new CTransact... |
import unittest
from collections import defaultdict
from ct.cert_analysis import asn1
from ct.cert_analysis import base_check_test
from ct.client import reporter
from ct.client.db import sqlite_cert_db
from ct.client.db import sqlite_connection as sqlitecon
from ct.crypto import cert
STRICT_DER = cert.Certificate.fro... |