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) 2010-2013 Alibaba Group Holding Limited
*
* 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 ... | diwayou/rocketmq-all-trans | rocketmq-common/src/main/java/com/alibaba/rocketmq/common/filter/FilterAPI.java | Java | apache-2.0 | 3,598 |
/**
* <copyright>
*
* Copyright (c) 2010 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
... | adbrucker/SecureBPMN | designer/src/org.activiti.designer.model.edit/src/org/eclipse/securebpmn2/provider/CompositeItemAwareElementActionItemProvider.java | Java | apache-2.0 | 4,878 |
/*
* Copyright 2016 Davide Maestroni
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | davide-maestroni/jroutine | android-core/src/main/java/com/github/dm/jrt/android/v4/core/LoaderContextCompat.java | Java | apache-2.0 | 8,667 |
/*
* Copyright 2013 Future Systems
*
* 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... | araqne/logdb | araqne-logdb/src/main/java/org/araqne/logdb/query/aggregator/Sum.java | Java | apache-2.0 | 2,107 |
package io.quarkus.security.test.cdi.app;
public class TestException extends RuntimeException {
}
| quarkusio/quarkus | extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/TestException.java | Java | apache-2.0 | 99 |
package com.cisco.axl.api._8;
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 ListDirectedCallParkRes c... | ox-it/cucm-http-api | src/main/java/com/cisco/axl/api/_8/ListDirectedCallParkRes.java | Java | apache-2.0 | 3,958 |
/*
* 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-logs/src/main/java/com/amazonaws/services/logs/model/DeleteResourcePolicyResult.java | Java | apache-2.0 | 2,365 |
/*
* 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 ... | wreda/cassandra | src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java | Java | apache-2.0 | 27,848 |
package com.netopyr.reduxfx.vscenegraph.builders;
import com.netopyr.reduxfx.vscenegraph.VNode;
import com.netopyr.reduxfx.vscenegraph.event.VEventHandler;
import com.netopyr.reduxfx.vscenegraph.event.VEventType;
import com.netopyr.reduxfx.vscenegraph.property.VProperty;
import javafx.geometry.Pos;
import io.vavr.coll... | netopyr/reduxfx | reduxfx-view/src/main/java/com/netopyr/reduxfx/vscenegraph/builders/HBoxBuilder.java | Java | apache-2.0 | 1,864 |
package simulation.story.actions;
import simulation.dialog.Dialog;
import simulation.story.Actor;
public class DialogActionType implements SceneActionType {
Dialog dialog;
public DialogActionType(String text) {
this.dialog = new Dialog(text);
}
@Override
public void start() {
}
... | seanoneillcode/maze-of-doom | src/main/java/simulation/story/actions/DialogActionType.java | Java | apache-2.0 | 554 |
package com.s24.search.solr.component.termstrategy;
import org.apache.lucene.analysis.Analyzer;
public class TermRankingStrategyBuilder {
private AbstractTermRankingStrategy toBuild;
private String q;
private String extraTerms;
private Analyzer analyzer;
private String fields;
private float ... | shopping24/solr-bmax-queryparser | src/main/java/com/s24/search/solr/component/termstrategy/TermRankingStrategyBuilder.java | Java | apache-2.0 | 1,948 |
/*
*
* Copyright (c) 2016 Krupal Shah, Harsh Bhavsar
* 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... | krupalshah/PinPlace | app/src/main/java/com/experiments/whereapp/config/DbConfig.java | Java | apache-2.0 | 1,076 |
/*
* Copyright (c) 2021 MarkLogic 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 ... | marklogic/java-client-api | marklogic-client-api/src/main/java/com/marklogic/client/dataservices/OutputEndpoint.java | Java | apache-2.0 | 3,339 |
package com.mine.junit;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/**
JUnit 4
Spring Test (Spring框架中的test包)
Spring 相关其他依赖包(不再赘述了,就是context等包)
<dependency>
<groupId>junit</group... | luoyedaren/show-me-the-code | showmecode/src/main/java/com/mine/junit/BaseTest.java | Java | apache-2.0 | 1,578 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | JoelMarcey/buck | src/com/facebook/buck/cxx/RanlibStep.java | Java | apache-2.0 | 2,338 |
/*
* 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-iam/src/main/java/com/amazonaws/services/identitymanagement/model/transform/PolicyUserStaxUnmarshaller.java | Java | apache-2.0 | 2,564 |
package org.bigdata.yelp.yelpreco;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Properties;
import org.bigdata.yelp.util.Property;
import com.amazonaws.AmazonClientException;
import com.amazonaws.... | Sapphirine/Yelp-Recommendation-Analysis | deprecated_project/src/main/java/org/bigdata/yelp/yelpreco/RecoLister.java | Java | apache-2.0 | 4,676 |
/*
* Copyright(C) 2014
* NEC Corporation All rights reserved.
*
* No permission to use, copy, modify and distribute this software
* and its documentation for any purpose is granted.
* This software is provided under applicable license agreement only.
*/
package com.nec.harvest.repository;
import com.nec.crud.C... | dangokuson/Harvest-JP | harvest/src/main/java/com/nec/harvest/repository/MonthlyPurchasesRepository.java | Java | apache-2.0 | 647 |
package com.yuyh.library.utils;
import android.content.Context;
import android.os.Vibrator;
/**
* 振动器
*
* @author yuyh.
* @date 16/4/9.
*/
public class VibrateUtils {
/**
* 控制手机振动的毫秒数
*
* @param context
* @param milliseconds
*/
public static void vibrate(Context context, long mi... | xqgdmg/DavidNBA-master | CommonLibrary/src/main/java/com/yuyh/library/utils/VibrateUtils.java | Java | apache-2.0 | 1,337 |
/*******************************************************************************
* Copyright 2017 Capital One Services, LLC and Bitwise, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... | capitalone/Hydrograph | hydrograph.ui/hydrograph.ui.dataviewer/src/main/java/hydrograph/ui/dataviewer/utilities/ViewDataSchemaHelper.java | Java | apache-2.0 | 3,363 |
/*
* Copyright 2021 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... | googleads/google-ads-java | google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/services/stub/BiddingStrategySimulationServiceStub.java | Java | apache-2.0 | 1,570 |
package univers.torri.fr.service.mapper;
import univers.torri.fr.domain.Authority;
import univers.torri.fr.domain.User;
import univers.torri.fr.service.dto.UserDTO;
import org.springframework.stereotype.Service;
import java.util.*;
import java.util.stream.Collectors;
/**
* Mapper for the entity User and its DTO ca... | PegazusFR/traveler-web-site | src/main/java/univers/torri/fr/service/mapper/UserMapper.java | Java | apache-2.0 | 2,313 |
/*
* Copyright (c) 2018, The Modern Way. 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 b... | themodernway/themodernway-server-core | src/main/groovy/com/themodernway/server/core/logging/IHasLogging.java | Java | apache-2.0 | 1,534 |
/*
* Copyright 2000-2016 Vaadin 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 to... | Legioth/vaadin | shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractTextualDateFieldState.java | Java | apache-2.0 | 811 |
package hotelmania.ontology;
import jade.content.*;
import jade.util.leap.*;
import jade.core.*;
/**
* Protege name: EndSimulation
* @author ontology bean generator
* @version 2014/05/23, 22:29:18
*/
public class EndSimulation implements AgentAction {
}
| mklew/EMSE-Hotelmania-Ontology | ontology/src/main/java/hotelmania/ontology/EndSimulation.java | Java | apache-2.0 | 258 |
package com.gdn.venice.factory;
import com.gdn.venice.persistence.VenOrderStatus;
import com.gdn.venice.util.VeniceConstants;
public class VenOrderStatusC {
public static VenOrderStatus createVenOrderStatus(){
VenOrderStatus status = new VenOrderStatus();
status.setOrderStatusCode("C");
status.setOrderStatusId... | yauritux/venice-legacy | Venice/Venice-Interface-Model/src/main/java/com/gdn/venice/factory/VenOrderStatusC.java | Java | apache-2.0 | 380 |
/*
* 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
* distrib... | markhobson/jtype | src/test/java/com/googlecode/jtype/test/AbstractTypeTest.java | Java | apache-2.0 | 1,956 |
package it.prisma.businesslayer.bizlib.rest.apiclients.monitoring.zabbix.dsl.response;
public class ErroreResponse {
}
| pon-prisma/PrismaDemo | BusinessLayer/src/main/java/it/prisma/businesslayer/bizlib/rest/apiclients/monitoring/zabbix/dsl/response/ErroreResponse.java | Java | apache-2.0 | 121 |
/*
* JSR 354 JavaFX Binding Example
*/
package org.javamoney.examples.javafx;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.SimpleDoubleProperty;
import org.javamoney.moneta.Money;
import javax.money.CurrencyUnit;
import javax.money.Monetary;
/**
* @author Werner Keil
*/
public class ... | JavaMoney/javamoney-examples | javafx/money-javafx-binding/src/main/java/org/javamoney/examples/javafx/Bill.java | Java | apache-2.0 | 1,041 |
/**
* 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... | bonnetb/sqoop | src/java/org/apache/sqoop/mapreduce/JdbcCallExportJob.java | Java | apache-2.0 | 3,709 |
/*
* Copyright 2017-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 ap... | thomasdarimont/spring-data-examples | jdbc/mybatis/src/main/java/example/springdata/jdbc/mybatis/AgeGroup.java | Java | apache-2.0 | 814 |
package com.hpu.rule.bean;
import android.content.Context;
import cn.bmob.v3.BmobInstallation;
public class MyBmobInstallation extends BmobInstallation {
//设备
private String device;
public MyBmobInstallation(Context context) {
super(context);
}
public String getDevice() {
return... | hjshpu/zhidubao | app/src/main/java/com/hpu/rule/bean/MyBmobInstallation.java | Java | apache-2.0 | 421 |
/*
* Copyright (C) 2015 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... | consp1racy/android-commons | appcompat-extra/src/main/java/android/support/v7/widget/XpAppCompatEditText.java | Java | apache-2.0 | 3,764 |
package base;
public class Player {
private String name;
private boolean AIControl;
public Player(String name, boolean aIControl) {
super();
this.name = name;
AIControl = aIControl;
}
}
| JayCee235/RTS-game | RTS game/src/base/Player.java | Java | apache-2.0 | 219 |
package io.stardog.email.emailers;
import com.amazonaws.services.simpleemail.AmazonSimpleEmailService;
import com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient;
import com.amazonaws.services.simpleemail.model.SendEmailResult;
import com.google.common.collect.ImmutableMap;
import io.stardog.email.data.E... | stardogventures/templatemail | src/test/java/io/stardog/email/emailers/AmazonSesEmailerTest.java | Java | apache-2.0 | 1,678 |
/**
* 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... | gustavoanatoly/hbase | hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionSplitPolicy.java | Java | apache-2.0 | 5,228 |
/*******************************************************************************
* Copyright 2011 kawasima
*
* 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.apa... | kawasima/longadeseo-old | longadeseo/src/test/java/net/unit8/longadeseo/plugin/PluginDescriptorTest.java | Java | apache-2.0 | 1,176 |
/*
* Copyright (c) 2015 Shervin Asgari
* 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 ... | cash1981/civilization-boardgame-rest | src/main/java/no/asgari/civilization/server/model/Aircraft.java | Java | apache-2.0 | 2,429 |
/**
*
* 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"); ... | intel-hadoop/hbase-rhino | hbase-client/src/main/java/org/apache/hadoop/hbase/CoordinatedStateException.java | Java | apache-2.0 | 1,581 |
/*
* Copyright (C) 2009 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... | cams7/apps-android | android-10/BluetoothChat/src/com/example/android/BluetoothChat/BluetoothChat.java | Java | apache-2.0 | 13,865 |
/**
* 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... | TCU-MI/ctakes | ctakes-assertion/src/main/java/org/apache/ctakes/assertion/pipelines/RunJudgeAttributeInstances.java | Java | apache-2.0 | 5,304 |
/*
* ====================================================================
* 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
... | ok2c/httpclient | httpclient5/src/main/java/org/apache/hc/client5/http/async/AsyncExecChain.java | Java | apache-2.0 | 3,871 |
package org.gradle.test.performance.mediummonolithicjavaproject.p91;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test1833 {
Production1833 objectUnderTest = new Production1833();
@Test
public void testProperty0() {
Production1824 value = new Production1824();
... | oehme/analysing-gradle-performance | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p91/Test1833.java | Java | apache-2.0 | 2,173 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/meta_master.proto
package alluxio.grpc;
/**
* Protobuf type {@code alluxio.grpc.meta.GetConfigReportPOptions}
*/
public final class GetConfigReportPOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_inser... | madanadit/alluxio | core/transport/src/main/java/alluxio/grpc/GetConfigReportPOptions.java | Java | apache-2.0 | 13,999 |
package com.xiaoleilu.hutool.convert.impl;
import com.xiaoleilu.hutool.convert.AbstractConverter;
import com.xiaoleilu.hutool.convert.Convert;
import com.xiaoleilu.hutool.util.ArrayUtil;
/**
* byte 类型数组转换器
* @author Looly
*
*/
public class ByteArrayConverter extends AbstractConverter<byte[]>{
@Override
protec... | hcxxiaomo/CarPlateNumber | src/main/java/com/xiaoleilu/hutool/convert/impl/ByteArrayConverter.java | Java | apache-2.0 | 480 |
package community.isecrity.dao.impl;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
i... | youimages/community | forestry/src/community/isecrity/dao/impl/UserDaoImpl.java | Java | apache-2.0 | 3,360 |
/* 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.collection.api;
import java.util.Collection;
/**
* This is the interface for a factory of {@link Collection}s. It allows to abstract from {@link Collection}
... | m-m-m/util | collection/src/main/java/net/sf/mmm/util/collection/api/CollectionFactory.java | Java | apache-2.0 | 4,051 |
public class ConcreteComponet extends Component{
public void method1() {
}
public void method2() {
}
public void mehtod3() {
}
}
| zhangchuanchuan/DesignMode | com/stream/decorator/common/ConcreteComponet.java | Java | apache-2.0 | 148 |
/* Copyright 2013-2014 Miguel Vicente Linares
*
* 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... | miviclin/droidengine2d | src/com/miviclin/droidengine2d/input/KeyProcessor.java | Java | apache-2.0 | 2,962 |
/**
* 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-model/src/main/java/io/gravitee/rest/api/model/ApplicationEntity.java | Java | apache-2.0 | 5,660 |
package com.easymargining.replication.eurex;
import com.easymargining.replication.eurex.domain.model.Request;
import com.easymargining.replication.eurex.controller.EurexPrismaController;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
/**
* Cr... | gmarchal/easymargining | Server/src/main/java/com/easymargining/replication/eurex/EurexMarginingServiceConfig.java | Java | apache-2.0 | 524 |
package io.alakazam;
import io.alakazam.cli.CheckCommand;
import io.alakazam.cli.Cli;
import io.alakazam.cli.ServerCommand;
import io.alakazam.setup.Bootstrap;
import io.alakazam.setup.Environment;
import io.alakazam.util.Generics;
import io.alakazam.util.JarLocation;
/**
* The base class for Alakazam applications.
... | jasongardnerlv/alakazam | alakazam-core/src/main/java/io/alakazam/Application.java | Java | apache-2.0 | 2,500 |
/*
* Copyright 2014 Miles Chaston
*
* 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... | mchaston/OakFunds | src/org/chaston/oakfunds/security/ui/UserPermissionsServlet.java | Java | apache-2.0 | 2,321 |
/*******************************************************************************
* Copyright 2019 Viridian Software Limited
*
* 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:/... | mini2Dx/mini2Dx | core/src/main/java/org/mini2Dx/core/input/button/SwitchJoyConRButton.java | Java | apache-2.0 | 1,703 |
package ru.tsibrovskii.LSP;
/**
* Класс запасного склада.
*/
public class WarehouseSecond extends Store {
public boolean putFood(Food food) {
double expirationDate = (food.expiryDate.getTime() - System.currentTimeMillis()) / ((double) (food.expiryDate.getTime() - food.createDate.getTime()));
if ... | Tsibrovskii/javaaz | Ch4OOD/src/main/java/ru/tsibrovskii/LSP/WarehouseSecond.java | Java | apache-2.0 | 499 |
/* Copyright 2019 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... | jonvestal/open-kilda | src-java/floodlightrouter-topology/floodlightrouter-storm-topology/src/test/java/org/openkilda/wfm/topology/floodlightrouter/bolts/SpeakerToNetworkProxyBoltTest.java | Java | apache-2.0 | 5,107 |
/*
* 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... | Union-Investment/Crud2Go | eai-portal-domain-crudportlet/src/main/java/de/unioninvestment/eai/portal/portlet/crud/domain/model/Trigger.java | Java | apache-2.0 | 1,170 |
/*
* 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 ... | kulinski/myfaces | impl/src/test/java/org/apache/myfaces/config/annotation/AnnotatedManagedBean.java | Java | apache-2.0 | 1,841 |
package org.pysz.agata.client;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
/**
* The client side stub for the RPC service.
*/
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
String greetServer(St... | fascynacja/blog-demos | gwt-marquee/src/main/java/org/pysz/agata/client/GreetingService.java | Java | apache-2.0 | 366 |
package org.apache.lucene.codecs.lucene3x;
/*
* 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 Licen... | smartan/lucene | src/main/java/org/apache/lucene/codecs/lucene3x/PreflexRWSegmentTermEnum.java | Java | apache-2.0 | 1,755 |
package de.fhg.iais.cortex.services.authentication;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.List;
import net.oauth.OAuth.Parameter;
import net.oauth.OAuthConsumer;
import net.oauth.OAuthException;
import net.oauth.OAuthMessage;
import com.google.inject.Inject;
import com.goog... | Deutsche-Digitale-Bibliothek/ddb-backend | CoreServices/src/main/java/de/fhg/iais/cortex/services/authentication/SimpleOAuthService.java | Java | apache-2.0 | 2,060 |
package com.cheerdev.accelerometersensortest;
import android.app.Activity;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorListener;
import android.hardware.SensorManager;
import android.os.B... | lovelan/androidstudy | AccelerometerSensorTest/src/com/cheerdev/accelerometersensortest/MainActivity.java | Java | apache-2.0 | 1,574 |
package com.example.bluesky.gankio.Presenter;
/**
* Created by localhost on 2016/11/21.
*/
public class WebPrsenter {
}
| blueskywang/gank.io | app/src/main/java/com/example/bluesky/gankio/Presenter/WebPrsenter.java | Java | apache-2.0 | 124 |
/*
* Copyright 2005-2007 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... | sbower/kuali-rice-1 | it/kew/src/test/java/org/kuali/rice/kew/actionrequest/DocumentRequeuerTest.java | Java | apache-2.0 | 5,021 |
package com.google.android.finsky.activities.onboard;
import android.animation.ArgbEvaluator;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Outline;
i... | ChiangC/FMTech | GooglePlay6.0.5/app/src/main/java/com/google/android/finsky/activities/onboard/AnimatedEntertainmentOnboardPage.java | Java | apache-2.0 | 27,255 |
package com.jake.example;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
public class SampleModel {
private final StringProperty nameProperty = new SimpleStringProperty();
private fina... | jake-stacktrace/com.jake.swtfx.binding | Example/src/main/java/com/jake/example/SampleModel.java | Java | apache-2.0 | 1,027 |
// "Use Trove THashMap (may change semantics)"
import gnu.trove.map.hash.THashMap;
import java.util.HashMap;
import java.util.Map;
public class THashMapExample {
<caret>private static final Map<String, String> STRING_STRING_CONSTANT = new THashMap<>();
} | artspb/jdk2trove | jdk2trove-plugin/testData/quickFix/hashmap/tHashMap/afterStringStringConstant.java | Java | apache-2.0 | 261 |
/*
* Copyright © 2013-2018 camunda services GmbH and various authors (info@camunda.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... | xasx/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/migration/validation/instance/MigratingTransitionInstanceValidator.java | Java | apache-2.0 | 1,163 |
package ca.sfu.client;
import java.awt.Container;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.io.IOException;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.s... | yukezhu/LifeGameSim | GameOfLifeClient/src/ca/sfu/client/MainFrame.java | Java | apache-2.0 | 4,665 |
/**
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
/**
* Entity objects describing simple payment financial instruments.
*/
package com.opengamma.strata.product.payment;
| ChinaQuants/Strata | modules/product/src/main/java/com/opengamma/strata/product/payment/package-info.java | Java | apache-2.0 | 261 |
/**
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Cybnate/NuBitsj | core/src/main/java/com/matthewmitchell/nubitsj/core/InventoryMessage.java | Java | apache-2.0 | 3,212 |
package io.github.giovibal.mqtt;
import io.vertx.core.Vertx;
import io.vertx.core.shareddata.LocalMap;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.regex.Pattern;
/**
* Created by giovanni on 10/05/2014.
* Manages subscritpions and MQTT topic rules
*/
public class MQTTTopicsManager imple... | GruppoFilippetti/vertx-mqtt-broker | src/main/java/io/github/giovibal/mqtt/MQTTTopicsManager.java | Java | apache-2.0 | 1,872 |
package net.kernal.spiderman.worker.result;
import net.kernal.spiderman.worker.Task;
import net.kernal.spiderman.worker.extract.ExtractResult;
import net.kernal.spiderman.worker.extract.ExtractTask;
/**
* 结果任务
* <Short overview of features>
* <Features detail>
*
* @author qwop
* @date May 21, 2017
* @ver... | qwop/spiderman2 | src/main/java/net/kernal/spiderman/worker/result/ResultTask.java | Java | apache-2.0 | 1,062 |
package com.pi4j.io.gpio.event;
/*
* #%L
* **********************************************************************
* ORGANIZATION : Pi4J
* PROJECT : Pi4J :: Java Library (Core)
* FILENAME : PinAnalogValueChangeEvent.java
*
* This file is part of the Pi4J project. More information about
* this... | starksm64/pi4j | pi4j-core/src/main/java/com/pi4j/io/gpio/event/PinAnalogValueChangeEvent.java | Java | apache-2.0 | 1,991 |
package com.google.sampling.experiential.cloudsql.columns;
import com.pacoapp.paco.shared.model2.EventBaseColumns;
public class EventServerColumns extends EventBaseColumns {
public static final String WHO = "who";
//since when is a keyword, we have to always use a back tick when we use it in any sql query.
publ... | google/paco | Paco-Server/src/com/google/sampling/experiential/cloudsql/columns/EventServerColumns.java | Java | apache-2.0 | 1,078 |
package org.gradle.test.performance.mediummonolithicjavaproject.p260;
public class Production5218 {
private Production5215 property0;
public Production5215 getProperty0() {
return property0;
}
public void setProperty0(Production5215 value) {
property0 = value;
}
priv... | oehme/analysing-gradle-performance | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p260/Production5218.java | Java | apache-2.0 | 1,963 |
package org.sur.ds.selection;
import org.junit.Assert;
import org.junit.Test;
public class DutchFlagProblemTest {
@Test
public void testSolve1() {
Integer[] numbers = new Integer[]{2,1,0,2,0,1};
DutchFlagProblem dfp = new DutchFlagProblem();
dfp.solve(numbers);
Integer[] expected = new Integer[]{0,0,1,1,2,... | bluewolf8/examples | BasicAlgorithms/src/test/java/org/sur/ds/selection/DutchFlagProblemTest.java | Java | apache-2.0 | 636 |
/*
* 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 applicab... | GoogleCloudDataproc/hadoop-connectors | gcsio/src/main/java/com/google/cloud/hadoop/gcsio/CreateFileOptions.java | Java | apache-2.0 | 3,632 |
/*
* Copyright 2006-2008 Web Cohesion
*
* 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... | garyhodgson/enunciate | core/src/main/java/org/codehaus/enunciate/main/EnunciateTask.java | Java | apache-2.0 | 12,942 |
package com.faviotorres.pariaguas.utils;
import com.faviotorres.pariaguas.Constants;
import com.faviotorres.pariaguas.R;
import com.faviotorres.pariaguas.model.TempColor;
public class TemperatureUtils {
private static final float KELVIN = 273.15F;
private int getCelsiusFromKelvin(double kelvin){
dou... | faviotorres/Pariaguas | app/src/main/java/com/faviotorres/pariaguas/utils/TemperatureUtils.java | Java | apache-2.0 | 1,356 |
package com.pearson.statsagg.network.tcp;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel... | PearsonEducation/StatsAgg | src/main/java/com/pearson/statsagg/network/tcp/TcpServer.java | Java | apache-2.0 | 7,937 |
package com.lchtime.safetyexpress.bean;
/**
* @author Admin
* @time 2017/4/7 9:44
* @des ${TODO}
*/
public class LoginResult {
public BasicResult result;//基础结果
public String vc_code;//验证码
public String ub_id;//用户的ID
}
| simonOrganization/safe | app/src/main/java/com/lchtime/safetyexpress/bean/LoginResult.java | Java | apache-2.0 | 256 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | JoelMarcey/buck | src/com/facebook/buck/rules/modern/builders/ModernBuildRuleRemoteExecutionHelper.java | Java | apache-2.0 | 36,277 |
package uk.co.mmckenzie.visual;
import java.util.ArrayList;
import javafx.fxml.FXML;
import javafx.scene.control.TabPane;
public class MainController implements Controller
{
private static ArrayList<Controller> allControllers = new ArrayList<>();
@FXML
private TabPane tabPane;
@FXML
private v... | mmckenzie70/visual | src/main/java/uk/co/mmckenzie/visual/MainController.java | Java | apache-2.0 | 687 |
package com.royalrangers.enums.achivement;
public enum TestType {
/*0*/ DEFAULT,
/*1*/ BLUE,
/*2*/ GREEN,
/*3*/ YELLOW,
/*4*/ LIGHTBLUE,
/*5*/ RED,
/*6*/ ORANGE,
/*7*/ BROWN,
/*8*/ PLATINUM
}
| royalrangers-ck/rr-api | src/main/java/com/royalrangers/enums/achivement/TestType.java | Java | apache-2.0 | 229 |
// ========================================================================
// Copyright (c) 2010 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Ecl... | thomasbecker/jetty-spdy | jetty-webapp/src/test/java/org/eclipse/jetty/webapp/WebAppContextTest.java | Java | apache-2.0 | 6,755 |
/*******************************************************************************
* Copyright 2015 Maximilian Stark | Dakror <mail@dakror.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... | Dakror/Vloxlands | core/src/de/dakror/vloxlands/game/Game.java | Java | apache-2.0 | 28,522 |
package org.dorkmaster.yasd.where;
import org.dorkmaster.yasd.Column;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/**
* Author: mjackson
* Date: 5/13/15 11:06 PM
*/
public class Between extends AbstractCondition{
private Column column;
private List<Object> params = new ... | minininja/yasd | src/main/java/org/dorkmaster/yasd/where/Between.java | Java | apache-2.0 | 910 |
package controller.implementation;
import java.math.BigInteger;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import controller.FuncionarioController;
import domain.Funcionario;
public class FuncionarioControllerImpl implement... | a1705164/Restaurante | Restaurante/Web/src/controller/implementation/FuncionarioControllerImpl.java | Java | apache-2.0 | 2,337 |
/**
* 文件名 : package-info.java
* 包 名 : tk.ainiyue.danyuan.application.dbm.tabs
* 描 述 : TODO(用一句话描述该文件做什么)
* 机能名称:
* 技能ID :
* 作 者 : wang
* 时 间 : 2017年7月12日 下午10:22:30
* 版 本 : V1.0
*/
package org.danyuan.application.dbms.tabs; | 514840279/danyuan-application | src/main/java/org/danyuan/application/dbms/tabs/package-info.java | Java | apache-2.0 | 360 |
/**
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not all... | alfiethomas/datafilters | build/JSCover-0.1.1/src/test-integration/java/jscover/report/lcov/LCovGeneratorIntegrationTest.java | Java | apache-2.0 | 20,988 |
/*
* Copyright (c) 2015 mgm technology partners GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | mgm-tp/jfunk | jfunk-core/src/main/java/com/mgmtp/jfunk/core/ui/JFunkFrame.java | Java | apache-2.0 | 18,651 |
/*
* 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.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleInsertReplaceMethodIgnore.java | Java | apache-2.0 | 2,574 |
/*
* 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 writin... | rPraml/org.openntf.domino | domino/core/src/main/java/org/openntf/domino/ViewEntry.java | Java | apache-2.0 | 4,134 |
/**
*
*/
package org.minnal.security.auth;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.St... | minnal/minnal | minnal-security/src/main/java/org/minnal/security/auth/JaxrsWebContext.java | Java | apache-2.0 | 3,914 |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | zapbot/zaproxy | src/org/zaproxy/zap/extension/anticsrf/ExtensionAntiCSRF.java | Java | apache-2.0 | 15,949 |
/* ###
* IP: GHIDRA
*
* 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... | NationalSecurityAgency/ghidra | Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/sparseimage/SparseImageFileSystem.java | Java | apache-2.0 | 4,153 |
package com.darrensun.timus;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
/**
* Timus 1881 - Long problem statement
* Created by Darren on 14-7-9.
*/
public class Q1881 {
public static void main(String[] args) {
Buffered... | darrensun/OJ-Solutions | src/com/darrensun/timus/Q1881.java | Java | apache-2.0 | 1,228 |
package com.turn.ttorrent.client.network;
import com.turn.ttorrent.client.Context;
import com.turn.ttorrent.client.Handshake;
import com.turn.ttorrent.client.LoadedTorrent;
import com.turn.ttorrent.client.SharedTorrent;
import com.turn.ttorrent.client.peer.SharingPeer;
import com.turn.ttorrent.common.LoggerUtils;
impo... | JetBrains/ttorrent-lib | ttorrent-client/src/main/java/com/turn/ttorrent/client/network/HandshakeReceiver.java | Java | apache-2.0 | 6,252 |
package am.foodi.popularmovies;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
public class ReviewAdapter extends ArrayAdapter<Review> {
Context mContext;
public R... | dougchestnut/udacity-movies-app | app/src/main/java/am/foodi/popularmovies/ReviewAdapter.java | Java | apache-2.0 | 1,001 |