repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
PurelyApplied/geode
geode-core/src/integrationTest/java/org/apache/geode/management/internal/cli/GfshParserConverterTest.java
8758
/* * 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
googleapis/google-cloud-php
SqlAdmin/src/V1beta4/SqlTiersServiceClient.php
1216
<?php /* * 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 applicable law or agre...
apache-2.0
MarcoLotz/docker-client
src/main/java/com/spotify/docker/client/EventReader.java
1825
/*- * -\-\- * docker-client * -- * Copyright (C) 2016 Spotify AB * -- * 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
yush1ga/pulsar
pulsar-client-cpp/lib/PartitionedProducerImpl.cc
9564
/** * 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
jt70471/aws-sdk-cpp
aws-cpp-sdk-medialive/source/model/M2tsArib.cpp
1897
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/medialive/model/M2tsArib.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> using namespace Aws::Utils; n...
apache-2.0
klmitch/nova
nova/virt/libvirt/volume/fs.py
4449
# Copyright 2015 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
apache-2.0
renmeng8875/projects
Hibernate-source/源代码及重要说明/Hibernate相关资料/hibernate-3.2.0.ga/hibernate-3.2/src/org/hibernate/transaction/JRun4TransactionManagerLookup.java
356
package org.hibernate.transaction; /** * TransactionManager lookup strategy for JRun4 * @author Joseph Bissen */ public class JRun4TransactionManagerLookup extends JNDITransactionManagerLookup { protected String getName() { return "java:/TransactionManager"; } public String getUserTransactionName() { retur...
apache-2.0
moander/kubernetes
pkg/kubelet/dockertools/docker_test.go
26813
/* Copyright 2014 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
simonhorlick/grpc-java
protobuf-lite/src/test/java/io/grpc/protobuf/lite/ProtoLiteUtilsTest.java
8497
/* * Copyright 2015, gRPC 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 appli...
apache-2.0
jasonchaffee/undertow
core/src/main/java/io/undertow/security/impl/InMemorySingleSignOnManager.java
3638
/* * 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
drsquidop/camel
components/camel-consul/src/main/java/org/apache/camel/component/consul/policy/ConsulRoutePolicy.java
11896
/** * 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
ispras/binnavi
src/main/java/com/google/security/zynamics/reil/translators/ppc/CntlzwGenerator.java
7590
/* Copyright 2011-2016 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
apache-2.0
Vivid-Wang/Clear-Evipreserve
Server/src/main/java/sample/Module/Share/Massage/UploadSuccessMsg.java
632
package sample.Module.Share.Massage; import sample.Module.Share.Proof; /** * Created by WangMingming on 2017/3/28. */ public class UploadSuccessMsg extends Message { private Proof proof; private boolean isLightService = false; public UploadSuccessMsg(){ this.setType(MsgType.UPLOADSUC); } ...
apache-2.0
yimingpeng/rl-library
projects/environments/experimental/KeepAway/src/kaMessages/KAHistoricStateResponse.java
2236
package kaMessages; import java.util.StringTokenizer; import java.util.Vector; import rlVizLib.messaging.AbstractResponse; import rlVizLib.messaging.GenericMessage; import rlVizLib.messaging.MessageUser; import rlVizLib.messaging.MessageValueType; import rlVizLib.messaging.NotAnRLVizMessageException; import rlVizLib....
apache-2.0
trustin/armeria
core/src/main/java/com/linecorp/armeria/client/DnsResolverGroupBuilder.java
16223
/* * Copyright 2019 LINE Corporation * * LINE Corporation licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
apache-2.0
AndroidX/androidx
vectordrawable/vectordrawable-animated/src/main/java/androidx/vectordrawable/graphics/drawable/AnimationUtilsCompat.java
6062
/* * 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 app...
apache-2.0
jacksonic/vjlofvhjfgm
src/foam/net/node/Router.js
1431
/** * @license * Copyright 2017 The FOAM 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 ...
apache-2.0
zhouyx/amphtml
extensions/amp-selector/0.1/amp-selector.js
21231
/** * Copyright 2016 The AMP HTML Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
apache-2.0
drautureau/Grapes
server/src/main/java/org/axway/grapes/server/db/datamodel/DbCollections.java
906
package org.axway.grapes.server.db.datamodel; /** * DB Collections * * <p>This interface contains all the collection names that could be found in Grapes database.</p> * * author: jdcoffre */ public interface DbCollections { static final String datamodelVersion = "2.2.0"; public static final String DB_O...
apache-2.0
gaocegege/treadmill
tests/rest/api/server_test.py
1939
"""Server REST api tests. """ import http.client import json import unittest import flask import flask_restplus as restplus import mock from treadmill import webutils from treadmill.rest.api import server class ServerTest(unittest.TestCase): """Test the logic corresponding to the /server namespace.""" def...
apache-2.0
mwerle/EDDiscovery
EliteDangerous/JournalEvents/JournalMissionRedirected.cs
2986
/* * Copyright © 2016 EDDiscovery development team * * 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
darciopacifico/omr
tags/PreSCMSetup/jsf-app/src/main/java/br/com/dlp/jazzqa/pessoa/PessoaPK.java
301
package br.com.dlp.jazzqa.pessoa; import br.com.dlp.jazzqa.base.SimpleJazzQAPK; /** * * @author dpacifico * */ public class PessoaPK extends SimpleJazzQAPK { public PessoaPK(Long id) { super(id); } private static final long serialVersionUID = -4521417989286138551L; }
apache-2.0
dmvolod/camel
camel-core/src/test/java/org/apache/camel/processor/interceptor/CustomInterceptorRouteWithChildOutputTest.java
3456
/** * 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
MFAnderson/gocd
common/test/unit/com/thoughtworks/go/domain/materials/svn/SvnCommandRemoteTest.java
15594
/* * Copyright 2017 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
apache-2.0
aws/aws-sdk-cpp
aws-cpp-sdk-customer-profiles/source/model/DeleteProfileRequest.cpp
700
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/customer-profiles/model/DeleteProfileRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::CustomerProfiles::Model; using namespace Aws::Ut...
apache-2.0
atopuzov/nitro-python
nssrc/com/citrix/netscaler/nitro/resource/config/ns/nslimitsessions.py
8654
# # Copyright (c) 2008-2015 Citrix 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-2.0 # # Unless required by applicable l...
apache-2.0
blindpirate/gradle
subprojects/platform-native/src/main/java/org/gradle/nativeplatform/internal/resolve/DefaultLibraryResolver.java
5732
/* * Copyright 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 applica...
apache-2.0
emaeliena/PerfKitBenchmarker
perfkitbenchmarker/benchmarks/iperf_benchmark.py
6057
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
apache-2.0
pedroreys/EntityFramework.Filters
src/EntityFramework.Filters.Example/ExampleContext.cs
5017
namespace EntityFramework.Filters.Example { using System.Data.Entity; using System.Data.Entity.Migrations; using System.Data.Entity.SqlServer; using System.Linq; public class MigrationsConfiguration : DbMigrationsConfiguration<ExampleContext> { public MigrationsConfiguration() ...
apache-2.0
Transtech/omim
routing/routing_tests/osrm_router_test.cpp
6157
#include "testing/testing.hpp" #include "routing/car_router.hpp" #include "indexer/features_offsets_table.hpp" #include "geometry/mercator.hpp" #include "platform/country_file.hpp" #include "platform/local_country_file.hpp" #include "platform/local_country_file_utils.hpp" #include "platform/platform.hpp" #include "...
apache-2.0
ruixie/onboard
frontend/kernel/src/main/resources/static/js/ng-modules/data/comment-websocket-service.js
509
/** * Created by Dongdong Du on 12/24/2014. */ angular.module('data') .service('commentWebSocketService', ['commentService', function(commentService) { this.add = function(commentDTO) { commentService.updateAllComments(commentDTO); }; this.update = function(commentDTO) { ...
apache-2.0
prigaux/cas
support/cas-server-support-actions/src/main/java/org/apereo/cas/web/flow/ServiceAuthorizationCheck.java
3032
package org.apereo.cas.web.flow; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.apereo.cas.authentication.AuthenticationServiceSelectionPlan; import org.apereo.cas.authentication.principal.Service; import org.apereo.cas.authentication.principal.WebApplicationService; import org.apereo.c...
apache-2.0
nmldiegues/stibt
infinispan/server/memcached/src/test/scala/org/infinispan/server/memcached/MemcachedMainTest.scala
1820
/* * JBoss, Home of Professional Open Source * Copyright 2010 Red Hat Inc. and/or its affiliates and other * contributors as indicated by the @author tags. All rights reserved. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * This is free software; you can redistri...
apache-2.0
getyourguide/fbthrift
thrift/lib/hack/src/protocol/simplejson/TSimpleJSONProtocol.php
17172
<?hh /** * Copyright (c) 2006- Facebook * Distributed under the Thrift Software License * * See accompanying file LICENSE or visit the Thrift site at: * http://developers.facebook.com/thrift/ * * @package thrift.protocol.simplejson */ /** * Protocol for encoding/decoding simple json */ class TSimpleJSONProtocol ext...
apache-2.0
batfish/batfish
projects/batfish/src/test/java/org/batfish/vendor/check_point_management/parsing/parboiled/UhDportAstNodeTest.java
1204
package org.batfish.vendor.check_point_management.parsing.parboiled; import static org.hamcrest.Matchers.equalTo; import static org.junit.Assert.assertThat; import com.google.common.testing.EqualsTester; import org.apache.commons.lang3.SerializationUtils; import org.junit.Test; /** Test of {@link UhDportAstNode}. */...
apache-2.0
olegarx/restler
restler-core/src/main/java/org/restler/http/security/SecuritySession.java
1872
package org.restler.http.security; import org.restler.http.security.authentication.AuthenticationContext; import org.restler.http.security.authentication.AuthenticationStrategy; import org.restler.http.security.authorization.AuthorizationStrategy; /** * Mutable (but thread-safe) class that obtains authenticationToke...
apache-2.0
RyanTech/CuiTrip
TripApp/src/main/java/com/cuitrip/model/RecommendOutData.java
1357
package com.cuitrip.model; import java.util.List; public class RecommendOutData { // "total": "12", //总的结果数 // "num": "2", //当前请求返回结果数 // "start": "10", // 开始位置 // "lists": [{ // "sid": "231", //服务ID // "serviceName": "阿亮带你看妈祖绕境", //旅程名称 // ...
apache-2.0
xzturn/tensorflow
tensorflow/python/grappler/tf_optimizer_wrapper.cc
4550
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
apache-2.0
fholm/IronJS
Src/Tests/ietestcenter/chapter15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-182.js
2544
/// Copyright (c) 2009 Microsoft Corporation /// /// Redistribution and use in source and binary forms, with or without modification, are permitted provided /// that the following conditions are met: /// * Redistributions of source code must retain the above copyright notice, this list of conditions and /// ...
apache-2.0
dump247/aws-sdk-java
aws-java-sdk-cloudsearch/src/main/java/com/amazonaws/services/cloudsearch/model/StemmingOptionsStatus.java
7064
/* * 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
faguirre1/go-swagger
spec/schema.go
14232
// Copyright 2015 go-swagger maintainers // // 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
aslakknutsen/fabric8
sandbox/fab/fab-osgi/src/main/java/io/fabric8/fab/osgi/internal/Configuration.java
907
/** * Copyright 2005-2014 Red Hat, Inc. * * Red Hat licenses this file to you under the Apache License, version * 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
apache-2.0
WadeBarnes/schoolbus
Server/src/SchoolBusAPI/Authorization/PermissionRequirement.cs
398
using Microsoft.AspNetCore.Authorization; using System.Collections.Generic; namespace SchoolBusAPI.Authorization { public class PermissionRequirement : IAuthorizationRequirement { public IEnumerable<string> RequiredPermissions { get; } public PermissionRequirement(params string[] permissions)...
apache-2.0
saikrishna321/java-client
src/main/java/io/appium/java_client/events/api/general/JavaScriptEventListener.java
1458
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * You may obtain a copy of the License at * * http://www.apache....
apache-2.0
codelabs-ch/arcanist
src/hardpoint/ArcanistVectorHardpoint.php
319
<?php final class ArcanistVectorHardpoint extends ArcanistHardpoint { public function isVectorHardpoint() { return true; } public function mergeHardpointValues( ArcanistHardpointObject $object, $old, $new) { foreach ($new as $item) { $old[] = $item; } return $old; } }
apache-2.0
prateekbh/amphtml
extensions/amp-pinterest/0.1/follow-button.js
2991
/** * Copyright 2015 The AMP HTML Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
apache-2.0
androidx/constraintlayout
desktop/ConstraintLayoutInspector/app/src/androidx/constraintLayout/desktop/constraintRendering/drawing/decorator/TextWidgetConstants.java
1015
/* * Copyright (C) 2020 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
noironetworks/neutron
neutron/objects/plugins/ml2/base.py
1271
# Copyright (c) 2016 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 # # Unless required by applicable la...
apache-2.0
ilinum/intellij-scala
test/org/jetbrains/plugins/scala/failed/typeInference/CaseClassTypeInferenceTest.scala
1474
package org.jetbrains.plugins.scala.failed.typeInference import org.jetbrains.plugins.scala.PerfCycleTests import org.jetbrains.plugins.scala.lang.typeInference.TypeInferenceTestBase import org.junit.experimental.categories.Category /** * Created by Anton Yalyshev on 17/05/16. */ @Category(Array(classOf[PerfCycle...
apache-2.0
crazycode/weixin-java-tools
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/json/WxMaTemplateMessageGsonAdapter.java
1812
package cn.binarywang.wx.miniapp.util.json; import cn.binarywang.wx.miniapp.bean.WxMaTemplateMessage; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializer; import java.lang.reflect.Type; /** * @author <a href="h...
apache-2.0
tweakmy/dnp3-old
src/opendnp3/xml/binding/APLXML_Base.cpp
12525
/* ****************************** GENERATED CONTENT DO NOT ALTER! ********************************* */ #include "APLXML_Base.h" using namespace std; namespace APLXML_Base { BaudRateEnum FromString_BaudRateEnum(TiXmlNode* apParent, const char* aValue) { if(aValue != NULL && strcmp(aValue,"1200") == 0) return BAUDRATE_...
apache-2.0
msebire/intellij-community
plugins/ui-designer/src/com/intellij/uiDesigner/designSurface/InsertComponentProcessor.java
22956
// Copyright 2000-2018 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.uiDesigner.designSurface; import com.intellij.CommonBundle; import com.intellij.codeInsight.FileModificationService; import com.intellij.ide.palette.impl.Pal...
apache-2.0
aws/aws-sdk-cpp
aws-cpp-sdk-lex-models/source/model/Message.cpp
1792
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/lex-models/model/Message.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace ...
apache-2.0
santais/iotivity_1.1
cloud/account/src/main/java/org/iotivity/cloud/accountserver/AccountServerManager.java
5380
/* * //****************************************************************** * // * // Copyright 2016 Samsung Electronics All Rights Reserved. * // * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= * // * // Licensed under the Apache License, Version 2.0 (the "License"); * // you may not use thi...
apache-2.0
pjulien/flatbuffers
src/util.cpp
8627
/* * Copyright 2016 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
bazelbuild/bazel
src/main/java/com/google/devtools/build/lib/analysis/EventHandlingErrorReporter.java
4140
// Copyright 2018 The Bazel 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 appl...
apache-2.0
mani-monaj/ros_buildfarm
scripts/doc/run_doc_reconfigure_job.py
1657
#!/usr/bin/env python3 import argparse import copy import sys from ros_buildfarm.argument import add_argument_build_name from ros_buildfarm.argument import add_argument_config_url from ros_buildfarm.argument import \ add_argument_distribution_repository_key_files from ros_buildfarm.argument import add_argument_di...
apache-2.0
AleksNeStu/ggrc-core
src/ggrc/assets/javascripts/components/questions-link/questions-link.js
885
/*! Copyright (C) 2017 Google Inc. Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> */ (function (can, GGRCQ) { 'use strict'; GGRC.Components('questionsLink', { tag: 'questions-link', template: can.view( GGRC.mustache_path + '/components/questions-link/quest...
apache-2.0
IllusionRom-deprecated/android_platform_tools_idea
plugins/git4idea/src/git4idea/history/wholeTree/GitLogAssembler.java
3190
/* * Copyright 2000-2010 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 agreed to in ...
apache-2.0
bryanl/doit
vendor/github.com/bryanl/godomock/account.go
193
package godomock import "github.com/digitalocean/godo" // AccountService is the godo AccountService interface. type AccountService interface { Get() (*godo.Account, *godo.Response, error) }
apache-2.0
RachelTucker/ds3_net_sdk
Ds3/ResponseParsers/ListMultiPartUploadPartsResponseParser.cs
1739
/* * ****************************************************************************** * Copyright 2014-2017 Spectra Logic Corporation. 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 i...
apache-2.0
ricardoquesada/c64-the-muni-race
tools/convert.py
1323
import os with open("mainscreen.vchar64proj", "rb") as orig: with open("mainscreen2.vchar64proj", "wb") as new: # read until data # char id[5]; // must be VChar # char version; // must be 2 # char colors[4]; // BGR, MC1, MC2, RAM. # char vic_r...
apache-2.0
alexryndin/ambari
ambari-server/src/main/java/org/apache/ambari/server/api/services/ActionService.java
4745
/** * 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
dump247/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/EncryptionUtils.java
47937
/* * 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 "lice...
apache-2.0
radicalbit/ambari
contrib/views/hawq/src/main/resources/ui/tests/unit/utils/utils-test.js
4058
/** * 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
adit-chandra/tensorflow
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
17007
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
apache-2.0
nishantmonu51/druid
server/src/main/java/org/apache/druid/segment/realtime/appenderator/AppenderatorsManager.java
6464
/* * 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
nakomis/cassandra
tools/stress/src/org/apache/cassandra/stress/StressMetrics.java
7180
package org.apache.cassandra.stress; /* * * 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 Lice...
apache-2.0
sibok666/flowable-engine
modules/flowable-form-engine/src/main/java/org/flowable/form/engine/impl/io/ResourceStreamSource.java
1411
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
apache-2.0
grzesuav/gjpf-core
main/src/main/java/gov/nasa/jpf/jvm/bytecode/CALOAD.java
1470
/* * Copyright (C) 2014, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The Java Pathfinder core (jpf-core) platform is licensed under the * Apache License, Version 2.0 (the "License"); you may not use this file exce...
apache-2.0
apache/curator
curator-x-discovery/src/main/java/org/apache/curator/x/discovery/ServiceProviderBuilder.java
3143
/** * 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
spandanb/horizon
openstack_dashboard/dashboards/admin/domains/urls.py
1044
# Copyright 2013 Hewlett-Packard Development Company, L.P. # # 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
pombredanne/SourceForge-Allura
ForgeDiscussion/forgediscussion/tests/test_forum_roles.py
927
from pylons import c from alluratest.controller import setup_basic_test, setup_global_objects from allura import model as M from allura.lib import security from allura.tests import decorators as td def setUp(): setup_basic_test() setup_global_objects() @td.with_discussion def test_role_assignments(): adm...
apache-2.0
remi/getting-started-ruby
optional-container-engine/structured_data/active_record/app/models/book.rb
1832
# 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 in writing, s...
apache-2.0
DEVSENSE/Phalanger
Testing/Tests/Arrays/array_diff_intersect2.php
1596
[expect php] [file] <? function key_compare_func($a, $b) { if ($a === $b) { return 0; } return ($a > $b)? 1:-1; } class cr { private $priv_member; function cr($val) { $this->priv_member = $val; } function comp_func_cr($a, $b) {...
apache-2.0
eribeiro/kafka
core/src/main/scala/kafka/log/TimeIndex.scala
9359
/** * 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
k0l0ssus/codesicles
trustline-demo/src/test/java/com/hundredpercent/sample/TrustlineDemoApplicationTests.java
349
package com.hundredpercent.sample; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class TrustlineDemoApplicationTests { @Test public...
apache-2.0
bgrozev/jitsi-meet
react/features/base/react/constants.js
194
// @flow /** * Z-index for components that are to be rendered like an overlay, to be over * everything, such as modal-type of components, or dialogs. */ export const OVERLAY_Z_INDEX = 1000;
apache-2.0
Tycheo/coffeemud
com/planet_ink/coffee_mud/Abilities/Songs/Skill_MarkDisguise.java
4682
package com.planet_ink.coffee_mud.Abilities.Songs; import com.planet_ink.coffee_mud.Abilities.Thief.Thief_Mark; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; ...
apache-2.0
foryou2030/incubator-carbondata
core/src/main/java/org/apache/carbondata/core/datastorage/store/compression/type/UnCompressMaxMinFloat.java
3505
/* * 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
1and1/camunda-bpm-platform
engine/src/test/java/org/camunda/bpm/engine/test/concurrency/CompetingJobAcquisitionTest.java
2920
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
apache-2.0
realazthat/noisepp.extended
editor/modules/EditorCurveModule.cpp
5824
// This file is part of the Noise++ Editor. // Copyright (c) 2008, Urs C. Hanselmann // // The Noise++ Editor 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 3 of the License, or // (at ...
bsd-2-clause
sebastienros/jint
Jint.Tests.Test262/test/built-ins/TypedArrayConstructors/of/argument-is-symbol-throws.js
1248
// Copyright (C) 2016 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-%typedarray%.of description: > Throws a TypeError if argument is a Symbol info: | IntegerIndexedElementSet ( O, index, value ) Assert: O is an Integer-Indexed ...
bsd-2-clause
wgerlach/Shock
shock-server/node/file/format/multi/multi.go
2279
// Package to read and auto-detect format of fasta & fastq files package multi import ( "errors" e "github.com/MG-RAST/Shock/shock-server/errors" "github.com/MG-RAST/Shock/shock-server/node/file" "github.com/MG-RAST/Shock/shock-server/node/file/format/fasta" "github.com/MG-RAST/Shock/shock-server/node/file/format...
bsd-2-clause
tangestani/homebrew-cask
Casks/openwebstart.rb
1256
cask 'openwebstart' do version '1.1.8' sha256 'f36af59cc9229e90a71dd6940ef14416824e65e4214ae7b61a705cc11023d23c' # github.com/karakun/OpenWebStart/ was verified as official when first introduced to the cask url "https://github.com/karakun/OpenWebStart/releases/download/v#{version}/OpenWebStart_macos_#{version....
bsd-2-clause
ucbtrans/sumo-project
examples/timingPlan_simulation/Throughput/data/2minAccel1.8-Tau/tau_plots.py
1144
import sys import optparse import subprocess import random import pdb import matplotlib.pyplot as plt import math import numpy as np import scipy.io a0 = np.loadtxt('2min0RCT_taus',dtype=int) t0 = np.loadtxt('2min0RCT_taus_time',dtype=int) a1 = np.loadtxt('2min1RCT_taus',dtype=int) t1 = np.loadtxt('2min1RCT_taus_tim...
bsd-2-clause
JCount/brew
Library/Homebrew/test/support/fixtures/cask/Casks/with-depends-on-x11-false.rb
290
cask 'with-depends-on-x11-false' do version '1.2.3' sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94' url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip" homepage 'https://brew.sh/with-depends-on-x11-false' depends_on x11: false app 'Caffeine.app' end
bsd-2-clause
miho/iNumerics
odeint/boost/geometry/algorithms/length.hpp
5791
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2011 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2011 Bruno Lalande, Paris, France. // Copyright (c) 2009-2011 Mateusz Loskot, London, UK. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library ...
bsd-2-clause
gab1one/imagej-ops
src/main/java/net/imagej/ops/math/divide/DivideHandleZeroMap.java
3243
/* * #%L * ImageJ software for multidimensional image processing and analysis. * %% * Copyright (C) 2014 - 2017 Board of Regents of the University of * Wisconsin-Madison, University of Konstanz and Brian Northan. * %% * Redistribution and use in source and binary forms, with or without * modification, are permi...
bsd-2-clause
dsanders11/mezzanine
mezzanine/pages/migrations/0002_auto_20141227_0224.py
740
from django.db import migrations, models import mezzanine.core.fields import mezzanine.pages.fields class Migration(migrations.Migration): dependencies = [ ("pages", "0001_initial"), ] operations = [ migrations.AlterField( model_name="page", name="_order", ...
bsd-2-clause
wmakeev/jsonix
nodejs/demos/user/tests/tests.js
141
process.on('uncaughtException', function(err) { console.error(err.stack); }); module.exports = { "user-tests" : require('./user-tests') };
bsd-2-clause
C2SM-RCM/serialbox
python/test.py
343
#!/usr/bin/env python #This file is released under terms of BSD license` #See LICENSE.txt for more information import unittest class Test(unittest.TestCase): def test_load_serializer(self): from serialbox import Serializer def test_load_visualizer(self): from serialbox import Visualizer if __name__ == '__main...
bsd-2-clause
NanoHttpd/nanohttpd
fileupload/src/test/java/org/nanohttpd/junit/fileupload/TestNanoFileUpLoad.java
10553
package org.nanohttpd.junit.fileupload; /* * #%L * NanoHttpd-apache file upload integration * %% * Copyright (C) 2012 - 2015 nanohttpd * %% * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions...
bsd-3-clause
r3ap3r2004/spraycan
app/controllers/spraycan/files_controller.rb
1114
class Spraycan::FilesController < Spraycan::BaseController respond_to :json before_filter :set_theme, :only => [:index, :create] def index @files = @theme.files respond_with @files end #sets id to preference passed and returns url def create if @file = Spraycan::File.where(:name => params[...
bsd-3-clause
toontownfunserver/Panda3D-1.9.0
direct/wxwidgets/ViewPort.py
8280
""" Contains classes useful for 3D viewports. Originally written by pro-rsoft, Modified by gjeon. Modified by Summer 2010 Carnegie Mellon University ETC PandaLE team: fixed a bug in Viewport.Close """ __all__ = ["Viewport", "ViewportManager"] from direct.showbase.DirectObject import DirectObject from direct.directt...
bsd-3-clause
guorendong/iridium-browser-ubuntu
cc/quads/draw_quad_unittest.cc
46108
// Copyright 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "cc/quads/draw_quad.h" #include <algorithm> #include "base/bind.h" #include "base/compiler_specific.h" #include "cc/base/math_util.h" #include ...
bsd-3-clause
jhotta/documentation
code_snippets/api-dashboard-get-all.py
214
from datadog import initialize, api options = { 'api_key': '9775a026f1ca7d1c6c5af9d94d9595a4', 'app_key': '87ce4a24b5553d2e482ea8a8500e71b8ad4554ff' } initialize(**options) print api.Timeboard.get_all()
bsd-3-clause
alexm92/sentry
src/sentry/api/serializers/models/activity.py
1885
from __future__ import absolute_import import six from sentry.api.serializers import Serializer, register, serialize from sentry.models import Activity @register(Activity) class ActivitySerializer(Serializer): def get_attrs(self, item_list, user): # TODO(dcramer); assert on relations users = { ...
bsd-3-clause
rwatson/chromium-capsicum
chrome/browser/search_engines/keyword_editor_controller_unittest.cc
4706
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "app/table_model_observer.h" #include "chrome/browser/profile.h" #include "chrome/browser/search_engines/keyword_editor_controller.h" #includ...
bsd-3-clause
ric2b/Vivaldi-browser
chromium/ui/display/util/display_util_unittest.cc
16089
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/display/util/display_util.h" #include "base/test/metrics/histogram_tester.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/dis...
bsd-3-clause