answer stringlengths 15 1.25M |
|---|
package gov.va.med.imaging.pathology.rest.translator;
import java.util.Date;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* @author VHAISWWERFEJ
*
*/
public class <API key>
{
@Test
public void testDateTranslation()
{
try
{
Date date = <API key>.translateDate("2... |
package io.quarkus.grpc.examples.hello;
import static io.restassured.RestAssured.get;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.jupiter.api.Test;
import io.quarkus.test.junit.QuarkusTest;
@QuarkusTest
class <API key> {
@Test
public void <API key>() {
String response = ge... |
local json = require "cjson"
local http_client = require "kong.tools.http_client"
local spec_helper = require "spec.spec_helpers"
local BASE_URL = spec_helper.API_URL.."/apis/%s/plugins/"
describe("Rate Limiting API", function()
setup(function()
spec_helper.prepare_db()
spec_helper.insert_fixtures {
api... |
define([
'jquery',
'underscore',
'backbone',
'app'
],
function (
$, _, Backbone, app
) {
var Models = {},
Collections = {},
Views = {};
Models.Project = Backbone.Model.extend();
Collections.Projects = Backbone.Model.extend({
model: Models.Project,
url: fun... |
package pl.matisoft.soy.config;
import com.google.template.soy.jssrc.SoyJsSrcOptions;
import com.google.template.soy.tofu.SoyTofuOptions;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org... |
package userstoreauth.servlets;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import userstoreauth.model.UserVer2;
import userstoreauth.service.UserStoreMb;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
i... |
from socket import inet_ntoa
from struct import pack
def calcDottedNetmask(mask):
bits = 0
for i in xrange(32 - mask, 32):
bits |= (1 << i)
packed_value = pack('!I', bits)
addr = inet_ntoa(packed_value)
return addr |
import pytest
import salt.engines
from tests.support.mock import MagicMock, patch
def <API key>():
engine = salt.engines.Engine({}, "foobar.start", {}, {}, {}, {}, name="foobar")
assert engine.name == "foobar"
def <API key>():
engine = salt.engines.Engine({}, "foobar.start", {}, {}, {}, {}, name="foobar")
... |
// ExportXmlParser.cpp
// Simple callback non-validating XML parser implementation.
// Microsoft XNA Developer Connection.
#include "stdafx.h"
#include "ExportXmlParser.h"
namespace ATG
{
// Name: XMLParser::XMLParser
XMLParser::XMLParser()
{
m_pWritePtr = m_pWriteBuf;
m_pReadPtr = m_pReadBuf;
m_pISAXCal... |
package com.intellij.execution.testframework.sm.runner;
import com.intellij.execution.testframework.sm.<API key>;
import com.intellij.execution.testframework.sm.runner.events.*;
import com.intellij.openapi.application.Application;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.p... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SQLite;
using System.Data.Common;
using System.IO;
namespace GatherAll
{
class Cls_SqliteMng
{
//string m_DBName = "";
//string connStr = "";
//HyData
public... |
package br.copacabana;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import javax.cache.Cache;
import javax.servlet.http.HttpServletReque... |
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "user"
client_key "#{ENV['HOME']}/.ssh/user.pem"
<API key> "user-validator"
validation_key "#{current_dir}/validator.pem"
chef_server_url "https://api.opscode.c... |
using System.Threading;
using System.Threading.Tasks;
using MediatR;
namespace CoreDocker.Core.Framework.CommandQuery
{
public class MediatorCommander : ICommander
{
private readonly IMediator _mediator;
public MediatorCommander(IMediator mediator)
{
_mediator = mediator;
... |
package hska.iwi.eShopMaster.model.businessLogic.manager.impl;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.WebResource;
import hska.iwi.eShopMaster.model.businessLogic.manager.CategoryManag... |
function f() {
var x=arguments[12];
} |
import App from '../containers/App';
import { PageNotFound } from '../components';
import homeRoute from '../features/home/route';
import taggrRoute from '../features/taggr/route';
const routes = [{
path: '/',
component: App,
childRoutes: [
homeRoute,
taggrRoute,
{ path: '*', name: 'Page not found', c... |
public class Student {
String name;
int grade;
@Override
public String toString() {
String temp = "";
temp += "name: " + name + "\n";
temp += "grade: " + grade + "\n";
return temp;
}
@Override
public boolean equals(Object obj) {
if(this==obj) return tr... |
# Arduino Debug
## Install
1. install Arduino IDE (free)
www.arduino.cc > download
2. install Microsoft Visual Studio 2015 Community Edition (free)
* get vs2015.com_chs.iso
* select C++ from the available VS2015 setup options.
>It requires Visual Studio C++ to be installed before Arduino projects can be created or open... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class io.permazen.util.NavigableSetPager (Permazen 4.1.9-SNAPSHOT API)</title>
<link rel="stylesheet" type="text/css" href="../../../../style... |
using System;
using System.IO;
using System.Reflection;
using Moq;
using NUnit.Framework;
using Weald.Service;
namespace Weald.Tests
{
[TestFixture]
public class <API key>
{
private string _tempFilePath;
[SetUp]
public void SetUp()
{
_tempFilePath = Path.GetTempFi... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_45) on Mon Mar 03 10:44:38 EST 2014 -->
<title>Uses of Interface org.hibernate.event.spi.<API key> (Hibernate JavaDocs)</title>
<meta name="date" content="2014-03-03">
<link rel="stylesheet" type="text/css" href="... |
package com.intellij.openapi.vcs;
import com.intellij.execution.ui.ConsoleView;
import com.intellij.execution.ui.<API key>;
import com.intellij.util.containers.ContainerUtil;
import consulo.util.lang.Pair;
import consulo.util.lang.StringUtil;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import jav... |
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2011.09.09 at 01:22:27 PM CEST
package test;
import javax.xml.bind.annotation.XmlAccessType... |
'use strict';
const Task = require('co-task');
const sql = require('../api/helpers/sql');
module.exports = {
up: function (queryInterface, Sequelize) {
return Task.spawn(function* () {
yield queryInterface.addColumn('ClassicSalads', '<API key>', Sequelize.INTEGER);
yield sql.foreignKeyUp(queryInterfac... |
<div class="navbar-default sidebar" role="navigation">
<div class="sidebar-nav navbar-collapse">
<ul class="nav in" id="side-menu">
<li>
</li>
<li ng-class="{active: collapseVar==key}" ng-repeat="(key, value) in doc.data">
<a href=""... |
# Package : filebeat
# Version : 7.2.0
# Tested on : RHEL 7.5
# Maintainer : Edmond Chan <ckchan@hk1.ibm.com>
# It may not work as expected with newer versions of the
# package and/or distribution. In such case, please
# contact "Maintainer" of this script.
#!/bin/... |
// Code generated - DO NOT EDIT.
package topology
import (
"github.com/skydive-project/skydive/graffiti/getter"
"strings"
)
func (obj *NextHop) GetFieldBool(key string) (bool, error) {
return false, getter.ErrFieldNotFound
}
func (obj *NextHop) GetFieldInt64(key string) (int64, error) {
switch key {
... |
# <API key>: true
module Beta
module Types
module Objects
class PrefectureType < Beta::Types::Objects::Base
implements GraphQL::Types::Relay::Node
global_id_field :id
field :annict_id, Integer, null: false
field :name, String, null: false
end
end
end
end |
import java.util.Scanner;
/**
* @author Oleg Cherednik
* @since 13.07.2018
*/
public class Solution {
static int palindromeIndex(String s) {
for (int i = 0, j = s.length() - 1; i < j; i++, j
if (s.charAt(i) == s.charAt(j))
continue;
for (int k = i, m = j - 1; k < m... |
package de.newsarea.homecockpit.connector.facade.registration.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.net.URL;
import java.util.ArrayList;
import java.util.Enumerati... |
package com.github.database.rider.core.script;
import org.assertj.core.api.SoftAssertions;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import javax.script.ScriptException;
import static org.assertj.core.api.Java6Assertions.assertThat;
public class <AP... |
/*global describe, beforeEach, it*/
'use strict';
var assert = require('yeoman-generator').assert;
var helper = require('./helper');
describe('mcap:connections', function () {
beforeEach(function (done) {
var answers = {
name: 'MyApp'
};
// Creates a generateor with the default options / arguments
... |
package com.github.agourlay.cornichon.steps.wrapped
import com.github.agourlay.cornichon.core._
import com.github.agourlay.cornichon.steps.regular.assertStep.{ AssertStep, <API key> }
import com.github.agourlay.cornichon.testHelpers.CommonTestSuite
import munit.FunSuite
import scala.concurrent.duration._
class WithinSt... |
const browserSync = require('../../../');
const utils = require('../utils');
const register = require('../../../dist/plugins/clients').ClientEvents.register;
const assert = require('chai').assert;
describe('Client connection stream', function () {
it('does not have duplicates', function (done) {
... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_112) on Tue Sep 12 14:31:26 MST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface org.wildfly.swarm.config.management.security_realm.Ldap<API key> (BOM: * : All 2017.9.... |
#!/usr/bin/env python
"""A flow to run checks for a host."""
from grr.lib import aff4
from grr.lib import flow
from grr.lib import rdfvalue
from grr.lib.checks import checks
from grr.proto import flows_pb2
class CheckFlowArgs(rdfvalue.RDFProtoStruct):
protobuf = flows_pb2.CheckFlowArgs
class CheckRunner(flow.GRRFlow)... |
package fi.rivermouth.talous.auth;
import java.util.ArrayList;
import java.util.List;
import org.springframework.security.authentication.<API key>;
import org.springframework.security.authentication.Username<API key>;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.Gran... |
#include <assert.h>
#include <pthread.h>
#include <stdint.h>
#include <time.h>
#include "../lib/includes.h"
#include "../lib/blacklist.h"
#include "../lib/logger.h"
#include "../lib/xalloc.h"
#include "iterator.h"
#include "aesrand.h"
#include "shard.h"
#include "state.h"
struct iterator {
cycle_t cycle;
uint8_... |
package org.elasticsearch.rest.action.admin.indices;
import com.carrotsearch.hppc.cursors.ObjectObjectCursor;
import org.elasticsearch.action.admin.indices.alias.get.GetAliasesRequest;
import org.elasticsearch.action.admin.indices.alias.get.GetAliasesResponse;
import org.elasticsearch.action.support.IndicesOptions;
imp... |
# Sample : put() : Put a single request message to a queue
require 'wmq'
WMQ::QueueManager.connect(q_mgr_name: 'REID') do |qmgr|
message = WMQ::Message.new
message.data = 'Hello World'
message.descriptor = {
msg_type: WMQ::MQMT_REQUEST,
reply_to_q: 'TEST.REPLY.QUEUE'
}
qmgr.put(q_name: 'TEST.QU... |
using System;
using System.Threading;
using System.Threading.Tasks;
using Moq;
using Moq.Protected;
using Riganti.Utils.Infrastructure.Core;
using Xunit;
#if EFCORE
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Riganti.Utils.Infrastructure.EntityFrameworkCore.Transaction... |
<?php
namespace Modules\IzCore\Repositories;
use Modules\IzCore\Repositories\Object\DataObject;
use Modules\IzCore\Repositories\Theme\View\<API key>;
use Pingpong\Modules\Repository;
class Theme extends DataObject {
/**
* @var
*/
protected $currentPath;
/**
* [
*'path'=>['Modules\IzCore\... |
package com.ejlchina.searcher.implement;
import com.ejlchina.searcher.*;
import com.ejlchina.searcher.bean.InheritType;
import java.lang.reflect.Field;
import java.util.*;
import java.lang.reflect.Modifier;
import java.util.concurrent.ConcurrentHashMap;
/***
*
* @author Troy.Zhou @ 2021-10-30
* @since v3.0.0
*/
pub... |
# AUTOGENERATED FILE
FROM balenalib/<API key>:bullseye-run
ENV NODE_VERSION 14.18.3
ENV YARN_VERSION 1.22.4
RUN buildDeps='curl libatomic1' \
&& set -x \
&& for key in \
<API key> \
; do \
gpg --batch --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --batch --keyserver keyserver.pgp.c... |
'use strict';
var aCallable = require('../internals/a-callable');
var anObject = require('../internals/an-object');
var getBuiltIn = require('../internals/get-built-in');
var getMethod = require('../internals/get-method');
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
var createMethod = function (TYPE) {
var IS_TO_ARRAY =... |
sap.ui.require([
"jquery.sap.global",
"sap/ui/base/SyncPromise",
"sap/ui/model/BindingMode",
"sap/ui/model/ChangeReason",
"sap/ui/model/ClientListBinding",
"sap/ui/model/Context",
"sap/ui/model/ContextBinding",
"sap/ui/model/Filter",
"sap/ui/model/MetaModel",
"sap/ui/model/Proper... |
export const removeWeight = (element) => {
try {
element.removeAttribute('data-weight');
} catch (e) {
// We are now in IE11 territory
if (!!element) {
element.setAttribute('data-weight', null);
}
}
}; |
using MO.Core.Forms.Common;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace MO.Core.Forms.Controls
{
public partial class QColorPicker : QControl
{
protected int _heighMax = 20;
protected int _colorWidth = 18;
protected Color _selectColor = ... |
package io.really.model
import akka.contrib.pattern.ShardRegion
import _root_.io.really.{ <API key>, ReallyConfig }
class CollectionSharding(config: ReallyConfig) {
implicit val implicitConfig = config
val maxShards = config.Sharding.maxShards
/**
* ID Extractor for Akka Sharding extension
* ID is the Bucke... |
#!/bin/bash
echo "bootstrap"
service ssh restart
cd /MapRouletteAPI
# Delete any RUNNING_PID file on restart
rm RUNNING_PID || true
./setupServer.sh > setupServer.log 2>&1
while true; do sleep 1000; done |
#define NETCORE
using System;
using System.Linq;
using System.Reflection;
namespace Foundatio.Force.DeepCloner.Helpers
{
internal static class ReflectionHelper
{
public static bool IsEnum(this Type t)
{
#if NETCORE
return t.GetTypeInfo().IsEnum;
#else
return t.IsEnum;
#en... |
"""Translation helper functions."""
import locale
import os
import re
import sys
import gettext as gettext_module
from cStringIO import StringIO
from django.utils.importlib import import_module
from django.utils.safestring import mark_safe, SafeData
from django.utils.thread_support import currentThread
# Translations a... |
#pragma once
#include "DBC/DBC__File.h"
DBC_DEF_BEGIN(<API key>)
__DBC_REF_ID(<API key>, CreatureModelDataID, 2);
__DBC_TVALUE(uint32, SoundID, 3);
__DBC_REF_ID(<API key>, HumanoidData, 4);
__DBC_TVALUE(float_t, ... |
# ncurses, keep it simple for the moment
option(USE_BUNDLED_NCURSES "Enable building of the bundled ncurses" ${USE_BUNDLED_DEPS})
if(CURSES_INCLUDE_DIR)
# we already have ncurses
elseif(NOT USE_BUNDLED_NCURSES)
set(CURSES_NEED_NCURSES TRUE)
find_package(Curses REQUIRED)
message(STATUS "Found ncurses: in... |
{-# LANGUAGE ExplicitForAll, Rank2Types #-}
-- | An implementation of Reagents (http:
-- NOTE: currently this is just a very tiny core of the Reagent design. Needs
-- lots of work.
module Data.Concurrent.Internal.Reagent where
import Data.IORef
import Data.Atomics
import Prelude hiding (succ, fail)
type Reagent a = fo... |
using System;
using NDatabase.Api;
using NUnit.Framework;
using Test.NDatabase.Odb.Test.VO.Human;
namespace Test.NDatabase.Odb.Test.Query.Criteria
{
public class TestPolyMorphic : ODBTest
{
private const string DbName = "TestPolyMorphic.ndb";
[Test]
public void Test1()
{
... |
package org.myrobotlab.framework;
import static org.myrobotlab.framework.StatusLevel.DEBUG;
import static org.myrobotlab.framework.StatusLevel.ERROR;
import static org.myrobotlab.framework.StatusLevel.INFO;
import static org.myrobotlab.framework.StatusLevel.SUCCESS;
import static org.myrobotlab.framework.StatusLevel.WA... |
using System.Threading;
using Microsoft.CodeAnalysis.CSharp.Extensions;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Shared.Collections;
using Microsoft.CodeAnalysis.Structure;
using Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAnalysis.CSharp.Structure
{
internal class <API key>... |
// file at the top-level directory of this distribution and at
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Type resolution: the phase that finds all the types in the AST with
// unresolved type variables and replaces "ty_var" types with their
// substitutions.... |
'use strict';
module.exports = function (grunt) {
grunt.config(
'a11y', {
live: {
options: {
urls: ['www.google.com']
}
}
});
}; |
package org.lightadmin.core.view.preparer;
import org.apache.tiles.AttributeContext;
import org.apache.tiles.context.TilesRequestContext;
import org.lightadmin.core.config.domain.<API key>;
public class FormViewPreparer extends <API key> {
@Override
protected void execute(final TilesRequestContext tilesContext,... |
import logging
from datetime import timedelta
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import (
CONF_USERNAME,
CONF_PASSWORD,
CONF_NAME,
<API key>,
)
from homeassistant.helpers.entit... |
#ifndef _CUFTPD_H
#define _CUFTPD_H
#define CUFTPD_DEBUG(fmt, ...) cuftpd_debug(__FILE__, __LINE__, fmt, __VA_ARGS__)
#define CUFTPD_ARR_LEN(arr) (sizeof(arr)/sizeof(arr[0]))
#define CUFTPD_VER "1.0"
#define CUFTPD_DEF_SRV_PORT 21
#define <API key> ... |
package no.nb.nna.veidemann.chrome.client.ws;
import no.nb.nna.veidemann.chrome.client.ws.<API key>.Response;
public class <API key> extends Command<Response> {
public <API key>(Cdp client) {
super(client, "Browser", "getVersion", Response.class);
}
public static class Response {
private Str... |
package fr.javatronic.blog.massive.annotation1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_914 {
} |
// +build integration,ethereum
package ethclient
import (
"encoding/json"
"fmt"
"testing"
"github.com/hyperledger/burrow/crypto"
"github.com/hyperledger/burrow/encoding/web3hex"
"github.com/hyperledger/burrow/execution/solidity"
"github.com/hyperledger/burrow/rpc/rpcevents"
"github.com/h... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the output module field formatting helper."""
import unittest
from dfdatetime import semantic_time as <API key>
from dfvfs.path import fake_path_spec
from plaso.containers import events
from plaso.lib import definitions
from plaso.output import formatting_help... |
package de.tototec.sbuild.internal
import de.tototec.sbuild.TargetContext
import de.tototec.sbuild.<API key>
import de.tototec.sbuild.Project
trait <API key> {
def targetContext: TargetContext
protected[sbuild] def <API key>: Seq[TargetContext]
}
object <API key> extends ThreadLocal[<API key>] {
private[sbuild] o... |
package cn.edu.hhu.reg.vo;
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="doctor_login")
public class DoctorLogin {
@Id
@Generate... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_25) on Tue Oct 08 12:24:28 JST 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Uses of Class twitter4j.examples.geo.CreatePlace (<TwitterConsumerkey> 3.0.4 API)</title>
<meta n... |
package problems;
import java.util.Arrays;
import java.util.PriorityQueue;
public class SuperUglyNumber {
class Node implements Comparable<Node> {
int val;
final int prime_index;
public Node(int value, int prime_idx) {
this.val = value;
this.prime_index = prime_idx;
... |
package yuku.alkitab.base.util;
import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.database.Cursor;
import android.database.DatabaseUtils;
import android.database.sqlite.SQLiteDatabase;
import android.os.AsyncTask;
import android.support.annotation.NonNull;
import andr... |
package com.opengamma.core.region;
import java.util.Set;
import org.joda.beans.impl.flexi.FlexiBean;
import org.threeten.bp.ZoneId;
import com.opengamma.id.<API key>;
import com.opengamma.id.ExternalIdBundle;
import com.opengamma.id.UniqueId;
import com.opengamma.id.UniqueIdentifiable;
import com.opengamma.util.PublicA... |
var config = require('./lib/config');
var FaceRec = require('./lib/facerec').FaceRec;
var hfr = new FaceRec(config);
// constant
var threshold = 20;
var prevX;
var prevY;
setInterval(function() {
var result = hfr.detect();
console.log('result:' + JSON.stringify(result));
if (result && result.pos_x && result... |
package cat.ereza.<API key>.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import cat.ereza.<API key>.<API key>;
public class ClearStack extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceStat... |
using System;
using System.Collections.Generic;
using System.Data.Services.Common;
using System.IO;
using System.Linq;
using NuGet.Resources;
namespace NuGet {
[DataServiceKey("Id", "Version")]
[<API key>("LastUpdated", <API key>.Updated, <API key>.Plaintext, keepInContent: false)]
[<API key>("Id", <API key... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_75) on Tue May 19 17:15:49 PDT 2015 -->
<title>Uses of Class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter (Hadoop 2.6.0-mr1-cdh5.4.2 API)</title>
<meta name="date" content="2015-05-19">
<link rel=... |
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PriceComparable | GDAX Trading Toolkit API Reference</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1... |
#define DEBUG_TYPE "sil-simplify-cfg"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "swift/SIL/SILInstruction.h"
#include "swift/SILOptimizer/Analysis/DominanceAnalysis.h"
#include "swift/SILOptimizer/Utils/CFG.h"
#include "swift/SILOptimizer/Utils/Local.h"
#include "swift/SILOptimizer/Ut... |
package jp.co.omana.action;
import org.seasar.struts.annotation.Execute;
public class ServiceAction {
@Execute(validator = false)
public String index() {
return "board.jsp";
}
@Execute(validator = false)
public String confirm() {
return "index.jsp";
... |
from turbo.flux import Mutation, register, dispatch, register_dispatch
import mutation_types
@register_dispatch('user', mutation_types.INCREASE)
def increase(rank):
pass
def decrease(rank):
return dispatch('user', mutation_types.DECREASE, rank)
@register_dispatch('metric', 'inc_qps')
def inc_qps():
pass |
package com.sivalabs.demo.orders.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import com.sivalabs.demo.orders.entities.Order;
/**
* @author Siva
*
*/
public interface OrderRepository extends JpaRepository<Order, Integer>{
} |
var structCO__config__t =
[
[ "CNT_NMT", "structCO__config__t.html#<API key>", null ],
[ "ENTRY_H1017", "structCO__config__t.html#<API key>", null ],
[ "CNT_HB_CONS", "structCO__config__t.html#<API key>", null ],
[ "ENTRY_H1016", "structCO__config__t.html#<API key>", null ],
[ "CNT_EM", "structCO__c... |
#include <tuple>
#include "Vector2.h"
Vector2::Vector2(void)
{
}
Vector2::Vector2(float X, float Y)
{
this->X = X;
this->Y = Y;
}
// Returns the length of the vector
float Vector2::Magnitude()
{
return sqrt(X * X + Y * Y);
}
// Returns the length of the vector squared
// Used for length comparisons without ... |
package com.easemob.chatuidemo.activity;
import java.io.<API key>;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import andr... |
@font-face {
font-family: 'Braille';
src: url(http://tjb0607.me/i3_tumblr_theme/font/Braille.woff);
}
html {
background-color: #7C8491;
background-image: url(http://static.tumblr.com/bwey4ra/Gzwno4oq5/sunset.jpg);
background-position: bottom;
<API key>: fixed;
height: 100%;
margin: 0px;
... |
# This code was automatically generated using xdrgen
# DO NOT EDIT or your changes may be overwritten
require 'xdr'
# enum PublicKeyType
# <API key> = KEY_TYPE_ED25519
module Stellar
class PublicKeyType < XDR::Enum
member :<API key>, 0
seal
end
end |
@CHARSET "UTF-8";
/*PRINCIPAL*/
body{
margin:0px;
padding:0;
font-family:verdana;
font-size: 10px;
height:100%;
width: 100%;
}
img {
border:0;
}
em {
color: #b1b1b1;
font-style: italic;
}
a {
color:#333333;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Location } from '@angular/common';
import { Merch } from '../data/merch';
import { MerchService } from '../data/merch.service';
@Component({
selector: 'app-merch-display',
templateUrl: './merch-display.comp... |
package com.github.sergejsamsonow.codegenerator.producer.pojo.renderer;
import com.github.sergejsamsonow.codegenerator.api.producer.sc.<API key>;
import com.github.sergejsamsonow.codegenerator.api.producer.sc.<API key>;
import com.github.sergejsamsonow.codegenerator.producer.pojo.model.PojoProperty;
import com.github.s... |
from functools import wraps
import json
import os
import traceback
import validators
from jinja2 import Environment, PackageLoader
from notebook.utils import url_path_join
from notebook.base.handlers import IPythonHandler
import requests
from requests.auth import HTTPBasicAuth
env = Environment(
loader=PackageLoade... |
/ [<API key>.ts]
//When used as a contextual type, a union type U has those members that are present in any of
// its constituent types, with types that are unions of the respective members in the constituent types.
interface I1<T> {
commonMethodType(a: string): string;
commonPropertyType: string;
<API key>... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SuperMap.WinRT.Core;
using SuperMap.WinRT.Utilities;
using Windows.Data.Json;
using Windows.UI;
namespace SuperMap.WinRT.REST
{
<summary>
<para>${<API key>}</para>
<para>${<API key>}</para>
</summary>
public ... |
.tobox{
float: left;
padding: 10px;
background-color: #eee;
width:120px;
margin:0 10px 10px 0px;
text-align:center;
border-radius: 3px;
}
.tobox.two{
width: 180px;
}
.tobox.fixed-box{
position:fixed;
right:50px;
top:50px;
}
.dark-tooltip{ display:none; position:absolute; z-in... |
<!doctype html public "-
<html>
<head>
<title>PHPXRef 0.7.1 : Unnamed Project : Variable Reference: $object1</title>
<link rel="stylesheet" href="../sample.css" type="text/css">
<link rel="stylesheet" href="../sample-print.css" type="text/css" media="print">
<style id="hilight" type="text/css"></style>
... |
#include <iostream>
#include "SParser.hpp"
#pragma once
namespace Silent
{
/*static class SymTablePrinter
{
public:
static void Out(std::string str, uint64_t currentTab)
{
std::string tabs = "";
for (uint64_t i = 0; i < currentTab; i++) tabs += "\t";
s... |
package net.sf.mmm.util.io.base;
import net.sf.mmm.util.exception.api.<API key>;
/**
* This class is similar to {@link java.nio.ByteBuffer} but a lot simpler.
*
* @see java.nio.ByteBuffer#wrap(byte[], int, int)
*
* @author Joerg Hohwiller (hohwille at users.sourceforge.net)
* @since 1.1.0
*/
public class ByteArr... |
package com.yahoo.vespaclient;
public class ClusterDef {
private final String name;
public ClusterDef(String name) { this.name = name; }
public String getName() { return name; }
public String getRoute() { return "[Content:cluster=" + name + "]"; }
} |
import numpy as np
class WordClusters(object):
def __init__(self, vocab, clusters):
self.vocab = vocab
self.clusters = clusters
def ix(self, word):
"""
Returns the index on self.vocab and self.clusters for 'word'
"""
temp = np.where(self.vocab == word)[0]
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.