text stringlengths 3 1.05M |
|---|
require "cases/helper"
require "active_model/type"
module ActiveModel
module Type
class DateTest < ActiveModel::TestCase
def test_type_cast_date
type = Type::Date.new
assert_nil type.cast(nil)
assert_nil type.cast("")
assert_nil type.cast(" ")
assert_nil type.cast("A... |
#include "config.h"
#if ENABLE(SVG)
#include "SVGExternalResourcesRequired.h"
#include "Attr.h"
#include "SVGNames.h"
namespace WebCore {
bool SVGExternalResourcesRequired::parseMappedAttribute(Attribute* attr)
{
if (attr->name() == SVGNames::externalResourcesRequiredAttr) {
setExternalResourcesRequir... |
using captive_portal::CaptivePortalDetector;
namespace chromeos {
namespace {
// Maximum number of portal detections for the same default network
// after network change.
const int kMaxRequestAttempts = 3;
// Minimum timeout between consecutive portal checks for the same
// network.
const int kMinTimeBetweenAttempt... |
package com.facebook.buck.shell;
import com.facebook.buck.rules.Tool;
import com.google.common.hash.HashCode;
import java.nio.file.Path;
public interface WorkerTool {
Tool getTool();
String getArgs();
Path getTempDir();
int getMaxWorkers();
boolean isPersistent();
HashCode getInstanceKey();
}
|
#import "DealsViewController.h"
#import "Entry.h"
#import "EntryTableViewCell.h"
#import "LocationViewController.h"
#import "EntriesAppDelegate.h"
#import "ActivityLogger.h"
#import "FilterPicker.h"
#import "FilterButton.h"
#import "EntryCollection.h"
#import "Props.h"
#import "SMLog.h"
#import "SMRichTextViewer.h"
#im... |
using System;
using System.Collections;
using System.Text;
using System.IO;
public class FreestyleScriptPrecompiler
{
static public bool Compile(ref string content, string scriptFile, bool isPrimaryScript, Hashtable context)
{
if (!isPrimaryScript)
return false;
var code = new Stri... |
CKEDITOR.plugins.setLang( 'pastefromword', 'hu', {
confirmCleanup: 'Úgy tűnik a beillesztett szöveget Word-ből másolt át. Meg szeretné tisztítani a szöveget? (ajánlott)',
error: 'Egy belső hiba miatt nem sikerült megtisztítani a szöveget',
title: 'Beillesztés Word-ből',
toolbar: 'Beillesztés Word-ből'
});
|
package dedent
import (
"regexp"
"strings"
)
var (
whitespaceOnly = regexp.MustCompile("(?m)^[ \t]+$")
leadingWhitespace = regexp.MustCompile("(?m)(^[ \t]*)(?:[^ \t\n])")
)
// Dedent removes any common leading whitespace from every line in text.
//
// This can be used to make multiline strings to line up with... |
<?xml version="1.0" encoding="UTF-8"?>
<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>org.springframework.boot.mave... |
"""
This file is part of pyCMBS.
(c) 2012- Alexander Loew
For COPYING and LICENSE details, please refer to the LICENSE file
"""
#This file is empty by purpose
|
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Xml.Linq;
using Hyak.Common;
using Hyak.Common.Internals;
using Mic... |
YUI.add('dd-proxy', function(Y) {
/**
* Plugin for dd-drag for creating a proxy drag node, instead of dragging the original node.
* @module dd
* @submodule dd-proxy
*/
/**
* Plugin for dd-drag for creating a proxy drag node, instead of dragging the original node.
* @class DDProxy... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===---------------------------------------... |
class Canvas
include Mongoid::Document
field :name
embeds_many :shapes
embeds_one :writer
embeds_one :palette
accepts_nested_attributes_for :shapes
accepts_nested_attributes_for :writer
def render
shapes.each { |shape| render }
end
end
require "app/models/browser"
|
namespace content {
// Struct used by WebContentsDelegate.
struct CONTENT_EXPORT FileChooserParams {
FileChooserParams();
FileChooserParams(const FileChooserParams& other);
~FileChooserParams();
enum Mode {
// Requires that the file exists before allowing the user to pick it.
Open,
// Like Open, ... |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<link rel="stylesheet" href="designstyle.css">
<title>Gperftools Heap Leak Checker</title>
</HEAD>
<BODY>
<p align=right>
<i>Last modified
<script type=text/javascript>
var lm = new Date(document.lastModified);
document.write(lm.toDateStrin... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
Polymer((function() {
var DEFAULT_EMAIL_DOMAIN = '@gmail.com';
return {
is: 'offline-gaia',
properties: {
disabled: {
type: Bo... |
/**
* bluebird build version 3.4.1
* Features enabled: core
* Features disabled: race, call_get, generators, map, nodeify, promisify, props, reduce, settle, some, using, timers, filter, any, each
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof de... |
#include "includes.h"
#include "common.h"
#include "base64.h"
#include "http.h"
#include "upnp_xml.h"
/*
* XML parsing and formatting
*
* XML is a markup language based on unicode; usually (and in our case,
* always!) based on utf-8. utf-8 uses a variable number of bytes per
* character. utf-8 has the advantag... |
require 'test_helper'
class AttachmentsControllerTest < ActionController::TestCase
setup do
@attachment = attachments(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:attachments)
end
test "should get new" do
get :new
assert_response :... |
package cmd
import (
"fmt"
"io"
"os"
"sort"
"github.com/spf13/cobra"
"k8s.io/kubernetes/pkg/api/unversioned"
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
)
func NewCmdApiVersions(f *cmdutil.Factory, out io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "api-versions",
// apiversions is depre... |
module.exports = require("./slicedToArrayLoose.js"); |
.. highlight:: django
.. include:: meta-email_unique.rst
Check if an entered e-mail address is unique, by looking in the
:ref:`model-identity` table for the `email` key::
<input type="text" id="email" name="email" value="" />
{% validate id="email" type={email} type={email_unique} %}
Optionally, an `rsc... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _i... |
<?php
namespace Symfony\Component\DependencyInjection\Tests\Compiler;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\Compiler\PriorityTaggedServiceTrait;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
class PriorityTaggedS... |
@interface UIStoryboardSegueTemplate : NSObject
@end |
<?xml version="1.0"?>
<!--
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:DataObject/etc/fieldset.xsd">
<scope id="global">
<fieldset id="sales_convert_quote_address">
<field name="discount_description">
... |
package com.eegeo.animation.updatelisteners;
import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
import android.view.View;
public class ViewScaleXAnimatorUpdateListener implements AnimatorUpdateListener
{
private View m_view;
public ViewScaleXAnimatorUpdateListen... |
package samples;
/**
* Launches a 1 node cluster.
*/
public class Sample01_1Node {
public static void main(String[] args) throws Exception {
water.Boot.main(args);
System.out.println("Cloud is up");
System.out.println("Go to http://127.0.0.1:54321");
}
}
|
<?php
namespace OpenCFP\Domain\Entity;
use Spot\Entity;
class Favorite extends Entity
{
protected static $table = 'favorites';
public static function fields()
{
return [
'id' => ['type' => 'integer', 'autoincrement' => true, 'primary' => true],
'admin_user_id' => ['type' ... |
package vspk
import "github.com/nuagenetworks/go-bambou/bambou"
// VMResyncIdentity represents the Identity of the object
var VMResyncIdentity = bambou.Identity{
Name: "resync",
Category: "resync",
}
// VMResyncsList represents a list of VMResyncs
type VMResyncsList []*VMResync
// VMResyncsAncestor is the i... |
<!doctype html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>alias-masked DOM properties (#14074)</title>
<script>
var errors = [];
window.onerror = function( errorMessage, filePath, lineNumber ) {
errors.push( errorMessage );
};
</script>
<script src="../../jq... |
<div class="new-article" ng-show="auth.user" >
<div class="new-article-container">
<ul class='errors' ng-if="errors">
<li ng-repeat="error in errors">{{error}}</li>
</ul>
<a type="button" class="btn btn-success" ng-href="#/{{articleModelsLocation}}/{{article.id}}" ng-show="article.status">
{{... |
class InitialSchema < ActiveRecord::Migration
def up
execute <<-SQL
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: plpgsql; Type: EXTENSION; Schema:... |
<!DOCTYPE html>
<html>
<head>
<title>Template Syntax</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
<!-- Polyfills -->
<script src="node_modules/core-js/client/shim.min.js"></scr... |
(function (factory) {
"use strict";
//noinspection JSUnresolvedVariable
if (typeof define === 'function' && define.amd) { // jshint ignore:line
// AMD. Register as an anonymous module.
define(['jquery'], factory); // jshint ignore:line
} else { // noinspection JSUnresolvedVariable
... |
class Zoo2 {
void foo(java.util.List[] dealsInfo) {
final int dealsNumber = dealsInfo != null && dealsInfo.length == 2 ? dealsInfo[0].size() : 0;
if (dealsNumber > 0) {
System.out.println(dealsInfo[0].get(0));
}
}
}
|
// Copyright (C) 2011 Vicente J. Botet Escriba
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// <boost/thread/locks.hpp>
// template <class Mutex> class shared_lock;
// template <class Clock, cl... |
package hudson.security;
import com.thoughtworks.xstream.converters.UnmarshallingContext;
import hudson.Extension;
import hudson.ExtensionList;
import hudson.Util;
import hudson.diagnosis.OldDataMonitor;
import hudson.model.Descriptor;
import jenkins.model.Jenkins;
import hudson.model.ManagementLink;
import hudson.mo... |
<header>Gestore dei processi - Vista Zona</header>
Questa pagina mostra tutti i processi in esecuzione raggruppati per la zona Solaris in cui si trovano.<br>
I processi sono classificati per utilizzo della CPU sotto il nome di ciascuna zona che ha uno o più processi in esecuzione.<br>
Per ciascun processo vengono ... |
package com.github.taxbeans.forms.nz;
import java.time.LocalDate;
import org.javamoney.moneta.Money;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.github.taxbeans.forms.IncludeFormatSpacing;
import com.github.taxbeans.forms.OmitCents;
import com.github.taxbeans.forms.RightAlign;
import com.gith... |
package org.apache.camel.component.jetty;
import java.lang.management.ManagementFactory;
import java.util.List;
import java.util.Set;
import javax.management.MBeanServer;
import javax.management.MBeanServerConnection;
import javax.management.MBeanServerFactory;
import javax.management.ObjectName;
import org.apache.... |
require 'test_helper'
class PayuInPaisaHelperTest < Test::Unit::TestCase
include ActiveMerchant::Billing::Integrations
def setup
@helper = PayuInPaisa::Helper.new( 'order_id', 'merchant_id', :amount => '10.00', :credential2 => 'secret')
end
def test_basic_helper_fields
assert_equal '10.00', @helper.f... |
import logging.config
import yaml
def init_logger(path):
logging.config.dictConfig(yaml.load(open(path)))
|
/**
* @license AngularJS v1.1.2
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {
'use strict';
var directive = {};
directive.dropdownToggle =
['$document', '$location', '$window',
function ($document, $location, $window) {
... |
"""Categorical tests."""
# limitations under the License.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
from tensorflow.contrib.learn.python.learn.learn_io import HAS_PANDAS
from tensorflow.contrib.learn.python... |
<?php
namespace Zend\Soap;
use SoapClient;
use SoapHeader;
use Traversable;
use Zend\Server\Client as ServerClient;
use Zend\Stdlib\ArrayUtils;
class Client implements ServerClient
{
/**
* Array of SOAP type => PHP class pairings for handling return/incoming values
* @var array
*/
protected $... |
package com.opengamma.analytics.financial.commodity.calculator;
import com.opengamma.analytics.financial.commodity.derivative.AgricultureFutureOption;
import com.opengamma.analytics.financial.commodity.derivative.EnergyFutureOption;
import com.opengamma.analytics.financial.commodity.derivative.MetalFutureOption;
impo... |
Blaze is a powerful library for creating user interfaces by writing
reactive HTML templates. Compared to using a combination of
traditional templates and jQuery, Blaze eliminates the need for all
the "update logic" in your app that listens for data changes and
manipulates the DOM. Instead, familiar template directive... |
class AddPictureMetaToPictureFile < ActiveRecord::Migration[5.2]
def change
add_column :picture_files, :picture_meta, :text
end
end
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="msapplication-tap-highlight" content="no">
<meta name="... |
package com.ctrip.xpipe.redis.console.controller.api.migrate.meta;
import com.ctrip.xpipe.api.codec.Codec;
/**
* @author wenchao.meng
*
* Mar 21, 2017
*/
public class AbstractMeta {
@Override
public String toString() {
return Codec.DEFAULT.encode(this);
}
}
|
"""The worxlandroid component."""
|
assert(new Boolean(false) / new String("2") === 0) |
module RubyWarrior
module Units
class Sludge < Base
def initialize
add_abilities :attack!, :feel
end
def play_turn(turn)
[:forward, :left, :right, :backward].each do |direction|
if turn.feel(direction).player?
turn.attack!(direction)
retur... |
require "spec_helper"
describe ActiveMongoid::Associations::DocumentRelation::Bindings::Many do
let(:team) do
Team.new
end
let(:player) do
Player.new
end
let(:team_metadata) do
Team.am_relations["players"]
end
describe "#bind_one" do
context "when the child of a references many" do
... |
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
/*
Package secretbox encrypts and authenticates small messages.
Secretbox uses XSalsa20 and Poly1305 to encrypt and authenticate messages with
secret-key crypt... |
namespace json_spirit
{
inline char to_hex_char( unsigned int c )
{
assert( c <= 0xF );
const char ch = static_cast< char >( c );
if( ch < 10 ) return '0' + ch;
return 'A' - 10 + ch;
}
template< class String_type >
String_type non_printable_to_string( unsigned int... |
package org.apache.mrql;
import org.apache.hadoop.conf.Configuration;
public class MapReduceEvaluatorInMemoryTest extends EvaluatorTest {
@Override
protected Evaluator createEvaluator() throws Exception {
Configuration conf = null;
Config.bsp_mode = false;
Config.spark_mode = false;
Config.map_reduce_mo... |
#ifndef GRPC_TEST_CORE_END2END_TESTS_CANCEL_TEST_HELPERS_H
#define GRPC_TEST_CORE_END2END_TESTS_CANCEL_TEST_HELPERS_H
typedef struct {
const char *name;
grpc_call_error (*initiate_cancel)(grpc_call *call, void *reserved);
grpc_status_code expect_status;
const char *expect_details;
} cancellation_mode;
stati... |
@interface User : NSManagedObject {
}
@property (nonatomic, retain) NSNumber* userID;
@property (nonatomic, retain) NSString* name;
@property (nonatomic, retain) NSString* email;
@property (nonatomic, retain) NSSet* tasks;
@end
|
package im.actor.core.api;
/*
* Generated by the Actor API Scheme generator. DO NOT EDIT!
*/
import im.actor.runtime.bser.*;
import im.actor.runtime.collections.*;
import static im.actor.runtime.bser.Utils.*;
import im.actor.core.network.parser.*;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.ann... |
<h1>Our Adventures</h1>
<a ng-click="changeTag('')">All</a>
<span> | </span>
<a ng-click="changeTag('friendship-peak')">Friendship Peak</a>
<span> | </span>
<a ng-click="changeTag('大峰')">Da Feng (China)</a>
<ul infinite-scroll="loadMore()" infinite-scroll-disabled="{{loading}}" class="blog-posts">
<li ng-repeat="po... |
autoload colors; colors
# ls colors
unset LS_COLORS
export CLICOLOR=1
export CLICOLOR_FORCE=1
export LS_COLORS='di=01;33:fi=95:ln=30:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43'
# Set 256 color support in term
export TERM=xterm-new
# git theming default: Variables for theming the git info... |
import expect from "unexpected";
import sinon from "sinon";
import Mixins from "../../src/util/Mixins";
describe("Mixins", () => {
it("should copy methods from mixin to context.", () => {
var mixin = {
test() {}
};
var context = {};
Mixins.add(context, [mixin]);
... |
package com.google.api.client.http;
import com.google.api.client.util.ArrayValueMap;
import com.google.api.client.util.Base64;
import com.google.api.client.util.ClassInfo;
import com.google.api.client.util.Data;
import com.google.api.client.util.FieldInfo;
import com.google.api.client.util.GenericData;
import com.go... |
require File.join(File.dirname(__FILE__), '/helpers/require_helper')
#bufs libraries
require Bufs.helpers 'hash_helpers'
require Bufs.lib 'bufs_escape'
#This is the base abstract class used. Each user would get a unique
#class derived from this one. In other words, a class context
#is specific to a user.
#[User bei... |
import { Subscriber } from '../Subscriber';
/**
* Returns an Observable that skips the first `count` items emitted by the source Observable.
*
* <img src="./img/skip.png" width="100%">
*
* @param {Number} count - The number of times, items emitted by source Observable should be skipped.
* @return {Observable} An ... |
<?php
/**
* Clicks ok on an alert popup.
*
* @package PHPUnit_Selenium
* @author Giorgio Sironi <info@giorgiosironi.com>
* @copyright 2010-2013 Sebastian Bergmann <sebastian@phpunit.de>
* @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
* @version Release: @packa... |
extern "C" {
#define VPX_CODEC_DISABLE_COMPAT 1
#include "third_party/libvpx/source/libvpx/vpx/vpx_encoder.h"
#include "third_party/libvpx/source/libvpx/vpx/vp8cx.h"
}
namespace remoting {
namespace {
// Number of bytes in an RGBx pixel.
const int kBytesPerRgbPixel = 4;
// Defines the dimension of a macro block. Th... |
package common
import (
"fmt"
"os"
"path"
"time"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/uuid"
"k8s.io/kubernetes/pkg/api/v1"
"k8s.io/kubernetes/test/e2e/framework"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = framework.KubeDescribe("ConfigMap", fun... |
#import "BFTask+Private.h"
#import "Parse.h"
#import "ParseInternal.h"
#import "ParseManager.h"
#import "PFEventuallyPin.h"
#import "PFObject+Subclass.h"
#import "PFOfflineStore.h"
#import "PFPin.h"
#import "PFPinningEventuallyQueue.h"
#import "PFUserPrivate.h"
#import "PFLogger.h"
#import "PFSession.h"
#import "PFFi... |
#include "SkReader32.h"
#include "SkWriter32.h"
#include "Test.h"
static void test1(skiatest::Reporter* reporter, SkWriter32* writer) {
const uint32_t data[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
for (size_t i = 0; i < SK_ARRAY_COUNT(data); ++i) {
REPORTER_ASSERT(reporter, i*4 == writer->size());
... |
GAD_ASSUME_NONNULL_BEGIN
typedef NSString *GADNativeAppInstallAssetID GAD_STRING_ENUM;
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallHeadlineAsset;
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallCallToActionAsset;
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallIconAsse... |
(function($) {
/**
* Class: $.jqplot.CanvasAxisLabelRenderer
* Renderer to draw axis labels with a canvas element to support advanced
* featrues such as rotated text. This renderer uses a separate rendering engine
* to draw the text on the canvas. Two modes of rendering the text are available.
... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeGeneration;
using Microsoft.CodeAnalysis.FindSymbol... |
source /home/stack/devstack/openrc neutron service
echo "Make sure that policy-targets associated to PTGs are deleted!!"
# Delete PTG/external-policy
gbp external-policy-delete vpn-consumer
gbp group-delete vpn-provider
# Delete rule-set
gbp policy-rule-set-delete vpn-webredirect-ruleset
# Delete rules
gbp polic... |
/**
* Created by Greg on 12/1/2015.
*/
var angular = require('angular');
var $ = require('jquery');
angular.module('FileDrop', [])
.value('fileTypesMap', [
'dmg', 'rar', 'zip', 'tgz', 'iso', 'java', 'rb', 'py', 'c', 'php', 'cpp', 'ics', 'exe',
'dat', 'xml', 'yml', 'sql', 'asp', 'h', 'css', 'html', 'js', 'l... |
package org.apache.camel.processor.async;
import org.apache.camel.ContextTestSupport;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.spi.ThreadPoolProfile;
/**
* Unit test to verify that error handling using async() also wor... |
package com.android.dx.rop.code;
import com.android.dx.command.dexer.Main;
import com.android.dx.rop.cst.Constant;
import com.android.dx.rop.cst.CstString;
import com.android.dx.rop.type.Type;
import com.android.dx.rop.type.TypeBearer;
import com.android.dx.util.ToHuman;
import com.google.common.collect.MapMaker;
i... |
package admin
import (
"strings"
"github.com/Unknwon/com"
"github.com/Unknwon/paginater"
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/modules/auth"
"github.com/gogits/gogs/modules/base"
"github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/mailer"
"github.com/gogits/gogs/modules/mi... |
import abc
import six
import struct
from . import packet_base
from . import arp
from . import ipv4
from . import ipv6
from . import lldp
from . import slow
from . import llc
from . import pbb
from . import cfm
from . import ether_types as ether
@six.add_metaclass(abc.ABCMeta)
class _vlan(packet_base.PacketBase):
... |
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.commonsware.android.tasks.roundrobin">
<application android:allowBackup="true"
android:label="@string/app_name"
android:icon="@drawable/ic_launcher">
<activity
android:name=".FirstActivity">
... |
class LeadObserver < ActiveRecord::Observer
observe :lead
@@leads = {}
def before_update(item)
@@leads[item.id] = Lead.find(item.id).freeze
end
def after_update(item)
original = @@leads.delete(item.id)
if original && original.status != "rejected" && item.status == "rejected"
return log_ac... |
define([
"dojo/_base/declare", // declare
"dojo/dom-attr" // domAttr.set
], function(declare, domAttr){
// module:
// dijit/form/_CheckBoxMixin
return declare("dijit.form._CheckBoxMixin", null, {
// summary:
// Mixin to provide widget functionality corresponding to an HTML checkbox
//
// description:
... |
package com.siyeh.ig.threading;
import com.siyeh.ig.IGInspectionTestCase;
public class AccessToStaticFieldLockedOnInstanceInspectionTest extends IGInspectionTestCase {
public void test() throws Exception {
final AccessToStaticFieldLockedOnInstanceInspection tool = new AccessToStaticFieldLockedOnInstanceInspect... |
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1beta1
import (
certificatesv1beta1 "k8s.io/api/certificates/v1beta1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
internal "k8s.io/client-go/appl... |
/**
* Nav controllers and header bar animations
*/
/*
.content-slide-in {
&.ng-enter, > .ng-enter {
-webkit-transition: 0.5s ease-in-out all;
-webkit-transform:translate3d(100%,0,0) ;
box-shadow: -1px 0px 10px rgba(0,0,0,0.6);
}
&.ng-enter-active, > .ng-enter-active {
-webkit-transform:translat... |
package com.google.security.zynamics.reil.translators.ppc;
import com.google.security.zynamics.reil.ReilInstruction;
import com.google.security.zynamics.reil.translators.IInstructionTranslator;
import com.google.security.zynamics.reil.translators.ITranslationEnvironment;
import com.google.security.zynamics.reil.trans... |
from django import template
from django.utils.safestring import mark_safe
import dndproject.settings
from dnd.utilities import int_with_commas
register = template.Library()
BOOLEAN_MAPPING = {True: 'yes', False: 'no', None: 'unknown', 1: 'yes',
0: 'no', '1': 'yes', '0': 'no', u'1': 'yes'}
def _b... |
iron-icons
=========
## Building
Running `update-icons.sh` will checkout [material-design-icons](https://github.com/google/material-design-icons), reduce
the fileset to 24px svgs, and compile the iconsets.
|
.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
|
namespace Cedar { namespace Matchers { namespace Stringifiers {
inline NSString * string_for(const CGRect value) {
return NSStringFromCGRect(value);
}
inline NSString * string_for(const CGSize value) {
return NSStringFromCGSize(value);
}
inline NSString * string_for(const CGPoint v... |
require 'etc'
###
# Given
###
Given /^we have an empty file named '(.+)'$/ do |filename|
filename = File.new(File.join(tmpdir, filename), 'w')
filename.close
end
Given /^we have an empty file named '(.+)' in the client cache$/ do |filename|
cache_dir = File.expand_path(File.join(File.dirname(__FILE__), "..", "... |
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment varia... |
package chandu0101.scalajs.react.components.mixins
import japgolly.scalajs.react.extra.OnUnmount
import org.scalajs.dom
import scala.scalajs.js
/**
* make sure u configure(OnUnmount.install)
*/
abstract class TimerMixin extends OnUnmount {
var _timeouts: List[Int] = Nil
def setTimeout(fn: js.Function0[Any],... |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.ap... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
CREATE TABLE TXNS (
TXN_ID bigint PRIMARY KEY,
TXN_STATE char(1) NOT NULL,
TXN_STARTED bigint NOT NULL,
TXN_LAST_HEARTBEAT bigint NOT NULL,
TXN_USER varchar(128) NOT NULL,
TXN_HOST varchar(128) NOT NULL,
TXN_AGENT_INFO varchar(128),
TXN_META_INFO varchar(128),
TXN_HEARTBEAT_COUNT int
) ENGINE=InnoDB D... |
<?php
declare(strict_types=1);
namespace Sylius\Component\Locale\Converter;
interface LocaleConverterInterface
{
/**
* @throws \InvalidArgumentException
*/
public function convertNameToCode(string $name, ?string $locale = null): string;
/**
* @throws \InvalidArgumentException
*/
... |