answer stringlengths 15 1.25M |
|---|
<?php
require_once IA_INCLUDES . 'helpers/ia.category.interface.php';
abstract class <API key> extends abstractModuleFront
{
const ROOT_PARENT_ID = 0;
const COL_PARENT_ID = 'parent_id';
const COL_LEVEL = 'level';
protected $_tableFlat;
protected $_recountEnabled = true;
protected $_recountOption... |
<?php
/**
* \PHPCompatibility\Sniffs\LanguageConstructs\<API key>.
*
* PHP version 5.5
*
* @category PHP
* @package PHPCompatibility
* @author Juliette Reinders Folmer <<API key>@adviesenzo.nl>
*/
namespace PHPCompatibility\Sniffs\LanguageConstructs;
use PHPCompatibility\Sniff;
use <API key> as File;
use <AP... |
%include lhs2TeX.fmt
\usepackage{ stmaryrd }
%format <?> = "~\lightning~" |
*{
font-family: 'Raleway', sans-serif;
}
body{
background: #d6d6d6;
color: #333;
margin: 0;
font-family: 'Raleway', sans-serif;
}
#masterContainer{
width: 100vw;
height: 100vh;
padding: 0;
margin: 0;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
displ... |
// This file is part of ROX Center.
// ROX Center is free software: you can redistribute it and/or modify
// (at your option) any later version.
// ROX Center is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
App.autoModule('globalSettings', function() {... |
@charset "utf-8";
html{
background: FloralWhite;
/*background:#40A0DA; Ivory PowderBlue Lavender Azure Honeydew*/
}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,form,fieldset,input,textarea,p,blockquote,th,td{
margin:0 auto;
padding:0;
}
table{
border-collapse:collapse;
border-spacing:0;
}
a{... |
package com.glory.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Log {
@Id
@GeneratedValue
private Long id;
private Long transactionId;
private String message;
public Log() {
}
public Log(Long id, Long tr... |
::-webkit-scrollbar { width: 8px; height: 8px; }
::-<API key> { background-color: #222; }
::-<API key> { background-color: #ddd; }
.no-select {
user-select: none;
-webkit-user-select: none;
}
html,
body {
height: 100%;
margin: 0;
overflow: hidden;
font-family: var( --gsui-font );
background-... |
<?php
class BugtrackerViews
{
public static function build_body_view(View $view, $current_page, $bug_id = 0, $bug_type = "")
{
$lang = LangLoader::get_all_langs('bugtracker');
$config = BugtrackerConfig::load();
$types = $config->get_types();
$body_view = new FileTemplate('bugtra... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Entidades
{
public class Class1
{
}
} |
package l2s.gameserver.network.l2.s2c;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import l2s.commons.lang.ArrayUtils;
import l2s.gameserver.model.Player;
import l2s.gameserver.model.items.ItemInfo;
import l2s.gameserver.model.items.ItemInstance;
import l2s.gameserver.model.items.Wa... |
# -*- coding: utf-8 -*-
from django.contrib import admin
from models import FileMapping
# Register your models here.
admin.site.register(FileMapping) |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Aviso de Privacidad</title>
<!... |
<?php
namespace BoldtWebservice\Component\BwPostman\Administrator\Field;
defined('JPATH_PLATFORM') or die;
use BoldtWebservice\Component\BwPostman\Administrator\Helper\BwPostmanHelper;
use Exception;
use Joomla\CMS\Factory;
use Joomla\CMS\Form\Field\RadioField;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
use ... |
#ifndef __BACKTRACE_H__
#define __BACKTRACE_H__
#include <stdint.h>
void __backtrace(uintptr_t rbp, uintptr_t stack_begin, uintptr_t stack_end);
uintptr_t stack_begin(void);
uintptr_t stack_end(void);
void backtrace(void);
#endif /*__BACKTRACE_H__*/ |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="ro">
<head>
<!-- Generated by javadoc (version 1.7.0_80) on Mon Jun 20 18:37:10 EEST 2016 -->
<title>SimplePrintPart (JasperReports 6.3.0 API)</title>
<meta name="date" content="2016-06-20">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" ti... |
#include <assert.h>
#include <stdint.h>
#include <stdatomic.h>
#include <pthread.h>
atomic_int vars[3];
atomic_int atom_0_r3_2;
atomic_int atom_1_r1_1;
void *t0(void *arg){
label_1:;
<API key>(&vars[0], 2, <API key>);
int v2_r3 = <API key>(&vars[0], <API key>);
int v3_r4 = v2_r3 ^ v2_r3;
<API key>(&vars[1+v3_r4... |
<?php
namespace App\Model\Table;
use App\Model\Entity\Guest;
use Cake\ORM\Query;
use Cake\ORM\RulesChecker;
use Cake\ORM\Table;
use Cake\Validation\Validator;
/**
* Guests Model
*
* @property \Cake\ORM\Association\BelongsTo $Matchteams
* @property \Cake\ORM\Association\BelongsToMany $Hosts
*/
class GuestsTable ext... |
<?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('../../config.php');
require_once($CFG->dirroot.'/mod/scorm/locallib.p... |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Richard Benson In Memory</title>
<link rel="stylesheet" hre... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// Force to "any" type, otherwise TypeScript thinks the type is too strict
exports.<API key> = {
type: 'object',
properties: {
time: {
required: true,
type: 'number'
},
bioFilterReplaced:... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
namespace Chess
{
public abstract class Screen : UserControl
{
public ScreenControl parentWindow;
public ScreenControl ParentWindow { get { return parentWindow; } }
protec... |
package com.habitrpg.android.habitica.ui.activities;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.desig... |
<?php
namespace hemio\html;
class Figure extends Abstract_\ElementContent
{
use Trait_\<API key>;
public static function tagName()
{
return 'figure';
}
public function blnIsBlock()
{
return true;
}
} |
#ifndef <API key>
#define <API key>
#include "script_interface/ScriptInterface.hpp"
#include "core/comfixed_global.hpp"
namespace ScriptInterface {
class ComFixed : public AutoParameters<ComFixed> {
public:
ComFixed() {
add_parameters({{"types",
[](Variant const &v) {
c... |
package org.structr.core.function;
import org.structr.common.error.FrameworkException;
import org.structr.common.error.SemanticErrorToken;
import org.structr.core.GraphObject;
import org.structr.core.app.StructrApp;
import org.structr.core.property.PropertyKey;
import org.structr.schema.action.ActionContext;
import org... |
package com.risevision.gcslogs.delete;
import com.risevision.gcslogs.auth.<API key>;
import java.util.logging.Logger;
import java.util.Map;
import java.util.HashMap;
import org.junit.*;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
import static com.risevision.gcslogs.BuildConfig.*;
publi... |
package org.maxgamer.rs.model.skill.prayer;
import java.util.LinkedList;
/**
* @author netherfoam, alva
*/
public enum PrayerGroup {
//Standard prayer book
/** All prayers that boost defense */
DEFENSE(PrayerType.THICK_SKIN, PrayerType.ROCK_SKIN, PrayerType.STEEL_SKIN, PrayerType.CHIVALRY, PrayerType.PIET... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Colorinator</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=410">
<!-- jQuery -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquer... |
import ast
import json
import arrow
import elasticsearch
from bson import ObjectId
from flask import request
from eve.utils import config
from eve.io.base import DataLayer
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
def parse_date(date_str):
"""Parse elastic date... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc on Thu Nov 22 16:43:24 EST 2007 -->
<TITLE>
Xalan-Java 2.7.1: Uses of Interface org.apache.xml.serializer.<API key>
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<... |
ProjectTop := /Volumes/Polaris/polymake
include ${ProjectTop}/support/extension.make |
=head1 NAME
EPrints::Plugin::Screen::Search
=cut
package EPrints::Plugin::Screen::Search;
use EPrints::Plugin::Screen::AbstractSearch;
@ISA = ( 'EPrints::Plugin::Screen::AbstractSearch' );
use strict;
sub new
{
my( $class, %params ) = @_;
my $self = $class->SUPER::new(%params);
$self->{appears} = [];
pu... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>PHP MySQL Database Interface: <API key> Klassenreferenz</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css">
<link href="../../doxygen.css" rel="styleshe... |
package nikoladasm.aspark;
import java.io.IOException;
import java.io.InputStream;
import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import io.netty.buffer.ByteBuf;
import static ... |
package controller;
import java.io.IOException;
import java.sql.Time;
import java.util.Calendar;
import java.util.List;
import java.util.TimeZone;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import ja... |
#ifndef __PLATFORM_H_
#define __PLATFORM_H_
#define STDOUT_IS_PS7_UART
#define UART_DEVICE_ID 0
#include "xil_io.h"
#include "xtmrctr.h"
#include "assert.h"
/* Write to memory location or register */
#define X_mWriteReg(BASE_ADDRESS, RegOffset, data) \
*(unsigned volatile int *)(BASE_ADDRESS + RegOffset) = ... |
<!DOCTYPE html>
<!
Copyright (C) 2017 ss
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope... |
import platform
import glob
from .io import DxlIO, Dxl320IO, DxlError
from .error import BaseErrorHandler
from .controller import BaseDxlController
from .motor import DxlMXMotor, DxlAXRXMotor, DxlXL320Motor
from ..robot import Robot
def <API key>():
""" Tries to find the available usb2serial port on your system. ""... |
package ppm_java._dev.concept.example.event;
import ppm_java.backend.TController;
import ppm_java.typelib.IControllable;
import ppm_java.typelib.IEvented;
import ppm_java.typelib.VBrowseable;
class TSink extends VBrowseable implements IEvented, IControllable
{
public TSink (String id)
{
super (id);
... |
<?php
// VPL for Moodle is free software: you can redistribute it and/or modify
// (at your option) any later version.
// VPL for Moodle is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
require_once dirname(__FILE__).'/../../../config.php';
require_once... |
package org.runnerup.notification;
import android.annotation.TargetApi;
import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.support.v4.app.NotificationCompat;
import org.runnerup.R;
import org.runnerup.... |
package pl.idedyk.japanese.dictionary.web.html;
import java.util.List;
public class Ul extends HtmlElementCommon {
public Ul() {
super();
}
public Ul(String clazz) {
super(clazz);
}
public Ul(String clazz, String style) {
super(clazz, style);
}
@Override
protected... |
<?php
class checkLink {
const LINKFOUND = 1;
const LINKNOTFOUND = 0;
const LINKFOUNDNOFOLLOW = 2;
const LINKDATAERROR = 3;
public function get_data($url) {
$ch = curl_init();
$timeout = 5;
$userAgent = 'Googlebot/2.1 (http:
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
... |
"use strict";
function HelpTutorial()
{
let _getText = function()
{
return "HelpTutorial_Base";
};
this.getName = function(){ return "HelpTutorial_Base"; };
this.getImageId = function(){ return "button_help"; };
this.getText = _getText;
}
function <API key>(name, image)
{
this.getNam... |
/* Dylan Secreast
* dsecrea2@uoregon.edu
* CIS 415 Project 0
* This is my own work except for the base
* code that was provided by Prof. Sventek
*/
#ifndef _DATE_H_INCLUDED_
#define _DATE_H_INCLUDED_
typedef struct date Date;
/*
* date_create creates a Date structure from `datestr`
* `datestr' is expected to be o... |
#include "test-music.hpp"
class test_mus_got: public test_music
{
public:
test_mus_got()
{
this->type = "got";
this->numInstruments = 1;
this->indexInstrumentOPL = 0;
this->indexInstrumentMIDI = -1;
this->indexInstrumentPCM = -1;
}
... |
#include <fstream>
#include <algorithm>
#include "anime_db.hpp"
#include "trim.hpp"
bool anime_database::dump_anime_db(const astd::filesystem::path& db_path, const anime_database& db)
{
bool result = false;
std::ofstream stream{ db_path.c_str(), std::ios::out | std::ios::trunc };
if (stream)
{
result ... |
public class Main {
public static void main(String[] args) {
ProdutoContext manga = new ProdutoContext();
System.out.println("Quantia: " + manga.getQuantia());
manga.fazerCompra(5);
manga.reestocar(5);
manga.fazerCompra(5);
manga.reestocar(15);
System.out.prin... |
using CatalokoService.Helpers.DTO;
using CatalokoService.Helpers.FacebookAuth;
using CatalokoService.Models;
using System;
using System.Web.Mvc;
namespace CatalokoService.Controllers
{
public class HomeController : Controller
{
CatalokoEntities bd = new CatalokoEntities();
public ActionResult In... |
var Util = require( 'findhit-util' );
// Data handles wizard data into session
function Data ( route ) {
var session = route.req[ route.router.options.reqSessionKey ];
// If there isn't a `wiz` object on session, just add it
if( ! session.wiz ) {
session.wiz = {};
}
// Save route on this ins... |
using System;
namespace RadarrAPI
{
public class ErrorViewModel
{
public string RequestId { get; set; }
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
}
} |
package com.delcyon.capo.protocol.server;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author jeremiah
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface <API... |
<html>
<head>
<title>datypus</title>
<link rel="stylesheet" type="text/css" href="/css/datystyle.css">
<body>
<div class="chart"></div>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script type="text/javascript">
var data = [4, 8, 15, ... |
package weka.filters.unsupervised.attribute;
import weka.filters.Filter;
import weka.filters.UnsupervisedFilter;
import weka.filters.unsupervised.attribute.Remove;
import weka.clusterers.Clusterer;
import weka.clusterers.<API key>;
import weka.core.Attribute;
import weka.core.Instances;
import weka.core.Instance;
impor... |
package org.mycore.util.concurrent;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.atomic.AtomicLong;
import java.util.function.Supplier;
public class MCRPrioritySupplier<T> implements Supplier<T>, MCRPrioriti... |
<ion-header>
<ion-navbar>
<ion-title>Login</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<!-- Shows error message is socket is not connected. -->
<ion-item no-lines *ngIf="!loginManager.loginAvailable()">
<ion-label style="color: #ea6153">
Login service unavailable as cannot connec... |
#include <iostream>
using namespace std;
int main() {
int n, x, y;
cin >> n;
int a[n];
for (int i = 0; i < n; ++i) {
cin >> a[i];
}
x = a[1] - a[0];
y = a[2] - a[0];
for (int i = 2; i < n; ++i) {
x = max(a[i] - a[i - 1], x);
y = min(a[i] - a[i - 2], y);
}
cout << max(x, y);
} |
<?php namespace PrivCode;
defined('ROOT_DIR') or die('Forbidden');
use PrivCode\Database\Database;
class BaseModel extends Database
{
public function __construct()
{
parent::__construct();
}
}
/* End of file URI.php */
/* Location: ./System/URI/URI.php */ |
package com.power.text.Run;
import static com.power.text.dialogs.WebSearch.squerry;
import java.awt.Desktop;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net... |
package org.jbpt.pm.bpmn;
import org.jbpt.pm.IDataNode;
/**
* Interface class for BPMN Document.
*
* @author Cindy Fhnrich
*/
public interface IDocument extends IDataNode {
/**
* Marks this Document as list.
*/
public void markAsList();
/**
* Unmarks this Document as list.
*/
pub... |
#include <QtGui/QApplication>
#include "xmlparser.h"
#include "myfiledialog.h"
#include <iostream>
#include <QMessageBox>
using namespace std;
int main(int argc, char *argv[])
{
QApplication a(argc, argv);/*
MainWindow w;
w.show();*/
MyFileDialog my;//Create dialog
QString name=my.openFile();//O... |
// SuperTuxKart - a fun racing game with go-kart
// 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 PURPOSE. See the
// ... |
// ArduinoJson - arduinojson.org
#pragma once
#include "../Array/ArrayShortcuts.hpp"
#include "../Object/ObjectShortcuts.hpp"
namespace <API key> {
template <typename TVariant>
class VariantShortcuts : public ObjectShortcuts<TVariant>,
public ArrayShortcuts<TVariant> {
public:
using ArraySho... |
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
#ifndef <API key>
#define <API key>
#include "MantidAPI/IPeaksWorkspace.h"
#include "MantidAPI/Run.h"
#include "MantidDataObjects/PeakShapeSpherical.h"
#include "MantidDataObjects/PeaksWorkspace.h"
#include "MantidKe... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace SimpleDownload
{
public partial class Downloader : Form
{
public Downloader()
{
Initialize... |
<patTemplate:tmpl name="_widget">
<script type="text/javascript">
//<![CDATA[
function addItem(){
if (!window.confirm('?')) return false;
document.main.act.value = 'add';
document.main.submit();
return true;
}
function updateItem(){
if (!window.confirm('?')) return false;
document.main.act.value... |
<?php
header('Content-Type: text/html; charset=iso-8859-1');
$sufijo= "col_";
echo ' <html>
<link rel= "stylesheet" href= "./css/queryStyle.css"></style>
<div id="paginado" style="display:none">
<input id="pagina" type="text" value="1">
... |
from numpy import sqrt
from pacal.standard_distr import NormalDistr, ChiSquareDistr
from pacal.distr import Distr, SumDistr, DivDistr, InvDistr
from pacal.distr import sqrt as distr_sqrt
class NoncentralTDistr(DivDistr):
def __init__(self, df = 2, mu = 0):
d1 = NormalDistr(mu, 1)
d2 = distr_sqrt(Chi... |
IWitness.ErrorsView = Ember.View.extend({
classNames: ["error-bubble"],
classNameBindings: ["isError"],
isError: function() {
return !!this.get("error");
}.property("error")
}); |
package ch.ethz.dcg.jukefox.model.collection;
public class MapTag extends BaseTag {
float[] coordsPca2D;
private float varianceOverPCA;
public MapTag(int id, String name, float[] coordsPca2D, float varianceOverPCA) {
super(id, name);
this.coordsPca2D = coordsPca2D;
this.varianceOverP... |
<?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(dirname(dirname(__FILE__)) . '/config.php');
require_once($CFG->libdir... |
package de.ailis.microblinks.l.lctrl.shell;
import gnu.getopt.Getopt;
import gnu.getopt.LongOpt;
import java.util.Arrays;
import de.ailis.microblinks.l.lctrl.resources.Resources;
/**
* Base class for all CLI programs.
*
* @author Klaus Reimer (k@ailis.de)
*/
public abstract class CLI
{
/** The command-line prog... |
#include "vistoolspline.h"
#include <QLineF>
#include <QPainterPath>
#include <QSharedPointer>
#include <Qt>
#include <new>
#include "../ifc/ifcdef.h"
#include "../vgeometry/vabstractcurve.h"
#include "../vgeometry/vgeometrydef.h"
#include "../vgeometry/vpointf.h"
#include "../vgeometry/vspline.h"
#include "../vpattern... |
<?php
require_once(ROOT_DIR . 'Pages/Admin/<API key>.php');
require_once(ROOT_DIR . 'Presenters/ActionPresenter.php');
class ConfigActions
{
const Update = 'update';
}
class <API key> extends ActionPresenter
{
/**
* @var <API key>
*/
private $page;
/**
* @var <API key>
*/
private... |
#include <stdlib.h>
#include <stdio.h>
#include "array_heap.h"
int array_init(array* arr, int size) {
arr->data = realloc(NULL, sizeof(void*) * size);
if (0 == (size_t)arr->data) {
return -1;
}
arr->length = size;
arr->index = 0;
return 0;
}
int array_push(array* arr, void* data) {
((size_t*)arr->data... |
from ert.cwrap import CWrapper, BaseCClass
from ert.enkf import ENKF_LIB
from ert.util import StringList
class SummaryKeyMatcher(BaseCClass):
def __init__(self):
c_ptr = SummaryKeyMatcher.cNamespace().alloc()
super(SummaryKeyMatcher, self).__init__(c_ptr)
def addSummaryKey(self, key):
as... |
<?php
// include class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
include(WB_PATH.'/framework/class.secure.php');
} else {
$oneback = "../";
$root = $oneback;
$level = 1;
while (($level < 10) && (!file_exists($root.'/framework/class.secure.php'))) {
$root .=... |
#include <cmath>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include "params.h"
#include "pdg_name.h"
#include "parameters.h"
#include "LeptonMass.h"
//#include "jednostki.h"
#include "grv94_bodek.h"
#include "dis_cr_sec.h"
#include "fragmentation.h"
#include "vect.h"
#include "charge.h"
#include "event1... |
package example;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.junit.Test;
import com.piedra.excel.annotation.ExcelExport;
import com.piedra.excel.util.ExcelExportor;
/**... |
package fr.ribesg.com.mojang.api.http;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.Proxy;
import java.net.URL;
import java.util.List;
public class BasicHttpClient implements HttpClient {
... |
#import <RoutingHTTPServer/RoutingConnection.h>
@interface RoutingConnection (Secure)
@end |
#!/usr/bin/env node
/*jshint -W100*/
'use strict';
/**
*
*
* usernamepassword
*/
var username = 'hogehoge';
var password = 'fugafuga';
var client = require('../index');
console.info('TOP');
client.fetch('http://nicovideo.jp/')
.then(function (result) {
console.info('');
return result.$('#sideNav .loginBtn').cli... |
// Kainote is free software: you can redistribute it and/or modify
// (at your option) any later version.
// Kainote is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#pragma once
#include <wx/window.h>
#include <wx/thread.h>
//#define Get_Log LogHan... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_66) on Sat Nov 28 10:51:55 EST 2015 -->
<title><API key> (MG4J (big) 5.4.1)</title>
<meta name="date" content="2015-11-28">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<sc... |
#!/usr/bin/python
# coding: utf8
import os
import subprocess
from '{% if cookiecutter.namespace %}{{ cookiecutter.namespace }}.{{ cookiecutter.project_slug }}{% else %}{{ cookiecutter.project_slug }}{% endif %}'.commands.base import BaseCommand
from '{% if cookiecutter.namespace %}{{ cookiecutter.namespace }}.{{ cookie... |
<a href
tabindex="-1"
ng-attr-title="{{match.label}}">
<span ng-bind-html="match.label.artist | <API key>:query"></span>
<br>
<small ng-bind-html="match.label.title | <API key>:query"></small>
</a> |
package Eac.event;
import Eac.Eac;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.PlayerEvent;
import net.minecraft.item.ItemStack;
public class EacOnItemPickup extends Eac {
@SubscribeEvent
public void EacOnItemPickup(PlayerEvent.ItemPickupEvent e) {
if (e.... |
class <API key> < <API key>
def new
end
def create
@user = User.find_by_email(params[:email])
if @user
@user.<API key>!
redirect_to root_path, notice: 'Instructions have been sent to your email.'
else
flash.now[:alert] = "Sorry but we don't recognise the email address \"#{params[:ema... |
/*
* Filename: BuildNr.h
*/
/* application build number: */
#define PRODUCT_BUILD 4001
/* EOF */ |
// <API key>.h
// ScrollView+PaperFold+PageControl
#import <UIKit/UIKit.h>
#import "PaperFoldView.h"
#import "SwipeView.h"
@interface <API key> : UIViewController <<API key>,<API key>,SwipeViewDataSource, SwipeViewDelegate>
@property (strong, nonatomic) id detailItem;
@property (nonatomic, strong) IBOutlet PaperFoldV... |
#ifndef _OPT_H
#define _OPT_H
#include <assert.h>
#define OPT_RELAX_CAPACITY 0
#define <API key> "capacity"
#define OPT_RELAX_QUANTITY 1
#define <API key> "quantity"
typedef struct
{
double alpha;
char *file;
int relax;
int verbose;
} Options;
void opt_free (Options * opt);
static inline double
opt_get_alpha (O... |
#pragma once
#include "real.h"
#include <mirheo/core/mesh/membrane.h>
#include <mirheo/core/pvs/object_vector.h>
#include <mirheo/core/pvs/views/ov.h>
#include <mirheo/core/utils/cpu_gpu_defines.h>
#include <mirheo/core/utils/cuda_common.h>
#include <mirheo/core/utils/cuda_rng.h>
namespace mirheo
{
/** Compute triangle... |
package de.fhffm.jad.demo.jad;
import java.util.ArrayList;
import de.fhffm.jad.data.DataWrapper;
import de.fhffm.jad.data.EInputFields;
import de.fhffm.jad.data.IDataFieldEnum;
/**
* This class synchronizes the access to our Data.Frame
* Added Observations are stored in a local ArrayList.
* Use 'write' to send every... |
package de.dominicscheurer.quicktxtview.view;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.io.StringWriter;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Path;
import java.text.DecimalFormat;
import java.util.Arrays;
import java.util.Compara... |
object rec{
def main(args: Array[String]){
def factorial(num: Int): BigInt={
if(num<=1){
1
}
else{
num*factorial(num-1)
}
}
print("Factorial of 4 is: "+factorial(4))
}
} |
Ext.define("Voyant.notebook.util.Embed", {
transferable: ['embed'],
embed: function() { // this is for instances
embed.apply(this, arguments);
},
constructor: function(config) {
var me = this;
},
statics: {
i18n: {},
api: {
embeddedParameters: undefine... |
<!
This test case covers the following situation:
1. an open tag for a void element
2. the next token is a close tag that does not match (1)
<html><head><basefont color="blue"></head><body></body></html> |
// Summary:
// Usage:
// Remarks:
// Null
// 2011-9-15
// Zhang JingDan (zhangjingdan@duokan.com)
#ifndef <API key>
#define <API key>
#include "KernelRetCode.h"
#include "DKPTypeDef.h"
class IDKPOutline;
class IDKPPage;
class IDKPPageEx;
class IDkStream;
class IDKPDoc
{
public:
enum <API key>
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace <API key>
{
public class Settings
{
public List<Animation> AnimatedTiles { get; set; } = new List<Animation>();
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.