answer stringlengths 15 1.25M |
|---|
package io.indexr.query.expr.arith;
import com.google.common.collect.Lists;
import java.util.List;
import io.indexr.query.expr.BinaryExpression;
import io.indexr.query.expr.Expression;
import io.indexr.query.types.DataType;
public abstract class BinaryArithmetic extends Expression implements BinaryExpression {
publ... |
package org.ovirt.engine.ui.common.widget.table.column;
import org.ovirt.engine.core.common.businessentities.Disk;
import com.google.gwt.user.cellview.client.Column;
public class DiskStatusColumn extends Column<Disk, Disk> {
public DiskStatusColumn() {
super(new DiskStatusCell());
}
@Override
pu... |
EXP_SOURCES = exp_agent.c
SOURCES += $(EXP_SOURCES:%.c=math/exp/%.c) |
# Palindrome Number
## Problem:
Determine whether an integer is a palindrome. Do this without extra space.
## Solution
I can think of two ways
1. Convert to string and check string is palindrome.
2. Reverse the number and then check if reverse number is equal to the number. Please check the implementation |
package com.twitter.finagle.kestrel.unit
import com.twitter.concurrent.{Broker, Offer}
import com.twitter.conversions.time._
import com.twitter.finagle.kestrel._
import com.twitter.finagle.kestrel.net.lag.kestrel.thriftscala.Item
import com.twitter.finagle.kestrel.protocol.{Command, _}
import com.twitter.finagle.memcac... |
# .lagoon.yml
The `.lagoon.yml` file is the central file to set up your project. It contains configuration in order to do the following:
* [Define routes for accessing your sites](#routes).
* [Define pre-rollout tasks](#<API key>).
* [Define post-rollout tasks](#<API key>).
* [Set up SSL certificates](#<API key>).
* [A... |
<?php
namespace Spann\Utils;
use Slim\App;
use Slim\Http\Environment;
use Slim\Http\Headers;
use Slim\Http\Request;
use Slim\Http\RequestBody;
use Slim\Http\Response;
use Slim\Http\Uri;
class WebTestClient
{
/** @var \Slim\App */
public $app;
/** @var \Slim\Http\Request */
public $request;
/** @var... |
"""Support for monitoring OctoPrint sensors."""
from __future__ import annotations
from datetime import datetime, timedelta
import logging
from pyoctoprintapi import OctoprintJobInfo, <API key>
from homeassistant.components.sensor import (
SensorDeviceClass,
SensorEntity,
SensorStateClass,
)
from homeassist... |
import jps
import json
import time
class MessageHolder(object):
def __init__(self):
self._saved_msg = []
def __call__(self, msg):
self._saved_msg.append(msg)
def get_msg(self):
return self._saved_msg
def <API key>():
holder1 = MessageHolder()
holder2 = MessageHolder()
hol... |
const uint16 kRuleIdTable[] = {
42, // Functional "^(||,|,|,|,|,|,)"
1934, // Unknown ","
2009, // FirstName ",,,"
2010, // LastName ",,,"
2047, // Number ",,"
2049, // KanjiNumber ",,"
2, // WeakCompoundPrefix "^(,|,|)"
287, // <API key> "^,*,*,*,*,*,(||||||||||||)$"
2705, // <API key>... |
package nl.tranquilizedquality.itest.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.datasource.<API key>;
import org.springframework.jdbc.datasource.<API key>;
/**
* @author Salomo Petrus (salomo.petrus@tr-... |
package models;
/**
* This class is for boxing the response sent back to slack by the bot.
* @author sabinapokhrel
*/
public class ResponseToClient {
public String status; // Status of the response sent back to slack. It can be either success or fail.
public String message; // The message sent back to the slack ... |
layout: v2_fluid/docs_base
category: platform
id: Network
title: Network | Ionic Native Plugins
header_title: Network
header_sub_title: Access network information
<h1 class="title">Network</h1>
<a class="improve-docs" href='https://github.com/driftyco/ionic-site/edit/ionic2/docs/v2/platform/network/index.md'>
Improve... |
package com.sequenceiq.redbeams.converter.stack;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.... |
package padroesprojeto.criacional.<API key>.outroexemplo.model;
public interface Roupa {
void vestir();
} |
package org.locationtech.geomesa.accumulo.index
import org.geotools.data.Query
import org.geotools.geometry.jts.ReferencedEnvelope
import org.locationtech.geomesa.accumulo.<API key>
import org.locationtech.geomesa.accumulo.data._
import org.locationtech.geomesa.accumulo.iterators._
import org.locationtech.geomesa.filte... |
package com.navercorp.redis.cluster;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.navercorp.redis.cluster.pipeline.BuilderFactory;
import redis.clients.jedis.BinaryClient.LIST_POSITION;
import redis.cli... |
package com.itracker.android.data.roster;
import android.text.TextUtils;
import com.itracker.android.data.account.StatusMode;
import org.jivesoftware.smack.roster.RosterEntry;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/**
* Contact in roster.
* <p/>
* ... |
title: True Contentment
subblog: yhwh
tags: the good life
Contentment is fairly universally agreed to be a virtue. We aspire to the ideal that regardless of our circumstances we are happy, and we understand that without a measure of this virtue there is no set of circumstances that will satisfy us.
But what does conten... |
#if !NETSTANDARD1_0 && !NETSTANDARD1_1
namespace ClrCoder.Threading.Channels
{
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using JetBrains.Annotations;
<summary>
TODO: Implement and test me.
</summary>
<typeparam name="T"></typeparam>
public... |
package bamboo.crawl;
import java.util.Date;
import java.util.concurrent.TimeUnit;
public class RecordStats {
private static final Date MAX_TIME = new Date(System.currentTimeMillis() + TimeUnit.DAYS.toMillis(900));
private static final Date MIN_TIME = new Date(631152000000L);
private long records;
priva... |
layout: page
title: Think in java interview
subtitle: <span class="mega-octicon octicon-clippy"></span> Take notes about everything new
menu: interview
css: ['blog-page.css']
{% include interview.html %} |
package com.example.<API key>;
import io.flutter.embedding.android.FlutterActivity;
public class MainActivity extends FlutterActivity {
} |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_45) on Tue Apr 22 01:43:54 UTC 2014 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Class org.apache.hadoop.hbase.avro.generated.AColumnValue (HBase 0.94.19 API)
</TITLE>
<META NAME="date" C... |
div[class="panel-body"] > div[class="input-group"] {
margin-bottom: 3px;
}
div[class="list-group-item"] > a[class="flowRight"] {
padding-top: 13px;
padding-right: 6px;
color: #ff416d;
}
h3[class="panel-title"] > span {
padding-right: 6px;
}
.versionLink, .versionLink:active, .versionLink:hover {
... |
@charset "utf-8";
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, form, fieldset, legend, input, textarea, select, button, th, td, p, hr, blockquote, pre, code {
padding: 0px;
margin: 0px;
}
html {
_width: 100%;
_height: 100%;
color: #666666;
-<API key>: 100%;
-ms-text-size-adjust... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html xmlns="http:
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pandas.DataFrame.quantile — pandas 0.24.0.dev0+81.g8d5032a8c.dirty do... |
# Andrew Plesniak
This is my personal website
## Credits
Credit to **David Miller** for providing the original website theme that I started with.
* https://twitter.com/davidmillerskt
* https://github.com/davidtmiller |
{template "content","header"}
{php $video_cache = getcache('video', 'video');}
<link href="{CSS_PATH}vms/vms.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{JS_PATH}cookie.js"></script>
<div class="clr ct show_pg">
<div class="crumbs"><a href="{APP_PATH}"></a> <span id="play_title"> >... |
package info.bati11.wearprofile;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
public class AboutActivity extends Activity {
public static Intent createIntent(Context context) {
... |
# <API key>: true
module Hyrax
# Module that will contain Renderer classes
# @since 0.14.0
# Renderers are used to display Ruby objects to users and take arguments from the Hyrax::Presenter
# supplied by the controller.
# They are typically used to respond to read requests from the controller, and may apply s... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RandomSchool.Extenders;
using RandomSchool.Repositories;
namespace RandomSchool.Maintain.vPupil
{
public partial class Details : System.Web.UI.Page
{
private P... |
#ifndef <API key>
# define <API key>
/** \cond INTERNAL*/
/**
\file char_arrays.h
\brief This file is to do away with magic string literals whilst also not
paying the cost of a strlen
*/
namespace OOLUA
{
namespace INTERNAL
{
static const char <API key>[] = "<API key>";
static con... |
HB.<API key> = Ember.Component.extend({
tagName: 'input',
type: 'radio',
attributeBindings: ['type', 'htmlChecked:checked', 'value', 'name'],
htmlChecked: function(){
return this.get('value') === this.get('checked');
}.property('value', 'checked'),
change: function(){
this.set('checked', this.get('v... |
package treeton.prosody.corpus;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import treeton.core.config.BasicConfiguration;
import treeton.core.util.xml.XMLParser;
import javax.xml.parsers.<API key>;
import java.io.File;
import java.io.IOException;
import java.util.Collection;
impor... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_75) on Wed Jun 10 23:20:35 IST 2015 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>Uses of Class org.apache.solr.handler.component.ResponseBuilder.<API key> (Solr 5.2.1 API)</title... |
class Solution(object):
def <API key>(self, nums, k, t):
"""
:type nums: List[int]
:type k: int
:type t: int
:rtype: bool
"""
if k < 1 or t < 0:
return False
dic = {}
t += 1
for i in range(len(nums)):
if i > k:
... |
package org.eclipse.ceylon.compiler.java.codegen.recovery;
/**
* The normal, error-free transformation plan.
* Instance available from {@link Errors#GENERATE}.
*/
public class Generate extends TransformationPlan {
Generate() {
super(0, null, null);
}
} |
<!DOCTYPE html>
<html lang="en">
{% include head.html %}
<body id="page-top">
{% include nav.html %}
{% include header.html %}
{% include features.html %}
{% include contact.html %}
{% include scripts.html %}
</body>
</html> |
package com.danielasfregola.twitter4s.http.clients.rest.lists.parameters
import com.danielasfregola.twitter4s.http.marshalling.Parameters
private[twitter4s] final case class <API key>(list_id: Option[Long] = None,
slug: Option[String] = None,
... |
package com.github.ruediste.c3java.invocationRecording;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.lang.annotation.ElementType;
import org.junit.Before;
import org.junit.Test;
import com.google.common.reflect.TypeToken;... |
package org.jfl2.fx.controller.menu;
import javafx.application.Platform;
import javafx.event.Event;
import javafx.scene.Node;
import javafx.scene.control.RadioButton;
import javafx.scene.input.KeyEvent;
import javafx.scene.input.MouseEvent;
import lombok.extern.slf4j.Slf4j;
import org.jfl2.core.util.Jfl2NumberUtils;
im... |
package sunning.democollection.learn._0331.component;
import dagger.Component;
import sunning.democollection.learn._0331.UserActivity;
import sunning.democollection.learn._0331.module.ShoppingCartModule;
@Component(dependencies = ActivityComponent.class, modules = ShoppingCartModule.class)
public interface <API key> {
... |
package gui.sub_controllers;
import gui.GraphDrawer;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.collections.transformation.FilteredList;
import javafx.collections.transformation.SortedList;
import javafx.fxml.FXML;
import javafx.scene.control.TableColumn;
import jav... |
package liquibase.change.core;
import liquibase.change.AbstractSQLChange;
import liquibase.change.DatabaseChange;
import liquibase.change.ChangeMetaData;
/**
* Allows execution of arbitrary SQL. This change can be used when existing changes are either don't exist,
* are not flexible enough, or buggy.
*/
@DatabaseCh... |
package com.deleidos.dp.export;
import com.deleidos.dp.beans.Schema;
import com.deleidos.dp.exceptions.<API key>;
import com.deleidos.dp.exceptions.<API key>;
public interface Exporter {
public abstract String generateExport(Schema schema);
public abstract String generateExport(Schema schema, Schema previousVer... |
import boto3
import pytest
import sure # noqa # pylint: disable=unused-import
from botocore.exceptions import ClientError
from moto import mock_dynamodb2
@mock_dynamodb2
def <API key>():
resource = boto3.resource("dynamodb", region_name="ap-northeast-3")
client = boto3.client("dynamodb", region_name="ap-northe... |
package org.jtrim2.swing.component;
import java.util.Collections;
import org.jtrim2.image.transform.ZoomToFitOption;
import org.junit.Test;
public class <API key> {
/**
* Not much to test but that the methods does not throw exceptions.
*/
@Test
public void testMethods() {
<API key> listene... |
package com.lling.qiqu.commons;
import java.io.Serializable;
/**
* @ClassName: ResponseInfo
* @Description: http
* @author lling
* @date 2015-5-30
*/
public class ResponseInfo implements Serializable{
private static final long serialVersionUID = 1L;
private String code;
private String desc;
private... |
package net.troja.eve.esi.model;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotation... |
:root {
--<API key>: {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
};
--clearfix: {
&::after {
display: table;
clear: both;
content: '';
}
};
--no-select: {
cursor: default;
user-select: none;
};
--flex-fix: {
min-width: 0;
min-heig... |
using Esri.ArcGISRuntime.Geometry;
using Esri.ArcGISRuntime.Layers;
using Esri.ArcGISRuntime.Symbology;
using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace <API key>.Samples
{
<summary>
This sample demonstrates the use of the... |
/* Generated by Cython 0.25.1 */
/* BEGIN: Cython Metadata
{
"distutils": {
"depends": [
"infimnist.h",
"py_infimnist.h"
]
},
"module_name": "_infimnist"
}
END: Cython Metadata */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python heade... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_45) on Thu Mar 26 16:48:34 UTC 2015 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
com.hazelcast.cluster.client (Hazelcast Root 3.4.2 API)
</TITLE>
<META NAME="date" CONTENT="2015-03-26">
<LINK REL... |
#include "walletdb.h"
#include "base58.h"
#include "protocol.h"
#include "serialize.h"
#include "sync.h"
#include "util.h"
#include "utiltime.h"
#include "wallet.h"
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/thread.hpp>
using namespace boost;
using names... |
define([
'./user-settings'
], function (userSettings) {
var context;
var exposed = {
init: function(thisContext){
context = thisContext;
context.sandbox.on('settings.close', userSettings.close);
context.sandbox.on('settings.open', userSettings.open);
c... |
package command
import (
"github.com/goodmustache/pt/actor"
"github.com/goodmustache/pt/command/display"
)
//counterfeiter:generate . ProjectListActor
type ProjectListActor interface {
Projects() ([]actor.Project, error)
}
type ProjectList struct {
UserID uint64 `short:"u" long:"user-id" description:"Us... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_06) on Fri May 05 14:52:10 PDT 2006 -->
<TITLE>
Uses of Class org.apache.hadoop.record.compiler.JFile (Hadoop 0.2.0 API)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
<SCRI... |
package com.opengamma.strata.product.index;
import static com.opengamma.strata.collect.TestHelper.assertSerialization;
import static com.opengamma.strata.collect.TestHelper.coverBeanEquals;
import static com.opengamma.strata.collect.TestHelper.coverImmutableBean;
import static com.opengamma.strata.collect.TestHelper.da... |
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework.decorators import action
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet
from rdmo.core.exports import XMLResponse
from rdmo.core.permiss... |
package com.vladmihalcea.book.hpjp.hibernate.type.array;
import org.hibernate.dialect.PostgreSQL95Dialect;
import java.sql.Types;
/**
* @author Vlad Mihalcea
*/
public class <API key> extends PostgreSQL95Dialect {
public <API key>() {
super();
this.registerColumnType(Types.ARRAY, "array");
}
} |
require_dependency 'libraetd/lib/serviceclient/user_info_client'
require_dependency 'libraetd/lib/helpers/user_info'
require_dependency 'libraetd/lib/serviceclient/entity_id_client'
module Helpers
class EtdHelper
def self.<API key>( <API key> )
# lookup the user and create their account as necessary
u... |
#!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
'fbcode_builder steps to build Facebook Thrift'
import specs.fbthrift as fbthrift
def fbcode_builder_spec(builder):
return {
'depends_on'... |
package grammar.model.nouns;
import grammar.model.Multiplicity;
import grammar.model.PseudoEnum;
import grammar.model.SubjectGender;
import grammar.util.Utilities;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public class Noun implements PseudoEnum<Noun> {
private ... |
package org.powermock.api.mockito.repackaged.asm.tree;
import org.powermock.api.mockito.repackaged.asm.AnnotationVisitor;
import org.powermock.api.mockito.repackaged.asm.Attribute;
import org.powermock.api.mockito.repackaged.asm.ClassVisitor;
import org.powermock.api.mockito.repackaged.asm.Label;
import org.powermock.a... |
USE `modo-import`;
CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `modo-import`.`Center` AS
SELECT
center.id AS id,
center.name AS name,
center.code AS code,
"ef80ab638b" AS mailchimpListId,
"accueil@modo-shopping.fr" AS contactEmail
FROM `crm-import`.`Center` AS center
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ManagerShop.Domain.DomainEvents
{
public class <API key> : IEventHandler<MessageSentEvent>
{
public void Handle(MessageSentEvent evt)
{
Console.WriteLine("Ord... |
package org.opencommercesearch.client.impl;
import java.util.Date;
/**
* Represents a sku's availability.
*
* @author rmerizalde
*/
public class Availability {
public enum Status {
InStock,
OutOfStock,
<API key>,
Backorderable,
Preorderable
}
private Status status;
private Long stockLeve... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_51) on Tue Aug 27 20:57:01 WEST 2013 -->
<TITLE>
OFActionTypeTest
</TITLE>
<META NAME="date" CONTENT="2013-08-27">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript... |
(function() {
'use strict';
// Alias the loading bar for various backwards compatibilities since the project has matured:
angular.module('angular-loading-bar', ['cfp.<API key>']);
angular.module('chieffancypants.loadingBar', ['cfp.<API key>']);
/**
* <API key> service
*
* Registers itself as an Angular interceptor a... |
package distribution // import "github.com/tiborvass/docker/distribution"
import (
"bufio"
"compress/gzip"
"context"
"fmt"
"io"
"github.com/docker/distribution/reference"
"github.com/tiborvass/docker/distribution/metadata"
"github.com/tiborvass/docker/pkg/progress"
"github.com/tiborv... |
# AUTOGENERATED FILE
FROM balenalib/kitra710-ubuntu:eoan-build
ENV GO_VERSION 1.16
RUN mkdir -p /usr/local/go \
&& curl -SLO "https://storage.googleapis.com/golang/go$GO_VERSION.linux-arm64.tar.gz" \
&& echo "<SHA256-like> go$GO_VERSION.linux-arm64.tar.gz" | sha256sum -c - \
&& tar -xzf "go$GO_VERSION.linu... |
# AUTOGENERATED FILE
FROM balenalib/<API key>:sid-run
# remove several traces of debian python
RUN apt-get purge -y python.*
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# install python dependencies
RUN apt-get update && apt-get install -y -... |
package org.usfirst.frc.team4453.robot.commands;
import org.usfirst.frc.team4453.library.Vision;
import org.usfirst.frc.team4453.robot.Robot;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public class DriveWithCamera extends Command {
public DriveWithCamer... |
# Google Compute Engine PHP Sample Application
## Description
This is a simple web-based example of calling the Google Compute Engine API
in PHP.
## Prerequisites
* Run `composer install` in this directory to install the `google/cloud-compute`
library.
* Follow [Getting started with authentication](https://cloud.goog... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_91) on Thu Jul 13 16:16:26 CST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title> com.webside.role.service.impl (webside 0.0.1-SNAPSHOT API)</title>
<meta name="date" content="2017-07-13"... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_232) on Tue Sep 15 08:53:08 UTC 2020 -->
<title>Uses of Class org.springframework.web.socket.config.annotation.<API key> (Spring Framework 5.1.18.RELEASE API)</title>
<meta name="date" content="2020-09-15">
<link rel="sty... |
package org.commcare.tasks;
import android.content.Context;
import android.text.TextUtils;
import android.text.format.DateUtils;
import android.util.Pair;
import org.commcare.CommCareApplication;
import org.commcare.models.<API key>;
import org.commcare.models.database.AndroidSandbox;
import org.commcare.models.databas... |
using System;
namespace <API key>
{
internal static class CreateRegionTests
{
internal static void <API key>()
{
try
{
Logger.<API key>("Creating Region with non-empty string value");
string myRegion = Guid.NewGuid().ToString();
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>create canvas</title>
<link rel="stylesheet" href="../canvas/main.css">
<style>
div {
font-family: monospace;
font-size: 20px;
color: white;
}
</style>
</head>
<body>
<div>Br... |
package org.nbone.core.util;
/**
*
* @author thinking
* @version 1.0
* @since 2019-07-20
* org.elasticsearch.common.unit.ByteSizeUnit
*/
public enum ByteSizeUnit {
BYTES {
@Override
public long toBytes(long size) {
return size;
}
@Override
public long toKB(l... |
def emptyLayout(layout):
for i in reversed(range(layout.count())):
layout.itemAt(i).widget().setParent(None) |
package scalacookbook.chapter03
object <API key> {
// use the isInstanceOf method to test the type of an object
// if (x.isInstanceOf[Foo]) { do something ...
def isPerson(x: Any): Boolean = x match {
case p: Person => true
case _ => false
}
trait SentientBeing
trait Animal extends SentientBeing
c... |
#include <iostream>
#include <sstream>
#include <boost/detail/lightweight_test.hpp>
#include <boost/spirit/include/lex.hpp>
#include <boost/spirit/include/lex_lexertl.hpp>
#include <boost/spirit/include/phoenix.hpp>
namespace lex = boost::spirit::lex;
namespace phoenix = boost::phoenix;
template <typename Lexer>
struct... |
<?php
echo "This is success.php";
?> |
title: ICompletionProposal.attributes - aesi-java
[aesi-java](../../index.html) / [com.virtlink.editorservices.codecompletion](../index.html) / [ICompletionProposal](index.html) / [attributes](.)
# attributes
`abstract val attributes: `[`EnumSet`](http://docs.oracle.com/javase/6/docs/api/java/util/EnumSet.html)`<`[`Att... |
<?xml version="1.0" encoding="utf-8"?>
<<API key> xmlns="http: |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mermaid.Loft.Infrastructure.DomainBase
{
public class EntityBase
{
}
} |
package pl.wavesoftware.examples.wildflyswarm.service.api;
import pl.wavesoftware.examples.wildflyswarm.domain.User;
import java.util.Collection;
/**
* @author Krzysztof Suszynski <krzysztof.suszynski@coi.gov.pl>
* @since 04.03.16
*/
public interface UserService {
/**
* Retrieves a collection of active user... |
<html xmlns:th="http:
xmlns:layout="http:
layout:decorator="fragments/layout">
<body>
<form method="post" enctype="multipart/form-data" class="form-horizontal">
<fieldset>
<legend th:text="#{nav.role}">File</legend>
<div class="form-group" th:classappend="${#fields.hasErrors('name')}... |
// <API key>.h
// XAnBao
#import "<API key>.h"
@interface <API key> : <API key>
@property(nonatomic, copy)NSString *classId;
@property(nonatomic, assign)NSInteger type;
@property(nonatomic, copy)NSString *className;
@end |
package com.lyubenblagoev.postfixrest.service;
import com.lyubenblagoev.postfixrest.entity.User;
import com.lyubenblagoev.postfixrest.security.JwtTokenProvider;
import com.lyubenblagoev.postfixrest.security.<API key>;
import com.lyubenblagoev.postfixrest.security.UserPrincipal;
import com.lyubenblagoev.postfixrest.serv... |
/**
* @fileoverview Checkbox field. Checked or not checked.
* @author fraser@google.com (Neil Fraser)
*/
'use strict';
goog.provide('Blockly.FieldCheckbox');
/** @suppress {extraRequire} */
goog.require('Blockly.Events.BlockChange');
goog.require('Blockly.Field');
goog.require('Blockly.fieldRegistry');
goog.require... |
package task03.pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.ExpectedConditions;
public class TicketSelectionPage extends Page {
public TicketSelectionPage(PageManager pages) {
super(pages);
} |
using System.Collections;
using System.Collections.Generic;
namespace Basic.Ast
{
public class ParameterList : IEnumerable<Parameter>
{
private readonly List<Parameter> parameters;
public ParameterList()
{
parameters = new List<Parameter>();
}
public MethodDef... |
# at-rule-name-case
Specify lowercase or uppercase for at-rules names.
<!-- prettier-ignore -->
css
@media (min-width: 10px) {}
Only lowercase at-rule names are valid in SCSS.
The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix some of the problems reported by this rule.
## Option... |
#!/bin/sh
./fingerprints <API key>.csv <API key>.csv ethernet-hub.csv ethernet-switch.csv ethernet-twohosts.csv examples.csv multi.csv $* |
package com.chenantao.autolayout.utils;
import android.view.ViewGroup;
public class AutoLayoutGenerate
{
public static <T extends ViewGroup> T generate(Class<T> clazz, Class[] argumentTypes, Object[]
arguments)
{
// Enhancer enhancer = new Enhancer();
// enhancer.setSuperclass(clazz);
... |
# <API key>: Apache-2.0
from django.test.utils import override_settings
from sis_provisioner.tests import (
fdao_pws_override, fdao_hrp_override, <API key>)
from sis_provisioner.tests.account_managers import set_uw_account
<API key> = override_settings(
<API key>="users")
def set_db_records():
affiemp = set... |
package com.petercipov.mobi.deployer;
import com.petercipov.mobi.Instance;
import com.petercipov.traces.api.Trace;
import java.util.Optional;
import rx.Observable;
/**
*
* @author Peter Cipov
*/
public abstract class RxDeployment {
protected Optional<String> name;
public RxDeployment() {
this.name = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.