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 Mat Booth <mbooth@apache.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... | mbooth101/calameo-api | src/main/java/uk/co/matbooth/calameo/Publication.java | Java | apache-2.0 | 2,668 |
/*
Derby - Class org.apache.derby.jdbc.EmbedXAResource
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... | kavin256/Derby | java/engine/org/apache/derby/jdbc/EmbedXAResource.java | Java | apache-2.0 | 37,404 |
package drive.change.services.apply;
import database.repository.FileRepository;
import drive.change.model.CustomChange;
import io.File;
import org.junit.Before;
import org.junit.Test;
import org.neo4j.graphdb.Node;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static or... | davidmaignan/JDrive | src/test/java/drive/change/services/apply/UntrashServiceTest.java | Java | apache-2.0 | 2,190 |
/*
* Copyright 2016 Girish Kamath
*
* 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... | rhoadster91/android-siesta | library/src/main/java/com/rhoadster91/android/siesta/api/capability/Deletable.java | Java | apache-2.0 | 850 |
package com.researchspace.api.clientmodel;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson... | rspace-os/rspace-client-java-model | src/test/java/com/researchspace/api/clientmodel/FormPostTest.java | Java | apache-2.0 | 1,969 |
/*
* Copyright 2013-2018 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* 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... | GuardTime/ksi-java-sdk | ksi-api/src/test/java/com/guardtime/ksi/unisignature/inmemory/AggregationHashChainTest.java | Java | apache-2.0 | 4,881 |
/*
* 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 ... | mohanaraosv/commons-configuration | src/test/java/org/apache/commons/configuration2/plist/TestPropertyListParser.java | Java | apache-2.0 | 3,117 |
package org.globsframework.utils.exceptions;
public class TooManyItems extends GlobsException {
public TooManyItems(Exception e) {
super(e);
}
public TooManyItems(String message) {
super(message);
}
public TooManyItems(String message, Throwable cause) {
super(message, caus... | MarcGuiot/globsframework | src/main/java/org/globsframework/utils/exceptions/TooManyItems.java | Java | apache-2.0 | 332 |
/**
* 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... | nvoron23/incubator-drill | exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/parser/SqlCreateTable.java | Java | apache-2.0 | 3,952 |
/*
* 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")... | BBVA-CIB/APIRestGenerator | core/src/main/java/com/bbva/kltt/apirest/core/launcher/GlobalLauncher.java | Java | apache-2.0 | 10,237 |
package unifiwrapper.http;
/**
* List of request URL used to communicate to the UNIFI controller.
*
* @author Ciro Baron Neto
*
*/
public class UnifiAddresses {
public static String API = "/api";
public static String LOGIN = API + "/login";
public static String SITE_NAME = "/s";
public static String DEFA... | cirola2000/Unifi-Java-API | src/main/java/unifiwrapper/http/UnifiAddresses.java | Java | apache-2.0 | 1,079 |
/**
* 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 not u... | datasynctools/sync-tools-prototype | db2dbseed/src/main/java/tools/datasync/db2db/dao/SyncDao.java | Java | apache-2.0 | 940 |
package org.lvu.customize;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PixelFormat;
import android.graphics.... | wuyr/LuZhiShen | app/src/main/java/org/lvu/customize/MaterialProgressDrawable.java | Java | apache-2.0 | 24,010 |
package org.sparkline.hive.udafs;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.hive.ql.exec.Description;
import org.apache.hadoop.hive.ql.exec.UDFArgumentTypeException;
import org.apache.hadoop.hive.ql.parse.SemanticException;
import org.apache.hadoop.h... | SparklineData/SparklineFunctions | src/main/java/org/sparkline/hive/udafs/RoaringBitmapResolver.java | Java | apache-2.0 | 2,956 |
/*
* Copyright (c) 2012 Basho Technologies, Inc. All Rights Reserved.
*
* This file is provided 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... | basho-labs/riakcs-java-client | src/main/java/examples/com/basho/riakcs/client/StatisticOperations.java | Java | apache-2.0 | 1,652 |
/*
* 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-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/DescribeEndpointResult.java | Java | apache-2.0 | 36,819 |
/*
*
* Copyright 2016-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | springfox/springfox | springfox-spring-integration/src/main/java/springfox/documentation/spring/web/SpringfoxTemplateFormat.java | Java | apache-2.0 | 1,055 |
package com.dim4tech.nest.service.loader;
import com.dim4tech.nest.common.ExpectedObjectsBuilder;
import com.dim4tech.nest.constant.Default;
import com.dim4tech.nest.domain.payload.DeviceId;
import com.dim4tech.nest.utils.Endpoints;
import com.sun.net.httpserver.HttpServer;
import org.junit.Test;
import java.io.IOExc... | DmitryErmolchik/NestIntegration | nest-cloud/src/test/java/com/dim4tech/nest/service/loader/ThermostatLoaderTest.java | Java | apache-2.0 | 4,214 |
// Copyright 2000-2019 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.notification.impl;
import com.intellij.application.Topics;
import com.intellij.codeInsight.hint.TooltipController;
import com.intellij.icons.AllIcons;
import... | paplorinc/intellij-community | platform/platform-impl/src/com/intellij/notification/impl/NotificationsManagerImpl.java | Java | apache-2.0 | 50,764 |
/*
* 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... | rometools/rome | rome-modules/src/main/java/com/rometools/modules/opensearch/impl/OpenSearchModuleImpl.java | Java | apache-2.0 | 4,114 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/errors/batch_job_error.proto
package com.google.ads.googleads.v10.errors;
/**
* <pre>
* Container for enum describing possible batch job errors.
* </pre>
*
* Protobuf type {@code google.ads.googleads.v10.errors.BatchJ... | googleads/google-ads-java | google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/errors/BatchJobErrorEnum.java | Java | apache-2.0 | 22,289 |
// Copyright 2022 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 writi... | googleads/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202202/DisapproveCreativeReviews.java | Java | apache-2.0 | 1,437 |
package com.conmigo.app.form;
import java.time.LocalDateTime;
public class GenericAuditForm {
protected Boolean enable;
protected Long createdBy;
protected LocalDateTime createdDate;
public Boolean getEnable() {
return enable;
}
public void setEnable(final Boolean enable) {
t... | deesebc/conmigo | src/main/java/com/conmigo/app/form/GenericAuditForm.java | Java | apache-2.0 | 704 |
// Copyright 2005-2011 Jason Aaron Osgood, Jean-Francois Poilpret
//
// 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... | pgdurand/jGAF | src/com/plealog/prefs4j/implem/ui/tools/ComponentizerLayout.java | Java | apache-2.0 | 9,716 |
/*
* Copyright 2015-2016 OpenCB
*
* 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 ... | javild/opencga | opencga-storage/opencga-storage-core/src/main/java/org/opencb/opencga/storage/core/alignment/json/AlignmentCoverageJsonDataReader.java | Java | apache-2.0 | 8,090 |
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | talsma-ict/umldoclet | src/plantuml-asl/src/net/sourceforge/plantuml/cucadiagram/dot/Graphviz.java | Java | apache-2.0 | 1,406 |
/**
*
*/
package co.sabi11.base;
/**
* @author Sabi
*
*/
public abstract class Beverage {
// default value of description, it'll be overwritten
protected String description = "Uknown Beverage";
// return a description of item
public String getDescription() {
return description;
}
// Cost method need... | SabiKov/Java_Design_Pattern_OODP | headfirstdesignpatterns/decorator/src/co/sabi11/base/Beverage.java | Java | apache-2.0 | 392 |
package com.afrozaar.wordpress.wpapi.v2.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown ... | Afrozaar/wp-api-v2-client-java | src/main/java/com/afrozaar/wordpress/wpapi/v2/model/Media.java | Java | apache-2.0 | 5,727 |
/*
* 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 | Source/Plugins/Core/com.equella.core/src/com/tle/core/taxonomy/institution/migration/inplace/v41/TaxonomyTermAttributeMigration.java | Java | apache-2.0 | 3,285 |
package com.inn.commands;
/*
* #%L
* trusthings-client-simple
* %%
* Copyright (C) 2015 COMPOSE 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.apach... | vujasm/trusthings-compose | trusthings-client-simple/src/main/java/com/inn/commands/CommandScriptUpdateAltID.java | Java | apache-2.0 | 1,908 |
package com.example.component_id;
import arez.annotations.ArezComponent;
import arez.annotations.ComponentId;
@ArezComponent( allowEmpty = true )
abstract class IntComponentId
{
@ComponentId
public int getId()
{
return 0;
}
}
| realityforge/arez | processor/src/test/fixtures/input/com/example/component_id/IntComponentId.java | Java | apache-2.0 | 240 |
/*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 Foundatio... | HuangLS/neo4j | community/kernel/src/test/java/org/neo4j/kernel/api/TransactionStatementSharingTest.java | Java | apache-2.0 | 4,490 |
/*
* 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 | Source/Plugins/Core/com.equella.core/src/com/tle/common/qti/entity/enums/QtiSessionStatus.java | Java | apache-2.0 | 985 |
package uk.co.tekkies.readings.activity;
import uk.co.tekkies.readings.R;
import uk.co.tekkies.readings.util.Analytics;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v4.app.FragmentActivity;
public class BaseActivity extends Fra... | tekkies/Readings | app/src/main/java/uk/co/tekkies/readings/activity/BaseActivity.java | Java | apache-2.0 | 1,339 |
/*
* Copyright 2014 Benoît Prioux
*
* 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... | binout/jaxrs-unit | jaxrs-unit-jersey/src/test/java/io/github/binout/jaxrsunit/jersey/HelloJerseyTest.java | Java | apache-2.0 | 742 |
/*
* 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-compute/alpha/1.31.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java | Java | apache-2.0 | 4,682 |
/**
* Copyright (c) 2012, Thilo Planz. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Apache License, Version 2.0
* as published by the Apache Software Foundation (the "License").
*
* Unless required by applicable law or agreed to in writ... | thiloplanz/jmockmongo | src/main/java/jmockmongo/commands/FindAndModify.java | Java | apache-2.0 | 2,025 |
package com.github.takezoe.xlsbeans.xssfconverter.impl.jxl;
import com.github.takezoe.xlsbeans.xssfconverter.NullWSheetImpl;
import com.github.takezoe.xlsbeans.xssfconverter.WSheet;
import com.github.takezoe.xlsbeans.xssfconverter.WWorkbook;
import jxl.Sheet;
import jxl.Workbook;
/**
* Workbook wrapper for ... | takezoe/xlsbeans | src/main/java/com/github/takezoe/xlsbeans/xssfconverter/impl/jxl/JxlWWorkbookImpl.java | Java | apache-2.0 | 1,350 |
package ch.shaktipat.saraswati.pobject;
public interface PSharedObjectHandle extends PSharedObjectCommon
{
public < T > T get();
}
| liquid-mind/warp | src/main/external/java/ch/shaktipat/saraswati/pobject/PSharedObjectHandle.java | Java | apache-2.0 | 133 |
/*
* Copyright 2016, Liraz Shilkrot
*
* 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 ... | liraz/gwt-backbone | gwt-backbone-core/src/main/java/org/lirazs/gbackbone/client/core/js/JsMap.java | Java | apache-2.0 | 3,180 |
package com.onextent.android.codeable;
public class CodeableName implements Comparable<CodeableName> {
protected final String name;
public CodeableName(String name) {
if (name == null) throw new java.lang.NullPointerException("no name");
this.name = name;
}
@Override
public ... | navicore/augie | libraries/Augie/src/main/java/com/onextent/android/codeable/CodeableName.java | Java | apache-2.0 | 803 |
/*
* Copyright 2010-2016 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... | trasa/aws-sdk-java | aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/AWSLambdaClient.java | Java | apache-2.0 | 87,706 |
package logicaDeNegocios;
import java.io.DataOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import Integracion.BaseDeDatos;
import Integracion.Visual;
/*
* Revisar si dejar o no anadirCurso (si hacerla bidireccional o no ) y el atributo ... | joserc269510/profesorDigitalCognitivoTheWatsonAvenger | src/main/java/logicaDeNegocios/Estudiante.java | Java | apache-2.0 | 6,353 |
/*
* 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
* distribute... | opentelecoms-org/jsmpp | jsmpp/src/main/java/org/jsmpp/bean/SarMsgRefNumber.java | Java | apache-2.0 | 1,522 |
package org.ovirt.engine.core.dal.dbbroker;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.ovirt.engine.core.common.businessentities.RoleType;
import org.ovirt.engine.core.common.businessentities.Role;
import org.ovirt.engine.core.compat.Guid;
import org.springframework.jdbc.core.simple.Parameter... | jbeecham/ovirt-engine | backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/RolesRowMapper.java | Java | apache-2.0 | 1,016 |
package com.zdf.imageloader.progress.style;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.LinearGradient;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.Shader;
import android.graphics.SweepGradient;
import a... | bbssyyuui/zhihu | imageloader/src/main/java/com/zdf/imageloader/progress/style/CircleProgress.java | Java | apache-2.0 | 9,081 |
/*
* Copyright 2012 Alexey Hanin
*
* 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... | ahanin/getrest | getrest/src/main/java/getrest/android/client/RequestCallback.java | Java | apache-2.0 | 898 |
/*
* Copyright 2011 robert.cooper.
*
* 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 ... | rometools/rome | rome-modules/src/main/java/com/rometools/modules/activitystreams/types/Place.java | Java | apache-2.0 | 1,727 |
package com.bigmouth.app.util;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.Context;
import android.view.View.OnClickListener;
/**
* 提示框工具类
*
* @author 程才
* @date 2014-4-3
*/
public final class DialogUtil {
private DialogUtil() {
}
public static LoadingProgressD... | chengxiaocai/bigMouth | bigmouth/src/com/bigmouth/app/util/DialogUtil.java | Java | apache-2.0 | 446 |
/*
* 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.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/MySQLUtils.java | Java | apache-2.0 | 6,177 |
package com.yahoo.athenz.common.utils;
import java.io.FileInputStream;
import java.io.InputStream;
import java.net.Socket;
import java.security.KeyStore;
import java.security.Principal;
import java.security.PrivateKey;
import java.security.cert.X509Certificate;
import javax.net.ssl.KeyManager;
import javax.net.ssl.Ke... | gurleen-gks/athenz | libs/java/client_common/src/main/java/com/yahoo/athenz/common/utils/SSLUtils.java | Java | apache-2.0 | 11,067 |
package us.dot.its.jpo.ode.plugin.j2735.builders;
import com.fasterxml.jackson.databind.JsonNode;
import us.dot.its.jpo.ode.plugin.j2735.J2735BsmPart2Content;
import us.dot.its.jpo.ode.plugin.j2735.J2735SpecialVehicleExtensions;
public class SpecialVehicleExtensionsBuilder {
private SpecialVehicleExtensionsBuild... | hmusavi/jpo-ode | jpo-ode-plugins/src/main/java/us/dot/its/jpo/ode/plugin/j2735/builders/SpecialVehicleExtensionsBuilder.java | Java | apache-2.0 | 1,190 |
/*
* 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-applicationautoscaling/src/main/java/com/amazonaws/services/applicationautoscaling/AWSApplicationAutoScalingAsync.java | Java | apache-2.0 | 35,541 |
package BicolorableGraph;
import java.util.ArrayList;
import java.util.Arrays;
public class Minimal {
public static void printList(ArrayList<int[]> list){
for (int i = 0; i < list.size(); i++) {
System.out.println(Arrays.toString(list.get(i)));
}
}
public stati... | Arles96/Proyecto-EDD1 | Project EDD1/src/BicolorableGraph/Minimal.java | Java | apache-2.0 | 3,872 |
package cn.lhfei.kafka;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class KafkaInActionApplication {
public static void main(String[] args) {
SpringApplication.run(KafkaInActionApplication.class, args);
}
}... | lhfei/kafka-in-action | src/main/java/cn/lhfei/kafka/KafkaInActionApplication.java | Java | apache-2.0 | 321 |
/**
* 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... | terrancesnyder/oozie-hadoop2 | core/src/test/java/org/apache/oozie/executor/jpa/TestWorkflowActionsGetForJobJPAExecutor.java | Java | apache-2.0 | 2,587 |
package com.zjut.gc502.mobilephonesafeprotector.softwaremanager;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os... | ScineceHistory/MobilePhoneSafeProtector | app/src/main/java/com/zjut/gc502/mobilephonesafeprotector/softwaremanager/AppManagerActivity.java | Java | apache-2.0 | 7,473 |
/*
*
* 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"); y... | matteobertozzi/hbase | hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlockIndex.java | Java | apache-2.0 | 54,187 |
/*
* 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-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/model/transform/StartExecutionRequestProtocolMarshaller.java | Java | apache-2.0 | 2,697 |
package com.github.klane.wekanet.util;
import com.google.common.base.Preconditions;
import com.google.common.primitives.Doubles;
import weka.core.DenseInstance;
import weka.core.Instance;
import weka.core.Instances;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Lis... | klane/wann | src/main/java/com/github/klane/wekanet/util/InstanceBuilder.java | Java | apache-2.0 | 1,856 |
/**
* 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... | merlimat/pulsar | managed-ledger/src/test/java/org/apache/bookkeeper/mledger/impl/OffloadLedgerDeleteTest.java | Java | apache-2.0 | 9,071 |
/*
* Copyright (C) 2015 Square, 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 agre... | didi/DoraemonKit | Android/dokit-leakcanary/src/main/java/com/squareup/leakcanary/ActivityRefWatcher.java | Java | apache-2.0 | 2,771 |
package com.coleman.clone.stream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
/**
* be used to clone object.
*
* @author pendu0
*/
public class CloneUtil {
/**
* ret... | zouyuefu/StudyJava | src/com/coleman/clone/stream/CloneUtil.java | Java | apache-2.0 | 1,258 |
/*
* Copyright 2016 Suraj Muraleedharan (smuralee)
*
* 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... | smuralee/code-snippets | src/main/java/com/smuralee/basics/StaticTest.java | Java | apache-2.0 | 2,438 |
/*
* 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 ... | wicket-acc/wicket-autowire | src/test/java/com/github/wicket/autowire/AutoWireTester.java | Java | apache-2.0 | 1,035 |
/*
* Copyright 2000-2015 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... | MER-GROUP/intellij-community | plugins/InspectionGadgets/testsrc/com/siyeh/ig/fixes/junit/SimplifiableJUnitAssertionFixTest.java | Java | apache-2.0 | 3,248 |
/******************************************************************************
Copyright 2014 Emily Estes
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.apach... | emily-e/webframework | src/main/java/net/metanotion/web/concrete/HttpErrorGenerator.java | Java | apache-2.0 | 13,930 |
/* *****************************************************************************
* Copyright (c) 2019 Konduit K.K.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unles... | deeplearning4j/deeplearning4j | nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/NDValidation.java | Java | apache-2.0 | 12,134 |
package com.octoperf.metrics.iis.pdh.asp;
import com.octoperf.metrics.condition.IsWindows;
import com.octoperf.metrics.iis.api.asp.ASPRequestMetrics;
import com.octoperf.metrics.iis.pdh.IsIIS;
import com.octoperf.metrics.windows.pdh.api.PerfmonQueryService;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
... | OctoPerf/jmx-agent | metrics-iis-pdh/src/main/java/com/octoperf/metrics/iis/pdh/asp/PdhAspRequestMetrics.java | Java | apache-2.0 | 2,416 |
/*
* Copyright 1999-2011 Alibaba Group.
*
* 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... | lsjiguang/dangdangdotcom | dubbo-demo/dubbo-demo-consumer/src/main/java/com/alibaba/dubbo/demo/consumer/DemoAction.java | Java | apache-2.0 | 2,910 |
package test.service.exception;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import javastrava.model.StravaResponse;
import javastrava.service.exception.StravaUnknownAPIException;
/**
* Tests for {@link StravaUnknownAPIException}
*
* @author Dan Shannon
*
*/
public class StravaUnknownAPI... | danshannon/javastrava-test | src/main/java/test/service/exception/StravaUnknownAPIExceptionTest.java | Java | apache-2.0 | 1,372 |
package com.ethlo.time;
/*-
* #%L
* Internet Time Utility
* %%
* Copyright (C) 2017 - 2022 Morten Haraldsen (ethlo)
* %%
* 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... | ethlo/itu | src/main/java/com/ethlo/time/DateTime.java | Java | apache-2.0 | 9,925 |
/*
* Copyright 2005 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | manstis/drools | drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryFileLogger.java | Java | apache-2.0 | 7,889 |
/*
* 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-speech/v1/1.31.0/com/google/api/services/speech/v1/SpeechScopes.java | Java | apache-2.0 | 1,415 |
/*
* Copyright 2015 Marek Kaput
*
* 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... | jajakobyly/rustidea | src/org/rustidea/psi/RsIdentifier.java | Java | apache-2.0 | 671 |
/*
* 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 ... | greghogan/flink | flink-connectors/flink-connector-files/src/test/java/org/apache/flink/connector/file/src/FileSourceSplitStateTest.java | Java | apache-2.0 | 2,660 |
package org.ovirt.engine.api.restapi.types;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.ovirt.engine.api.model.Version;
import org.ovirt.engine.api.model.Versions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class VersionMapper {
private static final Logger l... | OpenUniversity/ovirt-engine | backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VersionMapper.java | Java | apache-2.0 | 3,842 |
// 2014-02-21
/*******************************
* AllNotHiddenFileTest
*******************************/
package poisondog.commons.vfs;
import org.apache.commons.vfs2.FileObject;
import org.apache.commons.vfs2.FileSelectInfo;
import org.apache.commons.vfs2.FileType;
import org.junit.Assert;
import org.junit.Before;
im... | poisondog/java.commons | src/test/java/poisondog/commons/vfs/AllNotHiddenFileTest.java | Java | apache-2.0 | 2,632 |
package com.vinaysshenoy.rxtodo.data.store;
import android.support.v4.util.ArrayMap;
import com.vinaysshenoy.rxtodo.data.Note;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.TimeUnit;
... | vinaysshenoy/rxtodo | app/src/main/java/com/vinaysshenoy/rxtodo/data/store/NotesStore.java | Java | apache-2.0 | 1,943 |
package com.ybook.app.util;
/**
* Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.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/license... | a642500/Ybook | app/src/main/java/com/ybook/app/util/ACache.java | Java | apache-2.0 | 25,670 |
package io.github.jbalancer.node.discoverer;
import io.github.jbalancer.node.Node;
import java.util.List;
public interface Discoverer {
/**
* Discovers list of {@link Node} for balancing based on provided balancer id.
*
* If method throws exception or returns empty list fallback/initial nodes of ... | iobestar/jbalancer | src/main/java/io/github/jbalancer/node/discoverer/Discoverer.java | Java | apache-2.0 | 561 |
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.ui.customization;
import com.intellij.icons.AllIcons;
import com.intellij.ide.IdeBundle;
import com.intellij.openapi.actionSystem.*;
import com.intellij.... | paplorinc/intellij-community | platform/platform-impl/src/com/intellij/ide/ui/customization/CustomizableActionsPanel.java | Java | apache-2.0 | 35,603 |
package com.ghx.hackaton.analytcis.instrumentation;
import java.lang.instrument.ClassFileTransformer;
import java.lang.instrument.IllegalClassFormatException;
import java.lang.instrument.Instrumentation;
import java.security.ProtectionDomain;
import java.util.*;
import javassist.*;
/**
* @author Alexey Sheukun <ash... | alexey-chumakov/performance-analytics | agent/src/main/java/com/ghx/hackaton/analytcis/instrumentation/ProfileTransformerAgent.java | Java | apache-2.0 | 4,378 |
package mx.edu.uam.practica4.control;
import mx.edu.uam.practica4.electrodomestico.Electrodomestico;
/**
*
* @author invited
*/
public abstract class ControlRemoto {
private int numBaterias;
private String tipoBaterias;
public void encender(Electrodomestico electrodomestico){
if(!electro... | JavaUAM2016/PracticasOCA | Practica4/AlfonsoLomas/JavaApp4/src/mx/edu/uam/practica4/control/ControlRemoto.java | Java | apache-2.0 | 1,179 |
/*
* Copyright (C) 2016 Thinkenterprise
*
* 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... | Thinkenterprise/spring-pcf-training | spring-pcf-application/spring-pcf-application-advanced/src/main/java/com/thinkenterprise/ApplicationConfiguration.java | Java | apache-2.0 | 1,475 |
/*
* 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... | clintongormley/elasticsearch | test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java | Java | apache-2.0 | 29,040 |
/*
* Copyright 2011 Jon S Akhtar (Sylvanaar)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | consulo/consulo-lua | src/main/java/com/sylvanaar/idea/Lua/lang/psi/resolve/ResolveUtil.java | Java | apache-2.0 | 4,337 |
package com.cloud.agent.api;
public class SecStorageSetupAnswer extends Answer {
private String _dir;
protected SecStorageSetupAnswer() {
}
public SecStorageSetupAnswer(final String dir) {
super(null, true, "success");
this._dir = dir;
}
public String get_dir() {
retu... | remibergsma/cosmic | cosmic-core/nucleo/src/main/java/com/cloud/agent/api/SecStorageSetupAnswer.java | Java | apache-2.0 | 337 |
package ca.uhn.fhir.rest.server.method;
/*
* #%L
* HAPI FHIR - Server Framework
* %%
* Copyright (C) 2014 - 2017 University Health Network
* %%
* 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 Lic... | eug48/hapi-fhir | hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/method/CountParameter.java | Java | apache-2.0 | 2,987 |
package ru.stqa.pft.addressbook.tests;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.GroupData;
import ru.stqa.pft.addressbook.model.Groups;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
impo... | tatiys2006/29GroupJavaFirstProject | addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/GroupModificationTests.java | Java | apache-2.0 | 1,246 |
/*
* 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... | crate/crate | server/src/main/java/org/elasticsearch/index/mapper/IdFieldMapper.java | Java | apache-2.0 | 4,101 |
/**
* 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... | ronny-macmaster/hadoop | hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/FSOperations.java | Java | apache-2.0 | 47,440 |
package com.tys.gobmx;
import java.util.ArrayList;
import java.util.HashMap;
import org.json.JSONArray;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import android.app.ProgressDialog;
import android.content.Context;
import android.graphic... | jargaezx/gob.mx | src/com/tys/gobmx/Mappings.java | Java | apache-2.0 | 14,050 |
package com.twu.biblioteca;
import static org.junit.Assert.*;
import org.junit.Test;
/**
* Created by nataliepollard on 12/20/15.
*/
public class BibliotecaAppTest {
@Test
public void testTest() {
assertEquals(3, 3);
}
}
| NataliePollard/twu-biblioteca-nataliepollard | test/com/twu/biblioteca/BibliotecaAppTest.java | Java | apache-2.0 | 246 |
package annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 自动装配 属性 或者 方法
* @author zss
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ZAutoWrite {
... | upup1000/spring | spring-04/src/main/java/annotation/ZAutoWrite.java | Java | apache-2.0 | 370 |
/**
*
* Copyright 2015 The Darks Grid Project (Liu lihua)
*
* 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 ... | liulhdarks/darks-grid | src/main/java/darks/grid/events/EventsHandlerFactory.java | Java | apache-2.0 | 4,961 |
package com.chen.tree;
import com.chen.utils.RandomUtils;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Queue;
/**
* @author Chenwl
* @version 1.0.0
* @date 2017/3/8
*/
public class TwoThreeTree<T extends Comparable> implements Tree<T> {
private Node root;
@Override
public ... | WalkingValleyChen/java-adt-test | src/main/java/com/chen/tree/TwoThreeTree.java | Java | apache-2.0 | 10,077 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.1... | guedeWebGate/org.openntf.base | org.openntf.base.jaxb.dxl/src/org/openntf/base/jaxb/dxl/Attachmentref.java | Java | apache-2.0 | 6,175 |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.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... | ruspl-afed/dbeaver | plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/Activator.java | Java | apache-2.0 | 2,131 |
/*
*
* * Copyright 2010-2016 OrientDB LTD (http://orientdb.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... | orientechnologies/orientdb | core/src/main/java/com/orientechnologies/orient/core/exception/OTransactionBlockedException.java | Java | apache-2.0 | 1,121 |