text
stringlengths
3
1.05M
TEST(UtilsTest, LowercaseAllLowerCase) { std::string s{"hello world"}; auto actual = vis::Utils::lowercase(s); std::string expected{"hello world"}; EXPECT_EQ(expected, actual) << "lowercase must not change an all lowercased string"; } TEST(UtilsTest, LowercaseAllUpperCase) { std::string s{...
package org.ethereum.net.eth; import org.ethereum.core.Block; import org.ethereum.util.RLP; import org.ethereum.util.RLPList; import java.util.ArrayList; import java.util.List; import java.util.Vector; import static org.ethereum.net.eth.EthMessageCodes.BLOCKS; /** * Wrapper around an Ethereum Blocks message on the...
function update_default(obj) %HGPROPMODE/UPDATE_DEFAULT Update property value to DefaultValue % UPDATE_DEFAULT(OBJ) is called when OBJ.DefaultValue is set. If the % property value of the OBJ.GraphicsHandle has not been changed from the % default, UPDATE_DEFAULT updates the property value to the new % DefaultV...
OSX === Defines [Mac OS X][1] aliases and functions. Aliases ------- - `cdf` changes the current working director to the current _Finder_ directory. - `pushdf` pushes the current working directory onto the directory queue and changes the current working director to the current _Finder_ directory. Functi...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >CREATE CAST</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REV="MADE" HREF="mailto:pgsql-docs@postgresql.org"><LINK REL="HOME" TITLE="PostgreSQL 9.0.5...
<?php namespace App\Http\Controllers; class DisplayController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth'); } /** * Show the application dashboard. * * @return ...
/* Cycle2 core engine */ ;(function($) { "use strict"; var version = '2.1.6'; $.fn.cycle = function( options ) { // fix mistakes with the ready state var o; if ( this.length === 0 && !$.isReady ) { o = { s: this.selector, c: this.context }; $.fn.cycle.log('requeuing slideshow (dom not read...
package com.suning.framework.dal.parsing.io; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.net.MalformedURLException; import ja...
namespace base { class SequencedTaskRunner; } namespace chromeos { class DeviceSettingsService; class SessionManagerClient; } namespace enterprise_management { class PolicyFetchResponse; } namespace policy { class DeviceLocalAccountPolicyBroker; // CloudPolicyStore implementation for device-local account policy. S...
import os import os.path as op from flask import Flask, url_for from flask_sqlalchemy import SQLAlchemy from sqlalchemy.event import listens_for from jinja2 import Markup from flask_admin import Admin, form from flask_admin.form import rules from flask_admin.contrib import sqla # Create application app = Flask(__n...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <TITLE> org.apache.commons.math3.geometry.euclidean.oned (Commons Math 3.2 API) </TITLE> <LINK REL ="stylesheet" TYPE=...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"...
require File.expand_path('../../spec_helper', __FILE__) require File.expand_path('../fixtures/coding_us_ascii', __FILE__) require File.expand_path('../fixtures/coding_utf_8', __FILE__) describe "The __ENCODING__ pseudo-variable" do it "is an instance of Encoding" do __ENCODING__.should be_kind_of(Encoding) end...
[![Build status][nix-build-image]][nix-build-url] [![Windows status][win-build-image]][win-build-url] ![Transpilation status][transpilation-image] [![npm version][npm-image]][npm-url] # es6-weak-map ## WeakMap collection as specified in ECMAScript6 _Roughly inspired by Mark Miller's and Kris Kowal's [WeakMap impleme...
<?php namespace App\Controllers\Front\Content; use App\Controllers\Controller; class SiteMap extends Controller { public function index() { $data = Theme::language('content/site_map'); Theme::setTitle(Lang::get('lang_heading_title')); Breadcrumb::add('lang_heading...
require '<%= @rspec_require_file %>' describe <%= module_name %>::<%= class_name%>Controller do end
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'mongodb')) Puppet::Type.type(:mongodb_replset).provide(:mongo, :parent => Puppet::Provider::Mongodb) do desc "Manage hosts members for a replicaset." confine :true => begin require 'json' true rescue LoadError false en...
"function"==typeof define&&define.amd?define(function(){return window}):"object"==typeof exports&&(module.exports=window);
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.6.0_18) on Thu Dec 18 17:18:42 PST 2014 --> <title>Uses of Class javax.xml.xpath.XPathException (Java Platform SE 7 )</title> <meta name="d...
<!doctype html> <html> <head> <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon"> <title>Event (Closure Library API Documentation - JavaScript)</title> <link rel="stylesheet" href="static/css/base.css"> <link rel="stylesheet" href="static/css/doc.css"> <link rel="stylesheet" href...
<?php namespace Cron; use DateTime; use InvalidArgumentException; /** * Day of week field. Allows: * / , - ? L # * * Days of the week can be represented as a number 0-7 (0|7 = Sunday) * or as a three letter string: SUN, MON, TUE, WED, THU, FRI, SAT. * * 'L' stands for "last". It allows you to specify constru...
package controllers import models._ import play.api.mvc.Results._ import play.api.mvc._ import scalikejdbc.DB import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.{ ExecutionContext, Future } import scala.reflect.{ ClassTag, classTag } import jp.t2v.lab.play2.auth._ import jp.t2v.lab.play...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Xml.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.VisualBasic; using Xcst.Compiler; using CSharp...
package org.CloudOps.laas; import java.util.HashMap; import org.apache.log4j.Logger; /** * * @author Pascal TROUVIN <pascal.trouvin at o4s.fr> */ public class MessageJson { private HashMap<String, String> fields=new HashMap(); public MessageJson(String msgString){ if( msgS...
/* This executable generates html output from MOF input to provide a displayable form for viewing DMTF mof files. It was written specifically to generate html output for complete DMTF CIM Schemas. */ #define CIMPLE_NO_VERSION_SYMBOL #include <cimple/config.h> #include <cstdio> #include <vector> #include ...
var indoorOptions = require("../private/indoor_map_layer_options.js"); var elevationMode = require("../private/elevation_mode.js"); var popups = require("./popup"); var EegeoDomUtil = require("../private/eegeo_dom_util"); var Marker = L.Marker.extend({ initialize: function(latlng, options) { L.Marker.pro...
package xyz.cyterdan.smartsushi.model; import xyz.cyterdan.smartsushi.model.Dish; import java.util.HashMap; import java.util.List; import java.util.Map; /** * * @author cytermann */ public class Order { Map<MenuItem, Integer> order; public Order(Map<MenuItem, Integer> order) { this.order = new Has...
var should = require('should'), assert = require('assert'), decree = require('../'); describe('registering custom types', function() { describe('invalid name (1)', function() { it('should not be ok', function() { decree.register.bind(decree, 123, function(o) {}).should.throwError(); ...
package com.oracle.pts.opp.wsclient.generated; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for...
NSString * const JSQMessagesKeyboardControllerNotificationKeyboardDidChangeFrame = @"JSQMessagesKeyboardControllerNotificationKeyboardDidChangeFrame"; NSString * const JSQMessagesKeyboardControllerUserInfoKeyKeyboardDidChangeFrame = @"JSQMessagesKeyboardControllerUserInfoKeyKeyboardDidChangeFrame"; static void * kJSQM...
MIT License Copyright (c) [2016] [Jonathan Komar] 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, modify, merge, publish...
namespace chromeos { using nfc_client_helpers::ObjectPathVector; const char FakeNfcAdapterClient::kAdapterPath0[] = "/fake/nfc0"; const char FakeNfcAdapterClient::kAdapterPath1[] = "/fake/nfc1"; FakeNfcAdapterClient::Properties::Properties( const PropertyChangedCallback& callback) : NfcAdapterClient::Propert...
package com.libmailcore; /** IMAP part. */ public class IMAPPart extends AbstractPart { /** Sets part ID. */ public native void setPartID(String partID); /** Returns part ID. */ public native String partID(); /** Sets encoded size of the part. */ public native void setSize(long size); ...
<!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"> <link rel="icon" type="image/png" href="https://just2us.com/img/favicon-180.png" /> <link rel="apple-touch-icon"...
declare module 'react-addons-perf' { declare function start(): void; declare function stop(): void; declare function printWasted(): void; declare function getLastMeasurements(): mixed; declare function printInclusive(): void; declare function printExclusive(): void; declare function printOperations(): voi...
<?php namespace Zend\Console; /** * An static, utility class for interacting with Console environment. * Declared abstract to prevent from instantiating. */ abstract class Console { /** * @var Adapter\AdapterInterface */ protected static $instance; /** * Allow overriding whether or not...
package org.apache.hc.client5.http.impl.cache; /** * @since 4.1 */ enum RequestProtocolError { UNKNOWN, BODY_BUT_NO_LENGTH_ERROR, WEAK_ETAG_ON_PUTDELETE_METHOD_ERROR, WEAK_ETAG_AND_RANGE_ERROR, NO_CACHE_DIRECTIVE_WITH_FIELD_NAME }
from aquilon.exceptions_ import NotFoundException from aquilon.worker.broker import BrokerCommand # pylint: disable=W0611 from aquilon.worker.commands.add_parameter import CommandAddParameter from aquilon.worker.dbwrappers.parameter import set_parameter class CommandUpdateParameter(CommandAddParameter): require...
<?php /** * Builder interface for stubs which are actions replacing an invocation. * * @package PHPUnit_MockObject * @author Sebastian Bergmann <sebastian@phpunit.de> * @copyright Sebastian Bergmann <sebastian@phpunit.de> * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause Li...
var util = require('util'); /** * State constants */ var EMPTY = 0 , BODY = 1; /** * Hixie Receiver implementation */ function Receiver () { this.state = EMPTY; this.buffers = []; this.messageEnd = -1; this.spanLength = 0; this.dead = false; this.onerror = function() {}; this.ontext = functio...
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="ChangeListManager"> <list default="true" id="747a2b23-d9c7-407d-a2e2-8a99f717477d" name="Default" comment="" /> <ignored path="simple.iws" /> <ignored path=".idea/workspace.xml" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED...
import annotation.Annotation object Test3 { class E[T >: Nothing <: String](s: T) extends Annotation class B // val a = new E[B](new B) @E[B](new B) val b = "hi" } object Test4 { class E[T <: String](s: T) extends Annotation class B val b: String @E[B](new B) = "hi" }
@interface MEZoomAnimationController : NSObject <UIViewControllerAnimatedTransitioning, ECSlidingViewControllerDelegate, ECSlidingViewControllerLayout> @end
#include "LETypes.h" #include "OpenTypeTables.h" #include "GlyphDefinitionTables.h" #include "LESwaps.h" U_NAMESPACE_BEGIN const LEReferenceTo<GlyphClassDefinitionTable> GlyphDefinitionTableHeader::getGlyphClassDefinitionTable(const LEReferenceTo<GlyphDefinitionTableHeader>& base, ...
package netpol import ( "context" "fmt" "github.com/onsi/ginkgo" "github.com/pkg/errors" networkingv1 "k8s.io/api/networking/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/kubernetes/test/e2e/framework" "sigs.k8s.io/yaml" "time" ) const ( waitInterval = 1 * ...
<header id="header"> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> ...
#import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** * Represents a path in GCS, which can be represented as: gs://bucket/path/to/object * or http[s]://firebasestorage.googleapis.com/v0/b/bucket/o/path/to/object?token=<12345> * This class also includes helper methods to parse those URI/Ls, as well as to...
/*! formstone v0.8.29 [scrollbar.css] 2015-11-25 | MIT License | formstone.it */ /** * @class * @name .fs-scrollbar-element * @type element * @description Target elmement */ /** * @class * @name .fs-scrollbar * @type element * @description Base widget class */ /** * @class * @name .fs-scrollbar...
from __future__ import unicode_literals import datetime import pickle import unittest from collections import OrderedDict from operator import attrgetter from django.core.exceptions import FieldError from django.db import DEFAULT_DB_ALIAS, connection from django.db.models import F, Q, Count from django.db.models.sql....
.claro .dijitTitlePaneTitle { background-color: #e6e6e7; background-image: url("images/titlebar.png"); background-repeat:repeat-x; border:1px solid #b5bcc7; padding: 0px 7px 3px 7px; min-height:17px; color:#131313; } .dj_ie6 .claro .dijitTitlePaneTitle { background-image: none; } .claro .dijitTitlePaneTitleHove...
package com.siyeh.ipp.parentheses; class ArrayAccessExpression { private static boolean placeEqualsLastArg(Object place, Object[] args) { return args.length > 0 && place.equals(args[(ar<caret>gs.length - 1)]);// here are unnecessary parentheses inside args[...] } }
package org.apache.camel.component.zookeeper.operations; import java.util.List; import static java.lang.String.format; import org.apache.zookeeper.ZooKeeper; import org.apache.zookeeper.data.Stat; /** * <code>GetChildrenOperation</code> is a basic ZooKeeper operation used to * retrieve the list of children belon...
var arrayFilter = require('./_arrayFilter'), baseRest = require('./_baseRest'), baseXor = require('./_baseXor'), isArrayLikeObject = require('./isArrayLikeObject'); /** * Creates an array of unique values that is the * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference) * ...
/* 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 * distributed...
extern "C" { struct _GList; struct _CcnetClient; // Can't forward-declare type SearpcClient here because it is an anonymous typedef struct #include <searpc-client.h> } class LocalRepo; class CloneTask; class SeafileRpcClient : public QObject { Q_OBJECT public: SeafileRpcClient(); void connectDaemon(); ...
package jibber_jabber_test import ( . "github.com/pivotal-cf-experimental/jibber_jabber" "regexp" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) const ( LOCALE_REGEXP = "^[a-z]{2}-[A-Z]{2}$" LANGUAGE_REGEXP = "^[a-z]{2}$" TERRITORY_REGEXP = "^[A-Z]{2}$" ) var _ = Describe("Windows", func() { Be...
package com.github.nmorel.gwtjackson.guava.client.deser; import com.github.nmorel.gwtjackson.client.JsonDeserializationContext; import com.github.nmorel.gwtjackson.client.JsonDeserializer; import com.github.nmorel.gwtjackson.client.JsonDeserializerParameters; import com.github.nmorel.gwtjackson.client.stream.JsonRea...
package systemd import ( "fmt" "io/ioutil" "os" "path/filepath" "strconv" "strings" "sync" "time" systemdDbus "github.com/coreos/go-systemd/dbus" systemdUtil "github.com/coreos/go-systemd/util" "github.com/godbus/dbus" "github.com/opencontainers/runc/libcontainer/cgroups" "github.com/opencontainers/runc/...
<?php namespace Doctrine\ORM\Mapping\Driver; use SimpleXMLElement, Doctrine\Common\Persistence\Mapping\Driver\FileDriver, Doctrine\Common\Persistence\Mapping\ClassMetadata, Doctrine\ORM\Mapping\MappingException; /** * XmlDriver is a metadata driver that enables mapping through XML files. * * @license...
class Jpegrescan < Formula desc "Losslessly shrink any JPEG file" homepage "https://github.com/kud/jpegrescan" url "https://github.com/kud/jpegrescan/archive/1.0.0.tar.gz" sha256 "faa0f6009b16a67e6a847b40e7e736e9a5a716cefb64a7c470e266219db90d02" head "https://github.com/kud/jpegrescan.git" depends_on "jpe...
/** * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a> */ #include <clock.h> #include <conf_clocks.h> #include <system.h> #ifndef SYSCTRL_FUSES_OSC32K_ADDR # define SYSCTRL_FUSES_OSC32K_ADDR SYSCTRL_FUSES_OSC32K_CAL_ADDR # define SYSCTRL_FUSES_OSC32K_Pos SYSCTRL_FUSES_OSC3...
<div id="description">This tests for a bug where pasting plain text into an empty contenteditable div would create paragraphs held in clones of the contenteditable div. To run it manually, do a Paste and Match style and then inspect the editable region. It should contain paragraphs held in regular divs.</div> <textar...
package org.apache.ignite.spi.metric; import org.jetbrains.annotations.Nullable; /** * Interface for the metrics that holds typed value. */ public interface ObjectMetric<T> extends Metric { /** @return Value ot the metric. */ public T value(); /** @return Type of metric value. */ public Class<T> ...
var hyperquest = require('../'); hyperquest('http://localhost:8000').pipe(process.stdout);
use serde::{Deserialize, Deserializer, Serialize, Serializer}; #[cfg(feature = "unstable-msc2677")] use super::Annotation; use super::{InReplyTo, Reference, Relation, Replacement, Thread}; use crate::OwnedEventId; pub(super) fn deserialize_relation<'de, D>(deserializer: D) -> Result<Option<Relation>, D::Error> where ...
'use strict'; import { TPromise } from 'vs/base/common/winjs.base'; import { IThreadService } from 'vs/workbench/services/thread/common/threadService'; import { MainContext, MainThreadLanguagesShape } from './extHost.protocol'; export class ExtHostLanguages { private _proxy: MainThreadLanguagesShape; constructor...
package stacktrace import "runtime" // Caputure captures a stacktrace for the current calling go program // // skip is the number of frames to skip func Capture(userSkip int) Stacktrace { var ( skip = userSkip + 1 // add one for our own function frames []Frame ) for i := skip; ; i++ { pc, file, line, ok :=...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="tr"> <head> <!-- Generated by javadoc (1.8.0_60) on Sat Apr 30 21:47:49 EEST 2016 --> <title>All Classes</title> <meta name="date" content="2016-04-30"> <link rel="stylesheet" type="text/c...
using System.Threading.Tasks; using BenchmarkDotNet.Attributes; using Xunit; using Xunit.Abstractions; namespace BenchmarkDotNet.IntegrationTests { public class AsyncBenchmarksTests : BenchmarkTestExecutor { public AsyncBenchmarksTests(ITestOutputHelper output) : base(output) { } ...
using System; using System.Security; using System.Collections; using System.Diagnostics.Contracts; using System.Runtime.CompilerServices; namespace System.Runtime.InteropServices.WindowsRuntime { // Local definition of Windows.Foundation.IClosable [ComImport] [Guid("30d5a829-7fa4-4026-83bb-d75bae4ea99e")]...
Package.describe({ name: 'offermarket:fixtures', version: '0.0.1', summary: '', debugOnly: true }); Package.onUse(function(api) { api.versionsFrom('1.1.0.2'); api.addFiles('seed-data.js', 'server'); api.addFiles('fixtures.js', 'server'); });
package org.geogit.repository; import static org.geogit.api.ObjectId.NULL; import static org.geogit.api.RevObject.TYPE.FEATURE; import static org.geogit.api.RevObject.TYPE.TREE; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import ...
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.xstream = f()}...
package btrfs // import "github.com/docker/docker/daemon/graphdriver/btrfs"
var argv = process.argv.slice(2) , path = require("path") , Runner = require("../lib/tap-runner") , nopt = require("nopt") , knownOpts = { cover: [path, false] , "cover-dir": path , stderr: Boolean , stdout: Boolean , diag: Boolean , version: Boolean , tap: Boolean , timeout: N...
#ifndef INSTR_MIPS_RTYPE_MFHI_H_ # define INSTR_MIPS_RTYPE_MFHI_H_ # include <instr/mips/rtype/instr.h> namespace sasm { namespace instr { namespace mips { namespace rtype { struct mfhi : public rd_instr { mfhi(const sasm::elf::elf& elf, uint64 addr) : rd_instr(elf, addr) { _name = "mfhi"; } }; }}}} #endif...
package com.google.android.vending.expansion.downloader; import com.android.vending.expansion.downloader.R; import android.content.Context; import android.os.Environment; import android.os.StatFs; import android.os.SystemClock; import android.util.Log; import java.io.File; import java.text.SimpleDateFormat; import...
<?php namespace Symfony\Component\Validator\Mapping; /** * Contains the metadata of a structural element. * * @author Bernhard Schussek <bschussek@gmail.com> * * @deprecated since version 2.5, to be removed in 3.0. * Extend {@link GenericMetadata} instead. */ abstract class ElementMetadata extend...
package com.xirideguang.resys; import java.io.IOException; import java.util.ArrayList; import java.util.List; import junit.framework.TestCase; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; import org.apache.hadoop.mapreduce.Reducer; ...
package panicwrap import "github.com/kardianos/osext" func Executable() (string, error) { return osext.Executable() }
// ecma-5.js // // -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License // -- tlrobinson Tom Robinson // dantman Daniel Friesen // // Array // if (!Array.isArray) { Array.isArray = function(obj) { return Object.prototype.toString.call(obj) === "[object Array]" || (obj instanceof Arra...
<?php namespace Illuminate\Support\Debug; use Symfony\Component\VarDumper\Cloner\VarCloner; use Symfony\Component\VarDumper\Dumper\CliDumper; class Dumper { /** * Dump a value with elegance. * * @param mixed $value * @return void */ public function dump($value) { if (cl...
class UserNotifier::Base < ActiveRecord::Base self.abstract_class = true after_commit :deliver, if: ->() { UserNotifier.auto_deliver } def self.notify_once(template_name, user, source = nil, params = {}) notify(template_name, user, source, params) if is_unique?(template_name, {self.user_association_name => ...
module Notes class UpdateService < BaseService def execute note = project.notes.find(params[:note_id]) note.note = params[:note] if note.save notification_service.new_note(note) # Skip system notes, like status changes and cross-references. unless note.system e...
// 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...
// pwdbased.h - written and placed in the public domain by Wei Dai #ifndef CRYPTOPP_PWDBASED_H #define CRYPTOPP_PWDBASED_H #include "cryptlib.h" #include "hrtimer.h" #include "integer.h" #include "hmac.h" NAMESPACE_BEGIN(CryptoPP) //! abstract base class for password based key derivation function class PasswordBase...
package atc type SetPinCommentRequestBody struct { PinComment string `json:"pin_comment"` }
#ifndef GLM_GTX_vector_angle #define GLM_GTX_vector_angle // Dependency: #include "../glm.hpp" #include "../gtc/epsilon.hpp" #include "../gtx/quaternion.hpp" #include "../gtx/rotate_vector.hpp" #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED)) # pragma message("GLM: GLM_GTX_vector_angle extension i...
<?php namespace Wrench\Tests\Frame; use Wrench\Frame\HybiFrame; use Wrench\Tests\Test; class BadSubclassFrame extends HybiFrame { protected $payload = 'asdmlasdkm'; protected $buffer = false; } class BadSubclassFrameTest extends Test { /** * @expectedException Wrench\Exception\FrameException *...
namespace System.DirectoryServices.Protocols { using System; using System.Globalization; public class LdapDirectoryIdentifier : DirectoryIdentifier { private string[] _servers = null; private bool _fullyQualifiedDnsHostName = false; private bool _connectionless = false; ...
{% load i18n %} <div style="padding-top:12px" class="discreet">{% trans "Pages" %}</div> <div class="navigation-pages" style="width:100%;"> {% if page.has_previous %} <a class="ajax-link" href="{% url lfs_set_selectable_reviews_page %}?page=1&amp;review-id={{ review_id }}"> <img src="...
cask :v1 => 'colorpicker-propicker' do version '1.0' sha256 'd1c07c116fee22dbbaea86c285327b5468b82863ba575e8fe462a2dcec023891' # todo, the URL indicates there is an appcast url "http://www.irradiated.net/appcasts/pro-picker/releases/#{version}/ProPicker.zip" name 'Pro Picker' homepage 'http://www.irradiate...
package org.apache.lucene.spatial.spatial4j.geo3d; /** * A GeoArea represents a standard 2-D breakdown of a part of sphere. It can * be bounded in latitude, or bounded in both latitude and longitude, or not * bounded at all. The purpose of the interface is to describe bounding shapes used for * computation of ...
import logging import os import os.path import numpy as np import soundfile from numpy.lib.stride_tricks import as_strided logger = logging.getLogger(__name__) def calc_feat_dim(window, max_freq): return int(0.001 * window * max_freq) + 1 def conv_output_length(input_length, filter_size, border_mode, stride,...
``` Contains code that is not module-specific. ``` ## apollo_app ``` The "apollo_app" build target defines the abstract class ApolloApp, which is implemented by all modules, as well as the macro APOLLO_MAIN, used to launch each module. ``` ## log ``` The "log" build target wraps the Google Log system into project-spe...
/*PLEASE DO NOT EDIT THIS CODE*/ /*This code was generated using the UMPLE 1.21.0.4666 modeling language!*/ import java.util.*; import java.sql.Date; /** * Positioning */ // line 49 "BankingSystemB.ump" // line 77 "BankingSystemB.ump" public class BankAccount extends FinancialInstrument { //------------...
import * as H from 'history'; export default function createMemoryHistory(options?: H.HistoryOptions): H.History;
namespace courgette { // Forward declarations: class Ensemble; // An Element is a region of an Ensemble with an identifyable kind. // class Element { public: Element(ExecutableType kind, Ensemble* ensemble, const Region& region); virtual ~Element(); ExecutableType kind() const { return ki...
<div> <div class="fin-form-title">Accounts</div> <form class="fin-form" #thisForm="ngForm"> <div class="form-group col-lg-10"> <text-field [(text)]="model.filterStructure" (textChange)="searchAsYouType()" [label]="'Structure'" [tip]="'Structure'"></t...
<?php require_once 'phing/Task.php'; include_once 'phing/tasks/system/condition/ConditionBase.php'; /** * <available> task. * * Note: implements condition interface (see condition/Condition.php) * * @author Andreas Aderhold <andi@binarycloud.com> * @copyright � 2001,2002 THYRELL. All rights reserved * ...