answer stringlengths 15 1.25M |
|---|
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#ifdef _WIN32
#include <io.h>
#include <fcntl.h>
#define pipe(fds) _pipe(fds, 4096, _O_BINARY)
#endif
#include "libsigrok.h"
#include "libsigrok-internal.h"
/* Message logging helpers with driver-specific prefix string. */
#define DRIVER_LOG_DOMAIN "demo: "
#d... |
const Scatter = {
/**
* renders a graphic
* @param: ctx - canvas object
* @param: data - object those need to be displayed
* @param: point0 - top left point of a chart
* @param: point1 - right bottom point of a chart
* @param: sIndex - index of drawing chart
* @param: map... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_06) on Fri Jun 27 05:04:04 GMT 2008 -->
<TITLE>
Recorder.<API key> (Apache Ant API)
</TITLE>
<META NAME="date" CONTENT="2008-06-27">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRI... |
// graph-tool -- a general graph modification and manipulation thingy
// This program is free software; you can redistribute it and/or
// as published by the Free Software Foundation; either version 3
// This program is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPO... |
package de.dumischbaenger.ws;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlSchemaType;
import... |
#ifndef MSG_POST_OFFICE_H
#define MSG_POST_OFFICE_H
#include <msg_postbox.h>
#include <msg_thread.h>
#include <msg_heap.h>
#include <msg_util.h>
#include <msgh.h>
#include <limits.h>
#include <stdatomic.h>
#define POST_OFFICE_MAGIC 0x0000046702796924U
#define <API key> 0
#define <API key> 1
#define <API key> 2
struct... |
<?php
$valorTotal = 0;
$valorTotal += 100;
$valorTotal += 25;
echo $valorTotal; |
<?php
require_once(ROOT_DIR . 'Domain/Access/ResourceRepository.php');
class TestResourceDto extends ResourceDto
{
public function __construct($id = 1,
$name = 'testresourcedto',
$canAccess = true,
$scheduleId = 1,
... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_112-release) on Mon Nov 28 15:49:25 MST 2016 -->
<title>R.mipmap</title>
<meta name="date" content="2016-11-28">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/j... |
Joomla 3.3.3 = <API key>
Joomla 3.6.4 = <API key>
Joomla 3.2.1 = <API key>
Joomla 3.7.3 = <API key> |
#include <oa_common.h>
#include <ASICamera2.h>
#include <openastro/camera.h>
#include <openastro/util.h>
#include "unimplemented.h"
#include "oacamprivate.h"
#include "ZWASI.h"
#include "ZWASI2oacam.h"
#include "ZWASI2private.h"
static const char *cameraNames[ ZWO_NUM_CAMERAS ] = {
"ZWO ASI030MC", "ZWO ASI031MC", "ZW... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>tests — WindMultipliers v1.0 documentation</title>
<link rel="stylesheet" href="../_static/default.css" type="text/css" />
... |
package net.sf.jasperreports.engine.fill;
/**
* @author Teodor Danciu (teodord@users.sourceforge.net)
*/
public interface TextFormat
{
public String getValueClassName();
public String getPattern();
public String <API key>();
public String getLocaleCode();
public String getTimeZoneId();
} |
package shadowmage.ancient_warfare.client.render.vehicle;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
import shadowmage.ancient_warfare.client.model.<API key>;
import shadowmage.ancient_warfare.client.render.RenderVehicleBase;
import shadowmage.ancient_warfare.common.vehicles.VehicleBase;
import shadowm... |
// contact: rrguadagno@gmail.com
// This file is part of French-Roast
// French-Roast is free software: you can redistribute it and/or modify
// (at your option) any later version.
// French-Roast is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See... |
#!/usr/bin/python
# FileName: memory_cfg.py
# File Description:
# st71xx platform memory config script
# Modify History:
# Version Date Author Description
# 1.0 2008-12-16 wuzhengbing Create
# 1.1 2008-12-24 wuzhengbing increase AVMEM_SYS and driver partition size
#... |
<!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.11"/>
<title>atlas: /home/ran/atlas_project/<API key>/sources/io/interactive_lietype.h File Reference</t... |
/**
Abel HZO 2016
CSS for form contact and table.
*/
* {
font-family: verdana;
}
form {
width: 300px;
margin: auto;
}
input[type="text"],
input[type="email"],
textarea {
display: block;
width: 100%;
padding: 6px;
border: 1px solid rgba(0, 0, 0, .5);
margin: 0 auto 20px auto;
... |
<?php
// security - hide paths
if (!defined('ADODB_DIR')) die();
class ADODB_sybase extends ADOConnection {
var $databaseType = "sybase";
var $dataProvider = 'sybase';
var $replaceQuote = "''"; // string to use to replace quotes
var $fmtDate = "'Y-m-d'";
var $fmtTimeStamp = "'Y-m-d H:i:s'";
var... |
<?php
class Awf_Acl {
/**
* Hier worden de roles (rollen) opgeslagen
*
* @var array
*/
protected $roles = array();
/**
* Opslag van de resources
*
* @var array
*/
protected $resources = array();
/**
* Snelmethod om een role of resource toe te voegen
... |
package dualcraft.org.server.classic.cmd.impl;
import dualcraft.org.server.classic.cmd.Command;
import dualcraft.org.server.classic.cmd.CommandParameters;
import dualcraft.org.server.classic.model.Player;
/**
* Official /deop command **NEEDS PERSISTENCE**
*
*/
public class KickCommand extends Command {
/**
... |
package gtp
import (
"fmt"
"os"
"strconv"
. "github.com/foozea/isana/board/size"
. "github.com/foozea/isana/board/stone"
. "github.com/foozea/isana/board/vertex"
. "github.com/foozea/isana/control"
. "github.com/foozea/isana/position/move"
"github.com/foozea/isana/engine"
"github... |
<?xml version="1.0" encoding="utf-8"?>
<html>
<head>
<title>GLib.Socket.get_broadcast -- Vala Binding Reference</title>
<link href="../style.css" rel="stylesheet" type="text/css"/><script src="../scripts.js" type="text/javascript">
</script>
</head>
<body>
<div class="site_header">GLib.Socket.get_... |
html
{
font-family: "Verdana", "Arial", sans-serif;
}
.floatLeft
{
float: left !important;
}
.floatRight
{
float: right !important;
}
.newRow
{
clear: both;
}
#formsWrapper,
#formsWrapper *
{
margin: 0;
/*padding: 0;*/
position: relative;
font-size: 1em;
float: left;
}
.formerita
{
... |
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
namespace Geekbot.Core.Localization {
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
... |
package game;
abstract class C_100140_bj implements C_100308_lh
{
private long field_102965_d;
static String field_102969_a;
static int field_102966_e;
static int field_102963_f;
static int field_102967_b;
static int[] field_102968_c;
static C_100037_wb field_102964_g;
private static fin... |
#include "sd_stm32f2_f4.h"
#include "interfaces/bsp.h"
#include "interfaces/arch_registers.h"
#include "kernel/scheduler/scheduler.h"
#include "interfaces/delays.h"
#include "kernel/kernel.h"
#include "board_settings.h" //For sdVoltage and SD_ONE_BIT_DATABUS definitions
#include <cstdio>
#include <cstring>
#include <er... |
tween = require("lib/tween/tween")
require("states/pauseState")
-- Components
require("components/positionComponent")
require("components/playerNodeComponent")
require("components/drawableComponent")
require("components/<API key>")
require("components/stringComponent")
require("components/<API key>")
require("component... |
#include "common/platform.h"
#include "master/<API key>.h"
#include <cstdarg>
#include <cstdint>
#include "common/attributes.h"
#include "common/event_loop.h"
#include "master/changelog.h"
#include "master/chunks.h"
#include "master/filesystem.h"
#include "master/filesystem_checksum.h"
#include "master/<API key>.h"
#in... |
package com.example.dinabenayad_cherif.finalproject;
/**
* Utility class to perform a fast fourier transform without allocating any
* extra memory.
*
* @author Mike Mandel (mim@ee.columbia.edu)
*/
//I removed some unused variables to get rid of warnings
//Xiaochao
public class FFT {
int n, m;
// Lookup tab... |
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
#ifndef <API key>
#define <API key>
#include <cxxtest/TestSuite.h>
#include "MantidAlgorithms/CalculateSlits.h"
using namespace Mantid::Algorithms;
namespace {
double roundFour(double i) { return floor(i * 10000 + 0.... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "local_paths.h"
//a bit hacked, but it works:
#include <textcat.c>
//Reason: Datatypes required for <API key> are declared in .c file
int text_is_english(void *tc, const char *text, size_t text_size) {
if (tc == NULL) {
fprintf(stderr, "textcat h... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import logging
import argparse
#import subprocess
import json
import pywemo
import urllib.request
import urllib.error
import urllib.parse
import socketserver
from datetime import datetime
__version__ = '0.93'
logging.basicConfig(level=logging.DEBUG,
... |
package cis501.submission;
import cis501.*;
import org.junit.Before;
import org.junit.Test;
import java.util.LinkedList;
import java.util.List;
import static org.junit.Assert.assertEquals;
public class <API key> {
// TODO: replace the path of trace file here
private static final String TRACE_FILE = "//home//lui... |
# -*- coding: utf-8 -*-
# diffoscope: in-depth comparison of files, archives, and directories
# diffoscope is free software: you can redistribute it and/or modify
# (at your option) any later version.
# diffoscope is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ... |
package de.rallye.exceptions.mappers;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import javax.ws.rs.<API key>;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
@Provider
public class <API key> implements
Exception... |
<?php
//Include the passwords and shit in this file
include("../model/php/variables.php");
// TODO: Need to verifiy that the user input is correct before passing it to the included file
if(isset($_GET['page']) && $_GET['page'] == "article"){ // Done ! :D
$article_id = (int)$_GET['article'];
include("../model/ph... |
package org.thoughtcrime.securesms;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Handler;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
impo... |
#include <wx/wx.h>
#include <wx/filename.h>
#include <ngpcore/p3dsplineio.h>
#include <p3dappprefs.h>
#include <p3dwxcurvectrl.h>
enum
{
<API key> = wxID_HIGHEST + 1,
P3D_ID_EXPORT ,
P3D_ID_IMPORT
};
unsigned int P3DCurveCtrl::BestWidth = <API key>;
unsigned int P3DCurveCtrl::BestHei... |
#include "arcPolyPatch.H"
#include "<API key>.H"
namespace Foam
{
<API key>(arcPolyPatch, 0);
<API key>(polyPatch, arcPolyPatch, word);
<API key>(polyPatch, arcPolyPatch, dictionary);
}
// * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * * * * //
Foam::arcPolyPatch::arcPolyPatch
(
con... |
using System.Text;
using DSharpPlus.Entities;
using DSharpPlus.Interactivity;
using TheGodfather.Modules.Games.Extensions;
namespace TheGodfather.Modules.Games.Common;
public sealed class TicTacToeGame : BaseBoardGame
{
public TicTacToeGame(<API key> interactivity, DiscordChannel channel, DiscordUser p1, DiscordUse... |
CodeInject
=======
[ allows code injection into any managed assembly without disassembling and recompiling it. It eases the inevitable task of injecting any code in single or multiple methods in one or many assemblies to int... |
package org.fhcrc.matsen.startree;
import cern.jet.math.Functions;
import dr.evolution.alignment.Alignment;
import net.sf.samtools.SAMFileHeader;
import net.sf.samtools.SAMRecord;
import net.sf.samtools.SAMSequenceRecord;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class <AP... |
<?php
namespace Statusengine\Generators;
use Statusengine\Exceptions\<API key>;
use Statusengine\ValueObjects\<API key>;
class ExternalCommandArgs {
private $supportedCommands = [
'<API key>',
'<API key>',
'<API key>',
'<API key>',
'<API key>',
'<API key>',
'<... |
package tomoBay.model.services.reScanErrorsService;
import java.util.List;
import tomoBay.model.sql.queries.QueryInvoker;
import tomoBay.model.sql.queries.QueryInvoker.QueryType;
/**
* This class encapsulates all the interactions that this class has with the database.
* @author Jan P.C. Hanson
*
*/
public class <AP... |
<html>
<head>
<title>Patient Form Query</title>
</head>
<body>
<form action="/formWithName.php" method="get">
<p>Patient name:<br>
<input type="text" name="name"></p>
<p>Home town:<br>
<input type="text" name="town"></p>
<p>Resolution:<br>
<select name="dp... |
using System.Collections.Generic;
using Common.Testing;
using FluentAssertions;
using Game.Data;
using Ploeh.AutoFixture;
using Xunit.Extensions;
namespace Testing.PlayerTests
{
public class AchievementListTest
{
[Theory, AutoNSubstituteData]
public void <API key>(Fixture fixture, AchievementLis... |
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using ConEmu.WinForms;
using GitCommands;
using GitCommands.Logging;
using GitCommands.Utils;
using GitExtUtils;
namespace GitUI.UserControls
{
<summary>
An output control which inserts a fully-func... |
package com.trickl.graph.planar;
import com.trickl.graph.edges.DirectedEdge;
import java.util.Set;
/**
* A planar graph that associates a face class instance to every logical
* face.
* @author tgee
* @param <V> Vertex type
* @param <E> Edge type
* @param <F> Face type
*/
public interface PlanarFaceGraph <V, E, F... |
# BlenderRenderFarm
This is a forray into creating a blender render farm using a bit of Java and any spare computers that are on the same network.
The goal of this project is to make setting up a blender render farm simple for simple projects. The network render option in Blender can be a bit complicated to get setup c... |
package engineer.maxbarraclough.txtshuffle.gui;
import engineer.maxbarraclough.txtshuffle.backend.TxtShuffle;
import engineer.maxbarraclough.txtshuffle.backend.VectorConversions;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.OutputStream;
import java.math.BigInteger;
import ... |
using System;
using Server.Targeting;
using Server.Network;
namespace Server.Spells.Fifth
{
public class ParalyzeSpell : MagerySpell
{
private static SpellInfo m_Info = new SpellInfo(
"Paralyze", "An Ex Por",
218,
9012,
Reagent.Garlic,
... |
/* see the COPYING file in the top-level directory.*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
#include"ut.h"
#ifdef HAVE_OPENMP
#include <omp.h>
#endif /* HAVE_OPENMP */
#ifdef HAVE_MUPARSER
#include "muParser.h"
#endif
void ut_math_functions (char ***pfcts, int *pfctqty);
int <API key... |
<?php
// Moodle is free software: you can redistribute it and/or modify
// (at your option) any later version.
// Moodle is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
require_once("$CFG->libdir/xmlize.php");
require_once($CFG->dirroot.'/lib/uploadlib... |
#include "objcommon.h"
#ifdef GCC
#line __LINE__ "assoc"
#endif
/*
new assoc object from two arrays (zip)
*/
assoc_t* assoc_new (const array_t* const a, const array_t* const b) {
pfn();
assoc_t* assoc = alloc(assoc_t, 1);
assoc->idx = -1;
assoc->data = NULL;
if ( a && b ) {
size_t idx = size_t_min(arra... |
## void init() {: #init }
This is a virtual function. It is meant to be overloaded by derived classes if they need to initialize internal variables. The default constructor of derived objects should *never* be overloaded.
* **function definition:**
virtual void init()
* **parameters:** NONE
* **output:** (void)... |
package org.flowerplatform.codesync.as.adapter;
import org.apache.flex.compiler.definitions.references.IReference;
import org.flowerplatform.codesync.CodeSyncAlgorithm;
import org.flowerplatform.codesync.adapter.file.<API key>;
import org.flowerplatform.core.CoreConstants;
/**
* Mapped to {@link IReference}.
*
* @au... |
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# This file is part of qutebrowser.
# qutebrowser is free software: you can redistribute it and/or modify
# (at your option) any later version.
# qutebrowser is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See ... |
<?php
$flash_url = url($<API key>, array(
'query' => array('url' => $captcha_url),
'external' => TRUE,
));
$switch_verify = t('Switch to image verification.');
$instructions = t('Enter only the first letter of each word you hear. If you are having trouble listening in your browser, you can <a href="@captcha-url" i... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>NREL MatDB Flat File Database Overview — nrelmat 1.0.0 documentation</title>
<link rel="stylesheet" href="_static/default.css... |
<?php
/**
* Module Header page
*
* @author Brian Peterson
*
* $Id: gpg_module_header.php,v 1.10 2004/01/09 18:27:15 brian Exp $
*/
if (!defined ('SM_PATH')){
if (file_exists('./gpg_functions.php')){
define ('SM_PATH' , '../../');
} elseif (file_exists('../gpg_functions.php')){
define ('SM_... |
#ifndef __VOICECOMMAND_H__
#define __VOICECOMMAND_H__
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <boost/regex.hpp>
#include <vector>
#include <string>
#include <curl/curl.h>
#include <termios.h>
#include <unistd.h>
#include <sstream>
#define DATA_SIZE 200
#define DURATION_DEF... |
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("p3_basico")]
[assembly: AssemblyDescription("")]
[assembly: <API key>("")]
[assembly: AssemblyCompan... |
package com.StaticVoidGames.spring.controller;
import java.io.File;
import javax.servlet.ServletContext;
import org.apache.commons.io.FileUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.ui.ModelMap;
import org.springframew... |
package rancraftPenguins;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
//import net.minecraft.block.BlockCloth;
import net.minecraft.block.BlockColored;
import net.minecraft.entity.Entity;
import net.minecraft.en... |
C+*********************************************************** comv-ch2.f
Ch***********************************************************************
SUBROUTINE CheckFan()
C***********************************************************************
C Purpose: CheckFan checks the characteristic of the fan
C Th... |
//#include "mcp_io.h"
#include "display.h"
#include "timerTask.h"
#include "ledGrid.h"
#define OFF false
#define ON true
#define DEF_BLINK_TIME 500
#define SW_ONOFF_MIN_TIME 50
#define SNDBUFF_LEN 10
#define SNDCMD_TIME 100
#define writeSound(b) mcpWritePB(3, b)
#define write4Lamps(a, b) mcpWrite(1, ( mux16[a]<<4) | ... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="he" version="2.0">
<context>
<name>ACLJobDelegate</name>
<message>
<location filename="../src/libtomahawk/jobview/AclJobItem.cpp" line="67"/>
<source>Allow %1 to
connect and stream from you?</source>
<translation type="unfinished"/>
</... |
// This software is provided 'as-is', without any express or implied
// arising from the use of this software.
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
// 1. The origin of this software must not be misrepresented; you must not
// clai... |
#include <stdint.h>
/* define compiler specific symbols */
#if defined ( __CC_ARM )
#define __ASM __asm /*!< asm keyword for armcc */
#define __INLINE __inline /*!< inline keyword for armcc */
#elif defined ( __ICCARM__ )
#define __ASM __asm ... |
#include "<API key>.h"
#include <cassert>
#include "src/io/AnsiColors.h"
#include "src/i18n/notr.h"
<API key>::<API key> (const QSqlError &error,
AbstractInterface::<API key> statement):
SqlException (error), statement (statement)
{
}
<API key> *<API key>::clone () const
{
return new <API key> (error, state... |
#include"hpmlogic.h"
#include<arm_neon.h>
HPM_IMP(hpmboolean, hpm_vec_eqfv, hpmvecf a, hpmvecf b){
return vceqs_f32(a, b);
}
HPM_IMP(hpmboolean, hpm_vec_neqfv, hpmvecf a, hpmvecf b){
return !vceqs_f32(a, b);
}
HPM_IMP(void, hpm_vec4_com_eqfv, const hpmvec4f* HPM_RESTRICT a, const hpmvec4f* HPM_RESTRICT b, hpmve... |
#!/usr/bin/env python
import mirheo as mir
ranks = (1, 1, 1)
domain = (4, 4, 4)
u = mir.Mirheo(ranks, domain, debug_level=3, log_filename='log', no_splash=True)
u.<API key>("tasks.full", current=False)
# sTEST: dump.graph.full
# cd dump
# rm -rf tasks.graphml
# mir.run --runargs "-n 1" ./graph.full.py
# cat tasks.full... |
package org.worldgrower.creaturetype;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.worldgrower.Constants;
import org.worldgrower.TestUtils;
import org.worldgrower.WorldObject;
import org.worldgrower.attribute.IdList;
import org.worldgrower.condition.VampireUtils;
import org.worldgrower... |
console.log(solve(process.argv));
function solve (arguments) {
return calcCylinderVol(arguments.slice(2));
}
function calcCylinderVol (arguments) {
var
radius = +arguments[0],
height = +arguments[1]
;
return (radius * radius * Math.PI * height).toFixed(3);
} |
/**
* Configuration_adv.h
*
* Advanced settings.
* Only change these if you know exactly what you're doing.
* Some of these settings can damage your printer if improperly set!
*
* Basic settings can be found in Configuration.h
*
*/
#ifndef CONFIGURATION_ADV_H
#define CONFIGURATION_ADV_H
#define <API key> 01010... |
#if !defined (<API key>)
#define <API key> 1
#ifdef HAVE_LLVM
#include <map>
#include <vector>
#include "Range.h"
#include "jit-util.h"
// Defines the type system used by jit and a singleton class, jit_typeinfo, to
// manage the types.
// FIXME:
// Operations are defined and implemented in jit_typeinfo. Eventually they... |
\hypertarget{struct_can_rx_msg}{}\section{Can\+Rx\+Msg Struct Reference}
\label{struct_can_rx_msg}\index{Can\+Rx\+Msg@{Can\+Rx\+Msg}}
C\+AN Rx message structure definition.
{\ttfamily \#include $<$stm32f10x\+\_\+can.\+h$>$}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item
uint32\+\_\+t \hyperlink{<API k... |
package org.hath.base;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
@RunWith(MockitoJUnitRunner.class)
public class OutTest {
@Mock
private OutListener listener;
@Before
public void setUp() throws... |
package soc.client;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.ConnectException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketAddress;
import java.util.Collection;
import java.util.Locale;
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
... |
var blob;
function setup() {
createCanvas(600, 600);
blob = new Blob();
}
function draw() {
background(0);
blob.show();
} |
require 'package'
class Xzutils < Package
description 'XZ Utils is free general-purpose data compression software with a high compression ratio.'
homepage 'http://tukaani.org/xz/'
version '5.2.5'
compatibility 'all'
source_url 'https://tukaani.org/xz/xz-5.2.5.tar.gz'
source_sha256 '<SHA256-like>'
binary_u... |
package battleUnits;
public class Hero extends Unit{
private life.Hero model;
public Hero(int x, int y, life.Hero model) {
super(x, y);
this.setModel(model);
this.setHpMax(model.getHp());
this.setHpCurrent(this.getHpMax());
}
public life.Hero getModel() {
return m... |
import startbot, stats, os, re, random, sys
import utils
MARKOV_LENGTH = 2
#changes made: allowed it to hook up from the text gotten directly from messages
#changed it to be encompassed in a class structure. Made minor changes to make it Py3.X compatible
class markov():
# These mappings can get fairly large -- they... |
#!/usr/bin/python
# to run an example
# python RunMakeFigures.py -p Demo -i 0 -j 1 -f 3FITC_4PE_004.fcs -h ./projects/Demo
import getopt,sys,os
import numpy as np
## important line to fix popup error in mac osx
import matplotlib
matplotlib.use('Agg')
from cytostream import Model
import matplotlib.pyplot as plt
## parse... |
<!--suppress ALL
<html>
<head>
<title>This is my Title</title>
<meta content="http://facebook.image" property="og:image"/>
<meta content="one, two, three" name="keywords" />
<meta name="keywords" content="Java, Java, Json, MVC, Spring" />
<meta name="no.description" content="should-be-null" />
</hea... |
<?php
/* CAT:Drawing */
/* pChart library inclusions */
include("../class/pDraw.class.php");
include("../class/pImage.class.php");
/* Create the pChart object */
$myPicture = new pImage(700,230);
/* Draw the background */
$Settings = array("R"=>170, "G"=>183, "B"=>87, "Dash"=>1, "DashR"=>190, "DashG"=>203, "Das... |
<html>
<head>
<title>MaildropHost Instantiation</title>
</head>
<body>
<table border="1" cellpadding="2">
<tbody>
<tr>
<td colspan="3"> MaildropHost Instantiation </td>
</tr>
<tr>
<td>open</td>
<td>/manage_main</td>
<td> </td>
</tr... |
window.advancedSettings = {
"debug": false,
"upgradeToSocket": false,
"pages": {
"default": "Home",
"groupingThreshold": 50
},
"epg": {
"width": 20,
"padding": 4
},
"jsonRPC": {
"debug": false
},
"xbmc": {
"debug": false
},
"hom... |
<script type="text/javascript">
/*<![CDATA[*/
$(document).ready(function()
{
$(".<API key>").each().live('click', function()
{
var id = $(this).attr("id");
id = id.replace("<API key>","");
$.ajax(
{
type: "POST",
url: "ajax.php?session_id="+get_array['sess... |
#include "common.h"
#include "test_moves.h"
#include "board_tanbo.h"
#include "point_tanbo.h"
#include "root_tanbo.h"
#include <boost/shared_ptr.hpp>
void MovesTest::test_turn_change() {
boost::shared_ptr<PointTanbo> point = gameboard->at(0, 1);
CPPUNIT_ASSERT( gameboard->is_move_valid(*point, PLAYER_1) );
// Sho... |
#coding:utf-8
from KNNDetector.KNN_Detect import *
import requests
from PIL import Image
import base64
import getpass
def login(username,passwd):
session=requests.session()
session.get('http://wsxk.hust.edu.cn/login.jsp').text
img=session.get('http://wsxk.hust.edu.cn/randomImage.action').content
with op... |
package com.rapidminer.gui.new_plotter.engine.jfreechart.renderer;
import com.rapidminer.gui.new_plotter.engine.jfreechart.<API key>;
import com.rapidminer.gui.new_plotter.utility.DataStructureUtils;
import java.awt.Color;
import java.awt.Paint;
import java.awt.Shape;
import org.jfree.chart.renderer.category.<API key>;... |
using Hood.Extensions;
using Newtonsoft.Json;
using System;
namespace Hood.Models
{
public interface IMetadata
{
string BaseValue { get; }
int Id { get; set; }
string InputDisplayName { get; }
string InputId { get; }
string InputName { get; }
string InputType { ge... |
using Door_of_Soul.Communication.<API key>.EndPoint;
using Door_of_Soul.Communication.Protocol.Internal.Scene;
using Door_of_Soul.Core.<API key>;
using System.Collections.Generic;
namespace Door_of_Soul.Communication.<API key>.Scene
{
public static class SceneEventApi
{
public static void SendEvent(Term... |
#include "<API key>.h"
#include <QtCore/QString>
#include <QtCore/QSet>
#include <QtCore/QtEndian>
QT_BEGIN_NAMESPACE
/*!
\namespace QWebSocketProtocol
\inmodule QtWebSockets
\brief Contains constants related to the WebSocket standard.
\since 5.3
*/
/*!
\enum QWebSocketProtocol::CloseCode
\inmodule QtWe... |
/*
* The Node class is the heart and soul of this implementation. It uses a state
* machine and timers to control the behaviour of the node.
* It uses the FruityMesh algorithm to build up connections with surrounding nodes
*
*/
#pragma once
#include <types.h>
#include <adv_packets.h>
#include <conn_packets.h>
#inc... |
using CP77.CR2W.Reflection;
using FastMember;
using static CP77.CR2W.Types.Enums;
namespace CP77.CR2W.Types
{
[REDMeta]
public class AIFollowSlotDef : <API key>
{
[Ordinal(0)] [RED("slotID")] public <API key> SlotID { get; set; }
[Ordinal(1)] [RED("slotTransform")] public <API key> SlotTrans... |
#include "../../unp.h"
static int servfd;
static int nsec; // #seconds between each alarm.
static int maxnalarms; // #alarms w/no client probe before quit.
static int nprobes; // #alarms since last client probe.
static void sig_urg(int), sig_alrm(int);
void heartbeat_serv(int servfd_arg, int nsec_arg,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.