code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
/*
* Copyright 2002-2014 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
*
* CC/LICENSE
*
* Unless required by applicable law or agreed to in wri... | sdgdsffdsfff/CC | platform/ims/inc/core/threadpool.h | C | apache-2.0 | 1,605 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot/model/RelatedResource.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace... | awslabs/aws-sdk-cpp | aws-cpp-sdk-iot/source/model/RelatedResource.cpp | C++ | apache-2.0 | 2,333 |
<form name="myform" action="{:U('Category/listorder')}" method="post">
<div class="pad-lr-10">
<div class="table-list">
<table width="100%" cellspacing="0">
<thead>
<tr>
<th width="40">{:L('listorder')}</th>
<th width="40">catid</th>
<th>{:L('catna... | selecterskyphp/framework | yourphp/App/Tpl/Admin/Default/Category_index.html | HTML | apache-2.0 | 734 |
/**
* 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... | gustavoanatoly/hbase | hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestSnapshotMetadata.java | Java | apache-2.0 | 12,884 |
/*
* 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 ... | darionyaphet/flink | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/config/TableConfigOptions.java | Java | apache-2.0 | 3,646 |
def check_resource_count(expected_count):
test.assertEqual(expected_count, len(reality.all_resources()))
example_template = Template({
'A': RsrcDef({}, []),
'B': RsrcDef({'a': '4alpha'}, ['A']),
'C': RsrcDef({'a': 'foo'}, ['B']),
'D': RsrcDef({'a': 'bar'}, ['C']),
})
engine.create_stack('foo', exam... | zaneb/heat-convergence-prototype | scenarios/update_interrupt_create.py | Python | apache-2.0 | 673 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | struberg/deltaspike | deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/api/config/ConfigurableTestConfigSource.java | Java | apache-2.0 | 3,013 |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/analytics/admin/v1alpha/analytics_admin.proto
namespace Google\Analytics\Admin\V1alpha;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Request message for ... | googleapis/php-analytics-admin | src/V1alpha/ListConversionEventsRequest.php | PHP | apache-2.0 | 5,285 |
/**
* Copyright 2015-2017 Linagora, Université Joseph Fourier, Floralis
*
* The present code is developed in the scope of the joint LINAGORA -
* Université Joseph Fourier - Floralis research program and is designated
* as a "Result" pursuant to the terms and conditions of the LINAGORA
* - Université Joseph Fourie... | gibello/roboconf | core/roboconf-core/src/main/java/net/roboconf/core/commands/CommandsParser.java | Java | apache-2.0 | 8,460 |
// ------------------------------------------------------------------------------------------
// Copyright 2015 Sitecore Corporation A/S
// 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
//... | Sitecore/SES-7.5 | code/Examples/Sitecore.Ecommerce.WebSite/layouts/Ecommerce/Examples/Check Out Process/jscripts/CheckOut.js | JavaScript | apache-2.0 | 6,911 |
// 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 Desktop.CSharp.Analyzers;
using Desktop.VisualBasic.Analyzers;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.Diagnostics;
using T... | genlu/roslyn-analyzers | src/Desktop.Analyzers/UnitTests/DoNotMarkServicedComponentsWithWebMethodTests.Fixer.cs | C# | apache-2.0 | 1,164 |
<!DOCTYPE html>
<html>
<head>
<title>Test 37b</title>
</head>
<body style="background:#f00;">
<h1>Fail</h1>
<p>If you can see this, the test 37b has failed. To pass, the user agent must fail to validate the widget.</p>
</body>
</html>
| krishnabangalore/Webinos-Platform | webinos/web_root/tests/widget_dig_sig_tests/test-cases/ta-37/37b/index.html | HTML | apache-2.0 | 237 |
# 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... | helifu/kudu | examples/python/basic-python-example/basic_example.py | Python | apache-2.0 | 2,977 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/email/model/CreateReceiptRuleSetRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::SES::Model;
using namespac... | jt70471/aws-sdk-cpp | aws-cpp-sdk-email/source/model/CreateReceiptRuleSetRequest.cpp | C++ | apache-2.0 | 868 |
class CreateGadgetsOauthClients < ActiveRecord::Migration
def self.up
create_table :gadgets_oauth_clients do |t|
t.string :gadget_url
t.string :client_id
t.string :client_secret
t.string :service_name
t.string :redirect_uri
t.timestamps
end
end
def self.down
drop_... | varshavaradarajan/functional-tests | gadget_renderer/vendor/plugins/tw_studios_gadgets/db/migrate/20100714215915_create_gadgets_oauth_clients.rb | Ruby | apache-2.0 | 359 |
/*
* Copyright 2020 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... | line/armeria | core/src/main/java/com/linecorp/armeria/client/endpoint/EmptyEndpointGroupException.java | Java | apache-2.0 | 2,481 |
/* Copyright (c) 2016 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 by applicable law or... | QiJune/Paddle | paddle/legacy/pserver/SparseParameterDistribution.cpp | C++ | apache-2.0 | 3,981 |
// 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... | cpcloud/arrow | cpp/src/arrow/util/bpacking_simd128_generated.h | C | apache-2.0 | 98,418 |
/*
* Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* s... | hsnlab/escape | OpenYuma/netconf/src/mgr/mgr_hello.c | C | apache-2.0 | 16,228 |
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | iperdomo/keycloak | testsuite/integration/src/test/java/org/keycloak/testsuite/model/UserSessionProviderTest.java | Java | apache-2.0 | 25,703 |
/*
* 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 ... | witgo/spark | sql/catalyst/src/main/scala/org/apache/spark/sql/sources/filters.scala | Scala | apache-2.0 | 10,259 |
/*
* Copyright 2011 <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
*
* 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
... | chkal/rewrite | showcase/bookstore/src/main/java/org/ocpsoft/rewrite/showcase/bookstore/web/list/CategoryBean.java | Java | apache-2.0 | 2,115 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ssm/model/ModifyDocumentPermissionRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::SSM::Model;
using namespace Aws::Utils::Json;
using... | awslabs/aws-sdk-cpp | aws-cpp-sdk-ssm/source/model/ModifyDocumentPermissionRequest.cpp | C++ | apache-2.0 | 2,340 |
/**
* 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... | alyiwang/WhereHows | wherehows-common/src/main/java/wherehows/common/schemas/DatasetInventoryPropertiesRecord.java | Java | apache-2.0 | 1,738 |
#!/usr/bin/env php
<?php
$root = dirname(dirname(dirname(__FILE__)));
require_once $root.'/scripts/__init_script__.php';
if (ctags_check_executable() == false) {
echo phutil_console_format(
"Could not find Exuberant ctags. Make sure it is installed and\n".
"available in executable path.\n\n".
"Exuberant... | hach-que/unearth-phabricator | scripts/symbols/generate_ctags_symbols.php | PHP | apache-2.0 | 3,305 |
/*
* Copyright 2015 The Closure Compiler 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... | superkonduktr/closure-compiler | test/com/google/javascript/jscomp/js/es6/object_test.js | JavaScript | apache-2.0 | 2,754 |
/*
* Copyright 2017 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... | jhrcek/kie-wb-common | kie-wb-common-dmn/kie-wb-common-dmn-client/src/main/java/org/kie/workbench/common/dmn/client/commands/expressions/types/function/supplementary/MoveRowsCommand.java | Java | apache-2.0 | 6,228 |
//---------------------------------------------------------------------------
#ifndef du_boxH
#define du_boxH
//---------------------------------------------------------------------------
#define DU_BOX_NUMVERTEX 8
#define DU_BOX_NUMFACES 12
#define DU_BOX_NUMLINES 12
#define DU_BOX_NUMVERTEX2 36
extern ECORE_API F... | OLR-xray/OLR-3.0 | src/xray/xr_3da/du_box.h | C | apache-2.0 | 475 |
package org.zstack.network.l3;
import org.zstack.core.GlobalProperty;
import org.zstack.core.GlobalPropertyDefinition;
/**
*/
@GlobalPropertyDefinition
public class NetworkGlobalProperty {
@GlobalProperty(name = "skip.ipv6", defaultValue = "false")
public static boolean SKIP_IPV6;
@GlobalProperty(name =... | zstackio/zstack | network/src/main/java/org/zstack/network/l3/NetworkGlobalProperty.java | Java | apache-2.0 | 549 |
/*##########################################################################
_##
_## $Id$
_##
_##########################################################################*/
package jrds.probe.snmp;
import java.util.Set;
import org.snmp4j.smi.OID;
/**
* This probe is used to do simple mapping from oid to datas... | springlin2012/Mycat-Web | src/main/java/jrds/probe/snmp/RdsSnmpSimple.java | Java | apache-2.0 | 592 |
export { default } from 'ember-osf/components/search-facet-source/component';
| binoculars/ember-osf | app/components/search-facet-source/component.js | JavaScript | apache-2.0 | 78 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | MaineC/elasticsearch | core/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/SameShardAllocationDecider.java | Java | apache-2.0 | 6,524 |
/**
* 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... | chaveznvg/amphtml | test/functional/test-dom.js | JavaScript | apache-2.0 | 35,505 |
function Graph() {
this._nodes = {};
this._edges = [];
};
Graph.prototype.setNode = function(id, value) {
this._nodes[id] = value;
};
Graph.prototype.removeNode = function(id) {
var node = this._nodes[id];
for (var i in node._inEdges) {
var edge = node._inEdges[i];
var sourceNode = edge.source.node... | utako/atc | web/public/graph.js | JavaScript | apache-2.0 | 18,105 |
// Copyright 2015 The Cockroach 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 ag... | paperstreet/cockroach | pkg/cli/sql_util.go | GO | apache-2.0 | 9,891 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>com.google.zxing.aztec.decoder (ZXing 3.4.1 API)</title>
<link rel="sty... | tanelihuuskonen/zxing | docs/apidocs/com/google/zxing/aztec/decoder/package-frame.html | HTML | apache-2.0 | 861 |
// Copyright 2019 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... | EvilMcJerkface/tidb | expression/builtin_time_vec_generated_test.go | GO | apache-2.0 | 286,854 |
package com.sanders.db.sanders.com.dbproject;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTes... | SSOOnline/android-orm | sample/src/androidTest/java/com/sanders/db/sanders/com/dbproject/ApplicationTest.java | Java | apache-2.0 | 367 |
/*
* Copyright 2010 JBoss 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... | psiroky/droolsjbpm-tools | drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/flow/common/editor/editpart/GraphLayoutManager.java | Java | apache-2.0 | 1,292 |
<div style="width:100%;height:100%;">
<div class="settings-section" data-dojo-attach-point="searchesSection">
<table class="setting-table input-table" cellspacing="0">
<tbody>
<tr>
<td class="first">${nls.arrangement}</td>
<td class="second">
<select style="mar... | fiskinator/WAB2.0_JBox_MutualAid | widgets/Legend/setting/Setting.html | HTML | apache-2.0 | 1,181 |
/*
Copyright 2016 The Kubernetes 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 ag... | tnachen/kubernetes | pkg/apis/batch/validation/validation.go | GO | apache-2.0 | 10,298 |
/* (c) 2014 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 applicable law or ag... | linkedin/Cubert | src/main/java/com/linkedin/cubert/block/MergedTupleCreator.java | Java | apache-2.0 | 2,655 |
/*
* 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... | android-ia/platform_tools_idea | platform/indexing-impl/src/com/intellij/openapi/module/impl/scopes/ModuleWithDependentsScope.java | Java | apache-2.0 | 3,906 |
/**
* 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... | grgrzybek/camel | components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiBeanManagerHelper.java | Java | apache-2.0 | 2,510 |
/*
Copyright (c) 2013 Timon Wong
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distri... | raphaelchang/quadthingy-software | quadrotor/ChibiOS_16.1.4/community/os/hal/src/ee25xx.c | C | apache-2.0 | 12,242 |
/*
* 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.analytics.mapper;
import com.carrotsearch.hp... | HonzaKral/elasticsearch | x-pack/plugin/analytics/src/main/java/org/elasticsearch/xpack/analytics/mapper/HistogramFieldMapper.java | Java | apache-2.0 | 21,691 |
package io.katharsis.repository.exception;
import io.katharsis.errorhandling.exception.KatharsisMatchingException;
public class RepositoryAnnotationNotFoundException extends KatharsisMatchingException {
public RepositoryAnnotationNotFoundException(String message) {
super(message);
}
}
| zachncst/katharsis-core | src/main/java/io/katharsis/repository/exception/RepositoryAnnotationNotFoundException.java | Java | apache-2.0 | 305 |
/*******************************************************************************
* Code contributed to the webinos 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.... | krishnabangalore/Webinos-Platform | webinos/platform/android/wrt/src/org/webinos/wrt/renderer/WebChromeClient.java | Java | apache-2.0 | 1,937 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_21) on Wed May 04 07:58:35 PDT 2011 -->
<TITLE>
Uses of Package org.apache.hadoop.util (Hadoop 0.20.203.0 API)
</TITLE>
<META NAME="date" CONTENT="2... | zincumyx/Mammoth | mammoth-src/docs/api/org/apache/hadoop/util/package-use.html | HTML | apache-2.0 | 32,022 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/quicksight/model/ListDashboardsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include ... | awslabs/aws-sdk-cpp | aws-cpp-sdk-quicksight/source/model/ListDashboardsRequest.cpp | C++ | apache-2.0 | 1,117 |
#include <Eigen/Eigen>
#include <iostream>
#ifndef M_PI
#define M_PI 3.1415926535897932384626433832795
#endif
using namespace Eigen;
using namespace std;
int main(int, char**)
{
cout.precision(3);
Matrix4i m = Matrix4i::Random();
m.row(1).setOnes();
cout << m << endl;
return 0;
}
| shishaochen/TensorFlow-0.8-Win | third_party/eigen-eigen-50812b426b7c/build_dir/doc/snippets/compile_MatrixBase_setOnes.cpp | C++ | apache-2.0 | 292 |
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... | Odyl/couchdb | share/www/script/test/purge.js | JavaScript | apache-2.0 | 3,127 |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
The value of the [[Prototype]] internal slot of the GeneratorFunction
prototype object is the FunctionPrototype intrinsic object.
es6id: 25.2.2.2
---*/
... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/language/expressions/generators/prototype-relation-to-function.js | JavaScript | apache-2.0 | 461 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace EC2
{
namespace Model
{
enum class InstanceMetadataEndpointState
{
NOT... | jt70471/aws-sdk-cpp | aws-cpp-sdk-ec2/include/aws/ec2/model/InstanceMetadataEndpointState.h | C | apache-2.0 | 729 |
@(account: gitbucket.core.model.Account, groupNames: List[String], active: String,
isGroupManager: Boolean = false)(body: Html)(implicit context: gitbucket.core.controller.Context)
@import context._
@import gitbucket.core.view.helpers._
@html.main(account.userName){
<div class="container">
<div class="container... | noc06140728/gitbucket | src/main/twirl/gitbucket/core/account/main.scala.html | HTML | apache-2.0 | 2,543 |
/**
* 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... | hekonsek/fabric8 | components/fabric8-utils/src/main/java/io/fabric8/utils/CompositeFilter.java | Java | apache-2.0 | 1,403 |
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.google.mail;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.Conf... | apache/camel | components/camel-google/camel-google-mail/src/generated/java/org/apache/camel/component/google/mail/GoogleMailEndpointConfigurer.java | Java | apache-2.0 | 13,796 |
/*
* 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 ... | nishantmonu51/druid | processing/src/main/java/org/apache/druid/segment/virtual/VirtualizedColumnInspector.java | Java | apache-2.0 | 2,143 |
/******************************************************************************
* Copyright 2019 The Apollo 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
... | xiaoxq/apollo | modules/data/tools/smart_recorder/hard_brake_trigger.cc | C++ | apache-2.0 | 2,821 |
/*
* 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/zest-qi4j | tools/envisage/src/test/java/org/apache/polygene/envisage/school/domain/person/assembly/PersonModelAssembler.java | Java | apache-2.0 | 1,677 |
package org.apache.hadoop.dfs;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.net.NetworkTopology;
import junit.framework.TestCase;
public class TestReplicationPolicy extends TestCase {
priva... | moreus/hadoop | hadoop-0.11.2/src/test/org/apache/hadoop/dfs/TestReplicationPolicy.java | Java | apache-2.0 | 14,551 |
/*
* 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... | gradle/gradle | subprojects/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/TestCaseRerunHandling.java | Java | apache-2.0 | 750 |
from Node import error
SYNTAX_NODE_SERIALIZATION_CODES = {
# 0 is 'Token'. Needs to be defined manually
# 1 is 'Unknown'. Needs to be defined manually
'UnknownDecl': 2,
'TypealiasDecl': 3,
'AssociatedtypeDecl': 4,
'IfConfigDecl': 5,
'PoundErrorDecl': 6,
'PoundWarningDecl': 7,
'Poun... | amraboelela/swift | utils/gyb_syntax_support/NodeSerializationCodes.py | Python | apache-2.0 | 7,221 |
/*
* 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 ... | christophd/camel | core/camel-core-model/src/main/java/org/apache/camel/model/SendDefinition.java | Java | apache-2.0 | 3,458 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
The String.prototype.toLocaleLowerCase.length property has the attribute
ReadOnly
es5id: 15.5.4.17_A10
description: >
Checking if varying the String.prototype.to... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js | JavaScript | apache-2.0 | 1,443 |
/*
* 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 ... | deepakddixit/incubator-geode | geode-core/src/main/java/org/apache/geode/cache/wan/GatewayReceiverFactory.java | Java | apache-2.0 | 3,629 |
/*******************************************************************************
*
* Copyright (c) 2004-2010 Oracle Corporation.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and i... | sap-production/hudson-3.x | hudson-core/src/main/java/hudson/MarkupText.java | Java | apache-2.0 | 10,245 |
# dnssec
## Name
*dnssec* - enables on-the-fly DNSSEC signing of served data.
## Description
With *dnssec*, any reply that doesn't (or can't) do DNSSEC will get signed on the fly. Authenticated
denial of existence is implemented with NSEC black lies. Using ECDSA as an algorithm is preferred as
this leads to smaller... | yongtang/coredns | plugin/dnssec/README.md | Markdown | apache-2.0 | 3,103 |
/*
Copyright 2016 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, ... | huangyuqi/kubernetes | staging/src/k8s.io/kube-aggregator/pkg/apiserver/handler_proxy.go | GO | apache-2.0 | 7,873 |
#!/usr/bin/env python3
###############################################################################
# Copyright 2019 The Apollo 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... | xiaoxq/apollo | modules/tools/restore_video_record/restore_video_record.py | Python | apache-2.0 | 9,788 |
package test.configuration;
import java.util.Arrays;
import java.util.List;
import org.testng.Assert;
import org.testng.TestNG;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class GroupsTest {
private TestNG m_testNg;
@BeforeMethod
public void setUp() {
m_test... | ludovicc/testng-debian | test/src/test/configuration/GroupsTest.java | Java | apache-2.0 | 1,353 |
/*
* Copyright 2017 The Error Prone 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 ... | cushon/error-prone | core/src/test/java/com/google/errorprone/bugpatterns/android/testdata/CustomFragmentNotInstantiablePositiveCases.java | Java | apache-2.0 | 2,433 |
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | hfp/tensorflow-xsmm | tensorflow/core/distributed_runtime/rpc/grpc_rpc_factory.cc | C++ | apache-2.0 | 8,205 |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/security/privateca/v1beta1/resources.proto
namespace Google\Cloud\Security\PrivateCA\V1beta1\CertificateAuthority\CertificateAuthorityPolicy;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Go... | googleapis/google-cloud-php-security-private-ca | src/V1beta1/CertificateAuthority/CertificateAuthorityPolicy/AllowedSubjectAltNames.php | PHP | apache-2.0 | 13,584 |
package com.couchbase.lite;
import com.couchbase.lite.util.Log;
import com.couchbase.touchdb.RevCollator;
import com.couchbase.touchdb.TDCollateJSON;
import com.fasterxml.jackson.databind.ObjectMapper;
import junit.framework.Assert;
public class CollationTest extends LiteTestCase {
public static String TAG = "C... | cesine/couchbase-lite-android | src/androidTest/java/com/couchbase/lite/CollationTest.java | Java | apache-2.0 | 9,058 |
<?php
/**
* Attachment form.
*
* @package form
* @subpackage attachment
* @version SVN: $Id: AttachmentForm.class.php 24068 2009-11-17 06:39:35Z Kris.Wallsmith $
*/
class AttachmentForm extends BaseAttachmentForm
{
public function configure()
{
$this->widgetSchema['file'] = new sfWidge... | kamguir/salleSport | plugins/sfPropelORMPlugin/test/functional/fixtures/lib/form/AttachmentForm.class.php | PHP | apache-2.0 | 509 |
/*
* Copyright 2021 Apollo 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 i... | ctripcorp/apollo | apollo-core/src/main/java/com/ctrip/framework/apollo/core/schedule/ExponentialSchedulePolicy.java | Java | apache-2.0 | 1,428 |
/*
* #%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... | gab1one/imagej-ops | src/main/java/net/imagej/ops/special/AbstractBinaryOp.java | Java | bsd-2-clause | 1,823 |
cask "spark-ar-studio" do
version "127"
sha256 :no_check
url "https://www.facebook.com/sparkarmacos/download/"
name "Spark AR Studio"
desc "Create and share augmented reality experiences using the Facebook family of apps"
homepage "https://sparkar.facebook.com/ar-studio/"
livecheck do
url :url
s... | scottsuch/homebrew-cask | Casks/spark-ar-studio.rb | Ruby | bsd-2-clause | 694 |
package tonegod.gui.core;
import tonegod.gui.style.Style;
import com.jme3.app.Application;
import com.jme3.collision.CollisionResult;
import com.jme3.collision.CollisionResults;
import com.jme3.export.JmeExporter;
import com.jme3.export.JmeImporter;
import com.jme3.font.BitmapFont;
import com.jme3.input.KeyIn... | meltzow/tonegodgui | src/tonegod/gui/core/SubScreen.java | Java | bsd-2-clause | 47,888 |
<form name="dataSourceForm">
<div class="form-group">
<label for="dataSourceName">Name</label>
<input type="string" class="form-control" name="dataSourceName" ng-model="target.name" required>
</div>
<div class="form-group">
<label for="type">Type</label>
<select name="type" c... | easytaxibr/redash | rd_ui/app/views/directives/dynamic_form.html | HTML | bsd-2-clause | 2,012 |
package org.jvnet.jaxb2_commons.xjc.outline.concrete;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.apache.commons.lang3.Validate;
import org.jvnet.jaxb2_commons.xjc.outline.MEnumConstantOutline;
import org.jvnet.jaxb2_commons.xjc.outline.MEnumOutline;
import org.jvnet.ja... | Stephan202/jaxb2-basics | tools/src/main/java/org/jvnet/jaxb2_commons/xjc/outline/concrete/CMEnumOutline.java | Java | bsd-2-clause | 2,030 |
// Copyright 2016 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.
#ifndef COMPONENTS_ARC_BLUETOOTH_BLUETOOTH_STRUCT_TRAITS_H_
#define COMPONENTS_ARC_BLUETOOTH_BLUETOOTH_STRUCT_TRAITS_H_
#include "components/arc/common/b... | ssaroha/node-webrtc | third_party/webrtc/include/chromium/src/components/arc/bluetooth/bluetooth_struct_traits.h | C | bsd-2-clause | 5,109 |
/*
Copyright (c) 2012, Tuomo Eljas Kaikkonen
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions a... | RickGlimmer/ardupic32 | MySerial.h | C | bsd-2-clause | 7,744 |
#include <gtest/gtest.h>
#include <cpuinfo.h>
#include <cpuinfo-mock.h>
TEST(PROCESSORS, count) {
ASSERT_EQ(2, cpuinfo_processors_count);
}
TEST(PROCESSORS, non_null) {
ASSERT_TRUE(cpuinfo_get_processors());
}
TEST(PROCESSORS, vendor) {
for (uint32_t i = 0; i < cpuinfo_processors_count; i++) {
ASSERT_EQ(cpuin... | Maratyszcza/cpuinfo | test/mock/scaleway.cc | C++ | bsd-2-clause | 6,195 |
'''
Datastore via remote webdav connection
'''
from __future__ import unicode_literals
from future import standard_library
standard_library.install_aliases()
import os
import tarfile
import logging
from fs.contrib.davfs import DAVFS
from urllib.parse import urlparse
from contextlib import closing
from sumatra.core im... | open-research/sumatra | sumatra/datastore/davfs.py | Python | bsd-2-clause | 3,593 |
class Atlantis < Formula
desc "Terraform Pull Request Automation tool"
homepage "https://www.runatlantis.io/"
url "https://github.com/runatlantis/atlantis/archive/v0.12.0.tar.gz"
sha256 "df7c17fef4b37347fc22e1c5bf3d2b29ad1b219e70b6bff111e38d8ee01102e4"
bottle do
cellar :any_skip_relocation
sha256 "5c... | edporras/homebrew-core | Formula/atlantis.rb | Ruby | bsd-2-clause | 1,289 |
class DSF_SIC_Map(object):
"""docstring for SIC_Map"""
def __init__(self, dsffile = 'crsp/dsf.csv', sicfile = 'sic_codes.txt'):
self.dsf = pd.read_csv("dsf.csv", dtype = {'CUSIP': np.str, 'PRC': np.float}, na_values = {'PRC': '-'})
self.sic = pd.read_table(sicfile, header = 1)
self.sic.c... | dlab-projects/python-taq | marketflow/dsf_with_sic.py | Python | bsd-2-clause | 887 |
class Clojure14 < Formula
homepage "http://clojure.org/"
url "http://repo1.maven.org/maven2/org/clojure/clojure/1.4.0/clojure-1.4.0.zip"
sha256 "27a5a151d5cc1bc3e52dff47c66111e637fefeb42d9bedfa1284a1a31d080171"
bottle :unneeded
def script; <<-EOS.undent
#!/bin/sh
# Clojure wrapper script.
# With... | UniqMartin/homebrew-versions | clojure14.rb | Ruby | bsd-2-clause | 1,152 |
/*
Copyright (c) 2014, Alexey Frunze
2-clause BSD license.
*/
#include "istdio.h"
int fscanf(FILE* f, char* fmt, ...)
{
return __doscan(f, fmt, (char*)&fmt + sizeof(char*));
}
| gdos/SmallerC | v0100/srclib/fscanf.c | C | bsd-2-clause | 183 |
cask 'epubmdimporter' do
version '1.8'
sha256 '740c288a6ad2c98d5c94cf6eccba3ef535faaeda5ad408a897f84d4b324d16e0'
url "https://github.com/jaketmp/ePub-quicklook/releases/download/v#{version}/epub.mdimporter.zip"
appcast 'https://github.com/jaketmp/ePub-quicklook/releases.atom',
checkpoint: '4ce0d3ba18... | malford/homebrew-cask | Casks/epubmdimporter.rb | Ruby | bsd-2-clause | 683 |
// Copyright (c) 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.
#ifndef PDFIUM_THIRD_PARTY_BASE_LOGGING_H_
#define PDFIUM_THIRD_PARTY_BASE_LOGGING_H_
#include <stdlib.h>
#define CHECK(condition) ... | tojocky/node-pdfium | third_party/pdfium/third_party/base/logging.h | C | bsd-2-clause | 655 |
cask "typora" do
version "1.0.4"
sha256 "a59b7a653a55eb750b0da50245f866c60c0faa030ec3cadef93d6ae165a697ea"
url "https://download.typora.io/mac/Typora-#{version}.dmg"
name "Typora"
desc "Configurable document editor that supports Markdown"
homepage "https://typora.io/"
livecheck do
url "https://www.t... | scottsuch/homebrew-cask | Casks/typora.rb | Ruby | bsd-2-clause | 1,007 |
package core
import (
"github.com/MG-RAST/AWE/lib/core/cwl"
"github.com/MG-RAST/AWE/lib/logger"
)
type SetCounter struct {
Counter []int
Max []int
NumberOfSets int
Scatter_type string
//position_in_counter int
}
func NewSetCounter(numberOfSets int, array []cwl.Array, scatter_type string) (sc *Se... | wgerlach/AWE | lib/core/setcounter.go | GO | bsd-2-clause | 2,262 |
class Flavours < Cask
url 'http://flavours-updates.interacto.net/Flavours.dmg'
homepage 'http://flavours.interacto.net/'
version 'latest'
sha256 :no_check
link 'Flavours.app'
caveats do
files_in_usr_local
end
caskroom_only true # hack to make uninstall fire
uninstall :launchctl => 'net.intera... | okonomi/homebrew-cask | Casks/flavours.rb | Ruby | bsd-2-clause | 727 |
//
// Programmer: Craig Stuart Sapp <craig@ccrma.stanford.edu>
// Creation Date: Sat Aug 6 10:53:40 CEST 2016
// Last Modified: Sun Sep 18 14:16:18 PDT 2016
// Filename: MxmlPart.cpp
// URL: https://github.com/craigsapp/musicxml2hum/blob/master/src/MxmlPart.cpp
// Syntax: C++11; humlib
// vim:... | craigsapp/humlib | src/MxmlPart.cpp | C++ | bsd-2-clause | 16,652 |
require 'formula'
class Ode < Formula
homepage 'http://www.ode.org/'
url 'https://downloads.sourceforge.net/project/opende/ODE/0.13/ode-0.13.tar.bz2'
sha1 '0279d58cc390ff5cc048f2baf96cff23887f3838'
head do
url 'http://opende.svn.sourceforge.net/svnroot/opende/trunk'
depends_on :autoconf
depends_o... | justjake/linuxbrew | Library/Formula/ode.rb | Ruby | bsd-2-clause | 876 |
/*
* Copyright 2014 Attila Szegedi, Daniel Dekany, Jonathan Revusky
*
* 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 requi... | ekollof/DarkUniverse | lib/Freemarker/source/src/test/java/freemarker/test/servlet/Model2Action.java | Java | bsd-2-clause | 1,428 |
/*
* Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
* Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either... | nwjs/chromium.src | third_party/blink/renderer/core/layout/counter_node.cc | C++ | bsd-3-clause | 14,114 |
<?php
/**
* UMI.Framework (http://umi-framework.ru/)
*
* @link http://github.com/Umisoft/framework for the canonical source repository
* @copyright Copyright (c) 2007-2013 Umisoft ltd. (http://umisoft.ru/)
* @license http://umi-framework.ru/license/bsd-3 BSD-3 License
*/
namespace umi\acl\toolbox;
use um... | Umisoft/umi.framework-dev | library/acl/toolbox/AclTools.php | PHP | bsd-3-clause | 1,443 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.