code stringlengths 3 1.04M | repo_name stringlengths 5 109 | path stringlengths 6 306 | language stringclasses 1
value | license stringclasses 15
values | size int64 3 1.04M |
|---|---|---|---|---|---|
/*
* Copyright 2013 The greplin-lucene-utils 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 applic... | Cue/greplin-lucene-utils | src/main/java/com/greplin/lucene/util/IntersectionProvider.java | Java | apache-2.0 | 1,073 |
/*
* Copyright (C) 2014-present The openSourcLibrary-2015 Authors
*
* https://github.com/sdcuike
*
* 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/license... | sdcuike/openSourcLibrary-2015 | src/main/java/com/doctor/java8/ConvertStreamToArrayInJava8.java | Java | apache-2.0 | 1,326 |
/*******************************************************************************
* Copyright 2011, 2012 Chris Banes.
*
* 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.apac... | poomoo/eDao | src/com/poomoo/edao/widget/photoview/scrollerproxy/ScrollerProxy.java | Java | apache-2.0 | 1,739 |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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... | shafreenAnfar/carbon-gateway-framework | outbound-endpoints/http-outbound/components/org.wso2.carbon.gateway.outbounds.http/src/main/java/org/wso2/carbon/gateway/outbounds/http/HTTPOutboundEndpoint.java | Java | apache-2.0 | 2,619 |
package org.bds.lang;
import org.antlr.v4.runtime.tree.ParseTree;
import org.bds.run.BdsThread;
import org.bds.run.DebugMode;
/**
* An "breakpoint" statement
*
* @author pcingola
*/
public class Breakpoint extends Print {
public Breakpoint(BdsNode parent, ParseTree tree) {
super(parent, tree);
}
/**
* Ru... | leepc12/BigDataScript | src/org/bds/lang/Breakpoint.java | Java | apache-2.0 | 839 |
package org.springframework.benchmark;
import org.aopalliance.intercept.MethodInterceptor;
import org.springframework.aop.Advisor;
import org.springframework.aop.framework.AbstractAopProxyTests;
import org.springframework.aop.framework.ProxyFactory;
import org.springframework.beans.ITestBean;
import org.springframewo... | cbeams-archive/spring-framework-2.5.x | load/org/springframework/benchmark/AopPrototypeTest.java | Java | apache-2.0 | 2,492 |
package org.commcare.hub.events;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import org.commcare.hub.application.HubApplication;
import java.util.ArrayList;
import java.util.... | ctsims/andorid-micronode | CommCareHub/app/src/main/java/org/commcare/hub/events/HubActivity.java | Java | apache-2.0 | 2,103 |
package io.joynr.examples.jee;
/*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* 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/... | clive-jevons/joynr | examples/radio-jee/radio-jee-provider/src/main/java/io/joynr/examples/jee/GeoLocationService.java | Java | apache-2.0 | 1,645 |
/*
* Copyright 2015 Suprema(biostar2@suprema.co.kr)
*
* 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 b... | BioStar2/BioStar2Android | BioStar2Android/BioStar2Client/src/main/java/com/supremainc/biostar2/adapter/SimpleDataAdapter.java | Java | apache-2.0 | 2,741 |
/*
* TopStack (c) Copyright 2012-2013 Transcend Computing, 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 ap... | TranscendComputing/TopStackCore | src/com/msi/tough/utils/VolumeUtil.java | Java | apache-2.0 | 3,590 |
/*
* Copyright © 2016 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 agreed t... | caskdata/cdap | cdap-data-fabric/src/test/java/co/cask/cdap/data2/dataset2/customds/TopLevelDirectDataset.java | Java | apache-2.0 | 1,349 |
package de.lampware.racing.istats.cli;
/**
* TODO JavaDoc
*/
@FunctionalInterface
public interface IstatsCLIRunner extends Runnable {
}
| saschalamp/istats | cli/src/main/java/de/lampware/racing/istats/cli/IstatsCLIRunner.java | Java | apache-2.0 | 140 |
package nortantis;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* For handling when the user cancels their selection of a background color.
*/
public class BGColorCancelHandler implements ActionListener
{
private Color orginal;
private BGColorPreviewPanel tar... | jeheydorn/nortantis | src/nortantis/BGColorCancelHandler.java | Java | apache-2.0 | 554 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat, Inc., 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 not use this fi... | weld/core | tests-arquillian/src/test/java/org/jboss/weld/tests/contexts/request/startup/ejb/RequestScopeActiveDuringSingletonStartupTest.java | Java | apache-2.0 | 1,934 |
// Copyright 2000-2019 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 org.jetbrains.plugins.gradle.tooling;
import org.gradle.api.invocation.Gradle;
import org.jetbrains.annotations.NotNull;
/**
* @author Vladislav.Soroka
*/
public inter... | leafclick/intellij-community | plugins/gradle/tooling-extension-api/src/org/jetbrains/plugins/gradle/tooling/ModelBuilderContext.java | Java | apache-2.0 | 673 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/file_system_master.proto
package alluxio.grpc;
public interface PAclEntryOrBuilder extends
// @@protoc_insertion_point(interface_extends:alluxio.grpc.file.PAclEntry)
com.google.protobuf.MessageOrBuilder {
/**
* <code>optional .a... | madanadit/alluxio | core/transport/src/main/java/alluxio/grpc/PAclEntryOrBuilder.java | Java | apache-2.0 | 1,364 |
package fundamental.games.metropolis.connection.global;
import java.util.LinkedList;
public class MessagesQueue<T>
{
private LinkedList<T> messages = new LinkedList<>();
private Object queueLock = new Object();
//********************************
public MessagesQueue() { }
//********************... | Ragnarokma/metropolis | src/main/java/fundamental/games/metropolis/connection/global/MessagesQueue.java | Java | apache-2.0 | 780 |
/*
* Copyright (c) 2010-2017 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.repo.sql.data.audit;
import com.evolveum.midpoint.audit.api.AuditService;
import com.evolveum.midp... | bshp/midPoint | repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/audit/RAuditPropertyValue.java | Java | apache-2.0 | 4,382 |
package org.luapp.practise.utils;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.io.LineIterator;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* Created by lum on 2015... | lumeng689/luapp | practise/src/main/java/org/luapp/practise/utils/SplitText.java | Java | apache-2.0 | 1,358 |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | consulo/consulo-python | python-impl/src/main/java/com/jetbrains/python/codeInsight/override/PyMethodMember.java | Java | apache-2.0 | 2,984 |
package com.juhe.petrolstation.activity;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView... | liqiang199696/PetrolStation | src/com/juhe/petrolstation/activity/StationListActivity.java | Java | apache-2.0 | 1,943 |
/**
* Copyright 2014 Atos
* Contact: Atos <roman.sosa@atos.net>
*
* 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
... | modaclouds/modaclouds-sla-mediator | src/main/java/eu/atos/sla/client/ResourceCollection.java | Java | apache-2.0 | 10,880 |
/*
* 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 ... | jcamachor/calcite | piglet/src/test/java/org/apache/calcite/test/PigRelOpTest.java | Java | apache-2.0 | 72,776 |
/**********************************************************************
Copyright (c) 2006 Andy Jefferson and others. 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://... | guci314/DataNucleusJpaSample | src/main/java/org/datanucleus/samples/jpa/tutorial/Product.java | Java | apache-2.0 | 3,305 |
/*
* Copyright 2012-2014 by Victor Denisov (vdenisov@plukh.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.apache.org/licenses/LICENSE-2.0
*
... | options-util/options-util | src/test/java/org/plukh/options/interfaces/TransientUnsupportedClassTestOptions.java | Java | apache-2.0 | 952 |
/*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* 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... | bmwcarit/joynr | java/core/libjoynr/src/main/java/io/joynr/dispatching/RequestCaller.java | Java | apache-2.0 | 1,828 |
/*
Copyright 2014 Immutables Authors and Contributors
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... | immutables/immutables | value-processor/src/org/immutables/value/processor/meta/LongBits.java | Java | apache-2.0 | 4,078 |
/*
* Copyright 2019 Google LLC. 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... | sduskis/cloud-bigtable-client | bigtable-dataflow-parent/bigtable-beam-import/src/test/java/com/google/cloud/bigtable/beam/it/CloudBigtableBeamITTest.java | Java | apache-2.0 | 10,984 |
/*
* Copyright (C) 2013 salesforce.com, 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 ... | DebalinaDey/AuraDevelopDeb | aura-impl/src/main/java/org/auraframework/impl/javascript/controller/JavascriptActionDef.java | Java | apache-2.0 | 2,770 |
package com.udacity.bakingtime.recipedetail.ingredientlistdialog;
import android.app.DialogFragment;
import android.app.Fragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.vi... | luanalbineli/baking-time | app/src/main/java/com/udacity/bakingtime/recipedetail/ingredientlistdialog/IngredientListDialog.java | Java | apache-2.0 | 3,396 |
package org.schema;
/**
*
* A sidebar section of the page.
*
* @fullPath Thing > CreativeWork > WebPageElement > WPSideBar
*
* @author Texelz (by Onhate)
*
*/
public class WPSideBar extends WebPageElement {
}
| onhate/schemorger | src/main/java/org/schema/WPSideBar.java | Java | apache-2.0 | 223 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/resources/ad_group_criterion_customizer.proto
package com.google.ads.googleads.v10.resources;
public interface AdGroupCriterionCustomizerOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.google... | googleads/google-ads-java | google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/resources/AdGroupCriterionCustomizerOrBuilder.java | Java | apache-2.0 | 5,365 |
package com.totvslabs.mdm.restclient.command;
import java.util.HashMap;
import java.util.Map;
import com.totvslabs.mdm.restclient.vo.CommandTypeEnum;
import com.totvslabs.mdm.restclient.vo.EnvelopeVO;
public class CommandListDatasource implements ICommand, AuthenticationRequired {
private String tenantId;
public ... | brunocvcunha/mdmconnectors | mdm-rest-client/src/main/java/com/totvslabs/mdm/restclient/command/CommandListDatasource.java | Java | apache-2.0 | 1,178 |
/*
x * Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this f... | mohit/elasticsearch | core/src/test/java/org/elasticsearch/search/sort/FieldSortBuilderTests.java | Java | apache-2.0 | 19,454 |
/*
* ******************************************************************************
* Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License i... | DenverM80/ds3_java_sdk | ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/Predicate.java | Java | apache-2.0 | 859 |
package com.cruise.utils;
import java.util.*;
/**
* @author cruisechang
* @description
* Check utils.
*/
public class CheckUtil
{
public static final String DATA_TYPE_INT="int";
public static final String DATA_TYPE_STRING="string";
public static final String DATA_TYPE_BOOLEAN="bool";
public stat... | cruisechang/javautils | com/cruise/utils/CheckUtil.java | Java | apache-2.0 | 4,063 |
/*
* 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 ... | masonmei/java-agent | profiler/src/main/java/com/baidu/oped/apm/profiler/interceptor/registry/GlobalInterceptorRegistryBinder.java | Java | apache-2.0 | 1,375 |
package ru.cain.tests;
import org.openqa.selenium.remote.BrowserType;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import ru.cain.appmanager.ApplicationManager;
/**
* Created by www on 16.11.2016.
*/
public class TestBase {
protected final ApplicationManager app = new Ap... | IvanOleynik/java_pft | cain-tests/src/test/java/ru/cain/tests/TestBase.java | Java | apache-2.0 | 502 |
package com.google.ar.sceneform.rendering;
import android.support.annotation.Nullable;
import com.google.ar.sceneform.resources.ResourceHolder;
import com.google.ar.sceneform.resources.ResourceRegistry;
import java.util.ArrayList;
/**
* Minimal resource manager. Maintains mappings from ids to created resources and ... | google-ar/sceneform-android-sdk | sceneformsrc/sceneform/src/main/java/com/google/ar/sceneform/rendering/ResourceManager.java | Java | apache-2.0 | 3,736 |
/*
*
* 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... | estatio/estatio | estatioapp/app/src/main/java/org/estatio/module/lease/fixtures/LeaseTypeForItalyRefData.java | Java | apache-2.0 | 2,513 |
/*
* Copyright (C) 2015-2016 QuickAF
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Jamling/AFDemo | library/src/cn/ieclipse/af/adapter/delegate/AdapterDelegate.java | Java | apache-2.0 | 4,002 |
/**
* A dot item is eaten!
*
* @author Ryan Seys
* @version 1.0
*/
public class Dot implements Item
{
// instance variables - replace the example below with your own
private static final String LETTER = "o";
/**
* Returns the string representation of the object.
**/
public String getLe... | ryanseys/escape-mouseville | EscapeFromMouseville/Dot.java | Java | apache-2.0 | 360 |
package com.mazebert.gateways.fake;
import com.mazebert.entities.Game;
import com.mazebert.gateways.GameGateway;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.stream.Collectors;
public class FakeGameGateway imp... | casid/mazebert-ladder | src/main/java/com/mazebert/gateways/fake/FakeGameGateway.java | Java | apache-2.0 | 776 |
package org.jboss.as.quickstarts.loggingToolsQS.exceptions;
import javax.annotation.Generated;
/**
* Warning this class consists of generated code.
*
*/
@Generated(value = "org.jboss.logging.processor.generator.model.MessageBundleTranslator", date = "2015-10-14T23:22:02+0200")
public class DateExceptionsBundle_... | cocoJamboo/jboss-eap-6.4.0.GA-quickstarts | logging-tools/target/generated-sources/annotations/org/jboss/as/quickstarts/loggingToolsQS/exceptions/DateExceptionsBundle_$bundle_sv.java | Java | apache-2.0 | 677 |
/*
* Copyright (C) 2010 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... | xsolla/xsolla-sdk-android | xsollasdk/src/main/java/com/xsolla/android/sdk/util/cache/Util.java | Java | apache-2.0 | 2,408 |
/*
*-------------------------------------------------------
* (c) 2006 Das Büro am Draht GmbH - All Rights reserved
*-------------------------------------------------------
*/
package com.googlecode.flickrjandroid.interestingness;
import java.io.IOException;
import java.security.InvalidKeyException;
import ja... | 0570dev/flickr-glass | src/com/googlecode/flickrjandroid/interestingness/InterestingnessInterface.java | Java | apache-2.0 | 5,423 |
package com.fedevela.core.workflow.pojos;
/**
* Created by fvelazquez on 31/03/14.
*/
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.xml.bind.annotation.XmlRootElement;
@Entity
@XmlRootElement
p... | fedevelatec/asic-core | src/main/java/com/fedevela/core/workflow/pojos/AuthorityWorkflowSecurityEntity.java | Java | apache-2.0 | 3,122 |
package com.planet_ink.coffee_mud.Abilities.Prayers;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.... | vjanmey/EpicMudfia | com/planet_ink/coffee_mud/Abilities/Prayers/Prayer_Paralyze.java | Java | apache-2.0 | 4,716 |
package com.evolveum.midpoint.eclipse.ui.components.browser;
import java.util.List;
import javax.xml.namespace.QName;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import com.evolveum.midpoint.eclipse.runtime.api.Constants;
import com.evolveum.midpoint.eclipse.runtime.api.resp.ServerObject;
im... | Evolveum/midpoint-ide-plugins | com.evolveum.midpoint.eclipse.parent/com.evolveum.midpoint.eclipse.ui/src/com/evolveum/midpoint/eclipse/ui/components/browser/ShowGenerator.java | Java | apache-2.0 | 1,303 |
package com.github.mkopylec.errorest.handling.errordata.http;
import com.github.mkopylec.errorest.configuration.ErrorestProperties;
import com.github.mkopylec.errorest.handling.errordata.ErrorData;
import org.springframework.boot.web.servlet.error.ErrorAttributes;
import org.springframework.http.HttpStatus;
import org... | mkopylec/errorest-spring-boot-starter | src/main/java/com/github/mkopylec/errorest/handling/errordata/http/ServletRequestBindingErrorDataProvider.java | Java | apache-2.0 | 1,527 |
package br.unicamp.ic.lsd.mercurius.datatype.factory;
import br.unicamp.ic.lsd.mercurius.datatype.ProductImage;
public interface ProductImageFactory extends Factory<ProductImage> {
}
| raphaelazzolini/mercurius | mercurius/datatype/src/main/java/br/unicamp/ic/lsd/mercurius/datatype/factory/ProductImageFactory.java | Java | apache-2.0 | 186 |
package chesterfield;
public class DatabaseTest extends ChesterfieldTestCase
{
public void testGetDocumentCount() throws Exception
{
assertEquals(0, getDatabase().getDocumentCount());
MyDocument document = new MyDocument();
document.setHelloWorld("Hello, world!");
document.setI... | i386/chesterfield | src/test/java/chesterfield/DatabaseTest.java | Java | apache-2.0 | 2,821 |
//region Copyright
/*Copyright 2015-2016 尚尔路(sel8616@gmail.com/philshang@163.com)
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 ... | cap-framework/cap-http | src/main/java/capframework/http/constant/ResponseType.java | Java | apache-2.0 | 1,293 |
package com.otognan.driverpete.logic;
import static org.junit.Assert.assertEquals;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;
import java.util.List;
import org.hamcrest.collection.IsIterableContainingInOrder;
import org.junit.Assert;
... | driver-pete/driver-pete-server | src/test/java/com/otognan/driverpete/logic/TrajectoryReaderTest.java | Java | apache-2.0 | 2,221 |
/*
* Created on Dec 24, 2010
*
* 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... | alexruiz/fest-assert-2.x | src/test/java/org/fest/assertions/internal/Strings_assertContains_Test.java | Java | apache-2.0 | 2,755 |
package com.smockin.admin.exception;
public class MockExportException extends RuntimeException {
public MockExportException(final String msg) {
super(msg);
}
public MockExportException(final String msg, Throwable cause) {
super(msg, cause);
}
}
| mgtechsoftware/smockin | src/main/java/com/smockin/admin/exception/MockExportException.java | Java | apache-2.0 | 281 |
/*
* Copyright (C) 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 ... | sammcveety/DataflowJavaSDK | sdk/src/main/java/com/google/cloud/dataflow/sdk/coders/ListCoder.java | Java | apache-2.0 | 2,395 |
/*
* Tencent is pleased to support the open source community by making Tinker available.
*
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a ... | xingstarx/TinkerDemo | app/src/main/java/com/star/tinker/reporter/SampleLoadReporter.java | Java | apache-2.0 | 3,899 |
/*
* Copyright 2012 International Business Machines Corp.
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You ... | mminella/jsr-352-ri-tck | JSR352.Annotations/src/javax/batch/annotation/BatchProperty.java | Java | apache-2.0 | 1,090 |
package com.xiaomi.passport.api;
import com.xiaomi.passport.exception.OAuthSdkException;
import com.xiaomi.passport.pojo.AccessToken;
import com.xiaomi.passport.pojo.Client;
import com.xiaomi.passport.utils.OAuthTestUtils;
import org.apache.commons.lang.RandomStringUtils;
import org.apache.commons.lang3.StringUtils;
i... | xiaomi-passport/oauth-java-sdk | src/test/java/com/xiaomi/passport/api/RefreshAccessTokenHelperTest.java | Java | apache-2.0 | 1,899 |
package com.planet_ink.coffee_mud.Abilities.Diseases;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com... | vjanmey/EpicMudfia | com/planet_ink/coffee_mud/Abilities/Diseases/Disease_HeatExhaustion.java | Java | apache-2.0 | 4,533 |
package com.smockin.admin.persistence.migration;
import com.smockin.admin.exception.MigrationException;
import com.smockin.admin.persistence.migration.version.*;
import com.smockin.utils.GeneralUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired... | mgtechsoftware/smockin | src/main/java/com/smockin/admin/persistence/migration/DataMigrationService.java | Java | apache-2.0 | 3,224 |
package com.google.api.ads.dfp.jaxws.v201306;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Errors related to the usage of API versions.
*
*
* <p>Java class for ApiVersionError complex... | nafae/developer | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201306/ApiVersionError.java | Java | apache-2.0 | 1,585 |
/*
* 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 ... | alexryndin/ambari | ambari-server/src/main/java/org/apache/ambari/server/checks/StormShutdownWarning.java | Java | apache-2.0 | 2,786 |
/*
* Copyright 2017 Young Digital Planet S.A.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | YoungDigitalPlanet/empiria.player | src/main/java/eu/ydp/empiria/player/client/components/event/InputEventRegistrar.java | Java | apache-2.0 | 1,386 |
package net.hamnaberg.funclite;
import java.util.ArrayList;
import java.util.List;
public class Monoids {
public static <A> Monoid<List<A>> listMonoid() {
return new Monoid<List<A>>() {
@Override
public List<A> zero() {
return new ArrayList<>();
}
... | hamnis/funclite | src/main/java/net/hamnaberg/funclite/Monoids.java | Java | apache-2.0 | 1,851 |
package com.example.countit;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class ImgGallery extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstan... | pklall/countit | countIt/src/com/example/countit/ImgGallery.java | Java | apache-2.0 | 1,086 |
package com.nscg.app.model.domain;
import java.io.Serializable;
/**
* Created by liuyongfeng on 2018/3/16.
*/
public class ListReport implements Serializable {
private String 街道名称;//"大岗镇",
private String 任务数;//0,
private String 自发任务数;//0,
private String 紧急任务数;//0,
private String 已整改任务数;//0,
... | liuyongfeng90/NSCGApp | app/src/main/java/com/nscg/app/model/domain/ListReport.java | Java | apache-2.0 | 2,348 |
// Copyright 2000-2019 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 org.jetbrains.plugins.gradle.service;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.externalSystem.ExternalSystemModulePropertyManage... | leafclick/intellij-community | plugins/gradle/src/org/jetbrains/plugins/gradle/service/GradleInstallationManager.java | Java | apache-2.0 | 24,326 |
package at.ac.tuwien.dsg.scaledom;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.HashMap;
import java.util.Map;
import javax.xml.XMLConstants;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.par... | whummer/scaleDOM | src/main/java/at/ac/tuwien/dsg/scaledom/ScaleDomDocumentBuilderFactory.java | Java | apache-2.0 | 4,673 |
package org.project.openbaton.nubomedia.api.openshift.json;
import org.apache.commons.codec.binary.Base64;
/**
* Created by maa on 01.10.15.
*/
public class SshGitChallengeSecret implements SecretType{
private String username;
private String password;
public SshGitChallengeSecret(String username, Stri... | alincalinciuc/nubomedia-paas | src/main/java/org/project/openbaton/nubomedia/api/openshift/json/SshGitChallengeSecret.java | Java | apache-2.0 | 915 |
import javax.sound.sampled.*;
import java.io.File;
/***************************************************************************
* Microphone class that contains methods to capture audio from microphone
*
* @author Luke Kuza, Aaron Gokaslan
**************************************************************************... | rrbutani/redolent-waddle | source/AudioVisualizer/src/Microphone.java | Java | artistic-2.0 | 6,371 |
package tinker.net.dongliu.apk.parser.struct.xml;
/**
* @author dongliu
*/
public class XmlNamespaceEndTag {
private String prefix;
private String uri;
public String getPrefix() {
return prefix;
}
public void setPrefix(String prefix) {
this.prefix = prefix;
}
public Str... | shwenzhang/apk-parser | apk-parser-lib/src/main/java/tinker/net/dongliu/apk/parser/struct/xml/XmlNamespaceEndTag.java | Java | bsd-2-clause | 518 |
package com.kbsriram.keypan.core;
import java.io.IOException;
public interface IVerifier
{
/**
* Return a profile from a key uid, and use the original query to
* set the is-critical flag on the profile if necessary.
* Return null if you cannot handle this uid.
*/
public AProfile fromUid(St... | kbsriram/keypan | src/core/com/kbsriram/keypan/core/IVerifier.java | Java | bsd-2-clause | 603 |
package org.finikes.sider.async;
import java.util.Collection;
import java.util.List;
import java.util.Map;
public abstract class AsyncRedisPipelindMGetHandler extends AsyncRedisPipelindHandlerAdapter {
protected String unrealizedMsg = "Method unrealized.";
public abstract Map<String, String> mget(String... keys);
... | finikes/sider | src/main/java/org/finikes/sider/async/AsyncRedisPipelindMGetHandler.java | Java | bsd-2-clause | 749 |
/*******************************************************************************
* Copyright (c) cortical.io GmbH. All rights reserved.
*
* This software is confidential and proprietary information.
* You shall use it only in accordance with the terms of the
* license agreement you entered into with cortical.io ... | cortical-io/java-client-sdk | retina-service-rest-model/src/main/java/io/cortical/rest/model/Text.java | Java | bsd-2-clause | 1,776 |
package com.weisong.common.vodo;
import lombok.Getter;
import lombok.Setter;
import com.weisong.common.value.BaseValueObject;
import com.weisong.common.vodo.annotation.BindToClass;
import com.weisong.common.vodo.annotation.BindToField;
import com.weisong.common.vodo.annotation.VoOnly;
@Getter @Setter
@BindToClass("c... | weisong44/weisong-object-copy | src/test/java/com/weisong/common/vodo/DummyGrandChildVo.java | Java | bsd-2-clause | 568 |
package ru.nsc.interval.globalopt;
import java.io.IOException;
import java.nio.file.Paths;
import net.java.jinterval.expression.OptimizationProblem;
import net.java.jinterval.expression.example.FireRisk;
import net.java.jinterval.interval.set.*;
import net.java.jinterval.rational.ExtendedRational;
public class Main {... | jinterval/jinterval | ru-nsc-globalopt/src/main/java/ru/nsc/interval/globalopt/Main.java | Java | bsd-2-clause | 5,500 |
package org.commonmark.internal;
import org.commonmark.internal.inline.Scanner;
import org.commonmark.internal.inline.*;
import org.commonmark.internal.util.Escaping;
import org.commonmark.internal.util.LinkScanner;
import org.commonmark.internal.util.Parsing;
import org.commonmark.node.*;
import org.commonmark.parser... | atlassian/commonmark-java | commonmark/src/main/java/org/commonmark/internal/InlineParserImpl.java | Java | bsd-2-clause | 28,061 |
/*
* #%L
* ImageJ2 software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2009 - 2022 ImageJ2 developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of... | imagej/imagej-common | src/main/java/net/imagej/types/DataType64BitSignedComplexFloat.java | Java | bsd-2-clause | 3,884 |
package h2o.utils.log;
import h2o.common.exception.ExceptionUtil;
import h2o.common.util.collection.CollectionUtil;
import h2o.common.util.date.DateUtil;
import h2o.common.util.format.FormattingTuple;
import h2o.common.util.format.MessageFormatter;
import java.util.Date;
public abstract class AbstractTagLogger imple... | sixshot626/h2o | h2o-utils/src/main/java/h2o/utils/log/AbstractTagLogger.java | Java | bsd-2-clause | 1,841 |
/*******************************************************************************
* Copyright (c) 2015 Sierra Wireless and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 whi... | iotoasis/SI | si-modules/LWM2M_IPE_Server/leshan-server-core/src/main/java/org/eclipse/leshan/server/model/LwM2mModelProvider.java | Java | bsd-2-clause | 1,717 |
package de.javaakademie.moviestore.model;
import java.time.LocalDate;
import java.time.Period;;
/**
* Actor.
*
* @author Guido.Oelmann
*/
public class Actor {
private Integer id;
private String name;
private String surname;
private LocalDate birthday;
private String wikipediaUrl;
public... | javaakademie/MovieStore | src/main/java/de/javaakademie/moviestore/model/Actor.java | Java | bsd-2-clause | 1,327 |
/**
* BSD 2-Clause License
*
* Copyright (c) 2016-2017, Jochen Seeber
* 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 copyright ... | jochenseeber/gradle-project-config | src/main/java/me/seeber/gradle/ide/eclipse/annotations/JarReader.java | Java | bsd-2-clause | 5,838 |
/*
Copyright (c) 2013, Colorado State University
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and ... | CameronTolooee/galileo | src/galileo/net/MessageRouter.java | Java | bsd-2-clause | 19,491 |
package org.mapfish.print.test.util;
import com.google.common.io.Files;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.export.JRGraphics2DExporter;
import net.sf.jasperreports.export.SimpleExporterInput;
import net.sf.jasperreports.exp... | marcjansen/mapfish-print | core/src/main/java/org/mapfish/print/test/util/ImageSimilarity.java | Java | bsd-2-clause | 15,963 |
package inference;
public class DistributionInference extends Inference implements InferenceCaller {
public DistributionInference() {
caller=this;
}
boolean evidOnly;
double curDiriDenom;
int curBin;
/* the distribution */
double maxProb,minProb;
double[] distribution;
public void doit(int M... | yajunyang/BioImage | lib/VIB-lib-master/src/main/java/inference/DistributionInference.java | Java | bsd-2-clause | 1,654 |
package org.jcodec.codecs.vpx.vp8.data;
import static org.jcodec.codecs.vpx.vp8.data.CommonData.Comp.AC;
import static org.jcodec.codecs.vpx.vp8.data.CommonData.Comp.DC;
import static org.jcodec.codecs.vpx.vp8.data.CommonData.Quant.UV;
import static org.jcodec.codecs.vpx.vp8.data.CommonData.Quant.Y1;
import static org... | jcodec/jcodec | src/main/java/org/jcodec/codecs/vpx/vp8/data/QuantCommon.java | Java | bsd-2-clause | 5,008 |
package unit;
import static org.junit.Assert.*;
import org.junit.Test;
import static libnp.statistics.SpecialFunctions.incompleteBeta;
import static libnp.util.Float.compareFloats;
public class TestSpecialFunctions {
@Test
public void test_incompleteBeta() {
for (double x = 0.0; x <= 1.0; x += 0.01) {
asse... | lell/libnp | test/unit/TestSpecialFunctions.java | Java | bsd-2-clause | 904 |
/*
* Copyright (c) 2016, Kevin Phoenix
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of condi... | CardinalDevelopment/Cardinal | src/main/java/in/twizmwaz/cardinal/module/region/parser/CircleRegionParser.java | Java | bsd-2-clause | 2,977 |
/*
* Copyright (c) 2014. Real Time Genomics Limited.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice... | RealTimeGenomics/rtg-tools | test/com/rtg/usage/UsageLoggingTest.java | Java | bsd-2-clause | 2,750 |
package com.rhcloud.igorbotian.rsskit.rest.facebook.api;
import com.fasterxml.jackson.databind.JsonNode;
import com.rhcloud.igorbotian.rsskit.db.RsskitDataSource;
import com.rhcloud.igorbotian.rsskit.db.facebook.FacebookEntityManager;
import com.rhcloud.igorbotian.rsskit.db.facebook.FacebookEntityManagerImpl;
import c... | igorbotian/rsskit | src/main/java/com/rhcloud/igorbotian/rsskit/rest/facebook/api/FacebookAPIImpl.java | Java | bsd-2-clause | 7,156 |
package de.pfabulist.loracle.license;
import de.pfabulist.loracle.attribution.CopyrightHolder;
import de.pfabulist.loracle.maven.Coordinates;
import de.pfabulist.roast.nio.Files_;
import de.pfabulist.roast.nio.Paths_;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import javax.annotation.Nullable;
import ... | openCage/loracle-maven-plugin | src/main/java/de/pfabulist/loracle/license/Coordinates2License.java | Java | bsd-2-clause | 19,881 |
/**
* Contains the main classes. Abstractions are placed in a sub-package.<p>
*
* The following image illustrates how the most important main classes and their abstractions are related:
*
* <div style="clear: both; text-align: center;" class="separator">
<img border="0" src="../../../resources/classDiagram.png"... | codebulb/LambdaOmega | src/main/java/ch/codebulb/lambdaomega/package-info.java | Java | bsd-3-clause | 370 |
/*Copyright 2012, infina (C. Bouton)
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 copyright
notice, this list of conditions and the following d... | infina/chocolatecraft | com/cbouton/chocolatecraft/ModItems.java | Java | bsd-3-clause | 6,114 |
/*
* Copyright: (c) Mayo Foundation for Medical Education and
* Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the
* triple-shield Mayo logo are trademarks and service marks of MFMER.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/lexevs-grid/LICENSE.txt f... | NCIP/lexevs-grid | LexEVSAnalyiticalService/src/org/LexGrid/LexBIG/cagrid/iso21090/converter/TextTextCustomConverter.java | Java | bsd-3-clause | 1,549 |
/* Copyright (c) 2013 OpenPlans. All rights reserved.
* This code is licensed under the BSD New License, available at the root
* application directory.
*/
package org.geogit.osm.internal;
import java.io.File;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
impor... | markles/GeoGit | src/osm/src/test/java/org/geogit/osm/internal/OSMMapOpTest.java | Java | bsd-3-clause | 25,855 |
package org.renci.databridge.util;
import java.io.*;
import java.util.logging.Logger;
import java.util.logging.Level;
import junit.framework.Assert;
import junit.framework.TestCase;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.rules.Expect... | HowardLander/DataBridge | util/src/test/java/org/renci/databridge/util/AmqpMessageMiniFrameworkTest.java | Java | bsd-3-clause | 3,100 |
package org.broadinstitute.hellbender.tools.walkers.annotator;
import com.google.common.annotations.VisibleForTesting;
import htsjdk.variant.variantcontext.Allele;
import htsjdk.variant.variantcontext.Genotype;
import htsjdk.variant.variantcontext.GenotypeBuilder;
import htsjdk.variant.variantcontext.VariantContext;
i... | broadinstitute/hellbender | src/main/java/org/broadinstitute/hellbender/tools/walkers/annotator/StrandBiasBySample.java | Java | bsd-3-clause | 5,373 |
package net.aisd.martin.frc.commands;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.command.Command;
import net.aisd.martin.frc.Subsystems;
/**
*
* @author Colonel Thirty Two
*/
public class ArcadePrecisionDriveCommand extends Command
{
public ArcadePrecisionDriveCommand()
{
super(Arcade... | ColonelThirtyTwo/FRC-Team-3676-Robot-Code | src/net/aisd/martin/frc/commands/ArcadePrecisionDriveCommand.java | Java | bsd-3-clause | 1,377 |