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
d907b127ce8d718be5d3f4cbc94a4924429ae728
project/app/src/main/java/org/owntracks/android/support/ServiceBridge.java
project/app/src/main/java/org/owntracks/android/support/ServiceBridge.java
package org.owntracks.android.support; import org.owntracks.android.injection.scopes.PerApplication; import org.owntracks.android.services.BackgroundService; import java.lang.ref.WeakReference; import javax.inject.Inject; import androidx.annotation.NonNull; @PerApplication public class ServiceBridge { private ...
package org.owntracks.android.support; import org.owntracks.android.injection.scopes.PerApplication; import java.lang.ref.WeakReference; import javax.inject.Inject; import androidx.annotation.NonNull; @PerApplication public class ServiceBridge { private WeakReference<ServiceBridgeInterface> serviceWeakReferen...
Fix crash when receiving reportLocation command before service is bound
Fix crash when receiving reportLocation command before service is bound
Java
epl-1.0
owntracks/android,owntracks/android,owntracks/android
7450894dca96dee2749db6cef118dd898cedd98f
src/main/java/seedu/address/commons/events/model/AddressBookChangedEvent.java
src/main/java/seedu/address/commons/events/model/AddressBookChangedEvent.java
package seedu.address.commons.events.model; import seedu.address.commons.events.BaseEvent; import seedu.address.model.ReadOnlyAddressBook; /** Indicates the AddressBook in the model has changed*/ public class AddressBookChangedEvent extends BaseEvent { public final ReadOnlyAddressBook data; public AddressBo...
package seedu.address.commons.events.model; import seedu.address.commons.events.BaseEvent; import seedu.address.model.ReadOnlyAddressBook; /** Indicates the AddressBook in the model has changed*/ public class AddressBookChangedEvent extends BaseEvent { public final ReadOnlyAddressBook data; public AddressBo...
Update address book change event to activity
Update address book change event to activity
Java
mit
CS2103AUG2016-W14-C1/main
c0672cdd9b2634a915c5f07bed1f00ed5949250e
engine/src/main/java/org/terasology/world/block/regions/BlockRegionComponent.java
engine/src/main/java/org/terasology/world/block/regions/BlockRegionComponent.java
/* * Copyright 2013 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
/* * Copyright 2013 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Fix interaction with door by replicating the BlockReginoComponent.
Fix interaction with door by replicating the BlockReginoComponent.
Java
apache-2.0
MovingBlocks/Terasology,kartikey0303/Terasology,dannyzhou98/Terasology,Felges/Terasology,kaen/Terasology,MarcinSc/Terasology,immortius/Terasology,Malanius/Terasology,samuto/Terasology,CC4401-TeraCity/TeraCity,Felges/Terasology,Halamix2/Terasology,frankpunx/Terasology,dimamo5/Terasology,neshume/Terasology,sceptross/Tera...
b1690c5384146534545a7c6b65e28e5b1e6c7ca6
MashupClient/app/src/main/java/cvut/arenaq/mashup/AlchemyApi/AlchemyApiService.java
MashupClient/app/src/main/java/cvut/arenaq/mashup/AlchemyApi/AlchemyApiService.java
package cvut.arenaq.mashup.AlchemyApi; import retrofit.Call; import retrofit.http.GET; import retrofit.http.Path; public interface AlchemyApiService { @GET("/calls/url/URLGetRankedKeywords?apikey=e9b2175fdaa36af4febe23ec32b3b9ad47154727&outputMode=json&url={url}") Call<GetRankedKeywords> getRankedKeyw...
package cvut.arenaq.mashup.AlchemyApi; import retrofit.Call; import retrofit.http.GET; import retrofit.http.Path; import retrofit.http.Query; public interface AlchemyApiService { @GET("/calls/url/URLGetRankedKeywords") Call<GetRankedKeywords> getRankedKeywords( @Query("apikey") String ap...
Fix inappropriate annotation usage in service interface
Fix inappropriate annotation usage in service interface
Java
mit
arenaq/via-mashup
8fa8cbcf9db40fea41d7a555c86428aede7f25e8
src/main/java/com/gitblit/utils/ResettableByteArrayOutputStream.java
src/main/java/com/gitblit/utils/ResettableByteArrayOutputStream.java
// Copyright (C) 2014 Tom <tw201207@gmail.com> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
// Copyright (C) 2014 Tom <tw201207@gmail.com> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
Fix a copy/paste error in a comment.
Fix a copy/paste error in a comment.
Java
apache-2.0
vitalif/gitblit,fzs/gitblit,two-ack/gitblit,fuero/gitblit,lucamilanesio/gitblit,gitblit/gitblit,paulsputer/gitblit,mystygage/gitblit,fzs/gitblit,fzs/gitblit,paulsputer/gitblit,mrjoel/gitblit,gitblit/gitblit,mrjoel/gitblit,fuero/gitblit,mrjoel/gitblit,fzs/gitblit,RainerW/gitblit,gitblit/gitblit,paladox/gitblit,mystygage...
9e393952df103184e840c8957a545d121323bd2b
opennms-webapp/src/main/java/org/opennms/web/svclayer/DistributedStatusService.java
opennms-webapp/src/main/java/org/opennms/web/svclayer/DistributedStatusService.java
package org.opennms.web.svclayer; import java.util.Date; public interface DistributedStatusService { public SimpleWebTable createStatusTable(String locationName, String applicationLabel); public SimpleWebTable createFacilityStatusTable(Date startDate, Date endDate); }
package org.opennms.web.svclayer; import java.util.Date; import org.springframework.transaction.annotation.Transactional; @Transactional(readOnly=true) public interface DistributedStatusService { public SimpleWebTable createStatusTable(String locationName, String applicationLabel); public SimpleWebTable...
Make the service layer transactional (and read-only)
Make the service layer transactional (and read-only)
Java
agpl-3.0
roskens/opennms-pre-github,aihua/opennms,aihua/opennms,rdkgit/opennms,roskens/opennms-pre-github,aihua/opennms,tdefilip/opennms,aihua/opennms,rdkgit/opennms,roskens/opennms-pre-github,tdefilip/opennms,tdefilip/opennms,roskens/opennms-pre-github,rdkgit/opennms,aihua/opennms,roskens/opennms-pre-github,tdefilip/opennms,ro...
5e4e43198046044445b222f1ffdcc9fe8412ab40
gui/src/main/java/io/bisq/gui/components/TooltipUtil.java
gui/src/main/java/io/bisq/gui/components/TooltipUtil.java
package io.bisq.gui.components; import javafx.scene.control.Labeled; import javafx.scene.control.SkinBase; import javafx.scene.control.Tooltip; import javafx.scene.text.Text; public class TooltipUtil { public static void showTooltipIfTruncated(SkinBase skinBase, Labeled labeled) { for (Object node : skin...
package io.bisq.gui.components; import javafx.scene.control.Labeled; import javafx.scene.control.SkinBase; import javafx.scene.control.Tooltip; import javafx.scene.text.Text; public class TooltipUtil { public static void showTooltipIfTruncated(SkinBase skinBase, Labeled labeled) { for (Object node : skin...
Add empty string check to prevent tooltip creation for empty strings
Add empty string check to prevent tooltip creation for empty strings
Java
agpl-3.0
bitsquare/bitsquare,bisq-network/exchange,bisq-network/exchange,bitsquare/bitsquare
7c91f1f532c4731a9019952677a925cf0cc91a4d
tool/cl.uchile.pleiad.textram/xtend-gen/cl/uchile/pleiad/scoping/TextRAMScopeProvider.java
tool/cl.uchile.pleiad.textram/xtend-gen/cl/uchile/pleiad/scoping/TextRAMScopeProvider.java
/** * generated by Xtext */ package cl.uchile.pleiad.scoping; import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider; /** * This class contains custom scoping description. * * see : http://www.eclipse.org/Xtext/documentation.html#scoping * on how and when to use it */ @SuppressWarnings("all") ...
/** * generated by Xtext */ package cl.uchile.pleiad.scoping; import ca.mcgill.cs.sel.ram.StructuralView; import ca.mcgill.cs.sel.ram.Type; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EReference; import org.eclipse.xtext.scoping.IScope; import org.eclipse.xtext.scoping.Scopes; import org.e...
Support for types using declarative scoping
Support for types using declarative scoping
Java
mit
mjorod/textram
91af2a8639031c9cf0c7bd47ce41c5cda79969f5
eu.indenica.config.runtime/src/eu/indenica/config/runtime/scoping/RuntimeScopeProvider.java
eu.indenica.config.runtime/src/eu/indenica/config/runtime/scoping/RuntimeScopeProvider.java
/* * generated by Xtext */ package eu.indenica.config.runtime.scoping; import org.eclipse.emf.ecore.EReference; import org.eclipse.xtext.scoping.IScope; import org.eclipse.xtext.scoping.Scopes; import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider; import eu.indenica.config.runtime.runtime.EventEmi...
/* * generated by Xtext */ package eu.indenica.config.runtime.scoping; import java.util.Collection; import org.eclipse.emf.ecore.EGenericType; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EReference; import org.eclipse.xtext.scoping.IScope; import org.eclipse.xtext.scoping.Scopes; import org.e...
Add proper scoping inside rules.
Add proper scoping inside rules.
Java
apache-2.0
inz/monina
da013268e6f2ba7022a7e1bf50602653427ba4a9
annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/validation/ReferenceValidator.java
annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/validation/ReferenceValidator.java
package uk.ac.ebi.quickgo.annotation.validation; import java.lang.annotation.*; import javax.validation.Constraint; import javax.validation.Payload; /** * Annotation that allows a list of strings, separated by commas to be validated as Gene Product IDs * @author Tony Wardell * Date: 14/06/2016 * Time: 12:03 * Cr...
package uk.ac.ebi.quickgo.annotation.validation; import java.lang.annotation.*; import javax.validation.Constraint; import javax.validation.Payload; /** * Annotation that allows a list of strings, separated by commas to be validated as Reference Ids (full or partial). * @author Tony Wardell * Date: 14/06/2016 * T...
Fix copy and paste error in javadoc.
Fix copy and paste error in javadoc.
Java
apache-2.0
ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE
57695a6fdcd85885f97a08ca82613277b34f9757
retrofit/src/main/java/retrofit/http/ResponseWrapper.java
retrofit/src/main/java/retrofit/http/ResponseWrapper.java
package retrofit.http; import retrofit.http.client.Response; /** * A wrapper that holds the {@link Response} and {@link Converter} response to be used by the * {@link CallbackRunnable} for success method calls on {@link Callback}. * * @author JJ Ford (jj.n.ford@gmail.com) */ final class ResponseWrapper { Resp...
package retrofit.http; import retrofit.http.client.Response; /** * A wrapper that holds the {@link Response} and {@link Converter} response to be used by the * {@link CallbackRunnable} for success method calls on {@link Callback}. * * @author JJ Ford (jj.n.ford@gmail.com) */ final class ResponseWrapper { fina...
Make response wrapper members final.
Make response wrapper members final.
Java
apache-2.0
zace-yuan/retrofit,noikiy/retrofit,timehop/retrofit,airbnb/retrofit,lgx0955/retrofit,zhupengGitHub/retrofit,siilobv/retrofit,lichblitz/retrofit,guoGavin/retrofit,aurae/retrofit,dlew/retrofit,square/retrofit,TomkeyZhang/retrofit,f2prateek/retrofit,deshion/retrofit,zheng1733/retrofit,barodapride/retrofit,pmk2429/retrofit...
623b085a12232348de504cc9e813194221b2a0c7
precipice-core/src/main/java/net/uncontended/precipice/Precipice.java
precipice-core/src/main/java/net/uncontended/precipice/Precipice.java
/* * Copyright 2016 Timothy Brooks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2016 Timothy Brooks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Add documentaiton to guard rail
Add documentaiton to guard rail
Java
apache-2.0
tbrooks8/Precipice,tbrooks8/Precipice
4a39e699c6392a98ceb4694944f084a7faadf370
src/com/lukekorth/screennotifications/ScreenNotificationsService.java
src/com/lukekorth/screennotifications/ScreenNotificationsService.java
package com.lukekorth.screennotifications; public class ScreenNotificationsService extends BaseAccessibilityService { public void onServiceConnected() { super.onServiceConnected(); } }
package com.lukekorth.screennotifications; import android.accessibilityservice.AccessibilityServiceInfo; import android.view.accessibility.AccessibilityEvent; public class ScreenNotificationsService extends BaseAccessibilityService { public void onServiceConnected() { super.onServiceConnected(); ...
Fix missing configuration for Accessibility listener on pre-Jelly Bean devices
Fix missing configuration for Accessibility listener on pre-Jelly Bean devices
Java
mit
lkorth/screen-notifications
bbfce1a8b0599f3e17fc089619063ec8406c0f60
project/Activity.java
project/Activity.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...
/* 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...
Add configurable start location to config.xml and template
Add configurable start location to config.xml and template Still possible to hardcode, there's a comment in the template showing how that can be done.
Java
apache-2.0
CrandellWS/cordova-android-template,CrandellWS/cordova-android-template,CrandellWS/cordova-android-template
4e8797d27835227a85b15918f7f376913b68fb79
src/main/java/codechicken/lib/model/PerspectiveModel.java
src/main/java/codechicken/lib/model/PerspectiveModel.java
package codechicken.lib.model; import codechicken.lib.util.TransformUtils; import com.mojang.blaze3d.vertex.PoseStack; import net.minecraft.client.renderer.block.model.ItemTransforms; import net.minecraft.client.resources.model.BakedModel; import org.jetbrains.annotations.Nullable; /** * A simple {@link BakedModel} ...
package codechicken.lib.model; import codechicken.lib.util.TransformUtils; import com.mojang.blaze3d.vertex.PoseStack; import com.mojang.math.Transformation; import com.mojang.math.Vector3f; import net.minecraft.client.renderer.block.model.ItemTransforms; import net.minecraft.client.resources.model.BakedModel; import ...
Fix issues with uneven pose stack push-pop in IItemRenderer
Fix issues with uneven pose stack push-pop in IItemRenderer
Java
lgpl-2.1
TheCBProject/CodeChickenLib
05bab31d16aafba17546f5c9e2d222838045a9ed
admin-web/src/main/java/io/fundrequest/platform/admin/AdminApplication.java
admin-web/src/main/java/io/fundrequest/platform/admin/AdminApplication.java
package io.fundrequest.platform.admin; import io.fundrequest.common.infrastructure.IgnoreDuringComponentScan; import io.fundrequest.core.FundRequestCore; import io.fundrequest.platform.github.FundRequestGithub; import io.fundrequest.platform.keycloak.FundRequestKeycloak; import io.fundrequest.platform.profile.ProfileA...
package io.fundrequest.platform.admin; import io.fundrequest.common.FundRequestCommon; import io.fundrequest.common.infrastructure.IgnoreDuringComponentScan; import io.fundrequest.core.FundRequestCore; import io.fundrequest.platform.github.FundRequestGithub; import io.fundrequest.platform.keycloak.FundRequestKeycloak;...
Fix issue with startup of admin-web
Fix issue with startup of admin-web
Java
mit
FundRequest/platform,FundRequest/platform,FundRequest/platform,FundRequest/platform,FundRequest/platform
096395f0c7f98e12375385cd88febf2ee4cd9b53
extensions/opus/src/test/java/com/google/android/exoplayer2/ext/opus/DefaultRenderersFactoryTest.java
extensions/opus/src/test/java/com/google/android/exoplayer2/ext/opus/DefaultRenderersFactoryTest.java
/* * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Add @DoNotInstrument to Opus extension test
Add @DoNotInstrument to Opus extension test PiperOrigin-RevId: 370740311
Java
apache-2.0
androidx/media,amzn/exoplayer-amazon-port,google/ExoPlayer,google/ExoPlayer,ened/ExoPlayer,amzn/exoplayer-amazon-port,androidx/media,ened/ExoPlayer,ened/ExoPlayer,androidx/media,amzn/exoplayer-amazon-port,google/ExoPlayer
71338d3224a8f05de67b0db01d5e0fd1b0cc69a0
src/main/java/com/jvm_bloggers/frontend/public_area/common_layout/RightFrontendSidebarBackingBean.java
src/main/java/com/jvm_bloggers/frontend/public_area/common_layout/RightFrontendSidebarBackingBean.java
package com.jvm_bloggers.frontend.public_area.common_layout; import com.jvm_bloggers.domain.query.newsletter_issue_for_listing.NewsletterIssueForListing; import com.jvm_bloggers.domain.query.newsletter_issue_for_listing.NewsletterIssueForListingQuery; import javaslang.collection.Seq; import org.springframework.beans...
package com.jvm_bloggers.frontend.public_area.common_layout; import com.jvm_bloggers.domain.query.newsletter_issue_for_listing.NewsletterIssueForListing; import com.jvm_bloggers.domain.query.newsletter_issue_for_listing.NewsletterIssueForListingQuery; import javaslang.collection.Seq; import lombok.NoArgsConstructor;...
Add no-args constructor to avoid NPE during page de-serialization
Add no-args constructor to avoid NPE during page de-serialization
Java
mit
szpak/jvm-bloggers,tdziurko/jvm-bloggers,szpak/jvm-bloggers,tdziurko/jvm-bloggers,jvm-bloggers/jvm-bloggers,jvm-bloggers/jvm-bloggers,tdziurko/jvm-bloggers,kraluk/jvm-bloggers,jvm-bloggers/jvm-bloggers,kraluk/jvm-bloggers,kraluk/jvm-bloggers,kraluk/jvm-bloggers,szpak/jvm-bloggers,jvm-bloggers/jvm-bloggers,szpak/jvm-blo...
63cb2d0346f1ed7eeab9902d92da80dac3d6af60
searchlib/src/test/java/com/yahoo/searchlib/rankingexpression/integration/ml/BatchNormImportTestCase.java
searchlib/src/test/java/com/yahoo/searchlib/rankingexpression/integration/ml/BatchNormImportTestCase.java
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.searchlib.rankingexpression.integration.ml; import com.yahoo.searchlib.rankingexpression.RankingExpression; import org.junit.Test; import static org.junit.Assert.assertEquals; impor...
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.searchlib.rankingexpression.integration.ml; import com.yahoo.searchlib.rankingexpression.RankingExpression; import org.junit.Test; import static org.junit.Assert.assertEquals; impor...
Test correct output in batch norm case
Test correct output in batch norm case
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
6d0477f5a592bdacf1850c914899e123ce2aa518
controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/noderepository/NodeHistory.java
controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/noderepository/NodeHistory.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.hosted.controller.api.integration.noderepository; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com....
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.controller.api.integration.noderepository; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com....
Add agent to wire class
Add agent to wire class
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
2640fb3886701af4f061bc2fe3d319d23083487a
src/main/java/drive/change/model/ChangeTypes.java
src/main/java/drive/change/model/ChangeTypes.java
package drive.change.model; /** * JDrive * Created by David Maignan <davidmaignan@gmail.com> on 15-08-21. */ public enum ChangeTypes { DELETE, MOVE, VERSION, NULL, FILE_UPDATE, FOLDER_UPDATE, DOCUMENT, TRASHED; }
package drive.change.model; /** * JDrive * Created by David Maignan <davidmaignan@gmail.com> on 15-08-21. */ public enum ChangeTypes { DELETE, MOVE, VERSION, NULL, FILE_UPDATE, FOLDER_UPDATE, DOCUMENT, TRASHED, NEW_FILE, NEW_FOLDER, UNTRASHED; }
Add new change types: NEW_FILE, NEW_FOLDER, UNTRASHED
Add new change types: NEW_FILE, NEW_FOLDER, UNTRASHED
Java
apache-2.0
davidmaignan/JDrive
f2a4362f52cf4c4309bedfec292abdb3d5ea0146
c2s-ui-api/src/main/java/gov/samhsa/c2s/c2suiapi/service/PhrServiceImpl.java
c2s-ui-api/src/main/java/gov/samhsa/c2s/c2suiapi/service/PhrServiceImpl.java
package gov.samhsa.c2s.c2suiapi.service; import com.netflix.hystrix.exception.HystrixRuntimeException; import feign.FeignException; import gov.samhsa.c2s.c2suiapi.infrastructure.PhrClient; import gov.samhsa.c2s.c2suiapi.service.exception.NoDocumentsFoundException; import org.springframework.beans.factory.annotation.Au...
package gov.samhsa.c2s.c2suiapi.service; import com.netflix.hystrix.exception.HystrixRuntimeException; import feign.FeignException; import gov.samhsa.c2s.c2suiapi.infrastructure.PhrClient; import gov.samhsa.c2s.c2suiapi.service.exception.NoDocumentsFoundException; import org.springframework.beans.factory.annotation.Au...
Split into declaration and assignment
Split into declaration and assignment #13763:As a developer, I will have implemented the Try My Policy UI and integrated with backend [v3.0]
Java
apache-2.0
bhits-dev/c2s-ui-api-test,bhits-dev/c2s-ui-api-test
818d6c9c98512088232bef0921074823afeff51e
src/Problem033.java
src/Problem033.java
// Project Euler problem 33 public class Problem033 { public static void main(String[] args) { System.out.println(); } }
import java.util.ArrayList; import java.util.HashSet; // Project Euler problem 33 // Solved on 12/16/2016 public class Problem033 { public static void main(String[] args) { // numerator and denominator products of the valid fractions int nCombined = 1; int dCombined = 1; //...
Add solution to problem 33
Add solution to problem 33
Java
mit
nsun200/ProjectEuler
5bbfc6cf1a6ad0852e99cdbfdcd9373a25ad61c8
oasis-webapp/src/main/java/oasis/services/authn/CredentialsService.java
oasis-webapp/src/main/java/oasis/services/authn/CredentialsService.java
package oasis.services.authn; import javax.inject.Inject; import oasis.model.authn.ClientType; import oasis.model.authn.Credentials; import oasis.model.authn.CredentialsRepository; import oasis.services.authn.login.PasswordHasher; import oasis.services.authn.login.SShaPasswordHasher; public class CredentialsService ...
package oasis.services.authn; import javax.inject.Inject; import oasis.model.authn.ClientType; import oasis.model.authn.Credentials; import oasis.model.authn.CredentialsRepository; import oasis.services.authn.login.PasswordHasher; import oasis.services.authn.login.SCryptPasswordHasher; public class CredentialsServic...
Fix : Use SCryptPasswordHaser instead of SShaPasswordHasher
Fix : Use SCryptPasswordHaser instead of SShaPasswordHasher Change-Id: I03faaf863d0034a45dde318b877c02e7e4acb00a
Java
agpl-3.0
ozwillo/ozwillo-kernel,ozwillo/ozwillo-kernel,ozwillo/ozwillo-kernel
81fb967d1d9075992796c5f13a0cc05274a7ce78
server/src/test/java/com/krillsson/sysapi/auth/BasicAuthorizerTest.java
server/src/test/java/com/krillsson/sysapi/auth/BasicAuthorizerTest.java
package com.krillsson.sysapi.auth; import junit.framework.TestCase; public class BasicAuthorizerTest extends TestCase { }
package com.krillsson.sysapi.auth; import com.krillsson.sysapi.UserConfiguration; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; public class BasicAuthorizerTest { private final String correctUser = "user"; private Use...
Add trivial unit tests for BasicAuthorizer
Add trivial unit tests for BasicAuthorizer
Java
apache-2.0
Krillsson/sys-api,Krillsson/sys-api
b2515838f89a70ffb8703880dacdfdf043fa60a6
src/main/java/editor/views/ElementTreeView.java
src/main/java/editor/views/ElementTreeView.java
package editor.views; import editor.ElementTreeModel; import editor.controllers.ElementTreeController; import utility.Observer; import xml.Element; import javax.swing.*; /** * The ElementTreeView controls the section of the GUI that displays the tree * representation of an XML element tree. */ public class Elemen...
package editor.views; import editor.ElementTreeModel; import editor.controllers.ElementTreeController; import utility.Observer; import xml.Element; import javax.swing.*; /** * The ElementTreeView controls the section of the GUI that displays the tree * representation of an XML element tree. */ public class Elemen...
Add function to get selected tree node
Add function to get selected tree node
Java
mpl-2.0
dwjackson/EditSomeXML
4c2bfee99fb9f628e467aca0abbbbe03b1a48d9a
lumongo-storage/src/main/java/org/lumongo/storage/lucene/NosqlDirectory.java
lumongo-storage/src/main/java/org/lumongo/storage/lucene/NosqlDirectory.java
package org.lumongo.storage.lucene; /** * 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, Ve...
package org.lumongo.storage.lucene; /** * 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, Ve...
Add close to NoSQL directory.
Add close to NoSQL directory.
Java
apache-2.0
lumongo/lumongo,lumongo/lumongo,lumongo/lumongo,lumongo/lumongo
b861ab0d1cde2cd8f614c52c231008ddbb82a199
src/main/java/com/imcode/imcms/mapping/jpa/doc/content/VersionedContent.java
src/main/java/com/imcode/imcms/mapping/jpa/doc/content/VersionedContent.java
package com.imcode.imcms.mapping.jpa.doc.content; import com.imcode.imcms.mapping.jpa.doc.Version; import javax.persistence.*; import javax.validation.constraints.NotNull; @MappedSuperclass public abstract class VersionedContent { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer i...
package com.imcode.imcms.mapping.jpa.doc.content; import com.imcode.imcms.mapping.jpa.doc.Version; import javax.persistence.*; import javax.validation.constraints.NotNull; @MappedSuperclass public abstract class VersionedContent { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer i...
Apply new UI to the admin panel and editors: - Versioned content no more stealing it's version's id.
IMCMS-233: Apply new UI to the admin panel and editors: - Versioned content no more stealing it's version's id.
Java
agpl-3.0
imCodePartnerAB/imcms,imCodePartnerAB/imcms,imCodePartnerAB/imcms
149e8ff5132a8f79e40c6e1d6e0991110b04aa1b
vespa-athenz/src/main/java/com/yahoo/vespa/athenz/api/AthenzAccessToken.java
vespa-athenz/src/main/java/com/yahoo/vespa/athenz/api/AthenzAccessToken.java
// Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.athenz.api; import java.util.Objects; /** * Represents an Athenz Access Token * * @author bjorncs */ public class AthenzAccessToken { public static final String HTTP_HEADER...
// Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.athenz.api; import java.util.Objects; /** * Represents an Athenz Access Token * * @author bjorncs */ public class AthenzAccessToken { public static final String HTTP_HEADER...
Access tokens should not be an empty string
Access tokens should not be an empty string
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
9c828981cf19cea7e82b4a542d4c2d39ac754d13
vito/core/src/main/java/com/facebook/fresco/vito/core/FrescoExperiments.java
vito/core/src/main/java/com/facebook/fresco/vito/core/FrescoExperiments.java
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.fresco.vito.core; import javax.annotation.Nullable; /** Fresco experiment class with default values. Overrid...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.fresco.vito.core; import javax.annotation.Nullable; /** Fresco experiment class with default values. Overrid...
Add options to use bind/unbind callbacks as opposed to mount/unmount
Add options to use bind/unbind callbacks as opposed to mount/unmount Reviewed By: oprisnik Differential Revision: D15122179 fbshipit-source-id: 28b734a0fb0899b4a28e9cdacb31658480149ca2
Java
mit
facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco
ea48c2d6765736b2429658b82a10988995ed68ad
annotations/src/main/java/com/google/errorprone/annotations/MustBeClosed.java
annotations/src/main/java/com/google/errorprone/annotations/MustBeClosed.java
/* * Copyright 2016 The Error Prone Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
/* * Copyright 2016 The Error Prone Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
Update javadoc to cover desugaring
Update javadoc to cover desugaring ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=258431740
Java
apache-2.0
google/error-prone,cushon/error-prone,cushon/error-prone,google/error-prone,cushon/error-prone,cushon/error-prone
80686f8933bf9580d8371f5b3161e44d25e8fb9a
2019/src/day01/Solution.java
2019/src/day01/Solution.java
package day01; import common.BaseSolution; import common.InputReader; public class Solution extends BaseSolution implements common.Solution { public static void main(String[] args) { new Solution().run(); } public String part1() { int mass, totalFuel = 0; InputReader reader = get...
package day01; import common.BaseSolution; import common.InputReader; public class Solution extends BaseSolution implements common.Solution { public static void main(String[] args) { new Solution().run(); } class BaseFuelCalculator { public int calculateFuel() { int mass, tot...
Refactor day 1 into reusable FuelCalculator resources
Refactor day 1 into reusable FuelCalculator resources
Java
mit
loisaidasam/adventofcode,loisaidasam/adventofcode,loisaidasam/adventofcode,loisaidasam/adventofcode,loisaidasam/adventofcode
bc47d238733981d957a820f4c66f7128fca80663
src/main/java/com/googlesource/gerrit/plugins/replication/RemoteSiteUser.java
src/main/java/com/googlesource/gerrit/plugins/replication/RemoteSiteUser.java
// Copyright (C) 2009 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) 2009 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 ...
Adjust to changes in Gerrit core
Adjust to changes in Gerrit core Change-Id: I76bfd3ebc04f7f094cefd3c169efbb579ec403ae
Java
apache-2.0
qtproject/qtqa-gerrit-plugin-replication,GerritCodeReview/plugins_replication
0bb8ff8d2e1821b326258e07b091ed25d6202597
Magic/src/main/java/com/elmakers/mine/bukkit/protection/PvPManagerManager.java
Magic/src/main/java/com/elmakers/mine/bukkit/protection/PvPManagerManager.java
package com.elmakers.mine.bukkit.protection; import me.NoChance.PvPManager.PvPManager; import me.NoChance.PvPManager.PvPlayer; import org.bukkit.Location; import org.bukkit.entity.Player; import org.bukkit.plugin.Plugin; /** * This a manager specifically for the PvPManager plugin. * * This is why it has kind of a ...
package com.elmakers.mine.bukkit.protection; import me.NoChance.PvPManager.PvPManager; import me.NoChance.PvPManager.PvPlayer; import org.bukkit.Location; import org.bukkit.entity.Player; import org.bukkit.plugin.Plugin; /** * This a manager specifically for the PvPManager plugin. * * This is why it has kind of a ...
Fix integration with premium version of PvPManager
Fix integration with premium version of PvPManager
Java
mit
elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin
16f92312c5a011d4e6622df356b35435f3b680c1
src/main/java/info/u_team/u_team_core/util/registry/BlockDeferredRegister.java
src/main/java/info/u_team/u_team_core/util/registry/BlockDeferredRegister.java
package info.u_team.u_team_core.util.registry; import java.util.function.Supplier; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.fml.RegistryObject; import net.minecraftforge.registries.*; public class BlockDeferredRegist...
package info.u_team.u_team_core.util.registry; import java.util.function.Supplier; import org.apache.commons.lang3.tuple.Pair; import info.u_team.u_team_core.api.registry.IUBlockRegistryType; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraftforge.eventbus.api.IEventBus; import ne...
Add register method for both
Add register method for both
Java
apache-2.0
MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core
9e2a69cb631623ae004dff094ff0fbc9e952984f
src/main/java/org/cyclops/integratedtunnels/part/PartStatePlayerSimulator.java
src/main/java/org/cyclops/integratedtunnels/part/PartStatePlayerSimulator.java
package org.cyclops.integratedtunnels.part; import net.minecraft.world.World; import net.minecraft.world.WorldServer; import org.cyclops.integrateddynamics.api.part.PartTarget; import org.cyclops.integrateddynamics.core.part.write.PartStateWriterBase; import org.cyclops.integratedtunnels.core.ExtendedFakePlayer; impor...
package org.cyclops.integratedtunnels.part; import net.minecraft.world.World; import net.minecraft.world.WorldServer; import org.cyclops.integrateddynamics.api.part.PartTarget; import org.cyclops.integrateddynamics.core.part.write.PartStateWriterBase; import org.cyclops.integratedtunnels.core.ExtendedFakePlayer; impor...
Set default player simulator tickrate to 10 ticks
Set default player simulator tickrate to 10 ticks
Java
mit
CyclopsMC/IntegratedTunnels
05294e2fc5b5f0f84ea400e0379db36b281fa22b
subprojects/core/src/main/groovy/org/gradle/configuration/InitScriptTarget.java
subprojects/core/src/main/groovy/org/gradle/configuration/InitScriptTarget.java
/* * Copyright 2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Use correct Script subtypes for init scripts.
Use correct Script subtypes for init scripts.
Java
apache-2.0
lsmaira/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,gstevey/gradle,gstevey/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,gstevey/gradle,robinverduijn/gra...
5c95eb559142a36f6e84c7db124a3a30408904b1
src/main/java/party/lemons/anima/energy/IAnimaStorage.java
src/main/java/party/lemons/anima/energy/IAnimaStorage.java
package party.lemons.anima.energy; import net.minecraftforge.energy.IEnergyStorage; /** * Created by Sam on 19/06/2017. * * * Anima Energy is basically forge energy, but doesn't accept other energy types */ public interface IAnimaStorage extends IEnergyStorage{}
package party.lemons.anima.energy; import net.minecraftforge.energy.IEnergyStorage; /** * Created by Sam on 19/06/2017. * * * Anima Energy is basically forge energy, but doesn't accept other energy types */ public interface IAnimaStorage { /** * Adds energy to the storage. Returns quantity of energy that was...
Fix Anima Energy thinking it was Forge Energy
Fix Anima Energy thinking it was Forge Energy
Java
mit
Lemonszz/Anima-Mundi
2044e5ed29fd356b17e437fb360c3c5311f701b9
src/forager/server/ListManager.java
src/forager/server/ListManager.java
package forager.server; import java.io.BufferedOutputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintWriter; /** * Handles the active and completed task lists and allows them to be flushed * and synced to disk. * * @author malensek */ public class ListManager { publ...
package forager.server; import java.io.BufferedOutputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintWriter; /** * Handles the active and completed task lists and allows them to be flushed * and synced to disk. * * @author malensek */ public class ListManager { publ...
Add checks for list files
Add checks for list files
Java
bsd-2-clause
malensek/forager,malensek/forager
819ee822b38b77bd1998490759fa15cc1accb716
src/EloRating/EloRating.java
src/EloRating/EloRating.java
package EloRating; public class EloRating { public static int newRating(int ratingPlayer, int ratingPlayerTwo, int scorePlayer) { double diffRating = ratingPlayerTwo - ratingPlayer; double expectedScorePlayer = 1.0/(1.0 + Math.pow(10, ((double)(diffRating))/400.0)); return (int)( ratingPlayer + calculateKfacto...
package EloRating; public class EloRating { public static int DEFAULT_ELO; public static int newRating(int ratingPlayer, int ratingPlayerTwo, int scorePlayer) { double diffRating = ratingPlayerTwo - ratingPlayer; double expectedScorePlayer = 1.0/(1.0 + Math.pow(10, ((double)(diffRating))/400.0)); return (in...
Add constant default elo rating
Add constant default elo rating
Java
apache-2.0
Raane/rate-me
91c82c73f3dd863d1ce61557bc0bfbf5d1dd4c5f
androlog/src/main/java/de/akquinet/android/androlog/reporter/Reporter.java
androlog/src/main/java/de/akquinet/android/androlog/reporter/Reporter.java
package de.akquinet.android.androlog.reporter; import java.util.Properties; import android.content.Context; public interface Reporter { public abstract void configure(Properties configuration); public abstract void send(Context context, String message, Throwable error); }
package de.akquinet.android.androlog.reporter; import java.util.Properties; import de.akquinet.android.androlog.Log; import android.content.Context; /** * Reporter Interface. * A Reporter sends a Report to a specific endpoint * (url, mail ...). * Reporter instances are created by {@link Log} according * to the...
Add javadoc Send return a boolean to detect failed sendings
Add javadoc Send return a boolean to detect failed sendings
Java
apache-2.0
akquinet/androlog
6236798a3fce3c4bdbd8ce340e20db16cd67e03a
ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java
ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.config; /** * Hi there, traveller! This configuration class is not meant to be used by end-users of R...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.config; /** * Hi there, traveller! This configuration class is not meant to be used by end-users of R...
Create feature flag to log extra data in ReactWebView
Create feature flag to log extra data in ReactWebView Summary: This diff creates a new react feature flag to enable extra logging on React Web Views Reviewed By: RSNara Differential Revision: D15729871 fbshipit-source-id: 931d4a1b022c6a405228bf896b50ecc7a44478d1
Java
bsd-3-clause
hammerandchisel/react-native,exponentjs/react-native,myntra/react-native,javache/react-native,hoangpham95/react-native,facebook/react-native,myntra/react-native,janicduplessis/react-native,hoangpham95/react-native,exponent/react-native,hammerandchisel/react-native,hoangpham95/react-native,myntra/react-native,exponent/r...
37b19d7c7cf30e929b53764d51f73163a5b0d240
vespa-athenz/src/main/java/com/yahoo/vespa/athenz/api/AthenzAccessToken.java
vespa-athenz/src/main/java/com/yahoo/vespa/athenz/api/AthenzAccessToken.java
// Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.athenz.api; import java.util.Objects; /** * Represents an Athenz Access Token * * @author bjorncs */ public class AthenzAccessToken { public static final String HTTP_HEADER...
// Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.athenz.api; import java.util.Objects; /** * Represents an Athenz Access Token * * @author bjorncs */ public class AthenzAccessToken { public static final String HTTP_HEADER...
Add getter returning access token with bearer prefix
Add getter returning access token with bearer prefix
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
4ab0c8baacc722e257fa895e645bb21b54fc2dc3
org.osgi.test.cases.wireadmin/src/org/osgi/test/cases/wireadmin/tbc/FilteredProducerImpl.java
org.osgi.test.cases.wireadmin/src/org/osgi/test/cases/wireadmin/tbc/FilteredProducerImpl.java
package org.osgi.test.cases.wireadmin.tbc; import org.osgi.service.wireadmin.*; public class FilteredProducerImpl implements Producer { protected Wire wire = null; /** * This method should not be called in the test. * * @return value out of range to indicate the wrong call */ public Object polled(Wire wi...
package org.osgi.test.cases.wireadmin.tbc; import org.osgi.service.wireadmin.*; public class FilteredProducerImpl implements Producer { protected Wire wire = null; /** * This method should not be called in the test. * * @return value out of range to indicate the wrong call */ public Object polled(Wire wi...
Fix failure when run on really slow devices/PCs
Fix failure when run on really slow devices/PCs
Java
apache-2.0
osgi/osgi,osgi/osgi,osgi/osgi,osgi/osgi,osgi/osgi,osgi/osgi,osgi/osgi,osgi/osgi
75fd032d96ee016bdd86ce6ca15fd872c41b7bb6
src/test/ge/edu/freeuni/sdp/iot/service/camera_object_recognizer/service/ObjectServiceTest.java
src/test/ge/edu/freeuni/sdp/iot/service/camera_object_recognizer/service/ObjectServiceTest.java
package ge.edu.freeuni.sdp.iot.service.camera_object_recognizer.service; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.JerseyTest; import org.junit.Before; import javax.ws.rs.core.Application; import static org.junit.Assert.*; public class ObjectServiceTest extends JerseyTest {...
package ge.edu.freeuni.sdp.iot.service.camera_object_recognizer.service; import ge.edu.freeuni.sdp.iot.service.camera_object_recognizer.data.FakeRepository; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.JerseyTest; import org.junit.Before; import org.junit.Test; import javax.ws.r...
Add stub tests for ObjectService
Add stub tests for ObjectService
Java
mit
freeuni-sdp/iot-camera-object-recognizer
5e3a7adf2310c65a0d12bf52d70ae77740f63f4d
lightning-core/src/main/java/uk/co/automatictester/lightning/core/reporters/TestSetReporter.java
lightning-core/src/main/java/uk/co/automatictester/lightning/core/reporters/TestSetReporter.java
package uk.co.automatictester.lightning.core.reporters; import uk.co.automatictester.lightning.core.state.TestSet; public class TestSetReporter { public static String getTestSetExecutionSummaryReport(TestSet testSet) { int testCount = testSet.getTestCount(); int passedTestCount = testSet.getPassC...
package uk.co.automatictester.lightning.core.reporters; import uk.co.automatictester.lightning.core.state.TestSet; public class TestSetReporter { private TestSetReporter() { } public static String getTestSetExecutionSummaryReport(TestSet testSet) { int testCount = testSet.getTestCount(); ...
Enforce non-instantiability of utility classes with private constructors
Enforce non-instantiability of utility classes with private constructors
Java
mit
automatictester/lightning,automatictester/lightning
dab3771d35c93e4c3b18e14caddea5e1e185b238
src/main/java/com/kodcu/other/ExtensionFilters.java
src/main/java/com/kodcu/other/ExtensionFilters.java
package com.kodcu.other; import javafx.stage.FileChooser; /** * Created by usta on 23.08.2015. */ public class ExtensionFilters { public final static FileChooser.ExtensionFilter HTML = new FileChooser.ExtensionFilter("HTML", "*.html"); public final static FileChooser.ExtensionFilter PDF = new FileChooser.E...
package com.kodcu.other; import javafx.stage.FileChooser; /** * Created by usta on 23.08.2015. */ public class ExtensionFilters { public final static FileChooser.ExtensionFilter HTML = new FileChooser.ExtensionFilter("HTML", "*.html"); public final static FileChooser.ExtensionFilter PDF = new FileChooser.E...
Update ExtensionFilter for asciidoc and markdown
Update ExtensionFilter for asciidoc and markdown
Java
apache-2.0
asciidocfx/AsciidocFX,lefou/AsciidocFX,asciidocfx/AsciidocFX,asciidocfx/AsciidocFX,lefou/AsciidocFX,asciidocfx/AsciidocFX
4ba479984be65dffcbc4066f8cdf0c896a2403d0
src/test/java/com/mijecu25/dsa/TestNode.java
src/test/java/com/mijecu25/dsa/TestNode.java
package com.mijecu25.dsa; import org.junit.Assert; import org.junit.Test; /** * This is the Node test class. * * @author Miguel Velez * @version 0.2.1 * */ public class TestNode { Node node = new Node(6, null); /** * Test the node constructor. */ @Test public void TestNodeConstructor() { // Ch...
package com.mijecu25.dsa; import org.junit.Assert; import org.junit.Test; /** * This is the Node test class. * * @author Miguel Velez * @version 0.3 * */ public class TestNode { Node first = new Node(6, null); Node second = new Node("Dog", null); /** * Test the node constructor. */ @Test public v...
Test get and set next node
Test get and set next node
Java
mit
mijecu25/dsa
0c293a54874e708538f7564d48eb160c71f2ebfa
library/src/main/java/com/novoda/downloadmanager/CallbackThrottleByTime.java
library/src/main/java/com/novoda/downloadmanager/CallbackThrottleByTime.java
package com.novoda.downloadmanager; import java.util.Timer; import java.util.TimerTask; class CallbackThrottleByTime implements CallbackThrottle { private final long periodInMillis; private static final long DELAY = 0; private DownloadBatchStatus downloadBatchStatus; private Timer timer; privat...
package com.novoda.downloadmanager; import java.util.Timer; import java.util.TimerTask; class CallbackThrottleByTime implements CallbackThrottle { private static final long DELAY_IN_MILLIS = 0; private DownloadBatchStatus downloadBatchStatus; private Timer timer; private TimerTask timerTask; pri...
Add time unit to DELAY.
Add time unit to DELAY.
Java
apache-2.0
novoda/download-manager
95e3fd4bfda8ce76d02dd4b38be7cf903397e152
sample/src/main/java/com/davidferrand/subappbarpanelsample/MainActivity.java
sample/src/main/java/com/davidferrand/subappbarpanelsample/MainActivity.java
package com.davidferrand.subappbarpanelsample; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.ImageView; import com.davidferrand.subappbarpanel.SubAppBarPanel; public class MainActivity extends AppCo...
package com.davidferrand.subappbarpanelsample; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.util.Log; import android.view.View; import android.widget.ImageView; import com.davidferrand.subappbarpanel.SubAppBarPanel; public class M...
Add logs for listener callbacks
Add logs for listener callbacks
Java
mit
dadouf/SubAppBarPanel
c8255801832d7c8482975ed025d87502aff30d2e
CountAndFilterWords/src/com/continuuity/examples/countandfilterwords/Tokenizer.java
CountAndFilterWords/src/com/continuuity/examples/countandfilterwords/Tokenizer.java
package com.continuuity.examples.countandfilterwords; import com.continuuity.api.annotation.Output; import com.continuuity.api.flow.flowlet.AbstractFlowlet; import com.continuuity.api.flow.flowlet.OutputEmitter; public class Tokenizer extends AbstractFlowlet { @Output("tokens") private OutputEmitter<String> toke...
package com.continuuity.examples.countandfilterwords; import com.continuuity.api.annotation.Output; import com.continuuity.api.flow.flowlet.AbstractFlowlet; import com.continuuity.api.flow.flowlet.OutputEmitter; public class Tokenizer extends AbstractFlowlet { @Output("tokens") private OutputEmitter<String> toke...
Update to make countAll count tokens not lines
Update to make countAll count tokens not lines
Java
apache-2.0
hsaputra/cdap,chtyim/cdap,anthcp/cdap,mpouttuclarke/cdap,caskdata/cdap,chtyim/cdap,chtyim/cdap,caskdata/cdap,anthcp/cdap,mpouttuclarke/cdap,anthcp/cdap,caskdata/cdap,caskdata/cdap,hsaputra/cdap,caskdata/cdap,mpouttuclarke/cdap,anthcp/cdap,chtyim/cdap,anthcp/cdap,hsaputra/cdap,hsaputra/cdap,chtyim/cdap,caskdata/cdap,cht...
c39554e98b2a4afe79f33cc14adfdc88a3996b16
core/src/main/java/com/airbnb/aerosolve/core/transforms/TransformFactory.java
core/src/main/java/com/airbnb/aerosolve/core/transforms/TransformFactory.java
package com.airbnb.aerosolve.core.transforms; import com.google.common.base.CaseFormat; import com.typesafe.config.Config; /** * Created by hector_yee on 8/25/14. */ public class TransformFactory { public static Transform createTransform(Config config, String key) { if (config == null || key == null) { ...
package com.airbnb.aerosolve.core.transforms; import com.google.common.base.CaseFormat; import com.typesafe.config.Config; /** * Created by hector_yee on 8/25/14. */ public class TransformFactory { public static Transform createTransform(Config config, String key) { if (config == null || key == null) { ...
Throw exception if transform not found
Throw exception if transform not found Fatal exception should be thrown if transform fails to initialize instead of fail silently.
Java
apache-2.0
TDDFT/aerosolve,airbnb/aerosolve,TDDFT/aerosolve,airbnb/aerosolve
e5dca7e1de67a00e606f7f7215fc99f6bf084495
config/src/main/java/com/yahoo/vespa/config/JRTMethods.java
config/src/main/java/com/yahoo/vespa/config/JRTMethods.java
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.config; import com.yahoo.jrt.Method; import com.yahoo.jrt.Request; /** * Defines methods used for RPC config requests. */ public class JRTMethods { public static final ...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.config; import com.yahoo.jrt.Method; import com.yahoo.jrt.MethodHandler; import com.yahoo.jrt.Request; /** * Defines methods used for RPC config requests. */ public class JR...
Add createConfigV3GetConfigMethod overload taking MethodHandler
Add createConfigV3GetConfigMethod overload taking MethodHandler
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
e5832a4a52f0752068f0c58fc80aeddce55615ad
bridje-core/src/test/java/org/bridje/core/ioc/test/ContextListenerGeneric.java
bridje-core/src/test/java/org/bridje/core/ioc/test/ContextListenerGeneric.java
/* * Copyright 2015 Bridje Framework. * * 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 agr...
/* * Copyright 2015 Bridje Framework. * * 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 agr...
Change the text on the test
Change the text on the test
Java
apache-2.0
bridje/bridje-framework,touwolf/bridje-framework,bridje/bridje-framework,bridje/bridje-framework,touwolf/bridje-framework
7effed9bb8096bddd0403bc20abbdea63a82809f
src/main/java/com/elmakers/mine/bukkit/magicworlds/listener/EntitySpawnListener.java
src/main/java/com/elmakers/mine/bukkit/magicworlds/listener/EntitySpawnListener.java
package com.elmakers.mine.bukkit.magicworlds.listener; import com.elmakers.mine.bukkit.magicworlds.MagicWorld; import com.elmakers.mine.bukkit.magicworlds.MagicWorldsController; import org.bukkit.entity.LivingEntity; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.L...
package com.elmakers.mine.bukkit.magicworlds.listener; import com.elmakers.mine.bukkit.magicworlds.MagicWorld; import com.elmakers.mine.bukkit.magicworlds.MagicWorldsController; import org.bukkit.entity.LivingEntity; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.L...
Change priority to ignore cancelled spawn events
Change priority to ignore cancelled spawn events
Java
mit
elBukkit/MagicWorlds
b8d2ea157943b0c0ca22631d65b24d2b05cd1207
src/main/java/de/flux/playground/deckcompare/analyze/CardConflictAnalyzer.java
src/main/java/de/flux/playground/deckcompare/analyze/CardConflictAnalyzer.java
package de.flux.playground.deckcompare.analyze; import de.flux.playground.deckcompare.dto.Card; public final class CardConflictAnalyzer { public static boolean conflicted(Card card, Card otherCard) { boolean isConflicted = false; if (card.equals(otherCard)) { int overallQunatity = c...
package de.flux.playground.deckcompare.analyze; import de.flux.playground.deckcompare.dto.Card; public final class CardConflictAnalyzer { private CardConflictAnalyzer() { } public static boolean conflicted(Card card, Card otherCard) { boolean isConflicted = false; if (card.equals(o...
Add private constructor to prevent instantiation
Add private constructor to prevent instantiation
Java
apache-2.0
JLengenfeld/deckcompare,JLengenfeld/deckcompare,JLengenfeld/deckcompare
400f8656829ced4893bb31438b4d7d22c32044c9
src/main/java/com/github/games647/lagmonitor/listeners/BlockingConnectionSelector.java
src/main/java/com/github/games647/lagmonitor/listeners/BlockingConnectionSelector.java
package com.github.games647.lagmonitor.listeners; import com.github.games647.lagmonitor.LagMonitor; import java.io.IOException; import java.net.Proxy; import java.net.ProxySelector; import java.net.SocketAddress; import java.net.URI; import java.util.List; import java.util.logging.Level; import org.bukkit.Bukkit; pu...
package com.github.games647.lagmonitor.listeners; import com.github.games647.lagmonitor.LagMonitor; import java.io.IOException; import java.net.Proxy; import java.net.ProxySelector; import java.net.SocketAddress; import java.net.URI; import java.util.List; import java.util.logging.Level; import org.bukkit.Bukkit; p...
Fix showing duplicate http blocking messages, because a http connection
Fix showing duplicate http blocking messages, because a http connection is also a socket connection
Java
mit
games647/LagMonitor
8ebf9e62be0107957f868578fe704f05fde6329f
view/src/main/java/org/xcolab/view/pages/contestmanagement/beans/BatchRegisterBean.java
view/src/main/java/org/xcolab/view/pages/contestmanagement/beans/BatchRegisterBean.java
package org.xcolab.view.pages.contestmanagement.beans; import org.hibernate.validator.constraints.NotBlank; import java.io.Serializable; public class BatchRegisterBean implements Serializable { @NotBlank private Boolean asGuests; @NotBlank private String batchText; public String getBatchText()...
package org.xcolab.view.pages.contestmanagement.beans; import org.hibernate.validator.constraints.NotBlank; import java.io.Serializable; public class BatchRegisterBean implements Serializable { @NotBlank private boolean asGuests; @NotBlank private String batchText; public String getBatchText()...
Fix null pointer error for asGuests in batchRegister
Fix null pointer error for asGuests in batchRegister
Java
mit
CCI-MIT/XCoLab,CCI-MIT/XCoLab,CCI-MIT/XCoLab,CCI-MIT/XCoLab
59f46dbd8e986f40f4d595bfb93e094ddc660658
compiler/src/test/java/com/rejasupotaro/android/kvs/internal/StringUtilsTest.java
compiler/src/test/java/com/rejasupotaro/android/kvs/internal/StringUtilsTest.java
package com.rejasupotaro.android.kvs.internal; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; public class StringUtilsTest { @Test public void testCapitalize() { assertThat(StringUtils.capitalize("username")).isEqualTo("Username"); } }
package com.rejasupotaro.android.kvs.internal; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; public class StringUtilsTest { @Test public void testCapitalize() { assertThat(StringUtils.capitalize("username")).isEqualTo("Username"); } @Test public void te...
Add a test for isEmpty.
Add a test for isEmpty.
Java
mit
rejasupotaro/kvs-schema,hotchemi/kvs-schema,sys1yagi/kvs-schema,rejasupotaro/kvs-schema
84194f8586ae381b4670af145e345b0e4e89153e
library/src/main/java/com/wdullaer/materialdatetimepicker/AccessibleTextView.java
library/src/main/java/com/wdullaer/materialdatetimepicker/AccessibleTextView.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 app...
/* * 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 app...
Make AccessibilityTextView inherit from AppCompatTextView
Make AccessibilityTextView inherit from AppCompatTextView
Java
apache-2.0
wdullaer/MaterialDateTimePicker
affa4f24a7090a75cea9965ec004fb6ca2f1b101
src/test/java/no/cantara/performance/messagesampler/LatencyMessageSamplerTest.java
src/test/java/no/cantara/performance/messagesampler/LatencyMessageSamplerTest.java
package no.cantara.performance.messagesampler; public class LatencyMessageSamplerTest { public static void main(String[] args) throws InterruptedException { final Object waitBus = new Object(); TimeWindowSampleCallback callback = latency -> System.out.println(latency.getJson()); LatencyMess...
package no.cantara.performance.messagesampler; public class LatencyMessageSamplerTest { public static void main(String[] args) throws InterruptedException { final Object waitBus = new Object(); TimeWindowSampleCallback callback = latency -> latency.printToStandardError(); LatencyMessageSamp...
Test stderr and stdout print methods.
Test stderr and stdout print methods.
Java
apache-2.0
Cantara/message-performance-sampler
bfd71a98a31af02ca43cd10345301c340986fbd7
core/src/main/java/com/github/sergejsamsonow/codegenerator/pojo/renderer/Setter.java
core/src/main/java/com/github/sergejsamsonow/codegenerator/pojo/renderer/Setter.java
package com.github.sergejsamsonow.codegenerator.pojo.renderer; import com.github.sergejsamsonow.codegenerator.api.CodeFormat; import com.github.sergejsamsonow.codegenerator.api.MethodCodeWriter; import com.github.sergejsamsonow.codegenerator.pojo.model.PojoBean; import com.github.sergejsamsonow.codegenerator.pojo.mode...
package com.github.sergejsamsonow.codegenerator.pojo.renderer; import com.github.sergejsamsonow.codegenerator.api.CodeFormat; import com.github.sergejsamsonow.codegenerator.api.MethodCodeWriter; import com.github.sergejsamsonow.codegenerator.pojo.model.PojoBean; import com.github.sergejsamsonow.codegenerator.pojo.mode...
Implement example producer Small refactoring
3: Implement example producer Small refactoring Task-Url: http://github.com/sergej-samsonow/code-generator/issues/issue/3
Java
apache-2.0
sergej-samsonow/code-generator
6cf9a022850cef96ca409dba26fb6820a35f8eeb
server-coreless/src/main/java/org/openqa/selenium/server/BrowserConfigurationOptions.java
server-coreless/src/main/java/org/openqa/selenium/server/BrowserConfigurationOptions.java
package org.openqa.selenium.server; public class BrowserConfigurationOptions { private String profile = ""; public BrowserConfigurationOptions(String browserConfiguration) { //"name:value;name:value" String[] optionsPairList = browserConfiguration.split(";"); for (int i = 0; i < o...
package org.openqa.selenium.server; public class BrowserConfigurationOptions { private String profile = ""; public BrowserConfigurationOptions(String browserConfiguration) { //"name:value;name:value" String[] optionsPairList = browserConfiguration.split(";"); for (int i = 0; i < o...
Fix index out of bounds exception by first checking to make sure the configuration option parsed correctly.
Fix index out of bounds exception by first checking to make sure the configuration option parsed correctly. r5374
Java
apache-2.0
xsyntrex/selenium,stupidnetizen/selenium,dkentw/selenium,MCGallaspy/selenium,SevInf/IEDriver,vinay-qa/vinayit-android-server-apk,jsarenik/jajomojo-selenium,temyers/selenium,rovner/selenium,vveliev/selenium,anshumanchatterji/selenium,gregerrag/selenium,carsonmcdonald/selenium,sankha93/selenium,petruc/selenium,jerome-jac...
2e91aaf51930cd6c3b999edaac55462707cdac7f
factory/src/main/java/com/google/auto/factory/processor/ImplementationMethodDescriptor.java
factory/src/main/java/com/google/auto/factory/processor/ImplementationMethodDescriptor.java
/* * Copyright 2013 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
/* * Copyright 2013 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
Fix 1 ErrorProneStyle finding: * Constructors and methods with the same name should appear sequentially with no other code in between. Please re-order or re-name methods.
Fix 1 ErrorProneStyle finding: * Constructors and methods with the same name should appear sequentially with no other code in between. Please re-order or re-name methods. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=286176935
Java
apache-2.0
google/auto,google/auto,eamonnmcmanus/auto,eamonnmcmanus/auto,google/auto,eamonnmcmanus/auto
f48c1015b626335382693d6b939019803e1436cd
jaxrs/health/src/main/java/org/wildfly/swarm/examples/jaxrs/health/HealthCheckResource.java
jaxrs/health/src/main/java/org/wildfly/swarm/examples/jaxrs/health/HealthCheckResource.java
package org.wildfly.swarm.examples.jaxrs.health; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import org.wildfly.swarm.monitor.Health; @Path("/app") public class HealthCheckResource { @GET @Path("/health") @Produces(MediaType.TEXT_PLAIN...
package org.wildfly.swarm.examples.jaxrs.health; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import org.wildfly.swarm.monitor.Health; @Path("/app") public class HealthCheckResource { @GET @Path("/health") @Produces(MediaType.TEXT_PLAIN...
Rename @Health parameter to 'inheritSecurity'
Rename @Health parameter to 'inheritSecurity'
Java
apache-2.0
wildfly-swarm/wildfly-swarm-examples,emag/wildfly-swarm-examples,emag/wildfly-swarm-examples,mstahv/wildfly-swarm-examples,emag/wildfly-swarm-examples,mstahv/wildfly-swarm-examples,mstahv/wildfly-swarm-examples,emag/wildfly-swarm-examples,wildfly-swarm/wildfly-swarm-examples,wildfly-swarm/wildfly-swarm-examples,wildfly...
c10120f701ad1951eddbbe85b5dd06579294a980
MediaManagementSystem/src/main/java/com/csci4448/MediaManagementSystem/model/media/MediaDAO.java
MediaManagementSystem/src/main/java/com/csci4448/MediaManagementSystem/model/media/MediaDAO.java
package com.csci4448.MediaManagementSystem.model.media; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.Transaction; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class MediaDAO { private SessionFactory sessionFactory; public...
package com.csci4448.MediaManagementSystem.model.media; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.Transaction; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class MediaDAO { private SessionFactory sessionFactory; public...
Add ToDo stuff for media DAO
Add ToDo stuff for media DAO
Java
mit
tylersco/MediaManagementSystem
7af7f2aea3f292da0ceee86b1f4dbba1f80edbe5
msgpack-bind-processor/src/test/resources/SimpleSource.java
msgpack-bind-processor/src/test/resources/SimpleSource.java
import com.lisb.msgpack.bind.MsgpackBind; import java.util.List; import java.util.Map; @MsgpackBind public class SimpleSource { public String first; public int second; public List<String> third; public List<List<Boolean>> fourth; public Map<Long, String> fifth; public MimeTypes sixth; publ...
import com.lisb.msgpack.bind.MsgpackBind; import java.util.List; import java.util.Map; @MsgpackBind public class SimpleSource { public String first; public int second; public List<String> third; public List<List<Boolean>> fourth; public Map<Long, String> fifth; public MimeTypes sixth; publ...
Add ignored field to simple test case
Add ignored field to simple test case
Java
mit
lisb/msgpack-bind
7e3c3017ea90a938d44d30dd83fd9f2b1b816dc0
src/java/com/bungleton/yarrgs/Yarrgs.java
src/java/com/bungleton/yarrgs/Yarrgs.java
package com.bungleton.yarrgs; import com.bungleton.yarrgs.parser.Command; public class Yarrgs { public static <T> T parseInMain (Class<T> argsType, String[] args) { try { return parse(argsType, args); } catch (YarrgParseException e) { System.err.println(e.getUsage() + "...
package com.bungleton.yarrgs; import com.bungleton.yarrgs.parser.Command; public class Yarrgs { public static <T> T parseInMain (Class<T> argsType, String[] args) { try { return parse(argsType, args); } catch (YarrgParseException e) { System.err.println(e.getUsage() + "...
Throw an exception when we hit an impossible condition rather than returning null
Throw an exception when we hit an impossible condition rather than returning null
Java
apache-2.0
groves/yarrgs
e6eb98f72bec2ecede56a8d1736d829769012ef0
digdag-standards/src/main/java/io/digdag/standards/operator/gcp/BaseBqJobOperator.java
digdag-standards/src/main/java/io/digdag/standards/operator/gcp/BaseBqJobOperator.java
package io.digdag.standards.operator.gcp; import com.google.api.services.bigquery.model.Job; import com.google.api.services.bigquery.model.JobConfiguration; import io.digdag.client.config.Config; import io.digdag.client.config.ConfigFactory; import io.digdag.client.config.ConfigKey; import io.digdag.spi.OperatorContex...
package io.digdag.standards.operator.gcp; import com.google.api.services.bigquery.model.Job; import com.google.api.services.bigquery.model.JobConfiguration; import io.digdag.client.config.Config; import io.digdag.client.config.ConfigFactory; import io.digdag.client.config.ConfigKey; import io.digdag.spi.OperatorContex...
Make last_jobid available for compatibility.
Make last_jobid available for compatibility.
Java
apache-2.0
treasure-data/digdag,treasure-data/digdag,treasure-data/digdag,treasure-data/digdag,treasure-data/digdag,treasure-data/digdag,treasure-data/digdag
eeb071a44d76a8469ab379118df32d76c88438ff
src/main/java/seedu/task/model/task/DueDate.java
src/main/java/seedu/task/model/task/DueDate.java
package seedu.task.model.task; import java.util.Calendar; import seedu.task.commons.exceptions.IllegalValueException; import seedu.task.model.util.DateParser; public class DueDate { /** * Represents a Task's due date in the task list. * Guarantees: immutable; is valid as declared in {@link #isValidDueDate(String)}...
package seedu.task.model.task; import java.util.Calendar; import seedu.task.commons.exceptions.IllegalValueException; import seedu.task.model.util.DateParser; public class DueDate { /** * Represents a Task's due date in the task list. * Guarantees: immutable; is valid as declared in {@link #isValidDueDate(String)}...
Add equals method to duedate model
Add equals method to duedate model Adding an equals method so that calling `.equals` in tests equates objects with equal due dates.
Java
mit
CS2103JAN2017-T11-B4/main,CS2103JAN2017-T11-B4/main
d552833148c56835d6bc38cd3b31d5976b5db35c
xchange-huobi/src/main/java/org/knowm/xchange/huobi/service/BitVcFuturesServiceRaw.java
xchange-huobi/src/main/java/org/knowm/xchange/huobi/service/BitVcFuturesServiceRaw.java
package org.knowm.xchange.huobi.service; import org.knowm.xchange.Exchange; import org.knowm.xchange.huobi.BitVc; import org.knowm.xchange.huobi.BitVcFutures; import si.mazi.rescu.RestProxyFactory; public class BitVcFuturesServiceRaw { protected final BitVcFutures bitvc; protected final String accessKey; ...
package org.knowm.xchange.huobi.service; import org.knowm.xchange.Exchange; import org.knowm.xchange.huobi.BitVc; import org.knowm.xchange.huobi.BitVcFutures; import org.knowm.xchange.huobi.dto.trade.BitVcFuturesPosition; import org.knowm.xchange.huobi.dto.trade.BitVcFuturesPositionByContract; import si.mazi.rescu.Res...
Add getter for futures positions for BitVc
Add getter for futures positions for BitVc
Java
mit
dozd/XChange,chrisrico/XChange,nopy/XChange,andre77/XChange,LeonidShamis/XChange,anwfr/XChange,npomfret/XChange,evdubs/XChange,stachon/XChange,gaborkolozsy/XChange,timmolter/XChange,Panchen/XChange,TSavo/XChange,ww3456/XChange,stevenuray/XChange,douggie/XChange
f63b0ebb618c36feb4d49a077c29b6133fe8f8dd
dsb-gui/src/test/java/com/spectralogic/dsbrowser/gui/services/BuildInfoService_Test.java
dsb-gui/src/test/java/com/spectralogic/dsbrowser/gui/services/BuildInfoService_Test.java
/* * ****************************************************************************** * Copyright 2016-2017 Spectra Logic Corporation. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not use * this file except in compliance with the License. A copy of the Licens...
/* * ****************************************************************************** * Copyright 2016-2017 Spectra Logic Corporation. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not use * this file except in compliance with the License. A copy of the Licens...
Convert LocalDateTime expected output to ISO-8601, since there's no timezone in LocalDateTime
Convert LocalDateTime expected output to ISO-8601, since there's no timezone in LocalDateTime
Java
apache-2.0
shabtaisharon/ds3_java_browser,SpectraLogic/ds3_java_browser,SpectraLogic/ds3_java_browser,shabtaisharon/ds3_java_browser,shabtaisharon/ds3_java_browser,shabtaisharon/ds3_java_browser,SpectraLogic/ds3_java_browser,SpectraLogic/ds3_java_browser,shabtaisharon/ds3_java_browser
fbddb396990b14e6ce21b5a0b36917661649c1dd
server/src/main/java/io/spine/server/model/MessageFormatter.java
server/src/main/java/io/spine/server/model/MessageFormatter.java
/* * Copyright 2020, TeamDev. 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 EXPRESS OR...
/* * Copyright 2020, TeamDev. 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 EXPRESS OR...
Add Javadoc and migration path
Add Javadoc and migration path
Java
apache-2.0
SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java
6bc1984aaf06aea6ca62ec240a2781d0b68ebf0b
elucidate-server/src/main/java/com/digirati/elucidate/model/ServiceResponse.java
elucidate-server/src/main/java/com/digirati/elucidate/model/ServiceResponse.java
package com.digirati.elucidate.model; public class ServiceResponse<T> { public enum Status { OK, NOT_FOUND, CACHE_KEY_MISS, ILLEGAL_MODIFICATION, NON_CONFORMANT, DELETED, ALREADY_EXISTS } private final Status status; private final T obj; public ServiceResponse(Status status, T obj) { ...
package com.digirati.elucidate.model; public class ServiceResponse<T> { public enum Status { OK, NOT_FOUND, CACHE_KEY_MISS, ILLEGAL_MODIFICATION, NON_CONFORMANT, DELETED, ALREADY_EXISTS, UNAUTHORIZED } private final Status status; private final T obj; public ServiceResponse(Statu...
Add new 'unauthorized' service response status
Add new 'unauthorized' service response status
Java
mit
dlcs/elucidate-server
de74e41ba9ee2d4574888858c34cc096db51fea4
subprojects/build-init/src/main/groovy/org/gradle/buildinit/plugins/internal/DefaultTemplateLibraryVersionProvider.java
subprojects/build-init/src/main/groovy/org/gradle/buildinit/plugins/internal/DefaultTemplateLibraryVersionProvider.java
/* * Copyright 2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Revert "Remove temporary patch for broken TestNG 6.9.13"
Revert "Remove temporary patch for broken TestNG 6.9.13" This reverts commit 3aaab7db09e801d66e66029a7c0719fe24084d39. CI still has the dynamic versions lookup result in cache. Will resubmit later.
Java
apache-2.0
robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,gstevey/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gr...
be2ed67f8cdc06a40224d741d8e611bbe2eb6f4a
src/main/java/com/jakewharton/telecine/TelecineActivity.java
src/main/java/com/jakewharton/telecine/TelecineActivity.java
package com.jakewharton.telecine; import android.app.Activity; import android.content.Intent; import android.media.projection.MediaProjectionManager; import android.os.Bundle; import butterknife.ButterKnife; import butterknife.OnClick; import timber.log.Timber; public final class TelecineActivity extends Activity { ...
package com.jakewharton.telecine; import android.app.Activity; import android.content.Intent; import android.media.projection.MediaProjectionManager; import android.os.Bundle; import butterknife.ButterKnife; import butterknife.OnClick; import timber.log.Timber; public final class TelecineActivity extends Activity { ...
Handle when the user presses cancel on the permission prompt.
Handle when the user presses cancel on the permission prompt.
Java
apache-2.0
poovarasanvasudevan/Telecine,hatiboy/Telecine,TotalCaesar659/Telecine,TotalCaesar659/Telecine,vipulshah2010/Telecine,monxalo/Telecine,TeamEOS/Telecine,msdgwzhy6/Telecine,zz676/Telecine,msdgwzhy6/Telecine,JakeWharton/Telecine,JakeWharton/Telecine,vipulshah2010/Telecine,ceosilvajr/Telecine,tsdl2013/Telecine,poovarasanvas...
b7174c504f0a59b9084a8c53a9999aac8ae1fcfc
src/main/java/com/skelril/skree/service/ModifierService.java
src/main/java/com/skelril/skree/service/ModifierService.java
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package com.skelril.skree.service; import com.skelril.nitro.Clause; import java.util.Collection; public int...
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package com.skelril.skree.service; import com.skelril.nitro.Clause; import java.util.Collection; public int...
Change the variable name modifierName to modifier
Change the variable name modifierName to modifier
Java
mpl-2.0
Skelril/Skree
ca70b70beaa731532ac0677d8e582b8f481ecd8d
src/test/java/org/culturegraph/mf/flux/FluxProgrammTest.java
src/test/java/org/culturegraph/mf/flux/FluxProgrammTest.java
/* * Copyright 2013, 2014 Deutsche Nationalbibliothek * * 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 applicab...
/* * Copyright 2013, 2014 Deutsche Nationalbibliothek * * 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 applicab...
Replace NullOutputStream with inline implementation
Replace NullOutputStream with inline implementation Using `NullOutputStream` in `FluxProgrammTest` introduced a depdency on Apache Commons IO which can easily be avoided.
Java
apache-2.0
cboehme/metafacture-core,metafacture/metafacture-core,culturegraph/metafacture-core,cboehme/metafacture-core,cboehme/metafacture-core,hbz/metafacture-core,culturegraph/metafacture-core,culturegraph/metafacture-core,cboehme/metafacture-core,hbz/metafacture-core,metafacture/metafacture-core,hbz/metafacture-core,metafactu...
db8bd09d7f0cd7f172ac06d22c2b69a0a3ce034f
athenz-identity-provider-service/src/main/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/instanceconfirmation/InstanceConfirmationResource.java
athenz-identity-provider-service/src/main/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/instanceconfirmation/InstanceConfirmationResource.java
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.athenz.instanceproviderservice.instanceconfirmation; import com.google.inject.Inject; import com.yahoo.container.jaxrs.annotation.Component; import com.yahoo.log.LogLeve...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.athenz.instanceproviderservice.instanceconfirmation; import com.google.inject.Inject; import com.yahoo.container.jaxrs.annotation.Component; import com.yahoo.log.LogLeve...
Implement /refresh endpoint for indetity provider
Implement /refresh endpoint for indetity provider
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
e54408307488739b43834ed854be2fa0dd24fab3
java/src/com/google/template/soy/data/SoyFutureException.java
java/src/com/google/template/soy/data/SoyFutureException.java
/* * Copyright 2015 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright 2015 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Change apps/framework/template to use AbstractSoyTemplate in the response handlers instead of TofuTemplate (or just Template). This will allow the --experimental_use_soy_sauce flag to influence the standard framework response handlers.
Change apps/framework/template to use AbstractSoyTemplate in the response handlers instead of TofuTemplate (or just Template). This will allow the --experimental_use_soy_sauce flag to influence the standard framework response handlers. Also, fix the TemplateExceptionHandler to better support exceptions thrown by SoyS...
Java
apache-2.0
rgpower/closure-templates,atul-bhouraskar/closure-templates,iacdingping/closure-templates,yext/closure-templates,nathancomstock/closure-templates,google/closure-templates,Medium/closure-templates,rgpower/closure-templates,google/closure-templates,SerkanSipahi/closure-templates,Medium/closure-templates,google/closure-te...
cbe63d3ad157ca98f5292e2deb09305536d13099
examples/Wikipedia.java
examples/Wikipedia.java
import traildb.*; import java.io.FileNotFoundException; public class Wikipedia { public static long SESSION_LIMIT = 3600; public static void sessions(TrailDB tdb) { TrailDBCursor cursor = tdb.cursorNew(); long n = tdb.numTrails(); long totalSessions = 0; long totalEvents = 0; for (long i = 0; i < n; i++...
import traildb.*; import java.io.FileNotFoundException; public class Wikipedia { public static long SESSION_LIMIT = 30 * 60; public static void sessions(TrailDB tdb) { TrailDBCursor cursor = tdb.cursorNew(); long n = tdb.numTrails(); long totalSessions = 0; long totalEvents = 0; for (long i = 0; i < n; ...
Use small tdb in wikipedia example
Use small tdb in wikipedia example
Java
mit
aholyoke/traildb-java,aholyoke/traildb-java
32a1f9b5593ef896e86d41aa4745659f9c7e4aac
xmvn-tools/xmvn-resolve/src/main/java/org/fedoraproject/maven/tools/resolver/ResolverCli.java
xmvn-tools/xmvn-resolve/src/main/java/org/fedoraproject/maven/tools/resolver/ResolverCli.java
/*- * Copyright (c) 2012 Red Hat, 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 agr...
/*- * Copyright (c) 2012 Red Hat, 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 agr...
Make xmvn-resolve print resolved artifact files
Make xmvn-resolve print resolved artifact files
Java
apache-2.0
fedora-java/xmvn,fedora-java/xmvn,mizdebsk/xmvn,mizdebsk/xmvn,mizdebsk/xmvn,rvais/xmvn,rvais/xmvn,fedora-java/xmvn,mizdebsk/xmvn,rvais/xmvn,rvais/xmvn
e7c9d64c5591fb4d4e7c40b515a26c521d761382
extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/JVMInfoBinder.java
extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/JVMInfoBinder.java
package io.quarkus.micrometer.runtime.binder; import io.micrometer.core.instrument.Gauge; import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.binder.MeterBinder; public class JVMInfoBinder implements MeterBinder { @Override public void bindTo(MeterRegistry registry) { ...
package io.quarkus.micrometer.runtime.binder; import io.micrometer.core.instrument.Counter; import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.binder.MeterBinder; public class JVMInfoBinder implements MeterBinder { @Override public void bindTo(MeterRegistry registry) { ...
Use counter for JVM Info
Use counter for JVM Info
Java
apache-2.0
quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus
7351f9f517f5e8a3e5c1da8f3a51ac79fb63672e
FtcRobotController/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/custom/util/GyroTest5421.java
FtcRobotController/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/custom/util/GyroTest5421.java
package com.qualcomm.ftcrobotcontroller.opmodes.custom.util; import com.qualcomm.robotcore.eventloop.opmode.OpMode; import com.qualcomm.robotcore.hardware.GyroSensor; /** * Created by Peter on 2/29/16. */ public class GyroTest5421 extends OpMode { GyroSensor gyro; //DcMotor mL; //DcMotor mR; //Game...
package com.qualcomm.ftcrobotcontroller.opmodes.custom.util; import com.qualcomm.robotcore.eventloop.opmode.OpMode; import com.qualcomm.robotcore.hardware.GyroSensor; /** * Created by Peter on 2/29/16. */ public class GyroTest5421 extends OpMode { GyroSensor gyro; //DcMotor mL; //DcMotor mR; //Game...
Add more functionality to gyro test
Add more functionality to gyro test
Java
mit
RMRobotics/FTC_5421_2015-2016,RMRobotics/FTC_5421_2015-2016
b1c6e48af62ffb1a8f6f5a1bf979d865b67af02d
org.csstudio.display.builder.runtime/src/org/csstudio/display/builder/runtime/pv/vtype_pv/VTypePVFactory.java
org.csstudio.display.builder.runtime/src/org/csstudio/display/builder/runtime/pv/vtype_pv/VTypePVFactory.java
/******************************************************************************* * Copyright (c) 2015-2016 Oak Ridge National Laboratory. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, ...
/******************************************************************************* * Copyright (c) 2015-2016 Oak Ridge National Laboratory. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, ...
Patch 'longString' modifier for legacy PVM names
PV: Patch 'longString' modifier for legacy PVM names
Java
epl-1.0
ESSICS/org.csstudio.display.builder,kasemir/org.csstudio.display.builder,ESSICS/org.csstudio.display.builder,ESSICS/org.csstudio.display.builder,kasemir/org.csstudio.display.builder,kasemir/org.csstudio.display.builder,ESSICS/org.csstudio.display.builder,ESSICS/org.csstudio.display.builder,kasemir/org.csstudio.display....
0d8caf056cec730ab600b78554a09318a1bffc22
src/main/java/tars/commons/core/Messages.java
src/main/java/tars/commons/core/Messages.java
package tars.commons.core; /** * Container for user visible messages. */ public class Messages { public static final String MESSAGE_UNKNOWN_COMMAND = "Unknown command"; public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s"; public static final String MESSAGE_INVALI...
package tars.commons.core; /** * Container for user visible messages. */ public class Messages { public static final String MESSAGE_UNKNOWN_COMMAND = "Unknown command"; public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s"; public static final String MESSAGE_INVALI...
Add new message for task cannot be found
Add new message for task cannot be found
Java
mit
CS2103AUG2016-F10-C1/main,CS2103AUG2016-F10-C1/main,CS2103AUG2016-F10-C1/main
351b3fa3d0761cfc21623bb31df891dd0c2b6751
src/main/java/net/simpvp/Misc/AdminNameChange.java
src/main/java/net/simpvp/Misc/AdminNameChange.java
package net.simpvp.Misc; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; /** * Don't announce name changes for ops. */ public class AdminNameChange implements Listener { @EventHandler(priority = EventPrio...
package net.simpvp.Misc; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; /** * Don't announce name changes for ops. */ public class AdminNameChange implements Listener { @EventHandler(priority = EventPrio...
Fix exception on empty join messages
Fix exception on empty join messages
Java
cc0-1.0
C4K3/Misc
96c981a8aa95c464bd7a87ee04a2ba660c0dae64
backendservice/src/main/java/com/google/gpay/virtualqueue/backendservice/repository/VirtualQueueRepository.java
backendservice/src/main/java/com/google/gpay/virtualqueue/backendservice/repository/VirtualQueueRepository.java
/* Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
/* Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
Add modified get tokens of a shop function
Add modified get tokens of a shop function
Java
apache-2.0
googleinterns/gpay-virtual-queue,googleinterns/gpay-virtual-queue,googleinterns/gpay-virtual-queue
498a068576cbbe2935e2db32076184cdb1b3d8fc
dspace/modules/api-stats/src/main/java/org/datadryad/journalstatistics/statistics/DefaultStatisticsPackage.java
dspace/modules/api-stats/src/main/java/org/datadryad/journalstatistics/statistics/DefaultStatisticsPackage.java
/* */ package org.datadryad.journalstatistics.statistics; import java.util.ArrayList; import java.util.List; import org.datadryad.journalstatistics.extractor.DataPackageCount; import org.dspace.core.Context; /** * * @author Dan Leehr <dan.leehr@nescent.org> */ public class DefaultStatisticsPackage implements Stat...
/* */ package org.datadryad.journalstatistics.statistics; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.datadryad.journalstatistics.extractor.DataFileCount; import org.datadryad.journalstatistics.extractor.DataFileTotalSize; import org.datadryad.journalstatistics.extractor.DataPa...
Add extractors to default statistics package
Add extractors to default statistics package
Java
bsd-3-clause
jimallman/dryad-repo,rnathanday/dryad-repo,jimallman/dryad-repo,jamie-dryad/dryad-repo,jimallman/dryad-repo,rnathanday/dryad-repo,ojacobson/dryad-repo,jimallman/dryad-repo,ojacobson/dryad-repo,jimallman/dryad-repo,jamie-dryad/dryad-repo,ojacobson/dryad-repo,jimallman/dryad-repo,ojacobson/dryad-repo,rnathanday/dryad-rep...
558f91726a77e493303b8eb31630f45ed0621052
ngrinder-core/src/main/java/org/ngrinder/common/util/NoOp.java
ngrinder-core/src/main/java/org/ngrinder/common/util/NoOp.java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distr...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distr...
Make noOp class abstract for consistency.
[NGRINDER-588] Make noOp class abstract for consistency.
Java
apache-2.0
nanpa83/ngrinder,bwahn/ngrinder,chengaomin/ngrinder,chengaomin/ngrinder,SRCB-CloudPart/ngrinder,GwonGisoo/ngrinder,naver/ngrinder,bwahn/ngrinder,GwonGisoo/ngrinder,nanpa83/ngrinder,naver/ngrinder,SRCB-CloudPart/ngrinder,naver/ngrinder,ropik/ngrinder,naver/ngrinder,chengaomin/ngrinder,songeunwoo/ngrinder,songeunwoo/ngri...
3ff5d0ad5e89f0fdead4084e91f64dae4456c2ab
control-interface/control-modules/tctoken/src/main/java/org/openecard/control/module/tctoken/hacks/PathSecurityParameters.java
control-interface/control-modules/tctoken/src/main/java/org/openecard/control/module/tctoken/hacks/PathSecurityParameters.java
/**************************************************************************** * Copyright (C) 2012 ecsec GmbH. * All rights reserved. * Contact: ecsec GmbH (info@ecsec.de) * * This file is part of the Open eCard App. * * GNU General Public License Usage * This file may be used under the terms of the GNU General...
/**************************************************************************** * Copyright (C) 2012 ecsec GmbH. * All rights reserved. * Contact: ecsec GmbH (info@ecsec.de) * * This file is part of the Open eCard App. * * GNU General Public License Usage * This file may be used under the terms of the GNU General...
Add further workaround for PathSecurity-Parameters PSK content
Add further workaround for PathSecurity-Parameters PSK content
Java
apache-2.0
ecsec/open-ecard,credentials/irma_future_id,ecsec/open-ecard,adelapie/open-ecard-IRMA,credentials/irma_future_id,adelapie/open-ecard-IRMA,credentials/irma_future_id,ecsec/open-ecard,adelapie/open-ecard-IRMA
ea3918bcde250b16baabe72bf4003ce5c16831af
app/src/ee/ioc/phon/android/arvutaja/command/CommandParser.java
app/src/ee/ioc/phon/android/arvutaja/command/CommandParser.java
package ee.ioc.phon.android.arvutaja.command; import ee.ioc.phon.android.arvutaja.R; import android.content.Context; public class CommandParser { public static Command getCommand(Context context, String command) throws CommandParseException { if (command == null) { throw new CommandParseException(); } if ...
package ee.ioc.phon.android.arvutaja.command; import ee.ioc.phon.android.arvutaja.R; import android.content.Context; public class CommandParser { public static Command getCommand(Context context, String command) throws CommandParseException { if (command == null) { throw new CommandParseException(); } if ...
Add support for weather queries
Add support for weather queries
Java
apache-2.0
Kaljurand/Arvutaja,Kaljurand/Arvutaja
c675e821c63ae55cb20b317c9e672be76d7776e4
modules/citrus-samples/modules/citrus-samples-common/src/main/java/com/consol/citrus/samples/common/exceptions/XmlSchemaValidationException.java
modules/citrus-samples/modules/citrus-samples-common/src/main/java/com/consol/citrus/samples/common/exceptions/XmlSchemaValidationException.java
/* * Copyright 2006-2010 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 app...
/* * Copyright 2006-2010 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 app...
Print XML valdation error cause for information purpose
Print XML valdation error cause for information purpose
Java
apache-2.0
christophd/citrus,hmmlopez/citrus,hmmlopez/citrus,gucce/citrus,hmmlopez/citrus,gucce/citrus,christophd/citrus
9e9b0d76ba72683efba57eda458d49af1d4bcfa3
cereebro-snitch-spring-boot-autoconfigure/src/main/java/io/cereebro/spring/boot/autoconfigure/mongo/MongoDbRelationshipDetectorAutoConfiguration.java
cereebro-snitch-spring-boot-autoconfigure/src/main/java/io/cereebro/spring/boot/autoconfigure/mongo/MongoDbRelationshipDetectorAutoConfiguration.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...
Make MongoDb config's dependencies optional
Make MongoDb config's dependencies optional
Java
apache-2.0
cereebro/cereebro,cereebro/cereebro,cereebro/cereebro
cb70e780c1c51a45b0fe4d213c6a0811b2eaf9ad
src/main/java/editor/NewRootView.java
src/main/java/editor/NewRootView.java
package editor; import javax.swing.*; import java.awt.*; /** * The NewRootView is used to create the GUI that is used to create a new root * XML element. */ public class NewRootView extends JFrame { private NewRootController controller; private JTextField rootTagField; /** * Create the view and s...
package editor; import javax.swing.*; import java.awt.*; /** * The NewRootView is used to create the GUI that is used to create a new root * XML element. */ public class NewRootView extends JFrame { private JTextField rootTagField; /** * Create the view and set up the look of the GUI * @param ne...
Remove controller view from view (redundant)
Remove controller view from view (redundant)
Java
mpl-2.0
dwjackson/EditSomeXML
bb419d57a76aa20ebde8acc177350090f5de80a8
kwho-java/src/main/java/kwho.java
kwho-java/src/main/java/kwho.java
// vim:shiftwidth=4:tabstop=4:expandtab import sun.security.krb5.PrincipalName; import sun.security.krb5.internal.ccache.FileCredentialsCache; public class kwho { public static void main(String[] args) { String cache = System.getenv("KRB5CCNAME"); if (cache == null) { System.err.prin...
// vim:shiftwidth=4:tabstop=4:expandtab import sun.security.krb5.PrincipalName; import sun.security.krb5.internal.ccache.FileCredentialsCache; public class kwho { public static void main(String[] args) { String cache = System.getenv("KRB5CCNAME"); if (cache == null) { return; ...
Exit silently if ccache is not found or empty.
Exit silently if ccache is not found or empty.
Java
mit
jacobmorzinski/kwho,jacobmorzinski/kwho,jacobmorzinski/kwho,jacobmorzinski/kwho,jacobmorzinski/kwho,jacobmorzinski/kwho,jacobmorzinski/kwho
0c27abd1cdbc26750dc7b7c9beaa0bc0593aa9af
src/main/java/editor/gui/ccp/handler/InventoryExportHandler.java
src/main/java/editor/gui/ccp/handler/InventoryExportHandler.java
package editor.gui.ccp.handler; import java.awt.datatransfer.Transferable; import java.util.Collection; import java.util.function.Supplier; import javax.swing.JComponent; import javax.swing.TransferHandler; import editor.database.card.Card; import editor.gui.ccp.data.CardTransferData; @SuppressWarnings("serial") pu...
package editor.gui.ccp.handler; import java.awt.datatransfer.Transferable; import java.util.Collection; import java.util.function.Supplier; import javax.swing.JComponent; import javax.swing.TransferHandler; import editor.database.card.Card; import editor.gui.ccp.data.CardTransferData; /** * This class is a handler...
Add documentation to inventory exporter
Add documentation to inventory exporter
Java
mit
aroelke/deck-editor-java
64f10f429f5579792bb380d79644fc67a06a1edc
reactfx/src/main/java/org/reactfx/Subscription.java
reactfx/src/main/java/org/reactfx/Subscription.java
package org.reactfx; public interface Subscription { void unsubscribe(); static final Subscription EMPTY = () -> {}; static Subscription multi(Subscription... subscriptions) { return () -> { for(Subscription s: subscriptions) { s.unsubscribe(); } };...
package org.reactfx; @FunctionalInterface public interface Subscription { void unsubscribe(); static final Subscription EMPTY = () -> {}; static Subscription multi(Subscription... subs) { switch(subs.length) { case 0: return EMPTY; case 1: return subs[0]; case ...
Add specialized implementation for bi-subscription
Add specialized implementation for bi-subscription
Java
bsd-2-clause
rodel-talampas/ReactFX,argv-minus-one/ReactFX,karelinoleg/ReactFX,JordanMartinez/ReactFX,TomasMikula/ReactFX,hastebrot/ReactFX
6e05051d5f25f564d9f05826bd1accf3815b7db5
src/com/facebook/buck/sqlite/SQLiteUtils.java
src/com/facebook/buck/sqlite/SQLiteUtils.java
/* * Copyright 2017-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
/* * Copyright 2017-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
Throw an exception when SQLiteJDBC initialization fails
Throw an exception when SQLiteJDBC initialization fails Summary: When sqlite-jdbc can't unpack its .so (e.g., if the disk is full), it sometimes returns an error code instead of throwing. Notice this and throw our own error, rather than continuing until we hit a mysterious UnsatisfiedLinkError Test Plan: create a ti...
Java
apache-2.0
rmaz/buck,JoelMarcey/buck,brettwooldridge/buck,k21/buck,shs96c/buck,facebook/buck,LegNeato/buck,kageiit/buck,zpao/buck,facebook/buck,brettwooldridge/buck,robbertvanginkel/buck,kageiit/buck,k21/buck,SeleniumHQ/buck,romanoid/buck,LegNeato/buck,Addepar/buck,brettwooldridge/buck,dsyang/buck,JoelMarcey/buck,zhan-xiong/buck,...
dff7ee45b30fd188a2ee005a1ec9f1f90d0a3a6b
src/main/java/in/twizmwaz/cardinal/util/PlayerUtil.java
src/main/java/in/twizmwaz/cardinal/util/PlayerUtil.java
package in.twizmwaz.cardinal.util; import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; public class PlayerUtil { public static void resetPlayer(Player player) { player.setMaxHealth(20); player.setFoodLevel(20);...
package in.twizmwaz.cardinal.util; import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; public class PlayerUtil { public static void resetPlayer(Player player) { player.setMaxHealth(20); player.setHealth(20); ...
Fix observers dropping their items when joining after dying, but not respawning
Fix observers dropping their items when joining after dying, but not respawning
Java
mit
angelitorb99/CardinalPGM,Pablete1234/CardinalPGM,TheMolkaPL/CardinalPGM,TheMolkaPL/CardinalPGM,iPGz/CardinalPGM,twizmwazin/CardinalPGM,dentmaged/Cardinal-Plus,dentmaged/Cardinal-Dev,dentmaged/Cardinal-Plus,dentmaged/Cardinal-Dev,Electroid/ExperimentalPGM,CaptainElliott/CardinalPGM,SungMatt/CardinalPGM,Aaron1011/Cardina...