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 2014 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 appl... | ulfjack/bazel | src/main/java/com/google/devtools/build/lib/analysis/actions/ParameterFileWriteAction.java | Java | apache-2.0 | 7,318 |
package fr.ourten.teabeans.listener.recorder;
import fr.ourten.teabeans.property.SetProperty;
import org.junit.jupiter.api.Test;
import java.util.HashSet;
import static java.util.Arrays.asList;
import static java.util.Collections.singleton;
import static org.assertj.core.api.Assertions.assertThat;
public class SetV... | Ourten/TeaBeans | src/test/java/fr/ourten/teabeans/listener/recorder/SetValueChangeRecorderTest.java | Java | apache-2.0 | 1,750 |
package com.al;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso;
@SpringBootApplication
public class SpringcloudM4SecureuiApplication {
public static void main... | fredlo2010/pluralsight | java-microservices-with-spring-could-developing-services/springcloud-m4-secureui/src/main/java/com/al/SpringcloudM4SecureuiApplication.java | Java | apache-2.0 | 414 |
package cop5555sp15;
/** This class illustrates calling execute twice after modifying
* int, boolean, string, variables in the codelet, and print
* different element in a list
* The expected output is
first time
10
1
sencond time
20
2
*/
public class Example1 {
public static void main(String[] args) throws Except... | RayZ-O/small-compiler | src/main/java/cop5555sp15/Example1.java | Java | apache-2.0 | 1,137 |
package uk.co.epii.stephenson.parser;
import uk.co.epii.stephenson.cif.Timetable;
import uk.co.epii.stephenson.cif.Train;
/**
* User: James Robinson
* Date: 22/08/2014
* Time: 23:34
*/
interface LoadableTimetable extends Timetable {
void addTrain(Train train);
}
| etothepii/stephenson | src/main/java/uk/co/epii/stephenson/parser/LoadableTimetable.java | Java | apache-2.0 | 273 |
package com.google.api.ads.adwords.jaxws.v201601.cm;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
*
* Base type ... | gawkermedia/googleads-java-lib | modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201601/cm/CriterionParameter.java | Java | apache-2.0 | 1,789 |
/* First created by JCasGen Tue May 29 09:42:00 CEST 2012 */
package it.celi.uima.type;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;
import org.apache.uima.jcas.tcas.Annotation;
/**
* Updated by JCasGen Tue May 29 09:42:00 CEST 2012
* XM... | celi-uim/uima-drools | src/main/java/it/celi/uima/type/Classification.java | Java | apache-2.0 | 2,419 |
package com.yirui.paginator;
import org.apache.ibatis.session.RowBounds;
import java.util.ArrayList;
import java.util.List;
/**
* Mybatis - 分页对象
*
* @author YorkChow<york.chow@actionsky.com>
* @since 2014/11/8
* Time: 22:37
*/
public class Page<E> extends ArrayList<E> {
private static final long serialVer... | yorkchow/yirui | yirui-paginator/src/main/java/com/yirui/paginator/Page.java | Java | apache-2.0 | 3,779 |
/*
* 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... | aws/aws-sdk-java | aws-java-sdk-wafv2/src/main/java/com/amazonaws/services/wafv2/model/transform/CreateRegexPatternSetRequestProtocolMarshaller.java | Java | apache-2.0 | 2,770 |
/*
* Copyright 2010-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 "l... | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBTransactionLoadExpression.java | Java | apache-2.0 | 3,221 |
package com.ldlood.repository;
import com.ldlood.dataobject.ProductCategory;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
/**
* Created by Ldlood on 2017/7/20.
*/
public interface ProductCategoryRepository extends JpaRepository<ProductCategory, Integer> {
/**
* 通过... | ldlood/SpringBoot_Wechat_Sell | src/main/java/com/ldlood/repository/ProductCategoryRepository.java | Java | apache-2.0 | 482 |
package sdk.chat.core.interfaces;
import android.app.Activity;
/**
* Created by ben on 10/11/17.
*/
public interface ChatOptionsHandler {
boolean show(Activity activity);
boolean hide();
void setDelegate(ChatOptionsDelegate delegate);
ChatOptionsDelegate getDelegate();
}
| chat-sdk/chat-sdk-android | chat-sdk-core/src/main/java/sdk/chat/core/interfaces/ChatOptionsHandler.java | Java | apache-2.0 | 295 |
/*
* Copyright 2017 Long Term Software 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... | miranda-messaging/miranda | src/main/java/com/ltsllc/miranda/user/states/UsersFileStartingState.java | Java | apache-2.0 | 1,284 |
package org.apache.shiro.session.mgt.scheduler;
import org.apache.shiro.session.mgt.DefaultSessionManager;
import org.apache.shiro.session.mgt.SessionValidationScheduler;
import org.apache.shiro.session.mgt.ValidatingSessionManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.sc... | yorkchow/doshou-web | src/main/java/org/apache/shiro/session/mgt/scheduler/SpringSessionValidationScheduler.java | Java | apache-2.0 | 5,153 |
/*
* 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... | dagnir/aws-sdk-java | aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/transform/SubmitContainerStateChangeResultJsonUnmarshaller.java | Java | apache-2.0 | 2,972 |
package com.nukeguys.fork.ui.widget;
import android.content.Context;
import android.graphics.ColorMatrix;
import android.graphics.ColorMatrixColorFilter;
import android.util.AttributeSet;
import android.view.MotionEvent;
/**
* @ClassName ForkItemImageView
* @Date 2014. 1. 11.
* @Comment FixedAspectRatioImag... | nukeguys/Fork | src/com/nukeguys/fork/ui/widget/ForkItemImageView.java | Java | apache-2.0 | 1,189 |
/*
* Copyright 2010-2021 James Pether Sörling
*
* 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... | Hack23/cia | citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/politician/pagemode/PoliticianRankingOverviewPageModContentFactoryImpl.java | Java | apache-2.0 | 4,033 |
/*
* Copyright (C) 2017-2022 Sebastiano Vigna
*
* 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... | vigna/fastutil | test/it/unimi/dsi/fastutil/objects/ObjectListTest.java | Java | apache-2.0 | 1,742 |
// Copyright 2018 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 appl... | werkt/bazel | src/main/java/com/google/devtools/build/lib/starlarkbuildapi/apple/ApplePlatformApi.java | Java | apache-2.0 | 4,095 |
/*
* Copyright (C) 2015 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... | xorware/android_frameworks_base | packages/DocumentsUI/tests/src/com/android/documentsui/bots/KeyboardBot.java | Java | apache-2.0 | 1,560 |
package net.johnewart.kensho.core;
import net.johnewart.shuzai.TimeSeries;
import org.joda.time.DateTime;
import javax.xml.bind.annotation.adapters.HexBinaryAdapter;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmExcept... | johnewart/kensho | src/main/java/net/johnewart/kensho/core/Query.java | Java | apache-2.0 | 2,273 |
package ch.shaktipat.exwrapper.java.io;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import ch.shaktipat.exwrapper.java.lang.ClassNotFoundExceptionWrapper;
public class ObjectInputStreamWrapper
{
public static ObjectInputStream __new( InputStream os )
{
try
{
ret... | liquid-mind/warp | src/exwrapper/ch/shaktipat/exwrapper/java/io/ObjectInputStreamWrapper.java | Java | apache-2.0 | 706 |
package org.apache.helix.monitoring.mbeans;
/*
* 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 ... | kishoreg/helix-actors | helix-core/src/main/java/org/apache/helix/monitoring/mbeans/MessageQueueMonitorMBean.java | Java | apache-2.0 | 1,193 |
package ch21concurrency;
/**
* Simplifying mutexes with the synchronized keyword. <br>
* {RunByHand}
*/
public class D27_SynchronizedEvenGenerator extends D24_IntGenerator {
private int currentEvenValue = 0;
public synchronized int next() {
++currentEvenValue;
Thread.yield(); // Cause failure faster
++curr... | deguo/tij4 | src/main/java/ch21concurrency/D27_SynchronizedEvenGenerator.java | Java | apache-2.0 | 472 |
package com.enpoints;
import com.google.api.server.spi.config.Api;
import com.google.api.server.spi.config.ApiMethod;
@Api(name = "example")
public class HelloWorldEndPoint {
@ApiMethod(name = "holaMundo")
public Container getThing() {
Container c = new Container();
c.Text = "Este es un testo desde mi backend!"... | Porras25/DemoA | enpoints-AppEngine/src/com/enpoints/HelloWorldEndPoint.java | Java | apache-2.0 | 393 |
/*
Copyright 2006 Jerry Huxtable
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | sksamuel/scrimage | scrimage-filters/src/main/java/thirdparty/jhlabs/image/MarbleFilter.java | Java | apache-2.0 | 3,261 |
package com.neustar.ultraservice.schema.v01;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for InactiveTimeOutPreference complex type.
*
* <p>The follo... | ultradns/ultra-java-api | src/main/java/com/neustar/ultraservice/schema/v01/InactiveTimeOutPreference.java | Java | apache-2.0 | 1,519 |
/*
* Copyright 2014 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | apiman/apiman | manager/api/rest-impl/src/main/java/io/apiman/manager/api/rest/impl/GatewayResourceImpl.java | Java | apache-2.0 | 12,812 |
package io.quarkus.runtime.annotations;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation... | quarkusio/quarkus | core/runtime/src/main/java/io/quarkus/runtime/annotations/ConvertWith.java | Java | apache-2.0 | 789 |
/**
* Copyright 2015 Marcin Polak
* <p/>
* 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
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law ... | polok/localify | library/src/main/java/com/github/polok/localify/utils/RxUtils.java | Java | apache-2.0 | 2,822 |
// Copyright 2000-2017 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.codeInspection.reflectiveAccess;
import com.intellij.codeInsight.daemon.JavaErrorMessages;
import com.intellij.codeInsight.lookup.*;
import com.intellij.code... | sabi0/intellij-community | java/java-impl/src/com/intellij/codeInspection/reflectiveAccess/JavaLangInvokeHandleSignatureInspection.java | Java | apache-2.0 | 25,204 |
/*******************************************************************************
*
* Copyright (C) 2015-2022 the BBoxDB 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 Licens... | jnidzwetzki/bboxdb | bboxdb-server/src/main/java/org/bboxdb/network/client/response/TupleHandler.java | Java | apache-2.0 | 2,576 |
package hu.akarnokd.reactive.observables;
public final class BooleanDisposable implements IDisposable {
boolean disposed;
public boolean isDisposed() {
return disposed;
}
@Override
public void dispose() {
disposed = true;
}
}
| akarnokd/akarnokd-misc | src/main/java/hu/akarnokd/reactive/observables/BooleanDisposable.java | Java | apache-2.0 | 270 |
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* Project Info: http://plantuml.com
*
* If you like this project or if you find it useful, you can support us at:
* ... | talsma-ict/umldoclet | src/plantuml-asl/src/gen/lib/dotgen/compound__c.java | Java | apache-2.0 | 3,190 |
package com.github.holmistr.esannotations.commons;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* Helper class for determining primitive classes.
*
* @author Jiří Holuša
*/
public class TypeChecker {
private static final Set<Class<?>> WRAPPER_TYPES = getWrapperTypes();
publ... | Holmistr/elasticsearch-annotations | src/main/java/com/github/holmistr/esannotations/commons/TypeChecker.java | Java | apache-2.0 | 2,567 |
/*
* Copyright (C) 2013 ENTERTAILION 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 ... | entertailion/Slideshow-for-GTV | src/com/entertailion/android/slideshow/widget/CustomAbsSpinner.java | Java | apache-2.0 | 13,212 |
package marvel.erickmaeda.com.marvelcharacters.system.mvp;
public interface View {
}
| ErickMaeda/Marvel-Characters | app/src/main/java/marvel/erickmaeda/com/marvelcharacters/system/mvp/View.java | Java | apache-2.0 | 86 |
package jocket.impl;
import java.nio.ByteBuffer;
import java.nio.MappedByteBuffer;
import jocket.futex.Futex;
import jocket.futex.UnsafeUtil;
import jocket.net.JocketFile;
import sun.misc.Unsafe;
public final class UnsafeAccessor implements ByteBufferAccessor {
private static final Unsafe unsafe = UnsafeUtil.unsa... | pcdv/jocket | src/main/java/jocket/impl/UnsafeAccessor.java | Java | apache-2.0 | 822 |
package com.sywyg.string;
/**
* 判断字符串是否回文,例如,"sywys"是回文。
* @author lenovo
* 思路:假设字符串长度为n,判断第i个字符与第n-i-1个字符是否相等(i从0开始),若有一个不想等就不是回文。
*/
public class PalindromeString {
/**
* 测试
*/
public static void main(String[] args) {
PalindromeString ps = new PalindromeString();
String str = "sywwys";
System.out.pri... | sywyg/dataStructure | src/com/sywyg/string/PalindromeString.java | Java | apache-2.0 | 935 |
/**
* 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... | coderplay/redpoll | core/src/java/redpoll/text/TfIdfWritable.java | Java | apache-2.0 | 1,693 |
package main.model;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.io.Serializable;
/**
* Created by cipriach on 07.12.2015.
*/
@NoArgsConstructor
@Getter
@Setter
public class User implements Serializable {
private String userName;
private String password;
}
| HurmuzacheCiprian/SMF_B | smf-capi/src/main/java/main/model/User.java | Java | apache-2.0 | 314 |
package com.wzg.lenovo.wzg_weather;
import android.annotation.TargetApi;
//import android.app.Fragment;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import ... | ctzlwzg/wzg_weather | app/src/main/java/com/wzg/lenovo/wzg_weather/ChooseAreaFragent.java | Java | apache-2.0 | 9,550 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, 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/builtinBeans/ee/Produced.java | Java | apache-2.0 | 1,363 |
/*
* Copyright (c) 2001-2007 Sun Microsystems, Inc. All rights reserved.
*
* The Sun Project JXTA(TM) Software License
*
* 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 m... | johnjianfang/jxse | src/main/java/net/jxta/impl/util/ternary/TernarySearchTreeMatchListener.java | Java | apache-2.0 | 3,407 |
package ar.com.ada3d.pickers;
import java.util.ArrayList;
import java.util.List;
import ar.com.ada3d.controller.ProveedorBean;
import com.ibm.xsp.extlib.component.picker.data.IPickerEntry;
import com.ibm.xsp.extlib.component.picker.data.IPickerOptions;
import com.ibm.xsp.extlib.component.picker.data.IPickerResult;
imp... | applinet/ar.com.ada3d.desa | L8669/Code/Java/ar/com/ada3d/pickers/SimplePicker.java | Java | apache-2.0 | 1,682 |
package cc.ymee.jbbs.module.security.pojo;
import java.util.ArrayList;
import java.util.List;
public class SecurityAuthExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
protected int limitStart = -1;
protected int limitEnd = -1;
p... | anjzhen/jbbs | src/main/java/cc/ymee/jbbs/module/security/pojo/SecurityAuthExample.java | Java | apache-2.0 | 18,401 |
/**
* DNet eBusiness Suite
* Copyright: 2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package seava.j4e.api.model;
/**
* Interface to be implemented by all models(entities and view-objects) which
* have an <code>id</code> primary key.
*
* @author amathe
*
*/
public... | seava/seava.lib.j4e | seava.j4e.api/src/main/java/seava/j4e/api/model/IModelWithId.java | Java | apache-2.0 | 398 |
/*
* The Gemma project
*
* Copyright (c) 2007 Columbia University
*
* 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 ... | ppavlidis/Gemma | gemma-core/src/main/java/ubic/gemma/core/analysis/expression/coexpression/links/LinkAnalysisConfig.java | Java | apache-2.0 | 11,992 |
/*
* Copyright 2000-2017 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... | signed/intellij-community | platform/editor-ui-ex/src/com/intellij/openapi/editor/colors/impl/EditorFontCacheImpl.java | Java | apache-2.0 | 3,833 |
/*******************************************************************************
* Copyright 2018 572682
*
* 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/... | usdot-jpo-ode/jpo-ode | jpo-ode-svcs/src/test/java/us/dot/its/jpo/ode/services/asn1/Asn1DecodedDataRouterTest.java | Java | apache-2.0 | 10,761 |
package fr.inria.oak.effisto.IDs;
import fr.inria.oak.effisto.Query.TreePattern.QueryTreePattern.*;
/**
* Factory class that creates and returns the ID scheme specified.
*
* @author Ioana MANOLESCU
*/
public class IDSchemeAssignator{
/**
* Returns the kind of ID scheme that the node passed as a parameter
*... | YifanLi/Effisto | src/fr/inria/oak/effisto/IDs/IDSchemeAssignator.java | Java | apache-2.0 | 1,625 |
package ru.r2cloud.jradio.ao73;
import java.util.HashMap;
import java.util.Map;
public enum ResetCause {
POWER_ON_RESET(0), EXTERNAL_RESET(1), BROWN_OUT_RESET(2), WDT_RESET(3), JTAG_RESET(4), OTHER_REASON(5);
private final int code;
private static final Map<Integer, ResetCause> typeByCode = new HashMap<>();
st... | dernasherbrezon/jradio | src/main/java/ru/r2cloud/jradio/ao73/ResetCause.java | Java | apache-2.0 | 606 |
/*
* This file is part of SQL Workbench/J, http://www.sql-workbench.net
*
* Copyright 2002-2015, Thomas Kellerer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at.
*
* http://www.a... | Taller/sqlworkbench-plus | src/workbench/sql/RemoveEmptyResultsAnnotation.java | Java | apache-2.0 | 1,017 |
/*
* 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 fi... | markharwood/elasticsearch | core/src/main/java/org/elasticsearch/search/aggregations/bucket/filters/FiltersParser.java | Java | apache-2.0 | 5,788 |
package com.ximalaya.sdk4j;
import java.util.List;
import com.ximalaya.sdk4j.http.HttpParameter;
import com.ximalaya.sdk4j.model.DTOValidateUtil;
import com.ximalaya.sdk4j.model.Paging;
import com.ximalaya.sdk4j.model.XimalayaException;
import com.ximalaya.sdk4j.model.dto.album.Album;
import com.ximalaya.sdk4j.model.... | kefr/sdk4j | src/main/java/com/ximalaya/sdk4j/Ranks.java | Java | apache-2.0 | 3,441 |
/**
* Copyright 2011 The Open Source Research Group,
* University of Erlangen-Nürnberg
*
* 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/lic... | evilmucedin/sweble-wikitext | swc-example-serialization/src/main/java/org/sweble/wikitext/example/StripAstVisitor.java | Java | apache-2.0 | 1,697 |
/*
* Copyright 2014-2016 See AUTHORS 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | piotr-j/VisEditor | editor/src/main/java/com/kotcrab/vis/editor/module/scene/system/DirtySetterSystem.java | Java | apache-2.0 | 1,677 |
package com.bluemedora.exceptions;
public class ExitException extends Exception
{
private final String exitMessage;
public ExitException(String exitMessage)
{
this.exitMessage = exitMessage;
}
public String getExitMessage()
{
return exitMessage;
}
}
| MarkArbogast/vRealize-Resource-Deleter | src/com/bluemedora/exceptions/ExitException.java | Java | apache-2.0 | 297 |
package com.lerx.sys.service;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.interceptor.ServletRequestAware;
import com.lerx.style.bbs.dao.IBbsStyleDao;
import com.lerx.style.bbs.vo.BbsStyle;
import com.lerx.style.qa.dao.IQaStyleDao;
import com.lerx.style.qa.vo.QaSty... | chenxyzy/cms | src/com/lerx/sys/service/TableMetaDataAction.java | Java | apache-2.0 | 6,027 |
/*******************************************************************************
* Copyright 2013-2014 Gengyu Shi
*
* 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.apa... | shigengyu/Hyperion | src/main/java/com/shigengyu/hyperion/services/WorkflowStateTransitor.java | Java | apache-2.0 | 1,055 |
package cn.edu.xmu.gxj.matchp.model;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import javax.imageio.ImageIO;
public class Pic {
private int height;
private int width;
public int getHeight() {
return height;
}
public void setHei... | cdmaok/matchp | matchp-core/src/main/java/cn/edu/xmu/gxj/matchp/model/Pic.java | Java | apache-2.0 | 671 |
/*
* Copyright 2000-2011 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-xpath | xpath-lang/src/test/java/org/intellij/lang/xpath/xslt/Xslt2CompletionTest.java | Java | apache-2.0 | 1,495 |
/*
* 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 ... | radicalbit/ambari | ambari-server/src/main/java/org/apache/ambari/server/agent/rest/AgentResource.java | Java | apache-2.0 | 6,366 |
/*
* Copyright 2015 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 applicable l... | agilemobiledev/spring-cloud-dataflow | spring-cloud-dataflow-core/src/main/java/org/springframework/cloud/dataflow/core/ModuleDefinition.java | Java | apache-2.0 | 6,904 |
package org.schema.api.model.thing.organization.localBusiness.automotiveBusiness;
public class AutoWash extends AutomotiveBusiness
{
private String currenciesAccepted;
private String openingHours;
private String paymentAccepted;
private String priceRange;
public String getCurrenciesAccepted()
{
return currenc... | omindra/schema_org_java_api | core_with_extensions/src/main/java/org/schema/api/model/thing/organization/localBusiness/automotiveBusiness/AutoWash.java | Java | apache-2.0 | 928 |
package com.buschmais.xo.inject.test;
import com.buschmais.xo.api.XOManager;
import com.buschmais.xo.api.XOManagerFactory;
import com.buschmais.xo.inject.GuiceModule;
import com.buschmais.xo.inject.test.composite.A;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.junit.After;
import org.j... | SMB-TEC/extended-objects | inject/src/test/java/com/buschmais/xo/inject/test/GuiceInjectionTest.java | Java | apache-2.0 | 1,859 |
/*
* 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 ... | mkjoerg/nifi-prometheus-reporter | nifi-prometheus-reporting-task/src/test/java/org/apache/nifi/reporting/prometheus/metrics/TestMetricsService.java | Java | apache-2.0 | 6,120 |
package org.pitest.coverage.execute;
import com.example.coverage.execute.samples.exceptions.CoveredBeforeExceptionTestee;
import com.example.coverage.execute.samples.exceptions.TestThrowsExceptionFromLargeMethodTestee;
import com.example.coverage.execute.samples.exceptions.TestThrowsExceptionInFinallyBlock;
import com... | hcoles/pitest | pitest-entry/src/test/java/org/pitest/coverage/execute/CoverageProcessSystemTest.java | Java | apache-2.0 | 16,368 |
package com.weipweather.android.db;
import org.litepal.crud.DataSupport;
/**
* Created by Administrator on 2017/3/28 0028.
* 记录全国县城
*/
public class County extends DataSupport {
private int id;
private String countyName;
private String weatherId;
private int cityId;
public int getId() {
... | zhangtaopp/weipweather | app/src/main/java/com/weipweather/android/db/County.java | Java | apache-2.0 | 876 |
/******************************************************************************
* Confidential Proprietary *
* (c) Copyright Haifeng Li 2011, All Rights Reserved *
******************************************************************************/... | wavelets/smile | SmileMath/src/smile/math/distance/package-info.java | Java | apache-2.0 | 803 |
/*
* 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... | aws/aws-sdk-java | aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisfirehose/model/AmazonopensearchserviceDestinationDescription.java | Java | apache-2.0 | 19,424 |
package com.sequenceiq.redbeams.exception;
import java.util.Objects;
public class RedbeamsException extends RuntimeException {
public RedbeamsException(String message) {
super(message);
}
public RedbeamsException(String message, Throwable cause) {
super(message, cause);
}
@Overr... | hortonworks/cloudbreak | redbeams/src/main/java/com/sequenceiq/redbeams/exception/RedbeamsException.java | Java | apache-2.0 | 674 |
package de.esri.geotrigger.core;
import org.apache.http.Header;
import org.apache.http.StatusLine;
import org.apache.http.message.BasicHeader;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.json.JSONObject;
public class GeotriggerApiClient {
private static Logger log =... | EsriDE/PTM-OSMGeotrigger | Admin/Core/src/de/esri/geotrigger/core/GeotriggerApiClient.java | Java | apache-2.0 | 3,077 |
package org.adligo.fabricate4eclipse_tests;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import org.adligo.tests4j.models.shared.coverage.I_PackageCoverageBrief;
import org.adligo.tests4j.models.shared.metadata.I_TrialMetadata;
import org.adligo.tests4j.models... | adligo/fabricate4eclipse_tests.adligo.org | src/org/adligo/fabricate4eclipse_tests/Fab4EclipseMetaTrial.java | Java | apache-2.0 | 5,270 |
/*
* 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 ... | helifu/kudu | java/kudu-client/src/main/java/org/apache/kudu/client/AuthzTokenCache.java | Java | apache-2.0 | 9,272 |
//
// Copyright (c)1998-2011 Pearson Education, Inc. or its affiliate(s).
// All rights reserved.
//
package openadk.generator;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.Comparator;
public abstract class Generator {
/** The merged DB used to generate classes */
p... | open-adk/OpenADK-java | adk-generator/src/main/java/openadk/generator/Generator.java | Java | apache-2.0 | 1,868 |
/*
Copyright 2014-2016 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 agreed to in writing, s... | multi-os-engine/moe-core | moe.apple/moe.platform.ios/src/main/java/apple/uikit/protocol/UIScrollViewDelegate.java | Java | apache-2.0 | 5,809 |
package com.mod.companyB0.controller;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
import com.model.Company;
public class CompanyB0Validator implements Validator{
@Override
public boolean supports(C... | mingxin6/incu | inc2_tw2/src/com/mod/companyB0/controller/CompanyB0Validator.java | Java | apache-2.0 | 2,057 |
package org.nyjsl.utils;
import java.util.Random;
public class RandomUtils {
public static final String NUMBERS_AND_LETTERS = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static final String NUMBERS = "0123456789";
public static final String LETTERS = "... | nyjsl/Nyjsl | javaUtils/src/main/java/org/nyjsl/utils/RandomUtils.java | Java | apache-2.0 | 6,425 |
package com.graphhopper.routing.profiles;
import com.graphhopper.reader.ReaderWay;
import com.graphhopper.routing.util.CarFlagEncoder;
import com.graphhopper.routing.util.EncodingManager;
import com.graphhopper.storage.IntsRef;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.juni... | komoot/graphhopper | core/src/test/java/com/graphhopper/routing/profiles/DecimalEncodedValueTest.java | Java | apache-2.0 | 2,017 |
/*
* Copyright 2012-present Facebook, 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... | LegNeato/buck | src/com/facebook/buck/cli/BuildCommand.java | Java | apache-2.0 | 61,555 |
/*
* Copyright (C) 2011 The Android Open Source Project
* Copyright (C) 2015 Yaroslav Mytkalyk
*
* 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/... | Doctoror/GifImageLoader | library/src/main/java/com/doctoror/gifimageloader/GifImageLoader.java | Java | apache-2.0 | 18,074 |
package io.quarkus.it.reactive;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import org.eclipse.microprofile.reactive.streams.operators.ReactiveStreams;
import io.smallrye.mutiny.Multi;
@Path("/reactive")
public class ReactiveStreamOpsResource {
@GET
public String foo() {
return "hello";
}
... | quarkusio/quarkus | integration-tests/main/src/main/java/io/quarkus/it/reactive/ReactiveStreamOpsResource.java | Java | apache-2.0 | 985 |
/*
* Copyright 2009 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | duanemat/androidApp | QRCode/com/google/zxing/integration/android/IntentIntegrator.java | Java | apache-2.0 | 15,034 |
package org.sitoolkit.ad.archetype.javaee7min;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
@Named
@RequestScoped
public class MyModel {
@PersistenceContext(unitName = "javaee7-web-min-pu")
priva... | sitoolkit/sit-ad-archetype-javaee7-web | javaee7-web-min/src/main/java/org/sitoolkit/ad/archetype/javaee7min/MyModel.java | Java | apache-2.0 | 474 |
package com.silverforge.elasticsearchrawclient.queryDSL.operators;
public enum TimeZoneOperator {
UTC("+00:00"),
UTC1("+01:00"),
UTC2("+02:00"),
UTC3("+03:00"),
UTC4("+04:00"),
UTC5("+05:00"),
UTC6("+06:00"),
UTC7("+07:00"),
UTC8("+08:00"),
UTC9("+09:00"),
UTC10("+10:00"),
... | silverforge/ElasticRawClient | elasticsearchrawclient/src/main/java/com/silverforge/elasticsearchrawclient/queryDSL/operators/TimeZoneOperator.java | Java | apache-2.0 | 772 |
/* */ package com.hundsun.network.gates.fengshan.biz.domain.user;
/* */
/* */ public class UserLevel
/* */ {
/* */ private Long id;
/* */ private String userAccount;
/* */ private String memberLevel;
/* */ private String imgName;
/* */ private String levelName;
/* */ ... | hnccfr/ccfrweb | usercenter/src/com/hundsun/network/gates/fengshan/biz/domain/user/UserLevel.java | Java | apache-2.0 | 2,001 |
/*
* 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... | lessthanoptimal/BoofCV | main/boofcv-recognition/src/test/java/boofcv/alg/fiducial/calib/ecocheck/TestECoCheckCodec.java | Java | apache-2.0 | 5,614 |
package uk.ac.ncl.openlab.intake24.client.api.auth;
public interface AuthTokenUI {
void onSigninAttemptFailed();
void onAuthenticationServiceError();
}
| digitalinteraction/intake24-survey-frontend | SurveyClient/src/main/java/uk/ac/ncl/openlab/intake24/client/api/auth/AuthTokenUI.java | Java | apache-2.0 | 161 |
package com.htc.dotbreaker;
import android.app.ActionBar;
import android.app.Activity;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.os.Bundle;
import android.util.Ty... | HTCdev/HtcDotBreaker | app/src/main/java/com/htc/dotbreaker/GameStats.java | Java | apache-2.0 | 9,367 |
/*
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | spring-cloud/spring-cloud-cloudfoundry-service-broker | spring-cloud-open-service-broker-core/src/main/java/org/springframework/cloud/servicebroker/model/binding/GetServiceInstanceAppBindingResponse.java | Java | apache-2.0 | 10,339 |
/*
* Copyright 2000-2017 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... | signed/intellij-community | platform/vcs-tests/testSrc/com/intellij/openapi/vcs/HackSearchTest.java | Java | apache-2.0 | 2,921 |
/*
* 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... | ebyhr/presto | core/trino-main/src/main/java/io/trino/operator/scalar/ConcatFunction.java | Java | apache-2.0 | 4,428 |
/**
*
*/
package gov.va.med.imaging.storage.cache.impl.eviction;
import gov.va.med.imaging.storage.cache.EvictionStrategy;
import gov.va.med.imaging.storage.cache.EvictionTimer;
/**
* @author VHAISWBECKEC
*
*/
public class LastAccessedWithStorageThresholdEvictionStrategy
extends LastAccessedEvictionStrategy
i... | VHAINNOVATIONS/Telepathology | Source/Java/CacheAPI/main/src/java/gov/va/med/imaging/storage/cache/impl/eviction/LastAccessedWithStorageThresholdEvictionStrategy.java | Java | apache-2.0 | 2,332 |
// containers/CountingMapData5.java
// TIJ4 Chapter Containers, Exercise 5, page 809
// Modify CountingMapData.java to fully implement the flyweight
// by adding a custom EntrySet class like the one in Countries.java.
// See also alternate solution CountingMapData5Alt.java.
package com.example.doun.chapter17containers;... | Doun2017/StudyJavaCode | Chapter17Containers/app/src/main/java/com/example/doun/chapter17containers/CountingMapData5.java | Java | apache-2.0 | 2,827 |
/**
* Opensec OVAL - https://nakamura5akihito.github.io/
* Copyright (C) 2015 Akihito Nakamura
*
* 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/... | nakamura5akihito/opensec-oval | src/main/java/io/opensec/oval/model/definitions/NotesType.java | Java | apache-2.0 | 3,007 |
/*
*
* Copyright 2015 Bubblegum Developers
*
* 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... | bubblegumdevs/traceratops | traceratops-app/src/main/java/com/bubblegum/traceratops/app/ui/utils/UIUtils.java | Java | apache-2.0 | 1,024 |
/*
* 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... | jentfoo/aws-sdk-java | aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/GetBulkDeploymentStatusRequest.java | Java | apache-2.0 | 3,632 |
/**
* Copyright 2009-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 a... | lukas-krecan/JsonUnit | tests/test-base/src/test/java/net/javacrumbs/jsonunit/test/all/AllJsonFluentAssertTest.java | Java | apache-2.0 | 1,630 |
/*
* Copyright 2016 Jin Kwon <jinahya_at_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 ... | jinahya/verbose-java-book | src/test/java/com/github/jinahya/verbose/percent/URLEncoderTest.java | Java | apache-2.0 | 1,229 |