answer stringlengths 15 1.25M |
|---|
#include <assert.h>
#include "c_typebase.h"
#include "idl_scope.h"
#include "idl_genCxxHelper.h"
#include "os_heap.h"
#include "os_stdlib.h"
#define IDL_MAXSCOPE (20)
/*
This modules handles the name scopes of objects by providing
a scope stack. Each time a name scope is defined, the name
is pushed on the s... |
# This file is part of Paru
# Paru is free software: you can redistribute it and/or modify
# (at your option) any later version.
# Paru is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
require_relative "./inline.rb"
module Paru
module PandocFilter
... |
<?xml version="1.0" encoding="UTF-8"?>
<html lang="en" class="no-js ie8">
<!--<![endif]--> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title>
Mein Bookmanager
</title>
<meta name="viewport" cont... |
using Nikse.SubtitleEdit.Core.Common;
using Nikse.SubtitleEdit.Forms.Options;
using Nikse.SubtitleEdit.Logic;
using Nikse.SubtitleEdit.Logic.VideoPlayers;
using System;
using System.Text;
using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms
{
public partial class VideoError : Form
{
public Vid... |
var __v=[
{
"Id": 3568,
"Panel": 1763,
"Name": "",
"Sort": 0,
"Str": ""
},
{
"Id": 3569,
"Panel": 1763,
"Name": "API",
"Sort": 0,
"Str": ""
},
{
"Id... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="fr">
<head>
<!-- Generated by javadoc (version 1.7.0_25) on Mon Dec 09 13:16:02 CET 2013 -->
<title>m0.main</title>
<meta name="date" content="2013-12-09">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
</head>
<body>
<h1 class="ba... |
#ifndef ZIK_API_H
#define ZIK_API_H
/* Audio */
#define <API key> "/api/audio/equalizer/enabled"
#define <API key> "/api/audio/noise"
#define <API key> "/api/audio/noise_control"
#define <API key> "/api/audio/noise_control/enabled"
#define <API key> "/api/audio/noise_control/auto_nc"
#define <API key> "/api/audio/noise... |
<?php
class WP_Gist {
/**
* Instance of the class.
*
* @var WP_Gist
*/
protected static $instance = null;
/**
* Class slug.
*
* @var string
*/
protected $slug = 'wp-gist';
/**
* Class version.
*
* Used for cache-busting of style and script file ... |
<?php
// Clear variables
$boardGameError = "";
$boardGameAvailable = "";
// Get the playerID, if null return user to the available page
$playerID = null;
if (!empty($_GET['playerID']))
{
$playerID = $_REQUEST['playerID'];
}
if ( null==$playerID )
{
header("Location: ../available.php");
}
if ($_SERVER["REQUEST_METHO... |
var events = require('events'),
koanize = require('koanizer'),
util = require('util');
koanize(this);
// Standard and RFC set these values
var <API key> = 90000;
// RTP packet constants and masks
var RTP_HEADER_SIZE = 12;
var <API key> = 4;
var SAMPLES_PER_FRAME = 1152; // ISO 11172-3
var SAMPLING_FREQUENCY = 4... |
<?php
namespace PH7;
class HomeController extends Controller
{
private $sTitle;
public function __construct()
{
parent::__construct();
/** Predefined meta_description and keywords tags **/
$this->view->meta_description = t('Become an Affiliate with the affiliate dating community plat... |
// AppDelegate.h
// Pedigree
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <<API key>>
@property (strong, nonatomic) UIWindow *window;
@end |
from abc import ABC
import configargparse
from sklearn.externals import joblib
from termcolor import colored
class ScikitBase(ABC):
"""
Base class for AI strategies
"""
arg_parser = configargparse.get_argument_parser()
arg_parser.add('-p', '--pipeline', help='trained model/pipeline (*.pkl file)', re... |
package com.octagon.airships.block;
import com.octagon.airships.reference.Reference;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.render... |
#include "simple_form_widget.h"
#include "<API key>.h"
SimpleFormWidget::SimpleFormWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::SimpleFormWidget)
{
ui->setupUi(this);
}
SimpleFormWidget::~SimpleFormWidget()
{
delete ui;
} |
package itaf.<API key>;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the itaf.<... |
<?php
# include files from root dir #
$root_1 = realpath($_SERVER["DOCUMENT_ROOT"]);
$currentdir = getcwd();
$root_2 = str_replace($root_1, '', $currentdir);
$root_3 = explode("/", $root_2);
if ($root_3[1] == 'core') {
echo $root_3[1];
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
}else{
$root = $root_1 . '/' . $r... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (1.8.0_111) on Thu Dec 22 11:36:55 CET 2016 -->
<title>ch.ethz.inspire.emod.model.units</title>
<meta name="date" content="2016-12-22">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"... |
import commandRunner as cr
import subprocess
import glob, os, platform, shutil, adb
from pathlib import Path
def <API key>(udid):
cmd = 'rebot -N Combined --outputdir browserlogs/ '
for idx, device in enumerate(udid):
#Get all the output.xml files for the devices
if platform.system() == "Windows... |
package com.lh64.randomdungeon.actors.buffs;
import com.lh64.randomdungeon.ui.BuffIndicator;
import com.lh64.utils.Bundle;
public class SnipersMark extends FlavourBuff {
public int object = 0;
private static final String OBJECT = "object";
@Override
public void storeInBundle( Bundle bundle ) {
su... |
namespace Maticsoft.TaoBao.Request
{
using Maticsoft.TaoBao;
using Maticsoft.TaoBao.Util;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
public class <API key> : ITopRequest<<API key>>
{
private IDictionary<string, string> otherParameters;
... |
<?php
?>
<?php
include("../_includes/start-session.inc.php");
include("../_includes/init.inc.php");
require_once(DIR_ROOT . "classes/Autoloader.php");
<API key>('DomainMOD\Autoloader::classAutoloader');
$system = new DomainMOD\System();
$error = new DomainMOD\Error();
$layout = new DomainMOD\Layout();
$domain = new Dom... |
# This program is free software: you can redistribute it and/or modify
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
'''
hello
Usage:
hello (--help | --version)
Options:
--help -h displ... |
#include <iostream>
#include <iomanip>
#include <fstream>
#include <algorithm>
#include <iterator>
#include <cmath>
#include <boost/filesystem.hpp>
#include <eigen3/Eigen/Core>
#include <eigen3/Eigen/Eigenvalues>
#include "constants.h"
#include "utilities.h"
/*
* Call this program like:
*
* ./mctdh_specinput <dE> <t... |
CREATE TABLE IF NOT EXISTS `stena` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_user` int(11) NOT NULL,
`id_stena` int(11) NOT NULL,
`time` int(11) NOT NULL,
`msg` varchar(1024) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`read` int(11) DEFAULT '1',
PRIMARY KEY (`id`),
KEY `time` (`time`)
) ... |
#!/bin/sh
# split must fail when given length/count of zero.
# This program is free software: you can redistribute it and/or modify
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
. "${srcdir=.}/tests... |
#ifndef <API key>
#define <API key>
#include <QColor>
#include <QJsonObject>
#include <QPainter>
#include <rpgmapper/layer/layer.hpp>
// fwd
namespace rpgmapper::model { class Map; }
namespace rpgmapper::model::layer {
/**
* Objects of the GridLayer class draw grids on a map.
*/
class GridLayer : public Layer {
Q... |
<?php
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
// ** ne pas modifier le fichier **
if (!defined("_ECRIRE_INC_VERSION")) return;
$GLOBALS[$GLOBALS['idx_lang']] = array(
'bouton_effacer' => 'Löschen',
'<API key>' => 'Auf den neuesten Stand bringen',
'bouton_reset' => 'Zur&u... |
var searchData=
[
['handler_5fallocator',['handler_allocator',['../<API key>.html',1,'websocketpp::transport::asio']]],
['hash32',['Hash32',['../<API key>.html',1,'nfd::name_tree']]],
['hash64',['Hash64',['../<API key>.html',1,'nfd::name_tree']]],
['<API key>',['hash< ndn::Name >',['../<API key>.html',1,'... |
#ifndef QT_NO_DEBUG
#include <QDebug>
#endif
#include "progressPie.h"
#include "../../../constants.h"
#include <QPaintEvent>
#include <QPainter>
#include <QLineEdit>
// INIT
ProgressPie::ProgressPie(QWidget* parent) :
QWidget(parent),
_value(Constants::<API key>),
_pRedBrush(new QBrush(Qt::red)),
_pGree... |
package com.dotmarketing.servlets;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
import javax.servlet.ServletException;
import javax.servlet.Servle... |
# 2016 YouCompleteMe contributors
# This file is part of YouCompleteMe.
# YouCompleteMe is free software: you can redistribute it and/or modify
# (at your option) any later version.
# YouCompleteMe is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS... |
<!-- resources/views/vendor/openpolice/nodes/<API key>.blade.php -->
<a class="btn btn-primary btn-lg"
href="/<API key>/{{ $d['deptRow']->dept_slug }}"
<?php /*
@if (in_array(substr($d['deptRow']->dept_slug, 0, 3), ['NY-', 'MA-', 'MD-', 'MN-', 'DC-']))
href="/<API key>/{{ $d['deptRow']->dept_slug }}"
@else
... |
<?php
Prado::Using('Application.Engine.*');
class CombinedView extends TPage
{
public $text;
public $tiroText;
public function onLoad()
{
global $ABS_PATH,$USERS_PREFIX;
$this->text = TextRecord::finder()->findByPk($_GET['id']);
$this->tiroText = new TiroText($ABS_PATH.'/'.$USERS... |
#if defined HAVE_CONFIG_H
#include "config.h"
#endif
#include <solver_core.hpp>
#include <triqs/operators/many_body_operator.hpp>
#include <triqs/hilbert_space/<API key>.hpp>
#include <triqs/gfs.hpp>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <iomanip>
//#include <boost/mpi/c... |
<?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
$capabilities = array(
'block/fn_marking:myaddinstance' => array(
'capt... |
// Search script generated by doxygen
// The code in this file is loosly based on main.js, part of Natural Docs,
var <API key> =
{
0: "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111100111011111111110000000000000000000000000000000000000000000000000000000000000... |
#include "entrymanager.h"
#include <QDateTime>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QVariant>
#include <QDebug>
using namespace Core;
EntryManager::~EntryManager()
{
clear();
}
void EntryManager::close(int entryId)
{
Entry* entry = getEntry(entryId);
if (!entry)
return;
delete ... |
# Rain_Water_Trapping
def trappedWater(a, size) :
# left[i] stores height of tallest bar to the to left of it including itself
left = [0] * size
# Right [i] stores height of tallest bar to the to right of it including itself
right = [0] * size
# Initialize result
waterVolume = 0
# filling ... |
using System.Reflection;
using System.Runtime.CompilerServices;
namespace System.Security.Principal
{
public interface IIdentity
{
string AuthenticationType { get; }
bool IsAuthenticated { get; }
string Name { get; }
}
} |
package ch.hevs.silab.structuredsim.interfaces;
import java.util.List;
/**
* Name : IManageModifier
* <p>
* Description : Class to manage the modifier
* <p>
* Date : 25 July 2017
* @version 1.0
* @author Audrey Dupont
*/
public interface IManageModifier {
/**
* Method to initiate the modifier class ins... |
## Contribution
If you want to add any enhancement feature or have found any bug and want to work on it, please open a new issue regarding that and put a message "I would like to work on it." And make sure every pull request should reference to an issue.
# Points on how to make pull request
* You need to fork this repo... |
var __v=[
{
"Id": 2046,
"Chapter": 630,
"Name": "c++",
"Sort": 0
}
] |
#ifdef _MSC_VER
#pragma once
#endif
#ifndef <API key>
#define <API key>
#include <ogdf/basic/EdgeArray.h>
#include <ogdf/layered/CrossingsMatrix.h>
#include <ogdf/simultaneous/<API key>.h>
namespace ogdf {
//! The split heuristic for 2-layer crossing minimization.
class OGDF_EXPORT SplitHeuristic : public <API key>
{
p... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_17) on Mon May 06 00:15:52 EDT 2013 -->
<title>Uses of Class org.spongycastle.asn1.x509.ReasonFlags</title>
<meta name="date" content="2013-05-06">
<link rel="stylesheet" type="text/css" href="../../../../../style... |
<?php
$plugin->version = 2012060700;
//EOF |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="fr">
<context>
<name></name>
<message id="<API key>">
<location filename="asteroid-timer.desktop.h" line="6"/>
<source>Timer</source>
<translation>Timer</translation>
</message>
</context>
</TS> |
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#ifndef _DEFINES_H
#define _DEFINES_H
#include <AP_HAL_Boards.h>
// Just so that it's completely clear...
#define ENABLED 1
#define DISABLED 0
// this avoids a very common config error
#define ENABLE ENABLED
#def... |
using System;
using System.Linq;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Geekbot.Core;
using Geekbot.Core.Database;
using Geekbot.Core.Database.Models;
using Geekbot.Core.ErrorHandling;
using Geekbot.Core.Extensions;
using Geekbot.Core.<API key>;
using Geekbot.Core.<API key>;
using Lo... |
class <API key> < ActiveRecord::Migration
def change
create_join_table :ip4_networks, :locations do |t|
t.index [:ip4_network_id,:location_id], unique: true, name: '<API key>'
end
end
end |
using System;
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
using NSubstitute;
using NUnit.Framework;
using Ploeh.AutoFixture.NUnit3;
using Selkie.EasyNetQ;
using Selkie.NUnit.Extensions;
using Selkie.Services.Common.Messages;
using Selkie.Windsor;
namespace Selkie.Services.Racetracks.Tests
{
... |
<!doctype html>
<html lang="{{ .Site.Language.Lang }}" class="no-js">
<head>
{{ partial "head.html" . }}
</head>
<body class="td-{{ .Kind }}">
<header>
{{ partial "navbar.html" . }}
</header>
<div class="container-fluid td-outer">
<div class="td-main">
<div class="row flex-xl-n... |
// This file is part of the go-ethereum library.
// The go-ethereum library is free software: you can redistribute it and/or modify
// (at your option) any later version.
// The go-ethereum library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
package... |
/**
* \file SDL_clipboard.h
*
* Include file for SDL clipboard handling
*/
#ifndef _SDL_clipboard_h
#define _SDL_clipboard_h
#include "SDL_stdinc.h"
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
#ifdef __cplusplus
extern "C" {
#endif
/* Function prototypes */
/**
* \brief Put... |
package draw.basic;
import java.awt.*;
import java.awt.image.*;
import java.io.*;
import java.util.Arrays;
import java.util.List;
import javax.imageio.*;
import javax.swing.*;
public class ScreenImage {
private static List<String> imageTypes = Arrays.asList(
ImageIO.<API key>());
/**
* Create a... |
title: " Scrapy "
layout: post
date: 2018-02-24 22:48
tag:
-
blog: true
author: Topaz
summary: "BeautifulSoup Xpath"
permalink: Spiders-Scrapy-01
<h1 class="title"> Scrapy </h1>
<h2> Table of Contents </h2>
- [Scrapy ](
- [](
- [](
- [](
- [](
- [HtmlXpathSelector](
- [ Scrapy ](
- [Scrapy ](
<a style="color:
<h2 id... |
@extends('admin.layout')
@section('styles')
<link href="/assets/css/pdfexport.css" rel="stylesheet">
@stop
@section('content')
<div class="container">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<p><a href="{{ url('admin/stavkeposla/show',[$evidenci... |
/**
* Interface for compliation manager
*/
#ifndef _MANAGER_H_
#define _MANAGER_H_
#include "ast/ast.h"
#include "ir/ir.h"
#include "lex/lex.h"
#include "lex/symtab.h"
#include "util/status.h"
/**
* Compilation manager structure. Manages data structures necessary for compiles
*/
typedef struct manager_t {
vec_t... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\Sparesused */
$this->title = 'Create Sparesused';
$this->params['breadcrumbs'][] = ['label' => 'Sparesuseds', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sparesused-create">
<h1><?= Html::en... |
{% extends "base_nav.html" %}
{% load humanize %}
{% load i18n %}
{% load staticfiles %}
{% block "title" %}{% trans "Review Access Request" %}{% endblock %}
{% block "css" %}
<link href="{% static 'css/secrets.css' %}" rel="stylesheet">
{% endblock %}
{% block "content" %}
<script type="text/javascript">
$(function ()... |
#include "../../common.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
#include "../../paint/Supports.h"
#include "../../world/Entity.h"
#include "../Track.h"
#include "../TrackPaint.h"
#include "../Vehicle.h"
/** rct2: 0x0076E5C9 */
static void <API key>(
paint_session* session, const Ride*... |
<!DOCTYPE html PUBLIC "-
<html>
<head>
<title>Singular 2-0-4 Manual: D.5.8.6 is_reg</title>
<meta name="description" content="Singular 2-0-4 Manual: D.5.8.6 is_reg">
<meta name="keywords" content="Singular 2-0-4 Manual: D.5.8.6 is_reg">
<meta name="resource-type" content="document">
<meta name="distribution" content="g... |
use vars qw(%result_texis %result_texts %result_trees %result_errors
%result_indices %result_sectioning %result_nodes %result_menus
%result_floats %result_converted %<API key>
%result_elements %<API key>);
use utf8;
$result_trees{'<API key>'} = {
'contents' => [
{
'contents' => [],
'parent' =... |
package org.dmfs.xmlserializer;
import java.io.IOException;
import java.io.Writer;
/**
* An abstract XML node.
*
* @author Marten Gajda <marten@dmfs.org>
*/
public abstract class XmlAbstractNode
{
/**
* State for new nodes.
*/
final static int STATE_NEW = 0;
/**
* State indicating the nod... |
<? include('global.php'); ?>
<? // asp2php (vbscript) converted on Sat Apr 25 20:59:49 2015
$CODEPAGE="1252";?>
<? require("Connections/connrumbo.php"); ?>
<?
$Siniestros__DDcia="%";
if (($_POST["Cia"]!=""))
{
$Siniestros__DDcia=$_POST["Cia"];
}
?>
<?
// $Siniestros is of type "ADODB.Recordset"
echo $MM_connrumbo_ST... |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http:
<html >
<head><title>1.1.1.0 <API key>.py</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http:
<meta name="originator" content="TeX4ht (http:
<!-- html,index=2,3,4,5,next -->... |
#ifndef <API key>
#define <API key>
#ifdef __cplusplus
define extern "C" {
#endif
#include <ert/util/hash.h>
#include <ert/config/config_schema_item.h>
#include <ert/config/config_path_elm.h>
typedef struct <API key> <API key>;
<API key> * <API key>( const <API key> * schema , const <API key> * cwd);
... |
package beseenium.controller.ActionFactory;
import java.net.<API key>;
import java.util.HashMap;
import java.util.Map;
import beseenium.controller.ActionDataFactory.ActionDataFactory;
import beseenium.controller.ActionFactory.elementActions.MakeClear;
import beseenium.controller.ActionFactory.elementActions.MakeClick;
... |
package proyectomio.controlador.operaciones;
import proyectomio.accesoDatos.Controlador_BD;
import proyectomio.modelo.Consulta;
/**
*
* @author root
*/
public class <API key> {
private final Controlador_BD CONTROLADOR_BD = new Controlador_BD();
public Consulta <API key>(int id_conductor) {
if (id_con... |
#include <cstdio>
#include <vector>
#include <utility>
#include <algorithm>
using namespace std;
pair<int, int> <API key>(const vector<vector<int> > & adjList, int startV, const vector<int> & weightOfVertex);
int main(void)
{
int T, numV, numE, u, v, caseId;
vector<vector<int> > adjList;
vector<int> emptyLi... |
<?php
// For more information, see licence.txt in the main folder
// This is a simple page to create accounts.
// Due to the need of reading conf files this script has to be located
// inside the Aura web folder, or you have to adjust some paths.
include '../shared/Conf.class.php';
include '../shared/MabiDb.class.php';... |
<!DOCTYPE html>
<html lang="fr">
<html>
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="./assets/css/mail.css"/>
</head>
<body bgcolor="#E6E6FA">
<?php include 'back-submit-ma... |
**A small bundle to create endless running commands with Symfony.**
These endless running commands are very easy to daemonize with something like Upstart or systemd.
## Why do I need this?
Because you want to create long running PHP/Symfony processes! For example to send mails with large attachment, process (delayed) p... |
{-# LANGUAGE ScopedTypeVariables #-}
import Bench
import Bench.Triangulations
main = print (qVertexSolBench trs) |
// Copyleft RIME Developers
// 2013-04-18 GONG Chen <chen.sst@gmail.com>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <rime/dict/table_db.h>
#include <rime/dict/user_db.h>
// Rime table entry format:
// phrase <Tab> code [ <Tab> weight ]
// for multi-syllable phrase, code is a space-... |
import React from 'react';
import { mount } from 'enzyme';
import { Link, HashRouter as Router } from 'react-router-dom';
import { Button } from 'react-bootstrap';
import BackHomeButton from '../BackHomeButton';
describe('<BackHomeButton/>', () => {
it('<BackHomeButton /> should render <Router/>', () => {
const c... |
'use strict';
var Ose = require('ose');
var M = Ose.class(module, './index');
/** Docs {{{1
* @submodule bb.pagelet
*/
/**
* @caption Dashboard pagelet
*
* @readme
* Pagelet for creating dashboard content.
*
* @class bb.lib.pagelet.dashboard
* @type class
* @extends bb.lib.pagelet
*/
// Public {{{1
exports.l... |
#ifndef QUEUE_H
#define QUEUE_H
#include <ext/struct/Node.h>
#include <ext/struct/List.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct list queue;
struct EngineQueue {
queue * (*createEmpty)(int(*cmp)(void *a, void *b), char *(*toString)(void *a), void (*destroy)(void *a));
int (*... |
/*
*
* Mouse driver
*
*/
#include <kernel/system.h>
#include <kernel/logging.h>
#include <kernel/pipe.h>
#include <kernel/module.h>
#include <kernel/mouse.h>
#include <kernel/args.h>
static uint8_t mouse_cycle = 0;
static uint8_t mouse_byte[4];
#define PACKETS_IN_PIPE 1024
#define DISCARD_POINT 32
#define MOUSE_IRQ... |
#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
LL n,m,A,B,C;
LL solve1(LL x,LL y){
LL ans=0;
ans+=y*max(max(A,B),C);
if(x%2==1){
ans+=max((x-1)*(A+C)/2,(x-1)*B);
}else{
ans+=max((x-2)*(A+C)/2,(x-2)*B);
ans+=max(B,min(A,C));
}
return ans;
}
LL solve2(LL... |
package io.github.notsyncing.cowherd.files;
import io.github.notsyncing.cowherd.Cowherd;
import io.github.notsyncing.cowherd.commons.<API key>;
import io.github.notsyncing.cowherd.commons.RouteType;
import io.github.notsyncing.cowherd.models.ActionMethodInfo;
import io.github.notsyncing.cowherd.models.RouteInfo;
import... |
#include <linux/kprobes.h>
#include <linux/kernel.h>
#include <linux/kdebug.h>
#include <linux/mutex.h>
#include <linux/bitmap.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/perf_event.h>
#include <linux/atomic.h>
#include <asm/traps.h>
#include <asm/stack.h>
#include <asm/pmc.h>
#include <hv/hy... |
package com.limelight.binding.input.driver;
public interface UsbDriverListener {
void <API key>(int controllerId, short buttonFlags,
float leftStickX, float leftStickY,
float rightStickX, float rightStickY,
float leftTrigge... |
#ifndef __16_SPRI__
#define __16_SPRI__
//#include "src/lib/16_vrs.h"
#include "src/lib/16_vl.h"
//#include <hw/cpu/cpu.h>
//#include <hw/dos/dos.h>
#include <hw/vga/vrl.h>
#include "src/lib/16_ca.h"
#include "src/lib/scroll16.h"
*//*
/*
struct vrs_container{
// Size of a .vrs lob in memory
// minus header
... |
namespace DataStoreLib.Utils
{
using System;
using System.Configuration;
using System.Diagnostics;
using System.Net;
using System.Net.Mail;
<summary>
This class use to send mails
</summary>
public class MailManager
{
<summary>
Send an email
</summary>
... |
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace TutorialMod.Tiles
{
public class TutorialBiomeTile : ModTile
{
public override void SetDefaults()
{
Main.tileSolid[Type] = true; // Is the til... |
// Decompiler options: packimports(3) braces deadcode fieldsfirst
package net.minecraft.src;
import java.util.List;
import java.util.Random;
import net.minecraft.client.Minecraft;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.GL11;
// Referenced classes of package net.minecraft.src:
// GuiScreen, Ach... |
package org.amahi.anywhere;
import android.app.Application;
import android.content.Context;
import org.amahi.anywhere.activity.<API key>;
import org.amahi.anywhere.activity.NavigationActivity;
import org.amahi.anywhere.activity.ServerAppActivity;
import org.amahi.anywhere.activity.<API key>;
import org.amahi.anywhere.a... |
package adams.flow.transformer.exiftagoperation;
/**
* Interface for EXIF tag write operations.
*
* @author FracPete (fracpete at waikato dot ac dot nz)
*/
public interface <API key><I, O>
extends ExifTagOperation<I, O> {
} |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link href="/Public/bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
... |
<?php
/**
* Project form base class.
*
* @package fynance
* @subpackage form
* @author Your name here
*/
abstract class BaseFormPropel extends sfFormPropel
{
public function setup()
{
}
} |
#ifndef qhDEFmerge
#define qhDEFmerge 1
#define qh_ANGLEredundant 6.0
#define qh_ANGLEdegen 5.0
#define qh_ANGLEconcave 1.5
typedef enum { /* in sort order for facet_mergeset */
MRGnone= 0,
MRGcoplanar, /* centrum coplanar */
MRGanglecoplanar, /* angle coplanar */
/* could detect h... |
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is machine-generated by lib/unicore/mktables from the Unicode
# database, Version 5.2.0. Any changes made here will be lost!
# !!!!!!! INTERNAL PERL USE ONLY !!!!!!!
# This file is for internal use by the Perl program only. The format and even
# the name or ... |
<?php
class Sign_in_with_model extends CI_Model {
public function __construct()
{
parent::__construct();
$this->load->database();
}
public function get_sign_with($name)
{
$this->db->select('setting, name');
$this->db->where('code', 'sign_in_with');
$this->db->... |
<?php
namespace MCPETRADE\MultiTradeAPI\Commands;
use pocketmine\Player;
use pocketmine\command\CommandSender;
use pocketmine\utils\TextFormat as TE;
use MCPETRADE\MultiTradeAPI\MTAPI;
use MCPETRADE\MultiTradeAPI\Commands\BaseCommand;
Class FlyCommand extends BaseCommand
{
public function __construct(MTAPI $plugin)... |
package bpmn;
public class DataStore extends Artifact {
public DataStore() {
super();
}
public DataStore(int xPos, int yPos, String text) {
super();
setText(text);
}
public String toString() {
return "BPMN data store";
}
} |
<?php
class Affiliate {
private $affiliate_id;
private $firstname;
private $lastname;
private $email;
private $telephone;
private $fax;
private $code;
public function __construct($registry) {
$this->config = $registry->get('config');
$this->db = $registry->get('db');
... |
#include "defs.h"
#include "fdefs.h"
#include <stdlib.h>
void
gasify(job)
char *job;
{
char command[MAXCOMM] ;
char g_type[MAXCOMM] ;
double temp_y ;
double temp_slope ;
double rho_shock ;
double temp_shock ;
double gas_frac ;
double rhobar ;
double metal ;
double rho ;
i... |
# -*- coding: utf-8 -*-
from exceptions import DropPage, AbortProcess |
# -*- coding: utf-8 -*-
import re
from django.utils.safestring import mark_safe
from django.contrib.admin.widgets import AdminFileWidget
from django.template.defaultfilters import slugify
from django.utils.encoding import smart_text
from unidecode import unidecode
from django.forms.widgets import <API key>, CheckboxInp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.