repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
RlanderRISCSW/cpacs_tigl_gen | src/driver/main.cpp | 5115 | #include <boost/filesystem.hpp>
#include <iostream>
#include <iomanip>
#include "../lib/SchemaParser.h"
#include "../lib/TypeSystem.h"
#include "../lib/CodeGen.h"
#include "../lib/Tables.h"
#include "../lib/Filesystem.h"
#include "../lib/NotImplementedException.h"
namespace fs = boost::filesystem;
namespace tigl {
... | apache-2.0 |
EZWebvietnam/vieclam24h | application/helpers/file_cache_helper.php | 13647 | <?php if (! defined('BASEPATH')) exit('No direct script access allowed');
/**
* file_cache_helper
*
* This is a cache system that has been built for use in the
* Codeigniter Framework.
*
* @author Matthew Craig <matt@taggedzi.com>
* @copyright Matthew Craig 2011-03-28
* @version 1.0
* @link... | apache-2.0 |
dylanswartz/nakamura | testscripts/SlingRuby/kerns/kern-296.rb | 1157 | #!/usr/bin/env ruby
require 'rubygems'
require 'bundler'
Bundler.setup(:default)
require 'nakamura/test'
require 'nakamura/search'
require 'test/unit.rb'
include SlingSearch
class TC_Kern296Test < Test::Unit::TestCase
include SlingTest
def test_move
m = uniqueness()
u1 = create_user("testuser#{m}")
a... | apache-2.0 |
Darpholgshon/metadata-extractor | src/main/java/com/drew/lang/StringUtil.java | 3873 | /*
* Copyright 2002-2013 Drew Noakes
*
* 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 applicab... | apache-2.0 |
psiroky/guvnor | droolsjbpm-ide-common/src/test/java/org/drools/ide/common/server/util/BRDRLPersistenceTest.java | 117474 | /*
* 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... | apache-2.0 |
lilshim/stock-data-visualize-demo | Assets/OVR/Scripts/OVRCommon.cs | 4601 | /************************************************************************************
Copyright : Copyright 2014 Oculus VR, LLC. All Rights reserved.
Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License");
you may not use the Oculus VR Rift SDK except in compliance with the License,
which... | apache-2.0 |
speedovation/kiwi-node-plugins | node_modules/jayson/examples/method_routing/client.js | 252 | var jayson = require(__dirname + '/../..');
// create a client
var client = jayson.client.http({
port: 3000
});
// invoke "add_2"
client.request('add_2', [3], function(err, response) {
if(err) throw err;
console.log(response.result); // 5!
});
| apache-2.0 |
bit-zyl/Alluxio-Nvdimm | underfs/swift/src/test/java/alluxio/underfs/swift/SwiftUnderFileSystemFactoryTest.java | 1408 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | apache-2.0 |
vergilchiu/hive | ql/src/test/org/apache/hadoop/hive/ql/udf/generic/TestGenericUDFFactorial.java | 3087 | /**
* 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 |
hxiaodon/seaweedfs | weed/storage/volume_info_test.go | 303 | package storage
import "testing"
func TestSortVolumeInfos(t *testing.T) {
vis := []*VolumeInfo{
&VolumeInfo{
Id: 2,
},
&VolumeInfo{
Id: 1,
},
&VolumeInfo{
Id: 3,
},
}
sortVolumeInfos(vis)
for i := 0; i < len(vis); i++ {
if vis[i].Id != VolumeId(i+1) {
t.Fatal()
}
}
}
| apache-2.0 |
AkihiroSuda/docker | libnetwork/diagnostic/server.go | 6489 | package diagnostic
import (
"context"
"encoding/json"
"fmt"
"net/http"
"sync"
"sync/atomic"
"github.com/docker/docker/libnetwork/internal/caller"
stackdump "github.com/docker/docker/pkg/signal"
"github.com/sirupsen/logrus"
)
// HTTPHandlerFunc TODO
type HTTPHandlerFunc func(interface{}, http.ResponseWriter,... | apache-2.0 |
pvillard31/nifi | nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ConfigVerificationResultDTO.java | 1855 | /*
* 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 |
jokeog/Projuct1.0 | app/src/main/java/com/mikepenz/materialdrawer/app/decorators/EventDecorator.java | 918 | package com.mikepenz.materialdrawer.app.decorators;
import com.prolificinteractive.materialcalendarview.CalendarDay;
import com.prolificinteractive.materialcalendarview.DayViewDecorator;
import com.prolificinteractive.materialcalendarview.DayViewFacade;
import com.prolificinteractive.materialcalendarview.spans.DotSpan... | apache-2.0 |
JiYou/jitsi-meet | service/xmpp/XMPPEvents.js | 1571 | var XMPPEvents = {
CONNECTION_FAILED: "xmpp.connection.failed",
CONFERENCE_CREATED: "xmpp.conferenceCreated.jingle",
CALL_INCOMING: "xmpp.callincoming.jingle",
DISPOSE_CONFERENCE: "xmpp.dispose_conference",
GRACEFUL_SHUTDOWN: "xmpp.graceful_shutdown",
KICKED: "xmpp.kicked",
BRIDGE_DOWN: "xmp... | apache-2.0 |
thunderace/newtifry | appengine/mako.0.9.0/lexer.py | 16788 | # mako/lexer.py
# Copyright (C) 2006-2013 the Mako authors and contributors <see AUTHORS file>
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""provides the Lexer class for parsing template strings into parse trees."""
import re
import code... | apache-2.0 |
bitclaw/netsuite-php | src/Classes/BillingScheduleRecurrenceMode.php | 167 | <?php namespace Fungku\NetSuite\Classes;
class BillingScheduleRecurrenceMode {
static $paramtypesmap = array(
);
const _dom = "_dom";
const _dowim = "_dowim";
}
| apache-2.0 |
KevinLoiseau/manageiq | spec/javascripts/directives/selectpickerForSelectTag_spec.js | 928 | describe('selectpicker-for-select-tag initialization', function() {
var $scope, form;
beforeEach(module('ManageIQ'));
beforeEach(inject(function($compile, $rootScope, miqService) {
$scope = $rootScope;
var element = angular.element(
'<form name="angularForm">' +
'<select id="action_typ" name... | apache-2.0 |
sungsoo/optiq-project | core/src/main/java/net/hydromatic/optiq/QueryableTable.java | 1784 | /*
* 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 |
jakubmalek/guava | guava/src/com/google/common/collect/FilteredMultimapValues.java | 2970 | /*
* Copyright (C) 2013 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | apache-2.0 |
manishgupta88/carbondata | integration/spark-common/src/main/scala/org/apache/carbondata/spark/rdd/CarbonScanRDD.scala | 34134 | /*
* 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 |
dunkhong/grr | grr/server/grr_response_server/ip_resolver_test.py | 1259 | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
import socket
from absl import app
import ipaddress
from grr_response_core.lib import utils
from grr_response_server import ip_resolver
from grr.test_lib import test_lib
class IPReso... | apache-2.0 |
luotao1/Paddle | python/paddle/fluid/tests/unittests/test_sync_batch_norm_op.py | 13293 | # Copyright (c) 2019 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 app... | apache-2.0 |
hmmlopez/citrus | modules/citrus-core/src/main/java/com/consol/citrus/config/xml/AbstractServerParser.java | 3268 | /*
* Copyright 2006-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 |
SSEHUB/EASyProducer | Plugins/Instantiation/de.uni_hildesheim.sse.vil.buildlang.ui/src/de/uni_hildesheim/sse/ui/outline/VirtualOutlineNode.java | 850 | package de.uni_hildesheim.sse.ui.outline;
import org.eclipse.swt.graphics.Image;
import org.eclipse.xtext.ui.editor.outline.IOutlineNode;
import org.eclipse.xtext.ui.editor.outline.impl.AbstractOutlineNode;
/**
* That class is for creating a virtual node.
* @author Dernek
*
*/
public class VirtualOutlineNode ext... | apache-2.0 |
cxysteven/Paddle | paddle/utils/CpuId.cpp | 2071 | /* 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 ag... | apache-2.0 |
iisquare/analysis-ik-online | solr4.x/src/main/java/com/iisquare/solr/wltea/util/MongoUtil.java | 1135 | package com.iisquare.solr.wltea.util;
import java.net.UnknownHostException;
import java.util.Arrays;
import com.mongodb.BasicDBList;
import com.mongodb.MongoClient;
import com.mongodb.MongoCredential;
import com.mongodb.ServerAddress;
/**
* MongoClient本身支持连接池
*/
public class MongoUtil {
private static MongoClien... | apache-2.0 |
gastaldi/hibernate-validator | hibernate-validator/src/main/java/org/hibernate/validator/util/IdentitySet.java | 2574 | /*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may ... | apache-2.0 |
Frameworkium/frameworkium-core | src/test/java/com/frameworkium/integration/theinternet/pages/JavaScriptAlertsPage.java | 991 | package com.frameworkium.integration.theinternet.pages;
import com.frameworkium.core.htmlelements.element.Button;
import com.frameworkium.core.ui.annotations.Visible;
import com.frameworkium.core.ui.pages.BasePage;
import io.qameta.allure.Step;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.... | apache-2.0 |
google/pprof | internal/driver/driver_test.go | 47778 | // 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... | apache-2.0 |
ilivoo/ilivoo | voom/src/main/java/com/ilivoo/voom/model/testrecache/entity/PlayerEntity.java | 2937 | package com.ilivoo.voom.model.testrecache.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import com.ilivoo.common.recache.annotation.CacheEntity;
... | apache-2.0 |
ChrisA89/assertj-core | src/main/java/org/assertj/core/error/ShouldContainCharSequence.java | 4666 | /**
* 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 under ... | apache-2.0 |
AlexanderMatveenko/omim | map/country_tree.cpp | 6527 | #include "map/country_tree.hpp"
#include "map/framework.hpp"
#include "storage/storage.hpp"
namespace storage
{
namespace
{
int const RootItemIndex = 0;
int const ChildItemsOffset = 1;
}
inline TIndex GetIndexChild(TIndex const & index, int i)
{
TIndex child(index);
if (child.m_group == TIndex::INVALID)
... | apache-2.0 |
CaioProiete/serilog | test/Serilog.PerformanceTests/LevelControlBenchmark.cs | 1760 | using BenchmarkDotNet.Attributes;
using Serilog.Core;
using Serilog.Events;
using Serilog.PerformanceTests.Support;
namespace Serilog.PerformanceTests
{
/// <summary>
/// Tests the overhead of determining the active logging level.
/// </summary>
public class LevelControlBenchmark
{
ILogger ... | apache-2.0 |
mdogan/hazelcast | hazelcast/src/main/java/com/hazelcast/cp/internal/datastructures/spi/blocking/operation/package-info.java | 857 | /*
* Copyright (c) 2008-2020, Hazelcast, 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 ... | apache-2.0 |
vclfiddle/vclfiddle | web/test/unit/services/RequestMetadataService.test.js | 7218 | var expect = require('chai').expect;
describe('RequestMetadataService', function () {
describe('#parseInputRequests()', function () {
it('should parse a basic curl command', function (done) {
RequestMetadataService.parseInputRequests('curl http://www.vclfiddle.net', function (err, input, allRequests) {
... | apache-2.0 |
tejas-kale/d3 | legacy/misc.js | 1284 | function length_json(json_obj) {
// Initialize variables
var length = 0;
// Iterate over JSON to determine the number of keys
for(var key in json_obj) {
if(json_obj.hasOwnProperty(key))
length++;
}
// Return length
return length;
}
function keys_json(json_obj) {
// Initialize variables
var keys = [... | apache-2.0 |
cloudendpoints/endpoints-java | endpoints-framework/src/main/java/com/google/api/server/spi/config/validation/InvalidParameterAnnotationsException.java | 1245 | /*
* 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 |
francisdb/flicklib | flicklib-ehcache/src/main/java/com/flicklib/service/cache/HttpEHCache.java | 2385 | /*
* This file is part of Flicklib.
*
* Copyright (C) Francis De Brabandere
*
* 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 |
adgistics/Adgistics.Build | NArrange/src/NArrange.Core/IElementArranger.cs | 3294 | #region Header
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Copyright (c) 2007-2008 James Nies and NArrange contributors.
* All rights reserved.
*
* This program and the accompanying materials are made available under
* the terms of the Common Public License v1.0 which accom... | apache-2.0 |
geeag/kafka | tests/kafkatest/sanity_checks/test_console_consumer.py | 4228 | # 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 ... | apache-2.0 |
Forexware/quickfixj | src/main/java/quickfix/field/Nested3PartyID.java | 1155 | /*******************************************************************************
* Copyright (c) quickfixengine.org All rights reserved.
*
* This file is part of the QuickFIX FIX Engine
*
* This file may be distributed under the terms of the quickfixengine.org
* license as defined by quickfixengine.org and ... | apache-2.0 |
groboclown/p4ic4idea | p4java/r17-2/src/test/java/com/perforce/p4java/tests/dev/unit/features121/TrackingTest.java | 3977 | /**
* Copyright (c) 2011 Perforce Software. All rights reserved.
*/
package com.perforce.p4java.tests.dev.unit.features121;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.net.URISyntaxException;
import java.util.Map;
import ... | apache-2.0 |
fceller/arangodb | 3rdParty/fuerte/src/jwt.cpp | 5422 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2018 ArangoDB GmbH, Cologne, Germany
///
/// 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... | apache-2.0 |
nknize/elasticsearch | x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/CloseFollowerIndexStep.java | 2167 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.core.ilm;
import org.elasticsearch.Elasticsea... | apache-2.0 |
ern/elasticsearch | server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalVariableWidthHistogram.java | 22531 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | apache-2.0 |
ghchinoy/tensorflow | tensorflow/python/ops/ragged/ragged_reduce_op_test.py | 14273 | # 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... | apache-2.0 |
alaski/nova | nova/tests/unit/test_flavors.py | 19106 | # Copyright 2011 Ken Pepple
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | apache-2.0 |
skoulouzis/lobcder | milton2/milton-server-ce/src/main/java/io/milton/dns/record/IPSECKEYRecord.java | 5464 | // Copyright (c) 2004 Brian Wellington (bwelling@xbill.org)
package io.milton.dns.record;
import io.milton.dns.Address;
import io.milton.dns.Name;
import io.milton.dns.TextParseException;
import io.milton.dns.utils.base64;
import java.io.*;
import java.net.*;
import io.milton.dns.utils.*;
/**
* IPsec... | apache-2.0 |
b-slim/druid | server/src/test/java/io/druid/server/lookup/cache/LookupExtractorFactoryMapContainerTest.java | 4475 | /*
* 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... | apache-2.0 |
Servoy/wicket | wicket/src/main/java/org/apache/wicket/markup/repeater/Item.java | 4110 | /*
* 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 |
joshisa/sciscitatio | lib/h5p/libraries/H5P.TextInputField-1.0/text-input-field.js | 2255 | var H5P = H5P || {};
/**
* Text Input Field module
* @external {jQuery} $ H5P.jQuery
*/
H5P.TextInputField = (function ($) {
// CSS Classes:
var MAIN_CONTAINER = 'h5p-text-input-field';
var INPUT_LABEL = 'h5p-text-input-field-label';
var INPUT_FIELD = 'h5p-text-input-field-textfield';
/**
* Initialize... | apache-2.0 |
Donnerbart/hazelcast-simulator | tests/tests-common/src/main/java/com/hazelcast/simulator/tests/icache/AddRemoveListenerICacheTest.java | 4623 | /*
* Copyright (c) 2008-2016, Hazelcast, 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 ... | apache-2.0 |
synchromedia/OpenGSN | admin-client/src/generated-sources/com/greenstarnetwork/services/networkmanager/NetworkManagerRequest.java | 8682 | /**
* Copyright 2009-2011 École de technologie supérieure,
* Communication Research Centre Canada,
* Inocybe Technologies Inc. and 6837247 CANADA 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 ... | apache-2.0 |
xingwu1/azure-sdk-for-node | lib/services/networkManagement2/lib/models/serviceEndpointPolicyDefinitionListResult.js | 1895 | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | apache-2.0 |
frreiss/tensorflow-fred | tensorflow/python/kernel_tests/reduction_ops_test.py | 44401 | # Copyright 2015 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... | apache-2.0 |
cutecore/futuregadget-lab | magicasakura/src/main/java/com/bilibili/magicasakura/widgets/Tintable.java | 761 | /*
* Copyright (C) 2016 Bilibili
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | apache-2.0 |
envoyproxy/envoy-wasm | tools/protoxform/merge_active_shadow_test.py | 12052 | import unittest
import merge_active_shadow
from tools.api_proto_plugin import type_context as api_type_context
from google.protobuf import descriptor_pb2
from google.protobuf import text_format
class MergeActiveShadowTest(unittest.TestCase):
# Dummy type context for tests that don't care about this.
def fakeTy... | apache-2.0 |
shyamjvs/test-infra | prow/tide/tide_test.go | 57470 | /*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | apache-2.0 |
sergecodd/FireFox-OS | B2G/gecko/browser/devtools/debugger/test/browser_dbg_stack-01.js | 1374 | /* vim:set ts=2 sw=2 sts=2 et: */
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
var gPane = null;
var gTab = null;
var gDebuggee = null;
var gDebugger = null;
function test() {
debug_tab_pane(STACK_URL, function(aTab, aDebuggee, aPane) {
gTab = a... | apache-2.0 |
AnqaFalak/JapKatsuyou | docs/jpconj/search/variables_3.js | 125 | var searchData=
[
['jap',['jap',['../struct_tatoeba_1_1_exp.html#a6aedde568a43468dcd805cbb54b116d5',1,'Tatoeba::Exp']]]
];
| apache-2.0 |
porcelli-forks/uberfire-extensions | uberfire-metadata/uberfire-metadata-commons-io/src/test/java/org/uberfire/ext/metadata/io/IOServiceIndexedGitImplTest.java | 7399 | /*
* Copyright 2015 JBoss, by Red Hat, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | apache-2.0 |
4Giedrius/boxbilling | src/bb-library/Registrar/Exception.php | 53 | <?php
class Registrar_Exception extends Exception
{}
| apache-2.0 |
blstream/StudyBox_FE | src/app/decks/decks.route.js | 991 | (function() {
'use strict';
angular
.module('decks')
.config(routerConfig);
/** @ngInject */
function routerConfig($stateProvider, $urlRouterProvider) {
$stateProvider
.state('decks', {
parent: 'navbar',
url: '/decks',
templateUrl: 'app/decks/decks.html',
controller: 'D... | apache-2.0 |
solimant/druid | server/src/test/java/io/druid/server/coordinator/DruidClusterTest.java | 6810 | /*
* 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... | apache-2.0 |
cdapio/tephra | tephra-core/src/test/java/co/cask/tephra/TransactionContextTest.java | 23040 | /*
* Copyright © 2012-2014 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | apache-2.0 |
xingwu1/azure-sdk-for-node | lib/services/serviceFabric/lib/operations/index.js | 880 | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
/... | apache-2.0 |
hanm/zookeeper | zookeeper-server/src/test/java/org/apache/zookeeper/server/embedded/ZookeeperServerClusterMutualAuthTest.java | 6304 | /**
* 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 |
tdreitz/bloc-jams-responsive | app/scripts/min/landing-min.js | 361 | var animatePoints=function(){"use strict";var t=function(){$(this).css({opacity:1,transform:"scaleX(1) translateY(0)"})};$.each($(".point"),t)};$(window).load(function(){"use strict";$(window).height()>950&&animatePoints();var t=$(".selling-points").offset().top-$(window).height()+200;$(window).scroll(function(i){$(win... | apache-2.0 |
yangyang0425/zabbix | js/chkbxrange.js | 9293 | /*
** Zabbix
** Copyright (C) 2001-2016 Zabbix SIA
**
** This program 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 2 of the License, or
** (at your option) any later version.
**
** This pro... | apache-2.0 |
sekikn/ambari | ambari-common/src/main/python/resource_management/core/resources/packaging.py | 2243 | #!/usr/bin/env python
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License");... | apache-2.0 |
brosander/big-data-plugin | legacy/src/main/java/org/pentaho/amazon/s3/S3FileOutputMeta.java | 7305 | /*******************************************************************************
*
* Pentaho Big Data
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License... | apache-2.0 |
JYBESSON/camel | components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiCamelEnvironment.java | 2925 | /**
* 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 |
jbartece/pnc | ui/app/common/directives/pnc-infinite-select-items/pncInfiniteSelectItems.js | 7276 | /*
* 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 |
Talend/ui | packages/components/src/DateTimePickers/LegacyDateTimePickers/views/HeaderTitle/index.js | 80 | import HeaderTitle from './HeaderTitle.component';
export default HeaderTitle;
| apache-2.0 |
Forexware/quickfixj | src/main/java/quickfix/JdbcUtil.java | 5084 | /*******************************************************************************
* Copyright (c) quickfixengine.org All rights reserved.
*
* This file is part of the QuickFIX FIX Engine
*
* This file may be distributed under the terms of the quickfixengine.org
* license as defined by quickfixengine.org and ap... | apache-2.0 |
botunge/hapi-fhir | hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Appointment.java | 112216 | package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
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 copyr... | apache-2.0 |
googlearchive/big-rig | app/src/scripts/components/Spinner.js | 3890 | /**
* @license
* 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 requi... | apache-2.0 |
NeelumAyub/Tutorials | SimpleServlet/src/main/java/net/javatutorial/tutorials/SimpleServlet.java | 823 | package net.javatutorial.tutorials;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class SimpleServlet extends HttpServlet {
private static final... | apache-2.0 |
goodwinnk/intellij-community | platform/platform-impl/src/com/intellij/internal/statistic/collectors/fus/ui/ToolbarClicksUsagesCollector.java | 1559 | // 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.internal.statistic.collectors.fus.ui;
import com.intellij.internal.statistic.beans.UsageDescriptor;
import com.intellij.internal.statistic.collectors.fus.ui.... | apache-2.0 |
SpreeGorilla/Prebid.js | modules/nasmediaAdmixerBidAdapter.js | 2224 | import * as utils from 'src/utils';
import {registerBidder} from 'src/adapters/bidderFactory';
import find from 'core-js/library/fn/array/find';
const ADMIXER_ENDPOINT = 'https://adn.admixer.co.kr:10443/prebid';
const DEFAULT_BID_TTL = 360;
const DEFAULT_CURRENCY = 'USD';
const DEFAULT_REVENUE = false;
export const s... | apache-2.0 |
fujitsu-cf/cli | integration/helpers/route.go | 1622 | package helpers
import (
"fmt"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gbytes"
. "github.com/onsi/gomega/gexec"
)
type Route struct {
Space string
Host string
Domain string
Path string
}
func NewRoute(space string, domain string, hostname string, path string) Route {
return Route{
Space... | apache-2.0 |
bp117/ChaincodePOC | src/main/java/com/makotojava/learn/blockchain/chaincode/ChaincodeLog.java | 2879 | /*
* Copyright 2017 Makoto Consulting Group, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | apache-2.0 |
ranraj/code-godown | java/akka-actor-java-pi/src/main/java/akka/tutorial/first/java/Calculate.java | 59 | package akka.tutorial.first.java;
public class Calculate {} | apache-2.0 |
Kri-Ol/LCG-PLE63 | main.cpp | 5077 | #include <cassert>
#include <cstdint>
#include <cmath>
#include <algorithm>
#include <utility>
#include "LCG_PLE63.hpp"
#include "std_LCG_PLE63.hpp"
#include "uniform_distribution.hpp"
static uint64_t find_period(uint64_t N, std::ostream& os)
{
constexpr uint32_t BILLION = 1024U*1024U*1024U;
std::linear_co... | apache-2.0 |
robinpercy/kops | dns-controller/pkg/watchers/pod.go | 5320 | /*
Copyright 2019 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 |
sscdotopen/giraph-compensations | src/main/java/org/apache/giraph/examples/SimpleSuperstepVertex.java | 6312 | /*
* 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 |
openstack/magnum | magnum/tests/unit/api/controllers/v1/test_federation.py | 18016 | # 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
# d... | apache-2.0 |
evgrud/TypeScript | src/lib/dom.generated.d.ts | 533162 | /////////////////////////////
/// IE DOM APIs
/////////////////////////////
interface Algorithm {
name?: string;
}
interface AriaRequestEventInit extends EventInit {
attributeName?: string;
attributeValue?: string;
}
interface ClipboardEventInit extends EventInit {
data?: string;
d... | apache-2.0 |
ivanhristov92/bookingCalendar | node_modules/react-virtualized/dist/commonjs/Grid/utils/getOverscanIndices.js | 1702 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = getOverscanIndices;
var SCROLL_DIRECTION_BACKWARD = exports.SCROLL_DIRECTION_BACKWARD = -1;
var SCROLL_DIRECTION_FIXED = exports.SCROLL_DIRECTION_FIXED = 0;
var SCROLL_DIRECTION_FORWARD = exports.SCROLL_DIRECTION_FORWARD =... | apache-2.0 |
alvinkwekel/camel | components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/DisputeGatewayEndpointConfigurationConfigurer.java | 7987 | /* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.braintree;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.util.CaseInsens... | apache-2.0 |
robertamarton/incubator-trafodion | core/conn/jdbc_type2/src/main/java/org/trafodion/jdbc/t2/TDataSource.java | 6331 | // @@@ START COPYRIGHT @@@
//
// 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... | apache-2.0 |
formalin14/HAL | src/JSContext.cpp | 12109 | /**
* HAL
*
* Copyright (c) 2014 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License.
* Please see the LICENSE included with this distribution for details.
*/
#include "HAL/JSContext.hpp"
#include "HAL/JSClass.hpp"
#include "HAL/JSString.hpp"
#include "HAL/JSValue... | apache-2.0 |
develar/intellij-sdk-docs | code_samples/run_configuration/src/org/jetbrains/tutorials/run/configuration/DemoConfigurationFactory.java | 807 | package org.jetbrains.tutorials.run.configuration;
import com.intellij.execution.configurations.ConfigurationFactory;
import com.intellij.execution.configurations.ConfigurationType;
import com.intellij.execution.configurations.RunConfiguration;
import com.intellij.openapi.project.Project;
/**
* @author Anna Bulenkov... | apache-2.0 |
firebase/firebase-ios-sdk | Firestore/core/test/unit/util/string_format_test.cc | 3346 | /*
* Copyright 2018 Google
*
* 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 w... | apache-2.0 |
mtrmac/docker | volume/store/store.go | 17553 | package store
import (
"bytes"
"encoding/json"
"net"
"os"
"path/filepath"
"sync"
"time"
"github.com/pkg/errors"
"github.com/Sirupsen/logrus"
"github.com/boltdb/bolt"
"github.com/docker/docker/pkg/locker"
"github.com/docker/docker/volume"
"github.com/docker/docker/volume/drivers"
)
const (
volumeDataDi... | apache-2.0 |
GaneshSPatil/gocd | api/api-stage-instance-v2/src/main/java/com/thoughtworks/go/apiv2/stageinstance/representers/StageRepresenter.java | 2383 | /*
* Copyright 2021 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 |
brendanluu/CO2BLACK | Co2BlackUnityProject/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/Inflater.cs | 27933 | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// zlib.h -- interface of the 'zlib' general purpose compression library
// version 1.2.1, November 17th, 2003
//
// Copyright (C) 1995-2003 Jean-loup Gailly and Mark Adler
//
// This software is provided 'as-is', without any express or ... | apache-2.0 |
googleapis/google-api-java-client-services | clients/google-api-services-sheets/v4/1.30.1/com/google/api/services/sheets/v4/model/DimensionGroup.java | 4841 | /*
* 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 under t... | apache-2.0 |
thomasbecker/jetty-7 | jetty-server/src/main/java/org/eclipse/jetty/server/ResourceCache.java | 17092 | // ========================================================================
// Copyright (c) 2000-2009 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms of th... | apache-2.0 |
jamox/google-api-ruby-client | generated/google/apis/content_v2/service.rb | 102263 | # 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,... | apache-2.0 |