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 |
|---|---|---|---|---|---|
/**
* (c) Copyright 2009-2015 Velocimetrics Ltd
* All Rights Reserved
* Permission is granted to licensees to use
* or alter this software for any purpose, including commercial applications,
* only according to the terms laid out in the Software License Agreement.
* All other use of this source code is expressly ... | sambathl/example101 | src/main/java/example101/booter/ServiceBooter.java | Java | apache-2.0 | 1,909 |
/*
* Copyright 2005 Paul Hinds
*
* 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... | neoautus/lucidj | extras/AntInstaller/AntInstaller-beta0.8/src/org/tp23/antinstaller/runtime/TextRunner.java | Java | apache-2.0 | 4,327 |
package MaximumWidthofBinaryTree;
class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
}
class Solution {
private boolean hasChild(TreeNode node) {
return node != null && (node.left != null || node.right != null);
}
private TreeNode[... | likel/leetcode-java | src/MaximumWidthofBinaryTree/Solution.java | Java | apache-2.0 | 1,626 |
package com.googlecode.blaisemath.graphics;
/*
* #%L
* BlaiseGraphics
* --
* Copyright (C) 2009 - 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
*
* ... | triathematician/blaisemath | blaise-graphics/src/main/java/com/googlecode/blaisemath/graphics/GraphicMouseMoveHandler.java | Java | apache-2.0 | 2,020 |
package com.box.sdk;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
/**
* A collection that contains a subset of items that are a part of a larger collection. The items within a partial
* collection begin at an offset within the full collection and end at a specified limit. Note... | box/box-java-sdk | src/main/java/com/box/sdk/PartialCollection.java | Java | apache-2.0 | 3,750 |
/*
* 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 ... | aglne/dubbo | dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyServer.java | Java | apache-2.0 | 6,845 |
/*
* Copyright 2005-2017 Dozer 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 ... | STRiDGE/dozer | core/src/test/java/org/dozer/vo/direction/EntityBase.java | Java | apache-2.0 | 1,069 |
/**
*
*/
package com.beem.project.btf.utils;
import android.content.Context;
/**
* @author Aaron Lee Created at 下午8:15:07 2015-9-9
*/
public class AndroidDeviceUtil {
public static int getScreenWidth(Context context) {
return context.getResources().getDisplayMetrics().widthPixels;
}
public static int getScr... | zoozooll/MyExercise | VV/src/com/beem/project/btf/utils/AndroidDeviceUtil.java | Java | apache-2.0 | 424 |
/*
* Copyright 1998-2014 University Corporation for Atmospheric Research/Unidata
*
* Portions of this software were developed by the Unidata Program at the
* University Corporation for Atmospheric Research.
*
* Access and use of this software shall impose the following obligations
* and understandings on... | 0nirvana0/grib2reader | src/ucar/units/UnitSystemImpl.java | Java | apache-2.0 | 4,391 |
package com.didichuxing.doraemonkit.kit.network.okhttp.interceptor;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import com.didichuxing.doraemonkit.kit.core.DoKitManager;
import com.didichuxing.doraemonkit.kit.network.NetworkManager;
import com.didichuxing.doraemonkit.kit.network.bean.NetworkRe... | didi/DoraemonKit | Android/dokit/src/main/java/com/didichuxing/doraemonkit/kit/network/okhttp/interceptor/DokitCapInterceptor.java | Java | apache-2.0 | 5,678 |
package org.wikipedia.json;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.ParameterizedRobolectricTestRunner;
import org.robolectric.ParameterizedRobolectricTestRunner.Parameters;
import org.wikiped... | SAGROUP2/apps-android-wikipedia | app/src/test/java/org/wikipedia/json/NamespaceTypeAdapterTest.java | Java | apache-2.0 | 2,615 |
package application.controller;
import application.model.Temperature;
import application.service.api.SensorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.spri... | Jcba/kascontroller-backend | rest/src/main/java/application/controller/SensorDataController.java | Java | apache-2.0 | 813 |
/*
* Copyright (c) 2011-2014, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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... | pacozaa/BoofCV | main/ip/test/boofcv/abst/filter/binary/TestGlobalFixedBinaryFilter.java | Java | apache-2.0 | 1,818 |
package stroom.query.common.v2;
import com.google.common.cache.LoadingCache;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
class InMemorySearchResponseCreatorCache implements SearchResponseCreatorCache {
private static final Logger LOGGER = LoggerFactory.getLogger(InMemorySearchResponseCreatorCache.cl... | gchq/stroom | stroom-query/stroom-query-common/src/main/java/stroom/query/common/v2/InMemorySearchResponseCreatorCache.java | Java | apache-2.0 | 1,216 |
/*
* Copyright (c) 1995, 1997, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.awt;
/**
* Signals that an Absract Window Toolkit exception has occurred.
*
* @author ... | haikuowuya/android_system_code | src/java/awt/AWTException.java | Java | apache-2.0 | 873 |
package br.net.rafaeltuelho.jb297.unit3.model;
import java.io.Serializable;
import java.lang.Integer;
import java.lang.Long;
import java.lang.String;
import java.sql.Timestamp;
import javax.persistence.*;
/**
* Entity implementation class for Entity: Driver
*
*/
@Entity
@Table(schema="MAPPER")
public class Driver ... | rafaeltuelho/redhat-jb297-labs | jb297-unit3-lab-3-1/src/main/java/br/net/rafaeltuelho/jb297/unit3/model/Driver.java | Java | apache-2.0 | 1,731 |
/*
* Copyright 2013-2017 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... | marcingrzejszczak/spring-cloud-sleuth | spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/web/TraceHandlerInterceptor.java | Java | apache-2.0 | 7,421 |
package cn.liuyb.app.portal.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cn.liuyb.app.portal.dao.RoleUrlDao;
import cn.liuyb.app.porta... | liuyb4016/model_project | model_springmvc/src/main/java/cn/liuyb/app/portal/service/impl/RoleUrlServiceImpl.java | Java | apache-2.0 | 2,512 |
/*
* Copyright 2015 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.ap... | sekigor/hawkular-agent | hawkular-wildfly-agent/src/main/java/org/hawkular/agent/monitor/scheduler/SchedulerConfiguration.java | Java | apache-2.0 | 4,044 |
package com.android.phone.assistant.util;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import com.android.file.util.FileSystem;
import com.android.phone.assistant.R;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
public class Them... | wanlihuan/phone-touch | business-service/business-common-widget/src/main/java/com/android/phone/assistant/util/ThemeManager.java | Java | apache-2.0 | 3,634 |
package org.researchstack.skin.ui;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import org.researchstack.backbone.StorageAccess;
import org.researchstack.backbone.result.StepResult;
import org.researchstack.ba... | ResearchStack/ResearchStack | skin/src/main/java/org/researchstack/skin/ui/SignUpTaskActivity.java | Java | apache-2.0 | 4,990 |
package com.suscipio_solutions.consecro_mud.Locales;
import java.util.List;
import com.suscipio_solutions.consecro_mud.Common.interfaces.CMMsg;
import com.suscipio_solutions.consecro_mud.Common.interfaces.PlayerStats;
import com.suscipio_solutions.consecro_mud.Items.interfaces.RawMaterial;
import com.suscipio_solution... | ConsecroMUD/ConsecroMUD | com/suscipio_solutions/consecro_mud/Locales/ShallowWater.java | Java | apache-2.0 | 2,901 |
/*
* Copyright 2015-2016 Red Hat, Inc, and individual contributors.
*
* 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 require... | hpehl/hal.next | core/src/main/java/org/jboss/hal/core/runtime/server/ServerActions.java | Java | apache-2.0 | 41,887 |
/*
* Copyright [2017] Doug Turnbull, Wikimedia Foundation
*
* 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... | o19s/elasticsearch-learning-to-rank | src/main/java/com/o19s/es/ltr/ranker/ranklib/RanklibModelParser.java | Java | apache-2.0 | 1,644 |
package lab.s2jh.biz.core.hib;
import java.io.Serializable;
import org.hibernate.dialect.Dialect;
import org.hibernate.type.AbstractSingleColumnStandardBasicType;
import org.hibernate.type.DiscriminatorType;
import org.hibernate.type.PrimitiveType;
import org.hibernate.type.StringType;
import org.hibernate.type.descr... | smilesman/s2jh | showcase/src/main/java/lab/s2jh/biz/core/hib/Boolean1T2FUserType.java | Java | apache-2.0 | 1,324 |
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* 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... | Uni-Sol/batik | test-sources/org/apache/batik/dom/SetAttributeTest.java | Java | apache-2.0 | 3,303 |
package com.socialapp.services.internal.callback.custom;
import com.socialapp.services.IResultProcessor;
import com.socialapp.services.internal.callback.AjaxStatus;
import com.socialapp.services.internal.callback.custom.sharedstate.LoginState;
import com.socialapp.services.internal.util.UrlConstants;
import com.social... | rytina/socialapp-services | com.socialapp.services/src/com/socialapp/services/internal/callback/custom/GetLoggedInZipAndNameCallback.java | Java | apache-2.0 | 1,599 |
package com.sparseware.bellavista.external.fhir;
import com.appnativa.rare.exception.ApplicationException;
import com.appnativa.rare.scripting.Functions;
import com.appnativa.util.CharArray;
import com.appnativa.util.json.JSONArray;
import com.appnativa.util.json.JSONObject;
import com.appnativa.util.json.JSONTokener;... | sparseware/ccp-bellavista | shared/com/sparseware/bellavista/external/fhir/aFHIRemoteService.java | Java | apache-2.0 | 19,010 |
/*
* Copyright 2016 http://www.hswebframework.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 ap... | asiaon123/hsweb-framework | hsweb-authorization/hsweb-authorization-oauth2/hsweb-authorization-oauth2-auth-server/src/main/java/org/hswebframework/web/authorization/oauth2/server/support/client/ClientCredentialRequest.java | Java | apache-2.0 | 934 |
/*
* ====================================================================
* 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
... | ppelleti/host-vfy | src/com/oblong/tls/verifier/InetAddressUtils.java | Java | apache-2.0 | 4,938 |
package org.gradle.test.performance.mediummonolithicjavaproject.p413;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test8265 {
Production8265 objectUnderTest = new Production8265();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... | oehme/analysing-gradle-performance | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p413/Test8265.java | Java | apache-2.0 | 2,111 |
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.grpc;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.spi.PropertyConfigurerGett... | mcollovati/camel | components/camel-grpc/src/generated/java/org/apache/camel/component/grpc/GrpcEndpointConfigurer.java | Java | apache-2.0 | 11,872 |
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | aws/aws-sdk-java | aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/DashIsoImageBasedTrickPlaySettings.java | Java | apache-2.0 | 20,115 |
/***************************************************************************
* Copyright 2021 Kieker Project (https://kieker-monitoring.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License ... | kieker-monitoring/kieker | kieker-common/src/kieker/common/configuration/ReadOnlyConfiguration.java | Java | apache-2.0 | 3,492 |
package gov.va.med.imaging.exchange.storage.cache.mock;
import gov.va.med.GlobalArtifactIdentifier;
import gov.va.med.PatientIdentifier;
import gov.va.med.RoutingToken;
import gov.va.med.imaging.GUID;
import gov.va.med.imaging.ImageURN;
import gov.va.med.imaging.StudyURN;
import gov.va.med.imaging.exceptions.URNFormat... | VHAINNOVATIONS/Telepathology | Source/Java/ImagingExchangeCache/main/src/java/gov/va/med/imaging/exchange/storage/cache/mock/MockVASourcedCache.java | Java | apache-2.0 | 4,754 |
package ru.st.selenium;
import static org.testng.AssertJUnit.assertTrue;
import org.testng.annotations.Test;
import ru.st.selenium.model.User;
public class AddNewUser extends TestBase {
@Test
public void addNewUserOk() {
String username = "user" + System.currentTimeMillis();
User user = new User()
.setLog... | eabramovich/Se-Java-17 | src/test/java/ru/st/selenium/AddNewUser.java | Java | apache-2.0 | 611 |
/*
* Copyright 2012-2013 inBloom, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | inbloom/secure-data-service | POC/aggregation/mapreduce/src/test/java/org/slc/sli/aggregation/mapreduce/reduce/HighestTest.java | Java | apache-2.0 | 4,484 |
/*
* Copyright 2018 The Data Transfer Project Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | google/data-transfer-project | portability-transfer/src/main/java/org/datatransferproject/transfer/WorkerExtensionContext.java | Java | apache-2.0 | 3,196 |
/*
* 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 ... | mrtheb/flume-forgives | src/test/java/TestHTTPSource.java | Java | apache-2.0 | 18,860 |
/*
* Copyright (c) 2010-2013 Evolveum
*
* 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... | arnost-starosta/midpoint | model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/NotificationManagerImpl.java | Java | apache-2.0 | 8,364 |
/*
* Copyright 1999-2010 Luca Garulli (l.garulli--at--orientechnologies.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
... | MaDaPHaKa/Orient-object | object/src/main/java/com/orientechnologies/orient/object/db/graph/OGraphVertex.java | Java | apache-2.0 | 14,760 |
/*
* 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... | jexp/idea2 | plugins/groovy/src/org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrConstructorInvocationImpl.java | Java | apache-2.0 | 6,166 |
package org.beigesoft.uml.factory.awt;
import java.awt.Frame;
import java.awt.Graphics2D;
import java.awt.Image;
import org.beigesoft.graphic.pojo.SettingsDraw;
import org.beigesoft.graphic.pojo.Point2D;
import org.beigesoft.graphic.service.ISrvDraw;
import org.beigesoft.service.ISrvI18n;
import org.beigesoft.ui.serv... | demidenko05/beige-uml | beige-uml-swing/src/main/java/org/beigesoft/uml/factory/awt/FactoryAsmTextLight.java | Java | apache-2.0 | 3,490 |
/**
* Copyright (c) 2008-2011, http://www.snakeyaml.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 appl... | AssafMashiah/assafmashiah-yaml | src/test/java/org/yaml/snakeyaml/issues/issue64/MethodDesc.java | Java | apache-2.0 | 1,240 |
package com.xiongyingqi.util;
public class Base64 {
/* ******** P U B L I C F I E L D S ******** */
public final static int NO_OPTIONS = 0;
public final static int ENCODE = 1;
public final static int DECODE = 0;
public final static int GZIP = 2;
public final static... | blademainer/common_utils | common_helper/src/main/java/com/xiongyingqi/util/Base64.java | Java | apache-2.0 | 30,567 |
/*
* Copyright 2011 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Governance/dtgov | dtgov-war/src/test/java/org/overlord/sramp/governance/workflow/WorkflowFactoryTest.java | Java | apache-2.0 | 2,140 |
package ODEsolver.interpreter;
//-----------------------------------------------------------------------------
// Written 2002 by Juergen Arndt.
//
//
// File Ex5.java
// Use semantische funktion fuer "-"
//-----------------------------------------------------------------------------
class Ex5 implements SemFuncPoin... | JPLeRouzic/PhysioSim | ODEsolver/interpreter/Ex5.java | Java | apache-2.0 | 852 |
/**
* Copyright 2017 Pivotal 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 applicable law o... | checketts/spring-metrics | src/main/java/org/springframework/metrics/instrument/binder/LogbackMetrics.java | Java | apache-2.0 | 2,719 |
/***************************************************************************
Copyright 2012 Emily Estes
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.o... | emily-e/webframework | src/main/java/net/metanotion/web/examples/FileServerSessionsApp.java | Java | apache-2.0 | 4,140 |
/*
* Copyright 2006-2007 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... | Gigaspaces/xap-openspaces | src/main/java/org/openspaces/core/executor/internal/ExecutorMetaDataProvider.java | Java | apache-2.0 | 3,362 |
package com.nvanbenschoten.motion;
import android.content.Context;
import android.hardware.SensorEvent;
import android.hardware.SensorManager;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.VisibleForTesting;
import android.view.Surface;
import ... | nvanbenschoten/motion | motion/src/main/java/com/nvanbenschoten/motion/SensorInterpreter.java | Java | apache-2.0 | 7,277 |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
* Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@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... | ruspl-afed/dbeaver | plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/tools/OracleScriptExecuteWizard.java | Java | apache-2.0 | 4,679 |
/*
* Copyright 2016 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 ... | google/schemaorg-java | src/main/java/com/google/schemaorg/core/Painting.java | Java | apache-2.0 | 24,692 |
/**
* Copyright 2011-2016 Asakusa Framework Team.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | akirakw/asakusafw-compiler | compiler-project/optimizer/src/main/java/com/asakusafw/lang/compiler/optimizer/OperatorEstimate.java | Java | apache-2.0 | 3,204 |
package com.peiliping.web.server.subscriber;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
impor... | yifzhang/web | web-server/src/main/java/com/peiliping/web/server/subscriber/SubscriberFilter.java | Java | apache-2.0 | 1,874 |
// 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 w... | lee-tammy/CodeU-Summer-2017 | src/codeu/chat/client/commandline/Chat.java | Java | apache-2.0 | 33,418 |
package gwt.material.design.demo.client.application.addins.bubble;
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2016 GwtMaterialDesign
* %%
* 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 L... | GwtMaterialDesign/gwt-material-demo | src/main/java/gwt/material/design/demo/client/application/addins/bubble/BubbleModule.java | Java | apache-2.0 | 1,027 |
/*
* 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 ... | mikewalch/accumulo | server/base/src/test/java/org/apache/accumulo/server/security/handler/ZKAuthenticatorTest.java | Java | apache-2.0 | 3,429 |
package com.tle.webtests.pageobject.generic.component;
import com.tle.webtests.pageobject.AbstractPage;
public class ThickboxPopup<T extends AbstractPage<T>> extends AbstractPage<T> {
private final T wrappedPage;
public ThickboxPopup(T wrappedPage) {
super(wrappedPage.getContext());
this.wrappedPage = wr... | equella/Equella | autotest/Tests/src/main/java/com/tle/webtests/pageobject/generic/component/ThickboxPopup.java | Java | apache-2.0 | 560 |
/*
* 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... | rainbowbreeze/hackathons | 130720-hackitaly/TechnogymRT/src/it/rainbowbreeze/technogym/realtime/comm/RoomStateDataRequestInitializer.java | Java | apache-2.0 | 3,567 |
package org.arbeitspferde.groningen;
import static org.easymock.EasyMock.anyBoolean;
import static org.easymock.EasyMock.anyObject;
import static org.easymock.EasyMock.createMock;
import static org.easymock.EasyMock.createNiceMock;
import static org.easymock.EasyMock.eq;
import static org.easymock.EasyMock.expect;
imp... | matttproud/groningen | src/test/java/org/arbeitspferde/groningen/PipelineRestorerTest.java | Java | apache-2.0 | 2,709 |
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | aws/aws-sdk-java | aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/GetPackageVersionHistoryRequest.java | Java | apache-2.0 | 7,480 |
/*
Copyright 2016, 2017 Institut National de la Recherche Agronomique
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... | Bibliome/bibliome-java-utils | src/main/java/fr/inra/maiage/bibliome/util/pattern/tabular/expression/DefaultMatchRegexp.java | Java | apache-2.0 | 1,141 |
package csdn.shimiso.eim.activity.im;
import java.util.Calendar;
import java.util.Collections;
import java.util.List;
import org.jivesoftware.smack.Chat;
import org.jivesoftware.smack.packet.Message;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import andro... | ice-coffee/EIM | src/csdn/shimiso/eim/activity/im/AChatActivity.java | Java | apache-2.0 | 3,876 |
package org.apache.lucene.analysis;
/**
* 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, Ve... | Overruler/retired-apache-sources | lucene-2.9.4/src/java/org/apache/lucene/analysis/Token.java | Java | apache-2.0 | 31,174 |
/*
* 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... | consulo/consulo | modules/base/lang-impl/src/main/java/com/intellij/psi/impl/source/resolve/reference/impl/providers/FileReferenceCompletionImpl.java | Java | apache-2.0 | 4,888 |
package org.toobsframework.pres.chart;
import org.toobsframework.exception.BaseException;
public class ChartNotFoundException extends BaseException {
private static final long serialVersionUID = 1L;
public ChartNotFoundException(String chartId) {
super("Component with Id " + chartId + " not found in re... | parabuzzle/toobs | Toobs/PresFramework/src/main/java/org/toobsframework/pres/chart/ChartNotFoundException.java | Java | apache-2.0 | 336 |
/**
* Copyright 2013 DuraSpace, 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 agree... | barmintor/fcrepo4 | fcrepo-kernel/src/main/java/org/fcrepo/kernel/rdf/impl/FixityRdfContext.java | Java | apache-2.0 | 4,793 |
/*
* 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 ... | axbaretto/beam | runners/spark/src/main/java/org/apache/beam/runners/spark/coders/BeamSparkRunnerRegistrator.java | Java | apache-2.0 | 3,355 |
/* Copyright 2020 Telstra Open Source
*
* 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... | telstra/open-kilda | src-java/base-topology/base-storm-topology/src/main/java/org/openkilda/wfm/share/zk/ZooKeeperBolt.java | Java | apache-2.0 | 3,814 |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
package vnmr.bo;
import java.awt.*;
import java.util.*;
import java.awt.ev... | OpenVnmrJ/OpenVnmrJ | src/vnmrj/src/vnmr/bo/VTabPage.java | Java | apache-2.0 | 1,590 |
package com.google.android.gms.people.internal;
import android.net.Uri;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import android.os.RemoteException;
import com.google.android.gms... | ChiangC/FMTech | GooglePlay6.0.5/app/src/main/java/com/google/android/gms/people/internal/zzg.java | Java | apache-2.0 | 228,355 |
/*
* Copyright (C) 2013 salesforce.com, 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 ... | TribeMedia/aura | aura-impl/src/test/java/org/auraframework/impl/root/parser/handler/BaseAccessAttributeTest.java | Java | apache-2.0 | 26,147 |
package fr.javatronic.blog.massive.annotation1.sub1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_5815 {
}
| lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_5815.java | Java | apache-2.0 | 151 |
package com.vito16.shop.repository;
import com.vito16.shop.model.Order;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype... | vito16/shop | src/main/java/com/vito16/shop/repository/OrderRepository.java | Java | apache-2.0 | 718 |
package org.lumongo.client.result;
import org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse;
import org.lumongo.cluster.message.Lumongo.SegmentCountResponse;
import java.util.List;
public class GetNumberOfDocsResult extends Result {
private GetNumberOfDocsResponse getNumberOfDocsResponse;
public GetNum... | lumongo/lumongo | lumongo-client/src/main/java/org/lumongo/client/result/GetNumberOfDocsResult.java | Java | apache-2.0 | 1,460 |
/*
* $Header: /var/chroot/cvs/cvs/factsheetDesigner/extern/jakarta-slide-server-src-2.1-iPlus Edit/src/share/org/apache/slide/search/basic/expression/GenericBasicExpression.java,v 1.2 2006-01-22 22:49:05 peter-cvs Exp $
* $Revision: 1.2 $
* $Date: 2006-01-22 22:49:05 $
*
* =========================================... | integrated/jakarta-slide-server | maven/jakarta-slide-kernel/src/main/java/org/apache/slide/search/basic/expression/GenericBasicExpression.java | Java | apache-2.0 | 1,494 |
/*******************************************************************************
* Copyright 2016 Capital One Services, LLC and Bitwise, 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... | capitalone/Hydrograph | hydrograph.engine/hydrograph.engine.transformation/src/test/java/hydrograph/engine/transformation/standardfunctions/StringFunctionTest.java | Java | apache-2.0 | 2,774 |
/*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | jentfoo/aws-sdk-java | aws-java-sdk-eks/src/main/java/com/amazonaws/services/eks/model/Certificate.java | Java | apache-2.0 | 5,125 |
/*
* Copyright 2011-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.
* You may obtain a copy of the License at:
*
* http://aws.amazon.com/apache2.0
*
* This fil... | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBDeleteExpression.java | Java | apache-2.0 | 12,284 |
/*
* Sakuli - Testing and Monitoring-Tool for Websites and common UIs.
*
* Copyright 2013 - 2018 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
*
* ... | ConSol/sakuli | src/integration-test/src/test/java/org/sakuli/integration/services/forwarder/gearman/GearmanTestCaseTemplateOutputBuilderIntegrationTest.java | Java | apache-2.0 | 19,351 |
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights
* Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | dump247/aws-sdk-java | aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/transform/PasswordPolicyStaxUnmarshaller.java | Java | apache-2.0 | 5,283 |
/*
* 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 ... | massx1/syncope | core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/Logger.java | Java | apache-2.0 | 1,190 |
/*
*
* LegendShop 多用户商城系统
*
* 版权所有,并保留所有权利。
*
*/
package com.legendshop.payment.helper;
import com.legendshop.util.Arith;
/**
* 分润帐号 type :1 按百分比,2 实收
*
* LegendShop 版权所有 2009-2011,并保留所有权利。
*
* ----------------------------------------------------------------------------
* 提示:在未取得LegendShop商业授权之前,您不能... | 8090boy/gomall.la | legendshop_payment/src/java/com/legendshop/payment/helper/AlipayAccount.java | Java | apache-2.0 | 2,330 |
/*
* ====================================================================
* 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 ... | vuzzan/openclinic | src/org/apache/http/pool/PoolEntryCallback.java | Java | apache-2.0 | 1,524 |
/**
* Copyright 2014 Fernando Rincon Martin <frm.rincon@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | frincon/openeos | modules/org.openeos.services.security/src/main/java/org/openeos/services/security/SecurityManagerService.java | Java | apache-2.0 | 764 |
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | dagnir/aws-sdk-java | aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/transform/DescribeLogStreamsResultJsonUnmarshaller.java | Java | apache-2.0 | 3,146 |
/*
* Generic framework code included with
* <a href="http://www.amazon.com/exec/obidos/tg/detail/-/1861007841/">Expert One-On-One J2EE Design and Development</a>
* by Rod Johnson (Wrox, 2002).
* This code is free to use and modify. However, please
* acknowledge the source and include the above URL in each
*... | Will1229/LearnSpring | spring-framework-0.9.1/src/com/interface21/web/servlet/view/xslt/FormatHelper.java | Java | apache-2.0 | 4,044 |
package com.nugraviton.chao.job;
import java.io.BufferedReader;
import java.util.UUID;
public class DefaultProcessInputReader implements ProcessInputReader{
private final String jobName;
private final UUID sessionId;
private final BufferedReader reader;
public DefaultProcessInputReader(String jobNam... | nugraviton/chao-open | chao-core/src/main/java/com/nugraviton/chao/job/DefaultProcessInputReader.java | Java | apache-2.0 | 1,692 |
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | aws/aws-sdk-java | aws-java-sdk-memorydb/src/main/java/com/amazonaws/services/memorydb/model/ShardNotFoundException.java | Java | apache-2.0 | 1,157 |
package com.webuml.projectmanager.domain.metamodel.helper;
import com.webuml.projectmanager.domain.primitives.PropertyId;
import java.util.Set;
public interface OwnedAttributeHolder {
Set<PropertyId> getOwnedAttribute();
void setOwnedAttribute(Set<PropertyId> ownedAttributes);
}
| webuml/webuml-projectmanager | src/main/java/com/webuml/projectmanager/domain/metamodel/helper/OwnedAttributeHolder.java | Java | apache-2.0 | 289 |
/*
* Copyright (c) 2011-2013, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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... | pacozaa/BoofCV | main/feature/test/boofcv/alg/feature/detect/line/gridline/TestGridLineModelFitter.java | Java | apache-2.0 | 2,361 |
package org.onetwo.common.profiling;
import java.util.Date;
import org.onetwo.common.date.DateUtils;
public class TimerOutputer implements TimeLogger {
@Override
public void log(Class<?> logSource, String msg, Object...args) {
System.out.println("["+DateUtils.formatDateTime(new Date())+"]: "+logSour... | wayshall/onetwo | core/modules/common/src/main/java/org/onetwo/common/profiling/TimerOutputer.java | Java | apache-2.0 | 372 |
import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;
/**
* @author Oleg Cherednik
* @since 19.07.2018
*/
public class Solution {
private static final Set<Long> EVEN_FIBONACCI = new TreeSet<>();
private static long f0 = 0;
private static long f1 = 1;
static long findEvenFibonac... | oleg-cherednik/hackerrank | Compete/Project Euler/#0000 - #0099/#002 - Even Fibonacci numbers/Solution.java | Java | apache-2.0 | 968 |
package com.saq.android.data;
import java.util.ArrayList;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
public class CategoryReference extends ReferenceWithParent {
private static final String SUB_CATEGORY_TAG = "sousCategorie";
public CategoryReference(ReferenceWithParent p) {
super(p);
... | cipicip/android | saq.forked/app/src/main/java/com/saq/android/data/CategoryReference.java | Java | apache-2.0 | 938 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | zpao/buck | src/com/facebook/buck/features/python/PythonUtil.java | Java | apache-2.0 | 19,663 |
/*
* 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 may... | UniTime/unitime | JavaSource/org/unitime/timetable/reports/PdfLegacyReport.java | Java | apache-2.0 | 10,138 |
/* Copyright 2016 Esri
*
* 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,... | Esri/arcgis-runtime-samples-android | java/feature-layer-geodatabase/src/main/java/com/esri/arcgisruntime/sample/featurelayergeodatabase/MainActivity.java | Java | apache-2.0 | 3,928 |
/*
* 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 ... | wimsymons/sling | testing/org.apache.sling.testing.paxexam/src/main/java/org/apache/sling/testing/paxexam/SlingVersionResolver.java | Java | apache-2.0 | 14,723 |
/**
* Jakarta Bean Validation TCK
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.beanvalidation.tck.tests.xmlconfiguration.versioning;
import static org.testng.Assert.assertEquals;
import jakarta.... | beanvalidation/beanvalidation-tck | tests/src/main/java/org/hibernate/beanvalidation/tck/tests/xmlconfiguration/versioning/Version30InValidationXmlTest.java | Java | apache-2.0 | 1,627 |