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 |
|---|---|---|---|---|---|---|---|---|---|
48112622dac3002199eb664236ce5cb677c15cbc | core/org.eclipse.birt.core/src/org/eclipse/birt/core/btree/JavaComparator.java | core/org.eclipse.birt.core/src/org/eclipse/birt/core/btree/JavaComparator.java | /*******************************************************************************
* Copyright (c) 2008 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | /*******************************************************************************
* Copyright (c) 2008 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | Fix a potential NPE in comparator[T38116] | Fix a potential NPE in comparator[T38116]
| Java | epl-1.0 | rrimmana/birt-1,rrimmana/birt-1,Charling-Huang/birt,Charling-Huang/birt,rrimmana/birt-1,Charling-Huang/birt,sguan-actuate/birt,sguan-actuate/birt,rrimmana/birt-1,sguan-actuate/birt,sguan-actuate/birt,rrimmana/birt-1,Charling-Huang/birt,Charling-Huang/birt,sguan-actuate/birt |
68cab9f249aa1be65d2b7c60b16c6f9b76fed578 | src/main/java/com/exacttarget/fuelsdk/examples/PrintAllLists.java | src/main/java/com/exacttarget/fuelsdk/examples/PrintAllLists.java | //
// PrintAllLists.java -
//
// Prints the names of all lists in the ExactTarget account
// represented by the specified CLIENT_ID and CLIENT_SECRET.
//
// Copyright (C) 2013 ExactTarget
//
// Author(s): Ian Murdock <imurdock@exacttarget.com>
//
package com.exacttarget.fuelsdk.examples;
import com.exacttar... | //
// PrintAllLists.java -
//
// Prints the names of all lists in the ExactTarget account
// represented by the specified CLIENT_ID and CLIENT_SECRET.
//
// Copyright (C) 2013 ExactTarget
//
// Author(s): Ian Murdock <imurdock@exacttarget.com>
//
package com.exacttarget.fuelsdk.examples;
import com.exacttar... | Read clientId and clientSecret from fuelsdk-test.properties. | Read clientId and clientSecret from fuelsdk-test.properties. | Java | bsd-3-clause | gutsy/fuel-java,salesforcefuel/fuel-java,viadeo/fuel-java,salesforce-marketingcloud/FuelSDK-Java,salesforcefuel/FuelSDK-Java |
25ca46d3d0b1b1dc01fd0a688d4b1c0cb86b1877 | src/main/java/io/github/gernd/sqaas/endpoints/QuotesEndpoint.java | src/main/java/io/github/gernd/sqaas/endpoints/QuotesEndpoint.java | package io.github.gernd.sqaas.endpoints;
import io.github.gernd.sqaas.endpoints.dto.QuoteDto;
import io.github.gernd.sqaas.model.QuoteRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.transaction.annotation.Transactiona... | package io.github.gernd.sqaas.endpoints;
import io.github.gernd.sqaas.endpoints.dto.QuoteDto;
import io.github.gernd.sqaas.model.QuoteEntity;
import io.github.gernd.sqaas.model.QuoteRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.spr... | Add endpoint for fetching a random quote | Add endpoint for fetching a random quote
| Java | mit | gernd/software-dev-quotes-as-a-service |
4f611cac28198a0e6ee46426da257d88fd0ccd59 | app/src/main/java/org/forestguardian/View/Fragments/ReportLocalizationFragment.java | app/src/main/java/org/forestguardian/View/Fragments/ReportLocalizationFragment.java | package org.forestguardian.View.Fragments;
import android.app.Fragment;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import org.forestguardian.R;
import butterknife.BindView;
import bu... | package org.forestguardian.View.Fragments;
import android.app.Fragment;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import org.forestguardian.R;
import butterknife.BindView;
import bu... | Fix AddReportActivity being called two times. | Fix AddReportActivity being called two times.
| Java | mit | ForestGuardian/ForestGuardianAndroid |
b79668af637c5eccd8a2f59874517c37d9d65ac5 | openxc/tests/com/openxc/util/AgingDataTest.java | openxc/tests/com/openxc/util/AgingDataTest.java | package com.openxc.util;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.lessThanOrEqualTo;
import java.util.Date;
import junit.framework.TestCase;
import com.openxc.Te... | package com.openxc.util;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import java.util.Date;
import com.openxc.TestUtils;
import com.openxc.units.Degree;
public class AgingDataTest {
... | Add a few tests for AgingData to get 100% coverage. | Add a few tests for AgingData to get 100% coverage.
| Java | bsd-3-clause | msowka/openxc-android,prateeknitish391/demo,openxc/openxc-android,ChernyshovYuriy/openxc-android,openxc/openxc-android,mray19027/openxc-android,dhootha/openxc-android,dhootha/openxc-android,msowka/openxc-android,ChernyshovYuriy/openxc-android,mray19027/openxc-android,prateeknitish391/demo,prateeknitish391/demo,petemacl... |
cb8a4b541ebb1d5783129a00b86d22fad33d56e3 | src/test/java/es/sandbox/spikes/java8/interfaces/FunctionalInterfaceSpecs.java | src/test/java/es/sandbox/spikes/java8/interfaces/FunctionalInterfaceSpecs.java | package es.sandbox.spikes.java8.interfaces;
import es.sandbox.spikes.java8.InvocationSpy;
import org.junit.Before;
import org.junit.Test;
import static es.sandbox.spikes.java8.FunctionalInterfaceCaller.call;
import static es.sandbox.spikes.java8.InvocationSpy.spy;
import static org.assertj.core.api.Assertions.assertT... | package es.sandbox.spikes.java8.interfaces;
import es.sandbox.spikes.java8.InvocationSpy;
import org.junit.Before;
import org.junit.Test;
import java.lang.reflect.Method;
import static es.sandbox.spikes.java8.FunctionalInterfaceCaller.call;
import static es.sandbox.spikes.java8.InvocationSpy.spy;
import static org.a... | Test that Functional Interfaces has only one declared method | Test that Functional Interfaces has only one declared method
| Java | mit | jeslopalo/java8-101 |
e0af26e504c5bfddb15cfde1ec88a5da6b0bad5e | gnd/src/main/java/com/google/android/gnd/persistence/local/room/dao/FeatureDao.java | gnd/src/main/java/com/google/android/gnd/persistence/local/room/dao/FeatureDao.java | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Load only active features from local db | Load only active features from local db
| Java | apache-2.0 | google/ground-android,google/ground-android,google/ground-android |
1f16a851da074b56e1fd21b23f6ae68428050c61 | workflow/drools/domains/src/main/java/org/openengsb/drools/DomainRegistry.java | workflow/drools/domains/src/main/java/org/openengsb/drools/DomainRegistry.java | /**
Copyright 2010 OpenEngSB Division, Vienna University of Technology
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 applicabl... | /**
Copyright 2010 OpenEngSB Division, Vienna University of Technology
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 applicabl... | Add report domain to registry. | Add report domain to registry.
Signed-off-by: Michael Handler <331a76cd0f162b0218893a3dfa4df5a8bf659d1e@fullstop.at>
| Java | apache-2.0 | tobster/openengsb,tobster/openengsb,openengsb/openengsb,openengsb/openengsb,openengsb/openengsb,tobster/openengsb,openengsb/openengsb,openengsb/openengsb,tobster/openengsb,openengsb/openengsb |
96cc367c1330cec510bce8d0463f3ef27dc5c271 | Shooter.java | Shooter.java | package ftc8390.vv;
import com.qualcomm.robotcore.hardware.HardwareMap;
/**
* Created by jmgu3 on 11/7/2016.
*/
public class Shooter {
public void init(HardwareMap hardwareMap) {
}
}
| package ftc8390.vv;
import com.qualcomm.robotcore.hardware.HardwareMap;
/**
* Created by jmgu3 on 11/7/2016.
*/
public class Shooter {
public void init(HardwareMap hardwareMap) {
// MAKE SURE TO PUT SHOOTER MOTORS INTO FLOAT MODE SO THEY DON'T BREAK!!!
}
}
| Comment about FLOAT mode for shooter motors | Comment about FLOAT mode for shooter motors | Java | mit | FTC8390/vv |
085fe5ff1a294697745fab52a1d23a46e93ac727 | components/org.wso2.carbon.sp.jobmanager.core/src/main/java/org/wso2/carbon/sp/jobmanager/core/bean/KafkaTransportDetails.java | components/org.wso2.carbon.sp.jobmanager.core/src/main/java/org/wso2/carbon/sp/jobmanager/core/bean/KafkaTransportDetails.java | package org.wso2.carbon.sp.jobmanager.core.bean;
import java.util.List;
/**
*
*/
public class KafkaTransportDetails {
private String appName;
private String siddhiApp;
private String deployedHost;
private String deployedPort;
private List<String> sourceList;
private List<String> sinkList;
... | package org.wso2.carbon.sp.jobmanager.core.bean;
import java.util.List;
/**
* Bean class for kafkaTransport Details.
*/
public class KafkaTransportDetails {
private String appName;
private String siddhiApp;
private String deployedHost;
private String deployedPort;
private List<String> sourceList... | Add class comment for kafkaTransportDetails class | Add class comment for kafkaTransportDetails class
| Java | apache-2.0 | wso2/carbon-analytics,Niveathika92/carbon-analytics,Niveathika92/carbon-analytics,tishan89/carbon-analytics,mohanvive/carbon-analytics,tishan89/carbon-analytics,minudika/carbon-analytics,erangatl/carbon-analytics,Anoukh/carbon-analytics,wso2/carbon-analytics,erangatl/carbon-analytics,tishan89/carbon-analytics,wso2/carb... |
96215c80669dc5c0c2b8c5bd1e254a8d8c236871 | common/src/main/java/com/alexstyl/specialdates/analytics/AnalyticsProvider.java | common/src/main/java/com/alexstyl/specialdates/analytics/AnalyticsProvider.java | package com.alexstyl.specialdates.analytics;
import android.content.Context;
import com.alexstyl.specialdates.common.BuildConfig;
import com.mixpanel.android.mpmetrics.MixpanelAPI;
public class AnalyticsProvider {
private static Analytics ANALYTICS;
public static Analytics getAnalytics(Context context) {
... | package com.alexstyl.specialdates.analytics;
import android.content.Context;
import com.alexstyl.specialdates.common.BuildConfig;
import com.mixpanel.android.mpmetrics.MixpanelAPI;
public class AnalyticsProvider {
private static Analytics ANALYTICS;
public static Analytics getAnalytics(Context context) {
... | Use application context for analytics provider | Use application context for analytics provider
| Java | mit | alexstyl/Memento-Calendar,alexstyl/Memento-Calendar,alexstyl/Memento-Namedays,alexstyl/Memento-Calendar,auricgoldfinger/Memento-Namedays,auricgoldfinger/Memento-Namedays,alexstyl/Memento-Namedays |
acef975dd133bab93f082c71bb99287a3b3d11cf | src/main/java/data/AuthenticationInformation.java | src/main/java/data/AuthenticationInformation.java | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | Update comments for authentication information class. | Update comments for authentication information class.
| Java | apache-2.0 | googleinterns/receipt-roundup,googleinterns/receipt-roundup,googleinterns/receipt-roundup |
eee5f72d4e50742a2df3fc076163798c5ca717b6 | src/test/java/net/runelite/cache/fs/StoreLoadTest.java | src/test/java/net/runelite/cache/fs/StoreLoadTest.java | package net.runelite.cache.fs;
import java.io.IOException;
import org.junit.Test;
public class StoreLoadTest
{
@Test
public void test() throws IOException
{
Store store = new Store(new java.io.File("d:/rs/07/cache"));//c:/rs/cache"));
store.load();
System.out.println(store);
}
}
| package net.runelite.cache.fs;
import java.io.FileOutputStream;
import java.io.IOException;
import org.junit.Test;
public class StoreLoadTest
{
@Test
public void test() throws IOException
{
Store store = new Store(new java.io.File("d:/rs/07/cache"));//c:/rs/cache"));
store.load();
System.out.println(store);
... | Add disabled test to dump cache | Add disabled test to dump cache
| Java | bsd-2-clause | Sethtroll/runelite,runelite/runelite,Sethtroll/runelite,KronosDesign/runelite,kfricilone/runelite,devinfrench/runelite,devinfrench/runelite,KronosDesign/runelite,abelbriggs1/runelite,Noremac201/runelite,l2-/runelite,abelbriggs1/runelite,Noremac201/runelite,abelbriggs1/runelite,l2-/runelite,kfricilone/runelite,UniquePas... |
076e90b88859e883519c78899bd21eff7bbc68b7 | hikaricp-common/src/test/java/com/zaxxer/hikari/TestHibernate.java | hikaricp-common/src/test/java/com/zaxxer/hikari/TestHibernate.java | package com.zaxxer.hikari;
import java.sql.Connection;
import java.util.Properties;
import org.junit.Assert;
import org.junit.Test;
import com.zaxxer.hikari.hibernate.HikariConnectionProvider;
public class TestHibernate
{
@Test
public void testConnectionProvider() throws Exception
{
HikariConnectionP... | package com.zaxxer.hikari;
import java.sql.Connection;
import java.util.Properties;
import org.hibernate.service.UnknownUnwrapTypeException;
import org.junit.Assert;
import org.junit.Test;
import com.zaxxer.hikari.hibernate.HikariConnectionProvider;
public class TestHibernate
{
@Test
public void testConnectio... | Test unwrap exception for Hibernate | Test unwrap exception for Hibernate
| Java | apache-2.0 | brettwooldridge/HikariCP,newsky/HikariCP,Violantic/HikariCP,sridhar-newsdistill/HikariCP,atschx/HikariCP,yaojuncn/HikariCP,barrysun/HikariCP,junlapong/HikariCP,brettwooldridge/HikariCP,polpot78/HikariCP,zhuyihao/HikariCP,ams2990/HikariCP,mwegrz/HikariCP,hito-asa/HikariCP,nitincchauhan/HikariCP,openbouquet/HikariCP,ksch... |
1271838a6c474f427c9182eeac463e8e0179c0dd | modules/event-processor/ep-core/src/main/java/org/overlord/rtgov/ep/service/EPService.java | modules/event-processor/ep-core/src/main/java/org/overlord/rtgov/ep/service/EPService.java | /*
* JBoss, Home of Professional Open Source
* Copyright 2008-11, Red Hat Middleware LLC, and others contributors as indicated
* by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
* This copyrighted material is made available to a... | /*
* JBoss, Home of Professional Open Source
* Copyright 2008-11, Red Hat Middleware LLC, and others contributors as indicated
* by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
* This copyrighted material is made available to a... | Remove unused close method from api | Remove unused close method from api
| Java | apache-2.0 | djcoleman/rtgov,Governance/rtgov,djcoleman/rtgov,jorgemoralespou/rtgov,Governance/rtgov,jorgemoralespou/rtgov,objectiser/rtgov,objectiser/rtgov,djcoleman/rtgov,Governance/rtgov,djcoleman/rtgov,jorgemoralespou/rtgov,objectiser/rtgov,objectiser/rtgov,jorgemoralespou/rtgov,Governance/rtgov |
ee9a56ad27add21961d7567627a0994ebbf53229 | public/java/src/org/broadinstitute/sting/utils/sam/AlignmentStartWithNoTiesComparator.java | public/java/src/org/broadinstitute/sting/utils/sam/AlignmentStartWithNoTiesComparator.java | package org.broadinstitute.sting.utils.sam;
import com.google.java.contract.Ensures;
import com.google.java.contract.Requires;
import net.sf.samtools.SAMRecord;
import java.util.Comparator;
public class AlignmentStartWithNoTiesComparator implements Comparator<SAMRecord> {
@Requires("c1 >= 0 && c2 >= 0")
@Ens... | package org.broadinstitute.sting.utils.sam;
import com.google.java.contract.Ensures;
import com.google.java.contract.Requires;
import net.sf.samtools.SAMRecord;
import java.util.Comparator;
public class AlignmentStartWithNoTiesComparator implements Comparator<SAMRecord> {
@Requires("c1 >= 0 && c2 >= 0")
@Ens... | Fix subtle bug in the ReduceReads stash reported by Adam | Fix subtle bug in the ReduceReads stash reported by Adam
* The tailSet generated every time we flush the reads stash is still being affected by subsequent clears because it is just a pointer to the parent element in the original TreeSet. This is dangerous, and there is a weird condition where the clear will affect... | Java | mit | iontorrent/Torrent-Variant-Caller-stable,iontorrent/Torrent-Variant-Caller-stable,iontorrent/Torrent-Variant-Caller-stable,iontorrent/Torrent-Variant-Caller-stable,iontorrent/Torrent-Variant-Caller-stable,iontorrent/Torrent-Variant-Caller-stable,iontorrent/Torrent-Variant-Caller-stable,iontorrent/Torrent-Variant-Caller... |
7f04b8d85ab2149bb1216b0280fbda6d3bdc40ff | edu.kit.ipd.sdq.vitruvius.casestudies.jmljava/src/edu/kit/ipd/sdq/vitruvius/casestudies/jmljava/vitruvius/changesynchronizer/internal/Change2CommandTransformingProvidingImplCustom.java | edu.kit.ipd.sdq.vitruvius.casestudies.jmljava/src/edu/kit/ipd/sdq/vitruvius/casestudies/jmljava/vitruvius/changesynchronizer/internal/Change2CommandTransformingProvidingImplCustom.java | package edu.kit.ipd.sdq.vitruvius.casestudies.jmljava.vitruvius.changesynchronizer.internal;
import edu.kit.ipd.sdq.vitruvius.framework.change2commandtransformingprovider.Change2CommandTransformingProvidingImpl;
import edu.kit.ipd.sdq.vitruvius.framework.contracts.datatypes.VURI;
import edu.kit.ipd.sdq.vitruvius.f... | package edu.kit.ipd.sdq.vitruvius.casestudies.jmljava.vitruvius.changesynchronizer.internal;
import edu.kit.ipd.sdq.vitruvius.framework.change2commandtransformingprovider.Change2CommandTransformingProvidingImpl;
/**
* Provider for transformation executings based on @Change2CommandTransformingProvidingImpl
* T... | Remove obsolete method implementation due to changed implementation of Change2CommandTransformingProviding. | Remove obsolete method implementation due to changed implementation of Change2CommandTransformingProviding.
| Java | epl-1.0 | vitruv-tools/Vitruv |
b2c2ae029e96fa2ead4ae4c999fbf1751aa7e409 | src/main/java/com/nexmo/quickstart/voice/OutboundTextToSpeech.java | src/main/java/com/nexmo/quickstart/voice/OutboundTextToSpeech.java | package com.nexmo.quickstart.voice;
import com.nexmo.client.NexmoClient;
import com.nexmo.client.auth.AuthMethod;
import com.nexmo.client.auth.JWTAuthMethod;
import com.nexmo.client.voice.Call;
import java.nio.file.FileSystems;
import static com.nexmo.quickstart.Util.*;
public class OutboundTextToSpeech {
publi... | package com.nexmo.quickstart.voice;
import com.nexmo.client.NexmoClient;
import com.nexmo.client.auth.AuthMethod;
import com.nexmo.client.auth.JWTAuthMethod;
import com.nexmo.client.voice.Call;
import java.nio.file.FileSystems;
import static com.nexmo.quickstart.Util.*;
public class OutboundTextToSpeech {
publi... | Fix up env var name. | Fix up env var name.
| Java | mit | nexmo-community/nexmo-java-quickstart |
115e9e40e7c912beaf6186d69df97f5996e43310 | web/src/main/java/org/cbioportal/web/parameter/MolecularDataMultipleStudyFilter.java | web/src/main/java/org/cbioportal/web/parameter/MolecularDataMultipleStudyFilter.java | package org.cbioportal.web.parameter;
import javax.validation.constraints.AssertTrue;
import javax.validation.constraints.Size;
import java.util.List;
import java.io.Serializable;
public class MolecularDataMultipleStudyFilter implements Serializable {
@Size(min = 1, max = PagingConstants.MAX_PAGE_SIZE)
priva... | package org.cbioportal.web.parameter;
import javax.validation.constraints.AssertTrue;
import javax.validation.constraints.Size;
import java.util.List;
import java.io.Serializable;
public class MolecularDataMultipleStudyFilter implements Serializable {
@Size(min = 1, max = PagingConstants.MAX_PAGE_SIZE)
priva... | Add size constraint to molecularProfileIds in molecular data endpoint | Add size constraint to molecularProfileIds in molecular data endpoint
| Java | agpl-3.0 | zhx828/cbioportal,pughlab/cbioportal,angelicaochoa/cbioportal,d3b-center/pedcbioportal,pughlab/cbioportal,n1zea144/cbioportal,cBioPortal/cbioportal,mandawilson/cbioportal,pughlab/cbioportal,zhx828/cbioportal,n1zea144/cbioportal,d3b-center/pedcbioportal,zhx828/cbioportal,mandawilson/cbioportal,angelicaochoa/cbioportal,p... |
b2458685e7819cb12f0017e2a8c957b484b0c9df | wicket-examples/src/main/java/org/apache/wicket/examples/cdi/CdiApplication.java | wicket-examples/src/main/java/org/apache/wicket/examples/cdi/CdiApplication.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | Optimize imports. No functional changes | Optimize imports. No functional changes
| Java | apache-2.0 | AlienQueen/wicket,klopfdreh/wicket,dashorst/wicket,selckin/wicket,AlienQueen/wicket,mosoft521/wicket,bitstorm/wicket,mosoft521/wicket,dashorst/wicket,bitstorm/wicket,topicusonderwijs/wicket,freiheit-com/wicket,apache/wicket,astrapi69/wicket,klopfdreh/wicket,AlienQueen/wicket,apache/wicket,aldaris/wicket,dashorst/wicket... |
5052f74c4637a04817037febfb0e07595fabd288 | core/src/main/java/de/otto/jlineup/Main.java | core/src/main/java/de/otto/jlineup/Main.java | package de.otto.jlineup;
public class Main {
public static void main(String[] args) {
System.out.println("The core module has no function, use jlineup-cli or jlineup-web!");
}
}
| package de.otto.jlineup;
public class Main {
public static void main(String[] args) {
System.out.println("The core module has no standalone functionality. Use jlineup-cli or jlineup-web!");
}
}
| Change hint text of core's main | Change hint text of core's main
Co-authored-by: Marco Geweke <8bae85dbfa00ce59d1b81e4121747343f331087b@otto.de>
| Java | apache-2.0 | otto-de/jlineup,otto-de/jlineup,otto-de/jlineup |
97c7818e46cee887e12e4a49f61d6f0cd410949f | Konashi/konashi-v2-android-sdk/src/main/java/com/uxxu/konashi/lib/events/KonashiPwmEvent.java | Konashi/konashi-v2-android-sdk/src/main/java/com/uxxu/konashi/lib/events/KonashiPwmEvent.java | package com.uxxu.konashi.lib.events;
import com.uxxu.konashi.lib.listeners.KonashiBaseListener;
import com.uxxu.konashi.lib.listeners.KonashiPwmListener;
/**
* Created by izumin on 8/9/15.
*/
public enum KonashiPwmEvent implements KonashiEvent {
UPDATE_PWM_CONFIG {
@Override
protected void notif... | package com.uxxu.konashi.lib.events;
import com.uxxu.konashi.lib.listeners.KonashiBaseListener;
import com.uxxu.konashi.lib.listeners.KonashiPwmListener;
/**
* Created by izumin on 8/9/15.
*/
public enum KonashiPwmEvent implements KonashiEvent {
UPDATE_PWM_CONFIG {
@Override
protected void notif... | Add condition for notify pwm event | Add condition for notify pwm event
| Java | apache-2.0 | kiryuxxu/konashi-android-sdk,YUKAI/konashi-android-sdk,YUKAI/konashi-android-sdk,shiitakeo/konashi-android-sdk |
09f0f5d8952dec510256bb56b65ca508cb3d3255 | gnd/src/main/java/com/google/android/gnd/persistence/remote/firestore/schema/UserConverter.java | gnd/src/main/java/com/google/android/gnd/persistence/remote/firestore/schema/UserConverter.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 ... | /*
* 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 ... | Simplify fallback behavior for tests | Simplify fallback behavior for tests
| Java | apache-2.0 | google/ground-android,google/ground-android,google/ground-android |
8f404612c82a531420d3394480f17db6d9844e22 | undertow/api/src/main/java/org/wildfly/swarm/undertow/StaticContentContainer.java | undertow/api/src/main/java/org/wildfly/swarm/undertow/StaticContentContainer.java | package org.wildfly.swarm.undertow;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.Node;
/**
* @author Bob McWhirter
*/
public interface StaticContentContainer<T extends Archive<T>> extends Archive<T> {
default T staticContent() {
return staticContent( "/", "." );
}
d... | package org.wildfly.swarm.undertow;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.Node;
/**
* @author Bob McWhirter
*/
public interface StaticContentContainer<T extends Archive<T>> extends Archive<T> {
default T staticContent() {
return staticContent( "/", "." );
}
d... | Fix Undertow static handler package name, as it was renamed | Fix Undertow static handler package name, as it was renamed
| Java | apache-2.0 | lance/wildfly-swarm,lance/wildfly-swarm,twilking/wildfly-swarm,bbrowning/wildfly-swarm,heiko-braun/wildfly-swarm,twilking/wildfly-swarm,heiko-braun/wildfly-swarm,heiko-braun/wildfly-swarm,twilking/wildfly-swarm,heiko-braun/wildfly-swarm,lance/wildfly-swarm,twilking/wildfly-swarm,bbrowning/wildfly-swarm,lance/wildfly-sw... |
ba07c648f809e529f770c3273b62eb9fcdb36b43 | wampspring-demo-various/src/main/java/ch/rasc/wampspring/demo/various/WampConfig.java | wampspring-demo-various/src/main/java/ch/rasc/wampspring/demo/various/WampConfig.java | package ch.rasc.wampspring.demo.various;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import ch.rasc.wampspring.config.DefaultWampConfiguration;
import ch.rasc.wampspring.config.WampEndpointRegistry;
import com.fasterxml.jackson.databind.... | package ch.rasc.wampspring.demo.various;
import org.springframework.context.annotation.Configuration;
import ch.rasc.wampspring.config.EnableWamp;
import ch.rasc.wampspring.config.WampConfigurerAdapter;
import ch.rasc.wampspring.config.WampEndpointRegistry;
@Configuration
@EnableWamp
public class WampConfig extends ... | Simplify configuration. wampspring uses by default the ObjectMapper configured by Spring Boot | Simplify configuration. wampspring uses by default the ObjectMapper
configured by Spring Boot | Java | apache-2.0 | ralscha/wampspring-demos,ralscha/wampspring-demos,ralscha/wampspring-demos |
1eed654a34d6bffd7b183dfeb1c6412b52704e75 | edc-client/src/main/java/com/turn/edc/selection/impl/UniformDistributionSelection.java | edc-client/src/main/java/com/turn/edc/selection/impl/UniformDistributionSelection.java | package com.turn.edc.selection.impl;
import com.turn.edc.discovery.CacheInstance;
import com.turn.edc.exception.InvalidParameterException;
import com.turn.edc.selection.SelectionProvider;
import java.util.Collection;
import java.util.List;
import java.util.Random;
import com.google.common.collect.Lists;
/**
* Sele... | package com.turn.edc.selection.impl;
import com.turn.edc.discovery.CacheInstance;
import com.turn.edc.exception.InvalidParameterException;
import com.turn.edc.selection.SelectionProvider;
import java.util.Collection;
import java.util.List;
import java.util.Random;
import com.google.common.collect.Lists;
/**
* Sele... | Fix infinte loop in selection layer | Fix infinte loop in selection layer
Java8 IntStreams can get into an infinite loop if the limit is
never reached. The selection layer should use the minimum between
the number of available instances and the desired instance.
Signed-off-by: Tommy Shiou <fd59d852321c3431be8a979962d50c7894293a47@turn.com>
| Java | bsd-3-clause | turn/edc,turn/edc |
f5cb23b76ebeb100910f18d99e1ba3dbba548183 | sthlmtraveling/src/main/java/com/markupartist/sthlmtraveling/DeparturesShortcutProxyActivity.java | sthlmtraveling/src/main/java/com/markupartist/sthlmtraveling/DeparturesShortcutProxyActivity.java | package com.markupartist.sthlmtraveling;
import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.TaskStackBuilder;
public class DeparturesShortcutProxyActivity extends Activity {
@Override
protected void onCreate(Bundle save... | package com.markupartist.sthlmtraveling;
import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.TaskStackBuilder;
public class DeparturesShortcutProxyActivity extends Activity {
@Override
protected void onCreate(Bundle save... | Change to not check for honeycomb | Change to not check for honeycomb
| Java | apache-2.0 | johannilsson/sthlmtraveling,johannilsson/sthlmtraveling |
01be7eca6eeb44cd9cf6e34d01c77b0d632d51cf | web/src/main/java/org/springframework/security/web/csrf/MissingCsrfTokenException.java | web/src/main/java/org/springframework/security/web/csrf/MissingCsrfTokenException.java | /*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | /*
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Improve log message when no CSRF token found | Improve log message when no CSRF token found
Closes gh-10436
| Java | apache-2.0 | spring-projects/spring-security,spring-projects/spring-security,spring-projects/spring-security,spring-projects/spring-security,spring-projects/spring-security,spring-projects/spring-security,spring-projects/spring-security |
f1e233ab8bc16041cc525eb26dc5ec9f8ee5cc72 | org.metaborg.meta.interpreter.framework/src/org/metaborg/meta/interpreter/framework/MapUtils.java | org.metaborg.meta.interpreter.framework/src/org/metaborg/meta/interpreter/framework/MapUtils.java | package org.metaborg.meta.interpreter.framework;
import com.github.krukow.clj_ds.PersistentMap;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
public class MapUtils {
@TruffleBoundary
public static <K, V> PersistentMap<K, V> plus(PersistentMap<K, V> one,
PersistentMap<K, V> other) {
Persist... | package org.metaborg.meta.interpreter.framework;
import com.github.krukow.clj_ds.PersistentMap;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
public class MapUtils {
@TruffleBoundary
public static <K, V> PersistentMap<K, V> plus(PersistentMap<K, V> one,
PersistentMap<K, V> other) {
Persist... | Add specialization call to map key lookup. | Add specialization call to map key lookup.
| Java | apache-2.0 | metaborg/dynsem,metaborg/dynsem |
3981a32fe0f44eb5139e5ed678243d55a72e3bed | src/main/java/org/culturegraph/mf/morph/Data.java | src/main/java/org/culturegraph/mf/morph/Data.java | /*
* Copyright 2013 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 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... | Add toString() for easier debugging | Add toString() for easier debugging
| Java | apache-2.0 | hbz/metafacture-core,knutwalker/metafacture-core,dswarm/metafacture-core,philboeselager/metafacture-core,philboeselager/metafacture-core,hbz/metafacture-core,schaeferd/metafacture-core,culturegraph/metafacture-core,schaeferd/metafacture-core,metafacture/metafacture-core,knutwalker/metafacture-core,cboehme/metafacture-c... |
d2c2eb6a3f78bbda5f0bd0df76e0d512386677d5 | jmx/src/test/java/org/xbean/jmx/JMXTest.java | jmx/src/test/java/org/xbean/jmx/JMXTest.java | package org.xbean.jmx;
import junit.framework.TestCase;
import org.xbean.spring.context.ClassPathXmlApplicationContext;
/**
* $Rev$
*/
public class JMXTest extends TestCase {
public void testSimple() throws Exception {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext... | package org.xbean.jmx;
import junit.framework.TestCase;
import org.xbean.spring.context.ClassPathXmlApplicationContext;
import java.util.List;
/**
* $Rev$
*/
public class JMXTest extends TestCase {
public void testSimple() throws Exception {
ClassPathXmlApplicationContext context = new Clas... | Add a few asserts to the test | Add a few asserts to the test
git-svn-id: c55cfc7c8893d43c3333f2d886128b43c8520716@380472 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | Talend/geronimo-xbean,ebourg/geronimo-xbean,ebourg/geronimo-xbean |
957bd28b8a2dddf6ba0b30191157912a8bdd3cbb | src/net/zephyrizing/http_server/HttpServer.java | src/net/zephyrizing/http_server/HttpServer.java | package net.zephyrizing.http_server;
public class HttpServer {
private HttpServerSocket serveSocket;
private int port;
public HttpServer(HttpServerSocket serveSocket, int port) {
this.serveSocket = serveSocket;
this.port = port;
}
public void listen() {
serveSocket.bind(p... | package net.zephyrizing.http_server;
public class HttpServer {
public static void main(String[] args) {
int portNumber;
if (args.length == 1) {
portNumber = Integer.parseInt(args[0]);
} else {
portNumber = 5000;
}
System.err.format("Starting server o... | Move main method to top of class | Move main method to top of class
| Java | mit | RadicalZephyr/http-server |
d0924c587cbfa35ab0cb8c7ecf2af7c6b1d2e364 | spring-boot-common-ws/src/main/java/org/gbif/ws/server/provider/PageableHandlerMethodArgumentResolver.java | spring-boot-common-ws/src/main/java/org/gbif/ws/server/provider/PageableHandlerMethodArgumentResolver.java | package org.gbif.ws.server.provider;
import org.gbif.api.model.common.paging.Pageable;
import org.gbif.api.model.common.paging.PagingRequest;
import org.springframework.core.MethodParameter;
import org.springframework.web.bind.support.WebDataBinderFactory;
import org.springframework.web.context.request.NativeWebReques... | package org.gbif.ws.server.provider;
import org.gbif.api.model.common.paging.Pageable;
import org.springframework.core.MethodParameter;
import org.springframework.web.bind.support.WebDataBinderFactory;
import org.springframework.web.context.request.NativeWebRequest;
import org.springframework.web.method.support.Handle... | Refactor Pageable method argument resolver | Refactor Pageable method argument resolver
| Java | apache-2.0 | gbif/registry,gbif/registry |
8fde77a843431037fde796c92b22f699bd28953f | src/openccsensors/common/sensors/industrialcraft/ReactorTarget.java | src/openccsensors/common/sensors/industrialcraft/ReactorTarget.java | package openccsensors.common.sensors.industrialcraft;
import ic2.api.IReactor;
import java.util.HashMap;
import java.util.Map;
import net.minecraft.src.TileEntity;
import net.minecraft.src.World;
import openccsensors.common.api.ISensorTarget;
import openccsensors.common.sensors.TileSensorTarget;
public class React... | package openccsensors.common.sensors.industrialcraft;
import ic2.api.IReactor;
import ic2.api.IC2Reactor;
import java.util.HashMap;
import java.util.Map;
import net.minecraft.src.TileEntity;
import net.minecraft.src.World;
import openccsensors.common.api.ISensorTarget;
import openccsensors.common.sensors.TileSensorT... | Fix so that reactors properly return the EU/t on output. | Fix so that reactors properly return the EU/t on output.
| Java | mit | lyqyd/OpenCCSensors,Cloudhunter/OpenCCSensors |
295e0032cbb655eb2c83b20d34ac6b8ca10bc7db | processor/src/test/java/org/realityforge/arez/processor/AbstractArezProcessorTest.java | processor/src/test/java/org/realityforge/arez/processor/AbstractArezProcessorTest.java | package org.realityforge.arez.processor;
import com.google.testing.compile.JavaFileObjects;
import com.google.testing.compile.JavaSourceSubjectFactory;
import javax.annotation.Nonnull;
import javax.tools.JavaFileObject;
import static com.google.common.truth.Truth.assert_;
abstract class AbstractArezProcessorTest
{
... | package org.realityforge.arez.processor;
import com.google.testing.compile.JavaFileObjects;
import com.google.testing.compile.JavaSourceSubjectFactory;
import javax.annotation.Nonnull;
import javax.tools.JavaFileObject;
import static com.google.common.truth.Truth.assert_;
abstract class AbstractArezProcessorTest
{
... | Rename assertProcessor => assertSuccessfulCompile and add simplified assertSuccessfulCompile that accepts single classname parameter | Rename assertProcessor => assertSuccessfulCompile and add simplified assertSuccessfulCompile that accepts single classname parameter
| Java | apache-2.0 | realityforge/arez,realityforge/arez,realityforge/arez |
abf9bdf264625627526b0a8db602da5e7fbd6f08 | src/main/java/com/raoulvdberge/refinedstorage/integration/inventorysorter/InventorySorterIntegration.java | src/main/java/com/raoulvdberge/refinedstorage/integration/inventorysorter/InventorySorterIntegration.java | package com.raoulvdberge.refinedstorage.integration.inventorysorter;
import net.minecraftforge.fml.InterModComms;
import net.minecraftforge.fml.ModList;
public class InventorySorterIntegration {
private static final String ID = "inventorysorter";
public static boolean isLoaded() {
return ModList.get(... | package com.raoulvdberge.refinedstorage.integration.inventorysorter;
import net.minecraftforge.fml.ModList;
public class InventorySorterIntegration {
private static final String ID = "inventorysorter";
public static boolean isLoaded() {
return ModList.get().isLoaded(ID);
}
public static void... | Disable InventorySorter integration as it crashes | Disable InventorySorter integration as it crashes
| Java | mit | raoulvdberge/refinedstorage,raoulvdberge/refinedstorage |
7eac7c435f2b86ccf48218ad664cce789fb99e39 | connectors/slack/connector/src/main/java/org/apache/manifoldcf/crawler/notifications/slack/SlackMessage.java | connectors/slack/connector/src/main/java/org/apache/manifoldcf/crawler/notifications/slack/SlackMessage.java | /* $Id$ */
/**
* 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 "Licen... | /* $Id$ */
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); y... | Set properties on new files | Set properties on new files
git-svn-id: 2afc70380305c7078ac9d33db6a1fb988992b501@1771268 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | kishorejangid/manifoldcf,kishorejangid/manifoldcf,kishorejangid/manifoldcf,apache/manifoldcf,apache/manifoldcf,apache/manifoldcf,kishorejangid/manifoldcf,kishorejangid/manifoldcf,kishorejangid/manifoldcf,apache/manifoldcf,apache/manifoldcf,apache/manifoldcf |
4f037a15329c960fc769172393ada47ad73bf339 | src/main/java/com/github/aureliano/achmed/resources/properties/IResourceProperties.java | src/main/java/com/github/aureliano/achmed/resources/properties/IResourceProperties.java | package com.github.aureliano.achmed.resources.properties;
public interface IResourceProperties {
public abstract IResourceProperties put(String key, Object value);
public abstract Object get(String key);
} | package com.github.aureliano.achmed.resources.properties;
public interface IResourceProperties {
public abstract IResourceProperties put(String key, Object value);
public abstract Object get(String key);
public abstract void configureAttributes();
} | Add abstract method for parsing attributes. | Add abstract method for parsing attributes.
| Java | mit | aureliano/achmed |
667244ddb2a68ee1da4fc2d94e855c063dccd9c8 | backend/src/main/java/awesomefb/facebook/User.java | backend/src/main/java/awesomefb/facebook/User.java | package awesomefb.facebook;
import com.mongodb.BasicDBObject;
import org.bson.Document;
import org.json.JSONObject;
/**
* Created by earl on 5/25/2015.
*/
public class User extends Entity {
private String mName;
private boolean mIsPage;
/**
* Saves user data into users collection,
* returns D... | package awesomefb.facebook;
import org.bson.Document;
import org.json.JSONObject;
/**
* Created by earl on 5/25/2015.
*/
public class User extends Entity {
private String mName;
private boolean mIsPage;
public User(JSONObject reference) {
super(reference);
mName = reference.getString("n... | Add constructor with id, name and is_page values | Add constructor with id, name and is_page values
| Java | mit | earlwlkr/awesomeFb,earlwlkr/awesomeFb,earlwlkr/awesomeFb |
ac45b692968702fb85ca8712ab3ce7a82b284f2c | src/main/java/pl/jakubchmura/snmp/mib/reference/marker/GroovyMibNodeMarkerProvider.java | src/main/java/pl/jakubchmura/snmp/mib/reference/marker/GroovyMibNodeMarkerProvider.java | package pl.jakubchmura.snmp.mib.reference.marker;
import com.intellij.codeInsight.daemon.RelatedItemLineMarkerInfo;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.literals.GrLiteral;
import java.util.Collection;
imp... | package pl.jakubchmura.snmp.mib.reference.marker;
import com.intellij.codeInsight.daemon.RelatedItemLineMarkerInfo;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.literals.GrLiteral;
import java.util.Collection;
imp... | Check for null to prevent NPE inside Matcher | Check for null to prevent NPE inside Matcher
| Java | apache-2.0 | jchmura/MibPlugin |
85379509bcde687475e8818e40f4e24a9c6bc35e | webdriver/src/com/googlecode/jmeter/plugins/webdriver/sampler/SampleResultWithSubs.java | webdriver/src/com/googlecode/jmeter/plugins/webdriver/sampler/SampleResultWithSubs.java | package com.googlecode.jmeter.plugins.webdriver.sampler;
import org.apache.jmeter.samplers.SampleResult;
import org.apache.jorphan.logging.LoggingManager;
import org.apache.log.Logger;
public class SampleResultWithSubs extends SampleResult {
private static final Logger log = LoggingManager.getLoggerForClass();
... | package com.googlecode.jmeter.plugins.webdriver.sampler;
import org.apache.jmeter.samplers.SampleResult;
import org.apache.jorphan.logging.LoggingManager;
import org.apache.log.Logger;
public class SampleResultWithSubs extends SampleResult {
private static final Logger log = LoggingManager.getLoggerForClass();
... | Fix warning on double sampleEnd (which is not true) | Fix warning on double sampleEnd (which is not true)
| Java | apache-2.0 | ptrd/jmeter-plugins,ptrd/jmeter-plugins,Sausageo/jmeter-plugins,Sausageo/jmeter-plugins,ptrd/jmeter-plugins,Sausageo/jmeter-plugins,ptrd/jmeter-plugins,Sausageo/jmeter-plugins,Sausageo/jmeter-plugins,ptrd/jmeter-plugins |
2a3b2c886657083ebde55ff6b38459a08cfd43b8 | service/src/main/java/com/epam/rft/atsy/service/passwordchange/validation/impl/PasswordAllFieldFilledRule.java | service/src/main/java/com/epam/rft/atsy/service/passwordchange/validation/impl/PasswordAllFieldFilledRule.java | package com.epam.rft.atsy.service.passwordchange.validation.impl;
import com.epam.rft.atsy.service.domain.PasswordChangeDTO;
import com.epam.rft.atsy.service.passwordchange.validation.PasswordValidationRule;
import org.apache.commons.lang3.StringUtils;
public class PasswordAllFieldFilledRule implements PasswordValida... | package com.epam.rft.atsy.service.passwordchange.validation.impl;
import com.epam.rft.atsy.service.domain.PasswordChangeDTO;
import com.epam.rft.atsy.service.passwordchange.validation.PasswordValidationRule;
import org.apache.commons.lang3.StringUtils;
public class PasswordAllFieldFilledRule implements PasswordValida... | Fix isValid return statement logic | Fix isValid return statement logic
| Java | apache-2.0 | epam-debrecen-rft-2015/atsy,epam-debrecen-rft-2015/atsy,epam-debrecen-rft-2015/atsy |
9767e957465e0b58f55adca041ee504784178d5d | spring-pcf-application/spring-pcf-application-basic/src/main/java/com/thinkenterprise/ApplicationConfiguration.java | spring-pcf-application/spring-pcf-application-basic/src/main/java/com/thinkenterprise/ApplicationConfiguration.java | /*
* Copyright (C) 2016 Thinkenterprise
*
* 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) 2016 Thinkenterprise
*
* 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... | Delete Cloud Profile in Basic Package | Delete Cloud Profile in Basic Package | Java | apache-2.0 | Thinkenterprise/spring-pcf-training |
8d61d6a27088afe7694aeb8210d70fe31b2be5c6 | context-logger-jaxws/src/main/java/io/tracee/contextlogger/jaxws/container/TraceeContextLoggerJaxwsConstants.java | context-logger-jaxws/src/main/java/io/tracee/contextlogger/jaxws/container/TraceeContextLoggerJaxwsConstants.java | package io.tracee.contextlogger.jaxws.container;
public final class TraceeContextLoggerJaxwsConstants {
private TraceeContextLoggerJaxwsConstants() { }
public static final String TRACEE_WITH_ERROR_LOGGING_HANDLER_CHAIN_URL =
"/src/main/resources/io/tracee/contextlogger/jaxws/TraceeWithErrorLoggingHandlerChain.x... | package io.tracee.contextlogger.jaxws.container;
/**
* This class is not directly used but exists for the users convenience
* (Like adding @HandlerChain(xmlFile=TraceeContextLoggerJaxwsConstants.TRACEE_WITH_ERROR_LOGGING_HANDLER_CHAIN_URL)
*/
@SuppressWarnings("UnusedDeclaration")
public final class TraceeContextLo... | Add comment and SuppressWarning annotation | Add comment and SuppressWarning annotation
| Java | bsd-3-clause | tobiasstamann/contextlogger,tobiasgindler/contextlogger,tracee/contextlogger |
3ad99dddae2a9a284bd0809170574f56a251fcda | Belajar-Oauth2-Authorization-Server/src/main/java/com/rizki/mufrizal/belajar/oauth2/controller/PageController.java | Belajar-Oauth2-Authorization-Server/src/main/java/com/rizki/mufrizal/belajar/oauth2/controller/PageController.java | package com.rizki.mufrizal.belajar.oauth2.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
public class PageController {
@RequestMapping(value = "/login", method =... | package com.rizki.mufrizal.belajar.oauth2.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.Reques... | Update Page Controller Custom Error | Update Page Controller Custom Error
| Java | apache-2.0 | RizkiMufrizal/Belajar-Oauth2,RizkiMufrizal/Belajar-Oauth2,RizkiMufrizal/Belajar-Oauth2 |
7309183477870582dcc27bb2e3ad78fc4d733e86 | Information/Tutor.java | Information/Tutor.java | package Information;
public enum Tutor {
KARAN_BOODWA("Karan Boodwa"),
GIL_DEKEL("Gil Dekel"),
JONATHAN_GALSURKAR("Jonathan Galsurkar"),
MICHAEL_GAROD("Michael Garod"),
AARSH_VORA("Aarsh Vora");
private String name;
Tutor(String name) {
this.name = name;
}
@Override
p... | package Information;
public enum Tutor {
KARAN_BOODWA("Karan Boodwa"),
GIL_DEKEL("Gil Dekel"),
MICHAEL_GAROD("Michael Garod"),
MEREDITH_LANCASTER("Meredith Lancaster"),
WEI_SHI("Wei Shi");
private String name;
Tutor(String name) {
this.name = name;
}
@Override
public ... | Update tutors for Fall 2016 | Update tutors for Fall 2016
| Java | mit | mgarod/Attendance-Tracker |
9ea38e6348e68ba5061d1ef22db6cdfc0d2e93bc | javatests/google/registry/config/RegistryConfigTest.java | javatests/google/registry/config/RegistryConfigTest.java | // Copyright 2017 The Nomulus Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... | // Copyright 2017 The Nomulus Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... | Remove unnecessary line to load configs | Remove unnecessary line to load configs
Remove line that loads RegistryConfigSettings from RegistryConfigTest.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=148236844
| Java | apache-2.0 | google/nomulus,google/nomulus,google/nomulus,google/nomulus,google/nomulus,google/nomulus |
12765a3fdd70afbd939d8671c96b5818fddbbb01 | ifs-data-layer/ifs-data-service/src/main/java/org/innovateuk/ifs/assessment/dashboard/transactional/ApplicationAssessmentService.java | ifs-data-layer/ifs-data-service/src/main/java/org/innovateuk/ifs/assessment/dashboard/transactional/ApplicationAssessmentService.java | package org.innovateuk.ifs.assessment.dashboard.transactional;
import org.innovateuk.ifs.assessment.resource.dashboard.ApplicationAssessmentResource;
import org.innovateuk.ifs.commons.service.ServiceResult;
import org.springframework.security.access.prepost.PostFilter;
import java.util.List;
public interface Applica... | package org.innovateuk.ifs.assessment.dashboard.transactional;
import org.innovateuk.ifs.assessment.resource.dashboard.ApplicationAssessmentResource;
import org.innovateuk.ifs.commons.service.ServiceResult;
import org.springframework.security.access.prepost.PostFilter;
import java.util.List;
public interface Applica... | Update to remove permission at the moment | IFS-6498: Update to remove permission at the moment
| Java | mit | InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service |
2370a6bbdfa740f52807e3cc5bdaeebc5a912684 | src/net/zephyrizing/http_server/HttpRequest.java | src/net/zephyrizing/http_server/HttpRequest.java | package net.zephyrizing.http_server;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
public class HttpRequest {
public static enum Method {GET, POST};
private final Method method;
private final Path path;
private final String protocolVersion;
public HttpRequest(Me... | package net.zephyrizing.http_server;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
public class HttpRequest {
public static enum Method {OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE};
private final Method method;
private final Path path;
private final String protocol... | Add the rest of the HTTP request methods | Add the rest of the HTTP request methods
| Java | mit | RadicalZephyr/http-server |
298bef8405a2b27d9a888f12de00574f6144fd51 | xwiki-platform-core/xwiki-platform-extension/xwiki-platform-extension-repositories/xwiki-platform-extension-repository-xwiki/xwiki-platform-extension-repository-xwiki-api/src/main/java/org/xwiki/extension/repository/xwiki/Resources.java | xwiki-platform-core/xwiki-platform-extension/xwiki-platform-extension-repositories/xwiki-platform-extension-repository-xwiki/xwiki-platform-extension-repository-xwiki-api/src/main/java/org/xwiki/extension/repository/xwiki/Resources.java | package org.xwiki.extension.repository.xwiki;
/**
* Resources to use to access Extension Manager REST service.
* <p>
* Resources producing list of result support the following arguments:
* <ul>
* <li>start: offset where the search start to return results</li>
* <li>number: maximum number of results</li>
* </ul>... | package org.xwiki.extension.repository.xwiki;
/**
* Resources to use to access Extension Manager REST service.
* <p>
* Resources producing list of result support the following arguments:
* <ul>
* <li>start: offset where the search start to return results</li>
* <li>number: maximum number of results</li>
* </ul>... | Make XWiki Repository protocol more restfull | XWIKI-6871: Make XWiki Repository protocol more restfull
| Java | lgpl-2.1 | xwiki/xwiki-platform,pbondoer/xwiki-platform,xwiki/xwiki-platform,pbondoer/xwiki-platform,xwiki/xwiki-platform,xwiki/xwiki-platform,xwiki/xwiki-platform,pbondoer/xwiki-platform,pbondoer/xwiki-platform,pbondoer/xwiki-platform |
e6c4deb6d47430197eac95dde51f7c1251b7a292 | src/src/FileSystemWorker.java | src/src/FileSystemWorker.java | package src;
import java.io.File;
import java.nio.file.Path;
public class FileSystemWorker {
public static String GetExtension(String path){
int sepPos = path.lastIndexOf(File.separator);
String nameAndExt = path.substring(sepPos + 1, path.length());
int dotPos = nameAndExt.lastIndexOf("."... | package src;
import org.ini4j.Wini;
import java.io.File;
import java.io.IOException;
import java.nio.file.Path;
public class FileSystemWorker {
public static String GetParam(String keyName) throws IOException {
Wini ini = new Wini(new File("tournamentset.ini"));
return ini.get("General", keyNam... | Add some methods to detect user name, language from full path | Add some methods to detect user name, language from full path
| Java | mit | SarahWhereIsMyTea/Tournament,SarahWhereIsMyTea/Tournament,SarahWhereIsMyTea/Tournament,SarahWhereIsMyTea/Tournament,SarahWhereIsMyTea/Tournament |
fc37fc6baa8eeab2c90216aa57fac1d60bda6e81 | nuxeo-drive-server/nuxeo-drive-core/src/main/java/org/nuxeo/drive/service/NuxeoDriveEvents.java | nuxeo-drive-server/nuxeo-drive-core/src/main/java/org/nuxeo/drive/service/NuxeoDriveEvents.java | /*
* (C) Copyright 2012 Nuxeo SA (http://nuxeo.com/) and contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.o... | /*
* (C) Copyright 2012 Nuxeo SA (http://nuxeo.com/) and contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.o... | Fix Sonar Major violation: Interface Is Type | NXP-11577: Fix Sonar Major violation: Interface Is Type
| Java | lgpl-2.1 | arameshkumar/nuxeo-drive,rsoumyassdi/nuxeo-drive,IsaacYangSLA/nuxeo-drive,ssdi-drive/nuxeo-drive,rsoumyassdi/nuxeo-drive,rsoumyassdi/nuxeo-drive,arameshkumar/nuxeo-drive,arameshkumar/nuxeo-drive,arameshkumar/base-nuxeo-drive,DirkHoffmann/nuxeo-drive,loopingz/nuxeo-drive,loopingz/nuxeo-drive,IsaacYangSLA/nuxeo-drive,Isa... |
83247f0672f863f0ef30588b17b9f7a89b48da6e | core/store/dist/src/main/java/org/onosproject/store/intent/impl/IntentDataClockManager.java | core/store/dist/src/main/java/org/onosproject/store/intent/impl/IntentDataClockManager.java | /*
* Copyright 2015 Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | /*
* Copyright 2015 Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | Fix entries getting stuck in the pending map. | Fix entries getting stuck in the pending map.
Pending map timestamp should be composite of
(IntentData.version(), wallclocktime)
Change-Id: I3caf739c4fdb70535696176621649f0842eea467
| Java | apache-2.0 | maheshraju-Huawei/actn,oplinkoms/onos,planoAccess/clonedONOS,kuangrewawa/onos,jinlongliu/onos,planoAccess/clonedONOS,Shashikanth-Huawei/bmp,donNewtonAlpha/onos,oeeagle/onos,LorenzReinhart/ONOSnew,kkkane/ONOS,Shashikanth-Huawei/bmp,opennetworkinglab/onos,CNlukai/onos-gerrit-test,jinlongliu/onos,donNewtonAlpha/onos,oplin... |
dc264fe742b0db22ad843e268615618d31a79b90 | core/com.b2international.snowowl.core/src/com/b2international/snowowl/core/domain/SetMembers.java | core/com.b2international.snowowl.core/src/com/b2international/snowowl/core/domain/SetMembers.java | /*
* Copyright 2020 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | /*
* Copyright 2020 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | Add JSON deserialization annotations to collection resource | SO-4029: Add JSON deserialization annotations to collection resource | Java | apache-2.0 | b2ihealthcare/snow-owl,b2ihealthcare/snow-owl,b2ihealthcare/snow-owl,b2ihealthcare/snow-owl |
a5bf81649c8611b61985154f113db61401454699 | src/main/java/com/peak/salut/BackgroundDataJob.java | src/main/java/com/peak/salut/BackgroundDataJob.java | package com.peak.salut;
import android.util.Log;
import com.arasthel.asyncjob.AsyncJob;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.net.Socket;
public class BackgroundDataJob implements AsyncJob.OnBackgroundJob{
private Salut salutInstance;
private Socket clientSocket;
... | package com.peak.salut;
import android.util.Log;
import com.arasthel.asyncjob.AsyncJob;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.net.Socket;
public class BackgroundDataJob implements AsyncJob.OnBackgroundJob{
private Salut salutInstance;
private Socket clientSocket;
... | Fix to remove Activity as necessary arg | Fix to remove Activity as necessary arg
| Java | mit | 3sidedcube/Salut |
b60813da334857332819264f021a5517412763e6 | src/org/bouncycastle/crypto/tls/TlsCipherSuite.java | src/org/bouncycastle/crypto/tls/TlsCipherSuite.java | package org.bouncycastle.crypto.tls;
import java.io.IOException;
import java.io.InputStream;
/**
* A generic class for ciphersuites in TLS 1.0.
*/
abstract class TlsCipherSuite
{
protected static final short KE_RSA = 1;
protected static final short KE_RSA_EXPORT = 2;
protected static final short KE_DHE_... | package org.bouncycastle.crypto.tls;
import java.io.IOException;
import java.io.InputStream;
/**
* A generic class for ciphersuites in TLS 1.0.
*/
abstract class TlsCipherSuite
{
protected static final short KE_RSA = 1;
protected static final short KE_RSA_EXPORT = 2;
protected static final short KE_DHE_... | Reorder methods to match the order TlsProtocolHandler will call them during handshake | Reorder methods to match the order TlsProtocolHandler will call them during handshake
| Java | mit | sake/bouncycastle-java |
4bfdb9e5ca87a7bd66f6fd3015f0b95fa5e440a4 | src/test/java/eu/lestard/easydi/InterfaceTest.java | src/test/java/eu/lestard/easydi/InterfaceTest.java | package eu.lestard.easydi;
import org.junit.Before;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
/**
* This test is used to verify the behaviour of EasyDI dealing with interfaces.
*/
public class InterfaceTest {
public static interface A {
}
public static interface... | package eu.lestard.easydi;
import org.junit.Before;
import org.junit.Test;
import javax.inject.Singleton;
import static org.assertj.core.api.Assertions.*;
/**
* This test is used to verify the behaviour of EasyDI dealing with interfaces.
*/
public class InterfaceTest {
public static interface A {
}
... | Add Test case for Interface with @Singleton annotation | Add Test case for Interface with @Singleton annotation
| Java | apache-2.0 | lestard/EasyDI |
35f8075941623af748689aed52c3b7206debf2fe | work/src/org/kuali/kfs/module/purap/document/validation/impl/PurchaseOrderSplitDocumentRule.java | work/src/org/kuali/kfs/module/purap/document/validation/impl/PurchaseOrderSplitDocumentRule.java | /*
* Copyright 2008 The Kuali Foundation.
*
* Licensed under the Educational Community License, Version 1.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.opensource.org/licenses/ecl1.php
*
* Unless required by app... | /*
* Copyright 2008 The Kuali Foundation.
*
* Licensed under the Educational Community License, Version 1.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.opensource.org/licenses/ecl1.php
*
* Unless required by app... | Change for KULPURAP-2710, PO Split validation | Change for KULPURAP-2710, PO Split validation
| Java | agpl-3.0 | smith750/kfs,ua-eas/kfs,UniversityOfHawaii/kfs,quikkian-ua-devops/kfs,kuali/kfs,UniversityOfHawaii/kfs,bhutchinson/kfs,quikkian-ua-devops/kfs,kkronenb/kfs,bhutchinson/kfs,ua-eas/kfs,ua-eas/kfs-devops-automation-fork,smith750/kfs,smith750/kfs,quikkian-ua-devops/kfs,UniversityOfHawaii/kfs,ua-eas/kfs,ua-eas/kfs-devops-aut... |
29fde077a72da2b2729e88455dc03dbd4540f1a4 | api/src/main/java/org/motechproject/nms/api/web/contract/mobileAcademy/CourseVersionResponse.java | api/src/main/java/org/motechproject/nms/api/web/contract/mobileAcademy/CourseVersionResponse.java | package org.motechproject.nms.api.web.contract.mobileAcademy;
/**
* API response object for getting course version
*/
public class CourseVersionResponse {
private int courseVersion;
public CourseVersionResponse() {
}
public CourseVersionResponse(int courseVersion) {
this.courseVersion = c... | package org.motechproject.nms.api.web.contract.mobileAcademy;
/**
* API response object for getting course version
*/
public class CourseVersionResponse {
private long courseVersion;
public CourseVersionResponse() {
}
public CourseVersionResponse(long courseVersion) {
this.courseVersion =... | Fix a bug in MA tests. Casting version.getMillis to an int resulted in the integer rolling over and returning a negative number | Fix a bug in MA tests. Casting version.getMillis to an int resulted in the integer rolling over
and returning a negative number
| Java | bsd-3-clause | ngraczewski/mim,motech-implementations/mim,motech-implementations/mim,motech-implementations/mim,ngraczewski/mim,ngraczewski/mim,motech-implementations/mim |
2d008623f479edd3aa54fd9395463f8cf82f0984 | protocols/gossip/src/main/java/io/atomix/protocols/gossip/protocol/AntiEntropyProtocolDispatcher.java | protocols/gossip/src/main/java/io/atomix/protocols/gossip/protocol/AntiEntropyProtocolDispatcher.java | /*
* Copyright 2017-present Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | /*
* Copyright 2017-present Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | Remove cluster dependency from gossip protocols. | Remove cluster dependency from gossip protocols.
| Java | apache-2.0 | atomix/atomix,kuujo/copycat,kuujo/copycat,atomix/atomix |
75a8b24db98433b9d6c878f65418c84bcb33d9d5 | runners/spark/src/test/java/org/apache/beam/runners/spark/structuredstreaming/utils/EncodersTest.java | runners/spark/src/test/java/org/apache/beam/runners/spark/structuredstreaming/utils/EncodersTest.java | package org.apache.beam.runners.spark.structuredstreaming.utils;
import java.util.ArrayList;
import java.util.List;
import org.apache.beam.runners.spark.structuredstreaming.translation.helpers.EncoderHelpers;
import org.apache.beam.sdk.coders.Coder;
import org.apache.beam.sdk.coders.VarIntCoder;
import org.apache.spar... | package org.apache.beam.runners.spark.structuredstreaming.utils;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.apache.beam.runners.spark.structuredstreaming.translation.helpers.EncoderHelpers;
import org.apache.beam.sdk.coders.VarIntCoder;
import org.apache... | Add an assert of equality in the encoders test | [BEAM-8470] Add an assert of equality in the encoders test
| Java | apache-2.0 | apache/beam,lukecwik/incubator-beam,RyanSkraba/beam,lukecwik/incubator-beam,apache/beam,apache/beam,robertwb/incubator-beam,robertwb/incubator-beam,lukecwik/incubator-beam,lukecwik/incubator-beam,chamikaramj/beam,lukecwik/incubator-beam,lukecwik/incubator-beam,robertwb/incubator-beam,robertwb/incubator-beam,lukecwik/in... |
70c635f220ada81b3013d589b60e1b94bcb54fa5 | azure-client-authentication/src/test/java/com/microsoft/azure/v2/credentials/RefreshTokenClientTests.java | azure-client-authentication/src/test/java/com/microsoft/azure/v2/credentials/RefreshTokenClientTests.java | package com.microsoft.azure.v2.credentials;
import com.google.common.base.Charsets;
import com.google.common.io.CharStreams;
import com.microsoft.azure.v2.credentials.http.MockHttpClient;
import com.microsoft.rest.v2.http.HttpRequest;
import org.junit.Test;
import java.io.IOException;
import java.io.InputStreamReader... | package com.microsoft.azure.v2.credentials;
import com.google.common.base.Charsets;
import com.google.common.io.CharStreams;
import com.microsoft.azure.v2.credentials.http.MockHttpClient;
import com.microsoft.rest.v2.http.HttpRequest;
import org.junit.Test;
import java.io.IOException;
import java.io.InputStreamReader... | Fix type name comparison in credentials test | Fix type name comparison in credentials test
| Java | mit | navalev/azure-sdk-for-java,Azure/azure-sdk-for-java,selvasingh/azure-sdk-for-java,navalev/azure-sdk-for-java,Azure/azure-sdk-for-java,selvasingh/azure-sdk-for-java,navalev/azure-sdk-for-java,Azure/azure-sdk-for-java,navalev/azure-sdk-for-java,Azure/azure-sdk-for-java,selvasingh/azure-sdk-for-java,navalev/azure-sdk-for-... |
b83be1efa6776c00a7d334d8aea6e7ed0ac88048 | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/TenantRoles.java | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/TenantRoles.java | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.aws;
/**
* @author mortent
*/
public class TenantRoles {
private final String hostRole;
private final String hostServiceRole;
private ... | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.aws;
/**
* @author mortent
*/
public class TenantRoles {
private final String hostRole;
private final String tenantHostServiceRole;
pr... | Rename host role and host service role | Rename host role and host service role
| 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 |
3d95fbbdcd6c19523f57082a5ed8b4710d23c8e9 | squarecamera/src/main/java/com/desmond/squarecamera/ResizeAnimation.java | squarecamera/src/main/java/com/desmond/squarecamera/ResizeAnimation.java | package com.desmond.squarecamera;
import android.support.annotation.NonNull;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Transformation;
/**
* Created by desmond on 4/8/15.
*/
public class ResizeAnimation extends Animation {
final int mStartLength;
final ... | package com.desmond.squarecamera;
import android.support.annotation.NonNull;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Transformation;
/**
* Created by desmond on 4/8/15.
*/
public class ResizeAnimation extends Animation {
final int mStartLength;
final ... | Remove a double call to requestLayout in applyTransformation | Remove a double call to requestLayout in applyTransformation
| Java | mit | rodrigohenriques/SquareCamera,HKMOpen/SquareCamera,GiacomoDB/SquareCamera,ChaosJohn/SquareCamera,boxme/SquareCamera,yilzer/SquareCamera,Tractive/SquareCamera |
9f70b0aa435c6342c0c4babbd94d84cbee6ddca0 | admin/admin-template/src/main/java/com/vsct/dt/strowgr/admin/template/template/DefaultTemplates.java | admin/admin-template/src/main/java/com/vsct/dt/strowgr/admin/template/template/DefaultTemplates.java | /*
* Copyright (C) 2016 VSCT
*
* 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 (C) 2016 VSCT
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Add {{application}}{{platform}} to log filename | Add {{application}}{{platform}} to log filename
| Java | apache-2.0 | voyages-sncf-technologies/strowgr,voyages-sncf-technologies/strowgr,voyages-sncf-technologies/strowgr |
886b91c24f3ab07310f9e983ed1a6a2a4d445aed | src/main/java/ca/corefacility/bioinformatics/irida/ria/web/models/datatables/DTAnnouncementAdmin.java | src/main/java/ca/corefacility/bioinformatics/irida/ria/web/models/datatables/DTAnnouncementAdmin.java | package ca.corefacility.bioinformatics.irida.ria.web.models.datatables;
import java.util.Date;
import ca.corefacility.bioinformatics.irida.model.announcements.Announcement;
import ca.corefacility.bioinformatics.irida.model.user.User;
import ca.corefacility.bioinformatics.irida.ria.web.components.datatables.models.Dat... | package ca.corefacility.bioinformatics.irida.ria.web.models.datatables;
import java.util.Date;
import ca.corefacility.bioinformatics.irida.model.announcements.Announcement;
import ca.corefacility.bioinformatics.irida.model.user.User;
import ca.corefacility.bioinformatics.irida.ria.web.components.datatables.models.Dat... | Truncate really long message previews | Truncate really long message previews
| Java | apache-2.0 | phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida |
c9762b047d99fcd9700b8c3eb5b7b8c744ccaf5a | components/src/main/java/org/wso2/carbon/messaging/MessageDataSource.java | components/src/main/java/org/wso2/carbon/messaging/MessageDataSource.java | /*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | /*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | Add method to get the content as a string which is required for message manipulations in runtime | Add method to get the content as a string which is required for message manipulations in runtime
| Java | apache-2.0 | wso2/carbon-messaging |
cca690b6d27849345e119524a0b6ffa2555d267b | src/protocolsupport/protocol/packet/middleimpl/clientbound/play/v_1_9_r1__1_9_r2__1_10__1_11/Position.java | src/protocolsupport/protocol/packet/middleimpl/clientbound/play/v_1_9_r1__1_9_r2__1_10__1_11/Position.java | package protocolsupport.protocol.packet.middleimpl.clientbound.play.v_1_9_r1__1_9_r2__1_10__1_11;
import protocolsupport.api.ProtocolVersion;
import protocolsupport.protocol.packet.ClientBoundPacket;
import protocolsupport.protocol.packet.middle.clientbound.play.MiddlePosition;
import protocolsupport.protocol.packet.m... | package protocolsupport.protocol.packet.middleimpl.clientbound.play.v_1_9_r1__1_9_r2__1_10__1_11;
import protocolsupport.api.ProtocolVersion;
import protocolsupport.protocol.packet.ClientBoundPacket;
import protocolsupport.protocol.packet.middle.clientbound.play.MiddlePosition;
import protocolsupport.protocol.packet.m... | Write original coords for versions that support position flags | Write original coords for versions that support position flags | Java | agpl-3.0 | ridalarry/ProtocolSupport,ProtocolSupport/ProtocolSupport |
6940829807187b9e494913a91b5f4cae9b48d77b | src/java/org/apache/commons/math/analysis/MultivariateMatrixFunction.java | src/java/org/apache/commons/math/analysis/MultivariateMatrixFunction.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Drop Serializable. Interface is new to 2.0, and not implemented except in test code, so no need to do anything further | Drop Serializable.
Interface is new to 2.0, and not implemented except in test code, so no need to do anything further
git-svn-id: 80d496c472b8b763a5e941dba212da9bf48aeceb@777516 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | Hipparchus-Math/hipparchus,apache/commons-math,apache/commons-math,apache/commons-math,sdinot/hipparchus,Hipparchus-Math/hipparchus,sdinot/hipparchus,sdinot/hipparchus,Hipparchus-Math/hipparchus,sdinot/hipparchus,Hipparchus-Math/hipparchus,apache/commons-math |
796c0a67d56e681990ee49f946a8b60113dfe2a4 | rave-components/rave-core-api/src/main/java/org/apache/rave/rest/interceptor/JsonResponseWrapperInterceptor.java | rave-components/rave-core-api/src/main/java/org/apache/rave/rest/interceptor/JsonResponseWrapperInterceptor.java | package org.apache.rave.rest.interceptor;
import org.apache.cxf.interceptor.Fault;
import org.apache.cxf.message.Message;
import org.apache.cxf.phase.AbstractPhaseInterceptor;
import org.apache.cxf.phase.Phase;
import org.apache.rave.rest.model.JsonResponseWrapper;
/**
* Created with IntelliJ IDEA.
* User: erinnp
... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Add apache headers to interceptor | Add apache headers to interceptor
git-svn-id: 0f15cb08c8344e4f03ae17f6299848a7299a746f@1506125 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | svn2github/rave,svn2github/rave,svn2github/rave |
68c89df0487bf372321aaeb503cc44f20faa3a33 | testsuite/integration/clustering/src/test/java/org/jboss/as/test/clustering/twoclusters/bean/common/CommonStatefulSBImpl.java | testsuite/integration/clustering/src/test/java/org/jboss/as/test/clustering/twoclusters/bean/common/CommonStatefulSBImpl.java | package org.jboss.as.test.clustering.twoclusters.bean.common;
import org.jboss.as.test.clustering.twoclusters.bean.SerialBean;
import javax.annotation.PostConstruct;
import javax.ejb.Remove;
import java.util.logging.Level;
import java.util.logging.Logger;
public class CommonStatefulSBImpl implements CommonStatefulSB... | package org.jboss.as.test.clustering.twoclusters.bean.common;
import org.jboss.as.test.clustering.twoclusters.bean.SerialBean;
import javax.annotation.PostConstruct;
import javax.ejb.Remove;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import java.util.logging.Level;
import java.u... | Disable transactions for invocations on RemoteStatefulSB | [WFLY-4853] Disable transactions for invocations on RemoteStatefulSB
| Java | lgpl-2.1 | jstourac/wildfly,wildfly/wildfly,xasx/wildfly,tadamski/wildfly,pferraro/wildfly,golovnin/wildfly,99sono/wildfly,iweiss/wildfly,jstourac/wildfly,99sono/wildfly,pferraro/wildfly,jstourac/wildfly,tadamski/wildfly,rhusar/wildfly,rhusar/wildfly,rhusar/wildfly,wildfly/wildfly,99sono/wildfly,pferraro/wildfly,tomazzupan/wildfl... |
3dc513a64e1e2737b406cacd391c3ccb9676c1f2 | android/java/com/sometrik/framework/FWPicker.java | android/java/com/sometrik/framework/FWPicker.java | package com.sometrik.framework;
import android.content.Context;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
public class FWPicker extends Spinner implements NativeMessageHandler {
ArrayAdapter<String> adapter;
public FWPicker(Context context) {
super(context);
adapter ... | package com.sometrik.framework;
import java.util.ArrayList;
import java.util.TreeMap;
import android.content.Context;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
public class FWPicker extends Spinner implements NativeMessageHandler {
ArrayAdapter<String> adapter;
ArrayList<I... | Add adapter option number sorting | Add adapter option number sorting | Java | mit | Sometrik/framework,Sometrik/framework,Sometrik/framework |
a35ef16ea1758e16c2883327e73c3e81be3c586e | plugins/org.yakindu.sct.model.stext.ui/src/org/yakindu/sct/model/stext/ui/validation/SCTResourceValidatorImpl.java | plugins/org.yakindu.sct.model.stext.ui/src/org/yakindu/sct/model/stext/ui/validation/SCTResourceValidatorImpl.java | /**
* Copyright (c) 2012 committers of YAKINDU and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* Contr... | /**
* Copyright (c) 2012 committers of YAKINDU and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* Contr... | Call super.resolveProxies when loaded with another resource than AbstractSCtResource | Call super.resolveProxies when loaded with another resource than AbstractSCtResource | Java | epl-1.0 | Yakindu/statecharts,Yakindu/statecharts,Yakindu/statecharts,Yakindu/statecharts,Yakindu/statecharts,Yakindu/statecharts,Yakindu/statecharts |
606ab606a07cc38369964cbf46e29217c02074e3 | client-common/src/main/java/org/realityforge/replicant/client/Channel.java | client-common/src/main/java/org/realityforge/replicant/client/Channel.java | package org.realityforge.replicant.client;
import arez.Arez;
import arez.annotations.ArezComponent;
import arez.annotations.Observable;
import java.util.Objects;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
* The Channel object contains the address of the channel and the optional filter for... | package org.realityforge.replicant.client;
import arez.Arez;
import arez.annotations.ArezComponent;
import arez.annotations.Observable;
import java.util.Objects;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
* The Channel object contains the address of the channel and the optional filter for... | Add simplified factory for channel | Add simplified factory for channel
| Java | apache-2.0 | realityforge/replicant,realityforge/replicant |
8734467cc716c4a39cea62cde851873222699671 | modules/sql/src/main/java/java/sql/SQLException.java | modules/sql/src/main/java/java/sql/SQLException.java | package java.sql;
/**
* Stub to keep J9 happy for now
*
*/
public class SQLException extends Exception {
SQLException() {
super();
}
SQLException(String s) {
super(s);
}
SQLException(String s, String t) {
super(s);
}
SQLException(Strin... | package java.sql;
/**
* Stub for now
*
*/
public class SQLException extends Exception {
SQLException() {
super();
}
SQLException(String s) {
super(s);
}
SQLException(String s, String t) {
super(s);
}
SQLException(String s, String t, in... | Remove scandalous besmirchment of J9 | Remove scandalous besmirchment of J9
svn path=/incubator/harmony/enhanced/classlib/trunk/; revision=371901
| Java | apache-2.0 | freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM |
aacee7852983edf82ab7efc6f8950c86b3622c99 | app/src/main/java/de/philipphager/disclosure/util/assertion/Assertions.java | app/src/main/java/de/philipphager/disclosure/util/assertion/Assertions.java | package de.philipphager.disclosure.util.assertion;
public final class Assertions {
@SuppressWarnings("PMD.UnnecessaryConstructor") private Assertions() {
//No instances of helper classes.
}
public static <T> T ensureNotNull(T t) {
if (t == null) {
throw new IllegalStateException("must not be null"... | package de.philipphager.disclosure.util.assertion;
public final class Assertions {
@SuppressWarnings("PMD.UnnecessaryConstructor") private Assertions() {
//No instances of helper classes.
}
public static <T> T ensureNotNull(T t) {
if (t == null) {
throw new IllegalStateException("must not be null"... | Add util assertion method to check a state. | Add util assertion method to check a state.
Validate conditions, that should never occur.
If the argument is false, an exception is being thrown.
| Java | apache-2.0 | philipphager/disclosure-android-app |
3c6c2a60b6efcefd21d8793dbd062c7b9ba31d48 | src/main/java/net/qbar/common/block/BlockBoiler.java | src/main/java/net/qbar/common/block/BlockBoiler.java | package net.qbar.common.block;
import net.minecraft.block.material.Material;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.qbar.common.tile.TileBoiler;
public class BlockBoiler extends BlockMachineBase
{
public BlockBoiler()
{
super("boiler", Material.IRON);
... | package net.qbar.common.block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.mat... | Add fluidtank hand filling to boiler | Add fluidtank hand filling to boiler
| Java | apache-2.0 | OPMCorp/Qbar,Phenix246/Qbar,mantal/Qbar |
50518d0fe849cd3d91238f37257fff056bb5dd22 | src/main/java/com/conveyal/taui/models/Reroute.java | src/main/java/com/conveyal/taui/models/Reroute.java | package com.conveyal.taui.models;
import java.util.List;
/**
* Created by matthewc on 3/28/16.
*/
public class Reroute extends Modification {
public String name;
public String feed;
public String[] routes;
public String[] trips;
public String fromStop;
public String toStop;
public Lis... | package com.conveyal.taui.models;
import java.util.List;
/**
* Created by matthewc on 3/28/16.
*/
public class Reroute extends Modification {
public String name;
public String feed;
public String[] routes;
public String[] trips;
public String fromStop;
public String toStop;
public Lis... | Add dwell times array to reroute modifications | feat(dwell): Add dwell times array to reroute modifications
| Java | mit | conveyal/analyst,conveyal/analysis-backend,conveyal/analysis-backend,conveyal/analysis-backend,conveyal/analyst,conveyal/analyst |
c9b2a1b593b8a2d8d42ffb99ae0aa704998e4917 | src/main/java/com/clashsoft/hypercube/util/TextureLoader.java | src/main/java/com/clashsoft/hypercube/util/TextureLoader.java | package com.clashsoft.hypercube.util;
import javafx.scene.image.Image;
import javafx.scene.paint.Color;
import javafx.scene.paint.Material;
import javafx.scene.paint.PhongMaterial;
import java.io.File;
public final class TextureLoader
{
public static Material material(String domain, String imageSource)
{
final P... | package com.clashsoft.hypercube.util;
import javafx.scene.image.Image;
import javafx.scene.paint.Color;
import javafx.scene.paint.Material;
import javafx.scene.paint.PhongMaterial;
public final class TextureLoader
{
public static Material material(String domain, String imageSource)
{
final PhongMaterial material ... | Fix Texture Loading on Windows | Fix Texture Loading on Windows
- Fixed Textures not being loaded correctly on Windows.
| Java | bsd-3-clause | Dyvil/Hypercube |
7bfdd441d93a92fbae5e4e7dfd9bbc528668eba6 | src/main/java/info/u_team/u_team_core/util/registry/BlockRegistryObject.java | src/main/java/info/u_team/u_team_core/util/registry/BlockRegistryObject.java | package info.u_team.u_team_core.util.registry;
import java.util.function.Supplier;
import net.minecraft.block.Block;
import net.minecraft.item.BlockItem;
import net.minecraftforge.fml.RegistryObject;
public class BlockRegistryObject<B extends Block, I extends BlockItem> implements Supplier<B> {
private final Regi... | package info.u_team.u_team_core.util.registry;
import java.util.function.Supplier;
import net.minecraft.block.Block;
import net.minecraft.item.BlockItem;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.RegistryObject;
public class BlockRegistryObject<B extends Block, I extends BlockItem> im... | Add more getters to block registry object | Add more getters to block registry object | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
115a5ce93abd7c9769241ab0f0c3e62817021931 | svq.java | svq.java | // Get JAFFE database from http://www.kasrl.org/jaffe_info.html
// Extract pics in folder named "jaffe"
// package image_test;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
... | // Get JAFFE database from http://www.kasrl.org/jaffe_info.html
// Extract pics in folder named "jaffe"
// package image_test;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
... | Convert bmp to byte array | Convert bmp to byte array
| Java | mit | giuseppecuccu/jsvq,giuseppecuccu/jsvq |
59bdf3787f77685161c291697f52c3b12ec57123 | jkind-api/src/jkind/api/examples/Kind2WebExample.java | jkind-api/src/jkind/api/examples/Kind2WebExample.java | package jkind.api.examples;
import java.io.FileReader;
import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import jkind.api.xml.Kind2WebInputStream;
import jkind.api.xml.LineInputStream;
public class Kind2WebExample {
public static void main(String[] args) throws Exce... | package jkind.api.examples;
import java.io.FileReader;
import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import jkind.api.xml.Kind2WebInputStream;
import jkind.api.xml.LineInputStream;
public class Kind2WebExample {
public static void main(String[] args) throws Exce... | Add default time out to Kind 2 web example | Add default time out to Kind 2 web example
| Java | bsd-3-clause | backesj/jkind,andrewkatis/jkind-1,lgwagner/jkind,agacek/jkind,backesj/jkind,andrewkatis/jkind-1,agacek/jkind,lgwagner/jkind |
472b306608a71d5a8c4209672f68acb0a4bb359d | library/src/com/litl/leveldb/NativeObject.java | library/src/com/litl/leveldb/NativeObject.java | package com.litl.leveldb;
import java.io.Closeable;
import java.util.concurrent.atomic.AtomicInteger;
import android.util.Log;
abstract class NativeObject implements Closeable {
private static final String TAG = NativeObject.class.getSimpleName();
protected long mPtr;
private AtomicInteger mRefCount = ne... | package com.litl.leveldb;
import java.io.Closeable;
import android.util.Log;
abstract class NativeObject implements Closeable {
private static final String TAG = NativeObject.class.getSimpleName();
protected long mPtr;
private int mRefCount = 0;
protected NativeObject() {
// The Java wrapper... | Add additional checks in unref() | Add additional checks in unref()
make sure no code calls unref() more than it should. Requires taking a
wider lock, but this isn't performance critical code anyway
| Java | bsd-3-clause | litl/android-leveldb,michalliu/android-leveldb,michalliu/android-leveldb,litl/android-leveldb,litl/android-leveldb,litl/android-leveldb,michalliu/android-leveldb,michalliu/android-leveldb,michalliu/android-leveldb,michalliu/android-leveldb,litl/android-leveldb |
7c28d667bc0d177feea7f3437ac6206bc5d5da7d | core/src/main/net/gpdev/gameoflife/GameOfLife.java | core/src/main/net/gpdev/gameoflife/GameOfLife.java | package net.gpdev.gameoflife;
public class GameOfLife {
private final int xDim;
private final int yDim;
private Grid current;
private Grid next;
public GameOfLife(int xDim, int yDim) {
this.xDim = xDim;
this.yDim = yDim;
current = new Grid(xDim, yDim);
next = new G... | package net.gpdev.gameoflife;
public class GameOfLife {
private final int xDim;
private final int yDim;
private Grid current;
private Grid next;
public GameOfLife(int xDim, int yDim) {
this.xDim = xDim;
this.yDim = yDim;
current = new Grid(xDim, yDim);
next = new G... | Correct game.tick() implementation and pass failing test | Correct game.tick() implementation and pass failing test
| Java | mit | gpertzov/game-of-life,gpertzov/game-of-life,gpertzov/game-of-life |
185aae9e522e383fe6fcfde882a554c746501e74 | src/main/java/ro/stancalau/lombok/examples/correct/ExtendedEqualableParent.java | src/main/java/ro/stancalau/lombok/examples/correct/ExtendedEqualableParent.java | package ro.stancalau.lombok.examples.correct;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@EqualsAndHashCode
public class ExtendedEqualableParent extends EqualableParent {
}
| package ro.stancalau.lombok.examples.correct;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
public class ExtendedEqualableParent extends EqualableParent {
}
| Add call super option for @EqualsAndHashCode to avoid build warning. | Add call super option for @EqualsAndHashCode to avoid build warning.
| Java | apache-2.0 | stancalau/lombok |
f324baac544b31065f896ee4a477e96a6b7f0d00 | Procyon.Core/src/main/java/com/strobel/Procyon.java | Procyon.Core/src/main/java/com/strobel/Procyon.java | /*
* Framework.java
*
* Copyright (c) 2015 Mike Strobel
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0.
* A copy of the license can be found in the License.html file at the root of this distribution.
* By using this source code in any fashion, you are agreeing t... | /*
* Framework.java
*
* Copyright (c) 2015 Mike Strobel
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0.
* A copy of the license can be found in the License.html file at the root of this distribution.
* By using this source code in any fashion, you are agreeing t... | Fix version number (update major) | Fix version number (update major)
| Java | apache-2.0 | Thog/Procyon |
9a72900e23226924e5793cc172e73a84cc16788d | src/test/java/org/apache/commons/imaging/formats/psd/ImageResourceBlockTest.java | src/test/java/org/apache/commons/imaging/formats/psd/ImageResourceBlockTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Use StandardCharsets instead of string value | Use StandardCharsets instead of string value
| Java | apache-2.0 | apache/commons-imaging,apache/commons-imaging |
c7d4747fbe08e23e0aa51228fbde5796d1a9c256 | lab_02/socket_client/src/main/java/example/SocketClient.java | lab_02/socket_client/src/main/java/example/SocketClient.java | package example;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
public class SocketClient {
public static void main( String[] args ) throws IOException {
// Check arguments
if (args.length < 3) {
System.err.println("Argument(s) missin... | package example;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
public class SocketClient {
public static void main( String[] args ) throws IOException {
// Check arguments
if (args.length < 3) {
System.err.println("Argument(s) missin... | Fix String to Integer conversion bug | Fix String to Integer conversion bug
| Java | mit | iluxonchik/distributed-systems-course,iluxonchik/distributed-systems-course |
f852cc8e84d3452d1dc6f0d49af84b434647dcdd | ethereumj-core/src/test/java/org/ethereum/solidity/AbiTest.java | ethereumj-core/src/test/java/org/ethereum/solidity/AbiTest.java | package org.ethereum.solidity;
import static junit.framework.TestCase.assertEquals;
import static org.junit.Assert.assertTrue;
import org.ethereum.solidity.Abi.Entry;
import org.ethereum.solidity.Abi.Entry.Type;
import org.junit.Test;
import java.io.IOException;
public class AbiTest {
@Test
public void sim... | package org.ethereum.solidity;
import static junit.framework.TestCase.assertEquals;
import static org.junit.Assert.assertTrue;
import org.ethereum.solidity.Abi.Entry;
import org.ethereum.solidity.Abi.Entry.Type;
import org.junit.Test;
import java.io.IOException;
public class AbiTest {
@Test
public void sim... | Add test for solc backward compatibility | Add test for solc backward compatibility
| Java | mit | loxal/FreeEthereum,loxal/FreeEthereum,loxal/ethereumj,loxal/FreeEthereum |
f7abd5a5fd0118e0c44e145ee98ee66c7ecad36a | src/java/org/usfirst/frc/team2084/CMonster2016/commands/SetCameraAutoExposure.java | src/java/org/usfirst/frc/team2084/CMonster2016/commands/SetCameraAutoExposure.java | /*
* Copyright (c) 2016 RobotsByTheC. All rights reserved.
*
* Open Source Software - may be modified and shared by FRC teams. The code must
* be accompanied by the BSD license file in the root directory of the project.
*/
package org.usfirst.frc.team2084.CMonster2016.commands;
import org.usfirst.frc.team2084.CM... | /*
* Copyright (c) 2016 RobotsByTheC. All rights reserved.
*
* Open Source Software - may be modified and shared by FRC teams. The code must
* be accompanied by the BSD license file in the root directory of the project.
*/
package org.usfirst.frc.team2084.CMonster2016.commands;
import org.usfirst.frc.team2084.CM... | Add delay to camera autoexposure enabling. | Add delay to camera autoexposure enabling.
| Java | bsd-3-clause | RobotsByTheC/CMonster2016,RobotsByTheC/CMonster2016 |
ad6f7816237673658ae8d86fc659facb902fab5b | recyclerfragment/src/main/java/biz/kasual/recyclerfragment/views/BasicCardView.java | recyclerfragment/src/main/java/biz/kasual/recyclerfragment/views/BasicCardView.java | package biz.kasual.recyclerfragment.views;
import android.content.Context;
import android.support.v7.widget.CardView;
import android.util.AttributeSet;
/**
* Created by Stephen Vinouze on 09/11/2015.
*/
public class BasicCardView extends CardView {
public BasicCardView(Context context) {
super(context)... | package biz.kasual.recyclerfragment.views;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.support.v7.widget.CardView;
import android.util.AttributeSet;
import biz.kasual.recyclerfragment.R;
/**
* Created by Stephen Vinouze on 09/11/20... | Add ripple drawable to cards | [*] Add ripple drawable to cards
| Java | apache-2.0 | KasualBusiness/RecyclerFragment |
c46effc5f11fa723eb5331f43cd8b8695a1cabb6 | omni-cx2x/src/cx2x/translator/common/ClawConstant.java | omni-cx2x/src/cx2x/translator/common/ClawConstant.java | /*
* This file is released under terms of BSD license
* See LICENSE file for more information
*/
package cx2x.translator.common;
/**
* Contains common constants values of the CLAW XcodeML to XcodeML translator
*
* @author clementval
*/
public class ClawConstant {
public static final String EMPTY_STRING = "... | /*
* This file is released under terms of BSD license
* See LICENSE file for more information
*/
package cx2x.translator.common;
/**
* Contains common constants values of the CLAW XcodeML to XcodeML translator
*
* @author clementval
*/
public class ClawConstant {
public static final String EMPTY_STRING = "... | Add constant for induction and lower bound | Add constant for induction and lower bound
| Java | bsd-2-clause | clementval/claw-compiler,clementval/claw-compiler |
2dbd64fde29aa77b567c1fbe58a06fb5f2e063b8 | src/main/java/com/rwtema/funkylocomotion/network/FLNetwork.java | src/main/java/com/rwtema/funkylocomotion/network/FLNetwork.java | package com.rwtema.funkylocomotion.network;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import cpw.mods.fml.relauncher.Side;
import net.minecraft.server.management.PlayerManager;
import net.minecraft.world.World;
import net.minecraft.world... | package com.rwtema.funkylocomotion.network;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import cpw.mods.fml.relauncher.Side;
import net.minecraft.server.management.PlayerManager;
import net.minecraft.world.World;
import net.minecraft.world... | Fix crash when frames are moving in chunks without nearby players. | Fix crash when frames are moving in chunks without nearby players.
| Java | lgpl-2.1 | AnodeCathode/FunkyLocomotion |
9f4b77dc8512a9542ee4299f2a092f6ac7aad7b1 | src/main/java/com/github/davidmoten/rx/Schedulers.java | src/main/java/com/github/davidmoten/rx/Schedulers.java | package com.github.davidmoten.rx;
import rx.Scheduler;
public final class Schedulers {
public static Scheduler computation(String id) {
return new SchedulerWithId(rx.schedulers.Schedulers.computation(), id);
}
public static Scheduler computation() {
return withId(rx.schedulers.Schedulers... | package com.github.davidmoten.rx;
import rx.Scheduler;
public final class Schedulers {
public static Scheduler computation(String id) {
return new SchedulerWithId(rx.schedulers.Schedulers.computation(), id);
}
public static Scheduler computation() {
return withId(rx.schedulers.Schedulers... | Update withId to use the passed parameter | Update withId to use the passed parameter | Java | apache-2.0 | davidmoten/rxjava-extras,davidmoten/rxjava-extras,davidmoten/rxjava-extras |
720102873c40b56b03acabc5a4a161d8df9029bb | src/main/java/org/ndexbio/model/object/network/Namespace.java | src/main/java/org/ndexbio/model/object/network/Namespace.java | package org.ndexbio.model.object.network;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Namespace extends NetworkElement
{
private String _prefix;
private String _uri;
/*************************************************... | package org.ndexbio.model.object.network;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Namespace extends PropertiedNetworkElement
{
private String _prefix;
private String _uri;
/***************************************... | Extend namespace class from PropertiedNetworkElement. | Extend namespace class from PropertiedNetworkElement. | Java | bsd-3-clause | ndexbio/ndex-object-model |
ac378008d178b88607954b341fe8abc7ac36b45b | src/java/fault/metrics/Second.java | src/java/fault/metrics/Second.java | package fault.metrics;
import fault.concurrent.LongAdder;
/**
* Created by timbrooks on 6/1/15.
*/
public class Second {
private final LongAdder successes = new LongAdder();
private final LongAdder errors = new LongAdder();
private final LongAdder timeouts = new LongAdder();
private final LongAdder... | package fault.metrics;
import fault.concurrent.LongAdder;
/**
* Created by timbrooks on 6/1/15.
*/
public class Second {
private final LongAdder successes = new LongAdder();
private final LongAdder errors = new LongAdder();
private final LongAdder timeouts = new LongAdder();
private final LongAdder... | Add method to increment metrics | Add method to increment metrics
| Java | apache-2.0 | tbrooks8/Beehive |
13c24c26f4ba7774487f918dd95bc62cf70b6d7b | k9mail/src/main/java/com/fsck/k9/message/html/HtmlSanitizer.java | k9mail/src/main/java/com/fsck/k9/message/html/HtmlSanitizer.java | package com.fsck.k9.message.html;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.safety.Cleaner;
import org.jsoup.safety.Whitelist;
public class HtmlSanitizer {
private final HeadCleaner headCleaner;
private final Cleaner cleaner;
HtmlSanitizer() {
Whitelist whitelist... | package com.fsck.k9.message.html;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.safety.Cleaner;
import org.jsoup.safety.Whitelist;
public class HtmlSanitizer {
private final HeadCleaner headCleaner;
private final Cleaner cleaner;
HtmlSanitizer() {
Whitelist whitelist... | Add 'background' attribute for 'table' tag to the whitelist | Add 'background' attribute for 'table' tag to the whitelist
| Java | apache-2.0 | k9mail/k-9,cketti/k-9,cketti/k-9,cketti/k-9,philipwhiuk/k-9,k9mail/k-9,philipwhiuk/k-9,cketti/k-9,k9mail/k-9 |
fc1dc5b40b0cc5b679903dd90b8af03c12379900 | Qora/src/gui/PasswordPane.java | Qora/src/gui/PasswordPane.java | package gui;
import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import controller.Controller;
public class PasswordPane
{
public static String showUnlockWalletDialog()
{
JPanel userPanel = new JPanel();
userPane... | package gui;
import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import controller.Controller;
public class PasswordPane
{
public static String showUnlockWalletDialog()
{
JPanel userPanel = new JPanel();
userPane... | Set default selection to password | Set default selection to password
| Java | mit | Bitcoinsulting/Qora,Qoracoin/Qora,Qoracoin/Qora,Qoracoin/Qora,Bitcoinsulting/Qora,Bitcoinsulting/Qora,Bitcoinsulting/Qora,Bitcoinsulting/Qora |
84750d366d001e0ec80eb18aea2811a862b3fee0 | app/src/main/java/org/msf/records/model/Patient.java | app/src/main/java/org/msf/records/model/Patient.java | package org.msf.records.model;
import java.io.Serializable;
/**
* Created by Gil on 03/10/2014.
*/
public class Patient implements Serializable {
public String id;
public String given_name;
public String family_name;
public String important_information;
/**
* Accepted values:
* susp... | package org.msf.records.model;
import java.io.Serializable;
/**
* Created by Gil on 03/10/2014.
*/
public class Patient implements Serializable {
public String id;
public String uuid;
public String given_name;
public String family_name;
public String important_information;
/**
* Acce... | Add uuid to the patient bean in Android | Add uuid to the patient bean in Android
| Java | apache-2.0 | luisfdeandrade/client,christianrafael/client,luisfdeandrade/client,viniciusboson/client,llvasconcellos/client,G1DR4/client,christianrafael/client,christianrafael/client,projectbuendia/client,fcruz/client,llvasconcellos/client,projectbuendia/client,projectbuendia/client,jvanz/client,viniciusboson/client,pedromarins/clie... |
ac4692e213f7090d10dc565c6b787b6c02f76aaf | src/test/java/com/github/tomakehurst/wiremock/admin/ResponseDefinitionBodyMatcherTest.java | src/test/java/com/github/tomakehurst/wiremock/admin/ResponseDefinitionBodyMatcherTest.java | package com.github.tomakehurst.wiremock.admin;
import com.github.tomakehurst.wiremock.admin.model.ResponseDefinitionBodyMatcher;
import com.github.tomakehurst.wiremock.http.ResponseDefinition;
import org.junit.Test;
import static com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder.responseDefinition;
imp... | package com.github.tomakehurst.wiremock.admin;
import com.github.tomakehurst.wiremock.admin.model.ResponseDefinitionBodyMatcher;
import com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder;
import com.github.tomakehurst.wiremock.http.ResponseDefinition;
import org.junit.Test;
import static org.junit.Asser... | Add more tests for ResponseDefinitionBodyMatcher | Add more tests for ResponseDefinitionBodyMatcher
| Java | apache-2.0 | Mahoney/wiremock,Mahoney/wiremock,dlaha21/wiremock,tomakehurst/wiremock,dlaha21/wiremock,tomakehurst/wiremock,Mahoney/wiremock,tricker/wiremock,dlaha21/wiremock,dlaha21/wiremock,Mahoney/wiremock,tomakehurst/wiremock,tricker/wiremock,Mahoney/wiremock,tomakehurst/wiremock,tricker/wiremock,tricker/wiremock,tomakehurst/wir... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.