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 |
|---|---|---|---|---|---|
/*
* 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 ... | Wenpei/incubator-systemml | src/main/java/org/apache/sysml/api/MLContext.java | Java | apache-2.0 | 58,727 |
/*
* Copyright 2012 LinkedIn, 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... | jodzga/parseq | src/com/linkedin/parseq/CallableTask.java | Java | apache-2.0 | 1,848 |
/*
* 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 | java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/DefaultModuleConfigurationEditorFactoryImpl.java | Java | apache-2.0 | 2,085 |
package com.google.api.ads.adwords.jaxws.v201509.cm;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Represents a ZIP archive media the content of which contains HTML5 assets.
*
*
* <p>J... | gawkermedia/googleads-java-lib | modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201509/cm/MediaBundle.java | Java | apache-2.0 | 2,738 |
/*
* Copyright 2011-2018 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | b2ihealthcare/snow-owl | snomed/com.b2international.snowowl.snomed.datastore/src/com/b2international/snowowl/snomed/core/store/SnomedAttributeValueReferenceSetMemberBuilder.java | Java | apache-2.0 | 1,449 |
package com.meidusa.venus.backend.interceptor.config;
public enum CacheOperation {
DELETE, GET;
}
| blusechen/venus | venus-backend/src/main/java/com/meidusa/venus/backend/interceptor/config/CacheOperation.java | Java | apache-2.0 | 104 |
/*
* 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 ... | xhoong/incubator-calcite | linq4j/src/test/java/org/apache/calcite/linq4j/MemoryEnumerableTest.java | Java | apache-2.0 | 2,628 |
/**
* 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... | vybs/sqoop-on-spark | common/src/main/java/org/apache/sqoop/schema/type/Bit.java | Java | apache-2.0 | 1,473 |
/*
Copyright 2016 Richard Robinson @ NHS Digital <rrobinson@nhs.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 at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by a... | rprobinson/MediPi | MediPiPatient/MediPi/src/main/java/org/medipi/PollDownloads.java | Java | apache-2.0 | 8,911 |
package reversi.server;
import java.io.IOException;
import java.io.PrintWriter;
import base.models.IOModel;
import reversi.models.game.ReversiInput;
/**
* Class that wraps up the server responses.
* @author dereekb
*
*/
public class ReversiServerResponse
{
public enum ServerResponseType
{
ServerResponseTyp... | travisolbrich/315-P2-Reversi | Reversi/src/reversi/server/ReversiServerResponse.java | Java | apache-2.0 | 2,394 |
/*
* 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-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/AdminDisableUserResult.java | Java | apache-2.0 | 2,458 |
package Algorithms.Strings.Gemstones;
import static org.junit.Assert.assertEquals;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import org.junit.After;
import org.junit.Befo... | drz0910/hackerrank | src/Algorithms/Strings/Gemstones/SolutionTest.java | Java | apache-2.0 | 1,691 |
/*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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 ... | aricooperman/jLean | src/main/java/com/quantconnect/lean/data/market/Dividend.java | Java | apache-2.0 | 4,401 |
package com.lockerfish.sunshine;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.LoaderManager.LoaderCallbacks;
import android.support.v4.content.CursorLoader;
import android.support.v4.content.Loader;
import... | lockerfish/mysunshine | app/src/main/java/com/lockerfish/sunshine/DetailFragment.java | Java | apache-2.0 | 10,553 |
/**
* Copyright (c) 2007-2016 SAIC. All Rights Reserved.
* This software is published under the terms of the SAIC IS Dept.
*
* @Project: safe4j-web
* @Title: LinkDao.java
* @Package com.saicmotor.cms.dao
* @Description:
*
* @CreateDate : 2016年4月18日
* @CreateBy : kojrf
*/
package com.saicmotor.cms.dao;
... | dianfengxiawu/fixed-assets | safe4j-web/src/main/java/com/saicmotor/cms/dao/LinkDao.java | Java | apache-2.0 | 742 |
package com.yanglin.test;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.yanglin.service.UserServiceI;
/**
* @desc 类功能描述:
* @author devuser
* @createTime 2016年8月15日 上午11:32... | ThomasYangLin/DbToJson | src/test/java/com/yanglin/test/ExportTaiheJson.java | Java | apache-2.0 | 989 |
/**
* Copyright 2011-2019 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... | ashigeru/asakusafw-compiler | bridge-project/runtime-hadoop/src/main/java/com/asakusafw/bridge/hadoop/directio/package-info.java | Java | apache-2.0 | 703 |
package ru.stqa.pft.github.mantis.appmanager;
import org.apache.commons.net.ftp.FTPClient;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
/**
* Created by uttabondarenko on 16.02.17.
*/
public class FtpHelper {
private final ApplicationManager app;
private FTPClient ftp;
p... | yutta13/java_36 | mantis-test/src/test/java/ru/stqa/pft/github/mantis/appmanager/FtpHelper.java | Java | apache-2.0 | 1,077 |
/*******************************************************************************
* Copyright 2015-2021 Sergey Karpushin
*
* 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://... | skarpushin/summerb | summerb-easycrud/src/main/java/org/summerb/easycrud/impl/dataset/DataSetUpdaterOnEntityChangedEventImpl.java | Java | apache-2.0 | 2,755 |
/*
* 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... | twitter-forks/presto | presto-hive-metastore/src/test/java/com/facebook/presto/hive/metastore/TestRecordingHiveMetastore.java | Java | apache-2.0 | 12,796 |
/**
* 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... | lburgazzoli/apache-activemq-artemis | tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubsOfflineSelectorIndexUseTest.java | Java | apache-2.0 | 7,922 |
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.value.api;
/**
* This is a sub-interface of {@link GenericValueConverter} for the most common value type {@link String}. It
* is typically used for dealing with val... | m-m-m/util | value/src/main/java/net/sf/mmm/util/value/api/StringValueConverter.java | Java | apache-2.0 | 561 |
package com.hazelcast.simulator.worker.testcontainer;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.simulator.common.TestCase;
import com.hazelcast.simulator.common.TestPhase;
import com.hazelcast.simulator.protocol.connector.WorkerConnector;
import com.hazelcast.simulator.test.BaseThreadState;
imp... | Donnerbart/hazelcast-simulator | simulator/src/test/java/com/hazelcast/simulator/worker/testcontainer/TimeStepRunStrategyIntegrationTest.java | Java | apache-2.0 | 5,183 |
package apple.security;
import java.io.*;
import java.nio.*;
import java.util.*;
import com.google.j2objc.annotations.*;
import com.google.j2objc.runtime.*;
import com.google.j2objc.runtime.block.*;
import apple.audiotoolbox.*;
import apple.corefoundation.*;
import apple.coregraphics.*;
import apple.coreservices.*;
i... | Sellegit/j2objc | runtime/src/main/java/apple/security/SSLConnectionType.java | Java | apache-2.0 | 645 |
package huajiteam.zhuhaibus;
import java.io.IOException;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
/**
* Created by KelaKim on 2016/5/15.
*/
public class GetWebContent {
OkHttpClient client = new OkHttpClient();
Response httpGet(String url) throws IOException {
... | HuaJiTeam/ZhBus | app/src/main/java/huajiteam/zhuhaibus/GetWebContent.java | Java | apache-2.0 | 508 |
/*
* Copyright (C) Tema
*
* 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 writ... | Tema/screenshot | src/com/screenshot/gui/ScreenshotApp.java | Java | apache-2.0 | 3,635 |
/*
* 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... | joewalnes/idea-community | plugins/svn4idea/src/org/jetbrains/idea/svn/update/UpdateEventHandler.java | Java | apache-2.0 | 9,296 |
/*
* Copyright 2011 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 applica... | magott/spring-social-yammer | spring-social-yammer/src/main/java/org/springframework/social/yammer/api/SubscriptionOperations.java | Java | apache-2.0 | 2,029 |
package ca.intelliware.ihtsdo.mlds.config;
import java.util.Set;
import java.util.SortedSet;
import javax.annotation.PreDestroy;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.metamodel.EntityType;
import org.slf4j.Logger;
imp... | IHTSDO/MLDS | src/main/java/ca/intelliware/ihtsdo/mlds/config/CacheConfiguration.java | Java | apache-2.0 | 3,416 |
package com.coolweather.android.gson;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by peekaboo on 2017/5/27.
*/
public class Weather {
public String status;
public Basic basic;
public AQI aqi;
public Now now;
public Suggestion suggestion;
@Se... | 21592464/coolweather | app/src/main/java/com/coolweather/android/gson/Weather.java | Java | apache-2.0 | 393 |
package org.cnio.scombio.jmfernandez.GOPHER;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.HashSet;
import java.util.logging.Logger;
import java.util.Map;
import java.util.zip.... | inab/GOPHER | GOPHERPrepare/src/org/cnio/scombio/jmfernandez/GOPHER/CIFDict.java | Java | apache-2.0 | 7,461 |
/**
* YIXUN_1.5_EE
*/
package com.xiongyingqi.util;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* MD5加密帮助类
*
* @author 瑛琪 <a href="http://xiongyingqi.com">xiongyingqi.com</a>
* @version 2013-11-4 下午6:06:54
*/
public class ... | blademainer/MessagingSystem | src/main/java/com/xiongyingqi/util/EncryptMD5.java | Java | apache-2.0 | 2,321 |
/*
* 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 ... | adamkewley/jobson | jobson/src/main/java/com/github/jobson/api/v1/APIRestLink.java | Java | apache-2.0 | 1,340 |
/*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this f... | crate/crate | libs/sql-parser/src/main/java/io/crate/sql/tree/NotNullColumnConstraint.java | Java | apache-2.0 | 1,927 |
package com.alibaba.easyexcel.test.core.style;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import com.alibaba.easyexcel.test.core.StyleTestUtils;
import com.alibaba.easyexcel.test.util.TestFileUtil;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.annotation.write.style.HeadFon... | alibaba/easyexcel | src/test/java/com/alibaba/easyexcel/test/core/style/StyleDataTest.java | Java | apache-2.0 | 12,710 |
package com.vmware.vim25;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for VirtualMachineRuntimeInfoDasProtectionState complex type.
*
* <p>The following schema fragment specifies the ex... | jdgwartney/vsphere-ws | java/JAXWS/samples/com/vmware/vim25/VirtualMachineRuntimeInfoDasProtectionState.java | Java | apache-2.0 | 1,378 |
/**
* Generate time : 2009-06-15 18:12:38
* Version : 1.0.1.V20070717
*/
package com.baosight.sts.st.cw.domain;
//import com.baosight.bfms.as.as.common.bill.IBillHead;
import com.baosight.bfms.as.as.common.bill.IBillHead;
import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
... | stserp/erp1 | source/src/com/baosight/sts/st/cw/domain/STCW0201.java | Java | apache-2.0 | 26,598 |
package com.wisobi.leanbean.restlet.resource;
import com.wisobi.leanbean.Hashids;
import com.wisobi.leanbean.LeanBeanDao;
import com.wisobi.leanbean.LeanBeanUtil;
import com.wisobi.leanbean.dto.DAO2DTOMapper;
import com.wisobi.leanbean.dto.DTO2DAOMapper;
import com.wisobi.leanbean.dto.MeetingTO;
import com.wisobi.lean... | wisobi/leanbean | leanbean-api/src/main/java/com/wisobi/leanbean/restlet/resource/MeetingResource.java | Java | apache-2.0 | 2,584 |
/**
* Copyright 2008 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... | adragomir/hbaseindex | src/java/org/apache/hadoop/hbase/rest/TableModel.java | Java | apache-2.0 | 8,310 |
package org.locke.biokit.biology.genetics.bases.ambiguous;
import org.locke.biokit.biology.genetics.Base;
public class Any extends Base
{
@Override
public char asCharacter()
{
return 'N';
}
}
| jonathanlocke/biokit | src/main/java/org/locke/biokit/biology/genetics/bases/ambiguous/Any.java | Java | apache-2.0 | 200 |
/*
* 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 ... | wu-sheng/sky-walking | oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/metric/promethues/counter/ID.java | Java | apache-2.0 | 1,179 |
package jibe.tools.fsm.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;
/**
*
*/
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
publ... | joachimbjorklund/jibe-tools-fsm | src/main/java/jibe/tools/fsm/annotations/TransitionOnTimeout.java | Java | apache-2.0 | 403 |
package org.apereo.cas.configuration.model.core.audit;
import org.apereo.cas.configuration.model.support.jpa.AbstractJpaProperties;
import org.apereo.inspektr.audit.support.AbstractStringAuditTrailManager;
/**
* This is {@link AuditProperties}.
*
* @author Misagh Moayyed
* @since 5.0.0
*/
public class AuditPrope... | doodelicious/cas | core/cas-server-core-configuration/src/main/java/org/apereo/cas/configuration/model/core/audit/AuditProperties.java | Java | apache-2.0 | 3,841 |
/*
* 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... | zkidkid/elasticsearch | core/src/test/java/org/elasticsearch/action/admin/cluster/node/tasks/TransportTasksActionTests.java | Java | apache-2.0 | 36,391 |
/*
* 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 ... | igor-sfdc/aura | aura-impl/src/main/java/org/auraframework/impl/javascript/controller/JavascriptControllerDef.java | Java | apache-2.0 | 4,470 |
/*
* Java port of Bullet (c) 2008 Martin Dvorak <jezek2@advel.cz>
*
* Bullet Continuous Collision Detection and Physics Library
* Copyright (c) 2003-2008 Erwin Coumans http://www.bulletphysics.com/
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be ... | vbousquet/libgdx-jbullet | src/com/bulletphysics/collision/shapes/StaticPlaneShape.java | Java | apache-2.0 | 4,957 |
package ru.redenergy.bs.screen;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.Stage;
i... | FRedEnergy/bright-sunset | core/src/ru/redenergy/bs/screen/FinishScreen.java | Java | apache-2.0 | 2,457 |
package com.gentics.mesh.core.webroot;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.when;
import org.junit.Test;
import org.mockito.Mockito;
import com.gentics.mesh.core.data.branch.HibBranch;
pu... | gentics/mesh | tests/tests-common/src/main/java/com/gentics/mesh/core/webroot/PathPrefixUtilTest.java | Java | apache-2.0 | 1,290 |
package com.vmware.vim25;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for InvalidDasRestartPriorityForFtVm complex type.
*
* <p>The followi... | jdgwartney/vsphere-ws | java/JAXWS/samples/com/vmware/vim25/InvalidDasRestartPriorityForFtVm.java | Java | apache-2.0 | 2,225 |
/**
* Copyright (c) 2016 European Organisation for Nuclear Research (CERN), All Rights Reserved.
*/
package demo.analysis;
import static cern.streaming.pool.core.testing.NamedStreamId.ofName;
import cern.streaming.pool.core.service.StreamId;
public class DemoStreams {
public static final StreamId... | streamingpool/streamingpool-ext-analysis | src/demo/demo/analysis/DemoStreams.java | Java | apache-2.0 | 464 |
package com.comcast.oscar.cablelabsdefinitions;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* @bannerLicense
Copyright 2015 Comcast Cable Communications Management, LLC<br>
___________________________________________________________________<br>
Licensed under the Apache License... | Comcast/Oscar | src/com/comcast/oscar/cablelabsdefinitions/Constants.java | Java | apache-2.0 | 13,139 |
/*
* Artifactory is a binaries repository manager.
* Copyright (C) 2012 JFrog Ltd.
*
* Artifactory is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your o... | alancnet/artifactory | base/config/src/main/java/org/artifactory/logging/version/v1/LogbackConfigSwapper.java | Java | apache-2.0 | 2,072 |
/*******************************************************************************
* Copyright 2015 MobileMan GmbH
* www.mobileman.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
* ... | MobileManAG/Project-H-Backend | src/main/java/com/mobileman/projecth/business/ConfigurationService.java | Java | apache-2.0 | 1,652 |
package com.atlassian.plugins.codegen.modules.common.web;
import java.io.File;
import java.util.regex.Matcher;
import com.atlassian.plugins.codegen.AbstractCodegenTestCase;
import com.atlassian.plugins.codegen.modules.PluginModuleLocation;
import org.dom4j.Document;
import org.junit.Before;
import org.junit.Test;
i... | mrdon/AMPS | plugin-module-codegen-engine/src/test/java/com/atlassian/plugins/codegen/modules/common/web/WebPanelRendererTest.java | Java | apache-2.0 | 2,219 |
/***********************************************************************
* Copyright (c) 2013-2019 Commonwealth Computer Research, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and... | elahrvivaz/geomesa | geomesa-convert/geomesa-convert-common/src/main/java/org/locationtech/geomesa/convert/ConverterConfigProvider.java | Java | apache-2.0 | 651 |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | googleapis/java-compute | proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteDiskRequest.java | Java | apache-2.0 | 42,420 |
/*
* 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 ... | zimmermatt/flink | flink-contrib/flink-statebackend-rocksdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksDBAsyncSnapshotTest.java | Java | apache-2.0 | 16,165 |
/*
* Copyright 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 applic... | leapframework/framework | base/core/src/test/java/tests/core/ioc/BeanProxyTest.java | Java | apache-2.0 | 2,385 |
/*
* Copyright 2006-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | christophd/citrus | vintage/citrus-java-dsl/src/test/java/com/consol/citrus/integration/runner/SendSoapAttachmentTestRunnerIT.java | Java | apache-2.0 | 6,070 |
/*
* 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.execution.configuration;
import com.intellij.execution.ExecutionException;
import com.intellij.execution.Location;
import com.intellij.execution.confi... | ThiagoGarciaAlves/intellij-community | platform/lang-api/src/com/intellij/execution/configuration/RunConfigurationExtensionsManager.java | Java | apache-2.0 | 6,878 |
package appElements;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
public class FxAlert {
//General Fucntion for alerting
public static void alertInfo(String header, String body) {
//Show an alert
Alert a = new Alert(AlertType.INFORMATION);
a.setTitle("Resturant Appli... | torch2424/CECS343JavaResturant | JavaFXProject/src/appElements/FxAlert.java | Java | apache-2.0 | 606 |
import org.junit.Test;
import java.util.Arrays;
/**
* @author yanfa
* @version 1.0 2016-05-02
*/
public class LeetCode_033_SearchInRotated
{
public int search(int[] nums, int target)
{
int pivot = 0;
while(pivot < nums.length - 1 && nums[pivot] < nums[pivot + 1])
pivot++;
... | jnuyanfa/YanFa-LeetCode-with-JAVA | src/leetcode033_SearchInRotatedSortedArray/LeetCode_033_SearchInRotated.java | Java | apache-2.0 | 657 |
package me.zhouzhuo810.zzapidoc.project.service;
import me.zhouzhuo810.zzapidoc.common.result.BaseResult;
import me.zhouzhuo810.zzapidoc.common.service.BaseService;
import me.zhouzhuo810.zzapidoc.project.entity.ErrorCodeEntity;
/**
* Created by zz on 2017/12/29.
*/
public interface ErrorCodeService extends BaseServ... | zhouzhuo810/ZzApiDoc | src/main/java/me/zhouzhuo810/zzapidoc/project/service/ErrorCodeService.java | Java | apache-2.0 | 843 |
/*
* 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 com.stpi.controller;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import jav... | YojhanLR/ProyectoSTPI-JavaEE | src/java/com/stpi/controller/MonitoreoTransfer_Index.java | Java | apache-2.0 | 2,425 |
package com.xiaoshangxing.Private.QCW.tongxuededian;
import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
impor... | JNDX25219/XiaoShangXing-old | app/src/main/java/com/xiaoshangxing/Private/QCW/tongxuededian/AKyifudianActivity.java | Java | apache-2.0 | 10,573 |
/**
* Copyright (C) 2015 Fernando Cejas 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... | Sca09/intelygenz_rss | app/src/main/java/es/intelygenz/rss/presentation/internal/di/PerActivity.java | Java | apache-2.0 | 1,072 |
package ru.stqa.ptf.mantis.appmanager;
import org.openqa.selenium.By;
import ru.stqa.ptf.mantis.model.User;
import ru.stqa.ptf.mantis.model.Users;
/**
* Created by Olga on 15.04.2016.
*/
public class UserHelper extends HelperBase{
public UserHelper(ApplicationManager app) {
super(app);
}
publ... | allga/java_pft | mantis-tests/src/test/java/ru/stqa/ptf/mantis/appmanager/UserHelper.java | Java | apache-2.0 | 999 |
/*
* 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-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/model/DescribeSSLPoliciesRequest.java | Java | apache-2.0 | 7,666 |
/*
* Copyright 2012, Google 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 copyright
* notice, this list of conditio... | AndreJCL/JCL | JCL_Android/app/src/main/java/org/jf/dexlib2/iface/value/LongEncodedValue.java | Java | apache-2.0 | 3,048 |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014 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 Licen... | emag/codereading-undertow | core/src/main/java/io/undertow/util/QValueParser.java | Java | apache-2.0 | 7,813 |
/*
* Copyright 2011-2016 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | IHTSDO/snow-owl | snomed/com.b2international.snowowl.snomed.datastore/src/com/b2international/snowowl/snomed/datastore/index/change/RelationshipChangeProcessor.java | Java | apache-2.0 | 5,246 |
/**********************************************************************************
* $URL: https://source.sakaiproject.org/svn/sam/tags/sakai-10.6/samigo-services/src/java/org/sakaiproject/tool/assessment/facade/authz/AuthorizationFacadeQueriesAPI.java $
* $Id: AuthorizationFacadeQueriesAPI.java 106463 2012-04-02 12... | eemirtekin/Sakai-10.6-TR | samigo/samigo-services/src/java/org/sakaiproject/tool/assessment/facade/authz/AuthorizationFacadeQueriesAPI.java | Java | apache-2.0 | 1,719 |
/*
*
* 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
* "Licens... | iraghumitra/incubator-metron | metron-analytics/metron-profiler/src/main/java/org/apache/metron/profiler/bolt/ProfileBuilderBolt.java | Java | apache-2.0 | 17,502 |
/*
* Copyright 2016-2018 Javier Garcia Alonso.
*
* 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... | profesorfalken/jSensors | src/main/java/com/profesorfalken/jsensors/model/sensors/Fan.java | Java | apache-2.0 | 864 |
package com.method76.comics.marvel.data;
import com.method76.comics.marvel.data.substr.MarvelCharacter;
import java.util.List;
/**
* Created by Sungjoon Kim on 2016-01-30.
*/
public class MarvelCharacters {
private List<MarvelCharacter> results;
public List<MarvelCharacter> getResults() {
return ... | method76/android-MarvelApp | app/src/main/java/com/method76/comics/marvel/data/MarvelCharacters.java | Java | apache-2.0 | 436 |
/**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* ... | stevenhva/InfoLearn_OpenOLAT | src/main/java/org/olat/ims/qti/statistics/manager/QTIStatisticsManagerImpl.java | Java | apache-2.0 | 18,480 |
/*
* Copyright (c) 2012 - 2020 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 ... | ferstl/pedantic-pom-enforcers | src/test/java/com/github/ferstl/maven/pomenforcers/ErrorReportMatcher.java | Java | apache-2.0 | 1,894 |
package com.tinkerpop.gremlin.console.plugin;
import com.tinkerpop.gremlin.tinkergraph.structure.TinkerFactory;
import org.codehaus.groovy.tools.shell.Groovysh;
import org.codehaus.groovy.tools.shell.IO;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
import static org.hamcrest.CoreMatchers.co... | Lab41/tinkerpop3 | gremlin-console/src/test/java/com/tinkerpop/gremlin/console/plugin/UtilitiesGremlinPluginTest.java | Java | apache-2.0 | 2,280 |
/*
* Copyright 2016, Google 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 copyright
* notice, this list of conditio... | AndreJCL/JCL | JCL_Android/app/src/main/java/org/jf/dexlib2/dexbacked/instruction/DexBackedInstruction4rcc.java | Java | apache-2.0 | 3,009 |
package simple;
public class Computer {
private CPU cpu;
public Computer() {
}
public Computer(CPU c) {
cpu = c;
}
public CPU getCpu() {
return cpu;
}
public void setCpu(CPU cpu) {
this.cpu = cpu;
}
public void print() {
cpu.print();
}
}
| dodaro/ea2014 | Lesson3/src/simple/Computer.java | Java | apache-2.0 | 268 |
/* Copyright (c) 2011 Danish Maritime Authority.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | maritime-web/NoGoService | nogo/src/main/java/dk/dma/nogoservice/service/RemoteWeatherService.java | Java | apache-2.0 | 3,020 |
package com.dl.commonviewpager;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} | DHASA2017/slide_viewpager | app/src/test/java/com/dl/commonviewpager/ExampleUnitTest.java | Java | apache-2.0 | 315 |
/*
* Copyright 2017 Matthias Hanisch
*
* 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... | reallyinsane/mathan-latex-maven-plugin | mathan-latex-it/src/test/java/io/mathan/gradle/latex/configuration/MakeindexstylefileTest.java | Java | apache-2.0 | 1,233 |
package com.empresa.marco.data;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
public class ObjectDefinationData {
private Integer objectId;
private String name;
private String schemaName;
private String dataBaseName;
private String userDefinedName;
private S... | govindrgaikwad/java_repo | EmpresaMarco/src/main/java/com/empresa/marco/data/ObjectDefinationData.java | Java | apache-2.0 | 3,170 |
/**上午11:13:57
* @author zhangyh2
* Person.java
* TODO
*/
package com.darly.dlvideo.bean;
/**
* @author zhangyh2 Person 上午11:13:57 TODO
*/
public class Person {
private int id;
private String url;
private String title;
private String icon;
public int getId() {
return id;
}
public void setId(int id)... | darlyhellen/oto | DLVideo/src/com/darly/dlvideo/bean/Person.java | Java | apache-2.0 | 671 |
package org.rhq.alerts.impl;
import org.kie.api.KieServices;
import org.kie.api.builder.KieBuilder;
import org.kie.api.builder.KieFileSystem;
import org.kie.api.builder.KieRepository;
import org.kie.api.builder.Message;
import org.kie.api.runtime.KieContainer;
import org.kie.api.runtime.KieSession;
import org.kie.api.... | lucasponce/rhq-alerts | rhq-alerts/src/main/java/org/rhq/alerts/impl/BasicCepEngineImpl.java | Java | apache-2.0 | 4,929 |
/**
* Copyright (c) 2008, 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 applicabl... | asomov/snakeyaml | src/test/java/org/yaml/snakeyaml/issues/issue318/ContextClassLoaderTest.java | Java | apache-2.0 | 4,598 |
/*
* Copyright 2014 - Allanbank Consulting, 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 b... | allanbank/mongodb-async-examples | src/main/java/aggregation/AggregationLetDemo.java | Java | apache-2.0 | 6,637 |
/*
* 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/functional_tests/MapTypeTest.java | Java | apache-2.0 | 26,706 |
package com.fsryan.forsuredb.annotationprocessor.generator.code;
import com.fsryan.forsuredb.annotationprocessor.FSAnnotationProcessor;
import com.fsryan.forsuredb.annotationprocessor.generator.BaseGenerator;
import com.fsryan.forsuredb.api.TypedRecordContainer;
import com.squareup.javapoet.AnnotationSpec;
import com.... | ryansgot/forsuredbcompiler | forsuredbcompiler/src/main/java/com/fsryan/forsuredb/annotationprocessor/generator/code/JavaSourceGenerator.java | Java | apache-2.0 | 3,018 |
package com.flyhero.flyapi.dao;
import java.util.List;
import com.flyhero.flyapi.entity.OperateLog;
import com.flyhero.flyapi.pojo.LogPojo;
public interface OperateLogMapper {
List<LogPojo> findLog(Integer projectId);
List<OperateLog> findLogDetialByProId(Integer projectId);
List<OperateLog> findAllLogByU... | flyhero/flyapi2.0 | flyapi-dao/src/main/java/com/flyhero/flyapi/dao/OperateLogMapper.java | Java | apache-2.0 | 617 |
package org.jboss.hal.processor.mbui.table;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.inject.Inject;
import com.google.gwt.safehtml.shared.SafeHtmlUtils;
import elemental2.dom.HTMLElement;
import org.jboss.gwt.elemento.core.builder.ElementsB... | hpehl/hal.next | app/src/test/resources/org/jboss/hal/processor/mbui/table/Mbui_CustomActionView.java | Java | apache-2.0 | 2,940 |
package com.flying.promotion.atomic.array;
import java.util.concurrent.atomic.AtomicIntegerArray;
/**
* ������˵����
* 10���̲߳����ҵ�
* @author zhongyin.xy
*
*/
public class AtomicIntegerArrayTest {
/**
* �����ķ����б�
* @see AtomicIntegerArray#addAndGet(int, int) ִ�мӷ�����һ������Ϊ������±꣬�ڶ�������Ϊ���ӵ������... | wangshijun101/JavaSenior | JavaLaoA/src/main/java/com/flying/promotion/atomic/array/AtomicIntegerArrayTest.java | Java | apache-2.0 | 2,594 |
package com.school.view.web;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;
import com.opensymphony.xwork2.ActionSupport;
import com.school.pub... | horsy/SchoolManage | src/com/school/view/web/DelStudent.java | Java | apache-2.0 | 2,167 |
package com.l.smartcityuniversalmarket.loader;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.l.smar... | chacha1337/SmartCityUniversalMarket | SmartCityUniversalMarket/app/src/main/java/com/l/smartcityuniversalmarket/loader/LoadAdapter.java | Java | apache-2.0 | 1,599 |
/**
* 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... | NJUJYB/disYarn | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineClientImpl.java | Java | apache-2.0 | 26,636 |
package com.compomics.mascotdatfile.util.exception;
/**
* Created by IntelliJ IDEA.
* User: kennyhelsens
* Date: Oct 12, 2010
* Time: 2:41:39 PM
* To change this template use File | Settings | File Templates.
*/
public class MascotDatfileException extends RuntimeException {
/**
* This error is thrown u... | compomics/mascotdatfile | src/main/java/com/compomics/mascotdatfile/util/exception/MascotDatfileException.java | Java | apache-2.0 | 591 |
package com.ee.imperator.template.thymeleaf;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import org.thymeleaf.TemplateEngine;
import org.thymeleaf.context.AbstractContext;
import com.ee.imperator.template.Template;
public class Thyme... | Assumeru/Imperator4J | src/main/java/com/ee/imperator/template/thymeleaf/ThymeleafTemplate.java | Java | apache-2.0 | 1,076 |
/**
*
*/
/**
* @author l.biava
*
*/
package it.prisma.businesslayer.bizws.config.security; | pon-prisma/PrismaDemo | BusinessLayer/src/main/java/it/prisma/businesslayer/bizws/config/security/package-info.java | Java | apache-2.0 | 96 |
/**
* Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.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
*
* ... | selecterskyandroid/framework | src/main/java/net/tsz/afinal/FinalActivity.java | Java | apache-2.0 | 3,721 |