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 2014 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... | anupcshan/bazel | src/java_tools/buildjar/java/com/google/devtools/build/buildjar/AbstractJavaBuilder.java | Java | apache-2.0 | 6,190 |
/*
* Copyright © 2014 - 2019 Leipzig University (Database Research Group)
*
* 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
*
* Unles... | rostam/gradoop | gradoop-flink/src/main/java/org/gradoop/flink/model/impl/functions/epgm/ByProperty.java | Java | apache-2.0 | 2,334 |
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* Project Info: http://plantuml.com
*
* If you like this project or if you find it useful, you can support us at:
* ... | talsma-ict/umldoclet | src/plantuml-asl/src/gen/lib/cgraph/subg__c.java | Java | apache-2.0 | 6,542 |
//
// ========================================================================
// Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | sdw2330976/Research-jetty-9.2.5 | jetty-websocket/javax-websocket-server-impl/src/test/java/org/eclipse/jetty/websocket/jsr356/server/samples/primitives/LongObjectTextSocket.java | Java | apache-2.0 | 2,027 |
package com.pengjieran.controller;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by aaron on 2016/4/28.
*/
@RestContr... | pengjieran/spring-show-case | springmvc/src/main/java/com/pengjieran/controller/TestController.java | Java | apache-2.0 | 565 |
package chapter01;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
/**
* Created by Peng on 2016/1/27.
* Using calendar.
*/
public class CalendarTest {
public static void main(String[] args) {
Calendar calendar = new GregorianCale... | liupeng3425/learnJava | src/chapter01/CalendarTest.java | Java | apache-2.0 | 720 |
/*
* Copyright 2010-2011 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 "l... | apetresc/aws-sdk-for-java-on-gae | src/main/java/com/amazonaws/services/cloudformation/AmazonCloudFormationAsync.java | Java | apache-2.0 | 12,425 |
/*
* Copyright 2016 Carlos Ballesteros Velasco
*
* 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... | intrigus/jtransc | jtransc-rt/src/java/lang/reflect/InvocationTargetException.java | Java | apache-2.0 | 1,264 |
package lmax;
import com.lmax.disruptor.EventHandler;
import com.lmax.disruptor.WorkHandler;
import java.util.UUID;
public class TradeTransactionInDBHandler implements EventHandler<TradeTransaction>, WorkHandler<TradeTransaction> {
@Override
public void onEvent(TradeTransaction event, long sequence,
... | whyDK37/pinenut | commons/src/test/java/lmax/TradeTransactionInDBHandler.java | Java | apache-2.0 | 624 |
/*
* Copyright 2013-2016 abuabdul.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | abuabdul/FourT | src/main/java/com/abuabdul/fourt/controller/FourTLandingController.java | Java | apache-2.0 | 7,243 |
package com.david.gradientuilibrary;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.view.LayoutInf... | wangdong20/AndroidGradientUI | gradientuilibrary/src/main/java/com/david/gradientuilibrary/GradientIconView.java | Java | apache-2.0 | 3,106 |
package org.web3j.abi.datatypes.generated;
import java.math.BigInteger;
import org.web3j.abi.datatypes.Fixed;
/**
* <p>Auto generated code.<br>
* <strong>Do not modifiy!</strong><br>
* Please use {@link org.web3j.codegen.AbiTypesGenerator} to update.</p>
*/
public class Fixed56x160 extends Fixed {
public sta... | saulbein/web3j | core/src/main/java/org/web3j/abi/datatypes/generated/Fixed56x160.java | Java | apache-2.0 | 587 |
package net.webservicex;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
/**
* This class was generated by Apache CXF 3.1.11
* 2017-04... | iboris1/java_pft | soap-sample/src/main/java/net/webservicex/GeoIPServiceSoap.java | Java | apache-2.0 | 1,957 |
/*
* 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-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/dto/management/JobDefinitionDto.java | Java | apache-2.0 | 2,394 |
package crate.elasticsearch.searchinto.mapping;
import java.util.HashMap;
import java.util.Map;
import org.elasticsearch.ElasticSearchException;
import org.elasticsearch.common.collect.ImmutableMap;
import org.elasticsearch.common.collect.MapBuilder;
import org.elasticsearch.index.mapper.internal.IdFieldMapper;
impor... | crate/elasticsearch-inout-plugin | src/main/java/crate/elasticsearch/searchinto/mapping/FieldWriter.java | Java | apache-2.0 | 4,600 |
package com.astudio.inspicsoc.activity;
import java.util.ArrayList;
import java.util.List;
import com.astudio.inspicsoc.R;
import com.astudio.inspicsoc.adapter.CatAdapter;
import com.astudio.inspicsoc.model.Cat;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widg... | A-Studio0/InsPicSoc | src/com/astudio/inspicsoc/activity/GroupInfoActivity.java | Java | apache-2.0 | 3,282 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may ... | xhoong/incubator-calcite | core/src/test/java/org/apache/calcite/test/CalciteAssert.java | Java | apache-2.0 | 71,611 |
package edu.udayton.issslab.handler;
public interface Handler {
public String getAspect();
public Exception generateAspect() throws Exception;
}
| SINCConcept/P4SINC | instrumentation/src/edu/udayton/issslab/handler/Handler.java | Java | apache-2.0 | 151 |
/*
* Copyright 2006 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 appl... | Ariah-Group/Finance | af_webapp/src/main/java/org/kuali/kfs/module/bc/businessobject/BudgetConstructionAccountDump.java | Java | apache-2.0 | 5,414 |
/*
* Copyright 2020 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | b2ihealthcare/snow-owl | core/com.b2international.snowowl.core/src/com/b2international/snowowl/core/request/ExportRequest.java | Java | apache-2.0 | 1,967 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | punkhorn/camel-upstream | tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/CamelAwsMskTest.java | Java | apache-2.0 | 1,734 |
package com.pearson.statsagg.utilities.core_utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class KeyValue<S, T> {
private static final Logger logger = LoggerFactory.getLogger(KeyValue.class.getName());
private S key_ = null;
public T value_ = null;
public KeyValu... | PearsonEducation/StatsAgg | src/main/java/com/pearson/statsagg/utilities/core_utils/KeyValue.java | Java | apache-2.0 | 651 |
package org.dbflute.erflute.editor.persistent.xml.reader;
import java.util.List;
import org.dbflute.erflute.core.util.Srl;
import org.dbflute.erflute.editor.model.ERDiagram;
import org.dbflute.erflute.editor.model.diagram_contents.element.node.ermodel.ERVirtualDiagram;
import org.dbflute.erflute.editor.model.diagram_... | dbflute-session/erflute | src/org/dbflute/erflute/editor/persistent/xml/reader/ReadTableLoader.java | Java | apache-2.0 | 6,236 |
/***
Copyright (c) 2008-2012 CommonsWare, LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required
by applicable law or agreed to in w... | krovs/cw-omnibus | ActionBar/ActionBarDemoNative/src/com/commonsware/android/inflation/ActionBarDemoActivity.java | Java | apache-2.0 | 3,018 |
package com.github.publickey.test.pojo;
public class MultiConstructorPojo {
private String stringValue;
private double doubleValue;
private int intValue;
public MultiConstructorPojo() {
super();
}
public MultiConstructorPojo(String stringValue, double doubleValue, int intValue) {
super();
this.stringValu... | PublicKey/pojo-test-utils | src/test/java/com/github/publickey/test/pojo/MultiConstructorPojo.java | Java | apache-2.0 | 1,885 |
/*
* Copyright 2009 Thomas Bocek
*
* 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 ... | maxatp/tomp2p_5 | core/src/main/java/net/tomp2p/futures/BaseFutureListener.java | Java | apache-2.0 | 1,569 |
/*
* 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 | server/src/main/java/io/crate/execution/engine/collect/sources/CollectSource.java | Java | apache-2.0 | 1,686 |
package com.tlorrain.android.rezenerator.core.processor;
import java.io.File;
import com.tlorrain.android.rezenerator.core.Dimensions;
import com.tlorrain.android.rezenerator.core.log.Logger;
public interface Processor {
boolean process(File inFile, File outFile, Dimensions outDims, Logger logger);
String extens... | fredszaq/Rezenerator | rezenerator-core/src/main/java/com/tlorrain/android/rezenerator/core/processor/Processor.java | Java | apache-2.0 | 330 |
/**
* Robot Interfaces used for creating new robot types, e.g. with other programming languages.
*/
package robocode.robotinterfaces;
| programus/j-bots | eclipse/base/robocode-src/robocode.api/src/main/java/robocode/robotinterfaces/package-info.java | Java | apache-2.0 | 136 |
/*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "License"); you may not use this file exce... | grzesuav/gjpf-core | main/src/main/java/gov/nasa/jpf/vm/NativeStackFrame.java | Java | apache-2.0 | 7,267 |
// Copyright 2015 Cloudera Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | kapilrastogi/Impala | fe/src/main/java/com/cloudera/impala/planner/KuduScanNode.java | Java | apache-2.0 | 13,407 |
/**
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not u... | aslakknutsen/arquillian-extension-warp | impl/src/main/java/org/jboss/arquillian/warp/server/request/RequestContextHandler.java | Java | apache-2.0 | 1,785 |
package com.github.swalffy.ui.actions.room;
import com.github.swalffy.ui.actions.IAction;
import com.github.swalffy.utils.Constants;
import com.github.swalffy.utils.Printer;
import com.github.swalffy.utils.Reader;
import java.io.IOException;
public class RoomEvictAction implements IAction {
@Override
public... | swalffy/Practice_repository | HW#5/UI/src/com/github/swalffy/ui/actions/room/RoomEvictAction.java | Java | apache-2.0 | 571 |
package android.support.v4.app;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import android.util.AttributeSet;
import android.view.View.BaseSavedState;
import android.widget.FrameLayout;
import andro... | mmmsplay10/QuizUpWinner | quizup/android/support/v4/app/FragmentTabHost.java | Java | apache-2.0 | 6,782 |
package org.granite.nlp.phrases;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import com.google.common.collect.ImmutableList;
import java.util.HashMap;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.atomi... | CBrophy/granite-classification | granite-nlp-tools/src/test/java/org/granite/nlp/phrases/IdentityPhraseTest.java | Java | apache-2.0 | 2,672 |
/*
* Copyright 2009-2013 by The Regents of the University of California
* 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 from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | tectronics/hyracks | hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/file/IFileSplitProvider.java | Java | apache-2.0 | 813 |
package im.getsocial.demo.adapter;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import java.text.DateFormat;
import java.util.... | getsocial-im/getsocial-android-sdk | example/src/main/java/im/getsocial/demo/adapter/ActivityListAdapter.java | Java | apache-2.0 | 1,670 |
/**
* Copyright 2017 Smart Society Services B.V.
*
* 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
*/
package org.opensmartgridplatform.ada... | OSGP/Platform | osgp-adapter-ws-distributionautomation/src/main/java/org/opensmartgridplatform/adapter/ws/da/application/mapping/DistributionAutomationMapper.java | Java | apache-2.0 | 3,686 |
//
// ========================================================================
// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | whiteley/jetty8 | jetty-server/src/main/java/org/eclipse/jetty/server/handler/HandlerList.java | Java | apache-2.0 | 2,124 |
/**
* Copyright 2013 Matija Mazi.
*
* 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... | doged/dogecoindarkj | core/src/main/java/com/dogecoindark/dogecoindarkj/crypto/HDDerivationException.java | Java | apache-2.0 | 790 |
/**
*
* APDPlat - Application Product Development Platform Copyright (c) 2013, 杨尚川,
* yang-shangchuan@qq.com
*
* This program 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
* Foundation, either version 3 of the Lice... | ysc/jsearch | src/main/java/org/apdplat/jsearch/index/TextIndexer.java | Java | apache-2.0 | 9,574 |
/*
* Copyright 2020 Google LLC. 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 applica... | googlesamples/mlkit | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/segmenter/SegmentationGraphic.java | Java | apache-2.0 | 3,404 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BeanRoom.proto
package org.okraAx.v3.beans.room;
/**
* <pre>
* 角色
* </pre>
*
* Protobuf type {@code org.okraAx.v3.MsgPlayerInfo}
*/
public final class MsgPlayerInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@pro... | ogcs/Okra-Ax | okra-ax-protobuf/src/main/java/org/okraAx/v3/beans/room/MsgPlayerInfo.java | Java | apache-2.0 | 34,172 |
//============================================================================
//
// Copyright (C) 2006-2022 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receive... | Talend/components | components/components-azurestorage/src/test/java/org/talend/components/azurestorage/tazurestorageconnection/TAzureStorageConnectionDefinitionTest.java | Java | apache-2.0 | 2,557 |
/*
* Copyright (c) 2014. Escalon System-Entwicklung, Dietrich Schulten
*
* 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... | dschulten/hydra-java | spring-hateoas-ext/src/test/java/de/escalon/hypermedia/spring/sample/test/Rating.java | Java | apache-2.0 | 1,392 |
package nl.tudelft.pl2016gr2.model.graph.nodes;
//package nl.tudelft.pl2016gr2.model;
//
//import static org.junit.Assert.assertEquals;
//import static org.junit.Assert.assertFalse;
//import static org.junit.Assert.assertTrue;
//
//import org.junit.Before;
//import org.junit.Test;
//
//import java.util.ArrayList;
//im... | ProgrammingLife2016/PL2-2016 | PL2/PL2-shared/src/test/java/nl/tudelft/pl2016gr2/model/graph/nodes/NodeTest.java | Java | apache-2.0 | 3,029 |
package org.apache.kafka.connect.mongodb;
import org.apache.kafka.common.config.AbstractConfig;
import org.apache.kafka.common.config.ConfigDef;
import org.apache.kafka.common.config.ConfigDef.Type;
import org.apache.kafka.common.config.ConfigDef.Importance;
import java.util.Map;
/**
* @author Xu Jingxin
*/
public... | DataReply/kafka-connect-mongodb | src/main/java/org/apache/kafka/connect/mongodb/MongodbSinkConfig.java | Java | apache-2.0 | 1,862 |
/**
* Copyright (C) 2015 Zalando SE (http://tech.zalando.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | zalando-stups/swagger-codegen-tooling | spring-boot-stups-swagger-codegen-ui/src/main/java/org/zalando/stups/swagger/codegen/SwaggerCodegenController.java | Java | apache-2.0 | 2,366 |
package com.github.datasnap.propertiesandevents;
public class GlobalPosition {
private String location;
private String altitude;
private String accuracy;
private String course;
private String speed;
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location... | datasnap-io/datasnap-java-sdk | src/com/github/datasnap/propertiesandevents/GlobalPosition.java | Java | apache-2.0 | 829 |
/*******************************************************************************
* Copyright (c) 2015 BestSolution.at and others.
* 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 ... | OSEHRA/ISAAC | komet/drag-tab/src/main/java/sh/komet/fx/tabpane/GenericTabPane.java | Java | apache-2.0 | 1,426 |
/*******************************************************************************
* Copyright 2012 Jeremy Raymond
*
* 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... | jeraymond/orber.io | src/main/java/io/orber/site/service/jpa/BlogEntryService.java | Java | apache-2.0 | 3,890 |
package uk.co.marketplace.repository;
/*******************************************************************************************
/*Copyright 2016 O Fadero
/*
/*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... | OFadero/MarketPlace | src/test/java/uk/co/marketplace/repository/BuyerRepositoryTest.java | Java | apache-2.0 | 1,705 |
package org.openntf.domino.nsfdata.structs.cd;
import java.awt.Color;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.Arrays;
import org.openntf.domino.nsfdata.structs.LSIG;
impo... | rPraml/org.openntf.domino | domino/design-impl/src/main/java/org/openntf/domino/nsfdata/structs/cd/CDPATTERNTABLE.java | Java | apache-2.0 | 4,128 |
package com.datastax.driver.mapping;
import static com.datastax.driver.core.querybuilder.QueryBuilder.bindMarker;
import static com.datastax.driver.core.querybuilder.QueryBuilder.insertInto;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.L... | smartcat-labs/cassandra-audit | src/main/java/com/datastax/driver/mapping/CassandraAuditLogger.java | Java | apache-2.0 | 9,756 |
package com.prezerak.windmill.gui;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;
import ja... | c0deb0y/windmill | src/com/prezerak/windmill/gui/AlarmReportDialog.java | Java | apache-2.0 | 8,100 |
package pl.luwi.series.sane;
import java.io.Serializable;
public class IndexedPoint implements OrderedPoint, Serializable{
double X,Y;
int Index;
@Override
public double getX() {
// TODO Auto-generated method stub
return X;
}
@Override
public double getY() {
// TODO Auto-generated method stub
return Y... | Rattata/series-reducer | src/main/java/pl/luwi/series/sane/IndexedPoint.java | Java | apache-2.0 | 526 |
package org.jnbis.internal.record;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author ericdsoto
*/
@SuppressWarnings("serial")
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class BaseVariableResoluti... | argonaut-nz/jnbis | src/main/java/org/jnbis/internal/record/BaseVariableResolutionImageRecord.java | Java | apache-2.0 | 3,597 |
/*
* Copyright 2016-2018 shardingsphere.io.
* <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 obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | dangdangdotcom/sharding-jdbc | sharding-core/src/main/java/io/shardingsphere/core/yaml/sharding/YamlShardingStrategyConfiguration.java | Java | apache-2.0 | 6,745 |
// Copyright 2018 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... | werkt/bazel | src/main/java/com/google/devtools/build/lib/starlarkbuildapi/cpp/CcBootstrap.java | Java | apache-2.0 | 5,067 |
package ru.stqa.pft.addressbook.model;
import com.google.gson.annotations.Expose;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
import org.hibernate.annotations.Type;
import javax.persistence.*;
import java.io.File;
import java.util.HashSet;
im... | manyurij/java_study | addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/model/ContactData.java | Java | apache-2.0 | 5,262 |
/*
* 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-pinpointemail/src/main/java/com/amazonaws/services/pinpointemail/model/transform/PutDeliverabilityDashboardOptionRequestProtocolMarshaller.java | Java | apache-2.0 | 2,921 |
/* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.server.security;
import java.io.ByteArrayInputStream;
import java.io.FileInputStream;
... | FLVC/fcrepo-src-3.4.2 | fcrepo-server/src/main/java/org/fcrepo/server/security/PolicyParser.java | Java | apache-2.0 | 8,246 |
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | floodlight/loxigen-artifacts | openflowj/gen-src/main/java/org/projectfloodlight/openflow/protocol/OFBsnDebugCounterStatsEntry.java | Java | apache-2.0 | 1,856 |
/**
*
*/
package me.learn.personal.month2;
import java.util.HashSet;
/**
* Title 1346 :
*
* Given an array arr of integers, check if there exists two integers N and M such that N is the double of M ( i.e. N = 2 * M).
More formally check if there exists two indices i and j such that :
i != j
0 <= i, ... | balajiboggaram/algorithms | src/me/learn/personal/month2/CheckIfNDoubleExists.java | Java | apache-2.0 | 1,367 |
package com.github.ruediste.rise.component;
import com.github.ruediste.rise.integration.BootstrapRiseCanvas;
/**
* The canvas used by views provided by
*/
public interface FrameworkCanvas extends BootstrapRiseCanvas<FrameworkCanvas> {
}
| ruediste/rise | framework/src/main/java/com/github/ruediste/rise/component/FrameworkCanvas.java | Java | apache-2.0 | 242 |
package com.game.bizModule.building.bizServ;
import com.game.bizModule.cd.model.CdTypeEnum;
import com.game.part.util.BizResultObj;
/**
* 建筑升级结果
*
* @author hjj2017
* @since 2015/7/25
*
*/
public class Result_DoLevelUp extends BizResultObj {
/** 已使用的 Cd 类型 */
public CdTypeEnum _usedCdType = null;
/*... | hjj2017/xgame-code_server | game_bizModule/src/main/java/com/game/bizModule/building/bizServ/Result_DoLevelUp.java | Java | apache-2.0 | 459 |
package tree;
import org.junit.Test;
import java.util.ConcurrentModificationException;
import java.util.Iterator;
import java.util.NoSuchElementException;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.*;
/**
* Class for testing the Tree class.
*
* @author Dmitrii Eskov (eskovdmi@gmail.co... | DmitriiEskov/deskov | chapter_005/src/test/java/tree/TreeTest.java | Java | apache-2.0 | 3,420 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); yo... | everttigchelaar/camel-svn | components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FromFtpDirectoryToBinaryFilesNotStepwiseTest.java | Java | apache-2.0 | 1,359 |
package org.jamel.dbf.structure;
import org.jamel.dbf.exception.DbfException;
import org.jamel.dbf.utils.DbfUtils;
import java.io.DataInput;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* DBF Header (variable size, depending on fi... | jamel/dbf | dbf-reader/src/main/java/org/jamel/dbf/structure/DbfHeader.java | Java | apache-2.0 | 4,601 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package uk.org.nbn.nbnv.jpa.nbncore;
import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persist... | JNCC-dev-team/nbn-importer | crud/src/main/java/uk/org/nbn/nbnv/jpa/nbncore/SiteBoundary.java | Java | apache-2.0 | 7,127 |
package org.radargun.stages.cache.generators;
import java.util.Random;
/**
* @author Radim Vansa <rvansa@redhat.com>
*/
public class ByteArrayValueGenerator implements ValueGenerator {
@Override
public Object generateValue(Object key, int size, Random random) {
return generateArray(size, random);
... | mcimbora/radargun | core/src/main/java/org/radargun/stages/cache/generators/ByteArrayValueGenerator.java | Java | apache-2.0 | 766 |
package de.spqrinfo.bookstore.backend.donknow;
import de.spqrinfo.bookstore.backend.entity.Category;
import javax.ejb.Stateless;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import java.util.List;
@Stateless
@Named
public class DemoBean {
@Persi... | bwolf/bookstore-jee6 | src/main/java/de/spqrinfo/bookstore/backend/donknow/DemoBean.java | Java | apache-2.0 | 1,196 |
package landmaster.plustic.traits;
import java.util.*;
import landmaster.plustic.util.*;
import net.minecraft.entity.*;
import net.minecraft.entity.monster.*;
import net.minecraft.item.*;
import net.minecraft.util.*;
import net.minecraft.world.*;
import slimeknights.tconstruct.library.traits.*;
import slimeknights.tc... | Landmaster/PlusTiC | src/main/java/landmaster/plustic/traits/DarkTraveler.java | Java | apache-2.0 | 1,378 |
/*
* Copyright 2017-present, Yudong (Dom) Wang
*
* 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... | wisdomtool/rest-client | restclient/src/main/java/org/wisdom/tool/thread/RESTThdPool.java | Java | apache-2.0 | 1,488 |
package com.atsebak.embeddedlinuxjvm.ui;
import com.atsebak.embeddedlinuxjvm.localization.EmbeddedLinuxJVMBundle;
import com.atsebak.embeddedlinuxjvm.project.RPiJavaModuleBuilder;
import com.intellij.ide.util.projectWizard.ModuleWizardStep;
import com.intellij.lang.java.lexer.JavaLexer;
import com.intellij.openapi.Dis... | asebak/embeddedlinux-jvmdebugger-intellij | src/com/atsebak/embeddedlinuxjvm/ui/EmbeddedJavaModuleStep.java | Java | apache-2.0 | 2,925 |
package com.msi.tough.model.wf;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "wf_history")
public class WFHistoryBean {
@Id
@Gener... | huxoll/TopStackCore | src/com/msi/tough/model/wf/WFHistoryBean.java | Java | apache-2.0 | 489 |
/*
* Copyright 2020 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 applica... | google/ExoPlayer | library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpAacReader.java | Java | apache-2.0 | 6,840 |
/*******************************************************************************
* Copyright 2016 Antoine Nicolas SAMAHA
*
* 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
*
* ... | FOC-framework/framework | focAPI/src/com/foc/api/IFocList.java | Java | apache-2.0 | 1,460 |
//snippet-sourcedescription:[CreateNamedQueryExample.java demonstrates how to create a named query.]
//snippet-keyword:[AWS SDK for Java v2]
//snippet-keyword:[Code Sample]
//snippet-keyword:[Amazon Athena]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[09/28/2021]
//snippet-sourceauthor:[scmacdon - aw... | awsdocs/aws-doc-sdk-examples | javav2/example_code/athena/src/main/java/aws/example/athena/CreateNamedQueryExample.java | Java | apache-2.0 | 2,942 |
package www.it4pl.com.coolweater.db;
import org.litepal.crud.DataSupport;
/**
* Created by Administrator on 2017/10/31.
* 区域表
*/
public class County extends DataSupport {
/**
* coundName 区域名称
* weaterId 天气标识
* cityId 城市标识
*/
private int id;
private String countyName;
private St... | mzhkby/coolweater | app/src/main/java/www/it4pl/com/coolweater/db/County.java | Java | apache-2.0 | 966 |
import java.util.Arrays;
/**
* hujiawei, 15/3/28
* <p/>
* 数组
* <p/>
* https://leetcode.com/problems/3sum-closest/
*/
public class Sum3Closet_16 {
public static void main(String[] args) {
System.out.println(new Sum3Closet_16().threeSumClosest(new int[]{-1, 2, 1, -4}, 1));
}
public int threeS... | hujiaweibujidao/XSolutions | java/leetcode/Sum3Closet_16.java | Java | apache-2.0 | 1,207 |
/*
Copyright (C) 2011 The University of Michigan
This program 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 Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed i... | CyberSoftTeam/Open-Battery-Saver | Source code/Android Application/OpenBatterySaver/src/vn/cybersoft/obs/andriod/batterystats2/components/Threeg.java | Java | apache-2.0 | 12,275 |
package org.gradle.test.performance.mediummonolithicjavaproject.p297;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test5952 {
Production5952 objectUnderTest = new Production5952();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... | oehme/analysing-gradle-performance | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p297/Test5952.java | Java | apache-2.0 | 2,111 |
/*
* Copyright 2012 Lars Werkman
*
* 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... | luboganev/dejalist | DejalistApp/src/com/larswerkman/colorpicker/ColorPicker.java | Java | apache-2.0 | 20,532 |
/*
* 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-lookoutmetrics/src/main/java/com/amazonaws/services/lookoutmetrics/model/transform/ItemizedMetricStatsJsonUnmarshaller.java | Java | apache-2.0 | 3,059 |
package com.taobao.api.response;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.domain.Order;
import com.taobao.api.TaobaoResponse;
/**
* TOP API: taobao.trade.ordersku.update response.
*
* @author auto create
* @since 1.0, null
*/
public class TradeOrderskuUpdateResponse e... | lianying/asdf | src/main/java/com/taobao/api/response/TradeOrderskuUpdateResponse.java | Java | apache-2.0 | 631 |
/*
* 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
* distr... | Scavi/BrainSqueeze | src/test/java/com/scavi/brainsqueeze/codefight/i/tree/SubtreeTest.java | Java | apache-2.0 | 1,025 |
package com.aconcepcion.geofencemarkerbuilder;
/**
* This class manages a map circle, with markers
*
* Currently there's position marker (in the middle) and resizing marker (in border)
* Long pressing these markers allow to change circle position or size.
*
* @author A-Ar Andrew Concepcion
*
*/
import android... | ac-opensource/MarkerBuilder | geofencemarkerbuilder/src/main/java/com/aconcepcion/geofencemarkerbuilder/MapDataPointWrapper.java | Java | apache-2.0 | 4,052 |
package org.apache.haox.config;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URL;
import java.util.Map;
import java.util.Properties;
public class Resource {
public static enum Format {
XML_FILE(XmlConfigLoader.class)... | drankye/haox | contrib/haox-config/src/main/java/org/apache/haox/config/Resource.java | Java | apache-2.0 | 3,097 |
package it.polito.elite.enocean.protocol.serial.v3.network.packet.smartackcommand;
import it.polito.elite.enocean.protocol.serial.v3.network.packet.ESP3Packet;
/**
* Send reset command to a Smart Ack Client
*
* @author andreabiasi
*
*/
public class SaWrReset extends ESP3Packet{
/**
* @param deviceId : Device... | Gr33nOpo55um/EnOcean | src/it/polito/elite/enocean/protocol/serial/v3/network/packet/smartackcommand/SaWrReset.java | Java | apache-2.0 | 705 |
/*
* Copyright 2016 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 a... | brendandouglas/intellij | base/src/com/google/idea/blaze/base/lang/buildfile/references/TargetReference.java | Java | apache-2.0 | 2,557 |
package com.weather.app.weather.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.weather.app.weather.model.City;
import com.weather.app.weather.model.County;
import com.weather.app.weather.model.Province... | zhangqinning/weather | app/src/main/java/com/weather/app/weather/db/WeatherDB.java | Java | apache-2.0 | 4,116 |
/*
* Copyright (c) 2011 Yan Pujante
*
* 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 ... | zedfauji/glu-custom | orchestration/org.linkedin.glu.orchestration-engine/src/main/java/org/linkedin/glu/orchestration/engine/planner/impl/PlannerImpl.java | Java | apache-2.0 | 5,513 |
/**
*
*/
package org.mitre.caasd.jlcl.interfaces;
/**
* @author SBOWMAN
*
*/
public interface IControlComponentsArguments<NUMERICTYPE extends Number> {
/**
* @return Provides the current error signal value upon which the control component must operate.
*/
NUMERICTYPE getErrorSig... | buffetboy2001/Control-Component-Library | componentlibrary-core/src/main/java/org/mitre/caasd/jlcl/interfaces/IControlComponentsArguments.java | Java | apache-2.0 | 506 |
package streams.base;
import backtype.storm.Config;
import backtype.storm.spout.SpoutOutputCollector;
import backtype.storm.task.TopologyContext;
import backtype.storm.topology.OutputFieldsDeclarer;
import backtype.storm.topology.base.BaseRichSpout;
import backtype.storm.tuple.Fields;
import backtype.storm.tuple.Valu... | ananthc/streamstats | src/test/java/streams/base/SimpleIntegerSpout.java | Java | apache-2.0 | 2,234 |
package ch12exceptions;
/**
* Each disposable object must be followed by a try-finally
*
* <pre>
* Output:
* NeedsCleanup 1 disposed
* NeedsCleanup 3 disposed
* NeedsCleanup 2 disposed
* NeedsCleanup 5 disposed
* NeedsCleanup 4 disposed
* </pre>
*/
class NeedsCleanup { // Construction can't fail
private s... | deguo/tij4 | src/main/java/ch12exceptions/D22_CleanupIdiom.java | Java | apache-2.0 | 1,554 |
package com.google.api.ads.adwords.jaxws.v201601.ch;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
/**
*
* Use this service... | gawkermedia/googleads-java-lib | modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201601/ch/CustomerSyncServiceInterface.java | Java | apache-2.0 | 2,734 |
/*
* 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 ... | zetaris/zeppelin | zeppelin-server/src/main/java/org/apache/zeppelin/realm/ActiveDirectoryGroupRealm.java | Java | apache-2.0 | 13,676 |
/*
* 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... | gerenvip/VolleyApply | VolleyLibs/src/com/android/volley/DefaultRetryPolicy.java | Java | apache-2.0 | 3,229 |
package sorcer.pml.modeling;
import groovy.lang.Closure;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sorcer.test.ProjectContext;
import org.sorcer.test.SorcerTestRunner;
import sorcer.arithmetic.provider.impl.Adder... | mwsobol/SORCER | examples/pml/src/test/java/sorcer/pml/modeling/ProcModels.java | Java | apache-2.0 | 18,977 |