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 |
|---|---|---|---|---|---|---|---|---|---|
036603a2885aa9db2ad0f863c9a45a8219091237 | portfolio/src/main/java/com/google/sps/data/BlogConstants.java | portfolio/src/main/java/com/google/sps/data/BlogConstants.java | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | Add new constants that are used throughout servlets. | Add new constants that are used throughout servlets.
| Java | apache-2.0 | googleinterns/step92-2020,googleinterns/step92-2020,googleinterns/step92-2020 |
4716ee58e29f8fffaae7e7dc6131784212a5d907 | test/com/bjorn/GameTest.java | test/com/bjorn/GameTest.java | package com.bjorn;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import javax.xml.bind.annotation.XmlAttribute;
import java.util.HashMap;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.times;
import static o... | package com.bjorn;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
public class GameTest {
UI mockUI;
Board mockBoard;
Game newGame;
@Before
... | Remove unused imports in game tests | Remove unused imports in game tests
| Java | mit | Bjornkjohnson/AgileBattleShip |
93d5ad6ba0714ca67865a11c1e20a93dd5aaa7a9 | motech-pillreminder-api/src/main/java/org/motechproject/server/pillreminder/util/Util.java | motech-pillreminder-api/src/main/java/org/motechproject/server/pillreminder/util/Util.java | package org.motechproject.server.pillreminder.util;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class Util {
public static DateTime currentDateTime() {
return new DateTime(DateTimeZone.UTC);... | package org.motechproject.server.pillreminder.util;
import org.joda.time.DateTime;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class Util {
public static DateTime currentDateTime() {
return new DateTime();
}
public static Date newDate(int year, in... | Remove UTC from time util<Manohar/Shruthi> | Remove UTC from time util<Manohar/Shruthi>
| Java | bsd-3-clause | koshalt/modules,wstrzelczyk/modules,wstrzelczyk/modules,mkwiatkowskisoldevelo/modules,smalecki/modules,shubhambeehyv/modules,LukSkarDev/modules,atish160384/modules,koshalt/modules,pmuchowski/modules,shubhambeehyv/modules,justin-hayes/modules,frankhuster/modules,martokarski/modules,frankhuster/modules,atish160384/module... |
83eaaa097803c9f0387ab768ce9051087390ca93 | datavault-common/src/main/java/org/datavaultplatform/common/metadata/impl/MockProvider.java | datavault-common/src/main/java/org/datavaultplatform/common/metadata/impl/MockProvider.java | package org.datavaultplatform.common.metadata.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.datavaultplatform.common.model.Dataset;
import org.datavaultplatform.common.metadata.Provider;
// This mock metadata provider is for testing purposes only
... | package org.datavaultplatform.common.metadata.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.datavaultplatform.common.model.Dataset;
import org.datavaultplatform.common.metadata.Provider;
// This mock metadata provider is for testing purposes only
... | Fix Mocked Datsetws missing the CrisId field | Fix Mocked Datsetws missing the CrisId field
| Java | mit | DataVault/datavault,DataVault/datavault,DataVault/datavault,DataVault/datavault,DataVault/datavault |
a6861c4522d152f701c21bf99f8d9deda8df642e | java-library-tester/src/test/java/study/hard/javalib/file/FileTest.java | java-library-tester/src/test/java/study/hard/javalib/file/FileTest.java | package study.hard.javalib.file;
import java.io.File;
import java.io.IOException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class FileTest {
FileHandler fileHandler;
File tempFile;
@Before
public void setUp() {
fileHandler = new FileHandler();
}
@Test
public void test... | package study.hard.javalib.file;
import java.io.File;
import java.io.IOException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class FileTest {
FileHandler fileHandler;
File tempFile;
@Before
public void setUp() {
fileHandler = new FileHandler();
}
@Test
public void test... | Add a test case to get temp directory. | Add a test case to get temp directory. | Java | mit | iandmyhand/java-library-tester |
0870f783ba7145b43aead96df849d88d38685a47 | src/main/java/net/onrc/onos/core/newintent/IntentCompilationResult.java | src/main/java/net/onrc/onos/core/newintent/IntentCompilationResult.java | package net.onrc.onos.core.newintent;
import com.google.common.collect.ImmutableList;
import net.onrc.onos.api.newintent.InstallableIntent;
import java.util.ArrayList;
import java.util.List;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotN... | package net.onrc.onos.core.newintent;
import com.google.common.collect.ImmutableList;
import net.onrc.onos.api.newintent.InstallableIntent;
import java.util.ArrayList;
import java.util.List;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotN... | Revise message explaining the cause of exception | Revise message explaining the cause of exception
Change-Id: Ic6c6048f3e04d99c55b8de08ec4be1370139a549
| Java | apache-2.0 | opennetworkinglab/spring-open,opennetworkinglab/spring-open,opennetworkinglab/spring-open,opennetworkinglab/spring-open,opennetworkinglab/spring-open,opennetworkinglab/spring-open |
5895c02bf9bb5af9903f1a466968daf3d6a160c4 | src/main/java/org/fedoraproject/jardeps/spi/DependencyReader.java | src/main/java/org/fedoraproject/jardeps/spi/DependencyReader.java | /*
* Copyright (c) 2015 Michal Srb
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish... | /*
* Copyright (c) 2015 Michal Srb
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish... | Move javadoc comment where it belongs | Move javadoc comment where it belongs
| Java | mit | msrb/jar-deps |
75b81f58277eb4447d0397b2bc0b64730f06d23d | vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identity/ServiceIdentityProviderListenerHelper.java | vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identity/ServiceIdentityProviderListenerHelper.java | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.athenz.identity;
import com.yahoo.vespa.athenz.api.AthenzService;
import javax.net.ssl.SSLContext;
import java.util.Set;
import java.util.concurrent.ConcurrentSkipListSet;
/*... | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.athenz.identity;
import com.yahoo.vespa.athenz.api.AthenzService;
import javax.net.ssl.SSLContext;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArraySet;
/**
... | Use ConcurrentCopyOnWriteArraySet -- could alternatively provide a Comparator | Use ConcurrentCopyOnWriteArraySet -- could alternatively provide a Comparator
| 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 |
628acc65692b03485a51aca304f69c984c5db0f8 | benchmarks/src/main/java/etomica/simulation/BenchSimCatalysis.java | benchmarks/src/main/java/etomica/simulation/BenchSimCatalysis.java | package etomica.simulation;
import etomica.modules.catalysis.Catalysis;
import etomica.space3d.Space3D;
import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.profile.StackProfiler;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;... | package etomica.simulation;
import etomica.modules.catalysis.Catalysis;
import etomica.space3d.Space3D;
import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.profile.StackProfiler;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;... | Make sure Catalysis benchmark sets up between each iteration | Make sure Catalysis benchmark sets up between each iteration
Probably why it was so erratic.
| Java | mpl-2.0 | etomica/etomica,etomica/etomica,etomica/etomica |
cdb2cd0df38fffa624fb9c50a63b27088a7892a1 | maven-embedder/src/main/java/org/apache/maven/cli/ResolveFile.java | maven-embedder/src/main/java/org/apache/maven/cli/ResolveFile.java | package org.apache.maven.cli;
/*
* 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, Versi... | package org.apache.maven.cli;
/*
* 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, Versi... | Normalize relative paths for working directory | [MNG-6071] Normalize relative paths for working directory
| Java | apache-2.0 | olamy/maven,cstamas/maven,cstamas/maven,apache/maven,olamy/maven,cstamas/maven,mcculls/maven,apache/maven,mcculls/maven,mcculls/maven,apache/maven,olamy/maven |
1615f30998ab4dfe39fe0a64f63acbe9dbe7f43a | cereebro-server/src/test/java/io/cereebro/server/CereebroServerPropertiesTest.java | cereebro-server/src/test/java/io/cereebro/server/CereebroServerPropertiesTest.java | /*
* Copyright © 2017 the original authors (http://cereebro.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | /*
* Copyright © 2017 the original authors (http://cereebro.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | Improve test coverage one last time | Improve test coverage one last time | Java | apache-2.0 | cereebro/cereebro,cereebro/cereebro,cereebro/cereebro |
9eea812afac33d3cd4d4e6749ac4bfb2f517a8f5 | compss/agent/commons/src/main/java/es/bsc/compss/agent/AgentException.java | compss/agent/commons/src/main/java/es/bsc/compss/agent/AgentException.java | /*
* Copyright 2002-2019 Barcelona Supercomputing Center (www.bsc.es)
*
* 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
*
* Unl... | /*
* Copyright 2002-2019 Barcelona Supercomputing Center (www.bsc.es)
*
* 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
*
* Unl... | Add serialization number to agent exception | Add serialization number to agent exception
| Java | apache-2.0 | mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs |
3f65b9a171854a9d6bdfc603709261132d646986 | core/server/worker/src/main/java/alluxio/worker/netty/IdleReadHandler.java | core/server/worker/src/main/java/alluxio/worker/netty/IdleReadHandler.java | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | Add logging when netty channels are closed due to inactivity. | Add logging when netty channels are closed due to inactivity.
| Java | apache-2.0 | bf8086/alluxio,bf8086/alluxio,PasaLab/tachyon,maobaolong/alluxio,wwjiang007/alluxio,PasaLab/tachyon,maobaolong/alluxio,EvilMcJerkface/alluxio,wwjiang007/alluxio,maobaolong/alluxio,wwjiang007/alluxio,PasaLab/tachyon,Alluxio/alluxio,apc999/alluxio,EvilMcJerkface/alluxio,apc999/alluxio,maboelhassan/alluxio,maboelhassan/al... |
ea5663844bf7c78b6ef7277acea58217166b8b4c | services/slip/src/main/java/com/ippon/jug/slip/SlipController.java | services/slip/src/main/java/com/ippon/jug/slip/SlipController.java | package com.ippon.jug.slip;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.net.InetAddress;
import java.net.UnknownHostException;
@Res... | package com.ippon.jug.slip;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.net.InetAddress;
import java.net.UnknownHostException;
@Res... | Set to InternalServerError the slip healthcheck | Set to InternalServerError the slip healthcheck
| Java | apache-2.0 | ImFlog/docker-discovery,ImFlog/docker-discovery |
3e37e1e5919eb93ed25131fe088a12d9d8eb1f07 | modules/jeditint/src/main/java/org/terasology/logic/jedit/JeditSystem.java | modules/jeditint/src/main/java/org/terasology/logic/jedit/JeditSystem.java | package org.terasology.logic.jedit;
import org.terasology.entitySystem.entity.EntityRef;
import org.terasology.entitySystem.event.ReceiveEvent;
import org.terasology.entitySystem.systems.BaseComponentSystem;
import org.terasology.entitySystem.systems.RegisterSystem;
import org.terasology.input.ButtonState;
import org.... | package org.terasology.logic.jedit;
import org.terasology.entitySystem.entity.EntityRef;
import org.terasology.entitySystem.event.ReceiveEvent;
import org.terasology.entitySystem.systems.BaseComponentSystem;
import org.terasology.entitySystem.systems.RegisterSystem;
import org.terasology.input.ButtonState;
import org.... | Change of a method name | Change of a method name
| Java | apache-2.0 | CC4401-TeraCity/TeraCity,Ciclop/Terasology,Ciclop/Terasology,CC4401-TeraCity/TeraCity |
2885b15e29ed1aff70a57ad69f063dd5d007367e | smtp/src/org/subethamail/smtp/command/QuitCommand.java | smtp/src/org/subethamail/smtp/command/QuitCommand.java | package org.subethamail.smtp.command;
import java.io.IOException;
import org.subethamail.smtp.server.BaseCommand;
import org.subethamail.smtp.server.ConnectionContext;
/**
* @author Ian McFarland <ian@neo.com>
* @author Jon Stevens
*/
public class QuitCommand extends BaseCommand
{
public QuitCommand()
{
... | package org.subethamail.smtp.command;
import java.io.IOException;
import org.subethamail.smtp.server.BaseCommand;
import org.subethamail.smtp.server.ConnectionContext;
/**
* @author Ian McFarland <ian@neo.com>
* @author Jon Stevens
*/
public class QuitCommand extends BaseCommand
{
public QuitCommand()
{
... | Fix to ensure session is closed on QUIT command response | Fix to ensure session is closed on QUIT command response
git-svn-id: 22ec8cfea0672d04b2346d96717164b900bedbad@212 d4f6eda6-38e6-11de-8fef-1f5ae417a2df
| Java | apache-2.0 | vivosys/subethasmtp |
b364e435c3906ef0800cce92a388b6306574d7e7 | atlas-api/src/main/java/org/atlasapi/output/annotation/SeriesSummaryAnnotation.java | atlas-api/src/main/java/org/atlasapi/output/annotation/SeriesSummaryAnnotation.java | package org.atlasapi.output.annotation;
import org.atlasapi.content.Content;
import org.atlasapi.content.Episode;
import org.atlasapi.output.FieldWriter;
import org.atlasapi.output.OutputContext;
import org.atlasapi.output.writers.SeriesSummaryWriter;
import java.io.IOException;
import static com.google.common.base.... | package org.atlasapi.output.annotation;
import org.atlasapi.content.Content;
import org.atlasapi.content.Episode;
import org.atlasapi.output.FieldWriter;
import org.atlasapi.output.OutputContext;
import org.atlasapi.output.writers.SeriesSummaryWriter;
import java.io.IOException;
import static com.google.common.base.... | Write series summary in correct field. | Write series summary in correct field.
| Java | apache-2.0 | atlasapi/atlas-deer,atlasapi/atlas-deer |
9f86b1f0f8829b0525293d99152101775e0e5ab4 | cloudfoundry-client/src/main/java/org/cloudfoundry/client/v3/_Metadata.java | cloudfoundry-client/src/main/java/org/cloudfoundry/client/v3/_Metadata.java | /*
* Copyright 2013-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | /*
* Copyright 2013-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Fix Metadata serialization (serialize null values) | Fix Metadata serialization (serialize null values)
| Java | apache-2.0 | cloudfoundry/cf-java-client,cloudfoundry/cf-java-client,cloudfoundry/cf-java-client |
d1401a979b05149ebb13eea4283d124b40d7e219 | sit-wt-app/src/main/java/io/sitoolkit/wt/gui/domain/sample/SampleProcessClient.java | sit-wt-app/src/main/java/io/sitoolkit/wt/gui/domain/sample/SampleProcessClient.java | package io.sitoolkit.wt.gui.domain.sample;
import java.io.File;
import io.sitoolkit.util.buidtoolhelper.maven.MavenProject;
import io.sitoolkit.util.buidtoolhelper.process.ProcessCommand;
import io.sitoolkit.util.buidtoolhelper.process.ProcessExitCallback;
import io.sitoolkit.wt.util.infra.concurrent.ExecutorC... | package io.sitoolkit.wt.gui.domain.sample;
import java.io.File;
import io.sitoolkit.util.buidtoolhelper.maven.MavenProject;
import io.sitoolkit.util.buidtoolhelper.process.ProcessCommand;
import io.sitoolkit.util.buidtoolhelper.process.ProcessExitCallback;
import io.sitoolkit.wt.util.infra.concurrent.ExecutorC... | Fix error on starting sample site | Fix error on starting sample site | Java | apache-2.0 | sitoolkit/sit-wt-all,sitoolkit/sit-wt-all,sitoolkit/sit-wt-all,sitoolkit/sit-wt-all |
81e337d8bcb0b4f45a5c01a739e6478a90dd3925 | src/main/java/ca/corefacility/bioinformatics/irida/model/sample/SampleMetadata.java | src/main/java/ca/corefacility/bioinformatics/irida/model/sample/SampleMetadata.java | package ca.corefacility.bioinformatics.irida.model.sample;
import java.util.HashMap;
import java.util.Map;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
/**
* Stores unstructured metadata for ... | package ca.corefacility.bioinformatics.irida.model.sample;
import java.util.HashMap;
import java.util.Map;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
/**
* Stores unstructured metadata for ... | Revert "Need a check for an emtpy hash" | Revert "Need a check for an emtpy hash"
This reverts commit 07100389c363710260f4c0f5799da548672ad06a.
| Java | apache-2.0 | phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida |
105f3ccbaf160b9401c4db1c10be78fff91e0fa8 | src/main/java/net/opentsdb/contrib/tsquare/support/DataPointsAsDoubles.java | src/main/java/net/opentsdb/contrib/tsquare/support/DataPointsAsDoubles.java | /*
* Copyright (C) 2013 Conductor, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | /*
* Copyright (C) 2013 Conductor, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | Use conversion methods in utils class. | Use conversion methods in utils class.
| Java | apache-2.0 | Conductor/tsquare |
7f075f6b963cc6048579cc464ed0154598f0dd0e | java/solr_plugins/ConditionalInsertField/src/de/uni_tuebingen/ub/ixTheo/ConditionalInsertFieldProcessorFactory.java | java/solr_plugins/ConditionalInsertField/src/de/uni_tuebingen/ub/ixTheo/ConditionalInsertFieldProcessorFactory.java | package de.uni_tuebingen.ub.ixTheo.conditionalInsertField;
import java.io.IOException;
import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.request.SolrQueryRequest;
import org.apache.solr.response.SolrQueryResponse;
import org.apache.solr.update.AddUpdateCommand;
import org.apache.solr.update.proc... | package de.uni_tuebingen.ub.ixTheo.conditionalInsertField;
import java.io.IOException;
import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.request.SolrQueryRequest;
import org.apache.solr.response.SolrQueryResponse;
import org.apache.solr.update.AddUpdateCommand;
import org.apache.solr.update.proc... | Extend has fulltext to new scopes | Extend has fulltext to new scopes
| Java | agpl-3.0 | ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools |
f835b2f939fc3d6914767a9da48b469439461191 | ignition-support/ignition-support-lib/src/main/java/com/github/ignition/support/http/gzip/GzipHttpResponseInterceptor.java | ignition-support/ignition-support-lib/src/main/java/com/github/ignition/support/http/gzip/GzipHttpResponseInterceptor.java | package com.github.ignition.support.http.gzip;
import org.apache.http.Header;
import org.apache.http.HeaderElement;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpResponseInterceptor;
import org.apache.http.protocol.HttpContext;
import com.github.ignition.support.ht... | package com.github.ignition.support.http.gzip;
import org.apache.http.Header;
import org.apache.http.HeaderElement;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpResponseInterceptor;
import org.apache.http.protocol.HttpContext;
import com.github.ignition.support.ht... | Check if http entity is null and don't do anything if it is. | Check if http entity is null and don't do anything if it is. | Java | apache-2.0 | treejames/ignition,Applied-Duality/ignition,hongnguyenpro/ignition,mttkay/ignition |
06456d15fc958856699f6767f718c9f75ba80718 | opencga-storage/opencga-storage-core/src/main/java/org/opencb/opencga/storage/core/variant/io/json/mixin/VariantAnnotationMixin.java | opencga-storage/opencga-storage-core/src/main/java/org/opencb/opencga/storage/core/variant/io/json/mixin/VariantAnnotationMixin.java | /*
* Copyright 2015-2017 OpenCB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2015-2017 OpenCB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Add alias for VariantAnnotation.geneCancerAssociations to handle property renaming | storage: Add alias for VariantAnnotation.geneCancerAssociations to handle property renaming
| Java | apache-2.0 | opencb/opencga,opencb/opencga,opencb/opencga,opencb/opencga,opencb/opencga,opencb/opencga |
3d21ac7a2083ab859fbdf6898b54c7c3c5ae08b6 | spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/neo4j/scan/TestRelationshipProperties.java | spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/neo4j/scan/TestRelationshipProperties.java | /*
* Copyright 2012-2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | /*
* Copyright 2012-2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Add required id field to Spring Data Neo4j test class | Add required id field to Spring Data Neo4j test class
Fixes gh-28303
| Java | apache-2.0 | htynkn/spring-boot,spring-projects/spring-boot,scottfrederick/spring-boot,htynkn/spring-boot,michael-simons/spring-boot,spring-projects/spring-boot,mdeinum/spring-boot,Buzzardo/spring-boot,michael-simons/spring-boot,mdeinum/spring-boot,wilkinsona/spring-boot,dreis2211/spring-boot,wilkinsona/spring-boot,wilkinsona/sprin... |
380a6694abccb5deb6449306fd12b18bf7db0fbc | src/defaultPackage/TryArrays.java | src/defaultPackage/TryArrays.java | package defaultPackage;
public class TryArrays {
public static void main(String[] args) {
int[] numbers = new int[5];
double[] squares = new double[5];
for (int i = 0; i < numbers.length; i++)
{
numbers[i] = i + 1;
squares[i] = Math.pow(i + 1, 2);
}
for (int i = 0; i < 5; i++)
{
System.out.pri... | package defaultPackage;
public class TryArrays {
public static void main(String[] args) {
int[] numbers = new int[5];
double[] squares = new double[5];
int[] smallPrimes = {2, 3, 5, 7};
for (int i = 0; i < numbers.length; i++)
{
numbers[i] = i + 1;
squares[i] = Math.pow(i + 1, 2);
}
for (int i = ... | Create array with shorthand notation | Create array with shorthand notation | Java | bsd-3-clause | alexisbellido/Java-and-Eclipse |
1dd6234d4b511575842bfa7f052f0777ebb21f53 | android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceInfo.java | android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceInfo.java | package com.learnium.RNDeviceInfo;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimana... | package com.learnium.RNDeviceInfo;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimana... | Handle Android RN 0.47 breaking change | Handle Android RN 0.47 breaking change
| Java | mit | rebeccahughes/react-native-device-info,zeemyself/react-native-device-info,rebeccahughes/react-native-device-info,zeemyself/react-native-device-info,rebeccahughes/react-native-device-info,rebeccahughes/react-native-device-info,rebeccahughes/react-native-device-info,zeemyself/react-native-device-info,zeemyself/react-nati... |
98fc2b2e4e12b7aea738b117e6684343491cb60d | src/main/java/com/github/atomfrede/jadenticon/JdenticonWrapper.java | src/main/java/com/github/atomfrede/jadenticon/JdenticonWrapper.java | package com.github.atomfrede.jadenticon;
import org.apache.commons.io.FileUtils;
import javax.script.Invocable;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import java.io.File;
public class JdenticonWrapper {
private Object jdenticon;
priva... | package com.github.atomfrede.jadenticon;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import javax.script.Invocable;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import java.io.File;
import java.io.InputStream;
public... | Use getResourceAsStream as getResource won't work | Use getResourceAsStream as getResource won't work
| Java | apache-2.0 | atomfrede/jadenticon |
758790ba5f3c29eaf11cb0b6d58269cdb089b888 | src/main/java/info/u_team/u_team_core/data/CommonEntityTypeTagsProvider.java | src/main/java/info/u_team/u_team_core/data/CommonEntityTypeTagsProvider.java | package info.u_team.u_team_core.data;
import java.nio.file.Path;
import net.minecraft.entity.EntityType;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.registry.Registry;
public abstract class CommonEntityTypeTagsProvider extends CommonTagsProvider<EntityType<?>> {
@SuppressWarnings("deprec... | package info.u_team.u_team_core.data;
import java.nio.file.Path;
import net.minecraft.entity.EntityType;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.registry.Registry;
public abstract class CommonEntityTypeTagsProvider extends CommonTagsProvider<EntityType<?>> {
@SuppressWarnings("deprec... | Implement in the entity type tags provider | Implement in the entity type tags provider | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
8a3eae69905f9eb378459dd004b9e10ec677a15e | src/main/java/org/bricolages/streaming/preproc/PreprocMessageRepository.java | src/main/java/org/bricolages/streaming/preproc/PreprocMessageRepository.java | package org.bricolages.streaming.preproc;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.dao.DataIntegrityViolationException;
public interface PreprocMessageRepository extends JpaRepository<PreprocMessage, Long> {
PreprocMessage findByMessageId(String msgid);
default ... | package org.bricolages.streaming.preproc;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.dao.DataIntegrityViolationException;
import lombok.*;
public interface PreprocMessageRepository extends JpaRepository<PreprocMessage, Long> {
PreprocMessage findByMessageId(String msgi... | Select PreprocMessage first to reduce duplicated rows error | fix: Select PreprocMessage first to reduce duplicated rows error
| Java | mit | bricolages/bricolage-streaming-preprocessor,bricolages/bricolage-streaming-preprocessor,aamine/bricolage-streaming-preprocessor,aamine/bricolage-streaming-preprocessor |
ecce58e936dcac7c92d79c76ecc9729b9475bb0e | src/main/java/name/snavrotskiy/ant/listener/NotificationParams.java | src/main/java/name/snavrotskiy/ant/listener/NotificationParams.java | package name.snavrotskiy.ant.listener;
import com.google.common.base.Preconditions;
import org.jetbrains.annotations.NotNull;
import java.net.URL;
/**
* This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
* <p>
* Notification parameters
*/
class NotificationParams {
/**
... | package name.snavrotskiy.ant.listener;
import org.jetbrains.annotations.NotNull;
import java.net.URL;
/**
* This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
* <p>
* Notification parameters
*/
class NotificationParams {
/**
* Tray icon.
*/
private final URL ... | Remove null checks for notification params | Remove null checks for notification params
| Java | apache-2.0 | snavrotskii/ant-native-notifier |
758e196479413a3ce44173ee034c3e1b5da0996a | proxy/src/main/java/net/md_5/bungee/command/CommandList.java | proxy/src/main/java/net/md_5/bungee/command/CommandList.java | package net.md_5.bungee.command;
import java.util.Collection;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.plugin.Command;
/**
* Command to list all players conne... | package net.md_5.bungee.command;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.connection.Pr... | Rewrite list command for per server breakdown, and alphabetizing. | Rewrite list command for per server breakdown, and alphabetizing.
| Java | bsd-3-clause | PrisonPvP/BungeeCord,Xetius/BungeeCord,mariolars/BungeeCord,GingerGeek/BungeeCord,starlis/BungeeCord,LinEvil/BungeeCord,starlis/BungeeCord,Xetius/BungeeCord,btilm305/BungeeCord,xxyy/BungeeCord,XMeowTW/BungeeCord,ewized/BungeeCord,starlis/BungeeCord,BlueAnanas/BungeeCord,dentmaged/BungeeCord,xxyy/BungeeCord,TCPR/BungeeC... |
1a3cec294c7f0102da8d5abffed3a20f64f4b1f7 | src/test/java/com/springapp/batch/CompareEntryTest.java | src/test/java/com/springapp/batch/CompareEntryTest.java | package com.springapp.batch;
import com.springapp.batch.bo.Person;
import org.joda.time.DateTime;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@RunWith(Mo... | package com.springapp.batch;
import com.springapp.batch.bo.Person;
import org.joda.time.DateTime;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@RunWith(Mo... | Add an explanation what this test does | Add an explanation what this test does
| Java | mit | rafelbev/address-book |
13a78f50190a643d12f5ee380f880bd062fbcc94 | src/main/java/com/voxelplugineering/voxelsniper/PlatformMain.java | src/main/java/com/voxelplugineering/voxelsniper/PlatformMain.java | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 The Voxel Plugineering Team
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the ri... | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 The Voxel Plugineering Team
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the ri... | Fix platform main needlessly extending gunsmith main | Fix platform main needlessly extending gunsmith main
| Java | mit | bensku/VoxelSniper,LinkBR/VoxelSniper |
6a695970d1dd71c8b870301303d40980514def08 | canvasgl/src/main/java/com/chillingvan/canvasgl/glview/texture/gles/EglHelperFactory.java | canvasgl/src/main/java/com/chillingvan/canvasgl/glview/texture/gles/EglHelperFactory.java | package com.chillingvan.canvasgl.glview.texture.gles;
import android.os.Build;
/**
* Created by Chilling on 2017/1/2.
*/
public class EglHelperFactory {
public static IEglHelper create(GLThread.EGLConfigChooser configChooser, GLThread.EGLContextFactory eglContextFactory
, GLThread.EGLWindowSurface... | package com.chillingvan.canvasgl.glview.texture.gles;
import android.os.Build;
/**
* Created by Chilling on 2017/1/2.
*/
public class EglHelperFactory {
public static IEglHelper create(GLThread.EGLConfigChooser configChooser, GLThread.EGLContextFactory eglContextFactory
, GLThread.EGLWindowSurface... | Use old Egl api to compatible 4.4 | Use old Egl api to compatible 4.4
| Java | apache-2.0 | ChillingVan/android-openGL-canvas,ChillingVan/android-openGL-canvas |
0a3d641270e9b0b863a0c0ca0a205fea8935b2de | android/src/main/java/com/evollu/react/fa/FIRAnalyticsPackage.java | android/src/main/java/com/evollu/react/fa/FIRAnalyticsPackage.java | package com.evollu.react.fa;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import java.util.ArrayList;
import java.util.... | package com.evollu.react.fa;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import java.util.ArrayList;
import java.util.... | Revert "remove function for RN 0.47" | Revert "remove function for RN 0.47"
This reverts commit cf19c41c9c6ae79c13e482d11fdba017aa735925.
| Java | mit | evollu/react-native-firebase-analytics,evollu/react-native-firebase-analytics,evollu/react-native-firebase-analytics |
591f1fd4a42666b8629cdbf2b9e2bc3874277b0d | src/org/sablecc/sablecc/lrautomaton/Action.java | src/org/sablecc/sablecc/lrautomaton/Action.java | /* This file is part of SableCC ( http://sablecc.org ).
*
* See the NOTICE file distributed with this work for copyright information.
*
* 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
*
... | /* This file is part of SableCC ( http://sablecc.org ).
*
* See the NOTICE file distributed with this work for copyright information.
*
* 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
*
... | Use null as indicator for unconditional action. | Use null as indicator for unconditional action.
Signed-off-by: Etienne M. Gagnon <bf06ec0eb40152cd863534753d026b021022c851@j-meg.com>
| Java | apache-2.0 | Herve-M/sablecc,SableCC/sablecc,SableCC/sablecc,SableCC/sablecc,Herve-M/sablecc,SableCC/sablecc,Herve-M/sablecc,Herve-M/sablecc,SableCC/sablecc,Herve-M/sablecc |
aaccd179306a5a08dcff54d1a631c746d29a1a16 | app/src/main/java/ch/pantas/billsplitter/services/SharedPreferenceService.java | app/src/main/java/ch/pantas/billsplitter/services/SharedPreferenceService.java | package ch.pantas.billsplitter.services;
import android.content.SharedPreferences;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import static com.google.inject.internal.util.$Preconditions.checkArgument;
import static com.google.inject.internal.util.$Preconditions.checkNotNull;
@Singleton
pu... | package ch.pantas.billsplitter.services;
import android.content.SharedPreferences;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import static com.google.inject.internal.util.$Preconditions.checkArgument;
import static com.google.inject.internal.util.$Preconditions.checkNotNull;
@Singleton
pu... | Allow to save null as default-event (no event) | FIXED: Allow to save null as default-event (no event)
| Java | mit | ybonjour/BillSplitter |
adb81eb0d2f7587a721d6ab95c4912e778b84bcc | javaee/src/test/java/com/ticketmanor/ui/jsf/LocalDateTimeJsfConverterTest.java | javaee/src/test/java/com/ticketmanor/ui/jsf/LocalDateTimeJsfConverterTest.java | package com.ticketmanor.ui.jsf;
import static org.junit.Assert.*;
import java.time.LocalDateTime;
import org.junit.Before;
import org.junit.Test;
public class LocalDateTimeJsfConverterTest {
LocalDateTimeJsfConverter target;
final String stringDate = "June 1, 2015 7:30 PM";
final LocalDateTime localDateTime =... | package com.ticketmanor.ui.jsf;
import static org.junit.Assert.*;
import java.time.LocalDateTime;
import org.junit.Before;
import org.junit.Test;
public class LocalDateTimeJsfConverterTest {
LocalDateTimeJsfConverter target;
final String stringDate = "June 1, 2015 7:30 PM";
final LocalDateTime localDateTime =... | Add asserts to test method. | Add asserts to test method. | Java | mit | LearningTree/TicketManorJava,LearningTree/TicketManorJava,LearningTree/TicketManorJava,LearningTree/TicketManorJava |
a53c46688e98335666a2658f4df62c4b6f38f1fa | src/test/java/uk/co/jemos/podam/test/dto/pdm45/GenericMapPojo.java | src/test/java/uk/co/jemos/podam/test/dto/pdm45/GenericMapPojo.java | package uk.co.jemos.podam.test.dto.pdm45;
import java.util.List;
import java.util.Map;
/**
* Pojo with map of generic attributes.
*
* @author daivanov
*
*/
public class GenericMapPojo<F, S> {
private Map<String, GenericPojo<F, S>> genericPojos;
private Map<String, List> genericRawLists;
/... | package uk.co.jemos.podam.test.dto.pdm45;
import java.util.List;
import java.util.HashMap;
import java.util.Map;
/**
* Pojo with map of generic attributes.
*
* @author daivanov
*
*/
public class GenericMapPojo<F, S> {
private Map<String, GenericPojo<F, S>> genericPojos;
private Map<String, L... | Test Map<String,List> as read only attribute | Test Map<String,List> as read only attribute
| Java | mit | mtedone/podam,daivanov/joinmo,devopsfolks/podam,daivanov/joinmo,devopsfolks/podam,mtedone/podam,daivanov/podam,daivanov/podam |
fc52b4793f58a453c198a82d8cea486a8d246d3e | data-services/src/main/java/org/pdxfinder/services/DrugService.java | data-services/src/main/java/org/pdxfinder/services/DrugService.java | package org.pdxfinder.services;
import org.pdxfinder.repositories.TreatmentSummaryRepository;
import org.springframework.stereotype.Service;
/*
* Created by csaba on 29/03/2018.
*/
@Service
public class DrugService {
private TreatmentSummaryRepository treatmentSummaryRepository;
public DrugService(Treatme... | package org.pdxfinder.services;
import org.pdxfinder.repositories.ResponseRepository;
import org.pdxfinder.repositories.TreatmentProtocolRepository;
import org.pdxfinder.repositories.TreatmentSummaryRepository;
import org.springframework.stereotype.Service;
import java.util.List;
/*
* Created by csaba on 29/03/2018... | Add drug names and responses to service | Add drug names and responses to service
| Java | apache-2.0 | PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder |
895369b15c4354b823eadeedc76e572b42911d2a | src/main/java/valandur/webapi/json/serializer/plugin/CachedPluginContainerSerializer.java | src/main/java/valandur/webapi/json/serializer/plugin/CachedPluginContainerSerializer.java | package valandur.webapi.json.serializer.plugin;
import valandur.webapi.api.cache.plugin.ICachedPluginDependency;
import valandur.webapi.api.json.WebAPIBaseSerializer;
import valandur.webapi.cache.plugin.CachedPluginContainer;
import java.io.IOException;
public class CachedPluginContainerSerializer extends WebAPIBase... | package valandur.webapi.json.serializer.plugin;
import valandur.webapi.api.cache.plugin.ICachedPluginDependency;
import valandur.webapi.api.json.WebAPIBaseSerializer;
import valandur.webapi.cache.plugin.CachedPluginContainer;
import java.io.IOException;
public class CachedPluginContainerSerializer extends WebAPIBase... | Remove class field from PluginContainer json serializer | fix(json): Remove class field from PluginContainer json serializer
| Java | mit | Valandur/Web-API,Valandur/Web-API,Valandur/Web-API |
03eb3d5a09e926b80a3804a84995144ea4b23ec9 | src/main/java/com/github/slidekb/api/SlideBarPlugin.java | src/main/java/com/github/slidekb/api/SlideBarPlugin.java | /**
Copyright 2017 John Kester (Jack Kester)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | /**
Copyright 2017 John Kester (Jack Kester)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | Add setup method and change some javadocs | Add setup method and change some javadocs
| Java | apache-2.0 | SlideKB/slidebar-api |
f8730cc445540f326d4ff2707951cee35db3732c | src/main/java/com/faforever/api/db/SchemaVersionVerifier.java | src/main/java/com/faforever/api/db/SchemaVersionVerifier.java | package com.faforever.api.db;
import com.faforever.api.config.ApplicationProfile;
import com.faforever.api.config.FafApiProperties;
import org.springframework.context.annotation.Profile;
import org.springframework.core.PriorityOrdered;
import org.springframework.stereotype.Component;
import org.springframework.util.As... | package com.faforever.api.db;
import com.faforever.api.config.ApplicationProfile;
import com.faforever.api.config.FafApiProperties;
import org.springframework.context.annotation.Profile;
import org.springframework.core.PriorityOrdered;
import org.springframework.stereotype.Component;
import org.springframework.util.As... | Improve schema version error message | Improve schema version error message
| Java | mit | FAForever/faf-java-api,micheljung/faf-java-api,micheljung/faf-java-api,FAForever/faf-java-api,FAForever/faf-java-api |
9ff4ee7cf71e7596bae75e701a5ef8e66ecc1ed6 | src/main/java/xyz/upperlevel/uppercore/arena/command/ArenaParameterHandler.java | src/main/java/xyz/upperlevel/uppercore/arena/command/ArenaParameterHandler.java | package xyz.upperlevel.uppercore.arena.command;
import xyz.upperlevel.uppercore.arena.Arena;
import xyz.upperlevel.uppercore.arena.ArenaManager;
import xyz.upperlevel.uppercore.command.functional.parameter.ParameterHandler;
import xyz.upperlevel.uppercore.command.functional.parameter.ParameterParseException;
import j... | package xyz.upperlevel.uppercore.arena.command;
import xyz.upperlevel.uppercore.arena.Arena;
import xyz.upperlevel.uppercore.arena.ArenaManager;
import xyz.upperlevel.uppercore.command.functional.parameter.ParameterHandler;
import java.util.Collections;
import java.util.stream.Collectors;
public final class ArenaPar... | Fix tab-complete when having many arenas | Fix tab-complete when having many arenas
| Java | mit | upperlevel/uppercore |
19b7cd065aa1d220a0646fee083893847091858e | doc/project/jigsaw.quick.start.with.junit/src/org.astro/test/java/org/astro/WorldTests.java | doc/project/jigsaw.quick.start.with.junit/src/org.astro/test/java/org/astro/WorldTests.java | package org.astro;
public class WorldTests {
static {
if (!World.PACKAGE_PRIVATE_FIELD.equals("World")) throw new AssertionError(")-:");
new test.base.Tester();
}
}
| package org.astro;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.junit.jupiter.api.DisplayNameGeneration;
import org.junit.jupiter.api.Test;
import test.base.PrependModuleName;
@DisplayNameGeneration(PrependModuleName.class)
clas... | Transform into JUnit Jupiter test | Transform into JUnit Jupiter test
| Java | mit | sormuras/bach,sormuras/bach |
00375df4e8acc97f88c96cfaf5e4c0c44e7f8960 | spring-aop/src/main/java/org/springframework/aop/framework/adapter/ThrowsAdviceAdapter.java | spring-aop/src/main/java/org/springframework/aop/framework/adapter/ThrowsAdviceAdapter.java | /*
* Copyright 2002-2012 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | /*
* Copyright 2002-2012 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Fix javadoc reference to ThrowsAdvice | Fix javadoc reference to ThrowsAdvice
See gh-27804
| Java | apache-2.0 | spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework |
da8934f9c4c140d17e6bb2dc26837bb787c2de84 | src/test/java/net/tjololo/openshift/havoc/connector/kubernetes/KubernetesDiscoveryTest.java | src/test/java/net/tjololo/openshift/havoc/connector/kubernetes/KubernetesDiscoveryTest.java | package net.tjololo.openshift.havoc.connector.kubernetes;
/**
* Created by veg on 19.12.2016.
*/
public class KubernetesDiscoveryTest {
private KubernetesDiscovery kubernetesDiscovery;
}
| package net.tjololo.openshift.havoc.connector.kubernetes;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.web.client.RestTemplate;
import static org.hamcrest.CoreMatchers.not;
import sta... | Improve code quality. Implementet simple test | Improve code quality.
Implementet simple test
| Java | apache-2.0 | tjololo/openpandora-keres |
07f71e52dc7871f58632d2b5edcf9da69b7505c9 | src/forager/events/TaskSpec.java | src/forager/events/TaskSpec.java | package forager.events;
import java.io.IOException;
import galileo.event.Event;
import galileo.serialization.SerializationInputStream;
import galileo.serialization.SerializationOutputStream;
public class TaskSpec implements Event {
public int taskId;
public String[] command;
public TaskSpec(int taskId,... | package forager.events;
import java.io.IOException;
import galileo.event.Event;
import galileo.serialization.SerializationInputStream;
import galileo.serialization.SerializationOutputStream;
public class TaskSpec implements Event {
public int taskId;
public String[] command;
public TaskSpec(int taskId,... | Add concept of task assignment | Add concept of task assignment
| Java | bsd-2-clause | malensek/forager,malensek/forager |
b16e6f291ae4e24b93e5c6718bf822a33f0b4014 | src/au/org/ands/vocabs/toolkit/restlet/TestRestlet2.java | src/au/org/ands/vocabs/toolkit/restlet/TestRestlet2.java | package au.org.ands.vocabs.toolkit.restlet;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
/** Testing restlet. */
@Path("testing2")
public class TestRestlet2 {
/** getMessage.
* @return the message. */
@Produces(MediaType.TEXT_PLAIN)
... | package au.org.ands.vocabs.toolkit.restlet;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
/** Testing restlet. */
@Path("testing2")
public class TestRestlet2 {
/** getMess... | Test generating a 503 status | Test generating a 503 status | Java | apache-2.0 | au-research/ANDS-ResearchVocabularies-Toolkit,au-research/ANDS-Vocabs-Toolkit,au-research/ANDS-Vocabs-Toolkit,au-research/ANDS-Vocabs-Toolkit,au-research/ANDS-ResearchVocabularies-Toolkit,au-research/ANDS-ResearchVocabularies-Toolkit |
ca14afdd3a9f5c7973e3482175a3377d3c8657d8 | test/models/PersonModelTest.java | test/models/PersonModelTest.java | package models;
import static org.junit.Assert.*;
import java.util.Calendar;
import org.junit.Before;
import org.junit.Test;
public class PersonModelTest {
private Calendar now = Calendar.getInstance();
private int currentYear = now.get(Calendar.YEAR);
private Person bart;
private int bartAge;
@Before
publi... | package models;
import static org.junit.Assert.*;
import java.util.Calendar;
import org.junit.Before;
import org.junit.Test;
public class PersonModelTest {
private Calendar now = Calendar.getInstance();
private int currentYear = now.get(Calendar.YEAR);
private Person bart;
private int bartAge;
@Before
publi... | Add variables to express intent | Refactor: Add variables to express intent | Java | bsd-3-clause | knshetty/persons-info-dataservice-eg-with-tdd |
5177b6bcd8da2be59623f412591a42a8b06cb7d3 | src/fr/mantal/wcdl/Main.java | src/fr/mantal/wcdl/Main.java | package fr.mantal.wcdl;
import java.nio.file.Files;
import java.nio.file.Paths;
public class Main
{
public static void main(String[] args)
{
Downloader.fromConfig(getPath(args[0])).download();
}
private static String getPath(String arg0)
{
if (arg0.isEmpty())
arg0 = System.getProperty("user.dir");
if ... | package fr.mantal.wcdl;
import java.nio.file.Files;
import java.nio.file.Paths;
public class Main
{
public static void main(String[] args)
{
Downloader.fromConfig(getPath(args)).download();
}
private static String getPath(String[] args)
{
String arg0 = args.length > 1 ? args[0] : System.getProperty("user.di... | Fix crash when launched without arguments | Fix crash when launched without arguments
| Java | mit | mantal/wcdl |
e095dbd5a8df6d407378c49dbddd68fd1ecf1961 | src/main/java/net/shadowfacts/zcraft/block/BlockOre.java | src/main/java/net/shadowfacts/zcraft/block/BlockOre.java | package net.shadowfacts.zcraft.block;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.shadowfacts.zcraft.item.ZItems;
public class BlockOre extends Block {
public BlockOre(int par1) {
super(par1, Material.rock);
}
public int idDropped(int ... | package net.shadowfacts.zcraft.block;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.item.EntityXPOrb;
import net.minecraft.world.World;
import net.shadowfacts.zcraft.item.ZItems;
public class BlockOre extends Block {
public Bloc... | Add experience drop to ores | Add experience drop to ores
| Java | mit | Mazdallier/EnFusion,shadowfacts/EnFusion |
c4a988b15e1380347258417e2b41d73dfaed7ac7 | Speedcivilization/src/org/fountanio/juancode/out/IPWindow.java | Speedcivilization/src/org/fountanio/juancode/out/IPWindow.java | package org.fountanio.juancode.out;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import javax.swing.*;
import javax.swing.border.Border;
import java.awt.event.*;
public class IPWindow extends JFrame {
private static final long serialVersionUID = 1L;
private JButton gotoip = new JButton("Go");
privat... | package org.fountanio.juancode.out;
import java.awt.BorderLayout;
import javax.swing.*;
import javax.swing.border.Border;
import org.fountanio.juancode.eng.Engine;
import org.lwjgl.openal.AL;
import org.lwjgl.opengl.Display;
import java.awt.event.*;
import java.io.BufferedReader;
import java.io.File;
import java.io... | Set up a few items | Set up a few items
| Java | apache-2.0 | JavaCakess/Speedcivilization |
cb20d53406b806041d30ef8b1a82f5475e1f9c8d | app/src/external/java/com/kickstarter/libs/NoopBuildCheck.java | app/src/external/java/com/kickstarter/libs/NoopBuildCheck.java | package com.kickstarter.libs;
import com.kickstarter.viewmodels.DiscoveryViewModel;
import com.kickstarter.services.WebClient;
public class NoopBuildCheck implements BuildCheck {
@Override
public void bind(final DiscoveryViewModel viewModel, final WebClientType client) {
// No-op, distribution through Play St... | package com.kickstarter.libs;
import android.support.annotation.NonNull;
import com.kickstarter.services.WebClientType;
import com.kickstarter.viewmodels.DiscoveryViewModel;
public class NoopBuildCheck implements BuildCheck {
@Override
public void bind(final @NonNull DiscoveryViewModel viewModel, final @NonNull ... | Fix import for external builds | Fix import for external builds
| Java | apache-2.0 | kickstarter/android-oss,kickstarter/android-oss,kickstarter/android-oss,kickstarter/android-oss |
c8b67feaf334a8d443aaf34f1c3bf465294d3347 | simple/src/main/java/org/apache/commons/rdf/simple/package-info.java | simple/src/main/java/org/apache/commons/rdf/simple/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 m... | /**
* 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 m... | Move javadoc after package to avoid warnings | Move javadoc after package to avoid warnings
| Java | apache-2.0 | stain/incubator-commonsrdf,ansell/commons-rdf |
afe9728044346b712583426b94bb64ef3e952593 | src/main/java/ee/tuleva/onboarding/mandate/FundTransferExchange.java | src/main/java/ee/tuleva/onboarding/mandate/FundTransferExchange.java | package ee.tuleva.onboarding.mandate;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonView;
import lombok.*;
import javax.persistence.*;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
impor... | package ee.tuleva.onboarding.mandate;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonView;
import lombok.*;
import javax.persistence.*;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
impor... | Fix 3rd pillar validation constraint | Fix 3rd pillar validation constraint
| Java | mit | TulevaEE/onboarding-service,TulevaEE/onboarding-service,TulevaEE/onboarding-service,TulevaEE/onboarding-service |
14184b1c5fbf19bf393a30d419d53fc8ea4dc24b | gwt-ol3-demo/src/main/java/com/github/tdesjardins/ol3/demo/client/example/OL3ExampleType.java | gwt-ol3-demo/src/main/java/com/github/tdesjardins/ol3/demo/client/example/OL3ExampleType.java | package com.github.tdesjardins.ol3.demo.client.example;
/**
* Provided example types.
*
* @author Tino Desjardins
*
*/
public enum OL3ExampleType {
AnimationExample(new AnimationExample()),
ArcGISExample(new ArcGISExample()),
GeoJSONExample(new GeoJSONExample()),
GraticuleExample(new GraticuleExa... | package com.github.tdesjardins.ol3.demo.client.example;
/**
* Provided example types.
*
* @author Tino Desjardins
*
*/
public enum OL3ExampleType {
AnimationExample(new AnimationExample()),
ArcGISExample(new ArcGISExample()),
GeoJSONExample(new GeoJSONExample()),
GraticuleExample(new GraticuleExa... | Add an example for Mapbox. | Add an example for Mapbox. | Java | apache-2.0 | mazlixek/gwt-ol3,TDesjardins/gwt-ol3,TDesjardins/GWT-OL3-Playground,TDesjardins/GWT-OL3-Playground,mazlixek/gwt-ol3,sebasbaumh/gwt-ol3,TDesjardins/GWT-OL3-Playground,sebasbaumh/gwt-ol3,mazlixek/gwt-ol3,TDesjardins/gwt-ol3,TDesjardins/gwt-ol3,sebasbaumh/gwt-ol3 |
5b58da08a3f4c1302098d7976f1c3394e2024028 | Simperium/src/main/java/com/simperium/client/AuthResponseHandler.java | Simperium/src/main/java/com/simperium/client/AuthResponseHandler.java | package com.simperium.client;
import com.simperium.util.AuthUtil;
import org.json.JSONException;
import org.json.JSONObject;
public class AuthResponseHandler {
private AuthResponseListener mListener;
private User mUser;
public AuthResponseHandler(User user, AuthResponseListener listener){
mUser... | package com.simperium.client;
import com.simperium.util.AuthUtil;
import org.json.JSONObject;
public class AuthResponseHandler {
private AuthResponseListener mListener;
private User mUser;
public AuthResponseHandler(User user, AuthResponseListener listener) {
mUser = user;
mListener = li... | Remove setting user id and access token from response method in auth response handler | Remove setting user id and access token from response method in auth response handler
| Java | mit | Simperium/simperium-android,Simperium/simperium-android |
81ec54fd338414432d88dbb1eab6988c37812bd6 | icepick/src/main/java/icepick/annotation/IcicleField.java | icepick/src/main/java/icepick/annotation/IcicleField.java | package icepick.annotation;
import javax.lang.model.element.Element;
import javax.lang.model.type.TypeMirror;
import javax.lang.model.util.Elements;
import javax.lang.model.util.Types;
class IcicleField {
public final String name;
public final String typeCast;
public final String command;
IcicleFiel... | package icepick.annotation;
import javax.lang.model.element.Element;
import javax.lang.model.type.TypeMirror;
import javax.lang.model.util.Elements;
import javax.lang.model.util.Types;
class IcicleField {
public final String name;
public final String typeCast;
public final String command;
IcicleFiel... | Add a proper exception type for failed conversion | Add a proper exception type for failed conversion
| Java | epl-1.0 | diogosq/icepick,PibeDx/icepick,johncarl81/icepick,WoodyElf/icepick,ruhaly/icepick,Gropoid/icepick,frankiesardo/icepick |
70580118c80ccbf8e70a6d2ff80c4b37be84811c | codenvy-ext-datasource-core/src/main/java/com/codenvy/ide/ext/datasource/shared/ColumnDTO.java | codenvy-ext-datasource-core/src/main/java/com/codenvy/ide/ext/datasource/shared/ColumnDTO.java | /*
* CODENVY CONFIDENTIAL
* __________________
*
* [2013] - [2014] Codenvy, S.A.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Codenvy S.A. and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to Coden... | /*
* CODENVY CONFIDENTIAL
* __________________
*
* [2013] - [2014] Codenvy, S.A.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Codenvy S.A. and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to Coden... | Add properties to column DTO | Add properties to column DTO | Java | epl-1.0 | codenvy/plugin-datasource,codenvy/plugin-datasource |
48c2e702d04b0f63856c92b60c0395b6c5bb1e65 | core/framework/src/main/java/io/mypojo/framework/PojoSRInternals.java | core/framework/src/main/java/io/mypojo/framework/PojoSRInternals.java | package io.mypojo.framework;
import io.mypojo.felix.framework.ServiceRegistry;
import io.mypojo.felix.framework.util.EventDispatcher;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceEvent;
import java.util.Dictionary;
import java.util.HashMap;
import java.ut... | package io.mypojo.framework;
import io.mypojo.felix.framework.ServiceRegistry;
import io.mypojo.felix.framework.util.EventDispatcher;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceEvent;
import java.util.Dictionary;
import java.util.HashMap;
import java.ut... | Fix generics as a result of Java 7 upgrade | Fix generics as a result of Java 7 upgrade
| Java | apache-2.0 | donald-w/mypojo |
84d54b7a94694cdfa0ef83e545fe5c00939e6319 | tapestry-core/src/main/java/org/apache/tapestry5/internal/services/security/LocalhostOnly.java | tapestry-core/src/main/java/org/apache/tapestry5/internal/services/security/LocalhostOnly.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 l... | // 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 applic... | Add 0:0:0:0:0:0:0:1 as another recognized value for remoteHost meaning local | TAP5-1836: Add 0:0:0:0:0:0:0:1 as another recognized value for remoteHost meaning local
git-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@1293000 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5 |
5d78d4cc871a8ae2e99fabbb058e896ad9bf4c23 | fake-koji/src/main/java/org/fakekoji/jobmanager/ManagementResult.java | fake-koji/src/main/java/org/fakekoji/jobmanager/ManagementResult.java | package org.fakekoji.jobmanager;
import org.fakekoji.jobmanager.model.JobUpdateResults;
import java.util.Objects;
public class ManagementResult {
public final Object config;
public final JobUpdateResults jobUpdateResults;
public ManagementResult(Object config, JobUpdateResults jobUpdateResults) {
... | package org.fakekoji.jobmanager;
import org.fakekoji.jobmanager.model.JobUpdateResults;
import java.util.Objects;
public class ManagementResult <C> {
public final C config;
public final JobUpdateResults jobUpdateResults;
public ManagementResult(C config, JobUpdateResults jobUpdateResults) {
thi... | Add generic Config type in Management Result | Add generic Config type in Management Result
| Java | mit | TheIndifferent/jenkins-scm-koji-plugin,judovana/jenkins-scm-koji-plugin,TheIndifferent/jenkins-scm-koji-plugin,judovana/jenkins-scm-koji-plugin,judovana/jenkins-scm-koji-plugin |
34329d2c5e2cda104e57f045149e2c0f0058728d | src/main/java/net/openhft/chronicle/queue/PretouchHandler.java | src/main/java/net/openhft/chronicle/queue/PretouchHandler.java | package net.openhft.chronicle.queue;
import net.openhft.chronicle.core.threads.EventHandler;
import net.openhft.chronicle.core.threads.HandlerPriority;
import net.openhft.chronicle.core.threads.InvalidEventHandlerException;
import net.openhft.chronicle.queue.impl.single.Pretoucher;
import net.openhft.chronicle.queue.i... | package net.openhft.chronicle.queue;
import net.openhft.chronicle.core.threads.EventHandler;
import net.openhft.chronicle.core.threads.HandlerPriority;
import net.openhft.chronicle.core.threads.InvalidEventHandlerException;
import net.openhft.chronicle.queue.impl.single.Pretoucher;
import net.openhft.chronicle.queue.i... | Make the pretoucher touch further ahead for long delays on new chunks. | Make the pretoucher touch further ahead for long delays on new chunks.
| Java | apache-2.0 | OpenHFT/Chronicle-Queue,OpenHFT/Chronicle-Queue |
2af5c49a60b2d69b7b8178003560cd641e1b5c22 | monitor/src/main/java/de/graeuler/garden/config/StaticAppConfig.java | monitor/src/main/java/de/graeuler/garden/config/StaticAppConfig.java | package de.graeuler.garden.config;
import java.util.EnumMap;
public class StaticAppConfig implements AppConfig {
private EnumMap<AppConfig.Key, Object> config = new EnumMap<>(Key.class);
public StaticAppConfig() {
this.config.put(AppConfig.Key.TF_DAEMON_HOST, "192.168.1.10");
this.config.put(Ap... | package de.graeuler.garden.config;
import java.util.EnumMap;
public class StaticAppConfig implements AppConfig {
private EnumMap<AppConfig.Key, Object> config = new EnumMap<>(Key.class);
public StaticAppConfig() {
this.config.put(AppConfig.Key.TF_DAEMON_HOST, "localhost");
this.config.put(AppCo... | Connect to localhost brick daemon. | Connect to localhost brick daemon.
| Java | apache-2.0 | de-graeuler/my-garden,de-graeuler/my-garden,de-graeuler/my-garden,de-graeuler/my-garden |
8f76e6bda0c98d74c87eb8c422fab7b88a71e4cc | jdisc_http_service/src/main/java/com/yahoo/container/logging/FileConnectionLog.java | jdisc_http_service/src/main/java/com/yahoo/container/logging/FileConnectionLog.java | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.logging;
import com.google.inject.Inject;
import com.yahoo.component.AbstractComponent;
import java.util.logging.Logger;
/**
* @author mortent
*/
public class FileConnection... | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.logging;
import com.google.inject.Inject;
import com.yahoo.component.AbstractComponent;
/**
* @author mortent
*/
public class FileConnectionLog extends AbstractComponent impl... | Fix ordering of constructor arguments | Fix ordering of constructor arguments
| 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 |
68ca09ae4712d067c871c24067a403a73a1a7943 | src/main/java/com/elmakers/mine/bukkit/plugins/magic/BlockSpell.java | src/main/java/com/elmakers/mine/bukkit/plugins/magic/BlockSpell.java | package com.elmakers.mine.bukkit.plugins.magic;
import java.util.Set;
import org.bukkit.Material;
import org.bukkit.block.Block;
import com.elmakers.mine.bukkit.utilities.borrowed.ConfigurationNode;
public abstract class BlockSpell extends Spell {
private Set<Material> indestructible;
private Set<Material> dest... | package com.elmakers.mine.bukkit.plugins.magic;
import java.util.Set;
import org.bukkit.Material;
import org.bukkit.block.Block;
import com.elmakers.mine.bukkit.utilities.borrowed.ConfigurationNode;
public abstract class BlockSpell extends Spell {
private Set<Material> indestructible;
private Set<Material> dest... | Fix really broken destructible material test. | Fix really broken destructible material test.
| Java | mit | elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin |
fcede0dca2fbda88ca938c20123ad909ee5a7302 | src/main/java/com/thegongoliers/output/motors/LimiterMotorModule.java | src/main/java/com/thegongoliers/output/motors/LimiterMotorModule.java | package com.thegongoliers.output.motors;
import com.thegongoliers.annotations.Untested;
import java.util.function.BooleanSupplier;
@Untested
public class LimiterMotorModule implements MotorModule {
private BooleanSupplier mPositiveLimit;
private BooleanSupplier mNegativeLimit;
public LimiterMotorModule... | package com.thegongoliers.output.motors;
import com.thegongoliers.annotations.Untested;
import java.util.function.BooleanSupplier;
@Untested
public class LimiterMotorModule implements MotorModule {
private BooleanSupplier mPositiveLimit;
private BooleanSupplier mNegativeLimit;
public LimiterMotorModule... | Add setters for limited motor | Add setters for limited motor
| Java | mit | Gongoliers/Library-of-Gongolierium |
5d62186bf53dcd04194b51cb559030d19eb527bb | src/main/java/nl/codenizer/plugins/typescript/AnalysisRunnerImpl.java | src/main/java/nl/codenizer/plugins/typescript/AnalysisRunnerImpl.java | package codenizer.sonarqube.typescript;
public class AnalysisRunnerImpl implements AnalysisRunner {
public AnalysisResult[] Execute(String projectRootDirectory) {
AnalysisResult[] result = new AnalysisResult[0];
try {
// 1) Set working directory to projectRootDirectory
... | package codenizer.sonarqube.typescript;
import java.io.File;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class AnalysisRunnerImpl implements AnalysisRunner {
private final Logger log = LoggerFactory.getLogger(this.getClass());
public AnalysisResult[] Execute(String projectRootDir... | Set working directory and command arguments | Set working directory and command arguments
| Java | mit | sandermvanvliet/sonar-typescript-plugin,sandermvanvliet/sonar-typescript-plugin |
9758fa614003f87a68eca1b9944289fe7a4f0407 | OpERP/src/main/java/devopsdistilled/operp/server/data/repo/items/ItemRepository.java | OpERP/src/main/java/devopsdistilled/operp/server/data/repo/items/ItemRepository.java | package devopsdistilled.operp.server.data.repo.items;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import devopsdistilled.operp.server.data.entity.items.Item;
@Repository
public interface ItemRepository extends JpaRepository<Item, Long> {
}
| package devopsdistilled.operp.server.data.repo.items;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import devopsdistilled.operp.server.data.entity.items.Item;
@Repository
public interface ItemRepository extends JpaRepository<I... | Correct return type of the methods | Correct return type of the methods
OPEN - task 32: Add "Create Item" functionalities
http://github.com/DevOpsDistilled/OpERP/issues/issue/32 | Java | mit | njmube/OpERP,DevOpsDistilled/OpERP |
eab59975119d45f9f23339c1f2545356eac18989 | indexing/src/main/java/uk/ac/ebi/quickgo/index/annotation/coterms/AnnotationCoStatsProcessor.java | indexing/src/main/java/uk/ac/ebi/quickgo/index/annotation/coterms/AnnotationCoStatsProcessor.java | package uk.ac.ebi.quickgo.index.annotation.coterms;
import uk.ac.ebi.quickgo.index.annotation.Annotation;
import java.util.function.Predicate;
import org.springframework.batch.item.ItemProcessor;
/**
* @author Tony Wardell
* Date: 06/09/2016
* Time: 16:30
* Created with IntelliJ IDEA.
*
* A version of ItemPro... | package uk.ac.ebi.quickgo.index.annotation.coterms;
import uk.ac.ebi.quickgo.index.annotation.Annotation;
import com.google.common.base.Preconditions;
import java.util.function.Predicate;
import org.springframework.batch.item.ItemProcessor;
/**
* @author Tony Wardell
* Date: 06/09/2016
* Time: 16:30
* Created w... | Add some preconditions to check state of constructor arguments. | Add some preconditions to check state of constructor arguments.
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
4c43512f3b7cf5595cd8d3cfafd555559dadfa5f | src/java/com/threerings/cast/ActionSequence.java | src/java/com/threerings/cast/ActionSequence.java | //
// $Id: ActionSequence.java,v 1.2 2001/11/27 08:09:34 mdb Exp $
package com.threerings.cast;
import java.awt.Point;
import java.io.Serializable;
/**
* The action sequence class describes a particular character animation
* sequence. An animation sequence consists of one or more frames of
* animation, renders at... | //
// $Id: ActionSequence.java,v 1.3 2002/03/27 21:51:33 mdb Exp $
package com.threerings.cast;
import java.awt.Point;
import java.io.Serializable;
/**
* The action sequence class describes a particular character animation
* sequence. An animation sequence consists of one or more frames of
* animation, renders at... | Define frames per second in floating point. | Define frames per second in floating point.
git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@1163 542714f4-19e9-0310-aa3c-eee0fc999fb1
| Java | lgpl-2.1 | threerings/narya,threerings/narya,threerings/narya,threerings/narya,threerings/narya |
91a88f87f279beee4524f9c58f9706d0386e5fcc | src-example/cz/cuni/mff/d3s/spl/example/newton/checker/SlaChecker.java | src-example/cz/cuni/mff/d3s/spl/example/newton/checker/SlaChecker.java | package cz.cuni.mff.d3s.spl.example.newton.checker;
import cz.cuni.mff.d3s.spl.core.data.SerieDataSource;
import cz.cuni.mff.d3s.spl.core.data.instrumentation.InstrumentingDataSource;
import cz.cuni.mff.d3s.spl.core.formula.Formula;
import cz.cuni.mff.d3s.spl.core.formula.Result;
import cz.cuni.mff.d3s.spl.core.formul... | package cz.cuni.mff.d3s.spl.example.newton.checker;
import cz.cuni.mff.d3s.spl.core.data.SerieDataSource;
import cz.cuni.mff.d3s.spl.core.data.Statistics;
import cz.cuni.mff.d3s.spl.core.data.instrumentation.InstrumentingDataSource;
import cz.cuni.mff.d3s.spl.core.formula.Formula;
import cz.cuni.mff.d3s.spl.core.formu... | Print more statistics on exit | Print more statistics on exit
| Java | apache-2.0 | vhotspur/spl-adaptation-framework,vhotspur/spl-adaptation-framework |
922615850dc310f94a1b186a042498a7dd245990 | src/main/java/com/github/aureliano/verbum_domini/helper/UrlHelper.java | src/main/java/com/github/aureliano/verbum_domini/helper/UrlHelper.java | package com.github.aureliano.verbum_domini.helper;
import org.apache.commons.lang.StringUtils;
public final class UrlHelper {
private UrlHelper() {
super();
}
public static String join(Object...tokens) {
return "/" + StringUtils.join(tokens, '/');
}
} | package com.github.aureliano.verbum_domini.helper;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
public final class UrlHelper {
private UrlHelper() {
super();
}
public static String join(Object...tokens) {
return "/" + StringU... | Add method to build URLs with context path. | Add method to build URLs with context path.
| Java | mit | aureliano/verbum-domini,aureliano/verbum-domini,aureliano/verbum-domini,aureliano/verbum-domini |
eae0aef4f5149febf7a881799a33b4eacd967b7a | src/test/net/sf/clirr/ant/ChangeCounterTest.java | src/test/net/sf/clirr/ant/ChangeCounterTest.java | package net.sf.clirr.ant;
import junit.framework.TestCase;
import net.sf.clirr.event.ApiDifference;
import net.sf.clirr.event.Severity;
public class ChangeCounterTest extends TestCase
{
public void testCorrectCounting()
{
ChangeCounter counter = new ChangeCounter();
counter.reportDiff(new ApiDifferenc... | package net.sf.clirr.ant;
import junit.framework.TestCase;
import net.sf.clirr.event.ApiDifference;
import net.sf.clirr.event.Severity;
import net.sf.clirr.event.Message;
public class ChangeCounterTest extends TestCase
{
public void testCorrectCounting()
{
// a dummy message object
Message msg = new M... | Use dummy Message object to be compatible with new ApiDifference API | Use dummy Message object to be compatible with new ApiDifference API
| Java | apache-2.0 | lukegb/clirr |
2d8c35a4ba4bb4039f1ac1682c82fbf1263998f0 | src/main/java/com/crowdmap/java/sdk/net/ICrowdmapConstants.java | src/main/java/com/crowdmap/java/sdk/net/ICrowdmapConstants.java | /*****************************************************************************
** Copyright (c) 2010 - 2012 Ushahidi Inc
** All rights reserved
** Contact: team@ushahidi.com
** Website: http://www.ushahidi.com
**
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesse... | /*****************************************************************************
** Copyright (c) 2010 - 2012 Ushahidi Inc
** All rights reserved
** Contact: team@ushahidi.com
** Website: http://www.ushahidi.com
**
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesse... | Add the different segments that makes up crowdmap endit point as constants for easier maintenance | Add the different segments that makes up crowdmap endit point as constants for easier maintenance
| Java | mit | ushahidi/Crowdmap-Java,ushahidi/Crowdmap-Java |
edb42c330c01f6d50704a4771951c3b8483ae4f7 | Games-Engine/src/net/kirauks/minigames/engine/utils/Options.java | Games-Engine/src/net/kirauks/minigames/engine/utils/Options.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package net.kirauks.minigames.engine.utils;
import javafx.scene.input.KeyCode;
/**
*
* @author Karl
*/
public class Options {
... | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package net.kirauks.minigames.engine.utils;
import javafx.scene.input.KeyCode;
/**
*
* @author Karl
*/
public class Options {
... | Use static methods for options | Use static methods for options
| Java | apache-2.0 | Rauks/MiniGames |
7d34f5abd1926a89a42602b0548023214451bf8c | java/solrcontrib/umichnormalizers/src/java/edu/umich/lib/solr/analysis/LCCNNormalizerFilterFactory.java | java/solrcontrib/umichnormalizers/src/java/edu/umich/lib/solr/analysis/LCCNNormalizerFilterFactory.java | package edu.umich.lib.solr.analysis;
import java.util.Map;
import org.apache.lucene.analysis.util.TokenFilterFactory;
import org.apache.lucene.analysis.TokenStream;
public class LCCNNormalizerFilterFactory extends TokenFilterFactory
{
protected LCCNNormalizerFilterFactory(Map<String, String> args) {
super(args);... | package edu.umich.lib.solr.analysis;
import java.util.Map;
import org.apache.lucene.analysis.util.TokenFilterFactory;
import org.apache.lucene.analysis.TokenStream;
public class LCCNNormalizerFilterFactory extends TokenFilterFactory
{
public LCCNNormalizerFilterFactory(Map<String, String> args) {
super(arg... | Fix constructor in LCCNNormalizationFilterFactory too | Fix constructor in LCCNNormalizationFilterFactory too
| Java | bsd-3-clause | billdueber/lib.umich.edu-solr-stuff,billdueber/solr-libstdnum-normalize |
981763abf506476262576afcb6f877a6955e96c1 | java-runtime/src/org/webdsl/lang/EnvironmentSessionVariableLookup.java | java-runtime/src/org/webdsl/lang/EnvironmentSessionVariableLookup.java | package org.webdsl.lang;
import java.util.HashMap;
import java.util.Map;
/**
* lookup of session variables
*/
public class EnvironmentSessionVariableLookup {
protected Map<String,Object> variables = new HashMap<String,Object>();
public EnvironmentSessionVariableLookup(){}
public Object getVariable(String key... | package org.webdsl.lang;
import java.util.HashMap;
import java.util.Map;
import org.webdsl.logging.Logger;
/**
* lookup of session variables
*/
public class EnvironmentSessionVariableLookup {
protected Map<String,Object> variables = new HashMap<String,Object>();
public EnvironmentSessionVariableLookup(){}
p... | Change handling session variables. When lookup fails, return null instead of throwing exception. It still logs an exception. | Change handling session variables. When lookup fails, return null instead of throwing exception. It still logs an exception.
svn path=/webdsls/trunk/; revision=6029
| Java | apache-2.0 | webdsl/webdsl,webdsl/webdsl,webdsl/webdsl,webdsl/webdsl |
ee2f814ff4290c51221598a552a07d2dddd861c2 | rdbms/src/main/java/io/spine/server/storage/jdbc/query/package-info.java | rdbms/src/main/java/io/spine/server/storage/jdbc/query/package-info.java | /*
* Copyright 2017, TeamDev Ltd. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRES... | /*
* Copyright 2017, TeamDev Ltd. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRES... | Update package info for `query` package | Update package info for `query` package
| Java | apache-2.0 | SpineEventEngine/jdbc-storage,SpineEventEngine/jdbc-storage |
3dfcd9f70a8447afc951387730633e5c37ce668d | sql/src/main/java/io/crate/operation/projectors/MergeCountProjector.java | sql/src/main/java/io/crate/operation/projectors/MergeCountProjector.java | /*
* Licensed to Crate under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. Crate licenses this file
* to you under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compl... | /*
* Licensed to Crate under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. Crate licenses this file
* to you under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compl... | Remove explicit unboxing to primitive | Remove explicit unboxing to primitive
| Java | apache-2.0 | crate/crate,EvilMcJerkface/crate,EvilMcJerkface/crate,crate/crate,EvilMcJerkface/crate,crate/crate |
c65636cb688c6f8dbb74ea7ce03777c19a2e61ff | src/me/coley/recaf/ui/component/LabeledComponentGroup.java | src/me/coley/recaf/ui/component/LabeledComponentGroup.java | package me.coley.recaf.ui.component;
import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.JPanel;
/**
* A group of radio-buttons that handles singular radio selection.
*
* @author Matt
*/
@SuppressWarnings("serial")
public class LabeledComponentGroup ex... | package me.coley.recaf.ui.component;
import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.JPanel;
/**
* A group of radio-buttons that handles singular radio selection.
*
* @author Matt
*/
@SuppressWarnings("serial")
public class LabeledComponentGroup ex... | Fix overlapping elements in groups | Fix overlapping elements in groups
| Java | mit | Col-E/Recaf,Col-E/Recaf |
3dce8156962d116049399bc53675dd4978717ff5 | src/main/java/de/fernunihagen/dna/jkn/scalephant/distribution/resource/RandomResourcePlacementStrategy.java | src/main/java/de/fernunihagen/dna/jkn/scalephant/distribution/resource/RandomResourcePlacementStrategy.java | package de.fernunihagen.dna.jkn.scalephant.distribution.resource;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Random;
import de.fernunihagen.dna.jkn.scalephant.distribution.membership.DistributedInstance;
public class RandomResourcePlacementStrategy implements Res... | package de.fernunihagen.dna.jkn.scalephant.distribution.resource;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Random;
import de.fernunihagen.dna.jkn.scalephant.distribution.membership.DistributedInstance;
public class RandomResourcePlacementStrategy implements Res... | Throw an exception on empty resource list | Throw an exception on empty resource list | Java | apache-2.0 | jnidzwetzki/scalephant,jnidzwetzki/bboxdb,jnidzwetzki/bboxdb,jnidzwetzki/scalephant,jnidzwetzki/bboxdb |
2c930bbded244edb173c70f4cbb68f10999d0b3d | optaplanner-examples/src/main/java/org/optaplanner/examples/taskassigning/app/TaskAssigningBenchmarkApp.java | optaplanner-examples/src/main/java/org/optaplanner/examples/taskassigning/app/TaskAssigningBenchmarkApp.java | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Add scoreDirector benchmark in the app too | Add scoreDirector benchmark in the app too
| Java | apache-2.0 | droolsjbpm/optaplanner,baldimir/optaplanner,droolsjbpm/optaplanner,baldimir/optaplanner,baldimir/optaplanner,baldimir/optaplanner,tkobayas/optaplanner,tkobayas/optaplanner,tkobayas/optaplanner,droolsjbpm/optaplanner,droolsjbpm/optaplanner,tkobayas/optaplanner |
4e44d2a279eba90f07b72bcf4081dbde5f5384e3 | src/main/java/com/sakamichi46/api/JerseyConfig.java | src/main/java/com/sakamichi46/api/JerseyConfig.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.sakamichi46.api;
import javax.ws.rs.ApplicationPath;
import org.glassfish.jersey.server.ResourceConfig;
import org.springf... | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.sakamichi46.api;
import javax.ws.rs.ApplicationPath;
import org.glassfish.jersey.server.ResourceConfig;
import org.springf... | Change root path from api to sakamichi46api/api. | Change root path from api to sakamichi46api/api. | Java | mit | kikutaro/Sakamichi46Api,kikutaro/Sakamichi46Api |
2440a18945afd422f64817f67ddada75198956c8 | src/main/java/weiboclient4j/oauth2/DisplayType.java | src/main/java/weiboclient4j/oauth2/DisplayType.java | package weiboclient4j.oauth2;
/**
* @author Hover Ruan
*/
public enum DisplayType {
Default("default"),
Mobile("mobile"),
Popup("popup"),
Wap12("wap1.2"),
Wap20("wap2.0"),
Js("js"),
AppOnWeibo("apponweibo");
private String display;
DisplayType(String display) {
th... | package weiboclient4j.oauth2;
/**
* @author Hover Ruan
*/
public enum DisplayType {
Default("default"),
Mobile("mobile"),
Popup("popup"),
Wap12("wap1.2"),
Wap20("wap2.0"),
Js("js"),
Wap("wap"),
Client("client"),
AppOnWeibo("apponweibo");
private String display;
... | Add new display-type for API 2.0 | Add new display-type for API 2.0
| Java | apache-2.0 | hoverruan/weiboclient4j |
5474042855c53b756f893f84310ae0792b8fb582 | src/org/bouncycastle/asn1/ASN1ObjectIdentifier.java | src/org/bouncycastle/asn1/ASN1ObjectIdentifier.java | package org.bouncycastle.asn1;
public class ASN1ObjectIdentifier
extends DERObjectIdentifier
{
public ASN1ObjectIdentifier(String identifier)
{
super(identifier);
}
ASN1ObjectIdentifier(byte[] bytes)
{
super(bytes);
}
/**
* Return an OID that creates a branch unde... | package org.bouncycastle.asn1;
public class ASN1ObjectIdentifier
extends DERObjectIdentifier
{
public ASN1ObjectIdentifier(String identifier)
{
super(identifier);
}
ASN1ObjectIdentifier(byte[] bytes)
{
super(bytes);
}
/**
* Return an OID that creates a branch unde... | Improve check in method "on" | Improve check in method "on"
| Java | mit | sake/bouncycastle-java |
ec30ffbcab6fc91579ab09f07d192c9ff3743aca | backend/web/src/main/java/com/psidox/saddlewoof/web/rest/Interceptor.java | backend/web/src/main/java/com/psidox/saddlewoof/web/rest/Interceptor.java | package com.psidox.saddlewoof.web.rest;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.container.PreMatching;
import javax.ws.rs.ext.Provider;
import java.io.IOException;
@Provider
@PreMatching
public class Interceptor implements Container... | package com.psidox.saddlewoof.web.rest;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.container.PreMatching;
import javax.ws.rs.ext.Provider;
import java.io.IOException;
@Provider
@PreMatching
public class Interceptor implements Container... | Add back logging for production debug | Add back logging for production debug
| Java | mit | smysnk/saddlewoof,smysnk/saddlewoof,smysnk/saddlewoof,smysnk/saddlewoof |
b352a72edb048c455310936803aa425316838699 | src/main/java/DatabaseManager.java | src/main/java/DatabaseManager.java | /**
* Created by Eduardo veras on 19-Jun-16.
* Edited by Siclait on 19-Juu-16
*/
import Entity.*;
import Service.*;
import java.util.List;
public class DatabaseManager {
// Singleton Constructor
private DatabaseManager(){
}
public static void BootDataBase(){
List<User> users = UserORMS... | /**
* Created by Eduardo veras on 19-Jun-16.
* Edited by Siclait on 19-Juu-16
*/
import Entity.*;
import Service.*;
import java.util.List;
public class DatabaseManager {
// Singleton Constructor
private DatabaseManager(){
}
public static void BootDataBase(){
List<User> users = UserORMS... | Add data base root commands | Add data base root commands
| Java | mit | Eduardoveras94/url-Shortener-spark,Eduardoveras94/url-Shortener-spark |
5ac931c8b8e105e88d39b58ae5c49b9bfcf4c13f | src/test/java/info/u_team/u_team_test/init/TestSounds.java | src/test/java/info/u_team/u_team_test/init/TestSounds.java | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.util.registry.CommonDeferredRegister;
import info.u_team.u_team_test.TestMod;
import net.minecraft.util.*;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.ForgeRegis... | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.util.registry.CommonDeferredRegister;
import info.u_team.u_team_test.TestMod;
import net.minecraft.util.SoundEvent;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.F... | Fix imports in test sounds | Fix imports in test sounds | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
23fa208b67220f3aa8964ab21bb53c7e9a4d2a6f | backend/beer-app/src/main/java/edu/vse/configuration/FiltersConfig.java | backend/beer-app/src/main/java/edu/vse/configuration/FiltersConfig.java | package edu.vse.configuration;
import edu.vse.filters.LoggingContextFilter;
import edu.vse.filters.RequestLoggingFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
p... | package edu.vse.configuration;
import edu.vse.filters.LoggingContextFilter;
import edu.vse.filters.RequestLoggingFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.spring... | Enable cross origin for development | Enable cross origin for development
| Java | mit | jirkae/BeerCheese,jirkae/BeerCheese,jirkae/BeerCheese,jirkae/BeerCheese |
eab20f41e01c7c669792b333cb9d6a740ef35578 | trunk/MutabilityDetector/trunk/MutabilityDetector/src/main/java/org/mutabilitydetector/unittesting/matchers/MutabilityMatchers.java | trunk/MutabilityDetector/trunk/MutabilityDetector/src/main/java/org/mutabilitydetector/unittesting/matchers/MutabilityMatchers.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.unittesting.matchers;
im... | /*
* 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.unittesting.matchers;
im... | Add method to match effectively immutable. | Add method to match effectively immutable.
git-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@393 c7a0535c-eda6-11de-83d8-6d5adf01d787
| Java | apache-2.0 | MutabilityDetector/MutabilityDetector,MutabilityDetector/MutabilityDetector |
6c3141a2937eb7168680d3ba5baa9b536b225537 | platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/trans/model/RascalMetrics.java | platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/trans/model/RascalMetrics.java | package org.ossmeter.metricprovider.rascal.trans.model;
import com.googlecode.pongo.runtime.*;
import com.mongodb.*;
// protected region custom-imports on begin
// protected region custom-imports end
public class RascalMetrics extends PongoDB {
public RascalMetrics() {}
public RascalMetrics(DB db) {
setDb(db)... | package org.ossmeter.metricprovider.rascal.trans.model;
import com.googlecode.pongo.runtime.*;
import com.mongodb.*;
// protected region custom-imports on begin
// protected region custom-imports end
public class RascalMetrics extends PongoDB {
private final String collectionName;
public RascalMetrics(DB db, Stri... | Fix for naming collections in Rascal metrics | Fix for naming collections in Rascal metrics
| Java | epl-1.0 | ossmeter/ossmeter,ossmeter/ossmeter,ossmeter/ossmeter,ossmeter/ossmeter,ossmeter/ossmeter |
8c4e496c59406635152aa1d34efafa5ebc313b4e | src/main/java/net/blay09/mods/cookingforblockheads/registry/recipe/GeneralFoodRecipe.java | src/main/java/net/blay09/mods/cookingforblockheads/registry/recipe/GeneralFoodRecipe.java | package net.blay09.mods.cookingforblockheads.registry.recipe;
import com.google.common.collect.Lists;
import net.blay09.mods.cookingforblockheads.registry.CookingRegistry;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.item.crafting.ShapedRecipes;
import... | package net.blay09.mods.cookingforblockheads.registry.recipe;
import com.google.common.collect.Lists;
import net.blay09.mods.cookingforblockheads.registry.CookingRegistry;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.item.crafting.ShapedRecipes;
import... | Use new IShapedRecipe for more compatible width detection (alongside the fallback) | Use new IShapedRecipe for more compatible width detection (alongside the fallback)
#348
| Java | mit | blay09/CookingForBlockheads |
899a39c54a72e54ab65e8ecb4af5bbb2beebf652 | src/scheduler/FcfsScheduler.java | src/scheduler/FcfsScheduler.java | package scheduler;
import os.OperatingSystem;
import readinstruction.ReadInstruction;
import java.util.LinkedList;
import java.util.Queue;
/**
* Created by Karol on 2017-04-20.
*/
public class FcfsScheduler implements Scheduler {
private Queue<ReadInstruction> waitingQueue;
private OperatingSystem parentOs... | package scheduler;
import os.OperatingSystem;
import readinstruction.ReadInstruction;
import java.util.LinkedList;
import java.util.Queue;
/**
* Created by Karol on 2017-04-20.
*/
public class FcfsScheduler implements Scheduler {
private Queue<ReadInstruction> waitingQueue;
private OperatingSystem parentOs... | Implement build method of ReadInstructionBuilder | Implement build method of ReadInstructionBuilder
| Java | mit | hadoth/OperatingSystems02 |
32254d3b75d65aceb485950fbf30d464574e02fc | src/main/java/com/googlesource/gerrit/plugins/download/command/DownloadCommandsModule.java | src/main/java/com/googlesource/gerrit/plugins/download/command/DownloadCommandsModule.java | // Copyright (C) 2013 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | // Copyright (C) 2013 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | Clean up names of commands | Clean up names of commands
Remove the hyphen, this is horrible to read in the web UI. Rename
"Repo Download" to "repo", matching the old style used before these
were ejected to a plugin.
Change-Id: I1a4a02b0ab39e8249f3d3dc3d42b88fe893a93f4
| Java | apache-2.0 | GerritCodeReview/plugins_download-commands |
2cab89f3ae7c48db0754e2463c7510cbce8a4b64 | providence-core/src/main/java/net/morimekta/providence/util/ServiceCallInstrumentation.java | providence-core/src/main/java/net/morimekta/providence/util/ServiceCallInstrumentation.java | package net.morimekta.providence.util;
import net.morimekta.providence.PServiceCall;
import javax.annotation.Nullable;
import java.util.concurrent.TimeUnit;
/**
* Interface handling the instrumentation of service calls.
*/
@FunctionalInterface
public interface ServiceCallInstrumentation {
/**
* After each... | package net.morimekta.providence.util;
import net.morimekta.providence.PServiceCall;
import javax.annotation.Nullable;
import java.util.concurrent.TimeUnit;
/**
* Interface handling the instrumentation of service calls.
*/
@FunctionalInterface
public interface ServiceCallInstrumentation {
/**
* After each... | Fix comment relating HTTP to be more generic. | Fix comment relating HTTP to be more generic.
| Java | apache-2.0 | morimekta/thrift-j2,morimekta/providence,morimekta/providence |
da1b74c098d8611b4438aa6cfd023f4fe7281eeb | parity-top/src/main/java/org/jvirtanen/parity/top/Side.java | parity-top/src/main/java/org/jvirtanen/parity/top/Side.java | package org.jvirtanen.parity.top;
public enum Side {
BUY,
SELL
}
| package org.jvirtanen.parity.top;
/**
* The order side.
*/
public enum Side {
BUY,
SELL
}
| Add documentation for side in order book reconstruction | Add documentation for side in order book reconstruction
| Java | apache-2.0 | pmcs/parity,paritytrading/parity,paritytrading/parity,pmcs/parity |
bc8b856813635e6cf452f9edae0c65e072da5379 | components/claim-mgt/org.wso2.carbon.identity.claim.metadata.mgt/src/main/java/org/wso2/carbon/identity/claim/metadata/mgt/dao/ClaimConfigInitDAO.java | components/claim-mgt/org.wso2.carbon.identity.claim.metadata.mgt/src/main/java/org/wso2/carbon/identity/claim/metadata/mgt/dao/ClaimConfigInitDAO.java | /*
* Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org).
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | /*
* Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org).
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | Add Exception for new created interface. | Add Exception for new created interface.
| Java | apache-2.0 | wso2/carbon-identity-framework,wso2/carbon-identity-framework,wso2/carbon-identity-framework,wso2/carbon-identity-framework |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.