answer stringlengths 15 1.25M |
|---|
package com.raworkstudio.androidsvganimation;
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.l1fan.ane.ht;
import java.util.ArrayList;
import org.json.JSONException;
import org.json.JSONObject;
import org.mobile.newhtloginsdk.activity.TopUpActivity;
import org.mobile.newhtloginsdk.bean.LoginResultBean;
import org.mobile.newhtloginsdk.bean.ProductListBean;
import org.mobile.newhtloginsdk.billing.<AP... |
const Ipc = require('../main/ipc')
let MenuUtil = {}
MenuUtil.createFileMenu = function() {
return [{
label: '',
click() {
Ipc.sendToAll('ui:create_folder')
}
},
{ type: 'separator' },
{
label: 'Scene',
click() {
... |
# CharDump
Quick utility for dumping useful information from a Neverwinter Nights 2 .bic file.
## Usage
CharDump.exe <path to .bic file>
## Features
The current data is supported:
* Character basics:
* Name
* Skill ranks, formatted `<skill id>`:`ranks`
* Feat list.
* Level up history:
* Class leveled up... |
import { Component, Input } from '@angular/core';
import { AppActions } from '../../app/app.actions';
import { AppDispatcher } from '../../app/app.dispatcher';
import { Product } from '../../interfaces/product';
/**
*
*
* @export
* @class <API key>
*/
@Component({
selector: '<API key>',
templateUrl: '<API key>... |
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>Sign-Up/Login Form</title>
<link href='http://fonts.googleapis.com/css?family=Titillium+Web:400,300,600' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
... |
"""Container for all targeting related logic used by the Ads API SDK."""
from twitter_ads.http import Request
from twitter_ads.resource import resource_property, Resource, Persistence
from twitter_ads import API_VERSION
from twitter_ads.utils import FlattenParams
import json
class AudienceEstimate(Resource, Persistence... |
<?php declare(strict_types = 1);
namespace <API key>\Sniffs\TypeHints;
use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Sniffs\Sniff;
use PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode;
use <API key>\Helpers\Annotation\GenericAnnotation;
use <API key>\Helpers\AnnotationHelper;
use <API key>\Helpers\<API key>;
use ... |
#!/usr/bin/env node
'use strict';
var stdin = require('get-stdin');
var getCurrency = require('./get-currency');
var pkg = require('./package.json');
var argv = process.argv.slice(2);
var input = argv[0];
function help() {
console.log([
'',
' ' + pkg.description,
'',
' Usa... |
using System.Collections.Generic;
using System.Windows;
using SharpGL.SceneGraph.Core;
using VirtualScene.<API key>.WPF.Commands;
using VirtualScene.<API key>.WPF.Commands.GeometryCommands;
using VirtualScene.<API key>.WPF.Properties;
using VirtualScene.<API key>.WPF.Views;
using VirtualScene.<API key>.WPF.Presenters;
... |
var path = require('path');
var gulp = require('gulp');
var run = require('gulp-run');
var del = require('del');
var changed = require('gulp-changed');
var webpack = require('webpack-stream');
var config = require('./webpack.config.js');
var purescript = require('gulp... |
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: ./suggest/src/java/org/apache/lucene/search/suggest/document/NRTSuggesterBuilder.java
#include "J2ObjC_header.h"
#pragma push_macro("<API key>")
#ifdef <API key>
#define <API key> 0
#else
#define <API key> 1
#endif
#undef <API key>
#if __has_feature(null... |
// FAArrayDescription.h
// FAObjectMap
#import <Foundation/Foundation.h>
#import "FADescription.h"
@interface FAArrayDescription : FADescription
@property (nonatomic, strong, readonly) id<FADescription> descriptor;
+ (instancetype)<API key>:(id<FADescription>)descriptor;
@end |
<!DOCTYPE html>
<html xmlns="http:
{% include head.html %}
<body class="theme-base-08 layout-reverse">
{% include sidebar.html %}
<div class="content container">
{{ content }}
</div>
</body>
</html> |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace _06.SentenceExtractor
{
class SentenceExtractor
{
static void Main()
{
var key = Console.ReadLine();
var tex... |
import "./chunks/localization";
export { Survey as Model };
import "../../main.scss";
import "../../modern.scss";
export let Version: string;
export var __assign: any;
export function __extends(thisClass: any, baseClass: any): void;
export var __decorate: (decorators: any, target: any, key: any, desc: any) => any;
expo... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.cpp
Label Definition File: <API key>.label.xml
Template File: sources-sinks-09.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Routines
* BadSource: calloc Allocate data using calloc()
* GoodSource: Allocate data using new
* Sinks:
* ... |
# encoding: UTF-8
require File.expand_path("./helper", File.dirname(__FILE__))
require "redis/distributed"
setup do
log = StringIO.new
init Redis::Distributed.new(NODES, :logger => ::Logger.new(log))
end
test "MULTI/DISCARD" do |r|
@foo = nil
assert_raise Redis::Distributed::CannotDistribute do
r.multi { @f... |
<?php
namespace JGM\TableBundle\Table\Column;
use JGM\TableBundle\Table\Row\Row;
interface ColumnInterface
{
/**
* @return string Label for this column.
*/
public function getLabel();
/**
* @return string Name of this column.
*/
public function getName();
/*... |
// MLScrollMenuView.h
// <API key>
#import <UIKit/UIKit.h>
@class MLScrollMenuView;
@class <API key>;
@protocol <API key> <NSObject>
- (NSString*)titleForIndex:(NSInteger)index;
- (NSInteger)titleCount;
- (void)<API key>:(NSInteger)oldIndex to:(NSInteger)toIndex animated:(BOOL)animated scrollMenuView:(MLScrollMenuVie... |
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
const Cast = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
return (
<svg
ref={ref}
xmlns="http:
width={size}
height={size}
viewBox="0 0 24 24"
fill="none"
stroke={color}... |
import csv, sys, getopt, argparse, os
import dbSettings
COLUMN_LOCAL_ID = 'LocalId'
<API key> = 'Uhl System Number'
COLUMN_NHS_NUMBER = 'NHS Number'
COLUMN_TITLE = 'Title'
COLUMN_LAST_NAME = 'Last Name'
COLUMN_FIRST_NAME = 'First Name'
COLUMN_DOB = 'Date of Birth'
COLUMN_GENDER = 'Gender'
COLUMN_ADDRESS_1 = 'Address 1'... |
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm,
.container-xs {
width: 100%;
padding-right: var(--bs-gutter-x, 0.3125rem);
padding-left: var(--bs-gutter-x, 0.3125rem);
m... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Td</title>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic|Source+Code+Pro:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="../assets/css/bootstrap.css"... |
using System;
using System.Collections.Generic;
using MarcelloDB;
using MarcelloDB.Serialization;
using MarcelloDB.<API key>;
using MarcelloDB.Storage;
using MarcelloDB.Records;
using MarcelloDB.Transactions;
using MarcelloDB.Index;
namespace MarcelloDB.Collections
{
public class CollectionFile : SessionBoundObject... |
using System;
namespace Quilt4.Service.Controllers.WebAPI.Web.DataTransfer
{
public class ProjectInput
{
public Guid ProjectKey { get; set; }
public string Name { get; set; }
public string DashboardColor { get; set; }
}
} |
<?php
/**
* A Url, with a convenient method for accessing its parameters.
*/
class Url {
/** An absolute URL. */
protected $url;
/**
* Creates the URL object.
*
* @param string $url an absolute URL
*/
public function __construct($url) {
$this->url = $url;
}
/**
... |
<body>
<center>
<a href="../../../cdshop/index.htm"><img src="../../../cdshop/cdinfo.jpg" border="0"></a><br>
<a href="../../../index.htm">Sacred Texts</a>
<a href="../../index.htm">Legends and Sagas</a>
<a href="../index.htm">Celtic</a>
<a href="index.htm">Index</a>
<a href="sfft15.htm">Previous</a>
<a href="sfft17.ht... |
<?php
namespace Keios\Support\Classes;
use Hashids\Hashids;
use Validator;
use October\Rain\Support\Facades\Config;
/**
* Class SupportHelpers
* @package Keios\Support\Classes
*/
class SupportHelpers
{
/**
* Validates ticket fields
*
* @param array $data
*
* @throws \ValidationException
... |
#pragma once
#include "managedheap.h"
namespace stackjit {
//Represents a generation for the garbage collector
class CollectorGeneration {
private:
ManagedHeap mHeap;
std::size_t mNumAllocated = 0;
const std::size_t <API key> = 0;
const int <API key> = 0;
const std::s... |
<?php
error_reporting(-1);
ini_set('display_errors', 1);
// Classloader
<API key>(function($class)
{
$file = __DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."src".DIRECTORY_SEPARATOR.str_replace("\\", DIRECTORY_SEPARATOR, $class).".php";
if(is_file($file))
{
require_once($file);
}
});
class... |
var VIDEOS = {
'video 1': {
'': {
comments: [
{ id: 'page 1 comment 1' },
{
id: 'page 1 comment 2',
replies: [
{ id: 'page 1 comment 2 reply 1' },
{ id: 'page 1 comment 2 reply... |
import { Component, Directive, Input, Output, EventEmitter, HostBinding, HostListener } from "@angular/core";
import { <API key>, <API key>, CustomValueAccessor } from "../../../misc/util/internal";
@Component({
selector: "sui-rating",
template: `
<i class="icon"
*ngFor="let icon of icons; let i = index"
... |
package org.javesi.id;
/**
* Generates long ids for new entities.
*/
public interface EntityIdGenerator
{
long getNextEntityId();
} |
{% extends "base.html" %}
{% block content %}
<section class="cover imagebg height-70 text-center" data-overlay="3">
<div class="<API key>">
<img alt="background" src="/static/img/drone-4.jpg" />
</div>
<div class="container pos-vertical-cent... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Lion</source>
<translation>O Lionu</translation>
</message>
... |
from antlr4 import *
from autogen.CymbolParser import CymbolParser
from autogen.CymbolVisitor import CymbolVisitor
class Type:
VOID = "void"
INT = "int"
class <API key>(CymbolVisitor):
id_values = {}
def visitIntExpr(self, ctx:CymbolParser.IntExprContext):
print("visting "+Type.INT)
retu... |
<?php
namespace PB\Bundle\SuluStorageBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
class <API key> extends Extension
{
... |
CodeMirror.defineMode("liquid", function(config, parserConfig) {
var liquidOverlay = {
token: function(stream, state) {
// Variables.
if (stream.match("{{")) {
while ((ch = stream.next()) != null)
if (ch == "}" && stream.next() == "}") break;
return "liquid-variable";
}... |
<?php
namespace Ogilo\Admin\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Hit model
*/
class Comment extends Model
{
public function category()
{
return $this->belongsTo('Ogilo\Admin\Models\Article');
}
} |
// The LLVM Compiler Infrastructure
// This file is distributed under the University of Illinois Open Source
// This file defines the LoopInfo class that is used to identify natural loops
// and determine the loop depth of various nodes of the CFG. A natural loop
// has exactly one entry-point, whi... |
#include "MiscPch.h"
#include "Allocator.h"
namespace Demi
{
DiAllocatorBlock* <API key>(DiAllocatorBlock* allocator, unsigned nodeSize, unsigned capacity)
{
if (!capacity)
{
capacity = 1;
}
unsigned char* blockPtr = DI_NEW unsigned char[sizeof(DiAllocatorBlock) + cap... |
// @formatter:off
package com.microsoft.alm.visualstudio.services.extensionmanagement.webapi;
import java.util.ArrayList;
/**
* A query that can be issued for data provider data
*
*/
public class DataProviderQuery {
/**
* Contextual information to pass to the data providers
*/
private DataProviderCon... |
gc2i18n = {
dict: {
/* Start of viewer and widget */
"Meters": "Meters",
"Buffer": "Buffer",
"Search": "Search",
"Result": "Result",
"Info": "Info",
"Layers": "Layers",
"Legend": "Legend",
"Help": "help",
"Log": "Log",
"Address"... |
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cofoundry.Web
{
<summary>
Implement this interface to extend the MvcOptions configuration in a modular
fashion. Implementations can make use of depend... |
import os;
link = "http://media.blizzard.com/heroes/images/battlegrounds/maps/dragon-shire/main/6/"
column = 0;
rc_column = 0;
while (rc_column == 0):
row = 0;
rc_column = os.system('wget ' + link + str(column) + '/' + str(row) + '.jpg -O ' + str(1000 + column) + '-' + str(1000 + row) + '.jpg')
rc_row = rc_... |
import ReactReconciler from './<API key>';
import getNode from './<API key>';
import <API key> from './<API key>';
import ByoDOMProperty from './byo-dom-property';
import <API key> from './<API key>';
class <API key> {
constructor(element) {
this.tag = element.type;
this.currentElement = element;
this.hos... |
<?php
namespace MarcosSegovia\PetceteraTests\Petcetera;
use MarcosSegovia\Petcetera\Petcetera;
final class PetceteraTest extends \<API key>
{
private $all_words;
private $result;
public function tearDown()
{
$this->result = null;
}
/**
* @test
*/
public function <API key>()... |
<?php
namespace raa;
use RuntimeException;
use stdClass;
/**
* @param object|array $structure
* @param array|string $path
* @return bool
*/
function has($structure, $path) {
if(is_string($path)) {
return has($structure, preg_split('/(?<!\\\\)(?:\\\\\\\\)*\\./', $path));
}
$count = count($path);
... |
#ifndef _DEVICE_H
#define _DEVICE_H
#include <stdint.h>
#include "command.h"
struct device{
int pagesize;
int memsize;
int needs_prefix;
int uses_half_page;
uint8_t signature[3];
struct command commands[COMMAND_MAX];
};
struct device* device_from_string(char*);
int ilog2(int);
#endif |
layout: page
title: "JavaScript utf8_encode function"
comments: true
sharing: true
footer: true
alias:
- /functions/view/utf8_encode:577
- /functions/view/utf8_encode
- /functions/view/577
- /functions/utf8_encode:577
- /functions/577
<!-- Generated by Rakefile:build -->
A JavaScript equivalent of PHP's utf8_encode
{% ... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>App Engine Python SDK: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text... |
var Bar = Backbone.Collection.extend({
model: Alcohol,
localStorage: new Backbone.LocalStorage('Bar'),
defaultAlcohol: function(){
var alcohol = {
beer: [],
wine: [],
hl:[]
};
alcohol.beer = [
{
"name": "Blue Moon",
... |
module.exports = require('./lib/bot') |
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace ImageGallery
{
public class MvcApplication : HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
Globa... |
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// all copies or substanti... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils = require("../util/utils");
const Emitter = require("component-emitter2");
class AnonymousRecord extends Emitter {
constructor(getRecordCore) {
super();
this.record = null;
this.subscriptions = [];
... |
using System;
using System.Collections.Generic;
namespace EZOper.NetSiteUtilities.AopApi
{
<summary>
AOP API: alipay.eco.cplife.useridentity.status.update
</summary>
public class <API key> : IAopRequest<<API key>>
{
<summary>
</summary>
public string BizContent { get; set; }
... |
using System;
namespace BankAccount
{
<summary>
Bank Account demo class.
</summary>
public class BankAccount
{
private string m_customerName;
private double m_balance;
private bool m_frozen = false;
private ILogger m_logger = null;
private BankAccount(ILogger ... |
namespace WmcSoft.Windows.Forms
{
partial class ToolStripForm
{
<summary>
Required designer variable.
</summary>
private System.ComponentModel.IContainer components = null;
<summary>
Clean up any resources being used.
</summary>
<param name="dispos... |
// 3-odd-even-sort-2.h
#ifndef <API key>
#define <API key>
#include <iostream>
void oddEvenSort2();
#endif /* defined(<API key>) */ |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.c
Label Definition File: <API key>.strings.label.xml
Template File: sources-sink-41.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: environment Read input from an environment variable
* GoodSource: Fixed string
* Sink: w32_execv
* ... |
// ReSharper disable InconsistentNaming
namespace deleteonerror.GeoIP.Model
{
<summary>
</summary>
public enum NetworkType
{
IPv4,
IPv6
}
} |
#!/usr/bin/env ruby
# encoding: UTF-8
require 'spec_helper'
require 'tag/country_code'
describe ExifTagger::Tag::CountryCode do
let(:val_ok) { 'RU' }
let(:val_orig) { { '<API key>' => 'UA' } }
let(:val_orig_empty) { { '<API key>' => '' } }
let(:tag) { described_class.new(val_ok) }
it_behaves_like 'any tag'
... |
using System;
using System.Linq;
namespace Geb.Image.Formats.MetaData.Profiles.Icc
{
<summary>
The type contains a one-dimensional table of double values.
</summary>
internal sealed class <API key> : IccTagDataEntry, IEquatable<<API key>>
{
<summary>
Initializes a new instance of the... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _03.<API key>
{
class <API key>
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
decimal sum = 0m;
for (int ... |
const MockServer = require('./mockserver.js');
let server;
module.exports = {
start(done) {
server = MockServer.init();
server.on('listening', function () {
done();
});
},
stop(done) {
if (!server) {
done();
return;
}
server.close(function () {
done();
});
},
... |
<!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>SARMATINe</title>
<!-- Bootstr... |
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","<API key>.html"],['3285',"Tlece.Recruitment.UploaderAMS Namespace","<API key>.html"]]; |
package website.automate.jwebrobot.executor.action;
import org.openqa.selenium.TimeoutException;
import website.automate.jwebrobot.context.<API key>;
import website.automate.jwebrobot.executor.ActionExecutorUtils;
import website.automate.jwebrobot.executor.ActionResult;
import website.automate.waml.io.model.main.action... |
function <API key>() {
var url = "/Home/<API key>";
$.get(url)
.done(function (result) {
var values = [];
$.each(result.ChartDatasets[0].Values,
function(index, val) {
values.push(val.Value);
});
var data = {
... |
#pragma once
#include <memory>
#include <stdint.h>
class VideoEncoder {
public:
virtual ~VideoEncoder() {
}
static std::unique_ptr<VideoEncoder> Create(const std::wstring& filename);
virtual void Init(int width, int height, int fps) = 0;
virtual void Finish() = 0;
virtual void WriteFrame(uint8_t... |
class ApiKey < ActiveRecord::Base
before_create :<API key>
private
def <API key>
begin
self.access_token = SecureRandom.hex
end while self.class.exists?(access_token: access_token)
end
end |
'use strict';
angular.module('wsapp')
.controller('<API key>', function ($scope, $location, applicationService, $state, $cookies, $stateParams) {
console.log($stateParams.programmeId)
$scope.degreeId = $stateParams.programmeId
$scope.availableOptions = [ {name : "- Select -", id : "1"}, {nam... |
using System;
using System.Reactive;
namespace Pirac
{
public interface IObserveClose
{
IObservable<Unit> WhenClosed();
Func<bool> CanCloseCheck { get; set; }
}
} |
export type DictionaryEntry = {
/**
* Unique identifier for the rule (format: [A-Za-z0-9_-]+).
*/
readonly objectID: string;
readonly language: string;
readonly word?: string;
readonly words?: readonly string[];
readonly decomposition?: readonly string[];
readonly state?: 'enabled' | 'disabled';
}; |
module.exports = function(app) {
var homeController = {};
var File = app.models.file;
homeController.read = function(req, res) {
var _id = req.params.id;
File.findById(_id).exec()
.then(
function(file) {
if(!file) throw new Error('File not found!');
res.download(file.path... |
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exports = factory;
} else if (typeof define === 'function' && define.amd) {
define('highcharts/indicators/dema', ['highcharts', 'highcharts/modules/stock'], functi... |
pageid: cmd.state-enter
title: state-enter
layout: docs
section: Commands
permalink: docs/cmd/state-enter.html
redirect_from: docs/cmd/state-enter/
*Since 4.4*
The `state-enter` command works in conjunction with
[state-leave](/watchman/docs/cmd/state-leave.html) to facilitate [advanced
settling in subscriptions](/watch... |
<?php
namespace BackSyst\SystemBundle\Services;
class Bcrypt {
private $rounds;
public function __construct($rounds = 12) {
if(CRYPT_BLOWFISH != 1) {
throw new Exception("bcrypt not supported in this installation. See http://php.net/crypt");
}
$this->rounds = $rounds;
}
public function hash($i... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>App Engine Python SDK: google.appengine.ext.db.polymodel._ClassKeyProperty Class Reference</... |
#!/usr/bin/env node
import yargs from 'yargs';
import { concat, memoize } from 'ramda';
/**
* Lazy loading and cache of an internal ES6 module
*
* @param {String} module - Module to evaluate
* @return {*}
*/
const getModule = memoize(concat('./') & require);
/**
* Entry point of Rung CLI
*
* @param {Object} arg... |
import { GridPanel } from "../gridPanel/gridPanel";
import { RowNode } from "../entities/rowNode";
import { BeanStub } from "../context/beanStub";
export declare class <API key> extends BeanStub {
private beans;
private $scope;
private columnController;
private gridPanel;
private eDummyContainer;
... |
/**
* Follow up for H-Index: What if the citations array is
* sorted in ascending order? Could you optimize your algorithm?
*/
public class Solution {
public int hIndex(int[] citations) {
int length = citations.length;
for (int i = 0 ; i < length ; i++) {
if (citations[i] >= (length -... |
export { EventEmitterEx } from './EventEmitterEx';
export { EventProxify } from './EventProxify'; |
angular.module('angular-timeline', ['ngSanitize']);
// Source: src/<API key>.js
/*global angular*/
/**
* @ngdoc directive
* @name angular-timeline.directive:timeline-badge
* @restrict AE
*
* @description
* Shown in the centre pane (or left on narrow devices) to indicate the activity.
*/
angular.module('angular-t... |
#!/usr/bin/env bash -c make
SRC=./lib/browser.js |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Vocalib
{
public partial class Select : Form
{
private List<Word> words;
private bool init;
#e... |
.oo-ui-window {
background-color: transparent;
background-image: none;
}
.oo-ui-window-frame {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.<API key> {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
}
.<API key>:focus {
outl... |
package org.accela.midi.groove;
import javax.sound.midi.*;
public class Channel
{
private MidiChannel channel;
private Synthesizer synthesizer;
protected Channel(MidiChannel channel, Synthesizer synthesizer)
{
if (null == channel)
{
throw new <API key>("channel should not be ... |
<?php
if ( array_key_exists("cron", $_POST) ) {
$post = $_POST;
$cron = $post['cron'];
} elseif ( array_key_exists("cron", $_GET) ) {
$get = $_GET;
$cron = $get['cron'];
} else {
return;
}
require 'classAutoLoad.php';
if( $cron == 'auto' ) {
if( !file_exists( __DIR__ . '/config/.dbConfig' ) ) {
... |
"use strict";
var _utils = <API key>(require("./utils"));
var _es = require("./es2015");
function <API key>(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object... |
module Projects
class ParticipantsService < BaseService
attr_reader :noteable
def execute(noteable)
@noteable = noteable
project_members = sorted(project.team.members)
participants = noteable_owner + <API key> + all_members + groups + project_members
participants.uniq
end
def n... |
<?php
namespace Martin\Forms\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class AddGroupField extends Migration {
public function up() {
Schema::table('<API key>', function ($table) {
$table->string('group')->default('(Empty)')->after('id');
... |
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.06.01 at 06:36:07 PM UYT
package dgi.classes.recepcion;
import java.util.ArrayList;
import java.uti... |
<div class="container" ng-controller="HeaderController">
<div class="navbar-header">
<button class="navbar-toggle" type="button" ng-click="<API key>()">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></spa... |
// PassLayer.h
// Slot Machines
#import <Foundation/Foundation.h>
#import "cocos2d.h"
typedef enum
{
gameSingleMode = 0 ,
gamePartyMode = 1,
}gameMode;
@interface PassLayer : CCLayer <<API key>> {
gameMode nowMode;
int needLevel, needCoin;
}
-(void)LoadImage;
-(void)SetInfo:(NSString *)name Mode:(gam... |
#ifndef EGEN_TEST_SUT_H
#define EGEN_TEST_SUT_H
/*
* Test suite Two implementation.
*
* This suite runs one instance of reference Driver code with one instance
* of the current Driver code.
*
* It is intended to test runtime transaction parameter generation.
*/
#include "<API key>.h"
namespace TPCETest
{
enum T... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# sphinx-quickstart on Sun Oct 1 17:47:07 2017.
# This file is execfile()d with the current directory set to its
# containing dir.
# Note that not all possible configuration values are present in this
# autogenerated file.
# All configuration values have a default; values... |
<?php
namespace Application\Controller;
use Silex\Application;
/**
* @author Borut Balazek <bobalazek124@gmail.com>
*/
class ApiController
{
/**
* @param Application $app
*
* @return \Symfony\Component\HttpFoundation\JsonResponse
*/
public function indexAction(Application $app)
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.