repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
dongjiaqiang/tez
tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/shuffle/orderedgrouped/ShuffleInputEventHandlerOrderedGrouped.java
8132
/** * 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
ened/ExoPlayer
extensions/flac/src/androidTest/java/com/google/android/exoplayer2/ext/flac/FlacPlaybackTest.java
5082
/* * Copyright (C) 2016 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 app...
apache-2.0
OHDSI/RcppBoostCompute
inst/include/boost.new/compute/iterator/function_input_iterator.hpp
4730
//---------------------------------------------------------------------------// // Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://kylelutz.gi...
apache-2.0
cloudera/hadoop-hdfs
src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/TestCheckPointForSecurityTokens.java
6895
/** * 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
ggalancs/one
src/sunstone/public/app/tabs/vms-tab/panels/log.js
2034
define(function(require) { /* DEPENDENCIES */ var Locale = require('utils/locale'); var Notifier = require('utils/notifier'); var OpenNebulaVM = require('opennebula/vm'); /* CONSTANTS */ var TAB_ID = require('../tabId'); var PANEL_ID = require('./log/panelId'); var RESOURCE = "VM" var...
apache-2.0
kingargyle/turmeric-wsdldoctool
wsdl-doc-tool/src/main/java/org/ebayopensource/turmeric/tools/annoparser/dataobjects/PortType.java
2861
/******************************************************************************* * Copyright (c) 2006-2010 eBay 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...
apache-2.0
Frouk/zulip
zerver/views/webhooks/github.py
10744
from __future__ import absolute_import from django.conf import settings from zerver.models import get_client from zerver.lib.response import json_success from zerver.lib.validator import check_dict from zerver.decorator import authenticated_api_view, REQ, has_request_variables, to_non_negative_int, flexible_boolean fro...
apache-2.0
roxolan/nakamura
bundles/files/impl/src/main/java/org/sakaiproject/nakamura/files/SparseContentInternalFileHandler.java
2196
/** * Licensed to the Sakai Foundation (SF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The SF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use t...
apache-2.0
mglukhikh/intellij-community
platform/platform-tests/testSrc/com/intellij/openapi/editor/NullGraphics2D.java
10668
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.editor; import java.awt.*; import java.awt.font.FontRenderContext; import java.awt.font.GlyphVector; import java.awt.geom.AffineTransform; import jav...
apache-2.0
LARS-robotics/lars-ros
src/vision_based_adaptive_following/src/vision_based_adaptive_following_node.cpp
4306
#include "vision_based_localization/VisionBasedLocalizationMsgs.h" #include "ros/ros.h" #include <vision_based_adaptive_following/AdaptiveControlVariablesConfig.h> #include "geometry_msgs/Twist.h" #include "dynamic_reconfigure/server.h" #include <math.h> #include <algorithm> #include "ros/console.h" #include "stdio.h...
apache-2.0
MCDong/barbican
barbican/tests/plugin/test_resource.py
8764
# Copyright (c) 2014 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 agreed to in writ...
apache-2.0
nickperez1285/truck-hunt-hackathon
client/stemapp/widgets/LayerList/nls/zh-cn/strings.js
497
define( ({ _widgetLabel: "图层列表", titleBasemap: "底图", titleLayers: "业务图层", labelLayer: "图层名称", itemZoomTo: "缩放至", itemTransparency: "透明度", itemTransparent: "透明", itemOpaque: "不透明", itemMoveUp: "上移", itemMoveDown: "下移", itemDesc: "描述", itemDownload: "下载", ...
apache-2.0
OpenBEL/kam-nav
tools/groovy/src/src/main/org/codehaus/groovy/runtime/Reflector.java
1502
/** * 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
amirsojoodi/tez
tez-ui/src/main/webapp/app/scripts/controllers/vertex_controller.js
3056
/** * 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
knative-sandbox/kn-plugin-func
vendor/github.com/google/cel-go/checker/checker.go
19027
// 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
apache-2.0
aws/aws-sdk-cpp
aws-cpp-sdk-s3-crt/source/model/ServerSideEncryptionByDefault.cpp
2237
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/s3-crt/model/ServerSideEncryptionByDefault.h> #include <aws/core/utils/xml/XmlSerializer.h> #include <aws/core/utils/StringUtils.h> #include <aws/core/utils/memory/stl/AWSStringStream.h>...
apache-2.0
glyptodon/guacamole-client
extensions/guacamole-auth-sso/modules/guacamole-auth-sso-base/src/main/java/org/apache/guacamole/auth/sso/user/SSOAuthenticatedUser.java
3886
/* * 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
smanvi-pivotal/geode
geode-core/src/main/java/org/apache/geode/cache/server/internal/ServerMetricsImpl.java
2162
/* * 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
weaveworks/flux
pkg/http/websocket/ping.go
2817
package websocket import ( "io" "sync" "time" "github.com/gorilla/websocket" ) const ( // Time allowed to write a message to the peer. writeWait = 10 * time.Second // Time allowed to read the next pong message from the peer. Needs to be less // than the idle timeout on whatever frontend server is proxying t...
apache-2.0
kevinykuo/sparklyr
java/spark-2.0.0/repartition.scala
546
package sparklyr import org.apache.spark.sql._ object Repartition { def repartition(df: DataFrame, numPartitions: Int, partitionCols: String*): DataFrame = { val partitionExprs = partitionCols.map(df.col(_)) (numPartitions, partitionExprs.length) match { case (0, l) if l > 0 => df.repartition(partit...
apache-2.0
jskeet/gcloud-dotnet
apis/Google.Cloud.Speech.V1/Google.Cloud.Speech.V1/CloudSpeech.g.cs
255400
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections;...
apache-2.0
wanghaoran1988/origin
pkg/authorization/controller/authorizationsync/origin_to_rbac_clusterrole_controller_test.go
7914
package authorizationsync import ( "fmt" "strings" "testing" apiequality "k8s.io/apimachinery/pkg/api/equality" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/sets" clienttesting "k8s.io/client-go/te...
apache-2.0
sshcherbakov/incubator-geode
gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/tier/sockets/command/Put65.java
23056
/* * 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
apache/sis
core/sis-feature/src/main/java/org/apache/sis/internal/filter/Node.java
11838
/* * 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
flofreud/aws-sdk-java
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/transform/CreateAliasRequestMarshaller.java
3298
/* * Copyright 2010-2016 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 "l...
apache-2.0
adessaigne/camel
core/camel-support/src/main/java/org/apache/camel/support/ObjectHelper.java
29423
/* * 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
hangzhang925/WhereHows
wherehows-dao/src/main/java/wherehows/dao/view/OwnerViewDao.java
2013
/** * Copyright 2015 LinkedIn 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
lrytz/scala
test/async/jvm/live.scala
5267
// scalac: -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.live.LiveVariablesSpec]) package scala.async.run.live { import org.junit.Test import org.junit.Assert._ import scala.concurrent._ import duration.Duration import scala.tools.testkit.async.Async.{async, await} imp...
apache-2.0
LookThisCode/DeveloperBus
Season 2013/Brazil/Projects/PowerUp-master/appengine/src/main/java/br/com/powerup/infrastructure/DefaultPowerUp.java
4180
package br.com.powerup.infrastructure; import static br.com.powerup.infrastructure.persistence.OfyService.ofy; import java.util.List; import javax.inject.Inject; import br.com.powerup.domain.model.Badge; import br.com.powerup.domain.model.LogWorkRequest; import br.com.powerup.domain.model.LogWorkResponse; import br...
apache-2.0
antoinesd/weld-core
tests-arquillian/src/test/java/org/jboss/weld/tests/event/ordering/NoPriority.java
238
package org.jboss.weld.tests.event.ordering; import javax.enterprise.event.Observes; public class NoPriority { public void observeEvent(@Observes EventPayload payload) { payload.record(NoPriority.class.getName()); } }
apache-2.0
bowlofstew/Macaroni
Main/App/Source/test/lua/Macaroni/Parser/Pippy/Tests/PippyParserTests_Constructor.lua
2882
-------------------------------------------------------------------------------- -- Copyright 2011 Tim Simpson -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use self file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.o...
apache-2.0
GoogleCloudPlatform/prometheus-engine
third_party/prometheus_ui/base/web/ui/react-app/node_modules/axe-core/lib/core/base/cache.js
500
let _cache = {}; const cache = { /** * Set an item in the cache. * @param {String} key - Name of the key. * @param {*} value - Value to store. */ set(key, value) { _cache[key] = value; }, /** * Retrieve an item from the cache. * @param {String} key - Name of the key the value was stored ...
apache-2.0
rancherio/validation-tests
tests/v2_validation/cattlevalidationtest/core/test_container.py
10963
from common_fixtures import * # NOQA import requests import websocket as ws import base64 def test_sibling_pinging(client, one_per_host): instances = one_per_host hosts = {} hostnames = set() for i in instances: port = i.ports_link()[0] host = port.publicIpAddress().address ...
apache-2.0
GenericStudent/home-assistant
tests/components/smart_meter_texas/test_config_flow.py
4020
"""Test the Smart Meter Texas config flow.""" import asyncio from aiohttp import ClientError import pytest from smart_meter_texas.exceptions import ( SmartMeterTexasAPIError, SmartMeterTexasAuthError, ) from homeassistant import config_entries, setup from homeassistant.components.smart_meter_texas.const impor...
apache-2.0
awayjs/stage
lib/factories/DefaultGraphicsFactory.ts
441
import {BitmapImage2D} from "../image/BitmapImage2D"; import {Image2D} from "../image/Image2D"; import {IGraphicsFactory} from "./IGraphicsFactory"; export class DefaultGraphicsFactory implements IGraphicsFactory { public createImage2D(width:number, height:number, transparent:boolean = true, fillColor:number = null,...
apache-2.0
fluentassertions/fluentassertions
Src/FluentAssertions/Execution/IAssertionStrategy.cs
953
using System.Collections.Generic; namespace FluentAssertions.Execution { /// <summary> /// Defines a strategy for handling failures in a <see cref="AssertionScope"/>. /// </summary> public interface IAssertionStrategy { /// <summary> /// Returns the messages for the assertion failu...
apache-2.0
hornn/interviews
depends/libyarn/src/rpc/SaslClient.cpp
3853
/******************************************************************** * Copyright (c) 2014, Pivotal Inc. * All rights reserved. * * Author: Zhanwei Wang ********************************************************************/ #include <algorithm> #include <cctype> #include "Exception.h" #include "ExceptionInternal.h...
apache-2.0
apache/geronimo-yoko
yoko-spec-corba/src/main/java/org/omg/DynamicAny/DynValue.java
997
/* * 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
mattxia/spring-2.5-analysis
test/org/springframework/beans/factory/config/PropertiesFactoryBeanTests.java
5278
/* * Copyright 2002-2006 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
tijoparacka/nifi
nifi-nar-bundles/nifi-kafka-bundle/nifi-kafka-0-9-processors/src/main/java/org/apache/nifi/processors/kafka/pubsub/PublishKafka.java
20601
/* * 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
jyemin/mongo-java-driver
driver-core/src/main/com/mongodb/internal/connection/ProtocolExecutor.java
1414
/* * Copyright 2008-present 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 ag...
apache-2.0
lichengshuang/createvhost
python/others/oldboy/day3/test.py
881
<<<<<<< HEAD import MySQLdb try: conn=MySQLdb.connect(host='localhost',user='root',passwd='asher',port=3306) cur=conn.cursor() cur.execute('create database if not exists python') conn.select_db('python') cur.execute('create table test(id int,info varchar(20))') value=[1,'hi rollen'] ...
apache-2.0
Seagate/swift
test/unit/common/test_db_replicator.py
60462
# Copyright (c) 2010-2012 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 agree...
apache-2.0
P1start/rust
src/librustc/middle/typeck/collect.rs
92687
// Copyright 2012-2014 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-MI...
apache-2.0
HewlettPackard/grommet
src/js/components/NameValueList/stories/CustomThemed/Themed.tsx
1201
import React from 'react'; import { Box, Grommet, grommet, NameValueList, NameValuePair } from 'grommet'; import { deepMerge } from 'grommet/utils'; import { ThemeType } from 'grommet/themes'; import { data } from '../data'; // Type annotations can only be used in TypeScript files. // Remove ': ThemeType' if you are n...
apache-2.0
jwausle/cmvn
de.tototec.cmvn/src/main/scala/de/tototec/cmvn/configfile/ConfigFileReader.scala
160
package de.tototec.cmvn.configfile import java.io.File import java.util.List trait ConfigFileReader { def readKeyValues(configFile: File): List[KeyValue] }
apache-2.0
apache/uima-uimaj
uimaj-cpe/src/test/java/org/apache/uima/collection/impl/TestCasInitializer.java
1359
/* * 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
davidkarlsen/camel
components/camel-http4/src/test/java/org/apache/camel/component/http4/AdviceAndInterceptHttp4IssueTest.java
3324
/* * 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
mschlenstedt/Loxberry
webfrontend/html/system/scripts/form-validator/html5.dev.js
5779
/** * jQuery Form Validator Module: html5 * ------------------------------------------ * Created by Victor Jonsson <http://www.victorjonsson.se> * * The following module will make this jQuery plugin serve as a * html5 fallback. It makes older browsers support the following * - validation when type="email" * -...
apache-2.0
astroilov/google-storage-plugin
src/main/java/com/google/jenkins/plugins/storage/UploadModule.java
2707
/* * 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 applica...
apache-2.0
atomiqio/atomiq
vendor/docker.io/go-docker/swarm_leave.go
368
package docker // import "docker.io/go-docker" import ( "net/url" "golang.org/x/net/context" ) // SwarmLeave leaves the swarm. func (cli *Client) SwarmLeave(ctx context.Context, force bool) error { query := url.Values{} if force { query.Set("force", "1") } resp, err := cli.post(ctx, "/swarm/leave", query, ni...
apache-2.0
forcedotcom/aura
aura-impl/src/main/java/org/auraframework/component/auradev/TestDataProvider2Controller.java
1393
/* * 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
streamsets/datacollector
kinesis-lib/src/main/java/com/streamsets/pipeline/stage/origin/kinesis/KinesisDSource.java
1755
/* * Copyright 2017 StreamSets 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...
apache-2.0
alkaitz/starloot
src/gameengine/webSocketServer/lib/tornado-3.0.1/build/lib/tornado/gen.py
19915
"""``tornado.gen`` is a generator-based interface to make it easier to work in an asynchronous environment. Code using the ``gen`` module is technically asynchronous, but it is written as a single generator instead of a collection of separate functions. For example, the following asynchronous handler:: class Asy...
apache-2.0
chengduoZH/Paddle
paddle/fluid/framework/ir/memory_optimize_pass/op_graph_view.cc
2766
// Copyright (c) 2018 PaddlePaddle 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...
apache-2.0
gpolitis/jitsi-meet
react/features/recording/components/LiveStream/web/LiveStreamButton.js
1176
// @flow import { getToolbarButtons } from '../../../../base/config'; import { translate } from '../../../../base/i18n'; import { connect } from '../../../../base/redux'; import AbstractLiveStreamButton, { _mapStateToProps as _abstractMapStateToProps, type Props } from '../AbstractLiveStreamButton'; /** * Ma...
apache-2.0
ccaballe/crossdata
crossdata-connector-inmemory/src/main/java/com/stratio/connector/inmemory/datastore/structures/InMemorySelector.java
1253
/* * Licensed to STRATIO (C) under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. The STRATIO (C) licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file...
apache-2.0
imron/scalyr-agent-2
tests/unit/builtin_monitors/apache_monitor_test.py
5370
# Copyright 2014-2020 Scalyr 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 writin...
apache-2.0
cisdev123/OpenGTS_2.6.0
src/org/opengts/db/RoleRecord.java
5584
// ---------------------------------------------------------------------------- // Copyright 2006-2010, GeoTelematic Solutions, Inc. // All rights reserved // ---------------------------------------------------------------------------- // // Licensed under the Apache License, Version 2.0 (the "License"); // you m...
apache-2.0
allotria/intellij-community
plugins/gradle/testSources/org/jetbrains/plugins/gradle/importing/GradleSettingsImportingTest.java
33058
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.plugins.gradle.importing; import com.intellij.codeInspection.ex.InspectionProfileImpl; import com.intellij.execution.BeforeRunTask; import com.intellij.exec...
apache-2.0
carlosgsouza/types-and-quality
experiments/1_vinyl_collection/a1/analysis/data/mateus/snapshots/1387294570511/src/main/groovy/carlosgsouza/vinylshop/view/ListArtistsView.java
467
package carlosgsouza.vinylshop.view; import java.util.List; import carlosgsouza.derails.View; class ListArtistsView extends View { public ListArtistsView(List<String> list) { if(list.size() > 1) { items.add("Listing " + list.size() + " artists"); items.addAll(list); } else if(lisf.size() == 1) { items...
apache-2.0
zstackorg/zstack-woodpecker
integrationtest/vm/monitor/alert_host_all_cpus_idle.py
2656
''' Test about monitor trigger on all host cpu free ratio in one minute @author: Songtao,Haochen ''' import os import test_stub import random import time import zstacklib.utils.ssh as ssh import zstackwoodpecker.test_util as test_util import zstackwoodpecker.operations.resource_operations as res_ops ...
apache-2.0
BigBoss424/portfolio
v6/node_modules/date-fns/esm/locale/ja/_lib/localize/index.js
2910
import buildLocalizeFn from '../../../_lib/buildLocalizeFn/index.js'; var eraValues = { narrow: ['BC', 'AC'], abbreviated: ['紀元前', '西暦'], wide: ['紀元前', '西暦'] }; var quarterValues = { narrow: ['1', '2', '3', '4'], abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], wide: ['第1四半期', '第2四半期', '第3四半期', '第4四半期'] }; var monthV...
apache-2.0
hazendaz/classloader-leak-prevention
classloader-leak-prevention/classloader-leak-prevention-core/src/main/java/se/jiderhamn/classloader/leak/prevention/cleanup/MBeanCleanUp.java
9587
package se.jiderhamn.classloader.leak.prevention.cleanup; import java.lang.management.ManagementFactory; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Set; import javax.management.MBeanServer; import javax.management.ObjectName; import se...
apache-2.0
apache/forrest
tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/ForrestPlugin.java
5602
/* * 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
datacite/mds
src/main/java/org/datacite/mds/validation/constraints/URL.java
1104
package org.datacite.mds.validation.constraints; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload;...
apache-2.0
ananya-bhattacharya/hydrator-plugins
solrsearch-plugins/src/main/java/co/cask/hydrator/plugin/realtime/RealtimeSolrSearchSink.java
4188
/* * Copyright © 2016 Cask Data, 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
apache/avro
lang/csharp/src/apache/ipc/HttpListenerServer.cs
3904
/** * 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
biospi/mzmlb
pwiz/pwiz/data/msdata/SpectrumListBase.hpp
2185
// // $Id: SpectrumListBase.hpp 8725 2015-08-04 15:49:57Z pcbrefugee $ // // // Original author: Darren Kessner <darren@proteowizard.org> // // Copyright 2009 Spielberg Family Center for Applied Proteomics // Cedars-Sinai Medical Center, Los Angeles, California 90048 // // Licensed under the Apache License, Version ...
apache-2.0
michaelgallacher/intellij-community
plugins/junit5_rt/src/com/intellij/junit5/JUnit5IdeaTestRunner.java
2882
/* * Copyright 2000-2016 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
nashif/zephyr
scripts/west_commands/runners/dfu.py
4706
# Copyright (c) 2017 Linaro Limited. # # SPDX-License-Identifier: Apache-2.0 '''Runner for flashing with dfu-util.''' from collections import namedtuple import sys import time from runners.core import ZephyrBinaryRunner, RunnerCaps, \ BuildConfiguration DfuSeConfig = namedtuple('DfuSeConfig', ['address', 'opti...
apache-2.0
FSMaxB/mathjs
src/expression/node/AccessorNode.js
6687
import { isAccessorNode, isArrayNode, isConstantNode, isFunctionNode, isIndexNode, isNode, isObjectNode, isParenthesisNode, isSymbolNode } from '../../utils/is.js' import { getSafeProperty } from '../../utils/customs.js' import { factory } from '../../utils/factory.js' import { accessFactory } from '....
apache-2.0
SuperQ/mtail
internal/vm/code/opcodes_test.go
345
// Copyright 2018 Google Inc. All Rights Reserved. // This file is available under the Apache license. package code import "testing" func TestOpcodeHasString(t *testing.T) { for o := Bad; o < lastOpcode; o++ { if o.String() != opNames[o] { t.Errorf("opcode string not match. Expected %s, received %s", opNames[...
apache-2.0
JLyons1985/SmartVanityMirror
src/main/java/com/amazon/alexa/avs/auth/AuthConstants.java
2324
/** * Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * You may not use this file except in compliance with the License. A copy of the License is located the "LICENSE.txt" * file accompanying this source. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY...
apache-2.0
Namone/SimpleScene
SimpleScene/Objects/SSObjectTriangle.cs
909
// Copyright(C) David W. Jeske, 2013 // Released to the public domain. using System; using OpenTK; using OpenTK.Graphics.OpenGL; namespace SimpleScene { public class SSObjectTriangle : SSObject { public override void Render(ref SSRenderConfig renderConfig) { base.Render (ref renderConfig); // mode ...
apache-2.0
andrewsykim/kubernetes
cmd/kube-controller-manager/app/options/options_test.go
27931
/* 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
atdt/gerrit
gerrit-server/src/main/java/com/google/gerrit/server/config/GerritRequestModule.java
5322
// Copyright (C) 2009 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 applicable ...
apache-2.0
Esri/arcgis-pro-sdk-community-samples
Map-Authoring/GeocodingTools/CustomGeocodeDockpaneViewModel.cs
4768
/* Copyright 2019 Esri 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
ghanoz/google-api-dfp-php
src/Google/Api/Ads/Dfp/v201306/CreativeTemplateService.php
79992
<?php /** * Contains all client objects for the CreativeTemplateService service. * * PHP version 5 * * 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 ...
apache-2.0
panpf/sketch
sketch/src/main/java/me/panpf/sketch/zoom/block/DecodeHandler.java
9631
/* * Copyright (C) 2019 Peng fei Pan <panpfpanpf@outlook.me> * * 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 a...
apache-2.0
oaastest/azure-linux-extensions
AzureEnhancedMonitor/ext/test/test_aem.py
15614
#!/usr/bin/env python # #CustomScript extension # # Copyright 2014 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
apache-2.0
dncuug/scaffolder
Scaffolder.API/Application/ControllerBase.cs
1574
using System; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using Scaffolder.API.Application.Security; using Scaffolder.Core.Meta; using System.Security.Claims; using NLog; namespace Scaffolder.API.Application { public class ControllerBase : Controller { private Appli...
apache-2.0
TestInABox/openstackinabox
openstackinabox/tests/services/keystone/v2/user/test_listing.py
6944
""" Stack-In-A-Box: Basic Test """ import unittest import requests import stackinabox.util.requests_mock.core from stackinabox.stack import StackInABox from openstackinabox.services.keystone import KeystoneV2Service class TestKeystoneV2UserListing(unittest.TestCase): def setUp(self): super(TestKeystone...
apache-2.0
guijun/MCServer
src/Generating/CompoGenBiomal.cpp
17254
// CompoGenBiomal.cpp // Implements the cCompoGenBiomal class representing the biome-aware composition generator #include "Globals.h" #include "ComposableGenerator.h" #include "../IniFile.h" #include "../Noise/Noise.h" #include "../LinearUpscale.h" ///////////////////////////////////////////////////////////////...
apache-2.0
deleidos/digitaledge-platform
webapp-alertsapi/src/main/java/com/deleidos/rtws/webapp/alertsapi/client/NamedFilterRestClient.java
25978
/** * Apache License * Version 2.0, January 2004 * http://www.apache.org/licenses/ * * TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION * * 1. Definitions. * * "License" shall mean the terms and conditio...
apache-2.0
afiantara/apache-wicket-1.5.7
src/wicket-core/src/main/java/org/apache/wicket/markup/ComponentTag.java
21260
/* * 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
melvinthemok/readable
public/client_side_helpers/allStudentChecksToSubmit.js
4379
document.addEventListener('DOMContentLoaded', function () { var listeningInputs = document.querySelectorAll('.required-group > input, #generalComment') // enable submit only if other client-side helper checks succeed var name = document.getElementById('name') var generalComment = document.getElementById('genera...
apache-2.0
motlin/gs-collections
unit-tests/src/test/java/com/gs/collections/impl/utility/ArrayListIterateTest.java
71433
/* * Copyright 2015 Goldman Sachs. * * 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
aragozin/jvm-tools
sjk-stacktrace/src/main/java/org/gridkit/jvmtool/stacktrace/CounterCollection.java
183
package org.gridkit.jvmtool.stacktrace; public interface CounterCollection extends Iterable<String> { public long getValue(String key); public CounterCollection clone(); }
apache-2.0
bigsuperangel/AutoCreate
autopath/template/project/jsp/${keyUpperFirst}Controller.java
1830
package com.jflyfox.modules.@{crud.urlKey}; import com.jflyfox.jfinal.base.BaseController; import com.jflyfox.jfinal.component.db.SQLUtils; import com.jfinal.plugin.activerecord.Page; /** * @{crud.table.remarks} * * @author flyfox 2014-4-24 */ public class @{strutils.toUpperCaseFirst(crud.urlKey)}Controller exte...
apache-2.0
suogongy/jsqlparser
src/main/java/net/sf/jsqlparser/expression/SignedExpression.java
1684
/* * #%L * JSQLParser library * %% * Copyright (C) 2004 - 2013 JSQLParser * %% * This program 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 * License, or (at your ...
apache-2.0
gucce/citrus
modules/citrus-mail/src/main/java/com/consol/citrus/mail/config/annotation/MailServerConfig.java
1919
/* * Copyright 2006-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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
apache-2.0
ionutbarau/petstore
petstore-app/src/main/resources/static/node_modules/fsevents/node_modules/sshpk/lib/key.js
8153
// Copyright 2015 Joyent, Inc. module.exports = Key; var assert = require('assert-plus'); var algs = require('./algs'); var crypto = require('crypto'); var Fingerprint = require('./fingerprint'); var Signature = require('./signature'); var DiffieHellman = require('./dhe'); var errs = require('./errors'); var utils = ...
apache-2.0
PriceLab/snapr
SNAPLib/exit.cpp
405
/*++ Module Name: exit.cpp Abstract: SNAP soft exit function Authors: Bill Bolosky, February, 2013 Environment: User mode service. Revision History: --*/ #include "stdafx.h" #include "exit.h" void soft_exit_function(int n, const char *fileName, int lineNum) { fprintf(stderr,"SNAP exited...
apache-2.0
yugangw-msft/azure-sdk-for-net
sdk/eventhub/Azure.Messaging.EventHubs/src/Amqp/AmqpConsumer.cs
22463
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Globalization; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using Azure.Core; using Azure.Core.Diagnostics; usin...
apache-2.0
stankovski/azure-sdk-for-net
sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Properties/AssemblyInfo.cs
790
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Reflection; using System.Resources; [assembly: AssemblyTitle("Microsoft Azure IotCentral Management Library")] [assembly: AssemblyDescription("Provi...
apache-2.0
fengshao0907/wasp
lib/ruby/shell/commands/enable.rb
1131
# # Copyright 2010 The Apache Software Foundation # # 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 L...
apache-2.0
NickrenREN/kubernetes
staging/src/k8s.io/legacy-cloud-providers/gce/gce_annotations.go
4415
/* 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
nknize/elasticsearch
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/process/autodetect/state/ModelSnapshot.java
17185
/* * 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.core.ml.job.process.autodetect.state; import ...
apache-2.0
arnotixe/androidbible
Alkitab/src/main/java/yuku/alkitab/base/widget/CallbackSpan.java
726
package yuku.alkitab.base.widget; import android.text.style.ClickableSpan; import android.view.View; public class CallbackSpan<T> extends ClickableSpan { public static interface OnClickListener<T> { void onClick(View widget, T data); } final T data_; private OnClickListener<T> onClickListener_; public Call...
apache-2.0