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-2019 B2i Healthcare Pte Ltd, http://b2i.sg * * 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 require...
IHTSDO/snow-owl
snomed/com.b2international.snowowl.snomed.datastore.server/src/com/b2international/snowowl/datastore/server/snomed/merge/SnomedMergeConflictRuleProvider.java
Java
apache-2.0
2,004
/* * Copyright 2017 Axway Software * * 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...
Axway/ats-framework
agent/core/src/test/java/com/axway/ats/agent/core/ant/component/agenttest/FirstActionClass.java
Java
apache-2.0
2,877
/******************************************************************************* * Copyright 2014, 2016 gwt-ol3 * * 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...
mazlixek/gwt-ol3
gwt-ol3-client/src/main/java/ol/MapEvent.java
Java
apache-2.0
1,225
package com.github.rma350.jgraphv.core.demo; import com.github.rma350.jgraphv.core.engine.Engine; import com.github.rma350.jgraphv.core.shapes.ArcBuffer; import com.github.rma350.jgraphv.core.shapes.ArcBufferBuilder; import com.github.rma350.jgraphv.core.shapes.ArcBuilder; import com.github.rma350.jgraphv.core.shapes....
rma350/jgraphv
JGraphVCore/src/com/github/rma350/jgraphv/core/demo/ArcDemo.java
Java
apache-2.0
1,557
package com.itsafe.phone.utils; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; /** * Created by Hello World on 2016/3/10. */ public class Md5Utils { /** ...
Monkeyyingbao/Mobilesafe
phone/app/src/main/java/com/itsafe/phone/utils/Md5Utils.java
Java
apache-2.0
2,742
package jp.tf_web.radiolink.net.udp.service; import java.net.InetSocketAddress; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.socket.DatagramPacket; /** UDPからの受信等を取得するリスナー * * Created by furukawanobuyuki on 2015/12/09. */ public interface UDPReceiverListener { /** STUN Binding 結果を通知 ...
RadioLink/RadioLinkApp
app/src/main/java/jp/tf_web/radiolink/net/udp/service/UDPReceiverListener.java
Java
apache-2.0
714
/* * JBoss, Home of Professional Open Source * Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Vers...
aeshell/aesh-readline
readline/src/main/java/org/aesh/readline/util/TerminalUtil.java
Java
apache-2.0
1,901
package com.github.rahulsom.grooves.groovy.transformations.internal; import com.github.rahulsom.grooves.groovy.transformations.Event; import com.github.rahulsom.grooves.groovy.transformations.Query; import org.codehaus.groovy.ast.*; import org.codehaus.groovy.ast.expr.Expression; import org.codehaus.groovy.control.Sou...
rahulsom/grooves
grooves-groovy/src/main/java/com/github/rahulsom/grooves/groovy/transformations/internal/EventASTTransformation.java
Java
apache-2.0
1,822
package com.tpb.mdtext.views.spans; import android.graphics.drawable.Drawable; import android.text.style.ImageSpan; import com.tpb.mdtext.handlers.ImageClickHandler; import com.tpb.mdtext.imagegetter.HttpImageGetter; import java.lang.ref.WeakReference; /** * Created by theo on 22/04/17. */ public class Clickable...
tpb1908/AndroidProjectsClient
markdowntextview/src/main/java/com/tpb/mdtext/views/spans/ClickableImageSpan.java
Java
apache-2.0
1,138
package com.itheima.oschina.ui.dialog; import com.itheima.oschina.R; import com.itheima.oschina.util.TDevice; import com.itheima.oschina.util.TLog; import android.animation.Animator; import android.animation.Animator.AnimatorListener; import android.animation.ObjectAnimator; import android.annotation.TargetApi; import...
CoderTang/Itheima72
开源中国客户端T/src/com/itheima/oschina/ui/dialog/CommonToast.java
Java
apache-2.0
3,991
/* * #%L * OW2 Chameleon - Fuchsia Framework * %% * Copyright (C) 2009 - 2014 OW2 Chameleon * %% * 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/licens...
ow2-chameleon/fuchsia
bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/SearchRequest.java
Java
apache-2.0
5,426
/** * Copyright 2011 The Open Source Research Group, * University of Erlangen-Nürnberg * * 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/lic...
pumpadump/sweble-wikitext
swc-engine/src/test/java/org/sweble/wikitext/engine/output/HtmlRendererTest.java
Java
apache-2.0
3,805
package org.rapidpm.event.opench2015.v002.p06; import org.rapidpm.event.opench2015.v002.*; /** * Created by svenruppert on 01.09.15. */ public class AddAdapterBWL { public Integer add(final Integer a, final Integer b) { return a + b + 120; } }
svenruppert/20150901_proxy_deep_dive
modules/part02/src/main/java/org/rapidpm/event/opench2015/v002/p06/AddAdapterBWL.java
Java
apache-2.0
256
package org.spincast.tests.json; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.math.BigDecimal...
spincast/spincast-framework
spincast-core-parent/spincast-core-tests/src/test/java/org/spincast/tests/json/JsonPathsSelectTest.java
Java
apache-2.0
19,925
package com.joss.conductor.mobile; import io.appium.java_client.AppiumDriver; import io.appium.java_client.MobileElement; import io.appium.java_client.TouchAction; import io.appium.java_client.remote.AndroidMobileCapabilityType; import io.appium.java_client.remote.MobileCapabilityType; import org.assertj.swing.asserti...
jossjacobo/conductor-mobile
src/test/java/com/joss/conductor/mobile/LocomotiveTest.java
Java
apache-2.0
43,409
package org.patriques.output.digitalcurrencies; import org.patriques.input.digitalcurrencies.Market; import org.patriques.output.JsonParser; import org.patriques.output.digitalcurrencies.data.DigitalCurrencyData; import java.time.LocalDate; import java.util.ArrayList; import java.util.List; import java.util.Map; /**...
leonarduk/stockmarketview
alphavantage4j/src/main/java/org/patriques/output/digitalcurrencies/Monthly.java
Java
apache-2.0
2,795
/* * Copyright 2003-2005 the original author or authors. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
xfmysql/xfwdata
xfweb/src/com/jdon/jivejdon/model/message/output/shield/Profanity.java
Java
apache-2.0
6,007
/* * 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 not ...
masaki-yamakawa/geode
geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/ConnectorsDistributedSystemService.java
Java
apache-2.0
1,749
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
googleads/google-ads-java
google-ads-stubs-v10/src/test/java/com/google/ads/googleads/v10/services/CustomInterestServiceClientTest.java
Java
apache-2.0
4,447
package lecho.lib.hellocharts.provider; import lecho.lib.hellocharts.model.ColumnChartData; public interface ColumnChartDataProvider { ColumnChartData getColumnChartData(); void setColumnChartData(ColumnChartData data); }
WellframeInc/hellocharts-android
hellocharts-library/src/lecho/lib/hellocharts/provider/ColumnChartDataProvider.java
Java
apache-2.0
235
package org.github.etcd.service.rest.impl; import java.io.IOException; import java.net.URI; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; import javax.ws.rs.NotFoundException; import javax.ws.rs.RedirectionException; import javax.ws.rs.WebApplicationException; impor...
raoofm/etcd-viewer
src/main/java/org/github/etcd/service/rest/impl/EtcdProxyImpl.java
Java
apache-2.0
9,095
/* * 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 ap...
SmileMx/Screen_Launcher
Launcher/src/com/tcl/simpletv/launcher2/Launcher.java
Java
apache-2.0
214,778
/* * Copyright (C) 2015 Decody Software. * * 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...
menismu/decody-simple-json-client
sources/SimpleJSONClient/src/com/decody/android/core/json/exceptions/ResourceNotFoundException.java
Java
apache-2.0
999
package com.djn.cn.spring.mongodbframework.util; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import org.springframework.beans.factory.annotation.Aut...
NieDongjia/spring-data-mongodb-master
src/main/java/com/djn/cn/spring/mongodbframework/util/RedisCacheUtil.java
Java
apache-2.0
5,629
/** * Copyright 2015 David Karnok and 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 l...
akarnokd/rxjava2-backport
src/test/java/hu/akarnokd/rxjava2/internal/operators/OperatorMulticastTest.java
Java
apache-2.0
3,809
/* * Copyright 2016 Lutz Fischer <l.fischer@ed.ac.uk>. * * 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...
lutzfischer/XiSearch
src/main/java/rappsilber/utils/Util.java
Java
apache-2.0
44,716
/** * * 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 ...
alexeev/jboss-fuse-mirror
fabric/fabric-core/src/main/java/io/fabric8/api/jmx/MetaTypeObjectDTO.java
Java
apache-2.0
2,471
/* * 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 not ...
PurelyApplied/geode
geode-dunit/src/main/java/org/apache/geode/test/dunit/DUnitEnv.java
Java
apache-2.0
2,522
/* * Copyright 2015-present Facebook, 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...
janicduplessis/buck
src/com/facebook/buck/rules/macros/MacroExpanderWithCustomFileOutput.java
Java
apache-2.0
1,320
package com.zimolo.inventory.domain.util; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.JsonSerializer; import com.fasterxml.jackson.databind.SerializerProvider; import org.joda.time.DateTime; import org.joda.time.DateTimeZone; import org.joda.time.format.DateTimeFormat; import...
tyrelltle/microservice
microservices/api/product-api-service/src/main/java/com/zimolo/inventory/domain/util/CustomDateTimeSerializer.java
Java
apache-2.0
930
/** * * Copyright the original author or authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
opg7371/Smack
smack-extensions/src/test/java/org/jivesoftware/smackx/forward/ForwardedTest.java
Java
apache-2.0
3,759
package com.example.pengpeng.db; import org.litepal.crud.DataSupport; /** * Created by Administrator on 2017/9/21 0021. */ public class County extends DataSupport { private int id; private String countyName; private String weatherId; private int cityId; public int getId() {return id;} publi...
Zhangbaowen13/greenhouse
app/src/main/java/com/example/pengpeng/db/County.java
Java
apache-2.0
731
package cn.tomoya.module.section.entity; import javax.persistence.*; import java.io.Serializable; /** * xgb. * Copyright (c) 2016, All Rights Reserved. * http://tomoya.cn */ @Entity @Table(name = "pybbs_section") public class Section implements Serializable { @Id @GeneratedValue private int id; @Column(...
ddppfamily/xgb
src/main/java/cn/tomoya/module/section/entity/Section.java
Java
apache-2.0
569
package uk.ac.ox.zoo.seeg.abraid.mp.common.service.core; import org.apache.commons.io.FileUtils; import org.joda.time.DateTime; import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import uk.ac.ox.zoo.seeg.abraid.mp.common.config.SmtpConfiguration; import uk.ac...
SEEG-Oxford/ABRAID-MP
src/Common/test/uk/ac/ox/zoo/seeg/abraid/mp/common/service/core/EmailServiceIntegrationTest.java
Java
apache-2.0
1,815
package org.ovirt.engine.ui.userportal.section.main.view.popup.vm; import org.ovirt.engine.ui.common.CommonApplicationResources; import org.ovirt.engine.ui.common.CommonApplicationTemplates; import org.ovirt.engine.ui.common.idhandler.ElementIdHandler; import org.ovirt.engine.ui.common.view.popup.AbstractModelBoundWid...
halober/ovirt-engine
frontend/webadmin/modules/userportal-gwtp/src/main/java/org/ovirt/engine/ui/userportal/section/main/view/popup/vm/VmNextRunConfigurationPopupView.java
Java
apache-2.0
1,626
/* * Copyright 2017 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...
jomof/cdep
cdep/src/main/java/io/cdep/cdep/ast/finder/ModuleArchiveExpression.java
Java
apache-2.0
1,901
package info.knigoed.dao; import info.knigoed.config.DataSourceConfig; import info.knigoed.config.OtherConfig; import info.knigoed.config.RequestContext; import info.knigoed.config.WebConfig; import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.MethodSorters...
iormark/Knigoed
src/test/java/info/knigoed/dao/SearchSphinxDaoTest.java
Java
apache-2.0
1,655
package com.yuyh.sprintnba.mvp.view; /** * @author yuyh. * @date 2016/6/27. */ public interface PostView { void showLoadding(); void hideLoadding(); void postSuccess(); void postFailure(String msg); void feedbackSuccess(); void checkPermissionSuccess(boolean hasPermission, int code, St...
xqgdmg/DavidNBA-master
app/src/main/java/com/yuyh/sprintnba/mvp/view/PostView.java
Java
apache-2.0
348
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
firejack-open/Firejack-Platform
platform/src/main/java/net/firejack/platform/core/config/meta/element/authority/RoleElement.java
Java
apache-2.0
1,620
/* * Copyright 2016 Ben Manes. 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 applicab...
ben-manes/caffeine
jcache/src/test/java/com/github/benmanes/caffeine/jcache/integration/CacheLoaderTest.java
Java
apache-2.0
3,335
package shixiaofei.coolweather.love.shaonianAndxmv.model; /**County实体类 * Created by shixiaofei on 2016/9/24. */ public class County { private int id; private String countyName; private String countyCode; private int cityId; public int getId() { return id; } public void setId(in...
snxmv/coolweather
app/src/main/java/shixiaofei/coolweather/love/shaonianAndxmv/model/County.java
Java
apache-2.0
832
/* 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...
roberthafner/flowable-engine
modules/flowable-ui-modeler/flowable-ui-modeler-logic/src/main/java/org/activiti/app/service/editor/ModelImageService.java
Java
apache-2.0
7,838
/*-------------------------------------------------------------------------+ | | | Copyright 2005-2011 The ConQAT Project | | | | License...
vimaier/conqat
org.conqat.engine.sourcecode/external/scanner-generated-src/org/conqat/lib/scanner/JavaToken.java
Java
apache-2.0
2,366
package edu.conncoll.cas.interrupts.web.flow; import java.util.Map; import org.apache.commons.lang3.tuple.Pair; import org.apereo.cas.authentication.Credential; import org.apereo.cas.authentication.principal.Principal; import org.apereo.cas.ticket.registry.TicketRegistrySupport; import org.apereo.cas.web.support.WebUt...
ConnCollege/cas-5
src/main/java/edu/conncoll/cas/interrupts/web/flow/AbstractConncollInterruptsRepository.java
Java
apache-2.0
3,485
package com.lucilu.rxdynamicsearch.fragments.base; import com.lucilu.rxdynamicsearch.IInjectable; import com.lucilu.rxdynamicsearch.viewmodel.base.ViewModel; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import...
luciapayo/RxDynamicSearch
app/src/main/java/com/lucilu/rxdynamicsearch/fragments/base/BaseFragment.java
Java
apache-2.0
1,338
/* This question is from https://leetcode.com/problems/strobogrammatic-number/ Difficulty: easy A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Write a function to determine if a number is strobogrammatic. The number is represented as a string. Example 1: I...
yehchilai/IQ
Easy/246 Strobogrammatic Number.java
Java
apache-2.0
1,026
// Copyright (C) 2010 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 applicable ...
Saulis/gerrit
gerrit-server/src/main/java/com/google/gerrit/server/project/RefControl.java
Java
apache-2.0
20,772
/** * Copyright 2016 Smart Society Services B.V. * * 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 */ package org.opensmartgridplatform.ada...
OSGP/Platform
osgp-adapter-domain-microgrids/src/main/java/org/opensmartgridplatform/adapter/domain/microgrids/infra/jms/core/OsgpCoreRequestMessageListener.java
Java
apache-2.0
2,183
package com.angkorteam.fintech.pages.teller; import org.junit.Before; import org.junit.Test; import com.angkorteam.fintech.junit.JUnit; import com.angkorteam.fintech.junit.JUnitWicketTester; public class TellerCreatePageUITest { private JUnitWicketTester wicket; @Before public void before() { t...
PkayJava/fintech
src/test/java/com/angkorteam/fintech/pages/teller/TellerCreatePageUITest.java
Java
apache-2.0
579
package com.grr.sunweather; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void add...
Grrsun/sunweather
app/src/test/java/com/grr/sunweather/ExampleUnitTest.java
Java
apache-2.0
396
// Copyright 2017 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...
GoogleCloudPlatform/training-data-analyst
courses/data_analysis/deepdive/pubsub-exercises/exercise2/solution/src/main/java/com/google/cloud/sme/pubsub/Subscriber.java
Java
apache-2.0
5,078
/* * Copyright 2015 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. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, soft...
mdproctor/drools
drools-reteoo/src/main/java/org/drools/reteoo/nodes/ReteRightInputAdapterNode.java
Java
apache-2.0
7,154
/* * Copyright (C) 2013 47 Degrees, LLC * http://47deg.com * hello@47deg.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 * * ...
x251089003/EveryXDay
EveryXDay/src/main/java/com/xinxin/everyxday/widget/swipelistview/SwipeListViewListener.java
Java
apache-2.0
3,114
package ru; /** * Реализуем тест для класса Calculator * @author Aleksandr Belov * @date 23.09.2016 */ import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.*; public class CalculatorTest { /* * Тест сложения */ @Test public void whenAddShouldSummateIt() { final...
xcyde/Java-A-to-Z
chapter_001/part_002/src/test/java/ru/CalculatorTest.java
Java
apache-2.0
1,423
/* * 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-gkehub
proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java
Java
apache-2.0
38,488
/* * Copyright 2017-present 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 appli...
LorenzReinhart/ONOSnew
apps/pce/app/src/main/java/org/onosproject/pce/pceservice/constraint/PceBandwidthConstraint.java
Java
apache-2.0
3,582
/** * */ package com.opensymphony.xwork2.ognl.accessor; import ognl.ObjectPropertyAccessor; import ognl.OgnlException; import org.apache.struts2.dispatcher.Parameter; import java.util.Map; public class ParameterPropertyAccessor extends ObjectPropertyAccessor { @Override public Object getProperty(Map conte...
Ile2/struts2-showcase-demo
src/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/ParameterPropertyAccessor.java
Java
apache-2.0
1,102
/** * Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.collect.named; /** * Mock named object. */ class MoreMockNameds implements MockNamed { public static final MoreMockNameds MORE = new MoreMockNameds(); p...
OpenGamma/OG-Commons
modules/collect/src/test/java/com/opengamma/collect/named/MoreMockNameds.java
Java
apache-2.0
585
package me.alad.nutch.html.extractor.model; import java.util.List; import javax.xml.bind.annotation.XmlRootElement; import me.alad.nutch.html.extractor.evaluation.EvaluationContext; import org.apache.commons.lang3.Validate; @XmlRootElement public class Text extends Function { @Override public List<?> extract(Ob...
gitriver/nutch-learning
src/plugin/extractor/src/java/me/alad/nutch/html/extractor/model/Text.java
Java
apache-2.0
665
/** Copyright 2015 Osiris Project Team Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
osiris-indoor/mapviewer-android
app/src/main/java/com/fhc25/percepcion/osiris/mapviewer/model/indoor/Office.java
Java
apache-2.0
1,116
/* * Copyright 2015 MovingBlocks * * 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 ...
askneller/DestinationSol
main/src/org/destinationsol/game/screens/CollisionWarnDrawer.java
Java
apache-2.0
2,268
/** * 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...
zhe-thoughts/hadoop
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerUtils.java
Java
apache-2.0
13,504
package com.github.anthonime.testbot.runtime.elements.webdriver; import com.github.anthonime.testbot.runtime.elements.HasWebPageContext; import com.github.anthonime.testbot.runtime.elements.exceptions.MultipleElementsException; import com.github.anthonime.testbot.runtime.elements.exceptions.NoSuchElementException; imp...
anthonime/testbot
src/main/java/com/github/anthonime/testbot/runtime/elements/webdriver/WebElementSupplier.java
Java
apache-2.0
955
/* * Copyright 2014 Steve Jones. 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 "license" file accompanying this ...
sjones4/you-are-sdk
src/main/java/com/github/sjones4/youcan/youtoken/model/transform/GetImpersonationTokenRequestMarshaller.java
Java
apache-2.0
2,138
package me.chanjar.weixin.cp.bean.message; import com.google.gson.annotations.SerializedName; import lombok.Data; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; import java.io.Serializable; import java.util.List; /** * 应用消息发送统计信息. * * @author <a href="https://github.com/binarywang">Binary Wang</a> * @dat...
Wechat-Group/WxJava
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendStatistics.java
Java
apache-2.0
1,133
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.stb; import java.nio.*; import org.lwjgl.*; import org.lwjgl.system.*; import static org.lwjgl.system.MemoryUtil.*; import static org.lwjgl.system.MemoryStack.*; /...
VirtualGamer/SnowEngine
Dependencies/stb/src/org/lwjgl/stb/STBTTAlignedQuad.java
Java
apache-2.0
10,764
package com.smartlogic; import org.apache.jena.ext.com.google.common.base.Preconditions; import org.apache.jena.ext.com.google.common.base.Strings; import org.apache.jena.query.Dataset; import org.apache.jena.rdf.model.Model; import org.apache.jena.rdf.model.ModelFactory; import org.apache.jena.riot.RDFDataMgr; import...
Smartlogic-Semaphore-Limited/Java-APIs
Semaphore-OE-Batch-Tools/src/main/java/com/smartlogic/ModelLoader.java
Java
apache-2.0
3,924
/** * Copyright 2013 SmartBear Software, 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 applicab...
mayuranchalia/swagger4j
src/main/java/com/smartbear/swagger4j/Swagger.java
Java
apache-2.0
4,617
/** * */ package exercises.net; import java.net.*; import java.io.*; /** * @author gongzhihui * */ public class DailyAdviceServer { private String[] adviceList = { "Take smaller bites", // 0 "Go for the tight jeans. No they do not make you look fat", // 1 "One word: inappropriate", // 2 ...
alexhilton/miscellaneous
java/Exercises/src/exercises/net/DailyAdviceServer.java
Java
apache-2.0
1,174
/* * Copyright (c) 2014. William Mora * * 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...
ZephyrVentum/FlappySpinner
core/src/com/zephyr/ventum/interfaces/GameEventListener.java
Java
apache-2.0
1,872
/* * Copyright 2011 Inaiat H. Moraes. * * 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 l...
inaiat/jqplot4java
src/main/java/br/com/digilabs/jqplot/elements/Line.java
Java
apache-2.0
2,334
/* * 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 * d...
OSEHRA/ISAAC
komet/semantic-view/src/main/java/sh/isaac/komet/gui/semanticViewer/cells/AttachedDataCellFactory.java
Java
apache-2.0
2,529
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
camunda/camunda-bpm-assert
core/src/test/java/org/camunda/bpm/engine/test/assertions/bpmn/JobAssertHasExceptionMessageTest.java
Java
apache-2.0
2,782
/* Derby - Class org.apache.derby.iapi.types.XML Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apach...
trejkaz/derby
java/engine/org/apache/derby/iapi/types/XML.java
Java
apache-2.0
37,739
package com.lamfire.hydra.sample.gateway; import com.lamfire.hydra.*; import com.lamfire.hydra.HydraDestination; import com.lamfire.utils.StringUtils; public class GatewayServer { static void usage(){ System.out.println("com.lamfire.nkit.sample.ConnectionGateway [host] [port] [bind|connect]"); } p...
lamfire/hydra
src/test/java/com/lamfire/hydra/sample/gateway/GatewayServer.java
Java
apache-2.0
1,091
/******************************************************************************* * Copyright 2007-2013 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:/...
x-meta/xworker
xworker_core/src/main/java/xworker/lang/actions/thing/ThingIterator.java
Java
apache-2.0
3,728
package eu.davidea.samples.flexibleadapter.models; /** * Model item for ItemHolder. * * @author Davide Steduto * @since 19/10/2016 */ public class ItemModel extends AbstractModel { public ItemModel(String id) { super(id); } }
davideas/FlexibleAdapter
flexible-adapter-app/src/main/java/eu/davidea/samples/flexibleadapter/models/ItemModel.java
Java
apache-2.0
249
package com.me.ui.view.view; import android.content.Context; import android.graphics.Canvas; import android.graphics.drawable.Drawable; import android.support.v7.widget.RecyclerView; import android.view.View; import com.me.ui.R; /** * Simple RecyclerView Divider * Created by tangqi on 9/16/15. */ public class Re...
meclub/MeUI
app/src/main/java/com/me/ui/zhihu/view/view/RecyclerViewItemDecoration.java
Java
apache-2.0
1,252
package org.ansj.dic; import java.util.HashMap; import java.util.List; import java.util.Map.Entry; import org.ansj.app.crf.SplitWord; import org.ansj.domain.Nature; import org.ansj.domain.NewWord; import org.ansj.domain.TermNatures; import org.ansj.recognition.arrimpl.AsianPersonRecognition; import org.ansj.recogniti...
shuodata/deeplearning4j
deeplearning4j-nlp-parent/deeplearning4j-nlp-chinese/src/main/java/org/ansj/dic/LearnTool.java
Java
apache-2.0
5,459
package com.reyansh.audio.audioplayer.free.NowPlaying; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; import android.view.ViewGroup; import com.reyansh.audio.audioplayer.free.Common; public clas...
reyanshmishra/Rey-MusicPlayer
app/src/main/java/com/reyansh/audio/audioplayer/free/NowPlaying/PlaylistPagerAdapter.java
Java
apache-2.0
1,769
/* * Copyright © 2013-2019 camunda services GmbH and various authors (info@camunda.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...
xasx/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/RestartProcessInstancesBatchConfigurationJsonConverter.java
Java
apache-2.0
3,459
package personal.leetcode; import personal.common.LNode; public class Test { public static void main(String[] args) { System.out.println(LNode.buildList(new int[] {1, 2, 3, 4, 5, 6, 7})); } }
PiValue/Practice
src/personal/leetcode/Test.java
Java
apache-2.0
210
/* * Copyright 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 "license" file ...
aws/aws-sdk-java-v2
services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/operations/ScanOperation.java
Java
apache-2.0
5,594
/* * Copyright 2011-2012 Brian Matthews * * 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 ...
bmatthews68/inmemdb-maven-plugin
src/main/java/com/btmatthews/maven/plugins/inmemdb/ldr/AbstractLoader.java
Java
apache-2.0
6,684
package com.hitsoysauce.designpattern.command; public class Invoker { private Command command; public Invoker(Command command) { this.command = command; } public void doInvokerAction() { command.execute(); } }
lpj1986/learn-javase
src/main/java/com/hitsoysauce/designpattern/command/Invoker.java
Java
apache-2.0
242
package org.bds.lang; import java.io.File; import java.io.IOException; import org.antlr.v4.runtime.tree.ParseTree; import org.bds.Config; import org.bds.compile.CompilerMessages; import org.bds.compile.CompilerMessage.MessageType; import org.bds.scope.Scope; /** * Include statement: Get source from another file */...
leepc12/BigDataScript
src/org/bds/lang/StatementInclude.java
Java
apache-2.0
3,584
/* * Copyright 2011 Jens Dietrich Licensed under the GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 * (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.gnu.org/licenses/agpl.html Unless required by applicable law * or agreed to in...
tectronics/gueryframework
src/tests/test/nz/ac/massey/cs/guery/softwareantipatterns/AbstractTest.java
Java
apache-2.0
5,133
/** * * 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 ...
Frank-Wu/stratosphere-streaming
flink-streaming-examples/src/main/java/org/apache/flink/streaming/examples/join/JoinTask.java
Java
apache-2.0
2,746
package net.katsuster.ememu.arm; import net.katsuster.ememu.generic.*; import net.katsuster.ememu.generic.core.*; import net.katsuster.ememu.generic.bus.*; /** * 2nd 割り込みコントローラ * * <p> * 参考: Versatile Application Baseboard for ARM926EJ-S User Guide * ARM DUI0225D * </p> */ public class SecondaryINTC extends Co...
katsuster/ememu
emu/src/net/katsuster/ememu/arm/SecondaryINTC.java
Java
apache-2.0
3,533
/* * $Id: $ * * Copyright 2012 Stoyan Rachev (stoyanr@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 * *...
stoyanr/Masterminder
mastermind/test/com/stoyanr/mastermind/MainTest.java
Java
apache-2.0
6,138
package com.mc.library.database.realm.wrapper; import io.realm.RealmObject; /** * Created by dinghui on 2016/10/24. */ public class RealmBoolean extends RealmObject { private boolean value; public RealmBoolean() { } public RealmBoolean(boolean value) { this.value = value; } public...
coder173025/MagicCube
library/src/main/java/com/mc/library/database/realm/wrapper/RealmBoolean.java
Java
apache-2.0
448
package org.csveed.api; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.io.IOException; import java.io.Reader; ...
robert-bor/CSVeed
src/test/java/org/csveed/api/CsvClientTest.java
Java
apache-2.0
13,637
/* * Copyright 2017 helloscala.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
helloscala/helloscala
hs-nosql/src/main/java/helloscala/nosql/cassandra/CassandraHelper.java
Java
apache-2.0
3,199
/* * Copyright 2015 Hannes Dorfmann. * * 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...
sockeqwe/mosby
mvp/src/main/java/com/hannesdorfmann/mosby3/mvp/delegate/ActivityMvpDelegateImpl.java
Java
apache-2.0
7,155
package ru.job4j; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** *Class of tests for 'Calculator.java'. * *@author mvorp *@since 16.07.2018 *@version 1 */ public class CalculatorTest { /** * Validation that 1.0 + 1.0 = 2.0 . */ @T...
marekvorp777/mvorp
chapter_001/src/test/java/ru/job4j/CalculatorTest.java
Java
apache-2.0
1,499
/* * Copyright (C) 2012 Zach Melamed * * Latest version available online at https://github.com/zach-m/jonix * Contact me at zach@tectonica.co.il * * 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 ...
aparod/jonix
jonix-common/src/main/java/com/tectonica/jonix/codelist/EpublicationTypes.java
Java
apache-2.0
11,935
package org.ovirt.engine.ui.uicommonweb.models.vms; import java.util.ArrayList; import java.util.List; import java.util.Objects; import org.ovirt.engine.core.common.businessentities.Snapshot; import org.ovirt.engine.ui.uicommonweb.models.EntityModel; import org.ovirt.engine.ui.uicommonweb.models.ListModel; import org...
OpenUniversity/ovirt-engine
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/SnapshotDetailModel.java
Java
apache-2.0
1,527
package com.google.codeu.chatme.common.view; import android.app.ProgressDialog; import android.support.v4.app.Fragment; import android.widget.Toast; public class BaseFragment extends Fragment implements BaseFragmentView { private ProgressDialog mProgressDialog; @Override public void showProgressDialog(...
ymittal/codeu_project_2017
android/app/src/main/java/com/google/codeu/chatme/common/view/BaseFragment.java
Java
apache-2.0
1,070
// Copyright 2015 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 applicable...
gawkermedia/googleads-java-lib
examples/dfp_axis/src/main/java/dfp/axis/v201508/proposallineitemservice/GetProposalLineItemsByStatement.java
Java
apache-2.0
3,753
package org.lumongo.ui.client.widgets.base; import com.google.gwt.dom.client.Style; import com.google.gwt.user.client.Window; import gwt.material.design.client.constants.Color; import gwt.material.design.client.constants.FooterType; import gwt.material.design.client.constants.IconType; import gwt.material.design.clien...
lumongo/lumongo
lumongo-ui/src/main/java/org/lumongo/ui/client/widgets/base/Footer.java
Java
apache-2.0
2,071