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 |
|---|---|---|---|---|---|---|---|---|---|
19a33551bd65b9a2e907173b48662010abba9565 | bundles/testutils/tools.vitruv.testutils.domains/src/tools/vitruv/testutils/domains/AllElementTypesDomain.java | bundles/testutils/tools.vitruv.testutils.domains/src/tools/vitruv/testutils/domains/AllElementTypesDomain.java | package tools.vitruv.testutils.domains;
import java.util.List;
import allElementTypes.AllElementTypesPackage;
public final class AllElementTypesDomain extends VitruvTestDomain {
public static final String METAMODEL_NAME = "AllElementTypes";
public static final String FILE_EXTENSION = "allElementTypes";
AllElemen... | package tools.vitruv.testutils.domains;
import java.util.List;
import allElementTypes.AllElementTypesPackage;
public final class AllElementTypesDomain extends VitruvTestDomain {
public static final String METAMODEL_NAME = "AllElementTypes";
public static final String FILE_EXTENSION = "allElementTypes";
private bo... | Allow enabling transitive change propagation in test metamodel domain | Allow enabling transitive change propagation in test metamodel domain
| Java | epl-1.0 | vitruv-tools/Vitruv |
c6a26e8b364defdce17a9cda2ef054af3a8c9c80 | src/main/com/faveset/khttpserver/HttpServer.java | src/main/com/faveset/khttpserver/HttpServer.java | // Copyright 2014, Kevin Ko <kevin@faveset.com>
package com.faveset.khttpserver;
import java.io.IOException;
import sun.misc.Signal;
import sun.misc.SignalHandler;
import com.faveset.log.OutputStreamLog;
public class HttpServer {
public static void main(String[] args) throws IOException {
if (args.lengt... | // Copyright 2014, Kevin Ko <kevin@faveset.com>
package com.faveset.khttpserver;
import java.io.IOException;
import sun.misc.Signal;
import sun.misc.SignalHandler;
import com.faveset.khttp.HttpHandler;
import com.faveset.khttp.HttpRequest;
import com.faveset.khttp.HttpResponseWriter;
import com.faveset.log.OutputSt... | Add simple handler for demonstrating usage. | Add simple handler for demonstrating usage.
| Java | bsd-3-clause | kevinko/mahttp,kevinko/mahttp |
49a50ddc3ce5cde43488296e30c2518b085b3e12 | cineio-broadcast-android-sdk/src/main/java/io/cine/android/BroadcastConfig.java | cineio-broadcast-android-sdk/src/main/java/io/cine/android/BroadcastConfig.java | package io.cine.android;
import android.util.Log;
/**
* Created by thomas on 1/16/15.
*/
public class BroadcastConfig {
private int width;
private int height;
private String requestedCamera;
private String lockedOrientation;
public int getWidth() {
return width;
}
public void ... | package io.cine.android;
import android.util.Log;
/**
* Created by thomas on 1/16/15.
*/
public class BroadcastConfig {
private Integer width;
private Integer height;
private String requestedCamera;
private String lockedOrientation;
public int getWidth() {
if (width == null){
... | Set BroadCastConfig width and height to Integers, and check for null values; return -1 if null. This allows us to avoid the problem of ints defaulting to 0 which messes up the default settings for screen width/height | Set BroadCastConfig width and height to Integers, and check for null values; return -1 if null.
This allows us to avoid the problem of ints defaulting to 0 which messes up the default settings for screen width/height
| Java | mit | cine-io/cineio-broadcast-android,DisruptiveMind/cineio-broadcast-android |
594013577541966eaea2aee61acfac93b3d59f96 | LeakCanarySample/app/src/main/java/anaware/leakcanarysample/AnotherActivity.java | LeakCanarySample/app/src/main/java/anaware/leakcanarysample/AnotherActivity.java | package anaware.leakcanarysample;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.squareup.leakcanary.RefWatcher;
public class AnotherActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstance... | package anaware.leakcanarysample;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.squareup.leakcanary.RefWatcher;
public class AnotherActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstance... | Call GC to accelerate the analysis | Call GC to accelerate the analysis
| Java | apache-2.0 | anaselhajjaji/android-samples,anaselhajjaji/android-samples |
dc12477e9ce94db47592e6368ad850027a2e1d30 | content-manager/src/main/java/org/wisdom/content/bodyparsers/BodyParserJson.java | content-manager/src/main/java/org/wisdom/content/bodyparsers/BodyParserJson.java | package org.wisdom.content.bodyparsers;
import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.annotations.Instantiate;
import org.apache.felix.ipojo.annotations.Provides;
import org.wisdom.api.content.BodyParser;
import org.wisdom.api.http.Context;
import org.wisdom.api.http.MimeTypes;
imp... | package org.wisdom.content.bodyparsers;
import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.annotations.Instantiate;
import org.apache.felix.ipojo.annotations.Provides;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.wisdom.api.content.BodyParser;
import org.wisdom.ap... | Check for null and empty body before trying to map a json string to an object. | Check for null and empty body before trying to map a json string to an object.
Signed-off-by: Clement Escoffier <6397137e57d1f87002962a37058f2a1c76fca9db@gmail.com>
| Java | apache-2.0 | CRDNicolasBourbaki/wisdom,evrignaud/wisdom,cheleb/wisdom,torito/wisdom,CRDNicolasBourbaki/wisdom,wisdom-framework/wisdom,wisdom-framework/wisdom,CRDNicolasBourbaki/wisdom,wisdom-framework/wisdom,cheleb/wisdom,evrignaud/wisdom,gdelafosse/wisdom,torito/wisdom,gdelafosse/wisdom,cheleb/wisdom,evrignaud/wisdom,gdelafosse/wi... |
b052061124499b47abf243861e8a54209d1e9ce5 | modelimplementation/src/main/java/org/verapdf/model/impl/pb/cos/PBCosString.java | modelimplementation/src/main/java/org/verapdf/model/impl/pb/cos/PBCosString.java | package org.verapdf.model.impl.pb.cos;
import org.apache.log4j.Logger;
import org.apache.pdfbox.cos.COSString;
import org.verapdf.model.coslayer.CosString;
/**
* Created by Evgeniy Muravitskiy on 4/28/15.
* <p>
* Current class is representation of CosString interface of abstract model.
* This class is ana... | package org.verapdf.model.impl.pb.cos;
import org.apache.log4j.Logger;
import org.apache.pdfbox.cos.COSString;
import org.verapdf.model.coslayer.CosString;
/**
* Created by Evgeniy Muravitskiy on 4/28/15.
* <p>
* Current class is representation of CosString interface of abstract model.
* This class is ana... | Add support of hexadecimal string for CosString | Add support of hexadecimal string for CosString
| Java | mpl-2.0 | carlwilson/veraPDF-library |
45b87aa936bbf1369098ace49117b3921074b27e | maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionManager.java | maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionManager.java | package org.apache.maven.plugin.version;
/*
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licens... | package org.apache.maven.plugin.version;
/*
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licens... | Remove unused and unavailable imports | Remove unused and unavailable imports
git-svn-id: 2c527eb49caa05e19d6b2be874bf74fa9d7ea670@497304 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | Distrotech/maven,wangyuesong/maven,cstamas/maven,wangyuesong/maven,Distrotech/maven,gorcz/maven,likaiwalkman/maven,pkozelka/maven,likaiwalkman/maven,josephw/maven,trajano/maven,josephw/maven,apache/maven,kidaa/maven-1,runepeter/maven-deploy-plugin-2.8.1,Tibor17/maven,skitt/maven,likaiwalkman/maven,mizdebsk/maven,njunea... |
c602b48fb232ecb801ab4dfd17d23ad9dbd3c95e | app/src/androidTest/java/com/neoranga55/cleanguitestarchitecture/test/CucumberTestCase.java | app/src/androidTest/java/com/neoranga55/cleanguitestarchitecture/test/CucumberTestCase.java | package com.neoranga55.cleanguitestarchitecture.test;
import cucumber.api.CucumberOptions;
/**
* This class configures the Cucumber test framework and Java glue code
*/
@CucumberOptions(features = "features", // Test scenarios
glue = {"com.neoranga55.cleanguitestarchitecture.cucumber.steps"}, // Steps defin... | package com.neoranga55.cleanguitestarchitecture.test;
import cucumber.api.CucumberOptions;
/**
* This class configures the Cucumber test framework and Java glue code
*/
@CucumberOptions(features = "features", // Test scenarios
glue = {"com.neoranga55.cleanguitestarchitecture.cucumber.steps"}, // Steps defin... | Fix cucumber test results location on device | Fix cucumber test results location on device
| Java | mit | whembed197923/CleanGUITestArchitecture,neoranga55/CleanGUITestArchitecture |
df30f32e05c6d311f01be9b9de0ca27c2ce57ad5 | PopupBridgeExample/src/main/java/com/braintreepayments/popupbridge/example/MainActivity.java | PopupBridgeExample/src/main/java/com/braintreepayments/popupbridge/example/MainActivity.java | package com.braintreepayments.popupbridge.example;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import com.braintreepayments.popupbridge.PopupBridge;
public class MainActivity extends Activity {
private static final String URL = "https://braintree.github.io/popup-bridge-... | package com.braintreepayments.popupbridge.example;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import com.braintreepayments.popupbridge.PopupBridge;
public class MainActivity extends Activity {
private static final String URL = "https://braintree.github.io/popup-bridge-... | Remove unneeded code in example app | Remove unneeded code in example app
| Java | mit | braintree/popup-bridge-android,braintree/popup-bridge-android |
e5a9220d382f9ba0c03a71a238ce2683fe4c6e8d | android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/file/SdlArtworkTests.java | android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/file/SdlArtworkTests.java | package com.smartdevicelink.managers.file;
import com.smartdevicelink.AndroidTestCase2;
import com.smartdevicelink.managers.file.filetypes.SdlArtwork;
import com.smartdevicelink.managers.file.filetypes.SdlFile;
import com.smartdevicelink.proxy.rpc.enums.StaticIconName;
import com.smartdevicelink.test.Test;
public cla... | package com.smartdevicelink.managers.file;
import com.smartdevicelink.AndroidTestCase2;
import com.smartdevicelink.managers.file.filetypes.SdlArtwork;
import com.smartdevicelink.managers.file.filetypes.SdlFile;
import com.smartdevicelink.proxy.rpc.enums.StaticIconName;
import com.smartdevicelink.test.Test;
public cla... | Update SdlArtwork test to have reusable equalTest | Update SdlArtwork test to have reusable equalTest
| Java | bsd-3-clause | smartdevicelink/sdl_android |
56e4b7af9e7225e1888e6947e20c6024cbcf4b63 | src/com/opengamma/financial/security/option/AmericanVanillaEquityOptionSecurity.java | src/com/opengamma/financial/security/option/AmericanVanillaEquityOptionSecurity.java | /**
* Copyright (C) 2009 - 2010 by OpenGamma Inc.
*
* Please see distribution for license.
*/
package com.opengamma.financial.security.option;
import com.opengamma.financial.Currency;
import com.opengamma.id.Identifier;
import com.opengamma.id.UniqueIdentifier;
import com.opengamma.util.time.Expiry;
/**
* An Ame... | /**
* Copyright (C) 2009 - 2010 by OpenGamma Inc.
*
* Please see distribution for license.
*/
package com.opengamma.financial.security.option;
import com.opengamma.financial.Currency;
import com.opengamma.id.Identifier;
import com.opengamma.util.time.Expiry;
/**
* An American equity option security.
*/
public c... | Make code conform to Checkstyle standards | [DVI-34] Make code conform to Checkstyle standards
| Java | apache-2.0 | codeaudit/OG-Platform,nssales/OG-Platform,ChinaQuants/OG-Platform,codeaudit/OG-Platform,DevStreet/FinanceAnalytics,jeorme/OG-Platform,nssales/OG-Platform,nssales/OG-Platform,DevStreet/FinanceAnalytics,codeaudit/OG-Platform,ChinaQuants/OG-Platform,McLeodMoores/starling,DevStreet/FinanceAnalytics,DevStreet/FinanceAnalyti... |
6575688b0130d289f7cc814c79aaf0c43b975747 | src/main/java/org/jenkinsci/plugins/github/pullrequest/GitHubPRRepositoryFactory.java | src/main/java/org/jenkinsci/plugins/github/pullrequest/GitHubPRRepositoryFactory.java | package org.jenkinsci.plugins.github.pullrequest;
import hudson.Extension;
import hudson.model.AbstractProject;
import hudson.model.Action;
import hudson.model.TransientProjectActionFactory;
import java.io.IOException;
import java.util.Collection;
import java.util.Collections;
import java.util.logging.Level;
import j... | package org.jenkinsci.plugins.github.pullrequest;
import hudson.Extension;
import hudson.model.AbstractProject;
import hudson.model.Action;
import hudson.model.TransientProjectActionFactory;
import java.io.IOException;
import java.util.Collection;
import java.util.Collections;
import java.util.logging.Level;
import j... | Allow save job that had no GH project property before. | Allow save job that had no GH project property before.
| Java | mit | daniel-beck/github-pullrequest-plugin,jenkinsci/github-pullrequest-plugin,daniel-beck/github-pullrequest-plugin,jenkinsci/github-integration-plugin,abayer/github-pullrequest-plugin,KostyaSha/github-integration-plugin,daniel-beck/github-pullrequest-plugin,jenkinsci/github-integration-plugin,KostyaSha/github-integration-... |
a934fd7c6b8c9c8af13783b76b0d4d565dfbfb6e | src/main/java/interactivelearner/gui/NaiveBayesGUI.java | src/main/java/interactivelearner/gui/NaiveBayesGUI.java | package interactivelearner.gui;
import interactivelearner.classifier.NaiveBayesianClassifier;
import interactivelearner.data.Corpus;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.... | package interactivelearner.gui;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class NaiveBayesGUI extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
F... | Remove unused imports in GUI class | Remove unused imports in GUI class
| Java | apache-2.0 | oplosthee/interactive-learner |
1c4a65bf5234cb7bd4a597a07a330402b4917750 | jackrabbit-text-extractors/src/main/java/org/apache/jackrabbit/extractor/DefaultTextExtractor.java | jackrabbit-text-extractors/src/main/java/org/apache/jackrabbit/extractor/DefaultTextExtractor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Use Apache Tika for text extraction | JCR-1878: Use Apache Tika for text extraction
Automatically improve any configurations that use DefaultTextExtractor by making that class extend TikaTextExtractor.
git-svn-id: 02b679d096242155780e1604e997947d154ee04a@762813 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | Kast0rTr0y/jackrabbit,Overseas-Student-Living/jackrabbit,Overseas-Student-Living/jackrabbit,Kast0rTr0y/jackrabbit,tripodsan/jackrabbit,sdmcraft/jackrabbit,tripodsan/jackrabbit,bartosz-grabski/jackrabbit,sdmcraft/jackrabbit,afilimonov/jackrabbit,Overseas-Student-Living/jackrabbit,sdmcraft/jackrabbit,tripodsan/jackrabbit... |
2c214ee990574e425010f5ea17805a90c500c00f | processor/src/main/java/org/realityforge/arez/processor/ContainerDescriptorParser.java | processor/src/main/java/org/realityforge/arez/processor/ContainerDescriptorParser.java | package org.realityforge.arez.processor;
import javax.annotation.Nonnull;
import javax.lang.model.element.Element;
import javax.lang.model.element.Modifier;
import javax.lang.model.element.PackageElement;
import javax.lang.model.element.TypeElement;
import javax.lang.model.util.Elements;
import javax.lang.model.util.T... | package org.realityforge.arez.processor;
import javax.annotation.Nonnull;
import javax.lang.model.element.Element;
import javax.lang.model.element.Modifier;
import javax.lang.model.element.PackageElement;
import javax.lang.model.element.TypeElement;
import javax.lang.model.util.Elements;
import javax.lang.model.util.T... | Save descriptor into field so can start parsing other elkements | Save descriptor into field so can start parsing other elkements
| Java | apache-2.0 | realityforge/arez,realityforge/arez,realityforge/arez |
734253d6b66e8268e130d27cbbc95fcc0365cc0e | java/interview/bipartition-pattern-matching.java | java/interview/bipartition-pattern-matching.java | /**
* @Company Facebook
*
* Given two strings, str and pattern, return true if the str has a valid mapping between the words in str and the characters in the pattern.
* The str will be whitespace separated and the pattern will be depicted using characters.
*
* Problem Ex.
* Input: 'cat dog dog cat', 'abba'
* ... | /**
* @Company Facebook
*
* Given two strings, str and pattern, return true if the str has a valid mapping between the words in str and the characters in the pattern.
* The str will be whitespace separated and the pattern will be depicted using characters.
*
* Problem Ex.
* Input: 'cat dog dog cat', 'abba'
* ... | Add bipartite pattern matching solution | Add bipartite pattern matching solution
| Java | mit | vinnyoodles/algorithms,vinnyoodles/algorithms,vinnyoodles/algorithms |
6827d4e2a285904aa0c68363f6747bab98e6eb0d | CarFactory/src/ru/nsu/ccfit/bogush/view/FactoryView.java | CarFactory/src/ru/nsu/ccfit/bogush/view/FactoryView.java | package ru.nsu.ccfit.bogush.view;
import ru.nsu.ccfit.bogush.CarFactoryModel;
import javax.swing.*;
public class FactoryView extends JPanel {
private JPanel mainPanel;
private ControlPanel controlPanel;
private InformationPanel infoPanel;
private ButtonPanel buttonPanel;
private CarFactoryModel model;
public... | package ru.nsu.ccfit.bogush.view;
import ru.nsu.ccfit.bogush.CarFactoryModel;
import ru.nsu.ccfit.bogush.factory.Supplier;
import javax.swing.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class FactoryView extends JPanel {
private JPanel mainPanel;
private ControlPanel controlPa... | Change default close operation of main window to "dispose" Add windowClosed listener which interrupts all model threads | Change default close operation of main window to "dispose"
Add windowClosed listener which interrupts all model threads
| Java | mit | RoyPy/15201-bogush |
acdd1c290f5c2dee627f5dc9f9f2a415f0a4a6d4 | tests/de/gurkenlabs/litiengine/environment/tilemap/xml/CustomPropertyProviderTests.java | tests/de/gurkenlabs/litiengine/environment/tilemap/xml/CustomPropertyProviderTests.java | package de.gurkenlabs.litiengine.environment.tilemap.xml;
import org.junit.Test;
import junit.framework.Assert;
public class CustomPropertyProviderTests {
@Test
public void testSetCustomProperty() {
CustomPropertyProvider propProvider = new CustomPropertyProvider();
propProvider.setCustomProperty("test"... | package de.gurkenlabs.litiengine.environment.tilemap.xml;
import java.util.ArrayList;
import org.junit.Test;
import junit.framework.Assert;
public class CustomPropertyProviderTests {
@Test
public void testSetCustomProperty() {
CustomPropertyProvider propProvider = new CustomPropertyProvider();
propProv... | Add additional test case for setting custom properties by a collection. | Add additional test case for setting custom properties by a collection.
| Java | mit | gurkenlabs/litiengine,gurkenlabs/litiengine |
e021be3fa4468634bd3c9bbeecf91977aa2ce5fb | server/HumanActivityRecognition/src/main/java/eu/liveandgov/wp1/human_activity_recognition/Main.java | server/HumanActivityRecognition/src/main/java/eu/liveandgov/wp1/human_activity_recognition/Main.java | package eu.liveandgov.wp1.human_activity_recognition;
import eu.liveandgov.wp1.human_activity_recognition.containers.CountWindow;
import eu.liveandgov.wp1.human_activity_recognition.containers.TaggedWindow;
import eu.liveandgov.wp1.human_activity_recognition.helper.Persistor;
import eu.liveandgov.wp1.human_activity_re... | package eu.liveandgov.wp1.human_activity_recognition;
import eu.liveandgov.wp1.human_activity_recognition.containers.CountWindow;
import eu.liveandgov.wp1.human_activity_recognition.containers.TaggedWindow;
import eu.liveandgov.wp1.human_activity_recognition.helper.Persistor;
import eu.liveandgov.wp1.human_activity_re... | Set main() to test data. | Set main() to test data. | Java | mit | Institute-Web-Science-and-Technologies/LiveGovWP1,Institute-Web-Science-and-Technologies/LiveGovWP1,Institute-Web-Science-and-Technologies/LiveGovWP1,Institute-Web-Science-and-Technologies/LiveGovWP1,Institute-Web-Science-and-Technologies/LiveGovWP1 |
36d05900741e5518a031ed364736790a3232ab25 | src/java/org/apache/fop/area/NormalFlow.java | src/java/org/apache/fop/area/NormalFlow.java | /*
* Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | /*
* Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | Accumulate the BPD extent used by the normal flow's children. | Accumulate the BPD extent used by the normal flow's children.
git-svn-id: 102839466c3b40dd9c7e25c0a1a6d26afc40150a@202359 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | Distrotech/fop,argv-minus-one/fop,spepping/fop-cs,StrategyObject/fop,argv-minus-one/fop,StrategyObject/fop,spepping/fop-cs,Distrotech/fop,argv-minus-one/fop,StrategyObject/fop,argv-minus-one/fop,spepping/fop-cs,Distrotech/fop,Distrotech/fop,argv-minus-one/fop,StrategyObject/fop,spepping/fop-cs,StrategyObject/fop |
12ebdf3272aa71aeba6ce4ff71d1d80db45a8fbd | src/constant/PlatformId.java | src/constant/PlatformId.java | package constant;
/*
* Copyright 2015 Taylor Caldwell
*
* 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... | package constant;
/*
* Copyright 2015 Taylor Caldwell
*
* 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 region names to platform id constants | Add region names to platform id constants
| Java | apache-2.0 | taycaldwell/riot-api-java,Haakjvork/riot-api-java,rithms/riot-api-java |
3b913041751bcec62e255e2312ca0832e0ae994d | src/org/nwapw/abacus/number/FunctionDatabase.java | src/org/nwapw/abacus/number/FunctionDatabase.java | package org.nwapw.abacus.number;
import java.util.HashMap;
public class FunctionDatabase {
private HashMap<String, Function> functions;
private void registerDefault(){
}
public FunctionDatabase(){
functions = new HashMap<>();
}
public Function getFunction(String name){
ret... | package org.nwapw.abacus.number;
import java.util.HashMap;
public class FunctionDatabase {
private HashMap<String, Function> functions;
private void registerDefault(){
functions.put("+", new Function() {
@Override
protected boolean matchesParams(Number[] params) {
... | Add the four external essential functions. | Add the four external essential functions.
| Java | mit | DanilaFe/abacus,DanilaFe/abacus |
c0586ceccbf7ca0fed6f5ef4392df2dda75d782c | src/main/java/main/MainClass.java | src/main/java/main/MainClass.java | /**
*
*/
package main;
<<<<<<< Updated upstream
/**
* @author Bart
*
*/
public class MainClass {
/**
* @param arg - the main arguments
*/
public static void main(String[] args) {
System.out.println("Welcom to the main class of goto-fail;");
}
=======
import lombok.Getter;
import lombok.Setter;
pu... | package main;
import lombok.Getter;
import lombok.Setter;
public class MainClass {
@Getter @Setter
public static int counter;
/**
* @param args - the main arguments.
*/
public static void main(String[] args) {
setCounter(5);
System.out.println(getCounter());
System.o... | Remove wierd git behaviour & Fix name javadoc | Remove wierd git behaviour & Fix name javadoc
| Java | apache-2.0 | bartdejonge1996/goto-fail,bartdejonge1996/goto-fail |
30b3feb412fc1585e03dad0980d53c5e158a0624 | src/main/java/com/stripe/model/ChargeLevel3.java | src/main/java/com/stripe/model/ChargeLevel3.java | package com.stripe.model;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public final class ChargeLevel3 extends StripeObject {
protected List<ChargeLevel3LineItem> lineItems;
protected String merchantRefer... | package com.stripe.model;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public final class ChargeLevel3 extends StripeObject {
protected String customerReference;
protected List<ChargeLevel3LineItem> lineI... | Add extra properties to the Level III data on a Charge | Add extra properties to the Level III data on a Charge
| Java | mit | stripe/stripe-java |
9d85b5d5a0a1124ddb64411516a2e8fb1394e408 | hello-world/src/test/java/HelloWorldTest.java | hello-world/src/test/java/HelloWorldTest.java | import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class HelloWorldTest {
@Test
public void helloNoName() {
assertEquals("Hello, World!", HelloWorld.hello(""));
assertEquals("Hello, World!", HelloWorld.hello(null));
}
@Test
public void helloSampleName() {
... | import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class HelloWorldTest {
@Test
public void helloNoName() {
assertEquals("Hello, World!", HelloWorld.hello(""));
assertEquals("Hello, World!", HelloWorld.hello(null));
}
@Test
public void helloSampleName() {
... | Remove needless Exception from method signature | Remove needless Exception from method signature
Fixes https://github.com/winterchord/xjava/commit/d09fb713d19abbcbdaaa979adb59aa7fc94532fd#commitcomment-14962172
The original PR (https://github.com/exercism/xjava/pull/69) that this issue
could have been fixed in was merged before I could fix this issue.
| Java | mit | exercism/xjava,FridaTveit/xjava,FridaTveit/xjava,jtigger/xjava,nickRm/xjava,jtigger/xjava,exercism/xjava,nickRm/xjava,jmluy/xjava,jmluy/xjava |
c969deb768b0781b38a5d767dcef2c1e5466f710 | java/server/src/org/openqa/selenium/grid/ActualMain.java | java/server/src/org/openqa/selenium/grid/ActualMain.java | package org.openqa.selenium.grid;public class ActualMain {
}
| // Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... | Add missing copyright file. No logical changes | Add missing copyright file. No logical changes
| Java | apache-2.0 | SeleniumHQ/selenium,titusfortner/selenium,valfirst/selenium,SeleniumHQ/selenium,SeleniumHQ/selenium,titusfortner/selenium,joshmgrant/selenium,joshmgrant/selenium,titusfortner/selenium,joshmgrant/selenium,joshmgrant/selenium,joshmgrant/selenium,HtmlUnit/selenium,valfirst/selenium,HtmlUnit/selenium,titusfortner/selenium,... |
e5fd4fef01e4bf440926dd0f8dde40fc1fd4dd36 | github-plugin/src/main/java/io/freefair/gradle/plugins/github/GithubPackageRegistryMavenPublishPlugin.java | github-plugin/src/main/java/io/freefair/gradle/plugins/github/GithubPackageRegistryMavenPublishPlugin.java | package io.freefair.gradle.plugins.github;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.publish.PublishingExtension;
import org.gradle.api.publish.maven.plugins.MavenPublishPlugin;
/**
* @author Lars Grefer
*/
public class GithubPackageRegistryMavenPublishPlugin implements Plug... | package io.freefair.gradle.plugins.github;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.publish.PublishingExtension;
import org.gradle.api.publish.maven.plugins.MavenPublishPlugin;
/**
* @author Lars Grefer
*/
public class GithubPackageRegistryMavenPublishPlugin implements Plug... | Add the repo name to the github package repo url | Add the repo name to the github package repo url
see https://github.com/freefair/gradle-plugins/issues/50#issuecomment-517961934
| Java | mit | freefair/gradle-plugins,freefair/gradle-plugins |
939aca3718eaf8bc04ecf2883ac9358ac0967406 | src/main/java/axiom/delauth/token/DemoAuthenticator.java | src/main/java/axiom/delauth/token/DemoAuthenticator.java | package axiom.delauth.token;
public class DemoAuthenticator implements Authenticator {
public boolean authenticate(String username, String password) {
return password.equals("123456");
}
}
| package axiom.delauth.token;
public class DemoAuthenticator implements Authenticator {
public boolean authenticate(String username, String password) {
return !(null == username || null == password) && password.equals("123456");
}
}
| Fix DemoAuthenicator to require username and password not be null. (eclipse) | Fix DemoAuthenicator to require username and password not be null. (eclipse)
| Java | mit | enreeco/axiom,ryanbrainard/axiom,enreeco/axiom,ryanbrainard/axiom,ryanbrainard/axiom,enreeco/axiom |
ffcf3dd95496c09e0d61cb5d4a0d5088612161ba | src/main/java/net/md_5/gauge/monitor/PlayersMonitor.java | src/main/java/net/md_5/gauge/monitor/PlayersMonitor.java | package net.md_5.gauge.monitor;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
public class PlayersMonitor implements Runnable
{
@Override
public void run()
{
Player[] players = Bukkit.getServer().getOnlinePlayers();
}
}
| package net.md_5.gauge.monitor;
import java.util.HashSet;
import java.util.Set;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
public class PlayersMonitor implements Runnable
{
private final Set<String> seen = new HashSet<>();
@Override
public void run()
{
Player[] players = Bukk... | Add player join / parts + online count. | Add player join / parts + online count.
| Java | bsd-3-clause | EcoCityCraft/Gauge |
8b4206afcca5c0f34d35d8345b91d53aff173a44 | src/main/java/mmarquee/automation/AutomationEditBox.java | src/main/java/mmarquee/automation/AutomationEditBox.java | package mmarquee.automation;
import mmarquee.automation.uiautomation.IUIAutomation;
import mmarquee.automation.uiautomation.IUIAutomationElement;
/**
* Created by inpwt on 26/01/2016.
*/
public class AutomationEditBox extends AutomationBase implements IAutomationEditBox {
public String text() {
return t... | package mmarquee.automation;
import mmarquee.automation.uiautomation.*;
/**
* Created by inpwt on 26/01/2016.
*/
public class AutomationEditBox extends AutomationBase implements IAutomationEditBox {
public String text() {
//return this.name();
com4j.Com4jObject unknown = this.element.getCurrentP... | Fix issue with the value of editboxes | Fix issue with the value of editboxes
| Java | apache-2.0 | mmarquee/ui-automation |
1318b5497c51e10e196ff7b4f4093c4710b99831 | backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/AttachNetworkToVdsGroupParameter.java | backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/AttachNetworkToVdsGroupParameter.java | package org.ovirt.engine.core.common.action;
import org.ovirt.engine.core.common.businessentities.Network;
import org.ovirt.engine.core.common.businessentities.VDSGroup;
import org.ovirt.engine.core.common.businessentities.network_cluster;
public class AttachNetworkToVdsGroupParameter extends NetworkClusterParameters... | package org.ovirt.engine.core.common.action;
import org.ovirt.engine.core.common.businessentities.Network;
import org.ovirt.engine.core.common.businessentities.NetworkStatus;
import org.ovirt.engine.core.common.businessentities.VDSGroup;
import org.ovirt.engine.core.common.businessentities.network_cluster;
public cla... | Fix default network status on attach | core: Fix default network status on attach
Network status is being saved to DB & later on updated, so need to save
some default value and NonOperational is a reasonable choice.
Change-Id: I17ea1594fe54203ce5d98fedd77dade64537f57c
Signed-off-by: Mike Kolesnik <c6947eedc1b0e500810c3b3db45e5f4633b0ea7d@redhat.com>
| Java | apache-2.0 | yingyun001/ovirt-engine,eayun/ovirt-engine,yapengsong/ovirt-engine,zerodengxinchao/ovirt-engine,yapengsong/ovirt-engine,walteryang47/ovirt-engine,yingyun001/ovirt-engine,halober/ovirt-engine,walteryang47/ovirt-engine,yapengsong/ovirt-engine,OpenUniversity/ovirt-engine,zerodengxinchao/ovirt-engine,OpenUniversity/ovirt-e... |
9df65f4c6022154324a2c3131242b64a46ea42d9 | SkepBot/src/io/github/skepter/skepbot/modules/Magic8.java | SkepBot/src/io/github/skepter/skepbot/modules/Magic8.java | package io.github.skepter.skepbot.modules;
import java.util.concurrent.ThreadLocalRandom;
public class Magic8 extends Module {
String[] responses = { "It is certain", "It is decidedly so", "Without a doubt", "Yes definitely",
"You may rely on it", "As I see it, yes", "Most likely", "Outlook good", "Yes", ... | package io.github.skepter.skepbot.modules;
import java.util.concurrent.ThreadLocalRandom;
public class Magic8 extends Module {
String[] responses = { "It is certain", "It is decidedly so", "Without a doubt", "Yes definitely",
"You may rely on it", "As I see it, yes", "Most likely", "Outlook good", "Yes", ... | Update magic 8 ball syntax | Update magic 8 ball syntax | Java | apache-2.0 | Skepter/SkepBot |
d1f020574ab022555f7e3edc3f32d66b71b0d5b4 | core/plugins/org.openhealthtools.mdht.uml.common/src/org/openhealthtools/mdht/uml/common/notation/INotationProvider.java | core/plugins/org.openhealthtools.mdht.uml.common/src/org/openhealthtools/mdht/uml/common/notation/INotationProvider.java | /*******************************************************************************
* Copyright (c) 2009 David A Carlson.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | /*******************************************************************************
* Copyright (c) 2009 David A Carlson.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | Add support for notation images. | Add support for notation images. | Java | epl-1.0 | vadimnehta/mdht,drbgfc/mdht,vadimnehta/mdht,drbgfc/mdht,sarpkayanehta/mdht,sarpkayanehta/mdht,mdht/mdht,sarpkayanehta/mdht,vadimnehta/mdht,mdht/mdht,mdht/mdht,drbgfc/mdht,drbgfc/mdht,drbgfc/mdht,vadimnehta/mdht,vadimnehta/mdht,sarpkayanehta/mdht,sarpkayanehta/mdht,mdht/mdht,mdht/mdht,drbgfc/mdht,sarpkayanehta/mdht,vadi... |
17d49959fb67a49a1d7078ee2c35f5abb3032b81 | helloworld.java | helloworld.java | public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
// public > all languages can access
// static > will run without making an instance
// void > will not return a value
// main > method name
/**
*system > prefdefined class of methods/variables
*out... | public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
// public > all languages can access
// static > will run without making an instance
// void > will not return a value
// main > method name
/**
*system > prefdefined class of methods/variables
*out... | Create all the the primitives with different values | Create all the the primitives with different values | Java | mit | HeyIamJames/LearningJava |
b0821fae0f9e34fd96e1952bd4bd27863fbf514f | metier/Carte.java | metier/Carte.java | /* Classe: Carte
* @author MARECAL Thomas
* @author QUENTIN Thibaut
* @author MARTIN Florian
* Groupe I2
* @version 1 du 04/06/2014
**/
package metier;
public class Carte {
private static String[] COULEURS = { "ROUGE", "JAUNE", "VERT", "BLEU", "GRIS"};
private String couleur = "NULL";
private int valeur;
... | /* Classe: Carte
* @author MARECAL Thomas
* @author QUENTIN Thibaut
* @author MARTIN Florian
* Groupe I2
* @version 1 du 04/06/2014
**/
package metier;
public class Carte {
private final static String[] COULEURS = { "ROUGE", "JAUNE", "VERT", "BLEU", "GRIS"};
private String couleur = "NULL";
private int valeu... | Add getters for valeur and couleur | Add getters for valeur and couleur
| Java | mit | Nistof/Ballon-Cup |
95518e94aeee9c952bf5884088e42de3f4a0c1ec | WaniKani/src/tr/xip/wanikani/settings/SettingsActivity.java | WaniKani/src/tr/xip/wanikani/settings/SettingsActivity.java | package tr.xip.wanikani.settings;
import android.os.Build;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import tr.xip.wanikani.R;
import tr.xip.wanikani.managers.PrefManager;
/**
* Created by xihsa_000 on 4/4/14.
*/
public class SettingsActivity exte... | package tr.xip.wanikani.settings;
import android.os.Build;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import tr.xip.wanikani.R;
import tr.xip.wanikani.managers.PrefManager;
/**
* Created by xihsa_000 on 4/4/14.
*/
public class SettingsActivity exte... | Mask the API key shown in settings | Mask the API key shown in settings
| Java | bsd-2-clause | gkathir15/WaniKani-for-Android,0359xiaodong/WaniKani-for-Android,0359xiaodong/WaniKani-for-Android,leerduo/WaniKani-for-Android,leerduo/WaniKani-for-Android,dhamofficial/WaniKani-for-Android,msdgwzhy6/WaniKani-for-Android,jiangzhonghui/WaniKani-for-Android,dhamofficial/WaniKani-for-Android,gkathir15/WaniKani-for-Androi... |
3632ad692110b71b656e0e1e98781ab68ac3a277 | src/main/java/com/darwinsys/clientware/UrlJaxRsClient.java | src/main/java/com/darwinsys/clientware/UrlJaxRsClient.java | package com.darwinsys.clientware;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* A JAX-RS client NOT using the JAX-RS Client API
* In fact, not using anything except Core Java APIs.
*/
public cla... | package com.darwinsys.clientware;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* A JAX-RS client NOT using the JAX-RS Client API
* In fact, not using anything except Core Java APIs.
*/
public cla... | Clarify client code a bit | Clarify client code a bit | Java | bsd-2-clause | IanDarwin/crs577add,IanDarwin/crs577add,IanDarwin/crs577add,IanDarwin/crs577add |
14a9523c57f79e1e0b4ebf00a58fc21b34a15e38 | src/org/callimachusproject/xslt/XSLTransformerFactory.java | src/org/callimachusproject/xslt/XSLTransformerFactory.java | package org.callimachusproject.xslt;
import java.io.InputStream;
import java.io.Reader;
import javax.xml.transform.TransformerFactory;
public class XSLTransformerFactory {
private static final XSLTransformerFactory instance = new XSLTransformerFactory();
public static XSLTransformerFactory getInstance() {
retur... | package org.callimachusproject.xslt;
import java.io.InputStream;
import java.io.Reader;
import javax.xml.transform.TransformerFactory;
public class XSLTransformerFactory {
private static final XSLTransformerFactory instance = new XSLTransformerFactory();
public static XSLTransformerFactory getInstance() {
retur... | Add identify transformer factory method | Add identify transformer factory method
| Java | apache-2.0 | 3-Round-Stones/callimachus,Thellmann/callimachus,edwardsph/callimachus,edwardsph/callimachus,edwardsph/callimachus,jimmccusker/callimachus,3-Round-Stones/callimachus,3-Round-Stones/callimachus,edwardsph/callimachus,jimmccusker/callimachus,jimmccusker/callimachus,Thellmann/callimachus,jimmccusker/callimachus,edwardsph/c... |
d5d55b7a6b9bf1d94946dba5663d9c54a3d00ee5 | app/src/main/java/inaka/com/tinytask/TinyTask.java | app/src/main/java/inaka/com/tinytask/TinyTask.java | package inaka.com.tinytask;
public class TinyTask<T> {
private static TinyTask instance = null;
private GenericTask<T> genericTask;
private Something<T> something;
private DoThis<T> callback;
private TinyTask(Something<T> something) {
this.something = something;
}
private TinyTas... | package inaka.com.tinytask;
public class TinyTask<T> {
private static TinyTask instance = null;
private GenericTask<T> genericTask;
private Something<T> something;
private DoThis<T> callback;
private TinyTask(Something<T> something) {
this.something = something;
}
private TinyTas... | Make AsyncTasks parallel on API 11+ | Make AsyncTasks parallel on API 11+
According to the examination of the source code to AsyncTask, on pre-Honeycomb all of the AsyncTasks were executed on a thread pool with a minimum of 5 threads and a maximum of 128. But on API 11+, it won't be executed on a thread pool unless you call executeOnExecutor() with the co... | Java | apache-2.0 | inaka/TinyTask |
ecc801ca01277dc04a221fda414d8523764a9fcd | src/test/java/com/jentfoo/classloading/LoadClassesTest.java | src/test/java/com/jentfoo/classloading/LoadClassesTest.java | package com.jentfoo.classloading;
import org.junit.Test;
import org.threadly.util.Clock;
public class LoadClassesTest {
@Test
public void loadClasses() throws ClassNotFoundException, InstantiationException, IllegalAccessException {
long start = Clock.accurateForwardProgressingMillis();
for (int i = 0; i <... | package com.jentfoo.classloading;
import org.junit.Test;
import org.threadly.util.Clock;
public class LoadClassesTest {
@Test
public void loadClasses() throws ClassNotFoundException, InstantiationException, IllegalAccessException {
long start = Clock.accurateForwardProgressingMillis();
for (int i = 0; i <... | Use ClassLoader rather than Class.forName | Use ClassLoader rather than Class.forName
Still does not reproduce the issue :-/
| Java | mpl-2.0 | jentfoo/classLoadingTest |
6508438c089c731fc898b071d021f5d59f80d275 | src/main/java/foodtruck/server/TweetCacheUpdateServlet.java | src/main/java/foodtruck/server/TweetCacheUpdateServlet.java | package foodtruck.server;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import foodtruck.twitt... | package foodtruck.server;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.inject.In... | Fix it so we update the location of the twitter cached trucks even if there is a failure updating the cache. | Fix it so we update the location of the twitter cached trucks even if there is a failure updating the cache.
| Java | mit | aviolette/foodtrucklocator,aviolette/foodtrucklocator,aviolette/foodtrucklocator,aviolette/foodtrucklocator |
2155fe7722672c6c756db0c4b08134791be98549 | src/main/java/seedu/address/logic/commands/UndoCommand.java | src/main/java/seedu/address/logic/commands/UndoCommand.java | package seedu.address.logic.commands;
public class UndoCommand extends Command {
public static final String COMMAND_WORD = "undo";
public static final String MESSAGE_USAGE = COMMAND_WORD;
public static final String MESSAGE_SUCCESS = "Successfully undo previous change";
public static final String MESSA... | package seedu.address.logic.commands;
import seedu.address.model.TaskManager;
public class UndoCommand extends Command {
public static final String COMMAND_WORD = "undo";
public static final String MESSAGE_USAGE = COMMAND_WORD;
public static final String MESSAGE_SUCCESS = "Successfully undo previous chan... | Modify undo command to support redo command | Modify undo command to support redo command
| Java | mit | CS2103JAN2017-W13-B2/main,CS2103JAN2017-W13-B2/main |
a9092a0b5e42d7e306d197a8b638c7186646a97a | android/app/src/main/java/com/rnscm/SecretConfigManager.java | android/app/src/main/java/com/rnscm/SecretConfigManager.java | package com.rnscm;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.Callback... | package com.rnscm;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.Callback... | Fix all errors in java code | Fix all errors in java code
| Java | epl-1.0 | savelichalex/friends-teach,savelichalex/friends-teach,savelichalex/friends-teach,savelichalex/friends-teach |
469e3a65e8e2d570f77bba4ad74472b06f5f0dc0 | openstack-api/src/main/java/org/openstack/client/internals/OpenstackSerializationModule.java | openstack-api/src/main/java/org/openstack/client/internals/OpenstackSerializationModule.java | package org.openstack.client.internals;
import org.codehaus.jackson.Version;
import org.codehaus.jackson.map.module.SimpleModule;
import org.openstack.model.compute.Addresses;
import org.openstack.model.compute.SecurityGroup;
import org.openstack.model.compute.SecurityGroupList;
import org.openstack.model.compute.Serv... | package org.openstack.client.internals;
import org.codehaus.jackson.Version;
import org.codehaus.jackson.map.module.SimpleModule;
import org.openstack.model.compute.Addresses;
import org.openstack.model.compute.BadRequest;
import org.openstack.model.compute.SecurityGroup;
import org.openstack.model.compute.SecurityGro... | Use the smart JSON serializer for BadRequest | Use the smart JSON serializer for BadRequest
| Java | apache-2.0 | krishnabrucelee/OpenStack-Nova-Client,zhimin711/openstack-java-sdk,krishnabrucelee/Cloud-stack-Api,krishnabrucelee/Cinder-Krishna,CIETstudents/Cinder-Krishna-Mona,krishnabrucelee/ceilometerModel-Krishna,krishnabrucelee/ceilometerModel-Krishna,woorea/openstack-java-sdk,CIETstudents/Cinder-Krishna-Mona,CIETstudents/Swift... |
ee960cafaa546a31b3682368c5513d5352770091 | src/test/java/org/dita/dost/EndToEndTest.java | src/test/java/org/dita/dost/EndToEndTest.java | package org.dita.dost;
import org.junit.Test;
import java.io.File;
import java.nio.file.Paths;
import static org.dita.dost.AbstractIntegrationTest.Transtype.*;
public class EndToEndTest extends AbstractIntegrationTest {
@Test
public void xhtml() throws Throwable {
builder().name("e2e")
... | package org.dita.dost;
import org.junit.Ignore;
import org.junit.Test;
import java.io.File;
import java.nio.file.Paths;
import static org.dita.dost.AbstractIntegrationTest.Transtype.*;
public class EndToEndTest extends AbstractIntegrationTest {
@Test
public void xhtml() throws Throwable {
builder()... | Add import of Ignore for ignored HTMLHelp test | Add import of Ignore for ignored HTMLHelp test | Java | apache-2.0 | shaneataylor/dita-ot,shaneataylor/dita-ot,dita-ot/dita-ot,infotexture/dita-ot,dita-ot/dita-ot,dita-ot/dita-ot,infotexture/dita-ot,infotexture/dita-ot,drmacro/dita-ot,drmacro/dita-ot,dita-ot/dita-ot,drmacro/dita-ot,shaneataylor/dita-ot,infotexture/dita-ot,infotexture/dita-ot,drmacro/dita-ot,dita-ot/dita-ot,drmacro/dita-... |
6b7102f6fa369ebe8e4e4b471284834656a1fed4 | Wrapping/Java/vtk/rendering/vtkAbstractEventInterceptor.java | Wrapping/Java/vtk/rendering/vtkAbstractEventInterceptor.java | package vtk.rendering;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.event.MouseWheelEvent;
/**
* This class implement vtkEventInterceptor with no event interception ... | package vtk.rendering;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.event.MouseWheelEvent;
/**
* This class implement vtkEventInterceptor with no event interception ... | Remove @Override annotation to prevent compilation issue on old Java compiler | Remove @Override annotation to prevent compilation issue on old Java compiler
Change-Id: I9ed0e8423f5ae028294d773799979865e0dd4e8f
| Java | bsd-3-clause | berendkleinhaneveld/VTK,mspark93/VTK,berendkleinhaneveld/VTK,gram526/VTK,mspark93/VTK,candy7393/VTK,mspark93/VTK,berendkleinhaneveld/VTK,demarle/VTK,SimVascular/VTK,mspark93/VTK,sumedhasingla/VTK,hendradarwin/VTK,jmerkow/VTK,sumedhasingla/VTK,mspark93/VTK,hendradarwin/VTK,gram526/VTK,candy7393/VTK,sumedhasingla/VTK,joh... |
c7138b284fa5ebf80f9c6bf6a381023716780473 | retrofit/src/main/java/retrofit/http/PATCH.java | retrofit/src/main/java/retrofit/http/PATCH.java | /*
* Copyright (C) 2013 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /*
* Copyright (C) 2013 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Add @Documented annotation for the new REST annotation. | Add @Documented annotation for the new REST annotation.
| Java | apache-2.0 | AmauryEsparza/retrofit,Sellegit/retrofit,cnso/retrofit,pmk2429/retrofit,messipuyol/retrofit,pitatensai/retrofit,promeG/retrofit,WiiliamChik/retrofit,Jackear/retrofit,vabym8/NotRetrofit,bestwpw/retrofit,juliendn/retrofit,viacheslavokolitiy/retrofit,Appstrakt/retrofit,lgx0955/retrofit,checkdroid/retrofit,xiaozuzu/retrofi... |
8f0f19c41877d2d6585acd3752d4c928358d9726 | src/common/RequestType.java | src/common/RequestType.java | package common;
public enum RequestType {
MOVE,
ATTACK,
HARVEST,
LOG_IN,
LOG_OUT,
REGISTER,
CRAFT,
TILE;
static final long serialVersionUID = 12142322;
}
| package common;
public enum RequestType {
MOVE,
ATTACK,
HARVEST,
LOG_IN,
LOG_OUT,
REGISTER,
CRAFT,
TILE,
UPDATE_TILE,
CONFIRM;
static final long serialVersionUID = 12142322;
}
| Add types like Update_tile , confirm | Add types like Update_tile , confirm | Java | agpl-3.0 | The-J-Person/MMOCS-server |
816fe77f270cae9b399bde35aedbd0320193c55a | src/main/java/com/Acrobot/ChestShop/Plugins/WorldGuardFlags.java | src/main/java/com/Acrobot/ChestShop/Plugins/WorldGuardFlags.java | package com.Acrobot.ChestShop.Plugins;
import com.sk89q.worldguard.protection.flags.Flags;
import com.sk89q.worldguard.protection.flags.StateFlag;
import com.sk89q.worldguard.protection.flags.registry.FlagConflictException;
/**
* @author Brokkonaut
*/
public class WorldGuardFlags {
public static final StateFlag ... | package com.Acrobot.ChestShop.Plugins;
import com.sk89q.worldguard.WorldGuard;
import com.sk89q.worldguard.protection.flags.Flags;
import com.sk89q.worldguard.protection.flags.StateFlag;
import com.sk89q.worldguard.protection.flags.registry.FlagConflictException;
/**
* @author Brokkonaut
*/
public class WorldGuardFl... | Use registry to register WorldGuard flags | Use registry to register WorldGuard flags
| Java | lgpl-2.1 | ChestShop-authors/ChestShop-3,ChestShop-authors/ChestShop-3 |
a80d47e9153939ed44799e7e0d9c470df3a45b3c | src/main/java/se/kits/gakusei/config/UserDetailsServiceImpl.java | src/main/java/se/kits/gakusei/config/UserDetailsServiceImpl.java | package se.kits.gakusei.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springf... | package se.kits.gakusei.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springf... | Fix exception when trying to login with non-existing user | Fix exception when trying to login with non-existing user
| Java | mit | kits-ab/gakusei,kits-ab/gakusei,kits-ab/gakusei |
34c6c66b706816546c68fcf842ece81299765dc4 | Primes/src/primes/bramble/SlaveNodeRunner.java | Primes/src/primes/bramble/SlaveNodeRunner.java | package primes.bramble;
import java.io.Serializable;
import java.util.ArrayList;
import primes.PrimeGenerator;
import bramble.node.slave.ISlaveNodeRunner;
import bramble.node.slave.SlaveNode;
/**
* This is an example of how a SlaveNode can be run.
*
* This class is responsible for passing a job from the
* API... | package primes.bramble;
import java.io.Serializable;
import java.util.ArrayList;
import primes.PrimeGenerator;
import bramble.node.slave.ISlaveNodeRunner;
import bramble.node.slave.SlaveNode;
/**
* This is an example of how a SlaveNode can be run.
*
* This class is responsible for passing a job from the
* API... | Refactor static variables out of slave node runner | Refactor static variables out of slave node runner
| Java | apache-2.0 | Tom-Willemsen/PicoBramble,Tom-Willemsen/PicoBramble,Tom-Willemsen/PicoBramble |
9aeaca458c63d27d21d2adab880385087dab0d53 | baselibrary/src/main/java/com/kogimobile/android/baselibrary/app/busevents/EventProgressDialog.java | baselibrary/src/main/java/com/kogimobile/android/baselibrary/app/busevents/EventProgressDialog.java | package com.kogimobile.android.baselibrary.app.busevents;
/**
* @author Julian Cardona on 7/11/14.
*/
public class EventProgressDialog {
public static Builder getBuilder() {
return new Builder();
}
private boolean show = false;
private String progressDialogMessage = "";
private EventPr... | package com.kogimobile.android.baselibrary.app.busevents;
/**
* @author Julian Cardona on 7/11/14.
*/
public class EventProgressDialog {
public static Builder getBuilder() {
return new Builder();
}
private boolean show = true;
private String progressDialogMessage = "";
private EventPro... | Add dismiss method for progress dialog on builder | Add dismiss method for progress dialog on builder
| Java | apache-2.0 | KogiMobileSAS/AndroidBaseLibrary |
77cff95557fd3752ffd1c0d4ceb97b5d31a411f5 | core/src/test/java/org/eclipse/gemini/blueprint/internal/service/collection/threading/BaseThreadingTest.java | core/src/test/java/org/eclipse/gemini/blueprint/internal/service/collection/threading/BaseThreadingTest.java | /******************************************************************************
* Copyright (c) 2006, 2010 VMware Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distr... | /******************************************************************************
* Copyright (c) 2006, 2010 VMware Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distr... | Support for junit 4.7+ maven test runner, previously this test would not have been run and without this change it receives a No runnable methods found error. | Support for junit 4.7+ maven test runner, previously this test would not have been run and without this change it receives a No runnable methods found error.
| Java | apache-2.0 | glyn/Gemini-Blueprint |
9ad8daf3d020b4237edad33cb3c882bbdd977ebd | findbugs/test/OpenStream.java | findbugs/test/OpenStream.java | import java.io.*;
public class OpenStream {
public static void main(String[] argv) throws Exception {
FileInputStream in = null;
try {
in = new FileInputStream(argv[0]);
} finally {
// Not guaranteed to be closed here!
if (Boolean.getBoolean("inscrutable"))
in.close();
}
FileInputStream in2 =... | import java.io.*;
public class OpenStream {
public static void main(String[] argv) throws Exception {
FileInputStream in = null;
try {
in = new FileInputStream(argv[0]);
} finally {
// Not guaranteed to be closed here!
if (Boolean.getBoolean("inscrutable"))
in.close();
}
FileInputStream in2 =... | Add test case for wrapping a stream passed as a param | Add test case for wrapping a stream passed as a param
git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@2601 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
| Java | lgpl-2.1 | KengoTODA/spotbugs,johnscancella/spotbugs,sewe/spotbugs,sewe/spotbugs,spotbugs/spotbugs,spotbugs/spotbugs,sewe/spotbugs,sewe/spotbugs,spotbugs/spotbugs,KengoTODA/spotbugs,KengoTODA/spotbugs,johnscancella/spotbugs,johnscancella/spotbugs,KengoTODA/spotbugs,spotbugs/spotbugs,spotbugs/spotbugs,johnscancella/spotbugs |
b4f90738ca4436ae7c3ece4562530c4318b4c7c7 | src/main/java/com/github/ferstl/depgraph/NodeRenderers.java | src/main/java/com/github/ferstl/depgraph/NodeRenderers.java | package com.github.ferstl.depgraph;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.shared.dependency.graph.DependencyNode;
import com.github.ferstl.depgraph.dot.NodeRenderer;
import com.google.common.base.Joiner;
enum NodeRenderers implements NodeRenderer {
ARTIFACT_ID_LABEL {
@Override
... | package com.github.ferstl.depgraph;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.shared.dependency.graph.DependencyNode;
import com.github.ferstl.depgraph.dot.NodeRenderer;
import com.google.common.base.Joiner;
enum NodeRenderers implements NodeRenderer {
ARTIFACT_ID_LABEL {
@Override
... | Add null check for scope | Add null check for scope | Java | apache-2.0 | ferstl/depgraph-maven-plugin |
7fb034bbd3f65c97f9d5c27042acf22e8814390b | src/main/java/com/google/sps/data/Listing.java | src/main/java/com/google/sps/data/Listing.java | package com.google.sps.data;
/** Listing object with the specified attributes returned from the places API **/
public class Listing {
private String name;
private MapLocation mapLocation;
private double rating;
private String image;
private String url;
private String businessType;
/**
* Cr... | package com.google.sps.data;
import com.google.maps.model.Photo;
/** Listing object with the specified attributes returned from the places API **/
public class Listing {
private String name;
private MapLocation mapLocation;
private double rating;
private Photo photos[];
private String businessTypes... | Change parameters for places api output | Change parameters for places api output
| Java | apache-2.0 | googleinterns/SmallCity,googleinterns/SmallCity,googleinterns/SmallCity |
86ed935221b79680e8aca7a5e561fed6d89ed084 | yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/AbstractModuleStringIdentityrefCodec.java | yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/AbstractModuleStringIdentityrefCodec.java | /*
* Copyright (c) 2014 Cisco Systems, 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 available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.... | /*
* Copyright (c) 2014 Cisco Systems, 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 available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.... | Validate parsed QName to identity | Validate parsed QName to identity
We need to validate if parsed QName refers to an existing identity,
this fixes up unused AbstractModuleStringIdentityrefCodec to check
Module references.
Change-Id: Iebbb43681e9b384c43bd81607d169294373bdd72
JIRA: YANGTOOLS-846
Signed-off-by: Robert Varga <91ae5aa8c7a9f7e57b701db766e2... | Java | epl-1.0 | opendaylight/yangtools,opendaylight/yangtools |
d0a3826e8c554efae239e18653f006f2053b33f1 | app/src/main/java/com/github/mobile/android/repo/OrgViewHolder.java | app/src/main/java/com/github/mobile/android/repo/OrgViewHolder.java | package com.github.mobile.android.repo;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.github.mobile.android.R.id;
import com.github.mobile.android.util.AvatarHelper;
import com.madgag.android.listviews.ViewHolder;
import org.eclipse.egit.github.core.User;
/**
... | package com.github.mobile.android.repo;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.github.mobile.android.R.id;
import com.github.mobile.android.util.AvatarHelper;
import com.madgag.android.listviews.ViewHolder;
import org.eclipse.egit.github.core.User;
/**
... | Remove unneeded clearing of image view background drawable | Remove unneeded clearing of image view background drawable | Java | apache-2.0 | nvoron23/android,Meisolsson/PocketHub,tsdl2013/android,generalzou/PocketHub,gvaish/PocketHub,arcivanov/ForkHub,jonan/ForkHub,PeterDaveHello/PocketHub,qiancy/PocketHub,xen0n/android,theiven70/PocketHub,forkhubs/android,KingLiuDao/android,yongjhih/PocketHub,supercocoa/PocketHub,wubin28/android,common2015/PocketHub,PKRoma... |
49e2b7927ad6c5e11f9d06c630b471a76c4ef158 | src/main/java/com/google/cloud/trace/sdk/ReflectionUtils.java | src/main/java/com/google/cloud/trace/sdk/ReflectionUtils.java | // Copyright 2014 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | // Copyright 2014 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | Fix bogus Javadoc comment that referred to TraceWriter. | Fix bogus Javadoc comment that referred to TraceWriter.
Change-Id: I8c956fa7d32fa1ace147493e20c4a0f26d970dee
| Java | apache-2.0 | GoogleCloudPlatform/cloud-trace-java,kevinmdavis/cloud-trace-java,erikmcc/cloud-trace-java |
63ef00b976e875ce0e2f900698493a3f01db90a7 | vm/src/org/mozartoz/truffle/Main.java | vm/src/org/mozartoz/truffle/Main.java | package org.mozartoz.truffle;
import org.mozartoz.truffle.translator.Loader;
import com.oracle.truffle.api.source.Source;
public class Main {
private static final String BASE_TESTS = Loader.MOZART2_DIR + "/platform-test/base/";
private static final String[] PASSING_TESTS = {
BASE_TESTS + "int.oz",
BASE_TES... | package org.mozartoz.truffle;
import org.mozartoz.truffle.translator.Loader;
import com.oracle.truffle.api.source.Source;
public class Main {
private static final String BASE_TESTS = Loader.MOZART2_DIR + "/platform-test/base/";
private static final String TEST_RUNNER = Loader.MOZART2_DIR + "/platform-test/simple_... | Use simple_runner from the platform-test dir | Use simple_runner from the platform-test dir
| Java | bsd-2-clause | eregon/mozart-graal,eregon/mozart-graal,eregon/mozart-graal,mistasse/mozart-graal,mistasse/mozart-graal,eregon/mozart-graal,eregon/mozart-graal,mistasse/mozart-graal,eregon/mozart-graal,mistasse/mozart-graal,mistasse/mozart-graal |
21da557557a0453797be8257d2fa9e38379459c7 | android/app/src/main/java/fi/haippirinki/l2p/MainActivity.java | android/app/src/main/java/fi/haippirinki/l2p/MainActivity.java | package fi.haippirinki.l2p;
public class MainActivity extends android.app.NativeActivity {
}
| package fi.haippirinki.l2p;
import android.os.Build;
import android.view.View;
public class MainActivity extends android.app.NativeActivity {
protected void onCreate(android.os.Bundle savedInstanceState) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
getWindow().getDecorView().setSy... | Set fullscreen flags if on api 19 or newer. | Set fullscreen flags if on api 19 or newer.
| Java | mit | Haippirinki/l2p,Haippirinki/l2p,Haippirinki/l2p,Haippirinki/l2p |
cf9c4b9eca8c0ad91a12dfaa209903ed9b528061 | d03/d03s01/d03s01e01-conditional-annotations/src/main/java/net/safedata/springboot/training/d03/s01/ConditionalBeansConfig.java | d03/d03s01/d03s01e01-conditional-annotations/src/main/java/net/safedata/springboot/training/d03/s01/ConditionalBeansConfig.java | package net.safedata.springboot.training.d03.s01;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.embedded.EmbeddedServletContainer;
import org.springframework.boot.context... | package net.safedata.springboot.training.d03.s01;
import org.eclipse.jetty.server.Server;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.embedded.EmbeddedServletContainer;... | Split the conditional annotations on new lines | [improve] Split the conditional annotations on new lines
| Java | apache-2.0 | bogdansolga/spring-boot-training,bogdansolga/spring-boot-training |
30373694f22130e6de5e9359adb3076688d8f59b | jmespath-core/src/main/java/io/burt/jmespath/function/ToArrayFunction.java | jmespath-core/src/main/java/io/burt/jmespath/function/ToArrayFunction.java | package io.burt.jmespath.function;
import java.util.List;
import java.util.Arrays;
import io.burt.jmespath.Adapter;
import io.burt.jmespath.JmesPathType;
public class ToArrayFunction extends BaseFunction {
public ToArrayFunction() {
super(ArgumentConstraints.anyValue());
}
@Override
protected <T> T call... | package io.burt.jmespath.function;
import java.util.Collections;
import java.util.List;
import java.util.Arrays;
import io.burt.jmespath.Adapter;
import io.burt.jmespath.JmesPathType;
public class ToArrayFunction extends BaseFunction {
public ToArrayFunction() {
super(ArgumentConstraints.anyValue());
}
@O... | Use the right kind of list creating method to show the correct intent | Use the right kind of list creating method to show the correct intent | Java | bsd-3-clause | burtcorp/jmespath-java |
839395dc8995563a291e642271cd428e8f4348d7 | src/piano/TonePlayer.java | src/piano/TonePlayer.java | package piano;
import javax.microedition.media.Manager;
import javax.microedition.media.MediaException;
/**
* Tone player.
*
* @author Wincent Balin
*/
public class TonePlayer implements NotePlayer
{
public static final int TONE_DURATION = 333;
private PianoModel model;
/**
* Constructor.
... | package piano;
import javax.microedition.media.Manager;
import javax.microedition.media.MediaException;
/**
* Tone player.
*
* @author Wincent Balin
*/
public class TonePlayer implements NotePlayer
{
public static final int TONE_DURATION = 333;
private PianoModel model;
/**
* Constructor.
... | Adjust velocity from MIDI to tone | Adjust velocity from MIDI to tone
| Java | mit | wincentbalin/Piano |
c86a84d3beed29c4f8389b1172fde95f72d2d6ed | src/main/java/org/junit/experimental/categories/CategoryFilterFactory.java | src/main/java/org/junit/experimental/categories/CategoryFilterFactory.java | package org.junit.experimental.categories;
import java.util.ArrayList;
import java.util.List;
import org.junit.internal.Classes;
import org.junit.runner.FilterFactory;
import org.junit.runner.FilterFactoryParams;
import org.junit.runner.manipulation.Filter;
/**
* Implementation of FilterFactory for Categ... | package org.junit.experimental.categories;
import java.util.ArrayList;
import java.util.List;
import org.junit.internal.Classes;
import org.junit.runner.FilterFactory;
import org.junit.runner.FilterFactoryParams;
import org.junit.runner.manipulation.Filter;
/**
* Implementation of FilterFactory for Categ... | Make compilable under Java 1.5. | Make compilable under Java 1.5.
| Java | epl-1.0 | alb-i986/junit,UnimibSoftEngCourse1516/lab2-es3-s.renzo,onesfreedom/junit,janocat/junit,larrychen1990/junit,UnimibSoftEngCourse1516/lab2-es3-m.scarpone,UnimibSoftEngCourse1516/lab2-es3-f.cirelli1,UnimibSoftEngCourse1516/lab2-es3-f.spinardi,remus32/junit,Thothius/junit,mnk/junit,jhfjhfj1/junit,yusuke/junit,UnimibSoftEng... |
a0ee7a9ac7cb8410f8ac2db5f4ac3cf1f9b9d932 | app/src/main/java/com/example/mwismer/mobproto_finalproject/MyFragment.java | app/src/main/java/com/example/mwismer/mobproto_finalproject/MyFragment.java | package com.example.mwismer.mobproto_finalproject;
import android.app.Fragment;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Lo... | package com.example.mwismer.mobproto_finalproject;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* Created by mwismer on 10/23/14.
*/
public class MyFragment extends Fragment {
private String TAG = "MyFragm... | Remove unused imports from MyActivity | Remove unused imports from MyActivity
| Java | mit | MattWis/MobProto-FinalProject |
f945b90f9106bc6992d38ced8c581819c31f877d | src/main/java/Problem0004.java | src/main/java/Problem0004.java | /**
* A palindromic number reads the same both ways.
* The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.
*
* Find the largest palindrome made from the product of two 3-digit numbers.
*
* @author David Clutter
*/
public class Problem0004 {
public static void main(final St... | import java.util.stream.LongStream;
/**
* A palindromic number reads the same both ways.
* The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.
* <p>
* Find the largest palindrome made from the product of two 3-digit numbers.
*
* @author David Clutter
*/
public class Problem000... | Update problem0004 to use streams | Update problem0004 to use streams
| Java | apache-2.0 | cluttered-code/euler-project |
b15e9f83aa897299dd0ae18d4dc4cfdbf838c5d3 | test/org/intellij/plugins/hil/codeinsight/AddVariableTest.java | test/org/intellij/plugins/hil/codeinsight/AddVariableTest.java | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Fix tests compile compatibility with 2017.1.2 | Fix tests compile compatibility with 2017.1.2
| Java | apache-2.0 | VladRassokhin/intellij-hcl,VladRassokhin/intellij-hcl,VladRassokhin/intellij-hcl,VladRassokhin/intellij-hcl,VladRassokhin/intellij-hcl |
aece5e1eb7435d6ce0b5c667cb755aeb3c742084 | app/src/main/java/de/bowstreet/testandroidapp/MainActivity.java | app/src/main/java/de/bowstreet/testandroidapp/MainActivity.java | package de.bowstreet.testandroidapp;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.microsoft.azure.mobile.MobileCenter;
import com.microsoft.azure.mobile.analytics.Analytics;
import com.microsoft.azure.mobile.crashes.Crash... | package de.bowstreet.testandroidapp;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.microsoft.azure.mobile.MobileCenter;
import com.microsoft.azure.mobile.analytics.Analytics;
import com.microsoft.azure.mobile.crashes.Crash... | Use app secret for prod app | Use app secret for prod app
| Java | mit | ranterle/TestAndroidApp |
0ae5bbf6d334033dc9408c1ecd7622a3e94bbf23 | src/main/java/darkevilmac/movingworld/asm/mixin/core/entity/MixinEntity.java | src/main/java/darkevilmac/movingworld/asm/mixin/core/entity/MixinEntity.java | package darkevilmac.movingworld.asm.mixin.core.entity;
import net.minecraft.entity.Entity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
/**
* Override... | package darkevilmac.movingworld.asm.mixin.core.entity;
import net.minecraft.entity.Entity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import or... | Add nearby ship detection to moveEntity | Add nearby ship detection to moveEntity
| Java | apache-2.0 | elytra/MovingWorld |
094a6f9afeaaf2e30ad0a22dd72a1504ada37c8e | core/src/main/java/org/bouncycastle/math/ec/FpNafMultiplier.java | core/src/main/java/org/bouncycastle/math/ec/FpNafMultiplier.java | package org.bouncycastle.math.ec;
import java.math.BigInteger;
/**
* Class implementing the NAF (Non-Adjacent Form) multiplication algorithm.
*/
public class FpNafMultiplier implements ECMultiplier
{
/**
* D.3.2 pg 101
* @see org.bouncycastle.math.ec.ECMultiplier#multiply(org.bouncycastle.math.ec.ECPo... | package org.bouncycastle.math.ec;
import java.math.BigInteger;
/**
* Class implementing the NAF (Non-Adjacent Form) multiplication algorithm.
*/
public class FpNafMultiplier implements ECMultiplier
{
/**
* D.3.2 pg 101
* @see org.bouncycastle.math.ec.ECMultiplier#multiply(org.bouncycastle.math.ec.ECPo... | Rewrite using WNafUtil.generateNaf instead of the inline Naf generation | Rewrite using WNafUtil.generateNaf instead of the inline Naf generation | Java | mit | bcgit/bc-java,FAU-Inf2/spongycastle,open-keychain/spongycastle,Skywalker-11/spongycastle,sonork/spongycastle,sergeypayu/bc-java,iseki-masaya/spongycastle,sonork/spongycastle,open-keychain/spongycastle,Skywalker-11/spongycastle,onessimofalconi/bc-java,isghe/bc-java,sonork/spongycastle,savichris/spongycastle,Skywalker-11... |
c40ce48a84bba992d9a61872c1399b78145930de | org.eclipse.ec4e/src/main/java/org/eclipse/ec4e/internal/resource/ContainerResourcePath.java | org.eclipse.ec4e/src/main/java/org/eclipse/ec4e/internal/resource/ContainerResourcePath.java | package org.eclipse.ec4e.internal.resource;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.Path;
import org.eclipse.ec4j.core.ResourcePaths.ResourcePath;
import org.eclipse.ec4j.core.Resources.Resource;... | package org.eclipse.ec4e.internal.resource;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.Path;
import org.eclipse.ec4j.core.ResourcePaths.ResourcePath;
import org.eclipse.ec4j.core.Resources.Resource;... | Stop the search of '.editorconfig' files in the parent container | Stop the search of '.editorconfig' files in the parent container | Java | epl-1.0 | angelozerr/ec4e,angelozerr/ec4e |
0d29ec44adb1c5ee7d2b3c5452efca3c980ff801 | jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/SynchronousEventListener.java | jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/SynchronousEventListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Duplicate entries in the index - javadoc | JCR-2357: Duplicate entries in the index
- javadoc
git-svn-id: 02b679d096242155780e1604e997947d154ee04a@828343 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | afilimonov/jackrabbit,tripodsan/jackrabbit,bartosz-grabski/jackrabbit,bartosz-grabski/jackrabbit,kigsmtua/jackrabbit,SylvesterAbreu/jackrabbit,kigsmtua/jackrabbit,sdmcraft/jackrabbit,tripodsan/jackrabbit,Kast0rTr0y/jackrabbit,sdmcraft/jackrabbit,afilimonov/jackrabbit,tripodsan/jackrabbit,Overseas-Student-Living/jackrab... |
ed5f20bb46ccd9571d1abb965ebc2792e1d0e5db | src/main/java/com/codeski/nbt/Main.java | src/main/java/com/codeski/nbt/Main.java | package com.codeski.nbt;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
public class Main
{
public static void main(String[] args) throws FileNotFoundException, IOException
{
File f = new File(args[0]);
System.out.println("Start reading " + f.getAbsolutePath() + "...");
... | package com.codeski.nbt;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import com.codeski.nbt.tags.NBTCompound;
public class Main
{
public static void main(String[] args) throws FileNotFoundException, IOException
{
File f = new File(args[0]);
System.out.println("Start r... | Clean up main class and show JSON and XML output | Clean up main class and show JSON and XML output | Java | mit | Codeski/NBT |
2b407984522a9734c1d8d9ff20727b51184c33db | src/main/java/hello/config/Hateoas.java | src/main/java/hello/config/Hateoas.java | package hello.config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.rest.core.config.RepositoryRestConfiguration;
import org.springframework.data.rest.webmvc.confi... | package hello.config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.rest.core.config.RepositoryRestConfiguration;
import org.springframework.data.rest.webmvc.confi... | Fix deprecated RepositoryRestConfigurerAdapter in the configs. | Fix deprecated RepositoryRestConfigurerAdapter in the configs.
| Java | bsd-3-clause | hainesr/mvc-dev,hainesr/mvc-dev |
d4e04f5ef925d8e168869a08dfa2e2ccc37a53ba | src/test/java/org/apache/commons/crypto/cipher/JceCipherTest.java | src/test/java/org/apache/commons/crypto/cipher/JceCipherTest.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Improve assertion message when test fails due to lack of JCE Unlimited Strength Jurisdiction Policy Files. Applied patch and changed @Before to @BeforeClass. | [CRYPTO-52] Improve assertion message when test fails due to lack of JCE
Unlimited Strength Jurisdiction Policy Files. Applied patch and changed
@Before to @BeforeClass. | Java | apache-2.0 | kexianda/commons-crypto,kexianda/commons-crypto,kexianda/commons-crypto,kexianda/commons-crypto |
d466f60ca66f476b0ff31100a8902361ec398bd4 | clients/unshaded/src/test/java/tachyon/client/ClientUtilsTest.java | clients/unshaded/src/test/java/tachyon/client/ClientUtilsTest.java | /*
* Licensed to the University of California, Berkeley under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may no... | /*
* Licensed to the University of California, Berkeley under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may no... | Update doc to reference method directly and defend against IDE refactors | [TACHYON-1559] Update doc to reference method directly and defend against IDE refactors
| Java | apache-2.0 | uronce-cc/alluxio,calvinjia/tachyon,madanadit/alluxio,riversand963/alluxio,Alluxio/alluxio,EvilMcJerkface/alluxio,PasaLab/tachyon,wwjiang007/alluxio,Reidddddd/alluxio,yuluo-ding/alluxio,wwjiang007/alluxio,aaudiber/alluxio,ChangerYoung/alluxio,maobaolong/alluxio,aaudiber/alluxio,bf8086/alluxio,ShailShah/alluxio,madanadi... |
46a0a6bd09df52e5674ac39ecc52ee9595cab274 | src/main/java/info/u_team/u_team_core/item/armor/ArmorSet.java | src/main/java/info/u_team/u_team_core/item/armor/ArmorSet.java | package info.u_team.u_team_core.item.armor;
import net.minecraftforge.fml.RegistryObject;
public class ArmorSet {
private final RegistryObject<UHelmetItem> helmet;
private final RegistryObject<UChestplateItem> chestplate;
private final RegistryObject<ULeggingsItem> leggings;
private final RegistryObject<UBootsI... | package info.u_team.u_team_core.item.armor;
import java.util.Iterator;
import com.google.common.collect.Iterators;
import net.minecraftforge.fml.RegistryObject;
public class ArmorSet implements Iterable<RegistryObject<? extends UArmorItem>> {
private final RegistryObject<UHelmetItem> helmet;
private final Regis... | Add iterator to the armor set for convenience | Add iterator to the armor set for convenience | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
67844dcd8412f0a1224c7817fe109cd4eff1e469 | src/main/java/com/agilemods/materiamuto/common/core/MMRecipes.java | src/main/java/com/agilemods/materiamuto/common/core/MMRecipes.java | package com.agilemods.materiamuto.common.core;
import com.agilemods.materiamuto.common.core.MMItems;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
public class MMRecipes {
public static void initialize() {... | package com.agilemods.materiamuto.common.core;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
public class MMRecipes {
public static void initialize() {
ItemStack dustLow = new ItemStack(MMItems.cov... | Make dust recipes actually give 40 dust | Make dust recipes actually give 40 dust
| Java | mit | AgileMods/MateriaMuto |
1ba5ab08c06ca1308522042e0aba44ebbf246100 | java/src/brlyman/TurboListener.java | java/src/brlyman/TurboListener.java | package brlyman;
import org.junit.runner.notification.Failure;
import org.junit.runner.notification.RunListener;
import java.util.*;
import org.junit.runner.Description;
import org.junit.runner.Result;
import brlyman.results.*;
import brlyman.results.processes.*;
public class TurboListener extends RunListener
{
... | package brlyman;
import org.junit.runner.notification.Failure;
import org.junit.runner.notification.RunListener;
import java.util.*;
import org.junit.runner.Description;
import org.junit.runner.Result;
import brlyman.results.*;
import brlyman.results.processes.*;
public class TurboListener extends RunListener
{
... | Add stacktrace to java test failures | Add stacktrace to java test failures
| Java | mit | BradLyman/ubuntu-setup,BradLyman/ubuntu-setup,BradLyman/ubuntu-setup,BradLyman/ubuntu-setup |
182ad8391e47d836c87620adff24988597f5c88c | operators/ex5/BarkingDogs.java | operators/ex5/BarkingDogs.java | class Dog {
String name, says;
}
class BarkingDogs {
public static void main(String[] args) {
Dog dog1 = new Dog();
dog1.name = "spot";
dog1.says = "Ruff!";
Dog dog2 = new Dog();
dog2.name = "scruffy";
dog2.says = "Wurf!";
System.out.println(dog1.name + ": " + dog1.says);
System.o... | class Dog {
String name, says;
}
class BarkingDogs {
public static void main(String[] args) {
Dog dog1 = new Dog();
dog1.name = "spot";
dog1.says = "Ruff!";
Dog dog2 = new Dog();
dog2.name = "scruffy";
dog2.says = "Wurf!";
Dog spot = new Dog();
spot.name = "spot";
spot.says = ... | Add exercise 6, test for comparison for all references | Add exercise 6, test for comparison for all references
| Java | mit | shonoru/obtuse-tatertot,shonoru/obtuse-tatertot,shonoru/obtuse-tatertot |
d5f630de73547c1167efa63fba5606457eacf203 | neumann/test/org/real2space/HogeTest.java | neumann/test/org/real2space/HogeTest.java | package org.real2space;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by sryosuke on 2016/10/09.
*/
public class HogeTest {
private Hoge hoge;
@Before
public void setUp() throws Exception {
System.out.println ("setup");
... | package org.real2space;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by sryosuke on 2016/10/09.
*/
public class HogeTest {
private Hoge hoge;
@Before
public void setUp() throws Exception {
System.out.println ("setup");
... | Test 01 - Constructing jUnit and traivis ci | Test 01 - Constructing jUnit and traivis ci
| Java | mit | RealTwo-Space/Neumann,RealTwo-Space/Neumann |
93a9aaf05ea75b0de01a87a2a305d8cc4ac4cc64 | src/main/java/hudson/plugins/copyProjectLink/CopyProjectAction.java | src/main/java/hudson/plugins/copyProjectLink/CopyProjectAction.java | package hudson.plugins.copyProjectLink;
import hudson.model.Action;
import hudson.model.AbstractProject;
import hudson.model.Hudson;
public class CopyProjectAction implements Action {
final private AbstractProject<?, ?> project;
public CopyProjectAction(AbstractProject project) {
this.project = project;
}
pu... | package hudson.plugins.copyProjectLink;
import hudson.model.Action;
import hudson.model.Item;
import hudson.model.ItemGroup;
import hudson.model.AbstractProject;
import hudson.model.Hudson;
import hudson.security.AccessControlled;
public class CopyProjectAction implements Action {
final private AbstractProject<?, ?... | Use static Item.CREATE rather than Item.CONFIGURE and check permission from the given container. | Use static Item.CREATE rather than Item.CONFIGURE and check permission
from the given container.
| Java | mit | jenkinsci/copy-project-link-plugin,vjuranek/copy-project-link |
bd1a83da0dc171773b574273f0aafd41047fc71e | src/main/java/io/specto/hoverfly/junit/api/model/ModeArguments.java | src/main/java/io/specto/hoverfly/junit/api/model/ModeArguments.java | package io.specto.hoverfly.junit.api.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ModeArguments {
private List<String> headersWhitelist;
public ModeArguments() {
}
public ModeArguments(List<String> header... | package io.specto.hoverfly.junit.api.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ModeArguments {
private List<S... | Fix unknown properties in hoverfly info view | Fix unknown properties in hoverfly info view
Former-commit-id: 8b13c7dee16d75cde6192a7c7df6cab4c57f978b | Java | apache-2.0 | SpectoLabs/hoverfly-java,SpectoLabs/hoverfly-java,SpectoLabs/hoverfly-java |
bef0c58b1fe46f7a77d96d97e6c79d1d20589a08 | src/main/java/com/siftscience/UnlabelResponse.java | src/main/java/com/siftscience/UnlabelResponse.java | package com.siftscience;
import okhttp3.Response;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import java.io.IOException;
public class UnlabelResponse extends SiftResponse {
UnlabelResponse(Response okResponse, FieldSet requestBody) throws IOException {
super(okResponse, reques... | package com.siftscience;
import okhttp3.Response;
import java.io.IOException;
public class UnlabelResponse extends SiftResponse {
UnlabelResponse(Response okResponse, FieldSet requestBody) throws IOException {
super(okResponse, requestBody);
}
/**
* This should never be called because the u... | Replace use of internal Sun API class | Replace use of internal Sun API class
| Java | mit | SiftScience/sift-java |
a42d8ef2a2635e3637974b61c4e7334c2faf141b | src/test/java/edu/chl/proton/model/FolderTest.java | src/test/java/edu/chl/proton/model/FolderTest.java | package edu.chl.proton.model;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
/**
* @author Stina Werme
* Created by stinawerme on 11/05/17.
*/
public class FolderTest {
@Test
public void removeFolderTest() {
Folder parent = new Folder("parent");
Folder child = new Fol... | package edu.chl.proton.model;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
/**
* @author Stina Werme
* Created by stinawerme on 11/05/17.
*/
public class FolderTest {
@Test
public void removeFolderTest() {
Folder parent = new Folder("parent");
Folder child = new Fol... | Add test for removeFile and removeFolder | Add test for removeFile and removeFolder
| Java | agpl-3.0 | Levis92/proton-text |
e543ea0aef789b74c68e616cdaad9aaec8551781 | src/main/java/jwebform/validation/Validator.java | src/main/java/jwebform/validation/Validator.java | package jwebform.validation;
import jwebform.validation.criteria.Criteria;
import jwebform.validation.criteria.MaxLength;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
/**
* Validator, that checks a field
*
* @author jochen
*
*/
public class Validat... | package jwebform.validation;
import jwebform.validation.criteria.Criteria;
import jwebform.validation.criteria.MaxLength;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
/**
* Validator, that checks a field
*
* @author jochen
*
*/
public class Validat... | Use internally an array for performance reasons | Use internally an array for performance reasons
| Java | mit | jochen777/jWebForm,jochen777/jWebForm |
413022ae357555a14d0abba4c450f72a8c296762 | src/main/java/module-info.java | src/main/java/module-info.java | open module easyfxml {
requires java.annotation;
requires javafx.controls;
requires javafx.fxml;
requires javafx.graphics;
requires spring.beans;
requires spring.boot;
requires spring.boot.autoconfigure;
requires spring.context;
requires spring.core;
requires slf4j.api;
r... | open module easyfxml {
requires java.annotation;
requires javafx.controls;
requires javafx.fxml;
requires javafx.graphics;
requires spring.beans;
requires spring.boot;
requires spring.boot.autoconfigure;
requires spring.context;
requires spring.core;
requires slf4j.api;
r... | Reduce span of ducktape for TestFX + JPMS | Reduce span of ducktape for TestFX + JPMS
| Java | apache-2.0 | Tristan971/EasyFXML,Tristan971/EasyFXML |
3e517630bd0dc29aca4678464bb77e502495832a | app/src/main/java/com/example/android/quakereport/SettingsActivity.java | app/src/main/java/com/example/android/quakereport/SettingsActivity.java | package com.example.android.quakereport;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
/**
* Created by Don on 6/6/2017.
*/
public class SettingsActivity extends AppCompatActivity {
@Override
... | package com.example.android.quakereport;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceFragment;
import android.preference.PreferenceManager;
import android.support.annotation.Nullable;
import android.support.v7.app.AppComp... | Add preference value on settings activity | Add preference value on settings activity
Allows for value of set preference to be visually seen from settings activity without going into specific setting
| Java | apache-2.0 | dnguyen22/QuakeReport |
0cf6f9be7e5af871c59dd6225cd7c4a5790711db | h2o-automl/src/main/java/ai/h2o/automl/targetencoding/BlendingParams.java | h2o-automl/src/main/java/ai/h2o/automl/targetencoding/BlendingParams.java | package ai.h2o.automl.targetencoding;
import water.Iced;
public class BlendingParams extends Iced<BlendingParams> {
private long k;
private long f;
public BlendingParams(long k, long f) {
this.k = k;
this.f = f;
}
public long getK() {
return k;
}
public long getF() {
return f;
}
} | package ai.h2o.automl.targetencoding;
import water.Iced;
public class BlendingParams extends Iced<BlendingParams> {
private double k;
private double f;
public BlendingParams(double k, double f) {
this.k = k;
this.f = f;
}
public double getK() {
return k;
}
public double getF() {
retur... | Change type of blending parameters from long to double. | PUBDEV-5378: Change type of blending parameters from long to double.
| Java | apache-2.0 | michalkurka/h2o-3,michalkurka/h2o-3,h2oai/h2o-3,michalkurka/h2o-3,h2oai/h2o-dev,h2oai/h2o-dev,h2oai/h2o-3,h2oai/h2o-dev,h2oai/h2o-3,h2oai/h2o-3,h2oai/h2o-dev,h2oai/h2o-3,michalkurka/h2o-3,michalkurka/h2o-3,h2oai/h2o-dev,h2oai/h2o-3,h2oai/h2o-dev,michalkurka/h2o-3,h2oai/h2o-dev,h2oai/h2o-3,michalkurka/h2o-3,h2oai/h2o-3 |
3dd215f4250d847b33f1c2df59ed4e3182fd2d82 | morphia/src/main/java/org/mongodb/morphia/utils/IndexDirection.java | morphia/src/main/java/org/mongodb/morphia/utils/IndexDirection.java | package org.mongodb.morphia.utils;
public enum IndexDirection {
ASC(1),
DESC(-1),
GEO2D("2d");
private final Object direction;
IndexDirection(final Object o) {
direction = o;
}
public Object toIndexValue() {
return direction;
}
} | package org.mongodb.morphia.utils;
public enum IndexDirection {
ASC(1),
DESC(-1),
GEO2D("2d"),
GEO2DSPHERE("2dsphere");
private final Object direction;
IndexDirection(final Object o) {
direction = o;
}
public Object toIndexValue() {
return direction;
}
}
| Add support for 2dsphere (Mongo 2.4+) | Add support for 2dsphere (Mongo 2.4+)
See http://docs.mongodb.org/manual/core/2dsphere/ | Java | apache-2.0 | evanchooly/morphia,evanchooly/morphia |
32e3ed7c10ae82268f364b5d5bab103236f48eb0 | src/java/Client.java | src/java/Client.java | public class Client {
public static void main(String args[]) {
int status = 0;
Ice.Communicator ic = null;
try {
ic = Ice.Util.initialize(args);
Ice.ObjectPrx base = ic.stringToProxy("SimplePrinter:default -p 10000");
Demo.PrinterPrx printer = Demo.Printer... | public class Client {
public static void main(String args[]) {
int status = 0;
Ice.Communicator ic = null;
try {
ic = Ice.Util.initialize(args);
Ice.ObjectPrx base = ic.stringToProxy("Portal: default -p 10000");
Demo.PortalPrx portal = Demo.PortalPrxHelper... | Connect with portal and server | Connect with portal and server
Signed-off-by: Nuno Azevedo <8c1e4f9df2ead62a44323c12422702b1d8dd9c90@gmail.com>
| Java | mit | nuno-azevedo/video-streaming-ice |
4363fe9d5927b48488bd1305c8a943147cbb39f0 | platform/lang-impl/src/com/intellij/build/BuildEventDispatcher.java | platform/lang-impl/src/com/intellij/build/BuildEventDispatcher.java | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.build;
import org.jetbrains.annotations.ApiStatus;
import java.io.Closeable;
/**
* @author Vladislav.Soroka
*/
@ApiStatus.Experimental
public interface B... | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.build;
import org.jetbrains.annotations.ApiStatus;
import java.io.Closeable;
/**
* @author Vladislav.Soroka
*/
@ApiStatus.Experimental
public interface B... | Build tw: fix fetching models of android projects w/o output parsing IDEA-209457 | Build tw: fix fetching models of android projects w/o output parsing IDEA-209457
GitOrigin-RevId: 4476671907a478bebc377d3922d723f093c389f1 | Java | apache-2.0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... |
6536868862829ced557c498a82352b229230c817 | src/main/java/net/avatar/realms/spigot/commandsign/CommandSignCommands.java | src/main/java/net/avatar/realms/spigot/commandsign/CommandSignCommands.java | package net.avatar.realms.spigot.commandsign;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class CommandSignCommands implements CommandExecutor{
private CommandSign plugin;
public CommandSignCommand... | package net.avatar.realms.spigot.commandsign;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import net.md_5.bungee.api.ChatColor;
public class CommandSignCommands implements CommandExecutor{
private CommandSi... | Set the bases of command signs management | Set the bases of command signs management
| Java | apache-2.0 | Nokorbis/ar-command-signs |
cc0a9f903bee37efcec47c7794b83d7180ec46d1 | src/main/java/edu/northwestern/bioinformatics/studycalendar/dao/UserDao.java | src/main/java/edu/northwestern/bioinformatics/studycalendar/dao/UserDao.java | package edu.northwestern.bioinformatics.studycalendar.dao;
import edu.northwestern.bioinformatics.studycalendar.domain.*;
import edu.northwestern.bioinformatics.studycalendar.StudyCalendarError;
import edu.nwu.bioinformatics.commons.CollectionUtils;
import java.util.List;
import java.io.Serializable;
public class U... | package edu.northwestern.bioinformatics.studycalendar.dao;
import edu.northwestern.bioinformatics.studycalendar.domain.Role;
import edu.northwestern.bioinformatics.studycalendar.domain.StudySubjectAssignment;
import edu.northwestern.bioinformatics.studycalendar.domain.User;
import edu.nwu.bioinformatics.commons.Collec... | Remove unused method; suppress unchecked cast warnings | Remove unused method; suppress unchecked cast warnings
git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@1836 0d517254-b314-0410-acde-c619094fa49f
| Java | bsd-3-clause | NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror |
b30d904fda46930f0650351272bb397c4979e15f | dropwizard-views/src/main/java/com/yammer/dropwizard/views/View.java | dropwizard-views/src/main/java/com/yammer/dropwizard/views/View.java | package com.yammer.dropwizard.views;
import com.yammer.metrics.Metrics;
import com.yammer.metrics.core.Timer;
public abstract class View {
private final String templateName;
private final Timer renderingTimer;
protected View(String templateName) {
this.templateName = templateName;
this.re... | package com.yammer.dropwizard.views;
import com.yammer.metrics.Metrics;
import com.yammer.metrics.core.Timer;
import org.codehaus.jackson.annotate.JsonIgnore;
public abstract class View {
private final String templateName;
private final Timer renderingTimer;
protected View(String templateName) {
... | Make sure Jackson ignores the view getters. | Make sure Jackson ignores the view getters.
| Java | apache-2.0 | StanSvec/dropwizard,svenefftinge/dropwizard,dotCipher/dropwizard,cvent/dropwizard,csae1152/dropwizard,mnrasul/dropwizard,calou/dropwizard,ajaiyen/dropwizard,akraxx/dropwizard,akshaymaniyar/dropwizard,michelle-liang/dropwizard,jelgh/dropwizard,plausible-retired/warwizard,thomasandersen77/dropwizard,aaanders/dropwizard,s... |
46fc77ccebf152d2a7825e21a3bc323dd68a6ef9 | backend/src/main/java/awesomefb/Post.java | backend/src/main/java/awesomefb/Post.java | package awesomefb;
import com.mongodb.BasicDBObject;
import org.json.JSONObject;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by earl on 5/25/2015.
*/
public class Post {
private String mMessage;
private User mCreator... | package awesomefb;
import com.mongodb.BasicDBObject;
import org.json.JSONObject;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by earl on 5/25/2015.
*/
public class Post {
private String mMessage;
private User mCreator... | Move statements to parseTime method | Move statements to parseTime method
| Java | mit | earlwlkr/awesomeFb,earlwlkr/awesomeFb,earlwlkr/awesomeFb |
7a7ffd7ca6bddbd064b45086ca20de0188c12486 | sample/src/main/java/com/jenzz/materialpreference/sample/SettingsActivity.java | sample/src/main/java/com/jenzz/materialpreference/sample/SettingsActivity.java | package com.jenzz.materialpreference.sample;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceFragment;
import android.support.v7.app.ActionBarActivity;
/**
* Created by jenzz on 28/01/15.
*/
public class SettingsActivity extends ActionBarActivity {
@Override protected voi... | package com.jenzz.materialpreference.sample;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import android.support.v7.app.ActionBarActivity;
/**
* Simple Activity to display example preferences.
*
* Created by jenzz on 28/01/15.
*/
public class SettingsActivity extends ActionBarActivity {... | Fix rotation duplicating fragment in sample | Fix rotation duplicating fragment in sample
| Java | mit | iamgreen0x0e/Android-MaterialPreference,carker/Android-MaterialPreference,java02014/Android-MaterialPreference,Papuh/Android-MaterialPreference,msdgwzhy6/Android-MaterialPreference,jenzz/Android-MaterialPreference |
bdfcc08763d76c2d70f2288f46da19046ec90028 | src/main/java/edu/harvard/iq/dataverse/actionlogging/ActionLogServiceBean.java | src/main/java/edu/harvard/iq/dataverse/actionlogging/ActionLogServiceBean.java | package edu.harvard.iq.dataverse.actionlogging;
import java.util.Date;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
* A service bean that persists {@link ActionLogRecord}s to the DB.
* @author michael
*/
@Stateless
public class ActionLogServic... | package edu.harvard.iq.dataverse.actionlogging;
import java.util.Date;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
* A service bean that persists {@link ActionLog... | Add Transaction Requires New to Action Log service | Add Transaction Requires New to Action Log service
| Java | apache-2.0 | bmckinney/dataverse-canonical,bmckinney/dataverse-canonical,JayanthyChengan/dataverse,leeper/dataverse-1,JayanthyChengan/dataverse,majorseitan/dataverse,ekoi/DANS-DVN-4.6.1,ekoi/DANS-DVN-4.6.1,quarian/dataverse,quarian/dataverse,majorseitan/dataverse,jacksonokuhn/dataverse,ekoi/DANS-DVN-4.6.1,ekoi/DANS-DVN-4.6.1,jackso... |
0a108c36909b94b1d7408343b9834541e99939e4 | shadows/framework/src/main/java/org/robolectric/shadows/ShadowGLSurfaceView.java | shadows/framework/src/main/java/org/robolectric/shadows/ShadowGLSurfaceView.java | package org.robolectric.shadows;
import android.opengl.GLSurfaceView;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
/** Fake implementation of GLSurfaceView */
@Implements(GLSurfaceView.class)
public class ShadowGLSurfaceView extends ShadowSurfaceView {
@Implementat... | package org.robolectric.shadows;
import android.opengl.GLSurfaceView;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
/** Fake implementation of GLSurfaceView */
@Implements(GLSurfaceView.class)
public class ShadowGLSurfaceView extends ShadowSurfaceView {
@Implementat... | Call queued events on GLSurfaceView shadow. | Call queued events on GLSurfaceView shadow.
PiperOrigin-RevId: 200648230
| Java | mit | jongerrish/robolectric,spotify/robolectric,jongerrish/robolectric,spotify/robolectric,spotify/robolectric,jongerrish/robolectric,jongerrish/robolectric |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.