answer stringlengths 15 1.25M |
|---|
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Test web components</title>
<meta name="description" content="test web components from painting" />
<link ... |
// Released under GNU GPL 3.0
var lzwh = (function() {var z={
Decode:function(p)
{function f(){--h?k>>=1:(k=p.charCodeAt(q++)-32,h=15);return k&1}var h=1,q=0,k=0,e=[""],l=[],g=0,m=0,c="",d,a=0,n,b;
do{m&&(e[g-1]=c.charAt(0));m=a;l.push(c);d=0;for(a=g++;d!=a;)f()?d=(d+a>>1)+1:a=d+a>>1;if(d)c=l[d]+e[d],e[g]=c.charAt(0)
e... |
<?php
class <API key> extends Model {
public function addCategory($data) {
$this->db->query("INSERT INTO " . DB_PREFIX . "forum_category SET parent_id = '" . (int)$data['parent_id'] . "', `top` = '" . (isset($data['top']) ? (int)$data['top'] : 0) . "', `column` = '" . (int)$data['column'] . "', sort_order =... |
In these notes we've been carefully avoiding the use of the real numbers, \(\RR\).
Even though \(\RR\) is in some ways the most familiar example of a ring -- most of your mathematical training so far has taken place inside \(\RR\) -- our intuitive familiarity with \(\RR\) is deceptive.
The real numbers are \textbf{very... |
#include "../../../corpuslib_headers.h"
#include "ClassifyLayer.h"
namespace Corpus
{
namespace Tokenisation
{
namespace Layers
{
boost::shared_ptr<SPretoken> CClassifyLayer::GetNext()
{
// fetch next
boost::shared_ptr<SPretoken> current(lo... |
#!/usr/bin/env python
import argparse
from . import core
from . import gui
def main():
parser = argparse.ArgumentParser(
description="Track opponent's mulligan in the game of Hearthstone.")
parser.add_argument('--gui', action='store_true')
args = parser.parse_args()
if args.gui:
gui.main... |
namespace <API key>
{
partial class TimeLinerSub
{
<summary>
</summary>
private System.ComponentModel.IContainer components = null;
<summary>
</summary>
<param name="disposing"> true false</param>
protected override void Dispose(bool disposing)
{
... |
from api.callers.api_caller import ApiCaller
from exceptions import <API key>
from colors import Color
import os
from cli.arguments_builders.<API key> import DefaultCliArguments
import datetime
from cli.cli_file_writer import CliFileWriter
from cli.formatter.cli_json_formatter import CliJsonFormatter
from constants imp... |
#include <stdbool.h>
#include <stdint.h>
#include <platform.h>
#ifdef INVERTER // TODO - check INVERTER_IO is not NONE
#include "drivers/io.h"
#include "drivers/io_impl.h"
#include "inverter.h"
static const IO_t pin = DEFIO_IO(INVERTER_IO);
void initInverter(void)
{
IOInit(pin, OWNER_SYSTEM, RESOURCE_OUTPUT);
... |
# Simple Tcl/Tk GUI for Go. Inspired by the Inferno Tk model.
- Licensing - GPLv3
Todo:
- Everything
- Still keep it simple
- Concurrency and Channels (for simplicity the whole interpreter on one goroutine.)
- Widgets? Nah. Everything can be done with Cmd.
- Examples (6 pcs)
- Testing
- Howto |
#include <stdlib.h>
#include "exodusII.h"
#include "exodusII_int.h"
/*!
* writes the node set ID's, node set count array, node set pointers array,
* and node set node list for all of the node sets
*/
int <API key> (int exoid,
int *node_set_ids,
int *num_n... |
package edu.pitt.dbmi.xmeso.model.Model;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.apache.uima.cas.impl.TypeImpl;
import org.apache.uima.cas.Typ... |
# Alternative during matching. Contains a list of symbols where each is tried.
# Since we are parsing a CFG, there is no precedence to the alternatives. Only
# fails if all alternatives fail.
# Example:
# str('a') | str('b') # matches either 'a' or 'b'
class Marpa::Atoms::Alternative < Marpa::Atoms::Base
attr_re... |
/* $OpenBSD: signal.h,v 1.3 1997/02/18 15:54:27 rahnds Exp $ */
/* $NetBSD: signal.h,v 1.1 1996/09/30 16:34:34 ws Exp $ */
#ifndef _MACHINE_SIGNAL_H_
#define _MACHINE_SIGNAL_H_
typedef int sig_atomic_t;
#include <machine/types.h>
#include <machine/cpu.h>
struct sigcontext {
int sc_onstack; ... |
#ifndef <API key>
#define <API key>
/* Declarations for discrete functions */
#ifdef __GNUC__
// GNU C++ Compiler
#include <cmath>
#include <cstdlib>
/*
if __GNUC__ == 3 && __GNUC_MINOR__ == 0.
if defined __GNUC__ && defined __cplusplus && __GNUC_MINOR__ >= 8
if !defined __GNUC__ || __GNUC__ < 2 || __GNUC_MINOR... |
<!doctype>
<html ng-app="App">
<head>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/stylesheet.css">
<link rel="shortcut icon" type="image/png" href="css/favicon.png"/>
<script src="js/angular.js"></... |
ManageIndexes = {
GridPanel : function(config) {
config.autoExpandColumn = 'columns';
config.viewConfig = { forceFit: true };
ManageIndexes.GridPanel.superclass.constructor.call(this, config);
},
gridPanelStore : function(data) {
var store = new Ext.data.SimpleStore( {
... |
require 'package'
class Kubectl < Package
description 'Kubernetes command line tool'
homepage 'https://kubernetes.io'
version '1.7.0'
source_url 'https://github.com/kubernetes/kubernetes/archive/v1.7.0.tar.gz'
source_sha256 '<SHA256-like>'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chrome... |
#include <string>
#include <vector>
#include <stdio.h>
#include "graphics.h"
#include "engine.h"
#include "Lib/BufferedFile.h"
#include "Lib/getvar.h"
using namespace std;
using namespace sf;
int GraphicResources::GetGraphicCount()
{
return Graphics.size() - 1;
}
GraphicData& GraphicResources::GetGraphic(int Index)... |
package com.db4o.io;
import com.db4o.ext.*;
import com.db4o.internal.fileheader.*;
/**
* CachedIoAdapter is an IOAdapter for random access files, which caches data
* for IO access. Its functionality is similar to OS cache.<br>
* Example:<br>
* <code>delegateAdapter = new <API key>();</code><br>
* <code>Db4o.config... |
<?php
declare(strict_types = 1);
namespace AppBundle\Repository;
use AppBundle\Model\Edit;
use AppBundle\Model\Page;
use AppBundle\Model\Project;
/**
* An EditRepository fetches data about a single revision.
* @codeCoverageIgnore
*/
class EditRepository extends Repository
{
/**
* Get an Edit instance given ... |
<?php
namespace app\modules\systemJournal\models;
use app\components\custom\TSearchModelTools;
use app\components\helpers\TimeHelper;
use Yii;
use yii\data\ActiveDataProvider;
class SystemJournalSearch extends SystemJournal
{
const VIEW_MODE_ALL = 'All';
const VIEW_MODE_DELETED = 'Deleted';
use TSearchModel... |
#include <winsock2.h> // just to silence the compiler
#include <windows.h>
#include <commctrl.h>
#include "win_wao.hpp"
LRESULT CALLBACK
waoWC_button0Proc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam )
{
static TRACKMOUSEEVENT tME;
switch( msg )
{
case WM_CREATE:
{
tME.cb... |
<?php
namespace OldTown\Workflow\ZF2\Toolkit\<API key>\Exception;
use OldTown\Workflow\ZF2\Toolkit\Exception\<API key> as Exception;
/**
* Class <API key>
*
* @package OldTown\Workflow\ZF2\Toolkit\<API key>\Exception
*/
class <API key> extends Exception implements
ExceptionInterface
{
} |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_29) on Sat Mar 17 18:04:28 MSK 2012 -->
<TITLE>
<API key> (POI API Documentation)
</TITLE>
<META NAME="date" CONTENT="2012-03-17">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT ty... |
// associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute,
// furnished to do so, subject to the following conditions:
// substantial portions of the Software.
// NOT LIMITED TO THE WA... |
package com.dsh105.echopet.compat.nms.v1_14_R1.entity.type;
import com.dsh105.echopet.compat.api.entity.EntityPetType;
import com.dsh105.echopet.compat.api.entity.EntitySize;
import com.dsh105.echopet.compat.api.entity.IPet;
import com.dsh105.echopet.compat.api.entity.PetType;
import com.dsh105.echopet.compat.api.entit... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml.Serialization;
namespace SharpFtpServer
{
// TODO: Implement a real user store.
[Obsolete]
public static class UserStore
{
private static List<User> _users;
static User... |
package workbench.views.basiceditor.highlighting;
import workbench.util.EditorUtil;
public class DocumentBlockLevels {
public int insideCodeBlock = 0;
public int insideArgsBlock = 0;
public int insideArrayBlock = 0;
public static DocumentBlockLevels analyzeNestedLevels(String text, int pos) {
... |
package com.benjaminsproule.cloud.domain;
import lombok.AccessLevel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Data
@Setter(AccessLevel.PACKAGE)
@NoArgsConstructor(access = AccessLevel.PACKAGE)
public class Track {
private String id;
private String path;
private Long trackN... |
function chkSubRes{{ $nIDtxt }}j{{ $j }}() {
if (document.getElementById("n{{ $nIDtxt }}fld{{ $j }}").checked) {
setSubResponses({{ $nID }}, "{{ $nSffx }}res{{ $j }}", true, new Array({{ $grankids }}));
$("#n{{ $nIDtxt }}fld{{ $j }}sub").slideDown("fast");
} else {
$("#n{{ $nIDtxt }}fld{... |
#include "Matrix.h"
#include <algorithm> /* sort() */
using namespace std;
namespace Kompas { namespace Sdl {
template<class Item> void Matrix<Item>::disableItem(itemId item) {
items[item].flags |= DISABLED;
reloadItems();
}
template<class Item> void Matrix<Item>::enableItem(itemId item) {
items[item].fl... |
from elasticsearch import Elasticsearch
from django.conf import settings
def get_es_client(silent=False):
"""
Returns the elasticsearch client which uses the configuration file
"""
es_client = Elasticsearch([settings.ELASTIC_SEARCH_HOST],
scheme='http',
... |
#!/usr/bin/perl
# This file is part of Koha.
# Koha is free software; you can redistribute it and/or modify it
# (at your option) any later version.
# Koha is distributed in the hope that it will be useful, but
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
use Modern::Perl;
use CGI qw ( -utf8 );
use C4... |
'use strict';
var winston = require('winston'),
loggerUtils = require('<API key>');
module.exports = {
port : 3000, // TODO this isnt setup for nginx yet
server : {
// Ports on which to run node instances. Should be n-1 instances, where n is the number of cores.
enabledPorts : [3000]
},
mysql : ... |
package jstorybook.view.pane;
/**
*
*
* @author KMY
*/
public interface IComparablePane {
public PaneType getPaneType ();
public long getPaneId ();
public default boolean isEqualPane (IComparablePane other) {
return this.getPaneType() == other.getPaneType() && this.getPaneId() == other.getPaneId... |
# Don't edit this file! Your changes will be overwritten when you re-save the Introjucer project!
# (this disables dependency generation if multiple architectures are set)
DEPFLAGS := $(if $(word 2, $(TARGET_ARCH)), , -MMD)
ifndef CONFIG
CONFIG=Debug
endif
ifeq ($(CONFIG),Debug)
BINDIR := build
LIBDIR := build
... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/shared/ioperm_noop.c,v 3.4 2001/07/23 13:15:48 dawes Exp $ */
/* $XConsortium: ioperm_noop.c /main/3 1996/02/21 17:53:39 kaleb $ */
#include "X.h"
#include "xf86.h"
#include "xf86Priv.h"
#include "xf86_OSlib.h"
void
xf86EnableIO()
{
return;
}
void
xf86DisableIO... |
package ai.grakn.graph.internal;
import ai.grakn.concept.Concept;
import ai.grakn.concept.Instance;
import ai.grakn.concept.Relation;
import ai.grakn.concept.RoleType;
import ai.grakn.exception.NoEdgeException;
import ai.grakn.util.Schema;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import java.util.HashSet;
... |
package com.nilhcem.bblfr.core.dagger;
import com.fasterxml.jackson.databind.<API key>;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.jakewharton.picasso.OkHttp3Downloader;
import com.nilhcem.bblfr.BBLApplication;
import com.nilhcem.bblfr.BuildConfig;
import com.nilhcem.bblfr.core.map.LocationProvider;... |
package ar.gov.rosario.siat.gde.buss.bean;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import ar.gov.rosario.siat.base.... |
'use strict';
const path = require('path');
const os = require('os');
const fs = require('fs-extra');
const fieHome = require('fie-home');
const debug = require('debug')('core-report');
const fieUser = require('fie-user');
const execSync = require('child_process').execSync;
const spawn = require('cross-spawn');
const c... |
#ifndef <API key>
#define <API key>
#include "LodDefinition.h"
#include "<API key>.h"
#include "components/ogre/<API key>.h"
#include "framework/Singleton.h"
#include <OgreResourceManager.h>
#include <string>
#include <boost/filesystem/path.hpp>
namespace Ember
{
namespace OgreView
{
namespace Lod
{
/**
* @brief <API ... |
module.exports = {
'extends': ['google', 'plugin:react/recommended'],
'parserOptions': {
'ecmaVersion': 6,
'sourceType': 'module',
'ecmaFeatures': {
'jsx': true
}
},
'env': {
'browser': true,
},
'plugins': [
'react'
]
}; |
/*
* A catalog is used to map names to objects.
*/
#ifndef catalog_h
#define catalog_h
#include <InterViews/stub.h>
class Catalog {
public:
Catalog(int size);
~Catalog();
void Register(const char*, ObjectStub*);
void UnRegister(const char*);
boolean Find(ObjectStub*&, const char*);
private:
st... |
# Name: MissingPersomForm.py
# Purpose: Create Missing Person Flyer from data stored in the Subject
# Information data layer within MapSAR
# Created: 12/12/2011
# Licence:
# This program is free software: you can redistribute it and/or modify
# (at your option) any later version.
# This p... |
/**
* Client.
* @module client
*/
/**
* View configuration.
* @class ViewConfig
*/
function ViewConfig(resources) {
this.playAnimations = true;
this.resources = resources;
}
/**
* Should we play animations?
* @method setPlayAnimations
*/
ViewConfig.prototype.setPlayAnimations = function(value) {
th... |
from kivy.lib import osc
from time import sleep
import pocketclient
from kivy.utils import platform as kivy_platform
SERVICE_PORT = 4000
def platform():
p = kivy_platform()
if p.lower() in ('linux', 'waindows', 'osx'):
return 'desktop'
else:
return p
class Service(object):
def __init__(s... |
package it.niedermann.owncloud.notes.main.items.selection;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.selection.ItemKeyProvider;
import androidx.recyclerview.widget.RecyclerView;
import static androidx.recyclerview.widget.RecyclerView.NO_POSITION;
public class ... |
package com.github.cunvoas.iam.persistance.entity;
import com.github.cunvoas.iam.persistance.entity.RessourceValeur;
import javax.annotation.Generated;
import javax.persistence.metamodel.ListAttribute;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(v... |
using System;
using System.Collections.Generic;
using System.Text;
using libtcodWrapper;
namespace RogueBasin
{
class MapGeneratorCave
{
Map baseMap;
<summary>
Chance of digging surrounding squares
</summary>
public int DiggingChance { get; set; }
<summary>
... |
package com.jpexs.decompiler.flash.gui.player;
/**
*
* @author JPEXS
*/
public interface <API key> {
void <API key>(MediaDisplay source);
void playingFinished(MediaDisplay source);
} |
/*
* This is a simple debugging console which is able to explore phlib's
* systems easily. Commands are provided to debug reference counting
* problems and memory usage, as well as to do general performance testing.
*/
#include <phapp.h>
#include <phintrnl.h>
#include <refp.h>
#include <settings.h>
#include <symprv... |
import cv2
import numpy as np
import datetime as dt
# constant
faceCascade = cv2.CascadeClassifier('<API key>.xml')
OPENCV_METHODS = {
"Correlation": 0,
"Chi-Squared": 1,
"Intersection": 2,
"Hellinger": 3}
hist_limit = 0.6
ttl = 1 * 60
q_limit = 3
# init variables
total_count = 0
prev_count = 0
total_de... |
package megan.clusteranalysis.commands;
import jloda.swing.commands.ICheckBoxCommand;
import jloda.util.parse.NexusStreamParser;
import megan.clusteranalysis.ClusterViewer;
import megan.clusteranalysis.indices.EuclideanDistance;
import javax.swing.*;
import java.awt.event.ActionEvent;
/**
* method=Euclidean command
*... |
#ifndef BALL_H
#define BALL_H
#include "engine/RenderObject.h"
class Bitmap;
class Ball: public RenderObject
{
public:
float x, y;
float w, h;
float vx, vy;
float radius;
virtual void render();
virtual void update(unsigned int timeSinceLastFrame);
Ball();
virtual ~Ball();
void flipXD... |
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include "mosquitto.h"
static void print_usage()
{
printf("Usage: -h host [-p port] [-u username] [-P password] -t topic1 [-t topicN]\n");
printf(" -h: MQTT host to connect to\n");
printf(" -p: MQTT port to co... |
using Hyper.NodeServices.Contracts;
namespace Hyper.NodeServices.Extensibility.EventTracking
{
<summary>
Event arguments passed to an implementation of <see cref="<API key>"/> when the <see cref="IHyperNodeService"/> finishes executing the current task.
</summary>
public interface <API key> : IHyperNode... |
package de.cebitec.readxplorer.<API key>.wizard;
import de.cebitec.readxplorer.databackend.dataobjects.PersistentTrack;
import de.cebitec.readxplorer.ui.dialogmenus.<API key>;
import de.cebitec.readxplorer.ui.dialogmenus.<API key>;
import de.cebitec.readxplorer.ui.dialogmenus.<API key>;
import java.awt.Component;
impor... |
#pragma once
#define <API key> // use the better font on full graphic displays.
namespace Language_hr {
using namespace Language_en; // Inherit undefined strings from English
constexpr uint8_t CHARSIZE = 2;
PROGMEM Language_Str LANGUAGE = _UxGT("Croatian");... |
package com.fr.design.gui.syntax.ui.rsyntaxtextarea;
import java.awt.Color;
import java.awt.Container;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.Toolkit;
import java.util.Map;
import java.util.regex.Pattern;
import java.util.regex.<API key>;
import javax.swing.*;
import ja... |
#include "utf8.hpp"
#include "utf8/utf8.h"
#include <cstring>
namespace core
{
UTF8String::UTF8String()
{}
UTF8String::UTF8String(const UTF8String& cp)
: m_src(cp.m_src)
{}
UTF8String::UTF8String(const std::string& src)
: m_src(src)
{}
UTF8String::~UTF8String()
{
}
... |
<?php
/**
* \file T_Courses.php
* \brief Associates an \e integer constant to each type of courses.
*/
error_reporting(E_ALL);
if (0 > version_compare(PHP_VERSION, '5'))
{
die('This file was written for PHP 5');
}
define("CM", 0);
define("TD", 1);
define("TP", 2);
define("CONFERENCE", 3);
define("EXAMEN", 4);
de... |
package engine
import (
"errors"
"fmt"
"sort"
"strings"
"time"
"github.com/cgrates/cgrates/config"
"github.com/cgrates/cgrates/utils"
)
// Can hold different units as seconds or monetary
type Balance struct {
Uuid string //system wide unique
ID string // account... |
package com.earth2me.essentials.textreader;
import com.earth2me.essentials.CommandSource;
import com.earth2me.essentials.I18n;
import static com.earth2me.essentials.I18n._;
import java.util.List;
import java.util.Locale;
import java.util.Map;
public class TextPager
{
private final transient IText text;
private ... |
#include "base/trace_event/trace_log.h"
#include <algorithm>
#include <cmath>
#include <memory>
#include <utility>
#include "base/base_switches.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/debug/leak_annotations.h"
#include "base/lazy_instance.h"
#include "base/location.h"
#include "base/macr... |
package org.eclipse.emf.mwe2.runtime;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Matches {
String value();
} |
package adams.core.logging;
import java.util.logging.Handler;
import java.util.logging.LogRecord;
/**
* Combines multiple handlers.
*
* @author FracPete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public class MultiHandler
extends AbstractLogHandler {
/** the logging handlers to use. */
prot... |
package org.saga.shape;
import org.bukkit.Material;
import org.bukkit.block.Block;
import java.util.HashSet;
public class BlockFilter implements ShapeFilter {
/**
* Materials.
*/
private HashSet<Material> materials = new HashSet<>();
/**
* If true then the check will return the reverse result... |
package org.activityinfo.ui.client.component.importDialog.validation;
import com.google.gwt.user.cellview.client.DataGrid;
import com.google.gwt.user.cellview.client.TextHeader;
import com.google.gwt.user.client.ui.ResizeComposite;
import org.activityinfo.core.shared.importing.validation.ValidationResult;
import org.ac... |
// ccallsign.h
// xlxd
// This file is part of xlxd.
// xlxd is free software: you can redistribute it and/or modify
// (at your option) any later version.
// xlxd is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#ifndef ccallsign_h
#de... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>AFL Match Statistics : GWS defeats Richmond at Spotless Stadium Round 17 Saturday, 14th July 2018</TITLE>
<meta NAME="description" CONTENT="GWS defeats Richmond at Spotless Stadium Round 17 Saturday, 14th July 2018 AFL match statistics... |
#include <stdlib.h>
#include "src/common_cpp/Recon/Bayes/JointPDF.hh"
#include "src/common_cpp/Recon/Bayes/PDF.hh"
#include "gtest/gtest.h"
namespace MAUS {
class JointPDFTest : public ::testing::Test {
protected:
JointPDFTest() {}
virtual ~JointPDFTest() {}
virtual void SetUp() {
// Sets up a JointPDF obje... |
package forestry.apiculture.gui;
import net.minecraft.entity.player.InventoryPlayer;
import forestry.apiculture.multiblock.TileAlvearyPlain;
import forestry.core.gui.ContainerTile;
import forestry.core.network.PacketGuiUpdate;
public class ContainerAlveary extends ContainerTile<TileAlvearyPlain> {
public ContainerA... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Xml;
using System.Diagnostics;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace RunMusicOpenWPF {
publi... |
var com = com || {};
com.hiyoko = com.hiyoko || {};
com.hiyoko.component = com.hiyoko.component || {};
com.hiyoko.component.UlList = function($html){};
com.hiyoko.util.extend(com.hiyoko.component.ApplicationBase, com.hiyoko.component.UlList);
com.hiyoko.component.UlList.prototype.renderDefaultLi = function($li, item) {... |
#define DOTNET20
#define UNMANAGED
#define COMPRESS
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Runtime.InteropServices;
using System.Security.Permissions;
#if !WINCE
using FILETIME=System.Runtime.InteropServices.ComTypes.FILETIME;
#elif WINCE
using FILETIME... |
#!python
# log/urls.py
from django.conf.urls import url
from . import views
# We are adding a URL called /home
urlpatterns = [
url(r'^$', views.home, name='home'),
url(r'^clients/$', views.clients, name='clients'),
url(r'^clients/(?P<id>\d+)/$', views.client_detail, name='client_detail'),
url(r'^clients... |
/* Written by Eric Blake. */
#include <config.h>
#include "verror.h"
#include "xvasprintf.h"
#include <errno.h>
#include <stdarg.h>
#include <stdlib.h>
#if ENABLE_NLS
# include "gettext.h"
# define _(msgid) gettext (msgid)
#endif
#ifndef _
# define _(String) String
#endif
/* Print a message with 'vfprintf (stderr, FOR... |
package cide.gast;
import java.util.ArrayList;
public class ASTStringNode extends ASTNode {
private String value;
public ASTStringNode(String value, IToken token) {
super(new ArrayList<Property>(), token, token);
this.value = value;
}
public String getValue() {
return value;
... |
#ifndef _INC_SDKDDKVER
#define _INC_SDKDDKVER
/* _WIN32_WINNT */
#define _WIN32_WINNT_NT4 0x0400
#define _WIN32_WINNT_WIN2K 0x0500
#define _WIN32_WINNT_WINXP 0x0501
#define _WIN32_WINNT_WS03 0x0502
#define _WIN32_WINNT_WIN6 0x0600
#define _WIN32_WINNT_VISTA 0x0600
#define _WIN3... |
from __future__ import division, print_function, absolute_import
import unittest
from .. import common
import tempfile
import os
import platform
import numpy as num
from pyrocko import util, model
from pyrocko.pile import make_pile
from pyrocko import config, trace
if common.have_gui(): # noqa
from pyrocko.gui.qt_... |
title: USB camera
categories: [Hardware, Webcam]
tags: [webcam, live, picture]
image:
path: /assets/img/USB_Webcam.webp
src: /assets/img/USB_Webcam.webp
alt: "USB camera"
device_type: Still picture
device_address: "Enter the device path<br />Ex: `/dev/video0`"
## Information
Use any USB webcam that is supported b... |
# Executa somatorio sobre uma colecao
module <API key>
def ordenar
sort!
true
end
end |
#!/usr/bin/python
# bigcinemas
class InvalidAge(Exception):
def __init__(self,age):
self.age = age
def validate_age(age):
if age < 18:
raise InvalidAge(age)
else:
return "Welcome to the movies!!"
age = int(raw_input("please enter your age:"))
#print validate_age(age)
try:
validat... |
#include "querycondition.h"
queryCondition::queryCondition(const QString &fieldName, const conditionOperator condition, const QStringList &values, QObject *parent) : QObject(parent)
{
_fieldName = fieldName;
_condition = condition;
_values = values;
}
queryCondition::~queryCondition()
{
}
QString queryCondi... |
<?php
// No direct access.
defined('_JEXEC') or die;
class <API key> extends JControllerLegacy
{
public function getModel($name = 'timesheet', $prefix = 'PktimeModel', $config = array())
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
return $model;
}
public... |
package v2ch10.compiler;
import java.io.<API key>;
import java.io.OutputStream;
import java.net.URI;
import javax.tools.<API key>;
public class ByteArrayJavaClass extends <API key> {
private <API key> stream;
public ByteArrayJavaClass(String name) {
super(URI.create("bytes:///" + name), Kind.CLASS);
t... |
package jeffraytracer.surfaces;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
import jeffraytracer.Ray;
import jeffraytracer.Vector3D;
import org.junit.Test;
/**
* Test for the Box class.
... |
#include "config.h"
#include "miner.h"
#include "pool.h"
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
char* get_pool_name(struct pool *pool) {
if (opt_incognito)
return "<pool>";
if (strcmp(pool->name, "") == 0)
return pool->sockaddr_url;
return pool->name;
}
char* get_pool_us... |
// Purpose:
// $NoKeywords: $
#ifndef DATAMAP_H
#define DATAMAP_H
#ifdef _WIN32
#pragma once
#endif
#ifndef VECTOR_H
#include "vector.h"
#endif
// SINGLE_INHERITANCE restricts the size of CBaseEntity <API key> to 4 bytes
class SINGLE_INHERITANCE CBaseEntity;
struct inputdata_t;
typedef enum _fieldtypes
{
FIELD_VOID... |
#ifndef <API key>
#define <API key>
#include <datetime/clock.h>
#include <datetime/planner.h>
#include <datetime/settings.h>
#include <memory>
namespace unity {
namespace indicator {
namespace datetime {
/**
* A planner to hold 'Snooze' copies of other appointments
*/
class SnoozePlanner: public Planner
{
public:
... |
\hypertarget{<API key>}{}\section{nlohmann\+:\+:detail\+:\+:is\+\_\+compatible\+\_\+integer\+\_\+type\+\_\+impl$<$ bool, typename, typename $>$ Struct Template Reference}
\label{<API key>}\index{nlohmann\+::detail\+::is\+\_\+compatible\+\_\+integer\+\_\+type\+\_\+impl$<$ bool, typename, typename $>$@{nlohmann\+::detail... |
<!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"/>
<title>GNU Radio 3.6.4.2 C++ API: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesh... |
package org.cardiacatlas.xpacs.repository;
import org.cardiacatlas.xpacs.domain.PatientInfo;
import org.springframework.data.jpa.repository.*;
import java.util.List;
/**
* Spring Data JPA repository for the PatientInfo entity.
*/
@SuppressWarnings("unused")
public interface <API key> extends JpaRepository<PatientInfo... |
#include "OffsetableBranch.h"
OffsetableBranch::OffsetableBranch(Compiler* compiler, std::shared_ptr<SegmentBranch> segment_branch, std::string type, std::string value) : ChildOfSegment(compiler, segment_branch, type, value)
{
this-><API key> = NULL;
}
OffsetableBranch::~OffsetableBranch()
{
}
void OffsetableBranch... |
// -*- Mode: Go; indent-tabs-mode: t -*-
package ifacetest
import (
. "gopkg.in/check.v1"
"github.com/snapcore/snapd/dirs"
"github.com/snapcore/snapd/interfaces"
"github.com/snapcore/snapd/snap"
"github.com/snapcore/snapd/snap/snaptest"
)
type BackendSuite struct {
Backend interfaces.Sec... |
Fox.define('language', [], function () {
var Language = function (cache) {
this.cache = cache || null;
this.data = {};
};
_.extend(Language.prototype, {
data: null,
cache: null,
url: 'I18n',
has: function (name, category, scope) {
if (scope in this... |
// Created : 04.03.2010
// Author : Dmitriy Iassenev
#ifndef <API key>
#define <API key>
#include "<API key>.h"
#include "base_interpolator.h"
namespace xray {
namespace animation {
namespace mixing {
class <API key> : public <API key> {
public:
inline <API key> ( base_inte... |
#ifndef __DICO_H__
#define __DICO_H__
#include "types.h"
enum {DICO_ESUCCESS=0, DICO_ENOENT, DICO_EINVAL, DICO_EBADSIZE, DICO_EFULL, DICO_EMEM, DICO_EDUPLICATE, DICO_EINVALCHAR};
enum {DICTYPE_NULL=0, DICTYPE_U8, DICTYPE_U16, DICTYPE_U32, DICTYPE_U64, DICTYPE_DATA, DICTYPE_STRING};
struct s_dico;
struct s_dicoitem;
typ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.