code
stringlengths
4
1.01M
language
stringclasses
2 values
// Copyright 2012 tsuru 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 provisiontest import ( "fmt" "io" "io/ioutil" "net/url" "sort" "sync" "sync/atomic" "time" docker "github.com/fsouza/go-dockerclient" "github...
Java
/****************************************************************************** * * Copyright(c) 2009-2012 Realtek Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundati...
Java
var request = require('request'), log = require('bole')('npme-send-data'), config = require('../../../config') module.exports = function (formGuid, data, callback) { var hubspot = config.license.hubspot.forms .replace(":portal_id", config.license.hubspot.portal_id) .replace(":form_guid", formGuid...
Java
module.exports = { env: { mocha: true }, plugins: [ 'mocha' ] };
Java
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-orphans #-} -- | Converting 'MC' programs to 'MCMem'. module Futhark.Pass.ExplicitAllocations.MC (explicitAllocations) where import Futhark.IR.MC import Futhark.IR.MCMem import Futhark.Pass.Exp...
Java
/******************************************************************************* * * Module Name: rscalc - Calculate stream and list lengths * ******************************************************************************/ /* * Copyright (C) 2000 - 2016, Intel Corp. * All rights reserved. * * Redistribution an...
Java
/* eslint-disable flowtype/require-parameter-type, flowtype/require-return-type, no-magic-numbers */ import {test} from "tap" import {spy} from "sinon" import aside from "./" test(({equal, end}) => { const unction = spy(() => "b") equal(aside([unction])("a"), "a") end() }) test(({ok, end}) => { const uncti...
Java
/*- * Copyright (c) 1999 M. Warner Losh <imp@village.org> * 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. Redistributions of source code must retain the above copyright * notice...
Java
/* Copyright (C) 2004 Michael J. Silbersack. 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. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
Java
/* * The Yices SMT Solver. Copyright 2014 SRI International. * * This program may only be used subject to the noncommercial end user * license agreement which is downloadable along with this program. */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <inttypes.h> #include "utils/int_stack.h" ...
Java
/* * Copyright (c) 2006, 2007 ThoughtWorks, Inc. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTH...
Java
/*- * Copyright (c) 2010, 2012 Konstantin Belousov <kib@FreeBSD.org> * Copyright (c) 2015 The FreeBSD Foundation * All rights reserved. * * Portions of this software were developed by Konstantin Belousov * under sponsorship from the FreeBSD Foundation. * * Redistribution and use in source and binary forms, with...
Java
# $FreeBSD$ SUBDIR= libasn1 libgssapi_krb5 libgssapi_ntlm libgssapi_spnego libhdb \ libheimntlm libhx509 libkadm5clnt libkadm5srv libkrb5 \ libroken libsl libvers libkdc libwind libheimbase libheimipcc libheimipcs SUBDIR+= libkafs5 # requires krb_err.h from libkrb5 SUBDIR_DEPEND_libkafs5= libkrb5 .include <bsd.s...
Java
TARGETS = cpcond tagintr EXTRA_OBJS = ../dmatags.o ../dmasend.o EE_LIBS = -lg -ldma COMMON_DIR=../../../common include $(COMMON_DIR)/common-ee.mk
Java
var doNothing = function () {} /** * The `Base` log defines methods that transports will share. */ var Base = module.exports = function (config, defaults) { var cedar = require('../../cedar') // A log is a shorthand for `log.log`, among other things. var log = function () { log.log.apply(log, arguments)...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GAPPSF.OKAPI { public class SiteInfoNetherlands: SiteInfo { public const string STR_INFO = "opencaching.nl"; public SiteInfoNetherlands() { ID = "2"; Info = STR_INFO...
Java
import Omni = require('../../lib/omni-sharp-server/omni'); import {Observable, CompositeDisposable} from "rx"; import {setupFeature, restoreBuffers, openEditor} from "../test-helpers"; describe('Run Tests', () => { setupFeature(['features/run-tests']); it('adds commands', () => { var disposable = new ...
Java
*{ margin: 0px; padding: 0px; } #introduce{ width: 1000px; height: 680px; background-color: #f4f4f4; margin: auto; } h1{ font-size: 2em; text-align: center; } li{ list-style: none; font-size: 1em; } #pic1{ margin-left: 60px; float: left; width: 361px; height: 237px; } #pic2{ margin-left: 300px; flo...
Java
// using System; if (double.TryParse(aaa, out var bbb)) { // ... } //
Java
{{- define "main" -}} <h1>{{ .Title | markdownify }}</h1> <p> <small class="text-secondary"> {{ $customDateFormat := "January 2, 2006" }} {{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }} {{ .PublishDate.Format $customDateFormat }}{{ if gt .Lastmod .PublishDate }}, updated {{ .Lastmo...
Java
using System; using System.Collections.Generic; using KellermanSoftware.CompareNetObjects; using KellermanSoftware.CompareNetObjects.TypeComparers; using ProtoBuf; namespace Abc.Zebus.Testing.Comparison { internal static class ComparisonExtensions { public static bool DeepCompare<T>(this T firstObj, T...
Java
// Generated on 12/11/2014 19:01:22 using System; using System.Collections.Generic; using System.Linq; using BlueSheep.Common.Protocol.Types; using BlueSheep.Common.IO; using BlueSheep.Engine.Types; namespace BlueSheep.Common.Protocol.Messages { public class SequenceNumberMessage : Message { ...
Java
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Unittest extends CI_Controller { function __construct() { parent::__construct (); $this->load->model('UnitTest_model'); $this->load->library('unit_test'); } function index(){ echo "test"; } function debate(){ $...
Java
# modern-django Modern Django: A Guide on How to Deploy Django-based Web Applications in 2017
Java
#include <iostream> using namespace std; #include <omp.h> #define SIZE 8 int main(void){ int x[SIZE]; int sum=0; for(int i=0;i<SIZE;i++){ x[i]=i; } #pragma omp parallel for reduction (+:sum) for(int i=0;i<SIZE;i++){ sum+=x[i]; } cout<<sum<<std::endl; return 0; }
Java
- 只验证值,不关心这个值从哪里来 - 验证成功返回`undefined`,验证失败返回提示信息 - 验证又分:输入时验证,提交时验证 - 验证失败处理:提示,获得焦点 - 验证失败提示:提示时机,提示方式
Java
from .image import Image from .product_category import ProductCategory from .supplier import Supplier, PaymentMethod from .product import Product from .product import ProductImage from .enum_values import EnumValues from .related_values import RelatedValues from .customer import Customer from .expense import Expense fr...
Java
import type {ResponseType} from "./base.type"; function parseJSON(response: ResponseType): Object { return response.json(); } export {parseJSON};
Java
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
Java
var request = require('request'), mongoose = require('mongoose'), util = require('util'), url = require('url'), helpers = require('./helpers'), sync = require('./sync') // turn off request pooling request.defaults({ agent:false }) // cache elasticsearch url options for elmongo.search() to use var ...
Java
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>local::basic_endpoint::operator!=</title> <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="../../../boos...
Java
/** * Copyright 2015 Telerik AD * * 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 ...
Java
#!/bin/bash export LDFLAGS="-lstdc++fs" mkdir -p $PREFIX/lib ./configure --prefix $PREFIX make make install
Java
using System; using System.Collections.Generic; using System.Text; using FlatRedBall; using FlatRedBall.Gui; using FlatRedBall.AI.Pathfinding; #if FRB_MDX using Color = System.Drawing.Color; #else using Color = Microsoft.Xna.Framework.Graphics.Color; #endif using CameraPropertyGrid = EditorObjects.Gui.CameraPropert...
Java
// flow-typed signature: 573c576fe34eb3c3c65dd7a9c90a46d2 // flow-typed version: b43dff3e0e/http-errors_v1.x.x/flow_>=v0.25.x declare module 'http-errors' { declare class SpecialHttpError extends HttpError { constructor(): SpecialHttpError; } declare class HttpError extends Error { expose: bool; mess...
Java
--- layout: nav_menu_item title: Sales/Billing Document Integration date: 2016-03-07 06:18 author: jeremy.buller comments: true categories: [AvaTax 16 Certification navigation] ---
Java
/*! * Start Bootstrap - New Age v3.3.7 (http://startbootstrap.com/template-overviews/new-age) * Copyright 2013-2016 Start Bootstrap * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE) */ .heading-font { font-family: 'Catamaran', 'Helvetica', 'Arial', 'sans-serif'; fon...
Java
using System; namespace Microsoft.eShopOnContainers.Services.Catalog.API.Model { public class CatalogItem { public int Id { get; set; } public string Name { get; set; } public string Description { get; set; } public decimal Price { get; set; } public string PictureU...
Java
<?xml version="1.0" encoding="iso-8859-1"?> <!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" xml:lang="en" lang="en"> <head> <title>Class: Gem::Package::TarReader::UnexpectedEOF</titl...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Source: flags.js</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></scr...
Java
require 'cgi' require 'nkf' class Mechanize::Util # default mime type data for Page::Image#mime_type. # You can use another Apache-compatible mimetab. # mimetab = WEBrick::HTTPUtils.load_mime_types('/etc/mime.types') # Mechanize::Util::DefaultMimeTypes.replace(mimetab) DefaultMimeTypes = WEBrick::HTTPUti...
Java
require 'english/class' class English # = Noun Number Inflections # # This module provides english singular <-> plural noun inflections. module Inflect @singular_of = {} @plural_of = {} @singular_rules = [] @plural_rules = [] # This class provides the DSL for creating inflections, you c...
Java
#ifndef MOAISPINEANIMATIONMIXTABLE_H #define MOAISPINEANIMATIONMIXTABLE_H #include <moai-core/headers.h> //----------------------------------------------------------------// class MOAISpineAnimationMixEntry { public: STLString mSrc; STLString mTarget; // STLString mOverlay; float mDuration; float mDelay; ...
Java
var PixiText = require('../../lib/pixi/src/core/text/Text'), utils = require('../core/utils'), math = require('../../lib/pixi/src/core/math'), Sprite = require('../display/Sprite'), CONST = require('../core/const'); function Text(text, style, resolution){ this._init(text, style, resolution); } Tex...
Java
/** * A wrapper around JSLint to drop things into the console * * Copyright (C) 2011 Nikolay Nemshilov */ var RightJS = require('./right-server.js'); var JSLint = require('./jslint').JSLINT; var fs = require('fs'); exports.Linter = new RightJS.Class({ extend: { Options: { debug: false, // no d...
Java
# coding=utf-8 import pygame import pygame.locals class Board(object): """ Plansza do gry. Odpowiada za rysowanie okna gry. """ def __init__(self, width, height): """ Konstruktor planszy do gry. Przygotowuje okienko gry. :param width: szerokość w pikselach ...
Java
using System.Linq.Expressions; using System.Collections.Generic; namespace Bermuda.ExpressionGeneration { public partial class ValueExpression : ExpressionTreeBase { public long Value { get; private set; } public ValueExpression(long value) { Value = value; ...
Java
// String literal types are only valid in overload signatures function foo(x: any); function foo(x: 'hi') { } class C { foo(x: string); foo(x: 'hi') { } } interface I { (x: 'a'); (x: 'hi'); foo(x: 'a', y: 'a'); foo(x: 'hi', y: 'hi'); } var a: { (x: 'hi'); (x: 'a'); foo(x: 'hi'); ...
Java
<?php namespace PhraseanetSDK\Tests\Cache; use PhraseanetSDK\Cache\BackendCacheFactory; use PhraseanetSDK\Exception\RuntimeException; class BackendCacheFactoryTest extends \PHPUnit_Framework_TestCase { /** * @dataProvider provideValidParameters */ public function testCreateSuccess($type, $host, $po...
Java
""" File-based Checkpoints implementations. """ import os import shutil from tornado.web import HTTPError from .checkpoints import ( Checkpoints, GenericCheckpointsMixin, ) from .fileio import FileManagerMixin from IPython.utils import tz from IPython.utils.path import ensure_dir_exists from IPython.utils.py...
Java
import React, { PropTypes } from 'react' import ActionDelete from 'material-ui/svg-icons/action/delete' import { colors } from '/styles' import moduleStyles from '/styles/fileTree' const RemoveBtn = ({ onClick }) => ( <ActionDelete onClick={onClick} style={moduleStyles.listIcon.base} ...
Java
// Source : https://leetcode.com/problems/longest-substring-without-repeating-characters/ // Author : codeyu // Date : 2016-09-20 /********************************************************************************** * * Given a string, find the length of the longest substring without repeating characters. * * Examp...
Java
using System.Collections.ObjectModel; namespace SimpleBackgroundUploadWebAPI.Areas.HelpPage.ModelDescriptions { public class ComplexTypeModelDescription : ModelDescription { public ComplexTypeModelDescription() { Properties = new Collection<ParameterDescription>(); } ...
Java
<!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...
Java
#require File.dirname(__FILE__) + '/formats/email' module DataMapper module Validate ## # # @author Guy van den Berg # @since 0.9 class CustomValidator < GenericValidator def initialize(field_name, options = {}, &b) #super(field_name, options) #@field_name, @options = fie...
Java
lib: node_modules $(shell find src) rm -rf lib node_modules/.bin/coffee --output lib --compile src test: node_modules node_modules/.bin/mocha test/suite coverage: node_modules node_modules/.bin/mocha --require test/coverage test/suite node_modules/.bin/istanbul report lint: node_modules node_modules/.bin/coffe...
Java
## Django 示例
Java
#!/usr/bin/ruby require "fileutils" require 'json' require_relative "BibleReader.rb" reader = BibleReader.new translation_names = ['개역개정', '새번역', 'NIV']#BibleInfo.translation_name_to_code.keys translation_names.each do |translation_name| translation_code = BibleInfo.translation_name_to_code[translation_name] Bibl...
Java
<?php /** * TOP API: taobao.hotel.order.face.deal request * * @author auto create * @since 1.0, 2013-09-13 16:51:03 */ class Taobao_Request_HotelOrderFaceDealRequest { /** * 酒店订单oid **/ private $oid; /** * 操作类型,1:确认预订,2:取消订单 **/ private $operType; /** * 取消订单时的取消原因备注信息 **/ private $reasonText;...
Java
import { Observable } from './observable' export default function drop(count, source) { return Observable(add => { let dropped = 0 return source.subscribe((val, name) => { if (dropped++ >= count) add(val, name) }) }) }
Java
package schoolprojects; import java.util.Random; import java.util.Scanner; /** * Piedra, papel o tijera es un juego infantil. * Un juego de manos en el cual existen tres elementos. * La piedra que vence a la tijera rompiéndola; la tijera que vencen al papel cortándolo; * y el papel que vence a la piedra envolv...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="de"> <head> <!-- Generated by javadoc (version 1.7.0_01) on Thu Mar 07 20:40:25 CET 2013 --> <title>Uses of Class com.tyrlib2.graphics.renderables.BoundingBox</title> <meta name="dat...
Java
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying # file Copyright.txt or https://cmake.org/licensing for details. #.rst: # FindZLIB # -------- # # Find the native ZLIB includes and library. # # IMPORTED Targets # ^^^^^^^^^^^^^^^^ # # This module defines :prop_tgt:`IMPORTED` targ...
Java
"""Support for monitoring emoncms feeds.""" from __future__ import annotations from datetime import timedelta from http import HTTPStatus import logging import requests import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA, SensorDeviceClass, SensorEntity, SensorState...
Java
#include "MotionStreakTest.h" #include "../testResource.h" enum { kTagLabel = 1, kTagSprite1 = 2, kTagSprite2 = 3, }; Layer* nextMotionAction(); Layer* backMotionAction(); Layer* restartMotionAction(); static int sceneIdx = -1; static std::function<Layer*()> createFunctions[] = { CL(MotionStreakTest1), CL(M...
Java
<?php /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS B...
Java
.date-menu { background-color: #fcfcfc; height: 59px; border-bottom: 1px solid #eee; } .date-menu-contents { @mixin content-padding; display: flex; justify-content: space-between; align-items: center; height: 59px; } .date-menu-current-date { height: 20px; line-height: 20px; } .date-menu-next, .d...
Java
import React, { Component } from 'react' import { FlexGrid, Content, Container, AdminItemsViewTable, Table, Button } from 'components' import { AddItemAboutContainer, AddItemPhotoContainer, SpecialSetupContainer } from 'containers' import { adminLink } from 'config' import s from './AdminItemsView.sass' c...
Java
version https://git-lfs.github.com/spec/v1 oid sha256:19eb3ffef04271f29432990f05ab086d7741a17b915b1703347b21f79b44cef2 size 2655
Java
package main import ( "reflect" "strconv" "unsafe" "github.com/STNS/STNS/stns" "github.com/STNS/libnss_stns/libstns" ) /* #include <grp.h> #include <sys/types.h> */ import "C" type Group struct { grp *C.struct_group result **C.struct_group } func (s Group) Set(groups stns.Attributes) int { for n, g := r...
Java
const LogTestPlugin = require("../../helpers/LogTestPlugin"); /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", entry: "./index", stats: "normal", plugins: [new LogTestPlugin()] };
Java
using System; using System.Collections.Generic; using System.Text; using Microsoft.Win32; namespace NetOffice.DeveloperToolbox.Utils.Registry { public class UtilsRegistryEntry { #region Fields private UtilsRegistryKey _parent; private string _valueName; ...
Java
import { expect } from 'chai' import browser from '../../src/util/browser' describe('util (node)', () => { describe('browser', () => { it('is false', () => { expect(browser).to.be.false }) }) })
Java
// Seriously awesome GLSL noise functions. (C) Credits and kudos go to // Copyright (C) Stefan Gustavson, Ian McEwan Ashima Arts // MIT License. define(function(require, exports){ exports.permute1 = function(x){ return mod((34.0 * x + 1.0) * x, 289.0) } exports.permute3 = function(x){ return mod((34.0 * x + 1....
Java
#pragma once namespace Game { namespace Light { constexpr unsigned int MAX_POINT_LIGHT_NUM = 384U; constexpr unsigned int MAX_LINE_LIGHT_NUM = 64U; constexpr unsigned int MAX_SPOT_LIGHT_NUM = 16U; } }
Java
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bridge\Doctrine\Tests\Form\ChoiceList; use Symfony...
Java
var $ = require('jquery'); var keymaster = require('keymaster'); var ChartEditor = require('./component-chart-editor.js'); var DbInfo = require('./component-db-info.js'); var AceSqlEditor = require('./component-ace-sql-editor.js'); var DataGrid = require('./component-data-grid.js'); var QueryEditor = function () { ...
Java
package PracticeLeetCode; import java.util.HashSet; import java.util.LinkedList; import java.util.Queue; import java.util.Set; public class _127WordLadder { psvm }
Java
<?php namespace Illuminate\Tests\Integration\Database\EloquentModelLoadMissingTest; use DB; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Schema\Blueprint; use Illuminate\Tests\Integration\Database\DatabaseTestCase; /** * @group integration */ class Eloquent...
Java
import glob import logging import os import subprocess from plugins import BaseAligner from yapsy.IPlugin import IPlugin from assembly import get_qual_encoding class Bowtie2Aligner(BaseAligner, IPlugin): def run(self): """ Map READS to CONTIGS and return alignment. Set MERGED_PAIR to True ...
Java
namespace EventCloud.Events.Dtos { public class GetEventListInput { public bool IncludeCanceledEvents { get; set; } } }
Java
// # Frontend Route tests // As it stands, these tests depend on the database, and as such are integration tests. // Mocking out the models to not touch the DB would turn these into unit tests, and should probably be done in future, // But then again testing real code, rather than mock code, might be more useful... con...
Java
# wealth-view Single page application for viewing your financial portfolio
Java
require 'mkmf' extension_name = 'fortitude_native_ext' dir_config(extension_name) create_makefile(extension_name)
Java
import { browser, by, element } from 'protractor'; describe('App', () => { beforeEach(() => { // change hash depending on router LocationStrategy browser.get('/#/home'); }); it('should have a title', () => { let subject = browser.getTitle(); let result = 'Chroma An Interactive Palette tool'; ...
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
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Formatting; using System.Web.Http; using Umbraco.Core; using Umbraco.Core.Logging; using Umbraco.Core.Models; u...
Java
#### Scripts ##### SalesforceAskUser - Updated the Docker image to: *demisto/python:2.7.18.24398*.
Java
const BaseStep = require('../step'); const EntryProxy = require('../../entry-proxy'); const analyze = require('../../helpers/analytics/analytics')('gst'); // TODO pull below out to (variation) helper function convertVariationalPath(variations, from, toVariationId) { const toDir = variations.find(variation => varia...
Java
'use strict'; // MODULES // var tape = require( 'tape' ); var pow = require( 'math-power' ); var MAX_INT16 = require( './../lib' ); // TESTS // tape( 'the main export is a number', function test( t ) { t.ok( true, __filename ); t.equal( typeof MAX_INT16, 'number', 'main export is a number' ); t.end(); }); tape...
Java
/*! * iScroll v4.1.8 ~ Copyright (c) 2011 Matteo Spinelli, http://cubiq.org * Released under MIT license, http://cubiq.org/license */ (function(){ var m = Math, vendor = (/webkit/i).test(navigator.appVersion) ? 'webkit' : (/firefox/i).test(navigator.userAgent) ? 'Moz' : 'opera' in window ? 'O' : '', // Brows...
Java
<div class="header"> <i class="fa fa-angle-left" ng-click="previous()"></i> <span>{{month.format("MMMM, YYYY")}}</span> <i class="fa fa-angle-right" ng-click="next()"></i> </div> <div class="week"> <span class="day">Sun</span> <span class="day">Mon</span> <span class="day">Tue</span> <span c...
Java
<?php /** * Part of the Fuel framework. * * @package Fuel * @version 1.6 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2013 Fuel Development Team * @link http://fuelphp.com */ namespace Fuel\Core; /** * The Arr class provides a few nice functions for making ...
Java
<?php /* * Created by tpay.com. * Date: 19.06.2017 * Time: 11:13 */ namespace tpayLibs\src\_class_tpay\Validators\PaymentTypes; use tpayLibs\src\_class_tpay\Validators\PaymentTypesInterface; use tpayLibs\src\Dictionaries\Payments\CardFieldsDictionary; class PaymentTypeCard implements PaymentTypesInterface { ...
Java
package de.hilling.maven.release.testprojects.versioninheritor; public class App { public static void main(String[] args) { System.out.println("1 + 2 = 3"); } }
Java
#pragma once #include <stack> #include <queue> #include <vector> class ExpressionParser { public: ExpressionParser(const std::string &expr); ~ExpressionParser(); double eval(); private: struct token { char c; double d; bool isNum; bool isOp; token() : c(0), isNum(false), isOp(true) {}; };...
Java
from __future__ import unicode_literals import os import os.path import subprocess from pre_commit.util import cmd_output class PrefixedCommandRunner(object): """A PrefixedCommandRunner allows you to run subprocess commands with comand substitution. For instance: PrefixedCommandRunner('/tmp/foo...
Java
pub use self::arp::ArpScheme; pub use self::config::NetConfigScheme; pub use self::ethernet::EthernetScheme; pub use self::icmp::IcmpScheme; pub use self::ip::IpScheme; pub use self::tcp::TcpScheme; pub use self::udp::UdpScheme; pub mod arp; pub mod config; pub mod ethernet; pub mod icmp; pub mod ip; pub mod tcp; pub ...
Java
class Child include Mongoid::Document include Mongoid::Timestamps field :name, type: String belongs_to :parent, optional: true end
Java
using System; using System.Text; using ECommon.Components; using ECommon.Remoting; using ECommon.Serializing; using EQueue.Protocols; using EQueue.Protocols.Brokers; using EQueue.Protocols.Brokers.Requests; using EQueue.Protocols.NameServers.Requests; using EQueue.Utils; namespace EQueue.NameServer.Request...
Java