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 2009-2012 Eucalyptus Systems, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 3 of the ... | eethomas/eucalyptus | clc/modules/msgs/src/main/java/com/eucalyptus/auth/policy/condition/DateGreaterThanEquals.java | Java | gpl-3.0 | 4,005 |
/*
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
*
* 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 3.0 of the License, or (at your option) any later versio... | acenode/jpexs-decompiler | libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/AppResources.java | Java | gpl-3.0 | 1,221 |
/*
* Copyright (c) 1998-2012 Caucho Technology -- all rights reserved
*
* This file is part of Resin(R) Open Source
*
* Each copy or derived work must preserve the copyright notice and this
* notice unmodified.
*
* Resin Open Source is free software; you can redistribute it and/or modify
* it under the terms o... | smba/oak | quercus/src/main/java/com/caucho/quercus/lib/zlib/GZInputStream.java | Java | lgpl-3.0 | 8,454 |
/*
* Copyright (c) 1998-2012 Caucho Technology -- all rights reserved
*
* This file is part of Resin(R) Open Source
*
* Each copy or derived work must preserve the copyright notice and this
* notice unmodified.
*
* Resin Open Source is free software; you can redistribute it and/or modify
* it under the terms o... | smba/oak | quercus/src/main/java/com/caucho/quercus/lib/dom/DOMElement.java | Java | lgpl-3.0 | 6,332 |
/*
* Copyright (c) 2010 - 2015 Ushahidi Inc
* All rights reserved
* Contact: team@ushahidi.com
* Website: http://www.ushahidi.com
* GNU Lesser General Public License Usage
* This file may be used under the terms of the GNU Lesser
* General Public License version 3 as published by the Free Software
* Foundation ... | laetemn/SMSSync | smssync/src/main/java/org/addhen/smssync/presentation/view/ui/activity/AppCompatPreferenceActivity.java | Java | lgpl-3.0 | 3,854 |
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
/**
* Factories that help setup the engine.
*/
package com.opengamma.component.factory.engine;
| McLeodMoores/starling | projects/component/src/main/java/com/opengamma/component/factory/engine/package-info.java | Java | apache-2.0 | 236 |
package org.sakaiproject.webservices;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.util.List;
import java.util.ArrayList;
import org.apache.cxf.jaxrs.client.WebClient;
import org.junit.Test;
import org.sakaiproject.site.api.SiteService.SelectionType;
import org.sakaiproj... | OpenCollabZA/sakai | webservices/cxf/src/test/java/org/sakaiproject/webservices/SakaiScriptFindSitesByTitleTest.java | Java | apache-2.0 | 2,572 |
/*
* Copyright 2015-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... | Distrotech/buck | src/com/facebook/buck/cxx/GnuArchiver.java | Java | apache-2.0 | 2,215 |
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.conversion;
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertTrue;
import org.testng.annotations.Test;... | McLeodMoores/starling | projects/financial/src/test/java/com/opengamma/financial/conversion/ResultConverterCacheTest.java | Java | apache-2.0 | 1,767 |
/**
* Copyright (c) 2014 Baidu, 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 r... | qqming113/bi-platform | designer/src/main/java/com/baidu/rigel/biplatform/ma/model/builder/impl/SchemaBuilder.java | Java | apache-2.0 | 1,879 |
/*
* 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 ... | q474818917/solr-5.2.0 | solr/core/src/test/org/apache/solr/TestRandomDVFaceting.java | Java | apache-2.0 | 9,038 |
//
// 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 ... | GabrielBrascher/cloudstack | utils/src/main/java/com/cloud/utils/concurrency/SynchronizationEvent.java | Java | apache-2.0 | 2,603 |
/*
* Copyright 2000-2014 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... | Lekanich/intellij-community | platform/lang-impl/src/com/intellij/codeInsight/navigation/GotoTargetHandler.java | Java | apache-2.0 | 13,782 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.upgrades;
import org.apache.http.util.En... | robin13/elasticsearch | x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/IndexingIT.java | Java | apache-2.0 | 5,346 |
/**
* Licensed to Cloudera, Inc. under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Cloudera, Inc. licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use th... | anuragphadke/Flume-Hive | src/java/com/cloudera/flume/agent/MemoryMonitor.java | Java | apache-2.0 | 4,976 |
package org.oryxeditor.server.diagram.label;
import java.util.HashSet;
import java.util.Set;
/**
* Wrapper class for a set of {@link Anchor} that can be used to define positioning policies of labels
* @author philipp.maschke
*
*/
public class Anchors {
/**
* Enumeration of anchor positions
* ... | axemblr/activiti-karaf | bpmn-webui-components/bpmn-webui-diagram-core/src/main/java/org/oryxeditor/server/diagram/label/Anchors.java | Java | apache-2.0 | 2,750 |
/*
* Copyright 2015 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | eshen1991/optaplanner | optaplanner-core/src/main/java/org/optaplanner/core/api/domain/solution/cloner/package-info.java | Java | apache-2.0 | 689 |
/*
* Copyright 2016 MovingBlocks
*
* 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... | Vizaxo/Terasology | engine/src/main/java/org/terasology/config/RenderingDebugConfig.java | Java | apache-2.0 | 5,874 |
package org.apereo.cas.impl.plans;
import org.apereo.cas.api.AuthenticationRiskContingencyResponse;
import org.apereo.cas.api.AuthenticationRiskScore;
import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.services.RegisteredService;
import org.springframework.webflow.execution.Event;
import javax... | creamer/cas | support/cas-server-support-electrofence/src/main/java/org/apereo/cas/impl/plans/BlockAuthenticationContingencyPlan.java | Java | apache-2.0 | 1,090 |
/*
* Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package javax.security.auth.login;
/**
* A generic credential exception.
*
* @since 1.5
*/
public ... | shun634501730/java_source_cn | src_en/javax/security/auth/login/CredentialException.java | Java | apache-2.0 | 974 |
/*
* Copyright 2014 - 2015 Real Logic 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 agr... | strangelydim/Aeron | aeron-client/src/test/java/uk/co/real_logic/aeron/logbuffer/TermRebuilderTest.java | Java | apache-2.0 | 5,137 |
/*
* 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 ... | nikhilvibhav/camel | components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/AbstractSalesforceProcessor.java | Java | apache-2.0 | 9,309 |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 2000-2021. 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
*
... | potatosalad/otp | lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMsg.java | Java | apache-2.0 | 10,524 |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | emag/codereading-undertow | websockets-jsr/src/test/java/io/undertow/websockets/jsr/test/autobahn/ProgramaticAutobahnServer.java | Java | apache-2.0 | 4,770 |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | psiinon/zaproxy | zap/src/main/java/org/zaproxy/zap/view/popup/ExtensionPopupMenuItemMessageContainer.java | Java | apache-2.0 | 2,877 |
/*
* 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 ... | himanshug/druid | extensions-core/datasketches/src/main/java/org/apache/druid/query/aggregation/datasketches/theta/sql/ThetaSketchObjectSqlAggregator.java | Java | apache-2.0 | 2,991 |
/*
* 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 ... | smgoller/geode | geode-core/src/test/java/org/apache/geode/internal/util/concurrent/ReentrantSemaphoreJUnitTest.java | Java | apache-2.0 | 3,965 |
package org.apache.lucene.index;
/*
* 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, Versio... | smartan/lucene | src/test/java/org/apache/lucene/index/TestStressNRT.java | Java | apache-2.0 | 17,006 |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | psiinon/zaproxy | zap/src/main/java/org/zaproxy/zap/view/popup/PopupMenuItemContextDataDriven.java | Java | apache-2.0 | 3,126 |
package cz.metacentrum.perun.core.provisioning;
import cz.metacentrum.perun.core.api.Attribute;
import cz.metacentrum.perun.core.api.Group;
import cz.metacentrum.perun.core.api.Member;
import cz.metacentrum.perun.core.api.Resource;
import cz.metacentrum.perun.core.api.Service;
import cz.metacentrum.perun.core.impl.Pe... | zlamalp/perun | perun-core/src/main/java/cz/metacentrum/perun/core/provisioning/GenDataProvider.java | Java | bsd-2-clause | 3,738 |
package com.tuenti.voice.core;
public enum XmppPresenceAvailable
{
XMPP_PRESENCE_UNAVAILABLE,
XMPP_PRESENCE_AVAILABLE,
XMPP_PRESENCE_ERROR;
// ------------------------------ FIELDS ------------------------------
private static final XmppPresenceAvailable[] values = XmppPresenceAvailable.values();
//... | lukeweber/webrtc-jingle-client | android/voice-client-core/src/main/java/com/tuenti/voice/core/XmppPresenceAvailable.java | Java | bsd-3-clause | 492 |
/*
*
* The MIT License (MIT)
*
* Copyright (c) 2015 Sergio Machado
*
* 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
* to... | martacou/exercises-java-lang | java-concurrency-threads/src/main/java/edu/upc/eetac/dsa/exercises/java/lang/RunnableClass.java | Java | mit | 1,970 |
package logic;
import iotsuite.pubsubmiddleware.*;
import iotsuite.common.GlobalVariable;
import android.content.Context;
import iotsuite.semanticmodel.*;
import android.app.Activity;
import framework.*;
import factory.*;
public class LogicBadgeReader extends BadgeReader {
IBadgeReader objBadgeReader;
Activity ui;... | chauhansaurabhb/Android-End-User-Interaction-Request-Response-Command-Notify- | CodeForDeployment/JavaSED8/src/logic/LogicBadgeReader.java | Java | gpl-2.0 | 1,676 |
/*
* Copyright (c) 2014, 2017, 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 ... | google/error-prone-javac | src/jdk.compiler/share/classes/module-info.java | Java | gpl-2.0 | 5,319 |
/*
* #%L
* Fork of JAI Image I/O Tools.
* %%
* Copyright (C) 2008 - 2015 Open Microscopy Environment:
* - Board of Regents of the University of Wisconsin-Madison
* - Glencoe Software, Inc.
* - University of Dundee
* %%
* Redistribution and use in source and binary forms, with or without
* modification, ... | JoeHsiao/bioformats | components/forks/jai/src/jj2000/j2k/codestream/reader/PktDecoder.java | Java | gpl-2.0 | 56,980 |
package org.libsdl.app;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.Hashtable;
import java.lang.reflect.Method;
import java.lang.Math;
import android.app.*;
import android.content.*;
import android.content.res.Configuration;
import android.text.InputType;
import a... | litchie/exult-ios | ios/SDL2/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java | Java | gpl-2.0 | 84,067 |
package freenet.node;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.TreeMap;
import freenet.io.xfer.PacketThrottle;
import freenet.node.NewPacketFormat.SentPacket;
import freenet.support.LogThresholdCallback;
import freenet.support.Logger;
import freenet.support.SentTimeC... | freenet/fred | src/freenet/node/NewPacketFormatKeyContext.java | Java | gpl-2.0 | 9,909 |
/*
This file is part of Cyclos (www.cyclos.org).
A project of the Social Trade Organisation (www.socialtrade.org).
Cyclos is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of th... | robertoandrade/cyclos | src/nl/strohalm/cyclos/webservices/PrincipalParameters.java | Java | gpl-2.0 | 1,728 |
/*
* Copyright (c) 2018, 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 Softwa... | md-5/jdk10 | test/hotspot/jtreg/vmTestbase/nsk/jdi/ObjectReference/invokeMethod/invokemethod007/TestDescription.java | Java | gpl-2.0 | 2,369 |
/*
* This file is part of libbluray
* Copyright (C) 2010 William Hahne
*
* 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 option) a... | xucp/mpc_hc | src/thirdparty/LAVFilters/src/libbluray/src/libbluray/bdj/java/org/bluray/ui/event/HRcEvent.java | Java | gpl-3.0 | 1,437 |
package org.ovirt.engine.core.compat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class RegexTest {
@Test
public void testSimpleMatches() {
Regex regex = new Regex("[0-9]");
... | jtux270/translate | ovirt/backend/manager/modules/compat/src/test/java/org/ovirt/engine/core/compat/RegexTest.java | Java | gpl-3.0 | 1,413 |
/*
* ################################################################
*
* ProActive Parallel Suite(TM): The Java(TM) library for
* Parallel, Distributed, Multi-Core Computing for
* Enterprise Grids & Clouds
*
* Copyright (C) 1997-2012 INRIA/University of
* Nice-Sophia Antipolis/ActiveEon
... | moliva/proactive | src/Examples/org/objectweb/proactive/examples/robustarith/Int.java | Java | agpl-3.0 | 3,485 |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2015, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | jamezp/wildfly-core | testsuite/standalone/src/test/java/org/jboss/as/test/integration/logging/profiles/AbstractLoggingProfilesTestCase.java | Java | lgpl-2.1 | 15,700 |
package thebeast.nodmem.expression;
import thebeast.nod.expression.ExpressionVisitor;
import thebeast.nod.expression.IntAdd;
import thebeast.nod.expression.IntExpression;
import thebeast.nod.type.IntType;
/**
* Created by IntelliJ IDEA. User: s0349492 Date: 30-Jan-2007 Time: 20:31:49
*/
public class MemIntAdd exten... | 52nlp/thebeast | src/thebeast/nodmem/expression/MemIntAdd.java | Java | lgpl-3.0 | 868 |
package org.apache.helix.controller.stages;
/*
* 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 ... | Teino1978-Corp/Teino1978-Corp-helix | helix-core/src/main/java/org/apache/helix/controller/stages/ExternalViewComputeStage.java | Java | apache-2.0 | 12,880 |
/*
* Copyright 2013 MovingBlocks
*
* 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... | immortius/Terasology | engine-tests/src/test/java/org/terasology/entitySystem/metadata/ComponentMetadataTest.java | Java | apache-2.0 | 2,759 |
/*
* 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... | codescale/logging-log4j2 | log4j-taglib/src/test/java/org/apache/logging/log4j/taglib/IfEnabledTagTest.java | Java | apache-2.0 | 3,740 |
/*
* Copyright 2015 Evgeny Dolganov (evgenij.dolganov@gmail.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 requi... | kokareff/live-chat-engine | common/util/src/och/util/StringUtil.java | Java | apache-2.0 | 6,039 |
/*
* 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... | cshannon/activemq-artemis | artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/v11/StompFrameHandlerV11.java | Java | apache-2.0 | 25,002 |
/*
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
*
* 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 ... | balazs-zsoldos/querydsl | querydsl-sql/src/test/java/com/querydsl/sql/MultikeyTest.java | Java | apache-2.0 | 1,905 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2016 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | TatsianaKasiankova/pentaho-kettle | plugins/repositories/core/src/main/java/org/pentaho/di/ui/repo/model/RepositoryModel.java | Java | apache-2.0 | 2,685 |
/*
* Copyright (c) 2016, 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.or... | wso2/siddhi | modules/siddhi-core/src/test/java/io/siddhi/core/query/table/DefineTableTestCase.java | Java | apache-2.0 | 17,493 |
// 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.siyeh.ig.jdk;
import com.intellij.codeInspection.InspectionProfileEntry;
import com.intellij.openapi.module.LanguageLevelUtil;
import com.intellij.openapi.module.Modu... | smmribeiro/intellij-community | plugins/InspectionGadgets/testsrc/com/siyeh/ig/jdk/ForwardCompatibilityInspectionTest.java | Java | apache-2.0 | 2,006 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2020 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | tkafalas/pentaho-kettle | core/src/main/java/org/pentaho/di/core/row/SpeedTest.java | Java | apache-2.0 | 8,136 |
package org.apache.rya.giraph.format;
/*
* 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... | meiercaleb/incubator-rya | extras/rya.giraph/src/main/java/org/apache/rya/giraph/format/RyaEdgeInputFormat.java | Java | apache-2.0 | 2,409 |
/*
* Copyright (c) 2015 Layer. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | senorcris/Atlas-Android | layer-atlas-messenger/src/main/java/com/layer/atlas/messenger/AtlasMessagesScreen.java | Java | apache-2.0 | 24,874 |
/**
* Provides Flow Reconcile service to other modules that need to reconcile
* flows.
*/
package net.floodlightcontroller.flowcache;
import net.floodlightcontroller.core.module.IFloodlightService;
import net.floodlightcontroller.devicemanager.IDevice;
import net.floodlightcontroller.flowcache.IFlowCacheService.FCQ... | floodlight/ubuntu-packaging-floodlight | src/main/java/net/floodlightcontroller/flowcache/IFlowReconcileService.java | Java | apache-2.0 | 2,383 |
/*
* 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")... | sardine/mina-ja | src/mina-core/src/main/java/org/apache/mina/transport/vmpipe/VmPipeAcceptor.java | Java | apache-2.0 | 5,889 |
/*
* 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 ... | irudyak/ignite | modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheTransactionalAbstractMetricsSelfTest.java | Java | apache-2.0 | 12,545 |
/*
* Copyright 2018 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 app... | jomarko/kie-wb-common | kie-wb-common-dmn/kie-wb-common-dmn-client/src/main/java/org/kie/workbench/common/dmn/client/widgets/grid/handlers/EditableHeaderGridWidgetEditCellMouseEventHandler.java | Java | apache-2.0 | 4,278 |
/*
* 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 ... | smanvi-pivotal/geode | geode-core/src/main/java/org/apache/geode/distributed/internal/WanLocatorDiscoverer.java | Java | apache-2.0 | 1,355 |
/**
* Copyright 2007-2016, Kaazing Corporation. 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 require... | adrian-galbenus/gateway | transport/nio/src/main/java/org/kaazing/gateway/transport/nio/internal/socket/TcpExtensionFactory.java | Java | apache-2.0 | 2,135 |
/*
* Copyright 2000-2017 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... | asedunov/intellij-community | platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexScanRunnableCollectorImpl.java | Java | apache-2.0 | 5,969 |
/*
* Copyright 2011 Research In Motion Limited.
*
* 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 ... | blackberry/WebWorks-Community-APIs | Smartphone/Barcode/webworks/media/barcode/BarcodeNamespace.java | Java | apache-2.0 | 1,433 |
package com.airbnb.android.airmapview;
import android.os.Bundle;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
public class NativeAirMapViewBuilderTest {
@Test p... | acq/AirMapView | library/src/test/java/com/airbnb/android/airmapview/NativeAirMapViewBuilderTest.java | Java | apache-2.0 | 657 |
/**
* 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... | duzhen1996/SSM | smart-hadoop-support/smart-erasurecodec/src/test/java/org/smartdata/erasurecode/coder/TestXORCoder.java | Java | apache-2.0 | 2,120 |
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.containers;
import com.intellij.util.ObjectUtilsRt;
import org.jetbrains.annotations.NotNull;
import java.lang.ref.ReferenceQueue;
im... | siosio/intellij-community | platform/util/collections/src/com/intellij/util/containers/ConcurrentWeakKeyWeakValueHashMap.java | Java | apache-2.0 | 2,632 |
/*
* 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 ... | MicheleGuerriero/SeaCloudsPlatform | deployer/src/main/java/org/apache/brooklyn/entity/openshift/webapp/OpenShiftWebApp.java | Java | apache-2.0 | 2,747 |
/*
* The MIT License
*
* Copyright (c) 2004-, Kohsuke Kawaguchi, Sun Microsystems, Inc., and a number of other of contributors
*
* 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... | mtolan/ec2-plugin | src/main/java/hudson/plugins/ec2/EC2RetentionStrategy.java | Java | mit | 6,093 |
/*
* This file is part of SpongeAPI, 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 "Soft... | kashike/SpongeAPI | src/main/java/org/spongepowered/api/data/manipulator/immutable/entity/ImmutableStuckArrowsData.java | Java | mit | 2,019 |
/**
* 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 ma... | jaypatil/hadoop | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timeline-pluginstorage/src/test/java/org/apache/hadoop/yarn/server/timeline/TestLogInfo.java | Java | gpl-3.0 | 11,023 |
package v2.simpleUi;
import v2.simpleUi.uiDecoration.UiDecoratable;
import v2.simpleUi.uiDecoration.UiDecorator;
import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.TextView;
public c... | jaechoon2/droidar | droidar/src/v2/simpleUi/M_Caption.java | Java | gpl-3.0 | 2,122 |
/*
* Copyright (C) 2014 Dominik Schürmann <dominik@dominikschuermann.de>
* Copyright (C) 2014 Vincent Breitmoser <v.breitmoser@mugenguild.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundat... | thialfihar/apg | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/GetKeyResult.java | Java | gpl-3.0 | 2,254 |
/*
* @copyright 2013 Philip Warner
* @license GNU General Public License
*
* This file is part of Book Catalogue.
*
* Book Catalogue 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 vers... | Imkal/Book-Catalogue | src/com/eleybourn/bookcatalogue/datamanager/BooleanValidator.java | Java | gpl-3.0 | 1,973 |
package org.ovirt.engine.api.restapi.types;
import org.apache.commons.lang.StringUtils;
import org.ovirt.engine.api.model.Domain;
import org.ovirt.engine.api.model.Group;
import org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils;
import org.ovirt.engine.api.restapi.utils.GuidUtils;
import org.ovirt.engine.core.a... | jtux270/translate | ovirt/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/GroupMapper.java | Java | gpl-3.0 | 2,642 |
/*
* 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 ... | dalaro/incubator-tinkerpop | gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/CoalesceStep.java | Java | apache-2.0 | 3,431 |
/*
* Copyright 2000-2014 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... | jagguli/intellij-community | plugins/git4idea/tests/git4idea/test/GitExecutor.java | Java | apache-2.0 | 5,637 |
package org.apache.cassandra.utils;
/*
*
* 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 Licen... | c3bd/cassandraxml | test/unit/org/apache/cassandra/utils/IntervalTest.java | Java | apache-2.0 | 2,440 |
package com.taobao.tddl.group.exception;
import org.junit.Assert;
import org.junit.Test;
/**
* @author yangzhu
*/
public class TAtomDataSourceExceptionUnitTest {
@Test
public void all() {
Throwable cause = new Throwable();
String msg = "msg";
TAtomDataSourceException e = new TAtomDa... | beebeandwer/TDDL | tddl-group/src/test/java/com/taobao/tddl/group/exception/TAtomDataSourceExceptionUnitTest.java | Java | apache-2.0 | 699 |
package com.taobao.tddl.rule;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import com.taobao.tddl.rule.model.sqljep.Comparative;
... | cpsing/tddl | tddl-rule/src/test/java/com/taobao/tddl/rule/TestUtils.java | Java | apache-2.0 | 4,379 |
/**
* Copyright 2014 Rahul Parsani
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | hubaoyu/google-io-2014-compat | app/src/main/java/com/example/android/io2014/ui/Utils.java | Java | apache-2.0 | 3,449 |
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gmf.runtime.common.core.command.CommandResu... | nwnpallewela/devstudio-tooling-esb | plugins/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/commands/ForEachMediatorTargetOutputConnectorCreateCommand.java | Java | apache-2.0 | 2,972 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | robin13/elasticsearch | server/src/test/java/org/elasticsearch/search/aggregations/bucket/filter/InternalFiltersTests.java | Java | apache-2.0 | 5,845 |
/*
* 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 ... | nikhilvibhav/camel | core/camel-management/src/main/java/org/apache/camel/management/mbean/ManagedPollEnricher.java | Java | apache-2.0 | 4,822 |
/**
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) 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
*
* U... | nectoc/analytics-apim | product/integration/tests-common/integration-test-utils/src/main/java/org/wso2/analytics/apim/analytics/rest/beans/ResponseBean.java | Java | apache-2.0 | 2,188 |
/*
* 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 ... | hequn8128/flink | flink-kubernetes/src/main/java/org/apache/flink/kubernetes/kubeclient/FlinkPod.java | Java | apache-2.0 | 2,441 |
/**
* $RCSfile$
* $Revision: 18992 $
* $Date: 2005-06-06 16:20:13 -0700 (Mon, 06 Jun 2005) $
*
* Copyright (C) 2004-2008 Jive Software. 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 ... | wudingli/openfire | src/plugins/fastpath/src/java/org/jivesoftware/xmpp/workgroup/MessageHandler.java | Java | apache-2.0 | 2,073 |
package com.dropbox.djinni.test;
import junit.framework.TestCase;
public class WcharTest extends TestCase {
private static final String STR1 = "some string with unicode \u0000, \u263A, \uD83D\uDCA9 symbols";
private static final String STR2 = "another string with unicode \u263B, \uD83D\uDCA8 symbols";
p... | dropbox/djinni | test-suite/handwritten-src/java/com/dropbox/djinni/test/WcharTest.java | Java | apache-2.0 | 617 |
/*
* 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 ... | samaitra/ignite | modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheInvokeResult.java | Java | apache-2.0 | 3,794 |
/*
* 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 | modules/lang-painless/src/main/java/org/elasticsearch/painless/node/SFunction.java | Java | apache-2.0 | 9,339 |
package org.jboss.resteasy.test.resource.basic.resource;
public class ResourceLocatorAnnotationFreeSubResource extends ResourceLocatorAbstractAnnotationFreeResouce implements ResourceLocatorSubInterface {
public String post(String s) {
return "posted: " + s;
}
public Object getSubSubResource(String id... | awhitford/Resteasy | testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/resource/basic/resource/ResourceLocatorAnnotationFreeSubResource.java | Java | apache-2.0 | 350 |
/*
* 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 ... | apache/camel | dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SolrComponentBuilderFactory.java | Java | apache-2.0 | 4,606 |
package edu.stanford.ramcloud.test;
import edu.stanford.ramcloud.Util;
public class TestCluster {
static {
// Load native library
Util.loadLibrary("ramcloud_java_test");
}
// Keep pointers to the C++ RAMCloud and MockCluster objects.
private long[] pointers;
/**
* Construct ... | utah-scs/RAMCloud | bindings/java/src/test/java/edu/stanford/ramcloud/test/TestCluster.java | Java | isc | 1,207 |
package fr.northborders.AnimationPlayground.Utils;
import android.content.Context;
import android.graphics.*;
import android.util.Log;
import com.caverock.androidsvg.PreserveAspectRatio;
import com.caverock.androidsvg.SVG;
import com.caverock.androidsvg.SVGParseException;
import java.util.ArrayList;
import java.util.... | treejames/Android-Anim-Playground | AnimationPlayground/src/fr/northborders/AnimationPlayground/Utils/SvgHelper.java | Java | mit | 2,913 |
/*******************************************************************************
* Copyright (c) 2012-2016 Codenvy, S.A.
* 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 ... | dhuebner/che | plugins/plugin-machine/che-plugin-machine-ext-client/src/main/java/org/eclipse/che/ide/extension/machine/client/perspective/widgets/tab/header/TabHeaderImpl.java | Java | epl-1.0 | 2,966 |
/*
* Copyright (c) 2006, 2018, 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 ... | md-5/jdk10 | test/jdk/com/sun/jdi/RedefineChangeClassOrder.java | Java | gpl-2.0 | 4,549 |
/*
Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
The MySQL Connector/J is licensed under the terms of the GPLv2
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most MySQL Connectors.
There are special exceptions to the terms and conditions of the GPLv2 as it is appl... | seadsystem/SchemaSpy | src/com/mysql/jdbc/StandardLoadBalanceExceptionChecker.java | Java | gpl-2.0 | 3,521 |
/*
* Copyright 2008-2010 Sun Microsystems, Inc. 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 Software Fou... | karahiyo/btrace | samples/JMap.java | Java | gpl-2.0 | 1,743 |
/*
* Copyright (c) 2003, 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 ... | md-5/jdk10 | test/jdk/javax/swing/JSpinner/4788637/bug4788637.java | Java | gpl-2.0 | 5,533 |
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
... | erpcya/adempierePOS | base/src/org/compiere/model/I_M_ProductPriceVendorBreak.java | Java | gpl-2.0 | 6,448 |