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 |
|---|---|---|---|---|---|
/**
* 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... | scranton/camel | platforms/spring-boot/components-starter/camel-braintree-starter/src/main/java/org/apache/camel/component/braintree/springboot/BraintreeComponentConfiguration.java | Java | apache-2.0 | 5,909 |
package worms.model.programs;
import java.util.List;
import worms.model.Program;
/**
* Represents the outcome of parsing a program.
* The outcome can denote success or failure.
* Depending on the outcome, the result may have a different type T.
*/
public abstract class ParseOutcome<T> {
/**
* Create a new Pa... | FearTheDust/Worm_Part3 | src-provided/worms/model/programs/ParseOutcome.java | Java | apache-2.0 | 1,349 |
/*
* Copyright 2005, Sixth and Red River Software
*
* 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... | consulo/consulo-metrics | src/com/sixrr/metrics/metricModel/MetricInstanceAbbreviationComparator.java | Java | apache-2.0 | 1,268 |
package consulo.javascript.jsx.language.psi.impl;
import com.intellij.lang.javascript.psi.impl.JSXmlLiteralExpressionImpl;
import com.intellij.patterns.StandardPatterns;
import com.intellij.psi.*;
import com.intellij.util.ProcessingContext;
import javax.annotation.Nonnull;
/**
* @author VISTALL
* @since 2019-12-17... | consulo/consulo-javascript | lang-version-impl/ecmascript-impl/src/main/java/consulo/javascript/jsx/language/psi/impl/JSXmlTagReferenceContributor.java | Java | apache-2.0 | 1,147 |
// Copyright 2020 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | googleinterns/step222-2020 | src/main/java/com/google/lecturechat/data/AuthStatus.java | Java | apache-2.0 | 4,247 |
/* Copyright 2019 Telstra Open Source
*
* 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 la... | jonvestal/open-kilda | src-java/kilda-persistence-api/src/main/java/org/openkilda/persistence/repositories/MirrorGroupRepository.java | Java | apache-2.0 | 1,739 |
/*
* 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 ... | riftsaw/riftsaw-ode | bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/channels/InvokeResponse.java | Java | apache-2.0 | 1,011 |
/*
* Copyright 2016 Chaos
*
* 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... | ChaosLeong/FxcnBeta | app/src/main/java/org/chaos/fx/cnbeta/details/DetailsFragment.java | Java | apache-2.0 | 16,407 |
/*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php
*
* Unless required by... | vivantech/kc_fixes | src/main/java/org/kuali/kra/institutionalproposal/rules/InstitutionalProposalCreditSplitAuditError.java | Java | apache-2.0 | 4,153 |
package com.renqi.takemedicine.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.renqi.takemedicine.R;
import com.renqi.takemedicine.bean.response.KitDetial... | MedicationReminder/MedicationReminder | app/src/main/java/com/renqi/takemedicine/adapter/KitDetialsAdapter.java | Java | apache-2.0 | 4,800 |
/*
* Copyright 2021 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 applica... | google/ExoPlayer | library/common/src/main/java/com/google/android/exoplayer2/text/span/TextEmphasisSpan.java | Java | apache-2.0 | 3,215 |
package jo.sm.plugins.planet.select;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.ClipboardOwner;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.Transferable;
import jo.sm.data.SparseMatrix;
import jo.sm.data.StarMade;
import jo.sm.logic.Gri... | StarMade/SMEditClassic | JoFileMods/src/jo/sm/plugins/planet/select/SelectCutPlugin.java | Java | apache-2.0 | 2,298 |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | stewartpark/presto | presto-main/src/test/java/com/facebook/presto/cost/TestSortNodeStats.java | Java | apache-2.0 | 2,466 |
package me.anky.connectid.events;
/**
* Created by Anky An on 31/10/2017.
* anky25@gmail.com
*/
public class SetToUpdateTagTable {
private int databaseId = -1;
public SetToUpdateTagTable(int databaseId) {
this.databaseId = databaseId;
}
public int getDatabaseId() {
return databas... | anky21/Remember-Names | app/src/main/java/me/anky/connectid/events/SetToUpdateTagTable.java | Java | apache-2.0 | 333 |
package org.web3j.abi.datatypes.generated;
import java.math.BigInteger;
import org.web3j.abi.datatypes.Fixed;
/**
* <p>Auto generated code.<br>
* <strong>Do not modifiy!</strong><br>
* Please use {@link org.web3j.codegen.AbiTypesGenerator} to update.</p>
*/
public class Fixed160x88 extends Fixed {
public sta... | saulbein/web3j | core/src/main/java/org/web3j/abi/datatypes/generated/Fixed160x88.java | Java | apache-2.0 | 587 |
/*
* This file is part of the PSL software.
* Copyright 2011-2015 University of Maryland
* Copyright 2013-2019 The Regents of the University of California
*
* 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... | linqs/psl | psl-core/src/main/java/org/linqs/psl/util/ListUtils.java | Java | apache-2.0 | 2,453 |
package ru.job4j.composition;
import java.util.List;
import java.util.function.Function;
/**
* @author Hincu Andrei (andreih1981@gmail.com)on 03.04.2019.
* @version $Id$.
* @since 0.1.
*/
public class Process {
private BusinessObject object;
public Process(BusinessObject object) {
this.object = ... | andreiHi/hincuA | stream_api/src/main/java/ru/job4j/composition/Process.java | Java | apache-2.0 | 994 |
/*
* 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 ... | afiantara/apache-wicket-1.5.7 | src/wicket-core/src/test/java/org/apache/wicket/markup/parser/filter/HtmlHandlerTest.java | Java | apache-2.0 | 2,234 |
package ca.uhn.fhir.test.utilities;
/*-
* #%L
* HAPI FHIR Test Utilities
* %%
* Copyright (C) 2014 - 2021 Smile CDR, 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
*
* ... | SingingTree/hapi-fhir | hapi-fhir-test-utilities/src/main/java/ca/uhn/fhir/test/utilities/ITestDataBuilder.java | Java | apache-2.0 | 8,445 |
package Tests;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Transf... | anti234/2SzemelyesLogikaiJatek | src/test/java/Tests/EredmenyKezeloTest.java | Java | apache-2.0 | 2,654 |
package org.cucina.engine.server.communication;
/**
* JAVADOC Interface Level
*
* @author $Author: $
* @version $Revision: $
*/
public interface ConversationContext {
//String CONVERSATION_ID = "conversationId";
/**
* JAVADOC Method Level Comments
*
* @param conversationId JAVADOC.
*/
void setConversa... | cucina/opencucina | engine-server-api/src/main/java/org/cucina/engine/server/communication/ConversationContext.java | Java | apache-2.0 | 539 |
package ru.job4j.map;
import java.util.Calendar;
import java.util.Objects;
/**
* Class User.
* @author shustovakv (mailto: shustovakv@mail.ru)
* @since 04.09.2018
*/
public class User {
private String name;
private int children;
private Calendar birthday;
@Override
public int hashCode() {
... | Spirka/shustovakv | chapter_004/src/main/java/ru/job4j/map/User.java | Java | apache-2.0 | 909 |
package com.rivendell.rxdemo;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android... | rivendell1984/RxDemo | app/src/androidTest/java/com/rivendell/rxdemo/ExampleInstrumentedTest.java | Java | apache-2.0 | 744 |
/*
* Copyright 2001-present Stephen Colebourne
*
* 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... | JodaOrg/joda-beans | src/test/java/org/joda/beans/sample/AddressResult.java | Java | apache-2.0 | 3,911 |
package cmput301.textbookhub.Views;
import android.support.v4.app.Fragment;
/**
* Created by Fred on 2016/3/2.
*/
public abstract class BaseFragment extends Fragment {
public abstract String getFragmentLabel();
public void toggleView(){}
}
| Thirteam/CMPUT301W16T13 | TextbookHub/app/src/main/java/cmput301/textbookhub/Views/BaseFragment.java | Java | apache-2.0 | 256 |
package com.tencent.shiyulu.materialdesignwheather.activities;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceActivity;
/**
* Created by shiyu on 2015/12/6.
* A {@link PreferenceActivity} that presents a set of application settings.
* <p>
* See <a href="http:/... | lushiyu5277/MaterialDesignWheather | app/src/main/java/com/tencent/shiyulu/materialdesignwheather/activities/SettingsActivity.java | Java | apache-2.0 | 944 |
// Copyright © 2013-2022 Andy Goryachev <andy@goryachev.com>
package goryachev.common.test;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/** marks code to be executed Before each @Test */
@Rete... | andy-goryachev/PasswordSafe | src/goryachev/common/test/Before.java | Java | apache-2.0 | 414 |
package com.nobigsoftware.dfalex;
import org.junit.Assert;
import org.junit.Test;
/**
* Created by Tommy Ettinger on 12/17/2016.
*/
public class CategoryTest {
@Test
public void testCategories() throws Exception
{
Assert.assertTrue(CharRange.Ll.contains('a'));
Assert.assertTrue(CharRange... | tommyettinger/dfalex | src/test/java/com/nobigsoftware/dfalex/CategoryTest.java | Java | apache-2.0 | 599 |
package batfish.grammar.juniper.interfaces;
import batfish.representation.SwitchportMode;
public class InterfaceModeFamilyUStanza extends FamilyUStanza {
private SwitchportMode _mode;
public InterfaceModeFamilyUStanza(SwitchportMode m) {
_mode = m;
}
public SwitchportMode getMode() {
return _mode;
}
@Ove... | andrenmaia/batfish | projects/batfish/src/batfish/grammar/juniper/interfaces/InterfaceModeFamilyUStanza.java | Java | apache-2.0 | 401 |
package nl.fontys.sofa.limo.api.exception;
/**
* Exception which can be thrown if a certain Service is not found.
*
* @author Sebastiaan Heijmann
*/
public class ServiceNotFoundException extends Exception {
public ServiceNotFoundException() {
}
public ServiceNotFoundException(String message) {
... | LogisticsImpactModel/LIMO | api/src/main/java/nl/fontys/sofa/limo/api/exception/ServiceNotFoundException.java | Java | apache-2.0 | 347 |
package net.lisanza.CliArgs;
/* Copyright 2000-2013 Harrie Hazewinkel. All rights reserved.*/
public interface ArgsReaderInterface {
/**
* The parser function for an array of arguments.
* @param args The arguments array to be parsed.
* throws ArgsException when the array of arguments cannot be
... | hhazewinkel/smi4j | smiparser/src/main/java/net/lisanza/CliArgs/ArgsReaderInterface.java | Java | apache-2.0 | 412 |
package net.wildbill22.draco.generation.villageHandlers;
import java.util.List;
import java.util.Random;
import net.minecraft.world.gen.structure.StructureVillagePieces.PieceWeight;
import net.minecraft.world.gen.structure.StructureVillagePieces.Start;
import net.wildbill22.draco.generation.villageComponents.VillageB... | DracoAnimus/Coding | src/main/java/net/wildbill22/draco/generation/villageHandlers/BaronCastleCreationHandler.java | Java | apache-2.0 | 1,094 |
/*
* Copyright 2005-2007 The Kuali Foundation
*
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless require... | sbower/kuali-rice-1 | impl/src/main/java/org/kuali/rice/kew/rule/xmlrouting/GenericXMLRuleAttribute.java | Java | apache-2.0 | 1,253 |
/*
* 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... | joel-costigliola/assertj-core | src/test/java/org/assertj/core/api/iterable/IterableAssert_extracting_Test.java | Java | apache-2.0 | 34,435 |
/*
* 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 ... | phrocker/accumulo | core/src/main/java/org/apache/accumulo/core/file/keyfunctor/KeyFunctor.java | Java | apache-2.0 | 1,206 |
/******************************************************************************
* *
* Copyright 2017 Subterranean Security *
* *
... | Subterranean-Security/Crimson | src/main/java/com/subterranean_security/crimson/viewer/ui/screen/controlpanels/client/torrent/Torrent.java | Java | apache-2.0 | 2,366 |
/*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 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/li... | susinda/product-iots | modules/integration/tests-integration/src/test/java/org/wso2/iot/integration/mobileDevice/MobileDeviceManagement.java | Java | apache-2.0 | 4,237 |
package fr.javatronic.blog.massive.annotation2;
import fr.javatronic.blog.processor.Annotation_002;
@Annotation_002
public class Class_833 {
}
| lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation2/Class_833.java | Java | apache-2.0 | 145 |
/*
* 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/mimetypes/RegisterMimeTypeExtension.java | Java | apache-2.0 | 994 |
/*
* Copyright 2015 Ross Binden
*
* 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 ... | alyphen/ld33 | ld33-common/src/main/java/com/seventh_root/ld33/common/network/packet/serverbound/PlayerQuitServerBoundPacket.java | Java | apache-2.0 | 798 |
package xyz.zimuju.basekit.divider;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.v4.content.ContextCompat;
import android.support.v7.w... | Yumore/YuanYuan | Basekit/src/main/java/xyz/zimuju/basekit/divider/RecycleViewDivider.java | Java | apache-2.0 | 4,694 |
/*
* 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... | tebriel/elasticsearch | core/src/test/java/org/elasticsearch/index/query/plugin/CustomQueryParserIT.java | Java | apache-2.0 | 5,775 |
/*
* Copyright (c) 2016 Shadow Technical Systems, LLC. Contact ceo@shadowsystems.tech for usage rights.
*/
package tech.shadowsystems.holo.api;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.entity.ArmorStand;
import org.bukkit.entity.EntityType;
import tech.shadows... | JordanOsterberg/Holo | src/main/java/tech/shadowsystems/holo/api/Hologram.java | Java | apache-2.0 | 6,064 |
/**
* Copyright (C) 2009-2015 Dell, Inc.
* See annotations for authorship information
*
* ====================================================================
* 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 co... | dasein-cloud/dasein-cloud-utils | src/main/java/org/dasein/cloud/utils/requester/streamprocessors/JsonStreamToObjectProcessor.java | Java | apache-2.0 | 2,155 |
package com.hubspot.baragon.service.views;
import static com.google.common.base.Preconditions.checkNotNull;
import io.dropwizard.views.View;
import com.hubspot.baragon.service.config.BaragonConfiguration;
import com.google.common.base.Optional;
public class IndexView extends View {
private final String appRoot;
... | evertrue/Baragon | BaragonService/src/main/java/com/hubspot/baragon/service/views/IndexView.java | Java | apache-2.0 | 2,214 |
package org.wso2.carbon.event.input.adaptor.mqtt.internal.util;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken;
import org.eclipse.paho.client.mqttv3.MqttCallback;
import org.eclipse.paho.client.mqttv3.MqttClient;
import org... | ragavanthiru/carbon-event-processing | components/adaptors/event-input-adaptor/org.wso2.carbon.event.input.adaptor.mqtt/src/main/java/org/wso2/carbon/event/input/adaptor/mqtt/internal/util/MQTTAdaptorListener.java | Java | apache-2.0 | 5,200 |
package javaComoProgramar.cap22;
public class Exercicio22_10
{
public static void main(String[] args)
{
StackComposition<Character> stack = new StackComposition<Character>();
String text = javax.swing.JOptionPane.showInputDialog("Entre com uma frase:");
char[] letras = text.toCharArray();
for(in... | wesleyegberto/study | ExerciciosLivros/src/javaComoProgramar/cap22/Exercicio22_10.java | Java | apache-2.0 | 497 |
/*******************************************************************************
* Copyright 2012 EMBL-EBI, Hinxton outstation
*
* 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
*
* h... | enasequence/sequencetools | src/test/java/uk/ac/ebi/embl/api/validation/fixer/entry/ContoAGPFixTest.java | Java | apache-2.0 | 9,902 |
package cl.toki.dc.util;
import cl.toki.dc.actor.objetoscolisionables.Cuchillo;
import cl.toki.dc.actor.objetoscolisionables.Perro;
import cl.toki.dc.actor.objetoscolisionables.Tarro;
import cl.toki.dc.interfaces.JuegoCore;
import cl.toki.dc.interfaces.Objeto;
import com.badlogic.gdx.math.MathUtils;
public... | JFranciscoGarcia/detencion-ciudadana | core/src/cl/toki/dc/util/ObjetoUtil.java | Java | apache-2.0 | 1,051 |
package org.kuali.rice.krms.api.engine;
import java.io.Serializable;
import org.apache.commons.lang.builder.CompareToBuilder;
/**
* Specifies name and type for Terms.
* @author gilesp
*/
public final class TermSpecification implements Comparable<TermSpecification>, Serializable {
private static final long seria... | sbower/kuali-rice-1 | krms/api/src/main/java/org/kuali/rice/krms/api/engine/TermSpecification.java | Java | apache-2.0 | 2,259 |
package bankdroid.start.auth;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view... | kuc/bankdroid | bankdroid.start/src/bankdroid/start/auth/AuthStartActivity.java | Java | apache-2.0 | 6,210 |
/*
* Copyright (C) 2011 Johan Nilsson <http://markupartist.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 require... | victorhaggqvist/sthlmtraveling | sthlmtraveling/src/main/java/com/markupartist/sthlmtraveling/provider/JourneysProvider.java | Java | apache-2.0 | 12,415 |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | joewalnes/idea-community | java/java-impl/src/com/intellij/codeInspection/ex/StandardInspectionToolsProvider.java | Java | apache-2.0 | 5,951 |
/*
* 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 ... | mesutcelik/hazelcast | hazelcast/src/main/java/com/hazelcast/client/impl/protocol/codec/AtomicRefCompareAndSetCodec.java | Java | apache-2.0 | 5,674 |
/*
* Copyright 2017 The Hyve and King's College London
*
* 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... | RADAR-CNS/RADAR-Commons | radar-commons-server/src/test/java/org/radarbase/config/ServerConfigTest.java | Java | apache-2.0 | 3,275 |
/**
* 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 ... | AlexBischof/assertj-core | src/test/java/org/assertj/core/error/ShouldBeOfClassIn_Test.java | Java | apache-2.0 | 1,712 |
package com.yumodev.glide;
import android.view.View;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.yumo.demo.view.YmTestFragment;
import com.yumodev.glide.test.TestView1;
/**
*
* [ Android图片加载框架最全解析(一),Glide的基本用法](http://blog.csdn.net/guolin_blog/article/details/53759439)
* Created ... | YumoDevTest/AndroidOpenTest | glide/src/main/java/com/yumodev/glide/TestBaseGlideView.java | Java | apache-2.0 | 2,665 |
/*
* Copyright (C) 2012 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... | Organ-why/Zhonghe | ShiAnGou/lib_base/src/main/java/com/zhonghe/lib_base/widget/FragmentTabHost.java | Java | apache-2.0 | 10,656 |
package com.javaForTesters.chap9.forloop;
import org.junit.Test;
import static junit.framework.TestCase.assertEquals;
public class LearnfoLoopClass {
}
| YuriyJurayev/JavaForTesters | src/test/java/com/javaForTesters/chap9/forloop/LearnfoLoopClass.java | Java | apache-2.0 | 157 |
package ru.noties.parcelable.obj;
import ru.noties.parcelable.ParcelGen;
/**
* Created by Dimitry Ivanov on 12.10.2015.
*/
@ParcelGen
public class SomeOtherAnnotatedParcelable {
private long someLong;
public long getSomeLong() {
return someLong;
}
public SomeOtherAnnotatedParcelable setSo... | noties/ParcelGen | sample/src/main/java/ru/noties/parcelable/obj/SomeOtherAnnotatedParcelable.java | Java | apache-2.0 | 794 |
package io.teknek.metric;
import io.teknek.model.ITuple;
import io.teknek.model.Operator;
public class OperatorWithMetrics extends Operator {
@Override
public void handleTuple(ITuple tuple) {
getMetricRegistry().meter("a.b").mark();
getMetricRegistry().meter(getPath() + ".processed").mark();
getMetri... | edwardcapriolo/teknek-core | src/test/java/io/teknek/metric/OperatorWithMetrics.java | Java | apache-2.0 | 411 |
package org.esupportail.smsu.web.controllers.exceptionmappers;
import org.esupportail.smsu.web.Helper;
import org.esupportail.smsu.web.controllers.InvalidParameterException;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.Contr... | EsupPortail/esup-smsu | src/main/java/org/esupportail/smsu/web/controllers/exceptionmappers/InvalidParameterExceptionMapper.java | Java | apache-2.0 | 664 |
package gang.com.screencontrol.adapter;
import android.content.Context;
import java.util.List;
import gang.com.screencontrol.R;
import gang.com.screencontrol.bean.MobelBean;
/**
* Created by xiaogangzai on 2017/5/31.
*/
public class ModelAdapter extends BaseSimpleAdapter<MobelBean.BasicInfoBean> {
public Mo... | xiaoganggang/ScreenControl | app/src/main/java/gang/com/screencontrol/adapter/ModelAdapter.java | Java | apache-2.0 | 735 |
/**
*
*/
package de.arp.utils.io;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import javax.activation.MimeType;
import javax.activation.MimeTypeParseException;
import javax.activation.MimetypesFileTypeMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* This clas... | arpablo/arp-utils | src/main/java/de/arp/utils/io/MimeTypeUtils.java | Java | apache-2.0 | 4,433 |
package org.ofbiz.base.util.template;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.ofbiz.base.util.cache.UtilCache;
import freemarker.template.Configuration;
import freemarker.template.Template;
/**
* SCIPIO: New FTL cache registry that maps Configurations to UtilCache i... | ilscipio/scipio-erp | framework/base/src/org/ofbiz/base/util/template/FtlCacheRegistry.java | Java | apache-2.0 | 4,024 |
// 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.conversion.impl;
import com.intellij.conversion.CannotConvertException;
import com.intellij.conversion.XmlBasedSettings;
import org.jdom.Element;
import org.... | leafclick/intellij-community | platform/lang-impl/src/com/intellij/conversion/impl/XmlBasedSettingsImpl.java | Java | apache-2.0 | 939 |
package com.google.api.ads.dfp.jaxws.v201306;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for RateCardActionError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType... | nafae/developer | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201306/RateCardActionErrorReason.java | Java | apache-2.0 | 1,161 |
package org.apache.commons.jcs.auxiliary.remote.http.client;
/*
* 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 ... | mohanaraosv/commons-jcs | commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/http/client/RemoteHttpClientListener.java | Java | apache-2.0 | 1,913 |
// 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 icons;
import com.intellij.openapi.util.IconLoader;
import javax.swing.*;
/**
* NOTE THIS FILE IS AUTO-GENERATED
* DO NOT EDIT IT BY HAND, run "Generate icon classes"... | paplorinc/intellij-community | platform/vcs-log/impl/gen/icons/VcsLogIcons.java | Java | apache-2.0 | 1,378 |
/*
* (c) Copyright 2019 Palantir Technologies 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 ... | palantir/atlasdb | atlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceGetRowKeysInRangeTest.java | Java | apache-2.0 | 6,493 |
/*
* 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 ... | jrwest/cassandra | src/java/org/apache/cassandra/service/StorageServiceMBean.java | Java | apache-2.0 | 40,630 |
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | gravitee-io/gravitee-definition | jackson/src/main/java/io/gravitee/definition/jackson/datatype/services/dynamicproperty/ser/http/HttpDynamicPropertyProviderConfigurationSerializer.java | Java | apache-2.0 | 2,592 |
package org.elasticsearch.api.demo.query;
import org.elasticsearch.api.demo.BaseDemo;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import org.junit.Test;
/**
* @see <a href='https://www.elastic.co/guide/en/elasticsearch/client/java-api/5.5/java-term-level-que... | felayman/elasticsearch-full | src/test/java/org/elasticsearch/api/demo/query/ExistsQueryDemo.java | Java | apache-2.0 | 640 |
package com.lanyuan.entity;
import com.lanyuan.annotation.TableSeg;
import com.lanyuan.util.FormMap;
/**
* 菜单实体表
*/
@TableSeg(tableName = "ly_resources")
public class ResFormMap extends FormMap<String,Object>{
/**
*@descript
*@author lanyuan
*@date 2015年3月29日
*@version 1.0
*/
priva... | guogaowei/lanyuan-notebook | src/main/java/com/lanyuan/entity/ResFormMap.java | Java | apache-2.0 | 386 |
package ru.citc.transaction;
import java.util.Optional;
import java.util.logging.Level;
import java.util.logging.Logger;
import static java.util.Objects.requireNonNull;
/**
* @author vladimirfx
* @since 1.0
*/
public abstract class AbstractTransactionManager implements TransactionManager {
private final Logge... | cit-consulting/unified-tx-api | src/main/java/ru/citc/transaction/AbstractTransactionManager.java | Java | apache-2.0 | 8,884 |
package com.fei.projecteuler;
import java.math.BigInteger;
import java.util.HashSet;
public class Part2 {
// Amicable numbers
private static boolean isAmicable(int n) {
int m = divisorSum(n);
return m != n && n == divisorSum(m);
}
private static int divisorSum(int m) {
in... | muyunluan/CSInterviewQuestions | src/com/fei/projecteuler/Part2.java | Java | apache-2.0 | 2,993 |
package com.pythoncat.gobang;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void a... | duckAndroid/numGobang | gobang/src/test/java/com/pythoncat/gobang/ExampleUnitTest.java | Java | apache-2.0 | 398 |
// 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 org.editorconfig.configmanagement.editor;
import com.intellij.codeInsight.daemon.LineMarkerInfo;
import com.intellij.codeInsight.daemon.LineMarkerProviderDescriptor;
impo... | leafclick/intellij-community | plugins/editorconfig/src/org/editorconfig/configmanagement/editor/EditorConfigPreviewMarkerProvider.java | Java | apache-2.0 | 6,639 |
package io.fabric8.openshift.api.model.operatorhub.v1alpha1;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInc... | fabric8io/kubernetes-client | kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1alpha1/RegistryServiceStatus.java | Java | apache-2.0 | 4,972 |
// 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.lang.ant.config.execution;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.util.ArrayUtilR... | leafclick/intellij-community | plugins/ant/src/com/intellij/lang/ant/config/execution/AntMessage.java | Java | apache-2.0 | 2,448 |
package org.fengzh.tools.web.tracking.util;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;
import org.apache.commons.dbcp.BasicDataSource;
public class DataSource extends BasicDataSource {
@Override
public synchronized void close() throws SQLException {
Driver d... | feng-zh/web-tracking | ei-tracking/src/main/java/org/fengzh/tools/web/tracking/util/DataSource.java | Java | apache-2.0 | 465 |
package sysSrc.common.login;
import sysSrc.framework.SysBaseActionForm;
public class LoginForm extends SysBaseActionForm {
private static final long serialVersionUID = 1L;
private String userId;
private String password;
private String password1;
public String getUserId() {
return userId;
}
public... | jior/glaf-gac | glaf-framework/src/main/java/sysSrc/common/login/LoginForm.java | Java | apache-2.0 | 649 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// 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: 2013.11.29 at 12:35... | ryandcarter/hybris-connector | src/main/java/org/mule/modules/hybris/model/CsTicketChangeEventStringEntryDTO.java | Java | apache-2.0 | 2,417 |
/*
* 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 ... | mesutcelik/hazelcast | hazelcast/src/main/java/com/hazelcast/internal/util/collection/PartitionIdSet.java | Java | apache-2.0 | 6,571 |
/************************************************************************
* Copyright 2014 Le Dai Cat, Tran Sy Dat
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | datts68/maas | code/mobile/MaaSUI/src/dhbk/maas/ui/tab/service/SubmitJobService.java | Java | apache-2.0 | 3,196 |
package ru.st.selenium.applogic0;
import java.util.List;
import ru.st.selenium.applogic.FilmHelper;
import ru.st.selenium.model.Film;
import ru.st.selenium.pages.MoviePage;
public class FilmHelper0 implements FilmHelper {
@Override
public void create(Film film) {
// TODO Auto-generated method stub
}
@... | eabramovich/Se-Java-17 | src/main/java/ru/st/selenium/applogic0/FilmHelper0.java | Java | apache-2.0 | 857 |
package com.ctrip.xpipe.service.migration;
import java.util.Map;
import com.ctrip.xpipe.api.codec.Codec;
import com.ctrip.xpipe.api.config.Config;
/**
* @author shyin
*
* Dec 22, 2016
*/
public enum CRedisConfig {
INSTANCE;
public static final String KEY_CREDIS_SERVEICE_ADDRESS = "credis.service.address";
p... | Yiiinsh/x-pipe | services/ctrip-service/src/main/java/com/ctrip/xpipe/service/migration/CRedisConfig.java | Java | apache-2.0 | 754 |
package com.google.api.ads.dfp.jaxws.v201408;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Lists all errors associated with the availability of billing settings based on
* proposal netw... | nafae/developer | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201408/AvailableBillingError.java | Java | apache-2.0 | 1,721 |
/*
* Copyright 2003-2019 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... | leafclick/intellij-community | plugins/InspectionGadgets/src/com/siyeh/ig/imports/StaticImportInspection.java | Java | apache-2.0 | 13,454 |
/*
* 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... | vladmm/intellij-community | platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/EditorImplTest.java | Java | apache-2.0 | 7,791 |
/*
* Copyright 2017 Young Digital Planet S.A.
*
* 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... | YoungDigitalPlanet/empiria.player | src/main/java/eu/ydp/empiria/player/client/module/button/download/view/ButtonModuleView.java | Java | apache-2.0 | 1,007 |
package java.lang;
import javascript.ScriptHelper;
/**
* The Character class wraps a value of the primitive type char in an object.
*
* @author Wolfgang Kuehn
*/
public final class Character {
public static final Class<Character> TYPE = null;
private char value;
/**
* Constructs a new... | decatur/j2js-jre | src/main/java/java/lang/Character.java | Java | bsd-2-clause | 1,896 |
package tinker.net.dongliu.apk.parser.utils.xml;
/**
* Utils method to escape xml string, copied from apache commons lang3
*
* @author Liu Dong {@literal <im@dongliu.net>}
*/
public class XmlEscaper {
/**
* <p>Escapes the characters in a {@code String} using XML entities.</p>
* @param input
* @... | shwenzhang/apk-parser | apk-parser-lib/src/main/java/tinker/net/dongliu/apk/parser/utils/xml/XmlEscaper.java | Java | bsd-2-clause | 2,615 |
/*
* 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... | tkmnet/RCRS-ADF | gradle/gradle-2.1/src/model-core/org/gradle/model/internal/core/ModelReference.java | Java | bsd-2-clause | 2,806 |
/*
* Copyright (c) 2003-2021 Lucas Holt
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of cond... | laffer1/justjournal | src/main/java/com/justjournal/core/GravatarFetcher.java | Java | bsd-2-clause | 4,137 |
package cz.metacentrum.perun.webgui.tabs.userstabs;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import ... | stavamichal/perun | perun-web-gui/src/main/java/cz/metacentrum/perun/webgui/tabs/userstabs/AddUserExtSourceTabItem.java | Java | bsd-2-clause | 8,100 |
/*
* Copyright (c) 2018, Adam <Adam@sigterm.info>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* li... | UniquePassive/runelite | runelite-mixins/src/main/java/net/runelite/mixins/VarbitMixin.java | Java | bsd-2-clause | 2,637 |
package org.pm4j.swing.pb.internal.util;
import javax.swing.text.AttributeSet;
import javax.swing.text.BadLocationException;
import javax.swing.text.DocumentFilter;
//FIXME: MaxLenDocumentFilter: silently filter or feedback ("beep") on error?
public class MaxLenDocumentFilter extends DocumentFilter {
public final i... | pm4j/org.pm4j | pm4j-swing/src/main/java/org/pm4j/swing/pb/internal/util/MaxLenDocumentFilter.java | Java | bsd-2-clause | 1,162 |
package us.fok.lenzenslijper.persistence.transactions.data;
import us.fok.lenzenslijper.models.dto.ReleasedRevisionSummary;
import java.util.List;
public class RevisionPageData {
private final List<ReleasedRevisionSummary> revisions;
private final int count;
public RevisionPageData(List<ReleasedRevisio... | fokus-llc/lenzenslijper | src/main/java/us/fok/lenzenslijper/persistence/transactions/data/RevisionPageData.java | Java | bsd-2-clause | 575 |
// SECTION-START[License Header]
// <editor-fold defaultstate="collapsed" desc=" Generated License ">
/*
* Java Object Management and Configuration
* Copyright (C) Christian Schulte, 2005-206
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, ar... | JOMC/JOMC-Standalone | jomc-standalone-ri/src/main/java/org/jomc/standalone/ri/naming/java/javaURLContextFactory.java | Java | bsd-2-clause | 4,864 |