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 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
dagnir/aws-sdk-java
aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/model/transform/PartListElementJsonUnmarshaller.java
Java
apache-2.0
2,994
package seborama.demo2.kafka.model; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonIgnoreProperties(ignoreUnknown = true) public class Order { private String id; private boolean fulfilled; ...
seborama/demo1-kafka
src/main/java/seborama/demo2/kafka/model/Order.java
Java
apache-2.0
1,265
public class ChickenBurger extends Burger { @Override public float price() { return 50.5f; } @Override public String name() { return "Chicken Burger"; } }
Iamasoldier6/DesignPattern
BuilderPatternDemo/src/ChickenBurger.java
Java
apache-2.0
168
/* * Copyright (c) 2017 Otávio Santana and others * 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 distribution. * The Eclipse Public License is available at http://ww...
JNOSQL/artemis
artemis-column/src/test/java/org/jnosql/artemis/column/query/DefaultColumnQueryMapperBuilderTest.java
Java
apache-2.0
1,793
/** * Copyright 2011-2021 Asakusa Framework 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...
asakusafw/asakusafw
directio-project/asakusa-directio-dmdl/src/main/java/com/asakusafw/dmdl/directio/text/AbstractTextStreamFormatGenerator.java
Java
apache-2.0
26,894
/* * Copyright 2007 Sascha Weinreuter * * 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...
consulo/consulo-relaxng
src/org/intellij/plugins/relaxNG/references/PrefixReferenceProvider.java
Java
apache-2.0
4,459
/** * Copyright 2017 Hortonworks. * * 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 w...
hmcl/Streams
streams/service/src/main/java/com/hortonworks/streamline/streams/service/TopologyTestRunResource.java
Java
apache-2.0
26,797
package org.jruby.ext.ffi.jna; import java.util.ArrayList; import org.jruby.runtime.ThreadContext; /** * An invocation session. * This provides post-invoke cleanup. */ final class Invocation { private final ThreadContext context; private ArrayList<Runnable> postInvokeList; Invocation(ThreadContext cont...
google-code/android-scripting
jruby/src/src/org/jruby/ext/ffi/jna/Invocation.java
Java
apache-2.0
796
package org.onetwo.ext.security.utils; import java.util.Collection; import org.onetwo.common.web.userdetails.UserDetail; import org.onetwo.common.web.userdetails.UserRoot; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.userdetails.User; @SuppressWarnings("serial")...
wayshall/onetwo
core/modules/security/src/main/java/org/onetwo/ext/security/utils/LoginUserDetails.java
Java
apache-2.0
1,289
/* * Copyright (C) 2015 P100 OG, 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...
shiftconnects/android-auth-manager
sample/src/main/java/com/shiftconnects/android/auth/example/util/GsonConverter.java
Java
apache-2.0
3,430
package acceptance; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import utils.CommandStatus; import utils.TemporaryDigdagServer; import java.nio.file.Path; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.contai...
treasure-data/digdag
digdag-tests/src/test/java/acceptance/ValidateProjectIT.java
Java
apache-2.0
2,609
/* * Copyright Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.strimzi.api.kafka.model.connect.build; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.ja...
scholzj/barnabas
api/src/main/java/io/strimzi/api/kafka/model/connect/build/Output.java
Java
apache-2.0
2,326
/** * */ package com.transcend.rds.worker; import java.util.Arrays; import java.util.Collection; import java.util.LinkedList; import java.util.List; import org.hibernate.Session; import org.slf4j.Logger; import org.springframework.transaction.annotation.Transactional; import com.msi.tough.cf.json.DatabagParameter...
TranscendComputing/TopStackRDS
src/com/transcend/rds/worker/ModifyDBParameterGroupActionWorker.java
Java
apache-2.0
11,169
/* * Copyright (C) 2014 Johannes Donath <johannesd@evil-co.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...
Evil-Co-Legacy/CyborgEmulator
extension/chip8/src/main/java/org/evilco/emulator/extension/chip8/Chip8Extension.java
Java
apache-2.0
1,398
package com.fordprog.matrix.interpreter.type; public enum Type { RATIONAL, MATRIX, FUNCTION, VOID }
daergoth/MatrixC
src/main/java/com/fordprog/matrix/interpreter/type/Type.java
Java
apache-2.0
115
/* * Copyright 2016 peter. * * 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 w...
peter-mount/filesystem
filesystem-core/src/main/java/onl/area51/filesystem/io/Flat.java
Java
apache-2.0
1,156
/* * @author Flavio Keller * * Copyright 2014 University of Zurich * * 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 * * ...
fkzrh/signal-collect-sna
src/main/java/com/signalcollect/sna/constants/SNAClassNames.java
Java
apache-2.0
1,155
/*************************************************************************** * Copyright 2015 Kieker Project (http://kieker-monitoring.net) * * 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 a...
HaStr/kieker
kieker-common/test/kieker/test/common/junit/record/flow/trace/concurrency/monitor/TestMonitorNotifyEvent.java
Java
apache-2.0
3,493
/** * Copyright © 2013 enioka. All rights reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
enioka/jqm
jqm-all/jqm-client/jqm-api-client-jdbc/src/test/java/com/enioka/jqm/api/test/BasicTest.java
Java
apache-2.0
7,479
/** * Copyright (c) 2013-2020 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...
mrniko/redisson
redisson/src/main/java/org/redisson/iterator/RedissonBaseMapIterator.java
Java
apache-2.0
1,297
package org.artifactory.ui.rest.resource.home; import org.artifactory.api.security.AuthorizationService; import org.artifactory.ui.rest.resource.BaseResource; import org.artifactory.ui.rest.service.general.GeneralServiceFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework....
alancnet/artifactory
web/rest-ui/src/main/java/org/artifactory/ui/rest/resource/home/HomeResource.java
Java
apache-2.0
1,122
/* * Licensed to Cloudkick, Inc ('Cloudkick') under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Cloudkick licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not us...
cloudkick/cloudkick-android
src/com/cloudkick/LoginActivity.java
Java
apache-2.0
9,030
package ai.api.test; /*********************************************************************************************************************** * * API.AI Java SDK - client-side libraries for API.AI * ================================================= * * Copyright (C) 2014 by Speaktoit, Inc. (https://www.speaktoit....
deternan/Weather-line-bot
libai/src/test/java/ai/api/test/ProtocolProdTest.java
Java
apache-2.0
1,887
package org.drools.persistence; import javax.transaction.xa.XAResource; public interface PersistenceManager { XAResource getXAResource(); Transaction getTransaction(); void save(); void load(); }
bobmcwhirter/drools
drools-core/src/main/java/org/drools/persistence/PersistenceManager.java
Java
apache-2.0
232
/* * Copyright 2012 The Netty Project * * The Netty Project 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-2.0 * * Unless ...
CliffYuan/netty
src/test/java/org/jboss/netty/handler/codec/serialization/OioOioSocketCompatibleObjectStreamEchoTest.java
Java
apache-2.0
1,368
package com.coolweather.android; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Color; import android.os.Build; import android.preference.PreferenceManager; import android.support.v4.view.GravityCompat; import android.support.v4.view.ScrollingView; import android.suppo...
MarkManYUN/coolweather
app/src/main/java/com/coolweather/android/WeatherActivity.java
Java
apache-2.0
9,815
package com.example.cdm.huntfun.activity; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; import android.support.v4.view.ViewPager.OnPageChangeListe...
skycdm/HuntFun
app/src/main/java/com/example/cdm/huntfun/activity/ImagePagerActivity.java
Java
apache-2.0
2,872
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package net.sf.mmm.util.version.impl; import net.sf.mmm.util.version.api.DevelopmentPhase; import net.sf.mmm.util.version.api.VersionIdentifier; /** * This is the implementation of {@link ...
m-m-m/util
version/src/main/java/net/sf/mmm/util/version/impl/VersionIdentifierFormatterPhaseValue.java
Java
apache-2.0
1,372
package Escape; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.EventQueue; import java.awt.Insets; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTa...
Zakemi/Escape
src/main/java/Escape/Escape.java
Java
apache-2.0
5,644
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
kevinearls/camel
components/camel-influxdb/src/main/java/org/apache/camel/component/influxdb/InfluxDbEndpoint.java
Java
apache-2.0
4,672
/* * 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...
Liyueyang/NewXmPluginSDK
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/dialog/MLAlertController.java
Java
apache-2.0
39,780
/** * Copyright 2011 Micheal Swiggs * * 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 ...
reddcoin-project/reddcoinj-pow
core/src/test/java/com/google/reddcoin/net/discovery/SeedPeersTest.java
Java
apache-2.0
1,795
/* * Copyright 2007 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
bxf12315/drools
drools-core/src/main/java/org/drools/core/reteoo/EntryPointNode.java
Java
apache-2.0
20,815
/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
dagnir/aws-sdk-java
aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/model/ListVPCAssociationAuthorizationsRequest.java
Java
apache-2.0
11,109
/* * 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")...
lemire/incubator-kylin
invertedindex/src/main/java/org/apache/kylin/invertedindex/index/ColumnValueContainer.java
Java
apache-2.0
1,361
package org.valuereporter.observation; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component...
altran/Valuereporter
src/main/java/org/valuereporter/observation/ObservedMethodsResouce.java
Java
apache-2.0
4,690
package com.lee.game; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.text.TextUtils; import android.view.View; i...
noobyang/AndroidStudy
game/src/main/java/com/lee/game/MainActivity.java
Java
apache-2.0
7,946
/* * Copyright 2014 http://Bither.net * * 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 agree...
bither/bither-android
bither-android/src/net/bither/util/FileUtil.java
Java
apache-2.0
16,209
package org.cobbzilla.util.jdbc; import java.util.regex.Matcher; import java.util.regex.Pattern; public class DbUrlUtil { public static final Pattern JDBC_URL_REGEX = Pattern.compile("^jdbc:postgresql://[\\.\\w]+:\\d+/(.+)$"); public static String setDbName(String url, String dbName) { final Matcher...
cobbzilla/cobbzilla-utils
src/main/java/org/cobbzilla/util/jdbc/DbUrlUtil.java
Java
apache-2.0
495
/** * 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...
xiao-chen/hadoop
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/ozShell/TestOzoneShell.java
Java
apache-2.0
43,840
/* * Copyright 2015 Adaptris 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 agree...
adaptris/interlok
interlok-core/src/test/java/com/adaptris/core/services/jdbc/JdbcMapInsertCase.java
Java
apache-2.0
4,375
/* * Project Scelight * * Copyright (c) 2013 Andras Belicza <iczaaa@gmail.com> * * This software is the property of Andras Belicza. * Copying, modifying, distributing, refactoring without the author's permission * is prohibited and protected by Law. */ package hu.scelight.gui.page.replist.column.impl...
icza/scelight
src-app/hu/scelight/gui/page/replist/column/impl/DateColumn.java
Java
apache-2.0
896
/* * #%L * FlatPack serialization code * %% * Copyright (C) 2012 Perka 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 ...
perka/flatpack-java
core/src/test/java/com/getperka/flatpack/codex/CollectionCodexTest.java
Java
apache-2.0
4,155
// Copyright 2018 Google LLC // // 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 ...
google/supl-client
src/main/java/com/google/location/suplclient/asn1/supl2/lpp/GNSS_RealTimeIntegrityReq.java
Java
apache-2.0
4,587
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package modelo.formularios; import controlador.dbConnection; import java.sql.Connection; import java.sql.PreparedStatement; import jav...
eisnerh/PCT_315
TropiCabinas/src/modelo/formularios/Interfaz_Factura.java
Java
apache-2.0
2,200
// *************************************************************************** // * Copyright 2014 Joseph Molnar // * // * 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 // * // * ...
Talvish/Tales-Samples
user_client/src/main/java/com/talvish/tales/samples/userclient/UserClient.java
Java
apache-2.0
7,943
package com.ihtsdo.snomed.model.xml; import java.sql.Date; import javax.xml.bind.annotation.XmlRootElement; import com.google.common.base.Objects; import com.google.common.primitives.Longs; import com.ihtsdo.snomed.dto.refset.RefsetDto; import com.ihtsdo.snomed.model.refset.Refset; @XmlRootElement(name="refset") pu...
IHTSDO/snomed-publish
model/src/main/java/com/ihtsdo/snomed/model/xml/RefsetDtoShort.java
Java
apache-2.0
6,129
package com.fuyoul.sanwenseller.bean.pickerview; import java.util.List; public class ProvinceModel implements IPickerViewData { private String name; private List<CityModel> cityList; @Override public String getPickerViewText() { return name; } public ProvinceModel() { super(...
newbieandroid/AppBase
app/src/main/java/com/fuyoul/sanwenseller/bean/pickerview/ProvinceModel.java
Java
apache-2.0
915
/* * Copyright 2014-2015 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://w...
140293816/Hawkular-fork
api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/handler/BaseHandler.java
Java
apache-2.0
2,802
/* * 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")...
mike10004/appengine-imaging
gaecompat-awt-imaging/src/common/javax/accessibility/AccessibleText.java
Java
apache-2.0
1,610
/** * Copyright 2015-2016 Maven Source Dependencies * Plugin 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.apache.org...
jpkrohling/srcdeps-maven-plugin
srcdeps-core/src/main/java/org/l2x6/srcdeps/core/shell/ShellCommand.java
Java
apache-2.0
3,821
/* * Powered By agile * Web Site: http://www.agile.com * Since 2008 - 2016 */ package persistent.prestige.modules.edu.service; import java.util.Map; /** * Organization service类 * @author 雅居乐 2016-9-10 22:28:24 * @version 1.0 */ public interface OrganizationService{ /** * 保存信息 * @param datas * @return ...
dingwpmz/Mycat-Demo
src/main/java/persistent/prestige/modules/edu/service/OrganizationService.java
Java
apache-2.0
381
package buchungstool.model.importer; import org.junit.Test; import static java.time.LocalDateTime.now; import static org.assertj.core.api.Assertions.assertThat; public class KonfigurationEventTest { @Test public void test() { KonfigurationEvent konfigurationEvent = new KonfigurationEvent(now(), now()...
AlexBischof/buchungstool
src/test/java/buchungstool/model/importer/KonfigurationEventTest.java
Java
apache-2.0
562
/* * * * Copyright (c) 2011-2015 EPFL DATA Laboratory * * Copyright (c) 2014-2015 The Squall Collaboration (see NOTICE) * * * * 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 o...
akathorn/squall
squall-core/src/main/java/ch/epfl/data/squall/components/dbtoaster/DBToasterJoinComponent.java
Java
apache-2.0
3,862
/* * Copyright 2009-2013 Aarhus University * * 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...
cursem/ScriptCompressor
ScriptCompressor1.0/src/dk/brics/tajs/analysis/WorkListStrategy.java
Java
apache-2.0
2,303
package at.ac.tuwien.dsg.pm.resources; import at.ac.tuwien.dsg.pm.PeerManager; import at.ac.tuwien.dsg.pm.model.Collective; import at.ac.tuwien.dsg.smartcom.model.CollectiveInfo; import at.ac.tuwien.dsg.smartcom.model.Identifier; import javax.inject.Inject; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; imp...
PhilZeppe/CaaS
pm/src/main/java/at/ac/tuwien/dsg/pm/resources/CollectiveInfoResource.java
Java
apache-2.0
1,385
package com.earlysleep.model; import org.litepal.crud.DataSupport; import java.util.ArrayList; import java.util.List; /** * Created by zml on 2016/6/23. * 介绍: */ public class AllData extends DataSupport { private String music; private int musictime; private boolean musicchosse; List<TimeSeting>...
642638112/-1.0
EarlySleep/app/src/main/java/com/earlysleep/model/AllData.java
Java
apache-2.0
353
package org.spoofax.jsglr2.integrationtest.features; import java.util.Arrays; import java.util.stream.Stream; import org.junit.jupiter.api.DynamicTest; import org.junit.jupiter.api.TestFactory; import org.spoofax.jsglr2.integrationtest.BaseTestWithSdf3ParseTables; import org.spoofax.jsglr2.integrationtest.OriginDescr...
metaborg/jsglr
org.spoofax.jsglr2.integrationtest/src/test/java/org/spoofax/jsglr2/integrationtest/features/OriginsTest.java
Java
apache-2.0
839
/* * Copyright (c) 2005-2014, 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.apach...
wso2/andes
modules/andes-core/broker/src/main/java/org/wso2/andes/server/handler/BasicPublishMethodHandler.java
Java
apache-2.0
3,860
/* * 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/...
charithag/carbon-device-mgt-framework
components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/TaskScheduleServiceImpl.java
Java
apache-2.0
5,611
/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
googleapis/google-api-java-client
google-api-client/src/main/java/com/google/api/client/googleapis/testing/json/GoogleJsonResponseExceptionFactoryTesting.java
Java
apache-2.0
3,555
package pl.mobilization.conference2015.sponsor; import android.content.Context; import android.content.Intent; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import java.util.ArrayList; import java.util.List; import de.greenrob...
Mobilization/mobandroid5
app/src/test/java/pl/mobilization/conference2015/sponsor/SponsorRestModelPresenterTest.java
Java
apache-2.0
3,058
package org.liveontologies.protege.justification.proof.preferences; /*- * #%L * Protege Proof Justification * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2016 - 2017 Live Ontologies Project * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
liveontologies/protege-proof-justification
src/main/java/org/liveontologies/protege/justification/proof/preferences/ProofPreferencesPanelPluginLoader.java
Java
apache-2.0
1,491
/* * Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
jentfoo/aws-sdk-java
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/model/transform/DeleteFolderRequestProtocolMarshaller.java
Java
apache-2.0
2,620
/* * Copyright 2017 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...
soundcloud/gocd
domain/test/com/thoughtworks/go/config/materials/git/GitMaterialShallowCloneTest.java
Java
apache-2.0
9,537
package wei_chih.service.handler.wei_chih; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.File; import java.io.IOException; import java.net.Socket; import java.security.KeyPair; import java.security.PublicKey; import java.security.SignatureException; import java.util.concurrent.locks.R...
CloudComLab/Voting-CAP
src/wei_chih/service/handler/wei_chih/WeiChihHandler.java
Java
apache-2.0
5,740
package ru.stqa.pft.addressbook.tests; import org.hamcrest.CoreMatchers; import org.hamcrest.MatcherAssert; import org.testng.annotations.Test; import ru.stqa.pft.addressbook.model.ContactData; import ru.stqa.pft.addressbook.tests.TestBase; import java.util.Arrays; import java.util.stream.Collectors; import static o...
mociek124/java_pft
addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/ContactPhone.java
Java
apache-2.0
1,225
package com.oauth.services.security; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.crypto.keygen.BytesKeyGenerator; import org.springframework.security.crypto.keygen.KeyGenerators; import org.springframework.security.crypto.password.StandardPasswordEncoder...
kinddevil/course-service
oauth/src/main/java/com/oauth/services/security/Test.java
Java
apache-2.0
1,438
package net.distilledcode.httpclient.impl.metatype.reflection; import org.apache.http.client.config.RequestConfig; import org.junit.Test; import java.util.Map; import static org.hamcrest.CoreMatchers.allOf; import static org.hamcrest.CoreMatchers.hasItem; import static org.hamcrest.CoreMatchers.is; import static org...
code-distillery/httpclient-configuration-support
src/test/java/net/distilledcode/httpclient/impl/metatype/reflection/InvokersTest.java
Java
apache-2.0
3,178
/* * Copyright 2013 Square 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 ...
Zhuinden/flowless
flowless-library/src/main/java/flowless/KeyParceler.java
Java
apache-2.0
964
/* * Copyright 2012 Michael Bischoff * * 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 ...
jpaw/jpaw
jpaw-util/src/main/java/de/jpaw/util/ByteArray.java
Java
apache-2.0
18,751
/* * Copyright (C) 2014 Jörg Prante * * 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 agree...
songwie/elasticsearch-river-jdbc
src/main/java/org/xbib/elasticsearch/plugin/jdbc/feeder/JDBCFeeder.java
Java
apache-2.0
12,908
/* * Copyright @ 2015 Atlassian Pty Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
jitsi/libjitsi
src/main/java/org/jitsi/service/neomedia/stats/MediaStreamStats2.java
Java
apache-2.0
2,461
/* * 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"); you may ...
Saligia-eva/mobvista_druid
api/src/test/java/io/druid/data/input/impl/DelimitedParseSpecTest.java
Java
apache-2.0
3,790
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
trasa/aws-sdk-java
aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/model/RegisterInstancesWithLoadBalancerResult.java
Java
apache-2.0
5,518
package com.example.godtemper.db; import java.util.ArrayList; import java.util.List; import com.example.godtemper.model.City; import com.example.godtemper.model.County; import com.example.godtemper.model.Province; import android.R.integer; import android.content.ContentValues; import android.content.Context; import ...
GodisGod/godtemper
src/com/example/godtemper/db/GodTemperDB.java
Java
apache-2.0
4,037
package org.axway.grapes.server.webapp.resources; import com.sun.jersey.api.client.ClientResponse; import com.sun.jersey.api.client.GenericType; import com.sun.jersey.api.client.WebResource; import com.yammer.dropwizard.auth.basic.BasicAuthProvider; import com.yammer.dropwizard.testing.ResourceTest; import org.axway.g...
Axway/Grapes
server/src/test/java/org/axway/grapes/server/webapp/resources/WebSearchResourceTest.java
Java
apache-2.0
5,448
/* * 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...
uschindler/elasticsearch
client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/MlClientDocumentationIT.java
Java
apache-2.0
199,205
package org.tmarciniak.mtp.model; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.SequenceGenerator; impo...
tmarciniak/cfmtp
mtp-core/src/main/java/org/tmarciniak/mtp/model/TradeMessage.java
Java
apache-2.0
4,895
/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
dagnir/aws-sdk-java
aws-java-sdk-polly/src/main/java/com/amazonaws/services/polly/AbstractAmazonPollyAsync.java
Java
apache-2.0
4,021
package dk.itu.pervasive.mobile.data; import android.app.Activity; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.preference.PreferenceManager; import android.provider.MediaStore; import android.util.Log; import android.widget.Toast; import dk.itu.pervasive.mobil...
tonybeltramelli/Ubiquitous-Media-Sharing-Surface
dk.itu.pervasive.mobile.android/src/dk/itu/pervasive/mobile/data/DataManager.java
Java
apache-2.0
2,863
/* * Copyright (c) 2005-2011 Grameen Foundation USA * 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 * * Unl...
jpodeszwik/mifos
application/src/main/java/org/mifos/accounts/struts/actionforms/AccountApplyPaymentActionForm.java
Java
apache-2.0
15,538
package org.apache.activemq.nob.filestore.uuiddir; import org.apache.activemq.nob.filestore.BrokerFilenameDecoder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.util.UUID; /** * Decoder of filenames in a UUID-based filesystem store of broker configuration files. This sto...
hzbarcea/activemq-nob
activemq-nob-filestore/src/main/java/org/apache/activemq/nob/filestore/uuiddir/UUIDDirectoryStoreFilenameDecoder.java
Java
apache-2.0
2,083
package antw.logger; import java.util.Date; import org.apache.tools.ant.BuildEvent; import antw.common.util.Constants; import antw.common.util.StringUtil; import antw.common.util.TimeUtil; import antw.logger.model.Project; import antw.logger.model.Target; public class TreeLogger extends LoggerAdapter { protect...
mbauhardt/antw
modules/logger/src/main/java/antw/logger/TreeLogger.java
Java
apache-2.0
4,319
/** * Copyright 2011-2017 Asakusa Framework 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...
cocoatomo/asakusafw
testing-project/asakusa-test-moderator/src/main/java/com/asakusafw/testdriver/rule/DecimalRange.java
Java
apache-2.0
2,011
/* * JBoss, Home of Professional Open Source. * Copyright 2015 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licen...
sguilhen/wildfly-elytron
src/main/java/org/wildfly/security/sasl/util/CredentialSaslServerFactory.java
Java
apache-2.0
2,996
package com.board; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; public class BoardDAO { private Connection conn; public BoardDAO(Connection conn){ this.conn = conn; } //1. num의 최대값 public int getMaxNum(){ ...
xerato/vk-study
src/com/board/BoardDAO.java
Java
apache-2.0
7,784
/* * Copyright 2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
AntennaeSDK/MMS
client-api/src/main/java/com/github/antennaesdk/common/messages/ServerRestMessage.java
Java
apache-2.0
4,171
package io.quarkus.it.spring.data.jpa; import java.io.Serializable; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.repository.NoRepositoryBean; @NoRepositoryBean public interface IntermediateRepository<T, ID extends Serializable> extends JpaRepository<T, ID> { defa...
quarkusio/quarkus
integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/IntermediateRepository.java
Java
apache-2.0
508
/* * Copyright 2016 The Error Prone 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 ...
cushon/error-prone
core/src/main/java/com/google/errorprone/bugpatterns/threadsafety/ImmutableAnalysis.java
Java
apache-2.0
12,491
package com.planet_ink.coffee_mud.Abilities.Songs; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.pl...
vjanmey/EpicMudfia
com/planet_ink/coffee_mud/Abilities/Songs/Play_Organs.java
Java
apache-2.0
2,094
/** * 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...
yush1ga/pulsar
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/ManagedLedgerFactoryConfig.java
Java
apache-2.0
1,792
package com.mygame; import java.util.Vector; import loon.geom.RectBox; public class StepSwitch extends Switch { StepSwitch(int x, int y, Vector<Thing> blocks) { this.x = x; this.y = y; this.blocks = blocks; orgblocks = new Vector<Thing>(); for(int i = 0; i < blocks.si...
cping/LGame
Java/Examples/arpggame(0.5)/src/com/mygame/StepSwitch.java
Java
apache-2.0
1,359
/* * DateAxisBuilder.java * * Created on March 17, 2007, 10:17 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package com.thecoderscorner.groovychart.axis; import java.beans.IntrospectionException; import java.util.Map; import java.util.logging.Level; ...
davetcc/groovychart
src/main/java/com/thecoderscorner/groovychart/axis/NumberAxisBuilder.java
Java
apache-2.0
2,310
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
aws/aws-sdk-java
aws-java-sdk-servicecatalog/src/main/java/com/amazonaws/services/servicecatalog/model/transform/UpdateServiceActionRequestMarshaller.java
Java
apache-2.0
3,346
/* * Copyright (C) 2016 the original author or authors. * * This file is part of jGrades Application Project. * * Licensed under the Apache License, Version 2.0 (the "License"); * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 */ package org.jgrades.lic.api.model;...
jgrades/jgrades
jg-backend/implementation/base/jg-lic/interface/src/main/java/org/jgrades/lic/api/model/LicenceValidationResult.java
Java
apache-2.0
636
/* * Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
jentfoo/aws-sdk-java
aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/DeinterlacerMode.java
Java
apache-2.0
2,135
/* * Copyright (c) 2015 Ngewi Fet <ngewif@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
lxbzmy/gnucash-android
app/src/main/java/org/gnucash/android/ui/common/BaseDrawerActivity.java
Java
apache-2.0
13,912
package de.nl.moo.data.loader.systems; import de.nl.moo.data.beans.systems.SystemsApplyerBean; import de.nl.moo.data.beans.systems.SystemsBean; import de.nl.moo.data.beans.systems.SystemsSystemBean; import de.nl.moo.data.dao.GameBeanDAO; import de.nl.moo.data.loader.AbstractBeanLoader; import org.springframework.beans...
dayaftereh/master-of-orion
src/main/java/de/nl/moo/data/loader/systems/SystemsBeanLoader.java
Java
apache-2.0
2,608
package com.github.setial.intellijjavadocs.configuration.impl; import com.github.setial.intellijjavadocs.configuration.JavaDocConfiguration; import com.github.setial.intellijjavadocs.exception.SetupTemplateException; import com.github.setial.intellijjavadocs.model.settings.JavaDocSettings; import com.github.setial.int...
setial/intellij-javadocs
src/main/java/com/github/setial/intellijjavadocs/configuration/impl/JavaDocConfigurationImpl.java
Java
apache-2.0
4,548