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 |
|---|---|---|---|---|---|
package org.ripple.bouncycastle.pqc.jcajce.provider.rainbow;
import java.security.InvalidAlgorithmParameterException;
import java.security.KeyPair;
import java.security.SecureRandom;
import java.security.spec.AlgorithmParameterSpec;
import org.ripple.bouncycastle.crypto.AsymmetricCipherKeyPair;
import org.ripple.boun... | xdv/ripple-lib-java | ripple-bouncycastle/src/main/java/org/ripple/bouncycastle/pqc/jcajce/provider/rainbow/RainbowKeyPairGeneratorSpi.java | Java | isc | 2,494 |
package openblocks.client.renderer.tileentity.tank;
import net.minecraftforge.common.util.ForgeDirection;
import openmods.utils.Diagonal;
public interface ITankConnections {
public VerticalConnection getTopConnection();
public VerticalConnection getBottomConnection();
public HorizontalConnection getHorizontalCo... | PrinceOfAmber/OpenBlocks | src/main/java/openblocks/client/renderer/tileentity/tank/ITankConnections.java | Java | mit | 416 |
package org.sql2o;
import org.sql2o.converters.Converter;
import org.sql2o.converters.ConverterException;
import org.sql2o.data.LazyTable;
import org.sql2o.data.Row;
import org.sql2o.data.Table;
import org.sql2o.data.TableResultSetIterator;
import org.sql2o.logging.LocalLoggerFactory;
import org.sql2o.logging.Logger;
... | mugizico/sql2o | core/src/main/java/org/sql2o/Query.java | Java | mit | 29,709 |
package nl.conspect.eventboot.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
/**
* Created by marten on 11-12-14.
*/
@Configuration... | Conspect/spring-boot-lab | Opdracht 6/src/main/java/nl/conspect/eventboot/config/WebConfig.java | Java | mit | 547 |
/*
* Copyright 2013 Google Inc.
* Copyright 2014-2016 the libsecp256k1 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
... | ftrader-bitcoinabc/bitcoin-abc | src/secp256k1/src/java/org/bitcoin/NativeSecp256k1.java | Java | mit | 18,095 |
package us.codecraft.learning.automata;
/**
* @author code4crafter@gmail.com
*/
public class StringReader {
class EOFException extends Exception {
}
private String string;
private int index;
public StringReader(String string) {
this.string = string;
}
public char read() thro... | amikey/jsoup-learning | src/main/java/us/codecraft/learning/automata/StringReader.java | Java | mit | 606 |
package com.jakduk.api.restcontroller;
import com.jakduk.api.common.Constants;
import com.jakduk.api.common.board.category.BoardCategory;
import com.jakduk.api.common.board.category.BoardCategoryGenerator;
import com.jakduk.api.common.rabbitmq.RabbitMQPublisher;
import com.jakduk.api.common.util.AuthUtils;
import com.... | Pyohwan/JakduK | src/main/java/com/jakduk/api/restcontroller/BoardRestController.java | Java | mit | 17,007 |
/*
* 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... | plumer/codana | tomcat_files/8.0.22/TestDigestAuthenticator.java | Java | mit | 14,017 |
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | joseph00713/Sponge | src/main/java/org/spongepowered/mod/mixin/core/event/state/MixinEventState.java | Java | mit | 1,933 |
/*
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS... | s1rius/fresco | samples/comparison/src/main/java/com/facebook/samples/comparison/urlsfetcher/ImageUrlsRequest.java | Java | mit | 1,379 |
package org.multibit.hd.ui.views.wizards.edit_contact;
import org.multibit.hd.core.dto.Contact;
import org.multibit.hd.ui.views.wizards.AbstractWizardModel;
import java.util.List;
/**
* <p>Model object to provide the following to "edit contact" wizard:</p>
* <ul>
* <li>Storage of panel data</li>
* <li>State tran... | bitcoin-solutions/multibit-hd | mbhd-swing/src/main/java/org/multibit/hd/ui/views/wizards/edit_contact/EditContactWizardModel.java | Java | mit | 844 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2007-2015 Broad Institute
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
*... | godotgildor/igv | src/org/broad/igv/track/SelectableFeatureTrack.java | Java | mit | 3,124 |
/*******************************************************************************
* Copyright (c) 2017 Red Hat, Inc and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX... | jboss-reddeer/reddeer | tests/org.eclipse.reddeer.eclipse.test/src/org/eclipse/reddeer/eclipse/test/Activator.java | Java | epl-1.0 | 1,910 |
/*
* Copyright 2012 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.addon.maven.projects.facets;
import java.util.Arrays;
import java.util.List;
import java.util.Properties;
import ... | agoncal/core | maven/impl-projects/src/main/java/org/jboss/forge/addon/maven/projects/facets/MavenJavaCompilerFacet.java | Java | epl-1.0 | 3,999 |
package org.restlet.example.book.restlet.ch05.sec6.server;
import org.restlet.example.book.restlet.ch03.sect5.sub5.common.RootResource;
import org.restlet.resource.ServerResource;
/**
* Root resource implementation.
*/
public class RootServerResource extends ServerResource implements RootResource {
p... | debrief/debrief | org.mwc.asset.comms/docs/restlet_src/org.restlet.example/org/restlet/example/book/restlet/ch05/sec6/server/RootServerResource.java | Java | epl-1.0 | 431 |
/*
* Copyright (c) 2012-2017 Red Hat, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Red H... | TypeFox/che | wsmaster/che-core-api-system-shared/src/main/java/org/eclipse/che/api/system/shared/event/service/SystemServiceEvent.java | Java | epl-1.0 | 1,640 |
/**
* Copyright (c) 2005-2011 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Eclipse Public License (EPL).
* Please see the license.txt included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
/*
* Created on Oct 13, 2004
... | akurtakov/Pydev | plugins/org.python.pydev/src/org/python/pydev/tree/AllowValidPathsFilter.java | Java | epl-1.0 | 917 |
/**
* Copyright 2005-2010 Noelios Technologies.
*
* The contents of this file are subject to the terms of one of the following
* open source licenses: LGPL 3.0 or LGPL 2.1 or CDDL 1.0 or EPL 1.0 (the
* "Licenses"). You can select the license that you prefer but you may not use
* this file except in complia... | debrief/debrief | org.mwc.asset.comms/docs/restlet_src/org.restlet/org/restlet/engine/log/LoggingThreadFactory.java | Java | epl-1.0 | 3,017 |
/**
* Copyright (c) 2011, 2014 Eurotech and/or its affiliates
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
... | mhddurrah/kura | kura/org.eclipse.kura.core/src/main/java/org/eclipse/kura/core/cloud/CloudPayloadEncoder.java | Java | epl-1.0 | 561 |
/*************************************************************************
*
* AVRGAMING LLC
* __________________
*
* [2013] AVRGAMING LLC
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of AVRGAMING LLC and its suppliers,
* if any. The intellectual an... | help3r/civcraft-1 | civcraft/src/com/avrgaming/civcraft/command/debug/DebugFarmCommand.java | Java | gpl-2.0 | 3,603 |
/*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | teamfx/openjfx-9-dev-rt | modules/javafx.base/src/main/java/com/sun/javafx/event/RedirectedEvent.java | Java | gpl-2.0 | 2,213 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2002-2014 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2014 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | jeffgdotorg/opennms | opennms-web-api/src/main/java/org/opennms/web/category/CategoryModel.java | Java | gpl-2.0 | 15,627 |
/*
* Freeplane - mind map editor
* Copyright (C) 2008 Joerg Mueller, Daniel Polansky, Christian Foltin, Dimitry Polivaev
*
* This file is modified by Dimitry Polivaev in 2008.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as p... | fnatter/freeplane-debian-dev | freeplane/src/main/java/org/freeplane/view/swing/map/cloud/CloudView.java | Java | gpl-2.0 | 6,981 |
/**
* Copyright (C) 2012-2015 52°North Initiative for Geospatial Open Source
* Software GmbH
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
* If the program is linked with... | nuest/SOS | extensions/aqd/operation/src/main/java/org/n52/sos/request/operator/AqdDescribeSensorOperatorV10.java | Java | gpl-2.0 | 3,618 |
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | rex-xxx/mt6572_x201 | external/jmonkeyengine/engine/src/test/jme3test/audio/TestMusicStreaming.java | Java | gpl-2.0 | 2,229 |
package fr.neamar.kiss;
import android.app.Activity;
/**
* An empty activity used for changing Android's Default Launcher
*/
public class DummyActivity extends Activity{
}
| ilmich/KISS | app/src/main/java/fr/neamar/kiss/DummyActivity.java | Java | gpl-3.0 | 177 |
/*
* 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")... | DL7AD/SSR-Receiver | src/org/apache/mina/filter/codec/statemachine/DecodingStateProtocolDecoder.java | Java | gpl-3.0 | 3,613 |
/**
* Copyright 2009-2012 tragicphantom
*
* This file is part of stdf4j.
*
* Stdf4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any lat... | tehaxer/stdf4j | tools/extract/src/main/java/com/tragicphantom/stdf/tools/extract/output/OutputFormatter.java | Java | gpl-3.0 | 915 |
/*
* Copyright (C) 2014 Vlad Mihalachi
*
* This file is part of Turbo Editor.
*
* Turbo Editor is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your opt... | vmihalachi/turbo-editor | libraries/sharedCode/src/main/java/sharedcode/turboeditor/util/systemui/SystemUiHelper.java | Java | gpl-3.0 | 10,893 |
package edu.isi.bmkeg.lapdf.xml.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
@XmlR... | benmccann/lapdftext | src/main/java/edu/isi/bmkeg/lapdf/xml/model/LapdftextXMLDocument.java | Java | gpl-3.0 | 1,272 |
package edu.dfci.cccb.mev.annotation.elasticsearch.perf.alltypes;
public class PerfTestNumerify_AllTypes_100Krows_10cols extends PerfTestNumerify_AllTypes_Base {
// run 1 each index about 45M
// samples: 3
// max: 17080
// average: 14201.333333333334
// median: 10171
@Override
protected long getNUMCOL... | apartensky/mev | annotation/elasticsearch/src/test/java/edu/dfci/cccb/mev/annotation/elasticsearch/perf/alltypes/PerfTestNumerify_AllTypes_100Krows_10cols.java | Java | gpl-3.0 | 419 |
/*
* Copyright (c) 2010, SQL Power Group Inc.
*
* This file is part of Wabit.
*
* Wabit is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) an... | SQLPower/wabit | src/main/java/ca/sqlpower/wabit/rs/ResultSetProducerStatusInformant.java | Java | gpl-3.0 | 853 |
package org.impact2585.lib2585;
/**
* SAM interface with a destroy() method
*/
@FunctionalInterface
public interface Destroyable{
/**
* destroy object
*/
public void destroy();
}
| 2585Robophiles/Lib2585 | src/org/impact2585/lib2585/Destroyable.java | Java | gpl-3.0 | 205 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2013-2014 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2014 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | aihua/opennms | features/topology-map/plugins/org.opennms.features.topology.plugins.browsers/src/test/java/org/opennms/features/topology/plugins/browsers/OnmsDaoContainerTest.java | Java | agpl-3.0 | 2,542 |
/*
* ProActive Parallel Suite(TM):
* The Open Source library for parallel and distributed
* Workflows & Scheduling, Orchestration, Cloud Automation
* and Big Data Analysis on Enterprise Grids & Clouds.
*
* Copyright (c) 2007 - 2017 ActiveEon
* Contact: contact@activeeon.com
*
* This library is free software: y... | ShatalovYaroslav/scheduling | rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/common/StatHistoryCaching.java | Java | agpl-3.0 | 4,896 |
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* JBoss, Home of Professional Open Source
* Copyright 2012 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 ... | anistor/hibernate-hql-parser | parser/src/test/java/org/hibernate/hql/test/tree/HQLTreeWalkerTest.java | Java | lgpl-2.1 | 1,231 |
package org.fosstrak.epcis.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotat... | Jonnychen/fosstrak-epcis | epcis-commons/src/main/java/org/fosstrak/epcis/model/VocabularyElementType.java | Java | lgpl-2.1 | 5,818 |
/*
* This library is part of OpenCms -
* the Open Source Content Management System
*
* Copyright (C) Alkacon Software (http://www.alkacon.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free... | it-tavis/opencms-core | src/org/opencms/ade/configuration/I_CmsConfigurationObject.java | Java | lgpl-2.1 | 2,390 |
/*******************************************************************************
* This file is part of the Polyglot extensible compiler framework.
*
* Copyright (c) 2000-2012 Polyglot project group, Cornell University
* Copyright (c) 2006-2012 IBM Corporation
* All rights reserved.
*
* This program and the acco... | liujed/polyglot-eclipse | src/polyglot/ext/jl5/translate/JL5TypeNodeToJL_c.java | Java | lgpl-2.1 | 1,793 |
/* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2011, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreech... | fluidware/Eastwood-Charts | source/org/jfree/chart/labels/HighLowItemLabelGenerator.java | Java | lgpl-2.1 | 8,308 |
/*
* Bytecode Analysis Framework
* Copyright (C) 2005, University of Maryland
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opt... | sewe/spotbugs | spotbugs/src/main/java/edu/umd/cs/findbugs/ba/constant/ConstantAnalysis.java | Java | lgpl-2.1 | 4,051 |
/* AngularBeans, CDI-AngularJS bridge Copyright (c) 2014, Bessem Hmidi. or third-party contributors as indicated by
* the @author tags or express copyright attribution statements applied by the authors. This copyrighted material is
* made available to anyone wishing to use, modify, copy, or redistribute it subject to... | bessemHmidi/AngularBeans | angular-beans/src/main/java/angularBeans/context/BeanLocator.java | Java | lgpl-3.0 | 2,829 |
package com.github.axet.wget.info.ex;
public class DownloadIOCodeError extends DownloadError {
private static final long serialVersionUID = 7835308901669107488L;
int code;
public DownloadIOCodeError() {
}
public DownloadIOCodeError(int code) {
this.code = code;
}
public int get... | sngvahmed/wGet_ODM | src/main/java/com/github/axet/wget/info/ex/DownloadIOCodeError.java | Java | lgpl-3.0 | 359 |
/**
* Copyright (c) 2012
*/
package lab.s2jh.core.web.view;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
/**
* 用于Object到JSON序列化的对象结构体定义
*/
@JsonInclude(Include.NON_NULL)
public class OperationResult {
/** 标识操作成功与否 */
publ... | xautlx/s2jh | core-service/src/main/java/lab/s2jh/core/web/view/OperationResult.java | Java | lgpl-3.0 | 2,803 |
/*
* #%L
* Alfresco Repository
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the... | Alfresco/community-edition | projects/repository/source/java/org/alfresco/repo/tagging/TagScopePropertyMethodInterceptor.java | Java | lgpl-3.0 | 8,523 |
/**
* This file is part of FNLP (formerly FudanNLP).
*
* FNLP is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FNLP... | xpqiu/fnlp | fnlp-app/src/main/java/org/fnlp/app/num/Test.java | Java | lgpl-3.0 | 3,439 |
/**
* Copyright (c) 2012
*/
package lab.s2jh.core.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.EntityListeners;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
i... | xautlx/s2jh | core-service/src/main/java/lab/s2jh/core/entity/BaseEntity.java | Java | lgpl-3.0 | 4,989 |
/*
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... | shun634501730/java_source_cn | src_en/com/sun/org/apache/xalan/internal/xsltc/dom/Filter.java | Java | apache-2.0 | 1,037 |
/*
* 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... | suyucs/presto | presto-hive/src/main/java/com/facebook/presto/hive/HiveWriteUtils.java | Java | apache-2.0 | 31,459 |
package org.ovirt.engine.api.restapi.resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.ws.rs.core.Response;
import org.ovirt.engine.api.common.security.auth.Principal;
import org.ovirt.engine.api.model.BaseResource;
import org.ovirt.engine.api.model.Group;
import org.ovirt... | anjalshireesh/gluster-ovirt-poc | backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendAssignedPermissionsResource.java | Java | apache-2.0 | 9,096 |
package io.bxbxbai.zhuanlan.utils;
import android.os.SystemClock;
import android.util.Log;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* Android应用中的秒表工具,跟踪某一段代码的执行时间<br/>
* 调用begin方法启动秒表,并在当前时间打上tag。当你再调用end方法时,TimeTester就会输出这个tag的时间差,并删除tag<br/>
*
* 如果你调用lap方法,就相当于计次,不会删除tag,可以多次调用
... | Zhenghaotao/ZhuanLan | app/src/main/java/io/bxbxbai/zhuanlan/utils/StopWatch.java | Java | apache-2.0 | 3,738 |
package org.zstack.test.core.job;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.zstack.core.job.Job;
import org.zstack.core.job.JobContext;
import org.zstack.heade... | MaJin1996/zstack | test/src/test/java/org/zstack/test/core/job/FakeJobReturnValue.java | Java | apache-2.0 | 1,047 |
package org.batfish.specifier.parboiled;
import com.google.common.base.MoreObjects;
import java.util.Objects;
final class NameFilterAstNode implements FilterAstNode {
private final String _name;
NameFilterAstNode(AstNode nameAst) {
this(((StringAstNode) nameAst).getStr());
}
NameFilterAstNode(String nam... | intentionet/batfish | projects/batfish-common-protocol/src/main/java/org/batfish/specifier/parboiled/NameFilterAstNode.java | Java | apache-2.0 | 1,114 |
package org.zstack.sdk;
import java.util.HashMap;
import java.util.Map;
import org.zstack.sdk.*;
public class DeleteEcsVpcInLocalAction extends AbstractAction {
private static final HashMap<String, Parameter> parameterMap = new HashMap<>();
private static final HashMap<String, Parameter> nonAPIParameterMap ... | AlanJager/zstack | sdk/src/main/java/org/zstack/sdk/DeleteEcsVpcInLocalAction.java | Java | apache-2.0 | 2,821 |
/*
* Copyright 2012-2015 org.opencloudb.
*
* 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... | mingfly/opencloudb | src/main/java/org/opencloudb/paser/ast/expression/function/cast/Cast.java | Java | apache-2.0 | 2,239 |
/*
* Copyright 2018-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | gkatsikas/onos | apps/openstacktroubleshoot/app/src/main/java/org/onosproject/openstacktroubleshoot/util/OpenstackTroubleshootUtil.java | Java | apache-2.0 | 3,347 |
/*
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | mirkosertic/Bytecoder | classlib/java.base/src/main/resources/META-INF/modules/java.base/classes/java/lang/module/InvalidModuleDescriptorException.java | Java | apache-2.0 | 2,064 |
/**
* 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 m... | RanjithKumar5550/RanMifos | fineract-provider/src/main/java/org/apache/fineract/portfolio/interestratechart/incentive/AttributeIncentiveCalculation.java | Java | apache-2.0 | 1,860 |
/**
* 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... | dlyle65535/metron | metron-interface/metron-rest/src/test/java/org/apache/metron/rest/controller/SensorIndexingConfigControllerIntegrationTest.java | Java | apache-2.0 | 6,791 |
/*
* Copyright (c) Facebook, Inc. and 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 applic... | facebook/buck | src/com/facebook/buck/core/test/rule/TestRunnerSpec.java | Java | apache-2.0 | 1,737 |
/*
* 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... | rhusar/arquillian-core | container/spi/src/main/java/org/jboss/arquillian/container/spi/event/DeploymentEvent.java | Java | apache-2.0 | 1,714 |
/*
* Copyright (c) 2008-2021, 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 ... | jerrinot/hazelcast | hazelcast/src/main/java/com/hazelcast/client/impl/protocol/task/multimap/MultiMapValueCountMessageTask.java | Java | apache-2.0 | 2,896 |
/*
* Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | andreagenso/java2scala | test/J2s/java/openjdk-6-src-b27/jdk/src/share/classes/javax/swing/DefaultDesktopManager.java | Java | apache-2.0 | 27,642 |
/*
* Copyright 2016 Alexey Andreev.
*
* 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... | jtulach/teavm | core/src/main/java/org/teavm/backend/wasm/model/expression/WasmFloatUnary.java | Java | apache-2.0 | 1,924 |
package samples;
import java.beans.*;
import java.lang.reflect.*;
import net.sf.cglib.proxy.*;
/**
*
* @author baliuka
*/
public class Beans implements MethodInterceptor {
private PropertyChangeSupport propertySupport;
public void addPropertyChangeListener(PropertyChangeListener listener) {
... | bric3/nCGLIB | src/test/java/samples/Beans.java | Java | apache-2.0 | 2,740 |
package com.github.dockerjava.api.model;
import com.google.common.base.Objects;
import com.google.common.base.Optional;
import java.io.Serializable;
/**
* @author magnayn
*/
public class Identifier implements Serializable {
private static final long serialVersionUID = 1L;
public final Repository repositor... | ollie314/docker-java | src/main/java/com/github/dockerjava/api/model/Identifier.java | Java | apache-2.0 | 1,760 |
/*
* 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... | s1monw/elasticsearch | qa/smoke-test-http/src/test/java/org/elasticsearch/http/ContextAndHeaderTransportIT.java | Java | apache-2.0 | 15,442 |
/*
* Copyright 2011 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... | gsheldon/optaplanner | optaplanner-examples/src/main/java/org/optaplanner/examples/machinereassignment/swingui/MachineReassignmentPanel.java | Java | apache-2.0 | 8,996 |
/*
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | djechelon/spring-security | rsocket/src/main/java/org/springframework/security/rsocket/core/PayloadSocketAcceptorInterceptor.java | Java | apache-2.0 | 2,336 |
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/metadata/spi/ProcessesXml.java | Java | apache-2.0 | 2,856 |
/*
* Copyright 2013-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... | marcinkwiatkowski/buck | src/com/facebook/buck/ocaml/OcamlLibraryDescription.java | Java | apache-2.0 | 4,652 |
/*
* Copyright 2016-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... | brettwooldridge/buck | test/com/facebook/buck/util/network/FakeScribeLogger.java | Java | apache-2.0 | 2,023 |
package org.collectionspace.services.test;
//import org.collectionspace.services.intake.Intake;
//import org.collectionspace.services.intake.IntakeList;
/**
* A IntakeServiceTest.
*
* @version $Revision:$
*/
public class DimensionServiceTest {
//empty
}
| cherryhill/collectionspace-services | services/dimension/service/src/test/java/org/collectionspace/services/test/DimensionServiceTest.java | Java | apache-2.0 | 262 |
/*
* Copyright 2013, 2014 Deutsche Nationalbibliothek
*
* 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... | philboeselager/metafacture-core | src/main/java/org/culturegraph/mf/stream/source/Bzip2Opener.java | Java | apache-2.0 | 2,699 |
package com.mapswithme.maps.widget.placepage;
import android.location.Location;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
impor... | yunikkk/omim | android/src/com/mapswithme/maps/widget/placepage/DirectionFragment.java | Java | apache-2.0 | 4,758 |
/*
* 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 ... | kulinski/myfaces | impl/src/main/java/org/apache/myfaces/spi/InjectionProvider.java | Java | apache-2.0 | 1,428 |
package my;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class MyServlet extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServle... | mhcxp/Karaf-Tutorial | voting/voting-ui2/src/main/java/my/MyServlet.java | Java | apache-2.0 | 568 |
// Copyright 2015 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | hhclam/bazel | src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/GitRepositoryRule.java | Java | apache-2.0 | 4,589 |
package test.github1490;
import org.testng.Assert;
import org.testng.annotations.Factory;
import org.testng.annotations.Test;
public class TwoFactoriesShareSameDataProviderSampleTwo {
private final String cookieName;
private final int count;
@TestInfo(name = "nibbler")
@Factory(dataProvider = "cookie-master"... | krmahadevan/testng | testng-core/src/test/java/test/github1490/TwoFactoriesShareSameDataProviderSampleTwo.java | Java | apache-2.0 | 659 |
/*
* Copyright 2018-present Open Networking Foundation
*
* 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 applic... | gkatsikas/onos | protocols/netconf/api/src/main/java/org/onosproject/netconf/rpc/ErrorInfoType.java | Java | apache-2.0 | 6,843 |
package mil.nga.giat.geowave.analytic.extract;
import com.vividsolutions.jts.geom.Geometry;
/**
* Strategy to extract a representative dimensions and Geometry for an Object
*
* @param <T>
*/
public interface DimensionExtractor<T>
{
/**
*
* @param anObject
* --
*/
public double[] getDimensio... | mses-bly/geowave | analytics/api/src/main/java/mil/nga/giat/geowave/analytic/extract/DimensionExtractor.java | Java | apache-2.0 | 877 |
package org.apache.thrift.transport;
import org.apache.thrift.TConfiguration;
import java.nio.BufferOverflowException;
import java.nio.BufferUnderflowException;
import java.nio.ByteBuffer;
/**
* ByteBuffer-backed implementation of TTransport.
*/
public final class TByteBuffer extends TEndpointTransport {
private... | dcelasun/thrift | lib/java/src/org/apache/thrift/transport/TByteBuffer.java | Java | apache-2.0 | 2,140 |
/*
* 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... | nextopio/nextop-client | org.apache-jarjar/src/main/java/org/apache/harmony/security/provider/cert/DRLCertFactory.java | Java | apache-2.0 | 2,263 |
package org.ovirt.engine.core.common.backendinterfaces;
import org.ovirt.engine.core.common.action.*;
public interface IUserHandler {
VdcReturnValueBase Login(LoginUserParameters parameters);
VdcReturnValueBase Logoff(LogoutUserParameters parameters);
}
| derekhiggins/ovirt-engine | backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/backendinterfaces/IUserHandler.java | Java | apache-2.0 | 265 |
/*-
*
* * Copyright 2015 Skymind,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
* *
* * ... | ambraspace/nd4j | nd4j-buffer/src/main/java/org/nd4j/linalg/api/buffer/FloatBuffer.java | Java | apache-2.0 | 4,585 |
/*
* 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 ... | sijie/bookkeeper | bookkeeper-common/src/test/java/org/apache/bookkeeper/common/collections/RecyclableArrayListTest.java | Java | apache-2.0 | 1,532 |
/*
* Copyright 2017 StreamSets 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... | rockmkd/datacollector | basic-lib/src/test/java/com/streamsets/pipeline/stage/origin/mqtt/TestMqttClientSource.java | Java | apache-2.0 | 2,850 |
/*
* Copyright 2012 Vaadin 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | peterl1084/framework | uitest/src/main/java/com/vaadin/tests/applicationcontext/CloseUI.java | Java | apache-2.0 | 4,933 |
/*
* Copyright (c) Facebook, Inc. and 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 applic... | facebook/buck | src/com/facebook/buck/rules/macros/StringWithMacrosConverter.java | Java | apache-2.0 | 7,028 |
/*=========================================================================
* Copyright (c) 2010-2014 Pivotal Software, Inc. All Rights Reserved.
* This product is protected by U.S. and international copyright
* and intellectual property laws. Pivotal products are covered by
* one or more patents listed at http://w... | ameybarve15/incubator-geode | gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/VersionedStatsDiskRegionEntryHeapUUIDKey.java | Java | apache-2.0 | 11,929 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | lewismc/oodt | crawler/src/main/java/org/apache/oodt/cas/crawl/typedetection/MetExtractorSpec.java | Java | apache-2.0 | 4,116 |
/*
* 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 ... | ilantukh/ignite | modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryMultiThreadedTest.java | Java | apache-2.0 | 24,012 |
/*
* 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 n... | ollie314/kafka | streams/src/test/java/org/apache/kafka/streams/processor/internals/StoreChangelogReaderTest.java | Java | apache-2.0 | 25,467 |
/**
* 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... | arenadata/ambari | ambari-server/src/test/java/org/apache/ambari/server/api/services/RequestBodyTest.java | Java | apache-2.0 | 2,108 |
/*
* 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-videointelligence/v1/1.31.0/com/google/api/services/videointelligence/v1/model/GoogleCloudVideointelligenceV1p2beta1WordInfo.java | Java | apache-2.0 | 8,066 |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... | actmd/selenium | java/client/src/org/openqa/selenium/htmlunit/HtmlUnitWebElement.java | Java | apache-2.0 | 30,105 |
// Openbravo POS is a point of sales application designed for touch screens.
// Copyright (C) 2007-2009 Openbravo, S.L.
// http://www.openbravo.com/product/pos
//
// This file is part of Openbravo POS.
//
// Openbravo POS is free software: you can redistribute it and/or modify
// it under the terms of... | nordpos-mobi/nordpos-dao | src/main/java/com/openbravo/pos/ticket/UserInfo.java | Java | apache-2.0 | 1,342 |
/*
* 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 ... | sankarh/hive | ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/jdbc/JDBCFilterPushDownRule.java | Java | apache-2.0 | 3,226 |
/*
* Copyright 1998-2016 Linux.org.ru
* 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... | fat0troll/lorsource | src/main/java/ru/org/linux/spring/AbstractRomeView.java | Java | apache-2.0 | 3,017 |
/*
* Copyright (c) 2014, Cloudera, Inc. All Rights Reserved.
*
* Cloudera, Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"). You may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-... | tomwhite/spark-dataflow | src/main/java/com/cloudera/dataflow/spark/aggregators/AggAccumParam.java | Java | apache-2.0 | 1,143 |