code
stringlengths
4
1.01M
language
stringclasses
2 values
//---------------------------------------------------------------------------------------------- // <copyright file="AppDeployment.cs" company="Microsoft Corporation"> // Licensed under the MIT License. See LICENSE.TXT in the project root license information. // </copyright> //-------------------------------------...
Java
'use strict'; module.exports = function generate_format(it, $keyword) { var out = ' '; var $lvl = it.level; var $dataLvl = it.dataLevel; var $schema = it.schema[$keyword]; var $schemaPath = it.schemaPath + it.util.getProperty($keyword); var $errSchemaPath = it.errSchemaPath + '/' + $keyword; var $...
Java
package org.luban.common.plugin; import org.luban.common.network.URL; /** * 服务插件接口 * * @author hexiaofeng * @version 1.0.0 * @since 12-12-12 下午8:47 */ public interface ServicePlugin { /** * 返回类型 * * @return */ String getType(); /** * 设置URL * * @param url */...
Java
#!/usr/bin/env python2 """Example of server-side computations used in global forest change analysis. In this example we will focus on server side computation using NDVI and EVI data. This both metrics are computed bands created by third party companies or directly taken by the satellites. NDVI and EVI are two metric...
Java
require File.expand_path("../../../test_helper", __FILE__) describe Flipflop::Strategies::DefaultStrategy do before do Flipflop::FeatureSet.current.replace do Flipflop.configure do feature :one, default: true feature :two end end end describe "with defaults" do subject do...
Java
require 'forwardable' require 'puppet/node' require 'puppet/resource/catalog' require 'puppet/util/errors' require 'puppet/resource/type_collection_helper' # Maintain a graph of scopes, along with a bunch of data # about the individual catalog we're compiling. class Puppet::Parser::Compiler extend Forwardable i...
Java
package nxt.http; import nxt.Nxt; import nxt.Transaction; import nxt.util.Convert; import org.json.simple.JSONObject; import org.json.simple.JSONStreamAware; import javax.servlet.http.HttpServletRequest; import static nxt.http.JSONResponses.INCORRECT_TRANSACTION; import static nxt.http.JSONResponses.MISSING_TRANSACT...
Java
# =================================================================== # # Copyright (c) 2015, Legrandin <helderijs@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redi...
Java
--- title: Kathryn Borel summary: Writer and editor (The Believer, American Dad!) categories: - editor - mac - writer --- ### Who are you, and what do you do? I am [Kathryn Borel, Jr](http://www.kathrynborel.com/ "Kathryn's website."). I am a former Canadian radio journalist (Canadian Broadcasting Corporation) and cu...
Java
module Octokit class Client module Gists # List gists for a user or all public gists # # @param username [String] An optional user to filter listing # @return [Array<Hashie::Mash>] A list of gists # @example Fetch all gists for defunkt # Octokit.gists('defunkt') # @ex...
Java
/** \file * \brief GTK Driver * * See Copyright Notice in "iup.h" */ #ifndef __IUPGTK_DRV_H #define __IUPGTK_DRV_H #ifdef __cplusplus extern "C" { #endif #define iupCOLORDoubleTO8(_x) ((unsigned char)(_x*255)) /* 1.0*255 = 255 */ #define iupCOLOR8ToDouble(_x) ((double)_x/255.0) /* common */ gboolean iupgt...
Java
/*body > section > section > section > div > section > div > div.row > div > div*/ fieldset.contact { position: relative; left: 6%; } .input { position: relative; z-index: 1; display: inline-block; margin: 1em; max-width: 350px; width: calc(100% - 2em); vertical-align: top; } .inp...
Java
require( [ 'gui/Button' ], function (Button) { return; var button = new Button({ main: $('#ui-button') }); button.render(); } );
Java
source $setup tar -xf $src mkdir build cd build ../libsigsegv-$version/configure \ --host=$host \ --prefix=$out \ --enable-static=yes \ --enable-shared=no make make install
Java
--- title: Open source + periodismo&#58 vía rápida a la innovación (1) categories: [ Analisis, Innovación ] layout: post cover_image: srcc.png excerpt: Asistimos a una eclosión de proyectos periodísticos que se han beneficiado de lenguajes de programación, librerías y aplicaciones de software desarrolladas con esa ...
Java
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Future</title> <link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="Doc...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AsanaNet { [Serializable] public class AsanaTeam : AsanaObject, IAsanaData { [AsanaDataAttribute("name")] public string Name { get; private set; } // ----------------------------------...
Java
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
Java
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sr" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Fuguecoin</source> <translation>О Fuguecoin-у</translation> </me...
Java
load File.dirname(__FILE__) + '/production.rb' if File.exists? File.dirname(__FILE__) + '/../application.local.rb' require File.dirname(__FILE__) + '/../application.local.rb' end
Java
from typing import Dict import tempfile from dxlclient.client_config import DxlClientConfig from dxlclient.client import DxlClient from dxlclient.broker import Broker from dxlclient.message import Event import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * INTEGRATION_NAM...
Java
using System; using System.Collections; using System.Collections.Generic; using System.Web.Http; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; using UtilJsonApiSerializer.Serialization; namespace UtilJsonApiSerializer { public class Configuration { priva...
Java
module SlotMachine # A Slot defines a slot in a slotted. A bit like a variable name but for objects. # # PS: for the interested: A "development" of Smalltalk was the # prototype based language (read: JavaScript equivalent) # called Self https://en.wikipedia.org/wiki/Self_(programming_language) # #...
Java
--- order: 0 title: 基本用法 --- 简单的步骤条。 ````jsx import { Steps } from 'antd'; const Step = Steps.Step; ReactDOM.render( <Steps current={1}> <Step title="已完成" description="这里是多信息的描述" /> <Step title="进行中" description="这里是多信息的描述" /> <Step title="待运行" description="这里是多信息的描述" /> <Step title="待运行" descripti...
Java
var GUID = (function () { function _GUID() { return UUIDcreatePart(4) + UUIDcreatePart(2) + UUIDcreatePart(2) + UUIDcreatePart(2) + UUIDcreatePart(6); }; function UUIDcreatePart(length) { var uuidpart = ""; for (var i = 0; i < length;...
Java
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\log; use Yii; use yii\base\Component; /** * Logger records logged messages in memory and sends them to different targets if [[dispatcher]] is set. * ...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> <title>Introduction to OpenFL | HaxeFlixel 2D Game Framework</title> <meta name="description" content="HaxeFlixel ...
Java
package com.github.scribejava.apis.examples; import com.github.scribejava.apis.EtsyApi; import com.github.scribejava.core.builder.ServiceBuilder; import com.github.scribejava.core.model.OAuth1AccessToken; import com.github.scribejava.core.model.OAuth1RequestToken; import com.github.scribejava.core.model.OAuthRequest; ...
Java
<?php namespace Tapestry\Providers; use Exception; use Tapestry\Tapestry; use Tapestry\Entities\Configuration; use Tapestry\Modules\Kernel\DefaultKernel; use Tapestry\Modules\Kernel\KernelInterface; use League\Container\ServiceProvider\AbstractServiceProvider; use League\Container\ServiceProvider\BootableServiceProvi...
Java
<?php namespace App; use Illuminate\Support\Facades\Route; /* * Clearboard Routes */ Route::group(['middleware' => ['web']], function () { Route::get('/', function() { return view('clearboard.index.viewindex', ['forums' => Forum::all()]); }); Route::get('/forum/{fid}-{_}', 'ForumController@vi...
Java
(function() { 'use strict'; angular .module('app.core') .constant('STATIC_URL', '/static/js/'); })();
Java
<gd-annotation-app></gd-annotation-app>
Java
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team // // 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, co...
Java
@font-face { font-family: 'icomoon'; src:url('fonts/icomoon.eot?-ru2f3j'); src:url('fonts/icomoon.eot?#iefix-ru2f3j') format('embedded-opentype'), url('fonts/icomoon.woff?-ru2f3j') format('woff'), url('fonts/icomoon.ttf?-ru2f3j') format('truetype'), url('fonts/icomoon.svg?-ru2f3j#icomoon') format('svg'); font...
Java
namespace Nancy.Swagger.Tests { public class TestModel { public int SomeInt { get; set; } public long SomeLong { get; set; } public long? SomeNullableLong { get; set; } } }
Java
class Fitbit::Activity < Fitbit::Data attr_accessor :activityId, :activityParentId, :activityParentName, :calories, :description, :distance, :duration, :hasStartTime, :isFavorite, :logId, :name, :startTime, :steps def initialize(activity_data, unit_measurement_mappings) @activityId = activity_d...
Java
$(document).ready(function(){ //Grabs url path var url = window.location.pathname; //Grabs current file name from URL var url = url.substring(url.lastIndexOf('/')+1); // now grab every link from the navigation $('#navigation a').each(function(){ //Grab the current elements href tag value var link = $(this).attr("href...
Java
支持修改民法! 不要workaround!
Java
.urank-docviewer-container-default { background: -webkit-linear-gradient(top, rgba(175, 175, 175, 1), rgba(170, 170, 170, 1)); box-shadow: inset .1em .1em .5em #aaa, inset -.1em -.1em .5em #aaa; }
Java
<!-- begin:navbar --> <div class="maintainEvent"> <nav id="top" class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle...
Java
.timbr_highlight { border-radius: 4px 4px 4px 4px; -moz-border-radius: 4px 4px 4px 4px; -webkit-border-radius: 4px 4px 4px 4px; } .timbr_border1 { border: 3px dashed #ff0000; } .timbr_border2 { border: 3px dashed #ff0099; } .timbr_border3 { border: 3px dashed #a900b8; } .timbr_border4 { border: 3px dashed #...
Java
var fixDate = function(date) { return date.Format('2006-01-02 15:04:05'); }; var entries = executeCommand('getEntries', {}); dbotCommands = []; userCommands = []; for (var i = 0; i < entries.length; i++) { if (typeof entries[i].Contents == 'string' && entries[i].Contents.indexOf('!') === 0 && entries[i].Conte...
Java
public class A extends B { public A() {} }
Java
<?php // AdminBundle:Inquiry:inquiry.html.twig return array ( );
Java
<!doctype html> <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]--> <!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!...
Java
package easyupload.entity; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Lob; @Entity public class FileUpload { public FileUpload(String filename, byte[] file, String mimeType) { this.file = file; this.filename = filename; this.mimeType = mimeType...
Java
# guh Changes ## 2.0.1 - Updated typings to match Typings 1.0 ## 2.0.0 - Renamed from Basis to guh - Rewrite from the ground-up - Moved build system core to `guh-core` package - Switched from LiveReload to BrowserSync - Switched from Ruby Sass to libsass - Now requires Node ^5.0 - More flexible configu...
Java
"""Tests for wheel binary packages and .dist-info.""" import os import pytest from mock import patch, Mock from pip._vendor import pkg_resources from pip import pep425tags, wheel from pip.exceptions import InvalidWheelFilename, UnsupportedWheel from pip.utils import unpack_file def test_get_entrypoints(tmpdir): ...
Java
# Camera ```sh user@server:~$ nano ~/.homeassistant/configuration.yaml ``` ``` camera: - platform: generic name: HikvisionCamImage still_image_url: http://10.0.74.78/Streaming/channels/1/picture username: admin password: 12345 - platform: generic name: DlinkImage still_image_url: http://ad...
Java
<?php /* * This file is part of the PHPExifTool package. * * (c) Alchemy <support@alchemy.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\MIEGeo; use JMS\Serializer\Annotation\ExclusionPolicy...
Java
'use strict'; var canUseDOM = require('./canUseDOM'); var one = function() { }; var on = function() { }; var off = function() { }; if (canUseDOM) { var bind = window.addEventListener ? 'addEventListener' : 'attachEvent'; var unbind = window.removeEventListener ? 'removeEventListener' : 'detachEvent'; var prefix...
Java
'use strict'; describe('angular', function() { var element; afterEach(function(){ dealoc(element); }); describe('case', function() { it('should change case', function() { expect(lowercase('ABC90')).toEqual('abc90'); expect(manualLowercase('ABC90')).toEqual('abc90'); expect(uppercase...
Java
<!-- @license Copyright (c) 2016 The Jviz Project Authors. All rights reserved. The Jviz Project is under the MIT License. See https://github.com/jviz/jviz/blob/dev/LICENSE --> <!-- Import components --> <link rel="import" href="../../../polymer/polymer.html"> <link rel="import" href="../../../jviz-styles/jviz-styles....
Java
/** * \file * * \brief Autogenerated API include file for the Atmel Software Framework (ASF) * * Copyright (c) 2012 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided t...
Java
package corehttp // TODO: move to IPNS const WebUIPath = "/ipfs/QmXc9raDM1M5G5fpBnVyQ71vR4gbnskwnB9iMEzBuLgvoZ" // this is a list of all past webUI paths. var WebUIPaths = []string{ WebUIPath, "/ipfs/QmenEBWcAk3tN94fSKpKFtUMwty1qNwSYw3DMDFV6cPBXA", "/ipfs/QmUnXcWZC5Ve21gUseouJsH5mLAyz5JPp8aHsg8qVUUK8e", "/ipfs/Qm...
Java
<?php /* SonataAdminBundle:CRUD:base_acl_macro.html.twig */ class __TwigTemplate_f7bb38229ed8df4e133506255cce57f53a109aac1f79d839de0cea8756a1aaf0 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->block...
Java
class X where foo :: Int -- | Y -- Y is something -- nice. class Y where bar :: Int
Java
/** * Logger configuration * * Configure the log level for your app, as well as the transport * (Underneath the covers, Sails uses Winston for logging, which * allows for some pretty neat custom transports/adapters for log messages) * * For more information on the Sails logger, check out: * http://sailsjs.org/#...
Java
/***************************************************************************** * This file is part of the Prolog Development Tool (PDT) * * Author: Lukas Degener (among others) * WWW: http://sewiki.iai.uni-bonn.de/research/pdt/start * Mail: pdt@lists.iai.uni-bonn.de * Copyright (C): 2004-2012, CS Dept. III, Univ...
Java
// // Created by eran on 01/04/2015. // #include <unordered_set> #include "fakeit/Invocation.hpp" namespace fakeit { struct ActualInvocationsContainer { virtual void clear() = 0; virtual ~ActualInvocationsContainer() NO_THROWS { } }; struct ActualInvocationsSource { virtual void getActualInvocati...
Java
#!/usr/bin/python # Copyright 2014 Steven Watanabe # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt) # Test the handling of toolset.add-requirements import BoostBuild t = BoostBuild.Tester(pass_toolset=0, ignore_toolset_requi...
Java
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width" /> <link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" /> <title>Cel...
Java
/* Copyright (c) 2018 lib4j * * 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, distrib...
Java
<!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 (1.8.0_66-internal) on Tue Dec 08 09:28:01 GMT 2015 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Class org.a...
Java
#include "src/OgreExternalTextureSourceManager.cpp" #include "src/OgreFileSystem.cpp" #include "src/OgreFont.cpp" #include "src/OgreFontManager.cpp" #include "src/OgreFrustum.cpp" #include "src/OgreGpuProgram.cpp" #include "src/OgreGpuProgramManager.cpp" #include "src/OgreGpuProgramParams.cpp" #include "src/OgreGpuProg...
Java
<?php /* * This file is part of the symfony package. * (c) Fabien Potencier <fabien.potencier@symfony-project.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * sfWebDebugPanelPropel adds a panel to the web...
Java
# frozen_string_literal: true require_relative 'helper' describe 'Digest class' do it 'raises error with invalid digest_class' do assert_raises ArgumentError do Dalli::Client.new('foo', { expires_in: 10, digest_class: Object }) end end end
Java
using UnityEngine; using System.Collections; using System.Runtime.Serialization; namespace StrumpyShaderEditor { [DataContract(Namespace = "http://strumpy.net/ShaderEditor/")] public abstract class ChannelReference { [DataMember] private string nodeIdentifier; [DataMember] private uint channelId; public Cha...
Java
var partialsTemp = [ "login", "profile" ]; exports.partialRender = function (req, res) { var pageIndex = req.params[0]; if (partialsTemp.indexOf("" + pageIndex) > -1) { res.render("partials/" + pageIndex, {}); } else { res.render("common/404", {}); } };
Java
/* * The MIT License * * Copyright 2015 Eduardo Weiland. * * 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,...
Java
/** * Uploader implementation - with the Connection object in ExtJS 4 * */ Ext.define('MyApp.ux.panel.upload.uploader.ExtJsUploader', { extend : 'MyApp.ux.panel.upload.uploader.AbstractXhrUploader', requires : [ 'MyApp.ux.panel.upload.data.Connection' ], config : { /** * @cfg {String} [method='PUT'] * ...
Java
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using NSubstitute; using Nancy; using Nancy.Routing; using PactNet.Logging; using PactNet.Mocks.MockHttpService; using PactNet.Mocks.MockHttpService.Nancy; using Xunit; namespace PactNet.Tests.Mock...
Java
class Revista<ReferenciaBase attr_reader :m_nombre_revista, :m_volumen, :m_paginas def initialize(a_autores,a_titulo,a_anio,a_nombre_revista, a_volumen, a_paginas) super(a_autores,a_titulo,a_anio) @m_nombre_revista,@m_volumen, @m_paginas = a_nombre_revista, a_volumen, a_paginas end end
Java
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
Java
var jazz = require("../lib/jazz"); var fs = require("fs"); var data = fs.readFileSync(__dirname + "/foreach_object.jazz", "utf8"); var template = jazz.compile(data); template.eval({"doc": { "title": "First", "content": "Some content" }}, function(data) { console.log(data); });
Java
/********************************************************************** map_GoogleV2.js $Comment: provides JavaScript for Google Api V2 calls $Source :map_GoogleV2.js,v $ $InitialAuthor: guenter richter $ $InitialDate: 2011/01/03 $ $Author: guenter richter $ $Id:map_GoogleV2.js 1 2011-01-03 10:30:35Z Guenter...
Java
import InputValidator from "../../common/js/InputValidator.js"; import ObjectUtilities from "../../common/js/ObjectUtilities.js"; import Action from "./Action.js"; import DefaultFilters from "./DefaultFilters.js"; import InitialState from "./InitialState.js"; var Reducer = {}; Reducer.root = function(state, action) {...
Java
{% extends 'layout.html' %} {% block heading %}Coming soon{% endblock %} {% block body %} {{ message }} {% endblock %} {% block footer_nav %} <li> <a href="{{ root }}">Back home</a> </li> {% endblock %}
Java
package com.github.mlk.queue.codex; import com.github.mlk.queue.Queuify; import com.github.mlk.queue.implementation.Module; public class Utf8StringModule implements Module { public static Utf8StringModule utfStrings() { return new Utf8StringModule(); } @Override public void bind(Queuify.Build...
Java
ig.module( 'plusplus.config-user' ) .defines(function() { /** * User configuration of Impact++. * <span class="alert alert-info"><strong>Tip:</strong> it is recommended to modify this configuration file!</span> * @example * // in order to add your own custom configur...
Java
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Brian Westrich, Jean-Baptiste Quenot, id:cactusman * 2015 Kanstantsin Shautsou * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentat...
Java
/* * The MIT License * * Copyright 2019 Karus Labs. * * 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, modi...
Java
<html dir="LTR"> <head> <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" /> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" /> <title>DebugAppender Constructor ()</title> <xml> </xml> <link rel="stylesheet" type="text/css" href="MSD...
Java
--- title: Jesus är grunden för vårt vittnesbörd date: 06/09/2020 --- Som kristna har vi alla en personlig berättelse att återge, en berättelse om hur Jesus förvandlat vårt liv och vad han gjort för oss. **Läs Ef. 2:1–10. Hurdana var vi innan vi lärde känna Kristus? Vad äger vi sedan vi har tagit emot honom?** `A....
Java
<?php /* * This file is part of the Omnipay package. * * (c) Adrian Macneil <adrian@adrianmacneil.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Omnipay\Common\Message; use Mockery as m; use Omnipay\TestCase; cl...
Java
# encoding: utf-8 require 'spec_helper' describe Github::Authorization do let(:client_id) { '234jl23j4l23j4l' } let(:client_secret) { 'asasd79sdf9a7asfd7sfd97s' } let(:code) { 'c9798sdf97df98ds'} let(:site) { 'http://github-ent.example.com/' } let(:options) { {:site => site} } subject(:github) { Github.n...
Java
require File.expand_path('../spec_helper', __FILE__) module Danger describe DangerProse do it 'is a plugin' do expect(Danger::DangerProse < Danger::Plugin).to be_truthy end describe 'with Dangerfile' do before do @dangerfile = testing_dangerfile @prose = testing_dangerfile.pr...
Java
'use strict' const path = require('path') const hbs = require('express-hbs') module.exports = function (app, express) { hbs.registerHelper('asset', require('./helpers/asset')) app.engine('hbs', hbs.express4({ partialsDir: path.resolve('app/client/views/partials'), layoutsDir: path.resolve('app/client/vie...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>LCOV - result.info - c++/7.1.0/bits/stl_pair.h - functions</title> <link rel="stylesheet" type="text/css" href="../../../gcov.css"> </head> <body> ...
Java
///////////////////////////////////////////////////////////////////////////// // Name: wx/msw/notebook.h // Purpose: MSW/GTK compatible notebook (a.k.a. property sheet) // Author: Robert Roebling // Modified by: Vadim Zeitlin for Windows version // RCS-ID: $Id$ // Copyright: (c) Julian Smar...
Java
// Polyfills if ( Number.EPSILON === undefined ) { Number.EPSILON = Math.pow( 2, - 52 ); } if ( Number.isInteger === undefined ) { // Missing in IE // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger Number.isInteger = function ( value ) { return typeof valu...
Java
<?php /* * This file is part of the PHPExifTool package. * * (c) Alchemy <support@alchemy.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\FlashPix; use JMS\Serializer\Annotation\ExclusionPoli...
Java
import supertest from 'supertest'; import { publicChannelName, privateChannelName } from './channel.js'; import { roleNameUsers, roleNameSubscriptions, roleScopeUsers, roleScopeSubscriptions, roleDescription } from './role.js'; import { username, email, adminUsername, adminPassword } from './user.js'; export const re...
Java
<?php defined('BX_DOL') or die('hack attempt'); /** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup UnaStudio UNA Studio * @{ */ define("BX_DOL_STUDIO_INSTALLER_SUCCESS", 0); define("BX_DOL_STUDIO_INSTALLER_FAILED", 1); /** * Base class for Install...
Java
<?php namespace Illuminate\Database\Eloquent; use Exception; use ArrayAccess; use JsonSerializable; use Illuminate\Support\Arr; use Illuminate\Support\Str; use Illuminate\Contracts\Support\Jsonable; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Routing\UrlRoutable; use Illuminate\Contracts\Queu...
Java
using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using ECommon.Components; using ECommon.Scheduling; using ECommon.Socketing; using EQueue.Protocols; namespace EQueue.Broker.Client { public class ConsumerManager { private readonly ConcurrentDictionary<string, C...
Java
<?php namespace Phrest\Skeleton\v1\Requests\Users; use Phrest\SDK\Request\AbstractRequest; use Phrest\SDK\Request\RequestOptions; use Phrest\SDK\PhrestSDK; class CreateUserRequest extends AbstractRequest { /** * @var string */ private $path = '/v1/users/'; /** * @var string */ public $name = nu...
Java
'use strict'; // https://github.com/betsol/gulp-require-tasks // Require the module. const gulpRequireTasks = require('gulp-require-tasks'); const gulp = require('gulp'); const env = require('../index'); // Call it when necessary. gulpRequireTasks({ // Pass any options to it. Please see below. path: env.inConfigs...
Java
// Uncomment the following to provide samples for PageResult<T>. Must also add the Microsoft.AspNet.WebApi.OData // package to your project. ////#define Handle_PageResultOfT using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using ...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CacheCow.Server.EntityTagStore.SqlServer { internal class ColumnNames { public static string CacheKeyHash = "CacheKeyHash"; public static string RoutePattern = "RoutePattern"; public static string Res...
Java