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 2011 Harri Smått 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 wri...
cags12/android_page_curl
src/fi/harism/curl/CurlMesh.java
Java
apache-2.0
35,478
package org.wx.common; import java.util.HashMap; import java.util.HashSet; import java.util.Locale; import java.util.Map; import java.util.MissingResourceException; import java.util.ResourceBundle; import java.util.Set; public class Config { private static ResourceBundle resources = null; private static...
rocye/wx-idk
src/test/java/org/wx/common/Config.java
Java
apache-2.0
2,241
package com.xf.college.dao; import com.xf.college.model.Course; /** * Created by xufeng on 2017/4/23. */ public interface CourseDao extends BaseDao<Course,String> { }
ixufeng/ECollege
dao/src/main/java/com/xf/college/dao/CourseDao.java
Java
apache-2.0
180
/* Copyright 2014 Shahriyar Amini 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...
samini/gort-public
Source/GortGUIv2/Gort/database/src/org/cmuchimps/gort/modules/database/Installer.java
Java
apache-2.0
1,134
/* * Copyright 2015 Marek Kaput * * 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...
jajakobyly/rustidea
tests/org/rustidea/lexer/RsLexerTest.java
Java
apache-2.0
9,280
/** */ package pcmarchoptions.provider; import archoptions.provider.OnlySingleInstantiationItemProvider; import java.util.Collection; import java.util.List; import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.edit.provider.ComposeableAdapt...
KAMP-Research/KAMP
bundles/Toometa/toometa.pcmarchoptions.edit/src/pcmarchoptions/provider/PCM_OnlySingleInstantiationItemProvider.java
Java
apache-2.0
3,732
/* * Copyright 2014 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
dmmcerlean/cloud-bigtable-client
bigtable-grpc-interface/src/main/java/com/google/cloud/bigtable/grpc/BigtableGrpcClientOptions.java
Java
apache-2.0
3,194
package org.marketcetera.photon.internal.marketdata; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReference; ...
nagyist/marketcetera
photon/photon/plugins/org.marketcetera.photon.marketdata/src/main/java/org/marketcetera/photon/internal/marketdata/MarketDataManager.java
Java
apache-2.0
10,465
/* * 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 ...
simplegeo/hadoop-pig
src/org/apache/pig/newplan/logical/expression/DereferenceExpression.java
Java
apache-2.0
6,495
package cn.com.chenyixiao.designpattern.observer.zoo; import java.util.ArrayList; import java.util.List; /** * 动物园类, 相当于观察者模式中的Subject, 负责存储动物园中的所有动物, 并在新动物加入时通知所有已注册的监听器. * @author 尘一笑 * 这个类比前面两个都复杂,其包含两个list,一个用来存储动物园中所有动物,另一个用来存储所有的监听器, * 鉴于animals和listener集合存储的对象都很简单,本文选择了ArrayList来存储。 * 存储监听器的具体数据结构要视问题而定,比...
tensorchen/DesignPattern
src/cn/com/chenyixiao/designpattern/observer/zoo/Zoo.java
Java
apache-2.0
2,866
/** * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.medical.common.supcan.common.fonts; import com.medical.common.supcan.annotation.common.fonts.SupFont; import com.medical.common.utils.ObjectUtils; import com.thoughtworks.xstream.annotations...
dingyifly/medical
src/main/java/com/medical/common/supcan/common/fonts/Font.java
Java
apache-2.0
2,712
/* * Copyright (C) 2015-2016 Neo Visionaries 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 a...
angcyo/RLibrary
websocket/src/main/java/com/neovisionaries/ws/client/PongSender.java
Java
apache-2.0
1,073
/* * Copyright (c) 2009-2012 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 ...
PlanetWaves/clockworkengine
trunk/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/AbstractHeightMap.java
Java
apache-2.0
16,437
/* * 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 ...
typetools/commons-bcel
src/main/java/org/apache/bcel/generic/ElementValuePairGen.java
Java
apache-2.0
3,607
// 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...
ulfjack/bazel
src/test/java/com/google/devtools/build/lib/rules/objc/AppleStaticLibraryTest.java
Java
apache-2.0
28,965
package org.webcurator.ui.target.controller; import static org.junit.Assert.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.junit.Test; import org.springframework.mock.web.MockHttpServletRequest; import org.springframework.mock.web.MockHttpServletResponse; i...
DIA-NZ/webcurator
wct-core/src/test/java/org/webcurator/ui/target/controller/LogReaderControllerTest.java
Java
apache-2.0
17,452
package com.zhanghao.skinexpert.fragments; import android.content.ContentValues; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View;...
BMambaYe/SkinExpert
app/src/main/java/com/zhanghao/skinexpert/fragments/ProductSearchFragment.java
Java
apache-2.0
4,994
/* * Copyright 2008-2009 Ben Warren * * 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...
benwazza/hammer
src/core/hammer/compile/CompilationException.java
Java
apache-2.0
889
/* * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
googleapis/java-recommendations-ai
proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java
Java
apache-2.0
55,477
/* * Copyright 2015 Coursera 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 t...
coursera/courier
idea-plugin/src/org/coursera/courier/psi/CourierNamedElementReferenceBase.java
Java
apache-2.0
2,963
/* * Copyright 2000-2012 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
consulo/consulo-java
jam-api/src/main/java/com/intellij/jam/reflect/JamAnnotatedChildrenQuery.java
Java
apache-2.0
2,223
package fr.javatronic.blog.massive.annotation1.sub1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_4406 { }
lesaint/experimenting-annotation-processing
experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_4406.java
Java
apache-2.0
151
/** * 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...
vergilchiu/hive
ql/src/java/org/apache/hadoop/hive/ql/optimizer/listbucketingpruner/ListBucketingPrunerUtils.java
Java
apache-2.0
13,590
/* * Copyright 2014 The FIX.io Project * * The FIX.io 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 * * Unles...
barchart/fixio
core/src/main/java/fixio/netty/pipeline/client/FixSessionSettingsProvider.java
Java
apache-2.0
942
/* * 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 ...
julianhyde/calcite
core/src/main/java/org/apache/calcite/sql/util/IdPair.java
Java
apache-2.0
1,904
/* * 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 ...
vikkyrk/incubator-beam
sdks/java/core/src/main/java/org/apache/beam/sdk/coders/BigEndianIntegerCoder.java
Java
apache-2.0
3,325
/* * Copyright 2020 the original 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 ...
nebula-plugins/java-source-refactor
rewrite-core/src/main/java/org/openrewrite/internal/lang/NonNull.java
Java
apache-2.0
1,707
package org.kloeckner.maven.plugin.util; /* * 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...
mkloeckner/version-range-maven-plugin
src/main/java/org/kloeckner/maven/plugin/util/VersionRangeUtils.java
Java
apache-2.0
11,735
package com.commafeed.frontend.model; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @SuppressWarnings("serial") @ApiModel(description = "List of entries with some m...
Athou/commafeed
src/main/java/com/commafeed/frontend/model/Entries.java
Java
apache-2.0
1,525
/* * Copyright 2019, EnMasse authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.enmasse.controller; import static org.hamcrest.core.IsCollectionContaining.hasItems; import static org.hamcrest.core.IsNull.notNullValue; import static org.hamcres...
EnMasseProject/enmasse
address-space-controller/src/test/java/io/enmasse/controller/AddressFinalizerControllerTest.java
Java
apache-2.0
5,952
package com.daemon.pas.presenter.activity; import android.graphics.Bitmap; import android.view.View; import android.view.WindowManager; import android.webkit.WebChromeClient; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; import com.daemon.mvp.presenter.Activity...
Daemon1993/Pas
app/src/main/java/com/daemon/pas/presenter/activity/WebViewActivity.java
Java
apache-2.0
3,975
/* * Copyright (c) Facebook, Inc. and 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 applic...
JoelMarcey/buck
src/com/facebook/buck/file/CopyTree.java
Java
apache-2.0
3,941
// 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 writi...
googleads/googleads-java-lib
modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201809/cm/AppFeedItem.java
Java
apache-2.0
7,728
/* * Copyright 2018 Dmitry Ustalov * * 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...
dustalov/maxmax
src/main/java/org/nlpub/watset/util/IndexedSense.java
Java
apache-2.0
1,464
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.fileEditor.impl; import com.intellij.AppTopics; import com.intellij.CommonBundle; import com.intellij.application.options.CodeStyle; import com.intel...
sabi0/intellij-community
platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/FileDocumentManagerImpl.java
Java
apache-2.0
30,349
package pl.pjagielski; import static javax.ws.rs.core.MediaType.APPLICATION_JSON; import static javax.ws.rs.core.Response.Status.CREATED; import static javax.ws.rs.core.Response.Status.OK; import javax.inject.Inject; import javax.ws.rs.Consumes; import javax.ws.rs.NotFoundException; import javax.ws.rs.POST; import ja...
pjagielski/jersey2-starter
src/main/java/pl/pjagielski/TodoEndpoint.java
Java
apache-2.0
1,432
package com.weather.yogurt.weatherapp.activity; import android.app.Activity; import android.app.ProgressDialog; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.util.Log; import android.view.View; import andro...
Git-Yogurt/WeatherApplication
app/src/main/java/com/weather/yogurt/weatherapp/activity/WeatherActivity.java
Java
apache-2.0
9,501
package org.w3._2001._04.xmlenc; import java.util.ArrayList; import java.util.List; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAnyElement; import javax.xml.bind.annotation.XmlAttribute; import...
nsicontest/nsi-ri
src/org/w3/_2001/_04/xmlenc/AgreementMethodType.java
Java
apache-2.0
3,856
/* * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
googleapis/java-vision
proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java
Java
apache-2.0
5,896
import java.util.*; import java.util.stream.*; /* * The Traveller represents the entity moving through * the Maze. */ public class Traveller { public Traveller (Maze maze, boolean debug) { _theMaze = maze; _debug = debug; } public int findAllKeys () { Vector<Wormhole> o...
nmcl/scratch
AdventOfCode/2019/day20/part1/Traveller.java
Java
apache-2.0
5,211
/* Copyright (c) 2010, Siemens Corporate Research a Division of Siemens Corporation All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2....
OpenXIP/avt-mvt
src/com/siemens/cmiv/avt/mvt/outlier/OutlierManager.java
Java
apache-2.0
1,159
/* * Copyright 2018 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...
jhrcek/kie-wb-common
kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-backend/src/test/java/org/kie/workbench/common/stunner/bpmn/backend/service/diagram/marshalling/events/intermediate/CatchingIntermediateEvent.java
Java
apache-2.0
9,830
/* * Copyright (c) 2014 TIKINOU 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 t...
MythTV-Clients/MythTV-Service-API
src/main/java/org/mythtv/services/api/v028/beans/Input.java
Java
apache-2.0
4,655
/* * Copyright (c) 2008-2019 Haulmont. * * 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...
cuba-platform/cuba
modules/web-tests/src/com/haulmont/cuba/web/testsupport/ui/TestWindowConfig.java
Java
apache-2.0
978
package com.sequenceiq.cloudbreak.reactor.api.event.orchestration; import com.sequenceiq.cloudbreak.reactor.api.event.StackEvent; public class SetupRecoverySuccess extends StackEvent { public SetupRecoverySuccess(Long stackId) { super(stackId); } }
hortonworks/cloudbreak
core/src/main/java/com/sequenceiq/cloudbreak/reactor/api/event/orchestration/SetupRecoverySuccess.java
Java
apache-2.0
268
/* * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
spring-projects/spring-framework
spring-core/src/main/java/org/springframework/aot/generator/ProtectedElement.java
Java
apache-2.0
1,854
package com.huawei.esdk.fusionmanager.local.model.storage; /** * 修改磁盘扩展请求消息。 * <p> * @since eSDK Cloud V100R003C30 */ public class ModifyVolumeReqEx { /** * 【必选】当前操作用户所在VDC编码。 */ private String vdcId; /** * 【必选】VPC ID。 */ private String vpcId; /** * 【必选】磁盘编码。 ...
eSDK/esdk_cloud_fm_r3_native_java
source/FM/V1R5/esdk_fm_neadp_1.5_native_java/src/main/java/com/huawei/esdk/fusionmanager/local/model/storage/ModifyVolumeReqEx.java
Java
apache-2.0
1,207
package com.ctrip.platform.dal.dao.helper; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import com.ctrip.platform.dal.dao.ResultMerger; public class DalListMerger<T> implements ResultMerger<List<T>> { private List<T> result = new ArrayList<>...
ctripcorp/dal
dal-client/src/main/java/com/ctrip/platform/dal/dao/helper/DalListMerger.java
Java
apache-2.0
762
package DAO; import java.sql.SQLException; import java.util.Collection; import model.Item; public interface ItemDAO { public void addItem(Item item) throws SQLException; public void updateItem(Item item) throws SQLException; public Item getItemById(Long id) throws SQLException; public Collection<Item> getAllItem...
dev-blogs/hibernate-without-annotations
src/main/java/DAO/ItemDAO.java
Java
apache-2.0
402
/* * Copyright 2014 FIZ Karlsruhe * * 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...
escidoc-ng/escidoc-ng
escidocng-backend/src/main/java/de/escidocng/controller/DescribeController.java
Java
apache-2.0
2,001
package org.jeewx.api.coupon.qrcode.model; public class ActionInfo extends Card { }
zhangdaiscott/jeewx-api
src/main/java/org/jeewx/api/coupon/qrcode/model/ActionInfo.java
Java
apache-2.0
88
package org.gradle.test.performance.mediummonolithicjavaproject.p292; import org.junit.Test; import static org.junit.Assert.*; public class Test5847 { Production5847 objectUnderTest = new Production5847(); @Test public void testProperty0() { String value = "value"; objectUnderTest....
oehme/analysing-gradle-performance
my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p292/Test5847.java
Java
apache-2.0
2,111
package org.proxy.handler; import org.proxy.domain.Car; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; /** * Created by thiago on 24/09/14. */ public class CarInvocationHandler implements InvocationHandler { private static ...
thiagoandrade6/proxy-test
src/main/java/org/proxy/handler/CarInvocationHandler.java
Java
apache-2.0
774
/* * Copyright (C) 2015 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...
Danihelsan/GoUbiquitous
mobile/src/main/java/pe/asomapps/udacity/goubiquitous/widget/TodayWidgetIntentService.java
Java
apache-2.0
7,149
/* * 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 ...
heriram/incubator-asterixdb
asterixdb/asterix-external-data/src/test/java/org/apache/asterix/external/input/record/reader/RecordWithPKTestReaderFactory.java
Java
apache-2.0
2,841
/** * Copyright 2012-2013 American Institute for Computing Education and 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 obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-...
aicer/hibiscus-http-client
src/main/java/org/aicer/hibiscus/util/HashGenerator.java
Java
apache-2.0
4,395
/* * Copyright 2010 Erlend Nossum * * 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 ...
nostra/semispace
semispace-comet/semispace-comet-webapp/src/test/java/org/semispace/comet/client/notification/NoticeC.java
Java
apache-2.0
838
package com.dmitrymalkovich.android.githubanalytics.settings; /* * Copyright 2016. Dmitry Malkovich * * 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/licen...
DmitryMalkovich/gito-github-client
app/src/main/java/com/dmitrymalkovich/android/githubanalytics/settings/SettingsActivity.java
Java
apache-2.0
10,259
package ru.skuznetsov; /** * Created by Sergey on 27.11.2016. */ public class Turn { /** * Method takes an array as argument and expand it. * @param array - array for expanding * */ public void back(int[] array) { if (array == null) { throw new IllegalArgumentException("nul...
kuznetsovsergeyymailcom/homework
chapter_001/expandArray/src/main/java/ru/skuznetsov/Turn.java
Java
apache-2.0
551
package com.example.greatbook.utils.permission; /** * 权限请求结果回调 * <p> * 配合{@link PermissionUtils}使用 * * @author MDove on 2017/9/15. * */ public interface PermissionGrantCallback { /** * 权限请求被批准 * * @param requestCode */ void permissionGranted(int requestCode); /** * 权限请求被拒绝...
zhiaixinyang/LightThink
greatbook/src/main/java/com/example/greatbook/utils/permission/PermissionGrantCallback.java
Java
apache-2.0
522
/* * Copyright 2010-2016 OrientDB LTD (http://orientdb.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 ...
orientechnologies/orientdb
object/src/main/java/com/orientechnologies/orient/object/enumerations/OObjectEnumLazySet.java
Java
apache-2.0
4,757
/* * Licensed to Crate.io GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you may not use this f...
crate/crate
server/src/main/java/io/crate/blob/PutChunkAction.java
Java
apache-2.0
1,356
/** * Copyright 2005-2013 The Kuali Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/ecl2.php * * Unless requ...
ua-eas/ksd-kc5.2.1-rice2.3.6-ua
rice-middleware/it/kew/src/test/java/org/kuali/rice/kew/docsearch/DocumentSearchSecurityTest.java
Java
apache-2.0
15,188
/* * Copyright 2016 agwlvssainokuni * * 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 ...
agwlvssainokuni/springapp2
galleryapp/gallery-web/src/main/java/cherry/gallery/web/applied/ex60/AppliedEx61SubFormBase.java
Java
apache-2.0
4,405
package io.github.kkysen.quicktrip.apis.google.places; import io.github.kkysen.quicktrip.apis.google.LatLng; import lombok.Getter; import lombok.RequiredArgsConstructor; /** * * * @author Khyber Sen */ @RequiredArgsConstructor public class GoogleNearbyAirportsRequest extends GoogleNearbyR...
kkysen/QuickTrip
src/main/java/io/github/kkysen/quicktrip/apis/google/places/GoogleNearbyAirportsRequest.java
Java
apache-2.0
617
/* * Javassist, a Java-bytecode translator toolkit. * Copyright (C) 1999- Shigeru Chiba. All Rights Reserved. * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. Alternatively, the contents of th...
scouter-project/bytescope
bytescope.agent/src/main/java/scouter/javassist/compiler/ast/CallExpr.java
Java
apache-2.0
1,531
package com.alibaba.dubbo.transactiontreetest.case3; import java.util.Random; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.alibaba.dubbo.transactiontree.api.TransactionManager; @Service public class ClientImpl implements Client { ...
learningtcc/dubbox
dubbo-transactiontree/src/test/java/com/alibaba/dubbo/transactiontreetest/case3/ClientImpl.java
Java
apache-2.0
1,408
/* * Copyright (c) 2012 Sonatype, Inc. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses...
ggeorg/chillverse
async-http-client/src/test/java/com/ning/http/client/async/grizzly/GrizzlyMaxTotalConnectionTest.java
Java
apache-2.0
1,170
package br.com.preventsenior.reclamacao.model; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.NamedQuery; import javax.persistence.OneToMany...
EduTheodoro/Reclamacao_online
src/main/java/br/com/preventsenior/reclamacao/model/Setor.java
Java
apache-2.0
1,848
package com.andrewsoft.humanbercalc; import java.util.HashMap; import java.util.Map; public class FizuSzamol { private WorkTime myWt; private Map<String, Integer> times = new HashMap<>(); public FizuSzamol( WorkTime worktime) { // TODO Auto-generated constructor stub myWt = worktime; ...
jakabandras/HumanBerCalc
src/com/andrewsoft/humanbercalc/FizuSzamol.java
Java
apache-2.0
512
package com.bingka.weathercool; import android.content.Context; import android.database.DatabaseErrorHandler; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import android.database.sqlite.SQLiteOpenHelper; public class WeatherCoolOpenHelper extends ...
Bingka/CoolWeather
src/com/bingka/weathercool/WeatherCoolOpenHelper.java
Java
apache-2.0
1,717
/* * Copyright 2016 Open Networking Laboratory * * 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...
sonu283304/onos
core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/DefaultAsyncAtomicValue.java
Java
apache-2.0
6,969
// Copyright 2021 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 ...
googlemaps/android-samples
ApiDemos/java/app/src/gms/java/com/example/mapdemo/BackgroundColorCustomizationProgrammaticDemoActivity.java
Java
apache-2.0
3,328
/** * Copyright 2010-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 the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
geofeedia/migrations
src/main/java/org/apache/ibatis/migration/MigrationReader.java
Java
apache-2.0
4,320
/** * Copyright 2016 vip.com. * <p> * 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...
vipshop/Saturn
saturn-console-api/src/test/java/com/vip/saturn/job/console/com/vip/saturn/job/console/mybatis/repository/DashboardHistoryRepositoryTest.java
Java
apache-2.0
5,741
package com.github.obourgain.elasticsearch.http.response.entity.aggs; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.commons.lang3.tuple.Pair; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; import lomb...
obourgain/elasticsearch-http
src/main/java/com/github/obourgain/elasticsearch/http/response/entity/aggs/Terms.java
Java
apache-2.0
3,894
/* * Copyright 2015 Tomas David * * 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...
tomasdavidorg/android-vehicle-routing-problem
app/src/main/java/org/tomasdavid/vehicleroutingproblem/MainActivity.java
Java
apache-2.0
3,052
package com.ambrogio.dan.playoffs; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.But...
JackAnansi/NHLPlayoffsSim
app/src/main/java/com/ambrogio/dan/playoffs/MainActivity.java
Java
apache-2.0
2,917
/* * 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 m...
cdegroot/river
src/net/jini/jeri/OutboundRequest.java
Java
apache-2.0
10,222
package org.eddy.solve; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicInteger; /** * Created by Justice-love on 2017/7/17. */ public class NotifyThreadFactory implements ThreadFactory{ private static final AtomicInteger poolNumber = new AtomicInteger(1); private final ...
justice-code/Thrush
base/src/main/java/org/eddy/solve/NotifyThreadFactory.java
Java
apache-2.0
1,432
package sk.henrichg.phoneprofilesplus; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Handler; import android.os.PowerManager; public class NFCEventEndBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Cont...
henrichg/PhoneProfilesPlus
phoneProfilesPlus/src/main/java/sk/henrichg/phoneprofilesplus/NFCEventEndBroadcastReceiver.java
Java
apache-2.0
3,918
/** * 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...
robzor92/hops
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/web/resources/GetOpParam.java
Java
apache-2.0
2,657
/* * Copyright (C) 2021 Axon Ivy AG * * 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 ...
axonivy/project-build-plugin
src/main/java/ch/ivyteam/ivy/maven/util/CompilerResult.java
Java
apache-2.0
2,239
/* * 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 ...
rdblue/incubator-nifi
commons/nifi-expression-language/src/main/java/org/apache/nifi/attribute/expression/language/evaluation/functions/LessThanEvaluator.java
Java
apache-2.0
2,257
/** * 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 under ...
dorzey/assertj-core
src/test/java/org/assertj/core/api/optional/OptionalAssert_isEmpty_Test.java
Java
apache-2.0
1,532
package org.kayura.activiti.vo; import java.io.Serializable; import java.util.Map; import org.activiti.engine.form.FormProperty; import org.kayura.utils.StringUtils; public class FormPropertyVo implements Serializable { private static final long serialVersionUID = 1607099846369884335L; private String...
KayuraTeam/kayura-activiti
src/main/java/org/kayura/activiti/vo/FormPropertyVo.java
Java
apache-2.0
2,328
/* * Copyright 2019 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 w...
googleapis/java-vision
samples/spring-framework/src/main/java/com/example/vision/VisionController.java
Java
apache-2.0
3,300
/* * 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 ...
wjsl/jaredcumulo
server/src/main/java/org/apache/accumulo/server/monitor/servlets/XMLServlet.java
Java
apache-2.0
8,340
package com.ecochain.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ecochain.service.AclResourcesService; import com.ecochain.user.entity.AclResources; import com.ecochain.user.entity.AclResourcesE...
xionggit/BootLoginService
src/main/java/com/ecochain/service/impl/AclResourcesServiceImpl.java
Java
apache-2.0
1,374
package co.yishun.library.datacenter; import android.support.v4.widget.SwipeRefreshLayout; import com.malinskiy.superrecyclerview.SuperRecyclerView; /** * Created by carlos on 2/6/16. */ public class SuperRecyclerViewRefreshable implements Refreshable { private final SuperRecyclerView mSuperRecyclerView; ...
a642500/DataCenter
datacenter/src/main/java/co/yishun/library/datacenter/SuperRecyclerViewRefreshable.java
Java
apache-2.0
1,297
/* * Copyright 2015-2017 JTS * * 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 ...
Camelion/nasc-decompiler
src/main/scala/ru/jts/decompiler/ll/stack/MathEvent.java
Java
apache-2.0
4,419
package de.hsbo.geo.simsamples.applications; import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.ArrayList; import java.util.Locale; import de.hsbo.geo.simsamples.markov.instances.SimpleMarkovChain; /** * Simple Markov model describing a random movement between two absorbers. * The exam...
bogeo/simsamples
src/de/hsbo/geo/simsamples/applications/RandomMovementExample.java
Java
apache-2.0
2,985
package com.zhukic.sectionedrecyclerview; import org.junit.Test; import static org.junit.Assert.*; public class SectionTest { @Test public void checkConstructor() { Section section = new Section(10); assertEquals(10, section.getSubheaderPosition()); assertEquals(0, section.getItemC...
zhukic/Sectioned-RecyclerView
sectioned-recyclerview/src/test/java/com/zhukic/sectionedrecyclerview/SectionTest.java
Java
apache-2.0
388
/* * 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 ...
tripodsan/jackrabbit-oak
oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/http/HttpStoreRevisions.java
Java
apache-2.0
2,535
/* * Copyright 2021 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...
marques-work/gocd
common/src/test/java/com/thoughtworks/go/serverhealth/HealthStateScopeTest.java
Java
apache-2.0
6,236
package com.planet_ink.coffee_mud.Races; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.coffee_mud.Behaviors.interfaces.*; import com.pl...
welterde/ewok
com/planet_ink/coffee_mud/Races/Deer.java
Java
apache-2.0
5,029
package com.lid.lib; import android.content.Context; import android.graphics.Canvas; import android.util.AttributeSet; import android.widget.TextView; public class LabelTextView extends TextView { LabelViewHelper utils; public LabelTextView(Context context) { this(context, null); } public L...
linger1216/labelview
lib/src/main/java/com/lid/lib/LabelTextView.java
Java
apache-2.0
2,507
/* * KIELER - Kiel Integrated Environment for Layout Eclipse RichClient * * http://www.informatik.uni-kiel.de/rtsys/kieler/ * * Copyright 2010 by * + Christian-Albrechts-University of Kiel * + Department of Computer Science * + Real-Time and Embedded Systems Group * * This code is provided under the ter...
ExplorViz/ExplorViz
src-external/de/cau/cs/kieler/klay/layered/properties/InternalProperties.java
Java
apache-2.0
17,880
/* * Copyright 2015 Cognitive Medical Systems, Inc (http://www.cognitivemedicine.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-...
SocraticGrid/UCS-Implementation
ucs-nifi-common/src/main/java/org/socraticgrid/hl7/ucs/nifi/common/serialization/ConversationInfoSerializer.java
Java
apache-2.0
4,734
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.config.model; import com.yahoo.cloud.config.ApplicationIdConfig; import com.yahoo.cloud.config.ClusterListConfig; import com.yahoo.cloud.config.ModelConfig; import com.yahoo.cloud.config.ModelConf...
vespa-engine/vespa
config-model/src/main/java/com/yahoo/config/model/ApplicationConfigProducerRoot.java
Java
apache-2.0
11,848