answer stringlengths 15 1.25M |
|---|
<?php
/* TwigBundle:Exception:exception.json.twig */
class <API key> extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, arr... |
<div id="menu-logo-wrapper" class="animated slideInDown">
<div class="main-menu">
<div class="pull-left">
<div class="<API key>">
<div class="toggle-menu">
<a href="javascript:void(0)">
<span class="nav-bar"></span>
... |
[ AutoRest Code Generator.
package com.azure.resourcemanager.vmwarecloudsimple.models;
import com.azure.resourcemanager.vmwarecloudsimple.fluent.models.<API key>;
/** An immutable client-side representation of CustomizationPolicy. */
public interface CustomizationPolicy {
/**
*... |
import React from 'react';
import ErrorIcon from './ErrorIcon';
export const symbols = {
'ErrorIcon -> with filled': <ErrorIcon filled={true} />,
'ErrorIcon -> without filled': <ErrorIcon filled={false} />
}; |
{% extends "base.html"%}
{% block title %}Sequence{% endblock %}
<!
{% block head %}
<link rel="stylesheet" type="text/css" href="{{ static_file('css/rhizo/app.css') }}">
<script type="text/javascript" src="/static/js/moment.min.js"></script>
<script type="text/javascript" src="/static/js/paho-mqtt.js"></script>
<scrip... |
<!DOCTYPE HTML>
<?php include '../inc/draft_config.php'; ?><!-- Use relative path to find config file -->
<html lang="">
<head>
<base href="<?php echo BASE_URL; ?>">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Project... |
#entry {
margin: 10px auto 10px auto;
font-size: 10pt;
width: 100%;
height: 70px;
display: table;
border-radius: 10px;
background-color: #301E19;
border: 10px;
text-align: center;
vertical-align: middle;
}
.coffeeType {
width: 265px;
height: 34px;
margin: 0 auto 0 aut... |
package commands
import (
"compress/gzip"
"errors"
"fmt"
"io"
"os"
"path/filepath"
"strings"
core "github.com/ipfs/go-ipfs/core"
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
e "github.com/ipfs/go-ipfs/core/commands/e"
tar "gx/ipfs/<API key>/tar-utils"
uarchive "g... |
package org.reasm.m68k.assembly.internal;
import javax.annotation.Nonnull;
import javax.annotation.concurrent.Immutable;
import org.reasm.Value;
import org.reasm.<API key>;
@Immutable
class WhileDirective extends Mnemonic {
@Nonnull
static final WhileDirective WHILE = new WhileDirective();
private WhileDire... |
package com.github.games647.flexiblelogin.listener.prevent;
import com.flowpowered.math.vector.Vector3i;
import com.github.games647.flexiblelogin.FlexibleLogin;
import com.github.games647.flexiblelogin.PomData;
import com.github.games647.flexiblelogin.config.Settings;
import com.google.inject.Inject;
import java.util.L... |
<div class="card">
<div class="card-header">
<span class="h3">
Chat Page!!
</span>
</div>
<div class="card-block">
<div class="panel-body">
<ngb-alert [dismissible]="false">
<strong>Warning!</strong> You need to login to see contextual data in chat!!
</ngb-alert>
<... |
# coding: utf-8
from pprint import pformat
from six import iteritems
import re
class ContributorOrcid(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
def __init__(self, uri=None, path=None, host=None):
"""
Con... |
package com.contexthub.storageapp;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.SearchView;
import android.view.Menu;
import android.view.MenuItem;
import com.chai... |
namespace Kephas.Model.Tests
{
using System.Collections.Generic;
using System.Reflection;
using System.Threading.Tasks;
using Kephas.Composition.Conventions;
using Kephas.Composition.Lite;
using Kephas.Model.Elements;
using Kephas.Services;
using Kephas.Testing.Model;
using NUnit.Fra... |
<?php
namespace GlenDemon\ZabbixApi\Repository;
use \GlenDemon\ZabbixApi\Entity\HostGroup;
/**
* HostGroup repository.
*/
class HostGroupRepository extends AbstractRepository
{
/**
* Finds an object by its primary key / identifier.
*
* @param mixed $id The identifier.
*
* @return HostGrou... |
// Preprocessed version of "lslboost/mpl/list/list10_c.hpp" header
// -- DO NOT modify by hand!
namespace lslboost { namespace mpl {
template<
typename T
, T C0
>
struct list1_c
: l_item<
long_<1>
, integral_c< T,C0 >
, l_end
>
{
typedef list1_c type;
typedef ... |
module CardHelper
def <API key>(node, options = {})
{ class: dom_class(node, :card),
itemscope: '',
itemtype: 'http://schema.org/Thing',
itemid: node.uuid,
itemtype: node.class.schema_path }.merge(options)
end
def cardtec_header(node)
content_tag(:span, node.uuid, it... |
package org.ensor.robots.roboclawdriver;
/**
*
* @author jona
*/
class <API key> extends <API key> {
protected <API key>(RoboClaw aRoboClaw) {
super(aRoboClaw);
}
@Override
protected byte getCommandByte() {
return (byte)24;
}
@Override
protected void onResponse(double volta... |
package org.kalnee.trivor.insights.web.rest;
import com.codahale.metrics.annotation.Timed;
import org.kalnee.trivor.insights.domain.insights.Insights;
import org.kalnee.trivor.insights.service.InsightService;
import org.kalnee.trivor.nlp.domain.ChunkFrequency;
import org.kalnee.trivor.nlp.domain.PhrasalVerbUsage;
impor... |
// This file is used by Code Analysis to maintain SuppressMessage attributes that are applied to this
// project. Project-level suppressions either have no target or are given a specific target and
// scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0002:... |
#ifndef _VSARDUINO_H_
#define _VSARDUINO_H_
//Board = Arduino Nano w/ ATmega328
#define __AVR_ATmega328p__
#define __AVR_ATmega328P__
#define ARDUINO 105
#define ARDUINO_MAIN
#define __AVR__
#define __avr__
#define F_CPU 16000000L
#define __cplusplus
#define __inline__
#define __asm__(x)
#define __extension__
#define _... |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Network::Mgmt::V2018_04_01
module Models
# List of Vpn-Sites
class <API key>
include MsRestAzure
# @return [Array<SubReso... |
#pragma once
#include "messages.h"
#include "primitives/string_utils.h"
// Given pairs of pulse lens from 2 base stations, this class determines the phase for current cycle
// Phases are:
// 0) Base 1 (B), horizontal sweep
// 1) Base 1 (B), vertical sweep
// TODO: We might want to introduce a more thorough check fo... |
<?php
# MetInfo Enterprise Content Management System
require_once '../login/login_check.php';
if($action=='modify'){
$shortcut=array();
$query="select * from $met_language where value='$name' and lang='$lang'";
$lang_shortcut=$db->get_one($query);
$shortcut['name']=$lang_shortcut?'lang_'.$lang_shortcut[... |
layout: post
title:
date: 2017-05-13 10:54:37
categories: Java
# Java
````
*
java
import java.util.ArrayList;
import java.util.List;
/**
* <br>
* <font color="red"></font>
*
* @author rongzhisheng
*
* @param <E>
*/
public class CircleQueue<E> {
private static final int DEFAULT_CAPACITY = 10;
private in... |
'use strict';
exports.init = function(req, res){
//res.write("joder\n");
//res.write(req.csrfToken());
//res.end();
req.app.db.models.Experiment.find({})
.select("tableList name uploadedBy dateDevelopment id name neuronType")
.exec(function(err, exps) {
if(err) {
res.send("Er... |
#ifndef ECLAIR_DIRECTORY_H
# define ECLAIR_DIRECTORY_H
# include "eclair.h"
# include <sys/types.h>
# include <dirent.h>
namespace Eclair
{
struct DirectoryFile
{
std::string name;
bool is_directory;
bool is_regular_file;
};
class Directory
{
private:
... |
import QUnit from 'qunit';
import { <API key> } from '@ember/debug';
let isRegistered = false;
let deprecations = new Set();
let <API key> = new Set();
// Ignore deprecations that are not caused by our own code, and which we cannot fix easily.
const ignoredDeprecations = [
/Versions of modifier manager capabilities p... |
package com.manniwood.cl4pg.v1.exceptions;
public class <API key> extends Cl4pgException {
private static final long serialVersionUID = 1L;
public <API key>() {
super();
}
public <API key>(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(mes... |
package com.cosium.spring.data.jpa.entity.graph.repository.support;
import com.google.common.base.MoreObjects;
import org.springframework.core.ResolvableType;
import org.springframework.data.jpa.repository.query.JpaEntityGraph;
import static java.util.Objects.requireNonNull;
/**
* Wrapper class allowing to hold a {@li... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Page',
fields=[
('id', models.AutoField(verbose_name... |
module.exports = function(grunt) {
// Add our custom tasks.
grunt.loadTasks('../../../tasks');
// Project configuration.
grunt.initConfig({
mochaTest: {
options: {
reporter: 'spec',
grep: 'tests that match grep',
invert: true
},
all: {
src: ['*.js']
}
... |
<?php
namespace App\Service;
class Message {
public function get()
{
if (isset($_SESSION['message'])) {
$array = explode(',', $_SESSION['message']);
unset($_SESSION['message']);
return $array;
}
return '';
}
public function set($message, $type ... |
package mqttpubsub
import (
"encoding/json"
"fmt"
"sync"
"time"
log "github.com/Sirupsen/logrus"
"github.com/brocaar/loraserver/api/gw"
"github.com/brocaar/lorawan"
"github.com/eclipse/paho.mqtt.golang"
)
// Backend implements a MQTT pub-sub backend.
type Backend struct {
conn ... |
package stage2;
public class DecafError {
int numErrors;
DecafError(){
}
public static String errorPos(Position p){
return "(L: " + p.startLine +
", Col: " + p.startCol +
") -- (L: " + p.endLine +
", Col: " + p.endCol +
")";
}... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>../plugins/plugins_2d/bar/bar.vlib.js</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="style... |
<!DOCTYPE html>
<!DOCTYPE html>
<html lang=sl>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Kje lahko najdem datoteke katerih varnostno kopijo želim ustvariti?</title>
<script type="text/javascript" src="jquery.js"></script><script type="text/javascript" src="jquery.syntax.js"></scr... |
"use strict";
define("ace/mode/<API key>", ["require", "exports", "module", "ace/lib/oop", "ace/mode/<API key>"], function (require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./<API key>").TextHighlightRules;
var <API key> = function <API key>() ... |
package cargaDoSistema;
import modelo.TipoUsuario;
import modelo.Usuario;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import service.<API key>;
import service.UsuarioAppService;
import service.controleTransacao.FabricaDeAppService;
import service.exception.AplicacaoException;
import u... |
import * as React from 'react'
import {Component, ComponentClass, createElement} from 'react'
import * as PropTypes from 'prop-types'
import {connect} from 'react-redux'
import {Store} from '../store'
import ComputedState from '../model/ComputedState'
function connectToStore<P>(component:ComponentClass<P>):ComponentCla... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_05) on Thu Sep 30 22:16:01 GMT+01:00 2004 -->
<TITLE>
org.springframework.web.multipart.support Class Hierarchy (Spring Framework)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"... |
import { <API key> } from '@angular/<API key>';
import { enableProdMode } from '@angular/core';
import { AppModule } from './app/app.module';
enableProdMode();
<API key>().bootstrapModule(AppModule); |
from behave import given, when, then
from genosdb.models import User
from genosdb.exceptions import UserNotFound
# 'mongodb://localhost:27017/')
@given('a valid user with values {username}, {password}, {email}, {first_name}, {last_name}')
def step_impl(context, username, password, email, first_name, last_name):
con... |
using Mokkosu.AST;
using System.Collections.Generic;
using System.Text;
namespace Mokkosu.ClosureConversion
{
class <API key>
{
public Dictionary<string, MExpr> FunctionTable { get; private set; }
public MExpr Main { get; private set; }
public <API key>(Dictionary<string, MExpr> table, M... |
package com.ov3rk1ll.kinocast.ui.util.glide;
import com.ov3rk1ll.kinocast.data.ViewModel;
public class <API key> {
private ViewModel viewModel;
private int screenWidthPx;
private String type;
public <API key>(ViewModel viewModel, int screenWidthPx, String type) {
this.viewModel = viewModel;
... |
package stat
import (
"fmt"
"time"
// "encoding/json"
)
type RevStat struct {
RevId string `json:"RevId"`
UserName string `json:"UserName"`
WordCount int `json:"WordCount"`
ModDate string `json:"ModDate"`
WordFreq []WordPair `json:"WordFreq"`
}
type DocStat ... |
<html>
<head>
<meta charset="utf-8">
<title>Example React.js using NPM, Babel6 and Webpack</title>
</head>
<body>
<div id="app" />
<script src="public/bundle.js" type="text/javascript"></script>
</body>
</html> |
package ru.lanbilling.webservice.wsdl;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
imp... |
#include "ToolbarPanel.h"
#include "StagePanel.h"
#include "SelectSpritesOP.h"
#include "Context.h"
namespace coceditor
{
ToolbarPanel::ToolbarPanel(wxWindow* parent)
: ee::ToolbarPanel(parent, Context::Instance()->stage)
{
Context* context = Context::Instance();
// addChild(new ee::UniversalCMPT(this, wxT(... |
using System.IO;
using System.Diagnostics;
using NDepend.Path;
namespace NDepend.Test.Unit {
public static class DirForTest {
public static <API key> <API key> {
get {
// If this following line doesn't work, it is because of ShadowCopyCache with NUnit
return System.Reflection.A... |
require 'statsample'
module Grid
class Row
attr_reader :top_y, :bottom_y
def initialize(item)
@data = []
self << item
end
def <<(item)
@data << item
@top_y = quartiles_meam(@data.map(&:y))
@bottom_y = quartiles_meam(@data.map{|item| item.y + item.height})
end
def ... |
import unittest
from src.data_structures.mockdata import MockData
class TestMockData (unittest.TestCase):
def setUp(self):
self.data = MockData()
def test_random_data(self):
data = MockData()
a_set = data.get_random_elements(10)
self.assertTrue(len(a_set) == 10, "the data should ... |
// Person.h
// SJDBMapProject
#import <Foundation/Foundation.h>
#import "SJDBMapUseProtocol.h"
@class Book;
@class PersonTag;
@class Goods;
@class TestTest;
@interface Person : NSObject<SJDBMapUseProtocol>
@property (nonatomic, strong) Book *aBook;
@property (nonatomic, assign) NSInteger personID;
@property (nonatomi... |
#include <bits/stdc++.h>
using namespace std;
#define REP(I,N) FOR(I,0,N)
#define FOR(i, begin, end) for (__typeof(end) i = (begin) - ((begin) > (end)); i != (end) - ((begin) > (end)); i += 1 - 2 * ((begin) > (end)))
#define ALL(A) (A).begin(), (A).end()
#define MSG(a) cout << #a << " == " << (a) << endl;
const i... |
# <API key>: true
module Wardrobe
module Plugins
module Validation
module Refinements
refine NilClass do
def filled?
'must be filled'
end
def empty?
# Nil is valid as empty
end
end
end
end
end
end |
<!DOCTYPE html>
<html>
<head>
<title>Poet -- node.js blogging platform</title>
<link rel="stylesheet" href="styles/prettify.css">
<link rel="stylesheet" href="styles/poet.css">
<link href="http://fonts.googleapis.com/cs?family=La+Belle+Aurore" rel="stylesheet" type="text/css">
<script src="js/ga.j... |
from rest_framework.filters import (
FilterSet
)
from trialscompendium.trials.models import Treatment
class TreatmentListFilter(FilterSet):
"""
Filter query list from treatment database table
"""
class Meta:
model = Treatment
fields = {'id': ['exact', 'in'],
'no_rep... |
import React, { Component } from 'react';
class Main extends Component {
render() {
return (
<main className='Main'>
<h1 className='Main-headline'>Web solutions focused on<br/>Simplicity & Reliability.</h1>
<h2 className='Main-subhead'>Bleeding edge technology paired with amazing <em>talent<... |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) -->
<!-- Created: ; Product Code... |
// SwiftMan.h
// SwiftMan
#import "TargetConditionals.h"
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#elif TARGET_OS_MAC
#import <Cocoa/Cocoa.h>
#elif TARGET_OS_WATCH
#import <WatchKit/WatchKit.h>
#endif
//! Project version number for SwiftMan.
FOUNDATION_EXPORT double <API key>;
//! Project version string for Swift... |
#include "board.h"
#include <stdint.h>
#include <string.h>
#include "usbd_rom_api.h"
#include "hid_keyboard.h"
#include "ms_timer.h"
/**
* @brief Structure to hold Keyboard data
*/
typedef struct {
USBD_HANDLE_T hUsb; /*!< Handle to USB stack. */
uint8_t report[<API key>]; /*!< Last report data */
... |
'use strict';
angular.module('main', ['ngRoute', 'ngResource', 'ui.route', 'main.system', 'main.index', 'main.events']);
angular.module('main.system', []);
angular.module('main.index', []);
angular.module('main.events', []);
'use strict';
//Setting HTML5 Location Mode
angular.module('main').config(['$locationProvider',... |
/**
* StaticText.js
* Text that cannot be changed after loaded by the game
*/
import GamePiece from './GamePiece.js';
import Info from './Info.js';
import Text from './Text.js';
export default class StaticText extends Text {
constructor (config) {
super(config);
this.static = true;
}
} |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_101) on Mon Sep 19 15:00:46 UTC 2016 -->
<title>org.springframework.oxm.xmlbeans Class Hierarchy (Spring Framework 4.3.3.RELEASE API)</title><script>var _hmt = _hmt || [];(function() {var hm = document.createElement("scri... |
<?php
declare(strict_types=1);
namespace ApiPlatform\Core\Tests\Metadata\Property\Factory;
use ApiPlatform\Core\Metadata\Property\Factory\<API key>;
use ApiPlatform\Core\Metadata\Property\Factory\<API key>;
use ApiPlatform\Core\Metadata\Property\<API key>;
use ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\Dummy;
us... |
<?php
namespace Tests\Behat\Mink;
use Behat\Mink\Session;
/**
* @group unittest
*/
class SessionTest extends \<API key>
{
private $driver;
private $selectorsHandler;
private $session;
protected function setUp()
{
$this->driver = $this->getMockBuilder('Behat\Mink\Driver\DriverInte... |
<?php
namespace DuxCms\Model;
use Think\Model;
class FieldDataModel extends Model {
public function setTable($name) {
$this->trueTableName = $this->tablePrefix.'ext_'.$name;
}
/**
*
* @return array
*/
public function loadList($where,$limit = 0,$order='data_id DESC'){
retur... |
# Install on Laravel Forge
1. Disable nginx with `sudo update-rc.d -f nginx disable`
2. Create a new site for your blog, and install this Git Repository
3. Execute `npm install --production` in `/home/forge/{<API key>}`.
4. Reboot your server
5. Add a daenom for the root user that executes `npm start /home/forge/{<API ... |
import os
from django.core.wsgi import <API key>
os.environ.setdefault("<API key>", "Carkinos.settings")
application = <API key>() |
# Smallest Integer
# I worked on this challenge by myself.
# smallest_integer is a method that takes an array of integers as its input
# and returns the smallest integer in the array
# +list_of_nums+ is an array of integers
# smallest_integer(list_of_nums) should return the smallest integer in +list_of_nums+
# If +list... |
require_relative 'spec_helper'
include LanguageSwitcher
I18n.available_locales = [:pt, :en]
describe "LanguageSwitcher" do
it "should be able to switch to a language" do
language(:pt){ I18n.locale.should == :pt }
language(:en){ I18n.locale.should == :en }
end
it "should not be able to switch to a language... |
import React from 'react';
import { string, node } from 'prop-types';
import classNames from 'classnames';
const TileAction = ({ children, className, ...rest }) => {
return (
<div className={classNames('tile-action', className)} {...rest}>
{children}
</div>
);
};
/**
* TileAction property types.
*/
... |
<?php
namespace tigrov\country;
/**
* This is the model class for table "city_translation".
*
* @property integer $geoname_id
* @property string $language_code
* @property string $value
*/
class CityTranslation extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName(... |
package com.mvas.webproxy.portals;
import com.mvas.webproxy.<API key>;
import com.mvas.webproxy.RequestData;
import com.mvas.webproxy.WebServer;
import com.mvas.webproxy.config.PortalConfiguration;
import org.apache.commons.io.IOUtils;
import org.json.JSONException;
import org.json.JSONObject;
import org.slf4j.Logger;
... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http:
<html>
<head>
:head
:fbthumb
</head>
<body>
<div id="wrapper">
<header>
<div class="container">
<h1 class="col four">
<a href="@root_path/" class="logo">@name</a>
... |
package com.archimatetool.editor.actions;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.<API key>;
import java.net.URL;
import java.net.URLConnection;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.dialogs.MessageDialog... |
using System;
using System.Collections.Generic;
using EspaceClient.BackOffice.Domaine.Results;
using EspaceClient.BackOffice.Silverlight.Business.Depots;
using EspaceClient.BackOffice.Silverlight.Business.Interfaces;
using EspaceClient.BackOffice.Silverlight.Infrastructure.Services;
using EspaceClient.FrontOffice.Domai... |
from io import BytesIO
from django import forms
from django.http import HttpResponse
from django.template import Context, Template
from braces.views import LoginRequiredMixin
from django.views.generic import DetailView, ListView
from django.views.decorators.http import <API key>
from django.contrib import messages
from... |
import {Component} from "@angular/core";
@Component({
moduleId: module.id,
selector: 'ptc-footer',
templateUrl: 'footer.component.html'
})
export class FooterComponent{
} |
<?php
namespace Pinq\Iterators\Generators;
use Pinq\Iterators\Standard\IIterator;
/**
* Implementation of the adapter iterator for Pinq\Iterators\IIterator using the generator
*
* @author Elliot Levin <elliotlevin@hotmail.com>
*/
class IIteratorAdapter extends Generator
{
/**
* @var IIterator
*/
p... |
/*<API key>
<API key>
XX XX
XX ARM/ARM64 Code Generator Common Code XX
XX XX
<API key>
<API key>
*/
#include "jitpch.h"
#ifdef _MSC_VER... |
<nav class="sr-only">
<div class="modal-header">
<div class="row">
<h1 class="h1 col-xs-10 col-sm-10 col-md-11 col-lg-11"><a href="/">WSJ Sections</a></h1>
<a href="" class=" col-xs-1 col-sm-1 col-md-1 col-lg-1" ng-click="NC.cancel()">close </a>
</div>
<div class="... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace AnalyzeThis
{
internal static class RegexExtensions
{
public static bool TryGetMatch(this Regex regex, string input, out Match match)
... |
M.profile("generators");
function* forOfBlockScope() {
let a = [1, 2, 3, 4, 5, 6, 7, 8];
let b = [10, 11, 12, 13, 14, 15, 16];
const funs = [];
for (const i of a) {
let j = 0;
funs.push(function* iter() {
yield `fo1: ${i} ${j++}`;
});
}
for (var i of a) {
var j = 0;
funs.push(funct... |
<?php
namespace Neimheadh\Bundle\<API key>\Model\File;
use Symfony\Component\Filesystem\Exception\<API key>;
use Symfony\Component\Filesystem\Exception\IOException;
/**
* The files models interface.
*
* @author Neimheadh <contact@neimheadh.fr>
*/
interface FileInterface
{
/**
* Get path.
*
* @ret... |
<!DOCTYPE html>
<html>
<head>
<link href="css/awsdocs.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/awsdocs.min.js"></script>
<meta charset="utf-8">
</head>
<body>
<div id="content" style="padding: 10px 3... |
package fPPPrograms;
import java.util.Scanner;
public class LeapYear {
public static void main(String[] args) {
System.out.println("Enter a year to determine whether it is a leap year or not?");
Scanner yourInput = new Scanner(System.in);
int year = yourInput.nextInt();
//String y = ... |
<?php
namespace BigD\UbicacionBundle\Form\EventListener;
use Doctrine\ORM\EntityRepository;
use Symfony\Component\EventDispatcher\<API key>;
use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormEvents;
use Symfony\Component\Form\<API key>;
use Symfony\Component\PropertyAccess\PropertyAccess;
class <API ... |
/*
* Webpack development server configuration
*
* This file is set up for serving the webpack-dev-server, which will watch for changes and recompile as required if
* the subfolder /webpack-dev-server/ is visited. Visiting the root will not automatically reload.
*/
'use strict';
import webpack from 'webpack';
impor... |
// This code will add an event listener to each anchor of the topbar after being dynamically replaced by "interchange"
$("body").on("click", function(event){
// If the active element is one of the topbar's links continues
if($(event.target).hasClass("topbarLink")) {
// The parent li element of the current... |
const elixir = require('laravel-elixir');
elixir((mix) => {
// Mix all Sass files into one
mix.sass('app.scss');
// Mix all vendor scripts together
mix.scripts(
[
'jquery/dist/jquery.min.js',
'bootstrap-sass/assets/javascripts/bootstrap.min.js',
'bootstrap-sas... |
require 'spec_helper'
describe User do
context 'fields' do
it { should have_field(:email).of_type(String)}
it { should have_field(:encrypted_password).of_type(String)}
it { should have_field(:roles).of_type(Array)}
end
context 'Mass assignment' do
it { should <API key>(:email) }
it { should... |
import {Map} from 'immutable';
export function <API key>(mapStyle) {
let interactiveLayerIds = [];
if (Map.isMap(mapStyle) && mapStyle.has('layers')) {
interactiveLayerIds = mapStyle.get('layers')
.filter(l => l.get('interactive'))
.map(l => l.get('id'))
.toJS();
} else if (Array.isArray(map... |
<!doctype html>
<html>
<head>
</head>
<body>
<h1>Milestones - Codenautas</h1>
<div id=milestones></div>
<script src=milestones.js></script>
</body>
</html> |
package net.rlviana.pricegrabber.model.entity.common;
import net.rlviana.pricegrabber.context.<API key>;
import net.rlviana.pricegrabber.model.entity.<API key>;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.test.context.<API k... |
package <API key>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// AllocationState enumerates the values for allocation state.
type AllocationState string
const (
// <API key> ...
<API key> AllocationState = "Resi... |
#include "utfgrid_encode.h"
#include <unordered_map>
#include <glog/logging.h>
#include <jsoncpp/json/value.h>
#include <mapnik/unicode.hpp>
struct <API key> {
Json::Value operator() (const mapnik::value_null& val) {return Json::Value();}
Json::Value operator() (const mapnik::value_bool& val) {return Json::Valu... |
package me.moodcat.api;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.stream.Collectors;
import lombok.Getter;
import me.moodcat.database.embeddables.VAVector;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
* A moo... |
<!-- CONTAINER BODY -->
<div class="panel-group" >
<div class="panel panel-default" >
<div class="panel-body">
<h4>Filmovi</h4>
<!-- Film List -->
<hr/>
<?php foreach($list as $row... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.