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 |
|---|---|---|---|---|---|
package org.deeplearning4j.nn.graph.graphnodes;
import org.deeplearning4j.berkeley.Pair;
import org.deeplearning4j.nn.conf.ComputationGraphConfiguration;
import org.deeplearning4j.nn.conf.NeuralNetConfiguration;
import org.deeplearning4j.nn.conf.graph.ElementWiseVertex;
import org.deeplearning4j.nn.conf.graph.Preproce... | xuzhongxing/deeplearning4j | deeplearning4j-core/src/test/java/org/deeplearning4j/nn/graph/graphnodes/TestGraphNodes.java | Java | apache-2.0 | 18,111 |
package uk.ac.ebi.embl.api.validation.check.file;
import org.apache.commons.lang.StringUtils;
import uk.ac.ebi.embl.api.entry.Entry;
import uk.ac.ebi.embl.api.entry.qualifier.Qualifier;
import uk.ac.ebi.embl.api.validation.ValidationEngineException;
import uk.ac.ebi.embl.api.validation.ValidationResult;
import uk.ac.e... | enasequence/sequencetools | src/main/java/uk/ac/ebi/embl/api/validation/check/file/AnnotationOnlyFlatfileValidationCheck.java | Java | apache-2.0 | 4,735 |
package com.logginghub.logging.encoding;
import java.io.InputStream;
import com.logginghub.logging.LogEvent;
import com.logginghub.utils.Destination;
public interface LogEventReader {
void readAll(InputStream stream, Destination<LogEvent> destination);
}
| logginghub/core | logginghub-server/src/main/java/com/logginghub/logging/encoding/LogEventReader.java | Java | apache-2.0 | 280 |
/*
* 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/elasticmapreduce/model/ScriptBootstrapActionConfig.java | Java | apache-2.0 | 6,751 |
/*
* 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 ... | mohanaraosv/commons-configuration | src/main/java/org/apache/commons/configuration2/ConfigurationDecoder.java | Java | apache-2.0 | 2,038 |
/*
* Copyright 2010 JBoss 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... | martenscs/optaplanner-osgi | org.optaplanner.examples.curriculumcourse/src/org/optaplanner/examples/curriculumcourse/domain/Course.java | Java | apache-2.0 | 2,081 |
/*
* 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-directory/src/main/java/com/amazonaws/services/directory/model/RemoveTagsFromResourceRequest.java | Java | apache-2.0 | 6,451 |
/**********************************************************************************
* $URL: https://source.sakaiproject.org/svn/citations/tags/sakai-10.6/citations-osid/xserver/src/java/org/sakaibrary/xserver/XServer.java $
* $Id: XServer.java 309400 2014-05-09 21:29:07Z enietzel@anisakai.com $
*********************... | eemirtekin/Sakai-10.6-TR | citations/citations-osid/xserver/src/java/org/sakaibrary/xserver/XServer.java | Java | apache-2.0 | 36,477 |
package org.mongodb.sasl;
public class MongoSecurityException extends RuntimeException {
private static final long serialVersionUID = -7531399100914218967L;
public MongoSecurityException(final Throwable cause) {
super(cause);
}
public MongoSecurityException(final String message) {
su... | janiskesteris/mongo | ext/jsasl/src/main/org/mongodb/sasl/MongoSecurityException.java | Java | apache-2.0 | 461 |
package com.prod.vals.andr_demo_prj;
import com.vals.a2ios.amfibian.impl.AnIncubatorImpl;
import com.vals.a2ios.amfibian.intf.AnIncubator;
import com.vals.a2ios.amfibian.intf.AnOrm;
import com.vals.a2ios.mobilighter.intf.MobilAction;
import com.vals.a2ios.sqlighter.intf.SQLighterDb;
import com.vals.a2ios.sqlighter.int... | vals-productions/sqlighter | demo/andr-demo-prj/app/src/main/java/com/prod/vals/andr_demo_prj/DemoBase.java | Java | apache-2.0 | 4,907 |
package org.eleusoft.jaxs.xerces;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import org.apache.xml.serialize.OutputFormat;
import org.apache.xml.serialize.XMLSerializer;
import org.eleusoft.jaxs.helpers.AbstractSAXSerializer;
import org.xml.sax.C... | eleumik/eleusoft_jaxs | src/main/java/org/eleusoft/jaxs/xerces/XercesSAXSerializer.java | Java | apache-2.0 | 1,448 |
/*
* Copyright 2014 Rodrigo Agerri
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 ... | ixa-ehu/ixa-pipe-pos | src/main/java/eus/ixa/ixa/pipe/pos/train/TaggerTrainer.java | Java | apache-2.0 | 1,048 |
package resa.metrics;
import backtype.storm.metric.api.IMetricsConsumer;
import backtype.storm.task.IErrorReporter;
import backtype.storm.task.TopologyContext;
import org.codehaus.jackson.map.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import redis.clients.jedis.Jedis;
import java.io.IOExce... | ADSC-Cloud/resa | resa-core/src/main/java/resa/metrics/RedisMetricsCollector.java | Java | apache-2.0 | 4,273 |
/**
* Copyright (c) 2007-2016 SAIC. All Rights Reserved.
* This software is published under the terms of the SAIC IS Dept.
*
* @Project: safe4j-web
* @Title: GenTemplateDao.java
* @Package com.saicmotor.gen.dao
* @Description:
*
* @CreateDate : 2016年4月18日
* @CreateBy : kojrf
*/
package com.saicmotor.gen... | dianfengxiawu/fixed-assets | safe4j-web/src/main/java/com/saicmotor/gen/dao/GenTemplateDao.java | Java | apache-2.0 | 680 |
package de.i3mainz.chronontology.errorlog;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
public class Logging {
public static String getMessageJSON(Exception exception, String endClass) {
// START BUILD JSON
G... | i3mainz/chronontology-spatialapi | src/main/java/de/i3mainz/chronontology/errorlog/Logging.java | Java | apache-2.0 | 1,915 |
/*
* 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 r... | tectronics/hyracks | hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/work/RegisterPartitionAvailibilityWork.java | Java | apache-2.0 | 2,428 |
/**
* 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 ... | jbertram/activemq-artemis-old | tests/performance-tests/src/test/java/org/apache/activemq/artemis/tests/performance/journal/RealJournalImplAIOTest.java | Java | apache-2.0 | 1,865 |
/*
* # Copyright 2015 Martin Cochran
* #
* # 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... | martincochran/score-minion-android | app/src/main/java/com/scoreminion/VolleyRequestSingleton.java | Java | apache-2.0 | 2,846 |
package com.rp.aula.design.abstractfactory.exercicio;
import java.math.BigDecimal;
public class EsfirraFornoConvencional implements Esfirra {
@Override
public BigDecimal calculaPreco() {
return new BigDecimal(1);
}
}
| rpostai/dp-abstract-factory | src/com/rp/aula/design/abstractfactory/exercicio/EsfirraFornoConvencional.java | Java | apache-2.0 | 226 |
/*
* 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-groundstation/src/main/java/com/amazonaws/services/groundstation/model/transform/DeleteMissionProfileResultJsonUnmarshaller.java | Java | apache-2.0 | 2,918 |
/*
* Copyright 2015-2016 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... | kazuki43zoo/spring-security | core/src/test/java/org/springframework/security/jackson2/UsernamePasswordAuthenticationTokenMixinTests.java | Java | apache-2.0 | 8,098 |
/*
* Copyright 2013 Gunnar Kappei.
*
* 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... | moosbusch/xbLIDO | src/net/opengis/gml/PosListDocument.java | Java | apache-2.0 | 8,445 |
/*
* Copyright 2012 LinkedIn 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 i... | Yangyazheng/azkaban_annotation | azkaban-common/src/main/java/azkaban/trigger/CheckerTypeLoader.java | Java | apache-2.0 | 3,172 |
/*
* 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 ... | haoch/kylin | engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkExecutable.java | Java | apache-2.0 | 3,529 |
package liquid.user.db.repository;
import liquid.user.domain.Group;
import org.springframework.data.repository.CrudRepository;
import java.util.Collection;
/**
* Created by Tao Ma on 3/18/15.
*/
public interface GroupRepository extends CrudRepository<Group, Integer> {
Collection<Group> findAll();
}
| redbrick9/liquid | user/user-db/src/main/java/liquid/user/db/repository/GroupRepository.java | Java | apache-2.0 | 309 |
package com.airbnb.lottie.parser;
import com.airbnb.lottie.parser.moshi.JsonReader;
import java.io.IOException;
public class IntegerParser implements ValueParser<Integer> {
public static final IntegerParser INSTANCE = new IntegerParser();
private IntegerParser() {
}
@Override public Integer parse(JsonReade... | airbnb/lottie-android | lottie/src/main/java/com/airbnb/lottie/parser/IntegerParser.java | Java | apache-2.0 | 436 |
/*
* Copyright 2018 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 ... | IHTSDO/snow-owl | snomed/com.b2international.snowowl.snomed.datastore/src/com/b2international/snowowl/snomed/datastore/index/taxonomy/InternalIdEdges.java | Java | apache-2.0 | 5,205 |
/*
* 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 ... | amoudi87/asterixdb | asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/accessors/TemporalIntervalStartTimeAccessor.java | Java | apache-2.0 | 6,328 |
/*
* Copyright 2014-2017 Time Warner Cable, 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 ... | TWCable/gradle-plugin-cq-package | src/main/groovy/com/twcable/gradle/cqpackage/SimpleSlingPackageSupportFactory.java | Java | apache-2.0 | 2,420 |
/*
* Copyright 2005-2010 Ignis Software Tools Ltd. All rights reserved.
*/
package jsystem.treeui.client;
import junit.framework.SystemTestCase;
public class RemoteAgentClientTest extends SystemTestCase {
private String agentHost = "10.0.0.28:8999";
private RemoteAgentClient client;
public void setUp() throws... | Top-Q/jsystem | jsystem-core-projects/jsystemApp/src/test/java/jsystem/treeui/client/RemoteAgentClientTest.java | Java | apache-2.0 | 892 |
package com.tectonica.test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import ... | zach-m/tectonica-kvs | src/test/java/com/tectonica/test/TestKeyValueStore.java | Java | apache-2.0 | 6,612 |
package org.marsik.bugautomation.facts;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@AllArgsConstructor
@Builder
@EqualsAndHashCode(of = {"board", "id"})
public class TrelloLabel {
TrelloBoard board;
String id;
String color;
Strin... | MarSik/bugautomation | src/main/java/org/marsik/bugautomation/facts/TrelloLabel.java | Java | apache-2.0 | 330 |
// 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... | kamalmarhubi/bazel | src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java | Java | apache-2.0 | 16,278 |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.documentapi.messagebus.protocol;
import com.yahoo.collections.Tuple2;
import com.yahoo.component.Version;
import com.yahoo.component.VersionSpecification;
import com.yahoo.document.DocumentTypeMan... | vespa-engine/vespa | documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/DocumentProtocol.java | Java | apache-2.0 | 26,062 |
/*
* Copyright 2017 MovingBlocks
*
* 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 ... | Sigma-One/DestinationSol | engine/src/main/java/org/destinationsol/game/drawables/DrawableLevel.java | Java | apache-2.0 | 1,018 |
package com.tumblr.backboard.imitator;
import android.view.MotionEvent;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.facebook.rebound.Spring;
/**
* Maps a {@link android.view.MotionEvent} to a {@link com.facebook.rebound.Spring},
* although it does ... | tumblr/Backboard | backboard/src/main/java/com/tumblr/backboard/imitator/EventImitator.java | Java | apache-2.0 | 3,736 |
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert
// Siehe <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2019.0... | citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/waterbody/_1/WaterSurfaceType.java | Java | apache-2.0 | 4,505 |
package com.travelport.service.air_v29_0;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.ParameterStyle;
import javax.xml.bind.annotation.XmlSeeAlso;
/**
* This class was generated by... | DimkaGorhover/zaremba | src/main/java/com/travelport/service/air_v29_0/SeatMapPortType.java | Java | apache-2.0 | 1,266 |
/*
* Copyright 2015 Henry Addo
*
* 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... | eyedol/birudo | birudo/mobile/src/main/java/org/addhen/birudo/receiver/GcmBroadcastReceiver.java | Java | apache-2.0 | 1,393 |
/**
* Copyright (c) 2015 Intel 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 or ... | trustedanalytics/dataset-publisher | src/main/java/org/trustedanalytics/datasetpublisher/boundary/CreateTableResponse.java | Java | apache-2.0 | 1,151 |
/*
* Copyright 2015 Time Warner Cable, 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 ag... | TWCable/jackalope | src/main/java/com/twcable/jackalope/impl/jcr/QueryResultImpl.java | Java | apache-2.0 | 1,558 |
package at.molindo.elasticsync.scrutineer.internal.elasticsearch;
import java.io.IOException;
import java.util.Iterator;
import at.molindo.elasticsync.api.IdAndVersion;
public class IdAndVersionInputStreamIterator implements Iterator<IdAndVersion> {
private final IdAndVersionDataReader idAndVersionDataReader;
... | molindo/molindo-elasticsync | src/main/java/at/molindo/elasticsync/scrutineer/internal/elasticsearch/IdAndVersionInputStreamIterator.java | Java | apache-2.0 | 1,173 |
package com.frame.huxh.mvpdemo;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Andro... | AnnyBaby/huxhFrame | mvpDemo/app/src/androidTest/java/com/frame/huxh/mvpdemo/ExampleInstrumentedTest.java | Java | apache-2.0 | 748 |
package com.ubiquity.datastorage.kernel.exceptions;
public class RegisterNotFoundException extends UbiquityException {
public RegisterNotFoundException(String registerName) {
super("Cannot find register \"" + registerName + "\"");
}
}
| pmesmeur/ubiquity | Sources/DataStorage/src/main/java/com/ubiquity/datastorage/kernel/exceptions/RegisterNotFoundException.java | Java | apache-2.0 | 252 |
/*
* 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 ... | kl0u/flink | flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecIncrementalGroupAggregate.java | Java | apache-2.0 | 8,881 |
/**
* Copyright 2008 - 2015 The Loon Game Engine 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 appl... | cping/LGame | Java/Loon-Neo-Robovm/src/main/java/loon/robovm/RoboVMPattern.java | Java | apache-2.0 | 1,047 |
/*
*/
package eu.uqasar.web;
/*
* #%L
* U-QASAR
* %%
* Copyright (C) 2012 - 2015 U-QASAR Consortium
* %%
* 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.... | U-QASAR/u-qasar.platform | src/main/java/eu/uqasar/web/WebConstants.java | Java | apache-2.0 | 1,056 |
package rx.operators;
import static org.mockito.Mockito.*;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import org.junit.Test;
import rx.Observable;
import rx.Observer;
import rx.Subscription;
import rx.util.functions.Func1;
public class OperationToObservableFuture {
private static... | adriancole/RxJava | rxjava-core/src/main/java/rx/operators/OperationToObservableFuture.java | Java | apache-2.0 | 3,082 |
/*
* 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")... | adamrduffy/trinidad-1.0.x | trinidad-api/src/test/java/org/apache/myfaces/trinidad/validator/DateTimeRangeValidatorTest.java | Java | apache-2.0 | 10,602 |
/**
* 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... | navis/tez | tez-tools/analyzers/job-analyzer/src/main/java/org/apache/tez/analyzer/plugins/LocalityAnalyzer.java | Java | apache-2.0 | 7,251 |
/*
* Copyright (C) 2013 Cristian Sulea ( http://cristian.sulea.net )
*
* 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 lat... | cristian-sulea/jatoo-ui | resources/java/jatoo/swing/JaTooSwingUtils.java | Java | apache-2.0 | 4,985 |
/**
* Copyright 2013 Muhammad Pavel
*
* 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... | k3t3v/java-lab | vdntemplate/src/main/java/org/mpavel/app/domain/Account.java | Java | apache-2.0 | 3,076 |
/*
* Copyright 2014 JBoss 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... | wangmb/apiman | gateway/platforms/vertx/src/test/java/io/apiman/gateway/vertx/engine/VertxPluginRegistryTest.java | Java | apache-2.0 | 2,131 |
package com.hevsoft.hashes.calculator;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import com.hevsoft.hashes.SupportedAlgorithms;
im... | viper123/Hashes | src/com/hevsoft/hashes/calculator/Worker.java | Java | apache-2.0 | 2,407 |
package app.coolweather.com.coolweather.model;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import java.util.ArrayList;
import java.util.List;
import app.coolweather.com.coolweather.db.CoolWeatherOpenHelper;
/**
... | cham1985/coolweather | app/src/main/java/app/coolweather/com/coolweather/model/CoolWeatherDB.java | Java | apache-2.0 | 4,573 |
/*
* 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 | test/com/facebook/buck/query/QueryParserTest.java | Java | apache-2.0 | 5,360 |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | lgobinath/siddhi | modules/siddhi-core/src/main/java/org/wso2/siddhi/core/util/parser/ExpressionParser.java | Java | apache-2.0 | 98,035 |
package ua.ikonovalov;
/**
* Created by Ivan on 02.08.18.
*/
public class PaintPiramid {
/**
*
* @param height
* @return
*/
public String piramid(int height) {
StringBuilder screen = new StringBuilder();
int weight = 2 * height - 1;
for (int row = 0; ... | kou85/Java-A-to-Z | Trainee/Chapter_001_Basic_Syntax/src/main/java/ua/ikonovalov/PaintPiramid.java | Java | apache-2.0 | 742 |
/**
* 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... | apache/openejb | itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/entity/cmr/onetomany/ArtistLocalHome.java | Java | apache-2.0 | 1,453 |
package com.licaigc.algorithm.idgen;
/**
* Created by zhaowencong on 16/3/22.
*/
public class NewIdGen {
private long seqId;
private long shardId;
public NewIdGen(long shardId, long seqId) {
this.shardId = shardId % (IdGenConst.shardMask + 1);
this.seqId = seqId;
}
public lon... | wealthworks/AndroidBaseLibrary | library/src/main/java/com/licaigc/algorithm/idgen/NewIdGen.java | Java | apache-2.0 | 1,242 |
/*
* Copyright 2012, 2014 the original author or authors.
*
* 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.
*
*... | bitbandi/spreadcoinj | core/src/test/java/org/spreadcoinj/uri/BitcoinURITest.java | Java | apache-2.0 | 17,568 |
package org.marketcetera.marketdata.core.webservice;
import org.marketcetera.core.CoreException;
import org.marketcetera.util.log.I18NBoundMessage;
/* $License$ */
/**
*
*
* @author <a href="mailto:colin@marketcetera.com">Colin DuPlantis</a>
* @version $Id$
* @since $Release$
*/
public class ConnectionExceptio... | nagyist/marketcetera | trunk/modules/marketdata/marketdata-core/src/main/java/org/marketcetera/marketdata/core/webservice/ConnectionException.java | Java | apache-2.0 | 2,405 |
package com.github.algorithm.graph.bellmanford;
import java.util.ArrayList;
import java.util.List;
/**
* @author shafiul@cefalo.com
*/
public class Vertex<T> {
private T data;
private boolean visited;
private List<Edge<T>> adjacentList;
private Vertex<T> parent;
private double minDistance = Dou... | sustbird/algorithm | src/com/github/algorithm/graph/bellmanford/Vertex.java | Java | apache-2.0 | 1,527 |
/*
* Copyright (c) 2015-2018 Open Baton (http://openbaton.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | openbaton/NFVO | catalogue/src/main/java/org/openbaton/catalogue/nfvo/messages/Interfaces/NFVMessage.java | Java | apache-2.0 | 1,009 |
package org.opencb.opencga.catalog.managers;
import org.opencb.datastore.core.ObjectMap;
import org.opencb.datastore.core.QueryOptions;
import org.opencb.datastore.core.QueryResult;
import org.opencb.opencga.catalog.authentication.AuthenticationManager;
import org.opencb.opencga.catalog.exceptions.CatalogException;
im... | roalva1/opencga | opencga-catalog/src/main/java/org/opencb/opencga/catalog/managers/ProjectManager.java | Java | apache-2.0 | 8,016 |
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2008-2022 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/license... | griffon/griffon | subprojects/griffon-core-compile/src/main/java/org/codehaus/griffon/compile/core/AnnotationHandlerFor.java | Java | apache-2.0 | 1,077 |
package ru.job4j.generic;
/**
* Class User.
* @author Andrey Kustov
* @version $1.0$
* @since 14.05.2017
*/
public class User extends Base {
}
| KustovAA/job4j_courses | chapter_004/src/main/java/ru/job4j/generic/User.java | Java | apache-2.0 | 150 |
/*
* Copyright (c) 2016.
* Jason Zhang
* All Rights Reserved
*/
package zjj.app.newsclient.networking;
import android.os.AsyncTask;
public abstract class BaseAsyncTask extends AsyncTask{
}
| jz233/NewsClient | app/src/main/java/zjj/app/newsclient/networking/BaseAsyncTask.java | Java | apache-2.0 | 199 |
/*
* Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | lasanthafdo/siddhi | modules/siddhi-extensions/math/src/main/java/org/wso2/siddhi/extension/math/OctalFunctionExtension.java | Java | apache-2.0 | 3,269 |
package org.mdbda.codegen.helper;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.mdbda.runtime.annotations.Matcher;
import org.junit.Test;
import org.mdbda.codegen.helper.PatternConfiguratorHelper;
public class TestPatternConfiguratorHelper {
public class A{
public boo... | fujaba/mdbda | org.mdbda.codegen/test/org/mdbda/codegen/helper/TestPatternConfiguratorHelper.java | Java | apache-2.0 | 684 |
package com.github.trang.druid.example.jpa.test.coveralls;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4... | drtrang/druid-spring-boot | druid-spring-boot-example/druid-spring-boot-jpa-example/src/test/java/com/github/trang/druid/example/jpa/test/coveralls/BaseTest.java | Java | apache-2.0 | 870 |
package com.wwr.clock;
import android.app.Activity;
import android.app.TimePickerDialog;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import and... | VickerChen/mao-company-wifi-code | wiFiWeather/src/main/java/com/wwr/clock/SelectTimeActivity.java | Java | apache-2.0 | 7,744 |
import java.nio.ByteBuffer;
public final class nsl
extends qan<nsl>
{
public Boolean a = null;
public Boolean b = null;
public Boolean c = null;
public Boolean d = null;
public Boolean e = null;
public Boolean f = null;
public Boolean g = null;
public Boolean h = null;
public Boolean i... | ChiangC/FMTech | GooglePlus/app/src/main/java/nsl.java | Java | apache-2.0 | 8,439 |
/*
* 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... | Flipkart/elasticsearch | src/test/java/org/elasticsearch/test/InternalTestCluster.java | Java | apache-2.0 | 78,232 |
/**
*
* Copyright 2011 (C) Rainer Schneider,Roggenburg <schnurlei@googlemail.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/LICENS... | schnurlei/jdynameta | jdy/jdy.base/src/main/java/de/jdynameta/base/metainfo/AttributeAdaptor.java | Java | apache-2.0 | 1,360 |
package com.google.rolecall.restcontrollers.exceptionhandling;
import static com.google.common.truth.Truth.assertThat;
import com.google.rolecall.restcontrollers.exceptionhandling.RequestExceptions.EntityNotFoundException;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org... | googleinterns/role-call | backend/src/test/java/com/google/rolecall/restcontrollers/exceptionhandling/ExceptionsUnitTests.java | Java | apache-2.0 | 1,063 |
package com.fireflysource.net.http.common.exception;
/**
* <p>
* Exception thrown to indicate a Bad HTTP Message has either been received or
* attempted to be generated. Typically these are handled with either 400 or 500
* responses.
* </p>
*/
public class BadMessageException extends RuntimeException {
priva... | hypercube1024/firefly | firefly-net/src/main/java/com/fireflysource/net/http/common/exception/BadMessageException.java | Java | apache-2.0 | 1,234 |
/*
* Copyright © 2014 - 2018 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... | niklasteichmann/gradoop | gradoop-flink/src/test/java/org/gradoop/flink/model/impl/operators/sampling/RandomVertexNeighborhoodSamplingTest.java | Java | apache-2.0 | 2,706 |
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2017 GwtMaterialDesign
* %%
* 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
* ... | treblereel/errai-material-demo | src/main/java/org/treblereel/demo/errai/client/dto/DemoImagePanel.java | Java | apache-2.0 | 1,654 |
package com.example.rest;
import com.example.services.NotificationsService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.b... | pragmatico/spring-boot-samples | feign/src/main/java/com/example/rest/NotificationsClientController.java | Java | apache-2.0 | 936 |
package com.albedinsky.android.ui.examples;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.Menu;
import android.view.MenuItem;
import com.albedinsky.android.support.examples.ExActivity;
import com.albedinsky.android.... | android-libraries/android_ui | examples/src/main/java/com/albedinsky/android/ui/examples/SearchActivity.java | Java | apache-2.0 | 2,730 |
/**
* SdtncPostMethodImpl.java
* (C) 2013,2015, Hitachi, Ltd.
*/
package org.o3project.mlo.server.impl.rpc.service;
/**
* This class is the implementation class of {@link org.o3project.mlo.server.rpc.service.SdtncMethod} interface for post method.
*/
public class SdtncPostMethodImpl extends SdtncBaseMethod {
/*... | o3project/mlo-net | mlo-srv/src/main/java/org/o3project/mlo/server/impl/rpc/service/SdtncPostMethodImpl.java | Java | apache-2.0 | 629 |
package org.wx.sdk.template.request;
import java.util.HashMap;
import java.util.Map;
import org.wx.sdk.base.Request;
import org.wx.sdk.template.response.TemplateSetIndustryRespone;
/**
* <p>设置行业可在微信公众平台后台完成,每月可修改行业1次,帐号仅可使用所属行业中相关的模板【订阅号与服务号认证后均可用】
* <p>为方便第三方开发者,提供通过接口调用的方式来修改账号所属行业。
* @author Rocye
*... | rocye/wx-idk | src/main/java/org/wx/sdk/template/request/TemplateSetIndustryRequest.java | Java | apache-2.0 | 2,618 |
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | equella/Equella | Source/Plugins/Core/com.equella.core/src/com/tle/core/item/standard/operations/StartEditForMoveOperation.java | Java | apache-2.0 | 1,259 |
package nl.vu.cs.dynamite.compression;
import nl.vu.cs.ajira.buckets.TupleComparator;
public class URLComparator extends TupleComparator {
@Override
public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) {
// Here I know that the first field is a String.
int ls1 = (b1[s1 + 5] << 8) + b1[s1 +... | jrbn/dynamite | src/nl/vu/cs/dynamite/compression/URLComparator.java | Java | apache-2.0 | 433 |
/**
* Copyright (C) 2014 The SciGraph 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... | CINERGI/SciGraph | SciGraph-core/src/main/java/io/scigraph/internal/EvidenceAspect.java | Java | apache-2.0 | 5,545 |
package br.mil.mar.casnav.mclm.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.StrutsStatics;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.InterceptorRef;
import org.apac... | icemagno/geoexplorer | src/main/java/br/mil/mar/casnav/mclm/action/UpdateDictionaryAction.java | Java | apache-2.0 | 1,520 |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.http.client.core;
import com.yahoo.vespa.http.client.FeedClient;
import com.yahoo.vespa.http.client.FeedEndpointException;
import com.yahoo.vespa.http.client.ManualClock;
import com.yahoo.ve... | vespa-engine/vespa | vespa-http-client/src/test/java/com/yahoo/vespa/http/client/core/OperationProcessorTester.java | Java | apache-2.0 | 4,534 |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | facebook/litho | litho-annotations/src/main/java/com/facebook/litho/annotations/OnCreateMountContent.java | Java | apache-2.0 | 2,238 |
package com.philemonworks.selfdiagnose.test;
import com.philemonworks.selfdiagnose.DiagnosticTaskResult;
import com.philemonworks.selfdiagnose.ExecutionContext;
import com.philemonworks.selfdiagnose.TaskBackgroundRunner;
import junit.framework.TestCase;
import java.util.concurrent.ExecutorService;
import java.util.co... | emicklei/selfdiagnose | src/test/java/com/philemonworks/selfdiagnose/test/TaskBackgroundRunnerTest.java | Java | apache-2.0 | 3,546 |
package com.communote.server.test.util;
import java.util.Locale;
import org.springframework.security.core.context.SecurityContext;
import com.communote.common.converter.IdentityConverter;
import com.communote.server.api.ServiceLocator;
import com.communote.server.api.core.user.UserVO;
import com.communote.s... | Communote/communote-server | communote/tests/all-versions/integration/src/main/java/com/communote/server/test/util/UserAndGroupTestUtils.java | Java | apache-2.0 | 8,170 |
package net.jueb.util4j.beta.delyEvent.demo;
import java.util.Scanner;
import net.jueb.util4j.beta.delyEvent.DelyEventManager;
import net.jueb.util4j.beta.delyEvent.DelyEventType;
import net.jueb.util4j.beta.delyEvent.events.DelyBuildingEvent;
public class DelyEventDemoTest {
DelyEventManager m=new DelyEventManage... | juebanlin/util4j | util4j/src/test/java/net/jueb/util4j/beta/delyEvent/demo/DelyEventDemoTest.java | Java | apache-2.0 | 1,041 |
package ru.szhernovoy;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
/**
* Created by admin on 17.07.2016.
*/
public class AddTwoNum {
public static void main(String[] args) throws IOException {
AddTwoNum obj = new AddTwoNum();
... | SergeyZhernovoy/Java-education | PartIII/Lesson1/src/main/java/ru/szhernovoy/AddTwoNum.java | Java | apache-2.0 | 1,134 |
/*
* Copyright 2016 Huawei Technologies Co., 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... | open-o/nfvo | drivers/vim/vimadapter/VimDriverService/service/src/main/java/org/openo/nfvo/vimadapter/service/openstack/entry/ResourceMgrOpenstack.java | Java | apache-2.0 | 3,342 |
package org.gradle.test.performance.mediummonolithicjavaproject.p386;
public class Production7723 {
private String property0;
public String getProperty0() {
return property0;
}
public void setProperty0(String value) {
property0 = value;
}
private String property1;
... | oehme/analysing-gradle-performance | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p386/Production7723.java | Java | apache-2.0 | 1,891 |
/*
* Copyright 2010-2016 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... | dump247/aws-sdk-java | aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/transform/GetPolicyResultStaxUnmarshaller.java | Java | apache-2.0 | 2,463 |
/**
* Copyright 2015 Russoft di Enrico Russo
*
* 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 ... | bigboss84/rs-api | rs-conf/src/test/java/it/russoft/api/conf/ConfigurationFactoryTest.java | Java | apache-2.0 | 921 |
package com.example.destr.busy_calendar.constants;
public interface Constants {
interface LoginConstants {
String CONSUMER_KEY_VK = "5645451";
String CONSUMER_KEY_FACEBOOK = "864214090351529";
String CONSUMER_URL_VK = "https://oauth.vk.com/blank.html";
String CONSUMER_URL_FACEBOOK... | DESTROYED/The_busy_calendar | Busy_calendar/app/src/main/java/com/example/destr/busy_calendar/constants/Constants.java | Java | apache-2.0 | 4,519 |
/*
* Copyright 2012 David Cowden
* 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... | dcow/jPearltrees | src/me/dcow/pearltrees/PagePearl.java | Java | apache-2.0 | 1,912 |
/*
* Copyright 2018 LINE Corporation
*
* LINE Corporation licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | line/centraldogma | common/src/main/java/com/linecorp/centraldogma/internal/api/v1/WatchResultDto.java | Java | apache-2.0 | 1,817 |