answer
stringlengths
15
1.25M
#include "zflyembodymerger.h" #include <iostream> #include <QList> #include <QDebug> #include "zjsonobject.h" #include "zjsonarray.h" #include "zjsonparser.h" #include "zjsonfactory.h" ZFlyEmBodyMerger::ZFlyEmBodyMerger() { } uint64_t ZFlyEmBodyMerger::getFinalLabel(uint64_t label) const { return mapLabel(m_mapList, ...
#include "AbstractMeshNode.hpp" #include <iostream> #include <GL/glew.h> #include <glm/mat4x4.hpp> #include "../renderer/Mesh.hpp" #include "../renderer/MeshRenderer.hpp" #include "../renderer/ShaderProgram.hpp" using namespace std; AbstractMeshNode::AbstractMeshNode(MeshRenderer& renderer, Mesh& mesh) : renderer(rende...
import functools import unittest2 from sentry import app from sentry.db import get_backend def with_settings(**settings): def wrapped(func): @functools.wraps(func) def _wrapped(*args, **kwargs): defaults = {} for k, v in settings.iteritems(): defaults[k] = app...
input:-webkit-autofill { color: #003274 !important; background-color: #ffffff; } #login { width: 300px; margin: 0 auto; font-family: bob-regular; color: #003274; } #login input { direction: ltr; background: #ffffff; font-weight: bold; font-size: 13pt; } #login input:hover { b...
#include "Tuple.h" namespace yarpl { std::atomic<int> Tuple::createdCount; std::atomic<int> Tuple::destroyedCount; std::atomic<int> Tuple::instanceCount; }
# -*- coding: utf-8 -*- """Tests for cookiecutter's output directory customization feature.""" import pytest from cookiecutter import main @pytest.fixture def context(): """Fixture to return a valid context as known from a cookiecutter.json.""" return { u'cookiecutter': { u'email': u'raphael...
'use strict'; const common = require('../common'); const assert = require('assert'); const fs = require('fs'); const path = require('path'); if (!common.hasCrypto) { common.skip('missing crypto'); return; } const crypto = require('crypto'); // Test hashing const a1 = crypto.createHash('sha1').update('Test123').dige...
Behavior = new (function() { var that = this; // initial values do not matter because they are set by this.resetBehavior() var behavior_name = ""; var <API key> = ""; var tags = ""; var author = ""; var creation_date = ""; var private_variables = []; // {key, value} var defaul...
#pragma once #include <vector> #include <Poco/SharedPtr.h> #include "model/Location.h" #include "model/Gateway.h" #include "service/Single.h" #include "service/Relation.h" namespace BeeeOn { /** * Locations management. */ class LocationService { public: typedef Poco::SharedPtr<LocationService> Ptr; virtual ~L...
from __future__ import with_statement import datetime import logging import pytz import rdflib from django.conf import settings from humfrey.update.transform.base import Transform from humfrey.update.uploader import Uploader from humfrey.sparql.endpoint import Endpoint from humfrey.utils.namespaces import NS logger = l...
# Table of Contents (2) ## Description and main features This extension adds a small button in the main toolbar, which enables to collect all running headers in the notebook and display them in a floating window. ![](icon.png) The table of contents is automatically updated when modifications occur in the notebook. The ...
#include "ash/system/tray/<API key>.h" namespace ash { SystemTrayNotifier::SystemTrayNotifier() { } SystemTrayNotifier::~SystemTrayNotifier() { } void SystemTrayNotifier::<API key>( <API key>* observer) { <API key>.AddObserver(observer); } void SystemTrayNotifier::<API key>( <API key>* observer) { <API key>...
package edu.stanford.isis.atb.domain.template; /** * @author Vitaliy Semeshko */ public enum GeometricShapeType { Point, Circle, Polyline, Ellipse, MultiPoint; }
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.cpp Label Definition File: <API key>.label.xml Template File: sources-sinks-65a.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines * BadSource: malloc Allocate data using malloc() * GoodSource: Allocate data using new [] * Sinks: ...
ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require 'test_help' class ActiveSupport::TestCase self.<API key> = true self.<API key> = false end
{- Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.0 Kubernetes API version: v1.9.12 Generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) -} {-| Module : Kubernetes.OpenAPI.API.Certificat...
#pragma once #include "buildnumber.h" // defines VERSION_INT // VERSION_INT is defined in buildnumber.h and is written to by the builder, inserting the current build number. // VERSION_INT is used for the 3rd component eg. 4.1.1.[36] // The product and file version could be different. // For example, VIZ 4.0 works with...
#include "chrome/browser/sync/test/integration/sync_test.h" #include <vector> #include "base/basictypes.h" #include "base/bind.h" #include "base/command_line.h" #include "base/message_loop/message_loop.h" #include "base/path_service.h" #include "base/process/launch.h" #include "base/strings/string_util.h" #include "bas...
<?php namespace Xi\Algorithm; class Luhn { /** * Returns the given number with luhn algorithm applied. * * For example 456 becomes 4564. * * @param integer $number * @return integer */ public function generate($number) { $stack = 0; $digits = str_split(str...
package blog.absyn; /** * @author leili * @date Apr 22, 2012 * */ abstract public class EvidenceStmt extends Stmt { /** * @param p */ public EvidenceStmt(int p) { this(0, p); } /** * @param line * @param pos */ public EvidenceStmt(int line, int pos) { sup...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function <API key>(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _ansiRegex = require('ansi-regex'); var _ansiRegex2 = <API key>(_ansiRegex); var ANSIRegex = undefined; ANSIRegex = (0, _ansiRegex2['default'])(); /**...
var specs = require('jungles-data'); var data = require('./index')({ host: '127.0.0.1', port: '5432', user: 'jungles_test', password: '1234', database: 'jungles_test', }); var client = data.client; client.query('DROP TABLE IF EXISTS instances; DROP TABLE IF EXISTS settings;', function (err, result) { data.s...
<?php return array( // This should be an array of module namespaces used in the application. 'modules' => array( 'Application', 'Book', ), // These are various options for the listeners attached to the ModuleManager '<API key>' => array( // This should be an array of paths in...
<?php /** * Customer. */ class <API key> { public static function createFromOrder( WC_Order $order ) { $customer = $order->get_user(); if ( $customer ) { return self::createFromUser( $customer ); } return self::<API key>( $order ); } public static function creat...
package org.chromium.chrome.browser.document; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.text.TextUtils; import org.chromium.base.ApplicationStatus; import org.chromium.base.Log; import org.chromium.chrome.browser.ChromeApplication;...
#ifndef <API key> #define <API key> #include "base/message_loop/<API key>.h" #include "ui/aura/aura_export.h" #include "ui/aura/window.h" namespace aura { class Window; namespace client { // An interface implemented by an object which handles nested dispatchers. class AURA_EXPORT DispatcherClient { public: virtual v...
#include "<API key>.h" #include "<API key>.h" #include <QFileDialog> #include "zstack.hxx" #include "zimage.h" #include "biocytin/zstackprojector.h" <API key>::<API key>(QWidget *parent) : QMainWindow(parent), ui(new Ui::<API key>) { ui->setupUi(this); setWindowTitle("New Project: Preprocess Tif Stacks"...
import { CodeMapNode } from "../../../codeCharta.model" import { Store } from "../../../state/store/store" import * as codeMapHelper from "../../../util/codeMapHelper" import { <API key> } from "./<API key>.pipe" describe("<API key>", () => { beforeEach(() => { Store["initialize"]() }) it("should re...
<?php namespace frontend\modules\User\controllers; use yii\web\Controller; class DefaultController extends Controller { public function actionIndex() { return $this->render('index'); } }
<?php namespace Weikit\Models; use Illuminate\Database\Eloquent\Model; class MenuItem extends Model { }
(function($) { $(document).ready(function(){ if ($(".select_address").length) { $('input#order_use_billing').unbind("click"); $(".inner").hide(); $(".inner input").prop("disabled", true); $(".inner select").prop("disabled", true); if ($('input#order_use_billing').is(':checked')) { ...
--TEST bson_encode() array --SKIPIF <?php require_once dirname(__FILE__) ."/skipif.inc"; ?> --FILE <?php // BSON document: length $expected = pack('V', 23); // element: UTF-8 string $expected .= pack('Ca*xVa*x', 2, '0', 7, 'foobar'); // element: boolean $expected .= pack('Ca*xC', 8, '1', 1); // BSON document: end $expe...
<?php namespace ClubsORM\om; use \BasePeer; use \Criteria; use \PDO; use \PDOStatement; use \Propel; use \PropelException; use \PropelPDO; use ClubsORM\Profiles; use ClubsORM\ProfilesPeer; use ClubsORM\map\ProfilesTableMap; /** * Base static class for performing query and update operations on the 'profiles' table. * ...
<?php try { print getenv('ORACLE_HOME')."\n"; print var_export($_ENV,1 )."\n"; $user = "isitestools"; $pass = "iseegeeisitet00ls"; //$dbh = new PDO('oci:dbname=icgdb.fas.harvard.edu:1521/isitestools;charset=UTF8', $user, $pass); $dbh = new PDO('oci:dbname=icgdbdev.fas.harvard.edu;charset=UTF8', ...
# python from distutils.core import setup setup( name = 'zplot', packages = ['zplot'], version = '1.41', description = 'A simple graph-creation library', author = 'Remzi H. Arpaci-Dusseau', author_email = 'remzi.arpacidusseau@gmail.com', url = 'https://github.com/z-plot/z-plot', download...
SERVICE_COMMAND="${SYNOPKG_PKGDEST}/bin/syncthing -home=${SYNOPKG_PKGVAR}" SVC_BACKGROUND=y SVC_WRITE_PID=y GROUP="sc-syncthing" service_prestart () { # Read additional startup options from /usr/local/syncthing/var/options.conf if [ -f ${SYNOPKG_PKGVAR}/options.conf ]; then . ${SYNOPKG_PKGVAR}/options.c...
import express from 'express'; import graphQLHTTP from 'express-graphql'; import path from 'path'; import webpack from 'webpack'; import WebpackDevServer from 'webpack-dev-server'; import {Schema} from './data/schema'; const APP_PORT = 8888; const GRAPHQL_PORT = 8080; // Expose a GraphQL endpoint var graphQLServer = ex...
/*global exports:true, require:true, global:true*/ (function () { 'use strict'; var Syntax, Precedence, BinaryPrecedence, SourceNode, estraverse, esutils, isArray, base, indent, json, renumber, hexadecimal, quotes, ...
package sagan.site.projects; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; /** * Tests for {@link Release} */ publ...
--TEST Test for PHP-408: MongoBinData custom type is returned as -128. --SKIPIF <?php require_once dirname(__FILE__) ."/skipif.inc"; ?> --FILE <?php require_once dirname(__FILE__) ."/../utils.inc"; $mongo = mongo(); $coll = $mongo->selectCollection('phpunit', 'mongobindata'); $coll->drop(); $types = array( MongoBin...
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel.DataAnnotations; using Plainion.Validation; using RaynMaker.Entities.Figures; namespace RaynMaker.Entities { public class Company : EntityBase { private string myName; private string...
#ifndef <API key> #define <API key> #include <string> #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" #include "base/observer_list.h" #include "chrome/browser/google_apis/<API key>.h" #include "chrome/browser/google_apis/<API key>.h" #include "chrome/browser/google_apis/<API key>.h" #include "chro...
// RUN: %clang_cc1 -D__ARM_FEATURE_SVE -D__ARM_FEATURE_SVE2 -triple <API key> -target-feature +sve2 -<API key> -S -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s // RUN: %clang_cc1 -D__ARM_FEATURE_SVE -D__ARM_FEATURE_SVE2 -<API key> -triple <API key> -target-feature +sve2 -<API key> -S -O1 -Werror -Wall -emit-llvm ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.c Label Definition File: <API key>.label.xml Template File: sources-sinks-54e.tmpl.c */ /* * @description * CWE: 190 Integer Overflow * BadSource: listen_socket Read data using a listen socket (server side) * GoodSource: Set data to a small, non-zero number (t...
<?php namespace common\libs\fileuploader\actions; use common\libs\fileuploader\elfinder\elFinder; use common\libs\fileuploader\elfinder\elFinderConnector; use yii\base\Action; use \Yii; /** * Class FileConnectorAction * @package common\actions */ class FileConnectorAction extends Action { private $basePath; ...
<?php namespace Hyphenator\Cache; class ArrayCache implements CacheInterface { protected $cache = array(); public function fetch($cacheKey) { if (!array_key_exists($cacheKey, $this->cache)) { return false; } return $this->cache[$cacheKey]; } public function store(...
#include <fstream> #include <iostream> #include <limits> #include <common/math.h> #include "magic_var_operation.h" #include "pws_circuit_parser.h" using namespace std; static const bool DEBUG_MODE = true; bool a = false; typedef map<string, int>::iterator ConstMapIt; typedef map<int, CVar*>::iterator CVarIt; typedef ve...
// SDLOnKeyboardInput.h // SyncProxy #import <Foundation/Foundation.h> #import <AppLink/SDLRPCNotification.h> #import <AppLink/SDLKeyboardEvent.h> @interface SDLOnKeyboardInput : SDLRPCNotification {} -(id) init; -(id) initWithDictionary:(NSMutableDictionary*) dict; @property(strong) SDLKeyboardEvent* event; @propert...
<?php require_once 'ZendL/Reflection/Docblock/Tag.php'; class <API key> implements Reflector { protected $_reflector = null; protected $_startLine = null; protected $_endLine = null; protected $_docComment = null; protected $_cleanDocComment = null; protected $_longDescription = null; protec...
module Network.PushbulletSpec (main, spec) where import Test.Hspec main :: IO () main = hspec spec spec :: Spec spec = do describe "someFunction" $ do it "should work fine" $ do True `shouldBe` False
module Spree module Admin class PaymentsController < Spree::Admin::BaseController before_filter :load_order, :only => [:create, :new, :index, :fire] before_filter :load_payment, :except => [:create, :new, :index] before_filter :load_data before_filter :<API key> respond_to :html ...
# This program is free software: you can redistribute it and/or modify # (at your option) any later version. # This program is distributed in the hope that it will be useful, # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the import unittest # set the library path, otherwise upscaledb.so/.dll is not found ...
using Xunit; namespace Rhino.Mocks.Tests.FieldsProblem { public class <API key> { [Fact] public void <API key>() { TestObject testObject = MockRepository.GenerateStub<TestObject>(); Assert.Equal(0, testObject.IntProperty); } } public class TestObje...
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using OpenCvSharp.Utilities; namespace OpenCvSharp.CPlusPlus { <summary> </summary> internal class <API key> : DisposableCvObject, IStdVector<DMatch[]> { <summary> Track whether Dispose has been called ...
package org.burroloco.donkey.trebuchet; import org.burroloco.butcher.fixture.process.CommandRunner; import static org.burroloco.donkey.glue.constants.DonkeyTestConstants.DIST; import static org.junit.Assert.assertEquals; public class DefaultDonkeyShell implements DonkeyShell { CommandRunner runner; public void ...
#include <stdlib.h> #include <stdio.h> #include "wsq_runtime.h" // An example demonstrating how to link and use the WSQ runtime system. #include "port.h" int main(int argc, char* argv[]) { char addr[128]; //sprintf(addr, "fort2.csail.mit.edu | %d", PORT); sprintf(addr, "localhost | %d", PORT); WSQ_Init(""); W...
<!doctype html> <! @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http: The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.i...
<?php $form = $this->beginWidget( 'bootstrap.widgets.TbActiveForm', array( 'id' => 'image-form', '<API key>' => false, '<API key>' => true, 'type' => 'vertical', 'htmlOptions' => array('class' => 'well', 'enctype'=>'multipart...
namespace FatturaElettronica.Tabelle { public class IdPaese : Tabella { public override Tabella[] List { get { return new Tabella[] { new IdPaese { Nome = "Afghanistan", Codice = "AF" }, new IdPaese { Nome = "Isole Å...
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.cpp Label Definition File: <API key>.label.xml Template File: sources-sinks-43.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines * BadSource: malloc Allocate data using malloc() * GoodSource: Allocate data using new [] * Sinks: *...
#!/usr/bin/env python # -*- coding: utf-8 -*- from .datagroup import MODNAME from .datagroup1D import DataGroup1D class DataGroupXanes(DataGroup1D): """DataGroup for XANES scans""" def __init__(self, kwsd=None, _larch=None): super(DataGroupXanes, self).__init__(kwsd=kwsd, _larch=_larch) LARCH def datagr...
from django.conf import settings # Safe User import for Django < 1.5 try: from django.contrib.auth import get_user_model except ImportError: from django.contrib.auth.models import User else: User = get_user_model() # Safe version of settings.AUTH_USER_MODEL for Django < 1.5 auth_user_model = getattr(setting...
<!DOCTYPE html> <html> <meta charset="utf-8"> <title>Date parser test — 100&lt;=x&lt;=999 and 0&lt;=y&lt;=69 and 100&lt;=z&lt;=999 — 400/29/812</title> <script src="../date_test.js"></script> <p>Failed (Script did not run)</p> <script> test_date("400/29/812", 404, 6, 19, 22, 0, 0) </script> </html>
<!DOCTYPE html> <!--[if IE]><![endif]--> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Class Unicode.Property </title> <meta name="viewport" content="width=device-width"> <meta name="title" content="Class Unicode.Property "> <m...
package com.aspirephile.laundro.review; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.GridLayoutManager; import ...
# modification, are permitted provided that the following conditions are # met: # the distribution. # * Neither the name of John Haddon nor the names of # any other contributors to this software may be used to endorse or # promote products derived from this software without specific prior # ...
import pcs from socket import AF_INET, inet_ntop import struct import time import pcs.packets.ipv4 import pcs.packets.igmpv2 as igmpv2 import pcs.packets.igmpv3 as igmpv3 #import pcs.packets.dvmrp #import pcs.packets.mtrace <API key> = 0x11 <API key> = 0x12 IGMP_DVMRP = 0x13 <API key> = 0x16 <API key> = 0x17 <API key> ...
program manyclaw ! Test function definitions use <API key> ! Utility modules use timer_module use precision_module implicit none ! Command line arguments character(len=10) :: input_nx,input_ny,input_num_tests ! Local storage integer :: num_tests real(kind=TK) :: ave_time(4) ...
package glfw2 import ( gl "github.com/tHinqa/outside-opengl" "testing" ) var mode VidMode func TestInit(t *testing.T) { if Init() { GetDesktopMode(&mode) var major, minor, rev int //TODO(t) Find out why 0.0.0 GetGLVersion(&major, &minor, &rev) t.Logf("GLFW Version: %v...
/* NOTE - eventually this file will be automatically updated using a Perl script that understand * the naming of test case files, functions, and namespaces. */ #include <time.h> /* for time() */ #include <stdlib.h> /* for srand() */ #include "std_testcase.h" #include "testcases.h" int main(int argc, char * argv[]) ...
DATA_URL = '/notebook/'+document.location.pathname.split('/')[2]+'/'; CONTROL_URL = '/backend/'+document.location.pathname.split('/')[2]+'/'; INTERPRETER_URL = '/asyncnotebook/'+document.location.pathname.split('/')[2]; Notebook.Async = function() { }; // Should Async be a class or not? Notebook.Async.initialize = func...
# This file is part of Workspace. # modification, are permitted provided that the following conditions are met: # and/or other materials provided with the distribution. # contributors may be used to endorse or promote products derived from this # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED T...
package edu.cornell.mannlib.vitro.webapp.controller.edit.listing; import java.net.URLEncoder; import java.text.Collator; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.ser...
<?php $fruits = array ( "fruits" => array("a" => "orange", "b" => "banana", "c" => "apple"), "numbers" => array(1, 2, 3, 4, 5, 6), "holes" => array("first", 5 => "second", "third") ); $fruits1= array ( "fruits2" => array("d" => "orange", "e" => "banana", "f" => "apple"), "numbers" => array(1, 2,...
Object.defineProperty(exports, "__esModule", { value: true }); var Event = /** @class */ (function () { function Event(req, res, fullPath) { this.preventDefault = false; this.req = req; this.res = res; this.fullPath = fullPath; } Event.prototype.PreventDefault = function () {...
<?php return array( 'functions' => array( 'geoip_asnum_by_name', '<API key>', '<API key>', '<API key>', '<API key>', 'geoip_database_info', 'geoip_db_avail', 'geoip_db_filename', '<API key>', '<API key>', 'geoip_id_by_name', ...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model frontend\models\HargaSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="harga-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'get', ]); ?> <?= $fo...
package gov.nih.nci.ncicb.cadsr.bulkloader.persist; public class PersisterStatus { public static final PersisterStatus SUCCESS = new PersisterStatus(2, "Successfully Persisted"); public static final PersisterStatus FAILURE = new PersisterStatus(3, "Persistence failed"); private final int code; private f...
""" Tests for content parsing, and form-overloaded content parsing. """ from __future__ import unicode_literals from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.contrib.sessions.middleware import SessionMiddleware from django.core.handlers.wsgi import W...
C+ ENQ_TSYS subroutine enq_tsys( lun, temps, nominal, s ) C C Enquire the telescope system temperatures from the control tables C C Given: C sample file logical unit number integer lun C Returned: C eight nominal telescope system temperatures ...
#import <ABI42_0_0React/<API key>.h> @interface <API key> : <API key> @end
import logging import fmcapi def <API key>(fmc): logging.info( "Test <API key>. get, post, put, " "delete <API key> Objects" ) obj1 = fmcapi.DeviceHAFailoverMAC(fmc=fmc, ha_name="HaName") obj1.p_interface(name="GigabitEthernet0/0", device_name="device_name") obj1.failoverActiveMac = ...
<!DOCTYPE html> <html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>mne.datasets.brainstorm.bst_resting.data_path &mdash; MNE 0.11.0 documentation</title> <link rel="stylesheet" href="../_static/basic.css" type="text/css" /> <link rel="stylesheet" hre...
<?php // autoload_psr4.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname(dirname($vendorDir)); return array( 'yii\\swiftmailer\\' => array($vendorDir . '/yiisoft/yii2-swiftmailer'), 'yii\\gii\\' => array($vendorDir . '/yiisoft/yii2-gii'), 'yii\\faker\\' => array($vendorD...
"""Python interface to the Chandra Data Archive (CDA) web services and an interface to a local disk copy of the Observation Catalog (Ocat). """ from pathlib import Path import re import warnings import time import requests import numpy as np import tables from astropy.table import Table, MaskedColumn from astropy.coord...
import torch from torch.optim.optimizer import Optimizer, required _available = False try: from pcl_embedding_bag import bf16_update _available = True except ImportError as e: #print(e) pass def is_available(): return _available class SplitSGD(Optimizer): r"""Implements low precision stochastic ...
//! stal-rs //! Set algebra solver for Redis in Rust, based on //! Description //! `stal-rs` provide set operations and resolves them in [Redis][redis]. //! Usage //! `stal-rs` has no dependencies. It produces a vector of Redis operations that //! have to be run by the user. //! ```rust //! extern crate stal; //! let f...
import os os.environ.setdefault("<API key>", "settings") from django.core.wsgi import <API key> application = <API key>()
<param name="movie" value="<%= swfPath %>?inline=1"> <param name="quality" value="autohigh"> <param name="swliveconnect" value="true"> <param name="allowScriptAccess" value="always"> <param name="bgcolor" value="#001122"> <param name="allowFullScreen" value="false"> <param name="wmode" value="transparent"> ...
import System.Environment (getArgs) import Data.List.Split (splitOn) maxran :: Int -> Int -> [Int] -> [Int] -> Int maxran x _ _ [] = x maxran x c (y:ys) (z:zs) = maxran (max x d) d (ys ++ [z]) zs where d = c - y + z maxrange :: [String] -> Int maxrange [ns, xs]...
import sys import random from test_base import * class TestAtomic1(TestBase): def generate(self): self.clear_tag() for iteration in range(10): for n in range(10000): tag = random.randint(0,9) index = random.randint(0,1) block_offset = random.randint(0,self.<API key>) tadd...
/** * @file LiquidTransport.cpp * Mixture-averaged transport properties for ideal gas mixtures. */ #include "cantera/transport/LiquidTransport.h" #include "cantera/base/stringUtils.h" using namespace std; namespace Cantera { LiquidTransport::LiquidTransport(thermo_t* thermo, int ndim) : Transport(thermo, ndim)...
// Package rest provides RESTful serialization of AWS requests and responses. package rest import ( "bytes" "encoding/base64" "fmt" "io" "net/http" "net/url" "path" "reflect" "strconv" "strings" "time" "github.com/revinate/etcd2s3/Godeps/_workspace/src/github.com/aws/aws-...
#cardDisplay { color:red; width:200px; margin:50px; } .card { color:black; background-color:red; width:150px; display:inline; margin:0px; font-size:20px; } .card img { width: 150px; z-index: 1; } .ensuringCheck { background: #333; width: ...
#include "UnitTests/UnitTests.h" #include "Base/FastName.h" #include "Base/RefPtr.h" #include "Concurrency/Thread.h" #include "Engine/EngineContext.h" #include "FileSystem/KeyedArchive.h" #include "Job/JobManager.h" #include "Reflection/Reflection.h" #include "Reflection/<API key>.h" #include "UI/DataBinding/<API key>....
<?php namespace Application\Controller; use Zend\Mvc\Controller\<API key>; use Zend\View\Model\ViewModel; use Zend\View\Model\JsonModel; use Application\Model\Users; class AjaxController extends <API key> { private $usersTable; private $configArray = array( 'driver' => 'Mysqli', 'data...
<?php namespace chegamos\entity\repository; use chegamos\entity\Config; use chegamos\entity\factory\UserFactory; use chegamos\entity\factory\UserListFactory; use chegamos\rest\Request; class UserRepository { private $config; private $requestType; private $request; public function __construct(Config $con...
<?php class Duration { var $_LongNames = array('year','month','week','day','hour','minute','second'); var $_ShortNames = array('yr','mth','wk','day','hr','min','sec'); var $_Steps = array(31557600,2592000,604800,86400,3600,60,1); var $names, $steps, $terse; function Duration() { $this->__construct()...
import System.Environment (getArgs) r1 :: [Int] r1 = [1, 0, 0, 0, 1, 1] r2 :: [Int] r2 = [1, 0, 1, 0, 1, 1] bnot :: Int -> Int bnot 0 = 1 bnot _ = 0 pmod6 :: Int -> Int pmod6 x | mod x 6 == 0 = 6 | otherwise = mod x 6 locks :: [Int] -> Int locks [0, _] = 0 locks [x, 0] = x locks [x, 1] = x-1 locks [x, y] | ...
#include <dlfcn.h> #include <string.h> #include "ld.h" #include <stdio.h> int SHLIB_load( SHLIB *lib, const char *name ) { lib->last_error = 0; lib->handle = dlopen( name, RTLD_NOW ); if (!lib->handle) { char *ret; ret = dlerror(); if (ret) lib->last_error = strdup( ret ); } return lib->handl...