text stringlengths 3 1.05M |
|---|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
... |
cask "spotify-now-playing" do
version "0.7.0"
sha256 "3771b0a35b87264f387fbd591c50fd20554508692d3060d0ddce536aac23d17c"
url "https://github.com/davicorreiajr/spotify-now-playing/releases/download/v#{version}/spotify-now-playing-#{version}.dmg"
appcast "https://github.com/davicorreiajr/spotify-now-playing/relea... |
import {has, isArray} from "./util"
import {SourceLocation} from "./location"
// A second optional argument can be given to further configure
// the parser process. These options are recognized:
export const defaultOptions = {
// `ecmaVersion` indicates the ECMAScript version to parse. Must
// be either 3, or 5, ... |
const dockerPrompts = require('../docker-prompts');
module.exports = {
askForRancherLoadBalancing,
...dockerPrompts
};
function askForRancherLoadBalancing() {
if (this.regenerate) return;
const done = this.async();
const prompts = [
{
type: 'confirm',
name: 'enabl... |
(function() {
// some helper functions: using a global object DTWidget so that it can be used
// in JS() code, e.g. datatable(options = list(foo = JS('code'))); unlike R's
// dynamic scoping, when 'code' is eval()'ed, JavaScript does not know objects
// from the "parent frame", e.g. JS('DTWidget') will not work unless... |
/* From private/ppb_content_decryptor_private.idl,
* modified Thu Mar 28 15:22:02 2013.
*/
#ifndef PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_
#define PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_macros.h"
#include "ppap... |
<!DOCTYPE html>
<html>
<!--
Copyright 2006 The Closure Library Authors. All Rights Reserved.
Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Closure Unit Tests - goog.json</title>
<script s... |
var group__mci__control__gr =
[
[ "MCI Controls", "group__mci__mode__ctrls.html", "group__mci__mode__ctrls" ],
[ "MCI Bus Speed Mode", "group__mci__bus__speed__ctrls.html", "group__mci__bus__speed__ctrls" ],
[ "MCI Bus Data Width", "group__mci__bus__data__width__ctrls.html", "group__mci__bus__data__width__c... |
package net.micode.fileexplorer;
import java.util.List;
import com.giant.MrAction.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
public class FavoriteListAdapter ex... |
class LogoUploader < CarrierWave::Uploader::Base
# Include RMagick or MiniMagick support:
#include CarrierWave::RMagick
include CarrierWave::MiniMagick
# Choose what kind of storage to use for this uploader:
storage :file
# storage :fog
# Override the directory where uploaded files will be stored.
# ... |
package main
import (
"flag"
"fmt"
"log"
"net/http"
"net/url"
"strconv"
"sync"
. "k8s.io/kubernetes/test/images/resource-consumer/common"
)
var port = flag.Int("port", 8080, "Port number.")
var consumerPort = flag.Int("consumer-port", 8080, "Port number of consumers.")
var consumerServiceName = flag.String... |
namespace GumballStateWinner
{
public interface IState
{
void InsertQuarter();
void EjectQuarter();
void TurnCrank();
void Dispense();
}
}
|
<div class="doc-content theming">
<p>Material Design is a visual language with specifications for innovative user experiences (UX) and user interface (UI) elements. Themes convey meaning through color, tones, and contrasts, similar to how Layouts convey meaning through keylines and alignments.</p>
<p>Theme <a ... |
var tap = require('tap')
var server = require('./fixtures/server.js')
var RC = require('../')
var rimraf = require("rimraf")
var client = new RC({
cache: __dirname + '/fixtures/cache'
, registry: 'http://localhost:' + server.port })
var us = require('./fixtures/underscore/1.3.3/cache.json')
var usroot = require("... |
/*
* 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... |
<?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/rl__bookmark_details"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="@dimen/margin_half... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
FROM unit9/base:latest
MAINTAINER Kamil Cholewiński <kamil.cholewinski@unit9.com>
WORKDIR /app
RUN adduser --system \
--home /app --no-create-home \
--disabled-login --group app \
--uid 999
### AUTOGENERATED - DO NOT EDIT
### INSTEAD EDIT THE FILE parts/Dockerfile-py34
RUN apt-get update && \
apt-get i... |
/**
LICENSE MIT 2015 ilausuch@gmail.com
*/
angular.module("il.ui.advancedCombo", ['ngSanitize','pascalprecht.translate','ui.bootstrap','il.ui.table','il.ui.modal'])
.directive('ilAdvancedCombo', function() {
var controller = ['$scope','$timeout','$attrs', function ($scope,$timeout,$attrs) {
if ($scope.innerShow... |
(function(){
'use strict';
CMS.Forms.string = Backbone.View.extend({
tmpl: CMS.Templates.string,
getValue: function () {
var val = this.$('#' + this.model.key).val();
if (val === "") {
return undefined;
}
return val;
},
render: function () {
this.$el.append... |
(function() {
var jsfiles = new Array(
"util.js",
"util/color.js",
"util/style.js",
"data/AutoCompleteProxy.js",
"data/AutoCompleteReader.js",
"data/GroupStyleReader.js",
"data/RuleGroupReader.js",
"data/FeatureTypeClassifier.js",
"... |
<?php
App::uses('Debugger', 'Utility');
/**
* Contains methods for Profiling and creating timers.
*
*/
class DebugTimer {
/**
* Internal timers array
*
* @var array
*/
protected static $_timers = array();
/**
* Start an benchmarking timer.
*
* @param string $name The name of the timer to start.
* @para... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
/*
* This is an implementation of the Hosted D... |
#pragma once
#include <string>
#include <vector>
#include <set>
#include <queue>
#include <chrono>
#include <thread>
#include <condition_variable>
#include <mysql.h>
#include <glog/logging.h>
#include "utils.hpp"
using std::string;
using std::vector;
using std::set;
using namespace std::chrono_literals;
extern "C" ... |
# Runs every time a package is installed in a project
param($installPath, $toolsPath, $package, $project)
# $installPath is the path to the folder where the package is installed.
# $toolsPath is the path to the tools directory in the folder where the package is installed.
# $package is a reference to the packa... |
<script type="text/ng-template" id="inline/collection_main_tab_directive">
<div ng-if="hasLoadedCollection()">
<div class="oppia-page-cards-container">
<md-card class="oppia-page-card oppia-long-text">
<!-- Collection node list graph -->
<div class="collection-editor-node-list-container">
... |
<?php
/**
* Class FunctionCtypePrintTest
* @link http://php.net/manual/en/function.ctype-print.php
*/
class FunctionCtypePrintTest extends PHPUnit_Framework_TestCase
{
public function testFunctioCtypePrint()
{
$strings = array("asdf\n\r\t", 'arf12', 'LKA#@%.54');
$this->assertFalse(ctype_pri... |
CsnUser
=======
Zend Framework 2 Module
### What is CsnUser? ###
CsnUser is a Module for Authentication based on DoctrineORMModule
### What exactly does CsnUser do? ###
CsnUser has been created with educational purposes to demonstrate how Authentication can be done. It is fully functional.
CsnUser module consists ... |
if [ $# -lt 1 ]; then
echo "usage: $0 [bitcoin srcroot] build-test arguments..."
fi
killall -q bitcoin-cli
killall -q bitcoind
cd $1
shift
./autogen.sh
./configure
./qa/pull-tester/build-tests.sh "$@"
|
@interface ASIDownloadCache : NSObject <ASICacheDelegate> {
// The default cache policy for this cache
// Requests that store data in the cache will use this cache policy if their cache policy is set to ASIUseDefaultCachePolicy
// Defaults to ASIAskServerIfModifiedWhenStaleCachePolicy
ASICachePolicy defaultCacheP... |
#ifndef MT_VECTOR3_HPP
#define MT_VECTOR3_HPP
#ifdef USE_OSTREAM
#include <ostream>
#endif
#ifdef USE_ISTREAM
#include <istream>
#endif
#include <moto/Promote.hpp>
#include <moto/Scalar.hpp>
#include <moto/Algebra.hpp>
namespace mt
{
template <typename Scalar>
class Vector3
{
public:
typed... |
<?php
namespace app\models;
use Yii;
use yii\web\UploadedFile;
/**
* This is the model class for table "docs".
*
* @property string $doc_id
* @property string $title
* @property integer $topic_id
* @property string $file
* @property integer $country_id
* @property integer $session_id
* @property string $date... |
extern char* current_module;
extern char * dvd_device;
extern char * cdrom_device;
extern char ** audio_fm_list;
extern char ** video_fm_list;
extern char ** video_driver_list;
extern char ** audio_driver_list;
extern char * video_driver;
extern char * audio_driver;
extern float audio_delay;
extern int osd_level;
e... |
namespace reporting {
MockReportQueue::MockReportQueue() = default;
MockReportQueue::~MockReportQueue() = default;
} // namespace reporting
|
/**
* @requires OpenLayers/Control.js
* @requires OpenLayers/Geometry/Point.js
* @requires OpenLayers/Projection.js
*/
/**
* Class: OpenLayers.Control.Geolocate
* The Geolocate control wraps w3c geolocation API into control that can be
* bound to a map, and generate events on location update
*
* To use this... |
import logger from 'logger';
// TODO: This should load all packages either from here or from node_modules etc...
import safeBrowsing from './safe/index';
// here add your packages for extensibility.
// const allPackages = [ ];
const allPackages = [ safeBrowsing ];
export const preAppLoad = ( store ) =>
{
allPack... |
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog">
<div class="modal-dialog" >
<div class="modal-content">
<div ng-show="authState.user">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&... |
package com.redhat.ceylon.cmr.api;
import com.redhat.ceylon.cmr.spi.Node;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
/**
* Helper class.
*
* @author <a href="mailto:ales.justin@jboss.org">Ales Justin</a>
*/
public class Helper {
public static InputStream toInputStream(... |
<?php
namespace Zend\Permissions\Acl\Role;
interface RoleInterface
{
/**
* Returns the string identifier of the Role
*
* @return string
*/
public function getRoleId();
}
|
using System;
using Xamarin.Forms;
namespace FormsBasics
{
public class MyStackLayout : ContentPage
{
public MyStackLayout ()
{
var red = new Label {
Text = "Stop",
BackgroundColor = Color.Red,
Font = Font.SystemFontOfSize (20),
WidthRequest = 100
};
var yellow = new Label {
Text =... |
layout: docwithnav
---
<!-- BEGIN MUNGE: UNVERSIONED_WARNING -->
<!-- END MUNGE: UNVERSIONED_WARNING -->
# Kubernetes User Guide: Managing Applications: Connecting applications
**Table of Contents**
<!-- BEGIN MUNGE: GENERATED_TOC -->
- [Kubernetes User Guide: Managing Applications: Connecting applications](#kuberne... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SharePoint.Client;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OfficeDevPnP.Core.Framework.ObjectHandlers;
using OfficeDevPnP.Core.Framework.Provisioning.Model;
using Office... |
package org.dcm4cheri.util;
import org.apache.log4j.Logger;
/**
* Leader/Follower Thread Pool
*
* @see <related>
* @author <a href="mailto:gunter@tiani.com">gunter zeilinger</a>
* @version $Revision: 3922 $
*
* <p><b>Revisions:</b>
*
* <p><b>20020519 gunter zeilinger:</b>
* <ul>
* <li> initial impor... |
<?php
namespace backend\ext\User;
use common\ext\System\AppException;
/**
* See @console/BackendRbacController/init for roles relations
*/
class BUserRbac
{
const ROLE_ADMIN_SUPER = 2;
const ROLE_ADMIN = 3;
const ROLE_OPER = 4;
//const ROLE_KASSA = 5;
static function getRolesList()
{
... |
const _ = require('lodash');
const Stream = require('mithril/stream');
const Mixins = require('models/mixins/model_mixins');
const Routes = require('gen/js-routes');
const CrudMixins = require(... |
\pageId{download}
\subsection*{Download from Sourceforge.net}
You can \href[download]{http://sourceforge.net/project/showfiles.php?group_id=221375}
any of the SnuggleTeX ZIP distributions from SourceForge.net. We currently offer two
flavours:
\begin{itemize}
\item \verb|snuggletex-n.n.n-basic.zip| is a basic binar... |
BEGIN;
DROP INDEX IF EXISTS cookbook_version_checksums_by_org_id_checksum;
COMMIT;
|
var pointerEventToXY = function(event) {
//@debug
// console.log(window.devicePixelRatio);
var out = {x: 0, y: 0};
if(event.type == 'touchstart' || event.type == 'touchmove' || event.type == 'touchend' || event.type == 'touchcancel') {
var touch = event.originalEvent.touches[0] || event.originalEvent.changedTo... |
@implementation UILabel (CZAddition)
+ (instancetype)cz_labelWithText:(NSString *)text fontSize:(CGFloat)fontSize color:(UIColor *)color {
UILabel *label = [[self alloc] init];
label.text = text;
label.font = [UIFont systemFontOfSize:fontSize];
label.textColor = color;
label.numberOfLines = 0;... |
//this might was already extended by ES5 shim feature
(function($){
"use strict";
var webshims = window.webshims;
if(webshims.defineProperties){return;}
var defineProperty = 'defineProperty';
var has = Object.prototype.hasOwnProperty;
var descProps = ['configurable', 'enumerable', 'writable'];
var extendUndefin... |
require 'rails_helper'
RSpec.describe RailsImporter::Base do
let(:import) { FactoryGirl.build(:import, importer_key: 'example') }
subject { RailsImporter::Base.new(import.filepath) }
###############
# attributes #
##############
it { expect(subject).to respond_to :messages }
###########
# methods #
... |
package config
import (
v1 "github.com/openshift/client-go/config/informers/externalversions/config/v1"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
)
// Interface provides access to each of this group's versions.
type Interface interface {
// V1 provides... |
package org.springframework.security.config.annotation.web;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.web.configurers.AbstractConfigAttributeRequestMatcherRegistry;
import org.springfra... |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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... |
/**
* The Color Picker Component
*
* @module aui-color-picker
* @submodule aui-hsva-palette
*/
var Lang = A.Lang,
AColor = A.Color,
AWidget = A.Widget,
getClassName = A.getClassName,
MIN_ALPHA = 0,
MAX_ALPHA = 255,
MAX_HUE = 360,
MAX_SATURATION = 100,
MAX_VALUE = 100,
MAXLE... |
<?php
namespace Zend\Ldap\Node;
use Zend\Ldap;
/**
* Zend\Ldap\Node\RootDse provides a simple data-container for the RootDse node.
*/
class RootDse extends AbstractNode
{
const SERVER_TYPE_GENERIC = 1;
const SERVER_TYPE_OPENLDAP = 2;
const SERVER_TYPE_ACTIVEDIRECTORY = 3;
const SERV... |
using System;
using System.Threading;
using System.Threading.Tasks;
using DotNetCqs.DependencyInjection;
using DotNetCqs.DependencyInjection.Microsoft;
using DotNetCqs.Queues.AdoNet.IntegrationTests.CompleteTest.Messages.Handlers;
using DotNetCqs.Queues.AdoNet.IntegrationTests.CompleteTest.Messages.Messages;
using Dot... |
// Package install installs the experimental API group, making it available as
// an option to all of the API encoding/decoding machinery.
package install
import (
"k8s.io/apimachinery/pkg/apimachinery/announced"
"k8s.io/apimachinery/pkg/apimachinery/registered"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachi... |
"""Tests for 'site'.
Tests assume the initial paths in sys.path once the interpreter has begun
executing have not been removed.
"""
import unittest
from test.support import run_unittest, TESTFN, EnvironmentVarGuard
from test.support import captured_stderr
import builtins
import os
import sys
import re
import encoding... |
<?php
namespace Symfony\Component\HttpFoundation\Session;
use Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface;
use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag;
use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBagInterface;
use Symfony\Component\HttpFoundat... |
FILE=report
UNAME := $(shell uname)
ifeq ($(UNAME), Darwin)
OPENCMD=open
endif
ifeq ($(UNAME), Linux)
OPENCMD=xdg-open
endif
all:
pdflatex ${FILE}
bibtex ${FILE}
pdflatex ${FILE}
pdflatex ${FILE}
review:
pdflatex ${FILE}-review
bibtex ${FILE}-review
pdflatex ${FILE}-review
pdflatex ${FILE}-review
real-clea... |
package org.apache.lucene.search.uhighlight;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.index.Term;
import org.apache.lucene.queries.CommonTermsQuery;
import org.apache.lucene.search.DocIdSetIterator;
import org.apache.lucene.search.IndexSearcher;
import org.apache.lucene.search.PrefixQuery... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE415_Double_Free__new_delete_array_char_14.cpp
Label Definition File: CWE415_Double_Free__new_delete_array.label.xml
Template File: sources-sinks-14.tmpl.cpp
*/
/*
* @description
* CWE: 415 Double Free
* BadSource: Allocate data using new and Deallocae data us... |
@rem Script to build LuaJIT with the PS4 SDK.
@rem Donated to the public domain.
@rem
@rem Open a "Visual Studio .NET Command Prompt" (64 bit host compiler)
@rem Then cd to this directory and run this script.
@if not defined INCLUDE goto :FAIL
@if not defined SCE_ORBIS_SDK_DIR goto :FAIL
@setlocal
@rem ---- Host comp... |
"use strict";
exports.__esModule = true;
exports.isNewLine = isNewLine;
// Matches a whole line break (where CRLF is considered a single
// line break). Used to count lines.
var lineBreak = /\r\n?|\n|\u2028|\u2029/;
exports.lineBreak = lineBreak;
var lineBreakG = new RegExp(lineBreak.source, "g");
exports.lineBreakG... |
Propel Bridge
=============
Provides integration for Propel with various Symfony components.
Resources
---------
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
* [Report issues](https://github.com/symfony/symfony/issues) and
[send Pull Requests](https://github.com/symfony/symfony/p... |
// Code generated by client-gen. DO NOT EDIT.
package fake
import (
"context"
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"
testing "k8s.io/client-g... |

Realm is a mobile database that runs directly inside phones, tablets or wearables.
This repository holds the source code for the iOS & OSX versions of Realm, for both Swift & Objective-C.
## Features
* **Mobile-first:** Realm is the first database built from the ground up to run directly inside ph... |
<?php
/**
* @package boot
*/
/**
* Used to determine if Symphony has been loaded, useful to prevent
* files from being accessed directly.
* @var boolean
*/
define_safe('__IN_SYMPHONY__', true);
/**
* The filesystem path to the `manifest` folder
* @var string
*/
define_safe('MANIFEST', DOCROOT ... |
#include "config.h"
#include "MacroAssembler.h"
#if ENABLE(ASSEMBLER)
namespace JSC {
const double MacroAssembler::twoToThe32 = (double)0x100000000ull;
} // namespace JSC
#endif // ENABLE(ASSEMBLER)
|
class Chef
class Knife
module Core
class TextFormatter
attr_reader :data
attr_reader :ui
def initialize(data, ui)
@ui = ui
@data = if data.respond_to?(:display_hash)
data.display_hash
elsif data.kind_of?(Array)
data
el... |
var STRING: string;
var STRING1: string[] = ["", "abc"];
function foo(): string { return "abc"; }
class A {
public a: string;
static foo() { return ""; }
}
module M {
export var n: string;
}
var objA = new A();
// string type var
var ResultIsString1 = typeof STRING;
var ResultIsString2 = typeof STRING1;... |
<tool id="rna_star_index_builder_data_manager" name="rnastar index versioned" tool_type="manage_data" version="@IDX_VERSION@" profile="19.05">
<description>builder</description>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="requirements">
<requirement type="package" ver... |
/**
* @file
* This file contains the APIs for BT LE communications.
*/
#ifndef CA_LE_UTILS_H_
#define CA_LE_UTILS_H_
#include "cacommon.h"
#include "cathreadpool.h"
#include "cagattservice.h"
#include "uarraylist.h"
#include "jni.h"
#ifdef __cplusplus
extern "C"
{
#endif
/* Service UUID */
static const char OIC... |
#include "winutils.h"
#include <psapi.h>
#include <PowrProf.h>
#define PSAPI_VERSION 1
#pragma comment(lib, "psapi.lib")
#pragma comment(lib, "Powrprof.lib")
typedef struct _PROCESSOR_POWER_INFORMATION {
ULONG Number;
ULONG MaxMhz;
ULONG CurrentMhz;
ULONG MhzLimit;
ULONG MaxIdleState;
ULONG ... |
'use strict';
describe('$location', function() {
var url;
afterEach(function() {
// link rewriting used in html5 mode on legacy browsers binds to document.onClick, so we need
// to clean this up after each test.
jqLite(document).unbind('click');
});
describe('NewUrl', function() {
beforeEach... |
package org.apache.ignite.internal.processors.cache.datastructures.replicated;
import org.apache.ignite.cache.*;
import org.apache.ignite.internal.processors.cache.datastructures.*;
import static org.apache.ignite.cache.CacheMode.*;
/**
* AtomicReference tests with replicated cache.
*/
public class GridCacheRepl... |
export class AbortController implements AbortSignal {
private isAborted: boolean = false;
public onabort: () => void;
public abort() {
if (!this.isAborted) {
this.isAborted = true;
if (this.onabort) {
this.onabort();
}
}
}
get sig... |
using namespace SDKTemplate;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Controls;
using namespace Windows::UI::Xaml::Controls::Primitives;
using namespace Windows::UI::Xaml::Data;... |
module.exports = require("github:jspm/nodelibs-string_decoder@0.1.0/index"); |
package java.io;
import avian.Utf8;
public class OutputStreamWriter extends Writer {
private final OutputStream out;
public OutputStreamWriter (OutputStream out, String encoding) {
this(out);
}
public OutputStreamWriter (OutputStream out) {
this.out = out;
}
public void write (char[] b, int offset, int... |
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0"
package="com.example.butterknife">
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="17"/>
<application
android:label="@strin... |
package pl.clareo.coroutines.user;
/**
* Interface used to control coroutine's execution. Its purpose is to further
* decouple coroutine's caller (client of {@link CoIterator}) from the
* coroutine's logic. Caller may use {@link CoIterator#with(Controler)} method
* and consume results without burden of sen... |
package com.learning.gsonexample;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by marcin on 09.10.13.
*/
public class JsonData {
@SerializedName("Events")
private List<Event> eventList;
public List<Event> getEventList() {
return eventList;
}
... |
#region License
// Copyright (c) 2007 James Newton-King
//
// 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 kubelet
import (
"fmt"
"net"
"k8s.io/apimachinery/pkg/types"
"k8s.io/kubernetes/pkg/api/v1"
"k8s.io/kubernetes/pkg/client/clientset_generated/clientset"
"k8s.io/kubernetes/pkg/cloudprovider"
"k8s.io/kubernetes/pkg/util/io"
"k8s.io/kubernetes/pkg/util/mount"
"k8s.io/kubernetes/pkg/volume"
)
// NewI... |
var fs = require ('fs')
, join = require('path').join
, file = join(__dirname, 'fixtures','all_npm.json')
, JSONStream = require('../')
, it = require('it-is')
function fn (s) {
return !isNaN(parseInt(s, 10))
}
var expected = JSON.parse(fs.readFileSync(file))
, parser = JSONStream.parse(['r... |
'use strict';
var meta = require('./meta');
var Festivals = require('./client/festivals').Festivals;
var FestivalsDeferred = require('./client/festivalsDeferred').FestivalsDeferred;
var FestivalsApi = require('./api/festivalsApi').FestivalsApi;
module.exports = {
VERSION: meta.VERSION,
Festivals: Festivals,
Fes... |
{% load flagging %}
{% load i18n %}
{% if request.user.is_authenticated %}
<p class="quiet">
{# Translators: After 'Flag this project as' follows either 'Inappropriate', 'Spam' and/or 'Duplicate' #}
{% trans "Flag this project as" %} (
{% if not project|flagged_with:"inappropriate" %}<a href="{{ project|... |
var _ = require('lodash');
var async = require('async');
var fs = require('fs');
var keystone = require('../');
var mongoose = keystone.mongoose;
var path = require('path');
var semver = require('semver');
var utils = require('keystone-utils');
var _dashes_ = '------------------------------------------------';
// Upd... |
package org.apache.hadoop.hdfs.server.datanode.metrics;
import java.io.IOException;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.metrics2.MetricsSource;
/**
*
* This Interface defines the methods to get the status of a the FSDataset of
* a data node.
* It is also used for... |
local skynet = require "skynet"
local mode = ...
if mode == "slave" then
local CMD = {}
function CMD.sum(n)
skynet.error("for loop begin")
local s = 0
for i = 1, n do
s = s + i
end
skynet.error("for loop end")
end
function CMD.blackhole()
end
skynet.start(function()
skynet.dispatch("lua", function(_,_, cm... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ACE ChromeVox demo</title>
<style type="text/css" media="screen">
body {
overflow: hidden;
}
#editor {
margin: 0;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
... |
package generators
import (
"fmt"
"io"
"path/filepath"
"k8s.io/kubernetes/cmd/libs/go2idl/client-gen/generators/normalization"
"k8s.io/kubernetes/cmd/libs/go2idl/generator"
"k8s.io/kubernetes/cmd/libs/go2idl/namer"
"k8s.io/kubernetes/cmd/libs/go2idl/types"
"k8s.io/kubernetes/pkg/api/unversioned"
)
// genCl... |
module Cryptoexchange::Exchanges
module Yuanbao
module Services
class Market < Cryptoexchange::Services::Market
class << self
def supports_individual_ticker_query?
true
end
end
def fetch(market_pair)
output = super(ticker_url(market_pair))
... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Sylius package.
(c) Paweł Jędrzejewski
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
-->
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-map... |
package org.apache.camel.component.file.remote;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.Test;
/**
* @version
*/
public class FtpConnectTimeoutTest extends FtpServerTestSupport {
private String getFtpUrl() {
return "ftp://admi... |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../includes/main.css" type="text/css">
<l... |
// 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;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using... |
<?php
namespace Symfony\Component\Validator\Tests\Util;
use Symfony\Component\Validator\Util\PropertyPath;
class PropertyPathTest extends \PHPUnit_Framework_TestCase
{
/**
* @dataProvider provideAppendPaths
*/
public function testAppend($basePath, $subPath, $expectedPath, $message)
{
... |