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 GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not ... | graphhopper/graphhopper | core/src/main/java/com/graphhopper/routing/querygraph/VirtualEdgeIterator.java | Java | apache-2.0 | 8,185 |
package com.wenyu.loadingrecyclerview;
public interface LoadingEvent {
void onEventStart();
void onEventSuccess();
void onEventFailure();
void onEventNull();
}
| ChanJLee/android_live | loadingrecyclerview/src/main/java/com/wenyu/loadingrecyclerview/LoadingEvent.java | Java | apache-2.0 | 168 |
/*
* 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-codecommit/src/main/java/com/amazonaws/services/codecommit/model/GetRepositoryTriggersRequest.java | Java | apache-2.0 | 3,984 |
// Copyright 2015 The Bazel Authors. 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 appl... | akira-baruah/bazel | src/main/java/com/google/devtools/build/lib/skyframe/ToplevelSkylarkAspectFunction.java | Java | apache-2.0 | 3,078 |
package com.wpx.ipad_server.entity;
public class Dish {
/*
0 dish_no varchar 20 0 1 0
0 dish_name varchar 20 0 1 0
0 dish_price float 0 0 1 0 0
0 dish_class int 11 0 1 0 0 0
0 dish_discount float 0 0 1 0 0
*
*/
private String dish_no;
private String dish_name;
private double dish_price;
public ... | jhvip/iPad_Server | iPad_Server/src/com/wpx/ipad_server/entity/Dish.java | Java | apache-2.0 | 1,432 |
package com.hanyee.androidlib.widgets.recycler;
public enum SwipeRefreshLayoutDirection {
TOP(0), // 只有下拉刷新
BOTTOM(1), // 只有加载更多
BOTH(2);// 全都有
private int mValue;
SwipeRefreshLayoutDirection(int value) {
this.mValue = value;
}
public static SwipeRefreshLayoutDirection getFromIn... | HanyeeWang/GeekZone | BaseLib/src/main/java/com/hanyee/androidlib/widgets/recycler/SwipeRefreshLayoutDirection.java | Java | apache-2.0 | 608 |
package ru.spb.kpit.kivan.Parser;
import ru.spb.kpit.kivan.General.Strings.StringUtils;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
/**
* Created with IntelliJ IDEA.
* User: Kivan
* Date: 17.03.13... | kivan-mih/generalLib | src/ru/spb/kpit/kivan/Parser/WordTypeMineStrategy.java | Java | apache-2.0 | 4,196 |
/*
Copyright 2013 Daniel Manzke (devsurf)
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 ... | manzke/common-lang | src/main/java/de/devsurf/common/lang/converter/InfoConverter.java | Java | apache-2.0 | 973 |
package ru.stqa.pft.addressbook.tests;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.GroupData;
import ru.stqa.pft.addressbook.model.Groups;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
impo... | dmitrykustikov/java_pft | addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/GroupDeletionTests.java | Java | apache-2.0 | 1,014 |
package com.bootcamp.topic0.builder;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConexionBD {
private String host;
private String user;
private String pass;
private String dbname;
private String dbmotor;
private Connection con;
public Connection getCo... | rami51/java-bootcamp-2016 | Topics/Topic_0/src/com/bootcamp/topic0/builder/ConexionBD.java | Java | apache-2.0 | 1,265 |
package it.unibz.inf.ontop.iq.node;
/**
* Union of CommutativeJoinNode and FilterNode
*/
public interface CommutativeJoinOrFilterNode extends JoinOrFilterNode {
}
| ontop/ontop | core/model/src/main/java/it/unibz/inf/ontop/iq/node/CommutativeJoinOrFilterNode.java | Java | apache-2.0 | 167 |
/*
* Copyright 2017 Martin Kouba
*
* 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 ... | mkouba/cdi-beyond-ee | src/main/java/com/githhub/mkouba/cdibee/HelloMessage.java | Java | apache-2.0 | 1,489 |
package com.dyz.myBatis.services;
import org.apache.ibatis.session.SqlSessionFactory;
import com.dyz.myBatis.dao.GameRecordMapper;
import com.dyz.myBatis.daoImp.GameRecordDaoImp;
public class GameRecordService {
private GameRecordMapper gameRecordMap;
private static GameRecordService gameService = new GameR... | XihuLai/GS | src/com/dyz/myBatis/services/GameRecordService.java | Java | apache-2.0 | 582 |
/*
* 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 ... | apacheignite/ignite | modules/core/src/main/java/org/apache/ignite/internal/portable/BinaryRawReaderEx.java | Java | apache-2.0 | 1,296 |
/*
* Copyright 2017-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... | clonetwin26/buck | src/com/facebook/buck/js/JsLibraryDescription.java | Java | apache-2.0 | 17,462 |
/*
* 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/dex/src/main/java/io/crate/data/join/LeftJoinNLBatchIterator.java | Java | apache-2.0 | 3,218 |
package com.wincom.mstar.domain;
import java.util.ArrayList;
import java.util.List;
public class CNumExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table nfjd502.dbo.CNum
*
* @mbggenerated Thu Mar 02 11:23:21 CST 2017
*/
protect... | xtwxy/cassandra-tests | mstar-server-dao/src/main/java/com/wincom/mstar/domain/CNumExample.java | Java | apache-2.0 | 10,330 |
/*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundatio... | HuangLS/neo4j | community/kernel/src/main/java/org/neo4j/unsafe/impl/batchimport/input/Receiver.java | Java | apache-2.0 | 1,166 |
/*
* Copyright 2008, Unitils.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... | arteam/unitils | unitils-test/src/test/java/org/unitils/util/ReflectionUtilsEnumTest.java | Java | apache-2.0 | 1,947 |
package org.sociesc.system.university.bo;
import org.sociesc.system.university.Course;
import org.sociesc.system.university.dao.CourseDAO;
import org.sociesc.util.bo.BaseBO;
public class CourseBO extends BaseBO<CourseDAO, Course> {
public CourseBO(){
super(CourseDAO.class);
}
public void insert(Course course... | diegoarcega/JAVAWEB-VRaptorFramework | src/org/sociesc/system/university/bo/CourseBO.java | Java | apache-2.0 | 573 |
package gr.iti.mklab.framework.retrievers.impl;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import com.google.api.client.googleapi... | MKLab-ITI/mklab-socialmedia-abstractions | src/main/java/gr/iti/mklab/framework/retrievers/impl/GooglePlusRetriever.java | Java | apache-2.0 | 12,192 |
package org.esmerilprogramming.overtown.annotation.session;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(value = { ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface OnS... | EsmerilProgramming/overtown | src/main/java/org/esmerilprogramming/overtown/annotation/session/OnSessionCreate.java | Java | apache-2.0 | 338 |
package org.rabix.engine.rest.backend.stub.impl;
import org.apache.commons.configuration.Configuration;
import org.rabix.engine.rest.backend.stub.BackendStub;
import org.rabix.engine.rest.service.JobService;
import org.rabix.transport.backend.impl.BackendRabbitMQ;
import org.rabix.transport.backend.impl.BackendRabbitM... | markosbg/debug | rabix-engine-rest/src/main/java/org/rabix/engine/rest/backend/stub/impl/BackendStubRabbitMQ.java | Java | apache-2.0 | 2,646 |
package com.neustar.ultraservice.schema.v01;
import java.util.ArrayList;
import java.util.List;
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 PasswordVe... | ultradns/ultra-java-api | src/main/java/com/neustar/ultraservice/schema/v01/PasswordVerificationQuestionList.java | Java | apache-2.0 | 2,280 |
package com.yourname.flixelgame.examples.timer;
import org.flixel.FlxG;
import org.flixel.FlxState;
import org.flixel.FlxText;
import org.flixel.FlxTimer;
import org.flixel.event.IFlxTimer;
/**
* A short demo how to use the methods for the plugins.
* In this demo the TimerManager is used.
*
* @author Ka Wing Ch... | jjhaggar/libGDX-flixel-test-autogenerated | flixelgame/src/com/yourname/flixelgame/examples/timer/PlayState.java | Java | apache-2.0 | 1,304 |
/*
* This file is part of ATLAS. It is subject to the license terms in
* the LICENSE file found in the top-level directory of this distribution.
* (Also available at http://www.apache.org/licenses/LICENSE-2.0.txt)
* You may not use this file except in compliance with the License.
*/
package de.dfki.asr.atlas.conve... | dfki-asr/atlas-server | src/main/java/de/dfki/asr/atlas/convert/collada/ColladaMaterialExporter.java | Java | apache-2.0 | 8,169 |
/*
* Copyright (c) 2016-present, RxJava 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 la... | ReactiveX/RxJava | src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableTimeoutTests.java | Java | apache-2.0 | 18,918 |
package com.tedmemo.db;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import java.io.Serializable;
/**
* Created by Ted on 14-8-6.
*/
@DatabaseTable(tableName = "memoinfo")
public class MemoItemInfo implements Serializable {
private static final long serialVersionUID... | xiongwei-git/TedMemo | src/com/tedmemo/db/MemoItemInfo.java | Java | apache-2.0 | 1,804 |
package br.com.viewria.servlets;
import java.util.ArrayList;
import javax.servlet.ServletContext;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.web.context.WebApplicationContex... | g6tech/spring-corp-test | project/viewria/src/main/java/br/com/viewria/servlets/ProcessRequest.java | Java | apache-2.0 | 2,363 |
/**
* ****************************************************************************
* Copyright (c) 2008 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* ht... | ritterliu/AutoMemoryAnalysis | src/org/eclipse/mat/snapshot/model/IArray.java | Java | apache-2.0 | 748 |
/*
* 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 no... | boneman1231/org.apache.felix | trunk/dependencymanager/test/src/test/java/org/apache/felix/dm/test/annotation/AspectLifecycleWithDynamicProxyAnnotationTest.java | Java | apache-2.0 | 4,203 |
package io.hightide.exceptions;
/**
* @author <a href="mailto:gpan@groundzerolabs.com">George Panagiotopoulos</a>
*/
public class HandlerInitializationException extends RuntimeException {
public HandlerInitializationException(String message, Throwable cause) {
super(message, cause);
}
}
| gzlabs/hightide | hightide-core/src/main/java/io/hightide/exceptions/HandlerInitializationException.java | Java | apache-2.0 | 308 |
package com.github.pixelrunstudios.GdxTest;
public class BorderBlockHolder implements BlockHolder{
protected int width;
protected int height;
public BorderBlockHolder(int width, int height){
this.width = width;
this.height = height;
}
@Override
public boolean hasBlock(int x, int y, float tick){
if(x == ... | PixelRunStudios/GdxTest | core/src/com/github/pixelrunstudios/GdxTest/BorderBlockHolder.java | Java | apache-2.0 | 497 |
/*
* 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 ... | iemejia/incubator-beam | runners/google-cloud-dataflow-java/worker/src/test/java/org/apache/beam/runners/dataflow/worker/WindmillKeyedWorkItemTest.java | Java | apache-2.0 | 7,859 |
/*
* 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 o... | nickbutcher/plaid | core/src/main/java/io/plaidapp/core/util/HtmlUtils.java | Java | apache-2.0 | 3,982 |
// 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 applicable law... | tsib0/aw-reporting | aw-reporting-model/src/main/java/com/google/api/ads/adwords/awreporting/model/entities/ReportDestinationUrl.java | Java | apache-2.0 | 8,183 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: storedserverpaymentchannel.proto
package com.google.leafcoin.protocols.channels;
public final class ServerState {
private ServerState() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
... | leafcoin/leafcoinj | core/src/main/java/com/google/leafcoin/protocols/channels/ServerState.java | Java | apache-2.0 | 63,519 |
/*
* The aspiredb project
*
* Copyright (c) 2012 University of British Columbia
*
* 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
*
* ... | ppavlidis/aspiredb | aspiredb/src/main/java/ubc/pavlab/aspiredb/server/model/CnvType.java | Java | apache-2.0 | 1,022 |
/*
* 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... | googleapis/google-api-java-client-services | clients/google-api-services-datacatalog/v1/1.31.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1UnstarEntryRequest.java | Java | apache-2.0 | 1,700 |
// Data Access is a Java library to store data
// Copyright (C) 2018-2019 Adrián Romero Corchado.
//
// This file is part of Data Access
//
// 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 c... | adrianromero/data | src/main/java/com/adr/data/mongo/DocumentResults.java | Java | apache-2.0 | 4,030 |
/*
* Copyright 2000-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | IllusionRom-deprecated/android_platform_tools_idea | plugins/gradle/src/org/jetbrains/plugins/gradle/model/impl/WarModelImpl.java | Java | apache-2.0 | 1,625 |
package com.mobplug.games.framework.entities;
public class Vector2D {
private Point2D position;
private float speedX;
private float speedY;
public Vector2D() {
position = new Point2D(0.0f, 0.0f);
}
public Vector2D(float posx, float posy) {
position = new Point2D(posx, posy);
}
public Vector2D(float p... | andreban/GamesFramework | src/com/mobplug/games/framework/entities/Vector2D.java | Java | apache-2.0 | 2,421 |
/**
* Copyright 2016 StreamSets Inc.
*
* Licensed under 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 Lice... | WgStreamsets/datacollector | sdc-solr_cdh_4/src/main/java/com/streamsets/pipeline/solr/impl/SolrTarget04.java | Java | apache-2.0 | 4,867 |
/*
* 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... | freeVM/freeVM | enhanced/buildtest/tests/functional/src/test/functional/org/apache/harmony/test/func/api/javax/management/monitor/countermonitor/GranularityTest.java | Java | apache-2.0 | 4,659 |
package io.gatekeeper.node.service;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import io.gatekeeper.configuration.Configuration;
import io.gatekeeper.configuration.data.ReplicationConfiguration;
import io.gatekeeper.logging.Loggers;
import io.gatekeeper.node.service.replication.common.Node;
import ... | JackPrice/gatekeeper | src/main/java/io/gatekeeper/node/service/ReplicationService.java | Java | apache-2.0 | 2,642 |
/*
* Licensed to ElasticSearch and Shay Banon 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... | speedplane/elasticsearch | src/main/java/org/elasticsearch/index/mapper/internal/SourceFieldMapper.java | Java | apache-2.0 | 17,772 |
package collections;
import java.util.ArrayList;
import java.util.List;
import java.util.ListIterator;
public class Iterator2 {
public static void main(String args[]) {
List<String> list = new ArrayList<String>();
list.add("abc");
list.add("def");
list.add("ghi");
ListIter... | rboese/prog | collections/src/main/java/collections/Iterator2.java | Java | apache-2.0 | 482 |
/*
* © Crown Copyright 2013
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | health-and-care-developer-network/health-and-care-developer-network | source/ckan/ckan-schema/uk/nhs/hdn/ckan/schema/TagsArrayJsonSchema.java | Java | apache-2.0 | 2,076 |
// Copyright 2000-2018 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.vcs.log.data;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.progress.EmptyP... | msebire/intellij-community | platform/vcs-log/impl/src/com/intellij/vcs/log/data/VcsLogProgress.java | Java | apache-2.0 | 6,698 |
/*
* 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-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/transform/GetItemResultJsonUnmarshaller.java | Java | apache-2.0 | 3,100 |
/*
* Copyright 2010-2020 Alfresco Software, 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 ... | Activiti/Activiti | activiti-core/activiti-engine/src/main/java/org/activiti/engine/impl/cfg/multitenant/TenantAwareDataSource.java | Java | apache-2.0 | 3,773 |
package org.fastnate.generator.statements;
import org.fastnate.generator.context.SequenceIdGenerator;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
/**
* Base class for {@link ColumnExpression}s which reference an ID by using the value of a sequence.
*
* @author Tobias Liefke
*/
@Getter
@RequiredA... | liefke/org.fastnate | fastnate-generator/src/main/java/org/fastnate/generator/statements/SequenceValueExpression.java | Java | apache-2.0 | 1,008 |
/*
* 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 ... | fengshao0907/Cassandra-Research | src/java/org/apache/cassandra/index/SecondaryIndexManager.java | Java | apache-2.0 | 36,453 |
package org.noob.codewars.train.learn.prac2017.prac170105;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Copyright [2017$] [Wuxinshui]
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... | wuxinshui/noob | codewars/src/main/java/org/noob/codewars/train/learn/prac2017/prac170105/EvaluatorTest.java | Java | apache-2.0 | 1,245 |
/**
* A collection of service classes that are internally used by SeLion for all reporting related activities.
*/
package com.paypal.selion.reports.reporter.services; | mengchen2/SeLion_Demo | client/src/main/java/com/paypal/selion/reports/reporter/services/package-info.java | Java | apache-2.0 | 168 |
/*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | i49/cascade | cascade/src/main/java/io/github/i49/cascade/core/matchers/simple/PrefixMatcher.java | Java | apache-2.0 | 1,374 |
package cn.com.heaton.blelibrary.ble.callback;
/**
*
* Created by LiuLei on 2017/10/23.
*/
public abstract class BleWriteEntityCallback<T> {
public abstract void onWriteSuccess();
public abstract void onWriteFailed();
public void onWriteProgress(double progress){}
public void onWriteCancel(){}
}
| liulei-0911/BleDemo | core/src/main/java/cn/com/heaton/blelibrary/ble/callback/BleWriteEntityCallback.java | Java | apache-2.0 | 318 |
package com.juchao.upg.android.entity;
public class InspectionTask {
public int _id;
public long id;
public String taskName;
public String startTime;
public String endTime;
public int index; //任务序号 不保存数据库
public boolean isDownloaded; //是否已经下载对应的点检任务
public int state; //0 :未完成 , 1:已完成
//public int type;... | Jack-Xiao/UPG_2 | src/com/juchao/upg/android/entity/InspectionTask.java | Java | apache-2.0 | 856 |
package com.fcdream.dress.kenny.bo;
import android.os.Environment;
import com.fcdream.dress.kenny.utils.FileUtils;
/**
* Copyright (c) 2017, 北京视达科科技有限责任公司 All rights reserved.
* author:shumeng.du
* date:2017/9/4
* description:
*/
public class MyFilePathEntity {
private String baiduSpeechPath;
public s... | dushumeng/DressKenny | app/src/main/java/com/fcdream/dress/kenny/bo/MyFilePathEntity.java | Java | apache-2.0 | 1,415 |
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2017, Arnaud Roques
*
* Project Info: http://plantuml.com
*
* This file is part of PlantUML.
... | Banno/sbt-plantuml-plugin | src/main/java/net/sourceforge/plantuml/svek/ShapePseudoImpl.java | Java | apache-2.0 | 1,599 |
/*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | robinverduijn/gradle | subprojects/dependency-management/src/main/java/org/gradle/internal/resolve/caching/ComponentMetadataRuleExecutor.java | Java | apache-2.0 | 4,079 |
/*
* Copyright (c) 2008-2015 Citrix Systems, 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 ... | netscaler/sdx_nitro | src/main/java/com/citrix/sdx/nitro/resource/config/mps/current_timezone.java | Java | apache-2.0 | 7,188 |
/*
* 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-macie2/src/main/java/com/amazonaws/services/macie2/model/transform/DisassociateMemberRequestProtocolMarshaller.java | Java | apache-2.0 | 2,690 |
/*
* 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 ... | rdblue/incubator-nifi | nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/java/org/apache/nifi/audit/ProcessGroupAuditor.java | Java | apache-2.0 | 10,704 |
/*
* 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-speech | proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java | Java | apache-2.0 | 37,482 |
package love.cq.domain;
import java.util.Arrays;
public class Value {
private String keyword;
private String[] paramers = new String[0];
public Value(String keyword, String... paramers) {
this.keyword = keyword;
if (paramers != null) {
this.paramers = paramers;
}
}
public Value(String temp) {
String... | AllienPhone/elasticsearch-analysis-Ansj | src/love/cq/domain/Value.java | Java | apache-2.0 | 996 |
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | talsma-ict/umldoclet | src/plantuml-asl/src/net/sourceforge/plantuml/anim/AffineTransformation.java | Java | apache-2.0 | 5,198 |
/***
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2011 INRIA, France Telecom
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistribution... | ikisis/spec4j | spec4j-agent/src/main/java/spec4j/asm/tree/analysis/Frame.java | Java | apache-2.0 | 24,831 |
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | dryganets/vogar | src/vogar/RetrievedFilesFilter.java | Java | apache-2.0 | 1,459 |
/*******************************************************************************
* Copyright (c) 2006-2010 eBay 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
... | ebayopensource/turmeric-monitoring | mgmt-console/src/main/java/org/ebayopensource/turmeric/monitoring/client/model/SelectionContext.java | Java | apache-2.0 | 5,896 |
package com.rbac.service;
import com.rbac.entity.FunctionEntity;
import com.rbac.entity.MenuEntity;
import com.rbac.vo.PageResult;
import com.rbac.vo.formbean.FunctionFormBean;
import java.util.List;
/**
*
*/
public interface FunctionService {
PageResult<FunctionFormBean> pageQueryFunction(int currentPage, in... | cx118118/ssm-rbac | src/main/java/com/rbac/service/FunctionService.java | Java | apache-2.0 | 595 |
/*
* 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/builder/BuilderInstruction.java | Java | apache-2.0 | 2,483 |
/*
* Copyright 2016-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | mp911de/lettuce | src/main/java/io/lettuce/core/cluster/pubsub/api/sync/NodeSelectionPubSubCommands.java | Java | apache-2.0 | 1,923 |
/*
* Copyright (C) 2017-2019 Dremio 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 l... | dremio/dremio-oss | sabot/kernel/src/main/java/com/dremio/exec/store/parquet/ParquetTypeHelper.java | Java | apache-2.0 | 17,594 |
/*
* Copyright 2015 the original author or authors.
* @https://github.com/scouter-project/scouter
*
* 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... | scouter-project/scouter | scouter.client/src/scouter/client/xlog/views/XLogViewPainter.java | Java | apache-2.0 | 26,327 |
package org.jboss.resteasy.test.injection;
import org.jboss.resteasy.spi.ResteasyProviderFactory;
import org.jboss.resteasy.test.injection.resource.ProviderInjectionProviderReader;
import org.junit.Assert;
import org.junit.Test;
/**
* @tpSubChapter Injection tests
* @tpChapter Unit tests
* @tpTestCaseDetails Test ... | awhitford/Resteasy | testsuite/unit-tests/src/test/java/org/jboss/resteasy/test/injection/ProviderInjectionTest.java | Java | apache-2.0 | 1,069 |
/*
* 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-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/transform/GetMaintenanceWindowTaskRequestMarshaller.java | Java | apache-2.0 | 2,464 |
/*
* Copyright 2013 Henrik Baerbak Christensen, Aarhus University
*
* 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 requi... | ecosense-au-dk/karibu-tutorial | test/cs/karibu/helloworld/testdoubles/NullStatisticsHandler.java | Java | apache-2.0 | 1,612 |
package com.xinghai.framework.utils;
import android.annotation.TargetApi;
import android.os.Build;
import android.os.Environment;
import android.os.StatFs;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStreamReader;
/**
* created at 16/10/27... | yuanbaoyu/Android-Framework | framework/src/main/java/com/xinghai/framework/utils/SDCardUtils.java | Java | apache-2.0 | 4,582 |
package com.alipay.api.request;
import com.alipay.api.domain.AlipayOpenPublicUserFollowQueryModel;
import java.util.Map;
import com.alipay.api.AlipayRequest;
import com.alipay.api.internal.util.AlipayHashMap;
import com.alipay.api.response.AlipayOpenPublicUserFollowQueryResponse;
import com.alipay.api.AlipayObject;
... | wendal/alipay-sdk | src/main/java/com/alipay/api/request/AlipayOpenPublicUserFollowQueryRequest.java | Java | apache-2.0 | 3,025 |
package net.floodlightcontroller.QoSPolicyManager;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import org.codehaus.jackson.JsonParseException;
import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.JsonToken;
import org.codehaus.jackson.map.MappingJsonFactory;
import or... | jimmyoic/floodlight-qosmanager | src/main/java/net/floodlightcontroller/QoSPolicyManager/RestrictionResource.java | Java | apache-2.0 | 7,505 |
package me.lake.sample;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Ap... | lakeinchina/Live4Danmaku | sample/src/androidTest/java/me/lake/sample/ApplicationTest.java | Java | apache-2.0 | 345 |
package jeffaschenk.commons.standards.statecodes;
import jeffaschenk.commons.standards.CountryCode;
/**
* Official ISO-3166 State/Province Codes
* <p/>
* Country: Lao Peoples Democratic Republic
*
* @author jeffaschenk@gmail.com
* Date: May 19, 2010
* Time: 12:12:11 PM
*/
@SuppressWarnings("un... | jaschenk/jeffaschenk-commons | src/main/java/jeffaschenk/commons/standards/statecodes/StateCodes_LA.java | Java | apache-2.0 | 3,468 |
/*
* 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 ... | ServiceComb/java-chassis | demo/demo-springmvc/springmvc-server/src/main/java/org/apache/servicecomb/demo/springmvc/server/ControllerImpl.java | Java | apache-2.0 | 3,364 |
/*
* 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 ... | heriram/incubator-asterixdb | hyracks-fullstack/hyracks/hyracks-control/hyracks-control-common/src/main/java/org/apache/hyracks/control/common/ipc/CCNCFunctions.java | Java | apache-2.0 | 46,469 |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | Lihuanghe/CMPPGate | src/main/java/org/marre/sms/SmsUserData.java | Java | apache-2.0 | 3,257 |
/*
* Updater.java
*
* Copyright 2006 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 re... | moreus/hadoop | hadoop-0.2.0/src/java/org/apache/hadoop/metrics/Updater.java | Java | apache-2.0 | 920 |
/*
* 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 ... | hanahmily/sky-walking | apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/define/appcomp/ApplicationComponentDayH2TableDefine.java | Java | apache-2.0 | 1,394 |
package eu.claudiumihaila.nlp.uima;
import java.util.Iterator;
import org.apache.uima.aae.client.UimaAsBaseCallbackListener;
import org.apache.uima.cas.CAS;
import org.apache.uima.cas.CASException;
import org.apache.uima.cas.CASRuntimeException;
import org.apache.uima.cas.text.AnnotationIndex;
import org.apache.uima.... | claudiu-mihaila/uima-as-skeleton | src/main/java/eu/claudiumihaila/nlp/uima/Application.java | Java | apache-2.0 | 1,631 |
/*
* Copyright 2011 Edmunds.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 law or agre... | edmunds/etm-api | etm-common/src/main/java/com/edmunds/etm/common/api/UrlTokenType.java | Java | apache-2.0 | 721 |
/*
* 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")... | firejack-open/Firejack-Platform | integration/src/main/java/net/firejack/platform/api/process/domain/Case.java | Java | apache-2.0 | 4,564 |
package com.u2ware.springfield.controller;
import org.springframework.data.domain.Pageable;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
public interface EntityController<T,Q> {
public final static String COMMAND_ID_PATH = "command_id_path";
public final static Stri... | u2ware/springfield | src/main/java/com/u2ware/springfield/controller/EntityController.java | Java | apache-2.0 | 1,860 |
/*
* Copyright 2015-2019 The OpenZipkin 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 a... | abesto/zipkin | zipkin-storage/cassandra/src/test/java/zipkin2/storage/cassandra/ITCassandraStorage.java | Java | apache-2.0 | 10,867 |
/*
* Copyright 2002-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | qobel/esoguproject | spring-framework/spring-test/src/test/java/org/springframework/test/context/junit4/FailingBeforeAndAfterMethodsJUnitTests.java | Java | apache-2.0 | 6,904 |
/*
* (c) the authors Licensed under the Apache License, Version 2.0.
*/
package org.roaringbitmap;
import org.roaringbitmap.buffer.MappeableBitmapContainer;
import org.roaringbitmap.buffer.MappeableContainer;
import java.io.*;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.LongBuffer;
impor... | RoaringBitmap/RoaringBitmap | RoaringBitmap/src/main/java/org/roaringbitmap/BitmapContainer.java | Java | apache-2.0 | 52,906 |
/*
* Copyright (c) 2005-2012, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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
*
* http://www.apache.o... | maheshika/carbon4-kernel | core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/session/CarbonTomcatSimpleTcpCluster.java | Java | apache-2.0 | 3,176 |
/*
* This file is part of ATLAS. It is subject to the license terms in
* the LICENSE file found in the top-level directory of this distribution.
* (Also available at http://www.apache.org/licenses/LICENSE-2.0.txt)
* You may not use this file except in compliance with the License.
*/
package de.dfki.asr.atlas.cdi.a... | dfki-asr/atlas-server | src/main/java/de/dfki/asr/atlas/cdi/annotations/AtlasExporter.java | Java | apache-2.0 | 689 |
package com.zblog.core.lucene;
import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import org.apache.lucene.analysis.Analyzer;
imp... | hawklithm/zblog | src/main/java/com/zblog/core/lucene/QueryBuilder.java | Java | apache-2.0 | 5,810 |
package com.example.mobilesafe.db;
/**
* Created by 若兰 on 2015/12/25.
* 一个懂得了编程乐趣的小白,希望自己
* 能够在这个道路上走的很远,也希望自己学习到的
* 知识可以帮助更多的人,分享就是学习的一种乐趣
* QQ:1069584784
* csdn:http://blog.csdn.net/wuyinlei
*/
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
/**
* 归属地查询数据库
*/
public class Ad... | wuyinlei/MobileSafe | src/main/java/com/example/mobilesafe/db/AddressDao.java | Java | apache-2.0 | 3,661 |
package acc.common.cmdline;
/**
* Defines a data validator.
*/
public interface IValidator {
/**
* Validates the specified value and returns an error message if the data is not valid.
* If the data is valid, method should return null.
* @param value Value to validate
* @return Null value if d... | Guidewire/java-cmd-parser | src/acc/common/cmdline/IValidator.java | Java | apache-2.0 | 408 |