text stringlengths 3 1.05M |
|---|
class BoxShape : public Polyhedron
{
public:
BoxShape(void);
BoxShape(const BoxShape&);
const BoxShape& operator=(const BoxShape&);
virtual ~BoxShape(void);
// Functions
void draw();
void drawTriangles(int, int, int, int);
protected:
void initBoxShape(GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
bo... |
var isopackets = require('../tool-env/isopackets.js');
var config = require('../meteor-services/config.js');
var utils = require('../utils/utils.js');
var auth = require('../meteor-services/auth.js');
var selftest = require('./selftest.js');
var httpHelpers = require('../utils/http-helpers.js');
var _ = require('unders... |
module Ruboty
class CommandBuilder
include Mem
attr_reader :arguments
def initialize(arguments = ARGV)
@arguments = arguments
end
def build
command_class.new(options)
end
private
def command_class
case
when options[:generate]
Commands::Generate
... |
// Type definitions for ServiceStack Utils v0.0.1
// Project: https://servicestack.net/
// Definitions by: Demis Bellot <https://github.com/mythz/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
declare namespace ssutils {
interface Static {
... |
class Item
{
protected:
const char *name;
const char *sourceFilename;
const char *fragmentIdentifier;
const char *sourceTool;
};
#endif |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_13) on Wed Aug 05 08:53:16 ICT 2009 -->
<META http-equiv="Content-Type" content="text/html; charset=utf8">
<TITLE>
Uses of Class org.jgentlefr... |
//===-- X86MachObjectWriter.cpp - X86 Mach-O Writer -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
package logrus
import "time"
const DefaultTimestampFormat = time.RFC3339
// The Formatter interface is used to implement a custom Formatter. It takes an
// `Entry`. It exposes all the fields, including the default ones:
//
// * `entry.Data["msg"]`. The message passed from Info, Warn, Error ..
// * `entry.Data["time"... |
(function ($) {
$.fn.selectpicker.defaults = {
noneSelectedText: 'No hay selección',
noneResultsText: 'No hay resultados {0}',
countSelectedText: 'Seleccionados {0} de {1}',
maxOptionsText: ['Límite alcanzado ({n} {var} max)', 'Límite del grupo alcanzado({n} {var} max)', ['elementos', 'element']],
... |
/** PURE_IMPORTS_START .._Subject,.._util_tryCatch,.._util_errorObject,.._OuterSubscriber,.._util_subscribeToResult PURE_IMPORTS_END */
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; }... |
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
//
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
// copy, modify, and distribute this software in source code or binary form for use
// in connection with the web services and APIs provided by Facebook.
//
// As with... |
package com.microsoft.bingads.campaignmanagement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymo... |
class <caret>: |
import CurrentUser from './current-user'
import Constants from '../constants'
class NotesBackend {
constructor(CurrentUser, $http, $cookies) {
this.CurrentUser = CurrentUser
this.$http = $http
this.$cookies = $cookies
this.notes = []
}
user() {
return this.CurrentUser.get()
}
getNotes()... |
title: "Derechos de autor y atribuciones"
menuTitle: "Derechos de autor"
weight: 1
---
{{% notice info %}}
<i class="fas fa-language"></i> Page being translated from
English to Spanish. Do you speak Spanish? Help us to translate
it by sending us pull requests!
{{% /notice %}}
## **The Documentation of Selenium**
Co... |
<!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/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalab... |
package printers
import (
"bytes"
"regexp"
"testing"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
)
var testPodName = "test-pod-name"
var testPodNamesp... |
class ZipFileReader : public FileReader
{
private:
uint64_t m_uncompressedFileSize;
public:
typedef function<void(uint64_t, uint64_t)> ProgressFn;
/// Contains file name inside zip and it's uncompressed size
typedef vector<pair<string, uint32_t> > FileListT;
DECLARE_EXCEPTION(OpenZipException, OpenException... |
// Namespace
var mejs = mejs || {};
// version number
mejs.version = '2.6.3';
// player number (for missing, same id attr)
mejs.meIndex = 0;
// media types accepted by plugins
mejs.plugins = {
silverlight: [
{version: [3,0], types: ['video/mp4','video/m4v','video/mov','video/wmv','audio/wma','audio/m... |
Description
====
Installs packages for working with XFS filesystems.
Requirements
====
Tested on Ubuntu 10.04, CentOS 5.5, Amazon Linux and Scientific Linux 6.0.
Should work on any Debian or Red Hat family Linux distributions that
have the xfs packages in a default repository.
License and Author
====
Author:: Jos... |
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:choiceMode="singleChoice"
android:divider="@android:color/transparent"
android:dividerHeight="0dp"
... |
<?php
/**
* Uses var_export() to write a PHP_CodeCoverage object to a file.
*
* @category PHP
* @package CodeCoverage
* @author Sebastian Bergmann <sebastian@phpunit.de>
* @author uyga <iamuyga@gmail.com>
* @copyright 2009-2014 Sebastian Bergmann <sebastian@phpunit.de>
* @license http://www.o... |
#include <grpc/impl/codegen/port_platform.h>
#include <stdio.h>
#include <string.h>
#include <grpc/grpc_cronet.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/ext/transport/cronet/transport/cronet_transport.h"
#include "src/core/lib/surface/channel.h"
#include "src/core/lib/tra... |
python RunSimulation.py --Geo 500.0 --sim_num 49
|
package main
import (
"net/http"
check "gopkg.in/check.v1"
"github.com/Dataman-Cloud/swan/types"
)
func (s *ApiSuite) TestGetLeader(c *check.C) {
code, body, err := s.sendRequest("GET", "/v1/leader", nil)
c.Assert(err, check.IsNil)
c.Assert(code, check.Equals, http.StatusOK)
var leader = new(types.Leader)
... |
#import "UIView+Screenshot.h"
#import <QuartzCore/QuartzCore.h>
@implementation UIView (Screenshot)
- (UIImage*)screenshotWithOptimization:(BOOL)optimized
{
if (optimized)
{
// take screenshot of the view
if ([self isKindOfClass:NSClassFromString(@"MKMapView")])
{
if ([[... |
<?php
/**
* Sparkling Theme Customizer
*
* @package sparkling
*/
/**
* Add postMessage support for site title and description for the Theme Customizer.
*
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
*/
function sparkling_customize_register( $wp_customize ) {
$wp_customize->get_setting(... |
<?xml version="1.0" encoding="UTF-8"?>
<sem:triples uri="http://www.lds.org/vrl/specific-people/artists-and-illustrators/navarro-merino-alejandro-alonso" xmlns:sem="http://marklogic.com/semantics">
<sem:triple>
<sem:subject>http://www.lds.org/vrl/specific-people/artists-and-illustrators/navarro-merino-alejandro-a... |
package com.intellij.openapi.roots.ui.configuration.artifacts;
import com.intellij.openapi.options.ConfigurationException;
import com.intellij.openapi.ui.ComboBox;
import com.intellij.openapi.util.Comparing;
import com.intellij.packaging.artifacts.Artifact;
import com.intellij.packaging.artifacts.ArtifactType;
impor... |
package sample.data.jpa.domain;
import java.io.Serializable;
import java.util.Date;
public class ReviewDetails implements Serializable {
private static final long serialVersionUID = 1L;
private Rating rating;
private Date checkInDate;
private TripType tripType;
private String title;
private String detai... |
#include <algorithm>
#include <condition_variable>
#include <functional>
#include <mutex>
#include <sstream>
#include <thread>
#include <gtest/gtest.h>
#include "absl/memory/memory.h"
#include <grpcpp/channel.h>
#include <grpcpp/client_context.h>
#include <grpcpp/create_channel.h>
#include <grpcpp/generic/generic_... |
$axure.internal(function($ax) {
var _actionHandlers = {};
var _action = $ax.action = {};
var queueTypes = _action.queueTypes = {
none: 0,
move: 1,
setState: 2,
fade: 3,
resize: 4,
rotate: 5
};
var animationQueue = {};
// using array as the key ... |
'use strict';
var Buffer = require('safe-buffer').Buffer;
var common = require('@google-cloud/common');
var concat = require('concat-stream');
var createErrorClass = require('create-error-class');
var crypto = require('crypto');
var duplexify = require('duplexify');
var extend = require('extend');
var format = requi... |
require File.expand_path('../../test_helper', __FILE__)
require 'mocha/sequence'
require 'mocha/expectation'
class SequenceTest < Test::Unit::TestCase
include Mocha
class FakeExpectation
attr_reader :ordering_constraints
def initialize(satisfied = false)
@satisfied = satisfied
@ordering_con... |
var my_identity = 'id';
// test Array.sort
function cp(x, y) {
assertEquals('id', this.my_identity);
return 0;
}
[1, 2].sort(cp);
// test String.replace
function r(x) {
return this.my_identity;
}
assertEquals('id', 'hello'.replace('hello', r));
assertEquals('id', 'hello'.replace(/hello/, r));
|
#include "common.sh"
uniform vec4 u_params0;
uniform vec4 u_params1;
uniform vec4 u_params2;
uniform vec4 u_color;
uniform vec4 u_materialKa;
uniform vec4 u_materialKd;
uniform vec4 u_materialKs;
uniform vec4 u_lightPosition;
uniform vec4 u_lightAmbientPower;
uniform vec4 u_lightDiffusePower;
uniform vec4 u_lightSp... |
<?php
/**
* @see Zend_Markup_Renderer_Html
*/
require_once 'Zend/Markup/Renderer/Html.php';
/**
* @see Zend_Markup_Renderer_Html_HtmlAbstract
*/
require_once 'Zend/Markup/Renderer/Html/HtmlAbstract.php';
/**
* Tag interface
*
* @category Zend
* @package Zend_Markup
* @subpackage Renderer_Html
* @copyr... |
from __init__ import *
class SyntheticData(MultiSlotDataGenerator):
def generate_sample(self, line):
def data_iter():
for i in range(10000):
yield ("words", [1, 2, 3, 4]), ("label", [0])
return data_iter
class SyntheticStringData(MultiSlotStringDataGenerator):
de... |
<?php
namespace Ivory\GoogleMapBundle\Tests\Fixtures\Model\Overlays;
use Ivory\GoogleMap\Overlays\Polyline as BasePolyline;
/**
* Polyline for testing.
*
* @author GeLo <geloen.eric@gmail.com>
*/
class Polyline extends BasePolyline
{
}
|
namespace cc {
UkmManager::UkmManager(std::unique_ptr<ukm::UkmRecorder> recorder)
: recorder_(std::move(recorder)) {
DCHECK(recorder_);
}
UkmManager::~UkmManager() = default;
void UkmManager::SetSourceId(ukm::SourceId source_id) {
source_id_ = source_id;
}
void UkmManager::RecordThroughputUKM(
FrameSequ... |
module Sync
class ScopeDefinition
attr_accessor :klass, :name, :lambda, :parameters, :args
def initialize(klass, name, lambda)
self.class.ensure_valid_params!(klass, lambda)
@klass = klass
@name = name
@lambda = lambda
@parameters = lambda.parameters.map { |p| p[1] }
... |
namespace boost {
namespace container {
#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
template <int Dummy = 0>
struct std_allocator_arg_holder
{
static ::std::allocator_arg_t *dummy;
};
template <int Dummy> //Silence null-reference compiler warnings
::std... |
<?php
/**
* @file field--fences-footer.tpl.php
* Wrap each field value in the <footer> element.
*
* @see http://developers.whatwg.org/sections.html#the-footer-element
*/
?>
<?php if ($element['#label_display'] == 'inline'): ?>
<span class="field-label"<?php print $title_attributes; ?>>
<?php print $label; ?>... |
require 'formula'
class Cmuclmtk < Formula
desc "Language model tools (from CMU Sphinx)"
homepage 'http://cmusphinx.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/cmusphinx/cmuclmtk/0.7/cmuclmtk-0.7.tar.gz'
sha1 '118a2d10f7ac12582b08d9d9e7d970e13247b831'
depends_on 'pkg-config' => :build
... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
"""Unit tests for website.app."""
import framework
from flask import Flask
from nose.tools import * # noqa (PEP8 asserts)
from website import settings
from website.app import attach_handlers
def test_attach_handlers():
app = Flask(__name__)
attach_handlers(app, settings)
before_funcs = app.before_requ... |
package validation
import (
"fmt"
"k8s.io/client-go/1.4/pkg/api"
"k8s.io/client-go/1.4/pkg/api/meta"
"k8s.io/client-go/1.4/pkg/api/unversioned"
apiutil "k8s.io/client-go/1.4/pkg/api/util"
"k8s.io/client-go/1.4/pkg/apimachinery/registered"
"k8s.io/client-go/1.4/pkg/util/validation"
"k8s.io/client-go/1.4/pkg/... |
import {
CloudWatchLogsDecodedData,
CloudWatchLogsHandler,
CloudWatchLogsLogEvent,
ScheduledHandler,
} from "aws-lambda";
import { gunzipSync } from "zlib";
const logsHandler: CloudWatchLogsHandler = async (event, context, callback) => {
const data: CloudWatchLogsDecodedData = JSON.parse(
... |
define(function() {
return function( elem ) {
// Support: IE<=11+, Firefox<=30+ (#15098, #14150)
// IE throws on elements created in popups
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
if ( elem.ownerDocument.defaultView.opener ) {
return elem.ownerDocument.defaultView.get... |
package org.apache.beam.runners.core.triggers;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
impo... |
import { extend, override } from 'flarum/extend';
import IndexPage from 'flarum/components/IndexPage';
import DiscussionComposer from 'flarum/components/DiscussionComposer';
import TagDiscussionModal from 'flarum/tags/components/TagDiscussionModal';
import tagsLabel from 'flarum/tags/helpers/tagsLabel';
export defaul... |
"""
Django settings for hashhacks2 project.
Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... |
<?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 copy o... |
"""Supports webkitpy logging."""
# FIXME: Move this file to webkitpy/python24 since logging needs to
# be configured prior to running version-checking code.
import logging
import os
import sys
import webkitpy
_log = logging.getLogger(__name__)
# We set these directory paths lazily in get_logger() below.
_s... |
module.exports = function (math) {
var util = require('../../util/index'),
BigNumber = require('bignumber.js'),
collection = require('../../type/collection'),
isNumber = util.number.isNumber,
toNumber = util.number.toNumber,
isBoolean = util['boolean'].isBoolean,
isInteger = util... |
package im.actor.model.modules;
import java.util.ArrayList;
import im.actor.model.api.base.SeqUpdate;
import im.actor.model.api.rpc.RequestAddContact;
import im.actor.model.api.rpc.RequestRemoveContact;
import im.actor.model.api.rpc.RequestSearchContacts;
import im.actor.model.api.rpc.ResponseSearchContacts;
import... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Mozilla/5.0 (Windows NT; U; en) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Iris/1.1.7 Safari/525.20</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materi... |
<?php
/**
* Rules interface
*
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://getfrapi.com/license/new-bsd
* If you did not receive a copy of the license and ... |
<?php
namespace Cinetic\ReservaBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://sym... |
namespace printing {
// Length of a thousandth of inches in 0.01mm unit.
const int kHundrethsMMPerInch = 2540;
// Length of an inch in CSS's 1pt unit.
// http://dev.w3.org/csswg/css3-values/#absolute-length-units-cm-mm.-in-pt-pc
const int kPointsPerInch = 72;
// Length of an inch in CSS's 1px unit.
// http://dev.w3.... |
package org.lwjgl.system.jemalloc;
import org.lwjgl.system.*;
import static org.lwjgl.system.dyncall.DynCallback.*;
/** Instances of this interface may be set to the {@link ChunkHooks} struct. */
@FunctionalInterface
public interface ChunkMergeI extends CallbackI.Z {
String SIGNATURE = "(ppppBi)B";
@Override
d... |
/* Includes ------------------------------------------------------------------*/
#include "stm32l1xx_hal.h"
/** @addtogroup STM32L1xx_HAL_Driver
* @{
*/
/** @defgroup RCC RCC
* @brief RCC HAL module driver
* @{
*/
#ifdef HAL_RCC_MODULE_ENABLED
/* Private typedef -------------------------------------------... |
package com.amazonaws.services.ec2.model.transform;
import java.util.Map;
import java.util.Map.Entry;
import javax.xml.stream.events.XMLEvent;
import com.amazonaws.services.ec2.model.*;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.transform.MapEntry;
import com.amazonaws.transform.StaxUnmarsha... |
package github
import (
"context"
"encoding/json"
"fmt"
"net/http"
"reflect"
"testing"
)
func TestIssuesService_ListMilestones(t *testing.T) {
setup()
defer teardown()
mux.HandleFunc("/repos/o/r/milestones", func(w http.ResponseWriter, r *http.Request) {
testMethod(t, r, "GET")
testFormValues(t, r, valu... |
set -o errexit
set -o nounset
set -o pipefail
# If KUBERNETES_RELEASE_URL is overridden but KUBERNETES_CI_RELEASE_URL is not then set KUBERNETES_CI_RELEASE_URL to KUBERNETES_RELEASE_URL.
KUBERNETES_CI_RELEASE_URL="${KUBERNETES_CI_RELEASE_URL:-${KUBERNETES_RELEASE_URL:-https://dl.k8s.io/ci}}"
KUBERNETES_RELEASE_URL="${... |
var Op = Object.prototype;
var hasOwn = Op.hasOwnProperty;
var types = require("./types");
var isArray = types.builtInTypes.array;
var isNumber = types.builtInTypes.number;
var Ap = Array.prototype;
var slice = Ap.slice;
var map = Ap.map;
function Path(value, parentPath, name) {
if (!(this instanceof Path)) {
... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2015 Red Hat, Inc. and/or its affiliates.
~
~ Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0... |
<?php
declare(strict_types=1);
namespace Sylius\Bundle\OrderBundle\Remover;
use Doctrine\Common\Persistence\ObjectManager;
use Sylius\Bundle\OrderBundle\SyliusExpiredCartsEvents;
use Sylius\Component\Order\Remover\ExpiredCartsRemoverInterface;
use Sylius\Component\Order\Repository\OrderRepositoryInterface;
use Sym... |
package com.vaadin.tests.components.treetable;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Notification;
import com.va... |
var glob = require( 'glob' ),
path = require( 'path' );
module.exports = function( grunt, options ) {
var tasks = {
'build:css': [
'build:css:theme'
],
'build:css:theme': [
'less:theme',
'pixrem:theme',
'postcss:theme',
'wpcss:theme',
'rtlcss:theme'
],
'build:css:plugins': [],
'build:cs... |
package com.github.mozvip.subtitles.srt;
import com.github.mozvip.subtitles.DownloadForFolder;
import com.github.mozvip.subtitles.DownloadForFolderTest;
import org.junit.BeforeClass;
import org.junit.Test;
import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Path;
... |
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingTop="@dimen/spacing">
<TextView
android:id="@+id/username"
... |
layout: sow
title: Code metrics visualization POC
author: Mike Long
---
{% highlight shell %}
Minimum scope: 40 hrs
Josra Pot: 0 hrs
Status: Needs funding
{% endhighlight %}
## [Contribute to {{page.title}}](/sow/)
### Goal statement
The overall goal of this work is to create a tool for generatin... |
/*jshint globalstrict:false, strict:false, maxlen: 500 */
/*global assertEqual, assertTrue, AQL_EXPLAIN, AQL_EXECUTE */
////////////////////////////////////////////////////////////////////////////////
/// @brief tests for optimizer rules
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2010-2012 triagens GmbH, Colog... |
class Mahout < Formula
desc "Library to help build scalable machine learning libraries"
homepage "https://mahout.apache.org/"
url "https://www.apache.org/dyn/closer.cgi?path=mahout/0.11.0/apache-mahout-distribution-0.11.0.zip"
sha256 "3b4a68c69cff2ce41b9ddd789469eaa85ea3d7bab980717182bf94ea71c22904"
head do
... |
/*
Problem: https://www.hackerrank.com/challenges/insertionsort2/problem
C# Language Version: 7.0
.Net Framework Version: 4.7
Tool Version : Visual Studio Community 2017
Thoughts :
1. Let the unsorted array be arr and number of elements in arr be n.
2. Init... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
Scroph. ind. 18. 1835
#### Original name
null
### Remarks
null |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.a... |
/
public class DropListenerSupport implements PropertyChangeListener,
java.io.Serializable, BeanContextChild, BeanContextMembershipListener,
SoloMapComponent, MouseListener, MouseMotionListener {
/**
* Holds a list of DefaultDndCatchers
*/
protected transient Vector dndCatchers = new ... |
package org.sonatype.flexmojos.tests.issues;
import org.sonatype.flexmojos.test.FMVerifier;
import org.sonatype.flexmojos.tests.AbstractFlexMojosTests;
import org.testng.annotations.Test;
public class Flexmojos355Test
extends AbstractFlexMojosTests
{
@Test
public void flexmojos355()
throws Except... |
package im.actor.server.oauth
import akka.http.scaladsl.unmarshalling.PredefinedFromEntityUnmarshallers._
import akka.http.scaladsl.unmarshalling._
import akka.stream.Materializer
import play.api.libs.functional.syntax._
import play.api.libs.json.{ JsPath, Json, Reads }
trait Implicits {
implicit val materializer:... |
package sample.metrics.opentsdb;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.metrics.opentsdb.DefaultOpenTsdbNamingStrategy;
import org.springframework.boot.actuate.metrics.opentsdb.OpenTsdbMetricWriter;
import org.springframework.boot.actuate.metrics.opentsdb.OpenTsdbN... |
/*
* metismenu - v1.1.0
* Easy menu jQuery plugin for Twitter Bootstrap 3
* https://github.com/onokumus/metisMenu
*
* Made by Osman Nuri Okumus
* Under MIT License
*/
;(function($, window, document, undefined) {
var pluginName = "metisMenu",
defaults = {
toggle: true,
doubleT... |
it('should check both checkBoxes', function() {
expect(element(by.id('checkSlave')).getAttribute('checked')).toBeFalsy();
element(by.model('master')).click();
expect(element(by.id('checkSlave')).getAttribute('checked')).toBeTruthy();
}); |
<?php
/**
* @package PHPUnit_Selenium
* @author Giorgio Sironi <info@giorgiosironi.com>
* @copyright 2010-2013 Sebastian Bergmann <sebastian@phpunit.de>
* @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
* @link http://www.phpunit.de/
*/
class Extensions_Seleni... |
# This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... |
function(_mitk_parse_package_args)
set(package_list ${ARGN})
set(PUBLIC_PACKAGE_NAMES )
set(PRIVATE_PACKAGE_NAMES )
set(INTERFACE_PACKAGE_NAMES )
set(_package_visibility PRIVATE)
foreach(_package ${package_list})
if(_package STREQUAL "PUBLIC" OR _package STREQUAL "PRIVATE" OR _package STREQUAL "INTERF... |
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/tb_munion_item_force" android:state_pressed="true" />
<item android:drawable="@color/tb_munion_item_force" android:state_focused="true" />
</selector>
|
<?php
/**
* @file
* Contains \Drupal\entity_test\Entity\EntityTestNew.
*/
namespace Drupal\entity_test\Entity;
/**
* Defines the test entity class for testing definition addition.
*
* This entity type is initially not defined. It is enabled when needed to test
* the related updates.
*
* @ContentEntityType(
... |
package org.wso2.carbon.registry.indexing.indexer;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.registry.core.Association;
import org.wso2.carbon.registry.core.Collection;
import org.wso2.carbon.registry.core.Co... |
<?php
namespace Zend\EventManager;
/**
* Static version of EventManager
*/
class StaticEventManager extends SharedEventManager
{
/**
* @var StaticEventManager
*/
protected static $instance;
/**
* Singleton
*/
protected function __construct()
{
}
/**
* Singlet... |
<?php
class Twig_NodeVisitor_SafeAnalysis extends Twig_BaseNodeVisitor
{
protected $data = array();
protected $safeVars = array();
public function setSafeVars($safeVars)
{
$this->safeVars = $safeVars;
}
public function getSafe(Twig_NodeInterface $node)
{
$hash = spl_obje... |
from pydispatch import dispatcher
import cbpos
logger = cbpos.get_logger(__name__)
from cbpos.modules import BaseModuleLoader
class ModuleLoader(BaseModuleLoader):
def menu(self):
from cbpos.interface import MenuItem
from cbmod.config.views import MainConfigPage
return [
... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Sylius package.
(c) Paweł Jędrzejewski
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
-->
<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://w... |
<?xml version="1.0" encoding="UTF-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="dateTime"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">to do</div>
</text>
<url value="http://hl7.org/fhir/StructureDefinition/dateTime"/>
<name value="dateTime"/>
<... |
using System.Collections.Generic;
using Xunit;
#pragma warning disable 0067
namespace System.Reflection.Tests
{
public delegate void VoidDelegate();
public delegate void IntDelegate(int i);
public class EventInfoTests
{
public static IEnumerable<object[]> AddEventHandler_TestData()
{
... |
package kaufda
import (
"fmt"
"net/url"
"github.com/zquestz/s/providers"
)
func init() {
providers.AddProvider("kaufda", &Provider{})
}
// Provider merely implements the Provider interface.
type Provider struct{}
// BuildURI generates a search URL for kaufda.de.
func (p *Provider) BuildURI(q string) string {
... |
package com.google.common.util.concurrent;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import java.lang.Thread.UncaughtExceptionHandler;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import jav... |
using System.Web.Mvc;
using Abp.Dependency;
using Abp.Web.Mvc.Configuration;
using Abp.Web.Mvc.Extensions;
namespace Abp.Web.Mvc.Validation
{
public class AbpMvcValidationFilter : IActionFilter, ITransientDependency
{
private readonly IIocResolver _iocResolver;
private readonly IAbpMvcConfigur... |
/*************************************************************************************************/
////////////////////////////////////////////////////////////////////////////////////////
/// \file
/// \brief Example on how to create a new model of a pixel reference
/// \author Lubomir Bourdev and H... |