repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
rven/odoo | addons/partner_autocomplete/models/res_partner.py | 7687 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import logging
import json
from odoo import api, fields, models, exceptions, _
from odoo.addons.iap.tools import iap_tools
# TDE FIXME: check those errors at iap level ?
from requests.exceptions import ConnectionError, H... | agpl-3.0 |
exercitussolus/yolo | src/main/java/org/elasticsearch/transport/local/LocalTransportModule.java | 1391 | /*
* Licensed to ElasticSearch and Shay Banon 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... | agpl-3.0 |
FireWalkerX/eyeOS-FOSS-V.2.0 | eyeos/system/Frameworks/NetSync/cometlib/interfaces/AbstractChannel.php | 229 | <?php
/*
* Abstract object representig a channel
*/
abstract class AbstractChannel {
protected $name;
public function setName($name) {
$this->name = $name;
}
public function getName() {
return $this->name;
}
}
?>
| agpl-3.0 |
vanSabben/java-iso-tools | sabre/src/main/java/com/github/stephenc/javaisotools/udflib/structures/LogicalVolumeDescriptor.java | 7219 | /*
* Copyright (c) 2010. Stephen Connolly.
* Copyright (c) 2006. Björn Stickler <bjoern@stickler.de>.
*
* This library 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 2.1 of the ... | lgpl-2.1 |
oregional/tiki | lib/sheet/excel/reader.php | 24301 | <?php
//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
header("location: index.php");
exit;
}
define('Spreadsheet_Excel_Reader_HAVE_ICONV', function_exists('iconv'));
define('Spreadsheet_Excel_Reader_BIFF8', 0x600);
de... | lgpl-2.1 |
xy515258/moose | framework/src/timesteppers/IterationAdaptiveDT.C | 12670 | /****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy Alliance, LLC ... | lgpl-2.1 |
evolvedmicrobe/beast-mcmc | src/dr/inference/distribution/ParametricMultivariateDistributionModel.java | 1378 | /*
* ParametricMultivariateDistributionModel.java
*
* Copyright (c) 2002-2012 Alexei Drummond, Andrew Rambaut and Marc Suchard
*
* 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; y... | lgpl-2.1 |
trejkaz/swingx | swingx-core/src/test/java/org/jdesktop/swingx/JXLabelVisualCheck.java | 6627 | /*
* $Id$
*
* Copyright 2006 Sun Microsystems, Inc., 4150 Network Circle,
* Santa Clara, California 95054, U.S.A. All rights reserved.
*
* This library 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 Founda... | lgpl-2.1 |
gaoxiaojun/QtRIA | src/plugins/texteditor/generichighlighter/itemdata.cpp | 3771 | /****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this f... | lgpl-2.1 |
joshua-cogliati-inl/moose | unit/src/BrentsMethodTest.C | 3068 | /****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy Alliance, LLC ... | lgpl-2.1 |
sebastienhupin/qxrad | qooxdoo/framework/source/class/qx/test/bom/__init__.js | 35 | /**
* Test classes for qx.bom
*/
| lgpl-3.0 |
fevangelista/psi4 | psi4/src/psi4/fnocc/lowmemory_triples.cc | 22514 | /*
* @BEGIN LICENSE
*
* Psi4: an open-source quantum chemistry software package
*
* Copyright (c) 2007-2021 The Psi4 Developers.
*
* The copyrights for code used from other parties are included in
* the corresponding files.
*
* This file is part of Psi4.
*
* Psi4 is free software; you can redistribute it an... | lgpl-3.0 |
jstrobl/rts2 | src/pluto/out_comp.cpp | 1564 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
static int is_position_line( const char *buff)
{
int rval = 0;
if( strlen( buff) > 73 && buff[73] < ' ' &&
buff[29] == '.' && buff[46] == '.' && buff[63] == '.')
rval = 1;
return( rval);
}
int main(... | lgpl-3.0 |
ninazeina/SXP | src/main/java/crypt/base/AbstractAsymKey.java | 649 | package crypt.base;
import java.util.HashMap;
import crypt.api.key.AsymKey;
public abstract class AbstractAsymKey<T> implements AsymKey<T>{
protected T publicKey = null;
protected T privateKey = null;
protected HashMap<String, T> params = new HashMap<>();
@Override
public T getPublicKey() {
r... | lgpl-3.0 |
djw8605/condor | src/condor_contrib/mgmt/qmf/plugins/MgmtStartdPlugin.cpp | 4747 | /*
* Copyright 2009-2011 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 or agr... | apache-2.0 |
citrix-openstack-build/heat | heat/openstack/common/threadgroup.py | 3868 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 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
#
#... | apache-2.0 |
yeeunshim/tajo_test | tajo-catalog/tajo-catalog-server/src/main/java/org/apache/tajo/catalog/MiniCatalogServer.java | 1498 | /**
* 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 |
haowu80s/spark | core/src/test/scala/org/apache/spark/ui/StagePageSuite.scala | 4227 | /*
* 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 |
winklerm/drools | kie-api/src/main/java/org/kie/api/internal/utils/ServiceRegistry.java | 3216 | /*
* Copyright 2010 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 ap... | apache-2.0 |
morningman/palo | be/src/gutil/ref_counted_memory.cc | 2435 | // Copyright (c) 2012 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 "gutil/ref_counted_memory.h"
#include <stdlib.h>
#include <common/logging.h>
namespace kudu {
bool RefCountedMemory::Equals(
const sc... | apache-2.0 |
graydon/rust | library/alloc/src/macros.rs | 4126 | /// Creates a [`Vec`] containing the arguments.
///
/// `vec!` allows `Vec`s to be defined with the same syntax as array expressions.
/// There are two forms of this macro:
///
/// - Create a [`Vec`] containing a given list of elements:
///
/// ```
/// let v = vec![1, 2, 3];
/// assert_eq!(v[0], 1);
/// assert_eq!(v[1]... | apache-2.0 |
ya7lelkom/googleads-java-lib | modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201502/cm/AdGroupCriterionExperimentBidMultiplier.java | 2261 |
package com.google.api.ads.adwords.jaxws.v201502.cm;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
*
* Bid multip... | apache-2.0 |
tensorflow/tensorflow | tensorflow/compiler/xla/service/scatter_expander.cc | 18921 | /* Copyright 2018 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 |
janstey/fabric8 | fabric/fabric-dosgi/src/main/java/io/fabric8/dosgi/tcp/AsyncInvocationStrategy.java | 7480 | /**
* Copyright 2005-2014 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 |
gro-mar/flowable-engine | modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/el/ELConditionExpressionPreParser.java | 2442 | /* 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, software
* distribut... | apache-2.0 |
apache/incubator-trafodion | dcs/src/main/java/org/trafodion/dcs/servermt/serverHandler/ServerApiSqlEndTransact.java | 7063 | /**
* @@@ START COPYRIGHT @@@
* 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 (... | apache-2.0 |
sekikn/ambari | contrib/views/pig/src/main/resources/ui/pig-web/vendor/emacs.js | 2466 | /**
* 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 |
mikebrow/cri-o | vendor/github.com/docker/docker/api/types/types.go | 20130 | package types // import "github.com/docker/docker/api/types"
import (
"errors"
"fmt"
"io"
"os"
"strings"
"time"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/mount"
"github.com/docker/docker/api/types/network"
"github.com/doc... | apache-2.0 |
hgschmie/presto | presto-matching/src/main/java/io/prestosql/matching/DefaultPrinter.java | 2255 | /*
* 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, software
* distribut... | apache-2.0 |
blakebarnett/kops | vendor/gopkg.in/square/go-jose.v2/signing.go | 11463 | /*-
* Copyright 2014 Square 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... | apache-2.0 |
linyiqun/minos | owl/machine/admin.py | 333 | from django.contrib import admin
from models import Machine
class MachineAdmin(admin.ModelAdmin):
list_display = ('hostname', 'ip', 'idc', 'rack', 'cores', 'ram',
'disks', 'disk_capacity', 'ssds', 'ssd_capacity', )
list_filter = ('idc', 'rack', )
ordering = ('hostname', )
admin.site.register(Machine, M... | apache-2.0 |
nelsonsilva/wave-protocol | src/org/waveprotocol/wave/model/account/ObservableIndexability.java | 1135 | /**
* Copyright 2010 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 t... | apache-2.0 |
bmanc2000/aws-sdk-cpp | aws-cpp-sdk-cloudfront/source/model/GetCloudFrontOriginAccessIdentity2015_04_17Result.cpp | 2145 | /*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | apache-2.0 |
damifan/damifan.github.io | js/main.js | 2293 | (function($){
var toTop = ($('#sidebar').height() - $(window).height()) + 60;
// Caption
$('.article-entry').each(function(i) {
$(this).find('img').each(function() {
if (this.alt && !(!!$.prototype.justifiedGallery && $(this).parent('.justified-gallery').length)) {
$(this... | apache-2.0 |
kunallimaye/apiman-plugins | transformation-policy/src/main/java/io/apiman/plugins/transformation_policy/transformer/DataTransformerFactory.java | 921 | package io.apiman.plugins.transformation_policy.transformer;
import io.apiman.plugins.transformation_policy.beans.DataFormat;
import java.util.HashMap;
import java.util.Map;
public class DataTransformerFactory {
private static final Map<DataFormat, Map<DataFormat, DataTransformer>> dataTransformers = new HashMa... | apache-2.0 |
Addepar/buck | src/com/facebook/buck/core/model/platform/Platform.java | 1253 | /*
* Copyright (c) Facebook, Inc. and 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 applic... | apache-2.0 |
shankarh/geode | geode-core/src/main/java/org/apache/geode/admin/GemFireHealthConfig.java | 2039 | /*
* 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 not ... | apache-2.0 |
stevekuznetsov/origin | pkg/authorization/generated/listers/authorization/v1/role.go | 2425 | // This file was automatically generated by lister-gen
package v1
import (
api "github.com/openshift/origin/pkg/authorization/api"
v1 "github.com/openshift/origin/pkg/authorization/api/v1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
)
// RoleLister helps ... | apache-2.0 |
joewitt/incubator-nifi | nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java | 57337 | /*
* 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 |
unsiloai/syntaxnet-ops-hack | tensorflow/python/training/moving_averages.py | 20099 | # 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 applica... | apache-2.0 |
droolsjbpm/kie-wb-common | kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-api/src/main/java/org/kie/workbench/common/stunner/bpmn/definition/IntermediateCompensationEvent.java | 5060 | /*
* Copyright 2018 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 |
fengshao0907/jstorm | jstorm-client-extension/src/main/java/com/alibaba/jstorm/metric/UserDefMetric.java | 2814 | package com.alibaba.jstorm.metric;
import java.util.Map;
import java.util.HashMap;
import java.util.Map.Entry;
import java.io.Serializable;
import com.codahale.metrics.Metric;
import com.codahale.metrics.Gauge;
import com.codahale.metrics.Sampling;
import com.codahale.metrics.Snapshot;
import com.codahale.metrics.Tim... | apache-2.0 |
baslr/ArangoDB | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/JSON/parse/S15.12.2_A1.js | 572 | // Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: JSON.parse must create a property with the given property name
es5id: 15.12.2_A1
description: Tests that JSON.parse treats "__proto__" as a regular property name
---*/
var x ... | apache-2.0 |
Microsoft/TypeScript | tests/baselines/reference/specializedInheritedConstructors1.js | 1809 | //// [specializedInheritedConstructors1.ts]
interface ViewOptions<TModel> {
model: TModel;
}
class View<TModel> {
constructor(options: ViewOptions<TModel>) { }
model: TModel;
}
class Model { }
class MyView extends View<Model> { }
var m: ViewOptions<Model> = { model: new Model() };
var aView = new View({... | apache-2.0 |
Dhandapani/gluster-ovirt | backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/GetAllVmStatsVDSCommand.java | 1709 | package org.ovirt.engine.core.vdsbroker.vdsbroker;
import org.ovirt.engine.core.common.businessentities.VmDynamic;
import org.ovirt.engine.core.common.businessentities.VmStatistics;
import org.ovirt.engine.core.common.vdscommands.VdsIdAndVdsVDSCommandParametersBase;
import org.ovirt.engine.core.compat.Guid;
import org... | apache-2.0 |
wuranbo/elasticsearch | core/src/main/java/org/elasticsearch/index/IndexSettings.java | 24691 | /*
* 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 |
lyogavin/spark | core/src/main/java/spark/network/netty/FileServerHandler.java | 2852 | /*
* 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 |
ericmckean/syzygy | syzygy/kasko/waitable_timer_impl_unittest.cc | 1284 | // Copyright 2014 Google 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 by applicable... | apache-2.0 |
jiajiechen/mxnet | src/imperative/cached_op.cc | 19653 | /*
* 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 |
spring-projects/spring-boot | spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/spring-boot-loader-tests-app/src/main/java/org/springframework/boot/loaderapp/LoaderTestApplication.java | 2228 | /*
* 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 |
paulstapleton/flowable-engine | modules/flowable-engine-common/src/main/java/org/flowable/common/engine/impl/javax/el/ValueExpression.java | 8770 | /*
* Copyright 2006-2009 Odysseus Software GmbH
*
* 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 l... | apache-2.0 |
shootstar/novatest | nova/api/openstack/compute/contrib/evacuate.py | 3519 | # Copyright 2013 OpenStack Foundation
#
# 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 |
projectcypress/health-data-standards | test/unit/hqmf/1.0/nqf_0002_test.rb | 7276 | require_relative '../../../test_helper'
module HQMF1
class NQF0002Test < Minitest::Test
def setup
path = File.expand_path("../../../../fixtures/1.0/0002/0002.xml", __FILE__)
@hqmf_contents = File.open(path).read
end
def test_to_json_0002
hqmf = HQMF1::Document.new(@hqmf_contents)
... | apache-2.0 |
joewitt/incubator-nifi | nifi-nar-bundles/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/WriteAheadProvenanceRepository.java | 14515 | /*
* 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 |
manipopopo/tensorflow | tensorflow/python/saved_model/builder_impl.py | 24919 | # 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 applica... | apache-2.0 |
minwoox/armeria | core/src/test/java/com/linecorp/armeria/common/DefaultRequestIdTest.java | 2148 | /*
* Copyright 2019 LINE Corporation
*
* LINE Corporation 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:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | apache-2.0 |
ibuildthecloud/go-machine-service | vendor/github.com/rancher/go-rancher/v3/generated_public_endpoint.go | 3078 | package client
const (
PUBLIC_ENDPOINT_TYPE = "publicEndpoint"
)
type PublicEndpoint struct {
Resource
AgentIpAddress string `json:"agentIpAddress,omitempty" yaml:"agent_ip_address,omitempty"`
BindAll bool `json:"bindAll,omitempty" yaml:"bind_all,omitempty"`
BindIpAddress string `json:"bindIpAddress,omitempty... | apache-2.0 |
winger007/zstack | header/src/main/java/org/zstack/header/storage/snapshot/VolumeSnapshotAO.java | 5199 | package org.zstack.header.storage.snapshot;
import org.zstack.header.storage.primary.PrimaryStorageEO;
import org.zstack.header.vo.ForeignKey;
import org.zstack.header.vo.ForeignKey.ReferenceOption;
import org.zstack.header.vo.Index;
import org.zstack.header.vo.ShadowEntity;
import org.zstack.header.volume.VolumeEO;
... | apache-2.0 |
paulrossman/knife-google | spec/chef/knife/google_disk_list_spec.rb | 1365 | # Copyright 2013 Google 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 by applicable law or a... | apache-2.0 |
jtimberman/erlang | test/kitchen/cookbooks/erlang_test/recipes/source.rb | 665 | #
# Cookbook Name:: erlang_test
# Recipe:: source
#
# Copyright 2012, Opscode, 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
#
# Unle... | apache-2.0 |
Bizyroth/hadoop | hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java | 19439 | /**
* 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 |
zdw/xos | xos/tests/permissiontest.py | 7533 | import unittest
from core.models import *
class TestPermission(unittest.TestCase):
def setUp(self):
self.test_objects = []
# deployment
self.deployment = Deployment(name='TestDeployment')
self.deployment.save()
self.test_objects.append(self.deployment)
# site
... | apache-2.0 |
rcordovano/autopsy | Core/src/org/sleuthkit/autopsy/timeline/ui/detailview/datamodel/SingleDetailsViewEvent.java | 10305 | /*
* Autopsy Forensic Browser
*
* Copyright 2018-2019 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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... | apache-2.0 |
ashward/buddycloud-server-java | src/main/java/org/buddycloud/channelserver/channel/node/configuration/field/NodeDescription.java | 648 | package org.buddycloud.channelserver.channel.node.configuration.field;
public class NodeDescription extends Field {
public static final String FIELD_NAME = "pubsub#description";
public static final String DEFAULT_VALUE = "Channel description";
public static final int MAX_DESCRIPTION_LENGTH = 1024;
pub... | apache-2.0 |
TieWei/nova | nova/service.py | 14994 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
#... | apache-2.0 |
tlong2/amphtml | build-system/tasks/e2e/amp-driver.js | 5155 | /**
* Copyright 2019 The AMP HTML 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 require... | apache-2.0 |
WillJiang/WillJiang | src/xwork-core/src/main/java/com/opensymphony/xwork2/conversion/impl/DefaultTypeConverterHolder.java | 3103 | package com.opensymphony.xwork2.conversion.impl;
import com.opensymphony.xwork2.conversion.TypeConverter;
import com.opensymphony.xwork2.conversion.TypeConverterHolder;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
/**
* Default implementation of {@link TypeConverterHolder}
*/
public cl... | apache-2.0 |
Azure/azure-mobile-apps-net-server | test/Microsoft.Azure.Mobile.Server.Test/Controllers/MobileAppControllerCacheTests.cs | 2307 | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using S... | apache-2.0 |
GBGamer/rust | src/test/run-pass/traits/traits-impl-object-overlap-issue-23853.rs | 927 | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | apache-2.0 |
mosoft521/lemon | src/main/java/com/mossle/user/avatar/AvatarCache.java | 2121 | package com.mossle.user.avatar;
import java.util.HashSet;
import java.util.Set;
import javax.activation.DataSource;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import javax.cache.Cache;
import javax.cache.CacheManager;
import com.mossle.core.store.ByteArrayDataSource;
import org.apach... | apache-2.0 |
christophd/camel | components/camel-sql/src/main/java/org/apache/camel/component/sql/SqlComponent.java | 5512 | /*
* 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 |
mbebenita/shumway.ts | tests/baselines/reference/icomparable.js | 30 | var sc;
var x = sort(sc);
| apache-2.0 |
xoofx/roslyn | src/Compilers/CSharp/Test/Symbol/Symbols/Retargeting/NoPia.cs | 118253 | // 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.Immutable;
using System.Linq;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Test.Uti... | apache-2.0 |
drtittle/HelloBlueMixSrc | node_modules/watson-developer-cloud/services/alchemy_language/v1.js | 4526 | /**
* Copyright 2015 IBM Corp. 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 applica... | apache-2.0 |
agolPL/keycloak | services/src/main/java/org/keycloak/services/managers/RealmManager.java | 25932 | /*
* Copyright 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://www.apach... | apache-2.0 |
ebyhr/presto | plugin/trino-redis/src/main/java/io/trino/plugin/redis/RedisJedisManager.java | 2908 | /*
* 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, software
* distribut... | apache-2.0 |
naveedaz/azure-powershell | src/ResourceManager/Compute/Stack/Commands.Compute/Generated/Models/Page.cs | 1738 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
... | apache-2.0 |
lxc/lxd-pkg-ubuntu | dist/src/gopkg.in/lxc/go-lxc.v2/error.go | 5776 | // Copyright © 2013, 2014, The Go-LXC Authors. All rights reserved.
// Use of this source code is governed by a LGPLv2.1
// license that can be found in the LICENSE file.
// +build linux,cgo
package lxc
var (
ErrAddDeviceNodeFailed = NewError("adding device to container failed")
ErrAllocationFailed ... | apache-2.0 |
mbebenita/shumway.ts | tests/Fidelity/test262/suite/ch15/15.4/15.4.4/15.4.4.21/15.4.4.21-7-7.js | 1266 | /// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyrigh... | apache-2.0 |
umangmehta12/elasticsearch-server | elasticsearch-transport-thrift/src/main/java/org/elasticsearch/thrift/ThriftRestRequest.java | 3720 | /*
* Licensed to ElasticSearch and Shay Banon 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... | apache-2.0 |
hsanjuan/one | src/sunstone/public/app/tabs/vms-tab/dialogs/spice.js | 2627 | /* -------------------------------------------------------------------------- */
/* Copyright 2002-2016, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | apache-2.0 |
fceller/arangodb | 3rdParty/V8/v7.1.302.28/test/mjsunit/compiler/inline-accessors2.js | 11858 | // Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... | apache-2.0 |
brenton/openshift-ansible | roles/lib_openshift/library/oc_scale.py | 61968 | #!/usr/bin/env python
# pylint: disable=missing-docstring
# flake8: noqa: T001
# ___ ___ _ _ ___ ___ _ _____ ___ ___
# / __| __| \| | __| _ \ /_\_ _| __| \
# | (_ | _|| .` | _|| / / _ \| | | _|| |) |
# \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____
# | \ / _ \ | \| |/ _ \_ _| | __| \_ ... | apache-2.0 |
young-zhang/Lean | Algorithm.CSharp/MarginCallEventsAlgorithm.cs | 4596 | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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... | apache-2.0 |
zrccxyb62/hadoop | hadoop-maven-plugins/src/main/java/org/apache/hadoop/maven/plugin/protoc/ProtocMojo.java | 9197 | /*
* 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, software
* distribu... | apache-2.0 |
adelina-t/nova | nova/tests/functional/v3/test_deferred_delete.py | 1588 | # Copyright 2012 Nebula, Inc.
# Copyright 2013 IBM Corp.
#
# 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 |
Microsoft/TypeScript | tests/baselines/reference/commentOnArrayElement15.js | 167 | //// [commentOnArrayElement15.ts]
const array = [/* comment */ 1 /* comment */];
//// [commentOnArrayElement15.js]
var array = [/* comment */ 1 /* comment */];
| apache-2.0 |
jridgewell/amphtml | test/unit/core/dom/layout/test-viewport-observer.js | 5557 | import {
createViewportObserver,
observeIntersections,
} from '#core/dom/layout/viewport-observer';
describes.sandboxed('DOM - layout - Viewport Observer', {}, (env) => {
describe('createViewportObserver', () => {
let win;
let ctorSpy;
const noop = () => {};
beforeEach(() => {
ctorSpy = en... | apache-2.0 |
cjellick/rancher | vendor/github.com/rancher/types/client/management/v3/zz_generated_multi_cluster_app_revision.go | 4970 | package client
import (
"github.com/rancher/norman/types"
)
const (
MultiClusterAppRevisionType = "multiClusterAppRevision"
MultiClusterAppRevisionFieldAnnotations = "annotations"
MultiClusterAppRevisionFieldAnswers = "answers"
MultiClusterAppRevisionFieldCreated = "cr... | apache-2.0 |
DariusX/camel | core/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerDoneFileNameSimplePrefixTest.java | 2721 | /*
* 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 |
popojargo/couchdb-fauxton | app/addons/components/base.js | 634 | // 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, software
// distributed un... | apache-2.0 |
mminella/spring-cloud-data | spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/repository/support/OraclePagingQueryProvider.java | 1855 | /*
* Copyright 2016 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 applic... | apache-2.0 |
TristanTong/bbsWirelessTag | yafsrc/ServiceStack.OrmLite/src/ServiceStack.Text/Common/DeserializeBuiltin.cs | 7144 | //
// https://github.com/ServiceStack/ServiceStack.Text
// ServiceStack.Text: .NET C# POCO JSON, JSV and CSV Text Serializers.
//
// Authors:
// Demis Bellot (demis.bellot@gmail.com)
//
// Copyright 2012 Service Stack LLC. All Rights Reserved.
//
// Licensed under the same terms of ServiceStack.
//
using System;
usi... | apache-2.0 |
shaoxuan-wang/flink | flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/RegionPartitionReleaseStrategyTest.java | 7785 | /*
* 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 |
jfernandosf/phoenix | phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/update/ColumnReference.java | 5971 | /*
* 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 |
swizzley/devechelon-demo | modules/portage/lib/puppet/property/portage_version.rb | 433 | File.expand_path('../..', File.dirname(__FILE__)).tap { |dir| $:.unshift(dir) unless $:.include?(dir) }
require 'puppet/util/portage'
require 'puppet/property'
class Puppet::Property::PortageVersion < Puppet::Property
desc "A properly formatted version string"
validate do |value|
unless Puppet::Util::Portage.... | apache-2.0 |
jacques-n/incubator-calcite | core/src/main/java/org/eigenbase/relopt/hep/HepMatchOrder.java | 1400 | /*
// 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 |
jinhyukchang/gobblin | gobblin-metrics-libs/gobblin-metrics-base/src/main/java/org/apache/gobblin/metrics/event/JobEvent.java | 2008 | /*
* 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 |
tekul/spring-security | web/src/main/java/org/springframework/security/web/authentication/rememberme/JdbcTokenRepositoryImpl.java | 5423 | /*
* Copyright 2002-2012 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | apache-2.0 |
joerg84/arangodb | 3rdParty/V8/v5.7.0.0/src/ic/arm64/ic-arm64.cc | 11363 | // Copyright 2013 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if V8_TARGET_ARCH_ARM64
#include "src/codegen.h"
#include "src/ic/ic.h"
#include "src/ic/ic-compiler.h"
#include "src/ic/stub-cache.h"
namespace v8 {... | apache-2.0 |