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 2017 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... | carmine/open-kilda | services/wfm/src/main/java/org/openkilda/wfm/topology/stats/StatsStreamType.java | Java | apache-2.0 | 848 |
package org.drools;
import org.drools.reteoo.LeftTupleSource;
import org.drools.reteoo.RuleTerminalNode;
import org.drools.reteoo.TerminalNode;
import org.drools.reteoo.builder.BuildContext;
import org.drools.rule.GroupElement;
import org.drools.rule.Rule;
public class RuleActivationListenerFactory implements Activat... | mswiderski/drools | drools-core/src/main/java/org/drools/RuleActivationListenerFactory.java | Java | apache-2.0 | 1,063 |
package com.kennyqsoftware.kennyquach.upcomerMusic;
/**
* Created by Khang Quach on 10/21/16.
* Returns the ArrayList of Artist listed in topSearchedArtist
*/
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.LinkedList;
import java.... | kennyqSoftware/Upcomer | Upcomer/app/src/main/java/com/kennyqsoftware/kennyquach/upcomerMusic/RandomArrayList.java | Java | apache-2.0 | 1,849 |
/*
* 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... | nellicus/elasticsearch | core/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java | Java | apache-2.0 | 40,705 |
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | gravitee-io/gravitee-management-rest-api | gravitee-rest-api-service/src/main/java/io/gravitee/rest/api/service/exceptions/BadNotificationConfigException.java | Java | apache-2.0 | 1,336 |
//
// ========================================================================
// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | xmpace/jetty-read | jetty-deploy/src/main/java/org/eclipse/jetty/deploy/FileConfigurationManager.java | Java | apache-2.0 | 2,257 |
package ru.job4j;
/**
* Created by Anton on 15.03.2017.
*/
public interface ClientManager extends ConnectManager {
/**
*
*
* @throws Exception Exception
*/
void manage() throws Exception; //фактически методы симметричные и этот интерфейс можно убрать, и все объединить в один.
}
| misterflud/aoleynikov | chapter_003/streems/src/main/java/ru/job4j/ClientManager.java | Java | apache-2.0 | 383 |
package com.sequenceiq.freeipa.flow.freeipa.salt.update.action;
import java.util.Map;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.sequenceiq.cloudbreak.common.event.Selectable;
import com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus;
im... | hortonworks/cloudbreak | freeipa/src/main/java/com/sequenceiq/freeipa/flow/freeipa/salt/update/action/SaltUpdateFailureAction.java | Java | apache-2.0 | 2,080 |
// Copyright 2011, 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 applicabl... | gawkermedia/googleads-java-lib | modules/ads_lib/src/main/java/com/google/api/ads/common/lib/utils/logging/AdsServiceLoggers.java | Java | apache-2.0 | 3,504 |
package cn.com.warlock.common2.excel;
import java.io.IOException;
import java.util.List;
import org.apache.poi.openxml4j.exceptions.InvalidOperationException;
import org.apache.poi.openxml4j.exceptions.NotOfficeXmlFileException;
import org.apache.poi.openxml4j.exceptions.OLE2NotOfficeXmlFileException;
import org.apac... | warlock-china/azeroth | azeroth-common2/src/main/java/cn/com/warlock/common2/excel/ExcelPerfModeReader.java | Java | apache-2.0 | 4,072 |
package edu.cs4730.listviewswiperefresh;
import android.os.Bundle;
import android.os.Handler;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import java.util.Random;
import androidx.appcompat.app.AppCompatActivity;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
/**
* A simple ex... | JimSeker/ui | ListViews/ListviewSwipeRefresh/app/src/main/java/edu/cs4730/listviewswiperefresh/MainActivity.java | Java | apache-2.0 | 7,526 |
/*
* 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 ... | lhong375/aura | aura-impl/src/test/java/org/auraframework/impl/root/parser/handler/AttributeAccessAttributeEnforcementTest.java | Java | apache-2.0 | 1,747 |
/**
* Bpm rest client tests assumes that you have default installation of IBM Process Center/Server © with
* installed and exposed default sample app {@literal Hiring Sample}.
* You can use tests as api usage examples.
*
* Note: to run test you should modified {@literal test/ru/bpmink/resources/server.properties} ... | egetman/ibm-bpm-rest-client | src/test/ru/bpmink/bpm/package-info.java | Java | apache-2.0 | 375 |
/**
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you ... | apache/openejb | container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java | Java | apache-2.0 | 17,827 |
/*
* Copyright (c) 2016. Bottle Rocket 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 ... | BottleRocketStudios/Android-GroundControl | GroundControl/groundcontrol/src/main/java/com/bottlerocketstudios/groundcontrol/executor/IdSequence.java | Java | apache-2.0 | 1,400 |
/**
* 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
* dist... | DigitalAssetCom/hlp-candidate | client/jackson/src/main/java/org/hyperledger/jackson/TIDDeserializer.java | Java | apache-2.0 | 1,468 |
package org.bouncycastle.util.encoders;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.bouncycastle.util.Strings;
/**
* Utility class for converting Base64 data to bytes and back again.
*/
public class Base64
{
private static final Encoder encoder = ne... | Turksat/ESign | ESignCore/src/main/java/org/bouncycastle/util/encoders/Base64.java | Java | apache-2.0 | 3,991 |
/*
* Copyright (c) 2020, Peter Abeles. All Rights Reserved.
*
* This file is part of Efficient Java Matrix Library (EJML).
*
* 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:... | lessthanoptimal/ejml | main/ejml-dsparse/src/org/ejml/sparse/csc/linsol/chol/LinearSolverCholesky_DSCC.java | Java | apache-2.0 | 4,498 |
package nate.reading;
import java.util.Set;
import nate.EntityMention;
public class EntityFiller {
private int _entityID;
private String _string;
private double _scoredInRole;
public EntityMention _mainMention;
public Set<FrameRole.TYPE> _entityTypes;
private String _matchedPattern = null; // debug... | nchambers/schemas | src/main/java/nate/reading/EntityFiller.java | Java | apache-2.0 | 1,816 |
package org.apereo.cas.util;
import lombok.experimental.UtilityClass;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.apache.commons.lang3.StringUtils;
import java.util.Collection;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
import jav... | leleuj/cas | core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/RegexUtils.java | Java | apache-2.0 | 4,581 |
/*
* Copyright 2014 NAVER Corp.
*
* 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 ... | chenguoxi1985/pinpoint | web/src/main/java/com/navercorp/pinpoint/web/controller/AgentStatController.java | Java | apache-2.0 | 11,052 |
package com.example.menuexample;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
public class TheSettingsActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedIns... | isel-leic-pdm/S1314V-LI61N | demos/MenuExample/src/com/example/menuexample/TheSettingsActivity.java | Java | apache-2.0 | 593 |
package example.service;
import example.repo.Customer241Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer241Service {
public Customer241Service(Customer241Repository repo) {}
}
| spring-projects/spring-data-examples | jpa/deferred/src/main/java/example/service/Customer241Service.java | Java | apache-2.0 | 221 |
// Copyright 2016 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 law... | lucperkins/heron | heron/spi/tests/java/com/twitter/heron/spi/packing/PackingPlanTest.java | Java | apache-2.0 | 6,479 |
package com.atguigu.shoppingmall.shoppingcart.fragment;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AlertDialog;
import android.support.v7... | weiwenqiang/GitHub | ShoppingCart/Shopping-master/app/src/main/java/com/atguigu/shoppingmall/shoppingcart/fragment/ShoppingCartFragment.java | Java | apache-2.0 | 14,223 |
package genome;
import genome.chr.Chr;
import genome.format.Base;
import genome.util.PosArrayCompressor;
import genome.util.PosArrayDecompressor;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import j... | lisosia/c2v | src/main/java/genome/GenomeDataStoreUtil.java | Java | apache-2.0 | 5,274 |
/**
* 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... | kiritbasu/datacollector | commonlib/src/main/java/com/streamsets/pipeline/lib/parser/sdcrecord/SdcRecordDataParser.java | Java | apache-2.0 | 2,008 |
/*
* Copyright 2017 h-j-k. 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 app... | h-j-k/validation | src/test/java/com/ikueb/validation/ValidatorTest.java | Java | apache-2.0 | 7,695 |
package com.realcomp.prime.transform;
import com.realcomp.prime.MultiFieldOperation;
import com.realcomp.prime.Operation;
import com.realcomp.prime.conversion.ConversionException;
import com.realcomp.prime.record.RecordValueAssembler;
import com.realcomp.prime.record.RecordValueException;
import com.realcomp.prime.sch... | real-comp/prime | src/main/java/com/realcomp/prime/transform/Transformer.java | Java | apache-2.0 | 6,724 |
package com.internship.osa.controller;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import static com.internship.osa.dao.UserDetailsDao.validate;
import static com.internship.osa.dao.UserDetailsDao.getName;
import static com.internship.osa.dao.UserDetailsDao.getType;
@SuppressWarnings("ser... | danish1994/internship_osa | src/com/internship/osa/controller/LoginController.java | Java | apache-2.0 | 1,108 |
/*
* 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-glacier/src/main/java/com/amazonaws/services/glacier/model/transform/CompleteVaultLockRequestMarshaller.java | Java | apache-2.0 | 2,711 |
/*
Copyright 2000,2003 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 applica... | Uni-Sol/batik | sources/org/apache/batik/dom/GenericDOMImplementation.java | Java | apache-2.0 | 2,527 |
package demo.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.... | joedayz/spring-boot-samples | demo-boot-jpa/src/main/java/demo/controller/InicioController.java | Java | apache-2.0 | 748 |
package www.it4pl.com.coolweater.service;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.IBinder;
import android.os.SystemClock;
import android.preference.PreferenceManager;
impor... | mzhkby/coolweater | app/src/main/java/www/it4pl/com/coolweater/service/AutoUpdateService.java | Java | apache-2.0 | 3,707 |
package mx.com.redcup.redcup.myDataModels;
import com.google.firebase.database.Exclude;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static mx.com.redcup.redcup.myDataModels.AttendanceStatus.ATTENDANCE_CONFIRMED;
public class MyUsers {
public String userID;
pub... | downvec/REDcp | app/src/main/java/mx/com/redcup/redcup/myDataModels/MyUsers.java | Java | apache-2.0 | 1,597 |
package org.gradle.test.performance.mediummonolithicjavaproject.p485;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test9713 {
Production9713 objectUnderTest = new Production9713();
@Test
public void testProperty0() {
Production9704 value = new Production9704();
... | oehme/analysing-gradle-performance | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p485/Test9713.java | Java | apache-2.0 | 2,174 |
package org.gradle.test.performance.mediummonolithicjavaproject.p315;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test6310 {
Production6310 objectUnderTest = new Production6310();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... | oehme/analysing-gradle-performance | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p315/Test6310.java | Java | apache-2.0 | 2,111 |
/*
* Copyright (c) 2014 TIKINOU 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 t... | MythTV-Clients/MythTV-Service-API | src/main/java/org/mythtv/services/api/v028/ContentService.java | Java | apache-2.0 | 23,235 |
package eu.qualimaster.manifestUtils;
import java.io.File;
import java.io.IOException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
im... | QualiMaster/QM-IConf | ManifestUtils/src/eu/qualimaster/manifestUtils/PomReader.java | Java | apache-2.0 | 4,812 |
/*
* Copyright 2013-2019 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... | joshiste/spring-cloud-netflix | spring-cloud-netflix-zuul/src/test/java/org/springframework/cloud/netflix/zuul/filters/route/RibbonRoutingFilterTests.java | Java | apache-2.0 | 5,814 |
package liquibase.datatype.core;
import liquibase.database.Database;
import liquibase.database.core.*;
import liquibase.datatype.DataTypeInfo;
import liquibase.datatype.DatabaseDataType;
import liquibase.datatype.LiquibaseDataType;
import liquibase.statement.DatabaseFunction;
@DataTypeInfo(name="smallint", aliases = ... | adriens/liquibase | liquibase-core/src/main/java/liquibase/datatype/core/SmallIntType.java | Java | apache-2.0 | 1,769 |
package gudusoft.gsqlparser.sql2xml.model;
import org.simpleframework.xml.Element;
public class from_subquery
{
@Element(required = false)
private insert_column_list insert_column_list;
@Element(required = false)
private override_clause override_clause;
@Element
private query_expression query_expression = n... | sqlparser/sql2xml | sql2xml/src/gudusoft/gsqlparser/sql2xml/model/from_subquery.java | Java | apache-2.0 | 843 |
package OpenRate.record;
import java.util.ArrayList;
import java.util.List;
/**
* IRecord implementation fleshing out the most basic elements of the IRecord
* interface. The basic functions handled by this record implementation are:
* - Standard record error handling
* - Standard record output handling
* - ... | isparkes/OpenRate | src/main/java/OpenRate/record/AbstractRecord.java | Java | apache-2.0 | 11,578 |
package pl.npe.lpp.app;
import org.junit.After;
import org.junit.Test;
import pl.npe.lpp.App;
import java.nio.file.Files;
import java.nio.file.Paths;
/**
* Created by IntelliJ IDEA.
* User: tomek
* Date: 08.06.14
* Time: 13:44
*/
public class App_UnsetFlagTest {
private static final String PATH_PREFIX = "s... | traczykowski/lpp | src/test/java/pl/npe/lpp/app/App_UnsetFlagTest.java | Java | apache-2.0 | 771 |
/*
* ******************************************************************************
* Copyright 2016-2018 Spectra Logic Corporation. 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 Licens... | shabtaisharon/ds3_java_browser | dsb-gui/src/main/java/com/spectralogic/dsbrowser/gui/util/FileTreeTableProvider.java | Java | apache-2.0 | 4,740 |
package ru.nyrk.bootmvc.service.cline;
/**
* @author sbt-nyrkov-oa
* @ created 29.04.2016
* @ $Author$
* @ $Revision$
*/
public interface MyCommandLine {
String[] getArgs();
}
| OlegNyr/sample-boot-mvc | src/main/java/ru/nyrk/bootmvc/service/cline/MyCommandLine.java | Java | apache-2.0 | 186 |
/*
* 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... | hazendaz/assertj-core | src/test/java/org/assertj/core/api/longarray/LongArrayAssert_isNotEmpty_Test.java | Java | apache-2.0 | 1,206 |
/*
* 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 ... | astubbs/wicket.get-portals2 | wicket/src/test/java/org/apache/wicket/util/tester/apps_3/FormTesterTest.java | Java | apache-2.0 | 6,301 |
/*
* 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-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/transform/GeneratedPolicyJsonUnmarshaller.java | Java | apache-2.0 | 2,746 |
/*
* 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-customerprofiles/src/main/java/com/amazonaws/services/customerprofiles/model/transform/ListWorkflowsRequestProtocolMarshaller.java | Java | apache-2.0 | 2,672 |
package com.liubo.demo.dao;
import com.liubo.demo.cons.ShopResult;
import com.liubo.demo.model.Orders;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Created by hzlbo on 2016/7/26.
*/
@Repository
public interface OrdersDao {
/**
* 生成订单信息
*
* @param orders
* ... | liubo6/demo_springboot_mybatis | src/main/java/com/liubo/demo/dao/OrdersDao.java | Java | apache-2.0 | 1,025 |
package ru.stqa.pft.mantis.model;
import org.hibernate.annotations.Type;
import javax.persistence.*;
@Entity
@Table(name = "mantis_user_table")
public class UserData {
@Id
@Column(name = "id")
private int id = Integer.MAX_VALUE;
@Column(name = "username")
private String username;
@Column(... | sevlanov/java_learn | mantis-tests/src/test/java/ru/stqa/pft/mantis/model/UserData.java | Java | apache-2.0 | 1,156 |
/*
* Copyright (c) Meta Platforms, Inc. and 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 appl... | facebook/fbthrift | thrift/lib/java/runtime/src/main/java/com/facebook/nifty/core/RequestContext.java | Java | apache-2.0 | 1,190 |
/*
* Copyright 2012 maxstrauch
*
* 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... | maxstrauch/wator-traffic-simulation | src/helpers/SimpleForm.java | Java | apache-2.0 | 5,676 |
/*
* Copyright 2015 craigmcc.
*
* 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... | craigmcc/shared | sql/src/main/java/org/craigmcc/shared/sql/SelectBuilder.java | Java | apache-2.0 | 1,899 |
/**
* 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
* distribu... | crashlytics/aurora | src/test/java/org/apache/aurora/scheduler/scheduling/TaskSchedulerImplTest.java | Java | apache-2.0 | 14,604 |
package io.dropwizard.jaxb;
import io.dropwizard.validation.ConstraintViolations;
import io.dropwizard.validation.Validated;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.Set;
import javax.v... | soulrebel/dropwizard-jaxb | src/main/java/io/dropwizard/jaxb/JaxbXMLValidatingMessageBodyProvider.java | Java | apache-2.0 | 4,723 |
/*
* Copyright 2014 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 ... | jenkinsci/google-oauth-plugin | src/main/java/com/google/jenkins/plugins/credentials/oauth/P12ServiceAccountConfig.java | Java | apache-2.0 | 7,007 |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | redBorder/druid | processing/src/main/java/io/druid/query/select/PagingSpec.java | Java | apache-2.0 | 3,801 |
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert
// Siehe <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2019.0... | citygml4j/citygml4j | src-gen/main/java/net/opengis/gml/TimeInstantPropertyType.java | Java | apache-2.0 | 7,620 |
package com.spacegame.game;
import com.badlogic.gdx.math.Vector2;
public interface RemoveController {
boolean shouldRemove(Vector2 pos);
}
| crazywolf132/SpaceGame | main/src/com/spacegame/game/RemoveController.java | Java | apache-2.0 | 143 |
package com.unknown.navevent.interfaces;
import java.util.List;
//Interface for responses to the UI. Has to be implemented by MapSelectActivity-class.
public interface MapSelectActivityUI
{
//Respond to MapSelectActivityLogicInterface.findOnlineMap()
void onlineMapQueryRespond(List<MapData> maps);
//Local(offline)... | JulianSobott/NavEvent | NavEvent/app/src/main/java/com/unknown/navevent/interfaces/MapSelectActivityUI.java | Java | apache-2.0 | 698 |
/*
* 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-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/DeleteStudioResult.java | Java | apache-2.0 | 2,333 |
/*
* Copyright 2013 The Skfiy Open Association.
*
* 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 ... | weghst/typhon | typhon-kernel/src/test/java/org/skfiy/typhon/TestComponentBase.java | Java | apache-2.0 | 1,622 |
package ai.labs.resources.rest;
import io.swagger.annotations.ApiOperation;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
/**
* @author ginccc
*/
public interf... | labsai/EDDI | configurationrepository-definition/src/main/java/ai/labs/resources/rest/IRestVersionInfo.java | Java | apache-2.0 | 763 |
/*
* Copyright 2013, 2014 Deutsche Nationalbibliothek
*
* 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... | hbz/metafacture-core | metafacture-commons/src/test/java/org/metafacture/commons/tries/CharMapTest.java | Java | apache-2.0 | 2,285 |
package com.example.greg3d.cureintakedispatcher.activities.curehistoryall;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import com.example.greg3d.cureintakedispatcher.R;
import com.example.greg3d.cureintakedispatcher.activiti... | Greg3dot14D/FarmacyIntakeHistory | app/src/main/java/com/example/greg3d/cureintakedispatcher/activities/curehistoryall/CureHistoryAllActivity.java | Java | apache-2.0 | 5,409 |
/*
* Copyright © 2015-2016
*
* This file is part of Spoofax for IntelliJ.
*
* 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 req... | metaborg/spoofax-intellij | src/main/java/org/metaborg/intellij/idea/languages/DefaultIdeaLanguageManager.java | Java | apache-2.0 | 27,744 |
package frog;
import java.util.*;
/**
* This programme solves the Frog problem.
*
* The programme returns the minimum number of jumps that the frog needs to do in order to get
* from the initial segment to the final one and shows all possible paths with the minimum number of jumps.
*
* Rules: The frog can't jum... | DmitriiEskov/deskov | problems/src/main/java/frog/Frog.java | Java | apache-2.0 | 8,226 |
package com.yeamanan.projecttwo.view;
//import org.apache.log4j.Logger;
/**
* MainViewFactory class.
*
* @author Yeam Anan (<yeamanan|at|gmail|dot|com>)
*/
class MainViewFactory extends ViewFactoryImpl {
/**
* Logger.
*/
// private static final Logger LOG =
// Logger.getLogger(MainVie... | yeamanan/ProjectTwo | src/main/java/com/yeamanan/projecttwo/view/MainViewFactory.java | Java | apache-2.0 | 340 |
/*******************************************************************************
* Copyright 2014 Virginia Tech Visionarium
*
* 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... | VT-Visionarium/osnap | src/main/java/edu/vt/arc/vis/osnap/gui/wizards/statusobjects/NodeLinkTreeStatus.java | Java | apache-2.0 | 4,634 |
package autumn.util.functors;
import autumn.lang.TypedFunctor;
import autumn.lang.internals.AbstractDefinedFunctor;
import autumn.lang.internals.ArgumentStack;
import autumn.lang.internals.annotations.FunctorDefinition;
import com.google.common.collect.ImmutableList;
import java.util.List;
/**
* <code>
* functor Fu... | Mackenzie-High/autumn | src/autumn/util/functors/Function3.java | Java | apache-2.0 | 1,955 |
/*
* Copyright (c) 2016. Universidad Politecnica de Madrid
*
* @author Badenes Olmedo, Carlos <cbadenes@fi.upm.es>
*
*/
package org.librairy.modeler.lda.functions;
import com.google.common.primitives.Doubles;
import org.apache.spark.api.java.function.FlatMapFunction;
import org.apache.spark.api.java.function.Fun... | librairy/modeler-lda | src/main/java/org/librairy/modeler/lda/functions/RowToArray.java | Java | apache-2.0 | 789 |
package wdp.regularexpressions.model;
/**
* User: nazaria
* Date: 7/24/13
* Time: 4:31 PM
*/
public class Quantifier {
private long min;
private long max;
public Quantifier(long min, long max) {
this.min = min;
this.max = max;
}
public Quantifier(long min) {
this.min ... | azarian/wizards | RegularExpressions/src/wdp/regularexpressions/model/Quantifier.java | Java | apache-2.0 | 691 |
package psidev.psi.mi.jami.bridges.fetcher;
import psidev.psi.mi.jami.model.Source;
/**
* Finds source
* Extends CvTermFetcher with source objects.
*
* @author Gabriel Aldam (galdam@ebi.ac.uk)
* @since 03/07/13
*/
public interface SourceFetcher extends CvTermFetcher<Source>{
}
| MICommunity/psi-jami | jami-bridges/bridges-core/src/main/java/psidev/psi/mi/jami/bridges/fetcher/SourceFetcher.java | Java | apache-2.0 | 287 |
package org.fkjava.activiti.identity.web.controller;
import javax.annotation.Resource;
import org.fkjava.activiti.identity.db.entity.User;
import org.fkjava.activiti.identity.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import or... | luowenqiang/fkjava-activiti-demo | src/main/java/org/fkjava/activiti/identity/web/controller/RegisterController.java | Java | apache-2.0 | 1,042 |
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for queryResponse element declaration.
*
* <p>The ... | gawkermedia/googleads-java-lib | modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201509/cm/MediaServiceInterfacequeryResponse.java | Java | apache-2.0 | 1,531 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | deepakddixit/incubator-geode | geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/Handshake.java | Java | apache-2.0 | 19,032 |
package com.yuyh.sprintnba.component;
import android.content.Context;
import com.yuyh.library.view.viewpager.indicator.slidebar.ColorBar;
/**
* @author yuyh.
* @date 16/7/2.
*/
public class GameDetailScrollBar extends ColorBar {
public GameDetailScrollBar(Context context, int color, int height) {
sup... | xqgdmg/DavidNBA-master | app/src/main/java/com/yuyh/sprintnba/component/GameDetailScrollBar.java | Java | apache-2.0 | 617 |
/**
* Copyright (C) 2018 - present McLeod Moores Software Limited. All rights reserved.
*/
package com.opengamma.master.security;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotEquals;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.... | McLeodMoores/starling | projects/master/src/test/java/com/opengamma/master/security/SecurityLoaderResultTest.java | Java | apache-2.0 | 6,012 |
package org.sagebionetworks.repo.model.dbo.principal;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.... | hhu94/Synapse-Repository-Services | lib/jdomodels/src/test/java/org/sagebionetworks/repo/model/dbo/principal/PrincipalPrefixDAOImplTest.java | Java | apache-2.0 | 17,918 |
package jp.pycon.pyconjp2016app.Model.GHPages;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by wj on 16/8/31.
*/
public class StaffListEntity {
@SerializedName("staffList")
@Expose
public List<StaffEntity> staffList... | ozil87/pyconjp-android | app/src/main/java/jp/pycon/pyconjp2016app/Model/GHPages/StaffListEntity.java | Java | apache-2.0 | 325 |
/*
* 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 ... | xiao-chen/hadoop | hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/ozoneimpl/TestOzoneContainer.java | Java | apache-2.0 | 21,516 |
// Copyright 2018 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 in ... | google/supl-client | src/main/java/com/google/location/suplclient/asn1/supl2/lpp/GNSS_DataBitsSatList.java | Java | apache-2.0 | 3,546 |
/*
* 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 ... | kraftek/awsdownload | src/main/java/ro/cs/products/landsat/LandsatTilesMap.java | Java | apache-2.0 | 3,139 |
/**
*
*/
package de.wollistik.dlna.db;
/**
* @author Wolfgang Wedelich-John<wolfgang.wedelich@wollistik.de>
*
*/
public class MovieMediaInfo extends MediaInfo {
}
| wollsau/wollo-dlna | src/main/java/de/wollistik/dlna/db/MovieMediaInfo.java | Java | apache-2.0 | 171 |
/*
* (c) LibriCore
*
* Created on 20-sep-2004
*
* T_CRTGC_FRMT.java
*/
package org.folio.marccat.dao.persistence;
/**
* @author Maite
* @version $Revision: 1.1 $, $Date: 2004/09/20 15:39:15 $
* @since 1.0
*/
public class T_CRTGC_FRMT extends T_SINGLE_CHAR {
}
| atcult/mod-cataloging | src/main/java/org/folio/marccat/dao/persistence/T_CRTGC_FRMT.java | Java | apache-2.0 | 272 |
package com.doctusoft.jsf.comp;
import com.doctusoft.bean.binding.ConstantValueBinding;
import com.doctusoft.bean.binding.ValueBinding;
import com.doctusoft.jsf.comp.model.JsfPanelGroupModel;
public class JsfPanelGroup extends JsfBaseComponent<JsfPanelGroup, JsfPanelGroupModel> implements IsContainer<JsfPanelGroup> {... | Doctusoft/jsf-builder | jsf-builder/src/main/java/com/doctusoft/jsf/comp/JsfPanelGroup.java | Java | apache-2.0 | 633 |
package org.geoint.lbac;
import org.geoint.lbac.marking.SecurityMarking;
/**
* Indicates an object can contain classified data.
*/
public interface Labeled {
/**
* Return the stringified {@link SecurityMarking} for the data component.
*
* @return
*/
String getLabel();
/**
* Re... | jmclark/capco | src/main/java/org/geoint/lbac/Labeled.java | Java | apache-2.0 | 1,054 |
/*
* Copyright 2017 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | stevem999/gocd | plugin-infra/go-plugin-domain/src/main/java/com/thoughtworks/go/plugin/domain/analytics/AnalyticsData.java | Java | apache-2.0 | 1,630 |
package org.apache.helix.integration.task;
/*
* 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 L... | lei-xia/helix | helix-core/src/test/java/org/apache/helix/integration/task/TestTaskRebalancerRetryLimit.java | Java | apache-2.0 | 2,497 |
package org.sagebionetworks.repo.model.dbo.dao.discussion;
import org.sagebionetworks.repo.model.discussion.Forum;
public interface ForumDAO {
/**
* create new object
* @param projectId
* @return
*/
public Forum createForum(String projectId);
/**
* get the forum object given its Id
* @param id
* @r... | Sage-Bionetworks/Synapse-Repository-Services | lib/jdomodels/src/main/java/org/sagebionetworks/repo/model/dbo/dao/discussion/ForumDAO.java | Java | apache-2.0 | 612 |
package com.github.typesafe_query.jdbc.translator;
import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Time;
import java.sql.Timestamp;
impo... | typesafe-query/typesafe-query | typesafe-query-core/src/main/java/com/github/typesafe_query/jdbc/translator/DefaultDialectTranslator.java | Java | apache-2.0 | 7,141 |
/*
* Copyright 2015 herd 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | FINRAOS/herd | herd-code/herd-dao/src/test/java/org/finra/herd/dao/impl/EmrDaoImplTest.java | Java | apache-2.0 | 53,438 |
/*
* Copyright 2016 Christian Thomas.
*
* 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... | Chris81T/hmatic4j-event | src/test/java/de/chrthms/hmatic4j/HMatic4jEventTest.java | Java | apache-2.0 | 1,302 |
package com.edgar.rxjava.jdbc.tx;
import com.github.davidmoten.rx.RxUtil;
import com.github.davidmoten.rx.jdbc.Database;
import rx.Observable;
/**
* Created by Administrator on 2015/10/10.
*/
public class TransactionEaxmple {
public static void main(String[] args) {
Database db = Database.from("jdbc:mys... | edgar615/javase-study | rxjava-jdbc-study/src/main/java/com/edgar/rxjava/jdbc/tx/TransactionEaxmple.java | Java | apache-2.0 | 1,536 |
/*
* Copyright 2000-2010 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/groovy/src/org/jetbrains/plugins/groovy/annotator/intentions/dynamic/DynamicMethodFix.java | Java | apache-2.0 | 3,305 |
/**
* (c) Copyright 2015 Andrew Biggs
* This code is available under the Apache License, version 2: http://www.apache.org/licenses/LICENSE-2.0.html
*/
package xmpptrace.model;
import java.util.ArrayList;
import java.sql.Timestamp;
import org.w3c.dom.Document;
/**
* Class to represent the headers and contents of... | balthorium/xmpptrace | src/xmpptrace/model/TcpPacket.java | Java | apache-2.0 | 3,205 |
package fr.javatronic.blog.massive.annotation1.sub1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_6690 {
}
| lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_6690.java | Java | apache-2.0 | 151 |
package org.altbeacon.beacon;
import android.os.Parcel;
import static android.test.MoreAsserts.assertNotEqual;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.robolectric.RobolectricTestRunner;
import org.junit.runner.R... | srihareendra/android-beacon-library | src/test/java/org/altbeacon/beacon/AltBeaconParserTest.java | Java | apache-2.0 | 2,770 |