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 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 ... | andrescabrera/gwt-dojo-toolkit | src/org/apache/pivot/collections/immutable/ImmutableList.java | Java | apache-2.0 | 3,078 |
/*
* 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 ... | tillrohrmann/flink | flink-table/flink-table-common/src/test/java/org/apache/flink/table/factories/TestDynamicTableFactory.java | Java | apache-2.0 | 9,603 |
package cn.hadcn.davinci_example;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.w... | CPPAlien/DaVinci | app/src/main/java/cn/hadcn/davinci_example/ListActivity.java | Java | apache-2.0 | 2,537 |
package cn.wz.algorithm.algs4; /*************************************************************************
* Compilation: javac MinPQ.java
* Execution: java MinPQ < input.txt
*
* Generic min priority queue implementation with a binary heap.
* Can be used with a comparator instead of the natural order.
*
... | wz12406/accumulate | algorithm/src/main/java/cn/wz/algorithm/algs4/MinPQ.java | Java | apache-2.0 | 7,900 |
package ru.job4j.triangle;
/**It's class for creating Triangle.
*@author Anton Oleynikov
*@version 1
*/
public class Triangle {
/**Some point.
*@param a a
*/
private Point a;
/**Some point.
*@param b b
*/
private Point b;
/**Some point.
*@param c c
*/
private Po... | misterflud/aoleynikov | chapter_001/src/main/java/ru/job4j/triangle/Triangle.java | Java | apache-2.0 | 1,033 |
/*
* ====================================================================
* 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
... | naver/ngrinder | ngrinder-runtime/src/main/java/org/apache/hc/client5/http/impl/cookie/BasicMaxAgeHandler.java | Java | apache-2.0 | 2,808 |
/*
* Copyright 2016 Bryan Daniel.
*
* 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... | bryandaniel1/diabetes-registry | netbeans/diabetesregistry/src/java/registry/LdlResult.java | Java | apache-2.0 | 3,190 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc., 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 use this fi... | weld/core | tests-arquillian/src/test/java/org/jboss/weld/tests/beanManager/beanAttributes/weld1473/MockLoginActionBean.java | Java | apache-2.0 | 947 |
/**
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.function.marketdata.scenario.curve;
import static com.opengamma.strata.collect.TestHelper.coverBeanEquals;
import static com.opengamma.strata.collect.Te... | nssales/Strata | modules/function/src/test/java/com/opengamma/strata/function/marketdata/scenario/curve/CurveNameFilterTest.java | Java | apache-2.0 | 1,917 |
package com.github.dockerjava.jaxrs;
import static javax.ws.rs.client.Entity.entity;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.github.dockerjava.api.command.StartContainerCmd;
public ... | arthurtsang/docker-java | src/main/java/com/github/dockerjava/jaxrs/StartContainerCmdExec.java | Java | apache-2.0 | 985 |
package com.facebook.presto.jdbc.utils;
import com.google.common.base.Joiner;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate;
import com.google.common.base.Splitter;
import com.google.common.net.HostAndPort;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.... | losipiuk/presto-jdbc-java6-1 | src/test/java/com/facebook/presto/jdbc/utils/Java6TestPrestoServer.java | Java | apache-2.0 | 4,861 |
/**
* Copyright 2014 Netflix, 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 t... | loganj/RxJava | src/main/java/rx/internal/operators/BufferUntilSubscriber.java | Java | apache-2.0 | 7,060 |
package com.comcast.cdn.traffic_control.traffic_monitor.data;
import org.apache.log4j.Logger;
import java.util.Arrays;
import java.util.Deque;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
... | PSUdaemon/traffic_control | traffic_monitor/src/main/java/com/comcast/cdn/traffic_control/traffic_monitor/data/StatisticsLog.java | Java | apache-2.0 | 6,120 |
package core.documentdb;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import core.type.IType;
import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Id;
/**
* Created by siberis on 11/7/2016.
*/
public abstract clas... | Siberis/AtomisProtocol | src/main/java/core/documentdb/DocumentEntity.java | Java | apache-2.0 | 932 |
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// �nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2014.02.04... | milg0/onvif-java-lib | src/org/onvif/ver10/device/wsdl/GetNTP.java | Java | apache-2.0 | 1,141 |
package de.quaddy_services.ptc.enterprise;
import java.util.List;
import javax.swing.Action;
import javax.swing.JFrame;
import javax.swing.JTextField;
import de.quaddy_services.ptc.MainController;
import de.quaddy_services.ptc.MainModel;
public interface EnterpriseUtilRemote {
public void initTaskNames(JFrame aFra... | quaddy-services/projekt-task-capturing | src/main/java/de/quaddy_services/ptc/enterprise/EnterpriseUtilRemote.java | Java | apache-2.0 | 755 |
/*
* 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 ... | neykov/incubator-brooklyn | core/src/main/java/brooklyn/util/flags/FlagUtils.java | Java | apache-2.0 | 27,098 |
/*
* Copyright 2015-2016 Jeeva Kandasamy (jkandasa@gmail.com)
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://... | Thar0l/mycontroller | modules/core/src/main/java/org/mycontroller/standalone/api/jaxrs/mixins/deserializers/StateDeserializer.java | Java | apache-2.0 | 1,533 |
/*
* Copyright 2016 Palantir Technologies, 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 req... | tomasulo/docker-compose-rule | src/test/java/com/palantir/docker/compose/configuration/AdditionalEnvironmentValidatorShould.java | Java | apache-2.0 | 2,202 |
/**
* 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... | lukmajercak/hadoop | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java | Java | apache-2.0 | 64,696 |
package de.benneq.springbootjavafxsample.views;
import java.net.URL;
import java.util.ResourceBundle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import de.benneq.springbootjavafxsample.common.FXMLController;
import de.benneq.springbootjavafxsample.... | benneq/spring-boot-javafx-sample | spring-boot-javafx-sample/src/main/java/de/benneq/springbootjavafxsample/views/View1Controller.java | Java | apache-2.0 | 845 |
/* Copyright 2015 Sven van der Meer <vdmeer.sven@mykolab.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 ... | vdmeer/skb-java-datatool | src/main/java/de/vandermeer/skb/datatool/applications/DataToolApp.java | Java | apache-2.0 | 7,664 |
package com.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import java.lang.reflect.Field;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import java.nio.channels.FileChannel;
... | IMJIU/MixTest | src/main/java/com/util/Sample.java | Java | apache-2.0 | 8,998 |
/*
* Copyright 2008 Brian Tanner
* http://rl-glue-ext.ext.googlecode.com/
* brian@tannerpages.com
* http://brian.tannerpages.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
*... | adamse/rl-glue-java-codec | src/org/rlcommunity/rlglue/codec/tests/Test_1_Experiment.java | Java | apache-2.0 | 5,334 |
/*
* 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-dialogflow-cx | proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StartExperimentRequest.java | Java | apache-2.0 | 22,902 |
package demo;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOU... | xbynet/proj-base-ssh | src/main/java/demo/Test1.java | Java | apache-2.0 | 1,279 |
/*******************************************************************************
* Copyright (c)2014 Prometheus Consulting
*
* 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://w... | RogerParkinson/madura-objects-parent | madura-objects/src/main/java/nz/co/senanque/validationengine/ValidationObject.java | Java | apache-2.0 | 1,065 |
package com.github.eostermueller.heapspank.garbagespank;
public enum JVMVersion {
v1_8
}
| eostermueller/heapSpank | src/main/java/com/github/eostermueller/heapspank/garbagespank/JVMVersion.java | Java | apache-2.0 | 91 |
/*
* Copyright 2015-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... | OkBuilds/buck | test/com/facebook/buck/cxx/CxxPlatformsTest.java | Java | apache-2.0 | 8,898 |
package com.netsteadfast.greenstep.test;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.Stroke;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;
public class StrategyMapBackgr... | billchen198318/bamboobsc | core-junit/TEST/com/netsteadfast/greenstep/test/StrategyMapBackgroundImageTest.java | Java | apache-2.0 | 2,493 |
package jdo.product.model.supplier;
import javax.persistence.Entity;
import jdo.model.BaseType;
/**
* @author Jim
* @version 1.0
* @created 25-Dec-2007 9:54:37 AM
* @see "Data Model Resource Book Volume 1 Figure 3.5, page 82"
*/
@Entity
public class RatingType extends BaseType {
/**
*
*/
private static ... | JimBarrows/JavaDomainObjects | Products/src/main/java/jdo/product/model/supplier/RatingType.java | Java | apache-2.0 | 356 |
package co.com.codesoftware.logica;
import java.util.List;
import co.com.codesoftware.server.nsigemco.ProveedoresEntity;
import co.com.codesoftware.server.nsigemco.RespuestaEntity;
import co.com.codesoftware.utilities.WSGeneralInterface;
public class ProveedoresLogica implements WSGeneralInterface {
private Strin... | codesoftware/NSIGEMCO | src/main/java/co/com/codesoftware/logica/ProveedoresLogica.java | Java | apache-2.0 | 2,553 |
/*
* Copyright 2012 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 ... | larrytin/walkaround | src/com/google/walkaround/wave/server/robot/NotifyRobot.java | Java | apache-2.0 | 14,630 |
package de.tudarmstadt.ukp.clarin.webanno.ui.mm;
import java.io.Reader;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.wicket.core.request.handler.IPartialPageRequestHandler;
impo... | remstef/webanno-exmaralda | webanno-mm-plugin/src/main/java/de/tudarmstadt/ukp/clarin/webanno/ui/mm/SpeakerDetailsWindow.java | Java | apache-2.0 | 4,139 |
/*
* 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 ... | SomeFire/ignite | modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/topology/PartitionsEvictManager.java | Java | apache-2.0 | 22,093 |
//
// Copyright 2016 Jeff Bush
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | jbush001/WaveView | src/test/java/WaveformPresentationModelTest.java | Java | apache-2.0 | 10,304 |
package com.lyft.scoop.transitions;
import android.view.View;
import android.view.ViewGroup;
import com.lyft.scoop.ScreenTransition;
import com.lyft.scoop.TransitionListener;
public class InstantTransition implements ScreenTransition {
@Override
public void transition(ViewGroup root, View from, View to, fina... | lyft/scoop | scoop/src/main/java/com/lyft/scoop/transitions/InstantTransition.java | Java | apache-2.0 | 945 |
package testcases.leetcode;
import base.TestCases;
import structures.TestCase;
import structures.TestCaseHandler;
public class MaxSubSeqSumTestCases extends TestCases<int[], Integer> implements TestCaseHandler<int[], Integer> {
private static final long serialVersionUID = 1641012339888220843L;
public MaxSubS... | hongyuanChrisLi/Algorithms | src/main/java/testcases/leetcode/MaxSubSeqSumTestCases.java | Java | apache-2.0 | 876 |
/*
* Copyright (c) 2008-2016 Computer Network Information Center (CNIC), Chinese Academy of Sciences.
*
* This file is part of Duckling 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 L... | duckling-falcon/vmt | test/src/test/java/net/duckling/vmt/common/config/VmtConfigTest.java | Java | apache-2.0 | 1,528 |
package it.prisma.businesslayer.utils;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class PropertiesReader {
private PropertiesReader() {
// Empty
}
/**
* Loads the given property file.
*
* @param path
* The path of the file (from resources fol... | pon-prisma/PrismaDemo | BusinessLayer/src/main/java/it/prisma/businesslayer/utils/PropertiesReader.java | Java | apache-2.0 | 716 |
//
//===========================================================================================================
// THIS IS GENERATED CODE! - do not edit
//
// To edit, change JSON configs under 'com/harlie/radiotheater/radiomysterytheater/generate_data_contentprovider/'
// Then run the bash script './generate-data-con... | LeeHounshell/Capstone-Project | mobile/src/main/java/com/harlie/radiotheater/radiomysterytheater/data/episodeswriters/EpisodesWritersContentValues.java | Java | apache-2.0 | 2,798 |
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.util.rest;
import java.io.ByteArrayInputStream;
import java.util.List;
import java.util.Map.Entry;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.... | McLeodMoores/starling | projects/util-rest-client/src/main/java/com/opengamma/util/rest/RestUtils.java | Java | apache-2.0 | 5,438 |
/*
Class org.apache.derby.optional.lucene.LuceneListIndexesVTI
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 u... | trejkaz/derby | java/optional/org/apache/derby/optional/lucene/LuceneListIndexesVTI.java | Java | apache-2.0 | 8,326 |
/*******************************************************************************
* Copyright (c) 2000, 2009 IBM Corporation 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, an... | xiaguangme/simon_ide_tools | 02.eclipse_enhance/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/BasicTextEditorActionContributor.java | Java | apache-2.0 | 12,231 |
package binauld.pierre.musictag.task;
import java.lang.ref.WeakReference;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Set;
import binauld.pierre.musictag.collection.LibraryItemComparator;
import binauld.pierre.musictag.factory.LibraryComponentFactory;
import binauld.pierre.musictag.compos... | pierre-binauld/music-tag | app/src/main/java/binauld/pierre/musictag/task/LibraryComponentLoaderManager.java | Java | apache-2.0 | 1,822 |
// Generated from /Users/mhsieh/java/dev/query/objectquery/src/main/resources/Query.g4 by ANTLR 4.5.1
package com.sm.query.parser;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.misc.*;
import org.antlr.v4.runtime.tree.*;
import java.ut... | viant/CacheStore | objectquery/src/main/java/com/sm/query/parser/QueryParser.java | Java | apache-2.0 | 77,797 |
/*
* 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-v8/src/main/java/com/google/ads/googleads/v8/services/stub/GrpcThirdPartyAppAnalyticsLinkServiceStub.java | Java | apache-2.0 | 9,238 |
package com.deange.quicklink;
import android.app.Application;
import android.util.Log;
import com.deange.quicklink.controller.GsonController;
public class QLApplication extends Application {
private static final String TAG = QLApplication.class.getSimpleName();
@Override
public void onCreate() {
super.onCreat... | cdeange/QuickLink | quicklink/src/main/java/com/deange/quicklink/QLApplication.java | Java | apache-2.0 | 536 |
package com.barentine.totalconnect.ws;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex ... | dbarentine/totalconnect | totalconnect/src/main/java/com/barentine/totalconnect/ws/GetUserDetailsEx.java | Java | apache-2.0 | 3,195 |
package de.nullpointer.servercontroller;
import java.net.URISyntaxException;
import de.nullpointer.servercontroller.comms.ServerStatCommandListener;
import de.nullpointer.servercontroller.util.PropertiesReader;
public class Main {
static ServerWrapper server;
static ServerStatCommandListener listener;
public s... | philipjar/DevAthlon2016-2 | servercontroller/src/main/java/de/nullpointer/servercontroller/Main.java | Java | apache-2.0 | 572 |
/*
* 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-notebooks | proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java | Java | apache-2.0 | 78,258 |
package name.kuznetsov.andrei.scoresightreading.model;
/**
* @author andrei
*/
public class NoteImpl extends ObjectWithAttachableAttributesImpl implements Note {
private NotesEnum noteName;
private int octave;
private int modifier;
private int voice;
public NoteImpl(NotesEnum noteName) {
... | andrei-kuznetsov/notes-sight-reading-trainer | app/src/main/java/name/kuznetsov/andrei/scoresightreading/model/NoteImpl.java | Java | apache-2.0 | 2,245 |
/*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... | google/j2cl-protobuf | javatests/com/google/protobuf/contrib/j2cl/integration/generator/ProtobufTestValueProvider.java | Java | apache-2.0 | 6,113 |
/*
* Copyright (C) 2015-2016 QuickAF
*
* 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... | Jamling/AFDemo | library/src/cn/ieclipse/af/view/TableContainer.java | Java | apache-2.0 | 20,786 |
package test;
import sys.net.api.Envelope;
import sys.net.api.MessageHandler;
public interface TestProtocol extends MessageHandler {
default void onReceive(Envelope e, Probe p) {
Thread.dumpStack();
}
}
| SyncFree/Indigo | TrueIndigo/src-test/test/TestProtocol.java | Java | apache-2.0 | 209 |
/*
* 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 ... | TheRingbearer/HAWKS | ode/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/CompilationTestMessages_de.java | Java | apache-2.0 | 1,096 |
package com.xdata.util;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
public class DateUtil
{
private static final int[] dayArray = new int[]{31, 28, 31, 30,... | Jayon/azkaban-output-jobtype | src/main/java/com/xdata/util/DateUtil.java | Java | apache-2.0 | 43,555 |
package com.vector.onetodo;
import android.support.v4.app.Fragment;
import android.widget.AbsListView;
public abstract class Invitationtabholder extends Fragment implements
InvitationScrollHolder {
protected InvitationScrollHolder mScrollTabHolder;
public void setScrollTabHolder(InvitationScrollHolder scrollTa... | vector-solutions/OneToDo | src/com/vector/onetodo/Invitationtabholder.java | Java | apache-2.0 | 529 |
/**
* Copyright 2013 The Loon 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 agreed t... | cping/LGame | Java/Loon-Neo/nsres/loon/utils/res/foundation/NSDoc.java | Java | apache-2.0 | 2,850 |
// 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 appl... | aehlig/bazel | src/main/java/com/google/devtools/build/skyframe/DirtyTrackingProgressReceiver.java | Java | apache-2.0 | 5,446 |
package de.hub.specificmodels.common;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.emf.ecore.EStructuralFeature;
import com.google.inject.Inject;
import de.hub.specificmodels.common.ITargetIdProvider.ITargetIdProviderContext;
public class AbstractGenerator {
@Inject private ITargetIdProvider... | markus1978/clickwatch | util/de.hub.specificmodels/src/de/hub/specificmodels/common/AbstractGenerator.java | Java | apache-2.0 | 1,265 |
/*
* #%L
* BroadleafCommerce Framework
* %%
* Copyright (C) 2009 - 2013 Broadleaf Commerce
* %%
* 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/licens... | jiman94/BroadleafCommerce-BroadleafCommerce2014 | core/broadleaf-framework/src/main/java/org/broadleafcommerce/core/payment/service/OrderPaymentServiceImpl.java | Java | apache-2.0 | 2,879 |
/**
* 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-portal/gravitee-rest-api-portal-rest/src/test/java/io/gravitee/rest/api/portal/rest/resource/ApiPagesResourceTest.java | Java | apache-2.0 | 4,827 |
/*
* Copyright 2017 Seven Bridges Genomics, 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 re... | sbg/sevenbridges-java | impl/src/main/java/com/sevenbridges/apiclient/impl/ds/FilterChain.java | Java | apache-2.0 | 771 |
/*
* 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.openapi.command.impl;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ApplicationStarterEx;
import... | mglukhikh/intellij-community | platform/platform-impl/src/com/intellij/openapi/command/impl/UpdatePluginsApp.java | Java | apache-2.0 | 3,509 |
/*
* Copyright 2014 NAVER Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | carpedm20/pinpoint | web/src/main/java/com/navercorp/pinpoint/web/service/SpanServiceImpl.java | Java | apache-2.0 | 19,090 |
package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
public class H02ProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
H02ProtocolDecoder decoder = new H02ProtocolDecoder(new H02Protocol());
verifyAttributes(decoder... | vipien/traccar | test/org/traccar/protocol/H02ProtocolDecoderTest.java | Java | apache-2.0 | 8,095 |
/*
* Copyright (c) 2018 Ahome' Innovation Technologies. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | ahome-it/lienzo-core | src/main/java/com/ait/lienzo/client/core/event/AttributesChangedHandler.java | Java | apache-2.0 | 868 |
package com.marklogic.hub;
import com.marklogic.appdeployer.AppConfig;
import com.marklogic.appdeployer.DefaultAppConfigFactory;
import com.marklogic.appdeployer.command.modules.LoadModulesCommand;
import com.marklogic.appdeployer.impl.SimpleAppDeployer;
import com.marklogic.hub.deploy.commands.GenerateFunctionMetadat... | marklogic/data-hub-in-a-box | marklogic-data-hub/src/test/java/com/marklogic/hub/LoadTestModules.java | Java | apache-2.0 | 3,180 |
/*
* 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 ... | gzsombor/ranger | hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/ColumnIterator.java | Java | apache-2.0 | 2,970 |
/*
* Copyright WSO2 Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | jaadds/carbon-apimgt | components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/internal/ServiceReferenceHolder.java | Java | apache-2.0 | 9,431 |
package br.com.robertasorteio.model;
import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apach... | brunogilson2017/robertasorteio | src/main/java/br/com/robertasorteio/model/Participante.java | Java | apache-2.0 | 2,918 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | elastic/elasticsearch-hadoop | mr/src/main/java/org/elasticsearch/hadoop/util/ecs/FieldNames.java | Java | apache-2.0 | 3,452 |
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... | googleads/googleads-java-lib | modules/dfp_axis/src/main/java/com/google/api/ads/admanager/axis/v202202/LineItemDealInfoDto.java | Java | apache-2.0 | 5,338 |
package com.credit.web.filemanager.service;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;
@Transactional(r... | creditteam/credit_web | src/main/java/com/credit/web/filemanager/service/UploadFileService.java | Java | apache-2.0 | 1,680 |
/****************************************************************
* Licensed to the AOS Community (AOS) under one or more *
* contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The AOS licenses this... | XClouded/t4f-core | java/io/src/main/java/io/aos/serde/SerializableSingleton.java | Java | apache-2.0 | 1,519 |
package com.phesse.decisionTable;
import org.junit.Test;
public class FactTest {
@Test(expected = UnknownKeyException.class)
public void getValueForunknownKeyThrowsException() throws UnknownKeyException{
Fact fact = new Fact();
fact.setValue("foo", true);
fact.getValue("bar");
}
}
| BlackHawkDC/DecisionTable | test/com/phesse/decisionTable/FactTest.java | Java | apache-2.0 | 293 |
package com.clouck.webapp.controller;
import java.util.Collection;
import java.util.List;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Cont... | veyronfei/clouck | src/main/java/com/clouck/webapp/controller/ResourcesController.java | Java | apache-2.0 | 5,796 |
package org.apereo.cas.trusted.authentication.storage;
import org.apereo.cas.configuration.model.support.mfa.trusteddevice.TrustedDevicesMultifactorProperties;
import org.apereo.cas.jpa.AbstractJpaEntityFactory;
import org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord;
import org.apereo.ca... | apereo/cas | support/cas-server-support-trusted-mfa-jdbc/src/main/java/org/apereo/cas/trusted/authentication/storage/JpaMultifactorAuthenticationTrustStorage.java | Java | apache-2.0 | 5,451 |
/*
* K-scope
* Copyright 2012-2013 RIKEN, Japan
*
* 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 ... | K-scope/K-scope | src/jp/riken/kscope/service/AnalysisOperandService.java | Java | apache-2.0 | 10,645 |
package org.murinrad.android.musicmultiply.networking;
import android.content.Context;
import android.net.wifi.WifiManager;
import android.os.PowerManager;
import android.util.Log;
import org.murinrad.android.musicmultiply.MainActivity;
import org.murinrad.android.musicmultiply.datamodel.device.IDevice;
import org.mu... | murinrad/musicMultiply | Broadcaster/src/main/java/org/murinrad/android/musicmultiply/networking/PacketLauncher.java | Java | apache-2.0 | 7,192 |
package hr.unidu.oop.p09;
/**
* @author Krunoslav Žubrinić
* 19. svi 2015.
*/
public class VisestrukeDretve implements Runnable{
// Posao koji se obavlja u dretvi stavlja se u metodu run
public void run(){
try {
// Dretva pauzira 2 sekunde
Thread.sleep(2000);
}
catch (InterruptedException ex) {
e... | kzubrinic/oop | oop/src/hr/unidu/oop/p09/VisestrukeDretve.java | Java | apache-2.0 | 1,023 |
package eu.tankernn.chat.server;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.CopyOnWriteArrayList;
import eu.tankernn.chat.common.MessagePacket;
/**
* A collection of clients.
*/
public class ClientCollection {
private List<Client> clients = new CopyOnWriteArrayList<>();
/**
... | Tankernn/TankernnChat | src/main/java/eu/tankernn/chat/server/ClientCollection.java | Java | apache-2.0 | 2,491 |
package de.akquinet.dailyplanner.dbmodel;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
@MappedSuperclass
public abstract class AbstractEntity {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
... | akquinet/dailyplanner-angularjs | DailyPlannerServerClient/dailyplanner-project/dailyplanner-model/src/main/java/de/akquinet/dailyplanner/dbmodel/AbstractEntity.java | Java | apache-2.0 | 438 |
package com.zhangsl.el;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
* Created by zhangsl on 2017/9/15.
*/
public class ElMain {
public static void main(String[] args) {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ElConfig... | SymbolLong/Kent | src/main/java/com/zhangsl/el/ElMain.java | Java | apache-2.0 | 472 |
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | hazendaz/assertj-core | src/test/java/org/assertj/core/internal/longarrays/LongArrays_assertDoesNotContain_Test.java | Java | apache-2.0 | 5,944 |
/*
* Copyright 2016-present Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | LorenzReinhart/ONOSnew | apps/tetopology/app/src/main/java/org/onosproject/tetopology/management/impl/DistributedTeTopologyStore.java | Java | apache-2.0 | 62,436 |
package com.github.i49.hibiscus.facets;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.json.JsonArray;
import javax.json.JsonValue;
import com.github.i49.hibiscus.problems.ArrayDuplicateItemProblem;
import com.github.i49.hibiscus.problems.Problem;
/**
* <strong>uni... | i49/Hibiscus | hibiscus/src/main/java/com/github/i49/hibiscus/facets/UniqueItemFacet.java | Java | apache-2.0 | 1,200 |
/*
* Copyright 2011 Uri Shaked
*
* 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... | urish/gwt-titanium | src/main/java/org/urish/gwtit/titanium/ui/events/RowClickHandler.java | Java | apache-2.0 | 786 |
package com.github.expixel.imgur.endpoints;
import com.github.expixel.imgur.models.request.ImgurAccountSettingsChange;
import com.github.expixel.imgur.models.response.*;
import com.github.expixel.imgur.models.special.ImgurGalleryItem;
import retrofit.http.*;
import javax.management.Notification;
/**
* Implements AP... | ExPixel/imgur-aw | src/main/java/com/github/expixel/imgur/endpoints/ImgurAccountEndpoint.java | Java | apache-2.0 | 4,151 |
package com.mogoo.market.model;
import com.mogoo.market.R;
import com.mogoo.market.config.Configuration;
import com.mogoo.market.paginate.PaginateCondition;
import com.mogoo.market.paginate.PaginateListView_1;
import android.content.Context;
import com.mogoo.parser.XmlResultCallback;
import android.widget.ListAdapter;... | zoozooll/MyExercise | Market/src/com/mogoo/market/model/NetWorkTaskPageImpl.java | Java | apache-2.0 | 1,820 |
/*
* Created by Gigigo Android Team
*
* Copyright (C) 2016 Gigigo Mobile Services SL
*
* 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
*... | gigigoapps/gigigo-android-lib | ggglib.logger/src/main/java/com/gigigo/ggglib/logger/LogLevel.java | Java | apache-2.0 | 1,027 |
package chapter4;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
/**
* Utility class for chapter 4 examples
*/
public class Utils
extends chapter3.Utils
{
private static class FixedRand extends SecureRandom
{
MessageDigest sh... | rodbate/bouncycastle-examples | src/main/java/chapter4/Utils.java | Java | apache-2.0 | 1,568 |
package com.example.jackmiras.placeholderj.api;
import java.io.IOException;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.converter.jackson.JacksonConverterFactory;
/... | jackmiras/placeholderj | app/src/main/java/com/example/jackmiras/placeholderj/api/ApiClient.java | Java | apache-2.0 | 1,877 |
/*
* Copyright 2015 Austin Keener, Michael Ritter, Florian Spieß, and the JDA 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... | DV8FromTheWorld/JDA | src/main/java/net/dv8tion/jda/api/utils/ClosableIterator.java | Java | apache-2.0 | 1,544 |
/*
Copyright 2020 The Kubernetes 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 agreed to in writing, softwar... | kubernetes-client/java | kubernetes/src/main/java/io/kubernetes/client/custom/SuffixFormatter.java | Java | apache-2.0 | 4,715 |
/*
* InputListener.java
* Copyright (C) 2004
*
* $Id: InputListener.java,v 1.6 2005/06/06 18:22:20 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
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 F... | osmanpub/java-games | doom/jake2/src/main/java/org/free/jake2/sys/InputListener.java | Java | apache-2.0 | 3,288 |
package ru.web.adressbook.appmanager;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.remote.BrowserType;
import java.util.Objects;
import java.util... | ragrigor/JAVA_rep1 | addressbook-web-tests/src/test/java/ru/web/adressbook/appmanager/ApplicationManager.java | Java | apache-2.0 | 1,708 |
import java.lang.reflect.Proxy;
public class Main {
public static void main(String[] args) {
HTTPService httpService = new HTTPServiceImpl();
LoggerHandler loggerHandler = new LoggerHandler(httpService);
HTTPService httpServiceProxy = (HTTPService) Proxy.newProxyInstance(
... | walelee8716/playground | hello-proxy/src/Main.java | Java | apache-2.0 | 565 |
package com.exalttech.trex;
import javafx.scene.Node;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.input.MouseButton;
import org.controlsfx.control.ToggleSwitch;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.testng.Assert;
import org.te... | cisco-system-traffic-generator/trex-stateless-gui | src/ui-test/java/com/exalttech/trex/TestPortConfiguration.java | Java | apache-2.0 | 3,759 |