answer
stringlengths
15
1.25M
package de.hilling.maven.release.testprojects.versioninheritor; public class App { public static void main(String[] args) { System.out.println("1 + 2 = 3"); } }
#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; b...
from __future__ import unicode_literals import os import os.path import subprocess from pre_commit.util import cmd_output class <API key>(object): """A <API key> allows you to run subprocess commands with comand substitution. For instance: <API key>('/tmp/foo').run(['{prefix}foo.sh', 'bar', 'baz']) ...
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.RequestHandlers { ...
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using LCC.ControlesLCCGestion.filtros; namespace LCC.WebGe...
from fabric.decorators import task from refabric.api import run, info from refabric.context_managers import sudo from . import debian __all__ = ['setup'] pip_log_file = '/tmp/pip.log' @task def setup(): """ Install python develop tools """ install() def install(): with sudo(): info('Install ...
#!/bin/sh controllerIP=`grep controller /etc/hosts | awk '{print $1}'` #controllerIP=192.168.122.75 controllerIP=127.0.0.1 echo controllerIP $controllerIP file=/etc/pike/cinder/cinder.conf orig=/etc/pike/cinder/.orig-$(basename $file) jdate=`date "+%Y_%j_%H_%M"` orig=${orig}${jdate} if [ ! -e $orig ] ; then cp -p $fi...
var path = require('path'), fs = require('fs'), Source = require(hexo.lib_dir + '/core/source'), config_dir = path.dirname(hexo.configfile), config = hexo.config; function testver(){ var ver = hexo.env.version.split('.'); var test = true; if (ver[0] < 2) test = false; else if (ver[0] == 2 && ver[1] < 5)...
<?php namespace Alcodo\AsyncCss\Commands; use Alcodo\AsyncCss\Cache\CssKeys; use Illuminate\Console\Command; class Show extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'alcodo:asynccss:show'; /** * The console command ...
#!/usr/bin/env ruby $:.unshift File.expand_path('../../../lib', __FILE__) $stdout.sync = true require 'philotic' require 'awesome_print' class NamedQueueConsumer < Philotic::Consumer # subscribe to an existing named queue subscribe_to :test_queue # use acknowledgements auto_acknowledge # REQUEUE the message w...
# wedding-rsvp A simple concept for RSVPing to a wedding Technologies * Sinatra * ActiveRecord * Postgres * MVC Structure
#include "arrow.h" /** * @brief Arrow::Arrow */ Arrow::Arrow() : Shape(SHAPES::ARROW) { } /** * @brief Arrow::Arrow * @param col Colour of the new object * @param pos Starting point for the new object */ Arrow::Arrow(QColor col, QPoint pos) : Shape(SHAPES::ARROW, col, pos) { } /** * @brief Arrow::draw * Draws t...
const request = require('request-promise'); const oauth = require('./config').auth; const rootUrl = 'https://api.twitter.com/1.1'; let allItems = []; /* API methods */ const API = { /** * Search for tweets * @param options {Object} Options object containing: * - text (Required) : String * - coun...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Extensions { public static class <API key> { public static T Sum<T>(this IEnumerable<T> enumerable) { dynamic sum = 0; foreach (var element in enu...
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="zh"> <head> <!-- Generated by javadoc (version 1.7.0_79) on Fri Sep 09 15:51:56 CST 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>S - </title> <meta name="date" content="2016-09-09"> <link rel="stylesheet" type="text/css" href="...
using System; using System.Collections; using UnityEngine; using VRStandardAssets.Common; using VRStandardAssets.Utils; namespace VRStandardAssets.ShootingGallery { // This script handles a target in the shooter scenes. // It includes what should happen when it is hit and // how long before it despawns. ...
# Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible import __version__ from ansible.errors import AnsibleError from distutils.version import LooseVersion from operator import eq, ge, gt from sys import version_info try: from __main__ im...
//@flow const {foo, Bar, baz, qux} = require('./jsdoc-exports'); const { DefaultedStringEnum, <API key>, NumberEnum, BooleanEnum, SymbolEnum, } = require('./jsdoc-objects'); /** a JSDoc in the same file */ function x() {} ( );
ace.define("ace/mode/tex_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/<API key>"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var lang = require("../lib/lang"); var TextHighlightRules = require("./<API key>").TextHighlightRules; var TexHi...
/** * This code was auto-generated by a Codezu. * * Changes to this file may cause incorrect behavior and will be lost if * the code is regenerated. */ package com.mozu.api.contracts.paymentservice.extensibility.v1; import java.util.List; import java.util.HashMap; import java.io.Serializable; import co...
module Hello module Business module Management class ResetPassword < Base attr_reader :password_credential def initialize(password_credential) @password_credential = password_credential end def update_password(plain_text_password) if @password_credential.u...
// by DotNetNuke Corporation // documentation files (the "Software"), to deal in the Software without restriction, including without limitation // to permit persons to whom the Software is furnished to do so, subject to the following conditions: // of the Software. // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A...
#pragma once namespace Js { #ifdef TARGET_64 // This base class has a 4-byte length field. Change struct pack to 4 on 64bit to avoid 4 padding bytes here. #pragma pack(push, 4) #endif // A base class for all array-like objects types, that can serve as an Object's internal array: // JavascriptArray/ES5Array or T...
(function(){ 'use strict'; angular .module('app') .factory('ceUsers', ceUsers); ceUsers.$inject = ['$resource']; function ceUsers ($resource) { console.log('ok'); return $resource('https://<API key>.herokuapp.com/users/:username', {username: '@username'}, {'update': { method: 'PUT'}}...
<?php ?> <div class="container"> <div class="row"> <div class="col-md-9"> <main id="main" role="main"> <?php Habakiri::the_bread_crumb(); ?> <?php $name = ( is_search() ) ? 'search' : 'archive'; get_template_part( 'content', $name )...
<?php /** * Zend_Exception */ class Zend_Db_Exception extends Zend_Exception { }
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; using Newtonsoft.Json.Linq; using ReactNative.Bridge; using System; using System.Threading; using System.Threading.Tasks; namespace ReactNative.Tests.Bridge { [TestClass] public class ReactInstanceTests { [TestMethod] public async ...
using System; using Machine.Specifications; namespace FactoryGirl.NET.Specs { [Subject(typeof(FactoryGirl))] public class FactoryGirlSpecs : <API key> { [Subject(typeof(FactoryGirl))] public class <API key> { Establish context = () => { }; Because of = () => FactoryGirl.D...
""" A Pygments lexer for Magpie. """ from setuptools import setup __author__ = 'Robert Nystrom' setup( name='Magpie', version='1.0', description=__doc__, author=__author__, packages=['magpie'], entry_points=''' [pygments.lexers] magpielexer = magpie:MagpieLexer ''' )
'use strict'; import gulp from 'gulp'; import gutil from 'gulp-util'; import uglify from 'gulp-uglify'; import stylus from 'gulp-stylus'; import watch from 'gulp-watch'; import plumber from 'gulp-plumber'; import cleanCss from 'gulp-clean-css'; import imagemin from 'gulp-imagemin'; import concat from 'gulp-concat'; imp...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class <API key> extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('<API key>', function(Blueprint $table) { $tab...
<!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"> <meta name="description" content=""> <meta name="author" content=""> <title>PCAP Report</title> <!-- Boo...
require 'shellwords' require 'fileutils' module Hibiki class Downloading CH_NAME = 'hibiki' def initialize @a = Mechanize.new @a.user_agent_alias = 'Windows Chrome' end def download(program) infos = get_infos(program) if infos['episode']['id'] != program.episode_id Rail...
date: 2014-10-23 title: Open Source at Facebook speaker: Patrick Shuff from Facebook type: Meeting Thursday, 2014-10-23 at 7:00pm in Caldwell Labs 120, Patrick Shuff (an engineer at Facebook) will present "Open Source at Facebook". Description follows: Facebook serves requests for over 1.3 billion people every month. ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About buynowcoin</source> <translation type="unfinished"/> </message> <message> <location lin...
require File.dirname(__FILE__) + '/init' class <API key> < Test::Unit::TestCase def setup @controller = TestController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new @request.host = 'example.com' ActionController::UrlWriter.default_url_options[...
"use strict"; var <API key> = require("@babel/runtime/helpers/<API key>"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = <API key>(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime"); var _default = (0, _createSvgIcon.defaul...
import { set } from 'ember-metal'; import { jQuery } from 'ember-views'; import { moduleFor, RenderingTest } from '../../utils/test-case'; import { Component, compile } from '../../utils/helpers'; import { strip } from '../../utils/abstract-test-case'; class AbstractAppendTest extends RenderingTest { constructor() { ...
<html lang="en"> <head> <title>ARM Options - Using as</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="Using as"> <meta name="generator" content="makeinfo 4.11"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="ARM_002dDependent.html#ARM_002dDepende...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using FlatRedBall.Content.Scene; using FlatRedBall; using FlatRedBall.IO; namespace EditorObjects.EditorSettings { public class <API key> { public const string Extension = "aiep"; public CameraSave BoundsCamera...
pub fn compress(src: &str) -> String { if src.is_empty() { src.to_owned() } else { let mut compressed = String::new(); let mut chars = src.chars().peekable(); while let Some(c) = chars.peek().cloned() { let mut counter = 0; while let Some(n) = chars.peek()...
require 'spec_helper' try_spec do require './spec/fixtures/bookmark' describe DataMapper::TypesFixtures::Bookmark do supported_by :all do before :all do DataMapper::TypesFixtures::Bookmark.auto_migrate! end let(:resource) do DataMapper::TypesFixtures::Bookmark.create( ...
namespace WebApiContrib.Formatting.Xlsx.Tests.TestData { public class BooleanTestItem { public bool Value1 { get; set; } [ExcelColumn(TrueValue="Yes", FalseValue="No")] public bool Value2 { get; set; } public bool? Value3 { get; set; } [ExcelColumn(TrueValue = "Yes", Fals...
<?php namespace Sylius\Bundle\ApiBundle\DependencyInjection; use Sylius\Bundle\ApiBundle\Form\Type\ClientType; use Sylius\Bundle\ApiBundle\Model\AccessToken; use Sylius\Bundle\ApiBundle\Model\<API key>; use Sylius\Bundle\ApiBundle\Model\AuthCode; use Sylius\Bundle\ApiBundle\Model\AuthCodeInterface; use Sylius\Bundle\Ap...
<!DOCTYPE html> <html lang="en"> <head> <title>Bad Request</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> html, body { width: 100%; height: 100%; } body { ...
using System.Collections.Generic; using System; using UnityEngine; public class EventService { public delegate void EventDelegate<T>(T e) where T : GameEvent; Dictionary<Type, Delegate> delegates = new Dictionary<Type, Delegate>(); public void AddListener<T>(EventDelegate<T> listener) where T : GameEvent { ...
import { Type } from '@ephox/katamari'; // some elements, such as mathml, don't have style attributes // others, such as angular elements, have style attributes that aren't a CSSStyleDeclaration const isSupported = (dom: Node): dom is HTMLStyleElement => // <API key> @typescript-eslint/unbound-method (dom as HTMLSt...
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_66-internal) on Tue Dec 08 09:26:31 GMT 2015 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Class org.apache.jena.vocabulary.TestManifest (Apache Jena)</title> <meta name="date" con...
<?php namespace Backend\Modules\MediaLibrary\Actions; use Backend\Core\Language\Language; use Backend\Modules\MediaLibrary\Domain\MediaFolder\MediaFolder; use Backend\Modules\MediaLibrary\Domain\MediaGroup\MediaGroupType; use Backend\Modules\MediaLibrary\Domain\MediaItem\<API key>; use Backend\Modules\MediaLibrary\Doma...
import HomeRoute from 'routes/Home'; describe('(Route) Home', () => { let _component; beforeEach(() => { _component = HomeRoute.component(); }); it('Should return a route configuration object', () => { expect(typeof HomeRoute).to.equal('object'); }); it('Should define a route com...
using GE.WebUI.ViewModels.Abstracts; using SX.WebCore.MvcControllers; namespace GE.WebUI.Controllers { public sealed class RssController : SxRssController<VMMaterial> { } }
<!DOCTYPE html PUBLIC "- <html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.9.1"/> <title>MagicMirror: Member List</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> ...
#ifndef __TYPES_H__ #define __TYPES_H__ typedef unsigned char byte; typedef signed long int intsize; typedef signed char int8; typedef signed short int16; typedef signed int int32; typedef signed long int int64; typedef unsigned long int uintsize; typedef unsigned char uint8; typedef unsigned short uint16; typedef unsi...
import 'docs/src/modules/components/bootstrap'; import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './input.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default Page;
<script type="text/stache"> <input value:to="H1" value:from="H2" value:bind="H3" on:value="H4" value:to="H1" value:from="H2" value:bind="H3" on:value="H4"> </script> <script src="../foo/bar/steal/steal.js"> Component.extend({ tag: 'my-tag', template: stache( '<input value:to="H1" value:from="H2" v...
package uk.org.fyodor.generators; import com.google.common.collect.HashMultiset; import com.google.common.collect.Multiset; import org.junit.Test; import uk.org.fyodor.BaseTest; public class <API key> extends BaseTest { Multiset<Boolean> results = HashMultiset.create(); @Test public void percentageChances()...
var searchData= [ ['clear',['clear',['../d8/d84/a00001.html#<API key>',1,'ArrayBase']]] ];
// <API key>.h // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // all copi...
h1 { font-family: 'Noto Sans', sans-serif; font-size: 30px; margin: 5px 0px 5px 0px; color: #444444; } h4 { font-family: 'Noto Sans', sans-serif; color: #444444; font-size: 16px; padding-top: 0; margin-top: 0; } .header { margin-top: 10px; margin-bottom: 30px; } .ursar-logo {...
<!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta name="robots" content="noindex, nofollow"/> <script src="../internal.js"></script> <link rel="stylesheet" href="scrawl.css"> </head> <body> <div class="main" id="J_wrap"> <div...
/* * @require ../../bower_components/html5-boilerplate/dist/css/normalize.css * @require ../../bower_components/html5-boilerplate/dist/css/main.css * @require ../../bower_components/bootstrap/dist/css/bootstrap.css * @require ../iconfont/iconfont.css * */ .y-text-red { color: #f25050; } .y-color-red { col...
If you are reporting bug/issue, please provide detailed Repro instructions. ## Repro Steps 1. 2. ## Actual Behavior ## Expected Behavior ## Version Info SDK Version (version of https: .NET Core Version (TargetFramework in your .csproj file) : How Application was onboarded with SDK(Installed Nugets/VisualStudio/Azure W...
// All ZZZ Projects products: Entity Framework Extensions / Bulk Operations / Extension Methods /Icon Library public static partial class Extensions { <summary> A string extension method that get the string between the two specified string. </summary> <param name="this">The @this to act on.</param> ...
using System; using System.Threading.Tasks; using Orleans; using Tester.CodeGenTests; using TestExtensions; using UnitTests.GrainInterfaces; using Xunit; namespace DefaultCluster.Tests.General { [TestCategory("CodeGen")] public class <API key> : <API key> { <summary> Tests that compile-time ...
#include "macros.h" #include "thread.h" using namespace std; ndb_thread::~ndb_thread() { } void ndb_thread::start() { thd_ = std::move(thread(&ndb_thread::run, this)); if (daemon_) thd_.detach(); } void ndb_thread::join() { ALWAYS_ASSERT(!daemon_); thd_.join(); } // can be overloaded by subclasses void ndb_...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <base data-ice="baseUrl" href="../../../../"> <title data-ice="title">src/middle_level/shaders/<API key>.js | glboost</title> <link type="text/css" rel="stylesheet" href="css/style.css"> <link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css...
/*jslint node: true, vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 2, maxerr: 50*/ /*global define, $, brackets, Mustache, window, appshell*/ define(function (require, exports, module) { "use strict"; // HEADER >> var NodeConnection = brackets.getModule("utils/NodeC...
{% load crispy_forms_tags %} <div class="auth-wrapper signup-wrapper"> <form role="form" method="post" action="{% url 'create_user' %}"> {% csrf_token %} <h2>Sign Up</h2> {{form | crispy }} <div class="extra-errors"></div> <button type="submit" class="btn btn-primary" data-di...
'output dimensionalities for each column' import csv import sys import re import math from collections import defaultdict def get_words( text ): text = text.replace( "'", "" ) text = re.sub( r'\W+', ' ', text ) text = text.lower() text = text.split() words = [] for w in text: if w in wor...
#include <seqan/sequence.h> #include <seqan/basic.h> #include <seqan/find_motif.h> #include <seqan/file.h> #include <iostream> using namespace seqan; template<typename TString>//String<char> void countOneMers(TString const& str){ Iterator<TString>::Type StringIterator = begin(str); Iterator<TString>::Type EndIt...
/* Default MDL font size */ .wj-control, .wj-control input { font-size: 16px; } /* Extra padding in grids and listboxes */ .wj-flexgrid .wj-cell { padding: 6px; } .wj-listbox-item { padding: 6px 10px; } /* Backgrounds */ .wj-content, div[wj-part='cells'] { background: #ffffff; color: #212121; } .wj-content .w...
package dbfiles import ( "encoding/csv" "io" "github.com/juju/errgo" ) type Driver interface { Extention() string Write(io.Writer, []string) error Read(io.Reader) ([][]string, error) } type CSV struct{} func (driver CSV) Extention() string { return "csv" } func (driver CSV) Write(writer io.W...
const ASSETS_MODS_LENGTH = 13;//'/assets/mods/'.length; const CONTENT_TYPES = { 'css': 'text/css', 'js': 'text/javascript', 'json': 'application/json', 'png': 'image/png', 'jpg': 'image/jpeg', 'jpeg': 'image/jpeg', 'html': 'text/html', 'htm': 'text/html' }; /** * @type {Map<string, JSZ...
# This code was generated by # | (_)\/(_)(_|\/| |(/_ v1.0.0 # <API key>: true require 'spec_helper.rb' describe 'ExportConfiguration' do it "can fetch" do @holodeck.mock(Twilio::Response.new(500, '')) expect { @client.bulkexports.v1.<API key>('resource_type').fetch() }.to raise_exception(Twilio::R...
<?php namespace NilPortugues\SchemaOrg\Classes; use NilPortugues\SchemaOrg\SchemaClass; class Electrician extends SchemaClass { /** * @var string */ protected static $schemaUrl = 'http://schema.org/Electrician'; /** * @var array */ protected static $supportedMethods = [ 'addi...
Micro.GameTools = function (map) { return { airport: new Micro.BuildingTool(10000, Tile.AIRPORT, map, 6, false), bulldozer: new Micro.BulldozerTool(map), coal: new Micro.BuildingTool(3000, Tile.POWERPLANT, map, 4, false), commercial: new Micro.BuildingTool(100, Tile.COMCLR, map, 3, f...
//! \file fbxstatus.h #ifndef <API key> #define <API key> #include <fbxsdk/fbxsdk_def.h> #include <fbxsdk/core/base/fbxstring.h> #include <fbxsdk/fbxsdk_nsbegin.h> /** This class facilitates the testing/reporting of errors. It encapsulates the * status code and the internal FBXSDK error code as returned by the API f...
export { default as createShallow } from './createShallow'; export { default as createMount } from './createMount'; export { default as createRender } from './createRender'; export { default as <API key>, <API key> } from './<API key>'; export { default as getClasses } from './getClasses'; export { default as unwrap } ...
var expect = require("chai").expect; var reindeerRace = require("../../src/day-14/reindeer-race"); describe(" it("counts the distance traveled after 1000s", () => { var reindeerSpecs = [ "Comet can fly 14 km/s for 10 seconds, but then must rest for 127 seconds.", "Dancer can fly 16 km/s for 11 seconds...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var jsdom = require("jsdom"); var chai_1 = require("chai"); var ColorManager_1 = require("./ColorManager"); describe('ColorManager', function () { var cm; var dom; var document; var window; beforeEach(function () { ...
// sol2 // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to // the Software, and to permit persons to whom the Software is furnished to do so, // subject to the following conditions: // copies or substantial por...
using System; using System.Collections.Generic; using NUnit.Framework; using osu.Framework.Extensions.<API key>; using OpenTK; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Objects.Drawables; using osu...
package no.nextgentel.oss.akkatools.aggregate import akka.actor.ActorPath import akka.persistence.AtLeastOnceDelivery.UnconfirmedWarning import akka.persistence.{<API key>, <API key>, SaveSnapshotFailure, SaveSnapshotSuccess, SnapshotOffer} import no.nextgentel.oss.akkatools.persistence.{<API key>, GetState, SendAsDM} ...
<?php class <API key> extends Admin_Page_Abstract { public function prepare(<API key> $environment, <API key> $viewResponse) { /** @var <API key> $site */ $site = $environment->getSite(); $region = $site->hasRegion() ? $site->getRegion() : null; $page = $this->_params->getPage(); ...
package mahout; public class AppConstants { public static final String TEST_FILE = "dataset.csv"; }
<!DOCTYPE html> <html> <head> <title>AngularJS</title> <meta charset="utf-8"> <link href="../content/shared/styles/examples-offline.css" rel="stylesheet"> <link href="../../styles/kendo.common.min.css" rel="stylesheet"> <link href="../../styles/kendo.rtl.min.css" rel="stylesheet"> <link href=".....
package common import ( "testing" "github.com/stretchr/testify/assert" ) // Matasano 2.1 func Test_Pad_PKCS7(t *testing.T) { input := []byte("YELLOW SUBMARINE") received := Pad_PKCS7(input, 4) expected := []byte("YELLOW SUBMARINE\x04\x04\x04\x04") assert.Equal(t, expected, received) }
using Scripts.Game.Defined.Characters; using Scripts.Game.Defined.Serialized.Statistics; using Scripts.Game.Dungeons; using Scripts.Game.Serialized; using Scripts.Game.Undefined.Characters; using Scripts.Model.Acts; using Scripts.Model.Buffs; using Scripts.Model.Characters; using Scripts.Model.Interfaces; using Scripts...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http: <html xmlns="http: <head> <title>Rails::Rack</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="../../css/reset.css" type="text/css" media=...
package org.jinstagram.auth.model; import org.jinstagram.http.Request; import org.jinstagram.http.Verbs; import java.util.HashMap; import java.util.Map; /** * The representation of an OAuth HttpRequest. * * Adds OAuth-related functionality to the {@link Request} */ public class OAuthRequest extends Request { pr...
package tracker.message.handlers; import elasta.composer.message.handlers.MessageHandler; import io.vertx.core.eventbus.Message; import io.vertx.core.json.JsonObject; public interface <API key> extends MessageHandler<JsonObject> { @Override void handle(Message<JsonObject> event); }
# -*- coding: utf-8 -*- import pyqtgraph as pg from pyqtgraph.Qt import QtGui, QtCore import numpy as np import csv, gzip, os from pyqtgraph import Point class GlassDB: """ Database of dispersion coefficients for Schott glasses + Corning 7980 """ def __init__(self, fileName='schott_glasses.csv'): ...
import logging from urllib.parse import urljoin import lxml.etree # noqa: S410 import requests from django.conf import settings as django_settings from django.utils import timezone logger = logging.getLogger(__name__) class ClientError(Exception): pass class ResponseParseError(ClientError): pass class Response...
# Scripts ## CrowdStrikeUrlParse - Updated the Docker image to: *demisto/python:2.7.18.24398*.
<?php namespace Yandex\Locator\Exception; class ServerError extends \Yandex\Locator\Exception { }
import 'rxjs/add/operator/map'; import {Injectable} from '@angular/core'; import {Http, RequestMethod} from '@angular/http'; import {Observable} from 'rxjs/Observable'; import {Cube} from '../models/cube'; import 'rxjs/add/operator/mergeMap'; import {Algorithm} from '../models/analysis/algorithm'; import {Input, InputT...
<?php namespace Nathanmac\Utilities\Parser\Formats; use Nathanmac\Utilities\Parser\Exceptions\ParserException; class XML implements FormatInterface { /** * Parse Payload Data * * @param string $payload * * @throws ParserException * @return array * */ public function parse...
import PropTypes from 'prop-types' import React from 'react' import { List } from 'immutable' import Modal from './warningmodal.js' import Path from 'path' const FilesList = ({ folders, folderPathToRemove, actions }) => { const addStorageLocation = () => actions.<API key>() const <API key> = folder => () => { a...
<?php return unserialize('a:2:{i:0;O:30:"Doctrine\\ORM\\Mapping\\ManyToOne":4:{s:12:"targetEntity";s:5:"Cargo";s:7:"cascade";N;s:5:"fetch";s:4:"LAZY";s:10:"inversedBy";N;}i:1;O:32:"Doctrine\\ORM\\Mapping\\JoinColumns":1:{s:5:"value";a:1:{i:0;O:31:"Doctrine\\ORM\\Mapping\\JoinColumn":7:{s:4:"name";s:8:"CARGO_PK";s:20:"<...
from PyQt4 import QtCore import acq4.Manager import acq4.util.imageAnalysis as imageAnalysis run = True man = acq4.Manager.getManager() cam = man.getDevice('Camera') frames = [] def collect(frame): global frames frames.append(frame) cam.sigNewFrame.connect(collect) def measure(): if len(frames) == 0: ...