text stringlengths 3 1.05M |
|---|
import shutil
import os
import prompter
from crutch.core.exceptions import StopException
from crutch.core.features.basics import create_simple_feature_category
from crutch.core.features.basics import Feature, FeatureMenu
NAME = 'file'
OPT_GROUP = 'feature_file_group'
PATH_INCLUDE = 'include'
PATH_SRC = 'src'
EXT_CPP... |
require('proof')(2, prove)
function prove (okay) {
var Encoder = require('../encoder')
var Decoder = require('../decoder')
var envelope = Decoder(Encoder({ body: { body: Buffer.from('abc') } }, 'utf8'))
okay(envelope.body.body.toJSON(), { type: 'Buffer', data: [ 0x61, 0x62, 0x63 ] }, 'encoded buffer')... |
/**
*
*/
package com.jcommerce.gwt.client.panels.member;
import java.util.Map;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.but... |
namespace boost {
namespace polygon {
// Transformation of Coordinate System.
// Enum meaning:
// Select which direction_2d to change the positive direction of each
// axis in the old coordinate system to map it to the new coordiante system.
// The first direction_2d listed for each enum is the direction to map the
// ... |
// Copyright (c) 2011 Bob Berkebile (pixelplacment)
// Please direct any bugs/comments/suggestions to http://pixelplacement.com
//
// 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 r... |
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>AngularJS ui-form</title>
<link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.css" />
<!--<link rel="stylesheet" href="../bower_components/angular-material/angular-material.css" />-->
<link rel="styleshee... |
// 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.Collections;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Compo... |
package org.camunda.bpm.engine.test.bpmn.event.conditional;
import org.camunda.bpm.engine.delegate.ExecutionListener;
import org.camunda.bpm.engine.runtime.ProcessInstance;
import org.camunda.bpm.engine.task.Task;
import org.camunda.bpm.engine.task.TaskQuery;
import org.camunda.bpm.engine.test.Deployment;
import org.... |
require 'spec_helper'
describe 'posts routing', :type => :routing do
it { expect(get: '/').to route_to(controller: 'vocal/posts', action: 'index') }
it { expect(get: '/some-post').to route_to(controller: 'vocal/posts', action: 'show', post_url: 'some-post') }
end |
"""
Some Python Text Analysis
Do not Run this program, copy the appropriate tests
to something like ipython Notebook.
"""
"""Clean up and Loop documents"""
import os
import nltk
import glob
import matplotlib.pyplot as plt
import re
from os import listdir
from bs4 import BeautifulSoup
from textblob import T... |
package org.asynchttpclient.uri;
import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNull;
public class UriTest {
@Test
public void testSimpleParsing() {
Uri url = Uri.create("https://graph.facebook.com/750198471659552/accounts/tes... |
class TiffStream {
public:
// ctor/dtor
TiffStream();
~TiffStream();
public:
enum SeekDir {
beg,
cur,
end,
};
public:
// factory methods
TIFF* makeFileStream(iostream* str);
TIFF* makeFileStream(istream* str);
TIFF* makeFileStream(ostream* str);
public:
// tiff client methods... |
(function($){
$.declare('wait',{
defaults : {
title : 'Loading...',
preventClicks : true,
theme : 'dark',
onShow : $.noop,
onHide : $.noop,
pprogressSupport : false,
pprogressFill : '#000',
overlayTemplate : '<div class="wait-overlay"></div>',
modalTemplate :... |
<?php
/**
* Main access point to the app.
*
* $Id: index.php,v 1.13 2007/04/18 14:08:48 mr-russ Exp $
*/
// Include application functions
$_no_db_connection = true;
include_once('./libraries/lib.inc.php');
$misc->printHeader('', null, true);
$rtl = (strcasecmp($lang['applangdir'], 'rtl') == 0);
$co... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
{{+bindTo:partials.standard_nacl_api}}
<h1>pp::ImageData Class Reference</h1>
<div id="doxygen-ref">
{{- dummy div to appease doxygen -}}
<div>
<!-- Generated by Doxygen 1.7.6.1 -->
</div>
<!--header-->
<div class="contents">
<!-- doxytag: class="pp::ImageData" --><!-- doxytag: inherits="pp::Resource" --><div clas... |
redis - a node.js redis client
===========================
This is a complete Redis client for node.js. It supports all Redis commands, including many recently added commands like EVAL from
experimental Redis server branches.
Install with:
npm install redis
Pieter Noordhuis has provided a binding to the offic... |
/**
* Norwegian
*/
$.Editable.LANGS['nb'] = {
translation: {
"Bold": "Halvfet",
"Italic": "Kursiv",
"Underline": "Understreket",
"Strikethrough": "Gjennomstreket",
"Font Size": "St\u00f8rrelse",
"Color": "Farge",
"Background Color": "Bakgrunnsfarge",
"Text Color": "Tekstfarge",
... |
using System;
using System.Linq;
using Microsoft.Azure.Management.Automation.Models;
namespace Microsoft.Azure.Management.Automation.Models
{
/// <summary>
/// The parameters supplied to the create or update automation account
/// operation.
/// </summary>
public partial class AutomationAccountCrea... |
#include "BlobTracker.h"
#include "point2d.h"
#include <list>
#include <functional>
#include <set>
using std::vector;
#define OPENCV_VERSION CVAUX_STR(CV_VERSION_MAJOR)""CVAUX_STR(CV_VERSION_MINOR)""CVAUX_STR(CV_VERSION_REVISION)
#if defined _DEBUG
#pragma comment(lib,"opencv_core"OPENCV_VERSION"d.lib")
... |
UIKIT_EXPORT_CLASS
@interface UITextSelectionRect : NSObject
@property (readonly, nonatomic) CGRect rect STUB_PROPERTY;
@property (readonly, nonatomic) UITextWritingDirection writingDirection STUB_PROPERTY;
@property (readonly, nonatomic) BOOL isVertical STUB_PROPERTY;
@property (readonly, nonatomic) BOOL containsStart... |
import {TestBed, ComponentFixture, fakeAsync, tick, inject} from '@angular/core/testing';
import {Component, ViewChild} from '@angular/core';
import {Platform} from '@angular/cdk/platform';
import {
dispatchEvent,
createTouchEvent,
dispatchMouseEvent,
dispatchTouchEvent,
createMouseEvent,
} from '@angular/cdk... |
id: contributing
title: Contributing to JSONata
sidebar_label: Community and Contributing
---
## General questions - StackOverflow
Tagged with `jsonata`
## Bugs reporting
Bugs, suspected bugs, odd behaviour.
Open a GitHub issue - preferably contain link to exerciser
## Enhancement requests
Open a GitHub issue
#... |
A Simple POC to showcase building an app on CircleCI and pushing to ECR.
Do not use this for anything critical. It is incomplete and merely an example of how the two technologies interact.
|
var cp = require('child_process'),
_ = require('lodash'),
fs = require('fs'),
url = require('url'),
net = require('net'),
Promise = require('bluebird'),
path = require('path'),
config = require('../../server/config');
function findFreePort... |
namespace Exceptions_Homework
{
using System.Text;
public class StringExtractor
{
public static string ExtractEnding(string str, int count)
{
if (count > str.Length)
{
return "Invalid count!";
}
StringBuilder result = new Str... |
<?php
namespace Symfony\Component\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\Exception\BadMethodCallException;
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\Config\Resource\FileRe... |
package org.apache.jackrabbit.oak.jcr.security.user;
import java.security.Principal;
import javax.annotation.Nonnull;
import javax.jcr.Session;
import org.apache.jackrabbit.api.JackrabbitSession;
import org.apache.jackrabbit.api.security.principal.PrincipalManager;
import org.apache.jackrabbit.test.NotExecutableExce... |
var doc = `
Usage:
quick_example.coffee tcp <host> <port> [--timeout=<seconds>]
quick_example.coffee serial <port> [--baud=9600] [--timeout=<seconds>]
quick_example.coffee -h | --help | --version
`;
var {docopt} = require('docopt');
console.log(docopt(doc, { version: '0.1.1rc' }));
|
package com.github.pockethub.ui.user;
import com.github.pockethub.core.ResourcePager;
import org.eclipse.egit.github.core.client.PageIterator;
import org.eclipse.egit.github.core.event.Event;
/**
* News that a given user has received
*/
public class UserReceivedNewsFragment extends UserNewsFragment {
@Overri... |
using Microsoft.Xna.Framework;
namespace FusionLib.Collision
{
/// <summary>
/// Interface for collision detection, provides methods used by the collision detector
/// </summary>
public interface ICollidable
{
void OnCollision(ICollidable other);
Rectangle GetHitbox();
}
} |
export const ImportedItemWorkPhases = {
planning : 0,
implementation: 1,
verification : 2,
documentation : 3
}; |
<?php
/* TwigBundle:Exception:error.css.twig */
class __TwigTemplate_28981c0471f13df10f2870e7fe066210d1e33408b7f1e0f363e4fab9c483f507 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... |
package namespace
import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/rest"
"k8s.io/kubernetes/pkg/fields"
"k8s.io/kubernetes/pkg/labels"
"k8s.io/kubernetes/pkg/watch"
)
// Registry is an interface implemented by things that know how to store Namespace objects.
type Registry interface {
// ListNam... |
package org.elasticsearch.index.fielddata.plain;
import com.carrotsearch.hppc.IntArrayList;
import org.apache.lucene.index.*;
import org.apache.lucene.search.DocIdSetIterator;
import org.apache.lucene.util.BytesRef;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util... |
var port = null;
var getKeys = function(obj){
var keys = [];
for(var key in obj){
keys.push(key);
}
return keys;
}
function appendMessage(text) {
document.getElementById('response').innerHTML += "<p>" + text + "</p>";
}
function updateUiState() {
if (port) {
document.getElementById('connec... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
in Singer, Mycologia 36(1): 68 (1944)
#### Original name
Polyporus odorus Sommerf., 1826
### Remarks
null |
// .NAME vtkFunctionParser - Parse and evaluate a mathematical expression
// .SECTION Description
// vtkFunctionParser is a class that takes in a mathematical expression as
// a char string, parses it, and evaluates it at the specified values of
// the variables in the input string.
//
// You can use the "if" operator... |
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.layer.Tile');
goog.require('ol.proj');
goog.require('ol.source.TileJSON');
function transform(extent) {
return ol.proj.transformExtent(extent, 'EPSG:4326', 'EPSG:3857');
}
var extents = {
northwest: transform([-180, 0, 0, 85]),
northeast: transfo... |
<?php
/**
* PHPMailer - PHP email creation and transport class.
* @package PHPMailer
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
* @author Brent R. Matzell... |
<!--
- Copyright 1999-2011 Alibaba Group.
-
- 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 a... |
<?php
namespace Symfony\Component\HttpKernel\Debug;
use Symfony\Component\HttpKernel\Debug\Stopwatch;
use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Symfony\Component\HttpKernel\Profiler\Profile;
use Symfony\Component\HttpKernel\Profiler\Profiler;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* PDO IBM DB2 Database Adapter Class
*
* Note: _DB is an extender class that the app controller
* creates dynamically based on whether the query builder
* class is being used or not.
*
* @package CodeIgniter
* @subpackage Drivers
* @c... |
if (typeof module === "object" && typeof require === "function") {
var buster = require("buster-core");
var when = require("when");
buster.captureServer.pubsubClient = require("./pubsub-client.js");
}
(function () {
var STATES = [["started", "onStart"], ["loaded", "onLoad"], ["ended", "onEnd"], ["unloa... |
<?php
require_once(getabspath("classes/cipherer.php"));
$tdatawaste = array();
$tdatawaste[".truncateText"] = true;
$tdatawaste[".NumberOfChars"] = 80;
$tdatawaste[".ShortName"] = "waste";
$tdatawaste[".OwnerID"] = "";
$tdatawaste[".OriginalTable"] = "waste";
// field labels
$fieldLabelswaste = array();
$fi... |
/* -*- c++ -*- */
/*
* Copyright © 2010 Intel Corporation
*
* 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 restriction, including without limitation
* the rights to use, copy, ... |
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
@ForceInit
@Dependent
@DeprecatedGL
public interface EXT_direct_state_access {
/**
* Accepted by the <pname> parameter of GetBooleanIndexedvEXT,
* GetIntegerIndexedvEXT, GetFloatInde... |
<html>
<head>
<style>
p{
width: 480px;
text-align: justify;
font-family: Roboto,sans-serif;
}
</style>
</head>
<body>
<p>
Coffee DevelopmentThe MIT License (MIT)
</p>
<p>
Copyright (c) 2015 Wacharabuhm Tungketmukda
</p>
<p>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software... |
package io.gravitee.gateway.policy;
import io.gravitee.policy.api.PolicyConfiguration;
import io.gravitee.policy.api.PolicyContext;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
/**
* @author David BRASSELY (david.brassely at graviteesource.com)
* @author GraviteeSource Team
*/
public i... |
package org.zaproxy.zap.extension.autoupdate;
import org.zaproxy.zap.control.AddOnCollection;
public interface CheckForUpdateCallback {
void gotLatestData (AddOnCollection aoc);
void insecureUrl(String url, Exception cause);
}
|
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef TRANSACTIONDESC_H
#define TRANSACTIONDESC_H
#include <QObject>
#include <QString>
class CWallet;
class CWalletTx;
/... |
var getAliasesFactory = require('./getAliases');
describe('getAliases', function() {
it('should extract all the parts from a code name', function() {
var getAliases = getAliasesFactory();
expect(getAliases({id: 'module:ng.service:$http#get'})).toEqual([
'$http#get', 'service:$http#get', 'ng.$http#ge... |
/****************************************************************************
* mm/mm_gran/mm_graninit.c
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pro... |
<!doctype html>
<html>
<head>
<title></title>
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script>
window.Polymer = window.Polymer || {};
window.Polymer.dom = 'shadow';
</script>
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../../../pa... |
Repo for skjohns.com
|
"""
This module implements the FormRequest class which is a more covenient class
(than Request) to generate Requests based on form data.
See documentation in docs/topics/request-response.rst
"""
import urllib
from six.moves.urllib.parse import urljoin
import lxml.html
import six
from pyrake.http.request import Reques... |
//go:build !dockerless
// +build !dockerless
// Code generated by MockGen. DO NOT EDIT.
// Source: client.go
// Package testing is a generated GoMock package.
package testing
import (
types "github.com/docker/docker/api/types"
container "github.com/docker/docker/api/types/container"
image "github.com/docker/doc... |
A side menu that animates like a jelly! iOS & Android tested.
[](http://badge.fury.io/js/react-native)
[](https://nodei.co/npm/react-native-j... |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Runtime.CompilerServices
Imports CompilationCreationTestHelpers
Imports Microsoft.CodeAnalysis.Test.Utilities
Imports Microsoft.CodeAnalysis.Te... |
package org.artificer.repository.hibernate.file;
import org.artificer.common.ArtificerConfig;
import org.artificer.common.ArtificerConstants;
/**
* @author Brett Meyer.
*/
public class FileManagerFactory {
private static FileManager instance = null;
public static FileManager getInstance() {
if (i... |
from mock import patch
from nose.tools import eq_
from mozillians.common.tests import TestCase
from mozillians.users.managers import PUBLIC
from mozillians.users.models import UserProfile
from mozillians.users.tests import UserFactory
class UserProfileQuerySetTests(TestCase):
def test_privacy_level(self):
... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>timer2</title>
<link href="lib.css" rel="stylesheet">
<link href="app.css" rel="stylesheet">
</head>
<body ng-app="timer2">
... |
#include "config.h"
#include "Threading.h"
#if USE(PTHREADS)
#include "CurrentTime.h"
#include "HashMap.h"
#include "MainThread.h"
#include "RandomNumberSeed.h"
#include "StdLibExtras.h"
#include "ThreadIdentifierDataPthreads.h"
#include "ThreadSpecific.h"
#include "UnusedParam.h"
#include <errno.h>
#if !COMPILER(... |
videojs.addLanguage("ru",{
"Play": "Воспроизвести",
"Pause": "Приостановить",
"Current Time": "Текущее время",
"Duration Time": "Продолжительность",
"Remaining Time": "Оставшееся время",
"Stream Type": "Тип потока",
"LIVE": "ОНЛАЙН",
"Loaded": "Загрузка",
"Progress": "Прогресс",
"Fullscreen": "Полноэкранный р... |
pimcore.registerNS("pimcore.settings.robotstxt");
pimcore.settings.robotstxt = Class.create({
initialize: function(id) {
this.site = "";
this.data = {data: ""};
this.getTabPanel();
this.load();
},
load: function () {
Ext.Ajax.request({
... |
<pre><code>var x = "\n here is some \n new lined text";
</code></pre>
|
<div class="main-content blc">
<div class="ctn">
<h1>Statistiques</h1>
<div class="tcenter">
<?php if ( !empty($data['bestSalle']) ): ?>
<p>La salle la mieux notée est la <strong><?= $data['bestSalle']['salleTitre'] ?></strong>, avec une note de <strong><?= $data['bestSalle']['avisNote'] ?>/1... |
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace Elasticsearch.Net.Integration.Yaml.IndicesStatus1
{
public partial class IndicesStatus1YamlTests
{
[NCrunch.Framework.Exclus... |
package amazonec2
import (
"io/ioutil"
"os"
"testing"
"github.com/docker/machine/drivers/amazonec2/amz"
)
const (
testSshPort = 22
testDockerPort = 2376
testStoreDir = ".store-test"
machineTestName = "test-host"
machineTestDriverName = "none"
machineTestStorePath = "/test/p... |
from django import template
from ..models import Sponsor
register = template.Library()
@register.inclusion_tag('sponsors/templatetags/featured_sponsor_rotation.html')
def featured_sponsor_rotation():
"""
Retrieve featured Sponsors for rotation
"""
return {'sponsors': Sponsor.objects.featured()}
|
var trim = require('./trim');
var parseNumber = function(source) {
return source * 1 || 0;
};
module.exports = function toNumber(num, precision) {
if (num == null) return 0;
var factor = Math.pow(10, isFinite(precision) ? precision : 0);
return Math.round(num * factor) / factor;
};
|
The Diceware algorithm was developed by Arnold Reinhold. Please refer to his
explanation and related materials at:
http://world.std.com/~reinhold/diceware.html
Note that I am not affiliated with Arnold Reinhold and developed this script
fully independently and without his endorsement of any kind.
The `diceware` scri... |
<?php
namespace ProjectRena\Controller\Killboard;
use ProjectRena\RenaApp;
/**
* Functions for the API
*/
class SystemController
{
/**
* The Slim Application
*/
private $app;
/**
* The Cache
*/
private $cache;
/**
* The baseConfig (config/config.ph... |
/*
* 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... |
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Canvas2D) {
ASSERT_TRUE(RunExtensionTest("canvas_2d")) << message_;
}
|
<?php
namespace Doctrine\ORM\Mapping;
/**
* A set of rules for determining the physical column and table names
*
*
* @link www.doctrine-project.org
* @since 2.3
* @author Fabio B. Silva <fabio.bat.silva@gmail.com>
*/
interface NamingStrategy
{
/**
* Return a table name for an entity class
... |
"""
Given an array having 16000 unique integers,
each lying within the range 1<x<20000, how do u sort it?
You can load only 1000 numbers at a time in memory.
Ref: https://www.careercup.com/question?id=23123665
""" |
package postgresql
import (
"database/sql"
"fmt"
"net"
"net/url"
"sort"
"strings"
"github.com/jackc/pgx"
"github.com/jackc/pgx/stdlib"
)
// pulled from lib/pq
// ParseURL no longer needs to be used by clients of this library since supplying a URL as a
// connection string to sql.Open() is now supported:
//
/... |
package socket
import "syscall"
var (
errERROR_IO_PENDING error = syscall.ERROR_IO_PENDING
errEINVAL error = syscall.EINVAL
)
// errnoErr returns common boxed Errno values, to prevent allocations
// at runtime.
func errnoErr(errno syscall.Errno) error {
switch errno {
case 0:
return nil
case syscall... |
<!--
Copyright (c) 2016-2022 Martin Donath <martin.donath@squidfunk.com>
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 restriction, including without limitation the
rights to u... |
(function() {
if(typeof Math.sgn == "undefined") {
Math.sgn = function(x) { return x == 0 ? 0 : x > 0 ? 1 :-1; };
}
var Vectors = {
subtract : function(v1, v2) { return {x:v1.x - v2.x, y:v1.y - v2.y }; },
dotProduct : function(v1, v2) { return (v1.x * v2.x) + (v1.y * v2.y); },
square : function... |
namespace blink {
struct WebWindowFeatures;
}
namespace web_cache {
class WebCacheImpl;
}
// This class holds the Chrome specific parts of RenderView, and has the same
// lifetime.
class ChromeRenderViewObserver : public content::RenderViewObserver {
public:
// translate_helper can be NULL.
ChromeRenderViewObser... |
package com.linkedin.bowser.core.exceptions;
import com.linkedin.bowser.core.objects.NQLObject;
public class KeyError extends EvalError
{
private static final long serialVersionUID = 1L;
public KeyError(NQLObject key)
{
super(key.toString());
}
}
|
using Appium.Samples.Helpers;
using Appium.Samples.PageObjects;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Appium;
using OpenQA.Selenium.Appium.Android;
using OpenQA.Selenium.Appium.PageObjects;
using OpenQA.Selenium.Remote;
using OpenQA.Selenium.Support.PageObjects;
using System;
using System... |
SELECT Name
FROM STUDENTS
WHERE Marks > 75
ORDER BY SUBSTRING(Name, LENGTH(Name)-2, 3) ASC, ID ASC;
|
// This tool is for checking conformance e2e tests follow the requirements
// which is https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/conformance-tests.md#conformance-test-requirements
package main
import (
"bufio"
"bytes"
"fmt"
"io/ioutil"
"os"
"regexp"
"github.com/p... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using OLEDB.Test.ModuleCore;
using XmlCoreTest.Common;
namespace System.Xml.Tests
{
public partial class TCWriterWithMemoryStream : XmlFactoryWriterTestCaseBase
... |
module I18n
module Tests
module Localization
module Date
def setup
super
setup_date_translations
@date = ::Date.new(2008, 3, 1)
end
test "localize Date: given the short format it uses it" do
# TODO should be Mrz, shouldn't it?
assert... |
using System.ComponentModel;
using Xunit;
namespace System.Runtime.Tests
{
public static class EditorBrowsableAttributeTests
{
[Fact]
public static void TestCtor()
{
Assert.Equal(EditorBrowsableState.Advanced, new EditorBrowsableAttribute(EditorBrowsableState.Advanced).State... |
.class Lcom/samsung/android/settings/accessibility/hearing/MonoAudioPreferenceController$2;
.super Ljava/lang/Object;
.source "MonoAudioPreferenceController.java"
# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value ... |
#ifndef __CCEditBoxIMPLWP8_H__
#define __CCEditBoxIMPLWP8_H__
#include "ExtensionMacros.h"
#include "CCEditBoxImpl.h"
NS_CC_EXT_BEGIN
class CCEditBox;
class CCEditBoxImplWp8 : public EditBoxImpl
{
public:
CCEditBoxImplWp8(EditBox* pEditText);
virtual ~CCEditBoxImplWp8();
virtual bool initWithSize(const Size& s... |
package podgc
import (
"sort"
"sync"
"time"
"k8s.io/api/core/v1"
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/sets"
"k8s.io/apimachinery/pkg/util/wait"
coreinformers "k8s.io/client-go/informe... |
<TS language="ro" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click dreapta pentru a modifica adresa o eticheta</translation>
</message>
<message>
<source>Create a new address</source>
... |
namespace boost {
namespace units {
namespace si {
typedef unit<electric_charge_dimension,si::system> electric_charge;
BOOST_UNITS_STATIC_CONSTANT(coulomb,electric_charge);
BOOST_UNITS_STATIC_CONSTANT(coulombs,electric_charge);
} // namespace si
} // namespace units
} // namespace boost
#endif // BO... |
"""
IBM NAS Volume Driver.
Currently, it supports the following IBM Storage Systems:
1. IBM Scale Out NAS (SONAS)
2. IBM Storwize V7000 Unified
3. NAS based IBM GPFS Storage Systems
Notes:
1. If you specify both a password and a key file, this driver will use the
key file only.
2. When using a key file for authenti... |
package hello;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.mustachejava.DefaultMustacheFactory;
import com.github.mustachejava.MustacheFactory;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import com.goog... |
This plugin adds completion for [knife](https://docs.chef.io/knife.html), a command-line tool
to interact with [Chef](https://chef.io), a platform to automate and manage infrastructure via
code.
To use it, add `knife` to the plugins array in your zshrc file:
```zsh
plugins=(... knife)
```
## Options
- `KNIFE_RELATIV... |
package com.jetdrone.vertx.yoke.store;
import com.jetdrone.vertx.yoke.util.AsyncIterator;
import org.vertx.java.core.Handler;
import org.vertx.java.core.eventbus.EventBus;
import org.vertx.java.core.eventbus.Message;
import org.vertx.java.core.json.JsonArray;
import org.vertx.java.core.json.JsonObject;
/** # RedisSe... |
package com.intellij.openapi.roots.impl;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.roots.*;
import com.intellij.openapi.roots.libraries.Library;
import com.intellij.openapi.util.Condition;
import c... |
<html>
<head>
<title>OGRE: Member List - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link type="text/css" rel="stylesheet" href="doxygen.css">
<link type="text/css" rel="stylesheet" href="tabs.css">
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="... |