answer
stringlengths
15
1.25M
#!/usr/bin/env python import logging import os import shutil import subprocess import sys import tempfile import warnings from argparse import ArgumentParser import django from django.apps import apps from django.conf import settings from django.db import connection from django.test import TestCase, TransactionTestCase...
import * as m from "mithril"; export class GenericForm { view(vnode){ return ( m("div", m( "form.form-inline#login", vnode.attrs.prop, m(".form-group", vnode.children) ) ) ) } }
import os SITE_ID = 1 STATIC_URL = '/static/' SECRET_KEY =';pkj;lkj;lkjh;lkj;oi' db = os.environ.get('DBENGINE', None) if db == 'pg': DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'django_uuid_pk', 'HOST': '127.0.0.1', ...
html, body, svg, rect { margin: 0; padding: 0; border: 0; } html, body { margin: 0; background-color: #B3D1FF; font-family: 'RobotoDraft', sans-serif; font-size: 14px; } #networkfilename { font-size: 14px; } #visualizebtn { /*width: 150px; height: 30px; margin: 0; padding: 0; padding-bottom: 5...
package ca.carleton.gcrc.couch.simplifiedGeometry; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.StringWriter; import java.util.List; import java.util.zip.GZIPOutputStream; import javax.servlet.ServletConfig; import javax.servlet.Se...
#!/usr/bin/env python3 from collections import defaultdict prompt = "> " cart = defaultdict(int) product_tpl = "%d) %-15s [ $%d ]" products = { 1: ("Yoda", 10), 2: ("DVD", 20), 3: ("Lego Set", 200) } def product_menu(): while True: print("Select...
'use strict'; var metal = require('gulp-metal'); metal.registerTasks({ bundleCssFileName: 'tooltip.css', bundleFileName: 'tooltip.js', moduleName: 'metal-tooltip' });
<!doctype html> <html> <head> <title>polymer api</title> <style> html, body { font-family: Arial, sans-serif; white-space: nowrap; overflow: hidden; } [noviewer] [ifnoviewer] { display: block; } [detector], [ifnoviewer], [noviewer] [ifviewer] { display: none; } ...
#ifndef <API key> #define <API key> #include <windows.h> #include "base/base_export.h" #include "starboard/types.h" namespace base { namespace debug { // Crashes the process, using base::debug::Alias to leave valuable debugging // information in the crash dump. Pass values for |header| and |shared_section| // in the ev...
require 'spec_helper' def version_of *args OKKO.VersionOf(*args) end describe "creation" do it "should store name" do version_of('ruby').name.should == 'ruby' end it "should accept versions, optionally" do version_of('ruby').version.should == nil version_of('ruby', '1.8').version.to_s.should == '1.8...
<?php namespace Technology; use Phalcon\Loader, Phalcon\Mvc\Dispatcher, Phalcon\Mvc\View, Phalcon\Mvc\<API key>; class Module implements <API key> { /** * Register a specific autoloader for the module */ public function registerAutoloaders() { $loader = new Loader(); $l...
#if defined <API key> || defined <API key> // INCLUDE FILES #include <coemain.h> #include <coecontrolarray.h> #include <aknutils.h> #include <eiklabel.h> #include <aknsutils.h> #include <gdi.h> #include <eikapp.h> #include <gulicon.h> #include "RsgInclude.h" #include "WFLayoutUtils.h" #include "<API key>.h" #define TIT...
#ifndef <API key> #define <API key> #include "ThreadTimer.h" #include "detail/_time.h" #include <boost/thread/tss.hpp> #include <map> using std::multimap; using std::map; namespace sdo{ namespace common{ class CThreadTimer; class CTimerManager { typedef multimap<struct timeval_a,CThreadTimer *> MMTimer; public: voi...
<?php /** * Uploader class for CiiMS. All classes that do file uploads should extend from this class */ class CiiUploader { /** * Initialized config */ private $_core = array( 'allowedExtensions' => array( 'png', 'jpeg', 'jpg', 'gif', ...
import { createElement } from "lwc"; import <API key> from "c/<API key>"; import { <API key> } from "lightning/navigation"; import <API key> from "@salesforce/apex/<API key>.<API key>"; // Import mock data for <API key> const <API key> = require("./data/<API key>.json"); const settingsButtonLabel = "settingsButtonLabel...
from __future__ import division import unittest from FRETUtils.TransferMatrices import TransferMatrix, <API key>, <API key>, <API key>, genEffIndex, generateBinMid, modifyR0 from FRETUtils.Helpers import rToEff, genRandomVec, getKappa from FRETUtils.Efficiencies import efficiencyDeltaFix import tempfile, os, shutil, ra...
<?php namespace lukisongroup\efenbi\rasasayang\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use lukisongroup\efenbi\rasasayang\models\ItemFormula; /** * ItemFormulaSearch represents the model behind the search form about `api\modules\efenbi\rasasayang\models\ItemFormula`. */ class ItemFormula...
// a config info from CMAKE #define PROJECT_NAME "" #define PROJECT_VESION "1.1.0" #define SVN_VESION "Path: /home/guofutan/workspace/MTRpc_proj \nWorking Copy Root Path: /home/guofutan/workspace/MTRpc_proj \nURL: http: #define BUILD_TIME __DATE__ " " __TIME__ #define BUILD_FLAGS "/usr/bin/c++ -ggdb -g3 -...
#pragma once #include <memory> #include <THPP/THPP.h> #include "torch/csrc/autograd/function.h" #include "torch/csrc/autograd/variable.h" namespace torch { namespace autograd { struct BatchNormParams { std::shared_ptr<thpp::Tensor> running_mean; std::shared_ptr<thpp::Tensor> running_var; bool training; double m...
from .concept import Concept, Relationship, <API key> from .device import Device from .encounter import Encounter from .events import Event from .instruction import Instruction from .location import Location from .notification import Notification from .observation import Observation from .observer import Observer, Surg...
from bitcoin import network from bitcoin import messages from io import BytesIO from mock import patch from gevent import socket import mock import os import unittest __author__ = 'cdecker' BASENAME = os.path.dirname(__file__) class TestNetworkClient(unittest.TestCase): def test_parser(self): """Test parser...
<!-- BEGIN: content --> <span class="image"> <!-- BEGIN: item --> <span class="item image_id_{GET.relation}{ITEM.id}"><span class="imageWrap"><img id="image_id_{GET.relation}{ITEM.id}" alt="{ITEM.title|htmlspecialchars}" title="{ITEM.title|htmlspecialchars}" src="{ITEM.path}{ITEM.src}" /></span></span> <!--...
import { AspectAdvice } from 'dojo-compose/compose'; /** * This mixin provides the ability to view discrete 'pages' of rows. The type is expressed using a class becase, as with * the case of editor and decorator, it is more concise to express a mixture of complex types and function * implementations in a class than ...
#include <sys/klog.h> #include <sys/sleepq.h> #include <sys/runq.h> #include <sys/ktest.h> #include <sys/errno.h> #include <sys/sched.h> #define T 6 #define RAND_COUNT 13 /* obtained with totally fair d6 rolls (1-3 true; 4-6 false) */ static bool kinda_random_values[RAND_COUNT] = {true, true, false, true, false, ...
using System; using System.Collections.Generic; using System.Data; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using entCMS.DAL; using entCMS.Model; using jtSoft.Data; using System.Configuration; namespace entCMS.Manage.Module { public partial class NewsListEx : BasePage { Ne...
{% from "includes/common_macros.html" import list_view_item %} {% from "includes/common_macros.html" import favicon with context %} {% from "wiki/includes/document_macros.html" import show_for with context %} {% from "search/basic-form.html" import mobile_nav_form with context %} <!DOCTYPE html> <html lang="{{ request....
#include "talk/p2p/base/stunport.h" #include "talk/base/common.h" #include "talk/base/logging.h" #include "talk/base/helpers.h" #include "talk/base/nethelpers.h" #include "talk/p2p/base/common.h" #include "talk/p2p/base/stun.h" namespace cricket { // TODO: Move these to a common place (used in relayport too) const int ...
<?php Rhaco::import("tag.feed.Atom"); Rhaco::import("io.FileUtil"); Rhaco::import("util.UnitTest"); Rhaco::import("network.http.Browser"); class AtomTest extends UnitTest { function testOutput(){ $b = new Browser(); $this->assertEquals(<<< __RSS__ <?xml version="1.0" encoding="utf-8"?> __RSS__ ,$b->...
package handle import ( //"html/template" "net/http" ) // HTTPErrorPipeline contains information about error. type HTTPErrorPipeline struct { Code int Message string Global GlobalPipeline } // Returns template pipeline containing error info. func NewError(code int, message string) HTTPErrorPipel...
#ifndef _IC_ESP_H_ #define _IC_ESP_H_ /* * Definitions for Hayes ESP serial cards. */ /* * CMD1 and CMD2 are the command ports, offsets from <esp_iobase>. */ #define ESP_CMD1 4 #define ESP_CMD2 5 /* * STAT1 and STAT2 are to get return values and status bytes; * they overload CMD1 and CMD2. */ #def...
/* $NetBSD: ecc_plb.c,v 1.8 2003/07/15 02:54:44 lukem Exp $ */ #include <sys/cdefs.h> __KERNEL_RCSID(0, "$NetBSD: ecc_plb.c,v 1.8 2003/07/15 02:54:44 lukem Exp $"); #include "locators.h" #include <sys/param.h> #include <sys/systm.h> #include <sys/device.h> #include <sys/properties.h> #include <machine/cpu.h> #inc...
#include <stdio.h> int main() { int a,b,c,median; printf("Please enter 3 numbers separated by spaces > "); scanf ("%d%d%d", &a,&b,&c); if ((b>=a && a>=c)||(c<=a && a<=b)||(a<b && a<c)) printf("%d is the median\n", a); else if ((a>=b && b>=c)||(a<=b && b<=c)||(b<c && b<a)) printf("%d ...
import React from 'react'; // <API key> import/<API key> import { storiesOf } from '@storybook/react'; import DatetimeField from 'components/DatetimeField/DatetimeField'; import ValueTracker from 'stories/ValueTracker'; const props = { name: 'MyField', title: 'Field title', lang: 'en_NZ' }; storiesOf('Admin/Datet...
#undef DEBUG /* Not sure this has any effect */ #define _LARGEFILE_SOURCE 1 #define _LARGEFILE64_SOURCE 1 #include "zincludes.h" #include <errno.h> #include <zip.h> #include "fbits.h" #include "ncpathmgr.h" #undef CACHESEARCH #define VERIFY /*Mnemonic*/ #define FLAG_ISDIR 1 #define FLAG_CREATE 1 #define SKIPLAST 1 #def...
# -*- coding: utf-8 -*- import sys from warnings import warn from django.conf import settings from django.core.exceptions import <API key> if hasattr(settings, '<API key>'): <API key> =\ getattr(settings, '<API key>', None) elif hasattr(settings, '<API key>'): warn('The setting <API key> is deprecated, use ...
#!/usr/bin/env python # Time-stamp: <2019-09-25 14:16:56 taoliu> import unittest from MACS2.IO.BedGraph import * class <API key>(unittest.TestCase): def setUp(self): self.test_regions1 = [(b"chrY",0,10593155,0.0), (b"chrY",10593155,10597655,0.0066254580149)] def test_add_lo...
# modification, are permitted provided that the following conditions # are met: # documentation and/or other materials provided with the distribution. # * Neither the name of The Bifrost Authors nor the names of its # contributors may be used to endorse or promote products derived # EXPRESS OR IMPLIED WARRANTIES, I...
<?php namespace WebinoAppLib\Exception; use WebinoExceptionLib\<API key>; /** * Class <API key> */ class <API key> extends \<API key> implements ExceptionInterface { use <API key>; }
"use strict"; var _ = require('underscore'); var util = require('util'); var events = require('events'); var uuid = require('node-uuid'); var CONFIGS = require("./config.js"); var helper = require("./utils/helper.js"); var configHelper = require("./utils/config_helper.js"); var url = require('url'); var serializer = re...
<!DOCTYPE HTML PUBLIC "- <!--NewPage <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_65) on Sun May 04 11:06:50 EDT 2014 --> <TITLE> Uses of Package com.zinibu.basic </TITLE> <META NAME="date" CONTENT="2014-05-04"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> <SCRIPT type="...
<?php $params = require(__DIR__ . '/params.php'); $config = [ 'id' => 'basic', 'name' => 'Yii2 приложение', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'layout' => 'basic', 'defaultRoute' => 'main/index', 'language' => 'ru_RU', 'charset' => 'UTF-8', 'components' => [ ...
#ifndef <API key> #define <API key> #include <Ioss_CodeTypes.h> // for IntVector #include <<API key>.h> // for ElementTopology // STL Includes namespace Ioss { class TriShell6 : public Ioss::ElementTopology { public: static constexpr auto name = "trishell6"; static void factory(); ~TriShell6() o...
// BUGBUG #include "platform.headers.hpp" // Self: #include "history.hpp" // Internal: #include "lang.hpp" #include "keys.hpp" #include "message.hpp" #include "clipboard.hpp" #include "config.hpp" #include "strmix.hpp" #include "dialog.hpp" #include "interf.hpp" #include "ctrlobj.hpp" #include "configdb.hpp" #include "...
<?php if(in_array('category_menu', $addons) & !isset($cat_menu)){ include_once 'data/auction.php'; $adb=new Auction(null); $cat_menu = 'true'; $addon = 'category_menu'; $valid_rows = "select * from nav_conditionals where menu_name = 'addons' and link_name = '$addon'"; $sql_check =db_fetch_array($valid_rows)...
<?php namespace app\modules\member\models; use Yii; use yii\base\Model; use yii\captcha\Captcha; use app\modules\user\models\User; /** * Signup form */ class RegisterForm extends Model { public $username; public $email; public $password; public $repassword; public $verifyCode; /** * @inhe...
from __future__ import print_function # Denis Engemann <denis.engemann@gmail.com> import os import os.path as op import glob from copy import deepcopy import warnings import itertools as itt import numpy as np from numpy.testing import (<API key>, assert_array_equal, assert_allclose, ...
# -*- coding: utf-8 -*- REPO_BACKENDS = {} REPO_TYPES = [] class <API key>(Exception): pass try: from brigitte.backends import libgit REPO_BACKENDS['git'] = libgit.Repo REPO_TYPES.append(('git', 'GIT')) except ImportError: from brigitte.backends import git REPO_BACKENDS['git'] = git.Repo REP...
result = { arrow = () => {} } = vals;
<?php use yii\bootstrap\Modal; use yii\helpers\Url; $this->title = ''; ?> <div class="dis-bread"><a href="/"></a>><a href="/cms/default/index"></a>><a href="/cms/push/index" class="bolde"></a></div> <div class="dis-main dis-mainnr" style="height:900px;"> <div class="d-titr"><a href="/cms/push/index">...
#!/usr/bin/python # -*- coding: utf-8 -*- # GEO: N55.703431,E37.623324 .. N48.742359,E44.536997 # modification, are permitted provided that the following conditions # are met: # documentation and/or other materials provided with the distribution. # 4. Neither the name of the Pyhrol nor the names of its contribu...
from django.conf.urls.defaults import * from django.conf import settings from django.contrib import admin from django.views.generic import TemplateView admin.autodiscover() urlpatterns = patterns('', (r'^accounts/', include('registration.urls')), url(r'^admin_tools/', include('admin_tools.urls')), (r'^admin...
import * as React from 'react' import * as ConfigGen from '../actions/config-gen' import * as SettingsGen from '../actions/settings-gen' import * as Constants from '../constants/settings' import * as RouteTreeGen from '../actions/route-tree-gen' import SettingsContainer from './render' import * as Container from '../ut...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model backend\models\BuscarSolicitudes */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="solicitudes-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'get', ]); ?> ...
# Doxyfile 1.8.9.1 # This file describes the settings to be used by the documentation system # All text after a double hash (##) is considered a comment and is placed in # front of the TAG it is preceding. # All text after a single hash (#) is considered a comment and will be ignored. # The format is: # TAG = value [va...
# -*- coding: utf-8 -*- """Test the various population analyses (MPA, LPA, CSPA) in cclib""" from __future__ import print_function import sys import os import logging import unittest import numpy sys.path.append("..") from test_data import getdatafile from cclib.method import MPA, LPA, CSPA from cclib.parser import Gau...
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>&quot;scheduler/index&quot; | rot.js</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel...
@import url("//fonts.googleapis.com/css?family=Lato:300,400,700"); html { font-family: sans-serif; -ms-text-size-adjust: 100%; -<API key>: 100%; } body { margin: 0; } article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; } audio, canvas, progress, v...
""" The IRAF plugin implements a remote control interface for the Ginga FITS viewer from an IRAF session. In particular it supports the use of the IRAF 'display' and 'imexamine' commands. Instructions for use: Set the environment variable IMTDEV appropriately, e.g. $ export IMTDEV=inet:45005 (or) $ exp...
var config = {"document":{"height":210,"width":297,"mode":"rgb"},"characterStyles":[{"name":"swatchRectTitle","attributes":{"size":8}}],"swatchRect":{"textPosition":0.125},"colors":[{"group":"<API key>","name":"<API key>","rgb":[49,130,189]},{"group":"<API key>","name":"<API key>","rgb":[107,174,214]},{"group":"<API ke...
import pyaf.Bench.TS_datasets as tsds import tests.artificial.<API key> as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 12, transform = "Integration", sigma = 0.0, exog_count = 0, ar_order = 12);
import asyncio import gc import os import signal import sys import threading import weakref from datetime import timedelta from time import sleep import psutil import pytest from tornado import gen from tornado.locks import Event from distributed.compatibility import WINDOWS from distributed.metrics import time from di...
#include "main/macros.h" static INLINE GLuint minify( GLuint d ) { return MAX2(1, d>>1); } extern void <API key>(struct intel_context *intel, struct intel_mipmap_tree *mt, uint32_t tiling, int nr_images); void <API key>(gl_format format, unsigned int *w, un...
<?php return [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=global_lestari', 'username' => 'root', 'password' => '', 'charset' => 'utf8', ];
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/THNN.h" #else TH_API void THNN_(Abs_updateOutput)( THNNState *state, // library's state THTensor *input, // input tensor THTensor *output); // [OUT] Abs output TH_API void THNN_(Abs_updateGradInput)( ...
require 'matrix' ruby_version_is "1.9.3" do describe "Matrix::LUPDecomposition#l" do before :each do @a = Matrix[[7, 8, 9], [14, 46, 51], [28, 82, 163]] @lu = Matrix::LUPDecomposition.new(@a) @l = @lu.l end it "returns the first element of to_a" do @l.should == @lu.to_a[0] end ...
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_31) on Sun Mar 22 23:36:28 UTC 2015 --> <title>io.grpc.auth (grpc-auth 0.1.0-SNAPSHOT API)</title> <meta name="date" content="2015-03-22"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style...
FILE(REMOVE_RECURSE "CMakeFiles/testEssentialMatrix.run" ) # Per-language clean rules from dependency scanning. FOREACH(lang) INCLUDE(CMakeFiles/testEssentialMatrix.run.dir/cmake_clean_${lang}.cmake OPTIONAL) ENDFOREACH(lang)
"""An exporter that converts scenes / animations to shareable HTML files. """ from klampt import * from klampt.model import trajectory from klampt import robotsim import json import pkg_resources _title_id = '__TITLE__' _scene_id = '__SCENE_JSON__' _path_id = '__PATH_JSON__' _rpc_id = '__RPC_JSON__' _compressed_id = '_...
#include "mitkPlaneGeometry.h" #include "<API key>.h" #include "<API key>.h" #include "mitkLine.h" #include "mitkGeometry3D.h" #include "<API key>.h" #include "<API key>.h" #include "<API key>.h" #include "mitkBaseGeometry.h" #include <mitkTestingMacros.h> #include <mitkTestFixture.h> #include <vnl/vnl_quaternion.h> #i...
#ifndef <API key> #define <API key> class THnSparse; class TH2F; class TProfile; class TLorentzVector; class AliEMCALTrack; class AliMagF; class AliESDEvent; class AliAODEvent; class AliAODMCParticle; class AliAODMCHeader; class AliGenEventHeader; class AliVEvent; class AliEMCALGeometry; class AliAnalysisFilter; class ...
{-# LANGUAGE <API key>, NoImplicitPrelude, RebindableSyntax #-} {-# LANGUAGE ScopedTypeVariables, ViewPatterns #-} module Numeric.Field.Fraction ( Fraction , numerator , denominator , Ratio , (%) , lcm ) where import Data.Proxy import Numeric.Additive.Class import Numeric.Additive...
<!DOCTYPE HTML> <head> <meta charset="utf-8"> <title>ContentObject encoding/decoding test</title> <script src="../../build/ndn.js"></script> <script> function testEncoding () { var content = "NDN on Node"; var h = new ndn.NDN(); var n = new ndn.Name('/a/b/c.txt'); var co1 = new ndn.Conte...
<?php namespace Hoa\Core\Event { interface Source { } class Bucket { /** * Source object. * * @var \Hoa\Core\Event\Source object */ protected $_source = null; /** * Data. * * @var \Hoa\Core\Event\Bucket mixed */ protected $_data = null; /** * Set data. ...
<!DOCTYPE html> <html xmlns="http: <head> <meta charset="utf-8" /> <title>Non-parametric 1 sample cluster statistic on single trial power &#8212; MNE 0.18.2 documentation</title> <link rel="stylesheet" href="../../_static/bootstrap-sphinx.css" type="text/css" /> <link rel="stylesheet" href="../../_sta...
{-# LANGUAGE FlexibleContexts #-} module Language.Typo.Token ( typoDef -- :: LanguageDef s , typo -- :: GenTokenParser String u Identity , lexeme -- :: Parsec String u a -> Parsec String u a , parens -- :: Parsec String u a -> Parsec String u a , identifier -- :: Parsec String u String ...
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>Validation Message Test</title> <style> @import "../../../themes/claro/document.css"; @import "../../css/dijitTests.css"; @import "../../../../util/doh...
<API key> ====================== Webcam image grabber based on haskell v4l2-examples A simple command line utility, grabs a video frame from a webcam peroidically, saves to a png file, e.g. for monitoring purposes. # <API key> --help The <API key> program <API key> [OPTIONS] Grabs a video frame and sa...
import os import random import datetime from django.db import models from django.conf import settings from django.utils.http import int_to_base36 from django.utils.hashcompat import sha_constructor from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User,Group from django.core...
package dataToGraph; import java.io.*; import java.nio.file.Path; import java.nio.file.Paths; import javax.swing.*; /** * The GUI used to create a dataToGraph project * * * @author Kim Spasaro */ public class GUIRemoveGraphType extends javax.swing.JFrame { public int graphType; public File inFile; publ...
package leveldb4j.db.options; import leveldb4j.ext.annotations.Default; public class WriteOptions { @Default(type = Default.Type.BOOLEAN, value = "true") static boolean SYNC; }
# Generated by TigerShark.tools.convertPyX12 on 2012-07-10 16:29:58.682345 from tigershark.X12.parse import Message, Loop, Segment, Composite, Element, Properties parsed_277U_HEADER = Loop( u'HEADER', Properties(looptype=u'wrapper',repeat=u'1',pos=u'015',req_sit=u'R',desc=u'Table 1 - Header'), Segment( u'BHT', Properti...
<?php namespace app\controllers\backend; use Yii; use yii\filters\AccessControl; use yii\web\Controller; use app\models\backend\LoginForm; use yii\filters\VerbFilter; /** * Site controller */ class SiteController extends Controller { /** * {@inheritdoc} */ public function behaviors() { r...
body { margin: 0; padding: 0; color: #555; font: normal 10pt Arial,Helvetica,sans-serif; background: #EFEFEF; } #page { margin-top: 5px; margin-bottom: 5px; background: white; border: 1px solid #C9E0ED; } #header { margin: 0; padding: 0; border-top: 3px solid #C9E0ED; } #...
local ui_LoginWindow = {} function ui_LoginWindow.setupUi(self) if (self:objectName() == "") then self:setObjectName("LoginWindow") end self:resize(400, 300) local verticleLayout = QVBoxLayout.new(self) verticleLayout:setSpacing(6) verticleLayout:setContentsMargins(11, 11, 11, 11); v...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <script src="static/riot.js"></script> <script src="static/reference-manager.js"></script> <script src="static/js/vendor/modernizr.js"></script> <script src="static/js/vendor/jquery.js"></script> <script src="static/js/foundation.min...
# -*- coding:utf-8 -*- import os import webbrowser import wx import wx.richtext as rt import wx.lib.scrolledpanel as scrolled import wx.lib.platebtn as platebtn import StickyNote class NoteWidget(wx.Panel): def __init__(self, parent): wx.Panel.__init__(self, parent, style = wx.BORDER_THEME) self.Set...
package net.meisen.dissertation.impl.cache; /** * Default implementation of the {@code Clock} used for by the * {@code CacheStrategy} to determine the current time. * * @author pmeisen * */ public class Clock { /** * Gets the current time. * * @return the current time */ public long ge...
/* global define */ define(['./deps', './mergeInto'], function(__deps, __mergeInto){ var __globals = __deps.globals; /* Class: Namespace Class that will operate as generic namespace object that is able to extend itself. If called directly */ var __Namespace = function Namespace(){ var _...
#include <mex.h> #include <cstdint> #include <complex> #include <string> #include <vector> #include "mexplus/mxtypes.h" using namespace std; using mexplus::MxTypes; using mexplus::MxCharCompound; using mexplus::MxArithmeticType; using mexplus::<API key>; using mexplus::MxComplexType; using mexplus::MxComplexCompound; u...
<?php use yii\helpers\Url; use app\models\MMapApi; ?> <!DOCTYPE html> <html> <head><title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;"> <script src="<?php echo Yii...
#! /bin/sh PROJECT_ROOT=../../.. . $PROJECT_ROOT/common/config.sh ./<API key>.bin ${1+"$@"}
<?php class C1 {} class C2 extends C1 {} class C3 extends C2 {} function f(C2 $obj){} f(new C1()); # ERR f(new C3()); abstract class Abstr { abstract public function f1(C2 $c); } class Work1 extends Abstr { public function f1(C1 $c){} # ERR } class Work3 extends Abstr { public function f1(C3 $c){} # ERR } ...
#include "SkBitmap.h" #include "SkCanvas.h" #include "SkFontPriv.h" #include "SkGradientShader.h" #include "SkImageGenerator.h" #include "SkPaint.h" #include "SkPath.h" #include "SkPathOps.h" #include "SkPicture.h" #include "SkPictureRecorder.h" #include "SkTextUtils.h" #include "ToolUtils.h" #include "gm.h" static voi...
<h1>Spring Web MVC (+ Hibernate, Spring Data JPA) hello world without any XML file using Spring Boot</h1> <p>No web.xml, no Spring xml configuration file, no persistence.xml, no *.hbm.xml, simply no XML configuration file is in this example, which retrieves data from database and returns them in JSON format.</p> <p>Th...
<?php /** * Message translations. * * This file is automatically generated by 'yii message' command. * It contains the localizable messages extracted from source code. * You may modify this file by translating the extracted messages. * * Each array element represents the translati...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Fhir.Metrics { public struct Unary { public int Exponent; public string Expression; public Unary(int exponent, string expression) { this.Exponent = expon...
// Use of this source code is governed by a BSD-style package template import ( "bytes" "errors" "fmt" "io/ioutil" "strings" "sync" "testing" ) func TestClone(t *testing.T) { // The {{.}} will be executed with data `<i>*/` in different contexts. // In the t0 template, it will be in a...
from __future__ import division from .base import Equation class KDV(Equation): """ The equation is : -c*u + 3/4u^2 + (u + 1/6u")=0 """ def degree(self): return 2 def compute_kernel(self, k): return 1.0-1.0/6*k**2 def flux(self, u): return 0.75*u*u def flux_prime(...
import { <API key>, <API key>, <API key> } from '../../runtime/arc-exceptions.js'; let exceptions = []; before(() => { <API key>(<API key>); <API key>((arc, exception) => exceptions.push(exception)); }); afterEach(function () { if (exceptions.length > 0) { const exception = exceptions[0]; ex...
<a name="0.5.1"></a> <a name="0.5.0"></a> <a name="0.4.0"></a> <a name="0.3.0"></a> <a name="0.2.0"></a> <a name="0.1.1"></a> <a name="0.0.9"></a> <a name="0.0.8"></a> <a name="0.0.7"></a> <a name="0.0.6"></a> <a name="0.0.5"></a> <a name="0.0.4"></a> <a name="0.0.3"></a> <a name="0.0.2"></a> <a name="0.0.1"></a> ## 0....