repo_name
stringlengths
5
108
path
stringlengths
6
333
size
stringlengths
1
6
content
stringlengths
4
977k
license
stringclasses
15 values
googlesamples/android-testdpc
app/src/main/java/com/afwsamples/testdpc/policy/systemupdatepolicy/SystemUpdatePolicyFragment.java
15547
/* * 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...
apache-2.0
JavaUAM2016/PracticasOCA
Practica3/luzmx/JavaApp/src/mx/edu/uam/practica3/controles/ControlTelevision.java
3150
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package mx.edu.uam.practica3.controles; import mx.edu.uam.practica3.electroDomesticos.Television; /** * * @author invited */ publi...
apache-2.0
ifnul/ums-backend
is-lnu-converter/src/test/java/org/lnu/is/converter/specoffer/type/SpecOfferTypeConverterTest.java
3632
package org.lnu.is.converter.specoffer.type; import static org.junit.Assert.assertEquals; import java.util.Arrays; import java.util.List; import org.junit.Test; import org.lnu.is.domain.specoffer.SpecOfferType; import org.lnu.is.domain.timeperiod.TimePeriod; import org.lnu.is.resource.specoffer.type.SpecOfferTypeRes...
apache-2.0
martyanova/java_pft
addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/model/Persons.java
1043
package ru.stqa.pft.addressbook.model; import com.google.common.collect.ForwardingSet; import java.util.Collection; import java.util.HashSet; import java.util.List; import java.util.Set; /** * Created by Саша on 13.12.2016. */ public class Persons extends ForwardingSet<PersonData> { private Set<PersonData> de...
apache-2.0
lakshmiDRIP/DRIP
src/main/java/org/drip/service/template/OTCInstrumentBuilder.java
33137
package org.drip.service.template; /* * -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /*! * Copyright (C) 2017 Lakshmi Krishnamurthy * Copyright (C) 2016 Lakshmi Krishnamurthy * Copyright (C) 2015 Lakshmi Krishnamurthy * * This file is part of DRIP, a free-software/open-sourc...
apache-2.0
nuwand/carbon-apimgt
components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/KeyManagersApiService.java
733
package org.wso2.carbon.apimgt.rest.api.publisher.v1; import org.wso2.carbon.apimgt.rest.api.publisher.v1.*; import org.wso2.carbon.apimgt.rest.api.publisher.v1.dto.*; import org.apache.cxf.jaxrs.ext.MessageContext; import org.apache.cxf.jaxrs.ext.multipart.Attachment; import org.apache.cxf.jaxrs.ext.multipart.Multip...
apache-2.0
nitram509/decentral-authentication-playground
java/src/main/java/jose4j/asym/Jose4jVerifier.java
847
package jose4j.asym; import org.jose4j.jws.JsonWebSignature; import org.jose4j.lang.JoseException; import java.security.PublicKey; public class Jose4jVerifier { public static void main(String[] args) { String token = new Jose4jProvider().create(); try { new Jose4jVerifier().verify(token); } catc...
apache-2.0
tommyettinger/doughyo
src/main/java/vigna/fastutil/ints/AbstractIntList.java
19931
/* Generic definitions */ /* Assertions (useful to generate conditional code) */ /* Current type and class (and size, if applicable) */ /* Value methods */ /* Interfaces (keys) */ /* Interfaces (values) */ /* Abstract implementations (keys) */ /* Abstract implementations (values) */ /* Static containers (keys) */ /* St...
apache-2.0
deanriverson/griffon-javafx-plugin
src/main/org/codehaus/griffon/runtime/javafx/JavaFXGriffonControllerActionManager.java
1346
/* * Copyright 2008-2013 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
NVolcz/zaproxy
src/ch/csnc/extension/httpclient/SSLContextManager.java
16043
/* * This file is part of WebScarab, an Open Web Application Security * Project utility. For details, please see http://www.owasp.org/ * * Copyright (c) 2002 - 2004 Rogan Dawes * * Please note that this file was originally released under the * GNU General Public License as published by the Free Software Founda...
apache-2.0
akiskip/KoDeMat-Collaboration-Platform-Application
KoDeMat_TouchScreen/src/kodemat/touch/visu/editor/nifty/panels/ViewCube.java
12097
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package kodemat.touch.visu.editor.nifty.panels; import com.jme3.app.Application; import de.lessvoid.nifty.Nifty; import de.lessvoid.nifty.builder.EffectBuilder; import de.lessvoid.nifty.builder.ElementBuilder; ...
apache-2.0
zhoufan2013/TRIS_Platform
server/src/main/java/com/ai/tris/server/dao/interfaces/ICommonDao.java
433
package com.ai.tris.server.dao.interfaces; import com.ai.tris.server.orm.impl.ClientAppInfoBean; import java.util.List; /** * Common Database Access Object. * <p/> * Created by Sam on 2015/6/9. */ public interface ICommonDao { void querySomething(); /** * get all client app information from tris.cl...
apache-2.0
grasscrm/gdesigner
poem-jvm/src/java/org/b3mn/poem/handler/RatingHandler.java
2930
package org.b3mn.poem.handler; import java.util.Collection; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.b3mn.poem.Identity; import org.b3mn.poem.Persistance; import org.b3mn.poem.business.Model; import org.b3mn.poem.util.AccessRight; ...
apache-2.0
gravitee-io/graviteeio-access-management
gravitee-am-repository/gravitee-am-repository-tests/src/test/java/io/gravitee/am/repository/management/api/GroupRepositoryTest.java
13131
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.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 requ...
apache-2.0
arteam/metrics-jdbi3
src/test/java/com/github/arteam/jdbi3/strategies/AbstractStrategyTest.java
650
package com.github.arteam.jdbi3.strategies; import com.codahale.metrics.MetricRegistry; import org.jdbi.v3.core.statement.StatementContext; import org.junit.Before; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; public class AbstractStrategyTest { protected MetricRegistry regist...
apache-2.0
indraneelr/progbook
src/test/java/com/progbook/resource/AnswerResourceTest.java
4695
package com.progbook.resource; import com.fasterxml.jackson.core.JsonProcessingException; import com.ninja_squad.dbsetup.DbSetup; import com.ninja_squad.dbsetup.DbSetupTracker; import com.ninja_squad.dbsetup.destination.DataSourceDestination; import com.progbook.Application; import com.progbook.persistence.CommonDbOpe...
apache-2.0
GoogleCloudPlatform/jenkins-gcr-plugin
src/main/java/com/google/jenkins/plugins/containersecurity/client/ClientUtil.java
5295
/* * Copyright 2019 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 i...
apache-2.0
matobet/moVirt
moVirt/src/main/java/org/ovirt/mobile/movirt/util/Disposables.java
828
package org.ovirt.mobile.movirt.util; import java.util.ArrayList; import java.util.List; import io.reactivex.disposables.Disposable; public class Disposables { private final List<Disposable> disposables = new ArrayList<>(5); public Disposables add(Disposable disposable) { disposables.add(disposable...
apache-2.0
EvilMcJerkface/presto
presto-main/src/main/java/com/facebook/presto/execution/buffer/ArbitraryOutputBuffer.java
20308
/* * 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
MReichenbach/visitmeta
dataservice/src/main/java/de/hshannover/f4/trust/visitmeta/ifmap/PollResult.java
2331
/* * #%L * ===================================================== * _____ _ ____ _ _ _ _ * |_ _|_ __ _ _ ___| |_ / __ \| | | | ___ | | | | * | | | '__| | | / __| __|/ / _` | |_| |/ __|| |_| | * | | | | | |_| \__ \ |_| | (_| | _ |\__ \| _ | * |_| |_| \__,_|___/...
apache-2.0
gbecares/bdt
src/main/java/com/stratio/qa/utils/CassandraQueryUtils.java
4153
/* * Copyright (C) 2014 Stratio (http://stratio.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 app...
apache-2.0
bshp/midPoint
gui/admin-gui/src/main/java/com/evolveum/midpoint/web/boot/LdapSecurityConfig.java
3067
/* * Copyright (c) 2010-2017 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for details. */ package com.evolveum.midpoint.web.boot; import com.evolveum.midpoint.model.api.authentication.MidPointLdapAuthenticationProvider...
apache-2.0
apereo/cas
support/cas-server-support-events-redis/src/main/java/org/apereo/cas/support/events/redis/RedisCasEventRepository.java
4922
package org.apereo.cas.support.events.redis; import org.apereo.cas.redis.core.CasRedisTemplate; import org.apereo.cas.support.events.CasEventRepositoryFilter; import org.apereo.cas.support.events.dao.AbstractCasEventRepository; import org.apereo.cas.support.events.dao.CasEvent; import lombok.Getter; import lombok.ToS...
apache-2.0
dimagi/javarosa
javarosa/core/src/main/java/org/javarosa/core/model/instance/utils/FormLoadingUtils.java
1407
package org.javarosa.core.model.instance.utils; import org.javarosa.core.model.instance.FormInstance; import org.javarosa.core.model.instance.TreeElement; import org.javarosa.xml.ElementParser; import org.javarosa.xml.TreeElementParser; import org.javarosa.xml.util.InvalidStructureException; import org.javarosa.xml.ut...
apache-2.0
alphallc/connectbot
src/org/alphallc/sshit/util/Encryptor.java
6172
/* * sshIt: simple, powerful, open-source SSH client for Android * Copyright 2014 Alpha 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/LICE...
apache-2.0
zhongl/lab
benchmarker/src/test/java/com/github/zhongl/benchmarker/RandomOptionalFactoryTest.java
1903
package com.github.zhongl.benchmarker; import org.junit.Test; import java.util.concurrent.CountDownLatch; /** @author <a href="mailto:zhong.lunfu@gmail.com">zhongl<a> */ public class RandomOptionalFactoryTest { private final StatisticsCollector collector = new StatisticsCollector(); private final CountDownL...
apache-2.0
andrasigneczi/TravelOptimizer
DataCollector/src/test/QueueHandlers/JMSPublisherTest.java
1980
package QueueHandlers; import org.junit.Test; import javax.jms.JMSException; import java.io.IOException; import java.io.ObjectStreamException; import java.io.Serializable; import java.util.ArrayList; import static org.junit.Assert.*; /** * Created by Andras on 27/07/2016. */ public class JMSPubli...
apache-2.0
rlugojr/incubator-eagle
eagle-security/eagle-security-maprfs-auditlog/src/main/java/org/apache/eagle/security/auditlog/MapRFSAuditLogProcessorMain.java
6554
/* * * * 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 "L...
apache-2.0
inventiLT/inventi-wicket
inventi-wicket-resources/src/main/java/lt/inventi/apollo/wicket/theme/settings/ThemeSettings.java
1007
package lt.inventi.apollo.wicket.theme.settings; import lt.inventi.apollo.wicket.theme.ActiveSessionThemeProvider; import lt.inventi.apollo.wicket.theme.ActiveThemeProvider; import lt.inventi.apollo.wicket.theme.DefaultThemeRepository; import lt.inventi.apollo.wicket.theme.ITheme; import lt.inventi.apollo.wicket.theme...
apache-2.0
googleapis/java-contact-center-insights
samples/snippets/src/main/java/com/example/contactcenterinsights/CreateIssueModel.java
2347
/* * Copyright 2021 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...
apache-2.0
youngmonkeys/ezyfox
ezyfox-database/src/main/java/com/tvd12/ezyfox/database/service/EzyCrudService.java
181
package com.tvd12.ezyfox.database.service; public interface EzyCrudService<I,E> extends EzyCountSerivce, EzySaveService<E>, EzyFindService<I, E>, EzyDeleteService<I> { }
apache-2.0
weizh/geolocator-3.0
geolocator-3.0/src/Wordnet/SetUtil.java
3264
/** * * Copyright (c) 2012 - 2014 Carnegie Mellon University * 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 unde...
apache-2.0
TeamSirius/MaraudersMapMultiUser
app/src/main/java/com/tylerlubeck/maraudersmapmultiuser/Models/MyLocation.java
1160
package com.tylerlubeck.maraudersmapmultiuser.Models; /** * Created by Tyler on 4/16/2015. */ public class MyLocation { String building_name; int floor_number; int x_coordinate; int y_coordinate; String image_url; public MyLocation() {} public MyLocation(String buildingName, int floorNu...
apache-2.0
acbellini/Singularity
SingularityService/src/main/java/com/hubspot/singularity/resources/HistoryResource.java
8756
package com.hubspot.singularity.resources; import static com.hubspot.singularity.WebExceptions.checkBadRequest; import java.util.List; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; import ...
apache-2.0
aws/aws-sdk-java
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/ThemeVersion.java
16672
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
apache-2.0
gravitee-io/graviteeio-access-management
gravitee-am-gateway/gravitee-am-gateway-handler/gravitee-am-gateway-handler-common/src/main/java/io/gravitee/am/gateway/handler/common/vertx/web/handler/AuthenticationFlowContextHandler.java
3713
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.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 requ...
apache-2.0
amirakhmedov/ignite
modules/ml/src/main/java/org/apache/ignite/ml/tree/randomforest/RandomForestClassifierTrainer.java
4400
/* * 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
intel-hadoop/hbase-rhino
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionMergeTransaction.java
18314
/** * Copyright The Apache Software Foundation * * 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 Li...
apache-2.0
V119/spidersManager
src/com/sicdlib/dao/pyhtonDAO/imple/MOEDataDAO.java
690
package com.sicdlib.dao.pyhtonDAO.imple; import com.sicdlib.dao.IBaseDAO; import com.sicdlib.dao.pyhtonDAO.IMOEDataDAO; import com.sicdlib.dto.entity.MoeDataEntity; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; /** * Created by init on 2017/6/4. */ ...
apache-2.0
lesaint/experimenting-annotation-processing
experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_4430.java
151
package fr.javatronic.blog.massive.annotation1.sub1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_4430 { }
apache-2.0
spdx/tools
src/org/spdx/compare/SpdxSnippetComparer.java
9956
/** * Copyright (c) 2016 Source Auditor 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 appli...
apache-2.0
Praveen2112/presto
core/trino-main/src/main/java/io/trino/execution/AddColumnTask.java
5732
/* * 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
pac4j/pac4j
pac4j-cas/src/main/java/org/pac4j/cas/authorization/DefaultCasAuthorizationGenerator.java
1548
package org.pac4j.cas.authorization; import org.pac4j.cas.client.CasClient; import org.pac4j.core.authorization.generator.AuthorizationGenerator; import org.pac4j.core.context.WebContext; import org.pac4j.core.context.session.SessionStore; import org.pac4j.core.profile.UserProfile; import java.util.Optional; /** * ...
apache-2.0
zohar-mizrahi/flink
flink-libraries/flink-gelly/src/test/java/org/apache/flink/graph/library/metric/ChecksumHashCodeTest.java
1616
/* * 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
fredvos/meet
src/main/java/org/mokolo/meet/Sample.java
2296
package org.mokolo.meet; import java.text.SimpleDateFormat; import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.TimeZone; import lombok.Getter; import lombok.Setter; /** * Single sample from meter * */ public class Sample { @Getter @Setter private Long timestamp; @Get...
apache-2.0
calinrc/hdfs_wfx
java/wfx_launcher/src/main/java/org/cgc/wfx/Progress.java
790
/* * Progress.java file written and maintained by Calin Cocan * Created on: Oct 16, 2015 * * This work is free: you can redistribute it and/or modify it under the terms of Apache License Version 2.0 * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even th...
apache-2.0
baksoy/Sunshine2
app/src/main/java/com/baksoy/sunshine/data/WeatherProvider.java
14334
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
apache-2.0
BVier/Taskana
rest/taskana-rest-spring/src/test/java/pro/taskana/rest/ClassificationControllerIntTest.java
12241
package pro.taskana.rest; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.jupiter.api.Assertions.assertThrows; import java.io.IOException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api...
apache-2.0
orsjb/HappyBrackets
HappyBrackets/src/test/java/net/happybrackets/develop/CassetteTapeMachine.java
7101
package net.happybrackets.develop; import net.beadsproject.beads.data.Sample; import net.beadsproject.beads.data.SampleManager; import net.beadsproject.beads.ugens.*; import net.happybrackets.core.HBAction; import net.happybrackets.device.HB; import net.happybrackets.device.sensors.*; import net.happybrackets.device.s...
apache-2.0
webos21/xi
java/jcl/src/java/org/apache/harmony/security/provider/crypto/DSAKeyFactoryImpl.java
6772
/* * 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
triathematician/blaisemath
blaise-common/src/main/java/com/googlecode/blaisemath/primitive/Markers.java
17804
package com.googlecode.blaisemath.primitive; /*- * #%L * blaise-common * -- * Copyright (C) 2014 - 2021 Elisha Peterson * -- * 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
samskivert/robovm-samples
Tabster/src/main/java/org/robovm/samples/tabster/viewcontrollers/FourViewController.java
2319
/* * Copyright (C) 2013-2015 RoboVM AB * * 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 ...
apache-2.0
splunk/minecraft-app
shared-mc/src/main/java/com/splunk/sharedmc/loggable_events/LoggableEventType.java
389
package com.splunk.sharedmc.loggable_events; /** * Categories of loggable events. */ public enum LoggableEventType { PLAYER("PlayerEvent"), BLOCK("BlockEvent"), DEATH("DeathEvent"); private final String eventName; LoggableEventType(String eventName) { this.eventName = eventName; } ...
apache-2.0
gravitee-io/graviteeio-access-management
gravitee-am-management-api/gravitee-am-management-api-rest/src/main/java/io/gravitee/am/management/handlers/management/api/authentication/handler/CustomAuthenticationSuccessHandler.java
2923
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.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 requ...
apache-2.0
jentfoo/aws-sdk-java
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/RemoveTagsResult.java
2404
/* * Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
apache-2.0
hazendaz/assertj-core
src/test/java/org/assertj/core/api/classes/ClassAssert_hasDeclaredFields_Test.java
1264
/* * 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
Skullabs/kikaha
kikaha-modules/kikaha-cloud-aws-lambda/tests/kikaha/cloud/aws/lambda/AmazonLambdaRequestSerializationTest.java
699
package kikaha.cloud.aws.lambda; import kikaha.core.test.KikahaRunner; import kikaha.core.util.SystemResource; import org.junit.Test; import org.junit.runner.RunWith; import javax.inject.Inject; import static org.junit.Assert.assertNotNull; @RunWith(KikahaRunner.class) public class AmazonLambdaRequestSerializationT...
apache-2.0
bingoogolapple/J2EENote
EJB/EntityBean/src/cn/wh/bean/Person.java
1405
package cn.wh.bean; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="person") public class Per...
apache-2.0
vahpetr/microapp
geolocation/src/main/java/com/microexample/geolocation/GeolocationApplication.java
2396
package com.microexample.geolocation; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.*; import com.amazonaws.auth.AWSCredentialsProvider; import com.amazonaws.auth.EnvironmentVariableCredentialsProvi...
apache-2.0
ephemeralin/java-training
chapter_006/src/main/java/ru/job4j/sqlxmlxsltjdbc/util/package-info.java
192
/** * Package for utils in "Sql-xml-xslt-jdbc" task. * * @author Viacheslav Piliugin (mailto:ephemeralin@gmail.com) * @version $Id$ * @since 0.1 */ package ru.job4j.sqlxmlxsltjdbc.util;
apache-2.0
yan74/afplib
org.afplib/src/main/java/org/afplib/afplib/impl/BRGImpl.java
5195
/** */ package org.afplib.afplib.impl; import java.util.Collection; import org.afplib.afplib.AfplibPackage; import org.afplib.afplib.BRG; import org.afplib.base.Triplet; import org.afplib.base.impl.SFImpl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; ...
apache-2.0
yippeesoft/NotifyTools
beanutils/src/main/java/org/apache/commons/beanutils/LazyDynaClass.java
13983
/* * 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
skinzer/async-google-pubsub-client
src/test/java/com/spotify/google/cloud/pubsub/client/integration/ProgressMeter.java
3190
/* * Copyright (c) 2011-2015 Spotify AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
apache-2.0
alanfgates/hive
llap-common/src/java/org/apache/hadoop/hive/llap/metrics/ReadWriteLockMetrics.java
15607
/* * 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
pistolove/Lettcode
lettcode/src/leetcode/Counting_Bits.java
1193
package leetcode; /** * Given a non negative integer number num. For every numbers i in the range 0 ≤ * i ≤ num calculate the number of 1's in their binary representation and return * them as an array. * Example: * For num = 5 you should return [0,1,1,2,1,2]. * Follow up: * It is very easy to come up with a sol...
apache-2.0
logangorence/Aluminum
src/main/java/org/directcode/ide/core/Aluminum.java
2738
package org.directcode.ide.core; import lombok.Getter; import org.directcode.ide.api.*; import org.directcode.ide.api.MenuBar; import org.directcode.ide.plugins.PluginManager; import org.directcode.ide.util.Logger; import org.directcode.ide.window.EditorWindow; import org.directcode.ide.window.laf.LookAndFeelManager; ...
apache-2.0
getlantern/lantern-common
src/main/java/org/lantern/monitoring/StatshubAPI.java
4868
package org.lantern.monitoring; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.InetSocketAddress; import java.util.HashMap; import java.util.Map; import org.apache.commons.io.IOUtils; import org.lantern.HttpURLClient; import org....
apache-2.0
Domuska/GildedRose
src/fi/oulu/tol/sqat/ConjuredItem.java
174
package fi.oulu.tol.sqat; public class ConjuredItem extends Item{ public ConjuredItem(String name, int sellIn, int quality){ super(name, sellIn, quality); } }
apache-2.0
mbudiu-vmw/hiero
platform/src/main/java/org/hillview/table/filters/RangeFilterArrayDescription.java
1601
/* * Copyright (c) 2020 VMware Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 * * 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/L...
apache-2.0
ExplorViz/ExplorViz
src/explorviz/shared/usertracking/records/application/BackToLandscapeRecord.java
243
package explorviz.shared.usertracking.records.application; import explorviz.shared.usertracking.UsertrackingRecord; public class BackToLandscapeRecord extends UsertrackingRecord { @Override public String csvSerialize() { return ""; } }
apache-2.0
kjetilv/vanadis
launcher/src/main/java/vanadis/launcher/AbstractOSGiLauncher.java
12772
/* * Copyright 2009 Kjetil Valstadsve * * 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
Snadde/infotainment
apps/sensors/src/se/chalmers/pd/sensors/Controller.java
1389
package se.chalmers.pd.sensors; import org.json.JSONException; import org.json.JSONObject; /** * This controller class creates messages and asks a mqtt worker to publish * them. The worker is instantiated when the object is created and the thread is * started. There is no guarantee however that the thread will sta...
apache-2.0
philipwhiuk/q-mail
qmail-library/src/main/java/com/fsck/k9/mail/store/imap/ImapResponseParser.java
15316
package com.fsck.k9.mail.store.imap; import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import com.fsck.k9.mail.K9MailLib; import com.fsck.k9.mail.filter.FixedLengthInputStream; import com.fsck.k9.mail.filter.PeekableInputStream; import timber.log.Timber; impor...
apache-2.0
williamxu/DangoReader
app/src/main/java/moe/dangoreader/activity/MangaItemActivity.java
5092
package moe.dangoreader.activity; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v4.view.ViewPager; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.util.Log; import android.view.Menu; import android.view.MenuIte...
apache-2.0
12315jack/j1st-mqtt
j1st-mqtt-api/src/main/java/com/github/j1stiot/mqtt/api/internal/InternalMessage.java
13361
package com.github.j1stiot.mqtt.api.internal; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.handler.codec.mqtt.*; import org.apache.commons.lang3.StringUtils; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * Represent MQTT Message passed in Com...
apache-2.0
BladeRunnerJS/brjs-JsTestDriver
JsTestDriver/src/com/google/jstestdriver/output/XmlPrinterImpl.java
3937
/* * Copyright 2009 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...
apache-2.0
cristiani/encuestame
enme-business/src/main/java/org/encuestame/business/cron/RemoveUnconfirmedAccountJob.java
3004
/* ************************************************************************************ * Copyright (C) 2001-2011 encuestame: system online surveys Copyright (C) 2009 * encuestame Development Team. * Licensed under the Apache Software License version 2.0 * You may obtain a copy of the License at http://www.apache....
apache-2.0
aws/aws-sdk-java
aws-java-sdk-proton/src/main/java/com/amazonaws/services/proton/model/transform/ServicePipelineJsonUnmarshaller.java
5087
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
apache-2.0
jpbirdy/WordsDetection
weibo/src/main/java/weibo4j/http/HttpClient.java
18712
package weibo4j.http; import org.apache.commons.httpclient.*; import org.apache.commons.httpclient.auth.AuthScope; import org.apache.commons.httpclient.cookie.CookiePolicy; import org.apache.commons.httpclient.methods.DeleteMethod; import org.apache.commons.httpclient.methods.GetMethod; import org.apache.common...
apache-2.0
fiscoflex/erp
fiscoflex-api/src/main/java/mx/fiscoflex/contabilidad/util/UUIDCheck.java
229
package mx.fiscoflex.contabilidad.util; public class UUIDCheck { public static boolean isUUID(String uuid) { return uuid.matches("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[34][0-9a-fA-F]{3}-[89ab][0-9a-fA-F]{3}-[0-9a-fA-F]{12}"); } }
apache-2.0
ua-eas/ksd-kc5.2.1-rice2.3.6-ua
rice-middleware/it/ksb/src/test/java/org/kuali/rice/ksb/messaging/remotedservices/BaseballCardCollectionService.java
2496
/** * 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 required by a...
apache-2.0
jalotsav/Sarvam-Sugar
app/src/main/java/com/jalotsav/sarvamsugar/navgtndrawer/FrgmntOutstandingRprt.java
25900
/* * Copyright 2016 Jalotsav * * 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 ...
apache-2.0
glimpseio/incubator-calcite
core/src/test/java/org/apache/calcite/util/UtilTest.java
47693
/* * 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
3p14/weather
src/com/weather/app/db/WeatherDB.java
3630
package com.weather.app.db; import java.util.ArrayList; import java.util.List; import com.weather.app.model.City; import com.weather.app.model.County; import com.weather.app.model.Province; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import androi...
apache-2.0
RizalLovins/LovinsSmartKasir
app/src/main/java/com/rizal/lovins/smartkasir/activity/MapsActivity.java
3259
package com.rizal.lovins.smartkasir.activity; import android.content.Context; import android.content.pm.PackageManager; import android.location.Location; import android.location.LocationManager; import android.os.Bundle; import android.support.v4.app.ActivityCompat; import android.support.v4.app.FragmentActivity; im...
apache-2.0
topie/topie-oa
src/main/java/com/topie/humantask/rule/SuperiorAssigneeRule.java
922
package com.topie.humantask.rule; import java.util.Collections; import java.util.List; import com.topie.api.org.OrgConnector; import com.topie.core.spring.ApplicationContextHelper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * 获得指定用户的上级领导. * */ public class SuperiorAssigneeRule implements Assi...
apache-2.0
pnerg/java-scala-util
src/main/java/javascalautils/concurrent/ExecutorImpl.java
4857
/** * Copyright 2015 Peter Nerg * * <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 * * <p>http://www.apache.org/licenses/LICENSE-2.0 * * <p>Unless required by applicable law or agreed t...
apache-2.0
ontopia/ontopia
ontopia-engine/src/main/java/net/ontopia/topicmaps/cmdlineutils/rdbms/TranslateSourceLocators.java
4242
/* * #! * Ontopia Engine * #- * Copyright (C) 2001 - 2013 The Ontopia 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...
apache-2.0
cominvent/solr-explorer
src/main/java/org/apache/solr/explorer/client/core/manager/ui/DefaultProgressIndicator.java
2187
/* * Copyright 2011 SearchWorkings.org * * 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
infakt/material-menu
library/src/main/java/com/balysv/materialmenu/MaterialMenuDrawable.java
26723
/* * Copyright (C) 2014 Balys Valentukevicius * * 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...
apache-2.0
eug48/hapi-fhir
hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Practitioner.java
65552
package org.hl7.fhir.dstu3.model; /* Copyright (c) 2011+, HL7, Inc. 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 copyr...
apache-2.0
raphaelning/resteasy-client-android
jaxrs/resteasy-client/src/main/java/org/jboss/resteasy/client/jaxrs/ProxyConfig.java
646
package org.jboss.resteasy.client.jaxrs; import javax.ws.rs.core.MediaType; public class ProxyConfig { private final ClassLoader loader; private final MediaType defaultConsumes; private final MediaType defaultProduces; public ProxyConfig(ClassLoader loader, MediaType defaultConsumes, MediaType defaultProduces) ...
apache-2.0
CyberEagle/AndroidLibrary
library/src/main/java/br/com/cybereagle/androidlibrary/util/Utils.java
1060
/* * Copyright 2013 Cyber Eagle * * 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...
apache-2.0
saulbein/web3j
core/src/main/java/org/web3j/abi/datatypes/generated/Fixed112x72.java
587
package org.web3j.abi.datatypes.generated; import java.math.BigInteger; import org.web3j.abi.datatypes.Fixed; /** * <p>Auto generated code.<br> * <strong>Do not modifiy!</strong><br> * Please use {@link org.web3j.codegen.AbiTypesGenerator} to update.</p> */ public class Fixed112x72 extends Fixed { public sta...
apache-2.0
krux/java-stdlib
krux-stdlib-monitoring/src/main/java/com/krux/stdlib/status/StatusBean.java
2094
package com.krux.stdlib.status; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Objects; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; public class StatusBean { private final AppState state; ...
apache-2.0
mmm2a/GridApp
src/com/morgan/grid/server/auth/AuthConstantsModule.java
869
package com.morgan.grid.server.auth; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import com.google.inject.Provides; import com.morgan.grid.server.common.constants.AbstractConstantsModule; import com.morgan.grid.server.common.const...
apache-2.0
hortonworks/cloudbreak
integration-test/src/main/java/com/sequenceiq/it/cloudbreak/log/Log.java
5386
package com.sequenceiq.it.cloudbreak.log; import static java.lang.String.format; import java.io.IOException; import java.io.StringWriter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.testng.ITestResult; import org.testng.Reporter; import com.fasterxml.jackson.databind.ObjectMapper; import com...
apache-2.0
hstoenescu/PracticalTest02
PracticalTest2/app/src/androidTest/java/practicaltest02/eim/systems/cs/pub/ro/practicaltest2/ExampleInstrumentedTest.java
808
package practicaltest02.eim.systems.cs.pub.ro.practicaltest2; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, ...
apache-2.0
nkasvosve/beyondj
beyondj-admin/beyondj-web-console/src/main/java/com/lenox/beyondj/action/site/FAQActionBean.java
854
package com.lenox.beyondj.action.site; import com.lenox.beyondj.action.BaseActionBean; import com.lenox.beyondj.action.SkipAuthentication; import net.sourceforge.stripes.action.DefaultHandler; import net.sourceforge.stripes.action.ForwardResolution; import net.sourceforge.stripes.action.Resolution; import net.s...
apache-2.0
mgrand/bigchaindb-java-driver
bigchaindbdriver/src/test/java/com/hcl/bigchaindbDriver/BigchainDBTest.java
2946
package com.hcl.bigchaindbDriver; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.JsonNodeFactory; import com.fasterxml.jackson.databind.node.ObjectNode; import org.junit.Test; import java.awt.*; import static org.junit.As...
apache-2.0