repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
VHAINNOVATIONS/Mental-Health-eScreening
escreening/src/main/java/gov/va/escreening/exception/FreemarkerRenderException.java
680
package gov.va.escreening.exception; import gov.va.escreening.dto.ae.ErrorResponse; public class FreemarkerRenderException extends ErrorResponseRuntimeException{ public FreemarkerRenderException(){ super(); } public FreemarkerRenderException(ErrorResponse error){ super(error); } ...
apache-2.0
ruhan1/pnc
integration-test/src/test/java/org/jboss/pnc/integration/EnvironmentRestTest.java
7123
/** * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual 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 Lice...
apache-2.0
OSEHRA/VistA
Packages/Problem List/Testing/RAS/PLMain01_suite.py
37854
#--------------------------------------------------------------------------- # Copyright 2013 PwC # # 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/LICENS...
apache-2.0
combust/mleap
bundle-ml/src/main/scala/ml/combust/bundle/op/OpModel.scala
1952
package ml.combust.bundle.op import ml.combust.bundle.BundleContext import ml.combust.bundle.dsl.Model /** Type class for serializing/deserializing ML models to Bundle.ML. * * @tparam Context context for implementation * @tparam M Scala class of the ML model */ trait OpModel[Context, M] { /** Class of the m...
apache-2.0
quartzmo/gcloud-ruby
google-cloud-logging/lib/google/cloud/logging/v2/doc/google/api/label.rb
1293
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
apache-2.0
SalesforceSFDC/aura
aura/src/main/java/org/auraframework/builder/ApplicationDefBuilder.java
1306
/* * Copyright (C) 2013 salesforce.com, 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 ...
apache-2.0
google/closure-stylesheets
src/com/google/common/css/compiler/ast/CssUnicodeRangeNode.java
1328
/* * Copyright 2015 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 ...
apache-2.0
timschlechter/swagger-for-elasticsearch
src/main/java/net/itimothy/elasticsearch/restapispec/model/RestApiSpecData.java
144
package net.itimothy.elasticsearch.restapispec.model; import java.util.HashMap; public class RestApiSpecData extends HashMap<String, Api> { }
apache-2.0
dynamic-builder/dynamic-builder
src/test/java/com/singleton/dynamic/builder/validation/NotParameterValidatorTest.java
4914
package com.singleton.dynamic.builder.validation; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; import java.lang.reflect.Method; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; impor...
apache-2.0
apache/metamodel
core/src/main/java/org/apache/metamodel/schema/ImmutableColumn.java
6758
/** * 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
gstamac/powermock
tests/mockito/junit4/src/test/java/samples/powermockito/junit4/simplemix/SimpleMixTest.java
3149
/* * Copyright 2008 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 applica...
apache-2.0
jerrinot/hazelcast
hazelcast-sql/src/main/java/com/hazelcast/jet/sql/impl/opt/physical/FilterPhysicalRule.java
2029
/* * Copyright 2021 Hazelcast Inc. * * Licensed under the Hazelcast Community License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://hazelcast.com/hazelcast-community-license * * Unless required by applicable law or agree...
apache-2.0
shahramgdz/hibernate-validator
engine/src/main/java/org/hibernate/validator/internal/engine/resolver/CachingTraversableResolverForSingleValidation.java
4153
/* * Hibernate Validator, declare and validate application constraints * * License: Apache License, Version 2.0 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. */ package org.hibernate.validator.internal.engine.resolver; import java.lang.annotation.ElementType; im...
apache-2.0
jenshadlich/aws-sdk-java
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/DeregisterContainerInstanceResult.java
3400
/* * 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 "lice...
apache-2.0
jahhulbert-ccri/geomesa
geomesa-utils/src/main/scala/org/locationtech/geomesa/utils/stats/Z3Histogram.scala
6517
/*********************************************************************** * Copyright (c) 2013-2018 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...
apache-2.0
cunningt/fuse-bxms-integ
switchyard/switchyard-component-common-knowledge/src/main/java/org/switchyard/component/common/knowledge/annotation/Global.java
1219
/* * Copyright 2013 Red Hat Inc. and/or its affiliates and other contributors. * 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 requir...
apache-2.0
mogoweb/365browser
app/src/main/java/org/chromium/chrome/browser/tabmodel/TabPersister.java
2109
// Copyright 2015 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.chrome.browser.tabmodel; import android.util.Log; import org.chromium.chrome.browser.TabState; import java.io.File; /** * Intera...
apache-2.0
Microsoft-CISL/hadoop-prototype
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ApplicationMasterService.java
30431
/** * 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 n...
apache-2.0
SparkPost/gists-and-code-snippets
snippets/recipient-validation/validateRecipient.js
784
#!/usr/bin/env node "use strict"; //set to api.eu.sparkpost.com for EU accounts const url = 'https://api.sparkpost.com/api/v1/recipient-validation/single/'; const apiKey = process.env.SPARKPOST_API_KEY; // API key from environment variable. Should have Recipient Validation rights const recipient = 'test@gmail.com'; ...
apache-2.0
AlexTheKing/final-project
app/src/main/java/com/example/alex/restaurantx/constants/Constants.java
1689
package com.example.alex.restaurantx.constants; public interface Constants { String INTENT_EXTRA_DISH_TYPE = "EXTRA_DISH_TYPE"; String INTENT_EXTRA_RECOMMENDATIONS = "EXTRA_RECOMMENDATIONS"; String INTENT_EXTRA_DISH_NAME = "EXTRA_DISH_NAME"; String INTENT_EXTRA_HAVE_PROHIBITED = "EXTRA_HAVE_PROHIBITED...
apache-2.0
sergecodd/FireFox-OS
B2G/gecko/mobile/android/base/httpclientandroidlib/conn/HttpRoutedConnection.java
2926
/* * ==================================================================== * 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 ...
apache-2.0
citrix-openstack-build/sahara
sahara/plugins/vanilla/hadoop2/run_scripts.py
6080
# Copyright (c) 2014 Mirantis 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 writ...
apache-2.0
aaronxsu/raster-foundry
app-backend/lambda-overviews/src/main/scala/com/rasterfoundry/lambda/overviews/HttpClient.scala
3405
package com.rasterfoundry.lambda.overviews import java.util.UUID import com.rasterfoundry.datamodel._ import com.rasterfoundry.datamodel.auth.{AuthorizedToken, RefreshToken} import com.softwaremill.sttp._ import com.softwaremill.sttp.circe._ import scala.annotation.tailrec /** * HTTP client for interacting with Ra...
apache-2.0
kevinearls/camel
components/camel-spring/src/test/java/org/apache/camel/spring/JMXAgentTest.java
2446
/** * 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
sergecodd/FireFox-OS
B2G/gecko/mobile/xul/chrome/tests/browser_localerepository.js
1421
var localeList = serverRoot + "locales_list.sjs"; var PREF_LOCALE_LIST = "extensions.getLocales.get.url"; let tmp = {}; Components.utils.import("resource://gre/modules/LocaleRepository.jsm", tmp); let LocaleRepository = tmp.LocaleRepository; function test() { waitForExplicitFinish(); runNextTest(); } function en...
apache-2.0
jay-hodgson/SynapseWebClient
src/main/webapp/js/goog/debug/divconsole.js
3945
// 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 ...
apache-2.0
adam-mccoy/elasticsearch-net
src/Tests/Indices/AliasManagement/Alias/AliasApiTests.cs
2029
using System; using System.Collections.Generic; using Elasticsearch.Net; using Nest; using Tests.Framework; using Tests.Framework.Integration; using Tests.Framework.ManagedElasticsearch.Clusters; using Xunit; namespace Tests.Indices.AliasManagement.Alias { public class AliasApiTests : ApiIntegrationAgainstNewIndexTe...
apache-2.0
jjperezaguinaga/ui
app/components/host-pod/component.js
935
import Ember from 'ember'; import ReadLabels from 'ui/mixins/read-labels'; export default Ember.Component.extend(ReadLabels,{ model: null, labelResource: Ember.computed.alias('model'), classNames: ['pod','host','resource-action-hover'], classNameBindings: ['stateBorder','isMachine:machine-host'], actions: {...
apache-2.0
kevinearls/camel
camel-core/src/test/java/org/apache/camel/issues/SplitContinuedLogIssueTest.java
3321
/** * 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
thesamet/pac4j
pac4j-core/src/main/java/org/pac4j/core/context/WebContext.java
3480
/* Copyright 2012 - 2015 pac4j organization 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
mitchchn/hugo
tpl/time/time_test.go
2129
// Copyright 2017 The Hugo 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 ...
apache-2.0
nikitamarchenko/open-kilda
services/src/messaging/src/test/java/org/openkilda/messaging/ObjectSerializer.java
1778
/* Copyright 2017 Telstra Open Source * * 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 la...
apache-2.0
sverkera/camel
components/camel-netty4-http/src/test/java/org/apache/camel/component/netty4/http/NettyHttpBindingUseRelativePathInPostTest.java
3812
/** * 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
flowlo/coduno-api
model/skills.go
1527
package model // Skills we assess. // // TODO(flowlo, victorbalan): Add further categories // of assessment. type Skills struct { Readability, Security, CodingSpeed, Algorithmics float64 `json:",omitempty"` } // SkillWeights can be used to express what impact or // rating a Task has on a set of Skills. type Skill...
apache-2.0
wfxiang08/Nuitka
tests/optimizations/Conditions.py
919
# Copyright 2015, Kay Hayen, mailto:kay.hayen@gmail.com # # Python test originally created or extracted from other peoples work. The # parts from me are licensed as below. It is at least Free Softwar where # it's copied from other people. In these cases, that will normally be # indicated. # # Li...
apache-2.0
o2r-project/o2r-muncher
lib/manifest.js
17952
/* * (C) Copyright 2017 o2r project. * * 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 agree...
apache-2.0
kubernetes/kops
protokube/pkg/gossip/mesh/peer.go
3812
/* Copyright 2017 The Kubernetes 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 applicable law or agreed to in writing, ...
apache-2.0
lebedov/pyorient
pyorient/orient.py
18207
# -*- coding: utf-8 -*- """ @author: Ostico <ostico@gmail.com> """ from __future__ import print_function __author__ = 'Ostico <ostico@gmail.com>' import socket import struct import select from .exceptions import PyOrientBadMethodCallException, \ PyOrientConnectionException, PyOrientWrongProtocolVersionException,...
apache-2.0
jessie345/RetrofitAppArchitecture
app/src/main/java/com/architecture/realarchitecture/domain/DataFrom.java
133
package com.architecture.realarchitecture.domain; /** * Created by liushuo on 16/3/17. */ public enum DataFrom { CACHE, NET }
apache-2.0
api-ai/libapiai
apiai/src/query/request/Parameters.cpp
2183
/** * Copyright 2017 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 appli...
apache-2.0
jamiepg1/jetty.project
jetty-client/src/main/java/org/eclipse/jetty/client/HttpClient.java
28330
// ======================================================================== // Copyright (c) 2006-2009 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of th...
apache-2.0
mrphoebs/Lois
src/main/java/com/flipkart/lois/channel/api/ReceiveChannel.java
3335
/** * Copyright 2014 Flipkart Internet, pvt ltd. * * 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
pfirmstone/JGDMS
qa/jtreg/net/jini/jeri/ssl/UnitTests/TestPerformance.java
21248
/* * 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 m...
apache-2.0
rsocket/rsocket-java
rsocket-transport-local/src/main/java/io/rsocket/transport/local/package-info.java
764
/* * Copyright 2015-2018 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 app...
apache-2.0
mouhong/ARSoft.Tools.Net
src/ARSoft.Tools.Net/Dns/DnsRecord/TlsaRecord.cs
6283
#region Copyright and License // Copyright 2010..2014 Alexander Reinert // // This file is part of the ARSoft.Tools.Net - C# DNS client/server and SPF Library (http://arsofttoolsnet.codeplex.com/) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance ...
apache-2.0
Frouk/zulip
frontend_tests/casper_tests/11-admin.js
6788
var common = require('../casper_lib/common.js').common; var test_credentials = require('../casper_lib/test_credentials.js').test_credentials; common.start_and_log_in(); casper.then(function () { casper.test.info('Administration page'); casper.click('a[href^="#administration"]'); casper.test.assertUrlMatch...
apache-2.0
klisly/fingerpoetry
app/src/main/java/com/klisly/bookbox/ottoevent/ProfileUpdateEvent.java
76
package com.klisly.bookbox.ottoevent; public class ProfileUpdateEvent { }
apache-2.0
songweijia/fffs
sources/hadoop-2.4.1-src/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestAbandonBlock.java
4752
/** * 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
mahak/vitess
go/vt/orchestrator/inst/instance_test.go
8330
/* Copyright 2014 Outbrain 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 w...
apache-2.0
looker-open-source/java-spanner
google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ReplaceableForwardingResultSetTest.java
12146
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
apache-2.0
apache/sis
core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/provider/DatumShiftMethod.java
2792
/* * 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
michaelschiff/druid
integration-tests/src/test/java/org/apache/druid/tests/indexer/ITParallelIndexTest.java
4666
/* * 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
tjad/qpid_messaging
examples/client.rb
1696
# # 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
chenc10/Spark-PAF
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveInspectors.scala
41920
/* * 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
partofthething/home-assistant
homeassistant/components/downloader/__init__.py
5705
"""Support for functionality to download files.""" import logging import os import re import threading import requests import voluptuous as vol from homeassistant.const import HTTP_OK import homeassistant.helpers.config_validation as cv from homeassistant.util import raise_if_invalid_filename, raise_if_invalid_path ...
apache-2.0
rrdial/bing-ads-sdk-v9
src/BingAds/CampaignManagement/DeleteMediaResponse.php
368
<?php namespace BingAds\CampaignManagement; /** * Deletes the specified media from an account's media library. * * @link http://msdn.microsoft.com/en-us/library/dn766193(v=msads.90).aspx DeleteMedia Response Object * * @uses BatchError * @used-by BingAdsCampaignManagementService::DeleteMedia */ final class Del...
apache-2.0
InspectorConstructor/lemon-webgl
mathjs/mathjs/lib/function/arithmetic/abs.js
1155
module.exports = function (math) { var util = require('../../util/index.js'), Complex = require('../../type/Complex.js'), Matrix = require('../../type/Matrix.js'), collection = require('../../type/collection.js'), isNumBool = util.number.isNumBool, isComplex = Complex.isComplex, ...
apache-2.0
Optima-Energy-Systems/EntityFramework-DbMigrator
DbMigrator.Tests/Utils/ConsoleOutputCapture.cs
710
using System; using System.IO; namespace DbMigrator.Tests.Utils { public sealed class ConsoleOutputCapture : IDisposable { private readonly StringWriter _stringWriter; private readonly TextWriter _originalOutput; public ConsoleOutputCapture() { _stringWriter = new ...
apache-2.0
apache/openwebbeans
webbeans-impl/src/main/java/org/apache/webbeans/custom/CustomProxyPackageMarker.java
885
/* * 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 ma...
apache-2.0
lrytz/scala
src/compiler/scala/tools/nsc/transform/UnCurry.scala
40586
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala package tools.ns...
apache-2.0
AlexanderMatveenko/omim
map/map_tests/bookmarks_test.cpp
22077
#include "testing/testing.hpp" #include "drape_frontend/visual_params.hpp" #include "indexer/data_header.hpp" #include "map/framework.hpp" #include "search/result.hpp" #include "platform/platform.hpp" #include "platform/preferred_languages.hpp" #include "coding/internal/file_data.hpp" #include "std/fstream.hpp" ...
apache-2.0
csulennon/GreenDamFileExploere
GreenDamExplorer/src/com/cmcm/greendamexplorer/view/VideoInfoDialog.java
5256
package com.cmcm.greendamexplorer.view; import java.io.File; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; impo...
apache-2.0
ebayopensource/turmeric-runtime
integration-tests/ProtoBufFindItemService/src/main/java/com/ebay/marketplace/search/v1/services/DistributionResponse.java
2378
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-792 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2011...
apache-2.0
Mahoney/wiremock
src/main/java/com/github/tomakehurst/wiremock/extension/responsetemplating/helpers/HelperUtils.java
1522
/* * 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
ironbee/ironbee
include/ironbeepp/module_delegate.hpp
2373
/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this file to You under ...
apache-2.0
benjvi/go-cloudstack
cloudstack43/ConfigurationService.go
15695
// // Copyright 2014, Sander van Harmelen // // 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
lsst-camera-dh/snakeyaml
src/main/java/org/yaml/snakeyaml/constructor/CustomClassLoaderConstructor.java
1410
/** * Copyright (c) 2008-2014, http://www.snakeyaml.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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
apache-2.0
raja15792/googleads-java-lib
examples/dfp_axis/src/main/java/dfp/axis/v201505/ratecardservice/CreateRateCards.java
3249
// Copyright 2015 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
xchenum/quantum
quantum/plugins/cisco/db/network_db_v2.py
17431
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2012, Cisco Systems, 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...
apache-2.0
joroKr21/emma
emma-flink/src/main/scala/org/emmalanguage/api/FlinkMutableBag.scala
2430
/* * Copyright © 2014 TU Berlin (emma@dima.tu-berlin.de) * * 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
VPashkov/roslyn
src/Test/Utilities/Shared/Assert/ConditionalFactAttribute.cs
1663
// 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.Text; using Xunit; namespace Roslyn.Test.Utilities { public class ConditionalFactAttribute : FactAttribute { publ...
apache-2.0
cedral/aws-sdk-cpp
aws-cpp-sdk-workmail/source/model/DeleteAliasResult.cpp
1265
/* * Copyright 2010-2017 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" fil...
apache-2.0
stari4ek/ExoPlayer
library/core/src/main/java/com/google/android/exoplayer2/source/EmptySampleStream.java
1343
/* * Copyright (C) 2017 The Android Open Source Project * * 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 appl...
apache-2.0
charliemblack/geode
geode-core/src/test/java/org/apache/geode/security/query/PdxQuerySecurityAllowedQueriesDUnitTest.java
3021
/* * 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
ropik/TypeScript
tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js
624
//// [complicatedGenericRecursiveBaseClassReference.ts] class S18<B, A, C> extends S18<A[], { S19: A; (): A }[], C[]> { } (new S18(123)).S18 = 0; //// [complicatedGenericRecursiveBaseClassReference.js] var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p...
apache-2.0
strapdata/elassandra
server/src/main/java/org/apache/cassandra/service/ElassandraDaemon.java
25751
/* * Copyright (c) 2017 Strapdata (http://www.strapdata.com) * Contains some code from Elasticsearch (http://www.elastic.co) * * 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
rulebook-rules/rulebook
rulebook-core/src/main/java/com/deliveredtechnologies/rulebook/Referable.java
328
package com.deliveredtechnologies.rulebook; /** * An object with a reference to another object. */ public interface Referable<T> { /** * Gets the object referred to. * @return the object */ T getValue(); /** * Sets the object to be referred to. * @param obj the object */ void setValue(T ...
apache-2.0
traylenator/puppetlabs-apache
spec/spec_helper_acceptance_local.rb
7748
# frozen_string_literal: true require 'singleton' require_relative '../util/apache_mod_platform_support' class LitmusHelper include Singleton include PuppetLitmus end class ApacheModTestFilterHelper include Singleton def initialize_ampc(os) @ampc = ApacheModPlatformCompatibility.new @ampc.generate_s...
apache-2.0
buzzdeee/puppet-bsd
spec/unit/bsd/hostname_if/wifi_spec.rb
964
require 'puppet_x/bsd/hostname_if/wifi' describe 'Wifi' do subject(:wifiif) { HostnameIf::Wifi } describe 'content' do it 'supports a minimal example' do c = { network_name: 'myssid' } expect(wifiif.new(c).content).to match(%r{nwid myssid}) end it 'supports a minimal example...
apache-2.0
christian-posta/spring-boot
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/security/AuthorizationAuditListenerTests.java
2102
/* * Copyright 2012-2013 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
brudaswen/ArtHook
lib/src/main/java/de/larma/arthook/Memory.java
2334
/* * Copyright 2014-2015 Marvin Wißfeld * * 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 ag...
apache-2.0
apache/portals-pluto
demo/chat-room-demo-portlet/src/main/java/org/apache/portals/pluto/demo/chat/HelloWorldRender.java
2160
/* 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"); y...
apache-2.0
agile-geoscience/agilegeo
bruges/bruges.py
191
# -*- coding: utf-8 -*- """ Generic error class. :copyright: 2015 Agile Geoscience :license: Apache 2.0 """ class BrugesError(Exception): """ Generic error class. """ pass
apache-2.0
trejkaz/derby
java/engine/org/apache/derby/impl/sql/compile/ExpressionClassBuilder.java
25935
/* Derby - Class org.apache.derby.impl.sql.compile.ExpressionClassBuilder 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 fi...
apache-2.0
marktriggs/nyu-sakai-10.4
saml/saml-api/api/src/java/edu/nyu/classes/saml/api/SamlService.java
191
package edu.nyu.classes.saml.api; import javax.servlet.http.HttpServletRequest; public interface SamlService { public SamlAuthResponse handleSamlAuthentication(HttpServletRequest req); }
apache-2.0
bergerch/library
src/main/java/bftsmart/communication/client/netty/NettyClientPipelineFactory.java
1950
/** Copyright (c) 2007-2013 Alysson Bessani, Eduardo Alchieri, Paulo Sousa, and the authors indicated in 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.apache.org/licen...
apache-2.0
supercheetah/diceroller
pyinstaller/buildtests/basic/test_pkg_structures.py
1265
# Copyright (C) 2005, Giovanni Bajo # Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. # # 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...
artistic-2.0
bigfatpanda-training/pandas-practical-python-primer
training/level-4-creating-web-services/bfp-reference/exercise_10/friends_api/friends.py
3316
from flask import Flask, jsonify, make_response, request, Response from werkzeug.exceptions import BadRequest from friends_api import datastore app = Flask(__name__) @app.route('/api/v1/friends', methods=['GET']) def friends() -> Response: """ Return a representation of the collection of friend resources. ...
artistic-2.0
joshka/homebrew-cask
Casks/microsoft-remote-desktop.rb
1390
cask "microsoft-remote-desktop" do version "10.6.1" sha256 "d3669079c39ca6f6f78111cc09cb645dc7f300fa9d3a8e975a7ce377338f0332" url "https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_Remote_Desktop_#{version}_installer.pkg", verified: "officecdn-mic...
bsd-2-clause
MatterHackers/agg-sharp
geometry3Sharp/spatial/SegmentHashGrid.cs
7388
using System; using System.Collections.Generic; using System.Threading; namespace g3 { /// <summary> /// Hash Grid for 2D segments. You provide the 'segment' type. If you have an indexable /// set of segments this can just be int, or can be more complex segment data structure /// (but be careful w/ structs...) ...
bsd-2-clause
wmakeev/jsonix
nodejs/scripts/tests/request.js
1243
var Jsonix = require('../jsonix').Jsonix; var http = require('http'); var static = require('node-static'); var server; module.exports = { setUp: function(callback) { var file = new static.Server('./tests'); server = http.createServer(function (request, response) { console.log('SERVER: Serving the request [' +...
bsd-2-clause
bcg62/homebrew-core
Formula/abcmidi.rb
1624
class Abcmidi < Formula desc "Converts abc music notation files to MIDI files" homepage "https://www.ifdo.ca/~seymour/runabc/top.html" url "https://ifdo.ca/~seymour/runabc/abcMIDI-2019.02.08.zip" sha256 "156c6a441fcec7e467f6eef943c78922f3e0dc84fb631eb949a9fa159de48b27" bottle do cellar :any_skip_relocati...
bsd-2-clause
yuryleb/osrm-backend
src/benchmarks/static_rtree.cpp
3182
#include "util/static_rtree.hpp" #include "extractor/edge_based_node_segment.hpp" #include "extractor/files.hpp" #include "extractor/packed_osm_ids.hpp" #include "extractor/query_node.hpp" #include "mocks/mock_datafacade.hpp" #include "storage/io.hpp" #include "engine/geospatial_query.hpp" #include "util/coordinate.hp...
bsd-2-clause
astrofrog/hyperion
hyperion/grid/tests/test_io.py
7060
from copy import deepcopy import h5py import numpy as np from astropy.tests.helper import pytest from ...util.functions import random_id from .. import CartesianGrid, \ CylindricalPolarGrid, \ SphericalPolarGrid, \ AMRGrid, \ OctreeGrid ALL_GRID_TYPES = ['c...
bsd-2-clause
runneremerson/falcondb
deps/rocksdb-4.2/util/histogram.cc
7107
// Copyright (c) 2013, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // // Copyright (c) 2011 The...
bsd-2-clause
GeotrekCE/Geotrek-admin
geotrek/trekking/migrations/0001_initial.py
21451
from django.conf import settings from django.db import migrations, models import mapentity.models import django.contrib.gis.db.models.fields import geotrek.common.mixins import django.core.validators import geotrek.authent.models class Migration(migrations.Migration): dependencies = [ ('tourism', '0001_i...
bsd-2-clause
arnebp/tet-csharp-client
sdk/Utils/GazeUtils.cs
12035
/* * Copyright (c) 2013-present, The Eye Tribe. * All rights reserved. * * This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. * */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using EyeTribe.Cli...
bsd-2-clause
AnastasiaSulyagina/brew
Library/Homebrew/formula_versions.rb
2389
require "formula" class FormulaVersions IGNORED_EXCEPTIONS = [ ArgumentError, NameError, SyntaxError, TypeError, FormulaSpecificationError, FormulaValidationError, ErrorDuringExecution, LoadError, FormulaMethodDeprecatedError ] attr_reader :name, :path, :repository, :entry_name def initialize(for...
bsd-2-clause
reclosedev/requests-cache
tests/unit/test_session.py
30303
"""CachedSession + BaseCache tests that use mocked responses only""" # TODO: This could be split up into some smaller test modules import json import time from collections import UserDict, defaultdict from datetime import datetime, timedelta from pickle import PickleError from unittest.mock import patch from urllib.par...
bsd-2-clause
pfusik/sooda
tests/UnitTestObjects/PKDateTime.cs
2188
// // Copyright (c) 2003-2006 Jaroslaw Kowalski <jaak@jkowalski.net> // Copyright (c) 2006-2014 Piotr Fusik <piotr@fusik.info> // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: //...
bsd-2-clause