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 |
|---|---|---|---|---|---|---|---|---|---|
dfbf454fb24b3662f59f525b785103dd87111711 | litho-widget/src/main/java/com/facebook/litho/widget/VerticalScrollEventsController.java | litho-widget/src/main/java/com/facebook/litho/widget/VerticalScrollEventsController.java | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | Add support for scrolling to top and bottom in VerticalScrollSpec | Add support for scrolling to top and bottom in VerticalScrollSpec
Summary: as title
Reviewed By: mihaelao
Differential Revision: D33711690
fbshipit-source-id: 44d52eaaea775acf80db530af2990acd236415b8
| Java | apache-2.0 | facebook/litho,facebook/litho,facebook/litho,facebook/litho,facebook/litho,facebook/litho |
4d4805a99d61365bff3c379d149561617537d4cd | plugin/src/main/groovy/com/btkelly/gnag/utils/StringUtils.java | plugin/src/main/groovy/com/btkelly/gnag/utils/StringUtils.java | /**
* Copyright 2016 Bryan Kelly
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License.
*
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | /**
* Copyright 2016 Bryan Kelly
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License.
*
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | Make sanitization method more safe | Make sanitization method more safe
| Java | apache-2.0 | btkelly/gnag,btkelly/gnag,btkelly/gnag |
0c50ea2a2da1b39f39ff228f613ca9d661e6fd8c | dataprep-backend-common/src/main/java/org/talend/dataprep/configuration/Serialization.java | dataprep-backend-common/src/main/java/org/talend/dataprep/configuration/Serialization.java | package org.talend.dataprep.configuration;
import java.util.List;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JSR310Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.springframework.beans.factory.annotation.Autowired;
import org.spr... | package org.talend.dataprep.configuration;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
... | Clean up unused imports (was supposed to be done in branch). | [Misc] Clean up unused imports (was supposed to be done in branch).
| Java | apache-2.0 | Talend/data-prep,Talend/data-prep,Talend/data-prep |
2cffe97a6f37070faaab6d82faa56350da2130a9 | components/arquillian-fabric8/src/main/java/io/fabric8/arquillian/kubernetes/Constants.java | components/arquillian-fabric8/src/main/java/io/fabric8/arquillian/kubernetes/Constants.java | /*
* Copyright 2005-2014 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | /*
* Copyright 2005-2014 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | Remove constant that is not used anymore. | Remove constant that is not used anymore.
| Java | apache-2.0 | sobkowiak/fabric8,mwringe/fabric8,migue/fabric8,christian-posta/fabric8,migue/fabric8,dhirajsb/fabric8,EricWittmann/fabric8,rhuss/fabric8,jimmidyson/fabric8,sobkowiak/fabric8,rnc/fabric8,dhirajsb/fabric8,rajdavies/fabric8,dhirajsb/fabric8,christian-posta/fabric8,chirino/fabric8v2,chirino/fabric8v2,christian-posta/fabri... |
007f1fbb87b5ff79b8253a23ce4feb314a5a3e68 | core/src/main/java/de/danoeh/antennapod/core/util/comparator/FeedItemPubdateComparator.java | core/src/main/java/de/danoeh/antennapod/core/util/comparator/FeedItemPubdateComparator.java | package de.danoeh.antennapod.core.util.comparator;
import java.util.Collections;
import java.util.Comparator;
import de.danoeh.antennapod.core.feed.FeedItem;
/** Compares the pubDate of two FeedItems for sorting*/
public class FeedItemPubdateComparator implements Comparator<FeedItem> {
public static final Comparat... | package de.danoeh.antennapod.core.util.comparator;
import java.util.Comparator;
import de.danoeh.antennapod.core.feed.FeedItem;
/** Compares the pubDate of two FeedItems for sorting*/
public class FeedItemPubdateComparator implements Comparator<FeedItem> {
/** Returns a new instance of this comparator in reverse o... | Remove unused comparators after SortOrder refactoring | Remove unused comparators after SortOrder refactoring
| Java | mit | johnjohndoe/AntennaPod,johnjohndoe/AntennaPod,johnjohndoe/AntennaPod,johnjohndoe/AntennaPod |
8b3780d502712fa55a0881ea53d5d3d394a31e7c | java/upparse/corpus/UnlabeledBracket.java | java/upparse/corpus/UnlabeledBracket.java | package upparse.corpus;
/**
* Data structure representing a bracket, not including a category label
* @author eponvert@utexas.edu (Elias Ponvert)
*/
public class UnlabeledBracket implements Comparable<UnlabeledBracket> {
private final int first, last;
public UnlabeledBracket(final int _first, final int _las... | package upparse.corpus;
/**
* Data structure representing a bracket, not including a category label
* @author eponvert@utexas.edu (Elias Ponvert)
*/
public class UnlabeledBracket implements Comparable<UnlabeledBracket> {
private final int first, last;
public UnlabeledBracket(final int _first, final int _las... | Fix to bracket ordering in tree representation | Fix to bracket ordering in tree representation
| Java | apache-2.0 | eponvert/upparse,eponvert/upparse,eponvert/upparse |
77a9157c02c3b4efc483d2b3d9e5ed1b852ab073 | src/com/edinarobotics/zed/Zed.java | src/com/edinarobotics/zed/Zed.java | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | Add call to Components.getInstance to robotInit. | Add call to Components.getInstance to robotInit.
This call will create all subsystems at robot init time.
| Java | bsd-3-clause | srujun/Zed-Java,TheGreenMachine/Zed-Java |
35f22eb169f8dc334c6506f976df87edac01fad5 | src/org/royaldev/royalcommands/listeners/TagAPIListener.java | src/org/royaldev/royalcommands/listeners/TagAPIListener.java | package org.royaldev.royalcommands.listeners;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.kitteh.tag.PlayerReceiveNameTagEvent;
import org.royaldev.royalcommands.PConfManager;
import org.royaldev.royalcommands.RoyalCommands;
public class TagAPIListener implements Listener {
... | package org.royaldev.royalcommands.listeners;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.kitteh.tag.PlayerReceiveNameTagEvent;
import org.royaldev.royalcommands.PConfManager;
import org.royaldev.royalcommands.RoyalCommands;
public class TagAPIListener implements Listener {
... | Make sure nick has prefix if you're going to cut it off (TagAPI) | Updated: Make sure nick has prefix if you're going to cut it off (TagAPI)
| Java | mpl-2.0 | joansmith/RoyalCommands,RoyalDev/RoyalCommands |
ff9cdc8657a308caadd1b418d1f6e73a8a923586 | src/radicalzephyr/boot_junit/test/CalculatorTest.java | src/radicalzephyr/boot_junit/test/CalculatorTest.java | package radicalzephyr.boot_junit.test;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import net.zephyrizing.http_server.Calculator;
public class CalculatorTest {
@Test
public void evaluatesExpression() {
Calculator calculator = new Calculator();
int sum = calculator.evalu... | package radicalzephyr.boot_junit.test;
import radicalzephyr.boot_junit.test.Calculator;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class CalculatorTest {
@Test
public void evaluatesExpression() {
Calculator calculator = new Calculator();
int sum = calculator.ev... | Fix the test class to compile | Fix the test class to compile
| Java | epl-1.0 | RadicalZephyr/boot-junit |
4ea60125cf3e1b96c89a261eb86b7d725621e650 | CarFactory/src/ru/nsu/ccfit/bogush/Main.java | CarFactory/src/ru/nsu/ccfit/bogush/Main.java | package ru.nsu.ccfit.bogush;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import ru.nsu.ccfit.bogush.view.FactoryView;
public class Main {
private static final String CONFIG_FILE = "config.properties";
private static final String LOG_CONFIG_FILE = "log4j2.xml";
private static... | package ru.nsu.ccfit.bogush;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import ru.nsu.ccfit.bogush.view.FactoryView;
public class Main {
private static final String CONFIG_FILE = "config.properties";
private static final String LOG_CONFIG_FILE = "log4j2.xml";
private st... | Add exit with status 1 on caught exception Refactor | Add exit with status 1 on caught exception
Refactor
| Java | mit | RoyPy/15201-bogush |
f9807fac1af962457ad4b4c0149f5da2ce49774f | sthlmtraveling/src/main/java/com/markupartist/sthlmtraveling/service/WakefulIntentService.java | sthlmtraveling/src/main/java/com/markupartist/sthlmtraveling/service/WakefulIntentService.java | package com.markupartist.sthlmtraveling.service;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.os.PowerManager;
import android.util.Log;
abstract public class WakefulIntentService extends IntentService {
private static String TAG = "WakefulIntentSe... | package com.markupartist.sthlmtraveling.service;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.os.PowerManager;
import android.util.Log;
abstract public class WakefulIntentService extends IntentService {
private static String TAG = "WakefulIntentSe... | Add some error handling around releasing wake locks | Add some error handling around releasing wake locks
| Java | apache-2.0 | johannilsson/sthlmtraveling,johannilsson/sthlmtraveling |
77cf51c33f8819fee7329285bfe09292e1a7c2d3 | src/main/java/io/github/trevornelson/Constants.java | src/main/java/io/github/trevornelson/Constants.java | package io.github.trevornelson;
/**
* Contains the client IDs and scopes for allowed clients consuming the helloworld API.
*/
public class Constants {
public static final String WEB_CLIENT_ID = "99492469869-a8phf2icj5576p0a1or8v25djbqlb32k.apps.googleusercontent.com";
public static final String ANDROID_CLIENT_ID... | package io.github.trevornelson;
public class Constants {
public static final String WEB_CLIENT_ID = "99492469869-a8phf2icj5576p0a1or8v25djbqlb32k.apps.googleusercontent.com";
public static final String ANDROID_CLIENT_ID = "replace this with your Android client ID";
public static final String IOS_CLIENT_ID = "rep... | Add ANALYTICS_SCOPE constant to constants file | Add ANALYTICS_SCOPE constant to constants file
| Java | apache-2.0 | trevornelson/java-analytics-dashboard,trevornelson/java-analytics-dashboard,trevornelson/java-analytics-dashboard |
fd5b77e9583e3e06f7e4c47e7d958abae7372299 | src/main/java/polyglot/server/HelloServiceImpl.java | src/main/java/polyglot/server/HelloServiceImpl.java | package polyglot.server;
import io.grpc.stub.StreamObserver;
import polyglot.HelloProto.HelloRequest;
import polyglot.HelloProto.HelloResponse;
import polyglot.HelloServiceGrpc.HelloService;
public class HelloServiceImpl implements HelloService {
@Override
public void sayHello(HelloRequest request, StreamObserver... | package polyglot.server;
import io.grpc.stub.StreamObserver;
import polyglot.HelloProto.HelloRequest;
import polyglot.HelloProto.HelloResponse;
import polyglot.HelloServiceGrpc.HelloService;
public class HelloServiceImpl implements HelloService {
@Override
public void sayHello(HelloRequest request, StreamObserver... | Make sure we always call onCompleted when responding to rpcs. | Make sure we always call onCompleted when responding to rpcs.
| Java | bsd-3-clause | grpc-ecosystem/polyglot,grpc-ecosystem/polyglot,grpc-ecosystem/polyglot |
9e7c5077b283980e2f6ffb619d5ad20a0d176089 | core/common/src/test/java/alluxio/util/IdUtilsTest.java | core/common/src/test/java/alluxio/util/IdUtilsTest.java | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the “License”). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the “License”). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | Add unit tests for IdUtils | [ALLUXIO-1776] Add unit tests for IdUtils
| Java | apache-2.0 | wwjiang007/alluxio,wwjiang007/alluxio,jsimsa/alluxio,PasaLab/tachyon,jswudi/alluxio,maboelhassan/alluxio,maobaolong/alluxio,apc999/alluxio,yuluo-ding/alluxio,Reidddddd/alluxio,wwjiang007/alluxio,wwjiang007/alluxio,ShailShah/alluxio,apc999/alluxio,calvinjia/tachyon,PasaLab/tachyon,EvilMcJerkface/alluxio,maboelhassan/all... |
36497a79a4444660e9ace2075e0d5a667f52e8e3 | src/io/fudev/laye/vm/LayeKit.java | src/io/fudev/laye/vm/LayeKit.java | /**
* The MIT License (MIT)
*
* Copyright (c) 2015 Sekai Kyoretsuna
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* ... | /**
* The MIT License (MIT)
*
* Copyright (c) 2015 Sekai Kyoretsuna
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* ... | Fix 'bug' with kit toString | Fix 'bug' with kit toString
Was always returning null. Not good for debugging.
| Java | bsd-3-clause | LayeLang/Laye |
918973daf81611f52d1890d14b88a19f706134b9 | extensions/vertx-web/runtime/src/main/java/io/quarkus/vertx/web/runtime/RouterProducer.java | extensions/vertx-web/runtime/src/main/java/io/quarkus/vertx/web/runtime/RouterProducer.java | package io.quarkus.vertx.web.runtime;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import javax.inject.Singleton;
import io.vertx.ext.web.Router;
@Singleton
public class RouterProducer {
private volatile Router router;
void initialize(Router router) {
... | package io.quarkus.vertx.web.runtime;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import javax.inject.Singleton;
import io.vertx.ext.web.Router;
@Singleton
public class RouterProducer {
private volatile Router router;
void initialize(Router router) {
... | Remove CDI producer for io.vertx.reactivex.ext.web.Router | Remove CDI producer for io.vertx.reactivex.ext.web.Router | Java | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus |
ea2086f0add4fe575edf62da9b94956a6f2a57ec | modules/container/src/main/java/io/liveoak/container/service/CodecInstallationCompleteService.java | modules/container/src/main/java/io/liveoak/container/service/CodecInstallationCompleteService.java | package io.liveoak.container.service;
import org.jboss.msc.service.Service;
import org.jboss.msc.service.StartContext;
import org.jboss.msc.service.StartException;
import org.jboss.msc.service.StopContext;
/**
* @author Ken Finnigan
*/
public class CodecInstallationCompleteService implements Service<Void> {
@Ov... | package io.liveoak.container.service;
import org.jboss.logging.Logger;
import org.jboss.msc.service.Service;
import org.jboss.msc.service.StartContext;
import org.jboss.msc.service.StartException;
import org.jboss.msc.service.StopContext;
/**
* @author Ken Finnigan
*/
public class CodecInstallationCompleteService i... | Add trace message stating codec installation is complete | Add trace message stating codec installation is complete
| Java | epl-1.0 | liveoak-io/liveoak,kyroskoh/liveoak,liveoak-io/liveoak,ammendonca/liveoak,kyroskoh/liveoak,liveoak-io/liveoak,ammendonca/liveoak,ammendonca/liveoak,ammendonca/liveoak,kyroskoh/liveoak,ljshj/liveoak,ljshj/liveoak,liveoak-io/liveoak,ljshj/liveoak,kyroskoh/liveoak,ljshj/liveoak |
2fa5bdabafd5cc18de7583834d5313ad6d61c5bd | tests/org.eclipse.ecf.tests.provider.jms.mqtt/src/org/eclipse/ecf/tests/provider/jms/mqtt/Mqtt.java | tests/org.eclipse.ecf.tests.provider.jms.mqtt/src/org/eclipse/ecf/tests/provider/jms/mqtt/Mqtt.java | /****************************************************************************
* Copyright (c) 2004 Composent, Inc. 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 avai... | /****************************************************************************
* Copyright (c) 2004 Composent, Inc. 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 avai... | Change to use m2m.eclipse.org:1883 as default mqtt broker rather than localhost:1883. | Change to use m2m.eclipse.org:1883 as default mqtt broker rather than
localhost:1883. | Java | epl-1.0 | ECF/Mqtt-Provider,ECF/Mqtt-Provider,ECF/Mqtt-Provider |
fc4e30fc21aed1fb1d89738da7090309fd3060b8 | spring-social-vkontakte/src/main/java/org/springframework/social/vkontakte/api/VKResponse.java | spring-social-vkontakte/src/main/java/org/springframework/social/vkontakte/api/VKResponse.java | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Revert previous commit, fix build. | Revert previous commit, fix build.
| Java | apache-2.0 | disovi/spring-social-vkontakte,Klaxon77/spring-social-vkontakte,Klaxon77/spring-social-vkontakte,disovi/spring-social-vkontakte,vkolodrevskiy/spring-social-vkontakte,vkolodrevskiy/spring-social-vkontakte |
f49c3ad873b592c48a8b3b16f19fa44a1838f467 | sthlmtraveling/src/main/java/com/markupartist/sthlmtraveling/service/WakefulIntentService.java | sthlmtraveling/src/main/java/com/markupartist/sthlmtraveling/service/WakefulIntentService.java | package com.markupartist.sthlmtraveling.service;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.os.PowerManager;
import android.util.Log;
abstract public class WakefulIntentService extends IntentService {
private static String TAG = "WakefulIntentSe... | package com.markupartist.sthlmtraveling.service;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.os.PowerManager;
import android.util.Log;
abstract public class WakefulIntentService extends IntentService {
private static String TAG = "WakefulIntentSe... | Change lock name to use a name for this app | Change lock name to use a name for this app
| Java | apache-2.0 | johannilsson/sthlmtraveling,johannilsson/sthlmtraveling |
b554fa66424ef2db1c36ddb5677201cba9f2cbe9 | lib/lib-markdown/src/test/java/org/sagebionetworks/markdown/MarkdownDaoImplIntegrationTest.java | lib/lib-markdown/src/test/java/org/sagebionetworks/markdown/MarkdownDaoImplIntegrationTest.java | package org.sagebionetworks.markdown;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJ... | package org.sagebionetworks.markdown;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.t... | Fix Markdown integration tests due to server changes | Fix Markdown integration tests due to server changes
| Java | apache-2.0 | Sage-Bionetworks/Synapse-Repository-Services,zimingd/Synapse-Repository-Services,xschildw/Synapse-Repository-Services,Sage-Bionetworks/Synapse-Repository-Services,zimingd/Synapse-Repository-Services,xschildw/Synapse-Repository-Services,Sage-Bionetworks/Synapse-Repository-Services,xschildw/Synapse-Repository-Services,zi... |
5731498dc36b82959cc4066b38e1019bc4370ee7 | src/main/groovy/netflix/nebula/dependency/recommender/ExtendRecommenderConfigurationAction.java | src/main/groovy/netflix/nebula/dependency/recommender/ExtendRecommenderConfigurationAction.java | package netflix.nebula.dependency.recommender;
import netflix.nebula.dependency.recommender.provider.RecommendationProviderContainer;
import org.gradle.api.Action;
import org.gradle.api.Project;
import org.gradle.api.artifacts.Configuration;
import org.gradle.api.logging.Logger;
import org.gradle.api.logging.Logging;
... | package netflix.nebula.dependency.recommender;
import netflix.nebula.dependency.recommender.provider.RecommendationProviderContainer;
import org.gradle.api.Action;
import org.gradle.api.Project;
import org.gradle.api.artifacts.Configuration;
import org.gradle.api.logging.Logger;
import org.gradle.api.logging.Logging;
... | Break infinite loop with Gradle 5.6 when adding configuration for core bom support | Break infinite loop with Gradle 5.6 when adding configuration for core bom support
| Java | apache-2.0 | nebula-plugins/nebula-dependency-recommender-plugin |
2c41e97f729c0a56f1b9b17265fa1f0ddc705dd1 | app/src/main/java/com/example/lit/saving/Saveable.java | app/src/main/java/com/example/lit/saving/Saveable.java | /*
* Copyright 2017 Max Schafer, Ammar Mahdi, Riley Dixon, Steven Weikai Lu, Jiaxiong Yang
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation t... | /*
* Copyright 2017 Max Schafer, Ammar Mahdi, Riley Dixon, Steven Weikai Lu, Jiaxiong Yang
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation t... | Add a DataHandler object as part of the interface | Add a DataHandler object as part of the interface
| Java | mit | CMPUT301F17T06/Lit |
b50ed783bebc87b7085645089de9383015547a45 | app/src/main/java/com/veyndan/hermes/BaseActivity.java | app/src/main/java/com/veyndan/hermes/BaseActivity.java | package com.veyndan.hermes;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;
public class BaseActivity extends RxAppCompatActivity {
@Nullable private Toolbar t... | package com.veyndan.hermes;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
public class BaseActivity ... | Use Butterknife to tidy up toolbar initialisation | Use Butterknife to tidy up toolbar initialisation
| Java | mit | veyndan/hermes |
8911159dfe73aa50592a07e586bab36258b247f6 | src/org/adaptlab/chpir/android/survey/QuestionFragments/SelectOneWriteOtherQuestionFragment.java | src/org/adaptlab/chpir/android/survey/QuestionFragments/SelectOneWriteOtherQuestionFragment.java | package org.adaptlab.chpir.android.survey.QuestionFragments;
import org.adaptlab.chpir.android.survey.R;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.RadioGroup.OnCheckedChangeListener;
public class SelectOneW... | package org.adaptlab.chpir.android.survey.QuestionFragments;
import org.adaptlab.chpir.android.survey.R;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.RadioGroup.OnCheckedCha... | Fix other radio button width for right aligned languages | Fix other radio button width for right aligned languages
| Java | mit | mnipper/AndroidSurvey,mnipper/AndroidSurvey,mnipper/AndroidSurvey,DukeMobileTech/AndroidSurvey |
ed52fd990c7528fb63ceb1d5520c919828053596 | ukelonn.bundle.db.liquibase/src/main/java/no/priv/bang/ukelonn/bundle/db/liquibase/UkelonnLiquibase.java | ukelonn.bundle.db.liquibase/src/main/java/no/priv/bang/ukelonn/bundle/db/liquibase/UkelonnLiquibase.java | package no.priv.bang.ukelonn.bundle.db.liquibase;
import java.sql.SQLException;
import javax.sql.PooledConnection;
import liquibase.Liquibase;
import liquibase.database.DatabaseConnection;
import liquibase.database.jvm.JdbcConnection;
import liquibase.exception.LiquibaseException;
import liquibase.resource.ClassLoade... | package no.priv.bang.ukelonn.bundle.db.liquibase;
import java.sql.SQLException;
import javax.sql.PooledConnection;
import liquibase.Liquibase;
import liquibase.database.DatabaseConnection;
import liquibase.database.jvm.JdbcConnection;
import liquibase.exception.LiquibaseException;
import liquibase.resource.ClassLoade... | Clear checksums in liquibase changelog before running scripts. | Clear checksums in liquibase changelog before running scripts.
This is necessary, since the changelog files were reindented with the
editorconfig values.
| Java | apache-2.0 | steinarb/ukelonn,steinarb/ukelonn,steinarb/ukelonn |
9390d6a2af485b002c7f03aa802f1f6721fd7aae | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/TestReport.java | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/TestReport.java | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.deployment;
/**
* @author mortent
*/
public class TestReport {
private final String report;
private TestReport(String report) {
this.repo... | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.deployment;
import com.yahoo.slime.SlimeUtils;
import java.nio.charset.StandardCharsets;
/**
* @author mortent
*/
public class TestReport {
private... | Verify JSON when passing test report through controller | Verify JSON when passing test report through controller
| 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 |
4e6b86aebaf2699fe7b8eb38ce958cf1f99ac7d8 | src/viewer/MazeViewer.java | src/viewer/MazeViewer.java | package viewer;
import maze.Maze;
import javax.swing.*;
import java.awt.*;
/**
* @author Nick Hirakawa
*/
public class MazeViewer extends JFrame {
private JPanel panel;
public MazeViewer(Maze maze, int cellSize){
this(maze, cellSize, cellSize / 4);
}
public MazeViewer(Maze maze, int cell... | package viewer;
import maze.Maze;
import javax.swing.*;
import java.awt.*;
/**
* @author Nick Hirakawa
*/
public class MazeViewer extends JFrame {
private JPanel panel;
public MazeViewer(Maze maze, int cellSize){
this(maze, cellSize, cellSize / 4);
}
public MazeViewer(Maze maze, int cell... | Add title to main frame | Add title to main frame
| Java | mit | nh0815/jMaze |
65c068a6553ae833e1f0e14b348d349de6239bda | paging/integration-tests/testapp/src/main/java/androidx/paging/integration/testapp/room/SampleDatabase.java | paging/integration-tests/testapp/src/main/java/androidx/paging/integration/testapp/room/SampleDatabase.java | /*
* Copyright 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Fix compiler warning in paging:integration-tests:testapp Test: gw paging:integration-tests:testapp:test | Fix compiler warning in paging:integration-tests:testapp
Test: gw paging:integration-tests:testapp:test
Change-Id: Id4c81b093896d4bb4e411171eb83a8e312667c2a
| Java | apache-2.0 | AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,androidx/andro... |
1276ad6d6d40383c2fdad0d9191746feaa882ce3 | test/OptimizationTest.java | test/OptimizationTest.java | class Opt
{
public static void main(String[] args)
{
System.out.println(new Derp().foo());
}
}
class Derp
{
public int foo()
{
int x;
boolean b;
x = 1;
b = false && true;
if (b)
{
x = 2;
}
else
{
... | class Opt
{
public static void main(String[] args)
{
System.out.println(new Derp().foo());
}
}
class Derp
{
public int foo()
{
int x;
boolean b;
int i;
int[] array;
x = 1;
b = false && true;
if (b)
{
x = 2;
... | Add arrays to optimization test file | Add arrays to optimization test file
| Java | mit | kiorpesc/CS1622-Project3,kiorpesc/CS1622-Project3 |
933b2c9d9d8bc28422cb9bcf9f7ba51370a79a56 | src/CardTrick.java | src/CardTrick.java | import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.WindowConstants;
public class CardTrick extends JFrame
{
public static void main(String[] args)
{
new CardTrick();
}
CardTrick()
{
setDefaultCloseOperation(Win... | import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.WindowConstants;
public class CardTrick extends JFrame
{
public static void main(String[] args)
{
new CardTrick();
}
CardTrick()
{
setDefaultC... | Set autocrlf=false in Git configurations in Eclipse. Testing... | Set autocrlf=false in Git configurations in Eclipse. Testing... | Java | mit | jeottesen/21CardTrickCS3750 |
4cfbb1e1f86f9c9a099816c098f405d29fdcf6b6 | src/main/java/model/FileLink.java | src/main/java/model/FileLink.java | package model;
/**
* References a file in Filestack.
*/
public class FileLink {
private String handle;
/**
* @param apiKey Get from the Developer Portal.
* @param handle A handle is returned after a file upload.
*/
public FileLink(String apiKey, String handle) {
this.handle = hand... | package model;
import okhttp3.ResponseBody;
import okio.BufferedSink;
import okio.BufferedSource;
import okio.Okio;
import retrofit2.Response;
import util.CdnService;
import util.Networking;
import java.io.*;
/**
* References a file in Filestack.
*/
public class FileLink {
private CdnService CdnService;
pr... | Add download() and getContent() methods. | Add download() and getContent() methods.
| Java | apache-2.0 | filestack/filestack-java,filestack/filestack-java |
d2ed65b7f51daabe10e2cfa6eb42f1e530494ce0 | service-registry-client/src/main/java/com/rackspacecloud/client/service_registry/containers/Container.java | service-registry-client/src/main/java/com/rackspacecloud/client/service_registry/containers/Container.java | /**
* Copyright 2012 Rackspace
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | /**
* Copyright 2012 Rackspace
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Make getMetadata method private and expose other more higher level methods. | Make getMetadata method private and expose other more higher level methods.
| Java | apache-2.0 | racker/java-service-registry-client |
f4feaa9d9b7eeb01872e41cb14a799a7703fc8ae | modules/activiti-engine/src/test/java/org/activiti/examples/bpmn/servicetask/ToUpperCaseSetterInjected.java | modules/activiti-engine/src/test/java/org/activiti/examples/bpmn/servicetask/ToUpperCaseSetterInjected.java |
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribu... |
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribu... | Fix for failing demo setup | Fix for failing demo setup
| Java | apache-2.0 | yvoswillens/flowable-engine,paulstapleton/flowable-engine,marcus-nl/flowable-engine,martin-grofcik/flowable-engine,roberthafner/flowable-engine,flowable/flowable-engine,dbmalkovsky/flowable-engine,Activiti/Activiti,marcus-nl/flowable-engine,flowable/flowable-engine,paulstapleton/flowable-engine,sibok666/flowable-engine... |
7c439faa9a377f543d6b685ef6854a2af37458ad | trunk/MutabilityDetector/benchmarks/org/mutabilitydetector/benchmarks/MutableByAssigningAbstractTypeToField.java | trunk/MutabilityDetector/benchmarks/org/mutabilitydetector/benchmarks/MutableByAssigningAbstractTypeToField.java | /*
* Mutability Detector
*
* Copyright 2009 Graham Allan
*
* 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... | /*
* Mutability Detector
*
* Copyright 2009 Graham Allan
*
* 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... | Change benchmark code for testing abstract types being assigned to fields, make it a bit clearer for the intention. | Change benchmark code for testing abstract types being assigned to fields, make it a bit clearer for the intention.
git-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@41 c7a0535c-eda6-11de-83d8-6d5adf01d787
| Java | apache-2.0 | MutabilityDetector/MutabilityDetector,MutabilityDetector/MutabilityDetector |
7bab0cd7188ccf3fe4532c87743dfeb2eec4c1da | android/src/com/mapswithme/maps/SmartGLActivity.java | android/src/com/mapswithme/maps/SmartGLActivity.java | package com.mapswithme.maps;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
public class SmartGLActivity extends Activity
{
private static String TAG = "SmartGLActivity";
protected SmartGLSurfaceView m_view = null;
@Override
protected void onCreate(Bundle savedInstanceState)... | package com.mapswithme.maps;
import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.view.WindowManager;
public class SmartGLActivity extends Activity
{
private static String TAG = "SmartGLActivity";
protected SmartGLSurfaceView m_view = null;
@O... | Use Full Screen only on Kindle Fire to display notifications toolbar | [android] Use Full Screen only on Kindle Fire to display notifications toolbar
| Java | apache-2.0 | gardster/omim,Komzpa/omim,matsprea/omim,Komzpa/omim,bykoianko/omim,Komzpa/omim,syershov/omim,stangls/omim,programming086/omim,felipebetancur/omim,Saicheg/omim,kw217/omim,yunikkk/omim,darina/omim,syershov/omim,stangls/omim,bykoianko/omim,syershov/omim,Komzpa/omim,Saicheg/omim,mpimenov/omim,vladon/omim,rokuz/omim,alberts... |
a18c704d1f7ca33ee254570df9349ae5ea9691cb | src/main/java/com/novoda/notils/string/QueryUtils.java | src/main/java/com/novoda/notils/string/QueryUtils.java | package com.novoda.notils.string;
import java.util.Arrays;
public class QueryUtils {
/**
* Creates a string to be used as a placeholder in {@link android.content.ContentResolver} operations selection.
* This will allow to use more selection arguments and have them replaced.
*
* @param size Th... | package com.novoda.notils.string;
import java.util.Arrays;
public class QueryUtils {
/**
* Creates a string to be used as a placeholder in {@link android.content.ContentResolver} operations selection.
* This will allow to use more selection arguments and have them replaced when using the IN operator.
... | Remove query from method name and specify comment | Remove query from method name and specify comment
| Java | apache-2.0 | juankysoriano/notils,inigo0178/notils |
5ff8a2ccbc0a86346918fe79364365d8cab3fcea | src/galileo/test/buffer/package-info.java | src/galileo/test/buffer/package-info.java | /*
Copyright (c) 2014, Colorado State University
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and ... | /*
Copyright (c) 2014, Colorado State University
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and ... | Add buffer test package information | Add buffer test package information
| Java | bsd-2-clause | malensek/galileo-net,malensek/elssa |
0cc2a1c4d3dc063c06f9775a6cffef74ad3c631c | src/java/ie/omk/smpp/util/ASCIIEncoding.java | src/java/ie/omk/smpp/util/ASCIIEncoding.java | package ie.omk.smpp.util;
import java.io.UnsupportedEncodingException;
/**
* Encoding class representing the ASCII (IA5) alphabet encoding.
*/
public class ASCIIEncoding extends ie.omk.smpp.util.AlphabetEncoding {
private static final int DCS = 1;
private static final ASCIIEncoding INSTANCE = new ASCIIEncod... | package ie.omk.smpp.util;
import java.io.UnsupportedEncodingException;
/**
* Encoding class representing the ASCII (IA5) alphabet encoding.
*/
public class ASCIIEncoding extends AlphabetEncoding {
private static final int DCS = 1;
/**
* Construct a new ASCIIEncoding.
*/
public ASCIIEncoding()... | Throw a RuntimeException...just in case! | Throw a RuntimeException...just in case!
| Java | bsd-3-clause | oranoceallaigh/smppapi,oranoceallaigh/smppapi,oranoceallaigh/smppapi |
39a2a54708c58bf4edc083a7764bc777da594853 | src/com/temporaryteam/treenote/Main.java | src/com/temporaryteam/treenote/Main.java | package com.temporaryteam.treenote;
import javafx.application.Application;
import javafx.stage.Stage;
import java.util.Locale;
import java.util.ResourceBundle;
public class Main extends Application {
@Override
public void start(Stage primaryStage) {
primaryStage.setTitle("TreeNote");
... | package com.temporaryteam.treenote;
import javafx.application.Application;
import javafx.stage.Stage;
import java.util.Locale;
import java.util.ResourceBundle;
public class Main extends Application {
@Override
public void start(Stage primaryStage) {
System.setProperty("prism.lcdtext", "f... | Fix font smoothing in WebView (on linux) | Fix font smoothing in WebView (on linux)
| Java | apache-2.0 | NaikSoftware/TreeNote,NaikSoftware/TreeNote |
f028da619eeae15359a387fdc763bd51db40838e | src/com/stackallocated/imageupload/SettingsActivity.java | src/com/stackallocated/imageupload/SettingsActivity.java | package com.stackallocated.imageupload;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceFragment;
public class SettingsActivity extends PreferenceActivity {
public static final String KEY_UPLOAD_URL = "pref_server_upload_url";
public static final Str... | package com.stackallocated.imageupload;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceFragment;
public class SettingsActivity extends PreferenceActivity {
public static final String KEY_UPLOAD_URL = "pref_server_upload_url";
public static final Str... | Fix SettingsFragment class visibility for reinstantiation | Fix SettingsFragment class visibility for reinstantiation
| Java | bsd-2-clause | hansnielsen/simpleupload |
2c93f593f880b3391c7f121ff407e51a521cdcfc | src/main/java/org/babblelang/engine/BabbleException.java | src/main/java/org/babblelang/engine/BabbleException.java | package org.babblelang.engine;
public class BabbleException extends RuntimeException {
public BabbleException() {
super();
}
public BabbleException(String message) {
super(message);
}
public BabbleException(String message, Throwable cause) {
super(message, cause);
}
... | package org.babblelang.engine;
public class BabbleException extends RuntimeException {
public BabbleException() {
super();
}
public BabbleException(String message) {
super(message);
}
public BabbleException(String message, Throwable cause) {
super(message, cause);
}
... | Fix to support Java 6 | Fix to support Java 6
| Java | mit | nlehuen/babble |
5bf0736d979d73c5490933645e5494aec42e38d2 | src/main/java/com/maddogs/domain/User.java | src/main/java/com/maddogs/domain/User.java | package com.maddogs.domain;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import java.util.List;
@Entity
public class User extends PersistableDomainObject{
private String name;
private String email;
private String password;
@OneToMany
private List<Tag> tags;
@OneToMan... | package com.maddogs.domain;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.util.List;
@Entity
@Table(name = "tuser")
public class User extends PersistableDomainObject{
private String name;
private String email;
private String password;
... | Use non-reserved user table name | Use non-reserved user table name
| Java | mit | mad-dogs/roughly,mad-dogs/roughly,mad-dogs/roughly |
af5ec7a195624671abf86c113275c9e3181c2bcf | trunk/ExpectJ/test/expectj/TestExpect.java | trunk/ExpectJ/test/expectj/TestExpect.java | package expectj;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import junit.framework.TestCase;
import expectj.test.StagedStringProducer;
/**
* Verify that the different expect() methods of {@link SpawnedProcess} work as expected.
* @author johan.walles@gmail.com
*/
public c... | package expectj;
import junit.framework.TestCase;
import expectj.test.StagedSpawnable;
/**
* Verify that the different expect() methods of {@link SpawnedProcess} work as expected.
* @author johan.walles@gmail.com
*/
public class TestExpect extends TestCase
{
/**
* Generate a SpawnedProcess producing the i... | Put the staged spawnable in its own class. | Put the staged spawnable in its own class. | Java | lgpl-2.1 | tgbyte/expectj,tgbyte/expectj |
960238900b23068b3eb473cf2c9143cc549e1157 | server/app/services/QuestionsDBServiceProvider.java | server/app/services/QuestionsDBServiceProvider.java | package services;
import dao.QuestionsDao;
import services.models.UserQuestion;
/**
* Created by sabinapokhrel on 3/29/17.
*/
public class QuestionsDBServiceProvider {
/** This methos gets all the questions from the database
*
* @return
*/
public String getAllStoredQuestions() {
QuestionsDao quest... | package services;
import dao.QuestionsDao;
import services.models.UserQuestion;
/**
* Created by sabinapokhrel on 3/29/17.
*/
public class QuestionsDBServiceProvider {
/** This methos gets all the questions from the database
*
* @return
*/
public String getAllStoredQuestions() {
QuestionsDao quest... | Reformat bot reply for displaying list of questions. | Reformat bot reply for displaying list of questions.
| Java | apache-2.0 | agiledigital/poet-slack-bot,agiledigital/poet-slack-bot,agiledigital/poet-slack-bot |
e9a03f450fe1352c00a2499cfc729a8adb935581 | src/test/java/com/skraylabs/poker/NOfAKindTest.java | src/test/java/com/skraylabs/poker/NOfAKindTest.java | package com.skraylabs.poker;
import com.skraylabs.poker.model.Card;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.util.ArrayList;
import java.util.Collection;
public class NOfAKindTest {
@Rule
public ExpectedException exception = ExpectedException.none();
... | package com.skraylabs.poker;
import com.skraylabs.poker.model.Card;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.util.ArrayList;
import java.util.Collection;
public class NOfAKindTest {
@Rule
public ExpectedException exception = ExpectedException.none();
... | Add another test case for number = 0. | Add another test case for number = 0. | Java | mit | AbeSkray/poker-calculator |
996e72e33d541755e2ba4a97479bcaf218c6270e | src/main/java/com/forsvarir/mud/CommandProcessor.java | src/main/java/com/forsvarir/mud/CommandProcessor.java | package com.forsvarir.mud;
import com.forsvarir.mud.commands.MudCommand;
import com.forsvarir.mud.commands.UnknownCommand;
import org.springframework.stereotype.Service;
import java.util.Map;
@Service
public class CommandProcessor {
private final SessionManager sessionManager;
private final CommandTokenizer ... | package com.forsvarir.mud;
import com.forsvarir.mud.commands.MudCommand;
import com.forsvarir.mud.commands.UnknownCommand;
import org.springframework.stereotype.Service;
import java.util.Map;
@Service
public class CommandProcessor {
private final SessionManager sessionManager;
private final CommandTokenizer ... | Make it explicit where command class name comes from | Make it explicit where command class name comes from
| Java | mit | forsvarir/Mud |
b21a1ac66f7968f437a9d58293559044108980ea | test/com/opera/core/systems/ElementsTest.java | test/com/opera/core/systems/ElementsTest.java | package com.opera.core.systems;
import junit.framework.Assert;
import org.junit.Test;
public class ElementsTest extends TestBase {
@Test
public void testClear() {
driver.get(fixture("javascript.html"));
driver.mouseEvent(1, 1, 1);
driver.findElementById("input_email").clear();
Assert.assertTrue(... | package com.opera.core.systems;
import static org.junit.Assert.*;
import junit.framework.Assert;
import org.junit.Test;
import org.openqa.selenium.WebElement;
public class ElementsTest extends TestBase {
@Test
public void testClear() {
driver.get(fixture("javascript.html"));
driver.mouseEvent(1, 1, 1);
... | Add test for selecting an element of a select list | Add test for selecting an element of a select list
| Java | apache-2.0 | operasoftware/operaprestodriver,operasoftware/operaprestodriver,operasoftware/operaprestodriver |
296ad90de5842875b8c3b6c7834d976124dafc23 | api/src/main/java/uk/ac/ox/oucs/vle/SearchService.java | api/src/main/java/uk/ac/ox/oucs/vle/SearchService.java | /*
* #%L
* Course Signup API
* %%
* Copyright (C) 2010 - 2013 University of Oxford
* %%
* Licensed under the Educational Community 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://opensour... | /*
* #%L
* Course Signup API
* %%
* Copyright (C) 2010 - 2013 University of Oxford
* %%
* Licensed under the Educational Community 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://opensour... | Add some JavaDoc on the search service. | Add some JavaDoc on the search service. | Java | apache-2.0 | ox-it/wl-course-signup,ox-it/wl-course-signup,ox-it/wl-course-signup,ox-it/wl-course-signup,ox-it/wl-course-signup |
5668baec8e559c7577de53c4a670066ee59bf0f5 | intermine/web/main/src/org/intermine/util/Emailer.java | intermine/web/main/src/org/intermine/util/Emailer.java | package org.intermine.util;
import static org.apache.commons.lang.StringUtils.isBlank;
import java.util.Map;
import java.util.Properties;
import javax.mail.MessagingException;
public class Emailer {
private static final String PREFIX = "mail.regarding.";
private final Properties properties;
public Emailer(P... | package org.intermine.util;
import static org.apache.commons.lang.StringUtils.isBlank;
import java.util.Map;
import java.util.Properties;
import javax.mail.MessagingException;
import org.apache.commons.lang.StringUtils;
public class Emailer {
private static final String PREFIX = "mail.regarding.";
pr... | Handle missing templates nicely. Whitespace | Handle missing templates nicely. Whitespace
Former-commit-id: 4dacd2ba9162d107c6e1f61334855174b2cb44c7 | Java | lgpl-2.1 | drhee/toxoMine,drhee/toxoMine,drhee/toxoMine,drhee/toxoMine,drhee/toxoMine,drhee/toxoMine,drhee/toxoMine,drhee/toxoMine,drhee/toxoMine |
104c21379d4fbb54d7c913e0ab10b5e9a1111a62 | src/main/java/database/DummyDALpug.java | src/main/java/database/DummyDALpug.java | package database;
import java.util.ArrayList;
import java.util.List;
import interfaces.IDALpug;
import models.GenreTag;
import models.Song;
public class DummyDALpug implements IDALpug
{
private static Song dummySong;
private static List<Song> dummySongCollection;
public DummyDALpug()
{
if(dummySong == null)... | package database;
import java.util.ArrayList;
import java.util.List;
import interfaces.IDALpug;
import models.GenreTag;
import models.Song;
public class DummyDALpug implements IDALpug
{
private static Song dummySong;
private static List<Song> dummySongCollection;
public DummyDALpug()
{
if(dummySong == null)... | Set DummayDall to pull LooneyToones.mp3 file - BA | Set DummayDall to pull LooneyToones.mp3 file - BA
| Java | mit | lkawahara/playlistpug,lkawahara/playlistpug |
692a350fbea0342f66c7801ad09fed57def3fbff | querydsl-ant-test/src/test/Test.java | querydsl-ant-test/src/test/Test.java | package test;
import java.math.BigDecimal;
import com.mysema.query.annotations.QueryEntity;
@QueryEntity
public class Test {
private String property;
private int intProperty;
private BigDecimal bigDecimal;
}
| package test;
import java.math.BigDecimal;
import com.mysema.query.annotations.QueryEntity;
@QueryEntity
public class Test {
private String property;
private int intProperty;
private BigDecimal bigDecimal;
}
| Remove trailing whitespace in querydsl-ant-test | Remove trailing whitespace in querydsl-ant-test
| Java | apache-2.0 | mdiazf/querydsl,attila-kiss-it/querydsl,mosoft521/querydsl,lpandzic/querydsl,mdiazf/querydsl,lpandzic/querydsl,gordski/querydsl,pkcool/querydsl,tomforster/querydsl,Log10Solutions/querydsl,tomforster/querydsl,robertandrewbain/querydsl,balazs-zsoldos/querydsl,attila-kiss-it/querydsl,johnktims/querydsl,lpandzic/querydsl,v... |
daa50cd4116ced3ae0e613c657a94224eb671bcb | src/main/java/seedu/address/model/StateCommandPair.java | src/main/java/seedu/address/model/StateCommandPair.java | //@@author A0114395E
package seedu.address.model;
import seedu.address.logic.commands.*;
/**
* Class to store an action, and it's inverse
*/
public class StateCommandPair {
private Command executeCommand;
private Command undoCommand;
public StateCommandPair(Command cmd) {
this.executeComman... | //@@author A0114395E
package seedu.address.model;
import seedu.address.logic.commands.*;
import seedu.address.logic.commands.exceptions.CommandException;
/**
* Class to store an action, and it's inverse
*/
public class StateCommandPair {
private Command executeCommand;
private Command undoCommand;
... | Replace stubs with command execution | Replace stubs with command execution
| Java | mit | CS2103JAN2017-F12-B2/main,CS2103JAN2017-F12-B2/main |
b237e4cc2dd5b0d09fff6bb08bda087f32c569bb | src/protocolsupport/api/chat/modifiers/ClickAction.java | src/protocolsupport/api/chat/modifiers/ClickAction.java | package protocolsupport.api.chat.modifiers;
import java.net.MalformedURLException;
import java.net.URL;
import protocolsupport.utils.Utils;
public class ClickAction {
private final Type type;
private final String value;
public ClickAction(Type action, String value) {
this.type = action;
this.value = value;
... | package protocolsupport.api.chat.modifiers;
import java.net.MalformedURLException;
import java.net.URL;
import protocolsupport.utils.Utils;
public class ClickAction {
private final Type type;
private final String value;
public ClickAction(Type action, String value) {
this.type = action;
this.value = value;
... | Add click action copy to clipboard | Add click action copy to clipboard | Java | agpl-3.0 | ProtocolSupport/ProtocolSupport |
970e5334cf4932ee7fa705c7b2f9c5d43749353c | src/CrawlLogger.java | src/CrawlLogger.java | package src;
import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
public class CrawlLogger {
static private FileHandler fileTxt;
static private SimpleFormatter formatterTxt;
static public void... | package src;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
public class Crawl... | Change in the name of the log file | Change in the name of the log file
| Java | mit | joausaga/ideascalecrawler |
796fc02dc3b9bd6cb9ad0527b1867a1ba0ea696c | src/main/java/net/openhft/chronicle/queue/RollDetails.java | src/main/java/net/openhft/chronicle/queue/RollDetails.java | /*
* Copyright 2016 higherfrequencytrading.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | /*
* Copyright 2016 higherfrequencytrading.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | Add a custom hashCode and equals for performance. | Add a custom hashCode and equals for performance.
| Java | apache-2.0 | OpenHFT/Chronicle-Queue,OpenHFT/Chronicle-Queue |
67ac5f0ce1ce6c5fe4c40d6b3eb91ee72f3ca349 | src/com/michaldabski/utils/FileIconResolver.java | src/com/michaldabski/utils/FileIconResolver.java | package com.michaldabski.utils;
import java.io.File;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.LruCache;
import com.michaldabski.fileexplorer.R;
public class FileIconResolver extends LruCache<String, Bitmap>
{
final Context context;
... | package com.michaldabski.utils;
import java.io.File;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.LruCache;
import com.michaldabski.fileexplorer.R;
public class FileIconResolver extends LruCache<String, Bitmap>
{
public static final int... | Define cache size for file icons in megabytes | Define cache size for file icons in megabytes
| Java | mit | AiJiaZone/filemanager,mick88/filemanager,jsavage/filemanager |
76f8b9c539f11baa00f89ab00671703154f9bee1 | src/fr/utc/assos/uvweb/util/ConnectionUtils.java | src/fr/utc/assos/uvweb/util/ConnectionUtils.java | package fr.utc.assos.uvweb.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.view.ViewGroup;
import de.keyboardsurfer.android.widget.crouton.Style;
/**
* A helper class used to determine the current network state, i.e. online or not online
*... | package fr.utc.assos.uvweb.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import de.keyboardsurfer.android.widget.crouton.Style;
/**
* A helper class used to determine the current network state, i.e. online or not online
*/
public class ConnectionUtils ... | Update to latest Crouton rev | Update to latest Crouton rev
| Java | apache-2.0 | uvweb/UVwebForAndroid,uvweb/UVwebForAndroid |
c9c99f44a9f3b1b133a58d20525029f372b2a52b | src/main/java/com/hamishrickerby/http_server/App.java | src/main/java/com/hamishrickerby/http_server/App.java | package com.hamishrickerby.http_server;
import com.hamishrickerby.http_server.responses.ResponseCoordinator;
/**
* Created by rickerbh on 15/08/2016.
*/
public class App {
private static String DEFAULT_PORT = "5000";
public static void main(String[] args) {
AppArguments arguments = new AppArguments... | package com.hamishrickerby.http_server;
import com.hamishrickerby.http_server.auth.Authenticator;
import com.hamishrickerby.http_server.auth.RequestAuthenticator;
/**
* Created by rickerbh on 15/08/2016.
*/
public class App {
private static String DEFAULT_PORT = "5000";
public static void main(String[] arg... | Integrate authenticator into to app | Integrate authenticator into to app
| Java | mit | rickerbh/http_server_java,rickerbh/http_server_java |
9681b103a8ac4994df5048f3c9114ae5a3368f5a | hackerrank/two-arrays/Solution.java | hackerrank/two-arrays/Solution.java | public class Solution {
public static void main(String[] args) throws Exception {
}
}
| import java.io.*;
import java.util.Arrays;
import java.util.StringTokenizer;
/**
* @author shengmin
*/
public class Solution {
boolean solve(int[] A, int[] B, int K) {
Arrays.sort(A);
Arrays.sort(B);
int pivot = B.length;
int capacity = 0;
for (int i = 0; i < A.length; i++) {
int a = A[i... | Add solution to two-arrays problem | Add solution to two-arrays problem
| Java | mit | shengmin/coding-problem,shengmin/coding-problem,shengmin/coding-problem,shengmin/coding-problem |
41d396828fea54f2572cf77861b434a685ff3210 | src/main/java/armeria/Frontend.java | src/main/java/armeria/Frontend.java | package armeria;
import brave.Tracing;
import com.linecorp.armeria.client.HttpClient;
import com.linecorp.armeria.client.HttpClientBuilder;
import com.linecorp.armeria.client.tracing.HttpTracingClient;
import com.linecorp.armeria.common.HttpRequest;
import com.linecorp.armeria.common.HttpResponse;
import com.linecorp.... | package armeria;
import brave.Tracing;
import com.linecorp.armeria.client.HttpClient;
import com.linecorp.armeria.client.HttpClientBuilder;
import com.linecorp.armeria.client.tracing.HttpTracingClient;
import com.linecorp.armeria.server.Server;
import com.linecorp.armeria.server.ServerBuilder;
import com.linecorp.arme... | Use the shorter decorator() method | Use the shorter decorator() method
.. because they are same for `HttpClient`.
| Java | mit | kristofa/brave-resteasy-example |
c237e1950627f87e8b91128de6bda91f6ed449aa | orm/src/test/java/org/medimob/orm/test/TestEntity.java | orm/src/test/java/org/medimob/orm/test/TestEntity.java | package org.medimob.orm.test;
import org.medimob.orm.annotation.Entity;
/**
* Created by Poopaou on 20/01/2015.
*/
@Entity
public class TestEntity {
}
| package org.medimob.orm.test;
/**
* Created by Poopaou on 20/01/2015.
*/
//@Entity
public class TestEntity {
}
| Fix : Pom scm git properties | Fix : Pom scm git properties
| Java | apache-2.0 | poopaou/orm |
20eaaf53b2a618a73b1627de577b2568ff1ae504 | src/foam/nanos/http/WebAgentServlet.java | src/foam/nanos/http/WebAgentServlet.java | /**
* @license
* Copyright 2017 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
package foam.nanos.http;
import foam.core.*;
import foam.dao.*;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServle... | /**
* @license
* Copyright 2017 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
package foam.nanos.http;
import foam.core.*;
import foam.dao.*;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServle... | Set default content type to text/html for WebAgents. | Set default content type to text/html for WebAgents.
| Java | apache-2.0 | foam-framework/foam2,TanayParikh/foam2,TanayParikh/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2,TanayParikh/foam2,foam-framework/foam2,TanayParikh/foam2,foam-framework/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2,jacksonic/vjlofvhjfgm |
e0a1e8293b89a29e9f3e2d1cc9f7591c0fd94785 | common/cpw/mods/fml/common/event/FMLServerStartingEvent.java | common/cpw/mods/fml/common/event/FMLServerStartingEvent.java | package cpw.mods.fml.common.event;
import net.minecraft.server.MinecraftServer;
import cpw.mods.fml.common.LoaderState.ModState;
public class FMLServerStartingEvent extends FMLStateEvent
{
private MinecraftServer server;
public FMLServerStartingEvent(Object... data)
{
super(data);
this.s... | package cpw.mods.fml.common.event;
import net.minecraft.server.MinecraftServer;
import net.minecraft.src.CommandHandler;
import net.minecraft.src.ICommand;
import cpw.mods.fml.common.LoaderState.ModState;
public class FMLServerStartingEvent extends FMLStateEvent
{
private MinecraftServer server;
public FMLS... | Add in a helper on the server start event for adding commands to the server. | Add in a helper on the server start event for adding commands to
the server.
| Java | lgpl-2.1 | aerospark/FML,aerospark/FML,MinecraftForge/FML,aerospark/FML |
1390da0d0ff85caffc13d771cd2d00672487cca6 | src/org/apollo/game/scheduling/Scheduler.java | src/org/apollo/game/scheduling/Scheduler.java | package org.apollo.game.scheduling;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Queue;
import org.apollo.util.CollectionUtil;
/**
* A class which manages {@link ScheduledTask}s.
*
* @author Graham
*/
public final class Scheduler {
... | package org.apollo.game.scheduling;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Queue;
import org.apollo.util.CollectionUtil;
/**
* A class which manages {@link ScheduledTask}s.
*
* @author Graham
*/
public final class Scheduler {
... | Remove actions at the correct time. | Remove actions at the correct time.
| Java | isc | SJ19/apollo,Major-/apollo,ryleykimmel/apollo,apollo-rsps/apollo,garyttierney/apollo,Major-/apollo,apollo-rsps/apollo,ryleykimmel/apollo,SJ19/apollo,LegendSky/apollo,garyttierney/apollo,apollo-rsps/apollo,LegendSky/apollo |
7df1f1abe42d855a6df21de63833cad8090d4ac1 | src/main/java/fi/tekislauta/Main.java | src/main/java/fi/tekislauta/Main.java | package fi.tekislauta;
import static spark.Spark.*;
import fi.tekislauta.db.*;
import com.google.gson.*;
import fi.tekislauta.models.Board;
import fi.tekislauta.models.Post;
public class Main {
public static void main(String[] args) {
port(1234);
Gson gson = new Gson();
Database db = new... | package fi.tekislauta;
import static spark.Spark.*;
import fi.tekislauta.db.*;
import com.google.gson.*;
import fi.tekislauta.models.Board;
import fi.tekislauta.models.Post;
public class Main {
public static void main(String[] args) {
port(1234);
Gson gson = new Gson();
Database db = new... | Add charset to test response | Add charset to test response
| Java | mit | drop-table-ryhmatyo/tekislauta-server |
7165c34338fcb1f5b81a736837af04b3fee6deff | src/main/java/abra/Options.java | src/main/java/abra/Options.java | /* Copyright 2013 University of North Carolina at Chapel Hill. All rights reserved. */
package abra;
import java.io.IOException;
import joptsimple.OptionParser;
import joptsimple.OptionSet;
/**
* Abstract base class for helping with options parsing.
*
* @author Lisle E. Mose (lmose at unc dot edu)
*/
public ab... | /* Copyright 2013 University of North Carolina at Chapel Hill. All rights reserved. */
package abra;
import java.io.IOException;
import joptsimple.OptionParser;
import joptsimple.OptionSet;
/**
* Abstract base class for helping with options parsing.
*
* @author Lisle E. Mose (lmose at unc dot edu)
*/
public ab... | Allow param exception to trickle up. | Allow param exception to trickle up. | Java | mit | mozack/abra2,mozack/abra2,mozack/abra2,mozack/abra2 |
d3a65d0297924601faec73293d444f987f326bcf | core/src/uk/co/alynn/games/suchrobot/NodeSetReader.java | core/src/uk/co/alynn/games/suchrobot/NodeSetReader.java | package uk.co.alynn.games.suchrobot;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.files.FileHandle;
public abstract class NodeSetReader {
public static NodeSet readNodeSet(String file) throws IOException {
FileHandl... | package uk.co.alynn.games.suchrobot;
import java.io.IOException;
import java.io.InputStream;
import java.util.Locale;
import java.util.Scanner;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.files.FileHandle;
public abstract class NodeSetReader {
public static NodeSet readNodeSet(String file) throws IOExce... | Use the UK locale for parsing | Use the UK locale for parsing
| Java | mit | prophile/ggj2015,prophile/ggj2015,prophile/ggj2015,prophile/ggj2015 |
e59e615a2ece63a7a36ca134f2f2e7ceaedf1bdb | src/main/java/com/jenjinstudios/io/concurrency/ReadTask.java | src/main/java/com/jenjinstudios/io/concurrency/ReadTask.java | package com.jenjinstudios.io.concurrency;
import com.jenjinstudios.io.Message;
import com.jenjinstudios.io.MessageReader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
/**
* Reads incoming messages and stores them in a MessageQueue.
*
* @author Caleb Brinkman
*/
public clas... | package com.jenjinstudios.io.concurrency;
import com.jenjinstudios.io.Message;
import com.jenjinstudios.io.MessageReader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.EOFException;
import java.io.IOException;
/**
* Reads incoming messages and stores them in a MessageQueue.
*
* @author C... | Add special handling for EOFException | Add special handling for EOFException
| Java | mit | floralvikings/jenjin-io |
c52f538dd747219abdb2e2e608c8e36a50f49216 | src/main/java/yokohama/unit/ast/InstanceSuchThatMatcher.java | src/main/java/yokohama/unit/ast/InstanceSuchThatMatcher.java | package yokohama.unit.ast;
import java.util.List;
import java.util.stream.Collectors;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import lombok.experimental.FieldDefaults;
@ToString
@EqualsAndHashCode(exclude={... | package yokohama.unit.ast;
import java.util.List;
import java.util.stream.Collectors;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import lombok.experimental.FieldDefaults;
@ToString
@EqualsAndHashCode(exclude={... | Include propositions in the description | Include propositions in the description | Java | mit | tkob/yokohamaunit,tkob/yokohamaunit |
626aa8eeeaaff8729ec0d9f0b8b68cf8c5fe3836 | src/main/java/edu/chl/proton/model/File.java | src/main/java/edu/chl/proton/model/File.java | package edu.chl.proton.model;
/**
* @author Stina Werme
* Created by stinawerme on 01/05/17.
*/
public class File extends FileSystemEntity {
//private Document document;
public File(String name) {
this.setName(name);
}
public File(String name, Folder parentFolder) {
this.setName(n... | package edu.chl.proton.model;
/**
* @author Stina Werme
* Created by stinawerme on 01/05/17.
*/
public class File extends FileSystemEntity {
//private Document document;
public File(String name) {
this.setName(name);
}
public File(String name, Folder parentFolder) {
this.setName(n... | Remove parameters from save methods | Remove parameters from save methods
| Java | agpl-3.0 | Levis92/proton-text |
79450cd4313e8ce50f7cb2035bd14497e1308249 | src/main/java/hackerrank/GameOfThrones1.java | src/main/java/hackerrank/GameOfThrones1.java | package hackerrank;
import java.util.Scanner;
public class GameOfThrones1 {
private static String isPalindrome(String str) {
// TODO:
return "YES";
}
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String str = in.next();
System.out.pr... | package hackerrank;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class GameOfThrones1 {
private static String isPalindrome(String str) {
Map<Character, Integer> counts = new HashMap<>();
for (int i = 0; i < str.length(); i++) {
char c = str.charAt(i)... | Solve Game of Thrones 1 | Solve Game of Thrones 1
| Java | mit | fredyw/hackerrank |
ea45d42fc7afa5f0b40a7e774a58c0545492ee55 | src/main/java/pw/ian/albkit/AlbPlugin.java | src/main/java/pw/ian/albkit/AlbPlugin.java | package pw.ian.albkit;
import org.bukkit.Server;
import org.bukkit.event.Listener;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.ServicesManager;
import org.bukkit.plugin.java.JavaPlugin;
/**
* A base plugin class which makes creating new plugins more convenient, as it
* removes the necessity to ... | package pw.ian.albkit;
import pw.ian.albkit.command.CommandHandler;
import pw.ian.albkit.command.Commands;
import org.bukkit.Server;
import org.bukkit.event.Listener;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.ServicesManager;
import org.bukkit.plugin.java.JavaPlugin;
/**
* A base plugin class... | Add utility command registration methods | Add utility command registration methods
| Java | mit | simplyianm/albkit |
45109443e4601304bd45a6d937e911823eb2a382 | src/ru/adelf/idea/dotenv/DotEnvFileTypeFactory.java | src/ru/adelf/idea/dotenv/DotEnvFileTypeFactory.java | package ru.adelf.idea.dotenv;
import com.intellij.openapi.fileTypes.*;
import org.jetbrains.annotations.NotNull;
public class DotEnvFileTypeFactory extends FileTypeFactory {
@Override
public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) {
fileTypeConsumer.consume(DotEnvFileType.INST... | package ru.adelf.idea.dotenv;
import com.intellij.openapi.fileTypes.*;
import org.jetbrains.annotations.NotNull;
public class DotEnvFileTypeFactory extends FileTypeFactory {
@Override
public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) {
fileTypeConsumer.consume(DotEnvFileType.INST... | Fix PhpStorm .env files recognition | Fix PhpStorm .env files recognition
| Java | mit | adelf/idea-php-dotenv-plugin,adelf/idea-php-dotenv-plugin,adelf/idea-php-dotenv-plugin,adelf/idea-php-dotenv-plugin,adelf/idea-php-dotenv-plugin,adelf/idea-php-dotenv-plugin,adelf/idea-php-dotenv-plugin,adelf/idea-php-dotenv-plugin |
2281aaa8403743578678dcb313cc05c438e692f5 | src/graphics/EvolutionSelector.java | src/graphics/EvolutionSelector.java | package graphics;
import javax.swing.*;
import java.awt.*;
public class EvolutionSelector extends JPanel {
private static JFrame frame;
//Used to allow JLabel to word-wrap
private static final String HTML_Formatting = "<html><body style='width: 100px'>";
public static JCheckBox xEquation = new JChec... | package graphics;
import javax.swing.*;
import java.awt.*;
public class EvolutionSelector extends JPanel {
private static JFrame frame;
//Used to allow JLabel to word-wrap
private static final String HTML_Formatting = "<html><body style='width: 100px'>";
public static JCheckBox xEquation = new JChec... | Make the X Y and Z checkboxes automatically selected on program start | Make the X Y and Z checkboxes automatically selected on program start
| Java | mit | Tyler-Yates/AestheticFractals |
97f4d02b4f9f2d231c7a24d5d35d55a2070c4d0f | complete/src/main/java/hello/GreetingController.java | complete/src/main/java/hello/GreetingController.java | package hello;
import java.util.concurrent.atomic.AtomicLong;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public cl... | package hello;
import java.util.concurrent.atomic.AtomicLong;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class GreetingController {
private static... | Upgrade from @Controller/@ResponseBody to @RestController | Upgrade from @Controller/@ResponseBody to @RestController
Resolves #22
| Java | mit | prod-hid/akd-api,prod-hid/akd-api |
0869ea696e243f894352508edd08c1078ebd317c | src/main/java/ui/pages/MainPage.java | src/main/java/ui/pages/MainPage.java | /**
* Created with IntelliJ IDEA.
* User: jhasmanyquiroz
* Date: 11/11/15
* Time: 3:08 PM
* To change this template use File | Settings | File Templates.
*/
package ui.pages;
import framework.BrowserManager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import ui.BasePageObject;
public c... | /**
* Created with IntelliJ IDEA.
* User: jhasmanyquiroz
* Date: 11/11/15
* Time: 3:08 PM
* To change this template use File | Settings | File Templates.
*/
package ui.pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import o... | Implement the Page Factory Pattern and methods for login | Implement the Page Factory Pattern and methods for login
| Java | mit | j4z31/QADEV04-Coursera-GUI |
e26e5ff67e2043d99776c07e326c236b5a9607b0 | test/com/dom_distiller/client/DomDistillerTestSuite.java | test/com/dom_distiller/client/DomDistillerTestSuite.java | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package com.dom_distiller.client;
import com.google.gwt.junit.tools.GWTTestSuite;
import com.dom_distiller.client.util.TextBlockBuilderTest;
import jun... | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package com.dom_distiller.client;
import com.google.gwt.junit.tools.GWTTestSuite;
import junit.framework.Test;
import junit.framework.TestSuite;
public... | Fix "Move ElementActionTest and TextBlockBuilderTest from test/ to jstest/" | Fix "Move ElementActionTest and TextBlockBuilderTest from test/ to jstest/"
Remove dependency on TestTextDocumentBuilder in test/.
R=cjhopman@chromium.org
Review URL: https://codereview.chromium.org/852513005
| Java | apache-2.0 | dalmirdasilva/dom-distiller,dalmirdasilva/dom-distiller,dalmirdasilva/dom-distiller,dalmirdasilva/dom-distiller,dalmirdasilva/dom-distiller |
7e7324052f6c1ceb75be132b07bad3009ffec6fe | src/emergencylanding/k/library/lwjgl/render/TextureRender.java | src/emergencylanding/k/library/lwjgl/render/TextureRender.java | package emergencylanding.k.library.lwjgl.render;
import emergencylanding.k.library.internalstate.ELEntity;
import emergencylanding.k.library.lwjgl.Shapes;
public class TextureRender extends Render<ELEntity> {
@Override
public void doRender(ELEntity entity, float posX, float posY, float posZ) {
VBAO q... | package emergencylanding.k.library.lwjgl.render;
import emergencylanding.k.library.internalstate.ELEntity;
import emergencylanding.k.library.lwjgl.Shapes;
import emergencylanding.k.library.util.DrawableUtils;
public class TextureRender extends Render<ELEntity> {
@Override
public void doRender(ELEntity entity... | Use glTrans instead of setXYZOff | Use glTrans instead of setXYZOff
| Java | mit | TechShroom/EmergencyLanding |
28f31637bda9ebe50d9af793efe2dae5d721b396 | app/src/main/java/com/blstream/studybox/MainActivity.java | app/src/main/java/com/blstream/studybox/MainActivity.java | package com.blstream.studybox;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_m... | package com.blstream.studybox;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
public class MainActivity extends AppCompatActivity {
private static final String TAG = MainActivity.class.getSimpleName();
@Override
protected void onCreate(Bundle savedIns... | Add test jira flow task | Add test jira flow task
| Java | apache-2.0 | blstream/StudyBox_Android |
b05cd396686da98e13f61ea4ec1d1fa5e6a7a970 | src/com/tutorialspoint/documentation/HelloWorld.java | src/com/tutorialspoint/documentation/HelloWorld.java | package com.tutorialspoint.documentation;
/**
* The HelloWorld program implements an application that simply displays "Hello World!" to the
* standard output.
*
* @author Peter
* @version 1.0
* @since 2015-07-18
*/
public class HelloWorld {
public static void main(String[] args) {
// Prints He... | package com.tutorialspoint.documentation;
/**
* <h1>Hello, World!</h1> The HelloWorld program implements an application that simply displays
* "Hello World!" to the standard output.
* <p>
* Giving proper comments in your program makes it more user friendly and it is assumed as a high
* quality code.
* </... | Add example about the usage of <h1> and <p> tags. | Add example about the usage of <h1> and <p> tags. | Java | mit | antalpeti/Java-Tutorial,antalpeti/Java-Tutorial |
676c2961658fa23d4b747937b140b7451464bc4f | src/main/java/seedu/jobs/model/task/Description.java | src/main/java/seedu/jobs/model/task/Description.java | package seedu.jobs.model.task;
/**
* Represents a Task's description in JOBS.
*/
public class Description {
public static final String DEFAULT_VALUE = "";
public final String value;
public Description(String description){
this.value = (description==null) ? DEFAULT_VALUE : description;
}
@Override
publ... | package seedu.jobs.model.task;
import seedu.jobs.commons.exceptions.IllegalValueException;
/**
* Represents a Task's description in JOBS.
*/
public class Description {
public static final String DEFAULT_DESCRIPTION = "";
public static final String MESSAGE_DESCRIPTION_CONSTRAINT = "Description cannot be more t... | Add constraint for description's length | Add constraint for description's length
| Java | mit | CS2103JAN2017-F11-B1/main,CS2103JAN2017-F11-B1/main |
02141d8df02091e89cb02144417753032337525b | src/org/nwapw/abacus/lexing/pattern/PatternNode.java | src/org/nwapw/abacus/lexing/pattern/PatternNode.java | package org.nwapw.abacus.lexing.pattern;
import java.util.ArrayList;
public class PatternNode<T> {
protected ArrayList<PatternNode<T>> outputStates;
public PatternNode(){
outputStates = new ArrayList<>();
}
public boolean matches(char other){
return false;
}
public char ran... | package org.nwapw.abacus.lexing.pattern;
import java.util.ArrayList;
import java.util.HashSet;
public class PatternNode<T> {
protected HashSet<PatternNode<T>> outputStates;
public PatternNode(){
outputStates = new HashSet<>();
}
public boolean matches(char other){
return false;
... | Switch underlying implementation to Set from List. | Switch underlying implementation to Set from List.
| Java | mit | DanilaFe/abacus,DanilaFe/abacus |
794b9573088ae55ba6dbe7f4b13f009ed01d5967 | src/main/java/com/hpe/caf/cipher/jasypt/JasyptCipher.java | src/main/java/com/hpe/caf/cipher/jasypt/JasyptCipher.java | package com.hpe.caf.cipher.jasypt;
import com.hpe.caf.api.BootstrapConfiguration;
import com.hpe.caf.api.Cipher;
import com.hpe.caf.api.CipherException;
import com.hpe.caf.api.ConfigurationException;
import org.jasypt.util.text.BasicTextEncryptor;
/**
* Implementation of a SecurityProvider that uses Jasypt to prov... | package com.hpe.caf.cipher.jasypt;
import com.hpe.caf.api.BootstrapConfiguration;
import com.hpe.caf.api.Cipher;
import com.hpe.caf.api.CipherException;
import com.hpe.caf.api.ConfigurationException;
import org.jasypt.util.text.BasicTextEncryptor;
/**
* Implementation of a SecurityProvider that uses Jasypt to prov... | Change config security pass env variable to meet standard naming convention | Change config security pass env variable to meet standard naming convention
| Java | apache-2.0 | CAFapi/caf-common,CAFapi/caf-common,CAFapi/caf-common |
f40fdf5b088b51912161b89fd0f595d3128479e2 | src/main/java/seedu/jimi/model/task/Name.java | src/main/java/seedu/jimi/model/task/Name.java | package seedu.jimi.model.task;
import seedu.jimi.commons.exceptions.IllegalValueException;
/**
* Represents a FloatingTask's name in the address book.
* Guarantees: immutable; is valid as declared in {@link #isValidName(String)}
*/
public class Name {
public static final String MESSAGE_NAME_CONSTRAINTS = "Flo... | package seedu.jimi.model.task;
import seedu.jimi.commons.exceptions.IllegalValueException;
/**
* Represents a FloatingTask's name in the address book.
* Guarantees: immutable; is valid as declared in {@link #isValidName(String)}
*/
public class Name {
public static final String MESSAGE_NAME_CONSTRAINTS = "Flo... | Update floating task name constraints message | Update floating task name constraints message
| Java | mit | CS2103AUG2016-T09-C2/main,CS2103AUG2016-T09-C2/main |
b6ee444f5c874c21eed598bfb45bce66c3d0b7f8 | src/main/java/com/emc/ecs/serviceBroker/config/BrokerConfig.java | src/main/java/com/emc/ecs/serviceBroker/config/BrokerConfig.java | package com.emc.ecs.serviceBroker.config;
import java.net.URL;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import com.emc.ecs.managementClient.Connection;
import com.emc.ecs.serviceBroker... | package com.emc.ecs.serviceBroker.config;
import java.net.URL;
import org.cloudfoundry.community.servicebroker.model.BrokerApiVersion;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import c... | Set broker to version 2.7 | Set broker to version 2.7
| Java | apache-2.0 | codedellemc/ecs-cf-service-broker,spiegela/ecs-cf-service-broker,emccode/ecs-cf-service-broker |
6ef674e689a108fd257c7518a846c5a9448009cb | src/GeeksforGeeksPractice/_0018BinaryTreeSubTreeCheck.java | src/GeeksforGeeksPractice/_0018BinaryTreeSubTreeCheck.java | package GeeksforGeeksPractice;
public class _0018BinaryTreeSubTreeCheck {
public static class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) { val = x; }
}
public static void main(String args[]){
TreeNode tn1=new TreeNode(10);
tn1.left=new TreeNode(8);
tn1.right=new Tre... | package GeeksforGeeksPractice;
public class _0018BinaryTreeSubTreeCheck {
public static class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) { val = x; }
}
public static void main(String args[]){
TreeNode tn1=new TreeNode(10);
tn1.left=new TreeNode(8);
tn1.right=new Tre... | Check binary sub tree completed | Check binary sub tree completed | Java | mit | darshanhs90/Java-InterviewPrep,darshanhs90/Java-Coding |
2bcedf8c43382cab085093ed87812c1fadcab714 | src/main/DatabaseConnection.java | src/main/DatabaseConnection.java | import java.sql.*;
import java.util.ArrayList;
public class DatabaseConnection {
public static Connection dbcon;
public static void InsertData(ArrayList<String> array, String path) {
try {
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
dbcon = DriverManager.getConnection("jdbc:sqlserver://serv... | import java.sql.*;
import java.util.ArrayList;
public class DatabaseConnection {
public static Connection dbcon;
public static void InsertData(ArrayList<String> array, String path) {
try {
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
dbcon = DriverManager.getConnection("jdbc:sqlserver://serv... | Insert data -position, urls, pathx.html- in sql server and add SQLException | Insert data -position, urls, pathx.html- in sql server and add SQLException
| Java | apache-2.0 | milouk/Web_Crawler |
77ec428fa2bfb67f884a5478231d4423459528a3 | src/net/idlesoft/android/hubroid/Dashboard.java | src/net/idlesoft/android/hubroid/Dashboard.java | package net.idlesoft.android.hubroid;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class Dashboard extends Activity {
@Override
public void onCreate(Bundle savedInstanceS... | package net.idlesoft.android.hubroid;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;
public class Dashboard extends Activity {
@Override
public ... | Add code to handle the search button | Add code to handle the search button
Signed-off-by: Eddie Ringle <bacc1c505cb1756c59242c0a8ee25cd990a210e9@eringle.net>
| Java | bsd-3-clause | EddieRingle/hubroid,vontrapp/hubroid,EddieRingle/hubroid |
c0a9166c73bbb100b486451ec0f01a5b97870588 | src/main/java/org/terasology/cities/SettlementComponent.java | src/main/java/org/terasology/cities/SettlementComponent.java | /*
* Copyright 2013 MovingBlocks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright 2013 MovingBlocks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Fix the error caused by missing default constructor that is used when copying components internally. | Fix the error caused by missing default constructor that is used when copying components internally.
| Java | apache-2.0 | Terasology/Cities,Terasology/Cities |
3d76ace57ac1e78a6e39f36cda4c62f4659c71e0 | android/src/com/freshplanet/ane/AirAACPlayer/Extension.java | android/src/com/freshplanet/ane/AirAACPlayer/Extension.java | //////////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2012 Freshplanet (http://freshplanet.com | opensource@freshplanet.com)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... | //////////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2012 Freshplanet (http://freshplanet.com | opensource@freshplanet.com)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... | Convert extension to be instantiable | Convert extension to be instantiable | Java | apache-2.0 | freshplanet/ANE-AACPlayer,freshplanet/ANE-AACPlayer,freshplanet/ANE-AACPlayer |
6503450cdd1ebfb9e2fa874de6676bbf7531c5b1 | src/me/dreamteam/tardis/Game.java | src/me/dreamteam/tardis/Game.java | package me.dreamteam.tardis;
import java.awt.Canvas;
import java.awt.image.BufferStrategy;
/**
Main Class
*/
public class Game extends Canvas {
/**
* Begin the game parameters that will allow us to define certain elements.
*/
private BufferStrategy strategy;
// This provides hardware acceleration
priv... | package me.dreamteam.tardis;
import java.awt.Canvas;
import java.awt.Dimension;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.image.BufferStrategy;
import javax.swing.JFrame;
import javax.swing.JPanel;
/**
Main Class
*/
public class Game extends Canvas {
/**
* Begin t... | Build the canvas, add more params, game loop, main!!! | Build the canvas, add more params, game loop, main!!!
| Java | mit | The-Dream-Team/Tardis,The-Dream-Team/Tardis |
b486c943c1905f9b3e281db4683c910f1c1bf640 | android/src/xyz/igorgee/shapejs/ShapeJS.java | android/src/xyz/igorgee/shapejs/ShapeJS.java | package xyz.igorgee.shapejs;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
public class Sha... | package xyz.igorgee.shapejs;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.concurrent.TimeUnit;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
public clas... | Increase timeout for intense images | Increase timeout for intense images
| Java | mit | IgorGee/PendantCreator3D,IgorGee/Carbonizr,IgorGee/3D-Image-Creator |
a679634bc73daec13dda4d7794784fd87ebac2ec | src/heufybot/core/User.java | src/heufybot/core/User.java | package heufybot.core;
public class User
{
private String nickname;
private String login;
private String hostmask;
public User(String nickname, String login, String hostmask)
{
this.nickname = nickname;
this.login = login;
this.hostmask = hostmask;
}
public User(String nickname)
{
this.nickname = ... | package heufybot.core;
public class User
{
private String nickname;
private String login;
private String hostmask;
private String realname;
private boolean isOper;
public User(String nickname, String login, String hostmask)
{
this.nickname = nickname;
this.login = login;
this.hostmask = hostmask;
}
... | Add more information that will be saved upon receiving a /WHO reply | Add more information that will be saved upon receiving a /WHO reply | Java | mit | Heufneutje/RE_HeufyBot,Heufneutje/RE_HeufyBot |
6ab48f4008e2ced10e9946951348b8335f254750 | proxytoys/src/com/thoughtworks/proxy/toys/delegate/Delegating.java | proxytoys/src/com/thoughtworks/proxy/toys/delegate/Delegating.java | /*
* Created on 04-Feb-2004
*
* (c) 2003-2004 ThoughtWorks
*
* See license.txt for licence details
*/
package com.thoughtworks.proxy.toys.delegate;
import com.thoughtworks.proxy.ProxyFactory;
import com.thoughtworks.proxy.factory.StandardProxyFactory;
/**
* @author <a href="mailto:dan.north@thou... | /*
* Created on 04-Feb-2004
*
* (c) 2003-2004 ThoughtWorks
*
* See license.txt for licence details
*/
package com.thoughtworks.proxy.toys.delegate;
import com.thoughtworks.proxy.ProxyFactory;
import com.thoughtworks.proxy.factory.StandardProxyFactory;
/**
* @author <a href="mailto:dan.north@thou... | Fix possible mix of ProxyFactory instances. | Fix possible mix of ProxyFactory instances. | Java | bsd-3-clause | codehaus/proxytoys,codehaus/proxytoys |
cc30498be89bb81a6bbfa5a36cbb59a68b450e49 | src/main/java/com/github/culmat/easyjdbc/beans/XBeanProcessor.java | src/main/java/com/github/culmat/easyjdbc/beans/XBeanProcessor.java | package com.github.culmat.easyjdbc.beans;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.dbutils.BeanProcessor;
public class XBeanProcessor extends BeanProcessor {
public static interface PostProcessor<T> {
public ... | package com.github.culmat.easyjdbc.beans;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.dbutils.BeanProcessor;
public class XBeanProcessor extends BeanProcessor {
public static interface PostProcessor<T> {
public T postProces... | Allow registered and processed classes to differ as BeanProcessor does internal conversation. Useful i.e. for enum types. | Allow registered and processed classes to differ as BeanProcessor does
internal conversation. Useful i.e. for enum types. | Java | apache-2.0 | culmat/easyJDBC |
c13ec7b5002f7b90e353305eb52b76a63d3f3e32 | src/main/java/fr/insee/pogues/webservice/rest/PoguesException.java | src/main/java/fr/insee/pogues/webservice/rest/PoguesException.java | package fr.insee.pogues.webservice.rest;
/**
* Created by acordier on 04/07/17.
*/
public class PoguesException extends Exception {
private int status;
private String details;
/**
*
* @param status
* @param message
* @param details
*/
public PoguesException(int status, Stri... | package fr.insee.pogues.webservice.rest;
import java.io.IOException;
/**
* Created by acordier on 04/07/17.
*/
public class PoguesException extends IOException {
private int status;
private String details;
/**
*
* @param status
* @param message
* @param details
*/
public P... | Make pogues exception usable in authorization filter | Make pogues exception usable in authorization filter
| Java | mit | InseeFr/Pogues-Back-Office,InseeFr/Pogues-Back-Office |
56f5d4e823f9673a6f7bddcaa091dbbcfdb5f8ec | 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 byte array to buffered image | Convert byte array to buffered image
| Java | mit | giuseppecuccu/jsvq,giuseppecuccu/jsvq |
c39f9f16fd0387884acd3bc8fd7a8dffe4606bf7 | app/src/debug/java/com/github/ayltai/newspaper/BaseApplication.java | app/src/debug/java/com/github/ayltai/newspaper/BaseApplication.java | package com.github.ayltai.newspaper;
import android.app.Application;
import com.facebook.common.logging.FLog;
import com.facebook.stetho.Stetho;
import com.github.ayltai.newspaper.util.TestUtils;
import com.squareup.leakcanary.LeakCanary;
public abstract class BaseApplication extends Application {
@Override
... | package com.github.ayltai.newspaper;
import android.app.Application;
import com.facebook.common.logging.FLog;
import com.facebook.stetho.Stetho;
import com.github.ayltai.newspaper.util.TestUtils;
import com.squareup.leakcanary.LeakCanary;
public abstract class BaseApplication extends Application {
@Override
... | Disable Facebook Stetho in tests | Disable Facebook Stetho in tests
| Java | apache-2.0 | ayltai/Newspaper |
9a51c4bede4afe947612e87e53a708694a905835 | squidb-processor/src/com/yahoo/squidb/processor/data/ErrorInfo.java | squidb-processor/src/com/yahoo/squidb/processor/data/ErrorInfo.java | /*
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the Apache 2.0 License.
* See the accompanying LICENSE file for terms.
*/
package com.yahoo.squidb.processor.data;
import com.yahoo.aptutils.model.DeclaredTypeName;
/**
* Tuple class to hold logged error info, to be written by the
* {@link com.yahoo.sq... | /*
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the Apache 2.0 License.
* See the accompanying LICENSE file for terms.
*/
package com.yahoo.squidb.processor.data;
import com.yahoo.aptutils.model.DeclaredTypeName;
/**
* Tuple class to hold logged error info, to be written by the
* {@link com.yahoo.sq... | Move comments to public javadocs | Move comments to public javadocs
| Java | apache-2.0 | yahoo/squidb,yahoo/squidb,yahoo/squidb,yahoo/squidb,yahoo/squidb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.