repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
dimka3210/php-amqplib | demo/amqp_consumer.php | 1171 | #!/usr/bin/php
<?php
/**
* Repeatedly receive messages from queue until it receives a message with
* 'quit' as the body.
*
* @author Sean Murphy<sean@iamseanmurphy.com>
*/
require_once('../amqp.inc');
$HOST = 'localhost';
$PORT = 5672;
$USER = 'guest';
$PASS = 'guest';
$VHOST = '/';
$EXCHANGE = 'router';
$QUEUE... | lgpl-2.1 |
evolvedmicrobe/beast-mcmc | src/dr/app/beauti/util/PartitionNameDialog.java | 2539 | /*
* GuessTraitDialog.java
*
* Copyright (C) 2002-2006 Alexei Drummond and Andrew Rambaut
*
* This file is part of BEAST.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership and licensing.
*
* BEAST is free software; you can redistribute it and/or modify
... | lgpl-2.1 |
Tybion/community-edition | projects/repository/source/java/org/alfresco/repo/remote/ClientTicketHolderGlobal.java | 1384 | /*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at y... | lgpl-3.0 |
daniel-he/community-edition | projects/repository/source/test-java/org/alfresco/repo/bulkimport/CreateInPlaceTestData.java | 5976 | /*
* Copyright (C) 2005-2011 Alfresco Software Limited.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This... | lgpl-3.0 |
smallkid/pi4j | pi4j-core/src/test/java/com/pi4j/io/gpio/test/GpioPinDigitalInputTests.java | 8780 | package com.pi4j.io.gpio.test;
/*
* #%L
* **********************************************************************
* ORGANIZATION : Pi4J
* PROJECT : Pi4J :: Java Library (Core)
* FILENAME : GpioPinDigitalInputTests.java
*
* This file is part of the Pi4J project. More information about
* this p... | lgpl-3.0 |
ftahmed/LIA_RAL | LIA_Utils/Scoring/src/ScoringMain.cpp | 4489 | /*
This file is part of LIA_RAL which is a set of software based on ALIZE
toolkit for speaker recognition. ALIZE toolkit is required to use LIA_RAL.
LIA_RAL project is a development project was initiated by the computer
science laboratory of Avignon / France (Laboratoire Informatique d'Avignon -
LIA) [http://lia.univ-... | lgpl-3.0 |
freebsd/phabricator | src/applications/people/mail/PhabricatorPeopleEmailLoginMailEngine.php | 3902 | <?php
final class PhabricatorPeopleEmailLoginMailEngine
extends PhabricatorPeopleMailEngine {
public function validateMail() {
$recipient = $this->getRecipient();
if ($recipient->getIsDisabled()) {
$this->throwValidationException(
pht('User is Disabled'),
pht(
'You can not... | apache-2.0 |
BiryukovVA/ignite | modules/web-console/frontend/app/components/input-dialog/input-dialog.controller.js | 1244 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | apache-2.0 |
Apache9/hbase | hbase-server/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationStatusAfterLagging.java | 2895 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | apache-2.0 |
smartpcr/samza | samza-yarn/src/main/scala/org/apache/samza/job/yarn/SamzaAppMasterMetrics.scala | 3665 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 |
isharac/carbon-apimgt | components/apimgt/org.wso2.carbon.apimgt.common.gateway/src/main/java/org/wso2/carbon/apimgt/common/gateway/dto/JWTValidationInfo.java | 4301 | /*
* Copyright (c) 2021, 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 of the License at
*
* http://www.apach... | apache-2.0 |
turbokongen/home-assistant | homeassistant/components/nuheat/climate.py | 9514 | """Support for NuHeat thermostats."""
from datetime import datetime
import logging
import time
from nuheat.config import SCHEDULE_HOLD, SCHEDULE_RUN, SCHEDULE_TEMPORARY_HOLD
from nuheat.util import (
celsius_to_nuheat,
fahrenheit_to_nuheat,
nuheat_to_celsius,
nuheat_to_fahrenheit,
)
from homeassistant... | apache-2.0 |
pabloescribanoloza/xamarin-forms-book-preview-2 | Chapter06/PersistentKeypad/PersistentKeypad/PersistentKeypad/PersistentKeypadPage.cs | 3409 | using System;
using Xamarin.Forms;
namespace PersistentKeypad
{
public class PersistentKeypadPage : ContentPage
{
Label displayLabel;
Button backspaceButton;
public PersistentKeypadPage()
{
// Create a vertical stack for the entire keypad.
StackLayout m... | apache-2.0 |
emre-aydin/hazelcast | hazelcast/src/main/java/com/hazelcast/map/impl/LazyNullEntryView.java | 2070 | /*
* Copyright (c) 2008-2021, Hazelcast, Inc. 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
*
* Unless required ... | apache-2.0 |
wdsgyj/protobuf-jmicro | protobuf/java/src/main/java/com/google/protobuf/nano/CodedInputByteBufferNano.java | 21031 | // Protocol Buffers - Google's data interchange format
// Copyright 2013 Google Inc. All rights reserved.
// http://code.google.com/p/protobuf/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistri... | apache-2.0 |
shanti/olio | tags/0.1-final/tags/release-0.1/webapp/rails/trunk/spec/models/document_spec.rb | 1392 | require File.dirname(__FILE__) + '/../spec_helper'
describe 'Document model: Document' do
before(:each) do
@document = Document.new
end
it 'should be valid' do
document = new_document
document.should be_valid
end
it 'should have a content type' do
@document.should have(2).errors_on(:... | apache-2.0 |
nssales/OG-Platform | projects/OG-MasterDB/src/main/java/com/opengamma/masterdb/historicaltimeseries/package-info.java | 338 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
/**
* Historical time-series master implementation using an SQL database.
* <p>
* This master supplies and manages historical time-series.
*/
package com.opengamma.masterdb.hist... | apache-2.0 |
VShangxiao/roslyn | src/VisualStudio/Core/Def/Implementation/AnalyzerDependency/AnalyzerFileWatcherService.cs | 6033 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.IO;
using System.Linq;
using Microsoft.CodeAnalysis;
usi... | apache-2.0 |
mbiarnes/kie-wb-common | kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-client/src/main/java/org/kie/workbench/common/stunner/bpmn/client/session/BPMNCanvasShortcutsControl.java | 1301 | /*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* 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 app... | apache-2.0 |
tieusangaka/Scrollable | library/src/main/java/ru/noties/scrollable/InterpolatorCloseUpAnimatorConfigurator.java | 602 | package ru.noties.scrollable;
import android.animation.ObjectAnimator;
import android.view.animation.Interpolator;
/**
* Created by Dimitry Ivanov on 23.05.2015.
*/
public class InterpolatorCloseUpAnimatorConfigurator implements CloseUpAnimatorConfigurator {
private final Interpolator mInterpolator;
publi... | apache-2.0 |
paulovmr/uberfire | uberfire-extensions/uberfire-wires/uberfire-wires-core/uberfire-wires-core-client/src/main/java/org/uberfire/ext/wires/core/client/canvas/FocusableLienzoPanel.java | 2347 | /*
* Copyright 2015 JBoss, by Red Hat, Inc
*
* 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 ... | apache-2.0 |
driftyco/ionic-site | content/docs/v3/demos/src/util/haptic.d.ts | 1782 | import { Platform } from '../platform/platform';
/**
* @name Haptic
* @description
* The `Haptic` class interacts with a haptic engine on the device, if available. Generally,
* Ionic components use this under the hood, but you're welcome to get a bit crazy with it
* if you fancy.
*
* Currently, this uses the Tap... | apache-2.0 |
TiVo/kafka | core/src/main/scala/kafka/utils/FileLock.scala | 2419 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | apache-2.0 |
ricardocerq/elasticsearch | core/src/main/java/org/elasticsearch/index/mapper/ParsedDocument.java | 3682 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | apache-2.0 |
Intel-tensorflow/tensorflow | tensorflow/core/kernels/reduction_ops_all.cc | 1716 | /* Copyright 2015 The TensorFlow Authors. 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
Unless required by applicable law or a... | apache-2.0 |
halatmit/appinventor-sources | appinventor/components/src/com/google/appinventor/components/annotations/androidmanifest/ServiceElement.java | 8017 | // -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2020 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.google.appinventor.components.annotations.androidmanifest;
import java.lang.annotation.ElementType;
import java.lang.annotati... | apache-2.0 |
DevStreet/FinanceAnalytics | projects/OG-Util/src/main/java/com/opengamma/util/monitor/OperationTimeReporter.java | 758 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.util.monitor;
import org.slf4j.Logger;
/**
* Reporter handling timing events.
* <p>
* The {@link OperationTimer} class calls the class whenever a timing se... | apache-2.0 |
zsxm/scgo | data/oracle/oracle.go | 15 | package oracle
| apache-2.0 |
vivekjuneja/AppStash | monolithic/ui/src/main/java/io/github/zutherb/appstash/shop/ui/mbean/FeatureTooglesBean.java | 1452 | package io.github.zutherb.appstash.shop.ui.mbean;
import org.springframework.jmx.export.annotation.ManagedOperation;
import org.springframework.jmx.export.annotation.ManagedResource;
import org.springframework.stereotype.Component;
@Component
@ManagedResource(objectName = "io.github.zutherb.appstash.ui:name=FeatureTo... | apache-2.0 |
xiaobodu/go2o | src/core/domain/partner/shop.go | 2262 | /**
* Copyright 2014 @ S1N1 Team.
* name :
* author : jarryliu
* date : 2013-12-23 07:55
* description :
* history :
*/
package partner
import (
"go2o/src/core/domain/interface/partner"
)
var _ partner.IShop = new(Shop)
type Shop struct {
partnerRep partner.IPartnerRep
value *partner.ValueShop
partn... | apache-2.0 |
lukego/snabbswitch | src/lib/protocol/ethernet.lua | 2918 | module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local lib = require("core.lib")
local header = require("lib.protocol.header")
local ipv6 = require("lib.protocol.ipv6")
local band = require("bit").band
local ntohs, htons = lib.ntohs, lib.htons
local mac_addr_t = ffi.typeof("uint8_t[6]")
local eth... | apache-2.0 |
sunjincheng121/flink | flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/plan/stream/table/JoinTest.scala | 8548 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 |
nelmiux/CarnotKE | jyhton/installer/src/java/org/python/util/install/ValidationListener.java | 394 | package org.python.util.install;
public interface ValidationListener {
public void validationFailed(ValidationEvent event, ValidationException exception);
public void validationInformationRequired(ValidationEvent event, ValidationInformationException exception);
public void validationStarted(ValidationEv... | apache-2.0 |
jimmidyson/fabric8 | components/gateway-core/src/main/java/io/fabric8/gateway/handlers/detecting/protocol/openwire/command/DiscoveryEvent.java | 1845 | /**
* Copyright 2005-2015 Red Hat, Inc.
*
* Red Hat 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 of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | apache-2.0 |
Silenthinker/sum | seq2seq/tasks/inference_task.py | 1982 | # Copyright 2017 Google Inc.
#
# 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,... | apache-2.0 |
eeshangarg/zulip | frontend_tests/node_tests/watchdog.js | 1592 | "use strict";
const {strict: assert} = require("assert");
const MockDate = require("mockdate");
const {set_global, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
let time = 0;
let checker;
MockDate.set(time);
function advance_secs(secs) {
time += secs * 1000;
Mo... | apache-2.0 |
slyphon/pants | src/python/pants/backend/jvm/jar_dependency_utils.py | 3608 | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
from pants.util.memo... | apache-2.0 |
justinmuller/buck | src/com/facebook/buck/util/RichStreamImpl.java | 6404 | /*
* Copyright 2016-present Facebook, Inc.
*
* 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... | apache-2.0 |
Buzzardo/spring-boot | spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataAnnotationProcessorTests.java | 24086 | /*
* Copyright 2012-2021 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | apache-2.0 |
android-ia/platform_external_deqp | modules/gles31/functional/es31fTessellationTests.cpp | 258383 | /*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES 3.1 Module
* -------------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... | apache-2.0 |
jakubschwan/droolsjbpm-integration | kie-server-parent/kie-server-services/kie-server-services-swagger/src/main/java/org/kie/server/services/swagger/SwaggerKieServerExtension.java | 5894 | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, softw... | apache-2.0 |
siosio/intellij-community | platform/platform-api/src/com/intellij/execution/process/ColoredOutputTypeRegistry.java | 13426 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.process;
import com.intellij.execution.ui.ConsoleViewContentType;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.o... | apache-2.0 |
codehaus/izpack | izpack-panel/src/main/java/com/izforge/izpack/panels/userinput/field/ElementReader.java | 8219 | /*
* IzPack - Copyright 2001-2012 Julien Ponge, All Rights Reserved.
*
* http://izpack.org/
* http://izpack.codehaus.org/
*
* Copyright 2012 Tim Anderson
*
* 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 co... | apache-2.0 |
christophd/camel | core/camel-core-processor/src/main/java/org/apache/camel/processor/ChoiceProcessor.java | 6110 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | apache-2.0 |
denzalereese/lumira-extension-viz | Power_Flow_Maps/src/bundles/sap/viz/ext/powerflowmaps/sap_viz_ext_powerflowmaps-src/resources/templates/standard/template.js | 177 | var sampleTemplate = {
"id": "standard",
"name": "Standard",
"properties": {
"sap.viz.ext.powerflowmaps": {
}
}
};
sap.viz.extapi.env.Template.register(sampleTemplate); | apache-2.0 |
yonglehou/spring-net | examples/Spring/Spring.EmsQuickStart/src/Spring/Spring.EmsQuickStart.Client/UI/StockForm.designer.cs | 6214 | namespace Spring.EmsQuickStart.Client.UI
{
partial class StockForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/... | apache-2.0 |
WPDreamMelody/HelloRN | Pods/React/node_modules/joi/test/array.js | 25691 | // Load modules
var Lab = require('lab');
var Code = require('code');
var Joi = require('../lib');
var Helper = require('./helper');
// Declare internals
var internals = {};
// Test shortcuts
var lab = exports.lab = Lab.script();
var before = lab.before;
var after = lab.after;
var describe = lab.describe;
var it... | apache-2.0 |
Niksok/Prebid.js | modules/rhythmoneBidAdapter.js | 8179 |
'use strict';
import { deepAccess, getDNT, parseSizesInput, isArray } from '../src/utils.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
function RhythmOneBidAdapter() {
this.code = 'rhythmone';
this.supportedMediaTypes = [VIDEO, BANNER]... | apache-2.0 |
joshix/caddy | caddyhttp/limits/handler_test.go | 1508 | // Copyright 2015 Light Code Labs, 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 agre... | apache-2.0 |
andyraib/data-storage | python_scripts/env/lib/python3.6/site-packages/pandas/io/data.py | 338 | raise ImportError(
"The pandas.io.data module is moved to a separate package "
"(pandas-datareader). After installing the pandas-datareader package "
"(https://github.com/pandas-dev/pandas-datareader), you can change "
"the import ``from pandas.io import data, wb`` to "
"``from pandas_datareader imp... | apache-2.0 |
reaction1989/roslyn | src/ExpressionEvaluator/Core/Source/ResultProvider/Expansion/RootHiddenExpansion.cs | 3021 | // 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.
using Microsoft.VisualStudio.Debugger.Evaluation;
using Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation;
... | apache-2.0 |
letianshanshui/jstorm | jstorm-client/src/main/java/backtype/storm/topology/IRichSpout.java | 298 | package backtype.storm.topology;
import backtype.storm.spout.ISpout;
/**
* When writing topologies using Java, {@link IRichBolt} and {@link IRichSpout}
* are the main interfaces to use to implement components of the topology.
*
*/
public interface IRichSpout extends ISpout, IComponent {
}
| apache-2.0 |
jmluy/elasticsearch | x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/monitoring/collector/ccr/StatsCollectorTests.java | 8911 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.monitoring.collector.ccr;
import o... | apache-2.0 |
pyjs/pyjs | pyjswidgets/pyjamas/Canvas/Color.py | 2289 | """
* Copyright 2008 Google Inc.
*
* 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, s... | apache-2.0 |
djh4230/Apache-Phoenix | phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/example/CoveredColumnIndexSpecifierBuilder.java | 6530 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 |
NaNi-Z/manageiq | app/controllers/api/base_controller/parser.rb | 13200 | module Api
class BaseController
module Parser
def parse_api_request
@req = RequestAdapter.new(request, params)
end
def validate_api_request
validate_optional_collection_classes
# API Version Validation
if @req.version
vname = @req.version
unl... | apache-2.0 |
marcingrzejszczak/wiremock | src/main/java/com/github/tomakehurst/wiremock/extension/AbstractTransformer.java | 1002 | /*
* Copyright (C) 2011 Thomas Akehurst
*
* 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... | apache-2.0 |
mcharles/geomesa | geomesa-accumulo/geomesa-accumulo-datastore/src/main/scala/org/locationtech/geomesa/accumulo/data/Splitters.scala | 1461 | /***********************************************************************
* Copyright (c) 2013-2015 Commonwealth Computer Research, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License, Version 2.0 which
* accompanies this distribution and is ... | apache-2.0 |
tesluk/olap4j | src/org/olap4j/impl/ArrayNamedListImpl.java | 2650 | /*
// Licensed to Julian Hyde under one or more contributor license
// agreements. See the NOTICE file distributed with this work for
// additional information regarding copyright ownership.
//
// Julian Hyde licenses this file to you under the Apache License,
// Version 2.0 (the "License"); you may not use this file e... | apache-2.0 |
jcshen007/cloudstack | api/src/org/apache/cloudstack/api/command/user/vpn/UpdateVpnGatewayCmd.java | 3975 | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | apache-2.0 |
emre-aydin/hazelcast | hazelcast/src/main/java/com/hazelcast/map/impl/querycache/accumulator/BasicAccumulator.java | 6370 | /*
* Copyright (c) 2008-2021, Hazelcast, Inc. 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
*
* Unless required ... | apache-2.0 |
mcharles/geomesa | geomesa-jobs/src/test/scala/org/locationtech/geomesa/jobs/scalding/GeoMesaSourceTest.scala | 1612 | /***********************************************************************
* Copyright (c) 2013-2015 Commonwealth Computer Research, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License, Version 2.0 which
* accompanies this distribution and is ... | apache-2.0 |
emre-aydin/hazelcast | hazelcast/src/main/java/com/hazelcast/cache/impl/CachePartitionIterable.java | 1356 | /*
* Copyright (c) 2008-2021, Hazelcast, Inc. 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
*
* Unless required ... | apache-2.0 |
jorgebay/csharp-driver | src/Cassandra/Outputs/OutputVoid.cs | 917 | //
// Copyright (C) 2012-2014 DataStax Inc.
//
// 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 ap... | apache-2.0 |
puneetjaiswal/crate | core/src/main/java/io/crate/core/collections/TreeMapBuilder.java | 2146 | /*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not us... | apache-2.0 |
DLehenbauer/TypeScript | tests/baselines/reference/complexClassRelationships.js | 3425 | //// [complexClassRelationships.ts]
// There should be no errors in this file
class Derived extends Base {
public static createEmpty(): Derived {
var item = new Derived();
return item;
}
}
class BaseCollection<T extends Base> {
constructor(f: () => T) {
(item: Thing) => { return [it... | apache-2.0 |
yahoo/pulsar | testmocks/src/main/java/org/apache/bookkeeper/client/BookKeeperTestClient.java | 1769 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | apache-2.0 |
jotak/hawkular-metrics | api/metrics-api-util/src/main/java/org/hawkular/metrics/api/jaxrs/util/EagerExtension.java | 2735 | /*
* Copyright 2014-2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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://w... | apache-2.0 |
jeorme/OG-Platform | projects/OG-Financial/src/main/java/com/opengamma/financial/analytics/model/shiftedlognormal/ShiftedLognormalDiscountingPricingFunctions.java | 1432 | /**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.analytics.model.shiftedlognormal;
import java.util.List;
import com.opengamma.engine.function.config.AbstractFunctionConfigurationBean;
import com.o... | apache-2.0 |
Jeff-Lewis/opendms-dot-net | OpenDMS.Storage/Providers/CouchDB/EngineMethods/CheckoutCurrentVersion.cs | 1344 | using System;
namespace OpenDMS.Storage.Providers.CouchDB.EngineMethods
{
public class CheckoutCurrentVersion : Base
{
private Data.ResourceId _resourceId;
public CheckoutCurrentVersion(EngineRequest request, Data.ResourceId resourceId)
: base(request)
{
... | apache-2.0 |
wudingli/openfire | src/java/org/jivesoftware/openfire/muc/cluster/AddAffiliation.java | 2771 | /**
* $RCSfile: $
* $Revision: $
* $Date: $
*
* Copyright (C) 2005-2008 Jive Software. 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.apach... | apache-2.0 |
jcshen007/cloudstack | services/console-proxy-rdp/rdpconsole/src/test/java/streamer/ByteBufferTest.java | 5330 | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | apache-2.0 |
stweil/openlayers | test/browser/spec/ol/tilegrid/wmts.test.js | 7750 | import WMTSCapabilities from '../../../../../src/ol/format/WMTSCapabilities.js';
import {createFromCapabilitiesMatrixSet} from '../../../../../src/ol/tilegrid/WMTS.js';
describe('ol.tilegrid.WMTS', function () {
describe('when creating tileGrid from capabilities', function () {
const parser = new WMTSCapabilitie... | bsd-2-clause |
xyb/homebrew-cask | Casks/macx-youtube-downloader.rb | 410 | cask "macx-youtube-downloader" do
version "5.1.9,20210425"
sha256 :no_check
url "https://www.macxdvd.com/download/macx-youtube-downloader-free.dmg"
name "MacX YouTube Downloader"
desc "Tool to download videos from YouTube"
homepage "https://www.macxdvd.com/free-youtube-video-downloader-mac/"
livecheck d... | bsd-2-clause |
Anon215/sticky-notes | app/models/IPBan.php | 939 | <?php
/**
* Sticky Notes
*
* An open source lightweight pastebin application
*
* @package StickyNotes
* @author Sayak Banerjee
* @copyright (c) 2014 Sayak Banerjee <mail@sayakbanerjee.com>
* @license http://www.opensource.org/licenses/bsd-license.php
* @link http://sayakbanerjee.com/stic... | bsd-2-clause |
mwkm/pbrt-v3 | src/filters/gaussian.cpp | 2024 |
/*
pbrt source code is Copyright(c) 1998-2015
Matt Pharr, Greg Humphreys, and Wenzel Jakob.
This file is part of pbrt.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redi... | bsd-2-clause |
mtCarto/geogig | src/core/src/main/java/org/locationtech/geogig/storage/memory/Edge.java | 733 | /* Copyright (c) 2014-2016 Boundless and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/edl-v10.html
*
* Cont... | bsd-3-clause |
suncycheng/go | src/runtime/cgo_sigaction.go | 3302 | // Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Support for memory sanitizer. See runtime/cgo/sigaction.go.
// +build linux,amd64
package runtime
import "unsafe"
// _cgo_sigaction is filled in by runti... | bsd-3-clause |
nwjs/chromium.src | weblayer/test/stub_autofill_provider.cc | 929 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "weblayer/test/stub_autofill_provider.h"
namespace weblayer {
StubAutofillProvider::StubAutofillProvider(
content::WebContents* web_content... | bsd-3-clause |
zhangfangyan/devide | interfaces/wx_interface/graph_editor.py | 116718 | # Copyright (c) Charl P. Botha, TU Delft
# All rights reserved.
# See COPYRIGHT for details.
# FIXME: def show() should really be moved a level up!!
# left click on glyph: select and drag
# left click on canvas: rubberband select
# right click on glyph: glyph context menu
# right click on canvas: canvas context menu
... | bsd-3-clause |
KasperPRasmussen/bokeh | examples/models/line_animate.py | 1033 | from __future__ import print_function
import time
from numpy import pi, sin, cos, linspace
from bokeh.client import push_session
from bokeh.document import Document
from bokeh.models import (
Plot, DataRange1d, LinearAxis, Range1d,
ColumnDataSource, PanTool, WheelZoomTool, Line
)
document = Document()
sessi... | bsd-3-clause |
msieger/geogig | src/web/api/src/main/java/org/locationtech/geogig/rest/Representations.java | 1457 | /* Copyright (c) 2014 Boundless and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/edl-v10.html
*
* Contribut... | bsd-3-clause |
was4444/chromium.src | content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnectionProxyView.java | 4253 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.content.browser.input;
import android.content.Context;
import android.os.Handler;
import android.os.IBinder;
import android.view.Vie... | bsd-3-clause |
BenLand100/rat-pac | src/geo/GeoRevolutionChimneyFactory.cc | 2654 | #include <RAT/GeoRevolutionChimneyFactory.hh>
#include <G4Polycone.hh>
#include <RAT/Log.hh>
#include <G4UnionSolid.hh>
#include <G4SubtractionSolid.hh>
#include <G4Tubs.hh>
#include <CLHEP/Units/PhysicalConstants.h>
#include <CLHEP/Units/SystemOfUnits.h>
using namespace std;
namespace RAT {
G4VSolid *GeoRevolutionC... | bsd-3-clause |
suncycheng/go | src/crypto/aes/gcm_s390x.go | 7961 | // Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package aes
import (
"crypto/cipher"
"crypto/subtle"
"errors"
)
// gcmCount represents a 16-byte big-endian count value.
type gcmCount [16]byte
// inc inc... | bsd-3-clause |
zhangfangyan/devide | modules/vtk_basic/vtkTemporalDataSetCache.py | 515 | # class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkTemporalDataSetCache(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
... | bsd-3-clause |
chuan9/chromium-crosswalk | ipc/mojo/ipc_message_pipe_reader.cc | 7213 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ipc/mojo/ipc_message_pipe_reader.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/location.h"
#include "base/logging.h"
... | bsd-3-clause |
frankvdp/django | tests/staticfiles_tests/test_management.py | 21743 | import codecs
import datetime
import os
import shutil
import tempfile
import unittest
from io import StringIO
from unittest import mock
from admin_scripts.tests import AdminScriptTestCase
from django.conf import settings
from django.contrib.staticfiles import storage
from django.contrib.staticfiles.management.command... | bsd-3-clause |
nyotis/blaze-lib | blazetest/src/mathtest/dmatsmatmult/SLDbSCb.cpp | 4466 | //=================================================================================================
/*!
// \file src/mathtest/dmatsmatmult/SLDbSCb.cpp
// \brief Source file for the SLDbSCb dense matrix/sparse matrix multiplication math test
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This f... | bsd-3-clause |
nyotis/blaze-lib | blazetest/src/mathtest/smatdmatmult/DCaSLDa.cpp | 4463 | //=================================================================================================
/*!
// \file src/mathtest/smatdmatmult/DCaSLDa.cpp
// \brief Source file for the DCaSLDa sparse matrix/dense matrix multiplication math test
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This f... | bsd-3-clause |
chromium/chromium | remoting/host/win/simple_task_dialog.cc | 5814 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/win/simple_task_dialog.h"
#include <algorithm>
#include <iterator>
#include <string>
#include "base/logging.h"
#include "remotin... | bsd-3-clause |
ivoflipse/devide | modules/vtk_basic/vtkExtractEdges.py | 484 | # class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkExtractEdges(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
vtk.v... | bsd-3-clause |
psychobob666/litesql | src/generator/ui/LitesqlRelationPanel.cpp | 3967 | #include "LitesqlRelationPanel.h"
#include "objectmodel.hpp"
#include "ddx.h"
#include <wx/log.h>
using namespace xml;
/* RelateTypeValidator Implementation */
IMPLEMENT_DYNAMIC_CLASS(RelateTypeValidator,wxGenericValidator)
RelateTypeValidator::RelateTypeValidator (xml::Relate::Ptr val)
: m_pRelate(val),
wxGeneri... | bsd-3-clause |
beni55/trine | src/number/atan.js | 137 | /**
* Returns the arctangent of the number.
*
* @this {number}
*/
export function atan (
) : number {
return Math.atan(this);
};
| isc |
ivoreis/trine | src/iterable/drop.js | 430 | /**
* Yields the items that don't qualify the condition.
*
* @this {Iterable<T>}
* @ntime O(n)
* @dspace O(1)
* @example Basic Usage
*
* ```javascript
* [1,2,3,4]::drop(function () {
* return this % 2 === 0;
* }) // yields 1, 3
* ```
*/
export function * drop <T> (
condition : (_this : T) => boolean,
... | isc |
lucianoiw/belead | _apoio/summernote/plugin/summernote-master/src/js/summernote.js | 1525 | define([
'jquery',
'summernote/base/core/agent',
'summernote/base/core/list',
'summernote/base/Context'
], function ($, agent, list, Context) {
$.fn.extend({
/**
* Summernote API
*
* @param {Object|String}
* @return {this}
*/
summernote: function () {
var type = $.type(l... | mit |
Sylvain62250/Concrete5 | concrete/src/Updater/Migrations/Migrations/Version20161208000000.php | 1487 | <?php
namespace Concrete\Core\Updater\Migrations\Migrations;
use Concrete\Core\Block\BlockType\BlockType;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
class Version20161208000000 extends AbstractMigration
{
protected function output($message)
{
$this->version->getC... | mit |
sufuf3/cdnjs | ajax/libs/ag-grid/18.0.0/lib/rowModels/clientSide/clientSideNodeManager.js | 13016 | /**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v18.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var rowNode_1 = require("../../entities/rowNode");
var utils_1... | mit |
CallumCarmicheal/Keyboard-Tracker | dep/JSON.Net/Source/Src/Newtonsoft.Json.Tests/Schema/JsonSchemaModelBuilderTests.cs | 7008 | #region License
// Copyright (c) 2007 James Newton-King
//
// 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,... | mit |
chinaboard/CoralSea | CoralSea/CoralSea.Web/Scripts/fullpage.js/js/jquery.fullPage.js | 56120 | /**
* fullPage 2.5.4
* https://github.com/alvarotrigo/fullPage.js
* MIT licensed
*
* Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo
*/
(function($) {
$.fn.fullpage = function(options) {
// Create some defaults, extending them with any options that were provided
options = $.extend({
//navi... | mit |