text stringlengths 3 1.05M |
|---|
#include <cassert>
#include <cstdio>
#include <vector>
#include "OpenImageIO/imageio.h"
#include "OpenImageIO/filesystem.h"
#include "OpenImageIO/fmath.h"
#include "jpeg_pvt.h"
OIIO_PLUGIN_NAMESPACE_BEGIN
#define DBG if(0)
// See JPEG library documentation in /usr/share/doc/libjpeg-devel-6b
class JpgOutput : ... |
#ifndef __TT_SPLIT_H__
#define __TT_SPLIT_H__
#include "TTDSP.h"
/** The split≈ object takes a single input signal and splits it out into N output signals */
class TTAudioGraphSplit : public TTAudioObjectBase {
TTCLASS_SETUP(TTAudioGraphSplit)
protected:
std::vector<TTChannelCount> mSplitChannels; ///< The ... |
/* From private/ppp_content_decryptor_private.idl,
* modified Mon Aug 25 14:02:40 2014.
*/
#ifndef PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_
#define PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_macros.h"
#include "ppap... |
define("ace/mode/perl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var PerlHighlightRules = function() {
... |
/* 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... |
extern crate cargo_test_macro;
mod dry_run;
mod invalid_arg;
mod invalid_dep;
mod invalid_rm_target;
mod invalid_rm_target_dep;
mod invalid_section;
mod invalid_section_dep;
mod no_arg;
mod rm_avoid_empty_tables;
mod rm_build;
mod rm_dev;
mod rm_existing;
mod rm_multiple_deps;
mod rm_multiple_dev;
mod rm_optional_dep_... |
import Canvas = etch.drawing.Canvas;
import DisplayObject = etch.drawing.DisplayObject;
import DisplayObjectCollection = etch.drawing.DisplayObjectCollection;
import IDisplayObject = etch.drawing.IDisplayObject;
import Point = minerva.Point;
import {AddressBarManager} from './Core/Visual/AddressBarManager';
import {Ani... |
"use strict";
function makeEmptyFunction(arg) {
return function () {
return arg;
};
}
/**
* This function accepts and discards inputs; it has no side effects. This is
* primarily useful idiomatically for overridable function endpoints which
* always need to be callable, since JS lacks a null-call idiom a... |
import os
# Django settings for healthcms project.
gettext = lambda s: s
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROJECT = os.path.basename(BASE_DIR)
ADMINS = (
('Al B', 'al@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
# 'ENGINE':... |
template < class C >
struct iterable_container {
typedef C::iterator iterator;
typedef C::const_iterator citerator;
C m_container;
citerator begin() const {
return m_container.begin();
}
citerator end() const {
return m_container.end();
}
iterator begin() {
re... |
using System;
using JetBrains.Annotations;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Handlers;
using Orchard.Core.Navigation.Models;
using Orchard.Data;
namespace Orchard.Core.Navigation.Handlers {
[UsedImplicitly]
public class MenuPartHandler : ContentHandler {
private readonly... |
package org.apache.camel.component.file.remote;
import org.apache.camel.Endpoint;
import org.apache.camel.Exchange;
import org.apache.camel.Producer;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.Before;
import org.junit.Test;
/**
* Unit test to ... |
var assert = require('assert')
, https = require('https')
, http = require('http')
, should = require('should')
, WebSocket = require('../')
, WebSocketServer = require('../').Server
, fs = require('fs')
, server = require('./testserver')
, crypto = require('crypto');
var port = 20000;
function getArr... |
package k8sapi
// TypeMeta describes an individual object in an API response or request
// with strings representing the type of the object and its API schema version.
// Structures that are versioned or persisted should inline TypeMeta.
type TypeMeta struct {
// Kind is a string value representing the REST resourc... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... |
set(DOCUMENTATION "Transforms are essential components of image registration
framework in ITK. They are typically used for representing the mapping between
the physical coordinate system of one image and the physical coordinate system
of another image. They are also commonly used in the process of resampling
images, pa... |
CKEDITOR.plugins.setLang("uicolor","en",{title:"UI Color Picker",preview:"Live preview",config:"Paste this string into your config.js file",predefined:"Predefined color sets"}); |
/**
*
*/
Ext.define('Ext.container.DockingContainer', {
/* Begin Definitions */
requires: ['Ext.util.MixedCollection', 'Ext.Element' ],
/* End Definitions */
isDockingContainer: true,
/**
* @event dockedadd
* Fires when any {@link Ext.Component} is added or inserted as a docked... |
/*!
* CLDR JavaScript Library v0.4.1 2015-02-25T13:51Z MIT license © Rafael Xavier
* http://git.io/h4lmVg
*/
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD.
define( [ "../cldr" ], factory );
} else if ( typeof module === "object" && typeof module.exports === "object" ) {
... |
#include "winsup.h"
extern "C" {
#include <ctype.h>
#include <stdlib.h>
#include <wctype.h>
extern char _ctype_b[128 + 256];
/* Called from newlib's setlocale(). What we do here is to copy the
128 bytes of charset specific ctype data into the array at _ctype_b.
Given that the functionality is usually implement... |
import * as SerialPort from "serialport";
import Adapter from "../Adapter";
export default class Serial extends Adapter {
private device: SerialPort;
constructor(path: string, options: SerialPort.OpenOptions) {
super();
options.autoOpen = false;
this.device = new SerialPort(path, optio... |
package org.apache.activemq.artemis.core.protocol.mqtt;
/**
* MQTT Acks only hold message ID information. From this we must infer the internal message ID and consumer.
*/
class MQTTMessageInfo {
private long serverMessageId;
private long consumerId;
private String address;
MQTTMessageInfo(long ser... |
module TZInfo
module Data
module Definitions
module America
module Aruba
include TimezoneDefinition
linked_timezone 'America/Aruba', 'America/Curacao'
end
end
end
end
end
|
"use strict";
function OutputStream(options) {
options = defaults(options, {
indent_start : 0,
indent_level : 4,
quote_keys : false,
space_colon : true,
ascii_only : false,
unescape_regexps : false,
inline_script : false,
... |
import {HttpHeaders} from '@angular/common/http/src/headers';
import {HttpRequest} from '@angular/common/http/src/request';
import {HttpXsrfCookieExtractor, HttpXsrfInterceptor, HttpXsrfTokenExtractor} from '@angular/common/http/src/xsrf';
import {HttpClientTestingBackend} from '@angular/common/http/testing/src/back... |
package org.switchyard.component.resteasy.composer;
import javax.ws.rs.WebApplicationException;
import org.switchyard.Exchange;
import org.switchyard.ExchangeState;
import org.switchyard.HandlerException;
import org.switchyard.Message;
import org.switchyard.component.common.composer.BaseMessageComposer;
/**
* Comp... |
#import "RTCVideoCapturer.h"
#include "talk/app/webrtc/videosourceinterface.h"
@interface RTCVideoCapturer (Internal)
@property(nonatomic, assign, readonly) const talk_base::scoped_ptr<cricket::VideoCapturer> &capturer;
- (id)initWithCapturer:(cricket::VideoCapturer*)capturer;
@end
|
"""SCons.Errors
This file contains the exception classes used to handle internal
and user errors in SCons.
"""
__revision__ = "src/engine/SCons/Errors.py 5023 2010/06/14 22:05:46 scons"
import SCons.Util
import exceptions
class BuildError(Exception):
""" Errors occuring while building.
BuildError have th... |
<bill session="115" type="s" number="1440" updated="2017-09-11T03:06:34Z">
<state datetime="2017-06-26">REFERRED</state>
<status>
<introduced datetime="2017-06-26"/>
</status>
<introduced datetime="2017-06-26"/>
<titles>
<title type="short" as="introduced">Contractor Accountability and Workplace Safet... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.curator;
import com.yahoo.path.Path;
import java.time.Clock;
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.List;
import java.util.logging... |
using namespace std;
class Pet
{
public:
void setData(string breed,int age,int price);
void displayData();
private:
string breed_name;
int pet_age;
int pet_price;
};
void Pet::setData(string breed,int age,int price)
{
Pet::breed_name=breed;
Pet::pet_age=age;
Pet::pet_price=price;
}
void Pet::displayData()... |
// Created by Loïc Gardiol on 07.05.14.
@import MapKit;
@interface PCTileOverlay : MKTileOverlay
/**
* Set this property to a positive value to enable tiles persistence caching.
* loadTileAtPath:result: automatically looks for a tile that is still valid
* and directly returns it in result(...) if found.
* 0.0... |
package sample.contact;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.context.MessageSourceAware;
import org.springframework.context.support.Mes... |
using System;
using System.IO;
namespace Orchard {
public class Program {
const int ConsoleInputBufferSize = 8192;
public static int Main(string[] args) {
Console.SetIn(new StreamReader(Console.OpenStandardInput(ConsoleInputBufferSize)));
return (int)new OrchardHo... |
package mesosphere.marathon.core.flow.impl
import akka.actor.{ Actor, ActorLogging, Cancellable, Props }
import mesosphere.marathon.core.flow.LaunchTokenConfig
import mesosphere.marathon.core.matcher.manager.OfferMatcherManager
import mesosphere.marathon.core.task.bus.TaskStatusObservables.TaskStatusUpdate
import meso... |
package com.linecorp.centraldogma.server.internal.storage.repository.git;
import javax.annotation.Nullable;
import org.slf4j.Logger;
import com.linecorp.armeria.common.RequestContext;
import com.linecorp.armeria.common.util.Exceptions;
import com.linecorp.armeria.server.ServiceRequestContext;
import com.linecorp.ce... |
= Universal Simulator =
This provides a base for simulations in c++ |
var $ = require('jquery-cdb-v3');
var cdb = require('cartodb.js-v3');
var GroupsMainView = require('../../../../../javascripts/cartodb/organization/groups_admin/groups_main_view');
describe('organization/groups_admin/groups_main_view', function() {
beforeEach(function() {
this.contentView = new cdb.core.View();... |
package io.novaordis.events.httpd.microparsers.cookie;
import io.novaordis.utilities.parsing.ParsingException;
import io.novaordis.events.httpd.HttpdFormatString;
import io.novaordis.events.httpd.RequestHeaderHttpdFormatString;
import io.novaordis.events.httpd.ResponseHeaderHttpdFormatString;
import java.util.Array... |
package io.druid.query.topn;
import java.util.Map;
/**
*/
public class DimValHolder
{
private final Object topNMetricVal;
private final Comparable dimName;
private final Object dimValIndex;
private final Map<String, Object> metricValues;
public DimValHolder(
Object topNMetricVal,
Comparable ... |
;
(function ($, window, document, undefined) {
'use strict';
Foundation.libs.tab = {
name: 'tab',
version: '5.5.0',
settings: {
active_class: 'active',
callback: function () {
},
deep_linking: false,
scroll_to_content: true,
... |
EXAMPLE_PLUGIN_ZIP=$(readlink -m jvm-example-*.zip)
# Checks if necessary commands are available to run the tests
if [ ! -x /usr/bin/which ]; then
echo "'which' command is mandatory to run the tests"
exit 1
fi
if [ ! -x "`which wget 2>/dev/null`" ]; then
echo "'wget' command is mandatory to run the tests... |
require 'helper'
describe Octokit::Client::PubSubHubbub do
let(:client) { Octokit::Client.new(:oauth_token => 'myfaketoken') }
describe ".subscribe" do
it "subscribes to pull events" do
stub_post("/hub?access_token=myfaketoken").
with({
:"hub.callback" => 'github://Travis?token=travist... |
/* $NetBSD: uplcom.c,v 1.27 2002/03/16 16:10:19 ichiro Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Ichiro FUKUHARA (ichiro@ichiro.org).
*
* Redistribution and use in source and binary forms, w... |
using HoloJson.Core;
using HoloJson.Type;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HoloJson.Parser.Core
{
/// <summary>
/// A "tail buffer". It keeps the finite number of objects that have been added last.
///... |
package com.intellij.find;
import com.intellij.codeInsight.hint.EditorHintListener;
import com.intellij.find.impl.livePreview.LivePreview;
import com.intellij.find.impl.livePreview.LivePreviewController;
import com.intellij.find.impl.livePreview.SearchResults;
import com.intellij.openapi.application.ApplicationManage... |
#include <stdint.h>
#include <unistd.h>
#include <xen/xen.h>
#include <xen/grant_table.h> // Kernel interface
#include <xen/sys/gntalloc.h> // Userspace interface
#include <atomic>
#include "osv_xen.hh"
#include "gntalloc.hh"
namespace xen {
gntref invalid_ref;
// FIXME: Most of the destructors are yet to be code... |
<?xml version="1.0" encoding="utf-8"?>
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/profile_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="15dp"
android:textColor="@color/dark_text_color"
android:textSi... |
package me.ellios.hedwig.registry;
/**
* Say something?
*
* @author George Cao
* @since 5/21/13 10:49 AM
*/
public interface ServiceFace {
void ping(String pong);
}
|
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.8.3
*/md-autocomplete{background:0 0}md-autocomplete button md-icon path{fill:'{{background-600}}'}md-autocomplete button:after,md-autocomplete ul{background:0 0}md-autocomplete ul li{border-top:1px solid '{{background-400}}';c... |
"use strict";
var svgo = new (require('svgo')), xml2js = require('xml2js');
/**
* Callback recieves an array of characters with the format of
* {
* code: 'unicode',
* name: 'special name, if provided',
* ref: name or code
* svg: 'full svg content required to render'
* path: 'just the path from the svg content... |
curl --retry 3 --silent --show-error -o chef-backend-secrets.json "$1/chef-backend-secrets.json$2"
apt-get install -y apt-transport-https
wget -qO - https://downloads.chef.io/packages-chef-io-public.key | sudo apt-key add -
echo "deb https://packages.chef.io/stable-apt trusty main" > /etc/apt/sources.list.d/chef-stabl... |
package org.apache.reef.tests.watcher;
import org.apache.reef.evaluator.context.events.ContextStart;
import org.apache.reef.wake.EventHandler;
import javax.inject.Inject;
/**
* Failing handler for ContextStart (throws exception upon start).
*/
public final class FailedContextHandler implements EventHandler<Contex... |
/*
* @author max
*/
package com.intellij.util.io.storage;
import com.intellij.openapi.util.io.ByteSequence;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
public class StorageTest extends StorageTestBase {
public void testSmoke() throws Exception {
final int re... |
package com.intellij.ide.structureView;
import com.intellij.ide.util.treeView.smartTree.TreeModel;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* Defines the model for the data displayed in the standard structure view or file structure
* popup component. The model of the... |
require "spec_helper"
describe "bundler source plugin" do
before :each do
build_gem "bundler-foo", :to_system => true do |s|
main = <<-EOF
class BundlerCustomSource < Bundler.plugin("1")
name "Custom source plugin"
source "foo" do
require "source"
Source
end
end
EOF
source = <<-EO... |
var helper = require('./test-helper')
var async = require('async')
var testWithoutDomain = function(cb) {
test('no domain', function() {
assert(!process.domain)
helper.pg.connect(helper.config, assert.success(function(client, done) {
assert(!process.domain)
done()
cb()
}))
})
}
var t... |
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __STM32F1xx_LL_SPI_H
#define __STM32F1xx_LL_SPI_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "stm32f1xx.h"
/** @addtogroup STM32F1xx_LL_Driv... |
#ifndef MDB_H_
#define MDB_H_
// config.c
extern DWORD
MDBInitConfig();
// indexer.c
DWORD
MdbCreateEIDIndex(
PVDIR_DB_TXN pTxn,
ENTRYID eId,
VDIR_BERVALUE * encodedEntry,
BOOLEAN bIsNewIndex);
DWORD
MDBDeleteParentIdIndex(
PVDIR_BACKEND_CTX pBECtx,
VDIR_BERVALU... |
#include "scripting/js-bindings/manual/cocostudio/jsb_cocos2dx_studio_conversions.h"
#include "scripting/js-bindings/manual/cocos2d_specifics.hpp"
#include "editor-support/cocostudio/CocoStudio.h"
jsval animationInfo_to_jsval(JSContext* cx, const cocostudio::timeline::AnimationInfo& v)
{
JS::RootedObject tmp(cx,... |
package com.alibaba.otter.shared.common.sample;
/**
* @author jianghang 2010-6-2 下午12:19:41
*/
public class TestService {
private TestMockService1 testService1;
private TestMockService2 testService2;
public String doTestService1(String param) {
return testService1.doTestMockService1(param);
... |
'use strict';
/**
* This file/module contains helpful file location config.
*/
var vendorDir = 'src/lib/vendor/';
module.exports = {
/**
* The `build_dir` folder is where our projects are compiled during
* development and the `compile_dir` folder is where our app resides once it's
* completely built.
... |
<div class="container">
<div class="row" ng-transclude>
</div>
</div>
|
import axios from "axios";
export const fetchChatRoom = payload => {
const url = "/message/" + payload.id.toString();
return function(dispatch) {
axios.get(url).then(function(response) {
dispatch({
type: "FETCH_CHAT_ROOM",
payload: response
});
console.log(payload);
payl... |
/*! (c) 2014 - present: Jason Quense | https://github.com/jquense/react-widgets/blob/master/LICENSE.md */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
package org.apache.camel.dataformat.soap;
import java.io.IOException;
import java.io.InputStream;
import com.example.customerservice.GetCustomersByName;
import com.example.customerservice.NoSuchCustomer;
import com.example.customerservice.NoSuchCustomerException;
import org.apache.camel.EndpointInject;
import org.ap... |
import os
import io
import unittest
import json
from . import measure
from .fhirdate import FHIRDate
class MeasureTests(unittest.TestCase):
def instantiate_from(self, filename):
datadir = os.environ.get('FHIR_UNITTEST_DATADIR') or ''
with io.open(os.path.join(datadir, filename), 'r', encoding='utf... |
package com.google.common.io;
import static com.google.common.base.Preconditions.checkNotNull;
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import javax.annotation.Nullable;
/**
* An {@link InputStream} that concatenates multiple substreams. At most
* one stream will be ope... |
<?php
namespace Symfony\Component\HttpKernel;
use Symfony\Bridge\ProxyManager\LazyProxy\Instantiator\RuntimeInstantiator;
use Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Sym... |
/**
* This is a private API for the ngtools toolkit.
*
* This API should be stable for NG 2. It can be removed in NG 4..., but should be replaced by
* something else.
*/
import { AotCompilerHost, StaticReflector } from '@angular/compiler';
export interface LazyRoute {
routeDef: RouteDef;
absoluteFilePath:... |
<?php
/**
* Edit post administration panel.
*
* Manage Post actions: post, edit, delete, etc.
*
* @package WordPress
* @subpackage Administration
*/
/** WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' );
$parent_file = 'edit.php';
$submenu_file = 'edit.php';
wp_reset_var... |
package org.jetbrains.idea.devkit.inspections;
import com.intellij.codeInsight.daemon.quickFix.LightQuickFixParameterizedTestCase;
import com.intellij.codeInspection.LocalInspectionTool;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.idea.devkit.DevkitJavaTestsUtil;
public class PsiElementConcatenati... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StateTriggersSample.ViewModel
{
public class Model
{
public string Name { get; set; }
public string Description { get; set; }
public Boolean ... |
FROM debian:jessie
RUN apt-get update && apt-get install -y python python-pip
RUN pip install virtualenv
|
var log = require('../log');
var exportables = {};
exportables.meta = {
keywords: ['py', 'python']
};
exportables.generateProject = () => {
log.info(`Sorry, Python project generation isn't implemented yet. Contributions welcome!`);
};
module.exports = exportables;
|
/**
* @author zhixin wen <wenzhixin2010@gmail.com>
* version: 1.8.1
* https://github.com/wenzhixin/bootstrap-table/
*/
! function ($) {
'use strict';
// TOOLS DEFINITION
// ======================
var cachedWidth = null;
// it only does '%s', and return '' when arguments are undefined
var... |
Stores as an `Object` in the model.
Displayed as a file upload field in the Admin UI.
Automatically manages files stored in [Windows Azure Storage](http://www.windowsazure.com/), including uploading and deleting.
## Example
```js
{ type: Types.AzureFile }
```
## Options
`filenameFormatter` `Callback`
Function with... |
/**
* @ngdoc object
* @name ui.router.state.$uiViewScrollProvider
*
* @description
* Provider that returns the {@link ui.router.state.$uiViewScroll} service function.
*/
function $ViewScrollProvider() {
var useAnchorScroll = false;
/**
* @ngdoc function
* @name ui.router.state.$uiViewScrollProvider#us... |
from __future__ import unicode_literals
from django import forms
from django.contrib import admin
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase
from django.test.utils import str_prefix
from .models import Song, Book, Album, TwoAlbumFKAndAnE, City
class SongForm(forms.Model... |
from __future__ import unicode_literals
from datetime import datetime, date
import os
import time
from django.utils.dateformat import format
from django.utils import dateformat, translation, unittest
from django.utils.timezone import utc
from django.utils.tzinfo import FixedOffset, LocalTimezone
class DateFormatTes... |
from django.db import migrations, models
import django.db.models.deletion
import utilities.fields
def copy_tags(apps, schema_editor):
"""
Copy data from taggit_tag to extras_tag
"""
TaggitTag = apps.get_model('taggit', 'Tag')
ExtrasTag = apps.get_model('extras', 'Tag')
tags_values = TaggitTag... |
YUI.add('dom-base', function(Y) {
(function(Y) {
/**
* The DOM utility provides a cross-browser abtraction layer
* normalizing DOM tasks, and adds extra helper functionality
* for other common tasks.
* @module dom
* @submodule dom-base
* @for DOM
*
*/
/**
* Provides DOM helper methods.
* @class DOM
*
*/... |
class Object: public QObject
{
Q_OBJECT
public:
Object(QObject *p = 0);
Object(float = 0.0, float = 0.0, float = 0.0, QObject *p = 0);
~Object();
virtual void draw() {}
void drawTexture();
void clearTexture();
QString getTexturePath();
void setTexture(QString image_path);
bo... |
namespace v8 {
namespace internal {
class CodeAddressMap : public CodeEventLogger {
public:
explicit CodeAddressMap(Isolate* isolate) : isolate_(isolate) {
isolate->logger()->addCodeEventListener(this);
}
~CodeAddressMap() override {
isolate_->logger()->removeCodeEventListener(this);
}
void CodeMo... |
namespace SuperPutty
{
partial class SessionTreeview
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>... |
<?php
/**
* Sets navigation object based on conference abbreviation
*
* @author Christian Gijtenbeek
* @package TA_Controller
* @subpackage Plugin
*/
class TA_Controller_Plugin_NavigationSelector extends Zend_Controller_Plugin_Abstract
{
/**
* @var Zend_Navigation
*/
protected $_navigation = n... |
package org.springframework.boot.actuate.web.trace.servlet;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Tests for {@link TraceableHttpServletRequest}.
*
* @... |
const matcher = require('./html');
describe('html region-matcher', () => {
it('should match start annotations', () => {
let matches;
matches = matcher.regionStartMatcher.exec('<!-- #docregion A b c -->');
expect(matches).not.toBeNull();
expect(matches[1]).toEqual('A b c');
matches = matcher.reg... |
An iterator for reading `Event` protocol buffers from an event file.
You can use this function to read events written to an event file. It returns
a Python iterator that yields `Event` protocol buffers.
Example: Print the contents of an events file.
```python
for e in tf.train.summary_iterator(path to events file):
... |
// Code generated by client-gen. DO NOT EDIT.
package v1beta1
import (
"context"
json "encoding/json"
"fmt"
"time"
v1beta1 "k8s.io/api/discovery/v1beta1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
discoveryv1beta1 "k8s.io/client-go... |
package uk.ac.ncl.openlab.intake24.client.survey.rules;
import org.pcollections.PSet;
import org.workcraft.gwt.shared.client.Option;
import uk.ac.ncl.openlab.intake24.client.survey.*;
import uk.ac.ncl.openlab.intake24.client.survey.prompts.SplitFoodPrompt;
public class SplitFood implements PromptRule<FoodEntry, Foo... |
class SkBitmap;
namespace views {
class ImageView;
class Label;
class MenuRunner;
}
namespace app_list {
class AppListItem;
class AppsGridView;
class ProgressBarView;
class APP_LIST_EXPORT AppListItemView : public views::CustomButton,
public views::ContextMenuController,
... |
// Need to supply the regex test as a string for reuse in unit tests
// Currently, trying to change flags throws a TypeError
// Slated for change in ES6, but not possible now:
// https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/RegExp#Description
const REQUIRE_ANYTHING_BASE = 'require\\s*\\... |
<!--
@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.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http:/... |
"""
Lift ckernels to their appropriate rank so they always consume the full array
arguments.
"""
from __future__ import absolute_import, division, print_function
from pykit.ir import transform, Op
#------------------------------------------------------------------------
# Run
#---------------------------------------... |
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)
ruby_version_is "1.8.7" do
describe "Enumerable#count" do
before :each do
@elements = [1, 2, 4, 2]
@numerous = EnumerableSpecs::Numerous.new(*@elements)
end
it "returns size w... |
package com.amazonaws.services.elasticache.model;
import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;
/**
* Container for the parameters to the {@link com.amazonaws.services.elasticache.AmazonElastiCache#describeReservedCacheNodes(DescribeReservedCacheNodesRequest) DescribeReservedCacheNodes... |
package org.apache.cassandra.db.rows;
import com.google.common.hash.Hasher;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.cassandra.db.filter.ColumnFilter;
import org.apache.cassandra.db.transform.Transformation;
import org.apache.cassandra.schema.TableMetadata;
import org.apache.cassand... |
<!doctype html>
<title>CodeMirror: Gherkin mode</title>
<meta charset="utf-8"/>
<link rel=stylesheet href="../../doc/docs.css">
<link rel="stylesheet" href="../../lib/codemirror.css">
<script src="../../lib/codemirror.js"></script>
<script src="gherkin.js"></script>
<style>.CodeMirror { border-top: 1px solid #ddd; bo... |
namespace mjolnir
{
template class UniformLennardJonesPotential<double>;
template class UniformLennardJonesPotential<float >;
} // mjolnir
|