code stringlengths 3 1.04M | repo_name stringlengths 5 109 | path stringlengths 6 306 | language stringclasses 1
value | license stringclasses 15
values | size int64 3 1.04M |
|---|---|---|---|---|---|
/*
* Copyright 2013-2018 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... | shakuzen/spring-cloud-config | spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/environment/MultipleJGitEnvironmentRepositoryTests.java | Java | apache-2.0 | 9,143 |
/*
* 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 ... | acsukesh/java-chassis | core/src/main/java/org/apache/servicecomb/core/definition/CommonService.java | Java | apache-2.0 | 1,754 |
/**
*
*/
package com.darly.dlclent.widget.floorview;
/**
* @author zhangyh2 Comment 下午2:42:38 TODO 评论信息实例类
*/
public class Comment {
/**
* 下午2:43:20 TODO 独立评论,没有楼层
*/
public static final long NULL_PARENT = -1;
/**
* 下午2:40:22 TODO 上层楼层的ID号
*/
private long parentId;
/**
* 下午2:40:57 TODO 用户的ID
*... | darlyhellen/oto | DLClent_A/src/com/darly/dlclent/widget/floorview/Comment.java | Java | apache-2.0 | 2,578 |
/*
* Copyright DataStax, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | datastax/java-driver | core/src/test/java/com/datastax/oss/driver/Assertions.java | Java | apache-2.0 | 2,189 |
package io.jeffrey.zer.meta;
import java.io.File;
/**
* Simple contract to lazily fix up uris
*
* @author jeffrey
*/
public interface DocumentFileSystem {
/**
* Convert the nice uri into a file on the disk
*
* @param path
* the serialized and nice uri
* @return a File obje... | jeffrey-io/zer | src/main/java/io/jeffrey/zer/meta/DocumentFileSystem.java | Java | apache-2.0 | 579 |
package com.hutong.supersdk.sdk.handler.and;
import java.io.InputStream;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;
import com.hutong.supersdk.common.model.JsonReqObj;
import com.hutong.supersdk.common.ut... | bigshiliu/test | com.hutong.supersdk/src/main/java/com/hutong/supersdk/sdk/handler/and/AndKuGouSDK.java | Java | apache-2.0 | 3,851 |
package headfirst.combining.composite;
public class DuckFactory extends AbstractDuckFactory {
public Quackable createMallardDuck() {
return new MallardDuck();
}
public Quackable createRedheadDuck() {
return new RedheadDuck();
}
public Quackable createDuckCall() {
return new DuckCall();
}
public Quacka... | ljaljushkin/PatternPractise | from_web/HF_DP/src/headfirst/combining/composite/DuckFactory.java | Java | apache-2.0 | 377 |
package com.capgemini.demos.ms.ipservice.eureka;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@RestController
class HomeController {
@RequestMapping(value = "/", method =... | ksobkowiak-talks/xpaas-talks | demos/ipservice-demo/netflix/ipservice-boot/src/main/java/com/capgemini/demos/ms/ipservice/eureka/HomeController.java | Java | apache-2.0 | 427 |
/*
* 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... | xasx/assertj-core | src/test/java/org/assertj/core/api/map/MapAssert_extracting_Test.java | Java | apache-2.0 | 4,286 |
package com.busqueumlugar.service.impl;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSe... | israeldb27/blg | src/main/java/com/busqueumlugar/service/impl/MensagemServiceImpl.java | Java | apache-2.0 | 19,878 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Vers... | bartoszmajsak/arquillian-extension-persistence | dbunit/src/main/java/org/jboss/arquillian/persistence/dbunit/dataset/yaml/YamlDataSet.java | Java | apache-2.0 | 2,730 |
/*
* 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-config/src/main/java/com/amazonaws/services/config/model/transform/EvaluationResultJsonUnmarshaller.java | Java | apache-2.0 | 4,102 |
package com.vikashkothary.life.ui.base;
/**
* Every presenter in the app must either implement this interface or extend BasePresenter
* indicating the MvpView type that wants to be attached with.
*/
public interface Presenter<V extends MvpView> {
void attachView(V mvpView);
void detachView();
}
| Vikash-Kothary/life-app-android | Life/app/src/main/java/com/vikashkothary/life/ui/base/Presenter.java | Java | apache-2.0 | 310 |
/*
* 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-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/model/SendTaskHeartbeatResult.java | Java | apache-2.0 | 2,264 |
/*
* 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-transcribe/src/main/java/com/amazonaws/services/transcribe/model/transform/GetMedicalTranscriptionJobResultJsonUnmarshaller.java | Java | apache-2.0 | 3,020 |
/*
* Copyright © 2016 Schlichtherle IT Services
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | christian-schlichtherle/neuron-di | core/src/test/java/global/namespace/neuron/di/java/test/CounterFactoryModuleTest.java | Java | apache-2.0 | 1,367 |
/*
* Copyright 2011 Objectos, Fábrica de Software LTDA.
*
* 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... | objectos/jabuticava | financeiro/src/test/java/br/com/objectos/jabuticava/TesteDeParticipacao.java | Java | apache-2.0 | 1,558 |
package armyc2.c2sd.xml.parser;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
public class BinaryGeneratorHelper {
public static void generate(File resourceDir, File outputDir) throws IOException {
... | missioncommand/mil-sym-android | buildSrc/src/main/java/armyc2/c2sd/xml/parser/BinaryGeneratorHelper.java | Java | apache-2.0 | 2,928 |
/*
* Copyright (C) 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | GoogleCloudPlatform/training-data-analyst | quests/data-science-on-gcp-edition1_tf2/08_dataflow/chapter8/src/main/java/com/google/cloud/training/flights/CreateTrainingDataset2.java | Java | apache-2.0 | 2,306 |
/**
* Copyright (c) 2016-present, RxJava Contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | AttwellBrian/RxJava | src/test/java/io/reactivex/internal/disposables/DisposableHelperTest.java | Java | apache-2.0 | 3,540 |
package org.xyy.model2mybatisdao.annotations;
import java.lang.annotation.*;
/**
* 设置该标志则该字段不能为空
*
* @author xyy
* @version 1.0 2017/5/26.
* @since 1.0
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface NotNull {
}
| i37oC/smart-dao | model-2-mybatisdao/src/main/java/org/xyy/model2mybatisdao/annotations/NotNull.java | Java | apache-2.0 | 295 |
package ch08;
/**
* 第8章 二叉排序树类。
*/
import ch07.*;
import ch05.BiTreeNode; //二叉树的二叉链表结点类
public class BSTree { //二叉排序树类
protected BiTreeNode root; //根结点
public BSTree() { //构造空二叉排序树
root = null;
}
public BiTreeNode getRoot() {
return root;
}
public void setRoot(BiTree... | greatpie/datastructure | src/ch08/BSTree.java | Java | apache-2.0 | 6,296 |
/*
* Copyright 2015 Brent Douglas and other contributors
* as indicated by the @author tags. 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.or... | BrentDouglas/chainlink | core/src/main/java/io/machinecode/chainlink/core/validation/task/ItemReaderValidator.java | Java | apache-2.0 | 1,199 |
/*
* Copyright 2014 lorislab.org.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | lorislab/appky | appky-process/src/main/java/org/lorislab/appky/process/ejb/UserPasswordProcessService.java | Java | apache-2.0 | 2,494 |
/**
* Copyright Pravega 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 to... | pravega/pravega | controller/src/main/java/io/pravega/controller/server/eventProcessor/requesthandlers/UpdateReaderGroupTask.java | Java | apache-2.0 | 7,489 |
package com.github.mybatisq.mapper;
import java.util.Collection;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.github.mybatisq.DeleteQuery;
import com.github.mybatisq.Query;
import com.github.mybatisq.Insert;
import com.github.mybatisq.Upda... | richterplus/mybatis-q | mybatis-q-example/src/main/java/com/github/mybatisq/mapper/EmpDeptMapper.java | Java | apache-2.0 | 1,022 |
/*
*
* 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... | kigsmtua/estatio | estatioapp/fixture/src/main/java/org/estatio/fixture/party/PersonForLucianoPavarottiIt.java | Java | apache-2.0 | 1,763 |
package org.swiften.xtestkit.base.element.swipe;
/**
* Created by haipham on 5/11/17.
*/
import io.reactivex.Flowable;
import org.jetbrains.annotations.NotNull;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.Point;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import... | protoman92/XTestKit | src/main/java/org/swiften/xtestkit/base/element/swipe/SwipeActionType.java | Java | apache-2.0 | 6,895 |
/*
* Copyright 2014 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 applica... | Anish2/error-prone | core/src/main/java/com/google/errorprone/SuppressionHelper.java | Java | apache-2.0 | 8,068 |
/*
* 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 i... | google-cloudsearch/sharepoint-connector | src/main/java/com/google/enterprise/cloudsearch/sharepoint/AuthenticationClientFactory.java | Java | apache-2.0 | 1,410 |
package com.hostel.domain;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.validation.constraints.NotNull;
import java.uti... | benoyprakash/java-hostel | JHipster-hostel/src/main/java/com/hostel/domain/PersistentAuditEvent.java | Java | apache-2.0 | 1,680 |
/*
* Copyright 2012 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 in wri... | Rikkola/uberfire | uberfire-workbench/uberfire-workbench-client/src/main/java/org/uberfire/client/workbench/panels/impl/AbstractWorkbenchPanelPresenter.java | Java | apache-2.0 | 7,886 |
package com.networknt.oauth.auth;
import io.undertow.security.idm.Account;
import io.undertow.security.idm.Credential;
public interface Authenticator<T> {
/**
* Authenticate user with the credential and userType. Return null if failed to authenticate.
* Otherwise, return an account object that represent... | networknt/light-oauth2 | authhub/src/main/java/com/networknt/oauth/auth/Authenticator.java | Java | apache-2.0 | 508 |
package com.nouribygi.sokhan.database;
import android.content.Context;
import android.content.res.AssetManager;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQL... | nouribygi/Sokhan | app/src/main/java/com/nouribygi/sokhan/database/DatabaseHandler2.java | Java | apache-2.0 | 11,019 |
/***
*
* Copyright 2014 Andrew Hall
*
* 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 ... | statefulj/statefulj | statefulj-persistence/statefulj-persistence-jpa/src/main/java/org/statefulj/persistence/jpa/JPAPerister.java | Java | apache-2.0 | 8,680 |
package org.androidpn.client;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import org.androidpn.laumanager.DBManager;
import android.app.DownloadManager;
import android.content.BroadcastReceiver;
import android.content.Context;
impor... | JackieFlower/androidpn-client1.2.1test | src/org/androidpn/client/DownloadCompleteReceiver.java | Java | apache-2.0 | 10,381 |
package org.onetwo.boot.module.rxtx;
import org.onetwo.common.utils.LangUtils;
/**
* @author weishao zeng
* <br/>
*/
public class RxtxTest {
public static void main(String[] args) {
SerialPortManager mgr = new SerialPortManager();
mgr.init();
JSerialPort serialPort = mgr.getSerialPort("COM2");
serialPor... | wayshall/onetwo | core/modules/boot/src/test/java/org/onetwo/boot/module/rxtx/RxtxTest.java | Java | apache-2.0 | 567 |
/* ************************************************************************
LEBAH PORTAL FRAMEWORK
Copyright (C) 2007 Shamsul Bahrin
* ************************************************************************ */
package lebah.app;
import java.util.Hashtable;
import java.util.Vector;
import javax.servlet.http.Http... | sbahrin3/LebahFramework | JavaSource/lebah/app/RegisterUserModule.java | Java | apache-2.0 | 2,690 |
/*
* Copyright (C) 2018-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... | phax/ph-oton | ph-oton-bootstrap4/src/main/java/com/helger/photon/bootstrap4/form/EBootstrapFormType.java | Java | apache-2.0 | 1,350 |
/*
* 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-devicefarm/src/main/java/com/amazonaws/services/devicefarm/model/DeleteNetworkProfileResult.java | Java | apache-2.0 | 2,377 |
package de.jungblut.crawl.extraction;
import de.jungblut.crawl.ConsoleResultWriter;
import de.jungblut.crawl.Crawler;
import de.jungblut.crawl.FetchResult;
import de.jungblut.crawl.SequentialCrawler;
import de.jungblut.crawl.extraction.ArticleContentExtrator.ContentFetchResult;
import de.l3s.boilerpipe.BoilerpipeExtra... | thomasjungblut/thomasjungblut-common | src/main/java/de/jungblut/crawl/extraction/ArticleContentExtrator.java | Java | apache-2.0 | 4,304 |
package teamunguided.brighttime;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.WindowManager;
public class DummyBrightnessActivity extends Activity {
private static final int DELAYED_MESSAGE = 1;
... | Team-Unguided/BrightTime | app/src/main/java/teamunguided/brighttime/DummyBrightnessActivity.java | Java | apache-2.0 | 1,269 |
package io.antmedia.storage;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.amazonaws.ClientConfiguration;
imp... | ant-media/Ant-Media-Server | src/main/java/io/antmedia/storage/AmazonS3StorageClient.java | Java | apache-2.0 | 6,366 |
/*
* Copyright 2013 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 ... | koying/dashclock | main/src/com/google/android/apps/dashclock/configuration/AppChooserPreference.java | Java | apache-2.0 | 13,404 |
/*
* Copyright 2003-2007 Dave Griffith, Bas Leijdekkers
*
* 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... | jexp/idea2 | plugins/InspectionGadgets/src/com/siyeh/ig/errorhandling/EmptyFinallyBlockInspection.java | Java | apache-2.0 | 2,375 |
/*
* Copyright (c) 2005-2009 Grameen Foundation USA
* 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
*
* Unl... | mifos/1.4.x | application/src/test/java/org/mifos/application/accounts/savings/business/SavingsPaymentStrategyForVoluntarySavingsAccountsTest.java | Java | apache-2.0 | 13,624 |
/*
* Copyright 2017 TWO SIGMA OPEN SOURCE, 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 appl... | ScottPJones/beaker-notebook | kernel/base/src/main/java/com/twosigma/beaker/easyform/formitem/widgets/TextFieldWidget.java | Java | apache-2.0 | 1,848 |
package com.example.ziheng.myweather.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by ziheng on 2015/9/27 0027.
*/
public class sqlOpenHelper extends SQLiteOpenHelper {
/**
* Province表建表语句
*/
public... | lzhgreat/myweather | app/src/main/java/com/example/ziheng/myweather/db/sqlOpenHelper.java | Java | apache-2.0 | 1,549 |
package net.moonlithome.game.server.account.action;
import net.moonlithome.game.common.dto.account.AccountInfoDto;
import net.moonlithome.game.framework.action.BaseAction;
import net.moonlithome.game.framework.dto.BaseCommunicationDto;
import net.moonlithome.game.framework.util.JsonBeanUtil;
import net.moonlithome.gam... | aqzwss/Illusory_Journey | ij.webapp.server/src/main/java/net/moonlithome/game/server/account/action/AccountOperationAction.java | Java | apache-2.0 | 1,922 |
/*
* Copyright 2017 Netflix, 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... | spinnaker/echo | echo-notifications/src/main/groovy/com/netflix/spinnaker/echo/config/DryRunConfig.java | Java | apache-2.0 | 3,191 |
package com.google.api.ads.dfp.jaxws.v201511;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for AdRuleDateError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType nam... | gawkermedia/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201511/AdRuleDateErrorReason.java | Java | apache-2.0 | 1,919 |
/*
* Copyright (c) 2010-2014 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... | sabriarabacioglu/engerek | model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/Construction.java | Java | apache-2.0 | 23,465 |
package authentication;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import javax.ws.rs.NameBinding;
@NameBinding
@Retention(RetentionPolicy.RUNTIME)
public @interface Secure {
}
| backpaper0/jaxrs-samples | jersey-sandbox/src/main/java/authentication/Secure.java | Java | apache-2.0 | 221 |
/*-
* -\-\-
* Helios Client
* --
* Copyright (C) 2016 Spotify AB
* --
* 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
*
* Unles... | spotify/helios | helios-client/src/test/java/com/spotify/helios/client/AuthenticatingHttpConnectorTest.java | Java | apache-2.0 | 13,302 |
/*
* 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... | atomix/copycat | client/src/main/java/io/atomix/copycat/client/RecoveryStrategies.java | Java | apache-2.0 | 1,832 |
package com.canyinghao.canadapterdemo;
import android.app.Application;
import android.widget.Toast;
public class App extends Application {
private static App sInstance;
@Override
public void onCreate() {
super.onCreate();
sInstance = this;
}
public static App getInstance() {... | canyinghao/CanAdapter | app/src/main/java/com/canyinghao/canadapterdemo/App.java | Java | apache-2.0 | 557 |
/*
* Copyright (c) 2008-2020, Hazelcast, 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 ... | mdogan/hazelcast | hazelcast/src/main/java/com/hazelcast/client/impl/protocol/codec/RingbufferAddAllCodec.java | Java | apache-2.0 | 5,886 |
package com.Voxce.model;
import java.sql.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="sponsor")
public class Sponsor {
private int sponsor_id;
private String na... | trialmanager/voxce | src/com/Voxce/model/Sponsor.java | Java | apache-2.0 | 3,318 |
/*
* Copyright (c) 2008-2020, Hazelcast, 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 ... | mdogan/hazelcast | hazelcast/src/main/java/com/hazelcast/client/impl/protocol/codec/CPSessionCloseSessionCodec.java | Java | apache-2.0 | 4,714 |
/*
* 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-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/transform/SpekeKeyProviderMarshaller.java | Java | apache-2.0 | 2,921 |
/**
*
*/
package samples;
import java.util.List;
public class MyBean3 {
private List myList;
public List getMyList() {
return myList;
}
public void setMyList(List myList) {
this.myList = myList;
}
} | cchabanois/transmorph | src/test/java/samples/MyBean3.java | Java | apache-2.0 | 233 |
/**
*
*/
package com.frameworkset.platform.dictionary.input;
/**
* 主键生成类 接口
* <p>Title: CreatePrimaryKey.java</p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: 三一集团</p>
* @Date 2007-12-15 10:38:37
* @author ge.tao
* @version 1.0
*/
public interface CreatePrimaryKey ex... | tzou24/BPS | BPS/src/com/frameworkset/platform/dictionary/input/CreatePrimaryKey.java | Java | apache-2.0 | 406 |
/*
* Copyright 2016 Miroslav Janíček
*
* 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... | kroepke/luna | luna-compiler/src/main/java/org/classdump/luna/compiler/analysis/package-info.java | Java | apache-2.0 | 712 |
package ru.shestakov.templates;
public class SimpleGeneratorException extends Exception{
private String message;
public String getMessage(){return message;}
public SimpleGeneratorException(String mes){
message=mes;
}
public SimpleGeneratorException(String mes, Throwable cause){
s... | savspit/java-a-to-z | Part III. Chapter 6. TDD/Tracker/src/main/java/ru/shestakov/templates/SimpleGeneratorException.java | Java | apache-2.0 | 363 |
package com.cc.jcg.bean;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Collection;
class MBFieldBase<BT, VT>
implements MBField<BT, VT> {
private final Class<BT> beanType;
private final Class<VT> type;
private final String name;
MBFieldBase(Class<BT> beanType, Cl... | alecbigger/JCG | JCG/src/com/cc/jcg/bean/MBFieldBase.java | Java | apache-2.0 | 5,491 |
/*
* Copyright (c) 2008-2020, Hazelcast, 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 ... | mdogan/hazelcast | hazelcast/src/main/java/com/hazelcast/spi/impl/operationservice/impl/OutboundOperationHandler.java | Java | apache-2.0 | 2,644 |
/**
* Copyright 2015 Jiang Wei
*
* 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 applicabl... | wmz7year/Thrift-Connection-Pool | src/main/java/com/wmz7year/thrift/pool/TaskEngine.java | Java | apache-2.0 | 13,113 |
/*
* Copyright 2018-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... | romanoid/buck | src/com/facebook/buck/rules/modern/builders/HybridLocalStrategy.java | Java | apache-2.0 | 11,242 |
package com.suscipio_solutions.consecro_mud.Abilities.Songs;
import com.suscipio_solutions.consecro_mud.Abilities.interfaces.Ability;
import com.suscipio_solutions.consecro_mud.Common.interfaces.CMMsg;
import com.suscipio_solutions.consecro_mud.Common.interfaces.CharStats;
import com.suscipio_solutions.consecro_mud.Ite... | ConsecroMUD/ConsecroMUD | com/suscipio_solutions/consecro_mud/Abilities/Songs/Dance_Swing.java | Java | apache-2.0 | 2,684 |
/****************************************************************
* 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... | rouazana/james | container/cli/src/main/java/org/apache/james/cli/utils/ValueWithUnit.java | Java | apache-2.0 | 4,070 |
package eu.amova.cloud.platform.service.security.dao;
import eu.amova.cloud.platform.service.security.persistence.Privilege;
import org.apache.commons.logging.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframewor... | suikast42/microsevices | springboot/cloud-enterprise-platform/cloud-enterprise-platform-security/src/main/java/eu/amova/cloud/platform/service/security/dao/PrivilegeRepositoryImpl.java | Java | apache-2.0 | 2,451 |
package com.example.chengqi.mycoderepo.expert;
/**
* Created by archermind on 12/23/15.
*/
public class GameData {
private float radius1;
private final int incre1 = 1;
private float radius2;
private final int incre2 = 2;
public GameData() {
radius1 = 0;
radius2 = 0;
}
pu... | firstbytegithub/MyCodeRepo | app/src/main/java/com/example/chengqi/mycoderepo/expert/GameData.java | Java | apache-2.0 | 873 |
/*
* Copyright 2015 NAVER Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | masonmei/java-agent | plugins/thrift/src/main/java/com/baidu/oped/apm/plugin/thrift/ThriftScope.java | Java | apache-2.0 | 849 |
package com.eugenewyj.samples.base.javassistproxy;
import javassist.util.proxy.MethodHandler;
import javassist.util.proxy.ProxyFactory;
import javassist.util.proxy.ProxyObject;
/**
* @since 2017/8/31
*/
public class HelloServiceJavassist {
public void sayHello(String name) {
System.err.println("hello " ... | eugenewyj/eugene-webapp-samples | base-sample/src/main/java/com/eugenewyj/samples/base/javassistproxy/HelloServiceJavassist.java | Java | apache-2.0 | 1,501 |
package cn.felord.wepay.ali.sdk.api.request;
import java.util.Map;
import cn.felord.wepay.ali.sdk.api.AlipayRequest;
import cn.felord.wepay.ali.sdk.api.internal.util.AlipayHashMap;
import cn.felord.wepay.ali.sdk.api.response.AlipayTradeQueryResponse;
import cn.felord.wepay.ali.sdk.api.AlipayObject;
/**
* ALIPAY API... | NotFound403/WePay | src/main/java/cn/felord/wepay/ali/sdk/api/request/AlipayTradeQueryRequest.java | Java | apache-2.0 | 4,728 |
/*
* 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/assets/BmpFontDescriptorProvider.java | Java | apache-2.0 | 1,704 |
package me.pedrazas.fhr;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author ivan
*
*/
public class PostCodeUtils {
public static final int OUTWARD = 0;
public static final int INWARD = 1;
public static final String ARE... | ipedrazas/crawlers | FHR/Java/src/main/java/me/pedrazas/fhr/PostCodeUtils.java | Java | apache-2.0 | 2,650 |
/*
* ice4j, the OpenSource Java Solution for NAT and Firewall Traversal.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... | mondain/ice4j | src/main/java/org/ice4j/message/Message.java | Java | apache-2.0 | 51,829 |
/**
* 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... | rvadali/fb-raid-refactoring | src/mapred/org/apache/hadoop/mapred/TaskMemoryManagerThread.java | Java | apache-2.0 | 24,478 |
/*
* 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... | icecp/icecp | icecp-node/src/main/java/com/intel/icecp/node/security/crypto/signature/dsa/Sha1withDsaScheme.java | Java | apache-2.0 | 1,053 |
/*
* 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-rds/src/main/java/com/amazonaws/services/rds/model/transform/DBClusterQuotaExceededExceptionUnmarshaller.java | Java | apache-2.0 | 1,619 |
/*
* Copyright 2009-2011 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... | chelu/jdal | core/src/main/java/org/jdal/ui/bind/ConfigurableBinderFactory.java | Java | apache-2.0 | 4,227 |
/*
* Copyright (C) 2008 OpenIntents.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | pacificIT/filemanager | FileManager/src/org/openintents/util/MenuIntentOptionsWithIcons.java | Java | apache-2.0 | 2,347 |
package Algorithms.Implementation.ServiceLane;
import java.util.Scanner;
/**
* @className Solution
* @description https://www.hackerrank.com/challenges/service-lane
* @author dair
* @date May 24, 2016
*
*/
public class Solution {
public static void main(String[] args) {
Scanner in = n... | drz0910/hackerrank | src/Algorithms/Implementation/ServiceLane/Solution.java | Java | apache-2.0 | 920 |
/*
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/coretelephony/enums/Enums.java | Java | apache-2.0 | 1,068 |
package com.whc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Chapter3Application {
public static void main(String[] args) {
SpringApplication.run(Chapter3Application.class, args);
}
}
| cubes94/spring-boot-test | spring-boot-chapter3/src/main/java/com/whc/Chapter3Application.java | Java | apache-2.0 | 314 |
/*
* Copyright 2013-2018 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... | euler-projects/euler-common | euler-common-util/src/test/java/org/eulerframework/common/StringUtilsTest.java | Java | apache-2.0 | 1,363 |
/*
* 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... | android-art-intel/marshmallow | art-extension/opttests/src/OptimizationTests/regression/test105871/Main.java | Java | apache-2.0 | 1,970 |
package amu.zhcet.security.permission;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.access.expression.SecurityExpressionRoot;
import org.springframework.security.access.expression.method.MethodSecurityExpressionOperations;
import org.springframework.security.core.Authentication;
@Slf4j
public... | zhcet-amu/zhcet-web | src/main/java/amu/zhcet/security/permission/DomainPermissionExpression.java | Java | apache-2.0 | 1,291 |
/*
* 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... | lsmaira/gradle | subprojects/core/src/main/java/org/gradle/api/internal/initialization/loadercache/DefaultClassLoaderCache.java | Java | apache-2.0 | 9,842 |
/*-
* #%L
* utils-assertor
* %%
* Copyright (C) 2016 - 2018 Gilles Landel
* %%
* 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... | Gilandel/utils-assertor | src/main/java/fr/landel/utils/assertor/commons/ConstantsAssertor.java | Java | apache-2.0 | 23,067 |
/*
* (C) Copyright IBM Corp. 2019, 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | watson-developer-cloud/java-sdk | natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/model/DocumentSentimentResults.java | Java | apache-2.0 | 1,235 |
/*
* Copyright 2014-2020 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... | codecentric/spring-boot-admin | spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/config/AdminServerHazelcastAutoConfiguration.java | Java | apache-2.0 | 3,898 |
package com.github.igorsuhorukov.groovy.executor.settings;
import java.io.Serializable;
import java.util.Map;
public class ScriptSettingsBuilder {
private String scriptPath;
private String scriptSource;
private Map<String, String> systemProperties;
private Map<String, Serializable> variables;
priv... | igor-suhorukov/groovy-grape-aether | src/main/java/com/github/igorsuhorukov/groovy/executor/settings/ScriptSettingsBuilder.java | Java | apache-2.0 | 1,203 |
/*
* Copyright 2013 i'm SpA
*
* 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 w... | imspa/NFC-Lottery | NFCLottery/src/main/java/it/imwatch/nfclottery/DataHelper.java | Java | apache-2.0 | 10,928 |
/*
* 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 ... | RedSeal-co/incubator-tinkerpop | gremlin-groovy/src/test/java/org/apache/tinkerpop/gremlin/groovy/jsr223/GremlinGroovyScriptEngineTypeCheckedTest.java | Java | apache-2.0 | 5,217 |
/*
* Copyright 2011 Chad Retz
*
* 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... | cretz/gwt-node | src/org/gwtnode/core/node/fs/WriteStreamOptions.java | Java | apache-2.0 | 1,793 |
/*
* 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-personalize/src/main/java/com/amazonaws/services/personalize/model/transform/DatasetSchemaMarshaller.java | Java | apache-2.0 | 3,284 |
/*
* 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 ... | ist-dresden/sling | bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrProviderStateFactory.java | Java | apache-2.0 | 14,970 |
package com.segal.mongorest.example.controller;
import com.segal.mongorest.core.service.CrudService;
import com.segal.mongorest.example.pojo.Author;
import com.segal.mongorest.web.rest.DocumentController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation... | jeffsegal/mongo-rest | mongo-rest-example/src/main/java/com/segal/mongorest/example/controller/AuthorController.java | Java | apache-2.0 | 863 |