commit stringlengths 40 40 | old_file stringlengths 4 236 | new_file stringlengths 4 236 | old_contents stringlengths 1 3.26k | new_contents stringlengths 16 4.43k | subject stringlengths 16 624 | message stringlengths 17 3.29k | lang stringclasses 5
values | license stringclasses 13
values | repos stringlengths 5 91.5k |
|---|---|---|---|---|---|---|---|---|---|
63d972d7c0fc18792731496fc2ae6bdb60766dbc | src/de/wak_sh/client/Utils.java | src/de/wak_sh/client/Utils.java | package de.wak_sh.client;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Utils {
public static String match(String pattern, String subject) {
Matcher matcher = Pattern.compile(pattern).matcher(subject);
matcher.find();
return matc... | package de.wak_sh.client;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Utils {
public static String match(String pattern, String subject) {
Matcher matcher = Pattern.compile(pattern, Pattern.DOTALL).matcher(
subject);
matcher.... | Fix regex utils for long messages | Fix regex utils for long messages | Java | apache-2.0 | wakclient/wakclient |
c997f962eb26bd913845f8c11307af7d6ce89192 | subprojects/launcher/src/main/java/org/gradle/launcher/daemon/server/exec/HandleStop.java | subprojects/launcher/src/main/java/org/gradle/launcher/daemon/server/exec/HandleStop.java | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Send a Success message back to client when handling a Stop request. | Send a Success message back to client when handling a Stop request.
| Java | apache-2.0 | robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gstevey/gradle,lsmaira/gradle,gstevey/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,lsmaira/gradle,gstevey/gradle,gradle/gradle,lsmaira/gradle,gstevey/g... |
38bd7c4f4b797f57b2cd92a19b98d230e8743d9d | src/com/saintsrobotics/frc/subsystems/DriveTrain.java | src/com/saintsrobotics/frc/subsystems/DriveTrain.java | package com.saintsrobotics.frc.subsystems;
import com.saintsrobotics.frc.RobotMap;
import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.SpeedController;
import edu.wpi.first.wpilibj.command.Subsystem;
/**
*
* @author Saints Robotics
*/
public class DriveTrain e... | package com.saintsrobotics.frc.subsystems;
import com.saintsrobotics.frc.RobotMap;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.SpeedController;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.command.Subsystem;
/**
*
* @author Saints Robotics
*/
public class DriveTrain e... | Use Victor instead of Jaguar | Use Victor instead of Jaguar | Java | bsd-3-clause | SaintsRobotics/FRC-2014-test |
573386b862abd6b6d118805c92425ce9a9f908b8 | d02/d02s04/src/main/java/com/oce/springboot/training/d02/s04/repository/ProductRepository.java | d02/d02s04/src/main/java/com/oce/springboot/training/d02/s04/repository/ProductRepository.java | package com.oce.springboot.training.d02.s04.repository;
import com.oce.springboot.training.d02.s04.model.Product;
import org.springframework.stereotype.Repository;
import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.List;
@Repository
public class ProductRepository {
// an in-memo... | package com.oce.springboot.training.d02.s04.repository;
import com.oce.springboot.training.d02.s04.model.Product;
import org.springframework.stereotype.Repository;
import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.List;
@Repository
public class ProductRepository {
// an in-memo... | Return a null product if there isn't a saved one | [improve] Return a null product if there isn't a saved one
| Java | apache-2.0 | bogdansolga/nokia-spring-boot-training,bogdansolga/nokia-spring-boot-training,bogdansolga/oce-spring-boot-training,bogdansolga/oce-spring-boot-training |
ac5388266224b245ea2a820d0e3e6f1eb4351c64 | h2o-extensions/xgboost/src/main/java/hex/tree/xgboost/remote/RemoteXGBoostServletProvider.java | h2o-extensions/xgboost/src/main/java/hex/tree/xgboost/remote/RemoteXGBoostServletProvider.java | package hex.tree.xgboost.remote;
import water.server.ServletMeta;
import water.server.ServletProvider;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class RemoteXGBoostServletProvider implements ServletProvider {
private static final List<ServletMeta> SERVLETS = Collection... | package hex.tree.xgboost.remote;
import water.server.ServletMeta;
import water.server.ServletProvider;
import java.util.Collections;
import java.util.List;
public class RemoteXGBoostServletProvider implements ServletProvider {
private static final List<ServletMeta> SERVLETS = Collections.singletonList(
... | Allow matrix to be uploaded to any node in external XGB on K8S | PUBDEV-8671: Allow matrix to be uploaded to any node in external XGB on K8S
| Java | apache-2.0 | h2oai/h2o-3,h2oai/h2o-3,h2oai/h2o-3,h2oai/h2o-3,h2oai/h2o-3,h2oai/h2o-3,h2oai/h2o-3,h2oai/h2o-3 |
f20e9bdc00909dab230c7135068abb32243f0cae | stroom-kafka/stroom-kafka-api/src/main/java/stroom/kafka/api/KafkaProducerSupplierKey.java | stroom-kafka/stroom-kafka-api/src/main/java/stroom/kafka/api/KafkaProducerSupplierKey.java | package stroom.kafka.api;
import stroom.kafka.shared.KafkaConfigDoc;
import java.util.Objects;
public class KafkaProducerSupplierKey {
private final String uuid;
private final String version;
public KafkaProducerSupplierKey(final KafkaConfigDoc kafkaConfigDoc) {
Objects.requireNonNull(kafkaConfi... | package stroom.kafka.api;
import stroom.kafka.shared.KafkaConfigDoc;
import java.util.Objects;
public class KafkaProducerSupplierKey {
private final String uuid;
private final String version;
public KafkaProducerSupplierKey(final KafkaConfigDoc kafkaConfigDoc) {
Objects.requireNonNull(kafkaConfi... | Add msgs to null check | Add msgs to null check
| Java | apache-2.0 | gchq/stroom,gchq/stroom,gchq/stroom,gchq/stroom,gchq/stroom,gchq/stroom |
2a1357455060defb2c8fc72eac8c1b3ca7f4b71e | benchmarks/src/main/java/io/scalecube/services/benchmarks/service/BenchmarkServiceImpl.java | benchmarks/src/main/java/io/scalecube/services/benchmarks/service/BenchmarkServiceImpl.java | package io.scalecube.services.benchmarks.service;
import io.scalecube.services.api.ServiceMessage;
import java.util.concurrent.Callable;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import reactor.core.scheduler.Schedulers;
public class BenchmarkServiceImpl implements BenchmarkService {
... | package io.scalecube.services.benchmarks.service;
import io.scalecube.services.api.ServiceMessage;
import java.util.concurrent.Callable;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import reactor.core.scheduler.Schedulers;
public class BenchmarkServiceImpl implements BenchmarkService {
... | Set final version of stream scenario | Set final version of stream scenario
| Java | apache-2.0 | servicefabric/servicefabric,scalecube/scalecube,scalecube/scalecube |
ac2cc54e74e53b079f63a800d9c342fd79c9deb0 | view/src/main/java/org/xcolab/view/pages/proposals/view/contest/ContestProposalsCsvWriter.java | view/src/main/java/org/xcolab/view/pages/proposals/view/contest/ContestProposalsCsvWriter.java | package org.xcolab.view.pages.proposals.view.contest;
import org.xcolab.client.proposals.pojo.Proposal;
import org.xcolab.commons.CsvResponseWriter;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import javax.servlet.http.HttpServletResponse;
public c... | package org.xcolab.view.pages.proposals.view.contest;
import org.xcolab.client.proposals.pojo.Proposal;
import org.xcolab.commons.CsvResponseWriter;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import javax.servlet.http.HttpServletResponse;
public c... | Add additional fields to csv export | Add additional fields to csv export
| Java | mit | CCI-MIT/XCoLab,CCI-MIT/XCoLab,CCI-MIT/XCoLab,CCI-MIT/XCoLab |
8ecc66972bab6e390856a57d97f008c111d87c26 | src/main/java/org/jenkinsci/plugins/radargun/utils/ParseUtils.java | src/main/java/org/jenkinsci/plugins/radargun/utils/ParseUtils.java | package org.jenkinsci.plugins.radargun.utils;
import java.util.ArrayList;
import java.util.List;
import org.jenkinsci.plugins.radargun.model.Node;
import org.jenkinsci.plugins.radargun.model.NodeList;
public class ParseUtils {
private static final String EOL_REG_EXP = "\\r?\\n";
/**
*
* Pars... | package org.jenkinsci.plugins.radargun.utils;
import java.util.ArrayList;
import java.util.List;
import org.jenkinsci.plugins.radargun.model.Node;
import org.jenkinsci.plugins.radargun.model.NodeList;
public class ParseUtils {
/**
*
* Parse node list. Expected format is
* <ul>
* <li> Each... | Switch to JDK7 method for new line | Switch to JDK7 method for new line
| Java | mit | jenkinsci/radargun-plugin,jenkinsci/radargun-plugin,vjuranek/radargun-plugin,vjuranek/radargun-plugin,vjuranek/radargun-plugin,jenkinsci/radargun-plugin |
a564ccd635b9b04e402aff2110ab4e5ef116cc71 | src/org/canthack/tris/android/media/SoundEffects.java | src/org/canthack/tris/android/media/SoundEffects.java | package org.canthack.tris.android.media;
import android.content.Context;
import android.media.MediaPlayer;
public class SoundEffects {
private static MediaPlayer mp = null;
public static void playEffect(Context context, int resource) {
playSound(context, resource, false);
}
public static void playMusic(Contex... | package org.canthack.tris.android.media;
import android.content.Context;
import android.media.MediaPlayer;
public class SoundEffects {
private static MediaPlayer mp = null;
public static void playEffect(Context context, int resource) {
playSound(context, resource, false);
}
public static void playMusic(Contex... | Fix media player log warnings. | Fix media player log warnings.
| Java | isc | tristan2468/OyVer |
c0a5d646a581f52019e0ee7687245bdaa78d9c40 | src/main/java/com/hp/autonomy/types/requests/idol/actions/answer/params/GetResourcesParams.java | src/main/java/com/hp/autonomy/types/requests/idol/actions/answer/params/GetResourcesParams.java | /*
* Copyright 2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
package com.hp.autonomy.types.requests.idol.actions.answer.params;
@SuppressWarnings({"WeakerAccess", "unused"})
public enum GetResourc... | /*
* Copyright 2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
package com.hp.autonomy.types.requests.idol.actions.answer.params;
@SuppressWarnings({"WeakerAccess", "unused"})
public enum GetResourc... | Add ExcludeIds parameter to AnswerServer GetResources action | Add ExcludeIds parameter to AnswerServer GetResources action
[rev. matthew.gordon]
| Java | mit | hpe-idol/java-aci-types,hpautonomy/java-aci-types,hpautonomy/java-aci-types,hpe-idol/java-aci-types |
79fd703edf9d469868f0e2e09c140cb7d3efe1f3 | App/app/src/main/java/eic/beike/projectx/busdata/ResponseEntry.java | App/app/src/main/java/eic/beike/projectx/busdata/ResponseEntry.java | package eic.beike.projectx.busdata;
import com.google.gson.annotations.SerializedName;
/**
* Small data class used by gson, comparation on timestamp
* Created by alex on 9/22/15.
*/
public class ResponseEntry implements Comparable<ResponseEntry>{
@SerializedName("resourceSpec")
String resource;
@Seria... | package eic.beike.projectx.busdata;
/**
* Small data class used by gson, comparation on timestamp
* Created by alex on 9/22/15.
*/
public class ResponseEntry implements Comparable<ResponseEntry>{
/**
* The name of the resource in the api.
*/
String resourceSpec;
/**
* The timestamp of wh... | Clean up intermidieate data class. | Clean up intermidieate data class.
| Java | apache-2.0 | BeikeElectricity/ProjectX,BeikeElectricity/ProjectX,BeikeElectricity/ProjectX |
160816c99bf4a9ab58bc3d697f5643421306caf1 | tapestry-core/src/test/java/org/apache/tapestry5/internal/services/ForceDevelopmentModeModule.java | tapestry-core/src/test/java/org/apache/tapestry5/internal/services/ForceDevelopmentModeModule.java | // Copyright 2011 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | // Copyright 2011, 2012 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | Add configuration for the HMAC passphrase, to prevent service initialization errors inside unit tests that use the ClientDateEncoder service | Add configuration for the HMAC passphrase, to prevent service initialization errors inside unit tests that use the ClientDateEncoder service
| Java | apache-2.0 | apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5 |
373d08d533005ec814bc468f877d0e121051a7a2 | configserver/src/main/java/com/yahoo/vespa/config/server/maintenance/SessionsMaintainer.java | configserver/src/main/java/com/yahoo/vespa/config/server/maintenance/SessionsMaintainer.java | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.maintenance;
import com.yahoo.vespa.config.server.ApplicationRepository;
import com.yahoo.vespa.curator.Curator;
import com.yahoo.vespa.flags.FlagSource;
import java.time.Dura... | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.maintenance;
import com.yahoo.vespa.config.server.ApplicationRepository;
import com.yahoo.vespa.curator.Curator;
import com.yahoo.vespa.flags.FlagSource;
import java.time.Dura... | Remove log line, already sone in superclass | Remove log line, already sone in superclass
| Java | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
3977aab3f5361713f36c45457579de746568f0ea | src/main/java/com/pseudo_sudo/openstorage/OpenStorage.java | src/main/java/com/pseudo_sudo/openstorage/OpenStorage.java | package com.pseudo_sudo.openstorage;
public class OpenStorage {
}
| package com.pseudo_sudo.openstorage;
import cpw.mods.fml.common.Mod;
@Mod(modid=OpenStorage.ID, name=OpenStorage.NAME, version=OpenStorage.VERSION)
public class OpenStorage {
public static final String ID = "openstorage";
public static final String NAME = "OpenStorage";
public static final String VERSION ... | Add basic mod class structure. | Add basic mod class structure.
| Java | mit | PseudoSudoLP/OpenStorage |
9800cc21a1d3afd1d8294a44e5fcd61a00e9316f | annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/validation/ReferenceValuesValidation.java | annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/validation/ReferenceValuesValidation.java | package uk.ac.ebi.quickgo.annotation.validation;
import java.util.stream.Stream;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import org.springframework.beans.factory.annotation.Autowired;
/**
* Validate the reference values used to filter annotations.
* There is ... | package uk.ac.ebi.quickgo.annotation.validation;
import com.google.common.base.Preconditions;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.stream.Stream;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import org.springframe... | Add logic for reference validation directly to this class. | Add logic for reference validation directly to this class.
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
909970b29248ad83311cb9a167c7085cd0852352 | platform/platform-impl/src/com/intellij/ide/ui/laf/darcula/DarculaWelcomeScreenProvider.java | platform/platform-impl/src/com/intellij/ide/ui/laf/darcula/DarculaWelcomeScreenProvider.java | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Disable Darcula special welcome screen | Disable Darcula special welcome screen
| Java | apache-2.0 | MER-GROUP/intellij-community,apixandru/intellij-community,apixandru/intellij-community,robovm/robovm-studio,muntasirsyed/intellij-community,vvv1559/intellij-community,asedunov/intellij-community,ryano144/intellij-community,apixandru/intellij-community,semonte/intellij-community,lucafavatella/intellij-community,holmes/i... |
2d4be85f7f441fa7716bfd6ace19d208fb537c2f | src/test/resources/SampleMini.java | src/test/resources/SampleMini.java | class Main {
public static void main(String[] args) {
Foo f = new Foo();
int[] a = new int[4];
System.out.println(f.getMeaningOfLife());
int i = 0;
while (i < 4) {
System.out.println(a[i]);
i = i + 1;
}
}
}
class Foo {
int life;
... | class Main {
public static void main(String[] args) {
int ignored = 0;
Printer p = new Printer();
char[] s = new char[12];
s[0] = 'H';
s[1] = 'e';
s[2] = 'l';
s[3] = 'l';
s[4] = 'o';
s[5] = ' ';
s[6] = 'W';
s[7] = 'o';
s... | Add example program for demo | Add example program for demo
| Java | mit | rockwotj/mjc |
a0c0c130808894f189e8a06043064653dcca415d | src/main/java/de/retest/recheck/ignore/CompoundFilter.java | src/main/java/de/retest/recheck/ignore/CompoundFilter.java | package de.retest.recheck.ignore;
import java.util.List;
import de.retest.recheck.ui.descriptors.Element;
import de.retest.recheck.ui.diff.AttributeDifference;
public class CompoundFilter implements Filter {
private final List<Filter> filters;
public CompoundFilter( final List<Filter> filters ) {
this.filters ... | package de.retest.recheck.ignore;
import java.util.List;
import de.retest.recheck.ui.descriptors.Element;
import de.retest.recheck.ui.diff.AttributeDifference;
public class CompoundFilter implements Filter {
private final List<Filter> filters;
public CompoundFilter( final List<Filter> filters ) {
this.filters ... | Add getter for enclosed filters | Add getter for enclosed filters
| Java | agpl-3.0 | retest/recheck,retest/recheck |
a0957257cd6c9488762f26720236ac1104eb54f4 | header/src/main/java/org/zstack/header/storage/backup/APIExportImageFromBackupStorageMsg.java | header/src/main/java/org/zstack/header/storage/backup/APIExportImageFromBackupStorageMsg.java | package org.zstack.header.storage.backup;
import org.zstack.header.identity.Action;
import org.zstack.header.image.ImageConstant;
import org.zstack.header.message.APIMessage;
import org.zstack.header.message.APIParam;
@Action(category = ImageConstant.ACTION_CATEGORY)
public class APIExportImageFromBackupStorageMsg ex... | package org.zstack.header.storage.backup;
import org.zstack.header.identity.Action;
import org.zstack.header.image.ImageConstant;
import org.zstack.header.message.APIMessage;
import org.zstack.header.message.APIParam;
@Action(category = ImageConstant.ACTION_CATEGORY)
public class APIExportImageFromBackupStorageMsg ex... | Use imageUuid instead of installPath | Use imageUuid instead of installPath
Signed-off-by: David Lee <15c338f3b79a63a0d5423e9c6562cd312918fe74@gmail.com>
| Java | apache-2.0 | zsyzsyhao/zstack,AlanJager/zstack,HeathHose/zstack,Alvin-Lau/zstack,mingjian2049/zstack,AlanJinTS/zstack,mingjian2049/zstack,Alvin-Lau/zstack,MaJin1996/zstack,camilesing/zstack,MatheMatrix/zstack,WangXijue/zstack,liningone/zstack,winger007/zstack,zstackorg/zstack,mingjian2049/zstack,AlanJinTS/zstack,MatheMatrix/zstack,... |
8d1778a1c6c350d9ef7777ded501103f7e6ae66a | indexing/src/test/java/uk/ac/ebi/quickgo/index/annotation/coterms/CoTermTemporaryDataStore.java | indexing/src/test/java/uk/ac/ebi/quickgo/index/annotation/coterms/CoTermTemporaryDataStore.java | package uk.ac.ebi.quickgo.index.annotation.coterms;
import java.io.IOException;
import org.junit.ClassRule;
import org.junit.rules.ExternalResource;
import org.junit.rules.TemporaryFolder;
import org.springframework.context.annotation.Bean;
import org.springframework.core.io.FileSystemResource;
import org.springframew... | package uk.ac.ebi.quickgo.index.annotation.coterms;
import java.io.IOException;
import org.junit.ClassRule;
import org.junit.rules.ExternalResource;
import org.junit.rules.TemporaryFolder;
/**
* Provide a temporary location for files to be output during co-occurring terms calculation.
* Created 12/10/16
* @author ... | Remove specification of temporary locations for CoTerms ouput. | Remove specification of temporary locations for CoTerms ouput.
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
546cef1cc03b153cbe8aff8a6b736c939485449c | driver/src/main/java/org/neo4j/driver/net/ServerAddressResolver.java | driver/src/main/java/org/neo4j/driver/net/ServerAddressResolver.java | /*
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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.... | /*
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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.... | Improve the javadoc for resolver API To suggest user defined resolver func to shuffle addresses order before returning. | Improve the javadoc for resolver API
To suggest user defined resolver func to shuffle addresses order before returning.
| Java | apache-2.0 | neo4j/neo4j-java-driver,neo4j/neo4j-java-driver,neo4j/neo4j-java-driver |
a44f34dd3322762a2c7516a39fb6db58b7b844c9 | src/main/java/nom/bdezonia/zorbage/procedure/Procedure.java | src/main/java/nom/bdezonia/zorbage/procedure/Procedure.java | package nom.bdezonia.zorbage.procedure;
public interface Procedure<U> {
@SuppressWarnings("unchecked")
void call(U result, U... inputs);
}
| /*
* Zorbage: an algebraic data hierarchy for use in numeric processing.
*
* Copyright (C) 2016-2018 Barry DeZonia
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must ret... | Add file header and author tag to file that needs it | Add file header and author tag to file that needs it
| Java | bsd-3-clause | bdezonia/zorbage,bdezonia/zorbage |
7f5f764898e9f3a4165940394aa258e01b3af413 | findbugs/test/EqualsComparison.java | findbugs/test/EqualsComparison.java | public class EqualsComparison {
void badEqualsComparision() {
String s = "Hi there";
Boolean b = Boolean.TRUE;
System.out.println("equals() returned " + s.equals(b));
}
boolean literalStringEqualsDoNotReport(String s) {
return "Uh huh".equals(s);
}
}
// vim:ts=3
| public class EqualsComparison {
public interface A {}
public interface B {}
void badEqualsComparision() {
String s = "Hi there";
Boolean b = Boolean.TRUE;
System.out.println("equals() returned " + s.equals(b));
}
boolean literalStringEqualsDoNotReport(String s) {
return "Uh huh".equals(s);
}
boolean ... | Add test for comparing unrelated interfaces | Add test for comparing unrelated interfaces
git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@2645 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
| Java | lgpl-2.1 | spotbugs/spotbugs,spotbugs/spotbugs,KengoTODA/spotbugs,KengoTODA/spotbugs,sewe/spotbugs,johnscancella/spotbugs,johnscancella/spotbugs,sewe/spotbugs,spotbugs/spotbugs,johnscancella/spotbugs,spotbugs/spotbugs,johnscancella/spotbugs,spotbugs/spotbugs,KengoTODA/spotbugs,KengoTODA/spotbugs,sewe/spotbugs,sewe/spotbugs |
04151b5d4bd20383687fba7d4309b95106e19f52 | src/main/java/de/csdev/ebus/core/EBusControllerException.java | src/main/java/de/csdev/ebus/core/EBusControllerException.java | /**
* Copyright (c) 2016-2020 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/... | /**
* Copyright (c) 2016-2020 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/... | Enhance the Exception to allow messages | Enhance the Exception to allow messages
| Java | epl-1.0 | csowada/ebus,csowada/ebus |
dbc48f6a9541a7b1f60cfbb700685ec5401e17cd | src/main/java/org/hummingbirdlang/nodes/HBAssignmentNode.java | src/main/java/org/hummingbirdlang/nodes/HBAssignmentNode.java | package org.hummingbirdlang.nodes;
import com.oracle.truffle.api.frame.VirtualFrame;
import org.hummingbirdlang.types.realize.InferenceVisitor;
public class HBAssignmentNode extends HBExpressionNode {
@Child private HBExpressionNode targetNode;
@Child private HBExpressionNode valueNode;
public HBAssignmentNod... | package org.hummingbirdlang.nodes;
import com.oracle.truffle.api.frame.VirtualFrame;
import org.hummingbirdlang.types.realize.InferenceVisitor;
public class HBAssignmentNode extends HBExpressionNode {
@Child private HBExpressionNode targetNode;
@Child private HBExpressionNode valueNode;
public HBAssignmentNod... | Add custom `toString` for assignment node | Add custom `toString` for assignment node
| Java | bsd-3-clause | dirk/hummingbird2,dirk/hummingbird2,dirk/hummingbird2 |
ed39e85be1bc88113cce771f1e106667402243eb | nano/src/test/java/com/airhacks/nano/ContextsTest.java | nano/src/test/java/com/airhacks/nano/ContextsTest.java | package com.airhacks.nano;
import java.nio.file.Path;
import java.nio.file.Paths;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
/**
*
* @author airhacks.com
*/
public class ContextsTest {
@Test
public void extractContext() {
Path path... | package com.airhacks.nano;
import java.nio.file.Path;
import java.nio.file.Paths;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
/**
*
* @author airhacks.com
*/
public class ContextsTest {
@Test
public void extractContext() {
Path path... | Test compares path objects, not string -> should be OS-independent | Test compares path objects, not string -> should be OS-independent | Java | apache-2.0 | AdamBien/nano,AdamBien/nano |
c2014e4c3ba9c72ea97b97b5c0c0c097f0a55ea8 | src/protocolsupportpocketstuff/metadata/MetadataProvider.java | src/protocolsupportpocketstuff/metadata/MetadataProvider.java | package protocolsupportpocketstuff.metadata;
import protocolsupport.api.unsafe.pemetadata.PEMetaProvider;
import protocolsupport.protocol.utils.types.NetworkEntity;
import protocolsupportpocketstuff.api.util.PocketUtils;
public class MetadataProvider extends PEMetaProvider {
@Override
public float getEntitySize(N... | package protocolsupportpocketstuff.metadata;
import java.util.UUID;
import org.bukkit.entity.EntityType;
import protocolsupport.api.unsafe.pemetadata.PEMetaProvider;
import protocolsupportpocketstuff.api.util.PocketUtils;
public class MetadataProvider extends PEMetaProvider {
@Override
public String getUseText(U... | Update to latest Unsafe api. | Update to latest Unsafe api. | Java | agpl-3.0 | ProtocolSupport/ProtocolSupportPocketStuff |
e6058c796508963ebf96b0f1001b06b67f18168c | src/test/java/ru/ydn/orienteer/junit/OrienteerTestRunner.java | src/test/java/ru/ydn/orienteer/junit/OrienteerTestRunner.java | package ru.ydn.orienteer.junit;
import org.apache.wicket.util.tester.WicketTester;
import org.junit.runners.model.InitializationError;
import ru.ydn.orienteer.services.OrienteerModule;
import ru.ydn.orienteer.standalone.StartStandalone;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.go... | package ru.ydn.orienteer.junit;
import org.apache.wicket.util.tester.WicketTester;
import org.junit.runners.model.InitializationError;
import ru.ydn.orienteer.services.OrienteerModule;
import ru.ydn.orienteer.standalone.StartStandalone;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.go... | Make shutdown of tests gracefully | Make shutdown of tests gracefully
| Java | apache-2.0 | evilsyncope/Orienteer,OrienteerBAP/Orienteer,evilsyncope/Orienteer,OrienteerBAP/Orienteer,OrienteerBAP/Orienteer,evilsyncope/Orienteer,OrienteerDW/Orienteer,WeaxMe/Orienteer,OrienteerDW/Orienteer,WeaxMe/Orienteer,WeaxMe/Orienteer,OrienteerBAP/Orienteer,OrienteerDW/Orienteer |
00510a248e61081d1640f0b78745ca154f6493cb | backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetDefualtTimeZoneQuery.java | backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetDefualtTimeZoneQuery.java | package org.ovirt.engine.core.bll;
import org.ovirt.engine.core.compat.*;
import org.ovirt.engine.core.common.config.Config;
import org.ovirt.engine.core.common.config.ConfigValues;
import org.ovirt.engine.core.common.queries.*;
import org.ovirt.engine.core.vdsbroker.vdsbroker.SysprepHandler;
public class GetDefualtT... | package org.ovirt.engine.core.bll;
import org.ovirt.engine.core.common.config.Config;
import org.ovirt.engine.core.common.config.ConfigValues;
import org.ovirt.engine.core.common.queries.VdcQueryParametersBase;
import org.ovirt.engine.core.compat.KeyValuePairCompat;
import org.ovirt.engine.core.vdsbroker.vdsbroker.Sys... | Clean up imports on GetDefaultTimeZoneQuery | core: Clean up imports on GetDefaultTimeZoneQuery
Replaced * imports with FQCNs.
Change-Id: I23ab2fe33408ef7dc05ef4048f7c1418d3e4ef3e
| Java | apache-2.0 | yapengsong/ovirt-engine,yingyun001/ovirt-engine,OpenUniversity/ovirt-engine,zerodengxinchao/ovirt-engine,yingyun001/ovirt-engine,yingyun001/ovirt-engine,yapengsong/ovirt-engine,yingyun001/ovirt-engine,halober/ovirt-engine,eayun/ovirt-engine,zerodengxinchao/ovirt-engine,yapengsong/ovirt-engine,eayun/ovirt-engine,derekhi... |
51a427a5dec9d8444bb49c6b8427574f26a1df85 | src/com/dumbster/smtp/SocketWrapper.java | src/com/dumbster/smtp/SocketWrapper.java | package com.dumbster.smtp;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
public class SocketWrapper implements IOSource {
private Socket socket;
public SocketWrapper(Socket socket) {
this.socket = sock... | package com.dumbster.smtp;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
public class SocketWrapper implements IOSource {
private Socket socket;
public SocketWrapper(Socket socket) throws IOException {
... | Set the socket timeout so clients can't DoS. Thank you, vladimirdyuzhev! | Set the socket timeout so clients can't DoS. Thank you, vladimirdyuzhev!
| Java | apache-2.0 | rjo1970/dumbster,petershmenos/dumbster,coopernurse/dumbster,pc1pranav/dumbster,MicroWorld/dumbster |
8314f4f73db37e56fe466c41b9ca3b485870b2d6 | src/main/java/org/mcupdater/ravenbot/features/InfoHandler.java | src/main/java/org/mcupdater/ravenbot/features/InfoHandler.java | package org.mcupdater.ravenbot.features;
import org.pircbotx.hooks.ListenerAdapter;
import org.pircbotx.hooks.events.MessageEvent;
public class InfoHandler extends ListenerAdapter {
@Override
public void onMessage(final MessageEvent event) {
if (event.getMessage().startsWith(".info")) {
S... | package org.mcupdater.ravenbot.features;
import org.apache.commons.lang3.StringUtils;
import org.mcupdater.ravenbot.RavenBot;
import org.pircbotx.Colors;
import org.pircbotx.hooks.ListenerAdapter;
import org.pircbotx.hooks.events.MessageEvent;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public clas... | Handle .info. Still needs .ilist | Handle .info. Still needs .ilist
| Java | apache-2.0 | MCUpdater/RavenBot |
2582897daffde613a713c67d791974ddecdef430 | open-ssp-parent/open-ssp-common/src/main/java/com/atg/openssp/common/cache/broker/AbstractDataBroker.java | open-ssp-parent/open-ssp-common/src/main/java/com/atg/openssp/common/cache/broker/AbstractDataBroker.java | package com.atg.openssp.common.cache.broker;
import com.atg.openssp.common.configuration.ContextCache;
import com.atg.openssp.common.configuration.ContextProperties;
import com.atg.openssp.common.exception.EmptyHostException;
import restful.client.JsonDataProviderConnector;
import restful.context.PathBuilder;
... | package com.atg.openssp.common.cache.broker;
import com.atg.openssp.common.configuration.ContextCache;
import com.atg.openssp.common.configuration.ContextProperties;
import com.atg.openssp.common.exception.EmptyHostException;
import restful.client.JsonDataProviderConnector;
import restful.context.PathBuilder;
import ... | Move getRestfulContext() from superclass to this. | Move getRestfulContext() from superclass to this. | Java | mit | ad-tech-group/openssp,ad-tech-group/openssp |
9a66323eb953fe8efe1c3fd6a3d8046b01ba41fa | src/me/jacobcrofts/simplestructureloader/api/StructureAPI.java | src/me/jacobcrofts/simplestructureloader/api/StructureAPI.java | package me.jacobcrofts.simplestructureloader.api;
import me.jacobcrofts.simplestructureloader.util.Selection;
public final class StructureAPI {
private StructureAPI() {}
public static void writeToFile(String path, Selection selection) {
}
}
| package me.jacobcrofts.simplestructureloader.api;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import me.jacobcrofts.simplestructureloader.util.Selection;
public final class StructureAPI {
private St... | Add feature: API class that writes selection to file | Add feature: API class that writes selection to file
| Java | mit | JacobCrofts/structure-loader |
9d17472c57fad078f8ce05de19b1844c4f1d201e | checklistbank-mybatis-service/src/test/java/org/gbif/checklistbank/service/mybatis/model/RawUsageTest.java | checklistbank-mybatis-service/src/test/java/org/gbif/checklistbank/service/mybatis/model/RawUsageTest.java | package org.gbif.checklistbank.service.mybatis.model;
import org.gbif.checklistbank.model.RawUsage;
import java.util.Date;
import java.util.UUID;
import org.junit.Assert;
import org.junit.Test;
public class RawUsageTest {
@Test
public void testEquals() throws Exception {
final int key = 100000001;
fina... | package org.gbif.checklistbank.service.mybatis.model;
import org.gbif.checklistbank.model.RawUsage;
import org.junit.Assert;
import org.junit.Test;
import java.util.Date;
import java.util.UUID;
public class RawUsageTest {
@Test
public void testEquals() throws Exception {
final int key = 100000001;
final... | Fix bad test that sometimes fails on slow jenkins | Fix bad test that sometimes fails on slow jenkins
| Java | apache-2.0 | gbif/checklistbank,gbif/checklistbank |
6446bf6642bacb2eaee41894133c0c6bb6fa0ce8 | thot-app/src/test/java/org/ale/app/TwitterLinkCreatorTest.java | thot-app/src/test/java/org/ale/app/TwitterLinkCreatorTest.java | package org.ale.app;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
public class TwitterLinkCreatorTest {
private String twitterAddress;
@Before
public void setup(){
twitterAddress = "<a href=\"http://twitter.com/";
}
@Test
public void sh... | package org.ale.app;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
public class TwitterLinkCreatorTest {
private String twitterAddress;
@Before
public void setup(){
twitterAddress = "<a href=\"http://twitter.com/";
}
@Test
public void sh... | Refactor tests: extracted the last twitter address to the field | Refactor tests: extracted the last twitter address to the field
| Java | mit | codecentric/conference-app,codecentric/conference-app,codecentric/conference-app,codecentric/conference-app,codecentric/conference-app |
6ad3b11c78d468fc3ff935606e90cb66ea0a0391 | tinylog-api/src/main/java/org/tinylog/Logger.java | tinylog-api/src/main/java/org/tinylog/Logger.java | package org.tinylog;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
/**
* Static logger for issuing log entries.
*/
public final class Logger {
private static final ConcurrentMap<String, TaggedLogger> loggers = new ConcurrentHashMap<>();
private static final TaggedLogge... | package org.tinylog;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
/**
* Static logger for issuing log entries.
*/
public final class Logger {
private static final ConcurrentMap<String, TaggedLogger> loggers = new ConcurrentHashMap<>();
/** */
private Logger() {
}
... | Store untagged root logger in map together with all tagged loggers | Store untagged root logger in map together with all tagged loggers
| Java | apache-2.0 | pmwmedia/tinylog,pmwmedia/tinylog |
d84f6511994f1ba619be2b9a5af543949e5f2bf3 | app/src/main/java/com/kishorebabu/popularmovies/MovieDBApi.java | app/src/main/java/com/kishorebabu/popularmovies/MovieDBApi.java | package com.kishorebabu.popularmovies;
import com.kishorebabu.popularmovies.model.Movie;
import com.kishorebabu.popularmovies.model.MoviesList;
import retrofit.Call;
import retrofit.http.GET;
import retrofit.http.Path;
import retrofit.http.Query;
/**
* Created by Kishore on 2/28/2016.
*/
public interface MovieDBAp... | package com.kishorebabu.popularmovies;
import com.kishorebabu.popularmovies.model.Movie;
import com.kishorebabu.popularmovies.model.MoviesList;
import retrofit.Call;
import retrofit.http.GET;
import retrofit.http.Path;
import retrofit.http.Query;
/**
* Created by Kishore on 2/28/2016.
*/
public interface MovieDBAp... | Change query for highest rated to have more query parameters | Change query for highest rated to have more query parameters
| Java | apache-2.0 | barykaed/udacity-popular-movies |
0332feac046330e6c3f8a0be3f10a063dfc478e1 | src/test/java/seedu/address/commons/core/ConfigTest.java | src/test/java/seedu/address/commons/core/ConfigTest.java | package seedu.address.commons.core;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import seedu.emeraldo.commons.core.Config;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class Conf... | package seedu.address.commons.core;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import seedu.emeraldo.commons.core.Config;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class Conf... | Change occurrence of addressbook to emeraldo | Change occurrence of addressbook to emeraldo
| Java | mit | CS2103AUG2016-T10-C3/main |
ee275298e4b0e86da9b1b4b111ac127395d22c31 | java/squeek/quakemovement/QuakeServerPlayer.java | java/squeek/quakemovement/QuakeServerPlayer.java | package squeek.quakemovement;
import api.player.server.ServerPlayerAPI;
import api.player.server.ServerPlayerBase;
public class QuakeServerPlayer extends ServerPlayerBase
{
private boolean wasVelocityChangedBeforeFall = false;
public QuakeServerPlayer(ServerPlayerAPI playerapi)
{
super(playerapi);
}
@Overri... | package squeek.quakemovement;
import api.player.server.ServerPlayerAPI;
import api.player.server.ServerPlayerBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.living.LivingFallEvent;
import net.minecraftforge.fml.common.eventh... | Fix fall damage being applied wrong | Fix fall damage being applied wrong
| Java | unlicense | squeek502/Squake |
97d2308b5a7b5d17fd9ebe2d01692bc9d61c34f1 | app/src/test/java/amu/zhcetstudent/ExampleUnitTest.java | app/src/test/java/amu/zhcetstudent/ExampleUnitTest.java | package amu.zhcetstudent;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addit... | package amu.zhcetstudent;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
... | Add JUnit4 Runner to test | fix: Add JUnit4 Runner to test
| Java | apache-2.0 | divs4debu/zhcet-students |
2cc759f4757dbd50b73c264d47fe08efa0d47f3a | app/src/main/java/com/veyndan/redditclient/ui/recyclerview/itemdecoration/TreeInsetItemDecoration.java | app/src/main/java/com/veyndan/redditclient/ui/recyclerview/itemdecoration/TreeInsetItemDecoration.java | package com.veyndan.redditclient.ui.recyclerview.itemdecoration;
import android.content.Context;
import android.graphics.Rect;
import android.support.annotation.DimenRes;
import android.support.annotation.NonNull;
import android.support.annotation.Px;
import android.support.v7.widget.RecyclerView;
import android.view.... | package com.veyndan.redditclient.ui.recyclerview.itemdecoration;
import android.content.Context;
import android.graphics.Rect;
import android.support.annotation.DimenRes;
import android.support.annotation.NonNull;
import android.support.annotation.Px;
import android.support.v7.widget.RecyclerView;
import android.view.... | Use adapter position instead of layout params position as causing IndexOutOfBoundsException otherwise | Use adapter position instead of layout params position as causing IndexOutOfBoundsException otherwise
| Java | mit | veyndan/reddit-client,veyndan/paper-for-reddit,veyndan/paper-for-reddit |
498962912ac79c3a5bfa8fd10a0cd4ecd113cd32 | processor/src/test/resources/input/SingletonModel.java | processor/src/test/resources/input/SingletonModel.java | import org.realityforge.arez.annotations.Container;
import org.realityforge.arez.annotations.Observable;
@Container( singleton = true )
public class SingletonModel
{
@Observable
public long getTime()
{
return 0;
}
@Observable
public void setTime( final long time )
{
}
}
| import org.realityforge.arez.annotations.Action;
import org.realityforge.arez.annotations.Computed;
import org.realityforge.arez.annotations.Container;
import org.realityforge.arez.annotations.Observable;
@Container( singleton = true )
public class SingletonModel
{
@Observable
public long getTime()
{
return ... | Update input so we remember to check names of Actions and Computed | Update input so we remember to check names of Actions and Computed
| Java | apache-2.0 | realityforge/arez,realityforge/arez,realityforge/arez |
fab55f5d4c7145d95638dfe195ec94c59aec51d6 | jvm-monitor-agent/src/main/java/jvmmonitor/io/ServerGCLogMonitor.java | jvm-monitor-agent/src/main/java/jvmmonitor/io/ServerGCLogMonitor.java | package jvmmonitor.io;
/*
* Copyright (c) ${YEAR}, 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
*
* ... | package jvmmonitor.io;
/*
* Copyright (c) ${YEAR}, 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
*
* ... | Add method for test GC log | Add method for test GC log
| Java | apache-2.0 | wso2-incubator/automatic-anomaly-detection,wso2-incubator/automatic-anomaly-detection,wso2-incubator/automatic-anomaly-detection |
8aec5d2b5b9f68dc7025b825afcc8c70a0f110d5 | app/src/main/java/ca/antonious/habittracker/models/Habit.java | app/src/main/java/ca/antonious/habittracker/models/Habit.java | package ca.antonious.habittracker.models;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
/**
* Created by George on 2016-09-01.
*/
public class Habit {
private String id;
private String name;
private List<Days> daysToComplete = new ArrayList<>();
private List<HabitCompleti... | package ca.antonious.habittracker.models;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;
/**
* Created by George on 2016-09-01.
*/
public class Habit {
private String id;
private String name;
private Date startDate;
private List<Days> daysToComplete ... | Add starting date to habit model | Add starting date to habit model
| Java | mit | gantonious/as1 |
caece879b8ce4a467507e1ffeaf120d2d3943389 | src/test/java/uk/co/benjiweber/expressions/UsingTest.java | src/test/java/uk/co/benjiweber/expressions/UsingTest.java | package uk.co.benjiweber.expressions;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import static uk.co.benjiweber.expressions.Using.using;
public class UsingTest {
static class Foo implements AutoCloseable {
public String result() {
return "result";
... | package uk.co.benjiweber.expressions;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import static uk.co.benjiweber.expressions.Using.using;
public class UsingTest {
@Test public void should_return_value() {
String result = using(Foo::new, foo -> {
return fo... | Move tests to the top | Move tests to the top
| Java | mit | benjiman/expressions |
6eae2e0865b070cc481b1b6cde3d7d9e467e8f78 | tests/src/test/java/clarifai2/test/ConvenienceMethodTests.java | tests/src/test/java/clarifai2/test/ConvenienceMethodTests.java | package clarifai2.test;
import clarifai2.api.ClarifaiUtil;
import clarifai2.api.request.ClarifaiRequest;
import clarifai2.dto.input.ClarifaiInput;
import clarifai2.dto.input.image.ClarifaiImage;
import clarifai2.dto.model.Model;
import clarifai2.dto.model.output_info.ConceptOutputInfo;
import clarifai2.dto.prediction.... | package clarifai2.test;
import clarifai2.api.ClarifaiUtil;
import clarifai2.api.request.ClarifaiRequest;
import clarifai2.dto.input.ClarifaiInput;
import clarifai2.dto.input.image.ClarifaiImage;
import clarifai2.dto.model.Model;
import clarifai2.dto.model.output_info.ConceptOutputInfo;
import clarifai2.dto.prediction.... | Move input-add before model-create in test | Move input-add before model-create in test
| Java | mit | Clarifai/clarifai-api-java |
d41fc3d844108853d1b972b792dc6887239e1914 | server/upgrade/data-migration-0.9.0-0.10.0/src/main/java/org/kaaproject/data_migration/EndpointProfileMigration.java | server/upgrade/data-migration-0.9.0-0.10.0/src/main/java/org/kaaproject/data_migration/EndpointProfileMigration.java | package org.kaaproject.data_migration;
import com.datastax.driver.core.Cluster;
import com.datastax.driver.core.Session;
import com.mongodb.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import org.bson.Document;
import org.kaaproject.data_migration.utils.Options;
im... | package org.kaaproject.data_migration;
import com.datastax.driver.core.Cluster;
import com.datastax.driver.core.Session;
import com.mongodb.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import org.bson.Document;
import org.kaaproject.data_migration.utils.Options;
im... | Add field use raw configuration schema toep_profile in Cassandra | Add field use raw configuration schema toep_profile in Cassandra
| Java | apache-2.0 | Oleh-Kravchenko/kaa,aglne/kaa,sashadidukh/kaa,aglne/kaa,sashadidukh/kaa,rasendubi/kaa,sashadidukh/kaa,rasendubi/kaa,vtkhir/kaa,Oleh-Kravchenko/kaa,Oleh-Kravchenko/kaa,rasendubi/kaa,Oleh-Kravchenko/kaa,Oleh-Kravchenko/kaa,vtkhir/kaa,vtkhir/kaa,vtkhir/kaa,Oleh-Kravchenko/kaa,aglne/kaa,sashadidukh/kaa,rasendubi/kaa,aglne/... |
0ab26fbc2e8aa77abdd90e6d31090dabe5d99e10 | src/main/java/com/yahoo/sketches/tuple/Filter.java | src/main/java/com/yahoo/sketches/tuple/Filter.java | package com.yahoo.sketches.tuple;
import java.util.function.Predicate;
/**
* Class for filtering values from a {@link Sketch} given a {@link Summary}
*
* @param <T> Summary type against to which apply the {@link Predicate}
*/
public class Filter<T extends Summary> {
private Predicate<T> predicate;
/**
... | package com.yahoo.sketches.tuple;
import com.yahoo.sketches.ResizeFactor;
import java.util.function.Predicate;
/**
* Class for filtering values from a {@link Sketch} given a {@link Summary}
*
* @param <T> Summary type against to which apply the {@link Predicate}
*/
public class Filter<T extends Summary> {
pr... | Use ResizeFactor parameter instead of hardcoded integer | Use ResizeFactor parameter instead of hardcoded integer
| Java | apache-2.0 | DataSketches/sketches-core |
7f352284a7cb5df30bfb82ed9763133a45f65fa7 | skid-road-dropwizard/src/main/java/io/ifar/skidroad/dropwizard/config/RequestLogPrepConfiguration.java | skid-road-dropwizard/src/main/java/io/ifar/skidroad/dropwizard/config/RequestLogPrepConfiguration.java | package io.ifar.skidroad.dropwizard.config;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.DecimalMin;
/**
*
*/
public class RequestLogPrepConfiguration {
@JsonProp... | package io.ifar.skidroad.dropwizard.config;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.DecimalMin;
/**
*
*/
public class RequestLogPrepConfiguration {
@JsonProperty("master_key")
//optional; only needed if usi... | Make master_key config param optional to support unencrypted workflow | Make master_key config param optional to support unencrypted workflow
| Java | bsd-2-clause | Multifarious/skid-road,ConatyConsulting/skid-road |
1b602b1fab3931f8efadaadce50412f479514ead | apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/plugin/interceptor/enhance/EnhancedInstance.java | apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/plugin/interceptor/enhance/EnhancedInstance.java | package org.skywalking.apm.agent.core.plugin.interceptor.enhance;
/**
* @author wusheng
*/
public interface EnhancedInstance {
Object getSkyWalkingDynamicField();
void setSkyWalkingDynamicField();
}
| package org.skywalking.apm.agent.core.plugin.interceptor.enhance;
/**
* @author wusheng
*/
public interface EnhancedInstance {
Object getSkyWalkingDynamicField();
void setSkyWalkingDynamicField(Object value);
}
| Fix a dynamic interface bug. | Fix a dynamic interface bug.
| Java | apache-2.0 | hanahmily/sky-walking,ascrutae/sky-walking,apache/skywalking,OpenSkywalking/skywalking,hanahmily/sky-walking,apache/skywalking,apache/skywalking,ascrutae/sky-walking,OpenSkywalking/skywalking,apache/skywalking,apache/skywalking,ascrutae/sky-walking,ascrutae/sky-walking,zhangkewei/sky-walking,zhangkewei/sky-walking,apac... |
5e7b67e55f4b987753e5e3c632ae6fd4d4cf254f | messaging-client-databus/src/main/java/com/inmobi/messaging/consumer/databus/DatabusConsumerConfig.java | messaging-client-databus/src/main/java/com/inmobi/messaging/consumer/databus/DatabusConsumerConfig.java | package com.inmobi.messaging.consumer.databus;
import com.inmobi.databus.FSCheckpointProvider;
/**
* Configuration properties and their default values for {@link DatabusConsumer}
*/
public interface DatabusConsumerConfig {
public static final String queueSizeConfig = "databus.consumer.buffer.size";
public stat... | package com.inmobi.messaging.consumer.databus;
import com.inmobi.databus.FSCheckpointProvider;
/**
* Configuration properties and their default values for {@link DatabusConsumer}
*/
public interface DatabusConsumerConfig {
public static final String queueSizeConfig = "databus.consumer.buffer.size";
public stat... | Fix typo in Config name | Fix typo in Config name
| Java | apache-2.0 | rajubairishetti/pintail,InMobi/pintail,rajubairishetti/pintail,sreedishps/pintail,sreedishps/pintail,InMobi/pintail |
c880d77ebc1efa7bb42b40fe580a77386d3ecb96 | src/main/java/org/mybatis/spring/SqlSessionHolder.java | src/main/java/org/mybatis/spring/SqlSessionHolder.java | /*
* Copyright 2010 The myBatis Team
*
* 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... | /*
* Copyright 2010 The myBatis Team
*
* 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... | Replace 'assert session != null' with Assert.notnull(Object, String) | Replace 'assert session != null' with Assert.notnull(Object, String)
| Java | apache-2.0 | lanyonm/mybatis-spring |
8f99febbba5aade6867e46cb2ba8ff3b5bea59a2 | app/src/main/java/org/wikipedia/navtab/NavTabFragmentPagerAdapter.java | app/src/main/java/org/wikipedia/navtab/NavTabFragmentPagerAdapter.java | package org.wikipedia.navtab;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.view.ViewGroup;
public class NavTabFragmentPagerAdapter extends FragmentStatePagerAda... | package org.wikipedia.navtab;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.view.ViewGroup;
public class NavTabFragmentPagerAdapter extends FragmentPagerAdapter {
... | Change NavTab pager back to FragmentPagerAdapter. | Change NavTab pager back to FragmentPagerAdapter.
When using a FragmentStatePagerAdapter, the action of swiping between our
Tabs feels noticeably less snappy, since the fragment gets recreated every
time the user swipes to it.
In this particular case, I think that proper memory management must give
way to snappiness.... | Java | apache-2.0 | dbrant/apps-android-wikipedia,SAGROUP2/apps-android-wikipedia,anirudh24seven/apps-android-wikipedia,anirudh24seven/apps-android-wikipedia,SAGROUP2/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,SAGROUP2/apps-android-wikipedia,SAGROUP2/apps-android-wik... |
51a0a7d7aa479dd6d18dfc15fb23f0186bc0c705 | src/test/java/au/gov/ga/geodesy/interfaces/rest/RestTest.java | src/test/java/au/gov/ga/geodesy/interfaces/rest/RestTest.java | package au.gov.ga.geodesy.interfaces.rest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests;
import org.springframework.test.context.web.AnnotationCon... | package au.gov.ga.geodesy.interfaces.rest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests;
import org.springframework.test.context.web.AnnotationCon... | Use geodesyTransactionManager in all rest tests. | Use geodesyTransactionManager in all rest tests.
| Java | bsd-3-clause | lbodor/geodesy-domain-model,lbodor/geodesy-domain-model,GeoscienceAustralia/geodesy-domain-model,GeoscienceAustralia/Geodesy-Web-Services,GeoscienceAustralia/geodesy-domain-model,GeoscienceAustralia/Geodesy-Web-Services,GeoscienceAustralia/Geodesy-Web-Services,GeoscienceAustralia/Geodesy-Web-Services |
30bec26ba6e674e5d66b6d02f9f243edd1bc2a01 | src/main/java/rewbot/minecraft/tutorial/crafting/MmaRecipes.java | src/main/java/rewbot/minecraft/tutorial/crafting/MmaRecipes.java | package rewbot.minecraft.tutorial.crafting;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.registry.GameRegistry;
import rewbot.minecraft.tutorial.blocks.MmaBlocks;
import rewbot.minecraft.tutorial.items.MmaItems;
/**
* Created by ashepherd on 5/22/2016.
*/
public class MmaRecip... | package rewbot.minecraft.tutorial.crafting;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.registry.GameRegistry;
import rewbot.minecraft.tutorial.blocks.MmaBlocks;
import rewbot.minecraft.tutorial.items.MmaItems;
/**
* Created by ashepherd on 5/22... | Add recipes for Laconian items | Add recipes for Laconian items
*Diamond to 64 laconian ore
*Laconian sword
| Java | lgpl-2.1 | rewbotV86/minecraft-modding-adventure |
44421b0a9ba58c3383498a8faa9fffb7b6c02f19 | implementation/scipamato/scipamato-public-web/src/test/java/ch/difty/scipamato/publ/web/paper/browse/SimpleFilterPanelTest.java | implementation/scipamato/scipamato-public-web/src/test/java/ch/difty/scipamato/publ/web/paper/browse/SimpleFilterPanelTest.java | package ch.difty.scipamato.publ.web.paper.browse;
import org.apache.wicket.model.Model;
import ch.difty.scipamato.publ.entity.filter.PublicPaperFilter;
import ch.difty.scipamato.publ.web.common.PanelTest;
public class SimpleFilterPanelTest extends PanelTest<SimpleFilterPanel> {
private static final String PANEL... | package ch.difty.scipamato.publ.web.paper.browse;
import org.apache.wicket.model.Model;
import ch.difty.scipamato.publ.entity.filter.PublicPaperFilter;
import ch.difty.scipamato.publ.web.common.PanelTest;
public class SimpleFilterPanelTest extends PanelTest<SimpleFilterPanel> {
private static final String PANEL... | Remove obsolete call to debugComponentTrees | Remove obsolete call to debugComponentTrees
| Java | bsd-3-clause | ursjoss/scipamato,ursjoss/scipamato,ursjoss/scipamato,ursjoss/scipamato |
16f78ae6b6a8a6c7c5be493e051ceb5fb2b6c482 | src/edu/usc/glidein/service/db/GlideinDAO.java | src/edu/usc/glidein/service/db/GlideinDAO.java | package edu.usc.glidein.service.db;
import edu.usc.glidein.stubs.types.Glidein;
import edu.usc.glidein.stubs.types.GlideinStatus;
public interface GlideinDAO
{
public int create(Glidein glidein) throws DatabaseException;
public void store(Glidein glidein) throws DatabaseException;
public Glidein load(int glideinId... | package edu.usc.glidein.service.db;
import edu.usc.glidein.stubs.types.Glidein;
import edu.usc.glidein.stubs.types.GlideinStatus;
public interface GlideinDAO
{
public int create(Glidein glidein) throws DatabaseException;
public void store(Glidein glidein) throws DatabaseException;
public Glidein load(int glideinId... | Remove getStatus Add list Modify updateStatus | Remove getStatus
Add list
Modify updateStatus
git-svn-id: bdb5f82b9b83a1400e05d69d262344b821646179@1234 e217846f-e12e-0410-a4e5-89ccaea66ff7
| Java | apache-2.0 | juve/corral,juve/corral,juve/corral |
af1e62ef0a3f0dc1d4a00bbef233bf74bd7b898c | src/java/com/astoev/cave/survey/Constants.java | src/java/com/astoev/cave/survey/Constants.java | package com.astoev.cave.survey;
/**
* Created by IntelliJ IDEA.
* User: astoev
* Date: 1/29/12
* Time: 5:21 PM
* To change this template use File | Settings | File Templates.
*/
public class Constants {
public static final String LOG_TAG_DB = "DB";
public static final String LOG_TAG_UI = "Ca... | package com.astoev.cave.survey;
/**
* Created by IntelliJ IDEA.
* User: astoev
* Date: 1/29/12
* Time: 5:21 PM
* To change this template use File | Settings | File Templates.
*/
public class Constants {
public static final String LOG_TAG_DB = "DB";
public static final String LOG_TAG_UI = "Ca... | Change date format not to include spaces | Change date format not to include spaces
| Java | mit | lz1asl/CaveSurvey,lz1asl/CaveSurvey,lz1asl/CaveSurvey,lz1asl/CaveSurvey |
0c9912b1e2de24104e9b9062c182cfe88cce6e06 | modules/appointments/api/src/test/java/org/motechproject/appointments/api/osgi/AppointmentsApiBundleIT.java | modules/appointments/api/src/test/java/org/motechproject/appointments/api/osgi/AppointmentsApiBundleIT.java | package org.motechproject.appointments.api.osgi;
import org.motechproject.appointments.api.service.AppointmentService;
import org.motechproject.appointments.api.service.contract.CreateVisitRequest;
import org.motechproject.appointments.api.service.contract.VisitResponse;
import org.motechproject.testing.osgi.BaseOsgiI... | package org.motechproject.appointments.api.osgi;
import org.motechproject.appointments.api.service.AppointmentService;
import org.motechproject.appointments.api.service.contract.CreateVisitRequest;
import org.motechproject.appointments.api.service.contract.VisitResponse;
import org.motechproject.testing.osgi.BaseOsgiI... | Remove redundant code from bundle ITs | MOTECH-795: Remove redundant code from bundle ITs
After recent changes to OSGi ITs, some code can be removed.
Change-Id: I632f17113b22fa0de7483cbac1c1566c2d8d436f
| Java | bsd-3-clause | LukSkarDev/modules,1stmateusz/modules,frankhuster/modules,wstrzelczyk/modules,sebbrudzinski/modules,ScottKimball/modules,1stmateusz/modules,smalecki/modules,koshalt/modules,sebbrudzinski/modules,ngraczewski/modules,tstalka/modules,LukSkarDev/modules,ScottKimball/modules,shubhambeehyv/modules,pmuchowski/modules,frankhus... |
cfabd5d5920011863504fece4081f6fc6eb68cf9 | model/src/main/java/org/jboss/pnc/model/BuildStatus.java | model/src/main/java/org/jboss/pnc/model/BuildStatus.java | /**
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual 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 Lice... | /**
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual 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 Lice... | Add comments describing the build status enum | Add comments describing the build status enum
| Java | apache-2.0 | jbartece/pnc,ruhan1/pnc,dans123456/pnc,ruhan1/pnc,alexcreasy/pnc,thauser/pnc,jdcasey/pnc,matedo1/pnc,matejonnet/pnc,matedo1/pnc,project-ncl/pnc,thauser/pnc,jbartece/pnc,jsenko/pnc,jdcasey/pnc,jbartece/pnc,jsenko/pnc,alexcreasy/pnc,thauser/pnc,pkocandr/pnc,thescouser89/pnc,dans123456/pnc,jsenko/pnc,matedo1/pnc,ruhan1/pn... |
a0c125575a4b5d400790e2290d3212799355b498 | test/org/traccar/protocol/JpKorjarProtocolDecoderTest.java | test/org/traccar/protocol/JpKorjarProtocolDecoderTest.java | package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
public class JpKorjarProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
JpKorjarProtocolDecoder decoder = new JpKorjarProtocolDecoder(new JpKorjarProtocol());
ver... | package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
public class JpKorjarProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
JpKorjarProtocolDecoder decoder = new JpKorjarProtocolDecoder(new JpKorjarProtocol());
ver... | Add jpkorjar tests showcasing changing attributes | Add jpkorjar tests showcasing changing attributes | Java | apache-2.0 | ninioe/traccar,tananaev/traccar,joseant/traccar-1,stalien/traccar_test,AnshulJain1985/Roadcast-Tracker,duke2906/traccar,jon-stumpf/traccar,5of9/traccar,tsmgeek/traccar,tsmgeek/traccar,stalien/traccar_test,jon-stumpf/traccar,al3x1s/traccar,jssenyange/traccar,joseant/traccar-1,tananaev/traccar,vipien/traccar,orcoliver/tr... |
5e5e7f6a375e4f6f6cb71d93349196cd81db6148 | test/com/twu/biblioteca/BibliotecaAppTest.java | test/com/twu/biblioteca/BibliotecaAppTest.java | package com.twu.biblioteca;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
public class BibliotecaAppTest {
@Test
public void testWelcomeMessage() {
ByteArrayOutputStream outContent = new ByteArrayOutputStream();... | package com.twu.biblioteca;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.lang.StringBuilder;
import java.util.List;
import java.util.ArrayList;
public class BibliotecaAppTest {
@Test
public void testBibliote... | Test display welcome and book list on startup | Test display welcome and book list on startup
| Java | apache-2.0 | raingxm/twu-biblioteca-emilysiow |
212df9ba53b0d95c84ad0dde946c7e5bba56410d | src/main/java/net/vexelon/currencybg/srv/reports/TelegramReporter.java | src/main/java/net/vexelon/currencybg/srv/reports/TelegramReporter.java | package net.vexelon.currencybg.srv.reports;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.pengrad.telegrambot.Callback;
import com.pengrad.telegrambot.TelegramBot;
import com.pengrad.telegrambot.TelegramBotAdapter;
import com.pengrad.telegrambot.request.SendDocument;... | package net.vexelon.currencybg.srv.reports;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.pengrad.telegrambot.Callback;
import com.pengrad.telegrambot.TelegramBot;
import com.pengrad.telegrambot.TelegramBotAdapter;
import com.pengrad.telegrambot.request.SendDocument;... | Send Telegram msg only if channel and bot properties are set | Send Telegram msg only if channel and bot properties are set
| Java | agpl-3.0 | vexelon-dot-net/currencybg.server |
2809757b8a8f245d9e5784702f75ac97ba7ccae1 | goci-data-services/goci-data-validation-services/src/main/java/uk/ac/ebi/spot/goci/model/GeneLookupJson.java | goci-data-services/goci-data-validation-services/src/main/java/uk/ac/ebi/spot/goci/model/GeneLookupJson.java | package uk.ac.ebi.spot.goci.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* Created by emma on 22/04/2016.
*
* @author emma
* <p>
* Model to process response from: http://rest.ensembl.org/lookup/symbol/homo_sapiens/SFRP1?content-type=application/json
*/
@JsonIgnoreProp... | package uk.ac.ebi.spot.goci.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* Created by emma on 22/04/2016.
*
* @author emma
* <p>
* Model to process response from: http://rest.ensembl.org/lookup/symbol/homo_sapiens/SFRP1?content-type=application/json
*/
@JsonIgnoreProp... | Add attribute to capture seq region name | Add attribute to capture seq region name
| Java | apache-2.0 | EBISPOT/goci,EBISPOT/goci,EBISPOT/goci,EBISPOT/goci,EBISPOT/goci,EBISPOT/goci |
a24753553f2fa3e79995dfe92a471222b093aae1 | src/main/java/org/rundeck/client/api/model/DateInfo.java | src/main/java/org/rundeck/client/api/model/DateInfo.java | package org.rundeck.client.api.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
/**
* Created by greg on 5/20/16.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class Date... | package org.rundeck.client.api.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.rundeck.client.util.Env;
import org.rundeck.client.util.Format;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
/**
* Created by greg on ... | Format date info using default format or env var DATE_FORMAT | Format date info using default format or env var DATE_FORMAT
| Java | apache-2.0 | rundeck/rundeck-cli,rundeck/rundeck-cli |
62f1dc7283d74ae66a5c1132df2a1c10252ddfa7 | src/com/samsarin/gatu/primitive/AbstractChromosome.java | src/com/samsarin/gatu/primitive/AbstractChromosome.java | /*
* Copyright (c) 2008 Chris Pettitt
*/
package com.samsarin.gatu.primitive;
import java.util.BitSet;
/**
* @author cpettitt@samsarin.com
*/
/* package private */ abstract class AbstractChromosome implements Chromosome {
/**
* Returns the chromosome as a {@link BitSet}.
* @return the BitSet v... | /*
* Copyright (c) 2008 Chris Pettitt
*/
package com.samsarin.gatu.primitive;
import java.util.BitSet;
/**
* @author cpettitt@samsarin.com
*/
/* package private */ abstract class AbstractChromosome implements Chromosome {
/**
* Returns the chromosome as a {@link BitSet}.
* @return the BitSet v... | Change Chromosome toString() to show actual bit string | Change Chromosome toString() to show actual bit string
| Java | mit | cpettitt/gatu |
aabaef7da4cefc60d701ff1fe7b737d9efe12f38 | datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/VirtualMachineMemoryTest.java | datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/VirtualMachineMemoryTest.java | /*
* 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 ... | /*
* 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 ... | Disable test printing to stdOut | Disable test printing to stdOut | Java | apache-2.0 | DataSketches/memory,DataSketches/memory |
06290b74d811418dfc7e7bac75050c4b6a97d31b | src/main/java/org/baswell/routes/RoutesServlet.java | src/main/java/org/baswell/routes/RoutesServlet.java | package org.baswell.routes;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class RoutesServlet extends HttpServlet
{
priv... | package org.baswell.routes;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class RoutesServlet extends HttpServlet
{
private static RoutesEntry routesEntry =... | Make RoutesEntry static incase servlet is instianted for each request. | Make RoutesEntry static incase servlet is instianted for each request.
| Java | apache-2.0 | baswerc/routes,baswerc/routes |
ac8b4e24c7815bac943050205acacb05bc66481a | bottomsheetpickers/src/test/java/com/philliphsu/bottomsheetpickers/view/numberpad/NumberPadTimePickerDialogPresenterTest.java | bottomsheetpickers/src/test/java/com/philliphsu/bottomsheetpickers/view/numberpad/NumberPadTimePickerDialogPresenterTest.java | package com.philliphsu.bottomsheetpickers.view.numberpad;
import com.philliphsu.bottomsheetpickers.view.LocaleModel;
public class NumberPadTimePickerDialogPresenterTest extends NumberPadTimePickerPresenterTest {
@Override
Class<? extends INumberPadTimePicker.DialogView> getViewClass() {
return INumber... | package com.philliphsu.bottomsheetpickers.view.numberpad;
import com.philliphsu.bottomsheetpickers.view.LocaleModel;
public class NumberPadTimePickerDialogPresenterTest extends NumberPadTimePickerPresenterTest {
@Override
INumberPadTimePicker.DialogView getView(int mode) {
return (INumberPadTimePicke... | Change return type of getView() and getPresenter() for Dialogs. | Change return type of getView() and getPresenter() for Dialogs.
| Java | apache-2.0 | philliphsu/BottomSheetPickers |
de0eae8d04ff54853d13cbee2df3c1244b5046be | app/src/main/java/com/veyndan/redditclient/SubredditFilter.java | app/src/main/java/com/veyndan/redditclient/SubredditFilter.java | package com.veyndan.redditclient;
import com.veyndan.redditclient.api.reddit.network.QueryBuilder;
import com.veyndan.redditclient.api.reddit.network.Sort;
public class SubredditFilter {
final private String subreddit;
final private Sort sort;
final private QueryBuilder query;
public SubredditFilter... | package com.veyndan.redditclient;
import com.veyndan.redditclient.api.reddit.network.QueryBuilder;
import com.veyndan.redditclient.api.reddit.network.Sort;
public class SubredditFilter {
private final String subreddit;
private final Sort sort;
private final QueryBuilder query;
public SubredditFilter... | Swap order of private and final keywords | Swap order of private and final keywords
| Java | mit | veyndan/paper-for-reddit,veyndan/reddit-client,veyndan/paper-for-reddit |
733576f402b3c3306a3fbb31a014b21c8dafba38 | src/main/java/com/github/aureliano/achmed/os/service/RedHatService.java | src/main/java/com/github/aureliano/achmed/os/service/RedHatService.java | package com.github.aureliano.achmed.os.service;
import com.github.aureliano.achmed.command.CommandResponse;
public class RedHatService extends LinuxService {
public RedHatService() {
super();
}
@Override
public CommandResponse enableBootstrap() {
throw new UnsupportedOperationException("Not implemented yet.... | package com.github.aureliano.achmed.os.service;
import org.apache.log4j.Logger;
import com.github.aureliano.achmed.command.CommandFacade;
import com.github.aureliano.achmed.command.CommandResponse;
public class RedHatService extends LinuxService {
private static final Logger logger = Logger.getLogger(RedHatService... | Implement method to check whether service is running. | Implement method to check whether service is running.
| Java | mit | aureliano/achmed |
c56d11fdf99dc77bb29c8ca9c0e798cba70edce1 | tests/src/main/java/com/spireofbabel/raknet4j/AllTests.java | tests/src/main/java/com/spireofbabel/raknet4j/AllTests.java | package com.spireofbabel.raknet4j;
import com.spireofbabel.raknet4j.ReplicaManager3.ReplicaManager3Test;
import junit.framework.Test;
import junit.framework.TestSuite;
public class AllTests extends TestSuite {
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTestSuite(Con... | package com.spireofbabel.raknet4j;
import com.spireofbabel.raknet4j.ReplicaManager3.ReplicaManager3Test;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({
ConsoleServerTest.class,
RakPeerInterfaceTest.class,
SocketDescriptorTest.class,... | Change to how test suite is built. | Change to how test suite is built.
| Java | bsd-2-clause | hebenon/raknet4j,hebenon/raknet4j,hebenon/raknet4j |
8c38a06b499214290062b7690b3dea1b3c70c17b | cas-server-core-configuration/src/main/java/org/apereo/cas/configuration/model/core/web/security/AdminPagesSecurityProperties.java | cas-server-core-configuration/src/main/java/org/apereo/cas/configuration/model/core/web/security/AdminPagesSecurityProperties.java | package org.apereo.cas.configuration.model.core.web.security;
import org.springframework.core.io.Resource;
/**
* This is {@link AdminPagesSecurityProperties}.
*
* @author Misagh Moayyed
* @since 5.0.0
*/
public class AdminPagesSecurityProperties {
private String ip = "127\\.0\\.0\\.1";
private String a... | package org.apereo.cas.configuration.model.core.web.security;
import org.springframework.core.io.Resource;
/**
* This is {@link AdminPagesSecurityProperties}.
*
* @author Misagh Moayyed
* @since 5.0.0
*/
public class AdminPagesSecurityProperties {
private String ip = "127\\.0\\.0\\.1|0:0:0:0:0:0:0:1";
... | Support ipv6 for status endpoint security | Support ipv6 for status endpoint security
| Java | apache-2.0 | zhoffice/cas,zhoffice/cas,zhoffice/cas,zhoffice/cas |
b38981869757ba3de524b2723408fc9f8fc084cd | core/test/java/com/codingchili/core/protocol/ClusterNodeIT.java | core/test/java/com/codingchili/core/protocol/ClusterNodeIT.java | package com.codingchili.core.protocol;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.ext.unit.Async;
import io.vertx.ext.unit.TestContext;
import io.vertx.ext.unit.junit.VertxUnitRunner;
import org.junit.After;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.Run... | package com.codingchili.core.protocol;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.ext.unit.Async;
import io.vertx.ext.unit.TestContext;
import io.vertx.ext.unit.junit.VertxUnitRunner;
import org.junit.After;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.Run... | Disable cluster node Integration tests for travis build. | Disable cluster node Integration tests for travis build.
| Java | mit | codingchili/chili-core |
b89e4597612250df5b5a06917eaaf411ab4311c9 | goci-data-services/goci-data-validation-services/src/main/java/uk/ac/ebi/spot/goci/service/AssociationCheckingService.java | goci-data-services/goci-data-validation-services/src/main/java/uk/ac/ebi/spot/goci/service/AssociationCheckingService.java | package uk.ac.ebi.spot.goci.service;
import uk.ac.ebi.spot.goci.model.Association;
import uk.ac.ebi.spot.goci.model.ValidationError;
import java.util.Collection;
/**
* Created by emma on 01/04/2016.
*
* @author emma
* <p>
* Interface that defines method(s) to run error ckecking of an association... | package uk.ac.ebi.spot.goci.service;
import uk.ac.ebi.spot.goci.model.Association;
import uk.ac.ebi.spot.goci.model.ValidationError;
import java.util.Collection;
/**
* Created by emma on 01/04/2016.
*
* @author emma
* <p>
* Interface that defines method(s) to run error ckecking of an association... | Update determine association type method | Update determine association type method
| Java | apache-2.0 | EBISPOT/goci,EBISPOT/goci,EBISPOT/goci,EBISPOT/goci,EBISPOT/goci,EBISPOT/goci |
be136bc5697c2f1979a35e8c8a2991bbf0ed13c4 | src/test/java/io/github/pyranja/hamcrest/jaxrs/MockResponse.java | src/test/java/io/github/pyranja/hamcrest/jaxrs/MockResponse.java | package io.github.pyranja.hamcrest.jaxrs;
import org.mockito.Mockito;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import static org.mockito.Mockito.when;
/**
* Factory methods for jaxrs.Response mocks
*/
public final class MockResponse {
private MockResponse() { /* no instances */ }
... | package io.github.pyranja.hamcrest.jaxrs;
import org.mockito.Mockito;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import static org.mockito.Mockito.when;
/**
* Factory methods for jaxrs.Response mocks
*/
public final class MockResponse {
private MockResponse() { /* no instances */ }
... | Add factory for mock responses with entity | Add factory for mock responses with entity
| Java | apache-2.0 | pyranja/jaxrs-test-tools |
ef93f8adae822017b5ee9ec810148240a9a509b5 | edgegrid-signer-apache-http-client/src/main/java/com/akamai/edgegrid/signer/apachehttpclient/ApacheHttpClientEdgeGridRoutePlanner.java | edgegrid-signer-apache-http-client/src/main/java/com/akamai/edgegrid/signer/apachehttpclient/ApacheHttpClientEdgeGridRoutePlanner.java | package com.akamai.edgegrid.signer.apachehttpclient;
import com.akamai.edgegrid.signer.ClientCredential;
import com.akamai.edgegrid.signer.ClientCredentialProvider;
import com.akamai.edgegrid.signer.exceptions.NoMatchingCredentialException;
import org.apache.http.HttpException;
import org.apache.http.HttpHost;
impo... | package com.akamai.edgegrid.signer.apachehttpclient;
import com.akamai.edgegrid.signer.ClientCredential;
import com.akamai.edgegrid.signer.ClientCredentialProvider;
import com.akamai.edgegrid.signer.exceptions.NoMatchingCredentialException;
import org.apache.http.HttpException;
import org.apache.http.HttpHost;
impo... | Support older apache httpclient libs | Support older apache httpclient libs
| Java | apache-2.0 | akamai-open/edgegrid-auth-java,akamai-open/AkamaiOPEN-edgegrid-java |
a421e51805ebfe70625ac00034758747ecd0ad55 | common/net/minecraftforge/event/entity/player/PlayerEvent.java | common/net/minecraftforge/event/entity/player/PlayerEvent.java | package net.minecraftforge.event.entity.player;
import net.minecraft.src.Block;
import net.minecraft.src.Entity;
import net.minecraft.src.EntityPlayer;
import net.minecraftforge.event.Cancelable;
import net.minecraftforge.event.entity.living.LivingEvent;
public class PlayerEvent extends LivingEvent
{
public final... | package net.minecraftforge.event.entity.player;
import net.minecraft.src.Block;
import net.minecraft.src.Entity;
import net.minecraft.src.EntityPlayer;
import net.minecraftforge.event.Cancelable;
import net.minecraftforge.event.entity.living.LivingEvent;
public class PlayerEvent extends LivingEvent
{
public final... | Fix bug in last commit that caused block to not break. | Fix bug in last commit that caused block to not break.
| Java | lgpl-2.1 | Zaggy1024/MinecraftForge,mickkay/MinecraftForge,bonii-xx/MinecraftForge,shadekiller666/MinecraftForge,Theerapak/MinecraftForge,brubo1/MinecraftForge,Vorquel/MinecraftForge,ThiagoGarciaAlves/MinecraftForge,dmf444/MinecraftForge,blay09/MinecraftForge,simon816/MinecraftForge,CrafterKina/MinecraftForge,Mathe172/MinecraftFo... |
ff0b6270e68130d8fce9ee251c22df63b022a840 | common/src/main/java/com/gentics/mesh/util/SearchWaitUtil.java | common/src/main/java/com/gentics/mesh/util/SearchWaitUtil.java | package com.gentics.mesh.util;
import com.gentics.mesh.core.rest.MeshEvent;
import com.gentics.mesh.etc.config.MeshOptions;
import com.gentics.mesh.event.MeshEventSender;
import com.gentics.mesh.parameter.ParameterProviderContext;
import io.reactivex.Completable;
import javax.inject.Inject;
import javax.inject.Single... | package com.gentics.mesh.util;
import com.gentics.mesh.core.rest.MeshEvent;
import com.gentics.mesh.etc.config.MeshOptions;
import com.gentics.mesh.etc.config.search.ElasticSearchOptions;
import com.gentics.mesh.event.MeshEventSender;
import com.gentics.mesh.parameter.ParameterProviderContext;
import io.reactivex.Comp... | Fix GraphQl if search is not configured | Fix GraphQl if search is not configured
| Java | apache-2.0 | gentics/mesh,gentics/mesh,gentics/mesh,gentics/mesh |
fd3cfa0e7103825791413aa14324c4fae91a42c3 | src/edu/wpi/first/wpilibj/templates/commands/ReadSetCamera.java | src/edu/wpi/first/wpilibj/templates/commands/ReadSetCamera.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.templates.commands;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import edu.wpi.first.wpilibj.camera.AxisCamera;
/**
*
* @author profplump
*/
public class ReadSetCamera extends ... | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.templates.commands;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import edu.wpi.first.wpilibj.camera.AxisCamera;
/**
*
* @author profplump
*/
public class ReadSetCamera extends ... | Exit quickly to avoid side effects | Exit quickly to avoid side effects | Java | bsd-3-clause | FIRST-4030/2013 |
b55fb64e52bde719eb7e85f111eef96e13727194 | ifs-web-service/ifs-application-service/src/main/java/org/innovateuk/ifs/application/overview/viewmodel/ApplicationOverviewRowViewModel.java | ifs-web-service/ifs-application-service/src/main/java/org/innovateuk/ifs/application/overview/viewmodel/ApplicationOverviewRowViewModel.java | package org.innovateuk.ifs.application.overview.viewmodel;
import org.innovateuk.ifs.application.viewmodel.AssignButtonsViewModel;
import java.util.Optional;
/**
* View model for each row with a link in the application overview page.
*/
public class ApplicationOverviewRowViewModel {
private final String title... | package org.innovateuk.ifs.application.overview.viewmodel;
import org.innovateuk.ifs.application.viewmodel.AssignButtonsViewModel;
import java.util.Optional;
/**
* View model for each row with a link in the application overview page.
*/
public class ApplicationOverviewRowViewModel {
private final String title... | Hide button for single applicant | IFS-5827: Hide button for single applicant
| Java | mit | InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service |
52f69f77bc3a99f64f32d2e5a5b031d6ef18cba4 | java/ql/test/utils/model-generator/typebasedflow/p/Stream.java | java/ql/test/utils/model-generator/typebasedflow/p/Stream.java | package p;
import java.util.function.*;
import java.util.Iterator;
import java.util.stream.Collector;
public class Stream<T> {
public Iterator<T> iterator() {
return null;
}
// public boolean allMatch(Predicate<? super T> predicate) {
// throw null;
// }
// public <R> R collect(Supp... | package p;
import java.util.function.*;
import java.util.Iterator;
import java.util.stream.Collector;
public class Stream<T> {
public Iterator<T> iterator() {
return null;
}
public boolean allMatch(Predicate<? super T> predicate) {
throw null;
}
public <R> R collect(Supplier<R> ... | Add stream example methods using wildcards. | Java: Add stream example methods using wildcards.
| Java | mit | github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql |
d079630eebef2cd7b34e4b08fb8394dfb0ef15a6 | subprojects/playpens/java-playpen/web/grizzly-framework-playpen/src/main/java/com/fenixinfotech/grizzly/framework/playpen/GrizzlyFrameworkServer.java | subprojects/playpens/java-playpen/web/grizzly-framework-playpen/src/main/java/com/fenixinfotech/grizzly/framework/playpen/GrizzlyFrameworkServer.java | package com.fenixinfotech.grizzly.framework.playpen;
import com.fenixinfotech.web.common.FrameworkServerBase;
import org.glassfish.grizzly.http.server.HttpHandler;
import org.glassfish.grizzly.http.server.HttpServer;
import org.glassfish.grizzly.http.server.Request;
import org.glassfish.grizzly.http.server.Response;
i... | package com.fenixinfotech.grizzly.framework.playpen;
import com.fenixinfotech.web.common.FrameworkServerBase;
import org.glassfish.grizzly.http.server.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Loca... | Add ability to override the port grizzly server starts on. | Add ability to override the port grizzly server starts on.
| Java | mit | stevocurtis/public-development,stevocurtis/public-development,stevocurtis/public-development,stevocurtis/public-development,stevocurtis/public-development,stevocurtis/public-development |
32bce96bd0666d0bb7c28f06e63a7968297d4810 | protocore/src/main/java/com/satispay/protocore/dh/DH.java | protocore/src/main/java/com/satispay/protocore/dh/DH.java | package com.satispay.protocore.dh;
import com.satispay.protocore.dh.beans.*;
import retrofit2.http.*;
import rx.Observable;
/**
* This interface describes the API exposed for the DH network requests.
*/
public interface DH {
/**
* This method performs the first step of the DH process
*
* @param e... | package com.satispay.protocore.dh;
import com.satispay.protocore.dh.beans.*;
import retrofit2.http.*;
import rx.Observable;
/**
* This interface describes the API exposed for the DH network requests.
*/
public interface DH {
/**
* This method performs the first step of the DH process
*
* @param e... | Add "name" for filter shop tokens | Add "name" for filter shop tokens
| Java | apache-2.0 | satispay/in-store-api-java-sdk,satispay/in-store-api-java-sdk |
7c193535464d0607e26834ebbb40bc0700214716 | extensions/container-image/container-image-openshift/deployment/src/main/java/io/quarkus/container/image/openshift/deployment/ApplyDockerfileToBuildConfigDecorator.java | extensions/container-image/container-image-openshift/deployment/src/main/java/io/quarkus/container/image/openshift/deployment/ApplyDockerfileToBuildConfigDecorator.java |
package io.quarkus.container.image.openshift.deployment;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Path;
import io.dekorate.kubernetes.decorator.NamedResourceDecorator;
import io.fabric8.kubernetes.api.model.ObjectMeta;
import io.fabric8.openshift.ap... |
package io.quarkus.container.image.openshift.deployment;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Path;
import io.dekorate.kubernetes.decorator.NamedResourceDecorator;
import io.fabric8.kubernetes.api.model.ObjectMeta;
import io.fabric8.openshift.ap... | Add a more informative error message when Dockerfile is unavailable during s2i | Add a more informative error message when Dockerfile is unavailable during s2i
| Java | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus |
a3503a1b569977dc6f8f136dcdcdabe49b8249c1 | src/main/java/org/apache/commons/collections4/multimap/package-info.java | src/main/java/org/apache/commons/collections4/multimap/package-info.java | /*
* 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 ... | /*
* 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 ... | Add new concrete MultiValuedMap implementation. | Add new concrete MultiValuedMap implementation.
git-svn-id: 53f0c1087cb9b05f99ff63ab1f4d1687a227fef1@1633229 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | gonmarques/commons-collections,jankill/commons-collections,gonmarques/commons-collections,sandrineBeauche/commons-collections,apache/commons-collections,apache/commons-collections,jankill/commons-collections,MuShiiii/commons-collections,MuShiiii/commons-collections,sandrineBeauche/commons-collections,sandrineBeauche/co... |
f8da639283959e59424aad3f8b69b2679ae2be63 | vespajlib/src/main/java/com/yahoo/security/SignatureAlgorithm.java | vespajlib/src/main/java/com/yahoo/security/SignatureAlgorithm.java | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.security;
/**
* @author bjorncs
*/
public enum SignatureAlgorithm {
SHA256_WITH_RSA("SHA256withRSA"),
SHA512_WITH_RSA("SHA512withRSA"),
SHA512_WITH_ECDSA("SHA512withECD... | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.security;
/**
* @author bjorncs
*/
public enum SignatureAlgorithm {
SHA256_WITH_RSA("SHA256withRSA"),
SHA512_WITH_RSA("SHA512withRSA"),
SHA256_WITH_ECDSA("SHA256withECD... | Add 'SHA256withECDSA' as signature algorithm | Add 'SHA256withECDSA' as signature algorithm
| Java | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
e7cc9a045b72673583b9a813d83f5e7a280979cf | trunk/MutabilityDetector/trunk/MutabilityDetector/src/main/benchmarks/org/mutabilitydetector/benchmarks/settermethod/ImmutableButSetsPrivateFieldOfInstanceOfSelf.java | trunk/MutabilityDetector/trunk/MutabilityDetector/src/main/benchmarks/org/mutabilitydetector/benchmarks/settermethod/ImmutableButSetsPrivateFieldOfInstanceOfSelf.java | /*
* Mutability Detector
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Further licensing information for this project can be found in
* license/LICENSE.txt
*/
package org.mutabilitydetector.benchmarks.settermethod;
... | /*
* Mutability Detector
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Further licensing information for this project can be found in
* license/LICENSE.txt
*/
package org.mutabilitydetector.benchmarks.settermethod;
... | Update benchmark for setting fields of this type. | Update benchmark for setting fields of this type.
git-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@269 c7a0535c-eda6-11de-83d8-6d5adf01d787
| Java | apache-2.0 | MutabilityDetector/MutabilityDetector,MutabilityDetector/MutabilityDetector |
044818302069fd0f420646916f82e0367a7af6a8 | src/main/java/de/linkvt/bachelor/config/OntologyIriExtractor.java | src/main/java/de/linkvt/bachelor/config/OntologyIriExtractor.java | package de.linkvt.bachelor.config;
import de.linkvt.bachelor.web.GeneratorController;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
/**
* Extracts the ontology IRI from the URL.
*/
@Component
public class OntologyIriExtractor {
public String extractGeneratorIri(St... | package de.linkvt.bachelor.config;
import de.linkvt.bachelor.web.GeneratorController;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
/**
* Extracts the ontology IRI from the URL.
*/
@Component
public class OntologyIriExtractor {
public String extractGeneratorIri(St... | Remove ontology path from request IRI correctly | Remove ontology path from request IRI correctly
| Java | mit | VisualDataWeb/OntoBench,VisualDataWeb/OntoBench,VisualDataWeb/OntoBench |
b52090327aa2413d363dbddbe9ad4328e7b8fe1e | src/net/sf/openrocket/example/ThrustScaler.java | src/net/sf/openrocket/example/ThrustScaler.java | package net.sf.openrocket.example;
import net.sf.openrocket.simulation.SimulationConditions;
import net.sf.openrocket.simulation.exception.SimulationException;
import net.sf.openrocket.simulation.extension.AbstractSimulationExtension;
/**
* The actual simulation extension. A new instance is created for
* each simu... | package net.sf.openrocket.example;
import net.sf.openrocket.simulation.SimulationConditions;
import net.sf.openrocket.simulation.exception.SimulationException;
import net.sf.openrocket.simulation.extension.AbstractSimulationExtension;
/**
* The actual simulation extension. A new instance is created for
* each simu... | Add a description to the extension | Add a description to the extension
| Java | unlicense | plaa/ThrustScaler |
7df403d233a98150ac35875c95aee58972386344 | src/main/java/org/mcphoton/impl/block/PhotonBlockRegistry.java | src/main/java/org/mcphoton/impl/block/PhotonBlockRegistry.java | package org.mcphoton.impl.block;
import com.electronwill.utils.IndexMap;
import java.util.HashMap;
import java.util.Map;
import org.mcphoton.block.BlockRegistry;
import org.mcphoton.block.BlockType;
/**
*
* @author TheElectronWill
*/
public class PhotonBlockRegistry implements BlockRegistry {
private final Index... | package org.mcphoton.impl.block;
import com.electronwill.utils.IndexMap;
import java.util.HashMap;
import java.util.Map;
import org.mcphoton.block.BlockRegistry;
import org.mcphoton.block.BlockType;
/**
*
* @author TheElectronWill
*/
public class PhotonBlockRegistry implements BlockRegistry {
private final Index... | Add a method to get the biggest block id | Add a method to get the biggest block id
Necessary to set the number of bits per block used in the ChunkSection implementation, and in the ChunkData packet. | Java | agpl-3.0 | DJmaxZPL4Y/Photon-Server |
3128b46daadedb619cb80e8e556a4fc3b87e2c54 | src/com/googlecode/totallylazy/xml/XPathLookups.java | src/com/googlecode/totallylazy/xml/XPathLookups.java | package com.googlecode.totallylazy.xml;
import com.googlecode.totallylazy.Callable1;
import com.googlecode.totallylazy.Mapper;
import com.googlecode.totallylazy.Xml;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.dom.Text;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
pub... | package com.googlecode.totallylazy.xml;
import com.googlecode.totallylazy.Callable1;
import com.googlecode.totallylazy.Callers;
import com.googlecode.totallylazy.Mapper;
import com.googlecode.totallylazy.Xml;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.dom.Text;
import java.util.Map;
import j... | Add an accessor for easy access to lookups | Add an accessor for easy access to lookups
| Java | apache-2.0 | bodar/totallylazy,bodar/totallylazy,bodar/totallylazy |
ad577a95d4a917355686645e55bcf989ff901805 | src/main/java/sizebay/catalog/client/model/Modeling.java | src/main/java/sizebay/catalog/client/model/Modeling.java | package sizebay.catalog.client.model;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.*;
@Getter
@Setter
public class Modeling {
private Long id;
private String name;
private Gender gender;
private String gMerchantBrandName;
private String gMerchantAgeGroup;
priv... | package sizebay.catalog.client.model;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.*;
@Getter
@Setter
public class Modeling {
private Long id;
private String name;
private Gender gender;
private String gMerchantBrandName;
private String gMerchantAgeGroup;
priv... | Add attribute observation in measures table | Fix: Add attribute observation in measures table
| Java | apache-2.0 | sizebay/Sizebay-Catalog-API-Client,sizebay/Sizebay-Catalog-API-Client |
89934d31676994770a40c846983f3e93d70bd8fc | src/org/robockets/buttonmanager/buttons/ActionButton.java | src/org/robockets/buttonmanager/buttons/ActionButton.java | package org.robockets.buttonmanager.buttons;
import org.robockets.buttonmanager.Button;
import edu.wpi.first.wpilibj.command.Command;
/**
* The basic press-to-run button
*/
public class ActionButton extends Button {
private boolean killOnRelease = true;
/**
* Class constructor
* @param joystickNumber The j... | package org.robockets.buttonmanager.buttons;
import org.robockets.buttonmanager.Button;
import edu.wpi.first.wpilibj.command.Command;
/**
* The basic press-to-run button
*/
public class ActionButton extends Button {
private boolean killOnRelease = true;
/**
* Class constructor
* @param joystickNumber The j... | Fix problem with action buttons without killOnRelease not starting again | Fix problem with action buttons without killOnRelease not starting again
| Java | mit | Team4761/ButtonManager |
3c720b09669cee01a2801257e26656b04b919e69 | java/client/test/com/thoughtworks/selenium/thirdparty/YahooHttpsTest.java | java/client/test/com/thoughtworks/selenium/thirdparty/YahooHttpsTest.java | /*
Copyright 2012 Selenium committers
Copyright 2012 Software Freedom Conservancy
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... | /*
Copyright 2012 Selenium committers
Copyright 2012 Software Freedom Conservancy
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... | Convert the https test that we never run to use junit. | SimonStewart: Convert the https test that we never run to use junit.
git-svn-id: aa1aa1384423cb28c2b1e29129bb3a91de1d9196@17194 07704840-8298-11de-bf8c-fd130f914ac9
| Java | apache-2.0 | jmt4/Selenium2,jmt4/Selenium2,yumingjuan/selenium,yumingjuan/selenium,yumingjuan/selenium,jmt4/Selenium2,jmt4/Selenium2,jmt4/Selenium2,yumingjuan/selenium,jmt4/Selenium2,yumingjuan/selenium,jmt4/Selenium2,jmt4/Selenium2,yumingjuan/selenium,yumingjuan/selenium,yumingjuan/selenium,yumingjuan/selenium,jmt4/Selenium2 |
690b1b84af5909f161087b8f8861f9bbe5e10180 | src/test/resources/type_error/ArrayLengthExpression.java | src/test/resources/type_error/ArrayLengthExpression.java | class ArrayLengthExpressionTest {
public static void main(String[] args) {
int i;
int[] ia;
long l;
long[] la;
boolean b;
A cA;
B cB;
i = i.length; // LENGTH_ON_NON_ARRAY
i = l.length; // LENGTH_ON_NON_ARRAY
i = b.length; // LENGTH_... | class ArrayLengthExpressionTest {
public static void main(String[] args) {
int i;
int[] ia;
long l;
long[] la;
boolean b;
A cA;
B cB;
i = i.length; // LENGTH_ON_NON_ARRAY
//i = ia.length; // OK!
i = l.length; // LENGTH_ON_NON_ARRAY
... | Add comments about valid length usages. | Add comments about valid length usages.
| Java | mit | liuxinglanyue/mjc,liuxinglanyue/mjc,estan/mjc,liuxinglanyue/mjc,estan/mjc,estan/mjc |
ed942d92aae13b3fdf24bf90ac62cbdeca093de4 | src/main/java/com/nesscomputing/httpserver/selftest/SelfTestResource.java | src/main/java/com/nesscomputing/httpserver/selftest/SelfTestResource.java | /**
* Copyright (C) 2012 Ness Computing, 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 ... | /**
* Copyright (C) 2012 Ness Computing, 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 ... | Change response from "true" to 204 no content | Change response from "true" to 204 no content
| Java | apache-2.0 | NessComputing/components-ness-httpserver |
ff1c18b1128f1f8a9d99a4ecb8d7cbb0e2d68edc | src/main/java/io/github/jacobmarshall/meloooncensor/lang/Translation.java | src/main/java/io/github/jacobmarshall/meloooncensor/lang/Translation.java | package io.github.jacobmarshall.meloooncensor.lang;
import io.github.jacobmarshall.meloooncensor.config.Configuration;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class Translation {
public static final Translation DEFAULT_TRANSLATION = new Translation(Configurati... | package io.github.jacobmarshall.meloooncensor.lang;
import io.github.jacobmarshall.meloooncensor.config.Configuration;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class Translation {
public static final Translation DEFAULT_TRANSLATION = new Translation(Configurati... | Fix encoding issue with extended character set | Fix encoding issue with extended character set
| Java | mit | Behoston/meloooncensor,jacobmarshall/meloooncensor |
cfccf6475d107358da996d3d5865466c51fce9b0 | Android/Shopr/src/main/java/com/uwetrottmann/shopr/ui/ResultsActivity.java | Android/Shopr/src/main/java/com/uwetrottmann/shopr/ui/ResultsActivity.java |
package com.uwetrottmann.shopr.ui;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import com.uwetrottmann.shopr.R;
public class ResultsActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... |
package com.uwetrottmann.shopr.ui;
import android.app.Activity;
import android.database.Cursor;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;
import com.uwetrottmann.shopr.R;
import com.uwetrottmann.shopr.provider.ShoprContract.Stats;
/**
* Displays the given stats and allows ... | Load data when displaying results. | Load data when displaying results.
| Java | apache-2.0 | UweTrottmann/Shopr,adiguzel/Shopr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.