repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
netscaler/neutron
neutron/plugins/mlnx/common/config.py
2466
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2013 Mellanox Technologies, 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 # #...
apache-2.0
adrian-wang/panthera-parser
src/main/java/com/intel/ssg/dcst/panthera/parse/sql/transformer/fb/processor/CompareProcessor4C.java
1226
/* * 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
opennetworkinglab/onos
protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/OsgiPropertyConstants.java
1510
/* * Copyright 2018-present Open Networking 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 appli...
apache-2.0
chirino/activemq
activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/joram/JoramJmsTest.java
3274
/** * 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
cwsus/esolutions
eSolutionsCore/src/main/java/com/cws/esolutions/core/listeners/CoreServiceInitializer.java
9283
/* * Copyright (c) 2009 - 2020 CaspersBox Web Services * * 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
nathanielvarona/airflow
airflow/api_connexion/schemas/dag_schema.py
3698
# 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 u...
apache-2.0
googleapis/google-cloud-ruby
google-cloud-os_config-v1/snippets/os_config_service/get_patch_job.rb
1252
# frozen_string_literal: true # Copyright 2021 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 applicabl...
apache-2.0
pimusicbox/mopidy-musicbox-webclient
tests/js/test_custom_scripting.js
960
var chai = require('chai') var expect = chai.expect var assert = chai.assert chai.use(require('chai-string')) chai.use(require('chai-jquery')) var sinon = require('sinon') var configureJQueryMobile = require('../../mopidy_musicbox_webclient/static/js/custom_scripting.js') describe('jQuery Defaults', function () { ...
apache-2.0
kigsmtua/estatio
estatioapp/integspecs/src/test/java/org/estatio/integspecs/glue/InMemoryDBForEstatio.java
2152
/** * 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"); yo...
apache-2.0
puppetlabs/puppetlabs-dsc
lib/puppet/type/dsc_xazuresqldatabaseserverfirewallrule.rb
5875
require 'pathname' Puppet::Type.newtype(:dsc_xazuresqldatabaseserverfirewallrule) do require Pathname.new(__FILE__).dirname + '../../' + 'puppet/type/base_dsc' require Pathname.new(__FILE__).dirname + '../../puppet_x/puppetlabs/dsc_type_helpers' @doc = %q{ The DSC xAzureSqlDatabaseServerFirewallRule resour...
apache-2.0
EdiaEducationTechnology/uPortal
uportal-war/src/main/java/org/jasig/portal/events/aggr/login/LoginPortalEventAggregator.java
3302
/** * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in co...
apache-2.0
JetBrains/ttorrent-lib
common/src/main/java/com/turn/ttorrent/common/TorrentFile.java
1045
package com.turn.ttorrent.common; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.io.File; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /** * @author dgiffin * @author mpetazzoni */ public class TorrentFile { @NotNull public fi...
apache-2.0
shamim8888/SMSlib-ParallelPort
opensis1/modules/Student_Billing/Statements.php
2808
<?php /** * @file $Id: Statements.php 422 2007-02-10 22:08:22Z focus-sis $ * @package Focus/SIS * @copyright Copyright (C) 2006 Andrew Schmadeke. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt * Focus/SIS is free software. This version may have been modified pursuant * to ...
apache-2.0
pakdev/roslyn-analyzers
src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Security/UseXmlReaderBase.cs
4532
// 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 Analyzer.Utilities; using Analyzer.Utilities.Extensions; using Microsoft.CodeAnalysis; using Microsoft...
apache-2.0
bdobyns/OpenRQ
src/main/net/fec/openrq/util/io/printing/appendable/StringBufferWrapper.java
414
package net.fec.openrq.util.io.printing.appendable; /** * @author Ricardo Fonseca &lt;rfonseca&#064;lasige.di.fc.ul.pt&gt; */ final class StringBufferWrapper extends AppendableWrapper<StringBuffer> { public StringBufferWrapper(StringBuffer sb) { super(sb); } @Override public v...
apache-2.0
mahak/cinder
cinder/cmd/scheduler.py
2051
#!/usr/bin/env python # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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. ...
apache-2.0
evandor/skysail-server
skysail.client/src/app/app.component.ts
910
import { Component, OnInit } from '@angular/core'; import { NavbarComponent } from './navbar/navbar.component' import { BreadcrumbModule, PanelMenuModule, MenuItem } from 'primeng/primeng'; import {BackendService} from './services/backend.service' @Component({ selector: 'app-root', templateUrl: './app.component.ht...
apache-2.0
joelaha/devopsdays-web
themes/devopsdays-legacy/static/js/googlemaps_content.js
4466
function initialize() { <!-- http://stackoverflow.com/questions/3472040/rgb-value-to-hsl-converter --> <!-- 197° - 78% 38% --> var darkStyle = [{ featureType: 'water', elementType: 'all', stylers: [ {visibility: 'simplified'} , ] }]; var homeLatLng=new google.maps.LatLng(40.4419, -7...
apache-2.0
twitter/heron
heron/spi/src/java/org/apache/heron/spi/common/Key.java
13825
/** * 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
ninqing/tddl
tddl-executor/src/main/java/com/taobao/tddl/executor/function/scalar/datatime/Time.java
1390
package com.taobao.tddl.executor.function.scalar.datatime; import com.taobao.tddl.executor.common.ExecutionContext; import com.taobao.tddl.executor.function.ScalarFunction; import com.taobao.tddl.executor.utils.ExecUtils; import com.taobao.tddl.optimizer.core.datatype.DataType; /** * Extracts the time part o...
apache-2.0
zhouluoyang/openfire
src/java/org/jivesoftware/util/PropertyClusterEventTask.java
3263
/** * $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://...
apache-2.0
anupsabraham/store_tv_player
django_project/store_cms/store_cms/wsgi.py
394
""" WSGI config for store_cms project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SET...
apache-2.0
openhab/openhab.pebble
src/js/item.js
1500
// Copyright 2015 Richard Lee // // 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 wr...
apache-2.0
osrf/opensplice
src/api/dcps/java5/common/java/code/org/opensplice/dds/core/TimeOutExceptionImpl.java
1601
/* * Vortex OpenSplice * * This software and documentation are Copyright 2006 to TO_YEAR ADLINK * Technology Limited, its affiliated companies and licensors. All rights * reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file...
apache-2.0
ibm-contribs/kubernetes
pkg/api/v1/helpers_test.go
11833
/* Copyright 2015 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
iychoi/syndicate
old/md-service/SMDS/content.py
2089
#!/usr/bin/python from SMDS.db import Row, Table import SMDS.logger as logger from SMDS.parameter import Parameter, Mixed from SMDS.filter import Filter from types import * class Content(Row): table_name = 'contents' primary_key = 'content_id' join_tables = ['user_content'] fields = { 'cont...
apache-2.0
aglne/dubbo
dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/builders/MethodBuilder.java
6105
/* * 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
hudsonwoods/hudson_woods
app/scripts/non_cat/in-the-area.js
25041
var map = L.map('map', { center: [41.77197384322616, -74.20966662406921], zoom: 10, scrollWheelZoom: false }); L.tileLayer('http://a.tiles.mapbox.com/v3/sandersonj.i245n6m6/{z}/{x}/{y}.png', { maxZoom: 18, id: 'examples.map-20v6611k' }).addTo(map); //array to store layers for each feature type var m...
apache-2.0
johnluetke/StatTracker
src/BlueHerons/StatTracker/Agent.php
23217
<?php namespace BlueHerons\StatTracker; use StdClass; use DateTime; use Exception; use BlueHerons\StatTracker\StatTracker; class Agent { public $name; public $token; public $faction; public $level; public $stats; const TOKEN_WEB = "WebApp"; /** * Returns the registered Agent for t...
apache-2.0
jbonofre/beam
sdks/python/apache_beam/runners/portability/universal_local_runner_test.py
3635
# # 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 us...
apache-2.0
N03297857/2017Fall
node_modules/common-tags/es/TemplateTag/index.js
429
'use strict'; import _default from './TemplateTag'; export { _default as default }; //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9UZW1wbGF0ZVRhZy9pbmRleC5qcyJdLCJuYW1lcyI6WyJkZWZhdWx0Il0sIm1hcHBpbmdzIjoiQUFBQTs7cUJBRW9CLGU7cUJBQWJBLE8iLCJmaWxlIjoiaW5kZXg...
apache-2.0
ctetreault/Cordova-Kitchen-Sink
src/views/integration/video-editor/VideoEditorCtrl.js
1227
/* Copyright 2015 BlackBerry 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 or agreed to in writing, softwar...
apache-2.0
kares/killbill
overdue/src/test/java/org/killbill/billing/overdue/notification/TestDefaultOverdueCheckPoster.java
5032
/* * Copyright 2010-2013 Ning, Inc. * * Ning 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 required by a...
apache-2.0
yangming85/phabricator
src/applications/diviner/publisher/DivinerPublisher.php
4214
<?php abstract class DivinerPublisher { private $atomCache; private $atomGraphHashToNodeHashMap; private $atomMap = array(); private $renderer; private $config; private $symbolReverseMap; private $dropCaches; public function setDropCaches($drop_caches) { $this->dropCaches = $drop_caches; retu...
apache-2.0
ciandt-dev/tech-gallery
src/main/java/com/ciandt/techgallery/service/impl/RecommendationServiceImpl.java
2696
package com.ciandt.techgallery.service.impl; import com.google.api.server.spi.response.BadRequestException; import com.google.api.server.spi.response.InternalServerErrorException; import com.google.api.server.spi.response.NotFoundException; import com.google.appengine.api.users.User; import com.ciandt.techgallery.per...
apache-2.0
TahaHachana/XPlot
tests/TestData/XPlot.Plotly/js/pie/pie-2.js
187
<script>vardata=[{"type":"pie","labels":["Residential","Non-Residential","Utility"],"values":[19,26,55]}];varlayout={"width":500.0,"height":400.0};Plotly.newPlot('',data,layout);</script>
apache-2.0
apache/jena
jena-arq/src/main/java/org/apache/jena/sparql/exec/UpdateExecDatasetBuilder.java
5902
/* * 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
zorzella/test-libraries-for-java
src/main/java/com/google/common/testing/TearDownStack.java
2011
/* * Copyright (C) 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 ...
apache-2.0
ctomc/undertow
core/src/main/java/io/undertow/UndertowMessages.java
25850
/* * 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 Licen...
apache-2.0
varunarya10/rally
rally/benchmark/wrappers/network.py
14475
# Copyright 2014: Mirantis 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 b...
apache-2.0
jexp/idea2
platform/lang-api/src/com/intellij/execution/filters/RegexpFilter.java
6436
/* * Copyright 2000-2009 JetBrains s.r.o. * * 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
GoogleCloudPlatform/python-docs-samples
composer/workflows/connections_test.py
1020
# 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
jwagenleitner/groovy
src/main/java/org/codehaus/groovy/ast/AnnotatedNode.java
3871
/* * 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")...
apache-2.0
eSCT/oppfin
src/test/java/test/searchbox/core/ref/ReflectionUtilsTest.java
1119
package test.searchbox.core.ref; import java.util.ArrayList; import java.util.List; import org.junit.Test; import com.searchbox.core.ref.ReflectionUtils; public class ReflectionUtilsTest { @Test public void testPermutations() { Object[][] parameters = new Object[3][]; List<Object> firstParam = new Ar...
apache-2.0
google/cel-go
common/types/pb/type_test.go
13249
// 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 in ...
apache-2.0
software-engineering-amsterdam/poly-ql
Nisha/src/expr/relational/GEq.java
486
package expr.relational; import java.util.Map; import ast.Visitor; import ast.type.Booltype; import ast.type.Type; import expr.Expr; import expr.Ident; import expr.operation.Operation; public class GEq extends Operation{ public GEq(Expr lhs, Expr rhs) { super(lhs, rhs); } @Override public...
apache-2.0
sapbuild/node-sap-promise
test/S1-PromiseState.spec.js
13698
'use strict'; var assert = require('chai').assert; var Promise = require('./promise'); // Helper functions var helper = require('./helper/helper.js'); helper.assert = assert; var testFailed = helper.testFailed; var preventOnFulfilled = helper.preventOnFulfilled; function PromiseWrapper() { var self = this; th...
apache-2.0
projectkudu/AzureFunctions
client-react/src/pages/app/functions/function/monitor/tabs/entities/FunctionEntitiesDataLoader.tsx
2483
import React, { useState, useEffect } from 'react'; import FunctionEntitiesData from './FunctionEntities.data'; import FunctionEntities from './FunctionEntities'; import { AppInsightsEntityTrace, AppInsightsEntityTraceDetail } from '../../../../../../../models/app-insights'; interface FunctionEntitiesDataLoaderProps {...
apache-2.0
dghubble/matchbox
vendor/github.com/coreos/container-linux-config-transpiler/config/types/systemd.go
1893
// Copyright 2016 CoreOS, 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...
apache-2.0
style95/openwhisk
common/scala/src/main/scala/org/apache/openwhisk/core/yarn/YARNContainerInfoActor.scala
5092
/* * 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
EvilMcJerkface/tidb
executor/partition_table_test.go
9843
// Copyright 2020 PingCAP, 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 i...
apache-2.0
trivium-io/trivium
src/io/trivium/dep/com/google/common/hash/MessageDigestHashFunction.java
4681
/* * Copyright (C) 2011 The Guava 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 ...
apache-2.0
awslabs/aws-sdk-java-resources
aws-resources-glacier/src/main/java/com/amazonaws/resources/glacier/Glacier.java
2991
/* * Copyright 2014 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" ...
apache-2.0
shahmishal/swift
utils/swift_build_support/swift_build_support/products/sourcekitlsp.py
1276
# swift_build_support/products/sourcekitlsp.py -------------------*- python -*- # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.t...
apache-2.0
jsonking/mongo-java-driver
bson/src/main/org/bson/json/ExtendedJsonDecimal128Converter.java
997
/* * Copyright 2017 MongoDB, 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
jhalterman/modelmapper
core/src/test/java/org/modelmapper/internal/converter/MapConverterTest.java
5227
package org.modelmapper.internal.converter; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertFalse; import static org.testng.Assert.assertTrue; import java.lang.reflect.Type; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Collections; import java...
apache-2.0
tviho/spartancoinj
core/src/main/java/com/google/spartancoin/wallet/CoinSelector.java
653
package com.google.spartancoin.wallet; import com.google.spartancoin.core.TransactionOutput; import java.math.BigInteger; import java.util.LinkedList; /** * A CoinSelector is responsible for picking some outputs to spend, from the list of all spendable outputs. It * allows you to customize the policies for creatio...
apache-2.0
cuckoohello/mCotton
app/lib/collections/5_datamessages.js
1832
/** * Created by chenhao on 15/4/16. */ Collections.DataMessages = new Mongo.Collection('datamessages'); Schemas.DataMessage = new SimpleSchema({ owner_user_id: { type: String, label: "meteor.User _id", optional: false, }, device_id: { type: String, label: "device_id", ...
apache-2.0
tempbottle/ginsing
src/main.cc
4809
/* Copyright (c) 2013 Author: Jeff Weisberg <jaw @ solvemedia.com> Created: 2013-Jan-04 10:49 (EST) Function: main */ #include "defs.h" #include "diag.h" #include "daemon.h" #include "config.h" #include "hrtime.h" #include "thread.h" #include "runmode.h" #include "zdb.h" #include <stdlib.h> #include <stdio.h>...
apache-2.0
realsystem/CloudFerry
cloudferrylib/os/image/glance_image.py
16344
# 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 writing, so...
apache-2.0
apache/incubator-systemml
src/test/java/org/apache/sysds/test/functions/io/proto/FrameReaderWriterProtoTest.java
3191
/* * 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
skibey/libxcam
xcore/cl_context.cpp
16248
/* * cl_context.cpp - CL context * * Copyright (c) 2015 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
apache-2.0
medgar/click
examples/src/org/apache/click/examples/page/general/PageImportsExample.java
2276
/* * 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")...
apache-2.0
bmaxa/changes_and_fixes
src/test/run-pass/newtype.rs
763
// Copyright 2012 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
garpinc/pac4j
pac4j-saml/src/main/java/org/pac4j/saml/metadata/SAML2ServiceProvicerRequestedAttribute.java
2026
package org.pac4j.saml.metadata; import java.io.Serializable; /** * This is {@link SAML2ServiceProvicerRequestedAttribute}. * * @author Misagh Moayyed */ public class SAML2ServiceProvicerRequestedAttribute implements Serializable { private static final long serialVersionUID = 1040516205957826527L; public...
apache-2.0
ClarenceAu/log4j2
log4j-taglib/src/test/java/org/apache/logging/log4j/taglib/ErrorTagTest.java
1141
/* * 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
nknize/elasticsearch
x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/cluster/routing/allocation/DataTierAllocationDeciderTests.java
40490
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.cluster.routing.allocation; import org.elast...
apache-2.0
google/gvisor
test/syscalls/linux/sigreturn_amd64.cc
4612
// Copyright 2018 The gVisor 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 agree...
apache-2.0
lrytz/scala
src/compiler/scala/tools/nsc/transform/TailCalls.scala
20888
/* * 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
onesocialweb/osw-web
src/org/onesocialweb/gwt/client/ui/widget/compose/TextareaUpdate.java
1658
/* * Copyright 2010 Vodafone Group Services 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 appli...
apache-2.0
concordion/concordion-net
Concordion.Spec/Support/EventRecorder.cs
1177
using System; using System.Collections.Generic; using System.Linq; using Concordion.Api.Listener; namespace Concordion.Spec.Support { public class EventRecorder : IAssertEqualsListener, IExceptionCaughtListener { private readonly List<Object> m_Events; public EventRecorder() ...
apache-2.0
dbs-leipzig/gradoop
gradoop-flink/src/test/java/org/gradoop/flink/model/impl/operators/matching/transactional/TransactionalPatternMatchingTest.java
7188
/* * Copyright © 2014 - 2021 Leipzig University (Database Research Group) * * 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 * * Unles...
apache-2.0
wangjun/smile
src/main/java/me/zsj/smile/utils/ScreenUtils.java
837
package me.zsj.smile.utils; import android.content.Context; import android.util.DisplayMetrics; import android.view.WindowManager; /** * Created by acer on 2015/8/4 0004. */ public class ScreenUtils { public static int getWidth(Context context) { WindowManager manager = (WindowManager) context.getSyst...
apache-2.0
cloudstax/openmanage
pkg/containersvc/memcontainersvc.go
6238
package containersvc import ( "strings" "sync" "github.com/golang/glog" "golang.org/x/net/context" "github.com/cloudstax/firecamp/api/common" ) const keySep = ":" type taskItem struct { service string containerInstanceID string } type MemContainerSvc struct { mlock *sync.Mutex // key: cluster...
apache-2.0
AndiHappy/solo
src/main/java/org/b3log/solo/processor/CaptchaProcessor.java
5853
/* * Copyright (c) 2010-2017, b3log.org & hacpai.com * * 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
GoogleCloudPlatform/google-cloud-visualstudio
GoogleCloudExtension/GoogleCloudExtension/Utils/ToolWindowCommandUtils.cs
3668
// 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 applicabl...
apache-2.0
ProxyBuilder/proxybuilder
testusage/src/main/java/org/rapidpm/proxybuilder/proxy/generated/v011/FooTop.java
1379
/** * Copyright © 2013 Sven Ruppert (sven.ruppert@gmail.com) * * 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...
apache-2.0
yangyunfeng666/AndBase
src/com/ab/util/AbFileUtil.java
30538
/* * Copyright (C) 2012 www.amsoft.cn * * 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
DevendraDahiphale/StronglyConnectedComponentsMapreduce
src/main/java/pad/ClusterWritable.java
2547
/** * @file ClusterWritable.java * @brief Data structure used to write a cluster on hdfs files. * @author Federico Conte (draxent) * * Copyright 2015 Federico Conte * https://github.com/Draxent/ConnectedComponents * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this f...
apache-2.0
bitclaw/netsuite-php
src/Classes/SearchLongCustomField.php
305
<?php namespace Fungku\NetSuite\Classes; class SearchLongCustomField extends SearchCustomField { public $searchValue; public $searchValue2; public $operator; static $paramtypesmap = array( "searchValue" => "integer", "searchValue2" => "integer", "operator" => "SearchLongFieldOperator", ); }
apache-2.0
gooljim/android-volley
app/build/generated/source/buildConfig/debug/com/android/volley/BuildConfig.java
443
/** * Automatically generated file. DO NOT MODIFY */ package com.android.volley; public final class BuildConfig { public static final boolean DEBUG = Boolean.parseBoolean("true"); public static final String APPLICATION_ID = "com.android.volley"; public static final String BUILD_TYPE = "debug"; public static ...
apache-2.0
walterDurin/stickycode
net.stickycode/sticky-exception/src/main/java/net/stickycode/exception/resolver/FragmentIterator.java
1776
package net.stickycode.exception.resolver; import java.util.Iterator; public class FragmentIterator implements Iterator<Fragment> { private String message; private int index; private int nextQuote; private int nextParameter; public FragmentIterator(String message) { this.message = message; ...
apache-2.0
apache/activemq-activeio
activeio-core/src/main/java/org/apache/activeio/packet/ByteArrayPacket.java
6591
/** * * 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
sverkera/camel
components/camel-spring/src/test/java/org/apache/camel/spring/processor/SpringRouteStartupOrderTest.java
1315
/** * 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
lance-gg/lance
src/game/Timer.js
2530
// TODO: needs documentation // I think the API could be simpler // - Timer.run(waitSteps, cb) // - Timer.repeat(waitSteps, count, cb) // count=null=>forever // - Timer.cancel(cb) export default class Timer { constructor() { this.currentTime = 0; this.isActive = false; this.idCounter ...
apache-2.0
deeplearning4j/DataVec
datavec-spark-inference-parent/datavec-spark-inference-server/src/main/java/org/datavec/spark/transform/SparkTransformServerChooser.java
1676
package org.datavec.spark.transform; import lombok.Data; import lombok.extern.slf4j.Slf4j; import java.io.InvalidClassException; import java.util.Arrays; import java.util.List; /** * Created by kepricon on 17. 6. 20. */ @Data @Slf4j public class SparkTransformServerChooser { private SparkTransformServer sparkT...
apache-2.0
w1ll1am23/home-assistant
homeassistant/components/fritzbox_callmonitor/__init__.py
2690
"""The fritzbox_callmonitor integration.""" from asyncio import gather import logging from fritzconnection.core.exceptions import FritzConnectionException, FritzSecurityError from requests.exceptions import ConnectionError as RequestsConnectionError from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERN...
apache-2.0
brennentsmith/teletraan
deploy-service/teletraanservice/src/main/java/com/pinterest/teletraan/TeletraanServiceConfiguration.java
7392
/** * Copyright 2016 Pinterest, 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
Rikkola/kie-wb-common
kie-wb-common-dmn/kie-wb-common-dmn-webapp-kogito-common/src/main/java/org/kie/workbench/common/dmn/webapp/kogito/common/client/editor/DMNProjectToolbarStateHandler.java
3513
/* * Copyright 2019 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
fuhongliang/2015weitonghui
Application/User/Controller/BusinessController.class.php
28087
<?php // .----------------------------------------------------------------------------------- // | // | WE TRY THE BEST WAY // | Site: http://www.gooraye.net // |----------------------------------------------------------------------------------- // | Author: 贝贝 <hebiduhebi@163.com> // | Copyright (c) 2012-2014,...
apache-2.0
bmaxa/changes_and_fixes
src/test/run-pass/region-dependent-addr-of.rs
2644
// Copyright 2012 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
porcelli-forks/drools-wb
drools-wb-screens/drools-wb-scenario-simulation-editor/drools-wb-scenario-simulation-editor-client/src/test/java/org/drools/workbench/screens/scenariosimulation/client/rightpanel/AbstractTestToolsTest.java
5568
/* * 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
ngageoint/geowave
extensions/formats/geolife/src/main/java/org/locationtech/geowave/format/geolife/GeoLifeIngestFormat.java
1524
/** * Copyright (c) 2013-2020 Contributors to the Eclipse Foundation * * <p> See the NOTICE file distributed with this work for additional information regarding copyright * ownership. All rights reserved. This program and the accompanying materials are made available * under the terms of the Apache License, Versio...
apache-2.0
jim-cooley/abletonremotescripts
remote-scripts/branches/VCM600_XL/consts.py
1510
# Constants NUM_TRACKS = 12 NUM_SCENES = 0 NUM_RETURNS = 2 # Channel definitions VCM_CHANNEL = 12 TRACK_1_CHANNEL = 0 # Control Definitions: SCENE_WHEEL_DOWN = 89 SCENE_WHEEL_UP = 90 SCENE_WHEEL_CLICK = 87 CROSS_FADER = 8 CUE_VOLUME = 24 #Master Controls: MASTER_VOLUME = 7 MASTER_PAN = 10 # Track Buttons: TRACK_ST...
apache-2.0
bsa01/qbit
qbit/vertx/src/main/java/io/advantageous/qbit/vertx/http/server/VertxHttpResponseReceiver.java
3904
package io.advantageous.qbit.vertx.http.server; import io.advantageous.qbit.http.request.HttpResponseCreator; import io.advantageous.qbit.http.request.HttpResponseDecorator; import io.advantageous.qbit.http.HttpStatus; import io.advantageous.qbit.http.request.HttpResponse; import io.advantageous.qbit.http.request.Http...
apache-2.0
aws/aws-sdk-go
service/route53/unmarshal_error_test.go
3029
//go:build go1.8 // +build go1.8 package route53 import ( "io/ioutil" "net/http" "strings" "testing" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" ) func TestUnmarshalInvalidChangeBatch(t *testing.T) { const errorMessage = ` Tried to create resource record set duplicate.examp...
apache-2.0
kuujo/copycat
protocols/raft/src/test/java/io/atomix/protocols/raft/TestPrimitiveType.java
1773
/* * Copyright 2017-present Open Networking 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 applicabl...
apache-2.0
tamseo/nd4j
nd4j-api/src/main/java/org/nd4j/linalg/api/iter/NdIndexIterator.java
1511
package org.nd4j.linalg.api.iter; import org.nd4j.linalg.util.ArrayUtil; import org.nd4j.linalg.api.shape.Shape; import java.util.Iterator; /** * Iterates and returns int arrays * over a particular shape. * * This iterator starts at zero and increments * the shape until each item in the "position" * hits the c...
apache-2.0
svagionitis/aws-sdk-cpp
aws-cpp-sdk-gamelift/source/model/DescribeScalingPoliciesResult.cpp
1834
/* * 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
IdentityServer/IdentityServer4
src/AspNetIdentity/host/Models/ManageViewModels/IndexViewModel.cs
486
using System.ComponentModel.DataAnnotations; namespace IdentityServer4.Models.ManageViewModels { public class IndexViewModel { public string Username { get; set; } public bool IsEmailConfirmed { get; set; } [Required] [EmailAddress] public string Email { get; set; } ...
apache-2.0