answer stringlengths 15 1.25M |
|---|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "search-sort.h"
int binary_search_int(const int64_t arr[], int start, int end, int64_t key)
{
int mid;
while(start <= end)
{
mid = start + (end - start) / 2;
if(arr[mid] < key)
start = mid + 1;
else if(ar... |
uci set wireless.@wifi-device[0].disabled=0
uci set wireless.@wifi-iface[0].mode=ap
uci set wireless.@wifi-iface[0].ssid='Rpi3AP-PSK2'
uci set wireless.@wifi-iface[0].network=lan
uci set wireless.@wifi-iface[0].encryption=psk2
uci set wireless.@wifi-iface[0].key=1234567890
uci commit wireless
/etc/init.d/network reload... |
var jsVars = {
appBaseUrl: null,
appBasePath: null,
init: function ()
{
var jsVarsAttributes = angular.element('#js-vars')[0].attributes;
jsVars.appBaseUrl = jsVarsAttributes['data-base-url'].value;
jsVars.appBasePath = jsVarsAttributes['data-basepath'].value;
}
};
jsVars... |
package com.eucalyptus.cloud.ws;
import static com.eucalyptus.util.dns.DnsResolvers.DnsRequest;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.apa... |
const Command = require('../../structures/Command');
const request = require('node-superfetch');
const { GOOGLE_KEY } = process.env;
module.exports = class ToxicityCommand extends Command {
constructor(client) {
super(client, {
name: 'toxicity',
aliases: ['perspective', 'comment-toxi... |
#ifndef _testdata_h
#define _testdata_h
@file
@brief TestData, TestDataStorage and UnitTestGroup class definitions.
#include "datatypes.h"
#include "testenumerations.h"
#include "pugixml.h"
#include <set>
#include <map>
#include <iostream>
#include <sstream>
namespace Mezzanine
{
namespace Testing
{
@br... |
<?php
namespace Claroline\CursusBubdle\Tests\API;
use Claroline\CoreBundle\Library\Testing\<API key>;
use Claroline\CoreBundle\Library\Testing\Persister;
use Claroline\CursusBundle\Entity\CourseSession;
use Claroline\CursusBundle\Library\Testing\CursusPersister;
class <API key> extends <API key>
{
/** @var Persiste... |
<!-- INCLUDE overall_header.html -->
<h2 class="titlespace"><!-- IF S_REPORT_POST -->{L_REPORT_POST}<!-- ELSE -->{L_REPORT_MESSAGE}<!-- ENDIF --></h2>
<form method="post" action="{S_REPORT_ACTION}" id="report">
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="con... |
#include <msp430.h>
#include "wdt.h"
#include "common/hal/lcd_segments.h"
#include "common/svc/svc.h"
uint8_t wdt_event=0;
void wdt_init(void)
{
WDTCTL = WDT_ADLY_250;
SFRIE1 |= WDTIE;
}
void __attribute__((interrupt ((WDT_VECTOR)))) WDTServiceRoutine(void) {
SFRIFG1 &= ~WDTIFG;
wdt_event = 1;
LPM3... |
# Upgrade some components to the newest version
Mailman-bundler is a convenient tool -- but some of the shipped components are out-of-date. We need to upgrade them.
## Upgrade HyperKitty to git head version
Stop all gunicorn process first.
sudo killall gunicorn
Then make sure you are using `mailman` user, by runnin... |
</div>
</div>
<div id="content_footer"></div>
<div id="footer">
<p><? foreach($page_display as $page_i => $name) { ?><a href="<?= $page_i ?>"><?= $name ?></a> | <? } ?><a href="http:
</div>
</div>
</html> |
package com.fr.design.beans;
import com.fr.stable.StringUtils;
/**
*
* @author zhou
* @since 2012-5-3012:12:42
*/
public abstract class <API key><T> extends BasicBeanPane<T> {
/**
*
* @param ob
* @return
*/
public abstract boolean accept(Object ob);
/**
* title
* @return
... |
#ifndef SplashFormH
#define SplashFormH
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
class TSplash : public TForm
{
__published: // IDE-managed Components
TImage *Image1;
TLabel *Label1;
TLabel *Label2;
TLabel ... |
$templateNameTag = "TemplateName"
# Name > Environment > LogicalUnit
function New-Deployment {
param (
[string]$bucketname,
[string]$projectname,
[string]$version = "experimental",
[string]$deployroot = ".\"
)
$prefix = "$projectname/$version/"
$oldfiles = Get-S3Object -B... |
#ifndef LSAPI_H
#define LSAPI_H
#define LS_API_ENTRY WINAPI
/* Standard LSAPI C status codes */
#define LS_SUCCESS ((LS_STATUS_CODE) 0x0)
#define LS_BAD_HANDLE ((LS_STATUS_CODE) 0xC0001001)
#define <API key> ((LS_STATUS_CODE) 0xC000100... |
package org.dmfs.davclient.rfc7231;
import org.dmfs.<API key>.IHttpResponse;
public class HttpOptions
{
public HttpOptions(IHttpResponse response)
{
}
} |
// Powerlink Analyzer - Analyze Ethernet POWERLINK Network Traffic
// This program is free software: you can redistribute it and/or modify
// This program is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//! The main module contains initialization tasks... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#ifndef _lista_simples_h
#define _lista_simples_h
/*A implementacao utiliza um noh cabeca apontando
* para o primeiro elemento da lista */
// Define um ponteiro void para dados genericos
typedef void* gpointer;
// Definicao estrutura lista
typedef struct noh ... |
# ifndef <API key>
# define <API key>
# include <cppad/core/ad_fun.hpp>
# include <cppad/local/sparse_internal.hpp>
namespace CppAD { // <API key>
/*!
Reverse Jacobian sparsity patterns.
\tparam Base
is the base type for this recording.
\tparam SizeVector
is the simple vector with elements of type size_t that is used f... |
export const getIsAdmin = (state) => state.session.user?.administrator;
export const getUserId = (state) => state.session.user?.id;
export const getDevices = (state) => Object.values(state.devices.items);
export const getPosition = (id) => (state) => state.positions.items[id]; |
package edu.stanford.rsl.conrad.numerics;
import Jama.Matrix;
import Jama.util.*;
public class DecompositionSVD implements java.io.Serializable {
private static final long serialVersionUID = 201880439875521920L;
/** Arrays for internal storage of U and V.
@serial internal storage of U.
@serial internal st... |
# logicsim
A combinatorial circuit simulation engine.
Note: When I came up with the name logicsim there were already hundreds of other repos on github with the same name but I only came to realise this much later and it was way too late to change the name.So be aware that this is not a fork of any other repository.
The... |
package net.sourceforge.seqware.common.util.filetools.lock;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.nio.channels.FileLock;
import java.nio.charset.StandardCharsets;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* <p... |
import sinon from 'sinon';
import chai from 'chai';
import sinonChai from "sinon-chai";
import subset from 'chai-subset';
window.sinon = sinon;
window.chai = chai;
chai.use(sinonChai);
chai.use(subset);
window.expect = chai.expect;
window.should = chai.should;
import * as fixtures from './fixtures.js';
window.fixtures ... |
<?php
App::uses('AppController', 'Controller');
class CentrosController extends AppController {
var $name = 'Centros';
public $uses = array('Centro', 'Titulacion');
var $paginate = array('Centro' => array('limit' => 4, 'order' => 'Centro.cue ASC'));
public function beforeFilter() {
parent::befo... |
<?php
/**
* @see <API key>
*/
require_once 'Zend/Gdata/Extension.php';
/**
* @see Zend_Gdata_Entry
*/
require_once 'Zend/Gdata/Entry.php';
class <API key> extends <API key>
{
protected $_rootElement = 'entryLink';
protected $_href = null;
protected $_readOnly = null;
protected $_rel = null;
prot... |
#include "dllmain.h"
wchar_t *FailLocalCmd = L"Failed: Local Command Only.",
*FailSvCmd = L"Failed: Server Command Only.",
*FailInvalNum = L"Failed: Invalid number(s).",
*FailInvalBool = L"Failed: Invalid boolean.",
*FailBadSpawn = L"Failed: Unable to create Object(s) next to %s",
/*BOOL __stdcall Halo::<AP... |
package eu.fbk.fcw.utils.corpus;
import java.io.Serializable;
public class Word implements Serializable {
private int id;
private String form;
private String lemma;
private String pos;
private int depParent;
private String depLabel;
private int begin;
private int end;
public static W... |
<?php
namespace Bk\MeteoBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class MeteoController extends Controller {
public function indexAction() {
$param = $this->container->getParameter('OpenWeatherMap');
/*
$fake = '../src/Bk/MeteoBundle/cache/fake/france.json'... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AppRequestGenerator
{
public class TabSettings
{
public TabSettings(string name)
{
this.Name = name;
this.Settings = new Dictionary<string, object... |
package com.github.epd.sprout.levels;
import com.github.epd.sprout.Assets;
import com.github.epd.sprout.messages.Messages;
import java.util.Arrays;
public class DeadEndLevel extends Level {
private static final int SIZE = 5;
{
color1 = 0x534f3e;
color2 = 0xb9d661;
}
@Override
public ... |
import sys,os
class Solution():
def reverse(self, x):
sign=1
if x<0:
sign=-1
x=x*-1
token=str(x)
str_rev=""
str_len=len(token)
for i in range(str_len):
str_rev+=token[str_len-i-1]
num_rev=int(str_rev)
if sign==1 and ... |
#include <vector>
#include "profit/common.h"
#include "profit/model.h"
#include "profit/sky.h"
namespace profit {
void SkyProfile::validate()
{
/* no-op for the time being, probably check value in range, etc */
}
void SkyProfile::<API key>(unsigned int finesampling)
{
bg = requested_bg / (finesampling * finesam... |
package ch.cyberduck.core.cloudfront;
import ch.cyberduck.core.<API key>;
import ch.cyberduck.core.<API key>;
import ch.cyberduck.core.Host;
import ch.cyberduck.core.HostUrlProvider;
import ch.cyberduck.core.LocaleFactory;
import ch.cyberduck.core.LoginCallback;
import ch.cyberduck.core.Path;
import ch.cyberduck.core.<... |
package com.creativecub.iotarduino;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.Switch;
import android.widget.TextView;
import java.util.List;
public class DataAdapter e... |
var classglobal =
[
[ "Buffer", "df/d84/classglobal.html#<API key>", null ],
[ "run", "df/d84/classglobal.html#<API key>", null ],
[ "require", "df/d84/classglobal.html#<API key>", null ],
[ "GC", "df/d84/classglobal.html#<API key>", null ],
[ "console", "df/d84/classglobal.html#<API key>", null ]
]... |
using UnityEngine;
using UnityEngine.UI;
using System.Collections.Generic;
public class NPCController : MonoBehaviour {
public new string name;
//public GameObject uiCanvas;
public Text uiName;
void Awake() {
uiName.text = name;
}
//void Update() {
// if(Camera.main != null && Cam... |
<div class="modal-header">
<h4 style="color: white">Validation results for {{panelLabel}}</h4>
</div>
<div class="modal-body">
<div ng-if="errorsExist()">
<div ng-repeat="error in errors track by $index">
<ul class="list-group">
<li class="list-group-item <API key>">{{error}... |
//Settings
actype = ['image/png','image/jpeg','image/jpg','image/gif']; /* Accepted mime type */
maxweight = 819200; /* Max file size in octets */
maxwidth = 150; /* Max width of the image */
maxheight = 150; /* Max height*/
//Caching variable selector
ish = $('.ish'); /* On attach element hide or show */
msgUp = $('.m... |
#ifndef LZH_SOCKET_SERVER
#define LZH_SOCKET_SERVER
#define MAXUDP_GRAM (65536)
#define LISTEN_PORT (5409)
#define PROTO_HTTP (0)
#define PROTO_MQTT (1)
#define PROTO_ENDE (2)
typedef struct tagLoadParams {
unsigned long maxThread;
unsigned long maxTimeOut;
unsigned long protoType;
unsigned char* loadUr... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>What to do next! not: What to do next?</title>
<link rel="stylesheet" type="text/css" media="screen" href="style.css">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
</head>
<body class="sect... |
/** NAME : wgraph_part_zr.c **/
/** AUTHOR : Jun-Ho HER (v6.0) **/
/** Charles-Edmond BICHOT (v5.1b) **/
/** Francois PELLEGRINI **/
/** FUNCTION : This module moves all of the vertices **/
/** ... |
**IsLoginAvailable**
-
Check whether a login is avaible or not.
* **URL**
https://fr.oopad.com/WebServices/SignUpWebService/IsLoginAvailable
* **Method:**
`POST`
* **URL Params**
none
* **Data Params**
- login
`type`: string
`description`: login to check
**example:**
json
{
"login" ... |
<?php
namespace Piwik\Plugins\CoreUpdater;
use Piwik\Config;
use Piwik\Mail;
use Piwik\Option;
use Piwik\Piwik;
use Piwik\Plugins\UsersManager\API as UsersManagerApi;
use Piwik\SettingsPiwik;
use Piwik\UpdateCheck;
use Piwik\Version;
/**
* Class to check and notify users via email if there is a core update available.
... |
#include "Registry.hpp"
Registry::ExtrinsicRegistry::ExtrinsicRegistry() : window{}, splitter{}, GUI{new GuiSettings{}} {} |
const {ipcFuncMain, ipcFuncMainCb, getIpcNameFunc, <API key>} = require('./util-main')
const {ipcMain} = require('electron')
const getIpcName = getIpcNameFunc('ContextMenus')
const extInfos = require('../../extensionInfos')
const sharedState = require('../../sharedStateMain')
ipcMain.on('get-extension-menu',(e) => ipcM... |
var Card = require("./Card");
var CARDS = require("./cards");
var CARDNUM = require("./cardnum");
var api = require("../rpcapi");
var util = require("../util");
var state = require("../state");
var imgUtil = require("../img");
function IndexCard() {
Card.call(this, CARDNUM.INDEX, "#card-index");
}
IndexCard.prototype... |
package com.supermap.desktop.framemenus;
import com.supermap.desktop.Application;
import com.supermap.desktop.Interface.IBaseItem;
import com.supermap.desktop.Interface.IForm;
import com.supermap.desktop.implement.CtrlAction;
import com.supermap.desktop.ui.controls.<API key>;
import javax.swing.*;
public class <API key... |
#ifndef <API key>
#define <API key>
#include "geo/linestring.h"
#include "fs/userdata/airspacereaderbase.h"
namespace atools {
namespace sql {
class SqlDatabase;
class SqlQuery;
}
namespace fs {
namespace userdata {
class <API key> :
public AirspaceReaderBase
{
public:
<API key>(sql::SqlDatabase *sqlDb);
virtual ... |
<?php
namespace Helper\Diff\Renderer\Html;
class Base extends \Helper\Diff\Renderer\Base
{
/**
* @var array Array of the default options that apply to this renderer.
*/
protected $defaultOptions = array(
'tabSize' => 4
);
/**
* Render and return an array structure suitable for gen... |
#ifndef _sentence_hh
#define _sentence_hh
#include "wordtoken.h"
// these should be in Sentence:
const int MAX_SENTENCE_LENGTH = 150; // can be set arbitrarily
class Sentence;
class GramError;
class Tagger;
class AbstractSentence {
friend class Scrutinizer;
friend class Tagger;
friend class MatchingSet;
publ... |
package me.yingrui.segment.util
import org.junit.Assert
import org.junit.Test
class WordUtilTest {
@Test
def <API key>() {
Assert.assertEquals(1, WordUtil.isNumerical("123"))
}
@Test
def <API key>() {
Assert.assertEquals(2, WordUtil.isNumerical("abc123"))
}
} |
package com.ebrightmoon.doraemonkit.ui.widget.tableview.listener;
import java.util.ArrayList;
import java.util.List;
public abstract class Observable<T> {
public final ArrayList<T> observables = new ArrayList<>();
/**AttachObserver
**/
public void register(T observer){
if(observer==null) throw... |
# syn-bomb
Automated SYN flooding tool.
# Usage
sudo syn-bomb TARGET_IP PORT NETWORK_INTERFACE
# Dependencies
<ul>
<li>hping</li>
<li>macchanger</li>
<li>ifconfig</li>
<li>dhcpcd</li>
</ul>
# Quotes
> "Windows Server 2008, you shall reboot now" <br>
~Anonymous
# Preview

Th... |
#include <iostream>
#include "CircleImpl.h"
Example::CircleImpl::CircleImpl() : m_radius(10.0)
{
std::cout << "Circle ctor" << std::endl;
}
Example::CircleImpl::CircleImpl(const CircleImpl& other) : m_radius(other.m_radius)
{
std::cout << "Circle copy ctor" << std::endl;
}
Example::CircleImpl::~CircleImpl()
{
... |
#ifndef TEMPERATUREDATA_H
#define TEMPERATUREDATA_H
#include "Data/healthdata.h"
class TemperatureData : public HealthData
{
public:
explicit TemperatureData();
explicit TemperatureData(float temperature);
explicit TemperatureData(HealthData data, float temperature);
// Accessors
float temperature()... |
<?php
require_once <API key>."<API key>.php";
interface <API key>
extends <API key>
{
/** setFormType
* @param $formType
* @return mixed
*/
public function setFormType( $formType );
public function execute();
} |
package com.fr.plugin.chart.custom.component;
import com.fr.chart.chartattr.Plot;
import com.fr.chart.web.ChartHyperPoplink;
import com.fr.chart.web.<API key>;
import com.fr.chart.web.<API key>;
import com.fr.design.<API key>;
import com.fr.design.beans.BasicBeanPane;
import com.fr.design.chart.javascript.ChartEmailPan... |
title: <API key> (<API key>)
category: tournament
# <API key>
* Planet: Tatooine
* Start date: 2019-03-28
* End date: 2019-04-03
## Rewards
* Carbonite II League: A "[Carbonite Conflict Crate (lc_conf_tier1)](lc_conf_tier1.html)"
* Carbonite I League: 2 "[Carbonite Conflict Crates (lc_conf_tier2)](lc_conf_tie... |
package test.janus.data;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.apache.log4j.Logger;
import org.janus.data.DataContext;
import org.janus.data.DataContextImpl;
import org.janus... |
package com.minecolonies.coremod.client.gui;
import com.ldtteam.blockout.Pane;
import com.ldtteam.blockout.controls.Button;
import com.ldtteam.blockout.controls.ButtonHandler;
import com.ldtteam.blockout.controls.Text;
import com.ldtteam.blockout.views.ScrollingList;
import com.ldtteam.blockout.views.Window;
import com... |
<?php
class <API key> extends <API key>
{
protected $_name = 'marketing';
protected $_primary = 'id';
}
class <API key>
{
protected $_id;
protected $_type;
protected $_code;
protected $_status;
protected $_created;
protected $_modified;
protected $_mapper;
public function __co... |
const packager = require('electron-packager')
const options = {
platform: ['darwin'],
arch: 'x64',
icon: './app/static/images/icon',
dir: '.',
ignore: ['build'],
out: './build/Release',
overwrite: true,
prune: true
}
packager(options, (error, path) => {
if (error) {
return (
console.log(`Err... |
/* This file is part of the class library */
/* fuer Informationstechnik Berlin */
/* SoPlex is distributed under the terms of the ZIB Academic Licence. */
/* along with SoPlex; see the file COPYING. If not email to soplex@zib.de. */
... |
package eu.clarin.weblicht.bindings.cmd.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;
/**
*
* @author akislev
*/
@XmlAccessorType(value = XmlAccessType.FIELD)
public... |
import * as gulp from 'gulp';
import * as runSequence from 'run-sequence';
import {loadTasks} from './tools/utils';
import {SEED_TASKS_DIR, PROJECT_TASKS_DIR} from './tools/config';
loadTasks(SEED_TASKS_DIR);
loadTasks(PROJECT_TASKS_DIR);
// Build dev.
gulp.task('build.dev', (done: any) =>
runSequence('clean.dev',
... |
package l2s.gameserver.instancemanager;
import java.util.ArrayList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import l2s.commons.util.Rnd;
import l2s.gameserver.model.Player;
import l2s.gameserver.model.quest.Quest;
import l2s.gameserver.model.quest.QuestState;
public class DailyQu... |
package com.bioxx.tfc.Render.Blocks;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.world.IBlockAccess;
import org.lwjgl.opengl.GL11;
import com.bioxx.tfc.TileEntities.TELoom;
import com.bioxx.tfc.api.TFCBlocks;... |
# -*- coding: utf-8 -*-
# Menu for quickly adding waypoints when on move
# 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
from mod... |
package com.github.kuros.random.jpa.testUtil.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "employee_department")
public class ... |
package meka.classifiers.multilabel;
import junit.framework.Test;
import junit.framework.TestSuite;
import weka.classifiers.Classifier;
/**
* Tests PMCC. Run from the command line with:<p/>
* java meka.classifiers.multilabel.PMCCTest
*
* @author FracPete (fracpete at waikato dot ac dot nz)
* @version $Revision: 11... |
package com.mucommander.ui.main;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.net.<API key>;
import java.util.*;
import java.util.List;
import java.util.regex.<API key>;
import javax.swing.*;
import javax.swing.filechooser.FileSystemView;
import com.mucommander.adb.AndroidMenu;
import com.mucommand... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<TITLE>
Uses of Class org.apache.poi.hwpf.model.FieldDescriptor (POI API Documentation)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.hre... |
<?php
/**
* FTPs file transfer handler
*
* @author Patrick Meyer
* @since d#9
*/
class FTPsHandler extends FTPHandler {
/**
* Connects to the server via using $host.
*
* @return TRUE, if connection to host can be established.
*/
function connect() {
$this->conn_id = ftp_ssl_conn... |
package dispatchers
import (
"testing"
"time"
"github.com/cgrates/cgrates/config"
"github.com/cgrates/cgrates/utils"
"github.com/cgrates/ltcache"
)
func <API key>(t *testing.T) {
cgrCfg := config.NewDefaultCGRConfig()
dspSrv := <API key>(nil, cgrCfg, nil, nil)
CGREvent := &utils.CGREvent... |
#include<bits/stdc++.h>
#define fast ios_base::sync_with_stdio(0); cin.tie(0);
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define REP(i,a,b) for (int i = a; i <= b; i++)
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pi;
int main()
{
fast;
... |
package org.shikimori.library.adapters;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import com.nostra13.<API key>.core.ImageLoader;
import org.shikimori.library.R;
import org.shikimori.library.adapters.base.BaseListAdapter;
import org.shikimori.library.adapters.holder.Settin... |
#include <XBeeAtCmd.hpp>
#include <iostream>
#include <stdlib.h>
#include <XBeeDebug.hpp>
XBeeAtCmd::XBeeAtCmd(){
_frameId = <API key>;
_atCmd = XBEE_DEFAULT_AT_CMD;
_paramValue = new vector<uint8_t>();
}
vector<uint8_t> XBeeAtCmd::getParamValue(){
return *(_paramValue);
}
unsigned short XBeeAtCmd::leng... |
<!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.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libnolimits: Member L... |
<div ng-if="$ctrl.scenes.length > 0" ng-repeat="scene in $ctrl.scenes track by $index">
<<API key>
text="scene.revisions[scene.revision].text"
path="/chapters/{{$ctrl.chapter.$loki}}/scenes/{{scene.$loki}}/edit"
sectiontitle="scene.title">
</<API key>>
</div>
<div ng-if="$ctrl.scenes.len... |
#pragma once
#include "imgui.h"
namespace bengine {
inline void <API key>()
{
ImGuiStyle& style = ImGui::GetStyle();
// light style from Pacôme Danhiez (user itamago) https://github.com/ocornut/imgui/pull/511#<API key>
style.Alpha = 1.0f;
style.FrameRounding = 3.0f;
style... |
<?php
namespace botwebapi\resources\api\workspaces\<API key>;
use botwebapi\resources as resources;
use botwebapi as botwebapi;
class <API key> extends resources\BotWebApiResource
{
public function __construct($resource_uri, $parent_resource)
{
parent::__construct($resource_uri, '1.0', 'https://github.c... |
# -*- coding: utf-8 -*-
# <API key>
import numpy as np
import MODFLOW_NWT_lib as mf # functions to write individual MODFLOW files
import os # os functions
from ConfigParser import SafeConfigParser
parser = SafeConfigParser()
parser.read('settings.ini')
LOCAL_DIR = parser.get('settings', 'local_dir')
GSFLOW_DIR = LOCAL... |
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 /summon command
*
*/
public class SummonCommand extends Command {
/**
* The instance of ... |
<datalist id="helbideak">
<!--helbideak
<option value="{helbidea}">
<!--helbideak
</datalist> |
// Part of: Photon Unity Demos
// <summary>
// Used as starting point to let developer choose amongst all demos available.
// </summary>
// <author>developer@exitgames.com</author>
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine.EventSystems;
usi... |
#!/usr/bin/env python
# encoding: utf-8
__version__ = "$Id$"
#end_pymotw_header
import EasyDialogs
valid_responses = { 1:'yes',
0:'no',
-1:'cancel',
}
response = EasyDialogs.AskYesNoCancel('Select an option')
print 'You selected:', valid_responses[response] |
package com.mdsgpp.cidadedemocratica.requester;
import android.test.AndroidTestCase;
import com.mdsgpp.cidadedemocratica.model.Tag;
import org.json.JSONArray;
import org.json.JSONException;
import org.junit.Test;
import java.util.ArrayList;
public class <API key> extends AndroidTestCase implements <API key> {
<API ... |
package es.ucm.fdi.clover.model;
import es.ucm.fdi.clover.event.<API key>;
import es.ucm.fdi.clover.event.<API key>;
import java.util.ArrayList;
import junit.framework.*;
import es.ucm.fdi.clover.test.TestGraph;
import java.util.Collection;
/**
*
* @author mfreire
*/
public class <API key> extends TestCase {
pri... |
# mappers/statsd
The statsd mapper
transforms beacon data
into [statsd][statsd] [timers][timers].
It accepts one option,
`prefix`
(`-x` from the command line),
which allows you
to specify
a namespace
that will be applied
to the beginning
of mapped timer names.
This mapper
also exports
a separator string,
`'\n'`,
for us... |
package info.carlwithak.mpxg2.printing;
import info.carlwithak.mpxg2.model.Program;
import info.carlwithak.mpxg2.model.RoutingData;
import info.carlwithak.mpxg2.model.effects.algorithms.Ambience;
import info.carlwithak.mpxg2.model.effects.algorithms.AutoPan;
import info.carlwithak.mpxg2.model.effects.algorithms.Chamber... |
package com.oitsjustjose.vtweaks.common.config;
import net.minecraftforge.common.ForgeConfigSpec;
public class ItemTweakConfig {
private static final String <API key> = "item tweaks";
public static ForgeConfigSpec.BooleanValue ENABLE_EGG_HATCHING;
public static ForgeConfigSpec.IntValue EGG_HATCING_CHANCE;
... |
using System;
using System.Globalization;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.ModelBinding;
namespace Yavsc
{
public class <API key> : IModelBinder
{
public async Task<ModelBindingResult> BindModelAsync(ModelBindingContext bindingContext)
{
ValueProviderResult val... |
require_relative 'blockchain'
class EcononyNode
def req_main
mailbox = ZMQ::Socket.new ZMQ::PULL
mailbox.bind 'inproc://requests'
requesters = []
while true
task, *args = mailbox.recv_array
end
end
end
# vim:tabstop=2 shiftwidth=2 noexpandtab: |
int <API key>::actual_calculate(PartCfg & partCfg) {
double* A = last_value;
unsigned int i;
unsigned int block;
unsigned int n_blocks;
unsigned int blocksize;
unsigned int id;
IntList* ids;
if (!sortPartCfg()) {
runtimeErrorMsg() <<"could not sort partCfg";
return -1;
}
ids=(IntList*) con... |
{-# LANGUAGE Rank2Types, GADTs #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Helium.Syntax.UHA_Pretty where
-- Below two imports are to avoid clashes of "list" as used by the AG system.
-- Effectively, only list from the imported library needs to be qualified.
import Prelude hiding ((<$>))
import Text.PrettyPrint.Lei... |
#include <QDateTime>
// Application
#include "CRemoteControlData.h"
quint32 CFileTransferData::m_ulNextTransferID = 1;
CFileTransferData::CFileTransferData(QTcpSocket* pSocket, const QString& sSourceName, const QString& sTargetName, quint32 ulFileSize, bool bOut)
: m_pSocket(pSocket)
, m_pFile(nullptr)
, <A... |
layout: politician2
title: perumal d
profile:
party: IND
constituency: Vellore
state: Tamil Nadu
education:
level: 10th Pass
details: govt school kanniyambadi
photo:
sex:
caste:
religion:
<API key>:
<API key>: 0
date-of-birth: 1978
profession:
networth:
assets:
liabilities:
p... |
package org.<API key>.evaluator.data.spec;
import java.lang.ref.SoftReference;
/**
* The storage type of
* {@link org.<API key>.evaluator.data.spec.Attribute
* attribute}. Attributes can be {@link #PERMANENTLY_STORED permanently}
* stored, {@link #TEMPORARILY_STORED temporarily} stored as long as there
* is enough... |
#include <stdio.h>
#include "foreach.h"
#include "cslib.h"
#include "generic.h"
#include "graph.h"
#include "hashmap.h"
#include "iterator.h"
#include "itertype.h"
#include "set.h"
#include "strlib.h"
#include "unittest.h"
struct GraphCDT {
IteratorHeader header; /* Header to make graphs iterable */
Set... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.