repo_name stringlengths 5 108 | path stringlengths 6 333 | size stringlengths 1 6 | content stringlengths 4 977k | license stringclasses 15
values |
|---|---|---|---|---|
JockiHendry/simple-jpa | src/main/simplejpa/artifact/repository/RepositoryManager.java | 271 | package simplejpa.artifact.repository;
import java.util.Map;
public interface RepositoryManager {
public Object findRepository(String name);
public Object doInstantiate(String name, boolean triggerEvent);
public Map<String, Object> getRepositories();
}
| apache-2.0 |
ahgittin/license-audit-maven-plugin | src/test/java/org/heneveld/maven/license_audit/util/LicenseCodeTest.java | 3560 | package org.heneveld.maven.license_audit.util;
import org.apache.maven.model.License;
import junit.framework.TestCase;
public class LicenseCodeTest extends TestCase {
public void testGetCodesFromRegex() {
assertEquals("EPL-1.0", LicenseCodes.getLicenseCode("Eclipse Public License, Version 1.0")... | apache-2.0 |
vovagrechka/fucking-everything | phizdets/phizdets-idea/src/vgrechka/phizdetsidea/phizdets/codeInsight/intentions/PyJoinIfIntention.java | 5981 | /*
* 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... | apache-2.0 |
bfemiano/cellmate | accumulo-cellmate/src/test/java/cellmate/accumulo/reader/AccumuloReaderTest.java | 13464 | package cellmate.accumulo.reader;
import cellmate.accumulo.cell.SecurityStringValueCell;
import cellmate.accumulo.parameters.AccumuloParameters;
import cellmate.accumulo.reader.celltransformer.AccumuloCellTransformers;
import cellmate.accumulo.reader.celltransformer.SecurityStringCellTransformer;
import cellmate.cell.... | apache-2.0 |
zurche/open-weather-map-android-wrapper | OWApi/src/main/java/az/openweatherapi/utils/OWSupportedUnits.java | 301 | package az.openweatherapi.utils;
/**
* Created by az on 13/10/16.
*/
public enum OWSupportedUnits {
METRIC("metric"),
FAHRENHEIT("imperial");
String unit;
OWSupportedUnits(String unit) {
this.unit = unit;
}
public String getUnit() {
return unit;
}
}
| apache-2.0 |
zorzella/test-libraries-for-java | src/main/java/com/google/common/testing/junit4/JUnitAsserts.java | 8069 | /*
* Copyright (C) 2008 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 |
jentfoo/aws-sdk-java | aws-java-sdk-cognitosync/src/main/java/com/amazonaws/services/cognitosync/model/transform/GetIdentityPoolConfigurationResultJsonUnmarshaller.java | 3548 | /*
* 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 |
eemirtekin/Sakai-10.6-TR | providers/jldap/src/java/edu/amc/sakai/user/RegexpBlacklistEidValidator.java | 5398 | /**********************************************************************************
* $URL: https://source.sakaiproject.org/svn/providers/tags/sakai-10.6/jldap/src/java/edu/amc/sakai/user/RegexpBlacklistEidValidator.java $
* $Id: RegexpBlacklistEidValidator.java 105079 2012-02-24 23:08:11Z ottenhoff@longsight.com $
... | apache-2.0 |
xuse/ef-others | common-misc/src/main/java/jef/dynamic/ClassSource.java | 1514 | /*
* JEF - Copyright 2009-2010 Jiyi (mr.jiyi@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 app... | apache-2.0 |
idf/commons-util | src/test/java/io/deepreader/java/commons/util/SerializerTest.java | 743 | package io.deepreader.java.commons.util;
import junit.framework.TestCase;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* Created by Daniel on 09/10/15.
*/
public class SerializerTest extends TestCase {
@Before
public void setUp() throws Exception {
}
@After
publ... | apache-2.0 |
BMambaYe/SkinExpert | app/src/main/java/com/zhanghao/skinexpert/beans/QuestionBean.java | 626 | package com.zhanghao.skinexpert.beans;
/**
* Created by RockGao on 2016/12/23.
*/
/**
* 测试问题的bean类
*/
public class QuestionBean {
private String title;
private String score;
public QuestionBean() {
}
public QuestionBean(String title, String score) {
this.title = title;
this.s... | apache-2.0 |
Zhangsongsong/GraduationPro | 毕业设计/code/android/YYFramework/src/app/logic/activity/search/SearchActivity.java | 12596 | package app.logic.activity.search;
import java.util.ArrayList;
import java.util.List;
import org.QLConstant;
import org.ql.activity.customtitle.ActActivity;
import org.ql.utils.QLToastUtils;
import com.facebook.drawee.view.SimpleDraweeView;
import com.squareup.picasso.Picasso;
import android.R.integer;
import andro... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-globalaccelerator/src/main/java/com/amazonaws/services/globalaccelerator/model/transform/WithdrawByoipCidrRequestProtocolMarshaller.java | 2762 | /*
* 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 |
nelt/codingmatters-value-objects | cdm-value-objects-generation/src/test/java/org/codingmatters/value/objects/generation/collection/ValueSetImplementationTest.java | 3086 | package org.codingmatters.value.objects.generation.collection;
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.TypeSpec;
import org.codingmatters.tests.compile.CompiledCode;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.i... | apache-2.0 |
jitsi/jicofo | src/main/java/org/jitsi/protocol/xmpp/util/TransportSignaling.java | 2564 | /*
* Jicofo, the Jitsi Conference Focus.
*
* Copyright @ 2015-Present 8x8, 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
*
... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/transform/BatchGetOnPremisesInstancesResultJsonUnmarshaller.java | 3067 | /*
* 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 |
phax/ph-commons | ph-graph/src/main/java/com/helger/graph/algo/Dijkstra.java | 12144 | /*
* Copyright (C) 2014-2022 Philip Helger (www.helger.com)
* philip[at]helger[dot]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/LICEN... | apache-2.0 |
santhosh-tekuri/jlibs | i18n-apt/src/test/resources/i18n/MethodSignatureClash2Bundle.java | 299 | package i18n;
import jlibs.core.util.i18n.Message;
import jlibs.core.util.i18n.ResourceBundle;
/**
* @author Santhosh Kumar T
*/
@ResourceBundle
public interface MethodSignatureClash2Bundle{
@Message(key="EXECUTING_QUERY", value="executing {0}")
public String executing(String query);
}
| apache-2.0 |
josuemontano/SHTezt | No XML Configuration/src/main/java/com/hanovit/app/config/HibernateConfig.java | 2212 | package com.hanovit.app.config;
import java.util.Properties;
import javax.annotation.Resource;
import javax.sql.DataSource;
import org.apache.commons.dbcp2.BasicDataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.contex... | apache-2.0 |
redox/OrientDB | core/src/main/java/com/orientechnologies/orient/core/command/script/OScriptManager.java | 6461 | /*
* Copyright 2010-2012 Luca Garulli (l.garulli--at--orientechnologies.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
... | apache-2.0 |
knpFletcher/CapstoneProject | ForArtsSake/app/src/main/java/com/karenpownall/android/aca/forartssake/LInks.java | 158 | package com.karenpownall.android.aca.forartssake;
public class Links {
@Override
public String toString(){
return super.toString();
}
}
| apache-2.0 |
dremio/dremio-oss | plugins/elasticsearch/src/main/java/com/dremio/plugins/elastic/planning/functions/UnaryFunction.java | 1461 | /*
* Copyright (C) 2017-2019 Dremio 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | apache-2.0 |
McLeodMoores/starling | projects/financial-types/src/main/java/com/opengamma/financial/security/option/SupersharePayoffStyle.java | 8151 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.security.option;
import java.util.Map;
import org.joda.beans.Bean;
import org.joda.beans.BeanBuilder;
import org.joda.beans.BeanDefinition;
import o... | apache-2.0 |
wangxu2013/PCCREDIT_QZ | src/java/com/cardpay/pccredit/intopieces/web/IntoPiecesXingzhengbeginControl.java | 10908 | package com.cardpay.pccredit.intopieces.web;
import java.io.IOException;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUt... | apache-2.0 |
dagnir/aws-sdk-java | aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/ListTagsResult.java | 4500 | /*
* 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 |
unipop-graph/unipop | unipop-core/src/org/unipop/process/strategyregistrar/StandardStrategyProvider.java | 1536 | package org.unipop.process.strategyregistrar;
import org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategies;
import org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversalStrategies;
import org.apache.tinkerpop.gremlin.structure.Graph;
import org.unipop.process.coalesce.UniGraphCoalesceStepStr... | apache-2.0 |
pepoc/Joke | Joke/app/src/main/java/com/pepoc/joke/view/activity/JokeContentActivity.java | 4698 | package com.pepoc.joke.view.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.text.TextUtil... | apache-2.0 |
icecp/icecp | icecp-node/src/main/java/com/intel/icecp/node/security/crypto/utils/CryptoUtils.java | 5374 | /*
* Copyright (c) 2017 Intel 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/JourneyExecutionActivityMetricsResponse.java | 26522 | /*
* 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 |
GerritCodeReview/gwtjsonrpc | src/main/java/com/google/gwtjsonrpc/client/impl/ser/ObjectSerializer.java | 1544 | // Copyright 2008 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writ... | apache-2.0 |
francisliu/hbase | hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TRowMutations.java | 18133 | /**
* Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hadoop.hbase.thrift2.generated;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
/**
* A TRowMutations object is used to apply a number ... | apache-2.0 |
fkeglevich/Raw-Dumper | app/src/main/java/com/fkeglevich/rawdumper/camera/feature/RangeFeature.java | 1858 | /*
* Copyright 2018, Flávio Keglevich
*
* 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... | apache-2.0 |
xukun0217/wayMQ | wayMQ-droid/src/ananas/waymq/droid/api/ICoreApi.java | 168 | package ananas.waymq.droid.api;
public interface ICoreApi {
IBaseDirectory getBaseDirectory();
IMemberManager getMemberManager();
void save();
void load();
}
| apache-2.0 |
arquillian/arquillian-algeron | pact/provider/core/src/test/java/org/arquillian/algeron/pact/provider/core/StateTypeConverterTest.java | 6653 | package org.arquillian.algeron.pact.provider.core;
import net.jcip.annotations.NotThreadSafe;
import org.assertj.core.util.Arrays;
import org.junit.Test;
import java.net.URI;
import java.net.URL;
import static org.assertj.core.api.Assertions.assertThat;
@NotThreadSafe
public class StateTypeConverterTest {
@Tes... | apache-2.0 |
vert-x3/vertx-jdbc-client | src/main/java/io/vertx/jdbcclient/impl/actions/JDBCPropertyAccessor.java | 1633 | /*
* Copyright (c) 2011-2014 The original author or authors
* ------------------------------------------------------
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distributi... | apache-2.0 |
azusa/hatunatu | hatunatu-util/src/test/java/jp/fieldnotes/hatunatu/util/collection/EmptyIteratorTest.java | 2329 | /*
* Copyright 2004-2012 the Seasar Foundation and the Others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | apache-2.0 |
fishercoder1534/Leetcode | src/main/java/com/fishercoder/solutions/_42.java | 1640 | package com.fishercoder.solutions;
public class _42 {
public static class Solution1 {
/**
* O(n) time and O(1) space, awesome!
*
* 1. first scan to find the max height index
* 2. then scan from left up to max index and find all the water units up to the max height
... | apache-2.0 |
tafkacn/statsdclient | src/main/java/tafkacn/StatsdClient.java | 14025 | package tafkacn.statsdclient;
import com.lmax.disruptor.*;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.StandardSocketOptions;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.channels.DatagramChannel;
import java.nio.channels.SocketChannel;
import java.nio.chan... | apache-2.0 |
tourmalinelabs/AndroidTLKitExample | app/src/main/java/com/tourmaline/example/activities/MainActivity.java | 19865 | /* ******************************************************************************
* Copyright 2017 Tourmaline Labs, Inc. All rights reserved.
* Confidential & Proprietary - Tourmaline Labs, Inc. ("TLI")
*
* The party receiving this software directly from TLI (the "Recipient")
* may use this software as reasonably ... | apache-2.0 |
ysc/superword | src/main/java/org/apdplat/superword/tools/Pronunciation.java | 9799 | /*
* APDPlat - Application Product Development Platform
* Copyright (c) 2013, 杨尚川, yang-shangchuan@qq.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Licen... | apache-2.0 |
rlugojr/incubator-eagle | eagle-security/eagle-security-hbase-securitylog/src/main/java/org/apache/eagle/security/hbase/parse/HbaseAuditLogKafkaDeserializer.java | 2222 | /*
* 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 |
mdanielwork/intellij-community | java/java-psi-impl/src/com/intellij/psi/impl/PsiImplUtil.java | 33484 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.psi.impl;
import com.intellij.codeInsight.AnnotationTargetUtil;
import com.intellij.codeInsight.AnnotationUtil;
import com.intellij.lang.ASTNode;
import com.... | apache-2.0 |
hkuhn42/bottery | bottery.core/src/main/java/rocks/bottery/bot/crypto/AESHelper.java | 3630 | /**
* Copyright (C) 2016-2018 Harald Kuhn
*
* 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... | apache-2.0 |
nomencurator/taxonaut | src/main/java/org/nomencurator/io/QueryManager.java | 1410 | /*
* QueryManager.java: an interface to manage multiple ObjectExchangers
*
* Copyright (c) 2006, 2014, 2015, 2016 Nozomi `James' Ytow
* 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 obtai... | apache-2.0 |
Appendium/objectlabkit | datecalc-common/src/main/java/net/objectlab/kit/datecalc/common/TenorCode.java | 3699 | /*
* ObjectLab, http://www.objectlab.co.uk/open is sponsoring the ObjectLab Kit.
*
* Based in London, we are world leaders in the design and development
* of bespoke applications for the securities financing markets.
*
* <a href="http://www.objectlab.co.uk/open">Click here to learn more</a>
* __... | apache-2.0 |
deephacks/confit | tck/src/main/java/org/deephacks/confit/test/validation/BinaryTreeUtils.java | 11067 | /**
* 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
* distribut... | apache-2.0 |
akexorcist/Example-SamsungSDK | PassApp/app/src/test/java/com/akexorcist/passapp/ExampleUnitTest.java | 315 | package com.akexorcist.passapp;
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 |
henryco/OPalette | app/src/main/java/net/henryco/opalette/application/MainActivity.java | 22644 | /*
* Apache License
* Version 2.0, January 2004
* http://www.apache.org/licenses/
*
* TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
*
* 1. Definitions.
*
* "License" shall mean the terms and condition... | apache-2.0 |
lsmaira/gradle | subprojects/core/src/main/java/org/gradle/caching/internal/tasks/TaskOutputCachingBuildCacheKey.java | 1067 | /*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 |
mogoweb/365browser | app/src/main/java/org/chromium/blink/mojom/MediaSessionPlaybackState.java | 1196 |
// Copyright 2014 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.
// This file is autogenerated by:
// mojo/public/tools/bindings/mojom_bindings_generator.py
// For:
// third_party/WebKit/public/platform/modules... | apache-2.0 |
boundary/boundary-event-sdk | src/main/java/com/boundary/sdk/event/service/db/ServiceChecksDatabase.java | 9687 | // Copyright 2014-2015 Boundary, 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 agree... | apache-2.0 |
bazelbuild/intellij | aspect/tools/tests/unittests/com/google/idea/blaze/aspect/JarFilterTest.java | 6677 | /*
* Copyright 2017 The Bazel 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 a... | apache-2.0 |
Liuxyly/Java_Learning | Java_Adv/src/org/collention/CollentionsDemo.java | 874 | package org.collention;
import java.text.Collator;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.Map;
enum Week {
}
public class CollentionsDemo {
public static void main(String[] args) {
List<Dog> dogs = new ArrayList<>();
do... | apache-2.0 |
droidranger/xygapp | xyg-library/src/main/java/com/ranger/xyg/library/config/AppConfigLib.java | 662 | package com.ranger.xyg.library.config;
import android.content.Context;
import android.util.DisplayMetrics;
import android.view.WindowManager;
/**
* Created by xyg on 2017/6/14.
*/
public class AppConfigLib {
public static int sScreenWidth;
public static int sScreenHeight;
public static void initScree... | apache-2.0 |
AndrewZurn/sju-compsci-archive | CS200s/CS217b/OriginalFiles/lejos/robotics/navigation/CompassPilot.java | 9741 | package lejos.robotics.navigation;
import lejos.robotics.RegulatedMotor;
import lejos.robotics.DirectionFinder;
import lejos.util.Delay;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* ... | apache-2.0 |
TZClub/OMIPlatform | oip-service/src/main/java/tz/gzu/oip/admin/controller/ResourcesController.java | 5006 | package tz.gzu.oip.admin.controller;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
im... | apache-2.0 |
Asimov4/elasticsearch | src/main/java/org/elasticsearch/common/lucene/search/XBooleanFilter.java | 13959 | package org.elasticsearch.common.lucene.search;
/*
* 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 |
magro/jboss-as-quickstart | deltaspike-partialbean-basic/src/main/java/org/jboss/as/quickstart/deltaspike/partialbean/ExamplePartialBeanImplementation.java | 1893 | /*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* ... | apache-2.0 |
MegatronKing/SVG-Android | docs/notification/java/ic_bluetooth_audio.java | 3221 | package com.github.megatronking.svg.iconlibs;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import com.github.megatronking.svg.support.SVGRenderer;
/**
* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was autom... | apache-2.0 |
leangen/GraphQL-SPQR | src/test/java/io/leangen/graphql/services/UserService.java | 5197 | package io.leangen.graphql.services;
import io.leangen.graphql.annotations.GraphQLArgument;
import io.leangen.graphql.annotations.GraphQLComplexity;
import io.leangen.graphql.annotations.GraphQLContext;
import io.leangen.graphql.annotations.GraphQLId;
import io.leangen.graphql.annotations.GraphQLMutation;
import io.le... | apache-2.0 |
sopeco/LPE-Common | org.lpe.common.jmeter/src/org/lpe/common/jmeter/JMeterWrapper.java | 7278 | /**
* Copyright 2014 SAP AG
*
* 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 writi... | apache-2.0 |
jecuendet/maven4openxava | dist/openxava/workspace/OpenXavaTest/pojo-src/org/openxava/test/model/Subfamily.java | 2516 | package org.openxava.test.model;
import javax.persistence.*;
import javax.persistence.Entity;
import org.hibernate.annotations.*;
import org.openxava.annotations.*;
/**
*
* @author Javier Paniza
*/
@Entity
@View(members=
"number;" +
"data {" +
" familyNumber;" +
" family;" +
" description;" +
" remarks" +... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/transform/ChangePasswordRequestMarshaller.java | 2157 | /*
* 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 |
revdaalex/learn_java | chapter3/LSP/ChapterI/src/main/java/ru/revdaalex/lsp/chapterI/storage/Warehouse.java | 900 | package ru.revdaalex.lsp.chapterI.storage;
import ru.revdaalex.lsp.chapterI.food.Food;
import ru.revdaalex.lsp.chapterI.interfaces.Storage;
import java.util.ArrayList;
/**
* Warehouse class.
* Created by revdaalex on 04.07.2016.
*/
public class Warehouse implements Storage {
/**
* ArrayList Warehouse.
... | apache-2.0 |
DanielPitts/net.virtualinfinity.telnet | src/main/java/net/virtualinfinity/telnet/Session.java | 820 | package net.virtualinfinity.telnet;
import net.virtualinfinity.nio.EventLoop;
import java.io.Closeable;
/**
* Provides access to the public aspects of the telnet session.
*
* @see SessionListener
* @see ClientStarter#connect(EventLoop, String, SessionListener)
* @see ClientStarter#connect(EventLoop, String, int... | apache-2.0 |
CSCSI/Triana | triana-gui/src/main/java/org/trianacode/gui/windows/ComboDialog.java | 6839 | /*
* The University of Wales, Cardiff Triana Project Software License (Based
* on the Apache Software License Version 1.1)
*
* Copyright (c) 2007 University of Wales, Cardiff. All rights reserved.
*
* Redistribution and use of the software in source and binary forms, with
* or without modification, are permitted... | apache-2.0 |
tonit/karafonexam2 | jaas/config/src/main/java/org/apache/karaf/jaas/config/impl/OsgiKeystoreManager.java | 4137 | /*
* 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 |
GwtMaterialDesign/gwt-material-table | src/main/java/gwt/material/design/client/data/events/RowsVisibleHandler.java | 860 | /*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2017 GwtMaterialDesign
* %%
* 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 |
joewalnes/idea-community | plugins/copyright/src/com/maddyhome/idea/copyright/pattern/VelocityHelper.java | 4033 | /*
* Copyright 2000-2009 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... | apache-2.0 |
ederign/kie-wb-common | kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-commons/kie-wb-common-stunner-client-common/src/test/java/org/kie/workbench/common/stunner/core/client/session/command/impl/ExportToPngSessionCommandTest.java | 3183 | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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 |
apache/tapestry4 | framework/src/java/org/apache/tapestry/listener/ListenerMap.java | 1865 | // Copyright 2005 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | apache-2.0 |
alexander071/cf-java-client | cloudfoundry-client/src/test/java/org/cloudfoundry/client/v3/deployments/GetDeploymentTest.java | 1037 | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | apache-2.0 |
jjYBdx4IL/misc | ecs/src/main/java/org/apache/ecs/vxml/Link.java | 4470 | /*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provi... | apache-2.0 |
Kandru/ts3luna | src/main/java/eu/kandru/luna/util/LogHelper.java | 774 | package eu.kandru.luna.util;
import lombok.experimental.UtilityClass;
import javax.servlet.http.HttpServletRequest;
/**
* Helper class for logging output.
*
* @author jko
*/
@UtilityClass
public class LogHelper {
/**
* Formats a {@link HttpServletRequest} for logging by extracting the important informa... | apache-2.0 |
drtodolittle/rest-api | firebase-util/src/main/java/de/drtodolittle/firebase/impl/FirebaseTokenService.java | 1784 | /**
*
*/
package de.drtodolittle.firebase.impl;
import java.io.ByteArrayInputStream;
import java.io.FileInputStream;
import java.io.InputStream;
import com.google.firebase.FirebaseApp;
import com.google.firebase.FirebaseOptions;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseC... | apache-2.0 |
asmilk/ascloud | src/main/java/asmilk/ascloud/cloud/service/document/CloudantClientCreator.java | 1088 | package asmilk.ascloud.cloud.service.document;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.service.AbstractServiceConnectorCreator;
import org.springframework.cloud.service.ServiceConnectorConfig;
import com.cloudant.client.api.ClientBuilder;
import com.cloudant.c... | apache-2.0 |
oeg-upm/epnoi | storage/src/main/java/org/epnoi/storage/Config.java | 770 | package org.epnoi.storage;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourc... | apache-2.0 |
kerveros/Android-examples | app/src/main/java/com/neko/androidexamples/recycler_view/RecyclerViewActivity.java | 3893 | package com.neko.androidexamples.recycler_view;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
impo... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/metrics/internal/ServiceMetricTypeGuesser.java | 2121 | /*
* Copyright 2010-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 "lice... | apache-2.0 |
EsupPortail/esup-catapp-admin | src/main/java/org/esupportail/catapp/admin/domain/config/SmtpConfig.java | 2612 | package org.esupportail.catapp.admin.domain.config;
import org.esupportail.commons.mail.CachingEmailSmtpService;
import org.esupportail.commons.mail.SimpleSmtpService;
import org.esupportail.commons.mail.SmtpService;
import org.esupportail.commons.mail.model.SmtpServerData;
import org.springframework.beans.factory.ann... | apache-2.0 |
Qi4j/qi4j-sdk | extensions/entitystore-riak/src/main/java/org/apache/polygene/entitystore/riak/RiakEntityStoreMixin.java | 15601 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | apache-2.0 |
spidaman/ant-eclipse | src/prantl/ant/eclipse/ClassPathGenerator.java | 14121 | // Copyright 2005-2006 Ferdinand Prantl <prantl@users.sourceforge.net>
// Copyright 2001-2004 The Apache Software Foundation
// 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... | apache-2.0 |
visallo/visallo | web/client-api/src/main/java/org/visallo/web/clientapi/model/DirectoryEntity.java | 2694 | package org.visallo.web.clientapi.model;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import org.visallo.web.clientapi.VisalloClientApiException;
import java.util.Map;
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.P... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-ssmincidents/src/main/java/com/amazonaws/services/ssmincidents/model/transform/UpdateIncidentRecordRequestMarshaller.java | 4460 | /*
* 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 |
google/schemaorg-java | src/main/java/com/google/schemaorg/core/MotorcycleDealer.java | 23054 | /*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | apache-2.0 |
x-meta/xworker | xworker_swt/src/main/java/xworker/swt/reacts/DataReactorCreator.java | 397 | package xworker.swt.reacts;
import org.xmeta.ActionContext;
/**
* 创建DataReactor的接口。
*
* @author zyx
*
*/
public interface DataReactorCreator {
/**
* 创建DataReactor。
*
* @param control
* @param action 动作
* @param actionContext
* @return
*/
public DataReactor create(Object cont... | apache-2.0 |
WANdisco/gerrit | java/com/google/gerrit/server/restapi/change/Rebuild.java | 4432 | // Copyright (C) 2016 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 applicable ... | apache-2.0 |
john-mcdonagh/android_app | PracticeApp/app/src/test/java/com/example/john/practiceapp/ExampleUnitTest.java | 406 | package com.example.john.practiceapp;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
publi... | apache-2.0 |
oeg-upm/epnoi | harvester/src/test/java/org/epnoi/harvester/routes/oaipmh/OAIPMHTest.java | 1916 | package org.epnoi.harvester.routes.oaipmh;
import es.cbadenes.lab.test.IntegrationTest;
import org.epnoi.harvester.Config;
import org.epnoi.model.modules.EventBus;
import org.epnoi.storage.UDM;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.slf4j.L... | apache-2.0 |
sohutv/cachecloud | cachecloud-client/cachecloud-jedis/src/main/java/redis/clients/jedis/valueobject/RangeRankVO.java | 446 | package redis.clients.jedis.valueobject;
/**
*
* @author leifu
* @Date 2017年2月14日
* @Time 下午4:58:52
*/
public class RangeRankVO {
private final long min;
private final long max;
public RangeRankVO(long min, long max) {
this.min = min;
this.max = max;
}
p... | apache-2.0 |
android-art-intel/marshmallow | art-extension/opttests/src/OptimizationTests/NonTemporalMove/MultipleArraysStoresLong_004/Main.java | 1581 | /*
* Copyright (C) 2015 Intel 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | apache-2.0 |
blademainer/common_utils | common_helper/src/main/java/com/xiongyingqi/util/xml/SimpleNamespaceContext.java | 5171 | /*
* Copyright 2002-2012 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... | apache-2.0 |
jankronquist/AirportWeather | src/main/java/com/jayway/xml/CDataTransformer.java | 857 | /*
* Copyright 2011 Jan Kronquist.
*
* 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 |
WasiqB/coteafs-appium | src/main/java/com/github/wasiqb/coteafs/appium/config/device/android/AdbSetting.java | 874 | /*
*
* Copyright (c) 2020, Wasiq Bhamla.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | apache-2.0 |
weiwenqiang/GitHub | MVP/RxJava2ToMVP/T-MVP-master/apt/src/main/java/com/app/apt/processor/ApiFactoryProcessor.java | 6331 | package com.app.apt.processor;
import com.app.annotation.apt.ApiFactory;
import com.app.apt.AnnotationProcessor;
import com.app.apt.inter.IProcessor;
import com.app.apt.util.Utils;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.CodeBlock;
import com.squareup.javapoet.JavaFile;
import com.squareup... | apache-2.0 |
wjwin/coolweather | app/src/main/java/com/example/coolweather/util/Utility.java | 3289 | package com.example.coolweather.util;
import android.text.TextUtils;
import com.example.coolweather.db.City;
import com.example.coolweather.db.County;
import com.example.coolweather.db.Province;
import com.example.coolweather.gson.Weather;
import com.google.gson.Gson;
import org.json.JSONArray;
import org.json.JSONE... | apache-2.0 |
Kalinovcic/LD32 | src/net/kalinovcic/ld32/Enemy.java | 3462 | package net.kalinovcic.ld32;
import static org.lwjgl.opengl.GL11.*;
public class Enemy extends Sprite
{
public GameStage game;
public char origc;
public String word;
public float speed;
public float vely;
public boolean removeMe = false;
public boolean alive = true;
public int he... | apache-2.0 |
wigforss/Ka-Commons-Reflection | src/test/java/org/kasource/commons/reflection/collection/PackageMapTest.java | 676 | package org.kasource.commons.reflection.collection;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import org.junit.Test;
public class PackageMapTest {
@Tes... | apache-2.0 |
aifraenkel/caltec-tools | SonarQube/Plugins/sonar-jira-master/src/test/java/org/sonar/plugins/jira/metrics/JiraWidgetTest.java | 1382 | /*
* Sonar, open source software quality management tool.
* Copyright (C) 2009 SonarSource
* mailto:contact AT sonarsource DOT com
*
* Sonar is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either... | apache-2.0 |
rwth-acis/REST-OCD-Services | rest_ocd_services/src/main/java/i5/las2peer/services/ocd/centrality/utils/CentralityAlgorithmFactory.java | 1036 | package i5.las2peer.services.ocd.centrality.utils;
import java.util.Map;
import i5.las2peer.services.ocd.centrality.data.CentralityMeasureType;
import i5.las2peer.services.ocd.utils.ConditionalParameterizableFactory;
public class CentralityAlgorithmFactory implements ConditionalParameterizableFactory<CentralityAlgor... | apache-2.0 |