text stringlengths 3 1.05M |
|---|
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class SugarWidgetFieldDatePicker extends SugarWidgetFieldDateTime
{
function displayInput($layout_def)
{
global $timedate;
$cal_dateformat = $timedate->get_cal_date_format();
$LBL_ENTER_DATE = translate('L... |
<?php
namespace Manticora\WeatherCenter\Domain\Model\DateTime;
class DateTime implements DateTimeInterface
{
/**
* @var \DateTime
*/
private $dateTime;
/**
* @param \DateTime $dateTime
*/
public function __construct(\DateTime $dateTime)
{
$this->dateTime = $dateTime;... |
package vektah.rust.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface RustEnumBody extends PsiElement {
@NotNull
List<RustAttribute> getAttributeList();
@NotNull
List<RustEnumVariant> getEnumVariantList();
}
|
package com.neusoft.knowledge.shrio.realm;
import com.neusoft.knowledge.common.constant.BaseConstant;
import com.neusoft.knowledge.common.constant.CommonConstant;
import com.neusoft.knowledge.common.utils.StringUtils;
import com.neusoft.knowledge.sys.entity.MenuEntity;
import com.neusoft.knowledge.sys.entity.RoleEntit... |
export function GetClientTimeOffset() {
return new Date().getTimezoneOffset() * -1;
}
//# sourceMappingURL=ClientTimeOffset.js.map |
namespace {
class TDepthFirstPath : public IPath {
public:
TDepthFirstPath(const IGraph &graph, IGraph::TVertex source)
: IPath {graph, source}
{}
bool Connected(IGraph::TVertex) const override {
return false;
}
TPathPtr Path(IGraph::TVertex) const override {
return TPathPtr... |
/**
* Each section of the site has its own module. It probably also has
* submodules, though this boilerplate is too simple to demonstrate it. Within
* `src/app/home`, however, could exist several additional folders representing
* additional modules that would then be listed as dependencies of this one.
* For exam... |
body {
background: #2d353d;
}
.page-breadcrumb,
.page-header:not(.panel) {
background: transparent;
}
.page-breadcrumb,
.page-header,
hr,
.nav-tabs,
.nav-tabs.nav-justified {
border-color: #3a424b;
}
.panel .nav-tabs {
border-color: rgba(255, 255, 255, 0.11);
}
.panel,
.widget-more-link.b-a-1,
.widget-produ... |
source ../utils/helper.sh
source ../utils/ccloud_library.sh
# Source demo-specific configurations
source config/demo.cfg
if [[ $(ccloud::get_version_aws_cli) -eq 2 ]]; then
V2_OPTS="--cli-binary-format raw-in-base64-out"
fi
#aws kinesis describe-stream --stream-name $KINESIS_STREAM_NAME --region $KINESIS_REGION
# F... |
package org.elasticsearch.search.aggregations.bucket.filter;
import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.util.List;
/**
* A multi bucket aggregation where the buckets are defined by a set of filters (a bucket per filter). Each bucket
* will collect all documents match... |
package org.apache.cassandra.utils.memory;
import java.nio.ByteBuffer;
import org.apache.cassandra.utils.Shared;
import org.apache.cassandra.utils.concurrent.OpOrder;
import static org.apache.cassandra.utils.Shared.Scope.SIMULATION;
public class HeapPool extends MemtablePool
{
private static final EnsureOnHeap... |
/*
* Testing program for IO library functionality.
*/
#include <qubobus.h>
#include <io.h>
#if QUBOBUS_PROTOCOL_VERSION != 3
#error Update me with new message defs!
#endif
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
int tx_fd[2]; // TO CHILD FROM PARENT
int rx_fd[2]; // TO PAR... |
/**
* @file bot.js
* @author Nesffer <nesffer.jimin@gmail.com>
*/
// '=========================================================================';
// Initialization
// '=========================================================================';
const TelegramBot = require('node-telegram-bot-api')
const glob = requi... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- From: file:/Users/gmdearaujo/AndroidStudioProjects/PlannerAI/ParseStarterProject/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res/values-fr-rCA/values-fr-rCA.xml -->
<eat-comment/>
<string msgid="4600421777120114993" name="a... |
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you ma... |
CIFAR-10 classification is a common benchmark problem in machine learning. The
problem is to classify RGB 32x32 pixel images across 10 categories:
```
airplane, automobile, bird, cat, deer, dog, frog, horse, ship, and truck.
```
For more details refer to the [CIFAR-10 page](https://www.cs.toronto.edu/~kriz/cifar.html... |
package sun.tools.attach;
import com.sun.tools.attach.VirtualMachine;
import com.sun.tools.attach.AgentLoadException;
import com.sun.tools.attach.AttachNotSupportedException;
import com.sun.tools.attach.spi.AttachProvider;
import java.io.InputStream;
import java.io.IOException;
import java.io.File;
import java.util.P... |
// Copyright 2016 The Chromium Authors. 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.chromium.chrome.browser.payments;
import android.content.DialogInterface;
import android.test.suitebuilder.annotation.MediumTest;
import org... |
<!-- toc -->
- [Summary](#summary)
- [Goals](#goals)
- [Proposal](#proposal)
- [Use Cases](#use-cases)
- [Kubeadm](#kubeadm)
- [Kube-up](#kube-up)
- [Minikube](#minikube)
- [Kops](#kops)
- [Graduation Criteria](#graduation-criteria)
- [Implementation History](#implementation-history)
<!-- /toc -->
##... |
require.config({
baseUrl: 'bower_components/',
paths: {
jquery: 'jquery/dist/jquery',
swig: 'civswig/swig',
marked: "marked/lib/marked",
}
});
require(["jquery", "swig", "marked"], function($, swig, marked) {
function mypajx(url) {
$.get(url)
.done(function(... |
The MIT License (MIT)
Copyright (c) 2015 Ivo Georgiev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... |
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia at 2015-12-15
| Rendered using Apache Maven Fluido Skin 1.4
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name=... |
<?php
namespace Craft;
class Formerly_FormsService extends BaseApplicationComponent
{
public function getAllForms($indexBy = null)
{
$formRecords = Formerly_FormRecord::model()->ordered()->findAll();
return Formerly_FormModel::populateModels($formRecords, $indexBy);
}
public function getFormById($form... |
<?php
/**
* @author: Gabriel BONDAZ <gabriel.bondaz@idci-consulting.fr>
* @license: MIT
*/
namespace IDCI\Bundle\StepBundle\Map;
interface MapBuilderFactoryInterface
{
/**
* Returns a map builder.
*
* @param array $data the initial data
* @param array $options the options
*
*... |
title: Default Item
page_title: Default Item - RadComboBox
description: Check our Web Forms article about Default Item.
slug: combobox/radcombobox-items/default-item
tags: default,item
published: True
position: 6
---
# Default Item
The **Default Item** in a **RadComboBox** facilitates custom validation sce... |
declare function format(
random: (bytes: number) => Promise<number[]>,
alphabet: string,
size: number
): Promise<string>;
export = format;
|
<!DOCTYPE html>
<html>
<head>
{{> head}}
</head>
<body>
{{> menu}}
<div class="fullwidthtop">
<div class="row clearfix">
<div class="col-md-12 column">
<div class="header-box">
<img src="images/icon-top.png" alt="design, develop, organize code" title="design, devel... |
import * as ESTree from 'estree';
import { NodeTransformer } from '../../enums/node-transformers/NodeTransformer';
import { NodeTransformationStage } from '../../enums/node-transformers/NodeTransformationStage';
export interface INodeTransformersRunner {
/**
* @param {T} astTree
* @param {NodeTransforme... |
package cotton.example.cloudexample;
import cotton.Cotton;
import cotton.services.ServiceFactory;
import cotton.test.services.GlobalDiscoveryAddress;
import cotton.test.services.MathPowV2;
import cotton.test.services.MathResult;
import java.net.Inet4Address;
import java.net.InetSocketAddress;
import java.net.UnknownH... |
#region [License]
#endregion
using System;
using System.IO;
using System.Web;
using System.Text;
using System.Web.UI;
using System.Globalization;
using MemcachedProviders.Common;
using Enyim.Caching;
namespace MemcachedProviders.Util
{
public class MemcachedModule:IHttpModule
{
private static readonly string co... |
package ch.idsia.evolution;
/**
* Interface to a Generic Evolutionary Algorithm.<br>
* The contructor simply needs an <code>{@link Evolvable}</code>,
* a Task (depending on which the evaluations will run in series, in parallel or in different threads)
* and possibly few other paremeters.
* <p>
* All the <code>... |
package de.fhg.iais.asc.commons;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
/**
* Utilities for handling parent directories
*
* @author hjh
*/
public enum ParentDirectoryUtils {
;
/**
* Creates the parent directory for a {@link File}, throwing an {@lin... |
package org.apache.arrow.plasma;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import org.apache.arrow.plasma.exceptions.DuplicateObjectException;
import org.apache.arrow.plasma.exceptions.PlasmaClientException;
... |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.spoledge.aacd... |
var FavoritesManager = {
favorites: Ti.App.Properties.getList("favorites", []),
exists: function(id) {
return _.find(this.favorites, function(item) {
return id === item;
});
},
add: function(id) {
this.exists(id) || this.favorites.push(id);
Ti.App.Properties.s... |
namespace blink {
// The LayoutObject for elements which have "display: layout(foo);" specified.
// https://drafts.css-houdini.org/css-layout-api/
//
// This class inherits from LayoutNGBlockFlow so that when a web developer's
// intrinsicSizes/layout callback fails, it can fallback onto the "default"
// block-flow la... |
/**
* Gulp Config File
* @author Fuyun
*/
const gulp = require('gulp');
const express = require('express');
const openurl = require('openurl');
const body = require('body-parser');
const tinylr = require('tiny-lr');
const server = tinylr();
const path = require('path');
const fs = require('fs');
const os = require('... |
@interface TLEntity ()
@end
@implementation TLEntity
- (instancetype)initWithEntityType:(TLEntityType)type
{
self = [self init];
if (self) {
_entityType = type;
}
return self;
}
- (void)setDataWith:(NSDictionary *)dictionary
{
switch (self.entityType) {
case TLEntityTypePhoto:
... |
use mem;
use clone::Clone;
use intrinsics;
use option::Option;
use option::Option::{Some, None};
use cmp::{PartialEq, Eq, PartialOrd, Equiv};
use cmp::Ordering;
use cmp::Ordering::{Less, Equal, Greater};
pub use intrinsics::copy_memory;
pub use intrinsics::copy_nonoverlapping_memory;
pub use intrinsics::set_memory;
... |
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Sec... |
import argparse
import json
import os
import numpy as np
from pprint import pprint
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Redis client test")
parser.add_argument("-s","--source",
action="store",
nargs='?',
... |
package fr.ortolang.teicorpo;
import edu.stanford.nlp.coref.data.CorefChain;
import edu.stanford.nlp.ling.*;
import edu.stanford.nlp.ie.util.*;
import edu.stanford.nlp.io.IOUtils;
import edu.stanford.nlp.pipeline.*;
import edu.stanford.nlp.semgraph.*;
import edu.stanford.nlp.trees.*;
import edu.stanford.nlp.trees.ud.C... |
<!DOCTYPE html>
<html lang="en-US"><head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<title>Foo Bar - Dendron</title>
<link
rel="shortcut icon"
href="https://11ty.dendron.so/favicon.ico"
type="image/x-icon"
/>
<link
rel="stylesheet"
href="htt... |
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.sprin... |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace GroupingData
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.ObjectIdentifierWriter.html">
</head>
<body>
<p>Redirecting to <a href="struct.ObjectIdentifierWriter.html">struct.ObjectIdentifierWriter.html</a>...</p>
<script>location.replace("struct.ObjectIdentifierWriter.html" + l... |
Version 4.0.0-rc.3
==================
Release Date: Oct 19, 2019
**RC.3 release of CodeIgniter4**
.. contents::
:local:
:depth: 2
Enhancements
------------
- Beefed up database, session & routing handling.
- Fixed numerous bugs & user guide errata.
App Changes
-----------
- New $CSRFHeaderName property i... |
'use strict';
/**
* Module Dependencies
*/
var gulp = require('gulp');
var sass = require('gulp-sass');
var app = require('./app.js');
/**
* Config
*/
var PUBLIC = __dirname + '/public';
var ASSETS = PUBLIC + '/assets';
/**
* Compiling
*/
gulp.task('sass', function(){
gulp.src(ASSETS + '/styles/sass/app.... |
import ebb = module('./lib/ebb');
ebb.configure( {debug: true});
var message = 'Ebb ';
ebb.flow(null, {
doThis: function(flow) {
message += "is a simple ";
},
thenThat: function(flow) {
setTimeout( flow.join(function() {
message += "way to ";
}), 250);
},
ev... |
<?php
namespace Kicaj\Tools\Date;
/**
* Specialized DateTime subclass with default format set to d-m-Y.
*
* @author Rafal Zajac <rzajac@gmail.com>
*/
class DateTimeDMY extends DateTime
{
/**
* Default serialization format.
*
* @var string
*/
protected $format = 'd-m-Y';
}
|
class RemoveRedirectUri < ActiveRecord::Migration[5.0]
def change
remove_column :oauth_clients, :redirect_uri
end
end
|
<?php
namespace Gos\Bundle\PubSubRouterBundle\Command;
use Gos\Bundle\PubSubRouterBundle\Router\RouterInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
cl... |
package tscfg.example;
public class JavaIssue41Cfg {
public final java.util.Optional<java.lang.Integer> a;
public final int b;
public final JavaIssue41Cfg.C c;
public final java.util.Optional<java.util.List<java.lang.Double>> i;
public static class C {
public final java.util.Optional<java.lang.String> d;... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Echidnodes myrtaceicola Bat. & Gayão
### Remarks
null |
<?php
namespace app\controllers;
use Yii;
use app\models\EstadoPago;
use app\models\EstadoPagoSearch;
use app\models\ReportesAvances;
use app\models\OrdenTrabajo;
use app\models\Actividades;
use app\models\AsignaAcumula;
use app\models\Proyecto;
use app\models\ActSactAsigna;
use app\models\AsignaTiene;
use app\models... |
package org.opennebula.client.vnet;
import org.opennebula.client.Client;
import org.opennebula.client.OneResponse;
import org.opennebula.client.PoolElement;
import org.w3c.dom.Node;
/**
* This class represents an OpenNebula virtual network.
* It also offers static XML-RPC call wrappers.
*/
public class VirtualNe... |
<?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
... |
using System;
namespace NLayer.Channel
{
[Flags]
public enum ShutdownType
{
Parent,
Children,
Both = Parent | Children
}
}
|
package com.google.api.codegen.config;
import com.google.common.base.Joiner;
import com.google.common.collect.ImmutableMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
/**
* Generator for language settings section. Currently the only language setting is... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Datalogues</title>
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content=... |
class CBlockIndex;
class CZMQAbstractNotifier;
typedef CZMQAbstractNotifier* (*CZMQNotifierFactory)();
class CZMQAbstractNotifier
{
public:
CZMQAbstractNotifier() : psocket(0) { }
virtual ~CZMQAbstractNotifier();
template <typename T>
static CZMQAbstractNotifier* Create()
{
return new T()... |
using System;
namespace Dhgms.CloneAllRepos.Specs
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
|
{-# LANGUAGE CPP #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
module Math.NumberTheory.PrimesTests
( testSuite
) where
import Test.Tasty
import Data.Bits
import Data.Int
import Data.Proxy
#if __GLASGOW_HASKELL__ < 803
i... |
{% load staticfiles %}
<!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">
<!-- The above 3 meta tags *must* come first in the head; any other head
content mus... |
using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[ass... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
/**********************************************************************
**********************************************************************
**********************************************************************
*** COPYRIGHT (c) Eastman Kodak Company, 1997 ***
*** As an unpublished work ... |
describe SSHKit::Interactive::DSL do
describe '#run_interactively' do
include SSHKit::Interactive::DSL
let(:host) { SSHKit::Host.new('example.com') }
it 'will execute interactively' do
expect_system_call('ssh -t -A example.com \'$SHELL -l -c "/usr/bin/env ls"\'')
run_interactively host do
... |
<li>
<a href="/admin/messagesender/msgsndr.html" target="_blank">Parent Notification</a>
</li>
|
package uk.co.real_logic.aeron.driver;
import uk.co.real_logic.aeron.common.protocol.NakFlyweight;
@FunctionalInterface
public interface NakMessageHandler
{
/**
* Handle a NAK Frame
*
* @param nakMessage wrapping the receive buffer.
*/
void onMessage(NakFlyweight nakMessage);
}
|
package io.gresse.hugo.anecdote.about;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.v... |
'use strict';
describe('Sound Cloud Services', function () {
beforeEach(module('septWebRadioApp', 'mockedGetInitApplication'));
var $httpBackend, $cookieStore, q, scope;
beforeEach(inject(function ($rootScope, _$httpBackend_, _$cookieStore_, $q) {
scope = $rootScope.$new();
$httpBackend = _$httpBackend... |
package helloworld;
import java.util.Arrays;
import java.util.Calendar;
/**
* Hello world!
* @author Kevin Ji
*/
public class HelloWorld {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// if-else statements
int hour = Calendar.getInstance... |
FROM node:alpine
WORKDIR /usr/src/buckless-admin
EXPOSE 8082
CMD ["yarn", "start"]
RUN apk update && \
apk add --no-cache git openssh make gcc g++ python openjdk8-jre && \
mkdir -p /usr/src/buckless-admin
COPY package.json /usr/src/buckless-admin/
COPY yarn.lock /usr/src/buckless-admin/
RUN yarn
COPY . /... |
<?php
namespace Xibo\Platform\Entity\Product;
interface Product
{
/**
* Product Id
* @return int
*/
public function productId();
/**
* Details for this product
* @return array
*/
public function productDetails();
} |
import { Token, TokenType } from "./tokens.ts";
import {
ChipmunkList,
ChipmunkMap,
ChipmunkNodeType,
ChipmunkNumber,
ChipmunkString,
ChipmunkSymbol,
ChipmunkType,
ChipmunkVector,
} from "./types.ts";
class Parser {
private position: number = 0;
public constructor(private readonly tokens: Token[])... |
"""
M&C daemon_status table.
The columns in this module are documented in docs/mc_definition.tex,
the documentation needs to be kept up to date with any changes.
"""
from math import floor
from astropy.time import Time
from sqlalchemy import Column, String, BigInteger
from . import MCDeclarativeBase
status_list = ... |
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
namespace DownstreamService.Controllers
{
[Route("api/[controller]")]
public class CategoryController : Controller
{
// GET api/values
[HttpGet]
public IEnumerable<string> Get()
{
return new[] { "... |
using Cms;
using Gdk;
using System.Collections.Generic;
namespace FSpot.ColorAdjustment {
public class Desaturate : Adjustment {
public Desaturate (Pixbuf input, Cms.Profile input_profile) : base (input, input_profile)
{
}
protected override List <Cms.Profile> GenerateAdjustments ()
{
List <Cms.Profile>... |
module Cauldron
module DynamicOperatorModule
def uses_constants?
@information[:constants]
end
def indexes=(value)
raise StandardError, '' if @closed
@indexes = value
end
def close
@closed = true
end
def clone_statement
# TODO: Need to clone the sexp method... |
package com.thoughtworks.binding.regression
import com.thoughtworks.binding.Binding._
import com.thoughtworks.binding._
import org.scalatest.freespec.AnyFreeSpec
import org.scalatest.matchers.should.Matchers
import scala.collection.mutable.ArrayBuffer
/** @author
* 杨博 (Yang Bo) <pop.atry@gmail.com>
*/
... |
require 'spec_helper'
describe Permpress::JSONLint do
describe '#lint', :unit do
let(:permpress_path){File.expand_path('../../..', __FILE__)}
it 'executes command with expected arguments' do
expect(Permpress::Command).to receive(:new).with(
'durable-json-lint',
%w(good.json bad.json),
... |
<?php
/* FOSUserBundle::layout.html.twig */
class __TwigTemplate_69756eae4f1c18c73984a3e622c104f525196f876cde1af9ed350442b071ce68 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... |
@echo off
:: Shell script to migrate an instance of the 3D City Database
:: on Oracle
:: read database connection details
call ..\CONNECTION_DETAILS.bat
:: add sqlplus to PATH
set PATH=%SQLPLUSBIN%;%PATH%
:: cd to path of the shell script
cd /d %~dp0
:: Welcome message
echo _______ ___ _ _ ___ ___
echo... |
#import <XXUnknownSuperclass.h> // Unknown library
__attribute__((visibility("hidden")))
@interface GetDeviceLanguage : XXUnknownSuperclass {
}
+ (BOOL)compareLanguage:(id)language;
+ (id)getDeviceLanguage;
@end
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Retrieves authentication parameter</title>
</head>
<body><div class="manualnavbar" style="text-align: center;">
<div cl... |
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!-- Modal Confirm Credit Note Creation -->
<div class="modal fade" id="confirm_credit_note_create_from_invoice" data-balance-due="<?php echo $invoice->total_left_to_pay; ?>" tabindex="-1" role="dialog" aria-labelledby="modalLabelCreditNoteFromInv... |
/* TODO:
- lots
- if the more complex types get Python pretty-printers, we'll
want a Python API for type printing
*/
#include "defs.h"
#include "gdbtypes.h"
#include "c-lang.h"
#include "go-lang.h"
/* Print a description of a type TYPE.
Output goes to STREAM (via stdio).
If VARSTRING is a non-empty... |
<!DOCTYPE HTML>
<?php
require_once("php/controller/create-db.php");
?>
<html>
<head>
<title>melonJS Template</title>
<link rel="stylesheet" type="text/css" media="screen" href="index.css">
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<me... |
using System.Collections.Generic;
using System.Globalization;
using Microsoft.Extensions.Logging;
using SixLabors.ImageSharp.Web;
using SixLabors.ImageSharp.Web.Commands;
using SixLabors.ImageSharp.Web.Processors;
namespace OrchardCore.Media.Processing
{
/// <summary>
/// Pass through processor which allows in... |
void Xayah::LoadSpecialSpells(SpellData* Data)
{
if (Init)
return;
Init = true;
}
void Xayah::OnDetectorProcessSpell(CastedSpell const& Args, SpellData* Data, bool* ShouldProcess, SpellData** NewData)
{
if (Data->MenuName.substr(0, 3) != "Xayah")
return;
for (auto i : GEntityList->GetAllUnits(... |
goog.provide('API.Client.BranchImpl');
/**
* @record
*/
API.Client.BranchImpl = function() {}
/**
* @type {!string}
* @export
*/
API.Client.BranchImpl.prototype._class;
/**
* @type {!string}
* @export
*/
API.Client.BranchImpl.prototype.displayName;
/**
* @type {!number}
* @export
*/
API.Client.BranchImpl... |
namespace llvm {
class ARMBaseTargetMachine;
class GlobalValue;
class StringRef;
class ARMSubtarget : public ARMGenSubtargetInfo {
protected:
enum ARMProcFamilyEnum {
Others,
CortexA12,
CortexA15,
CortexA17,
CortexA32,
CortexA35,
CortexA5,
CortexA53,
CortexA55,
CortexA57,
... |
@implementation HCIsEmptyCollection
+ (id)isEmptyCollection
{
return [[[self alloc] init] autorelease];
}
- (id)init
{
self = [super initWithCount:HC_equalToUnsignedInteger(0)];
return self;
}
- (void)describeMismatchOf:(id)item to:(id<HCDescription>)mismatchDescription
{
[[mismatchDescription append... |
package edu.pdx.cs410J.whitlock;
import edu.pdx.cs410J.AbstractAirline;
/**
* The main class for the CS410J airline Project
*/
public class Project1 {
public static void main(String[] args) {
Class c = AbstractAirline.class; // Refer to one of Dave's classes so that we can be sure it is on the classpath
... |
from django.test import TestCase
from ..author import Author
class AuthorTestCase(TestCase):
def test_create_author(self):
gygax = Author.objects.create(name='Gary Gygax')
self.assertEqual(Author.objects.first(), gygax)
self.assertEqual(Author.objects.count(), 1)
|
This is a simple module to access 4squares' venue API.
npm install foursquarevenues
##License##
MIT
## Example
```js
var foursquare = (require('foursquarevenues'))('CLIENTIDKEY', 'CLIENTSECRETKEY');
var params = {
"ll": "40.7,-74"
};
foursquare.getVenues(params, function(error, venues) {
if (!error) {
... |
package yarpctest
import (
"go.uber.org/yarpc/api/peer"
"go.uber.org/yarpc/api/transport"
peerbind "go.uber.org/yarpc/peer"
"go.uber.org/yarpc/peer/hostport"
"go.uber.org/yarpc/yarpcconfig"
)
// FakeTransportConfig configures the FakeTransport.
type FakeTransportConfig struct {
Nop string `config:"nop,interpola... |
ACCEPTED
#### According to
NUB Generator [autonym]
#### Published in
null
#### Original name
null
### Remarks
null |
@import url('https://fonts.googleapis.com/css?family=Share+Tech+Mono&display=swap');
|