text stringlengths 3 1.05M |
|---|
namespace Google.Cloud.CloudBuild.V1.Snippets
{
// [START cloudbuild_v1_generated_CloudBuild_CreateBuild_async_flattened]
using Google.Cloud.CloudBuild.V1;
using Google.LongRunning;
using System.Threading.Tasks;
public sealed partial class GeneratedCloudBuildClientSnippets
{
/// <summar... |
Function New-PVSafeFileCategory {
<#
.SYNOPSIS
Adds File Categories at Safe level
.DESCRIPTION
Exposes the PACLI Function: "ADDSAFEFILECATEGORY"
.PARAMETER safe
The Safe where the File Category will be added.
.PARAMETER category
The name of the File Category.
.PARAMETER type
The type of File Category.
... |
local _M = require('apicast.policy').new('Maintenance mode', 'builtin')
local tonumber = tonumber
local new = _M.new
local default_status_code = 503
local default_message = "Service Unavailable - Maintenance"
local default_message_content_type = "text/plain; charset=utf-8"
local Condition = require('apicast.conditio... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_21) on Sat Apr 05 12:45:40 PDT 2014 -->
<title>Evaluation</title>
<meta name="date" content="2014-04-05">
<link rel="stylesheet" type="... |
=====
Usage
=====
To use surveymonkey in a project::
import surveymonkey
|
#include <linux/types.h> /* for __u32 etc */
typedef struct {
unsigned char info[128]; /* Informative text string */
unsigned char spare0[14];
struct sun_info {
unsigned char spare1;
unsigned char id;
unsigned char spare2;
unsigned char flags;
} infos[8];
unsigned char spare1[246]; /* Boot information... |
package org.apache.camel;
import java.net.URI;
/**
* Holds an {@link Endpoint} configuration as a pojo that can be manipulated and validated.
* Camel endpoint configuration is strongly related to URIs.
*/
public interface EndpointConfiguration {
String URI_SCHEME = "scheme";
String URI_SCHE... |
const cloneDeep = require("lodash.clonedeep");
const Utils = require("../utils");
module.exports = class {
onCreate() {
const state = {
active: false,
data: [],
root: null,
selected: null,
title: ""
};
this.state = state;
t... |
.leaflet-label {
/*background: rgb(235, 235, 235);
background: rgba(235, 235, 235, 0.81);*/
background-clip: padding-box;
border-color: #777;
border-color: rgba(0,0,0,0);
border-radius: 4px;
border-style: solid;
border-width: 4px;
color: #111;
display: block;
font: 10px/18px "Helvetica Neue", Arial, Helvetic... |
//
// This file has been generated automatically by MonoDevelop to store outlets and
// actions made in the Xcode designer. If it is removed, they will be lost.
// Manual changes to this file may not be handled correctly.
//
using Foundation;
using System.CodeDom.Compiler;
using UIKit;
namespace GitNotified.iOS
{
[R... |
package org.apache.spark.sql.catalyst
import org.apache.spark.sql.catalyst.analysis.{UnresolvedExtractValue, UnresolvedAttribute}
import org.apache.spark.sql.catalyst.util.DateTimeUtils
import org.apache.spark.sql.catalyst.expressions._
import org.apache.spark.sql.catalyst.plans.logical.LocalRelation
import org.apac... |
package org.springframework.ws.jaxws.server.endpoint.adapter.method;
import javax.jws.soap.SOAPBinding.Use;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLStreamConstants;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import javax.xml.stream.XMLStreamWriter;
impo... |
/**
* application entry point
* This the parent module: fella
* @author:felixgondwe
*/
(function(){
'use strict';
angular.module('fella',['ngRoute','ui.bootstrap']); // will use ui.bootstrap for now
})(); |
<?php
/* SensioDistributionBundle:Configurator:layout.html.twig */
class __TwigTemplate_d881176154630f0db320aa9a5b78beb94a31e09506b85b552c6792efc32f52f2 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
$... |
var sendMessage = require('../lib/sendMessage.js');
sendMessage('stop');
|
/******************************************************************************
*
* Module Name: exmutex - ASL Mutex Acquire/Release functions
*
*****************************************************************************/
/******************************************************************************
*
* 1. Co... |
module Zipkin
module AnnotationType
BOOL = 0
BYTES = 1
I16 = 2
I32 = 3
I64 = 4
DOUBLE = 5
STRING = 6
VALUE_MAP = {0 => "BOOL", 1 => "BYTES", 2 => "I16", 3 => "I32", 4 => "I64", 5 => "DOUBLE", 6 => "STRING"}
VALID_VALUES = Set.new([BOOL, BYTES, I16, I32, I64, DOU... |
package com.github.kimmokarlsson.somvis.som;
import java.awt.Point;
import java.util.ArrayList;
import java.util.List;
public class ClusterAnalyser
{
private final SomFileIO somio;
private Variable selectedVariable;
private Point sampleMemberPosition;
private int frequency;
private int minSearchVa... |
package org.jboss.marshalling.util;
import java.io.IOException;
import java.io.Serializable;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* An integer-keyed map, optimized for fast copying. Based on {@code FastCopyHashMap} by Jason T. Greene.
*
* @author Jason T. Greene
* @author Davi... |
module.exports = {
// your community or team name to display on join page.
community: process.env.COMMUNITY_NAME || 'nodeschool-haarlem',
// your slack team url (ex: socketio.slack.com)
slackUrl: process.env.SLACK_URL || 'nodeschool-haarlem.slack.com',
// access token of slack
// You can generate it in http... |
Follow Buttons for Wordpress
### Current supported buttons
- Facebook
- GitHub
- Google Plus
- Twiiter
- YouTube
### Install
Download [this zip file](https://github.com/sharegg/follow-buttons/archive/master.zip) and upload to Wordpress.
### Example
 { }
virtual void ... |
from __future__ import unicode_literals
import os
from collections import defaultdict
from itertools import chain
from operator import attrgetter
from flask import flash, request, session
from sqlalchemy.orm import selectinload
from werkzeug.exceptions import Forbidden
from werkzeug.utils import cached_property
from... |
package libble.classification
import libble.generalizedLinear.{L2Updater, LinearScope, LogisticLoss}
/**
* This class is the model of LogisticRegression with default regularization L2Reg.
*
* @param stepSize
* @param regParam
* @param factor
* @param iters
* @param partsNum
*/
class LogisticRegressio... |
/**
*/
package de.uni_hildesheim.sse.vil.expressions.expressionDsl;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Call</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>... |
namespace DotNetApis.Nuget
{
public sealed class NugetPackageDependency
{
public NugetPackageDependency(string packageId, NugetVersionRange versionRange)
{
PackageId = packageId;
VersionRange = versionRange;
}
public string PackageId { get; }
pub... |
/**
*
* (c) 2013-2017 Wishtack
*
* $Id: $
*/
import { ResourceDescription } from '../resource/resource-description';
import { Data } from '../client/data';
import { DataListContainer } from '../client/data-list-container';
import { Params } from '../client/params';
import { Query } from '../client/query';
export... |
package com.dianping.cat.component;
import com.dianping.cat.apiguardian.api.API;
@API(status = API.Status.INTERNAL, since = "3.1")
public interface ComponentLifecycle {
public void onStart(Object component);
public void onStop(Object component);
}
|
<!-- start custom head snippets -->
<!-- insert favicons. use http://realfavicongenerator.net/ -->
<link href="https://fonts.googleapis.com/css?family=Lustria" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Inconsolata"... |
package com.kendanware.onegui.core;
import java.util.UUID;
/**
* Root screen from
*
* @author Daniel Johansson, Kendanware
* @author Kenny Colliander Nordin, Kendanware
*
* @since 0.0.1
*/
public class Screen extends Container {
private final OneGui oneGui;
public Screen(final One... |
require 'devise/strategies/database_authenticatable'
module Devise
module Models
# Authenticable Module, responsible for encrypting password and validating
# authenticity of a user while signing in.
#
# Configuration:
#
# You can overwrite configuration values by setting in globally in Devise... |
package java.lang;
/**
* This exception can be thrown to indicate an attempt to access an
* index which is out of bounds on objects like String, Array, or Vector.
* Usually any negative integer less than or equal to -1 and positive
* integer greater than or equal to the size of the object is an index
* which w... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Microsoft Internet Explorer/5.2 (Windows 4.0; )</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://f... |
namespace base {
// base::RingBuffer uses a fixed-size array, unlike base::circular_deque and
// std::deque, and so, one can access only the last |kSize| elements. Also, you
// can add elements to the front and read/modify random elements, but cannot
// remove elements from the back. Therefore, it does not have a |Siz... |
package org.apereo.cas.services;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apereo.cas.authentication.principal.Principal;
import org.apereo.cas.authentication.principal.Service;
import org.apereo.cas.util.CollectionU... |
//
// WARickTextView.h
// Pods
//
// Created by Jackie CHEUNG on 14-6-2.
//
//
#import <UIKit/UIKit.h>
#import "JKRegularExpressionParser.h"
@class JKRichTextView;
/**
A Data Detecetion Handler is actually a module for JKRichTextView to handle certain regular expression.
Conforming this protocol and askin... |
====================
Oslo Context Library
====================
.. image:: https://img.shields.io/pypi/v/oslo.context.svg
:target: https://pypi.python.org/pypi/oslo.context/
:alt: Latest Version
.. image:: https://img.shields.io/pypi/dm/oslo.context.svg
:target: https://pypi.python.org/pypi/oslo.context/
... |
body=`echo $1 | cut -d'=' -f2`
echo Posting $body to http://localhost:9630/
echo curl -H 'content-type: application/json' -d @- -X POST http://localhost:9630/
echo $body | curl -H 'content-type: application/json' -d @- -X POST http://localhost:9630/
|
package com.github.jweixin.jwx.message.request.event;
/**
* 名称认证成功(即命名成功)事件
* @author Administrator
*
*/
public class InNamingVerifySuccessEvent extends InEvent {
/**
* 事件类型,naming_verify_success
*/
final private String event = "naming_verify_success";
/**
* 有效期 (整形),指的是时间戳,将于该时间戳认证过期
*/
... |
package com.fullstack.backend.persistence.domain.backend;
import com.fullstack.enums.PlansEnum;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
@Entity
public class Plan implements Serializable {
private static final long serialVersionUID = 1L;
@Id
private in... |
#pragma once
#include "Common\DeviceResources.h"
#include "Common\ShaderStructures.h"
#include "Common\StepTimer.h"
namespace RTHR
{
// This sample renderer instantiates a basic rendering pipeline.
class Sample3DSceneRenderer
{
public:
Sample3DSceneRenderer(const std::shared_ptr<DX::DeviceResources>& deviceRes... |
from unittest import TestCase
from robber.bad_expectation import BadExpectation
from robber import expect
from tests import must_fail
class TestAboveIntegrations(TestCase):
def test_above_success(self):
expect(2).to.be.above(1)
@must_fail
def test_above_failure(self):
expect(1).to.be.ab... |
using base::Time;
// Identifier for commands written to file.
static const SessionCommand::id_type kCommandSetTabWindow = 0;
// kCommandSetWindowBounds is no longer used (it's superseded by
// kCommandSetWindowBounds2). I leave it here to document what it was.
// static const SessionCommand::id_type kCommandSetWindowB... |
namespace net {
class CertVerifier;
class CookieStore;
class CTVerifier;
class FraudulentCertificateReporter;
class HostResolver;
class HttpAuthHandlerFactory;
class HttpTransactionFactory;
class HttpUserAgentSettings;
class NetworkDelegate;
class ServerBoundCertService;
class ProxyService;
class URLRequest;
class URLR... |
using EduCare.DesignPatterns.ChainOfResponsibility.Helper;
using EduCare.DesignPatterns.ChainOfResponsibility.Models;
using System.Linq;
using Windows.UI.Xaml.Controls;
namespace EduCare.DesignPatterns.ChainOfResponsibility.Views
{
public sealed partial class EmployeeRequests : Page
{
public Employee ... |
using System;
using System.Collections.Generic;
using System.Text;
namespace SoftJail.Data.Models.Enums
{
public enum Position
{
Overseer = 0,
Guard,
Watcher,
Labour
}
}
|
Reference repository for the blog post [located here](http://blog.rangle.io/react-and-redux-performance-with-reselect/).
### Getting Started
```
git clone https://github.com/neilff/react-redux-performance/
npm install
npm run dev
```
### Additional Resources
- https://github.com/reactjs/reselect
- http://redux.js.... |
require 'rails_helper'
describe Page do
it { should validate_presence_of(:key) }
it { should validate_presence_of(:title) }
it { should validate_presence_of(:content) }
end
|
import functools
import httplib as http
from furl import furl
from flask import request
from framework import status
from framework.auth import Auth
from framework.flask import redirect # VOL-aware redirect
from framework.exceptions import HTTPError
from framework.auth.decorators import collect_auth
from website.mo... |
using MySql.Data.MySqlClient;
using Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Server {
public class DbCharacter {
public Character Character;
public DbCharacter(Character character) {
Character... |
module.exports = {
context: __dirname,
entry: "./js/main.js",
output: {
path: "./js",
publicPath: "/js/",
filename: "bundle.js",
devtoolModuleFilenameTemplate: '[resourcePath]',
devtoolFallbackModuleFilenameTemplate: '[resourcePath]?[hash]'
},
devtool: 'source-maps'
};
|
using System;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.PythonTools.Parsing;
namespace Microsoft.PythonTools.Options {
[ComVisible(true)]
public class PythonDebuggingOptionsPage : PythonDialogPage {
private PythonDebuggingOptionsControl _window;
public PythonDebu... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
/*
* Copyright (c) 1990, 1993, 1994, 1995, 1996
* Keith Bostic. All rights reserved.
*/
/*
* Copyright (c) 1990, 1993, 1994, 1995
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... |
'use strict';
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var vscode_1 = require('vscode');
var abstractP... |
package terraform
import (
"fmt"
)
// EvalReadState is an EvalNode implementation that reads the
// primary InstanceState for a specific resource out of the state.
type EvalReadState struct {
Name string
Output **InstanceState
}
func (n *EvalReadState) Eval(ctx EvalContext) (interface{}, error) {
return readIn... |
description: "Learn how GitLab docs' global navigation works and how to add new items."
---
# Global navigation
> [Introduced](https://gitlab.com/gitlab-com/gitlab-docs/merge_requests/362)
in November 2018 for GitLab 11.6.
The global nav adds to the left sidebar the ability to
navigate and explore the contents of Gi... |
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE testmetrics SYSTEM "../testconfig.dtd">
<testmetrics>
<pagemetrics>
<scanfile>project.html</scanfile>
<metric>
<name>number of components</name>
<value>7</value>
</metric>
<metric>
<name>cumulative component dependency... |
.. Copyright (c) 2015 Pietro Albini <pietro@pietroalbini.io>
Released under the MIT license
.. _quickstart-chat-messages:
=====================
Parsing chat messages
=====================
Sometimes you need some pieces of information in a conversation, but you
forgot about that *really* useful command. In these c... |
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softw... |
package fake
import (
"context"
imageregistryv1 "github.com/openshift/api/imageregistry/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s... |
<!-- closeOnSelectedOptionClick property -->
(**Boolean**) **(Default: true)** *optional*
Whether clicking an already-selected option will cause the control to close
|
using System;
using System.Windows.Forms;
using CoBuilder.Service.Infrastructure.Config;
using CoBuilder.Service.Interfaces;
namespace CoBuilder.Service.GUI
{
public partial class DefinitionDialog : Form
{
private readonly IDefinition _definition;
public DefinitionDialog(IDefinition definitio... |
using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Salient.ReliableHttpClient.Serialization.Newtonsoft
{
/// <summary>
/// Useful when serializing/deserializing json for use with the Stack Overflow API, which produces and consumes Unix Timestamp dates
/// </summary>
//... |
#pragma once
#include "api_core.h" // MUST BE BEFORE QtWidgets.h or any other Qt header.
#include "attribute.h"
#include "igui.h"
#include <QtWidgets/QWidget>
#include <QtWidgets/QLineEdit>
namespace debugger {
class AsmControl : public QWidget {
Q_OBJECT
public:
explicit AsmControl(QWidget *parent);
... |
package fr.javatronic.blog.massive.annotation1.sub1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_2720 {
}
|
"""Unit tests for X.264 encoder module."""
import optimizer
import unittest
import test_tools
import x264
class TestX264(test_tools.FileUsingCodecTest):
def test_Init(self):
codec = x264.X264Codec()
self.assertEqual(codec.name, 'x264')
def test_OneBlackFrame(self):
codec = x264.X264Codec()
my_opt... |
package com.punpuf.uem_menudocandidato.ui;
import android.content.Intent;
import android.content.IntentSender;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.provider.CalendarContract;
import android.suppo... |
import React from 'react';
import {
PDFViewer
} from '../../components';
const ResumePDF = () => (
<PDFViewer
url="https://s3.amazonaws.com/accredible-profile-uploads/udacity/resumes/1469994565898"
/>
);
export default ResumePDF;
|
// This software along with its related components, documentation and files ("The Libraries")
// is © 1994-2007 The Code Project (1612916 Ontario Limited) and use of The Libraries is
// governed by a software license agreement ("Agreement"). Copies of the Agreement are
// available at The Code Project (www.codeproject... |
<?php
namespace luya\cms\admin\controllers;
class PageController extends \luya\admin\base\Controller
{
public function actionCreate()
{
return $this->renderPartial('create');
}
public function actionUpdate()
{
return $this->renderPartial('update');
}
public function a... |
provides :tomcat_service_upstart
provides :tomcat_service, platform_family: 'debian' do |_node|
Chef::Platform::ServiceHelpers.service_resource_providers.include?(:upstart) &&
!Chef::Platform::ServiceHelpers.service_resource_providers.include?(:systemd)
end
property :instance_name, String, name_property: true
p... |
<form role="search" method="get" class="search-form form-inline" action="<?= esc_url(home_url('/')); ?>">
<label class="sr-only"><?php _e('Search for:', 'sage'); ?></label>
<div class="input-group">
<input type="search" value="<?= get_search_query(); ?>" name="s" class="search-field form-control" placeholder="<?php... |
using System.Collections.Concurrent;
using Serilog.Core;
using Serilog.Events;
namespace Akka.Logger.Serilog.Tests
{
/// <inheritdoc />
/// <summary>
/// Basic concurrent sink implementation for testing the final output from Serilog
/// </summary>
public sealed class TestSink : ILogEventSink
{... |
layout: post
title: "Sitting outside on the patio w..."
---
Sitting outside on the patio with puppy and the wife. It's finally warm enough so I can enjoy it. |
package technology.tikal.customers.model.contact;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
*
* @author Nekorp
*
*/
@JsonTypeName("Associate")
public class AssociatePojo extends ContactPojo implements Associate {
private String role;
@Override
public String getR... |
package petablox.util.graph;
import java.util.HashSet;
import java.util.Set;
import petablox.util.IndexMap;
import java.util.Iterator;
/**
* Algorithm for computing the shortest path between a pair of nodes in a directed graph.
*
* @author Mayur Naik (mhn@cs.stanford.edu)
*/
public class ShortestPathBuilder<Nod... |
import Check from "../Core/Check.js";
import combine from "../Core/combine.js";
import defaultValue from "../Core/defaultValue.js";
import defined from "../Core/defined.js";
import destroyObject from "../Core/destroyObject.js";
import Event from "../Core/Event.js";
import getTimestamp from "../Core/getTimestamp.js";
im... |
package foo.bar;
public class Model extends Foo {
}
class Foo {
public String getFoo() {
return "Foo";
}
}
|
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
schema: default
title: City of Savannah
description: This organization is for all datasets whose source is the City of Savannah.
logo: 'https://upload.wikimedia.org/wikipedia/en/b/bc/Savannah_official_seal.png'
--- |
using GM.Application.AppCore.Entities.Govbodies;
using GM.Application.AppCore.Entities.GovLocations;
using System.Collections.Generic;
namespace GM.Application.DTOs.GovLocations
{
public class GovLocationDetails_Dto
{
public string Name { get; set; }
public GovlocTypes Type { get; set; }
... |
require "spec_helper"
module Builders
describe BatchBuilderBase do
include ActionDispatch::TestProcess
let(:batch_builder_klass) do
Class.new(Builders::BatchBuilderBase) do
def build_job_groups(batch)
[]
end
end
end
let(:batch_builder) { batch_builder_klass.ne... |
from .commands import Edit, Show, Search, Validate, List, Which, CommandError
from argparse import ArgumentParser
import os
import logging
import sys
FORMAT = 'kit: (%(levelname)s) %(message)s'
COMMANDS = [
Edit(),
List(),
Show(),
Search(),
Validate(),
Which(),
]
def main():
try:
... |
class CTStat_Dev :
public CTStatBase
{
public:
CTStat_Dev(void);
~CTStat_Dev(void);
virtual int ReadOneReg(int nRegAddr, OUT int& nVal);
virtual int ReadOneReg(int nRegAddr);
virtual int WriteOneReg(int nRegAddr, IN int& nVal);
virtual int ReadMultiReg(int nRegAddrStart, int nRegAddrEnd, OUT int* nVal);
virtu... |
package gnu.classpath.examples.swing;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.GridLayout;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
im... |
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/kfifo.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/platform_data/mailbox-omap.h... |
package net.idlesoft.android.apps.github.adapters;
import com.github.droidfu.adapters.ListAdapterWithProgress;
import net.idlesoft.android.apps.github.R;
import android.app.Activity;
import android.view.LayoutInflater;
import android.widget.AbsListView;
import java.util.ArrayList;
import java.util.LinkedList;
pu... |
package reka.module.setup;
import static java.util.stream.Collectors.toList;
import static reka.flow.builder.FlowSegments.createLabelSegment;
import static reka.flow.builder.FlowSegments.createMetaSegment;
import static reka.flow.builder.FlowSegments.createNamedInputSegment;
import static reka.flow.builder.OperationFl... |
package com.github.zhangkaitao.shiro.chapter6;
import com.github.zhangkaitao.shiro.chapter6.service.*;
import com.github.zhangkaitao.shiro.chapter6.entity.Permission;
import com.github.zhangkaitao.shiro.chapter6.entity.Role;
import com.github.zhangkaitao.shiro.chapter6.entity.User;
import org.apache.shiro.SecurityUtil... |
import sys
import os
sys.path.append(os.path.abspath('sphinxcontrib'))
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.... |
import React from 'react'
import FormDialog from '../../components/FormDialog'
import Button from '../../components/Button'
import Progress from '../../components/Progress'
import ErrorBoundary from '../../components/ErrorBoundary'
import { connect } from 'react-redux'
import graphql from '../../graphql/client'
import... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.core.config;
import com.yahoo.config.FileReference;
import com.yahoo.filedistribution.fileacquirer.FileAcquirer;
import com.yahoo.osgi.Osgi;
import org.osgi.framework.Bundle;
import jav... |
package com.ibm.bi.dml.conf;
import java.io.ByteArrayInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.StringWriter;
import java.util.HashMap;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigu... |
#include "LedDeviceLpd6803.h"
#include "LedDeviceLpd8806.h"
#include "LedDeviceP9813.h"
#include "LedDeviceWs2801.h"
#include "LedDeviceWs2812SPI.h"
#include "LedDeviceSk6812SPI.h"
#include "LedDeviceAPA102.h"
#endif
#ifdef ENABLE_TINKERFORGE
#include "LedDeviceTinkerforge.h"
#endif
#include "LedDeviceAdaligh... |
Read, manipulate and write spreadsheet data and styles to XLSX and JSON.
Reverse engineered from Excel spreadsheet files as a project.
# Installation
npm install exceljs
# New Features!
<ul>
<li>Bug Fixes
<ul>
<li>
<a href="https://github.com/guyonroche/exceljs/issues/18">Me... |
<?php
namespace Admin42\Link\Adapter;
class ExternalLink implements AdapterInterface
{
/**
* @param mixed $value
* @param array $options
* @return string
*/
public function assemble($value, $options = [])
{
return $this->getLinkData($value);
}
/**
* @param mixe... |
package volumefakes
import (
"sync"
"code.cloudfoundry.org/lager"
"github.com/concourse/baggageclaim/volume"
)
type FakeStrategy struct {
MaterializeStub func(lager.Logger, string, volume.Filesystem, volume.Streamer) (volume.FilesystemInitVolume, error)
materializeMutex sync.RWMutex
materializeArg... |
"""
The idea of MultilingualManager is taken from
django-linguo by Zach Mathew
https://github.com/zmathew/django-linguo
"""
from django.db import models
from django.db.models.fields.related import RelatedField, RelatedObject
from django.db.models.sql.where import Constraint
from django.utils.tree import Node
from mod... |
<?php
namespace InoOicClientTest\Oic\Token;
use InoOicClient\Oic\Token\ResponseHandler;
class ResponseHandlerTest extends \PHPUnit_Framework_TestCase
{
/**
* @var ResponseHandler
*/
protected $handler;
public function setUp()
{
$this->handler = new ResponseHandler();
}
... |