answer stringlengths 15 1.25M |
|---|
// GLFW - An OpenGL framework
// Platform: Any
// This software is provided 'as-is', without any express or implied
// arising from the use of this software.
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
// 1. The origin of this software m... |
module Main where
import Graphics.Gnuplot.Simple
-- import qualified Graphics.Gnuplot.Terminal.WXT as WXT
-- import qualified Graphics.Gnuplot.Terminal.PostScript as PS
ops :: [Attribute]
-- ops = [(Custom "term" ["postscript", "eps", "enhanced", "color", "solid"])
-- ,(Custom "output" ["temp.eps"])
-- ops = [(te... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.c
Label Definition File: <API key>.one_string.label.xml
Template File: sources-sink-66a.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: console Read input from the console
* GoodSource: Fixed string
* Sinks: popen
* BadSink : Execu... |
@keyframes linearKeyframes {
0% {
background-position: 0; }
100% {
background-position: -200%; } }
.created-details {
display: grid;
text-align: right;
margin-right: 1vh;
align-items: center; }
.created-details.loading {
height: 100%;
width: 100%;
box-shadow: none;
background: line... |
from sklearn2sql_heroku.tests.classification import generic as class_gen
class_gen.test_model("SGDClassifier" , "iris" , "oracle") |
<aside class="main-sidebar">
<section class="sidebar">
<?php $user = app('auth')->user(); ?>
@if (! is_null($user))
<div class="user-panel">
<div class="pull-left image">
<img src="{{ app('orchestra.avatar')->user($user) }}" class="img-circle" alt="User Image" />
... |
#include "config.h"
#include "modules/cachestorage/CacheStorage.h"
#include "bindings/core/v8/<API key>.h"
#include "bindings/core/v8/ScriptState.h"
#include "core/dom/DOMException.h"
#include "core/dom/ExceptionCode.h"
#include "modules/cachestorage/CacheStorageError.h"
#include "modules/fetch/Request.h"
#include "mod... |
GRNmap Testing Report
## Test Conditions
* Date: January 22, 2018
* Run time: Started at 4:54pm
* Test Performed by: @maggie-oneil
* Code Version: beta
* MATLAB Version: R2014b
* Computer on which the model was run: cerevisiae CPU5
## Purpose
## Results
* Input sheet: [[Media:]]
* Output sheet: [[Media:]]
* Output .mat... |
<?php
namespace frontend\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use common\models\SummaryOnSite;
/**
* SummaryOnSiteSearch represents the model behind the search form about `common\models\SummaryOnSite`.
*/
class SummaryOnSiteSearch extends SummaryOnSite
{
/**
* @inheritdoc
... |
@protocol <API key>
- (bycopy NSData *)SkimNotesAtPath:(in bycopy NSString *)aFile;
- (bycopy NSData *)RTFNotesAtPath:(in bycopy NSString *)aFile;
- (bycopy NSData *)textNotesAtPath:(in bycopy NSString *)aFile encoding:(NSStringEncoding)encoding;
@end |
module Spree
class Recurring < Spree::Base
class StripeRecurring < Spree::Recurring
module ApiHandler
extend ActiveSupport::Concern
included do
include BeforeEach
include PlanApiHandler
include <API key>
include <API key>
end
def error_... |
package net.fusemc.zbungeecontrol.rank;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class RankManager {
private static final Map<String, Rank> players = new ConcurrentHashMap<String, Rank>();
private RankListener listener;
public RankManager() {
listener = new RankLis... |
package org.<API key>.jgoodies.cascading;
import com.jgoodies.binding.PresentationModel;
import com.jgoodies.common.collect.ObservableList;
import com.jgoodies.binding.value.ValueModel;
import static org.<API key>.jgoodies.listadapter.ListAdapters.observe;
import org.<API key>.jgoodies.listadapter.<API key>;
import jav... |
import pandas as pd
import numpy as np
import pyaf.ForecastEngine as autof
import pyaf.Bench.TS_datasets as tsds
import logging
import logging.config
#logging.config.fileConfig('logging.conf')
logging.basicConfig(level=logging.INFO)
#get_ipython().magic('matplotlib inline')
b1 = tsds.load_ozone()
df = b1.mPastData
#df.... |
import sys
import random
from test_base import *
class TestBlockLD2(TestBase):
def generate(self):
self.clear_tag()
for n in range(50000):
tag = random.randint(0, 15)
index = random.randint(0,self.sets_p-1)
taddr = self.get_addr(tag,index)
op = random.randint(0,2)
if op == 0:
... |
package org.cagrid.trust.service.core;
import java.io.File;
import org.cagrid.trust.model.DateFilter;
import org.cagrid.trust.model.SyncReport;
public interface HistoryManager {
public File addReport(SyncReport report) throws Exception;
public SyncReport getReport(String fileName) throws Exception;
public S... |
{% extends "base.html" %}
{% set subtitle = post.title|striptags -%}
{% block content %}
<article class="post">
{% block post_title %}<h2>{{ post.title|striptags }}</h2>{% endblock %}
{% include 'includes/post_meta.html' %}
{{ post.content }}
</article>
{% block <API key> %}
... |
#! /usr/bin/env python3
assert __name__ == '__main__'
import json
import os
import pathlib
import re
import shutil
import subprocess
import sys
from typing import * # mypy annotations
REPO_DIR = pathlib.Path.cwd()
GN_ENV = dict(os.environ)
# We need to set <API key> to 0 for non-Googlers, but otherwise
# leave it unset... |
'use strict';
describe('Controller: TaxonEditorCtrl', function () {
// load the controller's module
beforeEach(module('BaubleApp'));
var TaxonEditorCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller) {
scope = {};
TaxonEditorCtrl = $controller('Taxon... |
package cromwell.backend.standard
import akka.actor.{Actor, ActorRef}
import cromwell.backend._
import cromwell.backend.io.{JobPaths, WorkflowPaths}
import cromwell.backend.standard.callcaching.<API key>
import cromwell.backend.validation.{<API key>, <API key>}
import cromwell.core.logging.JobLogging
import cromwell.co... |
package com.gooddata.connector;
import static com.gooddata.util.Validate.notEmpty;
import com.fasterxml.jackson.annotation.*;
import com.gooddata.util.<API key>;
import java.util.Objects;
/**
* Coupa connector instance.
*/
@JsonTypeName("coupaInstance")
@JsonTypeInfo(include = JsonTypeInfo.As.WRAPPER_OBJECT, use = Js... |
from django.contrib.gis.geos import Point
from data_collection.management.commands import <API key>
class Command(<API key>):
srid = 27700
council_id = 'W06000021'
districts_name = 'polling_district'
stations_name = 'polling_station.shp'
elections = [
'local.monmouthshire.2017-05-04',
... |
import { workerPool } from '../runtime/worker-pool.js';
const WORKER_PATH = `https://$worker/worker.js`;
export const pecIndustry = (loader) => {
// worker paths are relative to worker location, remap urls from there to here
const remap = expandUrls(loader.urlMap);
// get real path from meta path
const ... |
package skadistats.clarity.model.engine;
import skadistats.clarity.event.Insert;
import skadistats.clarity.model.EngineId;
import skadistats.clarity.model.EngineType;
import skadistats.clarity.processor.packet.PacketReader;
import skadistats.clarity.processor.packet.UsesPacketReader;
@UsesPacketReader
public abstract c... |
<!DOCTYPE html>
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>mne.viz.<API key> — MNE 0.13.1 documentation</title>
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" ... |
#ifndef <API key>
#include "<API key>.h"
#endif /* <API key> */
#ifndef _STDIO_HEADERS_H
#include "stdio_headers.h"
#endif /* _STDIO_HEADERS_H */
int
sscanf(const char *s,const char *format, ...)
{
int result = EOF;
va_list arg;
ENTER();
SHOWSTRING(s);
SHOWSTRING(format);
assert( s != NULL && fo... |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Monad.Trans (lift)
import qualified Data.Text as T
import Data.Either
import Reflex.Dom
import Frontend.Function
import Frontend.ImageWidget
import Frontend.WebcamWidget
main :: IO ()
main = mainWidget $ do
d <- lift askDocument
-- imageInputWidget... |
package com.jme3.input.util;
public interface IReadTimer {
long <API key>();
long getLastUpdateTime();
long getFrameDelta();
} |
<!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.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IOSS: src/Ioss_Quad8.... |
function toRoute(val)
{
var url = document.URL;
var path = url.split('index.php');
return path[0]+'index.php'+'/'+val;
}
function validePhone(phone)
{
if(/^(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/.test(phone) && phone.length==11){
return true;
}else{
$.toast('');
... |
// CEValueRange.cpp
// ChartEssentials
#include "CEValueRange.h"
#include <stdexcept>
void CEValueRange::addValue(CGFloat value)
{
if (!isnan(value))
{
if (isnan(_high))
{
_high = _low = value;
}
else
{
if (value < _low)
{
... |
<?php
/**
* @namespace
*/
namespace Zend\Tool\Framework\Client;
class Config
{
protected $_configFilepath = null;
/**
* @var Zend_Config
*/
protected $_config = null;
/**
* @param array $options
*/
public function __config($options = array())
{
if ($options) {
... |
<?php
/**
* @namespace
*/
namespace Zend\Db\Statement\Mysqli;
/**
* <API key>
*/
require_once 'Zend/Db/Statement/Exception.php';
class Exception extends \Zend\Db\Statement\Exception
{
} |
<?php
namespace Prooph\Common\Messaging;
/**
* Interface HasMessageName
*
* A message implementing this interface is aware of its name.
*
* @package Prooph\Common\Messaging
* @author Alexander Miertsch <contact@prooph.de>
*/
interface HasMessageName
{
/**
* @return string Name of the message
*/
... |
#ifndef BRW_SCREEN_H
#define BRW_SCREEN_H
#include "pipe/p_state.h"
#include "pipe/p_screen.h"
#include "brw_reg.h"
#include "brw_structs.h"
struct brw_winsys_screen;
/**
* Subclass of pipe_screen
*/
struct brw_screen
{
struct pipe_screen base;
int gen;
boolean <API key>;
boolean needs_ff_sync;
boolean... |
{% extends "base.html" %}
{% load jmbo_inclusion_tags downloads_tags %}
{% block content %}
<div class="content download-list">
<div class="foundry-container <API key>">
<div class="title">{{ title }}</div>
<div class="items">
{% for category_dict in c... |
package org.burroloco.donkey.log;
import au.net.netstorm.boost.bullet.incredibles.core.Weaken;
import au.net.netstorm.boost.bullet.log.Log;
import au.net.netstorm.boost.gunge.layer.Layer;
import au.net.netstorm.boost.gunge.layer.Method;
import org.burroloco.donkey.config.InputFileName;
public class FileReaderLogger imp... |
from piliko import *
print
print 'example 5'
v1,v2 = vector(3,0),vector(0,4)
print 'vectors v1, v2:', v1, v2
print ' v1 + v2, v1 - v2: ', v1 + v2, v1 - v2
print ' v1 * 5/4:', v1 * Fraction(5,4)
print ' v1 perpendicular v1? ', v1.perpendicular( v1 )
print ' v1 perpendicular v2? ', v1.perpendicular( v2 )
print ' v2 perpe... |
#include "components/autofill_assistant/browser/actions/navigate_action.h"
#include <memory>
#include <utility>
#include "base/callback.h"
#include "components/autofill_assistant/browser/actions/action_delegate.h"
#include "content/public/browser/web_contents.h"
#include "url/gurl.h"
namespace autofill_assistant {
Navi... |
// .NAME vtkParametricTorus - Generate a torus.
// .SECTION Description
// vtkParametricTorus generates a torus.
// For further information about this surface, please consult the
// in the "VTK Technical Documents" section in the VTk.org web pages.
// .SECTION Thanks
// Andrew Maclean andrew.amaclean@gmail.com for crea... |
#SOL = Sol.app/Contents/MacOS/sol
SOL = sol
CC = @gcc
ECHO = @echo
RM = @rm -f
LEX = @lex
YACC = @yacc -d
# profiling mode
#CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -g -pg
# debug mode
#CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -g
# release mode
CFLAGS = -Wal... |
// tests for POST /api/product
"use strict";
var fluid = require("infusion");
var namespace = "gpii.ul.product.post.tests";
var postTests = fluid.registerNamespace(namespace);
postTests.loader = require("../../../../../config/lib/config-loader");
postTests.config = postTests.loader.loadConfig(require("../../... |
/*
Drastic Dark
by Juan Maria Martinez Arce
juan[at]insignia4u.com
light grey: #cfcfcf
medium grey: #36393d
dark grey: #1a1a1a
interactive action yellow #ffff88
red #cc0000
light blue #E6EEF... |
from rtree import index
import numpy as np
#from shapely.prepared import prep
import shapely
def polygon2points(p):
"""
convert a polygon to a sequence of points for DS documents
:param p: shapely.geometry.Polygon
returns a string representing the set of points
"""
return ",".join(li... |
#include "shadow.h"
#include <execinfo.h>
#include <sys/types.h>
#include <unistd.h>
guint utility_ipPortHash(in_addr_t ip, in_port_t port) {
GString* buffer = g_string_new(NULL);
g_string_printf(buffer, "%u:%u", ip, port);
guint hash_value = g_str_hash(buffer->str);
g_string_free(buffer, TRUE);
ret... |
# -*- coding: utf-8 -*-
from django.shortcuts import render
from units.models import Unit
def startpage(request):
"""Start page.
Shows list of units available for statistics/filtering.
"""
units = Unit.objects.all()
# t = loader.get_template('startpage.html')
# c = RequestContext(request, {
... |
// modification, are permitted provided that the following conditions
// are met:
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the project nor the names of its contributors
// may be used to endorse or promote products derived from this software
// THIS SOFTWAR... |
package org.jcoderz.commons.taskdefs;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.DirectoryScanner;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;
import ... |
package i5.las2peer.services.<API key>.models.microservice;
import java.util.ArrayList;
import java.util.HashMap;
import i5.cae.simpleModel.<API key>;
import i5.cae.simpleModel.node.SimpleNode;
import i5.las2peer.services.<API key>.exception.ModelParseException;
import i5.las2peer.services.<API key>.models.microservice... |
// Package five00px provides ...
package five00px
import (
"fmt"
"net"
"net/http"
"net/url"
"strings"
"github.com/Sirupsen/logrus"
"github.com/mrjones/oauth"
"github.com/toqueteos/webbrowser"
)
// AccessToken is an alias for oauth.AccessToken structure
type AccessToken oauth.AccessToken
... |
<?php
require_once('./class/paypal.php'); //where necessary
require_once('./class/httprequest.php'); //where necessary
//Use this form for production server
//$r = new PayPal(true);
//Use this form for sandbox tests
$r = new PayPal();
$ret = ($r->doExpressCheckout(10, 'A perfect item!'));
//An error occured. The auxili... |
"""Showcases *Automatic Colour Conversion Graph* computations."""
import numpy as np
import colour
from colour.utilities import message_box
message_box("Automatic Colour Conversion Graph")
message_box(
'Converting a "ColorChecker" "dark skin" sample spectral distribution to '
'"Output-Referred" "sRGB" colourspa... |
// viztool - a tool for visualizing collections of java classes
package com.samskivert.viztool;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import com.samskivert.swing.*;
/**
* The top-level frame in which visualizations are displayed.
*/
public ... |
#ifndef <API key>
#define <API key>
#include "Cosa/Types.h"
#include "Cosa/Bits.h"
#include "Cosa/Watchdog.hh"
/**
* Serial programming using the SPI interface and RESET pin. Connect the
* device to the Arduino SPI pins; MOSI, MISO, SCK and SS/RESET. The member
* functions implement the serial programming instructio... |
## 1.1.3
* Update Flutter SDK constraint.
## 1.1.2
* Update lower bound of dart dependency to 2.1.0.
## 1.1.1
* Add attribute serverAuthCode.
## 1.1.0
* Add hasRequestedScope method to determine if an Oauth scope has been granted.
* Add requestScope Method to request new Oauth scopes be granted by the user.
## 1.0.4
* ... |
<!DOCTYPE html>
<html xmlns="http:
<head>
<meta charset="utf-8" />
<title>statsmodels.stats.moment_helpers.se_cov — statsmodels v0.10.1 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/cs... |
import random
import numpy as np
import copy
class Genotype():
def __init__(self, L, M, N):
self.genotype = np.random.randint(0, M, (L,N))
self.L = L
self.M = M
self.N = N
def apply_mutation(self, i, j):
gene = self.genotype[i][j] + random.randint(-2, 2)
if gene <... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_22) on Mon Apr 04 20:31:34 CEST 2016 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Class org.slf4j.impl.JDK14LoggerFactory (SLF4J 1.7.21 API)
</TITLE>
<META NAME="date" CONTENT="2016-04-04... |
id: <API key>
title: Set the Font Family of an Element
challengeType: 0
videoUrl: 'https://scrimba.com/c/c3bvpCg'
forumTopicId: 18278
localeTitle:
## Description
<section id='description'>
<code>font-family</code>
<code>h2</code><code>sans-serif</code> CSS
css
h2 {
font-family: sans-serif;
}
</section>
## Instruction... |
/*global YUI*/
YUI.add('loader-group1', function (Y, NAME) {
"use strict";
Y.applyConfig({
groups: {
group1: Y.merge((Y.config.groups && Y.config.groups.group1) || {}, {
modules: {
"foo": {
group: "group1",
r... |
from app import db, app
from hashlib import md5
import flask.ext.whooshalchemy as whooshalchemy
ROLE_USER = 0
ROLE_ADMIN = 1
followers = db.Table('followers',
db.Column('follower_id', db.Integer, db.ForeignKey('user.id')),
db.Column('followed_id', db.Integer, db.ForeignKey('user.id'))
)
class User(db.Model)... |
$(document).ready(function(){
var $container = $('#masonary-content');
$container.isotope({
filter: '*',
animationOptions: {
duration: 750,
easing: 'linear',
queue: false,
}
});
$("#masonay-nav > ul > li > a").click(function(){
if ($("#masona... |
<?php
namespace dektrium\user;
use yii\base\Component;
/**
* ModelManager is used in order to create models and find users.
*
* @method models\User createUser
* @method models\Profile createProfile
* @method models\Account createAccount
* @method models\ResendForm c... |
#include "third_party/blink/renderer/platform/graphics/paint/<API key>.h"
#include "third_party/blink/renderer/platform/geometry/float_rect.h"
#include "third_party/blink/renderer/platform/graphics/graphics_context.h"
#include "third_party/blink/renderer/platform/graphics/paint/paint_controller.h"
namespace blink {
Pai... |
from __future__ import absolute_import, unicode_literals
from django.contrib.auth.models import User
from django.db import models
from django.utils.translation import ugettext_lazy as _
class Profile(models.Model):
"""
Extension for the user class
"""
user = models.OneToOneField(User)
full_name = mo... |
#ifndef SETUP_TRANSFER_HPP
#define SETUP_TRANSFER_HPP
#include "libtorrent/session.hpp"
#include <boost/tuple/tuple.hpp>
#include "test.hpp"
namespace libtorrent
{
class alert;
struct add_torrent_params;
struct session_status;
}
int EXPORT print_failures();
unsigned char EXPORT random_byte();
int EXPORT loa... |
// This file was generated using Parlex's cpp_generator
#include "BINARY_LOGICAL_OP.hpp"
#include "plange_grammar.hpp"
#include "parlex/detail/document.hpp"
#include "AND.hpp"
#include "IFF.hpp"
#include "IMPLICATION.hpp"
#include "MAPS_TO.hpp"
#include "NAND.hpp"
#include "NOR.hpp"
#include "OR.hpp"
#include "XOR.hpp"... |
{% load leprikon_tags sekizai_tags staticfiles %}
<form action="{% url 'leprikon:school_year' %}" method="post" class="form-horizontal" id="id_school_year_form">
{% csrf_token %}
<input type="hidden" name="{% param_back %}" value="{% current_url %}"/>
{{ school_year_form.school_year }}
</form>
{% include 'l... |
<?php
namespace app\modules\admin\controllers;
use Yii;
use app\modules\admin\models\Gallery;
//use yii\base\ErrorException;
use yii\data\ActiveDataProvider;
use yii\web\Controller;
//use yii\web\HttpException;
use yii\web\<API key>;
use yii\filters\VerbFilter;
use yii\web\UploadedFile;
use app\modules\admin\models\Upl... |
#!/usr/bin/env perl
use Getopt::Long;
use Pod::Usage;
use FindBin;
use lib "$FindBin::Bin/../lib";
use Blast qw (parse_xml revcomp_hsp);
use Genbank qw (parse_genbank get_sequence);
use Subfunctions qw (parse_fasta reverse_complement split_seq find_sequences consensus_str);
use File::Temp qw (tempfile);
use Data::Dumpe... |
/* $NetBSD: bztzscvar.h,v 1.2 1997/10/04 04:01:22 mhitch Exp $ */
struct bztzsc_softc {
struct ncr53c9x_softc sc_ncr53c9x; /* glue to MI code */
struct isr sc_isr; /* Interrupt chain struct */
volatile u_char *sc_reg; /* the registers */
volatile u_char *sc_dmabase;
... |
{% extends "newman/change_list.html" %}
{% block <API key> %}
<a href="timeline/" class="js-hashadr icn btn timeline">{% trans "Timeline view" %}</a>
{{ block.super }}
{% endblock %} |
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-792
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.08.23 at 08:13:31 AM MESZ
package org.iso.mpeg.dash;
import java.math.BigInteger;
im... |
#include "chrome/renderer/safe_browsing/<API key>.h"
#include <algorithm>
#include <string>
#include <vector>
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/test/perftimer.h"
#include "chrome/renderer/safe_browsin... |
layout: organization
category: local
title: Animal Haven
impact_area: Environment
keywords:
- Animals
- Education
- Global Problems
location_services: Manhattan
location_offices: Manhattan
website: www.animalhavenshelter.org
description: |
How many of you have a cat or a dog at home? Dogs and cats are just like... |
<?php
/* @var $this PostenController */
/* @var $model Posten */
$this->breadcrumbs=array(
'Startup Spel Overzicht'=>array('/startup/startupOverview','event_id'=>$model->event_ID),
);
$this->menu=array(
array('label'=>'Post Toevoegen', 'url'=>array('/Posten/create', 'event_id'=>$model->event_ID)),
array... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.cpp
Label Definition File: <API key>.one_string.label.xml
Template File: sources-sink-84_bad.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: console Read input from the console
* GoodSource: Fixed string
* Sinks: system
* BadSink... |
<?php
namespace Respect\Data\Collections;
class Typed extends Collection
{
public static function __callStatic($name, $children)
{
$collection = new self();
$collection->extra('type', '');
return $collection->__call($name, $children);
}
public static function by($type)
{
... |
FROM php:7.4
RUN pecl install swoole > /dev/null && \
<API key> swoole
RUN <API key> pdo_mysql > /dev/null
ADD ./ /lumen
WORKDIR /lumen
COPY deploy/swoole/php.ini /usr/local/etc/php/
RUN mkdir -p /lumen/storage/framework/sessions
RUN mkdir -p /lumen/storage/framework/views
RUN mkdir -p /lumen/storage/framework/cach... |
#ifndef <API key>
#define <API key>
#include <vector>
#include "chrome/browser/ui/webui/options/options_ui.h"
#include "ui/gfx/display_observer.h"
namespace base {
class DictionaryValue;
class ListValue;
}
namespace chromeos {
namespace options {
// Display options overlay page UI handler.
class <API key> : public ::op... |
module Horbits.Body (bodyUiColor, getBody, fromBodyId, module X)
where
import Control.Lens hiding ((*~), _2, _3, _4)
import Horbits.Body.Atmosphere as X
import Horbits.Body.Body as X
import Horbits.Body.Color as X
import Horbits.Body.Data a... |
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Mvc;
using Microsoft.Framework.ConfigurationModel;
using SampleWeb.Models;
using WopiDiscovery.Enumerations;
using WopiHost.Contracts;
using WopiHost.Urls;
namespace SampleWeb.Controllers
{
public class HomeController : Controller
{
... |
#flux-examples
Example isomorphic [Flux][] applications using [Fluxible][],
[fluxible-router][], and [<API key>][].
The server-side rendered React components and store instances get dehydrated
and sent to the client using [express-state][]. The client.js (compiled by
[webpack][]) then bootstraps and rehydrates the disp... |
# modification, are permitted provided that the following conditions are met:
# documentation and/or other materials provided with the distribution.
# * Neither Geoscience Australia nor the names of its contributors may be
# used to endorse or promote products derived from this software
# ANY EXPRESS OR... |
{% load staticfiles %}
<div id='viewer' class="embed-responsive <API key> datapoint">
<iframe class="<API key>" src="{{ object.file.url }}"></iframe>
</div> |
package edu.northwestern.bioinformatics.studycalendar.web.schedule;
import edu.northwestern.bioinformatics.studycalendar.core.accesscontrol.<API key>;
import edu.northwestern.bioinformatics.studycalendar.dao.UserActionDao;
import edu.northwestern.bioinformatics.studycalendar.domain.*;
import edu.northwestern.bioinforma... |
package com.techempower;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.jooby.hikari.HikariModule;
import io.jooby.json.JacksonModule;
import io.jooby.rocker.RockerModule;
import javax.sql.DataSource;
import static io.jooby.ExecutionMode.EVENT_LOOP;
import static io.jooby.Jooby.runApp;
public class Jaxrs... |
*> \brief \b SLANSB
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http:
*
*> \htmlonly
*> Download SLANSB + dependencies
*> <a href="http:
*> [TGZ]</a>
*> <a href="http:
*> [ZIP]</a>
*> <a href="http:
*> [TXT]</a>
*> \endhtmlonly
*
* Definition:
* ===========
*
* ... |
SELECT D.duration ,
D.protocol_type ,
D.service ,
D.flag ,
D.src_bytes ,
D.dst_bytes ,
D.land ,
D.wrong_fragment ,
D.urgent ,
D.hot ,
D.num_failed_logins ,
D.logged_in ,
D.num_compromised ,
D.root_shell ,
D.su_attempted ,
D.num_root ,
D.num_file_creations ,
D.num_shells ,
D.num_acces... |
import logging
import os
import socket
import subprocess
import sys
import tempfile
import time
from django.core.management.base import BaseCommand
import redisutils
import redis as redislib
log = logging.getLogger('z.redis')
# We process the keys in chunks of size CHUNK.
CHUNK = 3000
# Remove any sets with less than M... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ko_KR">
<context>
<name>Backend</name>
<message>
<location filename="../TarBackend.cpp" line="249"/>
<source>Could not read archive</source>
<translation type="unfinished"></translation>
</message>
<... |
package org.geneontology.minerva.json;
public class JsonOwlFact extends JsonAnnotatedObject {
public String subject;
public String property;
public String object;
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ... |
#include "ace/Service_Config.h"
#include "ace/Logging_Strategy.h"
#include "ace/Sig_Adapter.h"
#include "TS_Clerk_Handler.h"
#include "TS_Server_Handler.h"
#include "<API key>.h"
#include "Name_Handler.h"
#include "Token_Handler.h"
#include "<API key>.h"
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
// Try to link in... |
<a name="listDocuments"></a>The **listDocuments** operation returns a JSON object containing a list of all the <a href="#documents">**Documents**</a> to which the authenticated user has access. |
import { connect } from 'react-redux';
import { I18nProvider } from '@lingui/react';
import { Store } from '../../stores';
import { selectLocale } from '../../selectors/locale/select_locale';
import { CatalogsMap, Locales } from '../../application/locales';
interface Props {
readonly catalogs: CatalogsMap;
read... |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE <API key> #-}
-- | All types.
module HIndent.Types
(Printer(..)
,PrintState(..)
,Extender(..)
,Style(..)
,Config(..)
,defaultConfig
,NodeInfo(..)
,ComInfo(..)
,ComInfoLoc... |
#include <sys/types.h>
#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
#include <limits.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
static int conv_escape_str(char *);
static char *conv_escape(char *, int *);
static int getchr(void);
static double getdou... |
#include "content/browser/service_worker/<API key>.h"
#include <algorithm>
#include <memory>
#include <tuple>
#include <utility>
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/location.h"
#include "base/macros.h"
#include "base/optional.h"
#include "base/<API key>.h"
#include "base/task/post_t... |
<?php
use yii\helpers\Html;
use yii\helpers\ArrayHelper;
use yii\widgets\DetailView;
use util\Util;
use app\models\Estado;
use app\models\Fuente;
use app\models\Usuario;
use app\models\Ruta;
use app\models\Solicitud;
use yii\helpers\Url;
use yii\bootstrap\Modal;
/* @var $this yii\web\View */
/* @var $model app\models\S... |
#include "stdafx.h"
#include "Player.h"
#include "Socket.h"
#include "<API key>.h"
#include "TimeManager.h"
#include "Log.h"
using namespace Packets ;
Player::Player( BOOL bIsServer )
{
__ENTER_FUNCTION
m_PID = INVALID_ID ;
m_UID = INVALID_ID ;
m_PlayerManagerID = INVALID_ID ;
m_pSoc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.