repo_name
stringlengths
5
108
path
stringlengths
6
333
size
stringlengths
1
6
content
stringlengths
4
977k
license
stringclasses
15 values
juleswhite/coursera-sustainable-apps
TestingLectures/app/src/main/java/testing/magnum/io/testingexample/LoginUtils.java
1844
package testing.magnum.io.testingexample; import android.content.Context; import android.location.Address; import android.location.Geocoder; import java.io.IOException; import java.util.List; import java.util.Locale; /** * Created by jules on 8/8/16. */ public class LoginUtils { /** * This method checks...
apache-2.0
terryhtran/macros
java/com/example/supertux/Macros/EntryFragment.java
3398
package com.example.supertux.Macros; import android.app.AlertDialog; import android.app.Fragment; import android.content.DialogInterface; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget....
apache-2.0
Noah-Kennedy/MathAndResearch
NewAck/src/objects/Term.java
964
package objects; public class Term /*implements Comparable<Term>*/{ private int m; private int n; private int val; //private int frequency; public Term(int m, int n){ this.setM(m); this.setN(n); //frequency = 0; } public int getM() { return m; } private void setM(int m) { ...
apache-2.0
baldimir/jbpm
jbpm-installer/src/test/java/org/jbpm/persistence/scripts/quartzmockentities/QrtzPausedTriggerGrps.java
1376
/* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
apache-2.0
ethereumproject/etherjar
etherjar-tx/src/main/java/io/emeraldpay/etherjar/tx/Signature.java
3663
/* * Copyright (c) 2021 EmeraldPay Inc, All Rights Reserved. * Copyright (c) 2016-2019 Igor Artamonov, 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 * * ...
apache-2.0
gbif/parsers
src/test/java/org/gbif/common/parsers/date/ThreeTenNumericalDateParserTest.java
10688
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
apache-2.0
thescouser89/pnc
mapper/src/main/java/org/jboss/pnc/mapper/api/EntityMapper.java
1989
/** * JBoss, Home of Professional Open Source. * Copyright 2014-2020 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...
apache-2.0
shadyeltobgy/wcm-io-caconfig
compat/src/main/java/io/wcm/config/spi/helpers/AbstractParameterProvider.java
2448
/* * #%L * wcm.io * %% * Copyright (C) 2016 wcm.io * %% * 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...
apache-2.0
fuliang/leetcode
src/UniquePaths.java
556
/** * Created by fuliang on 2015/4/22. */ public class UniquePaths { public int uniquePaths(int m, int n) { int[][] nums = new int[m][n]; for (int i = 0; i < nums.length; i++) { nums[i][0] = 1; } for (int j = 0; j < nums[0].length; j++) { nums[0]...
apache-2.0
vjanmey/EpicMudfia
com/planet_ink/coffee_mud/Locales/StdMaze.java
4718
package com.planet_ink.coffee_mud.Locales; 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.planet_ink...
apache-2.0
cinchapi/accent4j
src/main/java/com/cinchapi/common/concurrent/ExecutorRaceService.java
7355
/* * Copyright (c) 2013-2019 Cinchapi 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...
apache-2.0
hazendaz/assertj-core
src/main/java/org/assertj/core/util/introspection/Introspection.java
6316
/* * 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 t...
apache-2.0
orcchg/RxMusic
app/src/main/java/com/orcchg/dev/maxa/rxmusic/data/injection/local/music/artist/ArtistMigrationModule.java
142
package com.orcchg.dev.maxa.rxmusic.data.injection.local.music.artist; import dagger.Module; @Module public class ArtistMigrationModule { }
apache-2.0
sonatype/maven-demo
maven-compat/src/main/java/org/apache/maven/artifact/resolver/WarningResolutionListener.java
2441
package org.apache.maven.artifact.resolver; /* * 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 ...
apache-2.0
Orange-OpenSource/matos-profiles
matos-android/src/main/java/android/util/SparseArray.java
2012
package android.util; /* * #%L * Matos * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2010 - 2014 Orange SA * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
apache-2.0
maheshraju-Huawei/actn
apps/pcep-api/src/test/java/org/onosproject/pcep/pcepio/protocol/PcepReportMsgTest.java
76890
/* * Copyright 2015-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...
apache-2.0
equella/Equella
Source/Plugins/Core/com.equella.serverbase/src/com/tle/hibernate/dialect/LongNStringType.java
1324
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0, (the "License"); you ma...
apache-2.0
hanahmily/sky-walking
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/data/Operation.java
1257
/* * 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 ...
apache-2.0
kikoso/Event-Bus-Architecture
app/src/main/java/com/enrique/eventbusarchitecture/secondfragment/SecondFragment.java
601
package com.enrique.eventbusarchitecture.secondfragment; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.enrique.eventbusarchitecture.R; import butterknife.ButterKnife; public class SecondFragment extends ...
apache-2.0
leafclick/intellij-community
platform/vcs-log/impl/src/com/intellij/vcs/log/ui/actions/GoToHashOrRefAction.java
2623
/* * Copyright 2000-2013 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...
apache-2.0
vzagnitko/BluetoothMusicServer
src/main/java/ua/com/lsd25/config/FacebookConfig.java
650
package ua.com.lsd25.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.social.facebook.api.Facebook; import org.springframework.social.facebook.api.impl.FacebookT...
apache-2.0
dprguiuc/Cassandra-Wasef
src/java/org/apache/cassandra/hadoop/pig/AbstractCassandraStorage.java
31146
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
apache-2.0
ZHANGLONG678/springmvc
src/main/java/com/cetc/TokenInterceptor.java
5596
package com.cetc; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.util.Date; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import o...
apache-2.0
simtse/CatholicJourney
app/src/main/java/org/sfx/catholicjourney/core/utils/TextUtility.java
901
package org.sfx.catholicjourney.core.utils; import android.content.res.ColorStateList; import android.text.TextUtils; import android.view.View; import android.widget.TextView; /** * Created by simonadmin on 2015-03-18. */ public class TextUtility { /** * Set the TextView text. If text is null/empty, hide textvi...
apache-2.0
pokyno/Webtechnologie
Webtechnologie_Opdracht1/src/nl/pietervanberkel/util/ServletListener.java
504
package nl.pietervanberkel.util; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import javax.servlet.annotation.WebListener; import nl.pietervanberkel.model.Model; @WebListener public class ServletListener implements ServletContextListener{ @Override public void conte...
apache-2.0
misterflud/aoleynikov
chapter_001/src/main/java/ru/job4j/loops/Factorial.java
343
package ru.job4j.loops; /**Counting factorial. *@author Anton Oleynikov *@version 1 */ public class Factorial { /** *@param max max *@return count count */ public int fac(int max) { int count = 1; for (int i = 2; i <= max; i++) { count = count * i; } ...
apache-2.0
dbflute-test/dbflute-test-dbms-postgresql
src/main/java/org/docksidestage/postgresql/dbflute/cbean/cq/bs/BsProductStatusCQ.java
13406
package org.docksidestage.postgresql.dbflute.cbean.cq.bs; import java.util.Map; import org.dbflute.cbean.*; import org.dbflute.cbean.chelper.*; import org.dbflute.cbean.coption.*; import org.dbflute.cbean.cvalue.ConditionValue; import org.dbflute.cbean.sqlclause.SqlClause; import org.dbflute.exception.IllegalConditio...
apache-2.0
nafae/developer
modules/dfp_axis/src/main/java/com/google/api/ads/dfp/axis/v201306/CreativeSetError.java
4339
/** * CreativeSetError.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.dfp.axis.v201306; /** * Errors relating to creative sets & subclasses. */ public class CreativeSetError extends com.google.api.ads.dfp.a...
apache-2.0
BUPTAnderson/apache-hive-2.1.1-src
service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java
27525
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
apache-2.0
Buble1981/MyDroolsFork
drools-compiler/src/main/java/org/drools/compiler/reteoo/compiled/ObjectTypeNodeCompiler.java
7672
package org.drools.compiler.reteoo.compiled; import org.drools.core.base.ClassObjectType; import org.drools.core.base.ValueType; import org.drools.compiler.compiler.PackageBuilder; import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.lang.descr.PackageDescr; import org.drools.core.reteoo.Obj...
apache-2.0
cloudfoundry/cf-java-client
cloudfoundry-client/src/test/java/org/cloudfoundry/client/v2/routemappings/GetRouteMappingRequestTest.java
1059
/* * Copyright 2013-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
apache-2.0
hwxiasn/archetypes
ygb/ygb-web/src/main/java/com/qingbo/ginkgo/ygb/web/pojo/BrokerAdd.java
954
package com.qingbo.ginkgo.ygb.web.pojo; import java.io.Serializable; public class BrokerAdd implements Serializable{ private static final long serialVersionUID = -6153623054869466896L; //营销机构userId private Long marketingUserId; private String customerNum; private String userName; private Strin...
apache-2.0
Praveen2112/presto
core/trino-main/src/test/java/io/trino/operator/scalar/BenchmarkArrayFilter.java
10904
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
apache-2.0
Daniel-Dos/Java-Design-Patterns
src/StructuralPatterns/ProxyPatterns/ProxyClasses/Proxy.java
448
package StructuralPatterns.ProxyPatterns.ProxyClasses; import StructuralPatterns.ProxyPatterns.OriginalClasses.ConcreteSubject; import StructuralPatterns.ProxyPatterns.OriginalClasses.Subject; public class Proxy extends Subject { ConcreteSubject cs; @Override public void doSomeWork() { System.out.println("Proxy...
apache-2.0
alexcaisenchuan/FunWeibo
src/com/alex/common/model/GeoPos.java
1134
package com.alex.common.model; import com.baidu.platform.comapi.basestruct.GeoPoint; /** * 地理位置的重新封装 * @author caisenchuan */ public class GeoPos extends GeoPoint{ /*-------------------------- * 常量 *-------------------------*/ /*-------------------------- * 自定义类型 *---------------------...
apache-2.0
lesaint/experimenting-annotation-processing
experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation2/Class_039.java
145
package fr.javatronic.blog.massive.annotation2; import fr.javatronic.blog.processor.Annotation_002; @Annotation_002 public class Class_039 { }
apache-2.0
rfellows/pentaho-kettle
engine/src/org/pentaho/di/trans/steps/userdefinedjavaclass/TransformClassBase.java
20128
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (th...
apache-2.0
onyxbits/raccoon4
src/main/java/de/onyxbits/raccoon/appmgr/MyAppsViewBuilder.java
7560
/* * Copyright 2015 Patrick Ahlbrecht * * 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 ...
apache-2.0
dx-pbuckley/vavr
vavr/src/test/java/io/vavr/collection/euler/Euler36Test.java
1790
/* __ __ __ __ __ ___ * \ \ / / \ \ / / __/ * \ \/ / /\ \ \/ / / * \____/__/ \__\____/__/.ɪᴏ * ᶜᵒᵖʸʳᶦᵍʰᵗ ᵇʸ ᵛᵃᵛʳ ⁻ ˡᶦᶜᵉⁿˢᵉᵈ ᵘⁿᵈᵉʳ ᵗʰᵉ ᵃᵖᵃᶜʰᵉ ˡᶦᶜᵉⁿˢᵉ ᵛᵉʳˢᶦᵒⁿ ᵗʷᵒ ᵈᵒᵗ ᶻᵉʳᵒ */ package io.vavr.collect...
apache-2.0
pjworkspace/wscs
wscs-service-provider/src/main/java/com/xxx/market/service/provider/PromotionServiceImpl.java
13513
package com.xxx.market.service.provider; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.alibaba.fastjson.JSONArray; import com.alibaba.fas...
apache-2.0
mapr/hbase
hbase-server/src/main/java/org/apache/hadoop/hbase/procedure/ProcedureMember.java
9277
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
apache-2.0
strengthandwill/collage-lwp
src/pohkahkong/livewallpaper/collage/StartDialog.java
2776
package pohkahkong.livewallpaper.collage; import android.app.Activity; import android.app.WallpaperManager; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.LinearLayout; import android.widget.Toas...
apache-2.0
liuyb02/async-http-client
client/src/test/java/org/asynchttpclient/NonAsciiContentLengthTest.java
3574
/* * Copyright (c) 2010-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/lic...
apache-2.0
RcExtract/Minecord
src/main/java/com/rcextract/minecord/event/server/ServerSetPermanentEvent.java
671
package com.rcextract.minecord.event.server; import org.bukkit.event.HandlerList; import com.rcextract.minecord.Server; public class ServerSetPermanentEvent extends ServerEvent { private static final HandlerList handlers = new HandlerList(); public static HandlerList getHandlerList() { return handlers; } priv...
apache-2.0
gzsombor/ranger
security-admin/src/main/java/org/apache/ranger/patch/PatchMigration_J10002.java
18542
/* * 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 ...
apache-2.0
matobet/moVirt
moVirt/src/main/java/org/ovirt/mobile/movirt/ui/mvp/FinishableView.java
114
package org.ovirt.mobile.movirt.ui.mvp; public interface FinishableView extends BaseView { void finish(); }
apache-2.0
bernhardhuber/netbeansplugins
nb-policy-support/src/org/netbeans/modules/policysupport/PolicyEditorKit.java
1443
/* * PolicyEditorKit.java * * Created on October 20, 2005, 5:14 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package org.netbeans.modules.policysupport; import javax.swing.text.Document; import org.netbeans.editor.Syntax; import org.netb...
apache-2.0
mdanielwork/intellij-community
platform/lang-impl/src/com/intellij/codeInspection/ui/actions/ExportHTMLAction.java
12805
// Copyright 2000-2017 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.codeInspection.ui.actions; import com.intellij.application.options.CodeStyle; import com.intellij.codeEditor.printing.ExportToHTMLSettings; import com.intel...
apache-2.0
SkyCrawl/pikater-vaadin
src/org/pikater/web/PikaterWebLogger.java
857
package org.pikater.web; import java.util.logging.Level; import java.util.logging.Logger; import org.pikater.shared.logging.GeneralPikaterLogger; import org.pikater.shared.logging.IPikaterLogger; /** * Special logger wrapper to be used by the web application. * * @author SkyCrawl */ public class PikaterWebLogger...
apache-2.0
littlezhou/hadoop
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/pipeline/TestPipelineClose.java
8956
/* * 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...
apache-2.0
vjanmey/EpicMudfia
com/planet_ink/coffee_mud/WebMacros/QuestMaker.java
32575
package com.planet_ink.coffee_mud.WebMacros; import com.planet_ink.miniweb.interfaces.*; 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.core.exceptions.*; import com.planet_ink.coffee_mud...
apache-2.0
openknowledge/jaxrs-versioning
jaxrs-versioning/src/main/java/de/openknowledge/jaxrs/versioning/conversion/Version.java
1612
/* * Copyright (C) open knowledge GmbH * * 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 ...
apache-2.0
ohac/sha1coinj
core/src/main/java/com/google/sha1coin/core/AbstractWalletEventListener.java
1767
/** * Copyright 2011 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 ...
apache-2.0
OkieOth/othCache
memcachedCacheImpl/src/main/java/de/othsoft/cache/memcached/CacheImpl.java
18579
/* 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 use this ...
apache-2.0
mbezjak/vhdllab
vhdllab-common/src/main/java/hr/fer/zemris/vhdllab/entity/ClientLog.java
2807
/******************************************************************************* * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with th...
apache-2.0
kartaa/AsyncJobProcessor
src/main/java/org/ajp/server/job/Job.java
506
package org.ajp.server.job; import java.util.concurrent.Callable; import org.ajp.server.job.JobResult.JobResultStatus; import org.ajp.server.model.JobRequest; public class Job implements Callable<JobResult> { private JobRequest jobRequest = null; public Job(final JobRequest jreq) { this.jobRequest = jreq; } ...
apache-2.0
ajordens/clouddriver
clouddriver-cloudfoundry/src/main/java/com/netflix/spinnaker/clouddriver/cloudfoundry/client/Routes.java
8900
/* * Copyright 2018 Pivotal, 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...
apache-2.0
googleapis/java-datalabeling
proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java
3972
/* * 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 ...
apache-2.0
toby1984/j2048
src/main/java/de/codesourcery/j2048/IInputProvider.java
1279
/** * Copyright 2015 Tobias Gierke <tobias.gierke@code-sourcery.de> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
apache-2.0
yardstick-benchmarks/yardstick-spark
src/main/java/org/yardstickframework/spark/model/Person.java
4426
/* * 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 ...
apache-2.0
gdefias/StudyJava
InitJava/base/src/main/java/Thread/Concurrent/TestCopyOnWriteArraySet.java
234
package Thread.Concurrent; /** * Created by Defias on 2017/8/27. * * CopyOnWriteArraySet * * 基于CopyOnWriteArrayList 的实现 * */ import java.util.concurrent.CopyOnWriteArraySet; public class TestCopyOnWriteArraySet { }
apache-2.0
JacobASeverson/pac4j
pac4j-cas/src/test/java/org/pac4j/cas/client/CasProxyReceptorTests.java
2771
package org.pac4j.cas.client; import org.junit.Test; import org.pac4j.core.context.MockWebContext; import org.pac4j.core.exception.HttpAction; import org.pac4j.core.util.TestsConstants; import org.pac4j.core.util.TestsHelper; import static org.junit.Assert.*; /** * This class tests the {@link CasProxyReceptor} clas...
apache-2.0
jesg/selenium-grid-demo
src/test/java/jesg/SeleniumGridTest.java
1717
package jesg; import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; import org.openqa.selenium.Capabilities; import org.openqa.selenium.HasCapabilities; import org.openqa.selenium.WebDriver; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.Remote...
apache-2.0
binarytemple/mybatis-all-syncing-test
src/main/java/org/apache/ibatis/builder/MapperBuilderAssistant.java
18210
/* * Copyright 2009-2012 The MyBatis 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 requ...
apache-2.0
simpher/FutureStrategy
src/com/future/panels/PanelFactory.java
298
package com.future.panels; import javax.swing.JPanel; public class PanelFactory { public static JPanel createPanel(String name) { JPanel panel; if(name.equals("SettingPanel")) { panel=new SettingPanel(); }else { panel=new MainPanel(); } return panel; } }
apache-2.0
romankagan/DDBWorkbench
platform/platform-api/src/com/intellij/util/Url.java
785
package com.intellij.util; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; // We don't use Java URI due to problem — http://cns-etuat-2.localnet.englishtown.com/school/e12/#school/45383/201/221/382?c=countrycode=cc|culturecode=en-us|partnercode=mkge // it is illegal URI (fragment ...
apache-2.0
SAP/cloud-odata-java
odata-api/src/main/java/com/sap/core/odata/api/edm/EdmLiteralKind.java
959
/******************************************************************************* * Copyright 2013 SAP 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/l...
apache-2.0
barbarum/barbarum-tutorial
src/main/java/com/barbarum/tutorial/code/array/FindLongestBinarySequence.java
1761
package com.barbarum.tutorial.code.array; import com.barbarum.tutorial.util.PrintUtil; public class FindLongestBinarySequence { public static int find(int[] nums) { int[] ones = new int[nums.length]; countLeftOnes(nums, ones); countRightOnes(nums, ones); return findMaximum(ones)...
apache-2.0
domaframework/doma
doma-processor/src/main/java/org/seasar/doma/internal/apt/meta/parameter/OptionalIntListParameterMeta.java
554
package org.seasar.doma.internal.apt.meta.parameter; import static org.seasar.doma.internal.util.AssertionUtil.assertNotNull; public class OptionalIntListParameterMeta implements CallableSqlParameterMeta { private final String name; public OptionalIntListParameterMeta(String name) { assertNotNull(name); ...
apache-2.0
interactivespaces/interactivespaces-rosjava
rosjava/src/main/java/org/ros/concurrent/CancellableLoop.java
2359
/* * Copyright (C) 2011 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 ...
apache-2.0
zapper59/RangerHale---Space-Adventure
src/org/projectiles/AirBall.java
2909
package org.projectiles; import static java.awt.Color.red; import static java.lang.Math.*; import java.awt.image.BufferedImage; import static java.lang.System.*; import org.rooms.*; import org.resources.AudioPack; import org.resources.Collisions; import org.resources.Element; import org.resources.ImagePack; import or...
apache-2.0
AlexanderSopov/datastruktur
src/lab2/Lab2b.java
2889
package lab2; import java.util.PriorityQueue; public class Lab2b { private static class Vector implements Comparable{ public double x, y, d; public DLList.Node node; public Vector(double x, double y){ this(x,y,null,100); } public Vector(double x, double y, DLList.Node n, double d){ this.x = x; ...
apache-2.0
SUPERCILEX/easypermissions
easypermissions/src/main/java/pub/devrel/easypermissions/helper/ActivityPermissionHelper.java
1014
package pub.devrel.easypermissions.helper; import android.app.Activity; import android.app.FragmentManager; import android.content.Context; import android.support.annotation.NonNull; import android.support.v4.app.ActivityCompat; /** * Permissions helper for {@link Activity}. */ class ActivityPermissionHelper extend...
apache-2.0
chenxyzy/cms
src/com/lerx/integral/rule/dao/imp/IntegralRuleDaoImp.java
3349
package com.lerx.integral.rule.dao.imp; import java.util.List; import org.springframework.dao.DataAccessException; import org.springframework.orm.hibernate3.support.HibernateDaoSupport; import com.lerx.integral.rule.dao.IIntegralRuleDao; import com.lerx.integral.rule.vo.IntegralRule; public class IntegralRuleDaoImp...
apache-2.0
aharpour/user-management-dashboard
cms/src/main/java/nl/openweb/hippo/umd/webservices/HippoAuthenticationRequestHandler.java
4730
/* * Copyright 2014 Hippo B.V. (http://www.onehippo.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 ap...
apache-2.0
rwinch/spring-security-oauth
spring-security-oauth2/src/main/java/org/springframework/security/oauth2/config/ClientDetailsServiceBeanDefinitionParser.java
3600
/* * Copyright 2008-2009 Web Cohesion * * 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...
apache-2.0
remibergsma/cosmic
cosmic-core/engine/schema/src/main/java/com/cloud/dc/dao/VlanDaoImpl.java
15800
package com.cloud.dc.dao; import com.cloud.dc.AccountVlanMapVO; import com.cloud.dc.DomainVlanMapVO; import com.cloud.dc.PodVlanMapVO; import com.cloud.dc.Vlan; import com.cloud.dc.Vlan.VlanType; import com.cloud.dc.VlanVO; import com.cloud.network.dao.IPAddressDao; import com.cloud.utils.Pair; import com.cloud.utils....
apache-2.0
SkyZhang007/LazyCat
gankio/src/main/java/com/sky/gank/data/douban/RemoteDoubanMovieDataSource.java
1499
package com.sky.gank.data.douban; import com.sky.gank.net.HttpUtil; import com.sky.gank.net.RetrofitService; import com.sky.gank.net.Urls; import io.reactivex.Observable; /** * 类名称: * 类功能: * 类作者:Sky * 类日期:2018/12/31 0031. **/ public class RemoteDoubanMovieDataSource implements DoubanMovieDataSource{ public...
apache-2.0
c340c340/mybatis-3.2.22
src/test/java/com/ibatis/sqlmap/ComplexTypeTest.java
1486
/* * Copyright 2009-2012 The MyBatis 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 a...
apache-2.0
orangemile/chronicle-replay
src/app/java/com/orangemile/replay/ReplayHandler.java
283
package com.orangemile.replay; import com.higherfrequencytrading.chronicle.Excerpt; public interface ReplayHandler<T> { public T parse(int id, Excerpt e); public long getTime(int id, T t); public void replay(int id, T t, long realTime, long relativeTime); }
apache-2.0
strapdata/elassandra5-rc
core/src/main/java/org/elasticsearch/search/profile/query/CollectorResult.java
7878
/* * 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...
apache-2.0
codyer/CleanFramework
app/src/demo/java/com/cody/app/business/launch/CharacterView.java
3979
package com.cody.app.business.launch; import android.animation.AnimatorSet; import android.animation.ValueAnimator; import android.content.Context; import android.support.annotation.Nullable; import android.util.AttributeSet; import android.view.animation.AccelerateDecelerateInterpolator; import java.util.ArrayList; ...
apache-2.0
griffon-plugins/griffon-domain-plugin
subprojects/griffon-domain-core/src/main/java/org/codehaus/griffon/runtime/domain/AbstractGriffonDomainClassProperty.java
1607
/* * Copyright 2014-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 app...
apache-2.0
alexduch/grobid
grobid-core/src/main/java/org/grobid/core/utilities/TextUtilities.java
47103
package org.grobid.core.utilities; import org.apache.commons.lang3.StringUtils; import org.grobid.core.analyzers.GrobidAnalyzer; import org.grobid.core.exceptions.GrobidException; import org.grobid.core.layout.LayoutToken; import org.grobid.core.lexicon.Lexicon; import java.io.BufferedReader; import java.io.IOExcepti...
apache-2.0
xiaofei-dev/SuspendNotification
app/src/main/java/com/github/xiaofei_dev/suspensionnotification/util/bean/HomeData.java
480
package com.github.xiaofei_dev.suspensionnotification.util.bean; public class HomeData { private boolean isClickHome; private boolean isClickMenu; public boolean isClickHome() { return isClickHome; } public void setClickHome(boolean clickHome) { isClickHome = clickHome; } ...
apache-2.0
whitesource/fs-agent
test_input/ksa/ksa-web-root/ksa-system-web/src/main/java/com/ksa/system/initialize/convert/UserConverter.java
3005
package com.ksa.system.initialize.convert; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.ibatis.session.SqlSession; import com.ksa.context.ServiceContextUtils; import com.ksa.dao.security.RoleDao; import com.ksa.model.ModelUtils; import com.ksa.model.security.Role; import c...
apache-2.0
wso2/wso2-httpcore-nio
modules/httpcore-nio/src/test/java/org/apache/http/impl/nio/TestDefaultNHttpClientConnection.java
30286
/* * ==================================================================== * 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 ...
apache-2.0
sinoz/nds-api
src/main/java/nds_api/fs/btx0/BasicTextureReader.java
828
package nds_api.fs.btx0; import nds_api.RomMapping; import java.io.IOException; /** * * Reads data to translate to a {@link BasicTexture}. * * @author Whis * */ public final class BasicTextureReader { /** * The expected BTX0 file extension. */ private static final String BTX0_EXT = "BTX0"; ...
apache-2.0
BioStar2/BioStar2Android
BioStar2Android/BioStar2Client/src/main/java/com/supremainc/biostar2/adapter/base/BasePermissionAdapter.java
6611
/* * Copyright 2015 Suprema(biostar2@suprema.co.kr) * * 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 b...
apache-2.0
jiangerji/iam007-mobile-android
src/cn/iam007/app/mall/TestMainActivity.java
10705
package cn.iam007.app.mall; import java.util.ArrayList; import android.annotation.TargetApi; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.support.v4.view.ViewPager; import android.support.v4.view.ViewPager.OnPageChangeListener; import android.view.View; i...
apache-2.0
romawkad/java_pft
sandbox/src/test/java/ru/stqa/pft/sandbox/PointTests.java
947
package ru.stqa.pft.sandbox; import org.testng.Assert; import org.testng.annotations.Test; import ru.stqa.rft.sandbox.Point; /** * Created by RomanovaD on 15.05.2017. */ public class PointTests { //Нулевые координаты @Test public void testDistanceZeroCoordinates(){ Point p1 = new Point(0,0); ...
apache-2.0
nafae/developer
modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201406/cm/CampaignSharedSetErrorReason.java
1010
package com.google.api.ads.adwords.jaxws.v201406.cm; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for CampaignSharedSetError.Reason. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;...
apache-2.0
lsimons/phloc-schematron-standalone
phloc-schematron/jing/src/main/java/com/thaiopensource/relaxng/parse/Parseable.java
505
package com.thaiopensource.relaxng.parse; public interface Parseable <P, NC, L, EA, CL extends CommentList <L>, A extends Annotations <L, EA, CL>> extends SubParser <P, NC, L, EA, CL, A> { P parse (SchemaBuilder ...
apache-2.0
paplorinc/intellij-community
platform/core-api/src/com/intellij/psi/util/CachedValue.java
6496
/* * Copyright 2000-2009 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...
apache-2.0
kexinrong/macrobase
lib/src/main/java/edu/stanford/futuredata/macrobase/analysis/classify/stats/LinearInterpolator.java
1539
package edu.stanford.futuredata.macrobase.analysis.classify.stats; import edu.stanford.futuredata.macrobase.util.MacrobaseInternalError; /** * Performs linear interpolation in a lazy manner: interpolation does not actually * occur until an evaluation is requested. */ public class LinearInterpolator { private d...
apache-2.0
nafae/developer
modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201403/CreativePlaceholder.java
7288
package com.google.api.ads.dfp.jaxws.v201403; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * * A {@code CreativePlaceholder} describes a slot that a cr...
apache-2.0
mindcrime/AISandbox
blackboard/src/main/java/org/fogbeam/experimental/blackboard/concurrencystuff/jtp/hyde/chapter11/Squish.java
2409
package org.fogbeam.experimental.blackboard.concurrencystuff.jtp.hyde.chapter11; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.geom.Ellipse2D; import java.awt.image.BufferedImage; import javax.swing.JComponent; public cl...
apache-2.0
cap-framework/cap-http
src/main/java/capframework/http/constant/Regular.java
1095
//region Copyright /*Copyright 2015-2016 尚尔路(sel8616@gmail.com/philshang@163.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 ...
apache-2.0
leafclick/intellij-community
xml/xml-analysis-impl/src/com/intellij/xml/util/CheckTagEmptyBodyInspection.java
3650
/* * Copyright 2000-2015 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...
apache-2.0
suood/muses-mainproject
muses-manage-mapper/src/main/java/com/muses/data/model/AdminDataRecordExample.java
23831
package com.muses.data.model; import java.util.ArrayList; import java.util.List; public class AdminDataRecordExample { /** * This field was generated by MyBatis Generator. * This field corresponds to the database table suood_admin * * @mbggenerated */ protected String orderByClause; ...
apache-2.0