code
stringlengths
3
1.04M
repo_name
stringlengths
5
109
path
stringlengths
6
306
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
3
1.04M
package org.jtwig.environment; import org.jtwig.environment.initializer.EnvironmentInitializer; import org.jtwig.escape.environment.EscapeEnvironmentFactory; import org.jtwig.extension.Extension; import org.jtwig.functions.environment.FunctionResolverFactory; import org.jtwig.parser.JtwigParserFactory; import org.jtwi...
lyncodev/jtwig-core
src/main/java/org/jtwig/environment/EnvironmentFactory.java
Java
apache-2.0
4,693
package org.apache.hadoop.hive.metastore; /* * 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 Lic...
alanfgates/hive
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MsckPartitionExpressionProxy.java
Java
apache-2.0
3,124
/* * Copyright (C) 2013 the original author or authors. * See the notice.md file distributed with this work for additional * information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Y...
sblommers/guice-vaadin-mvp
src/main/java/com/google/code/vaadin/application/ui/ScopedUIProvider.java
Java
apache-2.0
6,090
package pl.pronux.sokker.actions; import java.sql.SQLException; import java.util.Calendar; import java.util.Iterator; import java.util.List; import java.util.Map; import pl.pronux.sokker.data.sql.SQLQuery; import pl.pronux.sokker.data.sql.SQLSession; import pl.pronux.sokker.data.sql.dao.AssistantDao; import pl.pronux...
levanhien8/SokkerViewer
src/main/java/pl/pronux/sokker/actions/PlayersManager.java
Java
apache-2.0
13,309
/* * -----------------------------------------------------------------------\ * SilverWare *   * Copyright (C) 2015 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 ...
SilverThings/SilverWare
microservices/src/main/java/io/silverware/microservices/util/Utils.java
Java
apache-2.0
5,686
/** * Copyright 2012 Rainer Bieniek (Rainer.Bieniek@web.de) * * 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 requir...
tking/BGP4J
lib/netty-bgp4/src/test/java/org/bgp4j/netty/MockPeerConnectionInformation.java
Java
apache-2.0
3,088
/* * Copyright 2019-present Open Networking Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
atomix/atomix
core/src/main/java/io/atomix/core/transaction/impl/SingletonTransactionalSet.java
Java
apache-2.0
1,770
/* * Copyright 2002-2006 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...
cbeams-archive/spring-framework-2.5.x
src/org/springframework/web/struts/AutowiringRequestProcessor.java
Java
apache-2.0
7,692
/** * Copyright (C) 2012-2017 Last.fm & The "mogilefs-moji" committers * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
lastfm/moji
src/test/java/fm/last/moji/tracker/impl/TrackerImplTest.java
Java
apache-2.0
9,473
/* * * 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"); y...
hasinitg/airavata
modules/integration-tests/src/test/java/org/apache/airavata/integration/tools/DocumentCreatorNew.java
Java
apache-2.0
50,520
package com.getbase.android.db.provider; import android.content.ContentProviderOperation; public interface ConvertibleToOperation { ContentProviderOperation.Builder toContentProviderOperationBuilder(UriDecorator uriDecorator); ContentProviderOperation toContentProviderOperation(UriDecorator uriDecorator); }
MaTriXy/android-db-commons
library/src/main/java/com/getbase/android/db/provider/ConvertibleToOperation.java
Java
apache-2.0
316
package npanday.executable.compiler; /* * 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...
apache/npanday
components/dotnet-executable/src/main/java/npanday/executable/compiler/InvalidArtifactException.java
Java
apache-2.0
2,278
/* * Copyright 2010-2012 Amazon Technologies, Inc. or its affiliates. * Amazon, Amazon.com and Carbonado are trademarks or registered trademarks * of Amazon Technologies, Inc. or its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this ...
Carbonado/Carbonado
src/main/java/com/amazon/carbonado/capability/RemoteProcedure.java
Java
apache-2.0
8,703
/* * Copyright 2022 ThoughtWorks, 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 agr...
gocd/gocd
common/src/main/java/com/thoughtworks/go/config/UpdateConfigCommand.java
Java
apache-2.0
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 ...
GJL/flink
flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeCasts.java
Java
apache-2.0
19,100
/** * Copyright © 2014 - 2017 Leipzig University (Database Research Group) * * 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 * * Unle...
p3et/gradoop
gradoop-flink/src/main/java/org/gradoop/flink/model/impl/operators/matching/common/tuples/package-info.java
Java
apache-2.0
792
/* * ARX: Powerful Data Anonymization * Copyright 2012 - 2017 Fabian Prasser, Florian Kohlmayer and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://w...
jgaupp/arx
src/gui/org/deidentifier/arx/gui/view/impl/wizard/ImportWizardModelColumn.java
Java
apache-2.0
2,592
/* * 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 ...
mdunker/usergrid
stack/services/src/test/java/org/apache/usergrid/corepersistence/migration/AppInfoMigrationPluginTest.java
Java
apache-2.0
9,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 may ...
ptupitsyn/ignite
modules/ml/src/main/java/org/apache/ignite/ml/multiclass/MultiClassModel.java
Java
apache-2.0
3,594
/** * 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...
acartapanis/camel
platforms/spring-boot/components-starter/camel-jackson-starter/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatAutoConfiguration.java
Java
apache-2.0
5,485
package com.yimu.base; import java.lang.reflect.Field; import java.util.ArrayList; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import android.database.s...
yimun/ZzuNews
src/com/yimu/base/BaseSqlite.java
Java
apache-2.0
5,666
/* * 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...
botelhojp/apache-jmeter-2.10
src/core/org/apache/jmeter/samplers/SampleListener.java
Java
apache-2.0
1,414
// Copyright 2010 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
apache/tapestry-5
tapestry-core/src/main/java/org/apache/tapestry5/internal/services/messages/PropertiesFileParserImpl.java
Java
apache-2.0
3,389
/* * Copyright 2010 Outerthought bvba * * 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...
NGDATA/lilyproject
apps/import/src/main/java/org/lilyproject/tools/import_/core/RecordTypeImport.java
Java
apache-2.0
6,463
package org.mindinformatics.gwt.domeo.plugins.resource.opentrials.identities; import org.mindinformatics.gwt.framework.component.agents.model.MAgentDatabase; /** * @author Paolo Ciccarese <paolo.ciccarese@gmail.com> */ @SuppressWarnings("serial") public class EOpenTrialsDatabase extends MAgentDatabase { private s...
domeo/DomeoClient
src/org/mindinformatics/gwt/domeo/plugins/resource/opentrials/identities/EOpenTrialsDatabase.java
Java
apache-2.0
679
package io.appium.java_client.pagefactory_tests.widgets.combined; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import io.appium.java_client.android.AndroidDriver; import io.appium.java_client.pagefactory.AppiumFieldDecorator; import io.appium.java_client.pagefactory.TimeOut...
YOU-i-Labs/appium-java-client
src/test/java/io/appium/java_client/pagefactory_tests/widgets/combined/SelendroidCombinedWidgetTest.java
Java
apache-2.0
5,150
package org.vaadin.viritin.it; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import org.apache.commons.beanutils.BeanUtils; /** * * JSR303 crossfield validator example by Patrick: * http://stackoverflow.com/questions/1972933/cross-field-validation-with-hibernate-v...
cbmeeks/viritin
src/test/java/org/vaadin/viritin/it/FieldMatchValidator.java
Java
apache-2.0
1,312
package com.ayvytr.logger; /** * Log打印接口 * * @author Ayvytr ['s GitHub](https://github.com/Ayvytr) * @since 1.0.0 */ public interface IPrinter { void json(String json); void xml(String xml); void v(Object... objects); void d(Object... objects); void i(Object... objects); void w(Object...
Ayvytr/logger
logger/src/main/java/com/ayvytr/logger/IPrinter.java
Java
apache-2.0
410
/* * Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
mesutcelik/hazelcast
hazelcast/src/test/java/com/hazelcast/test/OverridePropertyRuleTest.java
Java
apache-2.0
2,083
/* * Copyright 2014-2019 Netflix, 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 agr...
Netflix/spectator
spectator-api/src/test/java/com/netflix/spectator/impl/StepLongTest.java
Java
apache-2.0
1,889
/* * Copyright 2013-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...
Orange-OpenSource/cf-java-client
cloudfoundry-client/src/test/java/org/cloudfoundry/client/v3/servicebindings/DeleteServiceBindingRequestTest.java
Java
apache-2.0
1,088
/** * */ package org.weekendsoft.mpa.masterdata.controller; import java.util.List; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ExceptionHandler; import org.sprin...
vivekkant/my-personal-assistant
master-data/src/main/java/org/weekendsoft/mpa/masterdata/controller/AccountController.java
Java
bsd-2-clause
2,931
package com.jamerlan.commands.impl.in; import com.jamerlan.ServerState; import com.jamerlan.commands.Command; import com.jamerlan.utils.CommandParser; import java.io.IOException; import java.io.PrintWriter; /** AGREEMENTEND */ public class AgreementEnd implements Command<String> { private ServerState serverSt...
jamerlan/jSpringLobbyLib
src/main/java/com/jamerlan/commands/impl/in/AgreementEnd.java
Java
bsd-2-clause
652
/* Copyright (c) 2013, Colorado State University All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and ...
CameronTolooee/galileo
src/galileo/dht/hash/ConstrainedGeohash.java
Java
bsd-2-clause
3,449
package org.maera.plugin.osgi.factory; import com.mockobjects.dynamic.C; import com.mockobjects.dynamic.Mock; import org.apache.commons.io.FileUtils; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.maera.plugin.*; import org.maera.plugin.event.impl.DefaultPluginEventManager; import o...
katasource/maera
osgi/loader/src/test/java/org/maera/plugin/osgi/factory/OsgiPluginFactoryTest.java
Java
bsd-3-clause
5,917
/******************************************************************************* * Copyright SemanticBits, Northwestern University and Akaza Research * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/caaers/LICENSE.txt for details. *************************************...
NCIP/caaers
caAERS/software/web/src/test/java/gov/nih/nci/cabig/caaers/web/listener/AbstractEventListenerTest.java
Java
bsd-3-clause
5,743
/** * SAHARA Scheduling Server * * Schedules and assigns local laboratory rigs. * * @license See LICENSE in the top level directory for complete license terms. * * Copyright (c) 2010, University of Technology, Sydney * All rights reserved. * * Redistribution and use in source and binary forms, with or without...
sahara-labs/scheduling-server
RigProvider/src/au/edu/uts/eng/remotelabs/schedserver/rigprovider/identok/impl/tests/IdentityTokenRegisterTester.java
Java
bsd-3-clause
6,259
package org.basex.query.func.db; import static org.basex.query.QueryError.*; import static org.basex.util.Token.*; import org.basex.core.*; import org.basex.query.*; import org.basex.query.up.primitives.name.*; import org.basex.query.value.item.*; import org.basex.util.*; import org.basex.util.list.*; /** * Functio...
drmacro/basex
basex-core/src/main/java/org/basex/query/func/db/DbRestore.java
Java
bsd-3-clause
1,087
/** * This code is free software; you can redistribute it and/or modify it under * the terms of the new BSD License. * * Copyright (c) 2011, Sebastian Staudt */ package com.github.koraktor.steamcondenser.steam.packets; /** * This class represents a S2A_LOGSTRING packet used to transfer log messages * * @autho...
gutomaia/steam-condenser-java
src/main/java/com/github/koraktor/steamcondenser/steam/packets/S2A_LOGSTRING_Packet.java
Java
bsd-3-clause
1,020
package eta.runtime.concurrent; import eta.runtime.Runtime; import eta.runtime.stg.Capability; import static eta.runtime.RuntimeLogging.*; public class WorkerThread extends Thread { public WorkerThread() {} @Override public void run() { final Capability worker = Capability.getLocal(true); ...
rahulmutt/ghcvm
rts/src/main/java/eta/runtime/concurrent/WorkerThread.java
Java
bsd-3-clause
634
/* * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ package com...
MaTriXy/fresco
imagepipeline/src/test/java/com/facebook/imagepipeline/producers/QualifiedResourceFetchProducerTest.java
Java
bsd-3-clause
3,805
/******************************************************************************* * Copyright (c) 2014 Pivotal Software, Inc. and others. * All rights reserved. This program and the accompanying materials are made * available under the terms of the Eclipse Public License v1.0 * (http://www.eclipse.org/legal/epl-v1...
eclipse/flux
org.eclipse.flux.client.java/src/test/java/org/eclipse/flux/client/java/AbstractFluxClientTest.java
Java
bsd-3-clause
9,162
package net.emaze.dysfunctional.dispatching.spying; import java.util.concurrent.atomic.AtomicLong; import net.emaze.dysfunctional.contracts.dbc; import net.emaze.dysfunctional.dispatching.delegates.TriFunction; /** * Proxies a ternary function monitoring its calls. * * @author rferranti * @param <T1> the first pa...
emaze/emaze-dysfunctional
src/main/java/net/emaze/dysfunctional/dispatching/spying/TernaryMonitoringFunction.java
Java
bsd-3-clause
1,106
package com.github.igotyou.FactoryMod.properties; import org.bukkit.Material; import org.bukkit.configuration.ConfigurationSection; import com.github.igotyou.FactoryMod.FactoryModPlugin; import com.github.igotyou.FactoryMod.utility.ItemList; import com.github.igotyou.FactoryMod.utility.NamedItemStack; public class...
ttk2/FactoryMod
src/com/github/igotyou/FactoryMod/properties/NetherFactoryProperties.java
Java
bsd-3-clause
3,525
/* Copyright (c) 2010, Geomatics and Cartographic Research Centre, Carleton University 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...
GCRC/nunaliit
nunaliit2-dbSec/src/main/java/ca/carleton/gcrc/dbSec/FieldSelectorColumn.java
Java
bsd-3-clause
3,034
package edu.stanford.math.plex4.utility; import java.util.Arrays; public class ArrayUtility { public static double[][] getSubset(double[][] points, int[] indices) { double[][] result = new double[indices.length][]; for (int i = 0; i < indices.length; i++) { result[i] = points[indices[i]]; } return r...
queenBNE/javaplex
src/java/edu/stanford/math/plex4/utility/ArrayUtility.java
Java
bsd-3-clause
3,500
package com.compositesw.services.system.util.security; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; import com.compositesw.services.system.util.common.BaseResponse;...
cisco/PDTool
CISAdminApi8.0.0/src/com/compositesw/services/system/util/security/GetLoginModuleListResponse.java
Java
bsd-3-clause
1,965
package net.emaze.dysfunctional.interceptions; import java.util.Iterator; import net.emaze.dysfunctional.contracts.dbc; import java.util.function.BiFunction; /** * * @param <T1> * @param <T2> * @param <R> * @author rferranti */ public class BinaryInterceptorChain<T1, T2, R> implements BiFunction<T1, T2, R> { ...
emaze/emaze-dysfunctional
src/main/java/net/emaze/dysfunctional/interceptions/BinaryInterceptorChain.java
Java
bsd-3-clause
965
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved. package jodd.mail; import javax.mail.Authenticator; import javax.mail.PasswordAuthentication; /** * Performs simple authentication when the server requires it. */ public class SimpleAuthenticator extends Authenticator { protected final String...
Artemish/jodd
jodd-mail/src/main/java/jodd/mail/SimpleAuthenticator.java
Java
bsd-3-clause
636
package io.tracee; import io.tracee.spi.TraceeBackendProvider; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.powermock.api.mockito.PowerMockito; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; import j...
SvenBunge/tracee
api/src/test/java/io/tracee/BackendProviderResolverTest.java
Java
bsd-3-clause
2,584
/*========================================================================= Program: Visualization Toolkit Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT AN...
hlzz/dotfiles
graphics/VTK-7.0.0/Examples/Android/JavaVTK/src/com/kitware/JavaVTK/JavaVTKLib.java
Java
bsd-3-clause
2,022
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved. package jodd.petite.tst; import jodd.petite.meta.PetiteBean; @PetiteBean public class Foo { public static int instanceCounter; int counter; public Foo() { instanceCounter++; counter = 0; } public int hello() { return instanceCounte...
Artemish/jodd
jodd-petite/src/test/java/jodd/petite/tst/Foo.java
Java
bsd-3-clause
447
package org.openhds.web.service; import org.springframework.binding.message.MessageContext; public interface WebFlowService { void createMessage(MessageContext messageContext, String message); }
TatianaRoma/COS576
web/src/main/java/org/openhds/web/service/WebFlowService.java
Java
bsd-3-clause
210
/* * LogOutputPanel.java * * Created on 19. Juni 2007, 16:04 */ package net.java.nboglpack.visualdesigner; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import java.io.OutputStream; import java.io.PrintStream; import javax.swing.JMenuItem; impor...
mbien/netbeans-opengl-pack
RapidShadingPrototype/src/net/java/nboglpack/visualdesigner/LogOutputPanel.java
Java
bsd-3-clause
2,274
package org.discotools.gwt.leaflet.client.layers.vector; import org.discotools.gwt.leaflet.client.jsobject.JSObject; /** * A class for drawing rectangle overlays on a map. * Extends Polygon. * Use Map#addLayer to add it to the map. * * @author Lionel Leiva-Marcon */ public class RectangleImpl extends Polygon...
haleystorm/gwt-leaflet
src/gwtl-core/src/main/java/org/discotools/gwt/leaflet/client/layers/vector/RectangleImpl.java
Java
bsd-3-clause
575
package nl.tudelft.lifetiles.sequence.controller; import java.io.File; import java.io.IOException; import java.net.URL; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.ResourceBundle; import java.util.Set; import javafx.bean...
jorenham/LifeTiles
lifetiles-sequence/src/main/java/nl/tudelft/lifetiles/sequence/controller/SequenceController.java
Java
bsd-3-clause
11,711
/* * This file is part of Pebble. * * Copyright (c) 2014 by Mitchell Bösecke * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ package com.mitchellbosecke.pebble.utils; public class StringLengthComparator implements java.util.Compar...
mbosecke/pebble
pebble/src/main/java/com/mitchellbosecke/pebble/utils/StringLengthComparator.java
Java
bsd-3-clause
549
// Copyright 2015 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.offlinepages; import android.content.Context; import android.os.Environment; import android.test.suitebuilder.annotat...
ds-hwang/chromium-crosswalk
chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtilsTest.java
Java
bsd-3-clause
10,222
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.resourcemanager.appservice.models; import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.appservice.AppServiceManager; import com.azure.resourcemanager.resources.fluentcore.arm.collect...
Azure/azure-sdk-for-java
sdk/resourcemanagerhybrid/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppServicePlans.java
Java
mit
1,456
/* * 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...
madhavanks26/com.vliesaputra.deviceinformation
src/com/vliesaputra/cordova/plugins/android/support/v4/src/api21/android/support/v4/media/MediaMetadataCompatApi21.java
Java
mit
2,894
package com.ibanheiz; public class Main { public static void main(String[] args) { // true para Person existente e false para nova Person Person person = PersonFactory.createPerson(true); // Aqui não será necessário uma condicional para // verificar se Person está nula. System.out.println("Nome: " + p...
vandersonmaroni/java-design-patterns
NullObject/src/com/ibanheiz/Main.java
Java
mit
501
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.network.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; import jav...
Azure/azure-sdk-for-java
sdk/resourcemanagerhybrid/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOperationalState.java
Java
mit
1,808
package com.github.mikephil.charting.charts; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Paint.Align; import android.graphics.PointF; import android.graphics.RectF; import android.graphics.Typeface; import androi...
MPieter/Notification-Analyser
NotificationAnalyser/MPChartLib/src/com/github/mikephil/charting/charts/PieChart.java
Java
mit
20,693
/* * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. * * Copyright (c) 2002-2011 Eric Lafortune (eric@graphics.cornell.edu) * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as publ...
0x90sled/droidtowers
tools/proguard/src/proguard/gui/SwingUtil.java
Java
mit
2,553
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.logic.v2016_06_01.implementation; import com.mic...
navalev/azure-sdk-for-java
sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountImpl.java
Java
mit
2,434
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
Microsoft/ace
src/android/framework/PolyQuadraticBezierSegment.java
Java
mit
651
package com.example.juswitch; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.UUID; import android.annotation.SuppressLint; import android.app.Dialog; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.c...
JUMA-IO/JUMA-Samples
ST/light_switch/android/src/com/example/juswitch/CustomDialog.java
Java
mit
7,088
/* * The MIT License * * Copyright (c) 2010, Kohsuke Kawaguchi * * 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,...
Jochen-A-Fuerbacher/jenkins
core/src/main/java/hudson/ExtensionComponent.java
Java
mit
3,615
/** * Copyright MaDgIK Group 2010 - 2015. */ package madgik.exareme.master.queryProcessor.graph; import madgik.exareme.utils.statistics.Zipf; import java.io.IOException; import java.io.Serializable; import java.net.URL; import java.util.Properties; /** * @author Herald Kllapi <br> * University of Athens ...
XristosMallios/cache
exareme-master/src/test/java/madgik/exareme/master/queryProcessor/graph/RandomParameters.java
Java
mit
3,215
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.compute.v2017_03_30.implementation; import com.m...
selvasingh/azure-sdk-for-java
sdk/compute/mgmt-v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RollingUpgradeStatusInfoInner.java
Java
mit
2,498
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc. * * 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 ...
v1v/jenkins
cli/src/main/java/hudson/cli/CLI.java
Java
mit
20,305
/* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
caseif/SpongeAPI
src/main/java/org/spongepowered/api/data/manipulator/ColoredData.java
Java
mit
1,867
package org.cloudbus.cloudsim.container.resourceAllocators; import org.cloudbus.cloudsim.container.core.Container; import java.util.List; import java.util.Map; /** * Created by sareh on 16/07/15. */ public class PowerContainerAllocationPolicySimple extends PowerContainerAllocationPolicy { public PowerContain...
mhe504/MigSim
src/org/cloudbus/cloudsim/container/resourceAllocators/PowerContainerAllocationPolicySimple.java
Java
mit
515
/** * Copyright MaDgIK Group 2010 - 2015. */ package madgik.exareme.worker.art.remote; import madgik.exareme.utils.properties.AdpProperties; import madgik.exareme.utils.units.Metrics; import madgik.exareme.worker.art.remote.retryPolicy.ConstantTimeIntervalPolicy; import madgik.exareme.worker.art.remote.retryPolicy.R...
XristosMallios/cache
exareme-worker/src/main/java/madgik/exareme/worker/art/remote/RetryPolicyFactory.java
Java
mit
1,470
package org.slf4j; import java.io.PrintStream; import java.util.ArrayList; import java.util.List; public class StringPrintStream extends PrintStream { public static final String LINE_SEP = System.getProperty("line.separator"); PrintStream other; List stringList = new ArrayList(); public String...
virtix/mut4j
lib/slf4j-1.6.0/integration/src/test/java/org/slf4j/StringPrintStream.java
Java
mit
665
/* * Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved. */ package com.maxifier.mxcache.impl.wrapping; import com.maxifier.mxcache.caches.Cache; import com.maxifier.mxcache.caches.Calculable; import com.maxifier.mxcache.impl.MutableStatistics; import com.maxifier.mxcache.impl.caches.storage.StorageHolder; im...
akochurov/mxcache
mxcache-runtime/src/main/java/com/maxifier/mxcache/impl/wrapping/WrapperFactoryImpl.java
Java
mit
1,401
/******************************************************************************* * Copyright (c) 2011, 2021 Eurotech and/or its affiliates and others * * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.or...
ctron/kura
kura/org.eclipse.kura.web2/src/main/java/org/eclipse/kura/web/server/GwtCertificatesServiceImpl.java
Java
epl-1.0
9,431
/******************************************************************************* * Copyright (c) 2004, 2008 Actuate Corporation. * 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 a...
sguan-actuate/birt
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ICancellable.java
Java
epl-1.0
782
package p; public class A{ public static int F= B.i; }
maxeler/eclipse
eclipse.jdt.ui/org.eclipse.jdt.ui.tests.refactoring/resources/MoveMembers/test47/out/A.java
Java
epl-1.0
55
package p; class A{ int m(int y){ do{ int x= 1 + 2; } while(y==0); return 1 + 2; } }
maxeler/eclipse
eclipse.jdt.ui/org.eclipse.jdt.ui.tests.refactoring/resources/ExtractTemp/canExtract/A_test11_in.java
Java
epl-1.0
95
/* * IronJacamar, a Java EE Connector Architecture implementation * Copyright 2013, 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...
jandsu/ironjacamar
api/src/main/java/javax/resource/spi/security/GenericCredential.java
Java
epl-1.0
4,794
package org.eclipse.birt.tests.data.engine.api; import org.eclipse.birt.data.engine.api.IBaseExpression; import org.eclipse.birt.data.engine.api.querydefn.GroupDefinition; import org.eclipse.birt.data.engine.api.querydefn.OdaDataSetDesign; import org.eclipse.birt.data.engine.api.querydefn.ScriptExpression; import te...
sguan-actuate/birt
testsuites/org.eclipse.birt.tests.data/src/org/eclipse/birt/tests/data/engine/api/MultiPassTest.java
Java
epl-1.0
2,134
/******************************************************************************* * Copyright (c) 2004 Actuate Corporation. * 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 availabl...
Charling-Huang/birt
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ScriptDataSourceHandle.java
Java
epl-1.0
2,729
/* * Copyright (c) 2012-2018 Red Hat, Inc. * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * Red Hat, Inc. - initial API a...
akervern/che
selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/debugger/PhpProjectDebuggingTest.java
Java
epl-1.0
8,888
/***************************************************************************** * Copyright (c) 2011 CEA LIST. * * 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 * ht...
bmaggi/Papyrus-SysML11
plugins/diagram/org.eclipse.papyrus.sysml.diagram.common/src-gen/org/eclipse/papyrus/sysml/diagram/common/factory/BlockPropertyCompositeClassifierViewFactory.java
Java
epl-1.0
2,938
/******************************************************************************* * Copyright (c) 2000, 2008 IBM 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, an...
boniatillo-com/PhaserEditor
source/thirdparty/jsdt/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/infoviews/SourceView.java
Java
epl-1.0
16,208
/******************************************************************************* * Copyright (c) 2011, 2016 Eurotech and/or its affiliates * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distributi...
unverbraucht/kura
kura/org.eclipse.kura.api/src/main/java/org/eclipse/kura/net/route/RouteConfig4.java
Java
epl-1.0
650
/***************************************************************************** * Copyright (c) 2009 CEA LIST. * * * 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 *...
bmaggi/Papyrus-SysML11
plugins/org.eclipse.papyrus.sysml.edit/src/org/eclipse/papyrus/sysml/activities/provider/ProbabilityItemProvider.java
Java
epl-1.0
6,076
/* * Vulcan Build Manager * Copyright (C) 2005-2012 Chris Eldredge * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later vers...
majianxiong/vulcan
vulcan-core/source/main/java/net/sourceforge/vulcan/exception/DuplicatePluginIdException.java
Java
gpl-2.0
1,055
/* * ************************************************************************************* * Copyright (C) 2006-2015 EsperTech, Inc. All rights reserved. * * http://www.espertech.com/esper * * http://www.espertech.com ...
georgenicoll/esper
esper/src/main/java/com/espertech/esper/epl/enummethod/dot/ExprDotEvalEnumMethodBase.java
Java
gpl-2.0
15,362
/* * Copyright (c) 2014, 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/lang/invoke/VarargsArrayTest.java
Java
gpl-2.0
10,292
/* * java-gnome, a UI library for writing GTK and GNOME programs from Java! * * Copyright © 2007-2011 Operational Dynamics Consulting, Pty Ltd and Others * * The code in this file, and the program it is a part of, is made available * to you by its authors as open source software: you can redistribute it * and/or...
severinh/java-gnome
src/bindings/org/gnome/gtk/Dialog.java
Java
gpl-2.0
14,192
/* * Copyright (c) 2013, 2014, 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 ...
166MMX/openjdk.java.net-openjfx-8u40-rt
modules/controls/src/test/java/com/sun/javafx/scene/control/test/RT_22463_Person.java
Java
gpl-2.0
2,162
/* * Copyright (c) 2012, Codename One 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 Sof...
JrmyDev/CodenameOne
CodenameOne/src/com/codename1/db/Database.java
Java
gpl-2.0
8,950
package edu.stanford.nlp.parser.lexparser; import edu.stanford.nlp.util.logging.Redwood; import java.util.*; import java.util.regex.*; import edu.stanford.nlp.international.arabic.ArabicMorphoFeatureSpecification; import edu.stanford.nlp.international.morph.MorphoFeatureSpecification; import edu.stanford.nlp.interna...
intfloat/CoreNLP
src/edu/stanford/nlp/parser/lexparser/ArabicTreebankParserParams.java
Java
gpl-2.0
40,364
package edu.stanford.nlp.ie.crf; import edu.stanford.nlp.util.logging.Redwood; import edu.stanford.nlp.math.ArrayMath; import edu.stanford.nlp.optimization.AbstractCachingDiffFloatFunction; import edu.stanford.nlp.util.Index; import java.util.Arrays; import java.util.List; /** * @author Jenny Finkel */ public cl...
rupenp/CoreNLP
src/edu/stanford/nlp/ie/crf/CRFLogConditionalObjectiveFloatFunction.java
Java
gpl-2.0
19,880
/* * Copyright (c) 2009-2010 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of ...
rex-xxx/mt6572_x201
external/jmonkeyengine/engine/src/core/com/jme3/audio/AudioStream.java
Java
gpl-2.0
5,990
/* * IRIS -- Intelligent Roadway Information System * Copyright (C) 2009-2013 Minnesota Department of Transportation * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of ...
CA-IRIS/mn-iris
src/us/mn/state/dot/tms/client/proxy/ProxyColumn.java
Java
gpl-2.0
3,164
/****************************************************************************** * 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 * ...
geneos/adempiere
base/src/org/compiere/model/X_C_Dunning.java
Java
gpl-2.0
5,778
package example.zxing; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.KeyEvent; import com.journeyapps.barcodescanner.CaptureManager; import com.journeyapps.barcodescanner.Decorat...
KomeijiLogi/BlueToothSeekingForProject
zxing-android-embedded-master/sample/src/main/java/example/zxing/ToolbarCaptureActivity.java
Java
gpl-2.0
2,001