answer stringlengths 15 1.25M |
|---|
package com.project.quiz.adapters;
import android.content.Context;
import android.database.Cursor;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.... |
package org.eclipse.jnosql.artemis.column.query;
import jakarta.nosql.Condition;
import jakarta.nosql.Sort;
import jakarta.nosql.column.Column;
import jakarta.nosql.column.ColumnCondition;
import jakarta.nosql.column.ColumnQuery;
import jakarta.nosql.mapping.Converters;
import jakarta.nosql.mapping.Pagination;
import j... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Fri Apr 06 09:47:13 MST 2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DeploymentProcessor (BOM: * : All 2018.4.2 API)</title>
<meta name="date" content="2018-04-06">
<link re... |
class BaseSvc
{
constructor(http){
this.http=http;
}
call_sp(spName, params){
return this.http.post('api/sp/call',{sp_name:spName, sp_params:params||null});
}
where(tableName, where, fieldName='id', order='DESC' ){
return this.http.post('api/sp/where',{tableName:tableName, wh... |
package com.coolweather.healthfod;
public class Food {
private String tv1;
private String tv2;
private int ivId;
public Food(int ivId,String tv1,String tv2){
this.ivId=ivId;
this.tv1=tv1;
this.tv2=tv2;
}
public String getTv1() {
return tv1;
}
public String... |
package org.locationtech.geomesa.lambda.stream.kafka
import org.locationtech.geomesa.index.planning.InMemoryQueryRunner
import org.locationtech.geomesa.index.stats.GeoMesaStats
import org.locationtech.geomesa.lambda.stream.kafka.KafkaFeatureCache.<API key>
import org.locationtech.geomesa.security.<API key>
import org.l... |
<?php
session_start();
session_destroy(); // Destroying All Sessions
include ($_SERVER['DOCUMENT_ROOT']."/checkit/database/connect.php");
if (isset($_POST['submit'])) {
$username = $_POST['user'];
$query = mysql_query("select * from Users where LoginName='$username'");
$rows = mysql_num_... |
package com.evolveum.midpoint.task.quartzimpl;
import com.evolveum.midpoint.prism.Objectable;
import com.evolveum.midpoint.prism.PrismContext;
import com.evolveum.midpoint.prism.PrismObject;
import com.evolveum.midpoint.repo.api.RepositoryService;
import com.evolveum.midpoint.repo.sql.type.<API key>;
import com.evolveu... |
package cn.howardliu.gear.monitor.core.memory;
import org.junit.Assert;
import org.junit.Test;
import javax.management.ObjectName;
import java.lang.management.BufferPoolMXBean;
import java.lang.management.ManagementFactory;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* <br>created at 17-... |
package org.streamingpool.ext.tensorics;
import org.streamingpool.ext.tensorics.testing.SerializableHasUid;
public class <API key> extends SerializableHasUid {
public <API key>() {
super(PackageReference.packageName());
}
} |
package org.xbib.content.util.geo;
import java.util.ArrayList;
import java.util.Collection;
public class GeoHashUtils {
public static final int PRECISION = 12;
private static final char[] BASE_32 = {'0', '1', '2', '3', '4', '5', '6',
'7', '8', '9', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j', 'k', 'm', '... |
from flyingpigeon.nc_utils import get_values, get_coordinates, get_index_lat, get_variable
from os.path import basename, join
from datetime import datetime as dt
from shutil import copyfile
from netCDF4 import Dataset
import numpy as np
import logging
LOGGER = logging.getLogger("PYWPS")
def fieldmean(resource):
"""... |
from __future__ import unicode_literals
import uuid
from random import randint, random
from moto.core import BaseBackend
from moto.ec2 import ec2_backends
from copy import copy
class BaseObject(object):
def camelCase(self, key):
words = []
for i, word in enumerate(key.split('_')):
if i >... |
package org.springside.examples.showcase.demos.web;
import static org.junit.Assert.*;
import java.io.IOException;
import javax.servlet.ServletException;
import org.junit.Test;
import org.springframework.mock.web.MockFilterChain;
import org.springframework.mock.web.MockFilterConfig;
import org.springframework.mock.web.<... |
# -*- coding: utf-8 -*-
def command():
return "stop-all-instance"
def init_argument(parser):
parser.add_argument("--farm-no", required=True)
def execute(requester, args):
farm_no = args.farm_no
parameters = {}
parameters["FarmNo"] = farm_no
return requester.execute("/StopAllInstance", parameters... |
package co.juliansuarez.joggingtracker;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import com.parse.Parse;
public class JoggingTrackerApp extends Application {
public static JoggingTrackerApp APP;
@Override
public void onCreate() {
super... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
body {font-family:'',dotum,Helvetica,sans-serif;text-align:center;}
.category {margin:25px 0 25px 0;}
.category span {ma... |
package njuse.ec.dao.impl;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
... |
Grafana JSON dashboard will be stored in this directory to implement
dashboards-as code.
**NOTE**: With the current version of Grafana (4.6.3), you cannot use unmodified
JSON from the export feature of Grafana, as this JSON is intented to be consumed
directly by the import feature. You have three options:
* Download th... |
var Constants = require("../../apps/constants"),
Helpers;
Helpers = module.exports = function (environment) {
var self = this,
isPrivatePortal = environment.getIsPrivatePortal();
self.isPrivate = function (req, res, next) {
if (isPrivatePortal) {
if (req.session[Constants.<API k... |
package com.goldendance.client.bean;
import java.io.Serializable;
public class StoreBean implements Serializable {
String storeid;
String nickname;
boolean isSelected;
public boolean isSelected() {
return isSelected;
}
public void setSelected(boolean selected) {
isSelected = sele... |
package urm.Controllers;
public interface <API key> {
void setView(Controller view);
void <API key>();
//tab bae
//code editor
//buttons bar
void <API key>();
void playButtonPressed();
void stepButtonPressed();
void stopButtonPressed();
void resetButtonPressed();
//registers
... |
package com.ibm.crshnburn.zosconnect.interceptor;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
public class Activator implements BundleActivator {
/*
* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
*/
public ... |
.heading-small{
font-weight:600;
}
.<API key>{
margin: 30px 0;
}
.input-find-services{
width: 30%;
margin-bottom:20px;
}
.<API key>:not(:last-child) {
border-bottom: 1px solid #dbdbdb;
}
.button-get-started {
background-image: url(icon-button-next.svg);
background-position: 95% 60%;
} |
package DataBase;
public class Task_Item {
private int id;
private String name;
private String responser;
private String time;
private String project;
private int state;
public Task_Item() {
}
public Task_Item(int id, String name, String responser, String time, String project, int st... |
package org.anystub;
@FunctionalInterface
public interface Supplier<T extends Object, E extends Throwable> {
T get() throws E;
} |
define([
'jquery',
'underscore',
'backbone',
'marionette',
'text!templates/widgets/viewers/file-tree/file-tree.tpl',
], function($, _, Backbone, Marionette, Template) {
return Backbone.Marionette.ItemView.extend({
// rendering methods
template: function(data) {
return... |
package com.android.aft.AFAppSettings.exception;
/**
* Common exception for NFSettings module
*/
@SuppressWarnings("serial")
public class <API key> extends Exception {
public <API key>(String msg) {
super(msg);
}
} |
package com.wsn.chapter13string;
import org.junit.Test;
import static org.junit.Assert.*;
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} |
package com.smp.rxplayround.sample.subject;
import com.smp.rxplayround.BasePlayground;
import org.junit.Test;
import lombok.extern.slf4j.Slf4j;
import rx.Observer;
@Slf4j
public class UsingAsyncSubject extends BasePlayground {
@Test
public void play() throws Exception {
rx.subjects.AsyncSubject<String> ... |
title: <API key>
page_title: <API key> - WinForms GridView Control
description: WinForms <API key> displays and allows editing of text data.
slug: winforms/gridview/columns/column-types/<API key>
tags: <API key>
published: True
position: 14
previous_url: <API key>
# <API key>
<API key> displays and allows editing of te... |
'use strict';
var currentlyLogging = false;
var requests = [];
function updateButtonLook() {
var img = document.getElementById("harimage");
var message = document.getElementById("harmessage");
if (currentlyLogging) {
img.src = "images/record-red.png";
message.innerHTML = "Click here to stop ... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_20) on Wed Feb 16 05:11:24 PST 2011 -->
<TITLE>
Uses of Class org.apache.pig.builtin.InvokeForLong (Pig 0.8.0-CDH3B4-SNAPSHOT API)
</TITLE>
<META NAME="date" CONTENT="2011-02-16">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../.... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using Couchbase.Core.IO.Serializers;
using Couchbase.Linq.Serialization.Converters;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Couchbase.Linq.Serialization
{
<summary>
Registry of <see cref... |
import unittest
import numpy as np
from pypvcell.<API key> import TMLayers
class TMCase(unittest.TestCase):
def test_something(self):
layers = ['Air', 'SiO2_2', 'TiO2_2', 'GaAs_2']
thicknesses = [0, 170, 135, 300]
tm_layer = TMLayers(layers, thicknesses, wl_range=np.arange(400, 1099, 1))
... |
require "rails_helper"
describe "users/show" do
it "shows the correct user" do
user = FactoryGirl.create(:user_with_avatar, name: "George Testman")
assign(:user, user)
render
expect(rendered).to match /George Testman/
expect(rendered).to have_css "img[src='#{user.avatar.url(:thumb)}']"
end
end |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_80) on Thu Oct 15 19:27:47 UTC 2015 -->
<title>GetDataSourceResult (AWS SDK for Java - 1.10.27)</title>
<meta name="date" content="2015-10-15">
<link rel="stylesheet" type="text/css" href="../../../../../JavaDoc.c... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (version 1.7.0_07) on Tue Jun 04 15:59:38 CST 2019 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>JwDataCubeAPI</title>
<meta name="date" content="2019-06-04">
<link rel="stylesheet" type="text/c... |
package org.hoteia.qalingo.app.business.job.email;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.sql.Blob;
import org.apa... |
package com.wallace.spark.sparkmllibdemo
import java.io._
import com.wallace.common.LogSupport
import org.apache.spark.ml.feature.{HashingTF, IDF, IDFModel, Tokenizer}
import org.apache.spark.sql.{DataFrame, SparkSession}
object MLLibDemo extends App with LogSupport {
val warehouseLocation = System.getProperty("user.... |
<div class="container-fluid hdb_footer text-center bggrey">
{$Think.config.WEB_COPYRIGHT}
</div>
<!-- jQuerybootstrap.min.js -->
<script src="__PUBLIC__/common/lib/jquery/jquery.min.js"></script>
<!-- Bootstrap JavaScript -->
<script src="__PUBLIC__/common/lib/bootstrap/bootstrap/js/bootstrap.min.js"></script> |
namespace XF.Common
{
using System;
using System.Collections.Generic;
using System.ServiceModel;
[ServiceBehavior(InstanceContextMode=InstanceContextMode.Single)]
public class EventService : IEventService
{
public static string URI = "net.pipe://localhost/pipe/foobar";
public Ac... |
/* $NetBSD: errarg.h,v 1.1.1.3 2006/02/06 18:13:50 wiz Exp $ */
class errarg {
enum { EMPTY, STRING, CHAR, INTEGER, UNSIGNED_INTEGER, DOUBLE } type;
union {
const char *s;
int n;
unsigned int u;
char c;
double d;
};
public:
errarg();
errarg(const char *);
errarg(char);
errarg(un... |
#datepicker {
font-size: 10pt;
color: white;
background: transparent;
border: none;
width: 70px; margin-right: 5px; margin-left: 5px; opacity: .75
}
.slider {
width: 150px;
margin-left: 15px;
}
#layerPopupFront {
position: fixed;
top: 96px;
left: 8px;
width: 350px;
height... |
<!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>Kapsel Fingerprint Unlock</title>
... |
package dynaml
import (
"fmt"
)
type ModuloExpr struct {
A Expression
B Expression
}
func (e ModuloExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) {
resolved := true
aint, info, ok := <API key>(&e.A, &resolved, nil, binding, false)
if !ok {
return nil, i... |
package com.polymathiccoder.avempace.persistence.domain.value;
import java.nio.ByteBuffer;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import org.apache.commons.lang3.ClassUtils;
import org.pojomatic.Pojomatic;
import org.pojomatic.annotations.AutoProperty;
@AutoProperty
public class Bi... |
package com.battlelancer.seriesguide.modules;
import com.battlelancer.seriesguide.loaders.MovieCreditsLoader;
import com.battlelancer.seriesguide.loaders.MovieTrailersLoader;
import com.battlelancer.seriesguide.loaders.PersonLoader;
import com.battlelancer.seriesguide.loaders.ShowCreditsLoader;
import com.battlelancer.... |
FROM joynr-cpp-base:latest
# install boost
WORKDIR /opt
# Use the same boost version which is provided by the fedora-24 repository
RUN curl -L http://sourceforge.net/projects/boost/files/boost/1.60.0/boost_1_60_0.tar.gz > boost.tar.gz \
&& mkdir -p /opt/boost \
&& tar -zxf boost.tar.gz -C /opt/boost --strip-co... |
#!/bin/sh
echo `date`
echo ' stock_china_front.sh start'
/usr/bin/php /home/data/wwwroot/test/scripts/job.php -bdc -tworkflow -<API key> -<API key> >/dev/null 2>&1
/usr/bin/php /home/data/wwwroot/test/scripts/job.php -bdc -tworkflow -<API key> -<API key> >/dev/null 2>&1
/usr/bin/php /home/data/wwwroot/test/scripts/job.... |
<?php
namespace emilkm\tests\efxphp\Amf;
use emilkm\tests\util\SendToJamfTrait;
use emilkm\tests\util\InvokeMethodTrait;
use emilkm\efxphp\Amf\Constants;
use emilkm\efxphp\Amf\OutputExt;
use emilkm\efxphp\Amf\Types\Date;
use emilkm\efxphp\Amf\Types\ByteArray;
use emilkm\efxphp\Amf\Types\Vector;
use emilkm\efxphp\Amf\Ty... |
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Custom CSS -->
<link rel="stylesheet" href="../css/missing.css" type="text/css">
<link rel="stylesheet" href="../css/bootstrap.min.css" type="text/css">
<style>
img#blackwhite {
-webkit-filter: grayscale(100%); /* Chrome, Safari, Opera */
... |
from ruamel import yaml
import logging
import sys
from pandaserver.workflow.workflow_utils import get_node_id_map, dump_nodes, <API key>, \
<API key>
from pandaserver.workflow.pcwl_utils import parse_workflow_file, resolve_nodes
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', level=logging.D... |
layout: post
title: "JQuery"
date: 2017-11-17
author: 'arron'
header-img: "img/post-bg-js-version.jpg"
tags:
- note
> *EasyUI*
*setTimeout*
**
- step1
js
var TimeFn = null;
- step2
>
js
onClickRow: function (index, row) {
clearTimeout(TimeFn);
TimeFn = setTimeout(function () {
... |
package com.twu.biblioteca;
public class UserDetails implements MenuItem{
protected static final String OPTION_NAME = "My Details";
private UserAccountManager userAccountManager;
public UserDetails(UserAccountManager userAccountManager){
this.userAccountManager = userAccountManager;
}
@Overr... |
require 'test_helper'
class RailsDbLocalizeTest < ActiveSupport::TestCase
test "truth" do
assert_kind_of Module, RailsDbLocalize
end
end |
<!doctype html><html lang="en-US">
<head>
<meta charset="utf-8">
<link href="layout.css" charset="utf-8" type="text/css" rel="stylesheet"></link>
<title><API key></title>
</head>
<body>
<script src="menu.js"></script>
<div id="pagecontent">
<h1><API key></h1>
<p>Use this function to destroy a haptic effect on the devic... |
package com.hp.security.jauth.core.dao;
import java.util.List;
import com.hp.security.jauth.core.model.Group;
/**
* @author huangyiq
*
*/
public interface GroupDao {
List<Group> findAll();
Group findById(long groupId);
void save(Group group);
void update(Group group);
void delete(long groupId);
} |
package com.ctrip.xpipe.netty;
import com.ctrip.xpipe.api.codec.Codec;
import java.nio.ByteBuffer;
/**
* @author wenchao.meng
*
* Aug 26, 2016
*/
public class ByteBufferUtils {
public static byte[] readToBytes(ByteBuffer byteBuffer) {
int remain = byteBuffer.remaining();
byte[] data = ne... |
<!DOCTYPE HTML PUBLIC "-
<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>Bootstrap 101 Template</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel=... |
class UsersController < <API key>
def new
end
def create
user = User.new(user_params)
if user.save
session[:user_id] = user.id
redirect_to '/', notice: 'Your account was successfully created.'
else
redirect_to '/signup'
end
end
private
def user_params
params.permit(:nam... |
package jp.plen.plenconnect2.utils;
import android.graphics.Rect;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.AdapterView;
import android.widget.GridView;
/**
* ListView.
*/
public final class GridViewUtil {
private static final String TAG = GridViewUtil.class.getSim... |
using System;
using Arch.CMessaging.Client.Net.Core.Session;
using System.Collections.Generic;
using Arch.CMessaging.Client.Transport.Command;
using Arch.CMessaging.Client.MetaEntity.Entity;
using Arch.CMessaging.Client.Core.Bo;
namespace Arch.CMessaging.Client.Core.Message
{
public class <API key> : IConsumerMessa... |
<?php
namespace Aws\Route53Domains;
use Aws\AwsClient;
/**
* This client is used to interact with the **Amazon Route 53 Domains** service.
*
* @method \Aws\Result <API key>(array $args = [])
* @method \GuzzleHttp\Promise\Promise <API key>(array $args = [])
* @method \Aws\Result deleteTagsForDomain(array $args = []... |
<?php
namespace Swagger\Client;
/**
* ExportDataTest Class Doc Comment
*
* @category Class */
// * @description Data object
class ExportDataTest extends \<API key>
{
/**
* Setup before running any test case
*/
public static function setUpBeforeClass()
{
}
/**
* Setup before runn... |
package com.zhigu.model;
import java.io.Serializable;
import java.math.BigDecimal;
public class OrderDetail implements Serializable {
private int ID;
private int orderID;
private int goodsID;
private String goodsName;
private int skuID;
// sku
private String propertystrname;
private BigD... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="ru">
<head>
<title>Uses of Class org.apache.poi.xslf.usermodel.TextAutofit (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!
if (location... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="ru">
<head>
<title>org.apache.poi.poifs.crypt.agile (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!
if (location.href.indexOf('is-exter... |
<!DOCTYPE HTML PUBLIC "-
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Ext.Direct Generic Remoting</title>
<link rel="stylesheet" type="text/css" href="shared/example.css" />
<style type="text/css">
#logger b {
color:#555;
}
#log... |
<script src="libraries/frontend/deck.js/modernizr.custom.js"></script>
<script src="libraries/frontend/deck.js/core/deck.core.js"></script>
<script src="libraries/frontend/deck.js/extensions/menu/deck.menu.js"></script>
<script src="libraries/frontend/deck.js/extensions/goto/deck.goto.js"></scri... |
<?php
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// 1-, 0-
const USER_STATUS_ACTIVE = 1;
const <API key> = 0;
// 1-, 2-, 3-
const <API key> = 1;
const MEMBER_TYPE_AGENT = 2;
const MEMBER_TYPE_NORMAL = 3;
// 1-, 2-()
const MANAGER_TYPE_ADMIN = 1;
const MANAGER_TYPE_AGENT = 2;
// PHP
if(version_compare(PHP_VERSION,'5.3.0'... |
// Originally submitted to OSEHRA 2/21/2017 by DSS, Inc.
// Authored by DSS, Inc. 2014-2017
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VA.Gov.Artemis.UI.Data.Models.Outcomes;
using VA.Gov.Artemis.UI.Data.Models.Common;
namespace VA.Gov.Artem... |
package jeffaschenk.commons.standards.statecodes;
import jeffaschenk.commons.standards.CountryCode;
@SuppressWarnings("unused")
public enum StateCodes_MM {
/**
* State Code Enumerator
*/
MM_07("Ayeyarwady", "MM-07", "division", "15608", CountryCode.MYANMAR),
MM_02("Bago", "MM-02", "division", "156... |
#pragma once
namespace vespalib {
/**
* This class defines the {@link Trace} levels used by the tracing code.
*/
class TraceLevel {
private:
TraceLevel(); // hide
public:
enum {
// The trace level used for tracing whenever an Error is added to a
// Reply.
ERROR = 1,
// The trac... |
#pragma once
#include <string>
#include <vector>
#include <memory>
#include <mutex>
namespace vespalib {
class Barrier;
#ifndef IAM_DOXYGEN
/**
* The master of testing.
**/
class TestMaster
{
private:
TestMaster(const TestMaster &);
TestMaster &operator=(const TestMaster &);
public:
struct Progress {
... |
package com.willlee.leetcode.problems201_300;
import java.util.HashSet;
public class Leetcode219 {
public boolean <API key>(int[] nums, int k) {
HashSet<Integer> set = new HashSet<>();
for (int i = 0; i < nums.length; i++) {
if (set.contains(nums[i])) {
return true;
... |
'use strict';
/**
* Requirements
* @ignore
*/
const Filter = require('./Filter.js').Filter;
/**
* Current uniqueId
* @type {Number}
*/
let uniqueId = 0;
/**
* @memberOf nunjucks.filter
*/
class UniqueFilter extends Filter
{
/**
* @inheritDoc
*/
constructor()
{
super();
this... |
layout: default-carousel
title: Index
subtitle: This is an example
<!-- Portfolio Section -->
<div class="row">
<div class="col-lg-12">
<h2 class="page-header">OUR TARGETS</h2>
</div>
<!-- Feature One -->
<div class="row">
<... |
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
# $Id: run_test.pl 96572 2012-12-21 09:23:06Z johnnyw $
# -*- perl -*-
use lib "$ENV{ACE_ROOT}/bin";
use PerlACE::TestTarget;
$status = 0;
$synchbase = "ready";
my $target1 = PerlACE::TestTarget::create_target (1) || ... |
package com.twitter.app
import org.scalatest.funsuite.AnyFunSuite
object MyGlobalFlag extends GlobalFlag[String]("a test flag", "a global test flag")
object <API key> extends GlobalFlag[Int]("a global test flag with no default")
object MyGlobalBooleanFlag extends GlobalFlag[Boolean](false, "a boolean flag")
class Globa... |
package net.bytebuddy.description.field;
import net.bytebuddy.ClassFileVersion;
import net.bytebuddy.description.annotation.AnnotationList;
import net.bytebuddy.description.type.TypeDefinition;
import net.bytebuddy.description.type.TypeDescription;
import net.bytebuddy.test.packaging.<API key>;
import org.junit.Before;... |
<?php
namespace app\modules\rbac\models\search;
use yii\base\Model;
use yii\data\ActiveDataProvider;
/**
* Class AssignmentSearch
* @package yii2mod\rbac\models\search
*/
class AssignmentSearch extends Model
{
/**
* @var integer id
*/
public $id;
/**
* @var string username
*/
publ... |
layout: post
title: Maven-Maven
date: 2017-02-13 16:16:16
categories: [Maven]
tags: [maven,plugin]
baseline:
- -Dmaven.test.skip=true
- -f pom.xml
Maven Lifecycle
- clean
target
- validate
- compile
java
- test
- packaging
jar war
- verify
test test
- install
- deploy
# <API key>
<plugin>
<groupId>org.apache... |
var connect = require('connect');
connect.createServer(
connect.static(__dirname + "/../docs")
).listen(8080).on('error', function(err){
console.error('Error starting http server for docs.\nMake sure the port is not in use.');
throw err;
})
console.log("Server started at http://localhost:8080"); |
# Documentation
## Performance monitoring
The Spark Cassandra Connector utilizes the Codahale metrics system to expose information on the
latency and throughput of Cassandra operations.
Internal Spark metrics
Spark internal metrics are visible in Spark UI. The user is able to browse application stages and
particular ta... |
FROM ubuntu
MAINTAINER Stephen Liang "docker-maint@stephenliang.pw" |
<!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">
<title>Hello World</title>
<!-- Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/... |
var searchData=
[
['objectidsegmenter',['ObjectIdSegmenter',['../classdroid_1_1_runtime_1_1_utilities_1_1_game_objects_1_1_neodroid_camera_1_1_segmentation_1_1_object_id_segmenter.html',1,'droid::Runtime::Utilities::GameObjects::NeodroidCamera::Segmentation']]],
['objectivefunction',['ObjectiveFunction',['../<API k... |
import ovlib
from ovlib.eventslib import event_waiter, EventsCode
mac_pool = context.macpools.get("Default")
try:
dc = context.datacenters.get(host_name)
except ovlib.OVLibErrorNotFound:
dc = context.datacenters.add(data_center={'name': host_name, 'local': True, 'storage_format': 'V4', 'mac_pool': mac_pool})
dc... |
<html><head><title>dlib C++ Library - ranking.cpp</title></head><body bgcolor='white'><pre>
<font color='
</font><font color='
</font><font color='#0000FF'>#include</font> <font color='#5555FF'><</font>dlib<font color='#5555FF'>/</font>svm.h<font color='#5555FF'>></font>
<font color='#0000FF'>#include</font> <fon... |
/* eslint-disable react/prop-types, <API key> */
import { expect } from 'chai';
import { when } from 'mobx';
import MockAdapter from 'axios-mock-adapter';
import axios from 'axios';
import {ServiceGraphStore} from '../../../src/components/serviceGraph/stores/serviceGraphStore';
const stubFilter = {from: '1', to: '2'};
... |
package org.drools.rule.builder.dialect.java;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;
import junit.framework.TestCase;
import org.drools.RuleBase;
import org.drools.RuleBaseFactory;
import org.drools.WorkingMemory;
import org.drools.base.<API key>;
import org.drools.compiler.<API... |
import requests
import json
ip = '127.0.0.1'
port = 80
payload = {'key1': 'value1', 'key2': {'key2_1': 'value2_1', 'key2_2': 'value2_2'}}
req_url = 'http://' + str(ip) + ':' + str(port) + '/v1/recovery/start'
headers = {'Content-type': 'application/json'}
req = requests.post(req_url, data=json.dumps(payload), headers=h... |
package com.palmg.core;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class PalmgTest {
private Palmg palmg;
@Before
public void before(){
palmg = Palmg.build();
}
@Test
public void budildPalmg(){
Assert.assertNotNull(palmg.getIoc());
}
} |
package com.softwaremill.bootzooka.user
import com.softwaremill.bootzooka.common.Utils
import com.softwaremill.bootzooka.user.domain.User
// Run this locally to determine the desired number of iterations in PBKDF2
object <API key> extends App {
def timeEncrypting(pass: String, salt: String, iterations: Int): Double =... |
package com.tngtech.jgiven.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.tngtech.jgiven.impl.tag.<API key>;
import com.tngtech.jgiven.impl.tag.<API key>;
/**
* Marks an annotation t... |
/* Sim_entity.java */
package eduni.simjava;
import eduni.simanim.Anim_port;
import eduni.simanim.Anim_entity;
import eduni.simanim.Anim_param;
import eduni.simanim.Sim_anim;
import eduni.simjava.distributions.Generator;
import java.util.List;
import java.util.ArrayList;
public class Sim_entity extends Thread implement... |
package com.xlythe.dao.sample;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.xlythe.dao.sample.model.Folder;
import com.xlythe.dao.sample.model.Note;
import androidx.annotation.Nullable;... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Tue Feb 06 09:38:17 MST 2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface org.wildfly.swarm.config.BatchJBeretConsumer (BOM: * : All 2017.10.2 API)</title>
<met... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Wed Sep 05 03:08:47 MST 2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface org.wildfly.swarm.config.elytron.<API key> (BOM: * : All 2.2.0.Final API)</title>
<met... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.