code stringlengths 3 1.04M | repo_name stringlengths 5 109 | path stringlengths 6 306 | language stringclasses 1
value | license stringclasses 15
values | size int64 3 1.04M |
|---|---|---|---|---|---|
/* Copyright (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.version.base;
import org.junit.Test;
import net.sf.mmm.test.ObjectHelper;
/**
* The test of {@link GenericNameVersionComment}.
*
* @author hohwille
*/
public cl... | m-m-m/util | version/src/test/java/net/sf/mmm/util/version/base/GenericNameVersionCommentTest.java | Java | apache-2.0 | 4,131 |
/*
* Copyright 2014 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 applic... | ramonrabello/devfestnorte-app | android/src/main/java/br/com/devfest/norte/io/SessionsHandler.java | Java | apache-2.0 | 15,021 |
package com.ctrip.www.androidlocationmanager;
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)... | huang303513/AndroidBasicCommonDemos | android的LocationManager的使用/app/src/test/java/com/ctrip/www/androidlocationmanager/ExampleUnitTest.java | Java | apache-2.0 | 329 |
/**
* Copyright 2017 Twitter. 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... | twitter/GraphJet | graphjet-core/src/main/java/com/twitter/graphjet/bipartite/ReverseChronologicalMultiSegmentIterator.java | Java | apache-2.0 | 2,220 |
/*
* Copyright 2010 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... | martenscs/optaplanner-osgi | org.optaplanner.examples.projectjobscheduling/src/org/optaplanner/examples/projectjobscheduling/persistence/ProjectJobSchedulingImporter.java | Java | apache-2.0 | 20,425 |
/***
Copyright (c) 2012 CommonsWare, 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 in writin... | peterdocter/cw-omnibus | MapsV2/Poly/src/com/commonsware/android/mapsv2/poly/MainActivity.java | Java | apache-2.0 | 6,502 |
// 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 unde... | Buggaboo/j2objc | testing/mockito/src/main/java/org/mockito/internal/creation/ios/IosMockMaker.java | Java | apache-2.0 | 10,289 |
package com.jeremie.spring.adol.service;
/**
* @author guanhong 15/8/18 下午4:07.
*/
public interface AdolService {
String getSomethingTest();
}
| JeremieAstray/crisis-rpc | crisis-rpc-demo/services/adol/src/main/java/com/jeremie/spring/adol/service/AdolService.java | Java | apache-2.0 | 156 |
/*******************************************************************************
* Copyright 2013 SAP AG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | SAP/cloud-odata-java | odata-core/src/main/java/com/sap/core/odata/core/ep/producer/JsonFeedEntityProducer.java | Java | apache-2.0 | 3,506 |
package com.theisenp.harbor.utils;
import static org.fest.assertions.Assertions.assertThat;
import org.joda.time.Duration;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import com.theisenp.harbor.Harbor;
/**
* Unit tests for {@link HarborUtils}
*
* @author patrick.theis... | theisenp/harbor | src/test/java/com/theisenp/harbor/utils/HarborUtilsTest.java | Java | apache-2.0 | 2,949 |
/*
* 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 ... | greghogan/flink | flink-kubernetes/src/main/java/org/apache/flink/kubernetes/kubeclient/DefaultKubeClientFactory.java | Java | apache-2.0 | 3,586 |
package net.kwmt27.codesearch.entity.events;
import android.content.Context;
import android.view.View;
import android.widget.TextView;
import com.google.android.flexbox.FlexboxLayout;
import com.google.gson.annotations.SerializedName;
import net.kwmt27.codesearch.entity.EventEntity;
import net.kwmt27.codesearch.enti... | kwmt/GitHubSearch | app/src/main/java/net/kwmt27/codesearch/entity/events/IssuesEvent.java | Java | apache-2.0 | 1,445 |
/*
* Copyright (C) 2010 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | ydc201211/VirtualCampus | src/com/vc/code/BeepManager.java | Java | apache-2.0 | 4,184 |
/*
* 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 ... | Claudenw/classpath-utils | src/test/java/org/xenei/classpathutils/ClassPathUtilsTest.java | Java | apache-2.0 | 4,562 |
/*
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... | itgeeker/jdk | src/com/sun/org/apache/xml/internal/utils/DOMOrder.java | Java | apache-2.0 | 1,530 |
/*
* 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/transform/DeletePackageRequestMarshaller.java | Java | apache-2.0 | 2,004 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.01.2... | foxerfly/Netbeans-JPA-Modeler | JPA Specification/src/org/netbeans/jpa/modeler/spec/AttributeOverride.java | Java | apache-2.0 | 3,054 |
package gov.va.med.lom.avs.model;
public class PatientInformation {
private String name;
private String dob;
private int age;
private String smokingStatus;
private String smokingStatusDate;
private String smokingStatusCode;
private String preferredLanguage;
public String getName() {
... | VHAINNOVATIONS/AVS | ll-avs/ll-avs-service/src/main/java/gov/va/med/lom/avs/model/PatientInformation.java | Java | apache-2.0 | 1,390 |
/*
* 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 ... | dhutchis/accumulo | server/tserver/src/main/java/org/apache/accumulo/tserver/FileManager.java | Java | apache-2.0 | 19,705 |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* 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... | Sargul/dbeaver | plugins/org.jkiss.dbeaver.tasks.native/src/org/jkiss/dbeaver/tasks/nativetool/AbstractNativeToolHandler.java | Java | apache-2.0 | 22,739 |
/*
* 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 ... | BabbleGrabble/incubator-zeppelin-oauth2 | zeppelin-server/src/test/java/org/apache/zeppelin/security/OAuth2UtilsTest.java | Java | apache-2.0 | 2,909 |
/*
* Copyright 2019 LINE Corporation
*
* LINE Corporation licenses this file to you 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 r... | minwoox/armeria | grpc/src/test/java/com/linecorp/armeria/common/grpc/protocol/ArmeriaMessageDeframerTest.java | Java | apache-2.0 | 15,676 |
package ru.sdroman.jsoup;
import org.apache.log4j.Logger;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.TimeUnit;
/**
* @author sdroman
* @since 02.2018
*/
public class RunTask extends TimerTask {
... | roman-sd/java-a-to-z | chapter_008/src/main/java/ru/sdroman/jsoup/RunTask.java | Java | apache-2.0 | 1,233 |
package com.taotao.sso.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import... | luoyefeiwu/learn_java | taotao-sso/src/main/java/com/taotao/sso/controller/PageController.java | Java | apache-2.0 | 1,537 |
package com.brew.climbon.asyncTasks;
import android.content.Context;
import android.os.AsyncTask;
import com.brew.climbon.helpers.Constants;
import org.apache.http.util.ByteArrayBuffer;
import java.io.BufferedInputStream;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
/**
* Async ... | tbali16/climbon | ClimbOnBayArea/src/main/java/com/brew/climbon/asyncTasks/DownloadRoutesTask.java | Java | apache-2.0 | 2,268 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | spepping/fop-cs | src/java/org/apache/fop/complexscripts/fonts/GlyphSubstitutionState.java | Java | apache-2.0 | 9,042 |
/**
* Copyright 2013 Matija Mazi.
* Copyright 2014 Giannis Dzegoutanis.
*
* 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 ... | troggy/bitcoinj | core/src/main/java/com/google/bitcoin/crypto/HDUtils.java | Java | apache-2.0 | 3,440 |
package com.amplify.stofor;
import com.amplify.httpclient.AmplifyHttpClient;
import com.amplify.httpclient.AmplifyHttpClientFactory;
import com.amplify.stofor.testinjectors.TestInjector;
import com.amplify.stofor.utils.LimitedQueueRoboIntentService;
import com.amplify.stofor.utils.NetworkConnectivity;
import com.ampli... | amplify-education/stofor | src/test/java/com/amplify/stofor/MetricUploadIntentServiceTest.java | Java | apache-2.0 | 3,690 |
package com.github.lwr.tomcat;
import org.apache.catalina.LifecycleException;
import org.apache.catalina.core.StandardContext;
import org.apache.catalina.loader.WebappClassLoaderBase;
import org.apache.catalina.webresources.LWR_CustomHelper;
import org.apache.catalina.webresources.StandardRoot;
import java.io.*;
impo... | lwr/tomcat8-custom-loader | src/main/java/com/github/lwr/tomcat/CustomWebappClassLoader.java | Java | apache-2.0 | 3,867 |
/*
* Copyright 2015 OpenMarket Ltd
*
* 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 ... | Nehasing/Nehachat | matrix-sdk/src/main/java/org/matrix/androidsdk/fragments/MatrixMessageListFragment.java | Java | apache-2.0 | 54,242 |
/**
* Copyright 2005-2011 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... | ua-eas/ua-rice-2.1.9 | it/kew/src/test/java/org/kuali/rice/kew/routemodule/TestRouteLevel.java | Java | apache-2.0 | 1,238 |
/*
* 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 n... | Chasego/kafka | clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java | Java | apache-2.0 | 82,775 |
package com.enjoy.love;
import org.junit.runner.RunWith;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes=Application.class)
public class ... | 520github/enjoy-love | src/test/java/com/enjoy/love/BaseSpringBootTest.java | Java | apache-2.0 | 371 |
/*
* 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 ... | julianhyde/phoenix | phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java | Java | apache-2.0 | 14,718 |
package com.wjbolles.adminmarket.eco.dao;
import org.bukkit.configuration.file.YamlConfiguration;
import org.junit.Test;
import java.io.File;
import static org.junit.Assert.*;
import static org.junit.Assert.assertFalse;
public class YamlItemListingDaoTest extends AbstractItemListingDaoTest {
YamlConfiguration y... | wjbolles/AdminMarket | src/test/java/com/wjbolles/adminmarket/eco/dao/YamlItemListingDaoTest.java | Java | apache-2.0 | 3,385 |
/*
* 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 ... | ManfredTremmel/gwt-commons-lang3 | src/main/java/org/apache/commons/lang3/reflect/Typed.java | Java | apache-2.0 | 1,105 |
package org.sh.muckle.runtime;
/*
Copyright 2013 The Muckle Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... | muckleproject/muckle | src/org/sh/muckle/runtime/HttpSessionHadError.java | Java | apache-2.0 | 920 |
package org.apache.rave.model;
import javax.xml.bind.annotation.XmlTransient;
/**
* Created by Dahyna Guzman on 2/9/2014.
*/
@XmlTransient
public interface ExpensesTypeGroup {
public String getName_en();
public void setName_en(String name_en);
public String getName_sp();
public void setName_sp(S... | lletsica/my_test_repo | rave-components/rave-core-api/src/main/java/org/apache/rave/model/ExpensesTypeGroup.java | Java | apache-2.0 | 505 |
package com.sequenceiq.cloudbreak.common.type;
public class OrchestratorConstants {
public static final String MARATHON = "MARATHON";
public static final String SALT = "SALT";
public static final String SWARM = "SWARM";
public static final String YARN = "YARN";
private OrchestratorConstants() {... | sequenceiq/cloudbreak | cloud-common/src/main/java/com/sequenceiq/cloudbreak/common/type/OrchestratorConstants.java | Java | apache-2.0 | 330 |
/**********************************************************************
Copyright (c) 2005 Andy Jefferson and others. 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
... | GoogleCloudPlatform/datanucleus-appengine | src/org/datanucleus/store/mapped/mapping/EmbeddedKeyPCMapping.java | Java | apache-2.0 | 1,885 |
/*
* Copyright (C) 2015 BigTesting.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 agreed ... | lantunes/fixd | src/main/java/org/bigtesting/fixd/session/Session.java | Java | apache-2.0 | 1,566 |
package com.alibaba.wasmWeex.uitest.TC_AG;
import com.alibaba.wasmWeex.WXPageActivity;
import com.alibaba.wasmWeex.util.TestFlow;
import java.util.TreeMap;
import org.junit.Before;
import org.junit.Test;
public class AG_Border_Div_Border_Bottom_Right_Radius extends TestFlow {
public AG_Border_Div_Border_Bottom_Right_... | Hanks10100/weex | android/playground/app/src/androidTest/java/com/alibaba/wasmWeex/uitest/TC_AG/AG_Border_Div_Border_Bottom_Right_Radius.java | Java | apache-2.0 | 1,013 |
package com.jayway.android.robotium.solo;
import java.util.ArrayList;
import android.app.Activity;
import android.app.Instrumentation;
import android.content.pm.ActivityInfo;
import android.view.KeyEvent;
import android.view.View;
import android.widget.AbsListView;
import android.widget.Button;
import android.widget.C... | moizjv/robotium | robotium-solo/src/main/java/com/jayway/android/robotium/solo/Solo.java | Java | apache-2.0 | 59,557 |
package com.bct.gpstracker.base;
import java.util.List;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.*;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;
import android.view.MotionEvent;
import android.view.inputmethod.InputMethodManager;
import andro... | Tomorrowhi/GpsTracker | src/com/bct/gpstracker/base/BaseActivity.java | Java | apache-2.0 | 7,570 |
package no.uio.ifi.alboc.scanner;
/*
* class Token
*/
/*
* The different kinds of tokens read by Scanner.
*/
public enum Token {
addToken, ampToken, assignToken,
commaToken,
divideToken,
elseToken, eofToken, equalToken,
forToken,
greaterEqualToken, greaterToken,
ifToken, intToken... | aulonm/INF2100 | alboc/no/uio/ifi/alboc/scanner/Token.java | Java | apache-2.0 | 1,428 |
package org.jsmart.zerocode.core.engine.assertion;
import java.math.BigDecimal;
import java.util.Comparator;
public class NumberComparator implements Comparator<Number> {
/**
* Compares two numbers and returns their differences.
* e.g. 3 compare 3.0 = 0, 3.0 compare 3 = 0, 3 compare 3.12 = -1, 3.12 com... | authorjapps/zerocode | core/src/main/java/org/jsmart/zerocode/core/engine/assertion/NumberComparator.java | Java | apache-2.0 | 595 |
package org.openstack.atlas.api.validation.verifier;
import org.openstack.atlas.api.validation.expectation.ValidationResult;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class MustHaveLengthVerifier implements Verifier {
private int length;
public MustHaveLengthVer... | openstack-atlas/atlas-lb | core-api/core-common-api/src/main/java/org/openstack/atlas/api/validation/verifier/MustHaveLengthVerifier.java | Java | apache-2.0 | 1,017 |
/**
* Copyright 2004-2014 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... | kuali/kpme | core/api/src/main/java/org/kuali/kpme/core/api/groupkey/HrGroupKeyService.java | Java | apache-2.0 | 1,307 |
/*
* Copyright 2016 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.apach... | mhajas/keycloak | testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/forms/PasswordHashingTest.java | Java | apache-2.0 | 11,243 |
/*
* Copyright 2012 castLabs, Berlin
*
* 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 ... | olegloa/mp4parser | isoparser/src/main/java/org/mp4parser/boxes/samplegrouping/CencSampleEncryptionInformationGroupEntry.java | Java | apache-2.0 | 3,803 |
/*
* Copyright 2017 JBoss by Red Hat.
*
* 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... | ederign/kie-wb-common | kie-wb-common-screens/kie-wb-common-project-editor/kie-wb-common-project-editor-client/src/test/java/org/kie/workbench/common/screens/projecteditor/client/forms/KBaseFormViewImplTest.java | Java | apache-2.0 | 2,358 |
package com.airavat.panya.db.dao;
import java.util.Map;
public interface PanyaDao<T> {
long count(Map<String, Object> params);
T persist(T t);
boolean remove(Object id);
T findById(Object id);
T merge(T t);
}
| xrohit/panya | Source/src/main/java/com/airavat/panya/db/dao/PanyaDao.java | Java | apache-2.0 | 221 |
/*
Copyright (c) 2014,2015,2016 Ahome' Innovation Technologies. 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
... | qmx/lienzo-core | src/main/java/com/ait/lienzo/client/core/shape/PathPartListPathClipper.java | Java | apache-2.0 | 1,839 |
package cn.zxl.xmlbean.converter.container;
/**
* 容器父接口,定义了容器的标准
* @author 左潇龙
* @version 1.0.0
* @since 1.0.0
*/
public interface Container {
/**
* 获取容器中的xml数组
* @return xml数组
*/
String[] getXmlArray();
/**
* 获取容器中的object数组
* @return object数组
*/
<T> T... | xiaolongzuo/zxl | zxl-xmlbean-converter/src/main/java/cn/zxl/xmlbean/converter/container/Container.java | Java | apache-2.0 | 3,913 |
/*
* Copyright 2017 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... | vam-google/google-cloud-java | google-cloud-clients/google-cloud-translate/src/test/java/com/google/cloud/translate/TranslateOptionsTest.java | Java | apache-2.0 | 1,105 |
package org.poma.accumulo;
import org.apache.accumulo.core.data.ArrayByteSequence;
import org.apache.accumulo.core.data.ByteSequence;
import org.apache.accumulo.core.data.Range;
import org.apache.accumulo.core.data.Value;
import org.apache.accumulo.core.iterators.IteratorEnvironment;
import org.apache.accumulo.core.it... | phrocker/sharkbite | native-iterators-jni/src/main/java/org/poma/accumulo/WrappedIterator.java | Java | apache-2.0 | 2,520 |
/**
* Copyright 2011-2017 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... | cocoatomo/asakusafw | utils-project/java-dom/src/main/java/com/asakusafw/utils/java/model/syntax/ClassLiteral.java | Java | apache-2.0 | 998 |
//******************************************************************
//
// Copyright 2015 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... | WojciechLuczkow/iotivity | service/protocol-plugin/plugins/Android/plugin.hue/src/oic/plugin/hue/Activator.java | Java | apache-2.0 | 17,619 |
/*
* Copyright (c) 2005 Chris Richardson
*
* 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... | cer/pia | ormunit-hibernate/src/main/java/net/chrisrichardson/ormunit/hibernate/SimpleHibernatePersistenceTestsStrategy.java | Java | apache-2.0 | 2,100 |
/*
* Copyright (c) 2015 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.model.valid;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
... | emcvipr/controller-client-java | models/src/main/java/com/emc/storageos/model/valid/Endpoint.java | Java | apache-2.0 | 1,672 |
/*
* This file is based on a sample provided by Vincenzo De Notaris
* in the GitHub repository
* <a href="https://github.com/vdenotaris/spring-boot-security-saml-sample">vdenotaris /
* spring-boot-security-saml-sample</a>.
*
* <strong>Original copyright statement:</strong>
*
* Copyright 2014 Vincenzo De Notaris... | chrludwig/websec-saml2sp | src/main/java/de/chludwig/websec/saml2sp/controller/Saml2SPSSOController.java | Java | apache-2.0 | 3,990 |
/**
* 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... | punkhorn/camel-upstream | core/camel-core/src/test/java/org/apache/camel/processor/aggregator/AbstractDistributedTest.java | Java | apache-2.0 | 2,300 |
/**
* Copyright 2011 Link Intersystems GmbH <rene.link@link-intersystems.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
*
* U... | link-intersystems/GitDirStat | src/main/java/com/link_intersystems/math/Percentage.java | Java | apache-2.0 | 2,273 |
/*
* Copyright 2013-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | cloudfoundry/cf-java-client | cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/services/_DeleteServiceRequest.java | Java | apache-2.0 | 1,276 |
/**
* Copyright © 2013-2018 shadowhunt (dev@shadowhunt.de)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | thrawn-sh/subversion | src/test/java/de/shadowhunt/subversion/internal/DateUtilsTest.java | Java | apache-2.0 | 2,539 |
/*
* Copyright 2012 SURFnet bv, The Netherlands
*
* 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 ... | OpenConext/OpenConext-api | coin-api-serviceregistry-client/src/main/java/nl/surfnet/coin/janus/domain/Contact.java | Java | apache-2.0 | 1,755 |
/*
* Copyright 2017 David Ganster
*
* 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... | wirecube/android_additive_animations | additive_animations/src/main/java/at/wirecube/additiveanimations/helper/propertywrappers/ColorProperties.java | Java | apache-2.0 | 1,529 |
/**Copyright 2016 studioKeywi
* 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 wr... | studiokeywi/the-island | core/src/dev/studiokeywi/theisland/commands/AttackCommand.java | Java | apache-2.0 | 921 |
/*
Copyright 2007-2009 WebDriver committers
Copyright 2007-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 appli... | akiellor/selenium | java/client/test/org/openqa/selenium/support/ui/SelectTest.java | Java | apache-2.0 | 18,024 |
package io.github.xyzxqs.libs.xrv;
import java.util.List;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
/**
* @author xyzxqs (xyzxqs@gmail.com)
*/
public class XrvListAdapter extends XrvAdapter {
private List<?> dataList;
public XrvListAdapter() {
this(nu... | xyzxqs/xrv | xrv/src/main/java/io/github/xyzxqs/libs/xrv/XrvListAdapter.java | Java | apache-2.0 | 1,244 |
package utils.org.tempuri.adssoap;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p... | tom1120/ninja | zhaoyi/src/main/java/utils/org/tempuri/adssoap/SubDeviceOpenDoor.java | Java | apache-2.0 | 2,186 |
package br.com.javababies.politica.pessoa;
import java.util.Random;
import br.com.javababies.politica.validacao.Validacao;
public class TituloEleitor {
private int numero;
private int zona;
private int secao;
private Validacao vali = new Validacao();
public TituloEleitor(){
this.numero = numeroTit();
this... | josecmoj/javababies | politica/src/br/com/javababies/politica/pessoa/TituloEleitor.java | Java | apache-2.0 | 871 |
/*
* Copyright 2015 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under t... | porcelli-forks/kie-uberfire-extensions | kie-uberfire-social-activities/kie-uberfire-social-activities-backend/src/main/java/org/kie/uberfire/social/activities/servlet/SocialRouter.java | Java | apache-2.0 | 2,872 |
package com.example.android.sunshine.utils;
import junit.framework.Assert;
import java.util.concurrent.Callable;
/**
* Created by divya on 04/05/17.
*/
public abstract class PollingCheck {
private static final long TIME_SLICE = 50;
private long mTimeout = 3000;
public PollingCheck() {
}
publ... | divya2392/UdacitySunshine | app/src/androidTest/java/com/example/android/sunshine/utils/PollingCheck.java | Java | apache-2.0 | 1,279 |
package com.bootdo.activiti.dao;
import com.bootdo.activiti.domain.CustomActivitiesDO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
/**
*
* @author chglee
* @email 1992lcg@163.com
* @date 2019-04-16 11:59:25
*/
@Mapper
public interface CustomActivitiesDao {
Custo... | lcg0124/bootdo | bootdo/src/main/java/com/bootdo/activiti/dao/CustomActivitiesDao.java | Java | apache-2.0 | 710 |
<<<<<<< HEAD
package com.example.roundprogressbar;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import com.example.circlepregress.R;
public class MainActivity extends Activity {
private RoundProgressBar mRoun... | GongTommy/FirstSource | src/com/example/roundprogressbar/MainActivity.java | Java | apache-2.0 | 3,750 |
/**
* 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
* distri... | Scrier/opus | nuke/src/main/java/io/github/scrier/opus/nuke/task/Context.java | Java | apache-2.0 | 4,741 |
/*
* 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-config/src/main/java/com/amazonaws/services/config/model/DescribeDeliveryChannelsResult.java | Java | apache-2.0 | 5,777 |
/*
* Copyright 2016-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | ilya-klyuchnikov/buck | test/com/facebook/buck/event/listener/MachineReadableLogJsonViewTest.java | Java | apache-2.0 | 9,060 |
package com.example.a99460.smartnote;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
publi... | yuanlai0611/SmartNote | app/src/test/java/com/example/a99460/smartnote/ExampleUnitTest.java | Java | apache-2.0 | 406 |
package org.springside.examples.showcase.xml.jaxb;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bin... | yangjiandong/sshapp | examples/showcase/src/main/java/org/springside/examples/showcase/xml/jaxb/User.java | Java | apache-2.0 | 2,463 |
package ru.job4j.tracker;
/**
* Interface for all user actions.
* @since 02/07/2017
* @version 1
*/
public interface UserAction {
/**
* Action identificator.
* @returns action id
**/
int key();
/**
* Method execute action.
* @param input - class, which implements Input interface
* @param tracker - tracker
... | danailKondov/dkondov | chapter_002/src/main/java/ru/job4j/tracker/UserAction.java | Java | apache-2.0 | 457 |
package hope.it.works.rainfall;
import java.io.Serializable;
import java.util.ArrayList;
public class CloudParticles implements Serializable {
private static final long serialVersionUID = 1L;
public ArrayList<Integer> vertices;
}
| harishd10/cloud-track | rainfall/hope/it/works/rainfall/CloudParticles.java | Java | apache-2.0 | 244 |
package com.gersion.pictureshow.ui.adapter;
import android.view.View;
import com.gersion.pictureshow.R;
import com.gersion.pictureshow.base.BaseRVAdapter;
import com.gersion.pictureshow.base.BaseViewHolder;
import com.gersion.pictureshow.model.bean.WeChatBean;
import com.gersion.pictureshow.ui.viewholder.WeChatViewHo... | GaoGersy/LiveShow | app/src/main/java/com/gersion/pictureshow/ui/adapter/WeChatAdapter.java | Java | apache-2.0 | 946 |
import com.beust.jcommander.Parameter;
//Arguments applicable to any mode
class CommanderMain {
@Parameter(names = {"-help", "-h", "--help"}, help = true,
description = "Program usage information (this)")
private boolean help;
boolean getHelp() {
return help;
}
}
| henfredemars/FlowTorrent | src/CommanderMain.java | Java | apache-2.0 | 280 |
/*
* Copyright 2015 Greg Lanthier
* 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... | greglanthier/jca1.6-demo | org.example.ra.echo/src/main/java/org/greglanthier/echo/EchoConnectionFactoryImpl.java | Java | apache-2.0 | 2,474 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v8/enums/flight_placeholder_field.proto
package com.google.ads.googleads.v8.enums;
public final class FlightsPlaceholderFieldProto {
private FlightsPlaceholderFieldProto() {}
public static void registerAllExtensions(
... | googleads/google-ads-java | google-ads-stubs-v8/src/main/java/com/google/ads/googleads/v8/enums/FlightsPlaceholderFieldProto.java | Java | apache-2.0 | 3,369 |
package com.communote.server.api.core.note.processor;
import com.communote.server.api.core.note.NoteManagementAuthorizationException;
import com.communote.server.api.core.note.NoteStoringTO;
import com.communote.server.model.note.Note;
/**
* Extension point for registering processors to manipulate notes befor... | Communote/communote-server | communote/api/src/main/java/com/communote/server/api/core/note/processor/NoteStoringPreProcessorManager.java | Java | apache-2.0 | 3,398 |
/*
* Copyright 2014 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | spring-projects/spring-social-twitter | spring-social-twitter/src/main/java/org/springframework/social/twitter/api/impl/PlaceTypeDeserializer.java | Java | apache-2.0 | 1,374 |
package com.semanticanalyzer.dao;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class SentimentEntry {
public String articleId;
public String resourceId;
public String sentimentLabel;
public Double sentimentStrength;
}
| semanticanalyzer/nlproc_sdk_sample_code | src/main/java/com/semanticanalyzer/dao/SentimentEntry.java | Java | apache-2.0 | 278 |
package org.hl7.fhir.instance.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 co... | eug48/hapi-fhir | hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Provenance.java | Java | apache-2.0 | 73,618 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.08.25 at 0... | Lihuanghe/CMPPGate | src/test/java/es/rickyepoderi/wbxml/bind/wvcsp/GroupAuthFunc.java | Java | apache-2.0 | 3,350 |
/* ©Copyright 2011 Cameron Morris
*
* 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... | c-a-m/passfault | core/src/main/java/org/owasp/passfault/dictionary/FileDictionary.java | Java | apache-2.0 | 6,634 |
/*
* Enfili
* Project hosted at https://github.com/ryanhosp/enfili/
* Copyright 2013 Ho Siaw Ping Ryan
*
* 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.or... | ryanhosp/enfili | src/main/java/com/r573/enfili/ws/jersey/cors/SimpleCorsResponseFilter.java | Java | apache-2.0 | 2,058 |
/*
* Copyright (C) 2015 Intel 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 of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | android-art-intel/marshmallow | art-extension/opttests/src/OptimizationTests/ShortMethodsInliningNonVirtualInvokes/InvokeDirectRangeAThrowNullSet_001/Test.java | Java | apache-2.0 | 1,734 |
/*
* Copyright 2011 Lars Heuer (heuer[at]semagia.com). 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
*
* Unl... | heuer/cassa | cassa-server-jaxrs/src/main/java/com/semagia/cassa/jaxrs/providers/StoreExceptionMapper.java | Java | apache-2.0 | 1,370 |
/*
* Copyright 2010-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... | liuhaos2000/spring-android-samples | spring-android-facebook-client/src/org/springframework/android/facebookclient/FacebookWallPostActivity.java | Java | apache-2.0 | 3,429 |
/*
* Copyright 2013-2016 consulo.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | consulo/consulo | modules/base/platform-api/src/main/java/consulo/fileTypes/LanguageVersionableSyntaxHighlighter.java | Java | apache-2.0 | 1,719 |
/**
* Copyright 2015-2016 FIX Protocol Ltd
*
* 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... | FIXTradingCommunity/silverflash | silverflash-core/src/main/java/io/fixprotocol/silverflash/reactor/PayloadAllocator.java | Java | apache-2.0 | 1,028 |
/*
* 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... | bd-dev-mobileum/presto | presto-hive/src/main/java/com/facebook/presto/hive/HiveRecordSink.java | Java | apache-2.0 | 14,026 |