answer stringlengths 15 1.25M |
|---|
// Vendor styles
import 'bootswatch/flatly/bootstrap.css';
import 'font-awesome/css/font-awesome.css';
// App styles
import './style.css'; |
<?php
namespace ellsif\WelCMS;
class JsonPrinter extends Printer
{
/**
* json
*/
public function print(ServiceResult $result = null)
{
header("Content-Type: application/json; charset=utf-8");
if ($result->hasError()) {
http_response_code(500);
}
if ($res... |
Rails.application.routes.draw do
get 'map', to: 'map#index'
end |
package de.simonding.yaces;
import java.util.EventObject;
import lombok.Getter;
public abstract class Event extends EventObject {
private static final long serialVersionUID = 1L;
@Getter private final boolean cancelable;
public Event(Object source, boolean isCancelable) {
super(source);
this... |
'use strict';
require('./polyfill');
var angular = require('angular');
var jQLite = exports.jQLite = angular.element;
var camelToDash = exports.camelToDash = function(str) {
return str.replace(/\W+/g, '-')
.replace(/([a-z\d])([A-Z])/g, '$1-$2');
};
exports.compileDirective = function(directivename, html) {
... |
package seedu.todo.testutil;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyCodeCombination;
import javafx.scene.input.KeyCombination;
import seedu.todo.commons.util.FileUtil;
//@@author A0139812A-reused... |
<?php
namespace Eko\FeedBundle\Tests\Feed;
use Eko\FeedBundle\Feed\FeedManager;
use Eko\FeedBundle\Formatter\AtomFormatter;
use Eko\FeedBundle\Formatter\RssFormatter;
use Eko\FeedBundle\Tests\Entity\Writer\<API key>;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
/... |
<!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 must come *after* these tags -->
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>stalmarck: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>libvalidsdp: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... |
import asyncio
import irc.parser
import pyparsing
def unescape(value):
return value.replace("\\:", ";") \
.replace("\\s", " ") \
.replace("\\\\", "\\") \
.replace("\\r", "\r") \
.replace("\\n", "\n")
class Connection:
def __init__(self, host, port,... |
#pragma once
#include <map>
#include "Interface.h"
#include "Player.h"
#include "Resource.h"
#include "Map.h"
#include "Building.h"
#include "Power.h"
#include "Auction.h"
namespace ugly
{
namespace FreeMarket
{
class Serializer
{
public:
static std::string SerializeState(Gam... |
export default (action) => {
const newOptions = {
method: 'GET',
uri: action.url,
json: true,
};
const options = Object.assign({}, newOptions, action);
delete options.url;
delete options.type;
if (action.headers) {
options.headers = action.headers;
}
if (action.data) {
options.header... |
<?php
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Model::unguard();
$this->call(OurUsersSeeder::class);
$this->call(Province... |
from typing import Sequence, Any, Dict, Tuple, Callable, Optional, TypeVar, Union
import inspect
try: # Python 3.8
import importlib.metadata as importlib_metadata
except ImportError:
from . import _importlib_metadata as importlib_metadata # type: ignore
# Only ever call this once for performance reasons
<API ... |
.content {
margin-top: 50px;
}
.undecorated-link:hover {
text-decoration: none;
}
[ng\:cloak],
[ng-cloak],
[x-ng-cloak],
.ng-cloak,
.x-ng-cloak {
display: none !important;
}
.<API key> {
opacity: 0.8;
height: 28px;
width: 28px;
border-radius: 50%;
margin-right: 5px;
}
.open .<API key>,
a:hover .<API key... |
import numpy
np = numpy
import theano
import theano.tensor as T
# (Here we make a toy dataset of two 2D gaussians with different means.)
num_examples = 1000
batch_size = 100
means = np.array([[-1., -1.], [1, 1]])
std = 0.5
labels = np.random.randint(size=num_examples, low=0, high=1)
features = means[labels, :] + std * ... |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html xmlns="http:
<head>
<title>Module: ProtonMicro::RestfulEasyMessages::Messages::InstanceMethods</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta ... |
import React from "react";
import { useRouter } from "@curi/react-dom";
const CLASSNAMES = "m-0 mr-1 mb-1";
let Version = ({ versions, major, params }) => {
let router = useRouter();
// only render dropdown for packages with multiple versions
if (Object.keys(versions).length > 1) {
return (
<label class... |
SitemapNotifier::Notifier.configure do |config|
# Set URL to your sitemap. This is required.
# config.sitemap_url = Quadro.<API key>.sitemap_url
# config.environments = [:development, :production]
config.delay = 2.minutes
# Additional urls to ping
# If you don't want the notifications to run in the backgrou... |
using System;
using Leak.Common;
using Leak.Networking.Core;
namespace Leak.Tracker.Get.Events
{
public class TrackerAnnounced
{
public FileHash Hash;
public PeerHash Peer;
public Uri Address;
public NetworkAddress[] Peers;
public TimeSpan Interval;
public int? Se... |
# node-tvdb
[
- Set language at initialisation or afterwards when needed
- N... |
<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- For Mobile Devices -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="tex... |
/**
* (TMS)
*/
package com.lhjz.portal.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValu... |
<!DOCTYPE html>
<html xmlns:msxsl="urn:<API key>:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="<API key>">.NET Portability Report</title>
<style>
/* Body style, for the entire document */... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and ot... |
# [rail](../README.markdown) Plugins
## Table of Contents
- [buffer](#buffer)
- [cookies](#cookies)
- [json](#json)
- [redirect](#redirect)
- [retry](#retry)
- [timeout](#timeout)
- [validate](#validate)
## buffer
Buffers the response body and exports it as `response.buffer`.
When the body is empty its va... |
<?php include $_SERVER['DOCUMENT_ROOT'].'/page-generator-top.php';?>
<aside>
<h3>Blog Menu</h3>
<p>This is a paragraph 0OiIl1749</p>
</aside>
<section>
<h3>Blog Content</h3>
<h4>This is a heading 3</h4>
<h5>This is a heading 1</h5>
<p>This is a paragraph 0OiIl... |
Office.onReady(() => {
// If needed, Office.js is ready to be called
});
/**
* Shows a notification when the add-in command is executed.
* @param event
*/
function action(event) {
// Your code goes here
// Be sure to indicate when the add-in command function is complete
event.completed();
}
// The global var... |
using NeuralNet.Neurons;
namespace NeuralNet.Others
{
<summary>
Represents a weight initializer which can generate random weights.
</summary>
public class RandomInitializer : IWeightInitializer
{
<summary>
Gets or sets the minimum value.
</summary>
public double Min {... |
'use strict';
module.exports.uniqueId = require('./unique-id');
module.exports.hiddenProperty = require('./hidden-property');
module.exports.createArchive = require('./create-archive'); |
#ifndef PWM_INTERFACE_H_
#define PWM_INTERFACE_H_
Standard function to initialize the PWM chip.
/*!
* No input parameters or return value.
* \sa read_pwm()
* \ingroup pwm_fcns
*/
void init_pwm();
Standard function to read the PWM chip.
/*!
* Returns a status bitfield.
* \sa init_pwm()
* \ingroup pwm_fcns
*/
int r... |
<?php
/**
* Country customer grid column filter
*
* @category Mage
* @package Mage_Adminhtml
* @author Magento Core Team <core@magentocommerce.com>
*/
class <API key> extends <API key>
{
protected function _getOptions()
{
$options = Mage::getResourceModel('directory/country_collection')-... |
#include <API key> //original-code:"modules/audio_processing/vad/pole_zero_filter.h"
#include <stdlib.h>
#include <string.h>
#include <algorithm>
namespace webrtc {
PoleZeroFilter* PoleZeroFilter::Create(const float* <API key>,
size_t order_numerator,
... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>class RubyXL::SortCondition - rubyXL 3.3.13</title>
<script type="text/javascript">
var rdoc_rel_prefix = "../";
</script>
<script src="../js/jquery.js"></script>
<script src="../js/darkfish.js"></script>
<link href="../css/fonts.css" rel="stylesheet">
<link... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_79) on Fri Jan 22 15:25:08 CST 2016 -->
<title>Uses of Class vista.VCuadradoArea</title>
<meta name="date" content="2016-01-22">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
</... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Juice.Framework;
namespace WebForms {
public partial class Base : System.Web.UI.MasterPage {
protected void Page_Load(object sender, EventArgs e) {
//C... |
#ifndef __ARRAY_BLOB_H__
#define __ARRAY_BLOB_H__ 1
#include "4DPluginAPI.h"
#include "C_BLOB.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef std::vector<C_BLOB> CBLOBArray;
typedef std::vector<C_BLOB> CBLOBArray;
class ARRAY_BLOB
{
private:
CBLOBArray* _CBLOBArray;
public:
void fromParamAtIndex(Packa... |
import {
assign,
guidFor,
dictionary,
getOwner
} from 'ember-utils';
import Logger from 'ember-console';
import {
get,
set,
defineProperty,
computed,
run,
deprecateProperty
} from 'ember-metal';
import {
Error as EmberError,
deprecate,
assert,
info
} from 'ember-debug';
import {
Object as ... |
package main
/**
* Definition for a binary tree node.
* type TreeNode struct {
* Val int
* Left *TreeNode
* Right *TreeNode
* }
*/
type TreeNode struct {
Val int
Left *TreeNode
Right *TreeNode
}
func sufficientSubset(root *TreeNode, limit int) *TreeNode {
var dfs func(node *TreeNod... |
class VotesController < <API key>
def create
Vote.create(user_id: session[:user_id], answer_id: params["answer_id"].to_i)
redirect_to "/users/#{session[:user_id]}"
end
end |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace EPAtoTV {
<summary>
Interaction logic for App.xaml
</summary>
public partial class App :Application {
}
} |
import 'bulma/css/bulma.css';
import 'highlight.js/styles/atom-one-dark.css';
import './index.css';
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import marked from 'marked';
import App from './App';
import store from './store';
marked.setOptions({
highlight: funct... |
import { MessageDispatcher, Envelope } from 'message-dispatcher';
import ActorRef from './ActorRef';
export default class ActorSystem {
constructor(dispatcher) {
this.actors = new Map();
this.dispatcher = dispatcher;
}
actorOf(ActorType, name = ActorType.name.toLowerCase()) {
if (this.actors.has(name)... |
require 'spec_helper'
# There's a slow test in here somewhere.
describe <API key> do
render_views
it_behaves_like "remote duplicate support" do
let(:resource) { FactoryGirl.create(:activity) }
end
let (:admin) { FactoryGirl.create(:admin) }
let (:author) { FactoryGirl.create(:author) }
let (:page) { Fac... |
package com.plugin.core;
import com.plugin.content.PluginDescriptor;
import android.content.Context;
import android.os.Build;
public class PluginCompat {
//private static final String MAIN_STYLE = "main_style_";
/**
*
* @param pluginContext
* @param resId ID
* @param clazz
*/
pub... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTeamsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('teams', function (Blueprint $table) {
$table->... |
#include "Person.h"
Person::Person()
{
m_name = "";
m_verified = false;
}
Person::~Person()
{
}
void Person::setFriend(const int& friendID) {
m_isFriendWith[friendID] = 1;
}
void Person::setPersonName(const QString& name) {
m_name = name;
}
void Person::setPersonalID(const int& idNumber) {
m_persona... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="da" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About DigitalDirham</source>
<translation>Om DigitalDirham</translation>
... |
#pragma once
#include <ostream> // for std::ostream
#include <type_traits> // for std::enable_if_t
#include <utility> // for std::forward, std::move
#include "fmt/format.h" // for fmt::formatter
template <typename F, std::enable_if_t<std::is_invocable<F&>::value, int> = 0>
auto eval(F&& i... |
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace TwoFactor.API.Areas.HelpPage.ModelDescriptions
{
public class <API key> : ModelDescription
{
public <API key>()
{
Values = new Collection<<API key>>();
}
public Collection<<API key>> Val... |
extern int foo(void);
int main() {
return foo();
} |
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.296.
#pragma warning disable 1591
namespace MS... |
#import "Classes/Classes.h" |
body {
padding: 10px 20px;
font-size: 11pt;
font-family: "Century Gothic", arial;
color: #777;
font-weight: 300;
}
a {
color: #39C;
font-weight: 400;
}
a:hover {
color: #FF9900;
}
a.sel {
color: #000;
text-decoration: none;
}
#github {
position: absolute;
right: 30px;
top: 7px;
}
@media only s... |
package main
import (
"fmt"
"net/http"
"os"
"github.com/paddycarey/gack"
)
// EchoHandler is the simplest possible implementation of the gack.Handler
// interface, it unconditionally echoes any commands a user types directly back
// at them.
type EchoHandler struct{}
// CanHandle in this case always ret... |
// Ecma International makes this code available under the terms and conditions set
var obj = {};
Object.defineProperty(obj, "foo", {
value: 1001,
writable: true,
enumerable: true,
configurable: true
});
Object.defineProperty(obj, "foo", {
enumerable: false,
configurable: true
});
verifyEqualTo(o... |
import Icon from '../components/Icon.vue'
Icon.register({"medkit":{"width":1792,"height":1792,"paths":[{"d":"M1280 <API key> 0-23 9t-9 23v224h-224q-14 0-23 9t-9 23v192q0 14 9 23t23 9h224v224q0 14 9 23t23 9h192q14 0 <API key> 0 23-9t9-23zM640 <API key> 384v1280h-32q-92 <API key> <API key> <API key> 28-68t68-28h576q40 0 ... |
package softuni;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.<API key>;
@<API key>
public class <API key> {
public static void main(String[] args) {
SpringApplication.run(<API key>.class, args);
}
} |
#
# ifndef <API key>
# define <API key>
# include <lslboost/preprocessor/repetition/repeat.hpp>
# endif |
module.exports = {
"extends": "google",
"rules": {
"max-len": ["error", {
"ignoreStrings": true
}],
"eol-last": ["off"],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": false,
"MethodDefinition": false,
... |
{% extends "base.html" %}
{% block content %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Random User Data</h3>
</div>
<div class="panel-body">
{% for user in user_data %}
<div class="well well-sm">
<img class = "user-phot... |
# drComRead.Documentation
Documentation and localization for drComRead and for http://drcomread.com/. |
require "rack/test"
require "minitest/autorun"
this_dir = File.join(File.dirname(__FILE__), "..")
$LOAD_PATH.unshift File.expand_path(this_dir)
require "rulers" |
/**
* @Scrollbar.js
* @author xunxuzhang
* @version
* Created: 15-07-15
*/
LBF.define('qidian.comp.Scrollbar', function (require, exports, module) {
var $ = require('lib.jQuery');
require('{theme}/comp/Scrollbar.css');
/**
* scroll
*
* UIiOS
* scrollscroll
* jQuerynew
* eg.
* $().scroll(... |
// 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:
// copies or substantial p... |
.clearfix {
*zoom: 1;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
line-height: 0;
}
.clearfix:after {
clear: both;
}
.hide-text {
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
}
.input-block-level {
display: block;
width: 100... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hi_IN" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BattleStake</source>
<translation type="unfinished"/>
</message>
<message>
<location... |
package fr.univ.nantes.roomanager.dao.typesalle
import fr.univ.nantes.roomanager.bean.TarifBean
/**
* @author Pierre Gaultier
* @author Alexis Giraudet
*/
class TypeSalle(val id: Int, typeSalle: TarifBean) extends TarifBean(typeSalle.getLibelle, typeSalle.getTarifBase, typeSalle.getTarifCoef) {
override def getId(... |
var glob = require('glob')
var fs = require('fs')
module.exports = function (content) {
return function (pages, done) {
glob(content, {}, function (err, files) {
if (err) {
done(err)
} else {
files = files.map(function (file) {
return new Promise(function (resolve, reject) {
... |
<div id="page-meta" class="t30">
<p>
<!-- Look the author details up from the site config. -->
{% assign author = site.data.authors[page.author] %}
<!-- Output author details if some exist. -->
{% if author %}
... |
<html xmlns="http:
<body>
<?php include $_SERVER['DOCUMENT_ROOT']."/Home/Design/Head.php"; ?>
<?php include $_SERVER['DOCUMENT_ROOT']."/Home/Klassen/AdminCheck.php" ?>
<div id="background">
<?php
$userObject = unserialize($_SESSION['object']);
$use... |
function update()
print("updated!")
end |
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
'/end','/callback'
]... |
var moment = require("moment")
var gaillard = [], hometeamsi = [], hometeamwa = [], musicfarm = [], musichall = [], pourhouse = [], royalamerican = []
, sparrow = [], theatre99 = [], tinroof = [], windjammer = [], tonight = [], thisWeek = []
module.exports = function(shows, done) {
sortShows(shows)
var tonightLis... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Musiccoin</source>
<translation>در مورد Musiccoin</translation>
... |
<!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... |
<?php
namespace Realtor\DictionaryBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Sensio\Bundle\<API key>\Configuration\Route;
use Sensio\Bundl... |
#include "lua_socket_mgr.h"
int create_socket_mgr(lua_State* L) {
int max_fd = (int)lua_tonumber(L, 1);
lua_socket_mgr* mgr = new lua_socket_mgr();
if (!mgr->setup(L, max_fd)) {
delete mgr;
lua_pushnil(L);
return 1;
}
lua_push_object(L, mgr);
return 1;
}
#ifdef _MSC_VER
#... |
#include <ngx_config.h>
#include <ngx_core.h>
#include <nginx.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <signal.h>
#include <string.h>
#include <errno.h>
#include "<API key>.h"
#include "Configuration.h"
#i... |
#pragma once
#ifndef __DISTPLOT_H__
#define __DISTPLOT_H__
#include "plot/abstractPlot.h"
class PVec;
class DistrPlot
: public AbstractPlot
{
public:
DistrPlot(const PVec &a);
virtual std::string ToString() override;
DistrPlot &SetBins(const PVec &bins);
DistrPlot &SetBins(size_t value);
DistrPl... |
# basesoftware
# Table of Contents
1. [Overview](#overview)
2. [Module Description - What the module does and why it is useful](#module-description)
3. [Setup - The basics of getting started with basesoftware](#setup)
* [What basesoftware affects](#<API key>)
* [Setup requirements](#setup-requirements)
* [B... |
#!/bin/bash
if [ -n "$PYPI_PORT" ]; then
PYPI_FLAGS="-i ${PYPI_PORT/tcp:/http:}/root/pypi/"
fi
if find /env -maxdepth 0 -empty | read v; then
virtualenv /env
fi
REQUIREMENTS_FILE=/code/${REQUIREMENTS_FILE:-requirements.txt}
if [ -f $REQUIREMENTS_FILE ]; then
/env/bin/pip install -r $REQUIREMENTS_FILE $PYPI_... |
<?php
namespace AppBundle\Form;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\<API key>;
use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormEvents;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Vich\UploaderBundle\For... |
import { ContextModule } from "@artsy/cohesion"
import { Box, BoxProps, ResponsiveBox, Image, Flex, Text } from "@artsy/palette"
import { capitalize, compact, uniq } from "lodash"
import React from "react"
import { <API key>, graphql } from "react-relay"
import { useSystemContext } from "v2/System"
import { RouterLink ... |
'use strict';
var React = require('react');
var Modal = require('react-modal');
var customStyles = {
content: {
top: '50%',
left: '50%',
right: 'auto',
bottom: 'auto',
marginRight: '-50%',
transform: 'translate(-50%, -50%)',
backgroundColor: '#272525',
color: '#fff'
}
};
var AddTabMo... |
import { createTranslator } from 'kolibri.utils.i18n';
import logger from 'kolibri.lib.logging';
import { OBJECTS, ADJECTIVES, VERBS } from './constants';
export const logging = logger.getLogger(__filename);
/*
Strings variations below are defined based on the following constructions:
Item status: N Object(s) is/are ... |
namespace <API key>.Services
{
public class ProductService : IProductService
{
}
public interface IProductService
{
}
} |
package com.azure.resourcemanager;
import com.azure.resourcemanager.compute.models.<API key>;
import com.azure.resourcemanager.compute.models.VirtualMachine;
import com.azure.resourcemanager.compute.models.<API key>;
import com.azure.resourcemanager.compute.models.VirtualMachines;
import com.azure.resourcemanager.netwo... |
<?php
use <API key> as Config;
/**
* Bonus snapshot for current state.
*
* User: Alex Gusev <alex@flancer64.com>
*
* @method int getCalcTypeTypeId()
* @method null setCalcTypeTypeId(int $val)
* @method int getCustomerId()
* @method null setCustomerId(int $val)
* @method string getPeriod()
* @method null setPe... |
#!/usr/bin/perl
# EECS678
# Adopted from CS 241 @ The University of Illinois |
describe('Forced March', function() {
integration(function() {
describe('when revealed', function() {
beforeEach(function() {
const deck = this.buildDeck('targaryen', [
'Forced March (R)', 'A Noble Cause',
'Hedge Knight', 'Hedge Knight', 'H... |
from . import graphics
from . import input
from . import util
from .controller import Controller |
<?php
namespace Orchestra\OrchestraBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class <API key> extends WebTestCase
{
} |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
from fnmatch import fnmatch
def <API key>(
string_to_parse,
pattern_strings,
<API key>="<",
<API key>=">",
):
if type(pattern_strings) is list:
for pattern_string in pattern_strings:
identifier_values = <API key>(
strin... |
require 'bundler/setup'
require 'minitest/autorun'
require '<API key>'
ActiveRecord::Base.<API key> :adapter => 'sqlite3', :database => 'test/test.sqlite3'
ActiveRecord::Migration.create_table :test_models do |t|
t.float :number
end rescue nil # poor's man schema
class TestModel < ::ActiveRecord::Base
<API key> :nu... |
package com.bullhornsdk.data.model.response.single;
import com.bullhornsdk.data.model.entity.core.paybill.surcharge.Surcharge;
public class SurchargeWrapper extends StandardWrapper<Surcharge> {
} |
process.env.NODE_ENV = 'test';
global.chai = require('chai');
global.expect = global.chai.expect; |
<div class="commune_descr limited">
<p>
Les Rivières-Henruel est
un village
situé dans le département de Marne en Champagne-Ardenne. Elle totalisait 147 habitants en 2008.</p>
<p>La commune offre quelques équipements, elle dispose, entre autres, de une base nautique.</p>
<p>Si vous envisagez de ve... |
\documentclass[utf8]{beamer}
%% === CJK ===
\usepackage{CJKutf8,CJKnumb} %
%% === AMS ===
\usepackage{amsmath,amsfonts,amssymb,amsthm} %
\usepackage{ulem}
%% === ===
%\usepackage[chapter]{algorithm} %
%\usepackage[noend]{algpseudocode} % pseudocode
\usepackage{listings} ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.