code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* 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/. */
#include "prmem.h"
#include "gfxAlp... | sergecodd/FireFox-OS | B2G/gecko/gfx/thebes/gfxImageSurface.cpp | C++ | apache-2.0 | 10,870 |
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | frreiss/tensorflow-fred | tensorflow/compiler/mlir/tensorflow/transforms/test_resource_alias_analysis.cc | C++ | apache-2.0 | 4,295 |
// 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.CertificateManager.V1/Google.Cloud.CertificateManager.V1.GeneratedSnippets/CertificateManagerClient.GetCertificateMapResourceNamesAsyncSnippet.g.cs | C# | apache-2.0 | 1,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 may not ... | srdo/storm | storm-server/src/main/java/org/apache/storm/scheduler/multitenant/DefaultPool.java | Java | apache-2.0 | 8,903 |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle... | carnegiespeech/translations | zh_cn/quizaccess_safebrowser.php | PHP | apache-2.0 | 1,084 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-792
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2011... | vthangathurai/SOA-Runtime | integration-tests/ProtoBufFindItemService/src/main/java/com/ebay/marketplace/search/v1/services/FieldValuesPair.java | Java | apache-2.0 | 3,008 |
require 'pathname'
Puppet::Type.newtype(:dsc_xexcheventloglevel) do
require Pathname.new(__FILE__).dirname + '../../' + 'puppet/type/base_dsc'
require Pathname.new(__FILE__).dirname + '../../puppet_x/puppetlabs/dsc_type_helpers'
@doc = %q{
The DSC xExchEventLogLevel resource type.
Automatically generat... | ferventcoder/puppetlabs-dsc | lib/puppet/type/dsc_xexcheventloglevel.rb | Ruby | apache-2.0 | 4,027 |
/*
* 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... | mafulafunk/wicket | wicket-core/src/main/java/org/apache/wicket/validation/validator/AbstractRangeValidator.java | Java | apache-2.0 | 5,358 |
/*
* 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... | flofreud/aws-sdk-java | aws-java-sdk-cloudsearch/src/main/java/com/amazonaws/services/cloudsearchv2/model/BuildSuggestersRequest.java | Java | apache-2.0 | 3,006 |
/* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.server.security.xacml.pdp.data;
/**
* A factory for a PolicyStore. Used to get a P... | FLVC/fcrepo-src-3.4.2 | fcrepo-security/fcrepo-security-pdp/src/main/java/org/fcrepo/server/security/xacml/pdp/data/PolicyStoreFactory.java | Java | apache-2.0 | 1,295 |
/*
* Copyright 2012-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 ap... | snicoll/spring-boot | spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataAnnotationProcessorTests.java | Java | apache-2.0 | 15,218 |
/*
Copyright 2015 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, ... | ahakanbaba/kubernetes | pkg/registry/core/node/storage/storage.go | GO | apache-2.0 | 4,861 |
/*
* Copyright 2022 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... | gocd/gocd | server/src/main/java/com/thoughtworks/go/server/cache/LazyCache.java | Java | apache-2.0 | 2,065 |
/*
* 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 ... | dlnufox/ignite | modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtAffinityAssignmentResponse.java | Java | apache-2.0 | 6,291 |
/**
* 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... | erwelch/camel | tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelHipchatTest.java | Java | apache-2.0 | 1,257 |
/*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | kazuki43zoo/spring-security | config/src/main/java/org/springframework/security/config/websocket/WebSocketMessageBrokerSecurityBeanDefinitionParser.java | Java | apache-2.0 | 15,241 |
package net.mgsx.game.core.binding;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.Group;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.ObjectMap;
import com.badlogic.gdx.utils.ObjectMap.Entry;
public class Bindin... | mgsx-dev/gdx-kit | core/src/net/mgsx/game/core/binding/BindingManager.java | Java | apache-2.0 | 1,782 |
/*
* Copyright (C) 2008 ZXing 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... | peterdocter/zxing | android/src/com/google/zxing/client/android/share/ShareActivity.java | Java | apache-2.0 | 11,036 |
package org.ektorp.impl;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.ektorp.DbAccessException;
import org.ekto... | JMaltat/fragaria-ektorp | org.ektorp/src/main/java/org/ektorp/impl/DocIdResponseHandler.java | Java | apache-2.0 | 1,471 |
/*
* 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 ... | Swrrt/Samza | samza-core/src/main/java/org/apache/samza/system/SystemAdmins.java | Java | apache-2.0 | 2,240 |
/**
* Copyright (c) 2013-2020 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | locationtech/geowave | core/geotime/src/main/java/org/locationtech/geowave/core/geotime/adapter/SpatialFieldDescriptorBuilder.java | Java | apache-2.0 | 2,649 |
/*
* 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... | xasx/assertj-core | src/main/java/org/assertj/core/api/ProxyableMapAssert.java | Java | apache-2.0 | 1,243 |
// This is a generated file. Not intended for manual editing.
package org.mule.tooling.lang.dw.parser.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface WeaveOutputDirective extends WeaveDirective {
@Nullable
WeaveDataType getDataType();
@Nulla... | machaval/mule-intellij-plugins | data-weave-plugin/src/main/gen/org/mule/tooling/lang/dw/parser/psi/WeaveOutputDirective.java | Java | apache-2.0 | 356 |
// ----------------------------------------------------------------------------------
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.... | Azure/durabletask | test/DurableTask.AzureServiceFabric.Tests/PersistentSessionTests.cs | C# | apache-2.0 | 2,352 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Jo... | huluwa/superjokes | src/Joke.Data/Properties/AssemblyInfo.cs | C# | apache-2.0 | 1,394 |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright [2010] [Anso Labs, LLC]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | movmov/cc | nova/objectstore/image.py | Python | apache-2.0 | 6,265 |
using Cirrious.CrossCore.Plugins;
namespace AzureAccessControl.Sample.Droid.Bootstrap
{
public class VisibilityPluginBootstrap
: MvxPluginBootstrapAction<Cirrious.MvvmCross.Plugins.Visibility.PluginLoader>
{
}
} | softlion/Cheesebaron.MvxPlugins | Samples/AzureAccessControl.Sample.Droid/Bootstrap/VisibilityPluginBootstrap.cs | C# | apache-2.0 | 232 |
/*
* Copyright 2016-2020 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
*
* Unles... | jeffgbutler/mybatis-qbe | src/test/java/examples/springbatch/paging/PagingReaderBatchConfiguration.java | Java | apache-2.0 | 5,674 |
/*
* 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... | nterry/aws-sdk-java | aws-java-sdk-datapipeline/src/main/java/com/amazonaws/services/datapipeline/model/transform/SetStatusRequestMarshaller.java | Java | apache-2.0 | 3,921 |
/*
* 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 | core/camel-base/src/main/java/org/apache/camel/processor/Pipeline.java | Java | apache-2.0 | 6,742 |
/*
* 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 ... | StyleTang/incubator-rocketmq-externals | rocketmq-flink/src/main/java/org/apache/rocketmq/flink/source/reader/deserializer/BytesMessage.java | Java | apache-2.0 | 1,571 |
//===--- LookupVisibleDecls - Swift Name Lookup Routines ------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | OscarSwanros/swift | lib/AST/LookupVisibleDecls.cpp | C++ | apache-2.0 | 36,523 |
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/**
* Copyright (C) 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 Licens... | krahman/emedia | ninja-servlet-jpa-blog-archetype/src/main/resources/archetype-resources/src/test/java/controllers/LoginLogoutControllerTest.java | Java | apache-2.0 | 3,238 |
#
# Author:: Panagiotis Papadomitsos (<pj@ezgr.net>)
#
# Cookbook Name:: php
# Recipe:: module_common
#
# Copyright 2009-2011, Opscode, 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
#... | VladimirTS/chef-php | recipes/module_common.rb | Ruby | apache-2.0 | 1,074 |
/*
* 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 ... | ServiceComb/java-chassis | demo/demo-jaxrs/jaxrs-server/src/main/java/org/apache/servicecomb/demo/jaxrs/server/beanParam/TestBeanParameterWithUpload.java | Java | apache-2.0 | 1,712 |
'use strict';
angular.module('publisherApp')
.factory('Register', function ($resource) {
return $resource('api/register', {}, {
});
});
| GIP-RECIA/esup-publisher-ui | src/main/webapp/scripts/components/auth/services/register.service.js | JavaScript | apache-2.0 | 163 |
/*
Copyright 2009 Ramnivas Laddad
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | sobkowiak/aspectj-in-action-code | ch02/workspace/Section2.6AspectJSpringIntegration/src/main/java/ajia/main/Main.java | Java | apache-2.0 | 1,245 |
/*
* 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/geronimo-yoko | yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConnectorSeqHolder.java | Java | apache-2.0 | 1,507 |
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | rvhub/onos | core/net/src/main/java/org/onosproject/app/impl/ApplicationManager.java | Java | apache-2.0 | 8,584 |
/*
* 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.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/datafactoryManagement/lib/models/responsysObjectDataset.js | JavaScript | apache-2.0 | 3,288 |
/**
* 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 m... | apache/santuario-java | src/main/java/org/apache/xml/security/stax/impl/processor/output/AbstractSignatureOutputProcessor.java | Java | apache-2.0 | 14,441 |
/**
* @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
*/
CLASS({
pack... | mdittmer/foam | js/foam/ui/md/SectionView.js | JavaScript | apache-2.0 | 3,734 |
package threadmanagement.join;
import java.util.Date;
import java.util.concurrent.TimeUnit;
/**
* 功能:
* 作者: ldl
* 时间: 2016-07-29 17:51
*/
public class DataSourcesLoader implements Runnable {
@Override
public void run() {
System.out.printf("开始加载资源: %s\n", new Date());
try {
Ti... | wsldl123292/testeveryting | concurrency/src/main/java/threadmanagement/join/DataSourcesLoader.java | Java | apache-2.0 | 532 |
/*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of... | StefanoRaggi/Lean | ToolBox/Polygon/PolygonDownloaderProgram.cs | C# | apache-2.0 | 4,321 |
package com.zhaidaosi.game.jgframework.common.queue;
/**
* 可快速定位的FIFO队列
*/
public class BaseQueue<E> {
private BaseQueueElement<E> start = null;
private BaseQueueElement<E> end = null;
private Object lock = new Object();
private long putCount = 0;
private long takeCount = 0;
private long siz... | tempbottle/JgFramework | src/main/java/com/zhaidaosi/game/jgframework/common/queue/BaseQueue.java | Java | apache-2.0 | 4,050 |
/************************************************
* *
* Node.js v0.8.8 API *
* *
************************************************/
/************************************************
* ... | jonathanmarvens/typescript | samples/node/node.d.ts | TypeScript | apache-2.0 | 45,576 |
/**
* 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... | apache/manifoldcf | connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java | Java | apache-2.0 | 211,260 |
# 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 the... | alexpilotti/python-keystoneclient | keystoneclient/v3/contrib/oauth1/request_tokens.py | Python | apache-2.0 | 2,659 |
public class Tetrahedron extends ThreeDimensionalShapes {
public Tetrahedron ( double s) { super ( s ); }
@Override
public double areaOf3DShapes ( ){
return Math.sqrt(3) * getSide() * getSide();
}
@Override
public double volumeOf3DShapes(){
return (Math.pow(getSide(),3))/ ( 6 ... | Kinza59/educate-for-oop | java/book-dietel/kinza/10_9_h_Tetrahedron.java | Java | apache-2.0 | 453 |
/*
* 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/pdfbox | examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateRadioButtons.java | Java | apache-2.0 | 8,207 |
/*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | google/auto | value/src/test/java/com/google/auto/value/processor/AutoValueCompilationTest.java | Java | apache-2.0 | 139,312 |
//
// Copyright 2011 Ekon Benefits
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | curit/dynamitey | Dynamitey/Internal/Optimization/InvokeHelper.cs | C# | apache-2.0 | 42,310 |
package org.apereo.cas.web.support;
import org.apereo.cas.audit.RedisAuditTrailManager;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.apereo.inspektr.audit.AuditActionContext;
import org.apereo.inspektr.common.web.ClientInfoHolder;
import org.springframework.data.redis.core.RedisTemplate;
import ja... | rrenomeron/cas | support/cas-server-support-throttle-redis/src/main/java/org/apereo/cas/web/support/RedisThrottledSubmissionHandlerInterceptorAdapter.java | Java | apache-2.0 | 2,579 |
package smartthings.dw.successmeter;
import smartthings.dw.guice.AbstractDwModule;
import static com.google.inject.matcher.Matchers.annotatedWith;
import static com.google.inject.matcher.Matchers.any;
public class SuccessMeterModule extends AbstractDwModule {
@Override
protected void configure() {
... | elventear/dropwizard-common | dropwizard-success-meter/src/main/java/smartthings/dw/successmeter/SuccessMeterModule.java | Java | apache-2.0 | 548 |
/*
* 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... | flofreud/aws-sdk-java | aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/ReEncryptResult.java | Java | apache-2.0 | 8,596 |
from gluon.storage import Storage
settings = Storage()
settings.migrate = True
settings.title = 'Syndicate Metadata Service'
settings.subtitle = 'Princeton University'
settings.author = 'Jude Nelson'
settings.author_email = 'jcnelson@cs.princeton.edu'
settings.keywords = ''
settings.description = 'Web front-end for th... | jcnelson/syndicate | old/md-service/SMDS/web2py/applications/SMDS/models/0.py | Python | apache-2.0 | 635 |
define(["jquery", "bootstrap", "d3","jnj_chart", "ohdsi_common", "datatables", "datatables-colvis", "colorbrewer", "tabletools"],
function ($, bootstrap, d3, jnj_chart, common, DataTables, DataTablesColvis, colorbrewer, TableTools) {
function ObservationsRenderer() {}
ObservationsRenderer.prototype... | OHDSI/Olympus | src/main/webapp/Heracles/src/js/charts/observations.js | JavaScript | apache-2.0 | 25,745 |
import responses
import unittest
from unittest import skipIf
from unittest.mock import mock_open, patch, ANY, call
from docopt import docopt, DocoptExit
from io import StringIO
from collections import OrderedDict
import sys
import nio_cli.cli as cli
from nio_cli.commands.base import Base
from nio.block.terminals impor... | nioinnovation/nio-cli | tests/test_cli.py | Python | apache-2.0 | 27,669 |
using System;
using System.ComponentModel.Composition;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using EnvDTE;
using EnvDTE80;
using Microsoft.VisualStudio.ComponentModelHost;
namespace NuGet.VisualStudio
{
[Export(typeof(IFileSystemProvider))]
public class VsFileSystemProvider : IF... | mdavid/nuget | src/VisualStudio/VsFileSystemProvider.cs | C# | apache-2.0 | 3,640 |
# Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | zhangg/trove | trove/tests/unittests/guestagent/test_mongodb_manager.py | Python | apache-2.0 | 15,121 |
require 'spec_helper'
describe 'duplicity::profile' do
let(:title) { 'default' }
let(:facts) { {:concat_basedir => '/path/to/dir'} }
let(:default_config_file) { '/etc/duply/default/conf' }
let(:default_filelist) { '/etc/duply/default/exclude' }
describe 'by default' do
let(:params) { {} }
it {
... | adamcrews/puppet-duplicity | spec/defines/profile_spec.rb | Ruby | apache-2.0 | 10,421 |
/*
* 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 ... | vlsi/calcite | core/src/main/java/org/apache/calcite/prepare/RelOptTableImpl.java | Java | apache-2.0 | 17,920 |
/*
* 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 ... | britter/commons-lang | src/main/java/org/apache/commons/lang3/function/FailableIntPredicate.java | Java | apache-2.0 | 3,391 |
/*
* Copyright 2005-2015 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 required... | migue/fabric8 | components/fabric8-arquillian/src/main/java/io/fabric8/arquillian/kubernetes/await/SessionServicesAreReady.java | Java | apache-2.0 | 6,012 |
/**
* Copyright (c) 2013-2020 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | locationtech/geowave | core/store/src/main/java/org/locationtech/geowave/core/store/memory/MemoryAdapterStore.java | Java | apache-2.0 | 3,177 |
/*******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2012 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the ... | lihongqiang/kettle-4.4.0-stable | src/org/pentaho/di/trans/steps/metainject/MetaInjectMeta.java | Java | apache-2.0 | 16,453 |
/*
* Copyright (C) 2011 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... | android-art-intel/marshmallow | art-extension/runtime/arch/instruction_set.cc | C++ | apache-2.0 | 4,097 |
/**
* Copyright (c) 2013-2020 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | locationtech/geowave | extensions/cli/sentinel2/src/main/java/org/locationtech/geowave/format/sentinel2/theia/TheiaImageryProvider.java | Java | apache-2.0 | 17,063 |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | Simran-B/arangodb | arangod/VocBase/Methods/UpgradeTasks.cpp | C++ | apache-2.0 | 23,269 |
/*
* Copyright 2015 Comcast Cable Communications Management, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | smalenfant/traffic_control | traffic_router/core/src/test/java/com/comcast/cdn/traffic_control/traffic_router/core/external/StatsTest.java | Java | apache-2.0 | 4,915 |
/*
* 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... | snorden/parquet-mr-apache-parquet-1.7.0 | parquet-hadoop/src/test/java/org/apache/parquet/hadoop/TestParquetFileWriter.java | Java | apache-2.0 | 21,679 |
using Lucene.Net.Queries;
using Lucene.Net.Search;
using Lucene.Net.Spatial.Prefix.Tree;
using Lucene.Net.Spatial.Queries;
using Lucene.Net.Util;
using Spatial4n.Shapes;
using System;
using System.Collections.Generic;
namespace Lucene.Net.Spatial.Prefix
{
/*
* Licensed to the Apache Software Foundation (ASF)... | apache/lucenenet | src/Lucene.Net.Spatial/Prefix/TermQueryPrefixTreeStrategy.cs | C# | apache-2.0 | 2,939 |
/*
* Swift Parallel Scripting Language (http://swift-lang.org)
* Code from Java CoG Kit Project (see notice below) with modifications.
*
* Copyright 2005-2014 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... | swift-lang/swift-k | src/org/griphyn/vdl/karajan/monitor/processors/coasters/WorkerActiveProcessor.java | Java | apache-2.0 | 2,365 |
package org.mindinformatics.gwt.domeo.client.ui.annotation.forms;
/**
* @author Paolo Ciccarese <paolo.ciccarese@gmail.com>
*/
public interface IAllowsMultipleTargets {
}
| rkboyce/DomeoClient | src/org/mindinformatics/gwt/domeo/client/ui/annotation/forms/IAllowsMultipleTargets.java | Java | apache-2.0 | 175 |
/**
* Copyright 2015 Netflix, 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 ... | cfieber/spectator | spectator-reg-servo/src/test/java/com/netflix/spectator/servo/ServoCounterTest.java | Java | apache-2.0 | 2,163 |
/*global require*/
'use strict';
// Require.js allows us to configure shortcut alias
require.config({
// The shim config allows us to configure dependencies for
// scripts that do not call define() to register a module
shim: {
underscore: {
exports: '_'
},
backbone: {
deps: [
'underscore',
'jque... | jiangjianqing/flow-demo | activiti/activiti5.springmvc/src/main/webapp/app/main.js | JavaScript | apache-2.0 | 867 |
package org.apache.lucene.search.suggest.analyzing;
/*
* 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 Apa... | smartan/lucene | src/main/java/org/apache/lucene/search/suggest/analyzing/BlendedInfixSuggester.java | Java | apache-2.0 | 9,762 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.fieldsConflictMessage = fieldsConflictMessage;
exports.OverlappingFieldsCanBeMerged = OverlappingFieldsCanBeMerged;
var _error = require('../../error');
var _find = require('../../jsutils/find');
var _find2 = _interopRequireDefau... | Khan/khan-linter | node_modules/graphql/validation/rules/OverlappingFieldsCanBeMerged.js | JavaScript | apache-2.0 | 25,753 |
/*
* Copyright 2010-2017 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 "license" fil... | chiaming0914/awe-cpp-sdk | aws-cpp-sdk-datapipeline/source/model/DescribeObjectsRequest.cpp | C++ | apache-2.0 | 2,056 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/common/resource_messages.h"
#include "net/base/load_timing_info.h"
#include "net/http/http_response_headers.h"
#include "webkit/glu... | plxaye/chromium | src/content/common/resource_messages.cc | C++ | apache-2.0 | 9,210 |
/**
* 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 us... | growingio/phoenix | phoenix-core/src/test/java/org/apache/phoenix/query/GuidePostsCacheWrapperTest.java | Java | apache-2.0 | 4,037 |
/*
* #%L
* SparkCommerce Framework
* %%
* Copyright (C) 2009 - 2013 Spark Commerce
* %%
* 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/LICEN... | akdasari/SparkCore | spark-framework/src/main/java/org/sparkcommerce/core/util/domain/CodeType.java | Java | apache-2.0 | 1,219 |
#include "search/geometry_utils.hpp"
#include "indexer/scales.hpp"
#include "geometry/mercator.hpp"
namespace search
{
double PointDistance(m2::PointD const & a, m2::PointD const & b)
{
return MercatorBounds::DistanceOnEarth(a, b);
}
bool IsEqualMercator(m2::RectD const & r1, m2::RectD const & r2, double eps)
{
... | VladiMihaylenko/omim | search/geometry_utils.cpp | C++ | apache-2.0 | 384 |
// 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... | helifu/kudu | java/kudu-client/src/test/java/org/apache/kudu/client/TestPartitionPruner.java | Java | apache-2.0 | 35,532 |
package com.cronutils.model.time.generator;
import com.cronutils.model.field.expression.FieldExpression;
import org.apache.commons.lang3.Validate;
import java.util.List;
/*
* Copyright 2015 jmrozanec
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance ... | ucpwang/cron-utils | src/main/java/com/cronutils/model/time/generator/FieldValueGenerator.java | Java | apache-2.0 | 2,439 |
/*
* Copyright (c) 2008-2021, 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 ... | jerrinot/hazelcast | hazelcast/src/main/java/com/hazelcast/jet/impl/JobCoordinationService.java | Java | apache-2.0 | 58,765 |
package zktopo
import (
"encoding/json"
"path"
"strings"
"github.com/golang/protobuf/proto"
topodatapb "github.com/youtube/vitess/go/vt/proto/topodata"
vschemapb "github.com/youtube/vitess/go/vt/proto/vschema"
)
// This file contains utility functions to maintain backward compatibility
// with old-style non-B... | theskyinflames/bpulse-go-client | vendor/github.com/youtube/vitess/go/vt/zktopo/convert.go | GO | apache-2.0 | 2,481 |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include "base/os.h"
#include <boost/assign/list_of.hpp>
#include <cfg/cfg_init.h>
#include <cfg/cfg_interface.h>
#include <oper/operdb_init.h>
#include <controller/controller_init.h>
#include <controller/controller_ifmap.h>
#include <pkt/pkt_in... | tcpcloud/contrail-controller | src/vnsw/agent/test/test_vmport_cfg.cc | C++ | apache-2.0 | 59,044 |
//
// Copyright 2019 SenX S.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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | cityzendata/warp10-platform | warp10/src/main/java/io/warp10/WarpManager.java | Java | apache-2.0 | 1,972 |
/**
* @preserve Copyright 2012 Martijn van de Rijdt & Modilabs
*
* 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... | alxndrsn/enketo-core | src/widget/note/notewidget.js | JavaScript | apache-2.0 | 2,293 |
/*
* 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... | flofreud/aws-sdk-java | aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/transform/GetFunctionConfigurationRequestMarshaller.java | Java | apache-2.0 | 3,688 |
/*
*
* Copyright 2012-2014 Eurocommercial Properties NV
*
*
* 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 req... | kigsmtua/estatio | estatioapp/fixture/src/main/java/org/estatio/fixture/party/PersonAbstract.java | Java | apache-2.0 | 3,768 |
package wtf.pants.stamp.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Pants
*
* Currently only works for methods
*/
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.M... | Pants/stamp-java-obfuscator | src/main/java/wtf/pants/stamp/annotations/StampPreserve.java | Java | apache-2.0 | 364 |
/*
* Copyright 2019, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
// Code generated by go generate; DO NOT EDIT.
package watchers
import (
"fmt"
tp "github.com/enmasseproject/enmasse/pkg/apis/enmasse/v1beta1"
cp "github.com/enmasseproj... | EnMasseProject/enmasse | pkg/consolegraphql/watchers/resource_watcher_addressspaceschema.go | GO | apache-2.0 | 7,437 |
/*
* SessionFitFunctionsPresentationView.java
*
* Copyright 2006-2015 James F. Bowring and www.Earth-Time.org
*
* 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.a... | clementparizot/ET_Redux | src/main/java/org/earthtime/Tripoli/dataViews/fitFunctionPresentationViews/SessionFitFunctionsPresentationView.java | Java | apache-2.0 | 2,640 |
// Copyright 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 "license" file acco... | swipely/amazon-ecs-agent | agent/taskresource/fsxwindowsfileserver/fsxwindowsfileserverstatus.go | GO | apache-2.0 | 2,717 |
package com.couchbase.lite;
import com.couchbase.lite.internal.RevisionInternal;
import com.couchbase.lite.mockserver.MockDispatcher;
import com.couchbase.lite.mockserver.MockHelper;
import com.couchbase.lite.replicator.Replication;
import com.couchbase.lite.support.FileDirUtils;
import com.couchbase.lite.support.Revi... | vladoatanasov/couchbase-lite-android | src/androidTest/java/com/couchbase/lite/DatabaseTest.java | Java | apache-2.0 | 8,892 |
package uk.ac.ebi.pride.psmindex.search.model;
import org.apache.solr.client.solrj.beans.Field;
import uk.ac.ebi.pride.archive.dataprovider.identification.ModificationProvider;
import uk.ac.ebi.pride.archive.dataprovider.identification.PeptideSequenceProvider;
import uk.ac.ebi.pride.archive.dataprovider.param.CvParamP... | PRIDE-Archive/psm-index-service | src/main/java/uk/ac/ebi/pride/psmindex/search/model/Psm.java | Java | apache-2.0 | 2,617 |
/*
* Copyright (C) 2015 Intel 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 required... | zhaobob/libyami | common/surfacepool.cpp | C++ | apache-2.0 | 2,169 |
package cn.itcast_05;
public class SetThread implements Runnable {
private Student s;
private int x = 0;
public SetThread(Student s) {
this.s = s;
}
@Override
public void run() {
while (true) {
synchronized (s) {
//判断有没有
if(s.flag){
try {
s.wait(); //t1等着,释放锁
} catch (Interrupte... | aircjm/JavaSeStudy | day24/code/day24_Thread/src/cn/itcast_05/SetThread.java | Java | apache-2.0 | 748 |