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 (c) 2010-2018 Evolveum
*
* 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... | arnost-starosta/midpoint | model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/SynchronizeAccountResultHandler.java | Java | apache-2.0 | 8,507 |
package concurrent;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
/**
* author:gaoguangjin
* Description:
* Email:335424093@qq.com
* Date 2016/2/23 12:40
*/
public class AtomicTest {
int notsafeSum;
priva... | ggj2010/javabase | thread/src/main/java/concurrent/AtomicTest.java | Java | apache-2.0 | 2,069 |
/*
* Copyright 2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | leapframework/framework | data/orm/src/main/java/leap/orm/command/CreateEntityCommand.java | Java | apache-2.0 | 1,554 |
package com.niomongo.conversion.json;
/**
* Created with IntelliJ IDEA.
* User: Yevgen Bushuyev
* Date: 11/11/14
* Time: 2:43 PM
*/
public class ArrayBytes extends JsonThingBytes<JsonArray> {
private JsonArray jsonThing;
public ArrayBytes(int from, int to, JsonArray val) {
super(from, to);
this.json... | bushuyev/niomongo | src/main/java/com/niomongo/conversion/json/ArrayBytes.java | Java | apache-2.0 | 414 |
/*
* Copyright 2016-present Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | y-higuchi/onos | protocols/lisp/ctl/src/main/java/org/onosproject/lisp/ctl/impl/LispControllerImpl.java | Java | apache-2.0 | 13,382 |
package com.cvsintellect.linkedinimport.oauth;
import com.cvsintellect.linkedinimport.model.main.ConnectionInfo;
import com.cvsintellect.linkedinimport.model.main.JobSearchInfo;
import com.cvsintellect.linkedinimport.model.main.PersonProfile;
import com.cvsintellect.linkedinimport.parser.HRXMLParser;
import org.apache... | cvsintellect/linkedin-import | src/main/java/com/cvsintellect/linkedinimport/oauth/LinkedInPluginImpl.java | Java | apache-2.0 | 5,749 |
/**
*/
package lasser.sketch;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Image</b></em>'.
* <!-- end-user-doc -->
*
*
* @see lasser.sketch.SketchPackage#getImage()
* @model
* @generated
*/
public interface Image extends TextWidget {
} // Image
| osanchezUM/guizmo | src/lasser/sketch/Image.java | Java | apache-2.0 | 290 |
/*
* Copyright 2015 LINE Corporation
*
* LINE Corporation licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | brant-hwang/armeria | src/main/java/com/linecorp/armeria/server/PrefixPathMapping.java | Java | apache-2.0 | 1,728 |
/**
Copyright 2011 Martin Börjesson
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 ... | mborjesson/LG-Optimus-2X-Black-Notifications | src/com/martinborjesson/o2xtouchlednotifications/receivers/ScreenReceiver.java | Java | apache-2.0 | 1,434 |
package com.ibm.security.appscan.altoromutual.api;
import javax.ws.rs.ApplicationPath;
import org.glassfish.jersey.server.ResourceConfig;
import com.ibm.security.appscan.altoromutual.filter.ApiAuthFilter;
@ApplicationPath("api")
public class AltoroAPI extends ResourceConfig{
public AltoroAPI(){
packages("com.ibm... | AppSecDev/AltoroJ | src/com/ibm/security/appscan/altoromutual/api/AltoroAPI.java | Java | apache-2.0 | 396 |
package org.djodjo.tarator;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import org.djodjo.tarator.action.ScrollToAction;
import org.djodjo.tarator.base.MainThread;
import org.djodjo.tarator.util.HumanReadables;
import com.google.common.base.Optional;
import org.hamcrest.Matc... | djodjoni/tarator-deprecated | tarator/src/main/java/org/djodjo/tarator/ViewInteraction.java | Java | apache-2.0 | 6,076 |
import Kolejka.Element;
import Kolejka.Queue;
public class zad1 {
public static void main(String[] args) {
Queue kol = new Queue();
for (int i=0;i<20;i++)
{ Element a = new Element(i);
kol.enqueue(a);}
System.out.println(kol);
System.out.println(kol.size());
... | maszqara/AiSD | lista3/zad1.java | Java | apache-2.0 | 714 |
/*
* 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... | trotri/android | app/src/main/java/com/trotri/android/tfc/db/Db.java | Java | apache-2.0 | 6,291 |
package com.julun.annotations.views;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 以注解的方式注入需要的布局文件.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface ContentLay... | nirack/julun | commons/src/main/java/com/julun/annotations/views/ContentLayout.java | Java | apache-2.0 | 439 |
/*
* RelevantNodes.java
*
* Copyright 2008 Mark Logic Corporation.
* All rights reserved.
*
* 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 2 of the License, or
* (at you... | daisy/pipeline-issues | libs/com.xmlcalabash/src/main/java/com/xmlcalabash/util/AxisNodes.java | Java | apache-2.0 | 8,655 |
package subreddit.android.appstore.backend.data;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import java.util.Locale;
import timber.log.Timber;
public class Contact {
public enum T... | d4rken/reddit-android-appstore | app/src/main/java/subreddit/android/appstore/backend/data/Contact.java | Java | apache-2.0 | 702 |
// 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 applicable ... | GerritCodeReview/plugins_delete-project | src/main/java/com/googlesource/gerrit/plugins/deleteproject/DeleteLog.java | Java | apache-2.0 | 4,238 |
/**
* 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... | yahoo/pulsar | pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v3/Packages.java | Java | apache-2.0 | 9,676 |
package Dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import Model.Course;
import Model.FileOfCourse;
import Model.Source;
public class UploadDao {
public void uploadCourse(Course course, Connection conn)
throws SQLException {
Strin... | easyforgood/cc_web | SourceManage/src/Dao/UploadDao.java | Java | apache-2.0 | 1,938 |
package com.fasterxml.jackson.core.main;
import java.io.*;
import com.fasterxml.jackson.core.*;
/**
* Unit tests for verifying that additional <code>JsonParser.Feature</code>
* settings work as expected.
*/
public class TestParserFeatures
extends com.fasterxml.jackson.core.BaseTest
{
public void testDefau... | weiwenqiang/GitHub | expert/jackson-core/src/test/java/com/fasterxml/jackson/core/main/TestParserFeatures.java | Java | apache-2.0 | 4,009 |
package com.dim.jit.skyearth.engineer.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persiste... | shuaizhuaidym/skyearth | src/main/java/com/dim/jit/skyearth/engineer/entity/Engineer.java | Java | apache-2.0 | 1,711 |
// 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... | cinderella/incubator-cloudstack | awsapi/src/com/amazon/ec2/InstanceBlockDeviceMappingItemTypeChoice_type0.java | Java | apache-2.0 | 27,985 |
package com.modesteam.urutau.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class AcceptanceCriteria {
@Id
@GeneratedValue
private Long id;
private String content;
public Long getId() {
return id;
}
public void setId(Long id) {
... | tainarareis/Urutau | src/main/java/com/modesteam/urutau/model/AcceptanceCriteria.java | Java | apache-2.0 | 464 |
package org.mybatis.spring.cache;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import redis.clients.jedis.Jedis... | lindzh/mybatis-spring-1.2.2 | src/main/java/org/mybatis/spring/cache/RedisCacheService.java | Java | apache-2.0 | 10,254 |
// 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... | mufaddalq/cloudstack-datera-driver | plugins/hypervisors/baremetal/src/org/apache/cloudstack/api/AddBaremetalPxeCmd.java | Java | apache-2.0 | 5,494 |
/*******************************************************************************
* Copyright 2014 Rafael Garcia Moreno.
*
* 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://w... | bladecoder/bladecoder-adventure-engine | blade-engine/src/com/bladecoder/engine/actions/IfInkVariableAction.java | Java | apache-2.0 | 1,491 |
/*
* 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 ... | citlab/vs.msc.ws14 | flink-0-7-custom/flink-compiler/src/main/java/org/apache/flink/compiler/plan/IterationPlanNode.java | Java | apache-2.0 | 1,084 |
/*
* 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... | googleapis/google-api-java-client-services | clients/google-api-services-people/v1/1.31.0/com/google/api/services/people/v1/model/FieldMetadata.java | Java | apache-2.0 | 4,883 |
package org.drip.dynamics.lmm;
/*
* -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*/
/*!
* Copyright (C) 2017 Lakshmi Krishnamurthy
* Copyright (C) 2016 Lakshmi Krishnamurthy
* Copyright (C) 2015 Lakshmi Krishnamurthy
*
* This file is part of DRIP, a free-software/open-source li... | lakshmiDRIP/DRIP | src/main/java/org/drip/dynamics/lmm/PathwiseQMRealization.java | Java | apache-2.0 | 3,929 |
/*
* 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 ... | emolsson/cassandra | src/java/org/apache/cassandra/io/sstable/format/SSTableWriter.java | Java | apache-2.0 | 11,024 |
/**
* 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... | zjshen/hadoop-in-docker | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/TestContainerLaunch.java | Java | apache-2.0 | 49,584 |
package com.google.api.ads.adwords.jaxws.v201506.cm;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
*
* One element of a product type string at a certain le... | gawkermedia/googleads-java-lib | modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201506/cm/ProductType.java | Java | apache-2.0 | 2,585 |
// 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:
// media/mojo/interfaces/media_types.mojom
//... | mogoweb/365browser | app/src/main/java/org/chromium/media/mojom/DecodeStatus.java | Java | apache-2.0 | 872 |
/*
* 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 app... | soadri/ExoPlayer_LifeMedia | library/src/main/java/com/google/android/exoplayer2/upstream/DefaultBandwidthMeter.java | Java | apache-2.0 | 4,386 |
package com.zhuohua.systemadmin.dao.impl;
import java.util.List;
import javax.annotation.Resource;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.stereotype.Component;
import com.zhuohua.systemadmin.dao.StudentDao;
import com.zhuohua.systemadmin.model.Student;
@Compone... | tianfengjingjing/WindowsPhone8.1APPBasic | src/com/zhuohua/systemadmin/dao/impl/StudentDaoImpl.java | Java | apache-2.0 | 1,932 |
/*
* Copyright 2013 Andrej Petras <andrej@ajka-andrej.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... | lorislab/smonitor | connector/src/main/java/org/lorislab/smonitor/connector/factory/ConnectorServiceFactory.java | Java | apache-2.0 | 1,727 |
package com.sky.hsf1002.designpattern.Prototype;
public class LoginSesstion {
private static LoginSesstion sLoginSession;
private User user;
private LoginSesstion(){}
public static LoginSesstion getInstance()
{
if (sLoginSession == null)
{
sLoginSession = new LoginSess... | LoveGoogleLoveAndroid/design-pattern | app/src/main/java/com/sky/hsf1002/designpattern/Prototype/LoginSesstion.java | Java | apache-2.0 | 597 |
package org.renjin.primitives;
import org.renjin.eval.Context;
import org.renjin.eval.EvalException;
import org.renjin.primitives.annotations.processor.ArgumentException;
import org.renjin.primitives.annotations.processor.ArgumentIterator;
import org.renjin.primitives.annotations.processor.WrapperRuntime;
import org.... | bedatadriven/renjin-statet | org.renjin.core/src-gen/org/renjin/primitives/R$primitive$qweibull.java | Java | apache-2.0 | 6,301 |
/*******************************************************************************
* Copyright (c) 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is a... | vovagrechka/fucking-everything | phizdets/phizdets-idea/eclipse-src/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/InterfaceDeclarationKeywordContext.java | Java | apache-2.0 | 1,829 |
package org.gradle.test.performance.mediummonolithicjavaproject.p379;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test7584 {
Production7584 objectUnderTest = new Production7584();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... | oehme/analysing-gradle-performance | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p379/Test7584.java | Java | apache-2.0 | 2,111 |
package org.gradle.test.performance.mediummonolithicjavaproject.p79;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test1589 {
Production1589 objectUnderTest = new Production1589();
@Test
public void testProperty0() {
Production1586 value = new Production1586();
... | oehme/analysing-gradle-performance | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p79/Test1589.java | Java | apache-2.0 | 2,173 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/devtools/source/v1/source_context.proto
package com.google.devtools.source.v1;
/**
* <pre>
* A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
* </pre>
*
* Protobuf type {@code google.devtools.source.v1.CloudW... | speedycontrol/googleapis | output/com/google/devtools/source/v1/CloudWorkspaceSourceContext.java | Java | apache-2.0 | 26,277 |
/**
* 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... | dfjones/curator-2.2 | curator-recipes/src/test/java/org/apache/curator/framework/recipes/queue/TestDistributedQueue.java | Java | apache-2.0 | 29,954 |
/*
* Copyright 2015 www.seleniumtests.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 applicable law or agreed to in ... | usmankec/DriveAccessSelenium | src/main/java/com/seleniumtests/browserfactory/FirefoxCapabilitiesFactory.java | Java | apache-2.0 | 7,413 |
/*
* Copyright (c) 2015 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.model.smis;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "storage_provider_request")
public class StorageSystemProviderRequestParam {
private Strin... | emcvipr/controller-client-java | models/src/main/java/com/emc/storageos/model/smis/StorageSystemProviderRequestParam.java | Java | apache-2.0 | 1,260 |
package com.zx.mvp.model;
/**
* 类描述:登入接口
* 创建人:郭富东
* 创建时间:2016/11/22 09:11
* 修改人:
* 修改时间:
* 修改备注:
*/
public interface LoginListenr {
/**
* 用户登入方法
* @param name :用户名
* @param password :用户密码
* @param listener :登入结果监听
*/
void login(String name,String password,OnLoginListener list... | snmlm/MyObject | MVPDemo/src/main/java/com/zx/mvp/model/LoginListenr.java | Java | apache-2.0 | 441 |
package com.dda.mobilesafe.receiver;
import android.app.admin.DevicePolicyManager;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.media.MediaPlayer;
import android.te... | dengdunan/MobileSafe | app/src/main/java/com/dda/mobilesafe/receiver/SmsReceiver.java | Java | apache-2.0 | 4,617 |
/*******************************************************************************
* Copyright 2013-2015 alladin-IT GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://ww... | alladin-IT/open-rmbt | RMBTMapServer/src/at/alladin/rmbt/mapServer/ServerResource.java | Java | apache-2.0 | 4,036 |
package com.artemis.managers;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import com.artemis.Entity;
import com.artemis.Manager;
import com.artemis.utils.Bag;
public class UuidEntityManager extends Manager {
private final Map<UUID, Entity> uuidToEntity;
private final Bag<UUID> entityToUu... | gjroelofs/artemis-odb | artemis/src/main/java/com/artemis/managers/UuidEntityManager.java | Java | apache-2.0 | 1,497 |
/*
* Copyright 2017 Kamil Sopko (https://github.com/sopak) and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | sopak/auto-value-step-builder | auto-value-step-builder/src/main/java/cz/jcode/auto/value/step/builder/Generator.java | Java | apache-2.0 | 9,645 |
package com.orionplatform.math.linearalgebra.matrix.generic.tasks.copy;
import com.orionplatform.core.abstraction.Orion;
import com.orionplatform.core.object.CloningService;
import com.orionplatform.math.geometry.vector.generic.GenericVector;
import com.orionplatform.math.linearalgebra.matrix.generic.GenericMatrix;
im... | orioncode/orionplatform | orion_math/orion_math_core/src/main/java/com/orionplatform/math/linearalgebra/matrix/generic/tasks/copy/GetGenericMatrixColumnCopyTask.java | Java | apache-2.0 | 860 |
/*
BlueDiamondColorScheme -- a class within the Cellular Automaton Explorer.
Copyright (C) 2007 David B. Bahr (http://academic.regis.edu/dbahr/)
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 Found... | KEOpenSource/CAExplorer | cellularAutomata/graphics/colors/BlueDiamondColorScheme.java | Java | apache-2.0 | 2,608 |
/**
* 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/hadoop-mapreduce | src/java/org/apache/hadoop/mapred/lib/DelegatingInputFormat.java | Java | apache-2.0 | 4,993 |
// Copyright 2012 Google Inc. All Rights Reserved.
package com.google.gerrit.server.cache.h2;
import com.google.common.cache.AbstractLoadingCache;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.CacheStats;
import com.google.common.cache.LoadingCache;
i... | NextGenIntelligence/gerrit | gerrit-cache-h2/src/main/java/com/google/gerrit/server/cache/h2/H2CacheImpl.java | Java | apache-2.0 | 18,848 |
package org.apereo.cas.config;
import org.apereo.cas.authentication.AuthenticationServiceSelectionPlan;
import org.apereo.cas.authentication.attribute.AttributeDefinitionStore;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.consent.ConsentEngine;
import org.apereo.cas.services.Se... | leleuj/cas | support/cas-server-support-consent-webflow/src/main/java/org/apereo/cas/config/CasConsentWebflowConfiguration.java | Java | apache-2.0 | 4,138 |
/*
* 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 ... | WhiteBearSolutions/WBSAirback | packages/wbsairback-tomcat/wbsairback-tomcat-7.0.22/test/org/apache/el/lang/TestELSupport.java | Java | apache-2.0 | 3,620 |
package edu.zjut.model;
public interface State {
/**
* 投币
*/
public void insertMoney();
/**
* 退币
*/
public void backMoney();
/**
* 转动曲柄
*/
public void turnCrank();
/**
* 出商品
*/
public void dispense();
} | Sinton/DesignPatterns | State/VendingMachine/src/edu/zjut/model/State.java | Java | apache-2.0 | 253 |
package crate.elasticsearch.action.import_.parser;
import java.util.HashMap;
import java.util.Map;
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.common.collect.ImmutableMap;
import org.elasticsearch.common.xcontent.XContentFactory;
import org.elasticsearch.common.xcontent.XContentHelp... | crate/elasticsearch-inout-plugin | src/main/java/crate/elasticsearch/action/import_/parser/ImportParser.java | Java | apache-2.0 | 3,220 |
package org.flippers.handlers;
import org.flippers.agent.MessageSender;
import org.flippers.config.FileConfig;
import org.flippers.messages.DataMessage;
import org.flippers.messages.MessageCreator;
public class PingHandler implements Handler {
private MessageSender sender;
private MessageCreator messageCreat... | priyaaank/Flippers | src/main/java/org/flippers/handlers/PingHandler.java | Java | apache-2.0 | 757 |
package com.yeamanan.projecttwo.model.character;
/**
* Skill enum.
*
* @author Yeam Anan (<yeamanan|at|gmail|dot|com>)
*/
public enum Skill {
/**
* Skill list.
*/
PLUS_ONE_ACTION,
/**
* .
*/
PLUS_ONE_DAMAGE,
/**
* .
*/
PLUS_ONE_DICE_ROLL_COMBAT,
/**
... | yeamanan/ProjectTwo | src/main/java/com/yeamanan/projecttwo/model/character/Skill.java | Java | apache-2.0 | 1,813 |
package info.vincentchan.appfuse.webapp.controller;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.appfuse.model.User;
import org.appfuse.service.UserManager;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.jmock.integration.junit4.JMock;
import org.... | vincentchen/appfuse-light-demo | src/test/java/info/vincentchan/appfuse/webapp/controller/UserFormControllerTest.java | Java | apache-2.0 | 3,698 |
package com.sen.vov.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.Typeface;
import android.os.Build;
import android.os.Parcel;
import android.os.Parcelable;
impor... | PengSen/VoV | app/src/main/java/com/sen/vov/widget/PagerSlidingTabStrip.java | Java | apache-2.0 | 16,040 |
/*
* Given n kind of items with size Ai and value Vi( each item has an infinite number available) and a backpack with size m. What's the maximum value can you put into the backpack?
*/
public class Solution {
public int backPackIII(int[] A, int[] V, int m) {
// 5:22 - 5:24
int[] dp = new int[m + 1... | kxingit/LeetCode_Java | Backpack_III.java | Java | apache-2.0 | 1,551 |
package com.ds.viewpagerfragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
/... | snmlm/MyObject | MyApplication/viewpagerfragment/src/main/java/com/ds/viewpagerfragment/HomeFragment.java | Java | apache-2.0 | 1,312 |
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.icss.hit.struts.action;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.str... | MaisonWan/OA | WebSrc/OA/src/com/icss/hit/struts/action/RoomRegistAction.java | Java | apache-2.0 | 4,273 |
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | firebase/firebase-android-sdk | smoke-tests/src/main/java/com/google/firebase/testing/RemoteConfigTest.java | Java | apache-2.0 | 2,312 |
package com.camnter.newlife.widget;
import android.app.Activity;
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* Description:TopicFieldPopWindow
* Created by:CaMnter
* Time:2015-12-11 ... | CaMnter/AndroidLife | widget/src/main/java/com/camnter/newlife/widget/CustomPopupWindow.java | Java | apache-2.0 | 3,888 |
package org.deepjava.dwarf;
import java.nio.ByteBuffer;
public class SymbolTableEntry {
public final int name;
public final int value;
public final int size;
public final SymbolType type;
public final SymbolBind bind;
public final Visibility visibility;
public final short shndx;
public SymbolTableEntry(ByteB... | deepjava/compiler | src/org/deepjava/dwarf/SymbolTableEntry.java | Java | apache-2.0 | 1,434 |
package com.ctrip.hermes.metaserver.commons;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.Watcher.Event.EventType;
import com.ctrip.herme... | Tony-Zhang03/hermes | hermes-metaserver/src/main/java/com/ctrip/hermes/metaserver/commons/BaseEventBasedZkWatcher.java | Java | apache-2.0 | 1,689 |
package de.hilling.junit.cdi.microprofile;
import de.hilling.junit.cdi.annotations.BypassTestInterceptor;
import de.hilling.junit.cdi.lifecycle.TestEvent;
import de.hilling.junit.cdi.scope.TestState;
import de.hilling.junit.cdi.scope.TestSuiteScoped;
import org.junit.jupiter.api.extension.ExtensionContext;
import jav... | guhilling/cdi-test | cdi-test-microprofile/src/main/java/de/hilling/junit/cdi/microprofile/TestConfigListener.java | Java | apache-2.0 | 1,292 |
package edu.pitt.apollo.apollotranslator.setters;
import edu.pitt.apollo.apollotranslator.ApolloTranslationEngine;
import edu.pitt.apollo.types.v4_0_2.ContinuousParametricProbabilityDistribution;
/**
*
* Author: Nick Millett
* Email: nick.millett@gmail.com
* Date: Mar 21, 2014
* Time: 5:06:25 PM
* Class: Contin... | ApolloDev/apollo | apollo-translator/src/main/java/edu/pitt/apollo/apollotranslator/setters/ContinuousParametricProbabilityDistributionSetter.java | Java | apache-2.0 | 832 |
/*
* Copyright 2014 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | fenik17/netty | codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData.java | Java | apache-2.0 | 1,621 |
/*
* 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-config/src/main/java/com/amazonaws/services/config/model/transform/DeleteEvaluationResultsRequestProtocolMarshaller.java | Java | apache-2.0 | 2,769 |
package net.bytebuddy.description.type;
import net.bytebuddy.description.NamedElement;
import net.bytebuddy.description.annotation.AnnotationList;
import net.bytebuddy.description.annotation.AnnotationSource;
import org.objectweb.asm.Opcodes;
/**
* A package description represents a Java package.
*/
public interfac... | DALDEI/byte-buddy | byte-buddy-dep/src/main/java/net/bytebuddy/description/type/PackageDescription.java | Java | apache-2.0 | 3,745 |
package tv.niuwa.live.utils;
import java.io.File;
public interface DownloadListener {
void onStart(int fileByteSize);
void onPause();
void onResume();
void onProgress(int receivedBytes);
void onFail();
void onSuccess(File file);
void onCancel();
}
| zhuangzaiku/NiuwaClient | app/src/main/java/tv/niuwa/live/utils/DownloadListener.java | Java | apache-2.0 | 266 |
/*
* Copyright (C) 2015 The Minium Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | viltgroup/minium | minium-actions/src/main/java/minium/actions/internal/DefaultInteractionListener.java | Java | apache-2.0 | 2,962 |
package com.zx.sms.connect.manager.sgip;
import java.util.concurrent.atomic.AtomicInteger;
import com.zx.sms.BaseMessage;
import com.zx.sms.codec.sgip12.msg.SgipDeliverRequestMessage;
import com.zx.sms.codec.sgip12.msg.SgipSubmitRequestMessage;
import com.zx.sms.connect.manager.ServerEndpoint;
import com.zx.s... | Lihuanghe/CMPPGate | src/test/java/com/zx/sms/connect/manager/sgip/SGIPSessionConnectedHandler.java | Java | apache-2.0 | 1,318 |
/*
*
* Copyright 2012-2014 Eurocommercial Properties NV
*
*
* Licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | estatio/estatio | estatioapp/app/src/test/java/org/estatio/module/lease/integtests/lease/LeaseItemSourceRepository_IntegTest.java | Java | apache-2.0 | 5,460 |
package il.co.topq.difido.automation.infra;
public class Lab {
}
| abodabi/difido-reports | difido-test-testng/src/main/java/il/co/topq/difido/automation/infra/Lab.java | Java | apache-2.0 | 68 |
/*
* 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
* distribu... | metatron-app/metatron-discovery | discovery-server/src/main/java/app/metatron/discovery/domain/scheduling/dataprep/DatasetCacheOutJob.java | Java | apache-2.0 | 2,314 |
/*
* Copyright 2014-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... | darkforestzero/buck | test/com/facebook/buck/cxx/CxxLibraryIntegrationTest.java | Java | apache-2.0 | 11,232 |
/**
*
* Copyright 2011 (C) Rainer Schneider,Roggenburg <schnurlei@googlemail.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/LICENS... | schnurlei/jdynameta | jdy/jdy.model.metadata/src/test/java/de/jdynameta/metamodel/application/ApplicationModelTest.java | Java | apache-2.0 | 19,110 |
/*
* 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... | equella/Equella | Platform/Plugins/com.tle.platform.common/src/com/tle/common/util/CachedClassData.java | Java | apache-2.0 | 1,283 |
/**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* ... | stevenhva/InfoLearn_OpenOLAT | src/main/java/org/olat/resource/accesscontrol/provider/paypal/ui/PaypalMasterAccountController.java | Java | apache-2.0 | 9,009 |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2022 DBeaver Corp and 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/LICE... | dbeaver/dbeaver | plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/preferences/format/SQLExternalFormatterConfigurationPage.java | Java | apache-2.0 | 3,861 |
/*
* Copyright (C) 2018 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 ... | google/splot-java | splot-base/src/main/java/com/google/iot/m2m/base/ParamKey.java | Java | apache-2.0 | 1,402 |
package com.netflix.evcache;
import java.util.Collection;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.Future;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.netflix.evcache.EVCacheLatch.Policy;
import com.netflix.evcache.pool.EVCacheCli... | trigan-d/EVCache | evcache-client/src/main/java/com/netflix/evcache/EVCache.java | Java | apache-2.0 | 48,104 |
package android.example.com.visualizerpreferences;
/*
* 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.o... | gentlemanZ/ud851-Exercises-student | Lesson06-Visualizer-Preferences/T06.07-Exercise-ListPreference/app/src/main/java/android/example/com/visualizerpreferences/VisualizerActivity.java | Java | apache-2.0 | 7,909 |
/*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | leapframework/framework | base/lang/src/main/java/leap/lang/el/spel/ast/AstNumber.java | Java | apache-2.0 | 1,408 |
package com.devin.util;
import android.app.ActivityManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.drawable.Drawable;
import android.text.Te... | sundevin/utilsLibrary | utilslibrary/src/main/java/com/devin/util/AppInfo.java | Java | apache-2.0 | 5,314 |
/*
* Copyright (c) 2011, Cloudera, Inc. All Rights Reserved.
*
* Cloudera, Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"). You may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... | showyou/hoop-webhdfs-hue | hoop-client/src/main/java/com/cloudera/hoop/client/fs/HoopFileSystem.java | Java | apache-2.0 | 20,686 |
package com.the151suggestions.part7.s99;
/**
* "我"
* Created by Akang on 2017/8/22.
*/
public class Me implements Staff, Passenger {
@Override
public boolean isStanding() {
return true;
}
@Override
public int getSalary() {
return 2000;
}
}
| kangangithub/The151Suggestions | src/main/java/com/the151suggestions/part7/s99/Me.java | Java | apache-2.0 | 287 |
/* 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... | plexiti/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetTaskVariablesCmd.java | Java | apache-2.0 | 2,065 |
/*
* Copyright 2015 Red Hat Inc. and/or its affiliates and other contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | jboss-qa/jcontainer-manager | containers/fuse/src/test/java/org/jboss/qa/jcontainer/fuse/test/FuseConfigurationTest.java | Java | apache-2.0 | 1,743 |
package com.harmazing.framework.authorization.impl;
import java.io.Serializable;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.logging.Log;
import org.apache.commons.lo... | gavin2lee/incubator | docs/sourcecodes/OpenBridge-base/ob-framework/src/main/java/com/harmazing/framework/authorization/impl/YiheTokenGenerator.java | Java | apache-2.0 | 3,335 |
package com.cassca.test;
import java.math.BigDecimal;
public class Test {
public static void main(String[] args) {
String s="";
for (int i = 0; i < 65535/6; i++) {
s+=String.valueOf(i);
}
// System.out.println(s);
BigDecimal d1 =new BigDecimal(1);
BigDecimal d2 =new BigDecimal(2);
// System.out.printl... | MonkeyFlyFly/test_2 | Calculation-Demo/src/com/cassca/test/Test.java | Java | apache-2.0 | 385 |
/**
* Copyright (c) 2013-2020 Nikita Koksharov
*
* 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... | mrniko/redisson | redisson/src/main/java/org/redisson/api/RKeysAsync.java | Java | apache-2.0 | 7,282 |
package info.novatec.addressbook;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue;
import static org.junit.Assert.assertThat;
import info.novatec.addressbook.boundary.PersonManagementService;
import info.novatec.addressbook.entity.A... | andifalk/spring-data-workshop | addressbook-jpa/src/test/java/info/novatec/addressbook/ApplicationTests.java | Java | apache-2.0 | 8,944 |
/*
* Copyright (c) 2016, baihw (javakf@163.com).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | javakf/rdf | src/test/java/com/yoya/rdf/router/session/TestSessionManger.java | Java | apache-2.0 | 1,286 |
package com.bstek.designer.support.library;
import com.intellij.framework.library.DownloadableLibraryTypeBase;
import icons.DoradoIcons;
import java.net.URL;
/**
* Created with IntelliJ IDEA.
* User: robin
* Date: 13-9-25
* Time: 上午12:42
* To change this template use File | Settings | File Templates.
*/
public... | OuYuBin/IDEADorado | dorado-support/src/com/bstek/designer/support/library/DoradoLibraryType.java | Java | apache-2.0 | 615 |