text stringlengths 3 1.05M |
|---|
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Recommendations.Statements
Public Class ExitKeywordR... |
The MIT License (MIT)
Copyright (c) 2016 Anuj Agrawal
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... |
package org.wso2.carbon.webapp.authenticator.framework.Utils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.context.PrivilegedCarbonContext;
import org.wso2.carbon.user.api.TenantManager;
import org.wso2.carbon.user.api.UserStoreException;
import org.wso2... |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.squareup</gr... |
module.exports = [
require('./bellNumbers'),
require('./composition'),
require('./stirlingS2')
];
|
/* eslint-disable no-labels */
const Point = require('./point')
const HARD_TAB = 1 << 0
const LEADING_WHITESPACE = 1 << 2
const TRAILING_WHITESPACE = 1 << 3
const INVISIBLE_CHARACTER = 1 << 4
const INDENT_GUIDE = 1 << 5
const LINE_ENDING = 1 << 6
const FOLD = 1 << 7
let nextScreenLineId = 1
module.exports =
class S... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
#include "tensorflow/tools/tfprof/internal/tfprof_stats.h"
#include <utility>
#include "tensorflow/c/checkpoint_reader.h"
#include "tensorflow/core/framework/graph.pb.h"
#include "tensorflow/core/lib/io/path.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/protobuf.h"
#include "tensor... |
namespace tool {
std::string quote(const std::string& s, char q='"');
std::string type_name(const std::type_info& self);
template<class Func, class ... Args, std::size_t ... I>
static auto apply(const Func& func, const std::tuple<Args...>& args,
std::index_sequence<I...>) {
return func... |
class AgentJobRunHistoryAPIModel
attr_reader :pagination, :jobs
def initialize(pagination, job_instances)
@pagination = PaginationAPIModel.new(pagination)
@jobs = job_instances.getJobInstances().collect do |job_instance|
JobInstanceAPIModel.new(job_instance)
end
end
end |
package org.robolectric.shadows;
import android.os.StrictMode;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
@Implements(StrictMode.class)
public class ShadowStrictMode {
@Implementation
public static void setVmPolicy(StrictMode.VmPolicy p) {
// Just ignore VM... |
package de.taimos.gpsd4java.types;
/**
* This message is emitted each time the daemon sees a valid PPS (Pulse Per Second) strobe from a device.
* This message exactly mirrors the TOFF message except for two details.
* PPS emits the NTP precision. See the NTP documentation for their definition of precision.
* The T... |
package com.thinkaurelius.titan.diskstorage;
import com.thinkaurelius.titan.diskstorage.keycolumnvalue.KeyRange;
import com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration;
import com.thinkaurelius.titan.graphdb.database.idassigner.IDBlockSizer;
import java.time.Duration;
import java.util.List;
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>tactician-stdlib: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstra... |
package com.evolveum.midpoint.web.component.wizard.resource.component;
import com.evolveum.midpoint.web.component.util.SimplePanel;
import com.evolveum.midpoint.web.component.AceEditor;
import org.apache.wicket.model.IModel;
/**
* @author lazyman
*/
public class XmlEditorPanel extends SimplePanel {
private s... |
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you 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 co... |
package colossus
package core
import testkit._
import org.scalatest.mock.MockitoSugar
import akka.testkit.TestProbe
import akka.util.ByteString
import WriteStatus._
class WriteBufferSpec extends ColossusSpec {
class FakeWriteBuffer(val internalBufferSize: Int, channelBufferSize: Int = Int.MaxValue) extends Write... |
<?php
namespace ZendTest\Json\Server\Smd;
use Zend\Json\Server\Smd\Service;
use Zend\Json\Server;
/**
* Test class for Zend_JSON_Server_Smd_Service
*
* @category Zend
* @package Zend_JSON_Server
* @subpackage UnitTests
* @group Zend_JSON
* @group Zend_JSON_Server
*/
class Ser... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_RPCSERVER_H
#define BITCOIN_RPCSERVER_H
#include "amount.h"
#include ... |
.class public interface abstract Landroid/provider/ContactsContract$FullNameStyle;
.super Ljava/lang/Object;
.source "ContactsContract.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/provider/ContactsContract;
.end annotation
.annotation system Ldalvik/annotation/InnerC... |
package network
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// 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
//
// Unl... |
; (function () {
/*jshint eqeqeq:false curly:false latedef:false */
"use strict";
function setup($) {
$.fn._fadeIn = $.fn.fadeIn;
var noOp = $.noop || function () { };
// this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle
// confusing u... |
import {
noop,
resolve as _resolve
} from '../-internal';
/**
`Promise.resolve` returns a promise that will become resolved with the
passed `value`. It is shorthand for the following:
```javascript
var promise = new Promise(function(resolve, reject){
resolve(1);
});
promise.then(function(value){
... |
#include "config.h"
#if ENABLE(THREADED_HTML_PARSER)
#include "CompactHTMLToken.h"
#include "HTMLParserIdioms.h"
#include "HTMLToken.h"
#include "QualifiedName.h"
#include "XSSAuditorDelegate.h"
namespace WebCore {
struct SameSizeAsCompactHTMLToken {
unsigned bitfields;
HTMLIdentifier data;
Vector<A... |
using System;
using System.Collections;
using System.Collections.Generic;
using wojilu.Web.Mvc;
using wojilu.Members.Users.Domain;
using wojilu.Members.Sites.Domain;
using wojilu.Members.Sites.Service;
using wojilu.Common.AppInstall;
using wojilu.Common.Menus;
using wojilu.Common.Onlines;
using wo... |
chary
=====
Planning and best effort coordination for distributed systems
|
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :name
t.string :password_digest
t.boolean :net_allowed
t.timestamps null: false
end
end
end
|
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model frontend\models\EquipmentSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="equipment-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'ge... |
NURSAWL3 ;HIRMFO/MD,FT-WORK LOAD STATISTICS CONT OF NURSAWL0 ;2/27/98 14:26
;;4.0;NURSING SERVICE;**9**;Apr 25, 1997
EN1 ; Logic referring to file 213.1 has been deleted.
; This routine is being retained since it is the
; Entry Point of the QUIC System.
Q
|
namespace extensions {
namespace errors = manifest_errors;
namespace keys = manifest_keys;
// Not named "ManifestTest" because a test utility class has that name.
class ManifestUnitTest : public testing::Test {
public:
ManifestUnitTest() : default_value_("test") {}
protected:
void AssertType(Manifest* manifest... |
import argparse
import os
import sys
import httplib2
from oslo_serialization import jsonutils as json
from six import moves
from six.moves.urllib import parse as urlparse
from tempest import clients
from tempest.common import credentials
from tempest import config
CONF = config.CONF
CONF_PARSER = None
def _get_co... |
/*
* variable.h - handle jam multi-element variables
*/
#ifndef VARIABLE_SW20111119_H
#define VARIABLE_SW20111119_H
#include "lists.h"
#include "object.h"
struct module_t;
void var_defines( struct module_t *, char * const * e, int preprocess );
LIST * var_get( struct module_t *, OBJECT * symbol );
void var... |
namespace CoreFtp
{
using System.Security.Authentication;
using System.Security.Cryptography.X509Certificates;
using Enum;
using Infrastructure;
public class FtpClientConfiguration
{
public int TimeoutSeconds { get; set; } = 120;
public int? DisconnectTimeoutMilliseconds { get;... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
<?php
/**
* @see Zend_Service_Exception
*/
require_once 'Zend/Service/Exception.php';
/**
* @category Zend
* @package Zend_Service
* @subpackage Twitter
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New B... |
<?php
if (!class_exists('Google_Client')) {
require_once dirname(__FILE__) . '/../autoload.php';
}
/**
* Class to handle batched requests to the Google API service.
*/
class Google_Http_Batch
{
/** @var string Multipart Boundary. */
private $boundary;
/** @var array service requests to be executed. */
p... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Internal.Cryptography;
using DATA_BLOB = Interop.Crypt32.DATA_BLOB;
using CryptProtectDataFlags = Interop.Crypt32.CryptProtectDataFlags;
namespace System.Security.Cryptography
{
public static partial class ProtectedData
{
... |
/*jslint nomen: true, unparam: true, regexp: true */
/*global define, window */
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// Register as an anonymous AMD module:
define([
'jquery',
'./jquery.fileupload-process'
], fac... |
/**
* \addtogroup apps
* @{
*/
/**
* \defgroup httpd Web server
* @{
* The uIP web server is a very simplistic implementation of an HTTP
* server. It can serve web pages and files from a read-only ROM
* filesystem, and provides a very small scripting language.
*/
/**
* \file
* Web ... |
<header>Czas przeterminowania dla oczekiwania na odpowiedź na kończącą "."</header>
<center><tt>smtp_data_done_timeout</tt></center>
<hr>
Ten parametr określa czas przeterminowania w sekundach na wysłanie
przez klienta SMTP "." SMTP oraz na otrzymanie odpowiedzi serwera.
<p>
Jeśli przed tym ... |
/**
* Fixed error: "console" is undefined in IE<10 if dev tools are not open
*/
(function(a){a.console||(a.console=function(){for(var a="assert clear count debug dir dirxml error exception group groupCollapsed groupEnd info log markTimeline profile profileEnd table time timeEnd timeStamp trace warn".split(" "),d=f... |
"""Helper functions for working with templates"""
import os
import re
import string
def render_templatefile(path, **kwargs):
with open(path, 'rb') as file:
raw = file.read()
content = string.Template(raw).substitute(**kwargs)
with open(path.rstrip('.tmpl'), 'wb') as file:
file.write(cont... |
package org.springframework.boot.actuate.cache;
import java.lang.management.ManagementFactory;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import javax.management.AttributeNotFoundException;
import javax.management.InstanceNotFoundException;
import javax.management.MBeanException;
import ja... |
package acl
import (
"errors"
"net/http"
)
var fallbackError = errors.New("not allowed: fallback policy")
// FallbackPolicy is the policy that's used if the
// requested policy cannot be found. It rejects all
// access.
type FallbackPolicy struct{}
// CheckAccessActor disallows all actor access.
func (fp Fallback... |
<?xml version="1.0" encoding="UTF-8"?>
<recipeml version="0.5">
<recipe>
<head>
<title>Baquette Bread</title>
<categories>
<cat>Breads</cat>
<cat>Hand made</cat></categories>
<yield>1</yield></head>
<ingredients>
<ing>
<amt>
<qty>2</qty>
... |
using System.Collections.Generic;
using System.Linq;
using Autofac;
using NUnit.Framework;
using Orchard.Events;
using System;
using Orchard.Exceptions;
namespace Orchard.Tests.Events {
[TestFixture]
public class EventTests {
private IContainer _container;
private IEventBus _eventB... |
#include <linux/context_tracking.h>
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/ptrace.h>
#include <linux/ratelimit.h>
#include <linux/mman.h>
#include <linux/mm.h>
... |
package org.apache.hadoop.fs.http.client;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.CommonConfigurationKeysPublic;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.test.TestHdfsHelper;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
@RunWith(value = ... |
package net.jpountz.lz4;
/**
* @deprecated Use {@link LZ4SafeDecompressor} instead.
*/
@Deprecated
public interface LZ4UnknownSizeDecompressor {
int decompress(byte[] src, int srcOff, int srcLen, byte[] dest, int destOff, int maxDestLen);
int decompress(byte[] src, int srcOff, int srcLen, byte[] dest, int de... |
<?php
class NHP_Options_post_type_select extends NHP_Options{
/**
* Field Constructor.
*
* Required - must call the parent constructor, then assign field and value to vars, and obviously call the render field function
*
* @since NHP_Options 1.0.1
*/
function __construct($field = array(), $value ='', $pa... |
import {isPresent, CONST, CONST_EXPR, Type} from 'angular2/src/core/facade/lang';
import {InjectableMetadata} from 'angular2/src/core/di/metadata';
import {ChangeDetectionStrategy} from 'angular2/src/core/change_detection';
/**
* Directives allow you to attach behavior to elements in the DOM.
*
* {@link DirectiveMe... |
package org.apache.hadoop.mapred.lib;
import java.io.IOException;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.BinaryComparable;
import org.apache.hadoop.io.NullWritable;
imp... |
cask :v1 => 'paragon-extfs' do
version :latest
sha256 :no_check
url 'http://dl.paragon-software.com/demo/extmac_trial_u.dmg'
name 'Paragon ExtFS'
homepage 'https://www.paragon-software.com/home/extfs-mac/'
license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated... |
<?php
namespace CL\Slack\Model;
/**
* @author Cas Leentfaar <info@casleentfaar.com>
*
* @link Official documentation at https://api.slack.com/docs/formatting
*/
class Message extends SimpleMessage
{
/**
* @var Channel|null
*/
private $channel;
/**
* @var string|null
*/
priva... |
import os
import os.path
import argparse
import logging
import subprocess
from gii.core import Project, app
cli = argparse.ArgumentParser(
prog = 'gii sh',
description = 'run shell script from env/shell path'
)
def main( argv ):
try:
proj = app.openProject()
except Exception,ex:
print ex
return -1
projPa... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports'], factory);
} else if (typeof exports !== "undefined") {
factory(exports);
} else {
var mod = {
exports: {}
};
factory(mod.exports);
global.angularFou... |
package clearsign // import "golang.org/x/crypto/openpgp/clearsign"
import (
"bufio"
"bytes"
"crypto"
"hash"
"io"
"net/textproto"
"strconv"
"golang.org/x/crypto/openpgp/armor"
"golang.org/x/crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/packet"
)
// A Block represents a clearsigned message. A signatur... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... |
"""
process_file(filename)
takes templated file .xxx.src and produces .xxx file where .xxx
is .pyf .f90 or .f using the following template rules:
'<..>' denotes a template.
All function and subroutine blocks in a source file with names that
contain '<..>' will be replicated according to the rules in '<..>... |
package pw.mario.journal.service.article;
import java.util.List;
import pw.mario.common.exception.PerformActionException;
import pw.mario.common.util.file.FileHandler;
import pw.mario.journal.model.article.Article;
import pw.mario.journal.model.common.Department;
import pw.mario.journal.model.common.Tag;
imp... |
from openstack_dashboard.test.integration_tests import helpers
from openstack_dashboard.test.integration_tests.regions import messages
class TestUser(helpers.AdminTestCase):
USER_NAME = helpers.gen_random_resource_name("user")
def test_create_delete_user(self):
users_page = self.home_pg.go_to_identi... |
<?php
require_once(dirname(__FILE__).'/AuthManagerTestBase.php');
class CPhpAuthManagerTest extends AuthManagerTestBase
{
public function setUp()
{
$authFile=Yii::app()->getRuntimePath().'/CPhpAuthManagerTest_auth.php';
@unlink($authFile);
$this->auth=new CPhpAuthManager;
$this->auth->authFile=$authFile;
... |
<?php
namespace Guzzle\Inflection;
/**
* Decorator used to add pre-computed inflection mappings to an inflector
*/
class PreComputedInflector implements InflectorInterface
{
/** @var array Array of pre-computed inflections */
protected $mapping = array(
'snake' => array(),
'camel' => array()... |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include <string>
#include <utility>
#include "base/values.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "comp... |
(async function(testRunner) {
let {page, session, dp} = await testRunner.startWithFrameControl(
'Tests renderer: in cross origin object.');
let RendererTestHelper =
await testRunner.loadScript('../helpers/renderer-test-helper.js');
let {httpInterceptor, frameNavigationHelper, virtualTimeController} =... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Diagn. pl. orient. ser. 1, 11:64. 1849
#### Original name
null
### Remarks
null |
<?php
/**
* Interface for classes which must verify a given expectation.
*
* @since Interface available since Release 1.0.0
*/
interface PHPUnit_Framework_MockObject_Verifiable
{
/**
* Verifies that the current expectation is valid. If everything is OK the
* code should just return, if not it must t... |
package org.terasology.logic.ai;
import org.terasology.engine.Time;
import org.terasology.entitySystem.entity.EntityManager;
import org.terasology.entitySystem.entity.EntityRef;
import org.terasology.entitySystem.event.ReceiveEvent;
import org.terasology.entitySystem.systems.BaseComponentSystem;
import org.terasology... |
BOOL ConfigureBoard(HANDLE boardHandle);
BOOL AcquireData(HANDLE boardHandle);
//----------------------------------------------------------------------------
//
// Function : main
//
// Description : Program entry point
//
//----------------------------------------------------------------------------
int main(in... |
/*
Generic Canvas Overlay for leaflet,
Stanislav Sumbera, April , 2014
- added userDrawFunc that is called when Canvas need to be redrawn
- added few useful params fro userDrawFunc callback
- fixed resize map bug
inspired & portions taken from : https://github.com/Leaflet/Leaflet.heat
*/
L.CanvasOve... |
module Arspy
module Delegators
module ArrayExtensions
def self.included(base)
base.define_chained_method(:method_missing, :arspy) do |symbol, *args|
result = Arspy::Operators.interpret(self, symbol, *args)
result = method_missing_without_arspy(symbol, *args) unless result
... |
class PagePart < ActiveRecord::Base
belongs_to :page
validates_presence_of :title
alias_attribute :content, :body
def to_param
"page_part_#{self.title.downcase.gsub(/\W/, '_')}"
end
before_save :normalise_text_fields
protected
def normalise_text_fields
unless self.body.blank? or self.body =~ ... |
package org.apache.spark.rdd
import java.io.{ObjectInputStream, ObjectOutputStream, IOException}
import com.esotericsoftware.kryo.KryoException
import scala.collection.mutable.{ArrayBuffer, HashMap}
import scala.collection.JavaConverters._
import scala.reflect.ClassTag
import org.apache.spark._
import org.apache.... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
var isObject = require('./isObject');
/** `Object#toString` result references. */
var regexpTag = '[object RegExp]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)... |
import operator
import six
from nova.openstack.common import jsonutils
from nova.scheduler import filters
class JsonFilter(filters.BaseHostFilter):
"""Host Filter to allow simple JSON-based grammar for
selecting hosts.
"""
def _op_compare(self, args, op):
"""Returns True if the specified ope... |
/**
File Name: 11.9.2.js
ECMA Section: 11.9.2 The equals operator ( == )
Description:
The production EqualityExpression:
EqualityExpression == RelationalExpression is evaluated as follows:
1. Evaluate EqualityExpression.
2. Call GetValue(Result(1)).
3. Evaluate Rela... |
package com.amazonaws.services.elasticmapreduce.model.transform;
import java.util.Map;
import java.util.Map.Entry;
import com.amazonaws.services.elasticmapreduce.model.*;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
import com.amazonaws.transform.*;
import com.fasterxml.jackson.core.JsonToken;
imp... |
from __future__ import unicode_literals
from pysolrtornado import SolrCoreAdmin, json
try:
import unittest2 as unittest
except ImportError:
import unittest
class SolrCoreAdminTestCase(unittest.TestCase):
def setUp(self):
super(SolrCoreAdminTestCase, self).setUp()
self.solr_admin = SolrCo... |
module Middleman
module CoreExtensions
module Routing
# Takes a block which allows many pages to have the same layout
#
# with_layout :admin do
# page "/admin/"
# page "/admin/login.html"
# end
#
# @param [String, Symbol] layout_name
# @return [voi... |
/**
* routes/home.js
* The home page, just renders the jade tamplate
* https://github.com/pello-io/simple-express-mongoose
* Pello Altadill - http://pello.info
*/
var isloggedin = require('../middleware/isloggedin');
module.exports = function (app) {
/* app.get('/auth', function(req, res) {
return res.r... |
AliAnalysisTask* AddTaskQAHighPtDeDx(Bool_t AnalysisMC = kFALSE,
Int_t typerun =1, // 0 for pp and 1 for Pb-Pb or pPb
TString type ="ESD",
UInt_t kTriggerInt = AliVEvent::kINT7, //for pPb kINT7, for pp or PbPb kMB
... |
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.editor.actions;
import com.intellij.application.options.CodeStyle;
import com.intellij.openapi.editor.*;
import com.intellij.opena... |
require 'frameit/frame_downloader'
require 'frameit/device_types'
require 'frameit/runner'
require 'frameit/screenshot'
require 'frameit/config_parser'
require 'frameit/offsets'
require 'frameit/editor'
require 'frameit/template_finder'
require 'frameit/strings_parser'
require 'frameit/mac_editor'
require 'frameit/depe... |
// Karma configuration
// Generated on Wed Oct 23 2013 22:13:42 GMT+0100 (GMT Daylight Time)
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
preprocessors: {
'../**/*.htm': ['ng-html2js']
},
ngHtml2JsPreprocess... |
#ifdef WIN32
#include <winsock2.h>
#include <windows.h>
#endif
#include <sys/types.h>
#ifndef WIN32
#include <sys/socket.h>
#include <netinet/in.h>
# ifdef _XOPEN_SOURCE_EXTENDED
# include <arpa/inet.h>
# endif
#include <unistd.h>
#endif
#include <string.h>
#include "event2/listener.h"
#include "event2/event.h"
... |

# About
Bunny is a monte carlo power analysis (MCPA) package for python. Bunny takes a theory of how you think humans will behave (called a Participant) and the analysis you plan to apply to your data (called a DataTest) and helps you understand your experiment by simulating the pro... |
<?php
/**
* Created by PhpStorm.
* User: Matt
* Date: 7/16/2017
* Time: 12:49 PM
*/
class DBC
{
protected $host = 'localhost';
protected $charset = 'utf8';
protected $UN="mttdb";
protected $Pass="P@ssw0rd";
protected $database="MonkeyApp";
protected $opt = [
PDO::AT... |
layout: post
title: Prepared Template
categories: XAP97NET
parent: querying-the-space.html
weight: 400
---
{% summary %}Querying the space using a Prepared Template{% endsummary %}
# Overview
When executing a query operation on the space, there's an overhead incurred by translating the query to an internal represen... |
package org.ihtsdo.otf.mapping.jpa.services.rest;
import org.ihtsdo.otf.mapping.helpers.MapUserRole;
import org.ihtsdo.otf.mapping.services.SecurityService;
public interface RootServiceRest {
/**
* Handle exception.
*
* @param e the e
* @param whatisHappening the whatis happening
*/
void handle... |
class NetConnection;
class NetObject;
//-----------------------------------------------------------------------------
struct CameraScopeQuery
{
NetObject *camera; ///< Pointer to the viewing object.
Point3F pos; ///< Position in world space
Point3F orientation; ///< Viewing vector in wo... |
package com.abssh.netty;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.*;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.handler.logging.LogLevel;
import io.netty.handler.loggin... |
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Taxon 15(8): 318 (1966)
#### Original name
null
### Remarks
null |
from django.contrib.postgres.search import TrigramDistance, TrigramSimilarity
from django.test import modify_settings
from . import PostgreSQLTestCase
from .models import CharFieldModel, TextFieldModel
@modify_settings(INSTALLED_APPS={'append': 'django.contrib.postgres'})
class TrigramTest(PostgreSQLTestCase):
M... |
#ifndef _COAP_DEBUG_H_
#define _COAP_DEBUG_H_
#include "config.h"
#ifndef COAP_DEBUG_FD
#define COAP_DEBUG_FD stdout
#endif
#ifndef COAP_ERR_FD
#define COAP_ERR_FD stderr
#endif
#ifdef HAVE_SYSLOG_H
#include <syslog.h>
typedef short coap_log_t;
#else
/** Pre-defined log levels akin to what is used in \b syslog. *... |
package arg
import (
"encoding"
"fmt"
"net"
"net/mail"
"reflect"
"strconv"
"time"
)
// The reflected form of some special types
var (
textUnmarshalerType = reflect.TypeOf([]encoding.TextUnmarshaler{}).Elem()
durationType = reflect.TypeOf(time.Duration(0))
mailAddressType = reflect.TypeOf(mail.Add... |
package com.amazonaws.services.kms.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyPair" target="_top">AWS API
* Documentation</a>
*/
@Generated("... |
package ansiescape
import "bytes"
// dropCR drops a leading or terminal \r from the data.
func dropCR(data []byte) []byte {
if len(data) > 0 && data[len(data)-1] == '\r' {
data = data[0 : len(data)-1]
}
if len(data) > 0 && data[0] == '\r' {
data = data[1:]
}
return data
}
// escapeSequenceLength calculates ... |