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 com.segment.analytics.sample;
import android.app.Activity;
import android.os.Bundle;
import android.support.wearable.view.WatchViewStub;
import android.view.View;
import com.segment.analytics.WearAnalytics;
public class MainActivity extends Activity {
@Override protected void onCreate(Bundle savedInstanceS... | jmgamboa/analytics-android | analytics-wear-sample/src/main/java/com/segment/analytics/sample/MainActivity.java | Java | mit | 1,057 |
/**
* Copyright (c) 2014,2019 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is av... | Snickermicker/smarthome | extensions/binding/org.eclipse.smarthome.binding.hue/src/main/java/org/eclipse/smarthome/binding/hue/internal/BridgeConfigUpdate.java | Java | epl-1.0 | 3,795 |
/*
* 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/BreakpointEvent/_itself_/breakpoint002/TestDescription.java | Java | gpl-2.0 | 2,774 |
/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | wiki2014/Learning-Summary | alps/developers/samples/android/ui/views/Elevation/ElevationDrag/Application/src/main/java/com/example/android/elevationdrag/ElevationDragFragment.java | Java | gpl-3.0 | 4,348 |
/*
* Trace2DBijective, a list- based implementation of a ITrace2D that only
* allows a single occurance of a certain x- value.
* Copyright (c) 2004 - 2011 Achim Westermann, Achim.Westermann@gmx.de
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser G... | cheshirekow/codebase | third_party/lcm/lcm-java/jchart2d-code/src/info/monitorenter/gui/chart/traces/Trace2DBijective.java | Java | gpl-3.0 | 3,311 |
/*
* FileUtil.java, helpers for disk I/O.
* Copyright (C) 2001 - 2011 Achim Westermann.
*
* 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 (... | cheshirekow/codebase | third_party/lcm/lcm-java/jchart2d-code/src/info/monitorenter/util/FileUtil.java | Java | gpl-3.0 | 19,605 |
/**
* This file is part of Todo.txt for Android, an app for managing your todo.txt file (http://todotxt.com).
*
* Copyright (c) 2009-2013 Todo.txt for Android contributors (http://todotxt.com)
*
* LICENSE:
*
* Todo.txt for Android is free software: you can redistribute it and/or modify it under the terms of the ... | GoogleCloudPlatform/endpoints-codelab-android | todoTxtTouch/src/main/java/com/todotxt/todotxttouch/task/TaskPersistException.java | Java | gpl-3.0 | 1,604 |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | wiki2014/Learning-Summary | alps/developers/samples/android/ui/window/MultiWindowPlayground/Application/src/main/java/com/android/multiwindowplayground/activities/LoggingActivity.java | Java | gpl-3.0 | 4,810 |
/*******************************************************************************
* 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(... | tdefilip/opennms | core/upgrade/src/test/java/org/opennms/upgrade/tests/TestUpgradeExecuted.java | Java | agpl-3.0 | 3,077 |
/*
* ################################################################
*
* 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/plugtest/MTest.java | Java | agpl-3.0 | 4,097 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 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(R) is... | tdefilip/opennms | opennms-config-jaxb/src/main/java/org/opennms/netmgt/config/internal/collection/GroupReferenceImpl.java | Java | agpl-3.0 | 3,107 |
package com.pi4j.system;
/*
* #%L
* **********************************************************************
* ORGANIZATION : Pi4J
* PROJECT : Pi4J :: Java Library (Core)
* FILENAME : NetworkInfo.java
*
* This file is part of the Pi4J project. More information about
* this project can be found... | curvejumper/pi4j | pi4j-core/src/main/java/com/pi4j/system/NetworkInfo.java | Java | lgpl-3.0 | 4,761 |
/*
* 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... | anti-social/elasticsearch | src/main/java/org/elasticsearch/indices/IndicesLifecycle.java | Java | apache-2.0 | 6,781 |
/*
* 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 ... | jasonkuster/incubator-beam | sdks/java/io/hdfs/src/test/java/org/apache/beam/sdk/io/hdfs/WritableCoderTest.java | Java | apache-2.0 | 1,581 |
/**
* Copyright (c) 2015, 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 required... | pushyamig/sakai | samigo/samigo-impl/src/java/org/sakaiproject/samigo/impl/SamigoETSProviderImpl.java | Java | apache-2.0 | 21,620 |
/*
* 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 ... | kevinleturc/querydsl | querydsl-sql/src/test/java/com/querydsl/sql/AbstractSQLTemplatesTest.java | Java | apache-2.0 | 5,651 |
/*
* 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... | codemogroup/siddhi | modules/siddhi-core/src/main/java/org/wso2/siddhi/core/executor/function/InstanceOfIntegerFunctionExecutor.java | Java | apache-2.0 | 4,079 |
/*
* Copyright (c) 2012-2015 The original author or authors
* ------------------------------------------------------
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distributi... | dant3/moquette | parser_commons/src/main/java/org/eclipse/moquette/proto/messages/PubRecMessage.java | Java | apache-2.0 | 853 |
/**
* 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... | ict-carch/hadoop-plus | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceTrackerService.java | Java | apache-2.0 | 14,301 |
// Copyright 2017 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... | twitter-forks/bazel | src/main/java/com/google/devtools/build/lib/concurrent/ParallelVisitor.java | Java | apache-2.0 | 16,045 |
/*
* Copyright 2019 NAVER Corp.
*
* 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... | naver/pinpoint | profiler/src/main/java/com/navercorp/pinpoint/profiler/monitor/metric/gc/JvmGcType.java | Java | apache-2.0 | 945 |
/**
* 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... | lburgazzoli/apache-camel | camel-core/src/main/java/org/apache/camel/impl/verifier/DefaultResult.java | Java | apache-2.0 | 1,914 |
/*
* 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... | marsorp/blog | presto166/presto-main/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ImplementBernoulliSampleAsFilter.java | Java | apache-2.0 | 2,449 |
/*
* Copyright 2019 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... | romartin/kie-wb-common | kie-wb-common-forms/kie-wb-common-forms-integrations/kie-wb-common-forms-jbpm-integration/kie-wb-common-forms-jbpm-integration-backend/src/test/java/org/kie/workbench/common/forms/jbpm/server/service/impl/documents/storage/impl/TestUploadedDocumentStorageImpl.java | Java | apache-2.0 | 949 |
/*
* 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 ... | tkpanther/ignite | modules/core/src/main/java/org/apache/ignite/internal/processors/cache/KeyCacheObjectImpl.java | Java | apache-2.0 | 4,223 |
/*
* 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 | processing/src/main/java/org/apache/druid/segment/column/SimpleColumnHolder.java | Java | apache-2.0 | 2,465 |
/*
* 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... | apixandru/intellij-community | plugins/javaFX/javaFX-jps-plugin/src/org/jetbrains/plugins/javaFX/JpsJavaFxArtifactBuildTaskProvider.java | Java | apache-2.0 | 8,902 |
/*
* 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... | prestodb/presto | presto-main/src/test/java/com/facebook/presto/type/TestLongDecimalType.java | Java | apache-2.0 | 4,135 |
/* Copyright 2016 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 ... | saicheems/discovery-artifact-manager | toolkit/src/main/java/com/google/api/codegen/viewmodel/ParamDocView.java | Java | apache-2.0 | 668 |
// Copyright 2019 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.payments.handler.toolbar;
import org.chromium.ui.modelutil.PropertyKey;
import org.chromium.ui.modelutil.PropertyMode... | ric2b/Vivaldi-browser | chromium/chrome/android/java/src/org/chromium/chrome/browser/payments/handler/toolbar/PaymentHandlerToolbarProperties.java | Java | bsd-3-clause | 2,222 |
package org.jabref.gui.importer.fetcher;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import org.jabref.Globals;
import org.jabref.gui.importer.ImportInspectionDialog;
import org.jabref.logic.help.HelpFile;
import org.jabref.logic.importer.ImportInspector;
import org.jabref.logic.importer.OutputPrinter;... | shitikanth/jabref | src/main/java/org/jabref/gui/importer/fetcher/DOAJFetcher.java | Java | mit | 4,922 |
/**
* Utility classes for managing extensions/encapsulations.
*/
package org.jgrapht.alg.util.extension;
| WorstCase00/jgrapht | jgrapht-core/src/main/java/org/jgrapht/alg/util/extension/package-info.java | Java | epl-1.0 | 107 |
/*
* Copyright (c) 2005, 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... | lucasicf/metricgenerator-jdk-compiler | src/share/classes/com/sun/source/tree/SwitchTree.java | Java | gpl-2.0 | 1,696 |
/*
* 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... | dwango/quercus | src/main/java/com/caucho/quercus/lib/gettext/POFileParser.java | Java | gpl-2.0 | 7,510 |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | mateor/PDroidHistory | frameworks/base/core/java/android/content/pm/PackageStats.java | Java | gpl-3.0 | 2,265 |
/* Copyright (c) 2001-2009, The HSQL Development Group
* 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... | malin1993ml/h-store | src/hsqldb19b3/org/hsqldb/lib/HsqlByteArrayInputStream.java | Java | gpl-3.0 | 6,758 |
package org.ethereum.net.swarm;
/**
* Any binary data with its key
* The key is normally SHA3(data)
*/
public class Chunk {
protected Key key;
protected byte[] data;
public Chunk(Key key, byte[] data) {
this.key = key;
this.data = data;
}
public Key getKey() ... | dbenrosen/EtherPay | ethereumj-core/src/main/java/org/ethereum/net/swarm/Chunk.java | Java | agpl-3.0 | 418 |
////////////////////////////////////////////////////////////////////////////////
// checkstyle: Checks Java source code for adherence to a set of rules.
// Copyright (C) 2001-2015 the original author or authors.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU ... | beckerhd/checkstyle | src/main/java/com/puppycrawl/tools/checkstyle/api/FileText.java | Java | lgpl-2.1 | 11,291 |
package org.molgenis.jobs;
import org.molgenis.jobs.model.JobExecution;
/** Keeps track of the currently executing {@link JobExecution}. */
public class JobExecutionHolder {
private JobExecutionHolder() {}
public static final ThreadLocal<JobExecution> jobContextHolder = new ThreadLocal<>();
public static void... | dennishendriksen/molgenis | molgenis-jobs/src/main/java/org/molgenis/jobs/JobExecutionHolder.java | Java | lgpl-3.0 | 544 |
package org.molgenis.data.importer.emx.exception;
import static java.lang.String.format;
import static java.util.Objects.requireNonNull;
import org.molgenis.util.exception.CodedRuntimeException;
public class DuplicateAttributeNameException extends CodedRuntimeException {
private static final String ERROR_CODE = "I... | sidohaakma/molgenis | molgenis-data-import/src/main/java/org/molgenis/data/importer/emx/exception/DuplicateAttributeNameException.java | Java | lgpl-3.0 | 1,123 |
package org.molgenis.data.decorator.meta;
import static org.molgenis.data.decorator.meta.DecoratorParametersMetadata.DECORATOR;
import static org.molgenis.data.decorator.meta.DecoratorParametersMetadata.ID;
import static org.molgenis.data.decorator.meta.DecoratorParametersMetadata.PARAMETERS;
import org.molgenis.data... | sidohaakma/molgenis | molgenis-data/src/main/java/org/molgenis/data/decorator/meta/DecoratorParameters.java | Java | lgpl-3.0 | 1,240 |
/*
* 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 ... | manuzhang/incubator-beam | runners/direct-java/src/main/java/org/apache/beam/runners/direct/WindowEvaluatorFactory.java | Java | apache-2.0 | 5,089 |
package hex;
import hex.deeplearning.DeepLearning;
import hex.deeplearning.DeepLearningModel;
import junit.framework.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import water.JUnitRunnerDebug;
import water.Key;
import water.TestUtil;
import water.UKV;
import water.fvec.Frame;
import water.fvec.NFSFileV... | 111t8e/h2o-2 | src/test/java/hex/DeepLearningSpiralsTest.java | Java | apache-2.0 | 2,749 |
/**
* Copyright (c) 2013-2021 Nikita Koksharov
*
* 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... | redisson/redisson | redisson-spring-data/redisson-spring-data-26/src/main/java/org/redisson/spring/data/connection/PointDecoder.java | Java | apache-2.0 | 1,510 |
/**
* 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... | lburgazzoli/apache-camel | components/camel-reactive-streams/src/main/java/org/apache/camel/component/reactive/streams/engine/CamelSubscriber.java | Java | apache-2.0 | 5,854 |
package com.progbits.jdbc.bonecpmssqlfragment;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
| kscarr73/OsgiDb | HikariCPOracleFragment/src/main/java/com/progbits/jdbc/bonecpmssqlfragment/App.java | Java | apache-2.0 | 213 |
/**
* 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... | jmandawg/camel | components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketProducerTest.java | Java | apache-2.0 | 16,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 ... | kralf/ros-android | src/xmlrpc/org/apache/xmlrpc/parser/SerializableParser.java | Java | apache-2.0 | 1,596 |
/*
* Copyright 2012-2018 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 ap... | bclozel/spring-boot | spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/jmx/JmxMetricsExportAutoConfiguration.java | Java | apache-2.0 | 2,786 |
/*
e * 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... | Wesley-Lawrence/nifi | nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/repository/metrics/SecondPrecisionEventContainer.java | Java | apache-2.0 | 2,440 |
/*
* Copyright 2000-2016 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 | java/java-indexing-impl/src/com/intellij/psi/impl/search/ConstructorReferencesSearchHelper.java | Java | apache-2.0 | 12,787 |
/**
* Licensed to Apereo under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright ownership. Apereo
* licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compli... | GIP-RECIA/esup-uportal | uPortal-rdbm/src/main/java/org/apereo/portal/jpa/OpenEntityManagerAspect.java | Java | apache-2.0 | 7,234 |
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.ignite.messaging;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi... | nikhilvibhav/camel | components/camel-ignite/src/generated/java/org/apache/camel/component/ignite/messaging/IgniteMessagingComponentConfigurer.java | Java | apache-2.0 | 3,679 |
package org.jolokia.it;
import java.beans.ConstructorProperties;
/**
* @author roland
* @since 29.06.14
*/
public class PojoBean {
private final String name;
private final String value;
@ConstructorProperties({ "name", "value" })
public PojoBean(String name, String value) {
this.name = na... | cinhtau/jolokia | it/core/src/main/java/org/jolokia/it/PojoBean.java | Java | apache-2.0 | 970 |
/*
* 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.ql.expression.predicate.operator.comparison;
... | nknize/elasticsearch | x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/expression/predicate/operator/comparison/InProcessor.java | Java | apache-2.0 | 2,539 |
/*
* 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-metrics/flink-metrics-dropwizard/src/test/java/org/apache/flink/dropwizard/ScheduledDropwizardReporterTest.java | Java | apache-2.0 | 7,920 |
/* 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... | nagyistoce/camunda-bpm-platform | engine-rest/src/test/java/org/camunda/bpm/engine/rest/wink/TaskRestServiceQueryTest.java | Java | apache-2.0 | 1,426 |
/*
* 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 ... | vineetgarg02/hive | common/src/java/org/apache/hadoop/hive/common/jsonexplain/DagJsonParser.java | Java | apache-2.0 | 6,115 |
package hudson.model;
import static org.junit.Assert.*;
import java.lang.reflect.Method;
import org.hamcrest.CoreMatchers;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.jvnet.hudson.test.Issue;
import org.mockito.Mockito;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.M... | escoem/jenkins | core/src/test/java/hudson/model/JobTest.java | Java | mit | 3,242 |
/*
* Copyright (c) 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 Softwa... | JetBrains/jdk8u_jdk | test/javax/imageio/plugins/jpeg/JpegImageColorSpaceTest.java | Java | gpl-2.0 | 2,664 |
/**
* (C) 2011-2012 Alibaba Group Holding Limited.
*
* 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.
*
*/
package com.taobao.profile.thread;
import java.util.concurrent.TimeUn... | topalps/TProfiler | src/main/java/com/taobao/profile/thread/DataDumpThread.java | Java | gpl-2.0 | 2,951 |
/******************************************************************************
* 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_PromotionLine.java | Java | gpl-2.0 | 5,233 |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, 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 | controller-client/src/main/java/org/jboss/as/controller/client/helpers/domain/DeploymentPlan.java | Java | lgpl-2.1 | 5,323 |
/*
* XAdES4j - A Java library for generation and verification of XAdES signatures.
* Copyright (C) 2010 Luis Goncalves.
*
* XAdES4j 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 ver... | jflnet/XADES4J | src/main/java/xades4j/verification/XAdESFormChecker.java | Java | lgpl-3.0 | 9,627 |
/**
* 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... | steveloughran/hadoop | hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileSystemInitialization.java | Java | apache-2.0 | 5,164 |
/*
* 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 at
*
* ... | JordanGS/zaproxy | src/org/zaproxy/zap/spider/parser/SpiderGitParser.java | Java | apache-2.0 | 12,348 |
/*
* 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 ... | matthewtt/cassandra_read | src/java/org/apache/cassandra/transport/messages/PrepareMessage.java | Java | apache-2.0 | 2,942 |
/*
* 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... | johannnallathamby/carbon-commons | components/logging/org.wso2.carbon.logging.service/src/main/java/org/wso2/carbon/logging/service/util/LoggingUtil.java | Java | apache-2.0 | 19,863 |
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | inoshperera/carbon-device-mgt-plugins | components/extensions/remote-session-extension/org.wso2.carbon.device.mgt.extensions.remote.session/src/main/java/org/wso2/carbon/device/mgt/extensions/remote.session/RemoteSessionManagementService.java | Java | apache-2.0 | 2,968 |
package org.nutz.mvc.upload;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import org.nutz.lang.Strings;
public class FieldMeta {
public FieldMeta(String s) {
map = new HashMap<String, String>();
String[] ss = Strings.splitIgnoreBlank(s, "[\n;]");
for ... | sdgdsffdsfff/nutz | src/org/nutz/mvc/upload/FieldMeta.java | Java | apache-2.0 | 1,628 |
package org.apache.maven.artifact.repository;
/*
* 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 Apach... | barthel/maven | maven-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java | Java | apache-2.0 | 6,249 |
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util;
import org.jetbrains.annotations.NotNull;
import java.util.*;
import java.util.function.Consumer;
/**
* A List which is optimised for the sizes of 0... | allotria/intellij-community | platform/util/collections/src/com/intellij/util/SmartList.java | Java | apache-2.0 | 8,013 |
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other 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 License at
*
* http://www.apach... | wildfly-security-incubator/keycloak | services/src/main/java/org/keycloak/protocol/oidc/utils/WebOriginsUtils.java | Java | apache-2.0 | 1,659 |
/*
* 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... | goodwinnk/intellij-community | platform/lang-api/src/com/intellij/execution/filters/InputFilter.java | Java | apache-2.0 | 1,323 |
/*
* 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/flink | flink-state-backends/flink-statebackend-changelog/src/test/java/org/apache/flink/state/changelog/TestChangeLoggerKv.java | Java | apache-2.0 | 4,334 |
/*
*
* * 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
... | tzulitai/flink | flink-state-backends/flink-statebackend-heap-spillable/src/test/java/org/apache/flink/runtime/state/heap/TestAllocator.java | Java | apache-2.0 | 4,619 |
/*
* 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-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/StreamRecordTimestampInserter.java | Java | apache-2.0 | 2,131 |
/*
* 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.xpack.security.action.user;
import org.e... | jmluy/elasticsearch | x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/action/user/TransportGetUsersActionTests.java | Java | apache-2.0 | 18,450 |
/*
* 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-netty/src/test/java/org/apache/camel/component/netty/NettyConsumerClientModeReuseChannelTest.java | Java | apache-2.0 | 6,641 |
/*
* 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... | facebook/presto | presto-main/src/main/java/com/facebook/presto/sql/planner/plan/SimplePlanRewriter.java | Java | apache-2.0 | 3,432 |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | mirego/j2objc | jre_emul/android/platform/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/SAXParseExceptionTest.java | Java | apache-2.0 | 6,629 |
/*
* Copyright 2017-2018 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... | spring-cloud/spring-cloud-dataflow | spring-cloud-dataflow-core/src/main/java/org/springframework/cloud/dataflow/core/StreamDeployment.java | Java | apache-2.0 | 1,589 |
/*
* 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-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/EvenlySpreadOutLocationPreferenceSlotSelectionStrategy.java | Java | apache-2.0 | 2,101 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2016 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | alina-ipatina/pentaho-kettle | engine/src/org/pentaho/di/trans/steps/fileexists/FileExists.java | Java | apache-2.0 | 7,176 |
package cc.mallet.fst;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import cc.mallet.fst.Transducer.State;
import cc.mallet.fst.Transducer.TransitionIterator;
import cc.mallet.types.DenseVector;
import cc.mallet.types.LabelAlphabet;
import cc.mallet.types.LabelVector;
i... | lazycrazyowl/jules-mallet-2 | src/main/java/cc/mallet/fst/SumLatticeBeam.java | Java | epl-1.0 | 38,215 |
// ========================================================================
// $Id: WebApplicationContextMBean.java,v 1.11 2005/08/13 00:01:27 gregwilkins Exp $
// Copyright 1999-2004 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// Licensed under the Apache L... | nagyistoce/Wilma | browsermob-proxy/src/main/java/net/lightbody/bmp/proxy/jetty/jetty/servlet/jmx/WebApplicationContextMBean.java | Java | gpl-3.0 | 4,986 |
// ========================================================================
// $Id: HttpHandler.java,v 1.11 2005/03/15 10:03:40 gregwilkins Exp $
// Copyright 199-2004 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// Licensed under the Apache License, Version ... | nagyistoce/Wilma | browsermob-proxy/src/main/java/net/lightbody/bmp/proxy/jetty/http/HttpHandler.java | Java | gpl-3.0 | 3,099 |
/**
* Copyright © 2002 Instituto Superior Técnico
*
* This file is part of FenixEdu Academic.
*
* FenixEdu Academic 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... | JNPA/fenixedu-academic | src/main/java/org/fenixedu/academic/domain/accessControl/ProfessorsGroup.java | Java | lgpl-3.0 | 2,147 |
/*
* 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 ... | lincoln-lil/flink | flink-runtime/src/main/java/org/apache/flink/runtime/shuffle/ShuffleMaster.java | Java | apache-2.0 | 4,865 |
/**
* 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... | cwestin/incubator-drill | exec/java-exec/src/main/codegen/templates/JsonOutputRecordWriter.java | Java | apache-2.0 | 4,803 |
// In the default package
class A {}
| facebook/buck | test/com/facebook/buck/jvm/java/testdata/sourcepath/A.java | Java | apache-2.0 | 38 |
/**
* 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/incubator-apex-core | common/src/main/java/com/datatorrent/common/experimental/AppData.java | Java | apache-2.0 | 5,583 |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | medicayun/medicayundicom | dcm4che14/tags/DCM4CHE_1_4_4/src/java/org/dcm4cheri/data/PersonNameImpl.java | Java | apache-2.0 | 6,717 |
/* ***** BEGIN LICENSE BLOCK *****
*
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (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.mozilla.org/MPL/
*
* Software di... | byzy/jcv-maven-plugin | src/main/java/org/mozilla/javascript/Decompiler.java | Java | apache-2.0 | 28,022 |
/* 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... | AlexMinsk/camunda-bpm-platform | engine/src/test/java/org/camunda/bpm/engine/test/bpmn/servicetask/util/BusinessKeyCheckJavaDelegate.java | Java | apache-2.0 | 1,117 |
/*
* 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/flink | flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/mailbox/MailboxProcessor.java | Java | apache-2.0 | 17,892 |
/*
* 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 ... | daidong/DominoHBase | hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/ServerRpcController.java | Java | apache-2.0 | 4,007 |
/*
* Copyright 2015 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | awaissattar001/mtrack | src/org/traccar/protocol/MegastekProtocol.java | Java | apache-2.0 | 1,694 |
/*
* 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 ... | mduerig/jackrabbit-oak | oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserImporterMembershipIgnoreTest.java | Java | apache-2.0 | 9,678 |
/*
* Copyright 2012-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | bbrouwer/spring-boot | spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/GrapeRootRepositorySystemSessionAutoConfigurationTests.java | Java | apache-2.0 | 3,888 |