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 2000-2013 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Darsstar/framework | uitest/src/main/java/com/vaadin/tests/components/combobox/ComboBoxItemAddingWithFocusListener.java | Java | apache-2.0 | 1,860 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*
* <p>Generated by an internal genrule from Flow types.
*
* @generated
* @nolint
*/
package com.facebook.fbreact.specs;
imp... | exponent/exponent | android/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImageEditorSpec.java | Java | bsd-3-clause | 1,060 |
/*
* Copyright 2011, The gwtquery 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 applicable law or agreed to... | lucasam/gwtquery | gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java | Java | mit | 90,576 |
/*
* Copyright (c) 1997, 2010, 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 ... | axDev-JDK/jaxws | src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/writer/document/soap/SOAPFault.java | Java | gpl-2.0 | 1,694 |
/*
* Copyright (c) 1997, 2010, 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 ... | axDev-JDK/jaxws | src/share/jaxws_classes/com/sun/xml/internal/ws/api/policy/PolicyResolver.java | Java | gpl-2.0 | 6,898 |
/*
*
*
* Copyright 1990-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
*
* This program 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 ... | mykmelez/pluotsorbet | java/tools/Jpp.java | Java | gpl-2.0 | 9,234 |
package edu.stanford.nlp.optimization;
import edu.stanford.nlp.classify.LogPrior;
import edu.stanford.nlp.math.ArrayMath;
import edu.stanford.nlp.util.Timing;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Random;
/**
* In place Stochastic Gradient Descent Minimizer.
* <ul>
* <li>... | heeyounglee/hcoref | src/edu/stanford/nlp/optimization/SGDMinimizer.java | Java | gpl-2.0 | 11,551 |
package com.dotmarketing.factories;
import java.io.Serializable;
import com.dotcms.repackage.net.sf.hibernate.engine.SessionImplementor;
import com.dotcms.repackage.net.sf.hibernate.id.IdentifierGenerator;
/**
* <b>vm.long</b><br>
* <br>
* An <tt>IdentifierGenerator</tt> that returns a <tt>Long</tt>, constructe... | wisdom-garden/dotcms | src/com/dotmarketing/factories/PermissionGenerator.java | Java | gpl-3.0 | 799 |
/*
* AxisTitlePainterDafault.java of project jchart2d, an IAxisTitlePainter
* that will render titles in a default way while adapting to x or y
* axis use.
* Copyright 2007 - 2011 (C) Achim Westermann, created on 04.08.2007 19:40:52.
*
* This library is free software; you can redistribute it and/or
* mo... | cheshirekow/codebase | third_party/lcm/lcm-java/jchart2d-code/src/info/monitorenter/gui/chart/axistitlepainters/AxisTitlePainterDefault.java | Java | gpl-3.0 | 11,045 |
/*
* The Kuali Financial System, a comprehensive financial management system for higher education.
*
* Copyright 2005-2014 The Kuali Foundation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Softw... | kuali/kfs | kfs-core/src/main/java/org/kuali/kfs/gl/batch/service/impl/ReconciliationBlock.java | Java | agpl-3.0 | 2,342 |
/*
* ################################################################
*
* 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/Extensions/org/objectweb/proactive/extensions/calcium/diagnosis/inferences/FineGranularity.java | Java | agpl-3.0 | 2,431 |
/*
* ################################################################
*
* 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
... | jrochas/scale-proactive | src/Tests/functionalTests/security/TestUnlimitedCrypto.java | Java | agpl-3.0 | 3,569 |
package edu.stanford.nlp.process;
import java.util.Iterator;
import java.util.List;
/**
* Tokenizers break up text into individual Objects. These objects may be
* Strings, Words, or other Objects. A Tokenizer extends the Iterator
* interface, but provides a lookahead operation <code>peek()</code>. An
* impleme... | onofujoHawk/twitter-wordnet-semantic-annotation | stanford-ner/edu/stanford/nlp/process/Tokenizer.java | Java | lgpl-2.1 | 1,633 |
package com.puppycrawl.tools.checkstyle.checks.blocks.needbraces;
public class InputNeedBracesSingleLineStatements
{
private static class SomeClass {
boolean flag = true;
private static boolean test(boolean k) {
return k;
}
}
private int foo() {
if (SomeClas... | jochenvdv/checkstyle | src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/needbraces/InputNeedBracesSingleLineStatements.java | Java | lgpl-2.1 | 2,888 |
package com.bj58.enterprise.entity;
import java.util.HashMap;
import java.util.Map;
import com.bj58.spat.gaea.serializer.component.annotation.GaeaMember;
import com.bj58.spat.gaea.serializer.component.annotation.GaeaSerializable;
@SuppressWarnings("serial")
@GaeaSerializable
public class User extends Ent... | hanjk1234/Gaea | serializer/test/com/bj58/enterprise/entity/User.java | Java | apache-2.0 | 2,483 |
/*
Value is always false (foo == null; line#15)
'foo' was assigned (=; line#14)
One of the following happens:
Expression cannot be null as it's newly created object (new String("bar"); line#14)
or expression cannot be null as it's newly created object (new String("foo"); line#14)
*/
import org.jetbr... | siosio/intellij-community | java/java-tests/testData/inspection/dataFlow/tracker/AssignTernaryNotNull.java | Java | apache-2.0 | 511 |
/**
* 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... | tomatoKiller/Hadoop_Source_Learn | hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/client/MRClientService.java | Java | apache-2.0 | 17,047 |
/*
* 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-jdo/src/test/java/com/querydsl/jdo/serialization/ExprSerializationTest.java | Java | apache-2.0 | 5,500 |
/*
* 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 ... | Sonnbc/modelCheckingCassandra | src/java/org/apache/cassandra/tools/SSTableMetadataViewer.java | Java | apache-2.0 | 3,024 |
package fr.free.nrw.commons.nearby;
import com.mapbox.mapboxsdk.annotations.Marker;
public class NearbyMarker extends Marker {
private final Place place;
private NearbyBaseMarker nearbyBaseMarker;
/**
* Creates a instance of {@link Marker} using the builder of Marker.
*
* @param baseMarker... | commons-app/apps-android-commons | app/src/main/java/fr/free/nrw/commons/nearby/NearbyMarker.java | Java | apache-2.0 | 718 |
/*
* Encog(tm) Core v3.3 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2014 Heaton Research, 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... | Crespo911/encog-java-core | src/main/java/org/encog/neural/networks/training/strategy/package-info.java | Java | apache-2.0 | 927 |
/*
* 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 ... | bdelacretaz/jackrabbit-oak | oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionEditor.java | Java | apache-2.0 | 9,795 |
/*
* 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... | kjniemi/activemq-artemis | artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/Address.java | Java | apache-2.0 | 1,151 |
package org.apache.archiva.rest.api.model;
/*
* 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 Li... | emsouza/archiva | archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/UserManagerImplementationInformation.java | Java | apache-2.0 | 1,422 |
/*
* 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... | jmluy/elasticsearch | server/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDecider.java | Java | apache-2.0 | 35,137 |
/*
* 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... | zuoyebushiwo/elasticsearch1.7-study | src/main/java/org/elasticsearch/action/admin/indices/validate/query/ValidateQueryRequestBuilder.java | Java | apache-2.0 | 3,480 |
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2001, Eric D. Friedman All Rights Reserved.
// Copyright (c) 2009, Rob Eden All Rights Reserved.
// Copyright (c) 2009, Jeff Randall All Rights Reserved.
//
// This library is free software; you can redistribute it and/or
/... | feesa/easyrec-parent | easyrec-utils/src/main/java/gnu/trove/map/TObjectDoubleMap.java | Java | apache-2.0 | 18,402 |
// Copyright 2000-2021 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.jetbrains.python.findUsages;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiElement;
import com.intellij.psi.util.PsiTreeUtil;
import com.int... | siosio/intellij-community | python/src/com/jetbrains/python/findUsages/PyFunctionGroupingRuleProvider.java | Java | apache-2.0 | 1,701 |
package org.bouncycastle.openpgp;
import java.io.IOException;
import java.io.OutputStream;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.List;
import org.bouncycastle.bcpg.BCPGOutputStream;
import org.bouncycastle.bcpg.HashAlgorithmTags;
import org.bouncycastle.bcpg.PacketTags;
impor... | GaloisInc/hacrypto | src/Java/BouncyCastle/BouncyCastle-1.54/bcpg-jdk15on-154/src/org/bouncycastle/openpgp/PGPEncryptedDataGenerator.java | Java | bsd-3-clause | 14,875 |
/*
* Copyright (c) 2002-2008 LWJGL Project
* 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... | andrewmcvearry/mille-bean | lwjgl/src/templates/org/lwjgl/opengl/AMD_interleaved_elements.java | Java | mit | 2,177 |
package io.junq.examples.common.spring.util;
public final class Profiles {
public static final String PRODUCTION = "production";
private Profiles() {
throw new AssertionError();
}
}
| cnjunq/stuq-rest-with-spring-starter | lesson205/rest-common/src/main/java/io/junq/examples/common/spring/util/Profiles.java | Java | mit | 193 |
/* 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... | apavlo/h-store | src/hsqldb19b3/org/hsqldb/util/ConnectionSetting.java | Java | gpl-3.0 | 2,990 |
package org.cloudcoder.analysis.features.java;
public class Course
{
private String name="";
private String title="";
private String credit="";
private String foundation="";
private String faculty="";
private String period="";
private String days="";
private String building="";
priv... | cloudcoderdotorg/CloudCoder | CloudCoderAnalysis/src/org/cloudcoder/analysis/features/java/Course.java | Java | agpl-3.0 | 3,377 |
package org.molgenis.i18n;
import static java.util.Locale.ENGLISH;
import static java.util.Locale.GERMAN;
import static java.util.Locale.KOREAN;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.mockito.Mockito.doReturn;
import sta... | sidohaakma/molgenis | molgenis-i18n/src/test/java/org/molgenis/i18n/LocalizationMessageSourceTest.java | Java | lgpl-3.0 | 4,224 |
/*
* 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... | danielmitterdorfer/elasticsearch | core/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoff.java | Java | apache-2.0 | 4,561 |
/*
* Copyright 2009 Martin Grotzke
*
* 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 ... | zhangwei5095/memcached-session-manager | samples/simpleservlet/src/main/java/de/javakaffee/web/msm/sample/CacheImpl.java | Java | apache-2.0 | 1,494 |
/*
* Copyright (C) 2012-2014 DataStax 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 app... | mashuai/Cassandra-Java-Driver-Research | driver-mapping/src/main/java/com/datastax/driver/mapping/annotations/Enumerated.java | Java | apache-2.0 | 1,381 |
/**
* 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... | wangbin83-gmail-com/hive-1.1.0-cdh5.4.8 | itests/util/src/main/java/org/apache/hadoop/hive/ql/hooks/ShowMapredStatsHook.java | Java | apache-2.0 | 1,527 |
/* 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/src/main/java/org/camunda/bpm/engine/history/HistoricJobLog.java | Java | apache-2.0 | 3,989 |
/**
* 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... | apurtell/hadoop | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/impl/pb/ReservationSubmissionRequestPBImpl.java | Java | apache-2.0 | 5,526 |
/*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* you may obtain a copy of the License at
*
* http://www.apache.org/... | prithvi66/carbon-device-mgt | components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/authenticator/oauth/impl/LocalOAuthValidator.java | Java | apache-2.0 | 4,081 |
/*
* 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 | plugins/ant/src/com/intellij/lang/ant/config/impl/AntToolwindowRegistrar.java | Java | apache-2.0 | 4,790 |
/*
* Copyright 2010-2012 Coda Hale and Yammer, Inc.
* Copyright 2014 LinkedIn, Corp. 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/... | tinkujohn/databus | metrics-histograms/metrics-core-impl/src/main/java/com/codahale/metrics/MergeableExponentiallyDecayingReservoir.java | Java | apache-2.0 | 17,295 |
/*
* 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-asterixdb-hyracks | hyracks/hyracks-tests/hyracks-storage-am-lsm-invertedindex-test/src/test/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/NGramTokenizerTest.java | Java | apache-2.0 | 7,953 |
/*
* 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 ... | Myasuka/systemml | src/main/java/org/apache/sysml/runtime/matrix/operators/AggregateBinaryOperator.java | Java | apache-2.0 | 1,948 |
/*
* 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... | miniway/presto | presto-spi/src/main/java/io/prestosql/spi/security/PasswordAuthenticatorFactory.java | Java | apache-2.0 | 756 |
/*
* 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-runtime/src/main/java/org/apache/flink/runtime/operators/coordination/OperatorCoordinator.java | Java | apache-2.0 | 14,459 |
// 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/shell/FutureCommandResult.java | Java | apache-2.0 | 5,096 |
/*
* Copyright 2008 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... | funkeymikey/java-oauth | provider/src/main/java/net/oauth/SimpleOAuthValidator.java | Java | apache-2.0 | 13,615 |
/**
* 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... | yahoo/anthelion | src/plugin/language-identifier/src/java/org/apache/nutch/analysis/lang/LanguageIndexingFilter.java | Java | apache-2.0 | 2,754 |
package com.pivotal.hawq.mapreduce.demo;
import com.pivotal.hawq.mapreduce.HAWQInputFormat;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
import org.ap... | zhangh43/incubator-hawq | contrib/hawq-hadoop/hawq-mapreduce-tool/src/test/java/com/pivotal/hawq/mapreduce/demo/HAWQInputFormatDemo.java | Java | apache-2.0 | 2,085 |
package com.vaadin.tests.fields;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.openqa.selenium.WebElement;
import com.vaadin.testbench.By;
import com.vaadin.testbench.elements.AbstractComponentElement;
import com.vaadin.testbench.el... | Darsstar/framework | uitest/src/test/java/com/vaadin/tests/fields/TabIndexesTest.java | Java | apache-2.0 | 5,307 |
/* LocaleInformation_mt_MT.java
Copyright (C) 2002 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 (at you... | shaotuanchen/sunflower_exp | tools/source/gcc-4.2.4/libjava/gnu/java/locale/LocaleInformation_mt_MT.java | Java | bsd-3-clause | 3,702 |
//
// $
//
package jsky.app.ot.too;
import edu.gemini.spModel.obs.ObsSchedulingReport;
import javax.swing.*;
import java.awt.*;
/**
*
*/
public final class TooAlertDialog {
private boolean _showObservation;
public void show(ObsSchedulingReport report, Component parent) {
String title = "Target o... | arturog8m/ocs | bundle/jsky.app.ot/src/main/java/jsky/app/ot/too/TooAlertDialog.java | Java | bsd-3-clause | 1,004 |
/* java.beans.FeatureDescriptor
Copyright (C) 1998, 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 (... | shaotuanchen/sunflower_exp | tools/source/gcc-4.2.4/libjava/classpath/java/beans/FeatureDescriptor.java | Java | bsd-3-clause | 6,274 |
package com.xeiam.xchange.quoine.dto.marketdata;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author timmolter
*/
public final class QuoineProduct {
@JsonProperty("id")
private final int id;
@JsonProperty("product_type")
private final String productType;
@Jso... | yarKH/XChange | xchange-quoine/src/main/java/com/xeiam/xchange/quoine/dto/marketdata/QuoineProduct.java | Java | mit | 6,774 |
package jp.ac.kobe_u.cs.prolog.builtin;
import java.util.Arrays;
import jp.ac.kobe_u.cs.prolog.lang.IllegalTypeException;
import jp.ac.kobe_u.cs.prolog.lang.JavaException;
import jp.ac.kobe_u.cs.prolog.lang.ListTerm;
import jp.ac.kobe_u.cs.prolog.lang.PInstantiationException;
import jp.ac.kobe_u.cs.prolog.lang.Predic... | BeyondTheBoundary/cspoker | external/plcafe/src/main/java/jp/ac/kobe_u/cs/prolog/builtin/PRED_sort_2.java | Java | gpl-2.0 | 2,428 |
////////////////////////////////////////////////////////////////////////////////
// Test case file for checkstyle.
// Created: 2003
////////////////////////////////////////////////////////////////////////////////
package com.puppycrawl.tools.checkstyle.checks;
class oneMoreClass {
public static void anyWrongM... | bansalayush/checkstyle | src/test/resources/com/puppycrawl/tools/checkstyle/checks/InputUncommentedMain3.java | Java | lgpl-2.1 | 422 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 20... | shadowdevec/xades4j | src/main/java/xades4j/xml/bind/xades/XmlOCSPRefsType.java | Java | lgpl-3.0 | 2,301 |
/*
*
* * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.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.apa... | sanyaade-g2g-repos/orientdb | core/src/main/java/com/orientechnologies/orient/core/sql/query/OSQLQuery.java | Java | apache-2.0 | 7,368 |
/*
*
* * Copyright (C) 2015 yelo.red
* *
* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable la... | codenpk/yelo-android | libraries/facebookSDK/src/main/java/com/facebook/widget/PlacePickerFragment.java | Java | apache-2.0 | 20,723 |
/*
* Copyright (C) 2011 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... | JSDemos/android-sdk-20 | src/com/android/rs/image/ImageProcessingTestRunner.java | Java | apache-2.0 | 1,570 |
/*
* 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
* distribu... | gnodet/aries | subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/Subsystems.java | Java | apache-2.0 | 10,152 |
/*
* 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")... | paulk-asert/incubator-groovy | subprojects/groovy-json/src/main/java/groovy/json/JsonOutput.java | Java | apache-2.0 | 8,708 |
/*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* 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.apa... | sarkanyi/libgdx | backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglGraphics.java | Java | apache-2.0 | 20,316 |
/*
* 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... | gingerwizard/elasticsearch | server/src/test/java/org/elasticsearch/script/JodaCompatibleZonedDateTimeTests.java | Java | apache-2.0 | 11,704 |
/*
* Copyright 2017 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... | droolsjbpm/jbpm | jbpm-case-mgmt/jbpm-case-mgmt-api/src/main/java/org/jbpm/casemgmt/api/model/instance/CaseFileInstance.java | Java | apache-2.0 | 2,017 |
package org.zstack.test.core.db;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.transaction.annotation.Transactional;
import... | SoftwareKing/zstack | test/src/test/java/org/zstack/test/core/db/TestSimpleQuery.java | Java | apache-2.0 | 3,646 |
/**
* 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... | JonZeolla/metron | metron-platform/metron-elasticsearch/metron-elasticsearch-common/src/main/java/org/apache/metron/elasticsearch/bulk/ElasticsearchBulkDocumentWriter.java | Java | apache-2.0 | 7,622 |
/*
* Copyright 2017 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... | etirelli/jbpm | jbpm-flow-builder/src/main/java/org/jbpm/compiler/xml/ProcessBuildData.java | Java | apache-2.0 | 4,101 |
/*
* 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... | tubemogul/druid | processing/src/main/java/io/druid/query/select/PagingSpec.java | Java | apache-2.0 | 5,125 |
/*
* Copyright 2012 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 applicable law... | szpak/spock | spock-core/src/main/java/org/spockframework/mock/runtime/GroovyRealMethodInvoker.java | Java | apache-2.0 | 1,534 |
/*
* 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.license;
import org.apache.logging.log4j... | GlenRSmith/elasticsearch | x-pack/plugin/core/src/main/java/org/elasticsearch/license/StartTrialClusterTask.java | Java | apache-2.0 | 4,913 |
/*
* Copyright (C) 2008 ZXing 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 applicable law or agr... | jemsnaban/zxing-android-embedded | zxing-android-embedded/src/com/journeyapps/barcodescanner/camera/CameraManager.java | Java | apache-2.0 | 14,879 |
/*-------------------------------------------------------------------------
*
* Copyright (c) 2004-2014, PostgreSQL Global Development Group
* Copyright (c) 2004, Open Cloud Limited.
*
*
*-------------------------------------------------------------------------
*/
package org.postgresql.core.v3;
import org.postgresql.... | lonnyj/pgjdbc | org/postgresql/core/v3/ProtocolConnectionImpl.java | Java | bsd-3-clause | 7,110 |
/*
* 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/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/SSLContextImpl/DefaultEnabledProtocols.java | Java | mit | 9,645 |
package com.xeiam.xchange.btcchina.dto.trade.request;
import com.xeiam.xchange.btcchina.BTCChinaExchange;
import com.xeiam.xchange.btcchina.dto.BTCChinaRequest;
/**
* Request for {@code getOrder}.
*/
public class BTCChinaGetOrderRequest extends BTCChinaRequest {
private static final String METHOD_NAME = "getOrde... | codeck/XChange | xchange-btcchina/src/main/java/com/xeiam/xchange/btcchina/dto/trade/request/BTCChinaGetOrderRequest.java | Java | mit | 1,409 |
/*
* Copyright (c) 2002, 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 ... | JetBrains/jdk8u_jdk | src/share/classes/sun/misc/resources/Messages_zh_TW.java | Java | gpl-2.0 | 2,256 |
/*
* Copyright (c) 2011, 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/java/awt/Toolkit/Headless/GetPrintJob/GetPrintJobHeadless.java | Java | gpl-2.0 | 2,676 |
/**
* 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 ... | ASU-Capstone/uPortal-Forked | uportal-war/src/main/java/org/jasig/portal/events/aggr/portletexec/PortletExecutionAggregation.java | Java | apache-2.0 | 1,706 |
/*
* Copyright 2012-2021 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... | htynkn/spring-boot | spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/PrefixedIterableConfigurationPropertySourceTests.java | Java | apache-2.0 | 1,938 |
package somePackage;
// Such strange name here needed to make completion prefix not intersecting with kotlin.ExtensionFunctionType
public class ExctraClass {
}
| siosio/intellij-community | plugins/kotlin/completion/tests/testData/basic/multifile/ExcludedJavaClass/somePackage/ExctraClass.java | Java | apache-2.0 | 162 |
// "Fix all 'Redundant 'File' instance creation' problems in file" "true"
import java.io.*;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Formatter;
import java.util.Locale;
class Main {
private static String getSomePathname() {
return "Some pathname";
}
public ... | smmribeiro/intellij-community | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/redundantFileCreation/afterMultiplyArgs.java | Java | apache-2.0 | 1,967 |
/*
* 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.core.ilm;
import org.elasticsearch.Elasticsea... | coding0011/elasticsearch | x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/IndexLifecycleOriginationDateParser.java | Java | apache-2.0 | 2,403 |
/*
* Copyright (C) 2011 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... | haikuowuya/android_system_code | src/android/filterfw/geometry/Point.java | Java | apache-2.0 | 2,749 |
/*
* 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 ... | asurve/arvind-sysml | src/main/java/org/apache/sysml/runtime/transform/decode/DecoderPassThrough.java | Java | apache-2.0 | 2,584 |
// Copyright 2014 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... | mikelikespie/bazel | src/main/java/com/google/devtools/build/lib/skyframe/CoverageReportFunction.java | Java | apache-2.0 | 2,064 |
/*
* 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... | GlenRSmith/elasticsearch | build-tools/src/main/java/org/elasticsearch/gradle/DistributionDownloadPlugin.java | Java | apache-2.0 | 9,643 |
/**
* 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... | Reidddddd/mo-hadoop2.6.0 | hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDirectoryScanner.java | Java | apache-2.0 | 22,341 |
/*
*Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
*WSO2 Inc. licenses this file to you under the Apache License,
*Version 2.0 (the "License"); you may not use this file except
*in compliance with the License.
*You may obtain a copy of the License at
*
*http://www.apache.org/licenses/LICENSE... | jaadds/product-apim | modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/restapi/testcases/SubscriptionTestCase.java | Java | apache-2.0 | 2,886 |
package org.jbehave.examples.core.maps;
import java.util.List;
import org.jbehave.core.configuration.Configuration;
import org.jbehave.core.configuration.MostUsefulConfiguration;
import org.jbehave.core.io.CodeLocations;
import org.jbehave.core.io.LoadFromClasspath;
import org.jbehave.core.io.StoryFinder;
import org.... | sischnei/jbehave-core | examples/maps/src/main/java/org/jbehave/examples/core/maps/CoreStoryMaps.java | Java | bsd-3-clause | 1,547 |
/*
Copyright: All contributers to the Umple Project
This file is made available subject to the open source license found at:
http://umple.org/license
*/
package shared.listeners;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import usecase.addElection.AddElectionController... | ahmedvc/umple | examples/elections_java_executable/src/shared/listeners/GenericWindowListener.java | Java | mit | 1,921 |
/*
* Copyright (c) 2002, 2015, 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 | test/com/sun/javadoc/testLinkToSerialForm/TestLinkToSerialForm.java | Java | gpl-2.0 | 1,916 |
/*
* Tigase Jabber/XMPP Server
* Copyright (C) 2004-2012 "Artur Hefczyc" <artur.hefczyc@tigase.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This pr... | f24-ag/tigase | src/main/java/tigase/db/comp/RepositoryChangeListenerIfc.java | Java | agpl-3.0 | 1,119 |
/*
* Hibernate OGM, Domain model persistence for NoSQL datastores
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.ogm.type.descriptor.impl;
import org.hibernate.ogm.mo... | DavideD/hibernate-ogm | core/src/main/java/org/hibernate/ogm/type/descriptor/impl/WrappedGridTypeDescriptor.java | Java | lgpl-2.1 | 1,357 |
/*
* 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 ... | WangTaoTheTonic/flink | flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/iteration/IterateExample.java | Java | apache-2.0 | 8,004 |
/**
* Copyright 2014 XCL-Charts
*
* 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... | windpush/XCL-Charts | XCL-Charts-demo/src/com/demo/xclcharts/view/BarChart06View.java | Java | apache-2.0 | 6,949 |
/*
* 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... | GlenRSmith/elasticsearch | server/src/internalClusterTest/java/org/elasticsearch/action/admin/indices/alias/ValidateIndicesAliasesRequestIT.java | Java | apache-2.0 | 6,275 |
/*
* 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 ... | markusweimer/incubator-reef | lang/java/reef-wake/wake/src/main/java/org/apache/reef/wake/remote/DefaultRemoteManagerFactory.java | Java | apache-2.0 | 7,150 |
/*******************************************************************************
* 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... | dulvac/sling | bundles/scripting/sightly/engine/src/main/java/org/apache/sling/scripting/sightly/impl/compiler/CompilerException.java | Java | apache-2.0 | 1,749 |