answer stringlengths 15 1.25M |
|---|
var mongoose = require('mongoose'),
_ = require('underscore'),
roomTokenizer = function(msg) {
var tokens = [];
tokens = tokens.concat(msg.content.split(' '));
tokens.push(msg.author);
return tokens;
};
exports.init = function(db) {
var <API key>,
EntitySchema,
En... |
import React, { PropTypes } from 'react'
import { Grid, Row, Col } from 'react-bootstrap'
import Sort from '../../components/Sort'
import ProjectFilterForm from '../../components/ProjectFilterForm'
import Search from '../../containers/Search'
import <API key> from '../../containers/<API key>';
import { PROJECTS_SORT } ... |
<HTML><HEAD>
<TITLE>Review for Scream (1996)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0117571">Scream (1996)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Tim+Voon">Tim Voon</A></H3><HR... |
import _plotly_utils.basevalidators
class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="textfont", parent_name="scattersmith", **kwargs):
super(TextfontValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... |
export default function mapNodesToColumns({
children = [],
columns = 1,
dimensions = [],
} = {}) {
let nodes = []
let heights = []
if (columns === 1) {
return children
}
// use dimensions to calculate the best column for each child
if (dimensions.length && dimensions.length === children.length) {
... |
/**
* @fileoverview enforce or disallow capitalization of the first letter of a comment
* @author Kevin Partington
*/
"use strict";
// Requirements
const LETTER_PATTERN = require("../util/patterns/letters");
const astUtils = require("../util/ast-utils");
// Helpers
const <API key> = astUtils.<API key>,
WHITESPAC... |
namespace PythonSharp.Exceptions
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AttributeError : Exception
{
public AttributeError(string message)
: base(message)
{
}
}
} |
package iso20022
// Security that is a sub-set of an investment fund, and is governed by the same investment fund policy, eg, dividend option or valuation currency.
type <API key> struct {
Identification *<API key> `xml:"Id"`
// Name of the financial instrument in free format text.
Name *Max350Text `xml:"Nm... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>tree-diameter: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... |
module.exports = {
FIREBASE_URL: 'https://amber-heat-<your-app>.firebaseio.com/',
TWITTER_KEY: '',
TWITTER_SECRET: '',
TWITTER_CALLBACK: process.env.TWITTER_CALLBACK || 'Twitter Callback Url'
}; |
require 'rails_helper'
describe <API key> do
it { should respond_to(:index) }
end |
package com.xeiam.xchange.justcoin.service.polling;
import java.io.IOException;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import si.mazi.rescu.RestProxyFactory;
import com.xeiam.xchange.<API key>;
import com.xeiam.xchange.currency.CurrencyPair;
import com.xeiam.xchange.justcoin.Justco... |
WBlog
====
[
* Po... |
'use strict'
const _ = require('lodash')
module.exports = {
getQueryString(url) {
const qs = {}
_.forEach(url.split('?').pop().split('&'), s => {
if (!s) return
const kv = s.split('=')
if (kv[0]) {
qs[kv[0]] = decodeURIComponent(kv[1])
}
})
return qs
},
toQueryStrin... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>V8 API Reference Guide for node.js v4.4.3 - v4.4.4: Member List</title>
<link href="tabs.c... |
package com.flowpowered.react.collision.narrowphase.EPA;
import java.util.Comparator;
import java.util.PriorityQueue;
import java.util.Queue;
import com.flowpowered.react.ReactDefaults;
import com.flowpowered.react.collision.narrowphase.GJK.GJKAlgorithm;
import com.flowpowered.react.collision.narrowphase.GJK.Simplex;
i... |
<?xml version="1.0" ?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html xmlns="http:
<head>
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<title>algebra/samples-ja.html</title>
</head>
<body>
<p>[<a href="index-ja.ht... |
<!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">
<title>{{ META.project_short_title }} | The Texas Tribune</title>
{% block styles %}
<link rel="stylesheet" href="//api.ti... |
using Microsoft.Xna.Framework;
namespace XmasHell.FSM
{
public struct FSMStateData<T>
{
public FSM<T> Machine { get; internal set; }
public FSMBehaviour<T> Behaviour { get; internal set; }
public T State { get; internal set; }
public GameTime GameTime { get; internal set; }
}... |
#endregion
using System.Collections.Generic;
using Paratext.Data;
using SIL.Scripture;
namespace HearThis.Script
{
<summary>
This exposes the things we care about out of ScrText, providing an
anti-corruption layer between Paratext and HearThis and allowing us to test the code
that calls Paratext.
</... |
## Build
Let's say your project name is Foo.
* cd to Foo.
* `npm run prod`
The command will generate all static files into build folder.
* `npm run start:prod`
You can test the build by run `npm run start:prod`, the command will bring up a node server which servers all static files under build foler.
Visit [http:
* Dep... |
'use strict';
var eachAsync = require('each-async');
var onetime = require('onetime');
var arrify = require('arrify');
module.exports = function (hostnames, cb) {
cb = onetime(cb);
eachAsync(arrify(hostnames), function (hostname, i, next) {
var img = new Image();
img.onload = function () {
... |
<?php
class Ressource extends Thing {
var $name;
var $url;
var $schemaDefinition;
function __construct($url = null) {
if ($url) $this->url = $this->preparePath($url);
}
function preparePath($path) {
$path = str_replace(" ", "+", $path);
return $path;
}
function ge... |
module Ldaptic
class Error < ::RuntimeError
end
class EntryNotSaved < Error
end
# All server errors are instances of this class. The error message and error
# code can be accessed with <tt>exception.message</tt> and
# <tt>exception.code</tt> respectively.
class ServerError < Error
attr_accessor :co... |
package org.broadinstitute.sting.utils.codecs.table;
import org.broad.tribble.Feature;
import org.broad.tribble.readers.LineReader;
import org.broadinstitute.sting.gatk.refdata.<API key>;
import org.broadinstitute.sting.utils.GenomeLocParser;
import org.broadinstitute.sting.utils.exceptions.UserException;
import java.i... |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) -->
<!-- Created: ; Product Code... |
<!-- THIS FILE IS GENERATED VIA '.template-helpers/<API key>.pl' -->
# Tags of `ruby`
- [`ruby:2.0.0-p647`](#ruby200-p647)
- [`ruby:2.0.0`](#ruby200)
- [`ruby:2.0`](#ruby20)
- [`ruby:2.0.0-p647-onbuild`](#<API key>)
- [`ruby:2.0.0-onbuild`](#ruby200-onbuild)
- [`ruby:2.0-onbuild`](#ruby20-onbuild)
- ... |
<div class="commune_descr limited">
<p>
Neufchâtel-Hardelot est
une ville géographiquement positionnée dans le département des Pas-de-Calais en Nord-Pas-de-Calais. Elle comptait 3 759 habitants en 2008.</p>
<p>La commune propose de multiples aménagements, elle dispose, entre autres, de deux terrains de te... |
//IP Flow Information Export (IPFIX) Entities
// Last Updated 2013-01-15
var entities = [];
//<API key>
entities['elements'] = {
"1":{"name":"octetDeltaCount","dataType":"unsigned64","dataTypeSemantics":"deltaCounter","group":"flowCounter","units":"octets"},
"2":{"name":"packetDeltaCount","dataType":"unsigned64","d... |
using System;
namespace Versioning
{
public class NominalData : Sage_Container, IData
{
/* Autogenerated by <API key>.pl */
SageDataObject110.NominalData nd11;
SageDataObject120.NominalData nd12;
SageDataObject130.NominalData nd13;
SageDataObject140.NominalData nd14;
... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Alphabet Table</title>
</head>
<body>
<table border="1px">
<tr>
<td colspan="3" align="center">Title goes here</td>
<td align="center">A</td>
<td align="right">B</td>
</tr>
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `uok` fn in crate `rustc_lint`.">
<meta name="keywords" con... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `color` mod in crate `term`.">
<meta name="keywords" conten... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h> /* Definition of AT_* constants */
#ifndef _MSC_VER
#include <unistd.h>
#include <dirent.h>
#else
#pragma warning(disable:4996)
#endif
#include "logging.h"
#include "config.h"
#i... |
using AutoMapper;
using Bivi.Domaine;
using Bivi.FrontOffice.Web.ViewModels;
using Bivi.FrontOffice.Web.ViewModels.ModelBuilders;
using Bivi.FrontOffice.Web.ViewModels.Pages.Common;
using Bivi.Infrastructure.Attributes.Modularity;
using Bivi.Infrastructure.Constant;
using Bivi.Infrastructure.Services.Caching;
using Biv... |
require 'filefm'
def test_config
File.join(File.dirname(__FILE__), 'config.yml')
end
def swift_server
ENV["SWIFT_SERVER"]
end
def swift_username
u = ENV["SWIFT_USERNAME"]
u
end
def swift_password
ENV["SWIFT_PASSWORD"]
end
def <API key>
ENV["<API key>"] || "filefm-test"
end
def swift_keystone_url
ENV["SWIF... |
<div class="container">
<div class="jumbotron">
<h1>Best Offer</h1>
<p class="font-face">Welcome to BestOffer!</p>
</div>
<div class="row">
<div class="col-md-12">
<div ng-include="'/partials/main/our-customers.html'"></div>
</div>
</div>
</div> |
module Rentjuicer
class Response
attr_accessor :body
def initialize(response, raise_error = false)
rash_response(response)
raise Error.new(self.body.code, self.body.message) if !success? && raise_error
end
def success?
self.body && !self.body.blank? && self.body.respond_to?(:status) ... |
/* ftlist.h */
/* Generic list support for FreeType (specification). */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* This file is part of the FreeType project, and may only be used, */
/* modi... |
class CreateComments < ActiveRecord::Migration
def change
create_table :comments do |t|
t.references :post, index: true
t.integer :author_id
t.string :comment
t.timestamps
end
end
end |
<?php
namespace TheCodingMachine\Yaco\Discovery;
use Interop\Container\ContainerInterface;
use Interop\Container\Factory\<API key>;
use Puli\Discovery\Api\Discovery;
use Puli\Discovery\Binding\ClassBinding;
use Symfony\Component\Filesystem\Filesystem;
use TheCodingMachine\Yaco\Compiler;
/**
* A class in charge of inst... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>multiplier: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... |
from django.core import serializers
from rest_framework.response import Response
from django.http import JsonResponse
try:
from urllib import quote_plus # python 2
except:
pass
try:
from urllib.parse import quote_plus # python 3
except:
pass
from django.contrib import messages
from django.contrib.cont... |
/* @flow */
import {
InputTypeComposer,
type <API key>,
} from 'graphql-compose';
import { getTypeName, type CommonOpts, desc } from '../../../utils';
import { <API key> } from '../../Commons/FieldNames';
export function getRangeITC<TContext>(
opts: CommonOpts<TContext>
): InputTypeComposer<TContext> | <API key><... |
<?php
return array (
'id' => '<API key>',
'fallback' => '<API key>',
'capabilities' =>
array (
'mobile_browser' => 'UCWeb',
'<API key>' => '9',
),
); |
//>>built
define({lblItem:"\u30a2\u30a4\u30c6\u30e0",title:"\u30b5\u30a4\u30f3 \u30a4\u30f3",info:"{server} {resource} \u306e\u30a2\u30a4\u30c6\u30e0\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u30b5\u30a4\u30f3 \u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044",oAuthInfo:"{server} \u306b\u30b5\u30a4\u30f3 \u3... |
<!-- Page Content -->
<div id="page-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Agregar Servicio</h1>
</div>
<!-- /.col-lg-12 -->
<div class="panel-body">
<div cl... |
package com.exilegl.ld34.entity.enemy;
import java.util.Random;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Rectangle;
im... |
// This file is part of nuBASIC
#ifndef <API key>
#define <API key>
#include "nu_expr_any.h"
#include "nu_prog_ctx.h"
#include "nu_stmt.h"
#include "nu_token_list.h"
#include "nu_var_scope.h"
#include "nu_variable.h"
#include <algorithm>
#include <string>
namespace nu {
class stmt_function_t : public stmt_t {
public:
... |
{% extends 'base.html' %}
{% block head %}
<title>Websites</title>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col s12">
<div class="card">
<div class="card-content #90caf9 blue lighten-3">
<div class="card-titl... |
import Data.List (permutations, sort)
solve :: String
solve = (sort $ permutations "0123456789") !! 999999
main = putStrLn $ solve |
import { Component, OnInit, Input } from '@angular/core';
import { ROUTER_DIRECTIVES } from '@angular/router';
import { <API key>, PublishingItem } from '../shared/index';
@Component({
moduleId: module.id,
selector: 'app-publish-card',
templateUrl: 'publish-card.component.html',
styleUrls: ['publish-card.compon... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// Split the input into chunks.
exports.default = (function (input, fail) {
var len = input.length;
var level = 0;
var parenLevel = 0;
var lastOpening;
var lastOpeningParen;
var lastMultiComment;
var <API key>;
... |
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IndexedDB
{
<summary>
Enables events from backend.
</summary>
[Command(ProtocolName.IndexedDB.Enable)]
[SupportedBy("Chrome")]
public class ... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class music_switch : MonoBehaviour {
private AudioSource aud;
public AudioClip[] songs;
private int selection;
// Use this for initialization
void Start () {
aud = this.GetComponent<AudioSource> ();
... |
angular.module("umbraco")
.controller("Umbraco.PropertyEditors.RTEController",
function ($rootScope, $scope, $q, $locale, dialogService, $log, imageHelper, assetsService, $timeout, tinyMceService, angularHelper, stylesheetResource, macroService, editorState) {
$scope.isLoading = true;
//To id th... |
from ..cw_model import CWModel
class Order(CWModel):
def __init__(self, json_dict=None):
self.id = None # (Integer)
self.company = None # *(CompanyReference)
self.contact = None # (ContactReference)
self.phone = None # (String)
self.phoneExt = None # (String)
sel... |
package adts;
/**
* Interface that represents any music item. MusicSymbol and MusicPart extend
* this. Thus, a Music could be a MusicPiece, a Voice, a Chord, a Lyric, a
* Pitch, or a Rest. a The objects are immutable. The equals, toString, and
* hashCode methods work recursively and individually different from each... |
'use strict';
var isA = require("Espresso/oop").isA;
var oop = require("Espresso/oop").oop;
var init = require("Espresso/oop").init;
var trim = require("Espresso/trim").trim;
var isA = require("Espresso/oop").isA;
var oop = require("Espresso/oop").oop;
function RequestInterface(){
oop(this,"Espresso/Http/RequestInter... |
#ifndef <API key>
#define <API key>
// blackhart headers.
#include "foundation\BkExport.h"
#include "foundation\BkAtomicDataType.h"
// Forward declarations.
struct BkPoint3;
// ~~~~~ Dcl(PUBLIC) ~~~~~
/*! \brief Samples a list of triangles.
*
* \param vertices The vertices of each triangles. Must be sorted.
* \param... |
namespace <API key>.Areas.HelpPage.ModelDescriptions
{
public class <API key> : ModelDescription
{
public ModelDescription KeyModelDescription { get; set; }
public ModelDescription <API key> { get; set; }
}
} |
module.exports = function(dataUri, maxDimension, callback){
var source = new Image();
source.addEventListener('load', function(){
var canvas = document.createElement('canvas'),
ratio = Math.max(source.width, source.height) / maxDimension;
canvas.width = source.width / ratio;
... |
#!/bin/bash
# if config file doesnt exist (wont exist until user changes a setting) then copy default config file
if [[ ! -f /config/core.conf ]]; then
echo "[info] Deluge config file doesn't exist, copying default..."
cp /home/nobody/deluge/core.conf /config/
else
echo "[info] Deluge config file already ex... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Kiwi.Renderers.CanvasRenderer - Kiwi.js</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="sty... |
// @flow
import React from 'react';
import { <API key> } from 'react-dom/server';
import Middleware from './Middleware';
type Base = {
href?: string,
target?: string,
};
type Link = {
crossOrigin?: string,
href?: string,
hrefLang?: string,
integrity?: string,
media?: string,
preload?: boolean,
prefetc... |
-- randexpr1.test
-- db eval {SELECT (case coalesce((select +a from t1 where exists(select 1 from t1 where t1.e not between t1.f-b and (select count(*) from t1)-t1.f | e)),t1.d+case when t1.b not between t1.d and 17+case when a in (t1.d,a,(abs(~case when (t1.f)<=t1.c then -17 else t1.f end)/abs(19))*d*t1.d) then (b) e... |
import {
RESOURCE,
SERVER_ERRORS,
<API key>,
<API key>,
<API key>,
} from '../mocks'
import { <API key> } from './mocks'
const request = () => Promise.resolve([RESOURCE])
const errorRequest = () => Promise.reject(SERVER_ERRORS)
it('will dispatch two actions on success', async () => {
const actio... |
// acquisition.hpp
#ifndef ACQUISITION_HPP
#define ACQUISITION_HPP
#include <<API key>>
#include <<API key>>
#include <QList>
#include <QVideoFrame>
#include <QLoggingCategory>
<API key>(<API key>)
class Acquisition : public <API key> {
Q_OBJECT
public:
Acquisition ();
QList<QVideoFrame::PixelFormat> <A... |
package de.cubeisland.engine.modularity.core;
import java.lang.reflect.Field;
import java.lang.reflect.<API key>;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.PriorityQueue;
import ... |
import { AppPage } from './app.po';
describe('material2 App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to app!');
});
}); |
Radiant.config do |config|
config.define 'admin.title', :default => "Radiant CMS"
config.define 'dev.host'
config.define 'local.timezone', :allow_change => true, :select_from => lambda { ActiveSupport::TimeZone::MAPPING.keys.sort }
config.define 'defaults.locale', :select_from => lambda { Radiant::AvailableLoca... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>menhirlib: 48 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="sty... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>dpdgraph: 16 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="styl... |
package com.bugsnag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import javax.annotation.PostConstruct;
/**
* If spring-webmvc i... |
import React, {Component} from 'react';
import MiniInfoBar from '../components/MiniInfoBar';
export default class About extends Component {
state = {
showKitten: false
}
handleToggleKitten() {
this.setState({showKitten: !this.state.showKitten});
}
render() {
const {showKitten} = this.state;
co... |
package com.seafile.seadroid2.transfer;
/**
* Download state listener
*
*/
public interface <API key> {
void <API key>(int taskID);
void onFileDownloaded(int taskID);
void <API key>(int taskID);
} |
from pydispatch import dispatcher
from PySide import QtCore, QtGui
import cbpos
logger = cbpos.get_logger(__name__)
from .page import BasePage
class MainWindow(QtGui.QMainWindow):
__inits = []
def __init__(self):
super(MainWindow, self).__init__()
self.tabs = QtGui.QTabWidget(self)
self.... |
package cn.javay.zheng.common.validator;
import com.baidu.unbiz.fluentvalidator.ValidationError;
import com.baidu.unbiz.fluentvalidator.Validator;
import com.baidu.unbiz.fluentvalidator.ValidatorContext;
import com.baidu.unbiz.fluentvalidator.ValidatorHandler;
public class LengthValidator extends ValidatorHandler<Strin... |
define([
"dojo/_base/array",
"dojo/_base/connect",
"dojo/_base/declare",
"dojo/_base/lang",
"dojo/_base/window",
"dojo/dom",
"dojo/dom-class",
"dojo/dom-construct",
"dojo/dom-style",
"dijit/registry",
"dijit/_Contained",
"dijit/_Container",
"dijit/_WidgetBase",
".... |
/** @jsx jsx */
import { Editor } from 'slate'
import { jsx } from '../..'
export const input = (
<editor>
<block>
<mark key="a">
<anchor />o
</mark>
n
<mark key="b">
e<focus />
</mark>
</block>
</editor>
)
export const run = editor => {
return Array.from(Edit... |
package appalounge;
import org.json.JSONArray;
import org.json.JSONObject;
import resources.Constructors;
import resources.exceptions.ApiException;
import resources.exceptions.<API key>;
import resources.exceptions.BadRequestException;
import resources.exceptions.DataNotSetException;
import resources.infrastructure.Eas... |
package com.carlisle.incubators.PopupWindow;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.carlisle.incubators.R;
public class PopupWindowActivity extends AppCompatActivity {
private PopupView popupView;
... |
# "Passenger", "Phusion Passenger" and "Union Station" are registered
# trademarks of Phusion Holding B.V.
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# copies of the Software, and to permit persons t... |
// ReSharper disable <API key>
// ReSharper disable InconsistentNaming
namespace Gu.Analyzers.Benchmarks.Benchmarks
{
public class <API key>
{
private static readonly Gu.Roslyn.Asserts.Benchmark Benchmark = Gu.Roslyn.Asserts.Benchmark.Create(Code.AnalyzersProject, new Gu.Analyzers.<API key>());
... |
package com.sleepycat.persist.evolve;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
/**
* A subclass of Converter that allows specifying keys to be deleted.
*
* <p>When a Converter is used with an entity class, secondary keys cannot be
* automatically deleted based on field deletion,... |
'use strict';
var React = require('react');
/**
* Like Array.map(), but on an object's own properties.
* Returns an array.
*
* @param {object} obj The object to call the function on.
* @param {function(*, string)} func The function to call on each
* of the object's properties. It takes as input parameters the
* ... |
<?php
namespace Sitpac\ExtranetBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* DisponibilidadVehi
*
* @ORM\Table(name="disponibilidad_vehi")
* @ORM\Entity
*/
class DisponibilidadVehi
{
/**
* @var integer
*
* @ORM\Column(name="id_disp_vehi", type="integer", nullable=false)
* @ORM\Id
... |
<!DOCTYPE html><meta charset=utf-8><title>WICS</title><script type="application/its+xml">
<its:rules xmlns:its="http:
<its:localeFilterRule selector="//@*" localeFilterType="include" localeFilterList="*"/>
<its:dirRule dir="ltr" selector="
<its:translateRule selector="//@*" translate="no"/>
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ott: 31 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="styleshee... |
module ResetConfigHelper
def self.included(base)
base.instance_eval do
around(:each) do |example|
begin
Capybara::AsyncRunner.config.commands_directory = ROOT.join('spec/support/js')
example.run
ensure
Capybara::AsyncRunner.config.reset!
end
end
... |
import assert from 'assert'
import {fixCase} from '../../src/lib/words/case'
import Locale from '../../src/locale/locale'
describe('Corrects accidental uPPERCASE\n', () => {
let testCase = {
'Hey, JEnnifer!': 'Hey, Jennifer!',
'CMSko': 'CMSko',
'FPs': 'FPs',
'ČSNka': 'ČSNka',
'BigONE': 'BigONE', /... |
<?php
namespace Sylius\Bundle\ResourceBundle;
use Sylius\Bundle\ResourceBundle\DependencyInjection\Compiler\<API key>;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class <API key> extends Bundle
{
// Bundle driver list.
const DRIVER_DOCTRINE_ORM = '... |
#!/usr/bin/env python
from __future__ import division, print_function, absolute_import
from os.path import join
def configuration(parent_package='', top_path=None):
import warnings
from numpy.distutils.misc_util import Configuration
from numpy.distutils.system_info import get_info, BlasNotFoundError
con... |
package photoeffect.effect.otherblur;
import java.awt.image.BufferedImage;
import measure.generic.IGenericWorkload;
public interface IEffectOtherBlur extends IGenericWorkload<BufferedImage>
{
} |
#!/bin/bash -x
# Generated - do not edit!
# Macros
TOP=`pwd`
CND_CONF=default
CND_DISTDIR=dist
TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/<API key>.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
OUTPUT_BASENAME=<API key>.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
PA... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>kildall: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
import Store from '../../Store';
import Expires from '../../Expires';
import { lpush } from '../lpush';
import { lpushx } from '../lpushx';
describe('Test lpushx command', () => {
it('should prepend values to list', () => {
const redis = new MockRedis();
redis.set('mylist', []);
expect((<any>redis).lpushx... |
<!DOCTYPE html>
<html xmlns:msxsl="urn:<API key>:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="<API key>">.NET Portability Report</title>
<style>
/* Body style, for the entire document */... |
module.exports = function(grunt){
// Get the current Grunt CLI instance.
var nopt = require('nopt'),
parsedOptions = parseOptions(nopt, grunt.cli.optlist);
grunt.log.debug('(nopt-grunt-fix) old flags: ', grunt.option.flags());
// Reassign the options.
resetOptions(grunt, parsedOptions);
... |
module.exports = {
"name": "ATmega16HVB",
"timeout": 200,
"stabDelay": 100,
"cmdexeDelay": 25,
"syncLoops": 32,
"byteDelay": 0,
"pollIndex": 3,
"pollValue": 83,
"preDelay": 1,
"postDelay": 1,
"pgmEnable": [172, 83, 0, 0],
"erase": {
"cmd": [172, 128, 0, 0],
"delay": 45,
"pollMethod":... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.