text stringlengths 3 1.05M |
|---|
using namespace llvm;
using namespace object;
using support::ulittle8_t;
using support::ulittle16_t;
using support::ulittle32_t;
using support::little16_t;
// Returns false if size is greater than the buffer size. And sets ec.
static bool checkSize(const MemoryBuffer &M, std::error_code &EC,
uin... |
package org.alien4cloud.tosca.editor.operations.relationshiptemplate;
import org.alien4cloud.tosca.editor.operations.nodetemplate.AbstractNodeOperation;
import org.hibernate.validator.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;
/**
* Define an operation on a relationship
*/
@Getter
@Setter
pu... |
!function ($) {
"use strict"; // jshint ;_;
/* ALERT CLASS DEFINITION
* ====================== */
var dismiss = '[data-dismiss="alert"]'
, Alert = function (el) {
$(el).on('click', dismiss, this.close)
}
Alert.prototype.close = function (e) {
var $this = $(this)
, selector =... |
title: Installing
sort_rank: 2
---
# Installing
## Using pre-compiled binaries
We provide precompiled binaries for released versions for most Prometheus
components. These may be found under the "Releases" tab of the respective
GitHub repositories. For example, for the main Prometheus server, binary
releases are avai... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_40) on Fri Aug 14 13:04:45 CST 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>com.lody.welike.ui.annotatio... |
package gophercloud
import (
"fmt"
"net/url"
"path/filepath"
"strings"
"time"
)
// WaitFor polls a predicate function, once per second, up to a timeout limit.
// This is useful to wait for a resource to transition to a certain state.
// To handle situations when the predicate might hang indefinitely, the
// pred... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
/*============================================================
**
** Source: Sleep.c
**
** Purpose: Test to establish whether the Sleep function stops the thread... |
/*----------- Repeating Blocks -------------*/
.charsheet .repcontrol_add {
display: block;
background:#7F2108;
color:white;
text-shadow:0px 0px 2px #000,0px 0px 2px #000,0px 0px 2px #000;
box-shadow:none;
float:left!important;
margin-bottom:0px;
font-size:0.9em;
height:2.2em;
fo... |
layout: redirected
sitemap: false
redirect_to: geojson/example.html
---
|
<p><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="bc.css">
<!--
<script src="run_prettify.js" type="text/javascript"></script>
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js" type="text/javascript"></script>
--... |
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE
The complete set of authors may be found at http://polymer.github.io/AUTHORS
The complete set of contributors may be found at http://polymer... |
var f = require('./formatters');
var SolidityType = require('./type');
/**
* SolidityTypeAddress is a prootype that represents address type
* It matches:
* address
* address[]
* address[4]
* address[][]
* address[3][]
* address[][6][], ...
*/
var SolidityTypeAddress = function () {
this._inputFormatter = ... |
struct wl_output;
struct wl_registry;
namespace ozonewayland {
class WaylandDisplay;
// WaylandScreen objects keep track of the current outputs (screens/monitors)
// that are available to the application.
class WaylandScreen {
public:
WaylandScreen(wl_registry* registry, uint32_t id);
~WaylandScreen();
// Re... |
namespace boost{ namespace math{
template <class Dist, class RealType>
struct complemented2_type
{
complemented2_type(
const Dist& d,
const RealType& p1)
: dist(d),
param(p1) {}
const Dist& dist;
const RealType& param;
private:
complemented2_type& operator=(const complemented2... |
module Vulkan
class VkSemaphoreCreateInfo < FFI::Struct
layout sType: :VkStructureType,
pNext: :pointer,
flags: :VkSemaphoreCreateFlags
end
end |
package org.codingpedia.demo.rest.errorhandling;
import javax.ws.rs.core.Response.Status;
import javax.ws.rs.core.Response.Status.Family;
import javax.ws.rs.core.Response.StatusType;
/**
* Class used to provide custom StatusTypes, especially for the the Reason Phrase that appears in the HTTP Status Response
*/
publ... |
[instagram-private-api](../../README.md) / [responses](../../modules/responses.md) / HighlightsRepositoryEditReelResponseItemsItem
# Interface: HighlightsRepositoryEditReelResponseItemsItem
[responses](../../modules/responses.md).HighlightsRepositoryEditReelResponseItemsItem
## Table of contents
### Properties
- [... |
using System;
using System.Collections.Generic;
using System.Net.Http;
using Microsoft.Owin;
using Microsoft.Owin.Security;
namespace Owin.Security.Providers.VisualStudio {
public class VisualStudioAuthenticationOptions : AuthenticationOptions {
public class VisualStudioAuthenticationEndpoints {
/// <summary>
... |
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **string** | Message describing the code | [optional]
**type** | **string** | Ready | [optional]
**code** | **float** | | [optional]
**additional_data** | **object** | | [optional]
[[Back to Model list]](... |
#include <common.h>
#if defined (CONFIG_IMX)
#include <asm/arch/imx-regs.h>
int timer_init (void)
{
int i;
/* setup GP Timer 1 */
TCTL1 = TCTL_SWR;
for ( i=0; i<100; i++) TCTL1 = 0; /* We have no udelay by now */
TPRER1 = get_PERCLK1() / 1000000; /* 1 MHz */
TCTL1 |= TCTL_FRR | (1<<1); /* Freerun Mode, PERCLK... |
<?php
namespace Psy;
use Psy\VersionUpdater\Checker;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputDefinition;
use Symfony\Component\Console\Input\InputOption;
if (!function_exists('Psy\sh')) {
/**
* Command to re... |
static char kAssociatedObjectKey;
@implementation UIImageView (WebImage)
- (void)wi_setImageWithUrl:(NSURL *)url {
[self wi_setImageWithUrl:url transitionDuration:0 completion:nil];
}
- (void)wi_setImageWithUrl:(NSURL *)url
transitionDuration:(NSTimeInterval)duration
completion:(void (^)(UI... |
RSpec.describe RuboCop::Cop::Rails::TimeZone, :config do
subject(:cop) { described_class.new(config) }
context 'when EnforcedStyle is "strict"' do
let(:cop_config) { { 'EnforcedStyle' => 'strict' } }
described_class::TIMECLASS.each do |klass|
it "registers an offense for #{klass}.now" do
ins... |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1998
-}
{-# LANGUAGE CPP #-}
module NameSet (
-- * Names set type
NameSet,
-- ** Manipulating these sets
emptyNameSet, unitNameSet, mkNameSet, unionNameSet, unionNameSets,
minusNameSet, elemNa... |
echo "This is test-dispatch-script-dos.sh"
echo "On node @node.name@ $RD_NODE_NAME"
echo "With tags: @node.tags@ $RD_NODE_TAGS"
echo "With args: $@"
|
Test function posix_setgid() by substituting argument 1 with boolean values.
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>
--CREDITS--
Marco Fabbri mrfabbri@gmail.com
Francesco Fullone ff@... |
<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>
<groupId>com.pfalabs.scala-osgi-trials</groupId>
<artifactId>com... |
/* hw_cluster_labs_err.c */
/* ====================================================================
* Copyright (c) 1999-2002 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are ... |
<?php defined('BX_DOL') or die('hack attempt');
/**
* System service for creating system profile functionality.
*/
class BxBaseServiceAccount extends BxDol
{
protected $_oAccountForms;
protected $_oAccountQuery;
public function __construct()
{
parent::__construct();
$this->_oAccoun... |
package im.actor.server.util
import scala.concurrent.ExecutionContext
import scala.util.control.NoStackTrace
import org.joda.time.DateTime
import slick.dbio.DBIO
import im.actor.api.rpc.AuthorizedClientData
import im.actor.server.{ models, persist }
object HistoryUtils {
import GroupUtils._
// User for writin... |
if [ -z "$EXIST_HOME" ]; then
EXIST_HOME="%{INSTALL_PATH}"
fi
if [ -z "$JAVA_HOME" ]; then
JAVA_HOME="%{JDKPath}"
fi
#
# In addition to the other parameter options for the standalone server
# pass -j or --jmx to enable JMX agent. The port for it can be specified
# with optional port number e.g. -j1099 or --jm... |
@implementation NBClient (Tags)
- (NSURLSessionDataTask *)fetchTagsWithPaginationInfo:(NBPaginationInfo *)paginationInfo
completionHandler:(NBClientResourceListCompletionHandler)completionHandler {
NSURLComponents *components = [self.baseURLComponents copy];
components.path ... |
#if defined(__GNUC__)
#warning "Inclusion of header files from include/Qt is deprecated."
#elif defined(_MSC_VER)
#pragma message("WARNING: Inclusion of header files from include/Qt is deprecated.")
#endif
#endif
#include "../QtGui/qcleanlooksstyle.h"
|
/* Component containers
----------------------------------*/
.ui-widget {
font-family: Segoe UI,Arial,sans-serif;
font-size: 1.1em;
}
.ui-widget .ui-widget {
font-size: 1em;
}
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
font-family: Segoe UI,Arial,sans-serif;
font-size: 1em;
}
.... |
#import "AppDelegate.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
... |
mtl_propertyAttributes *mtl_copyPropertyAttributes (objc_property_t property) {
const char * const attrString = property_getAttributes(property);
if (!attrString) {
fprintf(stderr, "ERROR: Could not get attribute string from property %s\n", property_getName(property));
return NULL;
}
if... |
/**
* @requires OpenLayers/Format/XML.js
* @requires OpenLayers/Format/OGCExceptionReport.js
*/
/**
* Class: OpenLayers.Format.XML.VersionedOGC
* Base class for versioned formats, i.e. a format which supports multiple
* versions.
*
* Inherits from:
* - <OpenLayers.Format.XML>
*/
OpenLayers.Format.XML.Ver... |
package org.elasticsearch.common.settings;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.component.AbstractComponent;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.regex.Regex;
import org.elasticsearch.common.xcontent.ToXContent.Params;
import org.elasticsea... |
### 3.4 Getters validation
If you have getters validation:
```php
namespace Acme\DemoBundle\Entity;
class User
{
// ...
/**
* @return bool
*
* @Assert\True(message="The password cannot match your first name")
*/
public function isPasswordLegal()
{
return $this->firstName !=... |
<?php
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
//Ensure has proper line ending before outputing a text block like with SymfonyStyle::listing() or SymfonyStyle::text()
return function (InputInterface $inp... |
<?php
/**
* This class is the front most class for utilizing Zend_Tool_Project
*
* A profile is a hierarchical set of resources that keep track of
* items within a specific project.
*
* @category Zend
* @package Zend_Tool
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.c... |
#include <aws/personalize/model/DescribeFeatureTransformationResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::Personalize::Model;
using... |
module Sass
# An exception class that keeps track of
# the line of the Sass template it was raised on
# and the Sass file that was being parsed (if applicable).
#
# All Sass errors are raised as {Sass::SyntaxError}s.
#
# When dealing with SyntaxErrors,
# it's important to provide filename and line numbe... |
/*
jQuery.mmenu effects extension CSS
*/
html.mm-effect-zoom-menu .mm-menu.mm-offcanvas {
-webkit-transition: -webkit-transform 0.4s ease;
-moz-transition: -moz-transform 0.4s ease;
-ms-transition: -ms-transform 0.4s ease;
-o-transition: -o-transform 0.4s ease;
transition: transform 0.4s ease; }
html.mm-effe... |
<?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* ProjectUrlMatcher
*
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class ProjectUrlMatcher e... |
"""This file contains a unit test for the timelib in Plaso."""
import datetime
import unittest
from plaso.lib import errors
from plaso.lib import timelib
import pytz
class TimeLibTest(unittest.TestCase):
"""Tests for timestamp."""
def testCopyFromString(self):
"""Tests the CopyFromString function."""
... |
require 'spec_helper'
module RSpec
module Mocks
describe "stub implementation" do
describe "with no args" do
it "execs the block when called" do
obj = double()
obj.stub(:foo) { :bar }
expect(obj.foo).to eq :bar
end
end
describe "with one arg" do
... |
Performs search on local data set.
<div class="definition">
localSearch([silent])
</div>
<div class="arguments">
<table>
<tr>
<td>silent</td>
<td><b>boolean</b>, indicates whether to display sort time in the status bar</td>
</tr>
</table>
</div>
Returns number of milliseconds it t... |
require 'spec_helper'
module Refinery
describe Page do
let(:page_title) { 'RSpec is great for testing too' }
let(:child_title) { 'The child page' }
let(:created_page) { subject.class.create!(:title => page_title, :deletable => true) }
let(:created_child) { created_page.children.create!(:title => chi... |
package v3election
|
try:
import unittest2 as unittest
except ImportError:
import unittest
from lighthouse.haproxy.stanzas.stats import StatsStanza
class StatsStanzaTests(unittest.TestCase):
def test_default_uri(self):
stanza = StatsStanza(9000)
self.assertEqual(
str(stanza),
"""list... |
require("../lib/babel-external-helpers");
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to Apereo under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Apereo licenses this file to you under the Apache License,
Version 2.0 (the "Lice... |
<nav-bar
[title]="title"
[backLink]="backLink"
[action]="done">
</nav-bar>
<main *ngIf="nightOut">
<div class="jumbotron text-sm-center">
<div *ngIf="!hasRounds()">
<h1 class="display-3">Is it your turn at the bar?</h1>
<p class="lead">Don't worry, just start a round and add your drinks. We ar... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
var economy;
if (!fs.existsSync('economy/' + config.serverid + '-' + toId(config.nick) + '.json')) {
var data = {
global: {
cp: {
currency: 'points',
factor: 10
},
data: {}
},
rooms: {},
}
fs.writeFileSync('economy/'... |
(function() {
var CoffeeScript, Module, binary, child_process, ext, findExtension, fork, helpers, loadFile, path, _i, _len, _ref;
CoffeeScript = require('./coffee-script');
child_process = require('child_process');
helpers = require('./helpers');
path = require('path');
loadFile = function(module, file... |
#region License
#endregion
using System;
using System.Collections.Specialized;
using System.IO;
using System.Text;
using WebSocketSharp.Net;
namespace WebSocketSharp
{
internal class HttpResponse : HttpBase
{
#region Private Fields
private string _code;
private string _reason;
#endregion
#... |
'use strict';
self.addEventListener('push', function(event) {
console.log('Received a push message', event);
var title = 'Yay a message.';
var body = 'We have received a push message.';
var tag = 'simple-push-demo-notification-tag';
event.waitUntil(
self.registration.showNotification(title, {
bod... |
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("07... |
<?xml version="1.0" encoding="UTF-8"?>
<billStatus>
<bill>
<laws />
<policyArea>
<name>Native Americans</name>
</policyArea>
<updateDate>2017-05-03T23:51:36Z</updateDate>
<version>1.0.0</version>
<constitutionalAuthorityStatementText><![CDATA[<pre>From the Congressional Record Online thr... |
package org.terasology.logic.console.commandSystem.adapter;
import org.terasology.asset.Assets;
import org.terasology.entitySystem.prefab.Prefab;
/**
* @author Limeth
*/
public class PrefabAdapter implements ParameterAdapter<Prefab> {
@Override
public Prefab parse(String raw) {
return Assets.get(ra... |
unless Enumerable.method_defined? :count
require 'backports/tools'
module Enumerable
def count(item = Backports::Undefined)
seq = 0
if item != Backports::Undefined
each { |o| seq += 1 if item == o }
elsif block_given?
each { |o| seq += 1 if yield(o) }
else
each {... |
NO_REMOTE_STATUS='--no-remote-status'
dot_git=""
cwd=""
remote=""
rcfile_path="$HOME"
prepare_bash_colors() {
if [ -f "$rcfile_path/.gitradarrc.bash" ]; then
source "$rcfile_path/.gitradarrc.bash"
elif [ -f "$rcfile_path/.gitradarrc" ]; then
source "$rcfile_path/.gitradarrc"
fi
COLOR_REMOTE_AHEAD="\x... |
package org.apache.ignite.cache.store.jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Map;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.a... |
<?php
namespace Chamilo\Application\Weblcms\Tool\Implementation\Assignment\Component\SubmitterSubmissions;
use Chamilo\Application\Weblcms\Rights\WeblcmsRights;
use Chamilo\Application\Weblcms\Tool\Implementation\Assignment\Component\SubmissionsManager;
use Chamilo\Application\Weblcms\Tool\Implementation\Assignment\Ma... |
/**!
* AngularJS file upload/drop directive and service with progress and abort
* @author Danial <danial.farid@gmail.com>
* @version 7.0.14
*/
if (window.XMLHttpRequest && !(window.FileAPI && FileAPI.shouldLoad)) {
window.XMLHttpRequest.prototype.setRequestHeader = (function (orig) {
return function (heade... |
(function( wp, $ ){
if ( ! wp || ! wp.customize ) { return; }
var api = wp.customize,
OldPreview;
/**
* wp.customize.WidgetCustomizerPreview
*
*/
api.WidgetCustomizerPreview = {
renderedSidebars: {}, // @todo Make rendered a property of the Backbone model
renderedWidgets: {}, // @todo Make rendered a... |
package checkpoint
import (
"fmt"
"testing"
"github.com/davecgh/go-spew/spew"
apiv1 "k8s.io/api/core/v1"
apiequality "k8s.io/apimachinery/pkg/api/equality"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
clientset "k8s.io/client-go/kubernetes"
fakeclient "k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/... |
#include "unicode/utypes.h"
#include "unicode/uspoof.h"
#include "unicode/unorm.h"
#include "unicode/uregex.h"
#include "unicode/ustring.h"
#include "cmemory.h"
#include "uspoof_impl.h"
#include "uhash.h"
#include "uvector.h"
#include "uassert.h"
#include "uarrsort.h"
#include "uspoof_conf.h"
#include "uspoof_wsconf.... |
import formatDecimal from "./formatDecimal";
export default function(x) {
return x = formatDecimal(Math.abs(x)), x ? x[1] : NaN;
};
|
using base::UserMetricsAction;
namespace chromeos {
LoginPerformer::LoginPerformer(scoped_refptr<base::TaskRunner> task_runner,
Delegate* delegate,
bool disable_client_login)
: delegate_(delegate),
task_runner_(task_runner),
online_attempt_... |
package com.trioptimum.shodan.intercept.api;
import com.trioptimum.shodan.common.internal.ParameterizedCalling;
import com.trioptimum.shodan.intercept.internal.InterceptionContext;
import com.trioptimum.shodan.intercept.service.Interception;
/**
* Created with IntelliJ IDEA.
* User: Turtles
* Date: 15.12.... |
package org.apache.camel.component.flatpack;
import java.util.List;
import java.util.Map;
import org.apache.camel.EndpointInject;
import org.apache.camel.Exchange;
import org.apache.camel.Message;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.spring.junit5.CamelSpringTest;
import ... |
require 'fog/core/collection'
require 'fog/bluebox/models/compute/image'
module Fog
module Compute
class Bluebox
class Images < Fog::Collection
model Fog::Compute::Bluebox::Image
def all
data = service.get_templates.body
load(data)
end
def get(template_... |
package storage
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
import (
"bytes"
"fmt"
"net/url"
"sort"
"strings"
)
// See: https://docs.microsoft.com/rest/api/storageservices/fileservices/authentication... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
<?xml version="1.0" encoding="UTF-8"?>
<workingSetManager>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1396017968583_0" label="Window Working Set" name="Aggregate for window 1396017968583"/>
</workingSetManager> |
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
using Newtonsoft.Json.Linq;
using ReactNative.Bridge;
using Salesforce.SDK.Auth;
using Salesforce.SDK.SmartStore.Store;
using Salesforce.SDK.SmartSync.Manager;
using Salesforce.SDK.SmartSync.Model;
using System;
namespace Salesforce.SDK.ReactNative
{
/// <summary>
///
/// </summary>
class SmartSyncRe... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using Ploeh.AutoFixture;
using Ploeh.AutoFixture.Kernel;
using Ploeh.AutoFixtureUnitTest.Kernel;
using Xunit;
using Xunit.Extensions;
namespace Ploeh.AutoFixtureUnitTest
... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
/*============================================================
**
** Source: test.c
**
** Purpose: Test for wsprintfW() function
**
**
**========================... |
.navbar-header a:link, .navbar-header a:visited, .navbar-header a:active {
color: rgb(99, 196, 236);
}
.writer-header {
position: fixed;
top: 56px;
width: 100%;
z-index: 999;
transition-property: all;
transition-duration: .5s;
transition-timing-function: cubic-bezier(1, 1, 1, 1);
}
.headroom--unpinned {
... |
from json import loads, dumps
from oauthlib.common import to_unicode
def weibo_compliance_fix(session):
def _missing_token_type(r):
token = loads(r.text)
token['token_type'] = 'Bearer'
r._content = to_unicode(dumps(token)).encode('UTF-8')
return r
session._client.default_tok... |
.. include:: ../links.inc
.. _installers:
MNE-Python installers
=====================
MNE-Python installers are the easiest way to install MNE-Python and
all dependencies. They also provide many additional
Python packages and tools, including the `Spyder`_ development environment.
Got any questions? Let us know on t... |
/** @file midl.h
* @brief LMDB ID List header file.
*
* This file was originally part of back-bdb but has been
* modified for use in libmdb. Most of the macros defined
* in this file are unused, just left over from the original.
*
* This file is only used internally in libmdb and its definitions
* are not expos... |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Microsoft.WindowsAzure.Management.HDInsight.Tests.ClientAbstractionTests
{
[TestClass]
public class UnitTest2
{
[TestMethod]
public void TestMethod1()
{
}
}
}
|
var should = require('should');
var sha1 = require('sha1');
var User = require('../server/user');
describe('UserAPI', function(){
var UserAPI;
var self = this;
beforeEach(function(done) {
self.UserAPI = User();
self.UserAPI.initialize();
done(); // when we use a database, all of this will need to be... |
// Code generated by client-gen. DO NOT EDIT.
package fake
import (
v1beta1 "k8s.io/api/rbac/v1beta1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
t... |
<?php
class PluginAreas {
const BLINDS = 'blinds';
const DOORS = 'doors';
const LIGHTS = 'lights';
const SENSORS = 'sensors';
const WINDOWS = 'windows';
}
|
<?php
/**
* @see Zend_Service_DeveloperGarden_Response_ResponseAbstract
*/
// require_once 'Zend/Service/DeveloperGarden/Response/ResponseAbstract.php';
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.z... |
import { Component } from '@angular/core';
/**
* @title Primary buttons
*/
@Component({
selector: 'button-primary-example',
templateUrl: 'button-primary-example.html',
styleUrls: ['button-primary-example.css'],
})
export class ButtonPrimaryExample {
negativeColor: string = 'negative';
}
|
module AWS #:nodoc:
# AWS::S3 is a Ruby library for Amazon's Simple Storage Service's REST API (http://aws.amazon.com/s3).
# Full documentation of the currently supported API can be found at http://docs.amazonwebservices.com/AmazonS3/2006-03-01.
#
# == Getting started
#
# To get started you need to requir... |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=iso-8859-1" http-equiv="content-type">
<title>Remove polygon holes</title>
<link rel="stylesheet" type="text/css" href="Help.css">
</head>
... |
package network
import (
"context"
"fmt"
"path/filepath"
"strings"
"time"
"github.com/onsi/ginkgo/v2"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/util/wait"
clientset "k8s.io/client-go/kubernetes"
api "k8s.io/kubernetes... |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
/**
* Manage account resume
*
* @package CarbonCopy
* @subpackage cc
* @author porquero
*/
class resume extends MX_Controller {
function __construct()
{
parent::__construct();
}
/**
* Resume for all ... |
package route
import (
"net/http"
"strings"
)
// RawPath returns escaped url path section
func rawPath(r *http.Request) string {
// If there are no escape symbols, don't extract raw path
if !strings.ContainsRune(r.RequestURI, '%') {
if len(r.URL.Path) == 0 {
return "/"
}
return r.URL.Path
}
path := r.R... |
@echo off
rem start this file to install project into %STAFF_HOME%
set arch=%1%
if '%arch%' == '' (
echo.
echo Arch is not set. To install please enter
echo %0% ARCH
echo Where ARCH is either of `Win32` or `x64`.
echo.
goto errexit
)
if not '%arch%' == 'Win32' (
if not '%arch%' == 'x64' (... |
var express = require('express');
var Model = require('../models/User');
var router = express.Router();
router.route('/:id?')
.get(function (req, res) {
var queryJson = {};
var _id = req.params._id;
if (_id) {
queryJson._id = _id;
}
var callback = function(err, o... |
<?php
namespace Slim\Middleware;
/**
* Pretty Exceptions
*
* This middleware catches any Exception thrown by the surrounded
* application and displays a developer-friendly diagnostic screen.
*
* @package Slim
* @author Josh Lockhart
* @since 1.0.0
*/
class PrettyExceptions extends \Slim\Middleware
{
/... |