repo_name stringlengths 5 108 | path stringlengths 6 333 | size stringlengths 1 6 | content stringlengths 4 977k | license stringclasses 15
values |
|---|---|---|---|---|
mbauhardt/antw | modules/logger/src/main/java/antw/logger/TreeLogger.java | 4319 | package antw.logger;
import java.util.Date;
import org.apache.tools.ant.BuildEvent;
import antw.common.util.Constants;
import antw.common.util.StringUtil;
import antw.common.util.TimeUtil;
import antw.logger.model.Project;
import antw.logger.model.Target;
public class TreeLogger extends LoggerAdapter {
protect... | apache-2.0 |
cocoatomo/asakusafw | testing-project/asakusa-test-moderator/src/main/java/com/asakusafw/testdriver/rule/DecimalRange.java | 2011 | /**
* Copyright 2011-2017 Asakusa Framework Team.
*
* 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 |
sguilhen/wildfly-elytron | src/main/java/org/wildfly/security/sasl/util/CredentialSaslServerFactory.java | 2996 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2015 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 |
xerato/vk-study | src/com/board/BoardDAO.java | 7784 | package com.board;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
public class BoardDAO {
private Connection conn;
public BoardDAO(Connection conn){
this.conn = conn;
}
//1. num์ ์ต๋๊ฐ
public int getMaxNum(){
... | apache-2.0 |
AntennaeSDK/MMS | client-api/src/main/java/com/github/antennaesdk/common/messages/ServerRestMessage.java | 4171 | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 |
quarkusio/quarkus | integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/IntermediateRepository.java | 508 | package io.quarkus.it.spring.data.jpa;
import java.io.Serializable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.NoRepositoryBean;
@NoRepositoryBean
public interface IntermediateRepository<T, ID extends Serializable> extends JpaRepository<T, ID> {
defa... | apache-2.0 |
cushon/error-prone | core/src/main/java/com/google/errorprone/bugpatterns/threadsafety/ImmutableAnalysis.java | 12491 | /*
* Copyright 2016 The Error Prone Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | apache-2.0 |
vjanmey/EpicMudfia | com/planet_ink/coffee_mud/Abilities/Songs/Play_Organs.java | 2094 | package com.planet_ink.coffee_mud.Abilities.Songs;
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.pl... | apache-2.0 |
yush1ga/pulsar | managed-ledger/src/main/java/org/apache/bookkeeper/mledger/ManagedLedgerFactoryConfig.java | 1792 | /**
* 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 |
cping/LGame | Java/Examples/arpggame(0.5)/src/com/mygame/StepSwitch.java | 1359 | package com.mygame;
import java.util.Vector;
import loon.geom.RectBox;
public class StepSwitch extends Switch
{
StepSwitch(int x, int y, Vector<Thing> blocks)
{
this.x = x;
this.y = y;
this.blocks = blocks;
orgblocks = new Vector<Thing>();
for(int i = 0; i < blocks.si... | apache-2.0 |
davetcc/groovychart | src/main/java/com/thecoderscorner/groovychart/axis/NumberAxisBuilder.java | 2310 | /*
* DateAxisBuilder.java
*
* Created on March 17, 2007, 10:17 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package com.thecoderscorner.groovychart.axis;
import java.beans.IntrospectionException;
import java.util.Map;
import java.util.logging.Level;
... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-servicecatalog/src/main/java/com/amazonaws/services/servicecatalog/model/transform/UpdateServiceActionRequestMarshaller.java | 3346 | /*
* Copyright 2017-2022 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 "licen... | apache-2.0 |
jgrades/jgrades | jg-backend/implementation/base/jg-lic/interface/src/main/java/org/jgrades/lic/api/model/LicenceValidationResult.java | 636 | /*
* Copyright (C) 2016 the original author or authors.
*
* This file is part of jGrades Application Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.jgrades.lic.api.model;... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/DeinterlacerMode.java | 2135 | /*
* Copyright 2014-2019 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 "licen... | apache-2.0 |
lxbzmy/gnucash-android | app/src/main/java/org/gnucash/android/ui/common/BaseDrawerActivity.java | 13912 | /*
* Copyright (c) 2015 Ngewi Fet <ngewif@gmail.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 applica... | apache-2.0 |
dayaftereh/master-of-orion | src/main/java/de/nl/moo/data/loader/systems/SystemsBeanLoader.java | 2608 | package de.nl.moo.data.loader.systems;
import de.nl.moo.data.beans.systems.SystemsApplyerBean;
import de.nl.moo.data.beans.systems.SystemsBean;
import de.nl.moo.data.beans.systems.SystemsSystemBean;
import de.nl.moo.data.dao.GameBeanDAO;
import de.nl.moo.data.loader.AbstractBeanLoader;
import org.springframework.beans... | apache-2.0 |
setial/intellij-javadocs | src/main/java/com/github/setial/intellijjavadocs/configuration/impl/JavaDocConfigurationImpl.java | 4548 | package com.github.setial.intellijjavadocs.configuration.impl;
import com.github.setial.intellijjavadocs.configuration.JavaDocConfiguration;
import com.github.setial.intellijjavadocs.exception.SetupTemplateException;
import com.github.setial.intellijjavadocs.model.settings.JavaDocSettings;
import com.github.setial.int... | apache-2.0 |
JetBrains/intellij-community | platform/platform-impl/src/com/intellij/ide/plugins/newui/TagComponent.java | 2357 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.plugins.newui;
import com.intellij.ide.IdeBundle;
import com.intellij.ui.JBColor;
import com.intellij.util.ui.JBUI;
import org.jetbrains.annotations.Nls;... | apache-2.0 |
spring-cloud/spring-cloud-consul | spring-cloud-consul-discovery/src/test/java/org/springframework/cloud/consul/discovery/ConsulCatalogWatchTests.java | 1452 | /*
* Copyright 2013-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | apache-2.0 |
WeTheInternet/collide | client/src/main/java/com/google/collide/client/editor/CoordinateMap.java | 12795 | // Copyright 2012 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 |
JaredHatfield/shak-jarvis | src/test/java/com/unitvectory/shak/jarvis/model/SmartThingsPublishTest.java | 2402 | package com.unitvectory.shak.jarvis.model;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import com.unitvectory.shak.jarvis.util.ResourceHelper;
/**
* Tests the ... | apache-2.0 |
wcm-io-devops/wcm-io-devops-conga-sling-plugin | conga-sling-plugin/src/test/java/io/wcm/devops/conga/plugins/sling/validator/ProvisioningValidatorTest.java | 2492 | /*
* #%L
* wcm.io
* %%
* Copyright (C) 2015 wcm.io
* %%
* 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... | apache-2.0 |
chrishumphreys/provocateur | provocateur-thirdparty/src/main/java/org/targettest/org/apache/lucene/store/IndexInput.java | 8089 | package org.targettest.org.apache.lucene.store;
/**
* 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... | apache-2.0 |
gawkermedia/googleads-java-lib | modules/ads_lib/src/main/java/com/google/api/ads/adwords/lib/jaxb/v201509/SortOrder.java | 1139 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// 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: 2015.08.19 at 01:05:... | apache-2.0 |
AntonGavr92/agavrikov | chapter_003/src/test/java/ru/job4j/TestTimeCollectionTest.java | 1926 | package ru.job4j;
import org.junit.Test;
import java.util.*;
/**
* ะะปะฐัั ะดะปั ัะตััะธัะพะฒะฐะฝะธั.
* @author agavrikov
* @since 13.07.2017
* @version 1
*/
public class TestTimeCollectionTest {
/**
* ะขะตััะธัะพะฒะฐะฝะธะต ะผะตัะพะดะฐ ะดะพะฑะฐะฒะปะตะฝะธั.
*/
@Test
public void add() {
TestTimeCollection methods = ... | apache-2.0 |
afraisse/TinyMonkey | src/tinymonkeys/vue/VueCarte.java | 5524 | package tinymonkeys.vue;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;
/**
* Classe du panneau de la carte.
*
* @version 1.0
* @author Camille Constant
*
*/
public class VueCarte extends JPanel {
/**
* UID auto-gรฉnรฉrรฉ.
*/
private static final long serialVersionUID = 488496... | apache-2.0 |
Sage-Bionetworks/Synapse-Repository-Services | services/repository/src/main/java/org/sagebionetworks/auth/services/AuthenticationServiceImpl.java | 8736 | package org.sagebionetworks.auth.services;
import org.sagebionetworks.repo.manager.AuthenticationManager;
import org.sagebionetworks.repo.manager.MessageManager;
import org.sagebionetworks.repo.manager.UserManager;
import org.sagebionetworks.repo.manager.authentication.PersonalAccessTokenManager;
import org.sagebionet... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/model/UntagResourceResult.java | 2326 | /*
* Copyright 2014-2019 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 "licen... | apache-2.0 |
googleapis/java-aiplatform | proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelResponse.java | 16200 | /*
* Copyright 2020 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 ... | apache-2.0 |
Top-Q/jsystem | jsystem-core-system-objects/FileTransfer-so/src/main/java/com/aqua/filetransfer/ftp/FTPRemoteClient.java | 17775 | /*
* Copyright 2005-2010 Ignis Software Tools Ltd. All rights reserved.
*/
package com.aqua.filetransfer.ftp;
import java.io.File;
import java.io.FileInputStream;
import java.util.Properties;
import jsystem.framework.JSystemProperties;
import jsystem.framework.system.SystemObjectImpl;
import jsystem.utils.FileUtils... | apache-2.0 |
youseries/uflo | uflo-core/src/main/java/com/bstek/uflo/command/impl/GetListHistoryTasksCommand.java | 1555 | /*******************************************************************************
* Copyright 2017 Bstek
*
* 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/l... | apache-2.0 |
dagnir/aws-sdk-java | aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/transform/DescribeClusterResultJsonUnmarshaller.java | 2841 | /*
* Copyright 2012-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 "licen... | apache-2.0 |
Studentmediene/Momus | src/main/java/no/dusken/momus/model/websocket/Action.java | 91 | package no.dusken.momus.model.websocket;
public enum Action {
CREATE, UPDATE, DELETE
} | apache-2.0 |
lessthanoptimal/BoofCV | demonstrations/src/main/java/boofcv/demonstrations/imageprocessing/DisplaySteerableBase.java | 4148 | /*
* Copyright (c) 2021, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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.apac... | apache-2.0 |
cocoatomo/asakusafw | mapreduce/compiler/core/src/test/java/com/asakusafw/compiler/batch/NotPublic.java | 1012 | /**
* Copyright 2011-2017 Asakusa Framework Team.
*
* 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 |
gawkermedia/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201511/CustomTargetingValueStatus.java | 1306 |
package com.google.api.ads.dfp.jaxws.v201511;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for CustomTargetingValue.Status.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleTyp... | apache-2.0 |
NationalSecurityAgency/ghidra | Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/CompositeModelSelectionListener.java | 904 | /* ###
* IP: GHIDRA
* REVIEWED: YES
*
* 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 |
lunisolar/magma | magma-asserts/src/main/java/eu/lunisolar/magma/asserts/func/function/to/LToIntObj1Obj0FuncAttest.java | 3567 | /*
* This file is part of "lunisolar-magma".
*
* (C) Copyright 2014-2022 Lunisolar (http://lunisolar.eu/).
*
* 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.o... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/CreateCrawlerRequest.java | 36471 | /*
* Copyright 2017-2022 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 "licen... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/transform/ListDashboardsRequestMarshaller.java | 2151 | /*
* Copyright 2017-2022 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 "licen... | apache-2.0 |
jonaswagner/TomP2P | core/src/main/java/net/tomp2p/futures/FutureDone.java | 1873 | /*
* Copyright 2013 Thomas Bocek
*
* 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 ... | apache-2.0 |
chmyga/component-runtime | component-api/src/main/java/org/talend/sdk/component/api/configuration/constraint/Uniques.java | 1331 | /**
* Copyright (C) 2006-2020 Talend Inc. - www.talend.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 appli... | apache-2.0 |
mhus/mhus-inka | de.mhus.app.inka.morse.server/src/de/mhu/com/morse/channel/sql/WhereSqlListener.java | 10620 | package de.mhu.com.morse.channel.sql;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.Iterator;
import java.util.LinkedList;
import de.mhu.lib.ASql;
import de.mhu.lib.dtb.Sth;
import de.mhu.com.morse.aaa.IAclManager;
import de.mhu.com.morse.channel.CMql;
i... | apache-2.0 |
codeabovelab/haven-platform | common/common-utils/src/main/java/com/codeabovelab/dm/common/utils/StringUtils.java | 9252 | /*
* Copyright 2016 Code Above Lab 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 agr... | apache-2.0 |
n-i-e/deepfolderview | src/main/java/com/github/n_i_e/deepfolderview/SwtFileFolderMenu.java | 41340 | /*
* Copyright 2015 Namihiko Matsumura (https://github.com/n-i-e/)
*
* 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
*
* Un... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/StaticImageDeactivateScheduleActionSettings.java | 5899 | /*
* Copyright 2014-2019 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 "licen... | apache-2.0 |
dingjun84/mq-backup | rocketmq-broker/src/main/java/com/alibaba/rocketmq/broker/client/ConsumerIdsChangeListener.java | 963 | /**
* Copyright (C) 2010-2013 Alibaba Group Holding Limited
*
* 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... | apache-2.0 |
wanliwang/cayman | cm-idea/src/main/java/com/bjorktech/cayman/idea/designpattern/structure/proxy/TargetClass.java | 351 | package com.bjorktech.cayman.idea.designpattern.structure.proxy;
public class TargetClass implements TargetInterface {
@Override
public long add(long a, long b) {
long temp = a + b;
System.out.println(temp);
return temp;
}
@Override
public long sub(long a, long b) {
long temp = a - b;
System.out.print... | apache-2.0 |
mitkey/libgdx-ingenuity | depot/src/com/badlogic/gdx/ingenuity/scene2d/Loading.java | 1675 | package com.badlogic.gdx.ingenuity.scene2d;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.ingenuity.GdxData;
import com.badlogic.gdx.ingenuity.helper.PixmapHelper;
import com.badlogic.gdx.ingenuity.utils.GdxUtilities;
import com.badlogic.gdx.scenes.scene2d.Group;
import com.badlogic.gdx.scenes.scene2... | apache-2.0 |
concaveNP/GoUbiquitous | shared/src/test/java/com/concavenp/nanodegree/shared/ExampleUnitTest.java | 324 | package com.concavenp.nanodegree.shared;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
... | apache-2.0 |
obidea/semantika | src/main/java/com/obidea/semantika/datatype/AbstractDerivedDecimalType.java | 1709 | /*
* Copyright (c) 2013-2015 Josef Hardi <josef.hardi@gmail.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 requir... | apache-2.0 |
mikkokar/styx | support/testsupport/src/main/java/com/hotels/styx/support/matchers/IsOptional.java | 3272 | /*
Copyright (C) 2013-2020 Expedia 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 wri... | apache-2.0 |
kuri65536/sl4a | android/Common/src/com/googlecode/android_scripting/language/BeanShellLanguage.java | 2132 | /*
* Copyright (C) 2016 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 ... | apache-2.0 |
WindsorWang/Spools | spools-book/src/main/java/com/netpet/spools/book/insidethejavavirtualmachine/chapter18/Hello.java | 789 | /*
* Copyright [2017]
*
* 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 |
ctripcorp/x-pipe | redis/redis-checker/src/main/java/com/ctrip/xpipe/redis/checker/alert/manager/AlertPolicyManager.java | 3064 | package com.ctrip.xpipe.redis.checker.alert.manager;
import com.ctrip.xpipe.redis.checker.alert.ALERT_TYPE;
import com.ctrip.xpipe.redis.checker.alert.AlertChannel;
import com.ctrip.xpipe.redis.checker.alert.AlertConfig;
import com.ctrip.xpipe.redis.checker.alert.AlertEntity;
import com.ctrip.xpipe.redis.checker.alert... | apache-2.0 |
cabbagemaoyi/coolweather | app/src/main/java/com/coolweather/android/util/HttpUtil.java | 419 | package com.coolweather.android.util;
import okhttp3.OkHttpClient;
import okhttp3.Request;
/**
* Created by fengj on 2017/1/27.
*/
public class HttpUtil {
public static void sendOkHttpRequest(String address,okhttp3.Callback callback){
OkHttpClient client=new OkHttpClient();
Request request=new ... | apache-2.0 |
mariusj/org.openntf.domino | domino/core/archive/AbstractDominoIterator.java | 4458 | /*
* Copyright 2013
*
* 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 |
irccloud/android | src/com/irccloud/android/fragment/TextListFragment.java | 4169 | /*
* Copyright (c) 2015 IRCCloud, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | apache-2.0 |
bjorndm/prebake | code/third_party/bdb/src/com/sleepycat/je/rep/stream/ReplicaSyncupReader.java | 12355 | /*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2002-2010 Oracle. All rights reserved.
*
* $Id: ReplicaSyncupReader.java,v 1.4 2010/01/11 20:00:48 linda Exp $
*/
package com.sleepycat.je.rep.stream;
import static com.sleepycat.je.utilint.DbLsn.NULL_LSN;
import java.io.IOException;
... | apache-2.0 |
apache/jsecurity | src/org/jsecurity/authz/aop/AuthorizingAnnotationMethodInterceptor.java | 1745 | /*
* 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 |
equella/Equella | Source/Plugins/Core/com.equella.core/src/com/tle/web/workflow/soap/TaskListSoapInterface.java | 1054 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | apache-2.0 |
wpcfan/calltalent | app/src/main/java/com/soulkey/calltalent/db/DbOpenHelper.java | 1109 | package com.soulkey.calltalent.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.soulkey.calltalent.db.model.SettingModel;
import com.soulkey.calltalent.db.populator.SettingPopulator;
public final class DbOpenHelper extends ... | apache-2.0 |
dimitarz/splinter | src/test/java/com/splinter/graphing/SplinterLogTest.java | 7294 | package com.splinter.graphing;
import org.junit.Assert;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
public class SplinterLogTest {
@Test
public void testDisableLogs() {
try {
SLog.setEnabled(false);
String expected = "";
Assert.assertEqua... | apache-2.0 |
zourzouvillys/graphql | graphql-core/src/main/java/io/zrz/graphql/core/decl/GQLDeclaration.java | 651 | package io.zrz.graphql.core.decl;
import java.util.List;
import org.eclipse.jdt.annotation.Nullable;
import io.zrz.graphql.core.doc.GQLDirective;
import io.zrz.graphql.core.parser.GQLSourceLocation;
public interface GQLDeclaration {
@Nullable
String description();
<R> R apply(GQLDeclarationVisitor<R> visito... | apache-2.0 |
empt-ak/meditor | editor-backend/src/test/java/cz/muni/fi/editor/support/WithEditorUser.java | 1489 | /*
* Copyright ยฉ 2016 - 2017 Dominik Szalai (emptulik@gmail.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 require... | apache-2.0 |
openengsb/openengsb | ui/admin/src/main/java/org/openengsb/ui/admin/tree/editablePanel/EditablePanel.java | 1593 | /**
* Licensed to the Austrian Association for Software Tool Integration (AASTI)
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. The AASTI licenses this file to you under the Apache License,
* Version 2... | apache-2.0 |
mbizhani/Demeter | service/src/main/java/org/devocative/demeter/service/template/GroovyScript.java | 690 | package org.devocative.demeter.service.template;
import groovy.lang.Binding;
import groovy.lang.Script;
import org.devocative.demeter.iservice.template.BaseStringTemplate;
import java.util.Map;
public class GroovyScript extends BaseStringTemplate<Script> {
private Script script;
public GroovyScript(Script script)... | apache-2.0 |
frapu78/thingbench | src/thingbench/ThingOperation.java | 1167 | /**
*
* ThingBench - Things and Devices Simulator
*
* http://github.com/frapu78/thingbench
*
* @author Frank Puhlmann
*
*/
package thingbench;
import java.util.HashMap;
import net.frapu.code.visualization.ProcessNode;
/**
* This class provides an operation on a thing.
*
* @author fpu
*/
public abstract c... | apache-2.0 |
radut/Podcast-Server | src/test/java/lan/dk/podcastserver/manager/worker/selector/UpdaterSelectorTest.java | 4263 | package lan.dk.podcastserver.manager.worker.selector;
import lan.dk.podcastserver.manager.worker.selector.update.*;
import lan.dk.podcastserver.manager.worker.updater.*;
import org.junit.Before;
import org.junit.Test;
import java.util.HashSet;
import java.util.Set;
import static org.assertj.core.api.Assertions.asser... | apache-2.0 |
fujion/fujion-framework | fujion-highcharts/src/main/java/org/fujion/highcharts/PlotOptions.java | 15646 | /*
* #%L
* fujion
* %%
* Copyright (C) 2021 Fujion Framework
* %%
* 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 requ... | apache-2.0 |
achaphiv/grok-core | grok-core-api/src/main/java/grok/core/Image.java | 1076 | package grok.core;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.auto.value.AutoValue;
@AutoValue
public abstract class Image {
@JsonCreator
public static Image of(@JsonProperty("id") String id,
@JsonProperty("... | apache-2.0 |
phaseburn/ShowsRage | app/src/test/java/com/mgaetan89/showsrage/fragment/ShowsFragment_OnQueryTextChangeTest.java | 1137 | package com.mgaetan89.showsrage.fragment;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.Arrays;
import java.util.Collection;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito... | apache-2.0 |
MaartenDeWeerdt/TomEnJerry | TomEnJerry-ejb/src/java/entities/Product.java | 4620 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entities;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax... | apache-2.0 |
cgruber/dagger | java/dagger/internal/codegen/validation/ComponentDescriptorValidator.java | 22500 | /*
* Copyright (C) 2018 The Dagger Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/model/transform/GetHealthCheckLastFailureReasonResultStaxUnmarshaller.java | 3038 | /*
* Copyright 2014-2019 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 "licen... | apache-2.0 |
vsisko/incubator-ignite | modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheAbstractJdbcStore.java | 62015 | /*
* 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 |
sourcewarehouse/thomasjungblut | src/de/jungblut/math/squashing/LogisticErrorFunction.java | 574 | package de.jungblut.math.squashing;
import de.jungblut.math.DoubleMatrix;
import de.jungblut.math.MathUtils;
/**
* Logistic error function implementation.
*
* @author thomas.jungblut
*
*/
public final class LogisticErrorFunction implements ErrorFunction {
@Override
public double calculateError(DoubleMatri... | apache-2.0 |
ashcoding/titanium_mobile | android/modules/geolocation/src/java/ti/modules/titanium/geolocation/GeolocationModule.java | 36967 | /**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2016 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.
*/
package ti.modules.titanium.geolocation;
import java.util.ArrayList;
import java.... | apache-2.0 |
tarrow/ami | src/main/java/org/xmlcml/ami/visitor/VisitorOutput.java | 3654 | package org.xmlcml.ami.visitor;
import java.io.File;
import java.util.List;
import org.apache.commons.io.FilenameUtils;
import org.apache.log4j.Logger;
import org.xmlcml.ami.util.AMIUtil;
import org.xmlcml.ami.visitable.VisitableInput;
/** manages the output.
*
* Decides whether to create files or dir... | apache-2.0 |
ebocher/jproj | src/main/java/org/jproj/ProjCoordinate.java | 14438 | /*
Copyright 2006 Jerry Huxtable
Copyright 2009 Martin Davis
Copyright 2012 Antoine Gourlay
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
... | apache-2.0 |
rezaur86/Coding-competitions | Java/interviews/Yahoo.java | 1011 | package interviews;
public class Yahoo {
}
Run Length Encoding for byte array
Input byte array [10, 10, 10, 255, 255, 0, 10] ==> output byte array [3, 10, 2, 255, 1, 0, 1, 10]
Class ByteArrayEncodeDecode {
public byte[] encodeByteArray(byte[] input) {
int n = input.length;
if (n == 0) return new... | apache-2.0 |
ligasgr/intellij-xquery | gen/org/intellij/xquery/psi/XQueryContextItemDecl.java | 1132 | /*
* Copyright 2013-2017 Grzegorz Ligas <ligasgr@gmail.com> and other contributors
* (see the CONTRIBUTORS file).
*
* 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... | apache-2.0 |
duckling-falcon/vmt | src/main/java/net/duckling/vmt/domain/HttpGet.java | 1845 | /*
* Copyright (c) 2008-2016 Computer Network Information Center (CNIC), Chinese Academy of Sciences.
*
* This file is part of Duckling 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 L... | apache-2.0 |
consulo/consulo-lua | src/main/java/com/sylvanaar/idea/Lua/lang/psi/impl/symbols/LuaUpvalueIdentifierImpl.java | 1415 | /*
* Copyright 2011 Jon S Akhtar (Sylvanaar)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | apache-2.0 |
buschmais/extended-objects | neo4j/test/src/test/java/com/buschmais/xo/neo4j/test/id/EqualsHashcodeIT.java | 1744 | package com.buschmais.xo.neo4j.test.id;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import java.util.Collection;
import com.buschmais.xo.api.XOManager;
import com.buschmais.xo.api.bootstrap.XOUnit;
import com.buschmais.xo.neo4j.test.AbstractNeo4JXOManagerIT;
impo... | apache-2.0 |
equella/Equella | Source/Tools/ConfigManager/src/com/tle/configmanager/ConfigLauncherGUI.java | 13989 | package com.tle.configmanager;
import com.dytech.gui.ComponentHelper;
import com.thoughtworks.xstream.XStream;
import com.tle.common.Check;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.Buffer... | apache-2.0 |
max02100/paroisse | ParseStarterProject/src/main/java/com/krealid/starter/adapters/ActuExpendedAdapter.java | 4384 | package com.krealid.starter.adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
imp... | apache-2.0 |
wangcy6/storm_app | frame/c++/webrtc-master/sdk/android/src/java/org/webrtc/VP8Decoder.java | 645 | /*
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | apache-2.0 |
slightfoot/android-kioskime | src/com/android/inputmethod/keyboard/internal/GestureTrailsPreview.java | 7627 | /*
* Copyright (C) 2013 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... | apache-2.0 |
LvSongping/GLASSFISH_ADMIN_CONSOLE_DEVTESTS | auto-test/src/test/java/org/glassfish/admingui/devtests/JavaMessageServiceTest.java | 14315 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CD... | apache-2.0 |
googleapis/google-api-java-client-services | clients/google-api-services-dialogflow/v3beta1/1.31.0/com/google/api/services/dialogflow/v3beta1/model/GoogleCloudDialogflowV2ImportConversationDataOperationMetadata.java | 4520 | /*
* 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 |
awhitford/Resteasy | resteasy-client/src/main/java/org/jboss/resteasy/test/TestPortProvider.java | 3100 | package org.jboss.resteasy.test;
import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder;
import org.jboss.resteasy.client.jaxrs.ResteasyWebTarget;
import org.jboss.resteasy.util.PortProvider;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import javax.ws.rs.client.ClientBuilde... | apache-2.0 |
Ernest-su/ProgressRoundButton | library/src/main/java/com/xiaochen/progressroundbutton/AnimDownloadProgressButton.java | 23449 | package com.xiaochen.progressroundbutton;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import androi... | apache-2.0 |
joel-costigliola/assertj-core | src/test/java/org/assertj/core/api/long_/LongAssert_usingDefaultComparator_Test.java | 1561 | /*
* 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 |
bshp/midPoint | testing/sanity/src/test/java/com/evolveum/midpoint/testing/sanity/TestSanity.java | 199213 | /*
* 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.testing.sanity;
import static com.evolveum.midpoint.prism.util.PrismAsserts.assertEqualsPolyString;... | apache-2.0 |
gchq/stroom | stroom-security/stroom-security-identity/src/main/java/stroom/security/identity/authenticate/AuthenticateModule.java | 1110 | /*
* Copyright 2017 Crown Copyright
*
* 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 |
SopheakTuon/Smart-Bracelet | Application/src/main/java/com/example/android/bluetoothlegatt/ble_service/CountryUtils.java | 812 | package com.example.android.bluetoothlegatt.ble_service;
/**
* @author Sopheak Tuon
* @created on 04-Oct-17
*/
import java.util.Locale;
public class CountryUtils {
public static boolean getMonthAndDayFormate() {
Locale locale = Locale.getDefault();
String lang = locale.getLanguage();
S... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-workmailmessageflow/src/main/java/com/amazonaws/services/workmailmessageflow/model/transform/MessageRejectedExceptionUnmarshaller.java | 2934 | /*
* Copyright 2017-2022 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 "licen... | apache-2.0 |
3D-e-Chem/knime-modified-tanimoto | nl.esciencecenter.e3dchem.modifiedtanimoto/src/nl/esciencecenter/e3dchem/modifiedtanimoto/ModifiedTanimotoDistanceConfig.java | 1815 | package nl.esciencecenter.e3dchem.modifiedtanimoto;
import org.knime.base.util.flowvariable.FlowVariableProvider;
import org.knime.core.data.DataTableSpec;
import org.knime.core.node.InvalidSettingsException;
import org.knime.core.node.util.CheckUtils;
import org.knime.distance.category.DistanceCategoryConfig;
import ... | apache-2.0 |
ra0077/jmeter | src/protocol/http/org/apache/jmeter/protocol/http/sampler/JMeterClientConnectionOperator.java | 3341 | /*
* ====================================================================
* 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... | apache-2.0 |