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 |
|---|---|---|---|---|---|
/*
*
* 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"); ... | adufilie/flex-falcon | compiler/src/org/apache/flex/compiler/clients/problems/ProblemSettingsFilter.java | Java | apache-2.0 | 8,966 |
##########################GO-LICENSE-START################################
# Copyright 2014 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/li... | turbine-rpowers/gocd-add-agent-sandbox-config | server/webapp/WEB-INF/rails/spec/views/admin/jobs/index_html_spec.rb | Ruby | apache-2.0 | 3,985 |
<?php
/**
* Contains all client objects for the AudienceSegmentService 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 o... | venkyanthony/google-api-dfp-php | src/Google/Api/Ads/Dfp/v201211/AudienceSegmentService.php | PHP | apache-2.0 | 54,197 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Documenting T:NAnt.Compression.Tasks.UnZipTask-->
<head>
<meta http-equiv="Content-Language" content="en-ca" />
<meta http-equiv="Content-Type" content="te... | secdec/codepulse | dotnet-tracer/build/nant-0.91-alpha2/doc/help/tasks/unzip.html | HTML | apache-2.0 | 4,718 |
<!--
Off-screen preview of the next card in order to pre-determine the target
height for the card content transition animation.
-->
<div class="conversation-skin-future-tutor-card" aria-hidden="true">
<div class="conversation-skin-tutor-card-content">
<div class="conversation-skin-tutor-card-top-section">
... | MAKOSCAFEE/oppia | core/templates/dev/head/pages/exploration_player/conversation_skin_directive.html | HTML | apache-2.0 | 14,227 |
---
layout: default
description: Examples of audit event logging
title: Auditing Events
---
Audit Events
============
{% include hint-ee.md feature="Auditing" %}
Unless otherwise noted, all events are logged to their respective topics at the
`info` level. To suppress events from a given topic, set the topic to the `w... | arangodb/docs | 3.9/security-auditing-audit-events.md | Markdown | apache-2.0 | 8,631 |
/*
* Copyright 2011 Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*/
/*
* This file was generated by qdbusxml2cpp version 0.7
* Command line was: qdbu... | dudochkin-victor/gogoo-app-camera | plugin/cameraifadaptor.cpp | C++ | apache-2.0 | 1,075 |
# OneTwoThree
Repository for OneTwoThree Project
| hkh412/OneTwoThree_Deprecated | README.md | Markdown | apache-2.0 | 49 |
/* This C file is generated by NIT to compile module syntax. */
#include "syntax._sep.h"
static const char LOCATE_syntax___SrcModuleLoader___file_type[] = "syntax::SrcModuleLoader::(mmloader::ModuleLoader::file_type)";
val_t syntax___SrcModuleLoader___file_type(val_t p0){
struct {struct stack_frame_t me;} fra;
val_... | michauds/nit | c_src/syntax._sep.c | C | apache-2.0 | 18,784 |
/*
* 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 ... | Fabryprog/camel | components/camel-elasticsearch-rest/src/main/java/org/apache/camel/component/elasticsearch/converter/ElasticsearchActionRequestConverter.java | Java | apache-2.0 | 9,397 |
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
//go:build go1.16 && integration
// +build go1.16,integration
package codebuild_test
import (
"context"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.... | aws/aws-sdk-go | service/codebuild/integ_test.go | GO | apache-2.0 | 953 |
using System.Diagnostics.Contracts;
using Bari.Core.UI;
using System;
namespace Bari.Core.Build.Dependencies
{
/// <summary>
/// Represents dependency on another builder (<see cref="IBuilder"/>)
/// </summary>
public class SubtaskDependency: DependenciesBase
{
private readonly I... | Psychobilly87/bari | src/core/Bari.Core/cs/Build/Dependencies/SubtaskDependency.cs | C# | apache-2.0 | 1,450 |
/*
* 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/jackrabbit-oak | oak-auth-external/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/jmx/ResultMessages.java | Java | apache-2.0 | 4,532 |
# 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 applica... | alsrgv/tensorflow | tensorflow/python/compiler/tensorrt/test/int32_test.py | Python | apache-2.0 | 2,529 |
# lokki
This is the main repository for the Lokki project.
Lokki is an Open Source Project that develops a secure location sharing service. The code is based on a service developed by F-Secure Corporation and open sourced at the end of 2014. This repository is used for high-level tasks, general documentation, and the... | TheSoftwareFactory/lokki | README.md | Markdown | apache-2.0 | 2,640 |
/**
* Copyright 2017 TerraMeta Software, 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 ... | plasma-framework/plasma | plasma-core/src/main/java/org/plasma/provisioning/xsd/AbstractAssembler.java | Java | apache-2.0 | 5,925 |
/*
* Copyright (C) 2012 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... | viktorkh/ApiDemos | app/src/main/java/com/example/mapdemo/PolygonDemoActivity.java | Java | apache-2.0 | 7,375 |
package net.ros.common.machine.module;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.common.capabilities.Capability;
import javax.annotation.Nullable;
public interface ICapabilityModule
{
boolean hasCapability(Capability<?> capability, BlockPos from, @Nu... | mantal/Qbar | common/src/main/java/net/ros/common/machine/module/ICapabilityModule.java | Java | apache-2.0 | 459 |
<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>BufferedIndexOutput Constructor</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css"... | Mpdreamz/lucene.net | doc/core/Lucene.Net.Store.BufferedIndexOutputConstructor.html | HTML | apache-2.0 | 1,682 |
/*
* Copyright 2016 Robin Engel
*
* 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... | bluedevel/mosel | commons/http.go | GO | apache-2.0 | 1,097 |
/**
* Copyright 2016 StreamSets Inc.
*
* Licensed under 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... | studanshu/datacollector | kudu-protolib/src/main/java/com/streamsets/pipeline/stage/destination/kudu/ConsistencyMode.java | Java | apache-2.0 | 1,303 |
require 'devise/strategies/http_header_authenticatable'
module Devise
module Models
module HttpHeaderAuthenticatable
extend ActiveSupport::Concern
def after_database_authentication
end
protected
end
end
end
| zhang4952/scholarsphere | lib/devise/models/http_header_authenticatable.rb | Ruby | apache-2.0 | 245 |
//** Smooth Navigational Menu- By Dynamic Drive DHTML code library: http://www.dynamicdrive.com
//** Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/
//** Menu created: Nov 12, 2008
//** Dec 12th, 08" (v1.01): Fixed Shadow issue when multiple LIs within the same UL (level... | vikigroup/cbuilk | web/skin/temp12/scripts/menu/ddsmoothmenu.js | JavaScript | apache-2.0 | 8,801 |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Profile extends DataMapper {
var $has_one = array('user');
var $has_many = array();
var $validation = array(
'user_id' => array(
'rules' => array(),
'label' => 'User ID'
),
'group_id' => array(
'rules' => array(),
'l... | FoolCode/FoOlSlide | application/models/profile.php | PHP | apache-2.0 | 1,187 |
#
# Copyright 2012-2014 Chef Software, 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 ... | KiiCorp/omnibus-software | config/software/cacerts.rb | Ruby | apache-2.0 | 3,499 |
<!doctype html>
<HTML>
<?php
//celkovy zaciatok
do
{
$sys = 'UCT';
$urov = 3000;
$copern = $_REQUEST['copern'];
$uziv = include("../uziv.php");
if ( !$uziv ) exit;
require_once("../pswd/password.php");
@$spojeni = mysql_connect($mysqlhost, $mysqluser, $mysqlpasswd);
if (!$spojeni):
echo "Spojenie so serverom ne... | eurosecom/projekt1 | ucto/vykaz_fin304_2016.php | PHP | apache-2.0 | 87,883 |
package org.apache.commons.jelly.tags.quartz;
/*
* Copyright 2002,2004 The Apache Software 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.apa... | hudson3-plugins/commons-jelly | jelly-tags/quartz/src/java/org/apache/commons/jelly/tags/quartz/WaitForSchedulerTag.java | Java | apache-2.0 | 2,364 |
/*
* Copyright (c) 2019, NVIDIA 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | mlperf/inference_results_v0.5 | open/NVIDIA/code/gnmt/tensorrt/src/plugin/attentionPlugin.cpp | C++ | apache-2.0 | 9,784 |
// Copyright 2021 The Kubeflow 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 agr... | kubeflow/pipelines | frontend/src/lib/v2/StaticFlow.ts | TypeScript | apache-2.0 | 15,422 |
//FirstView Component Constructor
var queViewArray = [];
function FirstView() {
var QueDetailWindow = require('ui/common/QueDetailWindow');
var mainBackgroundColor = "gray";
var queWholeValue = [];
//create object instance, a parasitic subclass of Observable
var self = Ti.UI.createView({
backgroundCo... | mreigen/KhongMinhThanToan | build/mobileweb/ui/common/FirstView.js | JavaScript | apache-2.0 | 2,724 |
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | shyTNT/googleads-java-lib | examples/dfp_axis/src/main/java/dfp/axis/v201502/ratecardservice/GetAllRateCards.java | Java | apache-2.0 | 3,229 |
<?php
namespace Basho\Riak\Command\Builder\Search;
use Basho\Riak;
use Basho\Riak\Command;
/**
* Builds the command to fetch a collection of objects from Riak using Yokozuna search
*
* @author Christopher Mancini <cmancini at basho d0t com>
*/
class FetchObjects extends Command\Builder implements Command\Builder... | basho/riak-php-client | src/Riak/Command/Builder/Search/FetchObjects.php | PHP | apache-2.0 | 3,346 |
/**
* 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... | beysims/reef | lang/java/reef-examples-hdinsight/src/main/java/org/apache/reef/examples/hello/HelloHDInsight.java | Java | apache-2.0 | 1,294 |
<?php
/**
* COmanage Registry Names Controller
*
* Portions licensed to the University Corporation for Advanced Internet
* Development, Inc. ("UCAID") under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
*
... | irtnog/comanage-registry | app/Controller/NamesController.php | PHP | apache-2.0 | 15,466 |
/*
* Copyright 2015-2017 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... | markfisher/spring-cloud-data | spring-cloud-dataflow-completion/src/main/java/org/springframework/cloud/dataflow/completion/ConfigurationPropertyNameAfterDashDashTaskRecoveryStrategy.java | Java | apache-2.0 | 2,643 |
# 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 agreed to in writing, ... | dazuma/google-cloud-ruby | google-cloud-pubsub/test/google/cloud/pubsub/flow_controller_test.rb | Ruby | apache-2.0 | 22,645 |
# 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 use ... | phrocker/accumulo | test/system/auto/sleep.py | Python | apache-2.0 | 856 |
# frozen_string_literal: true
if defined?(ChefSpec)
def create_icinga2_apilistener(name)
ChefSpec::Matchers::ResourceMatcher
.new(:icinga2_apilistener, :create, name)
end
def delete_icinga2_apilistener(name)
ChefSpec::Matchers::ResourceMatcher
.new(:icinga2_apilistener, :delete, name)
end
... | vkhatri/chef-icinga2-1 | spec/support/matchers.rb | Ruby | apache-2.0 | 10,159 |
package org.semanticweb.elk.owl.inferences;
import org.semanticweb.elk.owl.interfaces.ElkAxiom;
/*
* #%L
* ELK Proofs Package
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2011 - 2016 Department of Computer Science, University of Oxford
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you... | liveontologies/elk-reasoner | elk-proofs/src/main/java/org/semanticweb/elk/owl/inferences/ElkClassInclusionReflexivePropertyRange.java | Java | apache-2.0 | 3,617 |
<script>
window.location = "/app/index.html";
</script> | qwefgh90/handyfinder | src/test/resources/appdata/app/redirect.html | HTML | apache-2.0 | 56 |
/* Copyright 2007 Alin Dreghiciu.
* Copyright 2010 Achim Nierbeck.
*
* 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 ... | stsiano/org.ops4j.pax.web | pax-web-deployer/src/main/java/org/ops4j/pax/web/deployer/internal/WarDeployer.java | Java | apache-2.0 | 5,024 |
/*
* ----------------------------------------
* Jenkins Test Tracker
* ----------------------------------------
* Produced by Dan Grew
* 2016
* ----------------------------------------
*/
package uk.dangrew.jtt.desktop.graphics;
/**
* Implementation of {@link PlatformDecoupler... | DanGrew/JenkinsTestTracker | JttDesktop/test/uk/dangrew/jtt/desktop/graphics/TestPlatformDecouplerImpl.java | Java | apache-2.0 | 1,154 |
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>N O L A N</title>
<style type="text/css">
@media only screen and (max-width: 620px) {
table[class=body] h1 {
font-size: 28px !i... | eschuler7/compromisos | templates/template_security_registration.html | HTML | apache-2.0 | 8,066 |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | fjy/druid | indexing-service/src/main/java/io/druid/indexing/overlord/autoscaling/SimpleResourceManagementStrategy.java | Java | apache-2.0 | 14,050 |
/*
* 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/bval | bval-jsr/src/test/java/org/apache/bval/jsr/metadata/ContainerElementKeyTest.java | Java | apache-2.0 | 4,874 |
# Copyright 2014 - Rackspace Hosting.
#
# 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... | eshijia/magnum | magnum/common/clients.py | Python | apache-2.0 | 8,321 |
/* ************************************************************************
#
# DivConq
#
# http://divconq.com/
#
# Copyright:
# Copyright 2012 eTimeline, LLC. All rights reserved.
#
# License:
# See the license.txt file in the project's top-level directory for details.
#
# Authors:
# * Andy ... | gspandy/divconq | divconq.core/src/main/java/divconq/db/common/UsernameLookupRequest.java | Java | apache-2.0 | 1,357 |
package com.alibaba.json.test.benchmark.basic;
import com.alibaba.fastjson.JSON;
import java.util.LinkedList;
/**
* Created by wenshao on 06/08/2017.
*/
public class LinkedListBenchmark {
public static void main(String[] args) throws Exception {
LinkedList linkedList = new LinkedList();
for (in... | alibaba/fastjson | src/test/java/com/alibaba/json/test/benchmark/basic/LinkedListBenchmark.java | Java | apache-2.0 | 809 |
#
# Author:: Tyler Cloke (<tyler@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
# License:: Apache License, Version 2.0
#
# 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:... | higanworks/chef | spec/support/shared/unit/knife_shared.rb | Ruby | apache-2.0 | 1,224 |
//
// NSString+Contains.h
// mage-ios-sdk
//
//
#import <Foundation/Foundation.h>
@interface NSString (Contains)
- (BOOL)safeContainsString:(NSString*)other;
@end
| ngageoint/mage-ios | sdk/NSString+Contains.h | C | apache-2.0 | 169 |
<?php
namespace Addons\Diy\Widget\Music;
use Addons\Diy\Controller\WidgetController;
class DealController extends WidgetController {
// widget的说明,必填写
function info() {
return array (
'hidden' => 1,
'title' => '音乐模块', // 必填,显示在选择widget显示的名称
'icon' => '' // 可为空,获取选择的模板的html代码,为空则使用通用的方法获取
... | kmarkcn/gogoda | Addons/Diy/Widget/Music/DealController.class.php | PHP | apache-2.0 | 595 |
/*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | bgrozev/libjitsi | src/org/jitsi/impl/neomedia/transform/srtp/SRTPCryptoContext.java | Java | apache-2.0 | 26,112 |
---
title: AWS
---
{{site.prodname}} provides the following advantages when running in AWS:
- **Network Policy for Containers**: {{site.prodname}} provides fine-grained network security policy for individual containers.
- **No Overlays**: Within each VPC subnet {{site.prodname}} doesn't need an overlay, which means h... | gunjan5/calico | master/reference/public-cloud/aws.md | Markdown | apache-2.0 | 4,762 |
## Contribute
If you want to participate in the development, feel free to [contact us](team-list.html).
### Access to source code
You can also download the source code from our Git repository.
Following URL's will give you read-only access to our server:
```xml
ssh://gitlab@build.se.informatik.uni-kiel.de:teetime... | ChristianWulf/teetime | src/site/markdown/contribute.md | Markdown | apache-2.0 | 1,551 |
/**
*
*/
package edu.berkeley.nlp.tokenizer;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import java.util.Iterator;
import java.util.List;
import edu.berkeley.nlp.util.StringUtils;
/**
* Tokenizer implementation that conforms to the Penn Treebank tok... | text-machine-lab/CliRel | model/kim/berkeleyparser/src/edu/berkeley/nlp/tokenizer/PTBTokenizer.java | Java | apache-2.0 | 5,463 |
package eu.xenit.de.testing.greeting;
public class GreetingServiceWrapper {
private final GreetingService greetingService;
public GreetingServiceWrapper(GreetingService greetingService) {
this.greetingService = greetingService;
}
public GreetingService getGreetingService() {
return g... | laurentvdl/dynamic-extensions-for-alfresco | integration-tests/test-bundle/src/main/java/eu/xenit/de/testing/greeting/GreetingServiceWrapper.java | Java | apache-2.0 | 344 |
package ctxlogrus_test
import (
"context"
"github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus/ctxlogrus"
"github.com/grpc-ecosystem/go-grpc-middleware/tags"
)
// Simple unary handler that adds custom fields to the requests's context. These will be used for all log statements.
func ExampleExtract_unary() ... | grpc-ecosystem/go-grpc-middleware | logging/logrus/ctxlogrus/examples_test.go | GO | apache-2.0 | 649 |
#ifndef BOOST_MPL_ALWAYS_HPP_INCLUDED
#define BOOST_MPL_ALWAYS_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2001-2004
//
// 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://www.boost.org/... | jaredhoberock/gotham | windows/include/boost/mpl/always.hpp | C++ | apache-2.0 | 933 |
/*
* Copyright (c) 2005-2010 Grameen Foundation USA
* 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
*
* Unl... | maduhu/mifos-head | application/src/main/java/org/mifos/accounts/savings/business/SavingsTransactionActivityHelperImpl.java | Java | apache-2.0 | 4,159 |
/*
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, 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
... | minio/minio-dotnet | Minio/Exceptions/DeleteObjectException.cs | C# | apache-2.0 | 837 |
// Copyright (c) 2017, Baidu.com, 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 applic... | morningman/palo | be/src/exec/olap_scanner.cpp | C++ | apache-2.0 | 17,960 |
/**
* 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... | zhouyx/amphtml | src/service/extension-location.js | JavaScript | apache-2.0 | 3,387 |
package net.vonbuchholtz.sbt.dependencycheck
import org.owasp.dependencycheck.Engine
import sbt.Logger
object DependencyCheckUpdateTask {
def update(engine: Engine, log: Logger): Unit = {
try {
engine.doUpdates()
} catch {
case e: Exception =>
log.error(s"An exception occurred connecting... | albuch/dependency-check-sbt | src/main/scala/net/vonbuchholtz/sbt/dependencycheck/DependencyCheckUpdateTask.scala | Scala | apache-2.0 | 399 |
# coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
import tex... | scode/pants | src/python/pants/backend/jvm/tasks/jvm_compile/scala/zinc_compile.py | Python | apache-2.0 | 12,212 |
<!-- Header -->
<header>
<div class="container">
<div class="row">
<div class="col-md-8 col-md-push-2">
<div class="intro-text">
<span class="name">{{ site.data.vcf.title }} </span>
</div>
<br... | stuartscott/scottlab.github.io | _includes/vcf_header.html | HTML | apache-2.0 | 692 |
/*
* Copyright 2014 NAVER 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 to ... | Xylus/pinpoint | web/src/main/java/com/navercorp/pinpoint/web/cluster/zookeeper/ZookeeperClusterDataManagerHelper.java | Java | apache-2.0 | 3,837 |
"""
FormWizard class -- implements a multi-page form, validating between each
step and storing the form's state as HTML hidden fields so that no state is
stored on the server side.
"""
import cPickle as pickle
from django import forms
from django.conf import settings
from django.http import Http404
from django.shortc... | sanjuro/RCJK | vendor/django/contrib/formtools/wizard.py | Python | apache-2.0 | 10,209 |
/* main.c - Application main entry point */
/*
* Copyright (c) 2015 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/types.h>
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <errno.h>
#include <linker/sections.h>
#include <ztest.h>
#include <net/net_if.h>
#incl... | rsalveti/zephyr | tests/net/mld/src/main.c | C | apache-2.0 | 10,236 |
/**
* 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... | google-code/agimatec-validation | agimatec-jsr303/src/main/java/com/agimatec/validation/jsr303/AppendValidationToBuilder.java | Java | apache-2.0 | 1,331 |
// 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 com.intellij.openapi.editor.impl;
import com.intellij.openapi.editor.ex.LineIterator;
import com.intellij.openapi.util.text.LineTokenizer;
import com.intellij.openapi.uti... | allotria/intellij-community | platform/core-impl/src/com/intellij/openapi/editor/impl/LineSet.java | Java | apache-2.0 | 9,330 |
/*
* 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 ... | ra0077/jmeter | src/components/org/apache/jmeter/extractor/JSoupExtractor.java | Java | apache-2.0 | 3,051 |
/*
* 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 ... | dusenberrymw/systemml | src/main/java/org/apache/sysml/runtime/instructions/mr/CtableInstruction.java | Java | apache-2.0 | 9,168 |
# Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
import json
from .common import BaseTest, functional
from c7n.resources.aws import shape_validate
from c7n.utils import yaml_load
class TestSNS(BaseTest):
@functional
def test_sns_remove_matched(self):
session_factory = s... | thisisshi/cloud-custodian | tests/test_sns.py | Python | apache-2.0 | 26,225 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef DeleteNodeTxn_h__
#define ... | sergecodd/FireFox-OS | B2G/gecko/editor/libeditor/base/DeleteNodeTxn.h | C | apache-2.0 | 1,375 |
<!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 (9-Debian) on Thu Sep 28 23:13:22 GMT 2017 -->
<title>ErrorHandlerFactory (dollar-script 0.4.5195 API)</title>
<meta http-equiv="Content-Type" content... | neilellis/dollar | docs/dev/dollar-script/apidocs/dollar/internal/runtime/script/ErrorHandlerFactory.html | HTML | apache-2.0 | 17,413 |
/*
* 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 ... | mohanaraosv/commons-bcel | src/main/java/org/apache/commons/bcel6/verifier/GraphicalVerifier.java | Java | apache-2.0 | 2,652 |
/*
* 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... | mhurne/aws-sdk-java | aws-java-sdk-machinelearning/src/main/java/com/amazonaws/services/machinelearning/model/CreateDataSourceFromRDSRequest.java | Java | apache-2.0 | 37,444 |
body {
margin:0px;
background-image:none;
position:relative;
left:-0px;
width:1198px;
margin-left:auto;
margin-right:auto;
text-align:left;
}
#base {
position:absolute;
z-index:0;
}
#u0 {
position:absolute;
left:54px;
top:356px;
width:185px;
height:25px;
}
#u0_input {
position:absolute;... | VHAINNOVATIONS/Mental-Health-eScreening | UIResources/DashboardWireframes/files/battery_delete/styles.css | CSS | apache-2.0 | 12,985 |
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | googleapis/google-cloud-dotnet | apis/Google.Cloud.Compute.V1/Google.Cloud.Compute.V1.GeneratedSnippets/RegionCommitmentsClient.InsertRequestObjectAsyncSnippet.g.cs | C# | apache-2.0 | 2,813 |
# FuncLog
## Description
FuncLog is part of the [_General Inductive Logic Programming System_ (GILPS)](http://www.doc.ic.ac.uk/~jcs06/GILPS/)
developed by [José Carlos Almeida Santos](http://www.doc.ic.ac.uk/~jcs06/).
GILPS is written in Prolog and requires at least [YAP 6.0](http://www.dcc.fc.up.pt/~vsc/Yap/do... | AKSW/SML-Bench | learningsystems/funclog/README.md | Markdown | apache-2.0 | 1,652 |
/*
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | hello2009chen/spring-boot | spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/servlet/MockMvcWebDriverAutoConfiguration.java | Java | apache-2.0 | 3,164 |
# Copyright (c) 2014 Red Hat, 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 require... | pnavarro/neutron | neutron/tests/functional/agent/test_l3_agent.py | Python | apache-2.0 | 53,684 |
// Copyright 2006, 2008, 2009 The Apache Software 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 ... | apache/tapestry-5 | tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/PropBinding.java | Java | apache-2.0 | 3,810 |
// 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... | itaiin/arrow | rust/datafusion/src/sql/mod.rs | Rust | apache-2.0 | 869 |
/*
* Copyright 2002-2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | jgrandja/spring-security | config/src/test/java/org/springframework/security/config/annotation/web/configurers/UrlAuthorizationsTests.java | Java | apache-2.0 | 6,350 |
/**
*
* Process Editor
*
* (C) 2009, 2010 inubit AG
* (C) 2014 the authors
*
*/
package com.inubit.research.gui.plugins.validationPlugin;
import com.inubit.research.gui.Workbench;
import com.inubit.research.gui.WorkbenchEditorListener;
import com.inubit.research.validation.ValidationMessage;
import com.inubit.r... | bptlab/processeditor | src/com/inubit/research/gui/plugins/validationPlugin/CheckingResultDialog.java | Java | apache-2.0 | 20,064 |
# ===============================================================================
# Copyright 2011 Jake Ross
#
# 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... | USGSDenverPychron/pychron | pychron/database/core/database_adapter.py | Python | apache-2.0 | 27,114 |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
// Original code is licensed as follows:
/*
* Copyright 2013 ZXing auth... | loilo-inc/loilo-pdf | lib/src/main/cpp/external/pdfium/xfa/src/fxbarcode/pdf417/BC_PDF417ScanningDecoder.cpp | C++ | apache-2.0 | 29,539 |
// Copyright 2006 The RE2 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 RE2_REGEXP_H_
#define RE2_REGEXP_H_
// --- SPONSORED LINK --------------------------------------------------
// If you want to use this library for r... | tsandall/opa | wasm/src/re2/re2/regexp.h | C | apache-2.0 | 23,984 |
require 'spec_helper'
type_class = Puppet::Type.type(:image)
describe type_class do
let :params do
[
:name
]
end
let :properties do
[
:description,
:location,
:id,
:size,
:cpu_hot_plug,
:cpu_hot_unplug,
:ram_hot_plug,
:ram_hot_unplug,
:nic... | profitbricks/profitbricks-puppet | spec/unit/type/image_spec.rb | Ruby | apache-2.0 | 1,013 |
// scalac: -Xfatal-warnings
sealed trait Fails
case class VarArgs1(a: String*) extends Fails
case class FailsChild2(a: Seq[String]) extends Fails
object FailsTest {
def t1(f: Fails) = f match { // inexhaustive on both, was: no warning
case VarArgs1(_) => ???
}
def t2(f: Fails) = f match { // inexhaustive ... | scala/scala | test/files/neg/t8178.scala | Scala | apache-2.0 | 983 |
/*
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | mirkosertic/Bytecoder | classlib/java.desktop/src/main/resources/META-INF/modules/java.desktop/classes/sun/print/IPPPrintService.java | Java | apache-2.0 | 78,960 |
#
# 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... | shanti/olio | webapp/rails/trunk/vendor/plugins/rspec/lib/spec/example/example_group.rb | Ruby | apache-2.0 | 1,518 |
package service
import (
"path/filepath"
"reflect"
"testing"
"github.com/docker/docker/api/types/container"
"github.com/docker/libcompose/config"
"github.com/docker/libcompose/docker/ctx"
"github.com/docker/libcompose/lookup"
"github.com/docker/libcompose/yaml"
shlex "github.com/flynn/go-shlex"
"github.com/... | turnerlabs/harbor-compose | vendor/github.com/docker/libcompose/docker/service/convert_test.go | GO | apache-2.0 | 4,904 |
/*
License
Menge
Copyright © and trademark 2012-14 University of North Carolina at Chapel Hill.
All rights reserved.
Permission to use, copy, modify, and distribute this software and its documentation
for educational, research, and non-profit purposes, without fee, and without a
written agreement is hereby granted... | MengeCrowdSim/Menge | src/Plugins/AgtKaramouzas/KaramouzasInitializer.cpp | C++ | apache-2.0 | 5,845 |
/**
* 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... | busbey/hadoop | hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFsck.java | Java | apache-2.0 | 62,516 |
/* crc32.c -- compute the CRC-32 of a data stream
* Copyright (C) 1995-2005 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*
* Thanks to Rodney Brown <rbrown64@csc.com.au> for his contribution of faster
* CRC methods: exclusive-oring 32 bits of data at a time, and pre-computing... | naturalatlas/node-gdal | deps/libgdal/gdal/frmts/zlib/crc32.c | C | apache-2.0 | 13,280 |
/*
* Copyright (c) 2014 Wael Chatila / Icegreen Technologies. All Rights Reserved.
* This software is released under the Apache license 2.0
* This file has been used and modified.
* Original file can be found on http://foedus.sourceforge.net
*/
package com.icegreen.greenmail.mail;
import com.icegreen.gree... | jianglili007/greenmail | greenmail-core/src/main/java/com/icegreen/greenmail/mail/MovingMessage.java | Java | apache-2.0 | 3,641 |
/*
* UnlinkEvent.h
*
* Created on: May 3, 2012
* Author: augcampos
*/
#ifndef UNLINKEVENT_H_
#define UNLINKEVENT_H_
#include "BridgeEvent.h"
namespace asteriskcpp {
/**
* An UnlinkEvent is triggered when a link between two voice channels is discontinued, for example,
* just before call comp... | tiijima/asterisk-cpp | asterisk-cpp/asteriskcpp/manager/events/UnlinkEvent.h | C | apache-2.0 | 750 |
/*
* Copyright 2010 Jon S Akhtar (Sylvanaar)
*
* 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 ... | internetisalie/lua-for-idea | src/main/java/com/sylvanaar/idea/Lua/LuaFileTypeLoader.java | Java | apache-2.0 | 1,114 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.