text stringlengths 3 1.05M |
|---|
@font-face {
font-family: "BPG Phone Sans";
src: url("../fonts/BPG Phone Sans Bold Italic.ttf");
font-weight: normal;
font-style: normal;
} |
import itertools
import json
import logging
import re
import flask
from flask import request
from cache import cache
import requests
import rethinkdb as r
import web.api.api_util as api_util
import db
try:
import secrets
_HIPCHAT_TOKEN = secrets.HIPCHAT_TOKEN
_HIPCHAT_ROOM_ID = secrets.HIPCHAT_ROOM_ID
e... |
"""Validation functions used by pynetdicom"""
import logging
from typing import Tuple
import unicodedata
from pydicom.uid import UID
LOGGER = logging.getLogger("pynetdicom._validators")
def validate_ae(value: str) -> Tuple[bool, str]:
"""Return ``True`` if `value` is a conformant **AE** value.
An **AE** ... |
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:background="@color/light_background"
android:paddingBottom="20dp"
android:paddingTop="20dp">
<TextVi... |
module Api
module V1
class GraphqlController < Api::V1::BaseApiController
include GraphqlDocs
def create
query_string = params[:query]
query_variables = params[:variables] || {}
query = GraphQL::Query.new(RelayOnRailsSchema, query_string, variables: query_variables)
ren... |
namespace ActiveForumsTapatalk.XmlRpc
{
using System;
public enum MappingAction
{
Ignore,
Error
}
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Struct
| AttributeTargets.Property | AttributeTargets.Class)]
public class XmlRpcMissingMappingAttribute : Attribute
... |
(function() {
'use strict';
angular
.module('uniConnectApp')
.config(alertServiceConfig);
alertServiceConfig.$inject = ['AlertServiceProvider'];
function alertServiceConfig(AlertServiceProvider) {
// set below to true to make alerts look like toast
AlertServiceProvider... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
#include <dialog.h>
/* Kick it off, James! */
int
main(int argc, unsigned char *argv[])
{
int retval;
unsigned char result[128];
init_dialog();
result[0]='\0';
DialogInputAttrs |= DITEM_NO_ECHO;
retval ... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Thu Apr 28 18:37:59 UTC 2016 -->
<title>Uses of Class org.apache.cassandra.thrift.Cassandra.cas_result (apache-cassandra API)</t... |
<?php
namespace Fousky\Component\iDoklad\Model\SalesReceipts;
use Fousky\Component\iDoklad\LOV\PriceTypeEnum;
use Fousky\Component\iDoklad\LOV\VatRateTypeEnum;
use Fousky\Component\iDoklad\Model\iDokladAbstractModel;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @see https://app.idoklad.cz/developer/... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateNotesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(){
Schema::create('notes', function(Bluep... |
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.xwalk.core.extension;
import android.content.Intent;
/**
* Interface for bridging XWalkExtension functionalities to its backend implementa... |
from django.db import models, migrations
import djangocms_text_ckeditor.fields
class Migration(migrations.Migration):
dependencies = [
('pages', '0025_auto_20151116_0636'),
]
operations = [
migrations.AddField(
model_name='benefitsplugin',
name='description',
... |
<?php namespace Owlgrin\Mongo;
use MongoClient;
use Illuminate\Database\Connection as IlluminateConnection;
/**
* Connection class
*/
class Connection extends IlluminateConnection {
/**
* The MongoDB database handler.
*
* @var resource
*/
protected $db;
/**
* The MongoClient c... |
package com.example.aitongji.Utils;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Rect;
import android.net.Uri;
import android.os.Environment;
import android.provider.MediaStore;
import android.util.Log;
import androi... |
<upgrade>
<phrases>
<phrase>
<module_id>feed</module_id>
<version_id>2.0.0rc8</version_id>
<var_name>the_activity_feed_you_are_looking_for_does_not_exist</var_name>
<added>1258848578</added>
<value>The activity feed you are looking for does not exist.</value>
</phrase>
</phrases>
<update_templates... |
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required b... |
<html>
<!--<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1">-->
<meta name="viewport" content="width=310, initial-scale=1">
<head>
<script>
function openLink(linkToPass){
Ti.App.fireEvent('openWebURL', { UrlToOpen: linkToPass });
}
</scrip... |
layout: post
title: "My vlog, I did not tell you"
date: 2016-03-01 10:10:00 +0200
is_updated: false
update: ""
cover-image-path: 2016-03-01-announcement-vlog/announcement-vlog.gif
imageurl: 2016-03-01-announcement-vlog/announcement-vlog.gif
categories:
- article
tags:
- news
- vlog
comments: true
# excerp... |
class MigrateRemainingIssuesClosedAt < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME = false
disable_ddl_transaction!
class Issue < ActiveRecord::Base
self.table_name = 'issues'
include EachBatch
end
... |
package controller
import skinny.controller.feature.TypetalkLoginFeature
import skinny.oauth2.client.OAuth2User
import skinny.oauth2.client.typetalk.TypetalkUser
class TypetalkController extends ApplicationController with TypetalkLoginFeature {
override def redirectURI = "http://127.0.0.1:8080/example/typetalk/cal... |
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ba_calltoactiondrawable_pressed"
android:state_pressed="true" />
<item android:drawable="@drawable/ba_calltoactiondrawable" />
</selector> |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Vala: GObject Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GObject Reference Ma... |
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web serv... |
layout: docs
title: Conditional Operations
position: 3
---
## Conditional Operations
Modifying operations ([Put](operations.html#put-and-get), [Delete](operations.html#delete), [Update](operations.html#update)) can be performed conditionally, so that they only have an effect if some state of the DynamoDB table is tru... |
package com.rasterfoundry.datamodel
import cats.syntax.either._
import io.circe._
sealed abstract class MLProjectType(val repr: String) {
override def toString = repr
}
object MLProjectType {
case object ObjectDetection extends MLProjectType("DETECTION")
case object ChipClassification extends MLProjectType("CL... |
package com.example.feed_red_star;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
in Wu & Zhuang, Fungal Diversity Res. Ser. (Hong Kong) 15: 127 (2005)
#### Original name
Sporidesmium flagelliforme Matsush.
### Remarks
null |
qidoc.doxygen - Doxygen tools
=============================
.. automodule:: qidoc.doxygen
:members:
:undoc-members:
|
package compiler.syntax.nonTerminal;
import es.uned.lsi.compiler.semantic.type.TypeIF;
public class Expression extends NonTerminal {
private TypeIF returnType;
private int value = -1;
private ArrayRange from;
private ArrayRange to;
private String identifier;
private Expression leftExpresion;
... |
package io.github.greyp9.arwo.core.number.test;
import io.github.greyp9.arwo.core.number.NumberScale;
import org.junit.Assert;
import org.junit.Test;
@SuppressWarnings("checkstyle:magicnumber")
public class NumberScaleTest {
@Test
public void testSomeNumbers() throws Exception {
Assert.assertEquals("... |
package org.jboss.resteasy.test.resource.param.resource;
import org.jboss.resteasy.test.resource.param.HeaderParamsAsPrimitivesTest;
import org.junit.Assert;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import java.util.Set;
@Path("/set")
public class ... |
#pragma once
#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
#include <aws/clouddirectory/CloudDirectoryRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/clouddirectory/model/ObjectReference.h>
#include <utility>
namespace Aws
{
namespace CloudDirectory
{
namespace Model
{
/**
*... |
package main
import (
"context"
aiplatform "cloud.google.com/go/aiplatform/apiv1"
"google.golang.org/api/iterator"
aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a c... |
docker build -t adroll/hologram_env .
docker run --rm -t -i -v $(pwd):/go/src/github.com/AdRoll/hologram adroll/hologram_env $1 $2
|
package memory_test
import (
"testing"
"github.com/apache/arrow/go/v8/arrow/memory"
"github.com/stretchr/testify/assert"
)
func TestNewResizableBuffer(t *testing.T) {
mem := memory.NewCheckedAllocator(memory.NewGoAllocator())
defer mem.AssertSize(t, 0)
buf := memory.NewResizableBuffer(mem)
buf.Retain() // re... |
(function() {
function Message($firebaseArray) {
var ref = firebase.database().ref().child("messages");
var messages = $firebaseArray(ref);
var getMessagesByRoomId = function(roomId){
return $firebaseArray(ref.orderByChild('roomId').equalTo(roomId));
};
return {
getMessagesByRoom... |
import functools
import itertools
import os
import requests
import tempfile
import imposm.parser
import networkx as nx
from . import utils
highway_types = {
'motorway', 'trunk', 'primary', 'secondary', 'tertiary', 'residential',
'service', 'motorway_link', 'trunk_link', 'primary_link', 'secondary_link',
... |
TEST_CASE("Page")
{
setupSource("Danbooru (2.0)");
setupSite("Danbooru (2.0)", "danbooru.donmai.us");
setupSource("Gelbooru (0.2)");
setupSite("Gelbooru (0.2)", "gelbooru.com");
const QScopedPointer<Profile> pProfile(makeProfile());
auto profile = pProfile.data();
QList<Site*> sites { profile->getSites().valu... |
var path = require('path');
var webpack = require('webpack');
module.exports = {
devtool: 'eval',
entry: [
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/only-dev-server',
'./example/index'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPa... |
from typing import Dict, Sequence, Optional, Any
from logging import Logger
import argparse
import pprint
import sys
from pyspark.sql import SparkSession, DataFrame, DataFrameWriter
from dataproc_templates import BaseTemplate
import dataproc_templates.util.template_constants as constants
__all__ = ['JDBCToGCSTemplate... |
import os
import tempfile
from pecan.testing import load_test_app
from copy import deepcopy
from pecan import conf
from pecan import configuration
from sqlalchemy import create_engine
from sqlalchemy.pool import NullPool
from ceph_installer import models as _db
import pytest
os.environ['HOME'] = tempfile.mkdtemp(suf... |
.. batch_norm_training_backprop.rst:
#########################
BatchNormTrainingBackprop
#########################
.. code-block:: cpp
BatchNormTrainingBackprop // Compute mean and variance backprop from the input.
Description
===========
Computes the ``input``, ``gamma`` and ``beta`` backprop increments.
I... |
@interface Checklist : NSObject <NSCoding>
@property (nonatomic, copy) NSString *category;
@property (nonatomic, strong) NSMutableArray *items;
@property (nonatomic, copy) NSString *iconName;
- (int)countUncheckedItems;
@end
|
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>stdpp: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
title: First Attempt at Khardung La
link: http://dustinlarimer.com/first-attempt-at-khardung-la/
author: dustinlarimer
description:
post_id: 1198
created: 2011/06/30 22:03:30
created_gmt: 2011/07/01 02:03:30
comment_status: open
post_name: first-attempt-at-khardung-la
status: publish
post_type: post
<!--Our first att... |
package org.gortz.greeniot.smartcityiot2.dto.sensors;
import java.util.ArrayList;
import java.util.HashMap;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.gortz.greeniot.smartcityiot2.database.entity.SensorType;
import org.gortz.greeniot.smartcityiot2.dto.listitems.SpinnerItemEntry;
/**
* Contain... |
package com.capitalone.dashboard.collector;
import com.capitalone.dashboard.misc.HygieiaException;
import com.capitalone.dashboard.model.Commit;
import com.capitalone.dashboard.model.GitHubRateLimit;
import com.capitalone.dashboard.model.GitHubRepo;
import com.capitalone.dashboard.model.GitRequest;
import org.springfr... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bg_color_1">
<!-- 액션바 -->
<RelativeLayout
androi... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Syn. meth. fung. (Göttingen) 2: 615 (1801)
#### Original name
Helvella monacella Schaeff.
### Remarks
null |
using cc::ContextProvider;
using gpu::gles2::GLES2Interface;
static const int kNumRetriesBeforeSoftwareFallback = 4;
namespace content {
namespace {
class RasterThread : public base::SimpleThread {
public:
RasterThread(cc::TaskGraphRunner* task_graph_runner)
: base::SimpleThread("CompositorTileWorker1"),
... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon May 07 13:00:00 PDT 2012 -->
<TITLE>
Uses of Class org.apache.hadoop.fs.LocalDirAllocator (Hadoop 0.20.2-cdh3u4 API)
</TITLE>
<META NAME=... |
{% extends 'base.html' %}
{% load i18n static %}
{% block stylesheet %}
<link rel="stylesheet" type="text/css" href="{% static 'vendor/highlight/styles/xcode.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'snippets/css/snippets.css' %}">
{% endblock %}
{% block javascript %}
<script src="{% s... |
import noSwitch from '../src';
const action = {
type: 'LOGIN',
payload: {
username: 'jason',
},
};
const state = {
user: null,
};
const exampleWithSwitch = () => {
switch (action.type) {
case 'LOGIN':
return {
...state,
user: action.payload.username,
};
case 'LOGOUT'... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
public static unsafe class DateTimeTests
{
[Fact]
public static void TestConstructors()
{
DateTime dt = new DateTime(2012, 6, 11);
ValidateYearMonthDay(d... |
<DOCTYPE! html>
<html>
<head>
<title>Markovi Text</title>
<META charset="UTF-8">
<META name="viewport" content="width=device-width, initial-scale=1.0">
<META http-equiv="X-UA-Compatible" content="IE=Edge" />
<META
name="description"
content="Build unique gramatical sentences from training data."
>
... |
"""
WSGI config for django_cookiecutter_docker project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``... |
namespace blink {
namespace {
FetchResponseData* createFetchResponseDataFromWebResponse(
ScriptState* scriptState,
const WebServiceWorkerResponse& webResponse) {
FetchResponseData* response = nullptr;
if (webResponse.status() > 0)
response = FetchResponseData::create();
else
response = FetchResp... |
namespace reckless {
class file_writer : public writer {
public:
file_writer(char const* path);
~file_writer();
Result write(void const* pbuffer, std::size_t count);
private:
int fd_;
};
} // namespace reckless
#endif // RECKLESS_FILE_WRITER_HPP
|
import { SingleFolderTests } from "../tests/single-folder/index.test.js";
import { CommonHooks } from "./CommonHooks.js";
suite(
"Tests for Visual Studio Code in Single-Folder Mode",
() =>
{
let context = CommonHooks();
SingleFolderTests(context);
});
|
"""Read and write image data from and to TIFF files.
Image and metadata can be read from TIFF, BigTIFF, OME-TIFF, STK, LSM, NIH,
SGI, ImageJ, MicroManager, FluoView, SEQ and GEL files.
Only a subset of the TIFF specification is supported, mainly uncompressed
and losslessly compressed 2**(0 to 6) bit integer, 16, 32 an... |
using System.Collections.Generic;
namespace PoESkillTree.Computation.Common.Builders.Effects
{
/// <summary>
/// Represents a collection of ailments. Implements <see cref="IEnumerable{T}"/> because the elements of
/// this collection are always known (not dependent on data or resolving).
/// </summary>... |
<?php
namespace ClanCats\Container\ContainerParser\Nodes;
use ClanCats\Container\Exceptions\LogicalNodeException;
use ClanCats\Container\ContainerParser\{
Nodes\ValueNode,
Nodes\ConstructionActionNode,
Nodes\MetaDataAssignmentNode,
Nodes\ServiceReferenceNode
};
class ServiceDefinitionNode extends Ba... |
from gui_lib.listbox import Listbox
from factuurInputRegel import FactuurInputRegel
class FactuurRegelList(Listbox):
def __init__(self, width, height):
super(FactuurRegelList, self).__init__(width, height)
self.append(FactuurInputRegel(self.width,1))
def keyEvent(self, key):
if key > ... |
package main
import (
"fmt"
"os"
"sync"
"github.com/softlayer/softlayer-go/datatypes"
"github.com/softlayer/softlayer-go/services"
"github.com/softlayer/softlayer-go/session"
)
func main() {
username := os.Getenv("USERNAME")
if username == "" {
panic("Empty USERNAME")
}
password := os.Getenv("API_KEY")... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>UDP / Datagram Sockets Node.js v0.10.20 Manual & Documentation</title>
<link rel="stylesheet" href="assets/style.css">
<link rel="stylesheet" href="assets/sh.css">
<link rel="canonical" href="http://nodejs.org/api/dgram.html">
</head>
<... |
Easily build color variations of Base16 with YAML scheme definitions and ERB templates.
See the [Base16](https://github.com/chriskempson/base16) repository for more information.
Requires Ruby 1.9 or greater.
## Usage
> ./base16
Build all schemes
> ./base16 default.yml
Build only the "default" theme
> ./b... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Revue mycol. , Toulouse 13: 17 (1891)
#### Original name
Stagonospora fragariae Briard & Har., 1891
### Remarks
null |
'''
Return cached data from minions
'''
from __future__ import absolute_import
# Import python libs
import logging
# Import salt libs
import salt.log
import salt.utils
import salt.utils.master
import salt.payload
from salt.ext.six import string_types
from salt.exceptions import SaltInvocationError
from salt.fileserver... |
<?xml version="1.0" encoding="UTF-8"?>
<billStatus>
<bill>
<title>Self-Insurance Protection Act</title>
<committees>
<billCommittees>
<item>
<name>Health, Education, Labor, and Pensions Committee</name>
<chamber>Senate</chamber>
<type>Standing</type>
<acti... |
using System;
using System.Threading.Tasks;
using Orleans.Runtime;
namespace Orleans.Streams
{
internal class StreamConsumer<T> : IAsyncObservable<T>
{
internal bool IsRewindable { get; private set; }
private readonly StreamImpl<T> stream;
... |
import { EventEmitter } from 'events';
import multiplex from 'multiplex';
import concat from 'concat-stream';
import dnode from 'dnode';
export default class FilesystemClient extends EventEmitter {
constructor() {
super();
}
connect(stream) {
if (this.stream) {
throw new Error('Already connected'... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
package org.alfasoftware.morf.sql.element;
import org.alfasoftware.morf.sql.SelectFirstStatement;
import org.alfasoftware.morf.util.DeepCopyTransformation;
import org.alfasoftware.morf.util.ObjectTreeTraverser;
import org.alfasoftware.morf.util.ObjectTreeTraverser.Driver;
/**
* Creates a field from a {@l... |
module UpsShipping
class VoidShipmentResponse < Response
def parse_response
data = Hash.from_xml(body)["void_shipment_response"]
self.status_code = data['response']['response_status_code']
self.status_description = data['response']['response_status_description']
unless succes... |
@interface ftSecondViewController ()
@end
@implementation ftSecondViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can ... |
package org.jclouds.sqs.options;
import java.util.Map;
import java.util.Map.Entry;
import org.jclouds.http.options.BaseHttpRequestOptions;
import com.google.common.base.Objects;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Multimap;
/**
* Options used to receive a message from a... |
<?php
declare(strict_types=1);
namespace Doctrine\Tests\DBAL\Driver\PDOPgSql;
use Doctrine\DBAL\Driver as DriverInterface;
use Doctrine\DBAL\Driver\PDOConnection;
use Doctrine\DBAL\Driver\PDOPgSql\Driver;
use Doctrine\Tests\DBAL\Driver\AbstractPostgreSQLDriverTest;
use PDO;
class DriverTest extends AbstractPostgreS... |
<?php
/*
Unsafe sample
input : Get a serialize string in POST and unserialize it
Uses a special_chars_filter via filter_var function
construction : concatenation with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, a... |
package com.sksamuel.elastic4s.handlers.searches.queries.term
import com.sksamuel.elastic4s.json.{XContentBuilder, XContentFactory}
import com.sksamuel.elastic4s.requests.searches.term.TermsLookupQuery
object TermsLookupQueryBodyFn {
def apply(t: TermsLookupQuery): XContentBuilder = {
val builder = XContentFac... |
/**
* Track Initial Play Event
* This event is triggered when the video has been played for the first time.
* If you are looking to track play events, simply listen on the player for a normal
* "play" or "playing" event.
*
* Example Usage:
* player.on('tracking:firstplay', (e, data) => console.log(data))
*
* D... |
Kubernetes is an open source implementation of container cluster management.
[Kubernetes Design Document](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/DESIGN.md) - [Kubernetes @ Google I/O 2014](http://youtu.be/tsk0pWf4ipw)
[
cd "$DIR"
echo "Setting macOS defaults..."
# Ask for the administrator password upfront
sudo -v
# Disable the sound effects on boot
# sudo nvram SystemAudioVolume=" "
# Automatically quit printer app once the print jobs complete
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -... |
Fuse provides first class support for creating data driven apps with UX tags through direct binding, iteration and branching. UX can also do referencing deep inside complex data structures, so you do not have to do tedious data massaging in code.
## DataContext
At any point in a Fuse `Node` tree, there is a *data con... |
package models;
import java.sql.Date;
public class OutboundDelivery {
private long id;
private Date sentDate;
public OutboundDelivery() {}
public OutboundDelivery(long id, Date sentDate) {
this.id = id;
this.sentDate = sentDate;
}
public long getId() {
return id;
}
public void setId(long id) {
th... |
package ENode.Infrastructure.Dapper;
//
// License: http://www.apache.org/licenses/LICENSE-2.0
// Home page: http://code.google.com/p/dapper-dot-net/
//
// Note: to build on C# 3.0 + .NET 3.5, include the CSHARP30 compiler symbol (and yes,
// I know the difference between language and runtime versions; this i... |
@interface _1_UIActivityIndicator_for_SDWebImageUITests : XCTestCase
@end
@implementation _1_UIActivityIndicator_for_SDWebImageUITests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
// In UI tests it is usuall... |
package org.elasticsearch.shell;
/**
* Class that represents the shell, which can be run and shutdown
*
* @author Luca Cavanna
*/
public interface Shell {
/**
* Runs the shell
*/
public void run();
/**
* Shutdowns the shell
*/
public void shutdown();
}
|
package me.lachlanap.dependencygraph.analyser;
/**
* Created by lachlan on 04/05/15.
*/
public class ParsingException extends RuntimeException {
public ParsingException(String message, Throwable cause) {
super(message, cause);
}
public ParsingException(String message) {
super(message);
... |
module MessagesHelper
end
|
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Tests\Integration\Chat\V1\Service\Channel;
use Twilio\Exceptions\DeserializeException;
use Twilio\Exceptions\TwilioException;
use Twilio\Http\Response;
use Twilio\Tests\HolodeckTestCase... |
package com.example.eachother;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.ap... |
<!DOCTYPE HTML>
<html>
<head>
<title>176</title>
</head>
<body>
<h2>176</h2>
<p>The voice of Magus Zyn speaks inside your head: 'The guardians of the magi seek to stop you with their magic. But the
servants of Zyn may always look to their master for aid... Pay heed to the music of old Krarth.' You hear music... |
class Library::Music::YearInReviewTracksController < ::MusicMetadataEnrichment::ApplicationController
include ::MusicMetadataEnrichment::BaseController
include Applicat::Mvc::Controller::Resource
before_action :find_resource, only: [:destroy]
authorize_resource class: 'YearInReviewMusicTrack'
def index
... |
<!DOCTYPE html>
<html lang="en">
<?php $this->load->view('seller/component/head') ?>
<body class="nav-md">
<div class="container body">
<div class="main_container">
<!-- page content -->
<div class="col-md-12">
<div class="col-middle">
<div class="text-center text-ce... |
describe('convolutional layer: UpSampling2D', function() {
const assert = chai.assert
const styles = testGlobals.styles
const logTime = testGlobals.logTime
const stringifyCondensed = testGlobals.stringifyCondensed
const approxEquals = KerasJS.testUtils.approxEquals
const layers = KerasJS.layers
before(fu... |
FROM balenalib/spacely-tx2-alpine:3.13-build
ENV NODE_VERSION 17.6.0
ENV YARN_VERSION 1.22.4
# Install dependencies
RUN apk add --no-cache libgcc libstdc++ libuv \
&& apk add --no-cache libssl1.0 || apk add --no-cache libssl1.1
RUN for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
; do \
gpg --keyserver p... |
class Cliente:
def __init__(self, nombre , saldo ):
self.nombre = nombre
self.saldo = saldo
def retirar (self, cantidad):
if cantidad > self.saldo:
raise RuntimeError('cantidad mayor que saldo disponible.')
self.saldo -= cantidad
return self.saldo
... |
@extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row">
{!! Form::open() !!}
<!-- Title -->
<div class="form-group">
<label for="client-name" class="col-sm-1 control-label">Name</label>
<div class="col-sm-9">
<input type="text" name="name" id="client-... |