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 ... | mxm/incubator-beam | runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/DataflowWorkExecutor.java | Java | apache-2.0 | 1,351 |
package org.gwtbootstrap3.client.ui.base.button;
/*
* #%L
* GwtBootstrap3
* %%
* Copyright (C) 2013 - 2014 GwtBootstrap3
* %%
* 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
*
* ... | gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/button/package-info.java | Java | apache-2.0 | 701 |
/*
* 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... | propene/presto | presto-parser/src/main/java/com/facebook/presto/sql/tree/Prepare.java | Java | apache-2.0 | 2,348 |
/*
Copyright (c) 2007, 2010, 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 ... | suthat/signal | vendor/mysql-connector-java-5.1.26/src/com/mysql/jdbc/ByteArrayRow.java | Java | apache-2.0 | 8,491 |
package org.wso2.carbon.apimgt.webapp.publisher.config;
public class APIResourceManagementException extends Exception {
private static final long serialVersionUID = -3151279311929070297L;
public APIResourceManagementException(String msg, Exception nestedEx) {
super(msg, nestedEx);
}
}
| ruwany/carbon-device-mgt | components/apimgt-extensions/org.wso2.carbon.apimgt.webapp.publisher/src/main/java/org/wso2/carbon/apimgt/webapp/publisher/config/APIResourceManagementException.java | Java | apache-2.0 | 309 |
/*
* Copyright 2000-2012 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... | michaelgallacher/intellij-community | plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/CvsCheckinHandlerFactory.java | Java | apache-2.0 | 2,645 |
/*
* 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... | hurricup/intellij-community | platform/platform-impl/src/com/intellij/openapi/wm/impl/status/StatusBarUI.java | Java | apache-2.0 | 2,790 |
/*
* 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... | jk1/intellij-community | java/structuralsearch-java/src/com/intellij/structuralsearch/impl/matcher/predicates/FormalArgTypePredicate.java | Java | apache-2.0 | 1,283 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.tabmodel;
import org.chromium.chrome.browser.Tab;
import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType;... | guorendong/iridium-browser-ubuntu | chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelObserver.java | Java | bsd-3-clause | 3,080 |
package org.motechproject.mds.test.service.manytomany;
import org.motechproject.mds.annotations.Lookup;
import org.motechproject.mds.annotations.LookupField;
import org.motechproject.mds.service.MotechDataService;
import org.motechproject.mds.test.domain.manytomany.Product;;
public interface ProductDataService exten... | adamkalmus/motech | platform/mds/mds-test-bundle/src/main/java/org/motechproject/mds/test/service/manytomany/ProductDataService.java | Java | bsd-3-clause | 453 |
package com.appMobi.appMobiLib;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.net.URLEncoder;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collec... | jasonweng/android | appMobiLib/src/com/appMobi/appMobiLib/AppMobiAnalytics.java | Java | mit | 8,899 |
package im.actor.images.ops;
import android.graphics.*;
import im.actor.images.common.WorkCache;
import static im.actor.images.ops.ImageDrawing.*;
/**
* Scaling images effectively with keeping good quality.
*
* @author Stepan ex3ndr Korshakov me@ex3ndr.com
*/
public class ImageScaling {
/**
* Scaling b... | TimurTarasenko/actor-platform | actor-apps/app-android/src/main/java/im/actor/images/ops/ImageScaling.java | Java | mit | 6,594 |
/*
* Copyright (c) 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 Softwa... | mohlerm/hotspot_cached_profiles | src/jdk.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/InvalidInstalledCodeException.java | Java | gpl-2.0 | 1,310 |
/*
* Copyright (c) 2000, 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 ... | FauxFaux/jdk9-jdk | src/java.base/share/classes/java/security/cert/PolicyQualifierInfo.java | Java | gpl-2.0 | 6,754 |
package org.thoughtcrime.securesms.service;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Binder;
import android.os.Handler;
import android.os.IBinder;
import android.util.Log;
... | jocelynthode/TextSecure | src/org/thoughtcrime/securesms/service/RegistrationService.java | Java | gpl-3.0 | 15,468 |
/**
* 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... | digital-abyss/curator | curator-examples/src/main/java/discovery/InstanceDetails.java | Java | apache-2.0 | 1,456 |
/*
* 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 ... | cleliameneghin/sling | contrib/extensions/distribution/core/src/test/java/org/apache/sling/distribution/monitor/impl/ForwardDistributionAgentMBeanTest.java | Java | apache-2.0 | 3,984 |
/*
* 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 ... | apache/flink | flink-core/src/test/java/org/apache/flink/util/ArrayUtilsTest.java | Java | apache-2.0 | 2,126 |
// -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2012 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.google.appinventor.components.runtime;
import com.google.appinventor.... | tvomf/appinventor-mapps | appinventor/components/src/com/google/appinventor/components/runtime/SoundRecorder.java | Java | apache-2.0 | 8,379 |
/*
* Copyright 2005-2007 WSO2, Inc. (http://wso2.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 required by applicable... | sanethd/product-as | modules/samples/product/Chad/src/org/wso2/appserver/sample/chad/data/ChadPollResult.java | Java | apache-2.0 | 2,258 |
/*
* 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/geospatial/src/test/java/org/apache/ignite/testsuites/GeoSpatialIndexingTestSuite.java | Java | apache-2.0 | 1,526 |
package org.zstack.test.storage.backup;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.zstack.core.Platform;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.componentloader.ComponentLoader;
import org.zstack.core.db.DatabaseFacade;
import org.zstack.header.me... | zstackorg/zstack | test/src/test/java/org/zstack/test/storage/backup/TestAllocateBackupStorage3.java | Java | apache-2.0 | 2,423 |
/*
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | core9/closure-templates | src/impl/java/com/google/template/soy/SoyModule.java | Java | apache-2.0 | 2,866 |
/**
* Copyright (c) 2009--2014 Red Hat, Inc.
*
* This software is licensed to you under the GNU General Public License,
* version 2 (GPLv2). There is NO WARRANTY for this software, express or
* implied, including the implied warranties of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. You should have rece... | xkollar/spacewalk | java/code/src/com/redhat/rhn/domain/kickstart/KickstartPackage.java | Java | gpl-2.0 | 5,119 |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | fjy/druid | processing/src/test/java/io/druid/query/timeboundary/TimeBoundaryQueryTest.java | Java | apache-2.0 | 4,859 |
/*
* 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/clients/src/test/java/org/apache/ignite/internal/processors/rest/TestMemcacheClient.java | Java | apache-2.0 | 26,565 |
/*
* 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... | strapdata/elassandra | server/src/test/java/org/elasticsearch/index/query/SpanTermQueryBuilderTests.java | Java | apache-2.0 | 5,998 |
/*
* 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... | os890/deltaspike-vote | deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/literal/InitializedLiteral.java | Java | apache-2.0 | 1,262 |
package com.mossle.ext;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.multipart.MultipartFile;
import org... | callmeyan/lemon | src/main/java/com/mossle/ext/MultipartHandler.java | Java | apache-2.0 | 3,091 |
/*
* Copyright 2013 LinkedIn, 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... | bitti/voldemort | src/java/voldemort/client/rebalance/task/StealerBasedRebalanceTask.java | Java | apache-2.0 | 4,789 |
package org.keycloak.testsuite.springboot;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class SpringAdminPage extends AbstractSpringbootPage {
@FindBy(className = "test")
private WebElement testDiv;
public static final String PAGE_TITLE = "springboot admin pag... | thomasdarimont/keycloak | testsuite/integration-arquillian/tests/other/springboot-tests/src/main/java/org/keycloak/testsuite/springboot/SpringAdminPage.java | Java | apache-2.0 | 471 |
// Copyright 2015 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | wakashige/bazel | src/main/java/com/google/devtools/build/lib/packages/EnvironmentGroup.java | Java | apache-2.0 | 12,087 |
/*
* 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 ... | hizhangqi/jmeter-1 | src/components/org/apache/jmeter/control/ForeachController.java | Java | apache-2.0 | 8,665 |
/* Copyright (c) 2007 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | vanta/gdata-java-client | java/sample/gbase/cmdline/GetMediaCommand.java | Java | apache-2.0 | 1,357 |
/*
* 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... | rhusar/undertow | core/src/main/java/io/undertow/server/ConnectorStatistics.java | Java | apache-2.0 | 2,212 |
// "Simplify boolean expression" "true"
class A {
public static void m(boolean fullSearch, boolean partialSearch) {
if (!partialSearch) {
return;
}
// comment
String str
= fullSearch ? "str1"
: "str2 " + "str3";
}
} | goodwinnk/intellij-community | java/java-tests/testData/inspection/dataFlow/fixture/KeepComments_after.java | Java | apache-2.0 | 273 |
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | gpolitis/jitsi | src/net/java/sip/communicator/impl/protocol/icq/ProtocolProviderFactoryIcqImpl.java | Java | apache-2.0 | 9,612 |
/*
* 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... | martinstuga/elasticsearch | core/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregator.java | Java | apache-2.0 | 9,668 |
/**
* 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... | yangcwGIT/jstorm | jstorm-core/src/main/java/com/alibaba/jstorm/container/cgroup/CgroupCoreFactory.java | Java | apache-2.0 | 3,072 |
/* 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... | rainerh/camunda-bpm-platform | engine-rest/src/main/java/org/camunda/bpm/engine/rest/AuthorizationRestService.java | Java | apache-2.0 | 2,439 |
/*
*
* 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... | mbroadst/debian-qpid-cpp-old | proton-j/src/main/java/org/apache/qpid/proton/codec/messaging/PropertiesType.java | Java | apache-2.0 | 6,304 |
/**
* 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... | mgherghe/gateway | transport/wsn/src/test/java/org/kaazing/gateway/transport/wsn/autobahn/framing/FramingTextMessagesIT.java | Java | apache-2.0 | 3,302 |
package org.newdawn.slick.geom;
import org.newdawn.slick.Image;
import org.newdawn.slick.ShapeFill;
import org.newdawn.slick.opengl.Texture;
import org.newdawn.slick.opengl.TextureImpl;
import org.newdawn.slick.opengl.renderer.LineStripRenderer;
import org.newdawn.slick.opengl.renderer.Renderer;
import org.newdawn.sli... | TomyLobo/Slick | src/main/java/org/newdawn/slick/geom/ShapeRenderer.java | Java | bsd-3-clause | 12,251 |
/* JWindow.java --
Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath 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, or (... | taciano-perez/JamVM-PH | src/classpath/javax/swing/JWindow.java | Java | gpl-2.0 | 8,145 |
/*
* 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... | Lekanich/intellij-community | java/idea-ui/src/com/intellij/projectImport/ProjectFormatPanel.java | Java | apache-2.0 | 2,323 |
/*******************************************************************************
* Copyright (c) 2006 Oracle Corporation and others.
* 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 i... | Drifftr/devstudio-tooling-bps | plugins/org.eclipse.bpel.common.ui/src/org/eclipse/bpel/common/ui/assist/FieldAssistAdapter.java | Java | apache-2.0 | 2,503 |
package org.nutz.dao.test.meta;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Readonly;
import org.nutz.dao.entity.annotation.Table;
@Table("t_simple_pojo")
public class SimplePOJO {
@Id
private long id;
@Co... | sdgdsffdsfff/nutz | test/org/nutz/dao/test/meta/SimplePOJO.java | Java | apache-2.0 | 818 |
/*<license>
Copyright 2004 - $Date$ by PeopleWare n.v..
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... | jandppw/ppwcode-recovered-from-google-code | java/vernacular/semantics/trunk/src/test/java/org/ppwcode/vernacular/semantics_VI/bean/stubs/StubRousseauBeanB.java | Java | apache-2.0 | 995 |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
*... | 0xkasun/zaproxy | src/org/parosproxy/paros/extension/manualrequest/ExtensionManualRequestEditor.java | Java | apache-2.0 | 6,249 |
/*
* Copyright (c) 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | kleopatra999/solutions-mobile-backend-starter-java | src/com/google/cloud/backend/spi/SubscriptionUtility.java | Java | apache-2.0 | 5,854 |
/*
* Copyright (c) 2007, 2016, 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 ... | FauxFaux/jdk9-jdk | test/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/ResourceManager.java | Java | gpl-2.0 | 2,603 |
/*
* Copyright (c) 2008-2015 Emmanuel Dupuy
* This program is made available under the terms of the GPLv3 License.
*/
package org.jd.gui.service.type;
import groovyjarjarasm.asm.ClassReader;
import groovyjarjarasm.asm.Opcodes;
import groovyjarjarasm.asm.tree.ClassNode;
import groovyjarjarasm.asm.tree.FieldNode;
im... | trfiladelfo/jd-gui | services/src/main/java/org/jd/gui/service/type/ClassFileTypeFactoryProvider.java | Java | gpl-3.0 | 13,565 |
/**
* 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... | sabre1041/camel | components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyEndpoint.java | Java | apache-2.0 | 6,630 |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* 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 ... | profjrr/zaproxy | src/org/zaproxy/zap/extension/script/OptionsScriptTableModel.java | Java | apache-2.0 | 2,653 |
/*
* 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 ... | wtanaka/beam | runners/core-construction-java/src/test/java/org/apache/beam/runners/core/construction/TriggerTranslationTest.java | Java | apache-2.0 | 4,942 |
package ic2.api.event;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import cpw.mods.fml.common.eventhandler.Cancelable;
import net.minecraftforge.event.world.WorldEvent;
/**
* A bunch of Events to handle the... | ZanyLeonic/Balloons | src/main/java/ic2/api/event/LaserEvent.java | Java | mit | 4,508 |
/*
* Copyright (c) 1996, 2008, 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 ... | rokn/Count_Words_2015 | testing/openjdk/jdk/src/share/classes/sun/rmi/transport/tcp/ConnectionMultiplexer.java | Java | mit | 16,501 |
/**
* Copyright (c) 2010-2016, openHAB.org and others.
*
* 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
*/
package org... | evansj/openhab | bundles/binding/org.openhab.binding.lcn/src/main/java/org/openhab/binding/lcn/connection/ConnectionSettings.java | Java | epl-1.0 | 6,850 |
/*
* Copyright 2013 Orient Technologies.
* Copyright 2013 Geomatys.
*
* 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 re... | sanyaade-g2g-repos/orientdb | core/src/main/java/com/orientechnologies/orient/core/sql/method/misc/OSQLMethodJavaType.java | Java | apache-2.0 | 1,305 |
package com.thinkaurelius.titan.graphdb.serializer;
/**
* @author Matthias Broecheler (me@matthiasb.com)
*/
public class NoDefaultConstructor {
private final int i;
public NoDefaultConstructor(int i) {
this.i=i;
}
}
| fengshao0907/titan | titan-test/src/test/java/com/thinkaurelius/titan/graphdb/serializer/NoDefaultConstructor.java | Java | apache-2.0 | 243 |
/*
* The MIT License
* Copyright (c) 2012 Microsoft Corporation
*
* 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 use,... | KatharineYe/ews-java-api | src/main/java/microsoft/exchange/webservices/data/sync/Change.java | Java | mit | 3,475 |
/*
* Copyright 2012-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 a... | tiarebalbi/spring-boot | spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/liquibase/LiquibaseEndpointAutoConfigurationTests.java | Java | apache-2.0 | 4,067 |
package test.verify;
import org.testng.Assert;
import org.testng.TestListenerAdapter;
import org.testng.TestNG;
import org.testng.annotations.Test;
import test.SimpleBaseTest;
public class VerifyTest extends SimpleBaseTest {
private void runTest(Class<?> cls, int expected) {
TestNG tng = create(cls);
Test... | s2oBCN/testng | src/test/java/test/verify/VerifyTest.java | Java | apache-2.0 | 1,103 |
/*
* Copyright 2000-2013 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... | idea4bsd/idea4bsd | platform/lang-api/src/com/intellij/refactoring/RefactoringBundle.java | Java | apache-2.0 | 2,776 |
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | sheofir/aws-sdk-java | aws-java-sdk-elasticbeanstalk/src/main/java/com/amazonaws/services/elasticbeanstalk/model/ApplicationVersionDescription.java | Java | apache-2.0 | 12,433 |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.content_linker_test_apk;
import android.util.Log;
import org.chromium.base.JNINamespace;
import org.chromium.content.app.Linker;
/... | qtekfun/htcDesire820Kernel | external/chromium_org/content/shell/android/linker_test_apk/src/org/chromium/content_linker_test_apk/LinkerTests.java | Java | gpl-2.0 | 2,419 |
/*
* Copyright (c) 2003, 2012, 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/java/lang/Math/HyperbolicTests.java | Java | gpl-2.0 | 58,838 |
import org.junit.*;
import play.mvc.*;
import play.test.*;
import static play.test.Helpers.*;
import static org.junit.Assert.*;
import static org.fluentlenium.core.filter.FilterConstructor.*;
public class IntegrationTest {
/**
* add your integration test here
* in this example we just check if the we... | saivarunr/zemoso-training | whatsapp_project/whatsapp/test/IntegrationTest.java | Java | apache-2.0 | 644 |
/*
* 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... | wangcy6/storm_app | frame/kafka-0.11.0/kafka-0.11.0.1-src/clients/src/main/java/org/apache/kafka/common/errors/ReplicaNotAvailableException.java | Java | apache-2.0 | 1,252 |
package net.londatiga.android;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.View.OnClickListener;
/**
* Action item, displayed as menu with icon and text.
*
* @author Lorensius. W. L. T
*
*/
public class ActionItem {
private Drawable icon;
private S... | thejeshgn/sl4a | android/QuickAction/src/net/londatiga/android/ActionItem.java | Java | apache-2.0 | 1,583 |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | aakashysharma/opengse | engines/minigse/java/com/google/opengse/parser/Chset.java | Java | apache-2.0 | 15,420 |
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | sheofir/aws-sdk-java | aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53domains/model/transform/UpdateDomainContactResultJsonUnmarshaller.java | Java | apache-2.0 | 2,748 |
/*
* 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... | ipros-team/presto | presto-main/src/main/java/com/facebook/presto/operator/aggregation/state/HyperLogLogStateFactory.java | Java | apache-2.0 | 2,985 |
package org.andengine.util.level.simple;
import org.andengine.entity.scene.Scene;
import org.andengine.util.level.ILevelLoaderResult;
/**
* (c) 2012 Zynga Inc.
*
* @author Nicolas Gramlich <ngramlich@zynga.com>
* @since 16:13:38 - 19.04.2012
*/
public class SimpleLevelLoaderResult implements ILevelLoaderResult {... | caoanhhao/AndEngine | src/org/andengine/util/level/simple/SimpleLevelLoaderResult.java | Java | apache-2.0 | 1,539 |
/*
Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved., Inc. All rights reserved.
U.S. Government Rights - Commercial software. Government users are subject
to the Sun Microsystems, Inc. standard license agreement and applicable
provisions of the FAR and its supplements. Use is subject to l... | suthat/signal | vendor/mysql-connector-java-5.1.26/src/com/mysql/jdbc/V1toV2StatementInterceptorAdapter.java | Java | apache-2.0 | 2,175 |
/**
* 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... | pombredanne/brisk-hadoop-common | src/test/org/apache/hadoop/hdfs/server/namenode/TestSecurityTokenEditLog.java | Java | apache-2.0 | 5,772 |
/*
* 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... | hurricup/intellij-community | java/debugger/impl/src/com/intellij/debugger/impl/DebuggerStateManager.java | Java | apache-2.0 | 1,818 |
/*
* Copyright (c) 1997, 2003, 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 ... | isaacl/openjdk-jdk | src/share/classes/javax/swing/Scrollable.java | Java | gpl-2.0 | 5,605 |
/*
* 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 ... | anchela/jackrabbit-oak | oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/tck/RetentionIT.java | Java | apache-2.0 | 1,195 |
/**
* 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 us... | tempbottle/kafka | clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRebalanceCallback.java | Java | apache-2.0 | 5,998 |
/*
* Druid - a distributed column store.
* Copyright 2012 - 2015 Metamarkets Group 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-... | Kleagleguo/druid | processing/src/main/java/io/druid/query/metadata/metadata/NoneColumnIncluderator.java | Java | apache-2.0 | 937 |
/*
* 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 ... | AndreasAbdi/jackrabbit-oak | oak-run/src/main/java/org/apache/jackrabbit/oak/fixture/RepositoryFixture.java | Java | apache-2.0 | 2,647 |
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | nmelnick/aws-sdk-java | aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/model/ChangeAction.java | Java | apache-2.0 | 1,692 |
/*
* Copyright (c) 1997, 2011, 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 ... | rokn/Count_Words_2015 | testing/openjdk2/jaxws/src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/xmlschema/DefaultClassBinder.java | Java | mit | 21,517 |
/*
* 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 ... | chiastic-security/phoenix-for-cloudera | phoenix-core/src/test/java/org/apache/phoenix/expression/LnLogFunctionTest.java | Java | apache-2.0 | 8,173 |
/*
* Copyright (c) 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 Softwa... | rokn/Count_Words_2015 | testing/openjdk2/jdk/src/share/classes/sun/text/resources/is/JavaTimeSupplementary_is.java | Java | mit | 5,763 |
/*
* 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... | dahlstrom-g/intellij-community | platform/lang-api/src/com/intellij/execution/filters/OpenFileHyperlinkInfo.java | Java | apache-2.0 | 1,626 |
/**
* 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... | WillCh/cs286A | dataMover/kafka/clients/src/test/java/org/apache/kafka/clients/ClientUtilsTest.java | Java | bsd-2-clause | 1,447 |
/*
* 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... | markwalkom/elasticsearch | modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/AppendProcessor.java | Java | apache-2.0 | 3,131 |
package com.jetbrains.python.refactoring;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.PsiDirectory;
import com.intellij.psi.PsiManager;
import com.intellij.testFramework.PlatformTestUtil;
import com.jetbrains.python.fixtures.PyTestCase;
import com.jetbrains.python.refactoring.convert.PyConvert... | akosyakov/intellij-community | python/testSrc/com/jetbrains/python/refactoring/PyConvertPackageToModuleTest.java | Java | apache-2.0 | 1,324 |
/**
* Copyright (c) 2003-2017 The Apereo 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://opensource.org/licenses/ecl2
*
* Unless requ... | OpenCollabZA/sakai | edu-services/gradebook-service/impl/src/java/org/sakaiproject/tool/gradebook/facades/sections/AuthzSectionsImpl.java | Java | apache-2.0 | 27,307 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.watcher.notification.pagerduty;
import org.el... | gfyoung/elasticsearch | x-pack/plugin/watcher/src/test/java/org/elasticsearch/xpack/watcher/notification/pagerduty/IncidentEventDefaultsTests.java | Java | apache-2.0 | 4,735 |
/**
* 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... | tianshouzhi/hadoop | hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocolPB/ClientNamenodeProtocolTranslatorPB.java | Java | apache-2.0 | 59,555 |
/*
* 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... | MichaelNedzelsky/intellij-community | java/java-impl/src/com/intellij/refactoring/replaceConstructorWithFactory/ReplaceConstructorWithFactoryProcessor.java | Java | apache-2.0 | 13,420 |
/**
* 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... | Guavus/hbase | hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/metrics/MBeanSource.java | Java | apache-2.0 | 1,377 |
/*
* Copyright 2010 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... | jayway/powermock | powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/SafeExceptionRethrower.java | Java | apache-2.0 | 936 |
/*
* 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... | ivan-fedorov/intellij-community | python/src/com/jetbrains/python/psi/impl/PyBaseElementImpl.java | Java | apache-2.0 | 6,862 |
/*
* 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 ... | danielkec/liquibase | liquibase-core/src/main/java/liquibase/util/SystemUtils.java | Java | apache-2.0 | 52,176 |
/**
* 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... | allancth/camel | tooling/camel-route-parser/src/test/java/org/apache/camel/parser/java/RoasterConcatFieldRouteBuilderConfigureTest.java | Java | apache-2.0 | 2,314 |
package net.simonvt.menudrawer;
import android.os.Build;
import android.view.View;
final class ViewHelper {
private ViewHelper() {
}
public static int getLeft(View v) {
if (MenuDrawer.USE_TRANSLATIONS) {
return (int) (v.getLeft() + v.getTranslationX());
}
return v.ge... | W3SS/android-menudrawer | menudrawer/src/net/simonvt/menudrawer/ViewHelper.java | Java | apache-2.0 | 1,145 |