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 |
|---|---|---|---|---|---|---|---|---|---|
89075fb2aa08b5d3d2bc81386f343f12f4ea568c | jvm-monitor-agent/src/main/java/controller/controller.java | jvm-monitor-agent/src/main/java/controller/controller.java | package controller;
/*
* Copyright (c) ${date}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* ... | package controller;
/*
* Copyright (c) ${date}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* ... | Add method to send data (sendUsageData) | Add method to send data (sendUsageData)
| Java | apache-2.0 | wso2-incubator/automatic-anomaly-detection,wso2-incubator/automatic-anomaly-detection,wso2-incubator/automatic-anomaly-detection |
c664e7b2e6e624eed09c19986041672f7939b9a2 | src/main/java/com/codenvy/ide/editor/codemirror/client/CodeMirrorTextEditorViewFactory.java | src/main/java/com/codenvy/ide/editor/codemirror/client/CodeMirrorTextEditorViewFactory.java | /*******************************************************************************
* Copyright (c) 2014 Codenvy, S.A.
* 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
*... | /*******************************************************************************
* Copyright (c) 2014 Codenvy, S.A.
* 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
*... | Update the factory after common js editor change | Update the factory after common js editor change | Java | epl-1.0 | codenvy/plugin-editor-codemirror,codenvy/plugin-editor-codemirror |
ea123cb2d6a35eb173f6db77b06508e7e324c9ea | src/cs437/som/distancemetrics/EuclideanDistanceMetric.java | src/cs437/som/distancemetrics/EuclideanDistanceMetric.java | package cs437.som.distancemetrics;
import cs437.som.DistanceMetric;
import cs437.som.SOMError;
/**
* Euclidean distance strategy.
*/
public class EuclideanDistanceMetric implements DistanceMetric {
/**
* Calculate the Euclidean distance between 2 vectors.
*
* The Euclidean distance of 2 vectors ... | package cs437.som.distancemetrics;
import cs437.som.DistanceMetric;
import cs437.som.SOMError;
/**
* Euclidean distance strategy.
*
* The Euclidean distance of 2 vectors is the square root of the sum of the
* squares of the differences of the individual components of the 2 vectors.
*
* The exact behavior follow... | Improve documentation of Euclidean distance strategy. | Improve documentation of Euclidean distance strategy.
| Java | bsd-3-clause | gamma9mu/SOMa |
546975c35d72b83103ccca035b645617f61d7e5f | annotation-file-utilities/src/annotator/find/Criterion.java | annotation-file-utilities/src/annotator/find/Criterion.java | package annotator.find;
import com.sun.source.util.TreePath;
import com.sun.source.tree.Tree;
/**
* A criterion for locating a program element in an AST. A Criterion does
* not actually give a location. Given a location, the isSatisfiedBy
* method indicates whether that location is a desired one.
*/
public inte... | package annotator.find;
import com.sun.source.util.TreePath;
import com.sun.source.tree.Tree;
/**
* A criterion for locating a program element in an AST. A Criterion does
* not actually give a location. Given a location, the isSatisfiedBy
* method indicates whether that location is a desired one.
*/
public inte... | Add a criterion kind for extends/implements. It's not used anywhere yet. An option would be to have separate constants for extends and implements, but that's probably not needed. | Add a criterion kind for extends/implements. It's not used anywhere yet. An option would be to have separate constants for extends and implements, but that's probably not needed.
| Java | mit | eisop/annotation-tools,typetools/annotation-tools,typetools/annotation-tools,eisop/annotation-tools,eisop/annotation-tools,typetools/annotation-tools |
8cac76d7803dcbf14c77d8c962cfe153a8306f98 | ohcommunicator/src/main/java/se/treehou/ng/ohcommunicator/connector/models/OHLinkedPage.java | ohcommunicator/src/main/java/se/treehou/ng/ohcommunicator/connector/models/OHLinkedPage.java | package se.treehou.ng.ohcommunicator.connector.models;
import java.util.ArrayList;
import java.util.List;
import se.treehou.ng.ohcommunicator.connector.ConnectorUtil;
public class OHLinkedPage {
private String id;
private String link;
private String title;
private boolean leaf;
private List<OHWi... | package se.treehou.ng.ohcommunicator.connector.models;
import java.util.ArrayList;
import java.util.List;
import se.treehou.ng.ohcommunicator.connector.ConnectorUtil;
public class OHLinkedPage {
private String id = "";
private String link;
private String title;
private boolean leaf;
private List... | Fix crash problem on orientation change | Fix crash problem on orientation change
| Java | epl-1.0 | ibaton/3House,ibaton/3House |
0128092b077892e509e5d3b5ede9b08fa30ff449 | intellij-facade-10/src/main/java/de/plushnikov/intellij/lombok/util/PsiPrimitiveTypeUtil10Impl.java | intellij-facade-10/src/main/java/de/plushnikov/intellij/lombok/util/PsiPrimitiveTypeUtil10Impl.java | package de.plushnikov.intellij.lombok.util;
import com.intellij.psi.PsiType;
/**
* Gets all of primitive types as PsiType
* Attention: IntelliJ 11 returns PsiPrimitiveType instead of PsiType, so we need a facade here.
* @author Plushnikov Michail
*/
public class PsiPrimitiveTypeUtil10Impl implements PsiP... | package de.plushnikov.intellij.lombok.util;
import com.intellij.psi.PsiKeyword;
import com.intellij.psi.PsiType;
import com.intellij.psi.impl.PsiElementFactoryImpl;
/**
* Gets all of primitive types as PsiType
* Attention: IntelliJ 11 returns PsiPrimitiveType instead of PsiType, so we need a facade here.
... | Fix incompatibility between IntelliJ<=10.0.2 and >10.0.2 (build 103.72) | Fix incompatibility between IntelliJ<=10.0.2 and >10.0.2 (build 103.72)
git-svn-id: 0427e1078a53407f977bcf4fee640b7bafc12131@136 9796b3e4-e716-bb5d-d578-ca2f8dc3330c
| Java | bsd-3-clause | mplushnikov/lombok-intellij-plugin,mg6maciej/hrisey-intellij-plugin,Siriah/lombok-intellij-plugin,hongnguyenpro/lombok-intellij-plugin,lilianaziolek/lombok-intellij-plugin,AlexejK/lombok-intellij-plugin,lilianaziolek/lombok-intellij-plugin,HamsterCoders/lombok-intellij-plugin,HamsterCoders/lombok-intellij-plugin,Hamste... |
760d7f369ed90d6d05b85e4008f2e6e0aa7d12dc | application/confagrid-webapp/src/main/java/com/aleggeup/confagrid/repository/WordGridRepository.java | application/confagrid-webapp/src/main/java/com/aleggeup/confagrid/repository/WordGridRepository.java | /*
* WordGridRepository.java
*
* Copyright (C) 2017 [ A Legge Up ]
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package com.aleggeup.confagrid.repository;
import java.util.UUID;
import org.springframework.data.repository.CrudRepo... | /*
* WordGridRepository.java
*
* Copyright (C) 2017 [ A Legge Up ]
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package com.aleggeup.confagrid.repository;
import java.util.UUID;
import org.springframework.data.jpa.repository.JpaR... | Add querydsl to wordgrid repository | Add querydsl to wordgrid repository
| Java | mit | ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid |
e9e7504f0f32f0f210c81ad05919a1ad96b8e89e | carpentersblocks/renderer/BlockDeterminantRender.java | carpentersblocks/renderer/BlockDeterminantRender.java | package carpentersblocks.renderer;
import net.minecraft.block.Block;
import carpentersblocks.block.BlockBase;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class BlockDeterminantRender extends BlockHandlerBase {
protected float REDUCED_LIGHTNESS_OFFSE... | package carpentersblocks.renderer;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class BlockDeterminantRender extends BlockHandlerBase {
protected float REDUCED_LIGHTNESS_OFFSET = -0.05F;
/**
* Returns whether non-cover blocks should render.... | Fix bed pieces not rendering when z-fighting fix is enabled (whoops). | Fix bed pieces not rendering when z-fighting fix is enabled (whoops).
| Java | lgpl-2.1 | Mineshopper/carpentersblocks,burpingdog1/carpentersblocks,Techern/carpentersblocks,Nuchaz/carpentersblocks,LorenzoDCC/carpentersblocks |
93e49cad49b0d003dc71a179592e55b7bfd76413 | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/entity/NodeEntity.java | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/entity/NodeEntity.java | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.entity;
import java.util.Objects;
import java.util.Optional;
/**
* Information about a node from a {@link EntityService}.
*
* @author mpolden
*... | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.entity;
import java.util.Objects;
import java.util.Optional;
/**
* Information about a node from a {@link EntityService}.
*
* @author mpolden
*... | Add switch hostname to node entity | Add switch hostname to node entity
| Java | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
5d0c8a3d3225d43b29ab1c1e82d11b431f0a1d01 | app/src/main/java/de/christinecoenen/code/zapp/utils/video/ScreenDimmingVideoEventListener.java | app/src/main/java/de/christinecoenen/code/zapp/utils/video/ScreenDimmingVideoEventListener.java | package de.christinecoenen.code.zapp.utils.video;
import android.view.View;
import com.google.android.exoplayer2.Player;
import java.lang.ref.WeakReference;
/**
* Allows the screen to turn off as soon as video playback finishes
* or pauses.
*/
class ScreenDimmingVideoEventListener implements Player.EventListener... | package de.christinecoenen.code.zapp.utils.video;
import android.view.View;
import com.google.android.exoplayer2.Player;
import java.lang.ref.WeakReference;
/**
* Allows the screen to turn off as soon as video playback finishes
* or pauses.
*/
class ScreenDimmingVideoEventListener implements Player.EventListener... | Fix use of deprecated api | Fix use of deprecated api
| Java | mit | cemrich/zapp |
4e322d3731d4a133f53b28da5548217057b25660 | configserver/src/main/java/com/yahoo/vespa/config/server/filedistribution/FileDistributionFactory.java | configserver/src/main/java/com/yahoo/vespa/config/server/filedistribution/FileDistributionFactory.java | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.filedistribution;
import com.google.inject.Inject;
import com.yahoo.cloud.config.ConfigserverConfig;
import com.yahoo.config.application.api.FileRegistry;
import com.ya... | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.filedistribution;
import com.google.inject.Inject;
import com.yahoo.cloud.config.ConfigserverConfig;
import com.yahoo.config.application.api.FileRegistry;
import com.ya... | Use existing method to create an AddFileInterface | Use existing method to create an AddFileInterface
| Java | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
9cb73b8cb43d3c52e69d9579bb057a68a5b023d1 | cloudfoundry-runtime/src/main/java/org/cloudfoundry/runtime/service/messaging/RabbitServiceCreator.java | cloudfoundry-runtime/src/main/java/org/cloudfoundry/runtime/service/messaging/RabbitServiceCreator.java | package org.cloudfoundry.runtime.service.messaging;
import org.cloudfoundry.runtime.env.CloudEnvironment;
import org.cloudfoundry.runtime.env.RabbitServiceInfo;
import org.cloudfoundry.runtime.service.AbstractServiceCreator;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframewor... | package org.cloudfoundry.runtime.service.messaging;
import org.cloudfoundry.runtime.env.CloudEnvironment;
import org.cloudfoundry.runtime.env.RabbitServiceInfo;
import org.cloudfoundry.runtime.service.AbstractServiceCreator;
import org.springframework.amqp.rabbit.connection.CachingConnectionFactory;
import org.springf... | Use CachingConnectionFactory when creating Rabbit connections | Use CachingConnectionFactory when creating Rabbit connections
Change-Id: I1b56a6c701d35dbf5823e342d43f1a778e38e528
| Java | apache-2.0 | cloudfoundry/java-buildpack-auto-reconfiguration,cloudfoundry/java-buildpack-auto-reconfiguration |
2342de3e71532613bacabb3e583e7b09f07c6f13 | src/main/java/com/rizki/mufrizal/aplikasi/inventory/abstractTableModel/PenjualanAbstractTableModel.java | src/main/java/com/rizki/mufrizal/aplikasi/inventory/abstractTableModel/PenjualanAbstractTableModel.java | package com.rizki.mufrizal.aplikasi.inventory.abstractTableModel;
/**
*
* @Author Rizki Mufrizal <mufrizalrizki@gmail.com>
* @Since Mar 20, 2016
* @Time 1:26:45 PM
* @Encoding UTF-8
* @Project Aplikasi-Inventory
* @Package com.rizki.mufrizal.aplikasi.inventory.abstractTableModel
*
*/
public class PenjualanAb... | package com.rizki.mufrizal.aplikasi.inventory.abstractTableModel;
import com.rizki.mufrizal.aplikasi.inventory.domain.Penjualan;
import java.util.ArrayList;
import java.util.List;
import javax.swing.table.AbstractTableModel;
/**
*
* @Author Rizki Mufrizal <mufrizalrizki@gmail.com>
* @Since Mar 20, 2016
* @Time 1:... | Update penjualan abstract tabel model | Update penjualan abstract tabel model | Java | apache-2.0 | RizkiMufrizal/Aplikasi-Inventory |
c3a7d8e00db4536aea6372e18afb80b7542181f9 | src/test/java/rxbroadcast/VectorTimestampTest.java | src/test/java/rxbroadcast/VectorTimestampTest.java | package rxbroadcast;
import nl.jqno.equalsverifier.EqualsVerifier;
import org.junit.Test;
@SuppressWarnings({"checkstyle:MagicNumber"})
public final class VectorTimestampTest {
@Test
public final void equalsContract() {
EqualsVerifier.forClass(VectorTimestamp.class)
.withCachedHashCode("ha... | package rxbroadcast;
import nl.jqno.equalsverifier.EqualsVerifier;
import org.junit.Test;
@SuppressWarnings({"checkstyle:MagicNumber"})
public final class VectorTimestampTest {
@Test
public final void equalsContract() {
EqualsVerifier.forClass(VectorTimestamp.class)
.withCachedHashCode("ha... | Add test case for VectorTimestamp ctor | Add test case for VectorTimestamp ctor
| Java | isc | RxBroadcast/RxBroadcast,RxBroadcast/RxBroadcast,whymarrh/RxBroadcast,RxBroadcast/RxBroadcast,RxBroadcast/RxBroadcast,whymarrh/RxBroadcast |
65729b98751bacfdbd018de6b378ed9f21388b71 | src/main/java/uk/ac/ox/it/ords/api/statistics/services/impl/ServerConfigurationServiceImpl.java | src/main/java/uk/ac/ox/it/ords/api/statistics/services/impl/ServerConfigurationServiceImpl.java | package uk.ac.ox.it.ords.api.statistics.services.impl;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.configuration.XMLConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import uk.ac.ox.it.ords.api.statistics.configuration.CommonVa... | package uk.ac.ox.it.ords.api.statistics.services.impl;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.configuration.XMLConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import uk.ac.ox.it.ords.api.statistics.services.ServerConfigu... | Use meta-config and commons-configuration to get location of ORDS server config, rather than CommonVars class | Use meta-config and commons-configuration to get location of ORDS server config, rather than CommonVars class
| Java | apache-2.0 | ox-it/ords-statistics-api |
5bed3ff59b4deadeae92e05d69710952be8bde9a | cache-invalidation/src/main/java/io/debezium/examples/cacheinvalidation/persistence/KnownTransactions.java | cache-invalidation/src/main/java/io/debezium/examples/cacheinvalidation/persistence/KnownTransactions.java | package io.debezium.examples.cacheinvalidation.persistence;
import java.util.concurrent.TimeUnit;
import javax.annotation.PreDestroy;
import javax.enterprise.context.ApplicationScoped;
import org.infinispan.Cache;
import org.infinispan.configuration.cache.ConfigurationBuilder;
import org.infinispan.manager.DefaultCa... | package io.debezium.examples.cacheinvalidation.persistence;
import java.util.concurrent.TimeUnit;
import javax.annotation.PreDestroy;
import javax.enterprise.context.ApplicationScoped;
import org.infinispan.Cache;
import org.infinispan.configuration.cache.ConfigurationBuilder;
import org.infinispan.manager.DefaultCa... | Use simple cache for known transactions | Use simple cache for known transactions
| Java | apache-2.0 | debezium/debezium-examples,debezium/debezium-examples,debezium/debezium-examples,debezium/debezium-examples,debezium/debezium-examples |
4cc211c7462d586479c86d24c22816cc2660bcc6 | java/azure-storage-blob-perfstress/src/main/java/com/azure/storage/blob/perfstress/UploadTest.java | java/azure-storage-blob-perfstress/src/main/java/com/azure/storage/blob/perfstress/UploadTest.java | package com.azure.storage.blob.perfstress;
import java.io.IOException;
import java.io.OutputStream;
import java.util.UUID;
import com.azure.perfstress.RandomFlux;
import com.azure.perfstress.RandomStream;
import com.azure.perfstress.SizeOptions;
import com.azure.storage.blob.BlobAsyncClient;
import com.azure.storage.... | package com.azure.storage.blob.perfstress;
import java.io.IOException;
import java.io.InputStream;
import java.util.UUID;
import com.azure.perfstress.RandomFlux;
import com.azure.perfstress.RandomStream;
import com.azure.perfstress.SizeOptions;
import com.azure.storage.blob.BlobAsyncClient;
import com.azure.storage.b... | Convert sync upload test to use getBlobOutputStream() - Most similar to Track1 upload() method - Track2 upload() method only supports blobs up to 256 MB | Convert sync upload test to use getBlobOutputStream()
- Most similar to Track1 upload() method
- Track2 upload() method only supports blobs up to 256 MB
| Java | mit | selvasingh/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,selvasingh/azure-sdk-for-java,Azure/azure-sdk-for-java,selvasingh/azure-sdk-for-java |
3bbd59b975d4ca2e612a791f64fd1a654b8b2db9 | powerauth-restful-security-ejb/src/main/java/io/getlime/rest/api/security/filter/PowerAuthRequestFilter.java | powerauth-restful-security-ejb/src/main/java/io/getlime/rest/api/security/filter/PowerAuthRequestFilter.java | /*
* Copyright 2016 Lime - HighTech Solutions 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 ... | /*
* Copyright 2016 Lime - HighTech Solutions 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 ... | Use Provider annotation in filter with injected Context | Use Provider annotation in filter with injected Context
| Java | apache-2.0 | lime-company/lime-security-powerauth,lime-company/lime-security-powerauth |
75d261f5856562c94f7d6c6e4d400fc1287b0106 | nassau/src/test/java/com/paritytrading/nassau/binaryfile/BinaryFILEWriterTest.java | nassau/src/test/java/com/paritytrading/nassau/binaryfile/BinaryFILEWriterTest.java | package com.paritytrading.nassau.binaryfile;
import static com.paritytrading.nassau.Strings.*;
import static java.util.Arrays.*;
import static org.junit.Assert.*;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.util.List;
import org.junit.Test;
public class BinaryFILEWriterTest {
@... | package com.paritytrading.nassau.binaryfile;
import static com.paritytrading.nassau.Strings.*;
import static java.util.Arrays.*;
import static org.junit.Assert.*;
import java.io.ByteArrayOutputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
import org.junit.Test;
public class B... | Clean up test for BinaryFILE writer | Clean up test for BinaryFILE writer
| Java | apache-2.0 | paritytrading/nassau,pmcs/nassau,paritytrading/nassau,pmcs/nassau |
e6193ea2b6caaa8c632c03d3cef9e05b3bc21973 | xchange-examples/src/main/java/org/knowm/xchange/examples/gdax/GDAXTickerDemo.java | xchange-examples/src/main/java/org/knowm/xchange/examples/gdax/GDAXTickerDemo.java | package org.knowm.xchange.examples.gdax;
import java.io.IOException;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.marketdata.Ticker;
import org.knowm.xchange.gdax.GDAXExchange;
import org.knowm.xchange.gdax.dt... | package org.knowm.xchange.examples.gdax;
import java.io.IOException;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.marketdata.Ticker;
import org.knowm.xchange.gdax.GDAXExchange;
import org.knowm.xchange.gdax.dt... | Update GDAXProductTicker obj name from bitstampTicker to gdaxTicker | Update GDAXProductTicker obj name from bitstampTicker to gdaxTicker
Looks to be a copy paste mistake. Updated the name to reference gdax as opposed to bitstamp in this gdax example. | Java | mit | douggie/XChange |
9c4111a62beba8737cd21bbec2d351671fe51a4c | core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/util/RegisteredServiceYamlSerializer.java | core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/util/RegisteredServiceYamlSerializer.java | package org.apereo.cas.services.util;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
/**
* This is {@link RegisteredServiceYamlSerializer}.
*
* @author Misagh Moayyed
* @since 5.0.0
*/
public class RegisteredServiceYamlSerializer extends DefaultRegistered... | package org.apereo.cas.services.util;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.nio.charset.StandardCharsets;
/**
* This is {@link RegisteredServiceYamlSerializer}.
*
* @author M... | Fix test failures with yaml | Fix test failures with yaml
| Java | apache-2.0 | robertoschwald/cas,William-Hill-Online/cas,frett/cas,William-Hill-Online/cas,dodok1/cas,tduehr/cas,rrenomeron/cas,robertoschwald/cas,rrenomeron/cas,William-Hill-Online/cas,tduehr/cas,robertoschwald/cas,Unicon/cas,dodok1/cas,rrenomeron/cas,robertoschwald/cas,rrenomeron/cas,frett/cas,GIP-RECIA/cas,GIP-RECIA/cas,prigaux/c... |
536984f2f338b4ac3611ee74ca1b1a6fe3adb5de | src/com/kurento/kas/media/rx/MediaRx.java | src/com/kurento/kas/media/rx/MediaRx.java | /*
* Kurento Android Media: Android Media Library based on FFmpeg.
* Copyright (C) 2011 Tikal Technologies
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3
* as published by the Free Software Foundation.
*
* This program i... | /*
* Kurento Android Media: Android Media Library based on FFmpeg.
* Copyright (C) 2011 Tikal Technologies
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3
* as published by the Free Software Foundation.
*
* This program i... | Add DEFAULT_MAX_DELAY as 200 ms. | Add DEFAULT_MAX_DELAY as 200 ms.
| Java | lgpl-2.1 | KurentoLegacy/kas-media |
ce762df2bd5c148011a204fd3845c329778731fb | projects/OG-Integration/src/main/java/com/opengamma/integration/timeseries/snapshot/HistoricalTimeSeriesSnapshotter.java | projects/OG-Integration/src/main/java/com/opengamma/integration/timeseries/snapshot/HistoricalTimeSeriesSnapshotter.java | /**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.integration.timeseries.snapshot;
import com.opengamma.component.OpenGammaComponentServer;
/**
* Historical timeseries snapshotter.
*/
public class Historica... | /**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.integration.timeseries.snapshot;
import com.opengamma.component.OpenGammaComponentServer;
/**
* Historical timeseries snapshotter.
*/
public class Historica... | Exit with -1 status if server failed to start up | [PLAT-3891] Exit with -1 status if server failed to start up
| Java | apache-2.0 | codeaudit/OG-Platform,ChinaQuants/OG-Platform,jerome79/OG-Platform,nssales/OG-Platform,DevStreet/FinanceAnalytics,jeorme/OG-Platform,codeaudit/OG-Platform,jerome79/OG-Platform,jeorme/OG-Platform,jerome79/OG-Platform,McLeodMoores/starling,ChinaQuants/OG-Platform,DevStreet/FinanceAnalytics,DevStreet/FinanceAnalytics,Chin... |
abe5908e8501cdf3f1f44df91bf1302b892d42e2 | src/main/src/org/openspaces/pu/container/jee/jetty/support/JettyWebAppClassLoader.java | src/main/src/org/openspaces/pu/container/jee/jetty/support/JettyWebAppClassLoader.java | package org.openspaces.pu.container.jee.jetty.support;
import org.mortbay.jetty.webapp.WebAppClassLoader;
import org.mortbay.jetty.webapp.WebAppContext;
import org.jini.rio.boot.LoggableClassLoader;
import java.io.IOException;
/**
* @author kimchy
*/
public class JettyWebAppClassLoader extends WebAppClassLoader im... | package org.openspaces.pu.container.jee.jetty.support;
import org.mortbay.jetty.webapp.WebAppClassLoader;
import org.mortbay.jetty.webapp.WebAppContext;
import org.jini.rio.boot.LoggableClassLoader;
import java.io.IOException;
/**
* A simple extension for Jetty WebApp class loader just to make it loggable in the Se... | Enable context logging based on class loader for web applications as well | Enable context logging based on class loader for web applications as well
svn path=/trunk/openspaces/; revision=56810
Former-commit-id: 8ff005d892540fff54955d50bcd10492a862efcd | Java | apache-2.0 | Gigaspaces/xap-openspaces,Gigaspaces/xap-openspaces,Gigaspaces/xap-openspaces |
8bb32136b29837113c1e74ae037bc01e60c0c3e1 | core/src/test/java/de/otto/jlineup/image/LABTest.java | core/src/test/java/de/otto/jlineup/image/LABTest.java | package de.otto.jlineup.image;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
public class LABTest {
@Test
public void shouldCalculateCIEDE2000() {
LAB lab1 = LAB.fromRGB(55,44,33, 0);
LAB lab2 = LAB.fromRGB(66,55,44, 0);
double... | package de.otto.jlineup.image;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
public class LABTest {
@Test
public void shouldCalculateCIEDE2000() {
LAB lab1 = LAB.fromRGB(55,44,33, 0);
LAB lab2 = LAB.fromRGB(66,55,44, ... | Fix precision issue on MacOS | Fix precision issue on MacOS
Co-authored-by: Marco Geweke <8bae85dbfa00ce59d1b81e4121747343f331087b@otto.de>
| Java | apache-2.0 | otto-de/jlineup,otto-de/jlineup,otto-de/jlineup |
befc034d08009dd3bb388d717657605db07b6c2f | vaadin-components-gwt/src/main/java/com/vaadin/components/grid/config/JSDataRequest.java | vaadin-components-gwt/src/main/java/com/vaadin/components/grid/config/JSDataRequest.java | package com.vaadin.components.grid.config;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.js.JsProperty;
import com.google.gwt.core.client.js.JsType;
import com.vaadin.components.common.js.JSArray;
/**
* This class is a JsInterop wrapper for the JS object editor handler request... | package com.vaadin.components.grid.config;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.js.JsProperty;
import com.google.gwt.core.client.js.JsType;
import com.vaadin.components.common.js.JSArray;
/**
* This class is a JsInterop wrapper for the JS object editor handler request... | Remove unused filter parameters from data request. | Remove unused filter parameters from data request.
Change-Id: Ic4e9f38a63dd99aa28d5faf28d392fb8b132141d
| Java | apache-2.0 | shahrzadmn/vaadin-grid,manolo/components,shahrzadmn/vaadin-grid,jforge/components,manolo/components,shahrzadmn/vaadin-grid,jforge/components,shahrzadmn/vaadin-grid,jforge/components,manolo/components |
dda4f72c40c045311c1b9d03aaca7dfacfc9465a | api/src/main/java/com/thinkabstract/exercise/news/api/service/NewsFeedServiceFactory.java | api/src/main/java/com/thinkabstract/exercise/news/api/service/NewsFeedServiceFactory.java | package com.thinkabstract.exercise.news.api.service;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class NewsFeedServiceFactory {
private static final String BASE_NEWS_FEED_URL =
"https://ajax.googleapis.com/ajax/services/feed/";
public static NewsFeedService crea... | package com.thinkabstract.exercise.news.api.service;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class NewsFeedServiceFactory {
private static final String BASE_NEWS_FEED_URL =
"https://aja... | Add client to retrofit service builder | Add client to retrofit service builder
| Java | apache-2.0 | GaborPeto/android-news |
02e5a095b7503afd209dae5abf2e223d699ff356 | intellij-facade-10/src/main/java/de/plushnikov/intellij/lombok/util/PsiPrimitiveTypeUtil10Impl.java | intellij-facade-10/src/main/java/de/plushnikov/intellij/lombok/util/PsiPrimitiveTypeUtil10Impl.java | package de.plushnikov.intellij.lombok.util;
import com.intellij.psi.PsiType;
/**
* Gets all of primitive types as PsiType
* Attention: IntelliJ 11 returns PsiPrimitiveType instead of PsiType, so we need a facade here.
* @author Plushnikov Michail
*/
public class PsiPrimitiveTypeUtil10Impl implements PsiP... | package de.plushnikov.intellij.lombok.util;
import com.intellij.psi.PsiKeyword;
import com.intellij.psi.PsiType;
import com.intellij.psi.impl.PsiElementFactoryImpl;
/**
* Gets all of primitive types as PsiType
* Attention: IntelliJ 11 returns PsiPrimitiveType instead of PsiType, so we need a facade here.
... | Fix incompatibility between IntelliJ<=10.0.2 and >10.0.2 (build 103.72) | Fix incompatibility between IntelliJ<=10.0.2 and >10.0.2 (build 103.72)
| Java | bsd-2-clause | twillouer/lombok-intellij-plugin,gneuvill/lombok-intellij-plugin |
66f5a9f717a04ebf3f39c7662d5f3df4ba467940 | src/MainForTest.java | src/MainForTest.java | import com.redhat.ceylon.compiler.typechecker.TypeChecker;
import com.redhat.ceylon.compiler.typechecker.TypeCheckerBuilder;
import com.redhat.ceylon.compiler.typechecker.tree.Tree;
import java.io.File;
/**
* Some hack before a proper unit test harness is put in place
*
* @author Emmanuel Bernard <emmanuel@hiberna... | import com.redhat.ceylon.compiler.typechecker.TypeChecker;
import com.redhat.ceylon.compiler.typechecker.TypeCheckerBuilder;
import com.redhat.ceylon.compiler.typechecker.tree.Tree;
import java.io.File;
/**
* Some hack before a proper unit test harness is put in place
*
* @author Emmanuel Bernard <emmanuel@hiberna... | Add test for top level files (no package) | Add test for top level files (no package) | Java | apache-2.0 | ceylon/ceylon-spec,jvasileff/ceylon-spec,jvasileff/ceylon-spec,jvasileff/ceylon-spec,ceylon/ceylon-spec,ceylon/ceylon-spec,lucaswerkmeister/ceylon-spec |
d8448e46a0fbe2b527b6be12b00cba4d6df1f045 | spring-cloud-dataflow-rest-client/src/main/java/org/springframework/cloud/dataflow/rest/client/support/StepExecutionJacksonMixIn.java | spring-cloud-dataflow-rest-client/src/main/java/org/springframework/cloud/dataflow/rest/client/support/StepExecutionJacksonMixIn.java | /*
* Copyright 2016-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | /*
* Copyright 2016-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Exclude jobExecution on client side | Exclude jobExecution on client side
- To overcome future errors in `JobCommandTests` exclude `jobExecution` if
client side `StepExecutionJacksonMixIn` is used as what happens with those
tests when hateoas 1.0.2 is brought in.
- Issue will happen with real server/shell but we can't do more clever
things until she... | Java | apache-2.0 | spring-cloud/spring-cloud-data,jvalkeal/spring-cloud-dataflow,jvalkeal/spring-cloud-data,trisberg/spring-cloud-dataflow,markpollack/spring-cloud-dataflow,ilayaperumalg/spring-cloud-dataflow,jvalkeal/spring-cloud-dataflow,markpollack/spring-cloud-dataflow,spring-cloud/spring-cloud-dataflow,ilayaperumalg/spring-cloud-dat... |
bd8e8688c3351e4a775f0c676021d5f16b0098c1 | services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/base/MissingRepositoryException.java | services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/base/MissingRepositoryException.java | package uk.ac.ic.wlgitbridge.snapshot.base;
import com.google.gson.JsonElement;
import uk.ac.ic.wlgitbridge.git.exception.SnapshotAPIException;
import java.util.Arrays;
import java.util.List;
public class MissingRepositoryException extends SnapshotAPIException {
public static final String GENERIC_REASON =
... | package uk.ac.ic.wlgitbridge.snapshot.base;
import com.google.gson.JsonElement;
import uk.ac.ic.wlgitbridge.git.exception.SnapshotAPIException;
import java.util.Arrays;
import java.util.List;
public class MissingRepositoryException extends SnapshotAPIException {
public static final String GENERIC_REASON =
... | Make GENERIC_REASON consistent with web messages. | Make GENERIC_REASON consistent with web messages.
| Java | agpl-3.0 | sharelatex/sharelatex |
a226beaf919de388e09e6bebc1ae64ab5220e358 | ickprotocol/core/src/main/java/com/ickstream/protocol/service/core/AuthenticationProviderResponse.java | ickprotocol/core/src/main/java/com/ickstream/protocol/service/core/AuthenticationProviderResponse.java | /*
* Copyright (C) 2013 ickStream GmbH
* All rights reserved
*/
package com.ickstream.protocol.service.core;
public class AuthenticationProviderResponse {
private String id;
private String name;
private String icon;
private String url;
public String getId() {
return id;
}
publ... | /*
* Copyright (C) 2013 ickStream GmbH
* All rights reserved
*/
package com.ickstream.protocol.service.core;
public class AuthenticationProviderResponse {
private String id;
private String name;
private String icon;
private String url;
private String addIdentityUrl;
public String getId() {... | Add addIdentityUrl attribute to result from findAuthenticationProviders | Add addIdentityUrl attribute to result from findAuthenticationProviders
| Java | bsd-3-clause | bluegaspode/ickstream-java-common,ickStream/ickstream-java-common |
d56b19a6fd85117c6cf8647e9fabf5c5bdd0e35a | starter-microservice-web/src/main/webapp/sample/myProject-wlpcfg/src/test/java/it/servlet/LibertyServletTest.java | starter-microservice-web/src/main/webapp/sample/myProject-wlpcfg/src/test/java/it/servlet/LibertyServletTest.java | /*******************************************************************************
* Copyright (c) 2016 IBM Corp.
*
* 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... | /*******************************************************************************
* Copyright (c) 2016 IBM Corp.
*
* 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... | Remove unused imports in web tech type. | Remove unused imports in web tech type. | Java | apache-2.0 | WASdev/tool.groove.core,WASdev/tool.artisan.core,WASdev/tool.artisan.core,WASdev/tool.groove.core,WASdev/tool.accelerate.core,WASdev/tool.artisan.core,WASdev/tool.groove.core,WASdev/tool.accelerate.core,WASdev/tool.accelerate.core |
34195ec43c706c34423833168c59d66b2bf4e77f | src/entities/Food.java | src/entities/Food.java | package entities;
import java.awt.Color;
import java.awt.Graphics2D;
import java.util.Random;
import snake.Screen;
public class Food extends Entity {
private final int SIZE = Snake.SIZE;
private int x, y;
public Food() {
r = new Random();
update();
}
@Override
public void draw(Graphics2D g2d) {... | package entities;
import java.awt.Color;
import java.awt.Graphics2D;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import snake.Screen;
public class Food extends Entity {
private final int SIZE = Snake.SIZE;
private int x, y;
private Color color;
p... | Choose a random (brightish) colour for food | Choose a random (brightish) colour for food
| Java | mit | SullyJHF/java-snake,SullyJHF/learn-to-code |
eeb40831ffd86d4fb17d333e7d0bc67d6a92f8ee | src/main/java/com/alexrnl/commons/error/ExceptionUtils.java | src/main/java/com/alexrnl/commons/error/ExceptionUtils.java | package com.alexrnl.commons.error;
import java.util.Objects;
import java.util.logging.Logger;
/**
* TODO
* @author Alex
*/
public final class ExceptionUtils {
/** Logger */
private static Logger lg = Logger.getLogger(ExceptionUtils.class.getName());
/**
* Constructor #1.<br />
* Default private constructo... | package com.alexrnl.commons.error;
import java.util.logging.Logger;
/**
* Utility methods for exception handling.<br />
* @author Alex
*/
public final class ExceptionUtils {
/** Logger */
private static Logger lg = Logger.getLogger(ExceptionUtils.class.getName());
/**
* Constructor #1.<br />
* Default pri... | Complete javadoc and don't throw NPE | Complete javadoc and don't throw NPE
| Java | bsd-3-clause | AlexRNL/Commons |
a86e5a66a0b961b376b1966104abe19f217202f3 | src/main/java/kinetic/math/statistic/StandardDeviation.java | src/main/java/kinetic/math/statistic/StandardDeviation.java | /**
* Copyright (C) 2010 openecho
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | /**
* Copyright (C) 2010 openecho
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | Add population based divide option | Add population based divide option
| Java | apache-2.0 | openecho/Kinetic1-Java |
aa825fdba34b67c700d6b14695cd0dcb6d868a74 | extensions/smallrye-context-propagation/runtime/src/main/java/io/quarkus/smallrye/context/runtime/SmallRyeContextPropagationProvider.java | extensions/smallrye-context-propagation/runtime/src/main/java/io/quarkus/smallrye/context/runtime/SmallRyeContextPropagationProvider.java | package io.quarkus.smallrye.context.runtime;
import java.util.concurrent.ExecutorService;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import javax.inject.Singleton;
import org.eclipse.microprofile.context.ManagedExecutor;
import org.eclipse.microprofile.context.ThreadC... | package io.quarkus.smallrye.context.runtime;
import java.util.List;
import java.util.concurrent.ExecutorService;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import javax.inject.Singleton;
import org.eclipse.microprofile.context.ManagedExecutor;
import org.eclipse.micro... | Make sure we follow the MP-CP spec and disallow our container-managed executor to be shut down | Make sure we follow the MP-CP spec and disallow our container-managed executor to be shut down
Since it's the underlying executor service which must be shut down, by Quarkus
| Java | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus |
faa5072cffecb1f37e7415f58a527863311cd583 | Speedcivilization/src/org/fountanio/world/World.java | Speedcivilization/src/org/fountanio/world/World.java | package org.fountanio.world;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import org.fountanio.world.Tile;
import org.fountanio.juancode.out.Main;
public class World {
private Tile[] world;
public fi... | package org.fountanio.world;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import org.fountanio.world.Tile;
import org.fountanio.juancode.out.Main;
public class World {
private Tile[] world;
public st... | Make MAX_WIDTH and MAX_HEIGHT static | Make MAX_WIDTH and MAX_HEIGHT static | Java | apache-2.0 | JavaCakess/Speedcivilization |
028663651538deb6e9e3da756856af2f66548b07 | src/test/java/guitests/ClearCommandTest.java | src/test/java/guitests/ClearCommandTest.java | package guitests;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class ClearCommandTest extends TaskManagerGuiTest {
@Test
public void clear() {
//verify a non-empty list can be cleared
assertTrue(taskListPanel.isListMatching(td.getTypicalTasks()));
assertC... | package guitests;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class ClearCommandTest extends TaskManagerGuiTest {
@Test
public void clear() {
System.out.println(taskListPanel.getTask(4));
//verify a non-empty list can be cleared
assertTrue(taskListPanel.i... | Fix ClearCommand Unit Test Failing | Fix ClearCommand Unit Test Failing
| Java | mit | CS2103JAN2017-T09-B4/main,CS2103JAN2017-T09-B4/main,CS2103JAN2017-T09-B4/main |
55902081a7b3e09afe3fd688ae92a984db308bf4 | src/test/java/guitests/ClearCommandTest.java | src/test/java/guitests/ClearCommandTest.java | package guitests;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class ClearCommandTest extends EzDoGuiTest {
@Test
public void clear() {
//verify a non-empty list can be cleared
assertTrue(taskListPanel.isListMatching(td.getTypicalTasks()));
assertClearCom... | package guitests;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class ClearCommandTest extends EzDoGuiTest {
@Test
public void clear() {
//verify a non-empty list can be cleared
assertTrue(taskListPanel.isListMatching(td.getTypicalTasks()));
assertClearCom... | Add test for shortened clear command | Add test for shortened clear command
| Java | mit | CS2103JAN2017-W14-B4/main,CS2103JAN2017-W14-B4/main |
bdcc7bdc9daace561f3961122b1d74cd69f1958a | src/CommonFrame.java | src/CommonFrame.java | /**
* Part of Employ
*/
import java.awt.*;
import javax.swing.*;
public abstract class CommonFrame extends JFrame {
JPanel panelHeading;
JLabel labelHeading;
// define common settings for all frame
public CommonFrame(String heading) {
super("Employ - " + heading);
setSize(400, 200);
setResiza... | /**
* Part of Employ
*/
import javax.swing.*;
public abstract class CommonFrame extends JFrame {
JPanel panelHeading = new JPanel();
// define common settings for all frame
public CommonFrame(String heading) {
super("Employ - " + heading);
setSize(400, 200);
setResizable(false);
setLocation... | Use BoxLayout for better component arrangement | Use BoxLayout for better component arrangement
Refer CommonFrame's content pane as the layout target container
with Y axis. Now it's a basic responsive Java design if resizeable.
| Java | mit | mhaidarh/employ |
aab0256be72bcee9b6cd9d39b64afe3d19aff942 | src/test/java/com/skraylabs/poker/ApplicationTest.java | src/test/java/com/skraylabs/poker/ApplicationTest.java | package com.skraylabs.poker;
import static org.junit.Assert.fail;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class ApplicationTest {
@Before
public void setUp() throws Exception {}
@After
public void tearDown() throws Exception {}
@Test
public void test() {
fail... | package com.skraylabs.poker;
import static org.hamcrest.CoreMatchers.allOf;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintSt... | Implement test for too few arguments. | Implement test for too few arguments.
Following example at:
http://www.developer.com/tech/article.php/3669436/Test-Driving-a-Java-Command-Line-Application.htm | Java | mit | AbeSkray/poker-calculator |
dd40ae575066068afce02566d43b9f03c27b1cef | src/protocolsupport/protocol/packet/middleimpl/serverbound/play/v_4_5_6/ClientCommand.java | src/protocolsupport/protocol/packet/middleimpl/serverbound/play/v_4_5_6/ClientCommand.java | package protocolsupport.protocol.packet.middleimpl.serverbound.play.v_4_5_6;
import io.netty.buffer.ByteBuf;
import protocolsupport.protocol.packet.middle.serverbound.play.MiddleClientCommand;
public class ClientCommand extends MiddleClientCommand {
@Override
public void readFromClientData(ByteBuf clientdata) {
... | package protocolsupport.protocol.packet.middleimpl.serverbound.play.v_4_5_6;
import io.netty.buffer.ByteBuf;
import protocolsupport.protocol.packet.middle.serverbound.play.MiddleClientCommand;
public class ClientCommand extends MiddleClientCommand {
@Override
public void readFromClientData(ByteBuf clientdata) {
... | Fix <= 1.6 clients not being able to respawn | Fix <= 1.6 clients not being able to respawn | Java | agpl-3.0 | ridalarry/ProtocolSupport,ProtocolSupport/ProtocolSupport |
e37f194b6594a4b82afa915d6504288489bbf7bf | src/net/mcft/copy/betterstorage/CraftingHandler.java | src/net/mcft/copy/betterstorage/CraftingHandler.java | package net.mcft.copy.betterstorage;
import net.mcft.copy.betterstorage.items.ItemKey;
import net.mcft.copy.betterstorage.items.ItemLock;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.ICraftingHandler;
/** Ha... | package net.mcft.copy.betterstorage;
import net.mcft.copy.betterstorage.items.ItemKey;
import net.mcft.copy.betterstorage.items.ItemLock;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.ICraftingHandler;
/** Ha... | Fix duplicated key not copying ID correctly | Fix duplicated key not copying ID correctly
| Java | mit | TehStoneMan/BetterStorage,Bunsan/BetterStorage,RX14/BetterStorage,CannibalVox/BetterStorage,TehStoneMan/BetterStorageToo,KingDarkLord/BetterStorage,copygirl/BetterStorage,AnodeCathode/BetterStorage,skyem123/BetterStorage,Adaptivity/BetterStorage |
34ba564e71b887a07f2e44a7d39732225c64860f | gshell-commands/gshell-vfs/src/main/java/org/sonatype/gshell/vfs/selector/package-info.java | gshell-commands/gshell-vfs/src/main/java/org/sonatype/gshell/vfs/selector/package-info.java | /*
* Copyright (C) 2009 the original author(s).
*
* 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 o... | /*
* Copyright (C) 2009 the original author(s).
*
* 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 o... | Add meat to the docs | Add meat to the docs
| Java | apache-2.0 | jdillon/gshell,jdillon/gshell,jdillon/gshell,jdillon/gshell |
70e64c404d3abf0a07c6cdd1094e640051208f14 | xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/v3/service/BitbayTradeServiceRaw.java | xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/v3/service/BitbayTradeServiceRaw.java | package org.knowm.xchange.bitbay.v3.service;
import java.io.IOException;
import java.util.UUID;
import java.util.regex.Pattern;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.bitbay.v3.dto.trade.BitbayUserTrades;
import org.knowm.xchange.bitbay.v3.dto.trade.BitbayUserTradesQuery;
import org.knowm.xchange.... | package org.knowm.xchange.bitbay.v3.service;
import java.io.IOException;
import java.util.UUID;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.bitbay.v3.dto.trade.BitbayUserTrades;
import org.knowm.xchange.bitbay.v3.dto.trade.BitbayUserTradesQuery;
import org.knowm.xchange.exceptions.ExchangeException;
im... | Use compact JSON instead of replacing whitespaces in String | [Bitbay] Use compact JSON instead of replacing whitespaces in String
| Java | mit | douggie/XChange |
e8401ac5a0a7fad8181657ef5a10c5268a428707 | Carrinho.java | Carrinho.java | import java.util.*;
class Carrinho{
ArrayList<Produto> prod = new ArrayList<Produto>();
public double calculaPeso(Produto P){
double peso = 0.0;
for(int i = 0; i < prod.size(); i++) peso += prod.get(i).getPeso();
System.out.println(">>> " + peso);
return peso;
}
public double calculaFrete(double a, doubl... | import java.util.*;
class Carrinho{
ArrayList<Produto> prod = new ArrayList<Produto>();
public double calculaPeso(Produto P){
double peso = 0.0;
for(int i = 0; i < prod.size(); i++) peso += prod.get(i).getPeso();
System.out.println(">>> " + peso);
return peso;
}
public double calculaFrete(double a, doubl... | Add Calculo de distancia no frete | Add Calculo de distancia no frete
| Java | agpl-3.0 | ggabriel96/carrinho |
7860a859ae48106d9a70571ebfb75217579541d0 | sejda-core/src/test/java/org/sejda/core/support/prefix/processor/TextPrefixProcessorTest.java | sejda-core/src/test/java/org/sejda/core/support/prefix/processor/TextPrefixProcessorTest.java | package org.sejda.core.support.prefix.processor;
import org.junit.Test;
import org.sejda.core.support.prefix.model.NameGenerationRequest;
import java.io.File;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class TextPrefixProcessorTest {
... | package org.sejda.core.support.prefix.processor;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.IOException;
import org.junit.Test;
import org.sejda.core.support.prefix.model.NameGenerationRequest;
public class TextPrefixProcessorTest {
... | Delete test file after creation | Delete test file after creation | Java | agpl-3.0 | torakiki/sejda |
80c0202b8f5fd3e7c771866ff6d482333ff7a95e | JECP-Lib/src/com/annimon/jecp/ApplicationListener.java | JECP-Lib/src/com/annimon/jecp/ApplicationListener.java | package com.annimon.jecp;
/**
*
* @author aNNiMON
*/
public interface ApplicationListener {
public void onStartApp();
public void onPauseApp();
public void onDestroyApp();
public void onPaint(JecpGraphics g);
}
| package com.annimon.jecp;
/**
*
* @author aNNiMON
*/
public interface ApplicationListener {
public void onStartApp(int width, int height);
public void onPauseApp();
public void onDestroyApp();
public void onPaint(JecpGraphics g);
}
| Add screen size to onStartApp method | Add screen size to onStartApp method | Java | apache-2.0 | aNNiMON/JECP |
faba749956a7205fbc097e9179289de00cf320ee | src/main/java/mirror/Queues.java | src/main/java/mirror/Queues.java | package mirror;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
public class Queues {
// this is probably too large, but hopefully it will avoid inotify overflow exceptions
public final BlockingQueue<Update> incomingQueue = new ArrayBlockingQueue<>(1_000_000);
public ... | package mirror;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
public class Queues {
// this is probably too large, but hopefully it will avoid inotify overflow exceptions
public final BlockingQueue<Update> incomingQueue = new LinkedBlockingQueue<>(1_000_000);
// Th... | Fix sends blocking due to small queue size. | Fix sends blocking due to small queue size.
| Java | apache-2.0 | stephenh/mirror,stephenh/mirror |
c9c6aa1b2e72aaf65849a61ef588f379b5ad38d3 | app/models/Track.java | app/models/Track.java | package models;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import play.data.validation.MaxSize;
import play.data.validation.Required;
import play.db.jpa.Model;
@Entity
public class Track extends Model implements Comparable<Track>{
@Requir... | package models;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import play.data.validation.MaxSize;
import play.data.validation.Required;
import play.db.jpa.Model;
@Entity
public class Track extends Model implements Comparable<Track>{
@Requir... | Rename "order" to "position" in the track object | Rename "order" to "position" in the track object
| Java | agpl-3.0 | FroMage/RivieraDEV,FroMage/RivieraDEV,FroMage/RivieraDEV |
a6d27c5c722d5991d93c1f0b6e002456f38dd7a1 | src/org/lvcp/eepperly/expr/Variable.java | src/org/lvcp/eepperly/expr/Variable.java | package org.lvcp.eepperly.expr;
import java.util.List;
/**
* Created by eepperly16 on 12/11/15.
*/
public class Variable implements Expr {
private String varName;
public Variable(List<Expr> arguments) {
varName = "X";
}
public Expr differentiate(){
return Expr.ONE;
}
public double evaluate(double value){... | package org.lvcp.eepperly.expr;
import java.util.List;
/**
* Created by eepperly16 on 12/11/15.
*/
public class Variable implements Expr {
private String varName;
public Variable() {
varName = "X";
}
public Variable(String varName){
this.varName = varName;
}
@Override
public Expr differentiate(){
retu... | Add variable equality and improve constructor | Add variable equality and improve constructor
| Java | mit | LVCPCAS/CASJava |
75ad93ff23313993f2d6523288a1a7cbe8d274e6 | basic-lib/src/main/java/com/streamsets/pipeline/stage/processor/parser/DataFormatChooserValues.java | basic-lib/src/main/java/com/streamsets/pipeline/stage/processor/parser/DataFormatChooserValues.java | /**
* Copyright 2017 StreamSets 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 agree... | /**
* Copyright 2017 StreamSets 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 agree... | Add additional data formats to DataParser processor | SDC-6927: Add additional data formats to DataParser processor
Added all data formats that seems "plausible" for a processor. E.g.
all of them except of:
* SDC_JSON
* BINARY
* TEXT
* DATAGRAM
* WHOLE_FILE
Change-Id: Ibbc048f7171d34141715a84e29300b0d2fa364ff
Reviewed-on: https://review.streamsets.net/9604
Tested-by: S... | Java | apache-2.0 | kunickiaj/datacollector,z123/datacollector,rockmkd/datacollector,streamsets/datacollector,rockmkd/datacollector,SandishKumarHN/datacollector,SandishKumarHN/datacollector,z123/datacollector,streamsets/datacollector,SandishKumarHN/datacollector,z123/datacollector,z123/datacollector,kunickiaj/datacollector,z123/datacollec... |
7d4cae64e8a5c76c49f5926dc9791167b09c1750 | spatial-test/src/main/java/org/apache/lucene/spatial/test/strategy/BaseGeohashStrategyTestCase.java | spatial-test/src/main/java/org/apache/lucene/spatial/test/strategy/BaseGeohashStrategyTestCase.java | package org.apache.lucene.spatial.test.strategy;
import org.apache.lucene.spatial.base.context.SpatialContext;
import org.apache.lucene.spatial.base.prefix.GeohashSpatialPrefixGrid;
import org.apache.lucene.spatial.strategy.SimpleSpatialFieldInfo;
import org.apache.lucene.spatial.strategy.prefix.DynamicPrefixStrategy;... | package org.apache.lucene.spatial.test.strategy;
import org.apache.lucene.spatial.base.context.SpatialContext;
import org.apache.lucene.spatial.base.prefix.GeohashSpatialPrefixGrid;
import org.apache.lucene.spatial.strategy.SimpleSpatialFieldInfo;
import org.apache.lucene.spatial.strategy.prefix.DynamicPrefixStrategy;... | Test DynamicPrefixStrategy for each grid scan level (an internal threshold) to tease out possible bugs. | Test DynamicPrefixStrategy for each grid scan level (an internal threshold) to tease out possible bugs.
| Java | apache-2.0 | jdeolive/spatial4j,ryantxu/spatial-solr-sandbox,varsis/spatial4j,jdeolive/spatial4j |
9f5c0dd869cd2f9e9163831924d436d8102fee81 | src/main/java/com/tmitim/twittercli/commands/Tweet.java | src/main/java/com/tmitim/twittercli/commands/Tweet.java | package com.tmitim.twittercli.commands;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.github.rvesse.airline.SingleCommand;
import com.github.rvesse.airline.annotations.Arguments;
import com.github.rvesse.airline.annotations.Command;
import com.github.rvesse.airline.annotations.Option... | package com.tmitim.twittercli.commands;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.github.rvesse.airline.SingleCommand;
import com.github.rvesse.airline.annotations.Arguments;
import com.github.rvesse.airline.annotations.Command;
import twitter4j.Status;
import twitter4j.Twitter;
... | Remove unused argument/flag when tweeting | Remove unused argument/flag when tweeting
| Java | apache-2.0 | tmitim/twittercli4j,tmitim/twittercli4j |
0f1e145ded809e6ce5f8c78de1361bddb61b1072 | src/main/java/nallar/tickthreading/mixin/world/MixinWorld.java | src/main/java/nallar/tickthreading/mixin/world/MixinWorld.java | package nallar.tickthreading.mixin.world;
import me.nallar.mixin.Add;
import me.nallar.mixin.Mixin;
import net.minecraft.world.World;
@Mixin
public abstract class MixinWorld extends World {
@Add
public boolean unloaded_;
@Add
private String cachedName_;
protected MixinWorld() {
super(null, null, null, null, f... | package nallar.tickthreading.mixin.world;
import me.nallar.mixin.Add;
import me.nallar.mixin.Mixin;
import net.minecraft.world.World;
@Mixin
public abstract class MixinWorld extends World {
@Add
public boolean unloaded_;
@Add
private String cachedName_;
protected MixinWorld() {
super(null, null, null, null, f... | Add more useful toString for World than the default | Add more useful toString for World than the default
| Java | mit | nallar/TickThreading |
7af8c05514e4f90e83dbfbff17ef0d81436d37fd | src/common/me/nallar/collections/ListSet.java | src/common/me/nallar/collections/ListSet.java | package me.nallar.collections;
import me.nallar.tickthreading.Log;
import net.minecraft.world.World;
public class ListSet extends SynchronizedList {
@Override
public synchronized boolean add(final Object o) {
if (o instanceof World) {
World world = (World) o;
for (World world_ : (Iterable<World>) ... | package me.nallar.collections;
import java.util.Iterator;
import me.nallar.tickthreading.Log;
import net.minecraft.world.World;
import net.minecraft.world.WorldProvider;
public class ListSet extends SynchronizedList {
@Override
public synchronized boolean add(final Object o) {
if (o instanceof World) ... | Fix crash on login with broken bukkit dimensions list | Fix crash on login with broken bukkit dimensions list
Signed-off-by: Ross Allan <ca2c77e14df1e7ee673215c1ef658354e220f471@gmail.com>
| Java | mit | nallar/TickThreading |
19b1dde9b283f795f299a8db06c473b7bcddeab8 | core/src/test/java/org/granchi/hollywood/ModelTest.java | core/src/test/java/org/granchi/hollywood/ModelTest.java | package org.granchi.hollywood;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
import static com.google.common.truth.Truth.assertThat;
@RunWith(MockitoJUnitRunner.class)
public class ModelTest {
@Test
public void testGetSubmodelsOfSameType() throws Excepti... | package org.granchi.hollywood;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
import static com.google.common.truth.Truth.assertThat;
@RunWith(MockitoJUnitRunner.class)
public class ModelTest {
@Test
public void testGetSubmodelsOfSameType() throws Excepti... | Make test inner classes static | Make test inner classes static
| Java | apache-2.0 | serandel/hollywood,serandel/hollywood |
e886f86e7f16c5c40d540e0f11fdd71a9dde9a78 | src/main/java/seedu/task/alerts/TransferTaskAlert.java | src/main/java/seedu/task/alerts/TransferTaskAlert.java | package seedu.task.alerts;
import java.util.Optional;
import javafx.scene.control.Alert;
import javafx.scene.control.ButtonType;
//@@author A0142360U
public class TransferTaskAlert extends Alert {
public static final String CHANGE_DIRECTORY_COMMAND_TITLE = "Change of Task Storage Directory";
public static f... | package seedu.task.alerts;
import java.util.Optional;
import javafx.scene.control.Alert;
import javafx.scene.control.ButtonType;
//@@author A0142360U
public class TransferTaskAlert extends Alert {
public static final String CHANGE_DIRECTORY_COMMAND_TITLE = "Change of Task Storage Directory";
public static f... | Change in warning message when user attempts to change task storage directory | Change in warning message when user attempts to change task storage directory
| Java | mit | CS2103AUG2016-T17-C1/main |
dcc9ff8862f2fb4066db184cb2492704d40f837b | src/main/java/SW9/model_canvas/arrow_heads/SimpleArrowHead.java | src/main/java/SW9/model_canvas/arrow_heads/SimpleArrowHead.java | package SW9.model_canvas.arrow_heads;
import javafx.scene.paint.Color;
import javafx.scene.shape.LineTo;
import javafx.scene.shape.MoveTo;
import javafx.scene.shape.Path;
public class SimpleArrowHead extends ArrowHead {
private static final double TRIANGLE_LENGTH = 20d;
private static final double TRIANGLE_W... | package SW9.model_canvas.arrow_heads;
import javafx.scene.shape.Line;
public class SimpleArrowHead extends ArrowHead {
private static final double TRIANGLE_LENGTH = 20d;
private static final double TRIANGLE_WIDTH = 15d;
public SimpleArrowHead() {
super();
addChildren(initializeLeftArrow... | Refactor simple arrow head to use two lines instead of path | Refactor simple arrow head to use two lines instead of path
| Java | mit | ulriknyman/H-Uppaal |
42bb983128d42efc13a9a9a8cf501823f8e417ff | core/src/main/java/io/undertow/io/DefaultIoCallback.java | core/src/main/java/io/undertow/io/DefaultIoCallback.java | package io.undertow.io;
import java.io.IOException;
import io.undertow.UndertowLogger;
import io.undertow.server.HttpServerExchange;
import org.xnio.IoUtils;
/**
* A default callback implementation that simply ends the exchange
*
* @author Stuart Douglas
* @see IoCallback#END_EXCHANGE
*/
public class DefaultIoC... | package io.undertow.io;
import java.io.IOException;
import io.undertow.UndertowLogger;
import io.undertow.server.HttpServerExchange;
import org.xnio.IoUtils;
/**
* A default callback implementation that simply ends the exchange
*
* @author Stuart Douglas
* @see IoCallback#END_EXCHANGE
*/
public class DefaultIoC... | Fix issue with the default IO callback | Fix issue with the default IO callback
| Java | apache-2.0 | aradchykov/undertow,grassjedi/undertow,golovnin/undertow,rogerchina/undertow,yonglehou/undertow,wildfly-security-incubator/undertow,amannm/undertow,biddyweb/undertow,rhatlapa/undertow,amannm/undertow,n1hility/undertow,jamezp/undertow,ctomc/undertow,jstourac/undertow,rhatlapa/undertow,soul2zimate/undertow,jasonchaffee/u... |
dd99a6355292825f7c01ed098abf0be148083cf6 | src/com/gh4a/loader/IsCollaboratorLoader.java | src/com/gh4a/loader/IsCollaboratorLoader.java | package com.gh4a.loader;
import java.io.IOException;
import org.eclipse.egit.github.core.RepositoryId;
import org.eclipse.egit.github.core.client.RequestException;
import org.eclipse.egit.github.core.service.CollaboratorService;
import android.content.Context;
import com.gh4a.Gh4Application;
public class IsCollabo... | package com.gh4a.loader;
import java.io.IOException;
import org.eclipse.egit.github.core.RepositoryId;
import org.eclipse.egit.github.core.client.RequestException;
import org.eclipse.egit.github.core.service.CollaboratorService;
import android.content.Context;
import com.gh4a.Gh4Application;
public class IsCollabo... | Fix load failure if not logged in. | Fix load failure if not logged in.
| Java | apache-2.0 | edyesed/gh4a,slapperwan/gh4a,edyesed/gh4a,slapperwan/gh4a |
f030aedd7a82635aba3ac6baef106a260e1ffaaf | src/org/robockets/robotswitcher/Switcher.java | src/org/robockets/robotswitcher/Switcher.java | package org.robockets.robotswitcher;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
/** Used to get and initialize a SmartDashboard field for a robot number
*
*
* @author Jake Backer
* @version
v.1.sleepy.1.0.ocean.1450230474.7
*
*
*
*
*/
public class Switcher {
/** Holds the value of t... | package org.robockets.robotswitcher;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
/** Used to get and initialize a SmartDashboard field for a robot number
*
*
* @author Jake Backer
* @version
v.1.sleepy.1.0.ocean.1450230474.7
*
*
*
*
*/
public class Switcher {
/** Holds the value of t... | Change what happens when there is no field on SmartDashboard | Change what happens when there is no field on SmartDashboard
| Java | mit | Team4761/RobotSwitcher,Team4761/Robot-Switcher |
e3bf6e047daeb0f631ef12e602b755b61156c2da | src/org/sosy_lab/solver/z3java/Z3JavaLoadingTest.java | src/org/sosy_lab/solver/z3java/Z3JavaLoadingTest.java | /*
* JavaSMT is an API wrapper for a collection of SMT solvers.
* This file is part of JavaSMT.
*
* Copyright (C) 2007-2015 Dirk Beyer
* 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 ... | /*
* JavaSMT is an API wrapper for a collection of SMT solvers.
* This file is part of JavaSMT.
*
* Copyright (C) 2007-2015 Dirk Beyer
* 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 ... | Test whether Z3Java can be loaded in a simpler way. | Test whether Z3Java can be loaded in a simpler way.
| Java | apache-2.0 | sosy-lab/java-smt,sosy-lab/java-smt,sosy-lab/java-smt,sosy-lab/java-smt,sosy-lab/java-smt |
8d05c16edeba7423bca08753bd9bd549968b105d | app/controllers/Application.java | app/controllers/Application.java | package controllers;
import play.*;
import play.mvc.*;
import play.db.jpa.*;
import views.html.*;
public class Application extends Controller {
public Result index() {
return ok(index.render("Hello World!"));
}
}
| package controllers;
import play.*;
import play.mvc.*;
import play.db.jpa.*;
import views.html.*;
public class Application extends Controller {
public Result index() {
return ok(index.render("System started"));
}
}
| Replace Hello World with something more professional | Replace Hello World with something more professional
| Java | agpl-3.0 | m4tx/arroch,m4tx/arroch |
00a94ff50d96c12ca1a6c7644b8fc5bd4f43f3b5 | project_files/src/jvm/udacity/storm/tools/SentimentAnalyzer.java | project_files/src/jvm/udacity/storm/tools/SentimentAnalyzer.java | package udacity.storm.tools;
import java.util.Properties;
import edu.stanford.nlp.ling.CoreAnnotations;
import edu.stanford.nlp.neural.rnn.RNNCoreAnnotations;
import edu.stanford.nlp.pipeline.Annotation;
import edu.stanford.nlp.pipeline.StanfordCoreNLP;
import edu.stanford.nlp.sentiment.SentimentCoreAnnotations;
impo... | package udacity.storm.tools;
import java.util.Properties;
import edu.stanford.nlp.ling.CoreAnnotations;
import edu.stanford.nlp.neural.rnn.RNNCoreAnnotations;
import edu.stanford.nlp.pipeline.Annotation;
import edu.stanford.nlp.pipeline.StanfordCoreNLP;
import edu.stanford.nlp.sentiment.SentimentCoreAnnotations;
impo... | Use binary scores to represent sentiment in map | Use binary scores to represent sentiment in map
| Java | mit | onyb/storm-project,onyb/storm-project,onyb/storm-project,onyb/storm-project,onyb/storm-project |
30c3300bd6b8478e6b4f3512a975f0c366e9ca1a | app/src/main/java/ee/shy/core/Remote.java | app/src/main/java/ee/shy/core/Remote.java | package ee.shy.core;
import ee.shy.io.Jsonable;
import ee.shy.io.Validated;
import java.net.URI;
import java.util.Objects;
/**
* Class representing a remote repository's URI.
*/
public class Remote implements Jsonable, Validated {
/**
* Repository's URI.
*/
private final URI remote;
/**
... | package ee.shy.core;
import ee.shy.io.Jsonable;
import ee.shy.io.Validated;
import java.net.URI;
import java.util.Objects;
/**
* Class representing a remote repository's URI.
*/
public class Remote implements Jsonable, Validated {
/**
* Repository's URI.
*/
private final URI uri;
/**
* ... | Rename remote field to uri. | Rename remote field to uri.
| Java | mit | sim642/shy,sim642/shy |
052d406b8c08d04884b4db9e1312ee2230dc1e1a | examples/android-simple/src/main/java/com/example/dagger/simple/DemoApplication.java | examples/android-simple/src/main/java/com/example/dagger/simple/DemoApplication.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 agreed to... | /*
* 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 agreed to... | Include DemoModule in module list for simple Android example. | Include DemoModule in module list for simple Android example.
| Java | apache-2.0 | jgabrielfreitas/dagger,mondoktamas/dagger,square/dagger,andyao/dagger,marcelohd/dagger,e10dokup/dagger,hanks-zyh/dagger,Suninus/dagger,hansonchar/dagger,google/dagger,bboyfeiyu/dagger,awesome-niu/dagger,CQUMonk/dagger,amudev007/dagger,Gurtz/dagger,amudev007/dagger,chundongwang/dagger,Godchin1990/dagger,hansonchar/dagge... |
aac886ec005e94b97d346df6f9f9f39342b3890f | src/main/java/env/Env.java | src/main/java/env/Env.java | package env;
import types.*;
public class Env {
public Table<Type> tenv;
public Table<Type> venv;
public Env() {
tenv = new Table<Type>();
put(tenv, "unit", UNIT.T);
put(tenv, "int", INT.T);
put(tenv, "real", REAL.T);
put(tenv, "bool", BOOL.T);
venv = new Table<Type>();
put(venv,... | package env;
import types.*;
public class Env {
public Table<Type> tenv;
public Table<Type> venv;
public Env() {
tenv = new Table<Type>();
put(tenv, "unit", UNIT.T);
put(tenv, "int", INT.T);
put(tenv, "real", REAL.T);
put(tenv, "bool", BOOL.T);
venv = new Table<Type>();
put(venv,... | Add the 'not' function to the initial environment | Add the 'not' function to the initial environment
| Java | mit | romildo/eplan,romildo/eplan |
198558a1a0307df053abba39188d12f0a1693928 | core/api/src/main/java/org/onosproject/net/GridType.java | core/api/src/main/java/org/onosproject/net/GridType.java | /*
* Copyright 2015 Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | /*
* Copyright 2015 Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | Remove RES definition as potential use case is unknow right now | Remove RES definition as potential use case is unknow right now
Change-Id: I6d7d44598755632dbe5d069bc0de3e740e7ccc17
| Java | apache-2.0 | chinghanyu/onos,Shashikanth-Huawei/bmp,LorenzReinhart/ONOSnew,zsh2938/onos,lsinfo3/onos,zsh2938/onos,osinstom/onos,rvhub/onos,oplinkoms/onos,sdnwiselab/onos,VinodKumarS-Huawei/ietf96yang,chenxiuyang/onos,zsh2938/onos,osinstom/onos,chenxiuyang/onos,donNewtonAlpha/onos,mengmoya/onos,Shashikanth-Huawei/bmp,kuujo/onos,meng... |
9869d4c0e57686c07da89d571b5c33ed16c90c61 | src/main/java/game/Game.java | src/main/java/game/Game.java | package game;
import model.Grid;
/**
* Created by kuro on 10/03/16.
*/
public class Game {
private Grid grid;
private boolean gameLooping;
private long now, last;
public Game()
{
//Setup game environement here
grid = new Grid();
gameLooping = true;
}
/**
... | package game;
import model.Grid;
/**
* Created by kuro on 10/03/16.
*/
public class Game {
private Grid grid;
private Player player0;
private boolean gameLooping;
private long now, last;
public Game()
{
//Setup game environement here
grid = new Grid();
gameLooping =... | Add player object to game | Add player object to game
| Java | mit | Ybalrid/TP_4A_ESIEA_Tetris |
0ca8675e196eb45d28bb42233d9bdaeb3165b6a4 | maven-core/src/main/java/org/apache/maven/lifecycle/statemgmt/StartForkedExecutionMojo.java | maven-core/src/main/java/org/apache/maven/lifecycle/statemgmt/StartForkedExecutionMojo.java | package org.apache.maven.lifecycle.statemgmt;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.project.MavenProject;
/**
* Setup a new projec... | package org.apache.maven.lifecycle.statemgmt;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.project.MavenProject;
/**
* Setup a new projec... | Implement clone properly following Effective Java' book considerations | [MNG-3400] Implement clone properly following Effective Java' book considerations
git-svn-id: 2c527eb49caa05e19d6b2be874bf74fa9d7ea670@627935 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | runepeter/maven-deploy-plugin-2.8.1,lbndev/maven,josephw/maven,mcculls/maven,changbai1980/maven,changbai1980/maven,lbndev/maven,stephenc/maven,cstamas/maven,barthel/maven,Mounika-Chirukuri/maven,keith-turner/maven,gorcz/maven,njuneau/maven,aheritier/maven,karthikjaps/maven,runepeter/maven-deploy-plugin-2.8.1,apache/mav... |
1037bbdc2b0b607b5582aa94984a855fd769764f | src/main/java/io/mandrel/common/export/JsonExporter.java | src/main/java/io/mandrel/common/export/JsonExporter.java | package io.mandrel.common.export;
import io.mandrel.common.content.FieldExtractor;
import io.mandrel.common.store.Document;
import java.io.IOException;
import java.io.Writer;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import lombok.Data;
import org.springframework.uti... | package io.mandrel.common.export;
import io.mandrel.common.content.FieldExtractor;
import io.mandrel.common.store.Document;
import java.io.IOException;
import java.io.Writer;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import lombok.Data;
import org.springframework.uti... | Write data in dedicated writer | Write data in dedicated writer
| Java | apache-2.0 | Treydone/mandrel,Treydone/mandrel,Treydone/mandrel,Treydone/mandrel |
7295998abd322eb591626011ae5bed491cd26799 | src/test/java/net/sf/jabref/JabRefPreferencesTest.java | src/test/java/net/sf/jabref/JabRefPreferencesTest.java | package net.sf.jabref;
import static org.junit.Assert.assertEquals;
import java.io.File;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class JabRefPreferencesTest {
private JabRefPreferences prefs;
private JabRefPreferences backup;
@Before
public void setUp() {
... | package net.sf.jabref;
import static org.junit.Assert.assertEquals;
import java.io.File;
import java.nio.charset.StandardCharsets;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class JabRefPreferencesTest {
private JabRefPreferences prefs;
private JabRefPreferences backup;... | Add test for getting/setting default encoding in preferences | Add test for getting/setting default encoding in preferences
| Java | mit | grimes2/jabref,sauliusg/jabref,zellerdev/jabref,zellerdev/jabref,bartsch-dev/jabref,oscargus/jabref,obraliar/jabref,Braunch/jabref,motokito/jabref,obraliar/jabref,Braunch/jabref,mredaelli/jabref,tschechlovdev/jabref,JabRef/jabref,ayanai1/jabref,motokito/jabref,shitikanth/jabref,mredaelli/jabref,bartsch-dev/jabref,obral... |
343fa295a489251dfd77c63f70f83851f6b87eee | app/src/main/java/edu/deanza/calendar/SearchActivity.java | app/src/main/java/edu/deanza/calendar/SearchActivity.java | package edu.deanza.calendar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.facebook.AccessToken;
import com.facebook.FacebookSdk;
import com.facebook.GraphRequest;
import com.facebook.GraphResponse;
import com.facebook.HttpMethod;
import com.facebook.appevents.AppEventsLogger;
... | package edu.deanza.calendar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import edu.deanza.R;
public class SearchActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentVi... | Remove non-MVP Graph API calls | Remove non-MVP Graph API calls
| Java | apache-2.0 | saraelz/DA-Now |
2a9eba8fcdf24da8d2098c0c4a2e9b10580127c9 | library/src/main/java/com/rejasupotaro/octodroid/GsonProvider.java | library/src/main/java/com/rejasupotaro/octodroid/GsonProvider.java | package com.rejasupotaro.octodroid;
import com.google.gson.Gson;
public class GsonProvider {
private static Gson gson = new Gson();
public static void set(Gson gson) {
GsonProvider.gson = gson;
}
public static Gson get() {
return gson;
}
}
| package com.rejasupotaro.octodroid;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
public class GsonProvider {
private static Gson gson = new GsonBuilder().setPrettyPrinting().create();
public static void set(Gson gson) {
GsonProvider.gson = gson;
}
public static Gson get()... | Enable to print formatted json | Enable to print formatted json
| Java | mit | rejasupotaro/octodroid,rejasupotaro/octodroid |
17c24de2f87e8f7140098c5d74c376295956eb6c | java_src/foam/lib/json/FObjectParser.java | java_src/foam/lib/json/FObjectParser.java | package foam.lib.json;
import foam.lib.parse.*;
public class FObjectParser extends ProxyParser {
public FObjectParser() {
super(new Seq1(7,
new Whitespace(),
new Literal("{"),
new Whitespace(),
new KeyParser("class"),
... | package foam.lib.json;
import foam.lib.parse.*;
public class FObjectParser extends ProxyParser {
public FObjectParser() {
super(new Seq1(7,
new Whitespace(),
new Literal("{"),
new Whitespace(),
new KeyParser("class"),
... | Remove logging statment used for debugging. | Remove logging statment used for debugging.
| Java | apache-2.0 | foam-framework/foam2,TanayParikh/foam2,jacksonic/vjlofvhjfgm,jacksonic/vjlofvhjfgm,TanayParikh/foam2,TanayParikh/foam2,TanayParikh/foam2,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,jacksonic/vjlofvhjfgm |
6308603c3cde63ed79ea3c68c99b443562756244 | src/main/java/com/kryptnostic/api/v1/client/FileStore.java | src/main/java/com/kryptnostic/api/v1/client/FileStore.java | package com.kryptnostic.api.v1.client;
import java.io.File;
import java.io.IOException;
import com.google.common.hash.HashFunction;
import com.google.common.hash.Hashing;
import com.google.common.io.Files;
import com.kryptnostic.kodex.v1.storage.DataStore;
/**
* A simple implementation of the client datastore. The ... | package com.kryptnostic.api.v1.client;
import java.io.File;
import java.io.IOException;
import org.apache.commons.codec.binary.Hex;
import com.google.common.hash.HashFunction;
import com.google.common.hash.Hashing;
import com.google.common.io.Files;
import com.kryptnostic.kodex.v1.storage.DataStore;
/**
* A simple... | Switch to hex encoding for key values | Switch to hex encoding for key values
| Java | apache-2.0 | kryptnostic/iris |
f3f65481bbd2f8ef90303eb2c2b4f5d0c79012af | src/com/kurento/kas/media/rx/AudioRx.java | src/com/kurento/kas/media/rx/AudioRx.java | /*
* Kurento Android Media: Android Media Library based on FFmpeg.
* Copyright (C) 2011 Tikal Technologies
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3
* as published by the Free Software Foundation.
*
* This program i... | /*
* Kurento Android Media: Android Media Library based on FFmpeg.
* Copyright (C) 2011 Tikal Technologies
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3
* as published by the Free Software Foundation.
*
* This program i... | Add nFrame parameter in putAudioSamplesRx method. | Add nFrame parameter in putAudioSamplesRx method.
| Java | lgpl-2.1 | KurentoLegacy/kas-media |
50b6fafa9f040bb1f8c9ec563220b49f50c44645 | src/main/java/net/sf/taverna/t2/component/ComponentHealthCheck.java | src/main/java/net/sf/taverna/t2/component/ComponentHealthCheck.java | package net.sf.taverna.t2.component;
import net.sf.taverna.t2.visit.VisitKind;
import net.sf.taverna.t2.visit.Visitor;
public class ComponentHealthCheck extends VisitKind {
public static final int NO_PROBLEM = 0;
public static final int OUT_OF_DATE = 10;
public static final int NON_SHAREABLE = 20;
public static f... | package net.sf.taverna.t2.component;
import net.sf.taverna.t2.visit.VisitKind;
import net.sf.taverna.t2.visit.Visitor;
public class ComponentHealthCheck extends VisitKind {
public static final int NO_PROBLEM = 0;
public static final int OUT_OF_DATE = 10;
public static final int NON_SHAREABLE = 20;
public static f... | Reduce number/scope of warning suppressions. Consolidate node-list manipulation into one place, which in turn is implemented correctly. | Reduce number/scope of warning suppressions.
Consolidate node-list manipulation into one place, which in turn is implemented correctly.
git-svn-id: e7a1cf118dbd81641b56f1cead84a0876efec607@16178 bf327186-88b3-11dd-a302-d386e5130c1c
| Java | apache-2.0 | apache/incubator-taverna-plugin-component |
3ee2f850c5d092b8311a87354b14e03f68823cc1 | src/test/java/entityframe/test/Class1List.java | src/test/java/entityframe/test/Class1List.java | package entityframe.test;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import com.darwinsys.entityframe.*;
public class DemoEntityList extends EntityList<Class1> {
@PersistenceContext(unitName = "ds_demo")
protected EntityManager entityManager;
@Override
public EntityMa... | package entityframe.test;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import com.darwinsys.entityframe.*;
public class Class1List extends EntityList<Class1> {
@PersistenceContext(unitName = "ds_demo")
protected EntityManager entityManager;
@Override
public EntityManage... | Make things compile again after some file renames. | Make things compile again after some file renames.
| Java | bsd-2-clause | IanDarwin/EntityFramework |
ed1d37d35681940f68b38394e4744752b7ee944d | src/main/java/net/imagej/server/Main.java | src/main/java/net/imagej/server/Main.java | /*
* #%L
* ImageJ server for RESTful access to ImageJ.
* %%
* Copyright (C) 2013 - 2016 Board of Regents of the University of
* Wisconsin-Madison.
* %%
* 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... | /*
* #%L
* ImageJ server for RESTful access to ImageJ.
* %%
* Copyright (C) 2013 - 2016 Board of Regents of the University of
* Wisconsin-Madison.
* %%
* 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... | Set ImageJ to headless in main method | Set ImageJ to headless in main method
| Java | apache-2.0 | imagej/imagej-server,imagej/imagej-server,imagej/imagej-server,imagej/imagej-server,imagej/imagej-server,imagej/imagej-server |
12ca87a18c7c502881d0a014a7208b72eaab36e5 | src/main/java/com/github/arteam/jdbi3/JdbiHealthCheck.java | src/main/java/com/github/arteam/jdbi3/JdbiHealthCheck.java | package com.github.arteam.jdbi3;
import com.codahale.metrics.health.HealthCheck;
import io.dropwizard.db.TimeBoundHealthCheck;
import io.dropwizard.util.Duration;
import org.jdbi.v3.core.Handle;
import org.jdbi.v3.core.Jdbi;
import java.util.concurrent.ExecutorService;
/**
* @author Artem Prigoda
* @since 28.07.16... | package com.github.arteam.jdbi3;
import com.codahale.metrics.health.HealthCheck;
import io.dropwizard.db.TimeBoundHealthCheck;
import io.dropwizard.util.Duration;
import org.jdbi.v3.core.Handle;
import org.jdbi.v3.core.Jdbi;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.Executor... | Add error handling and logging to healthcheck | Add error handling and logging to healthcheck | Java | mit | arteam/dropwizard-jdbi3 |
f5087e70e1167902247004abf247e4800fc89cfe | src/ui/DataLabel.java | src/ui/DataLabel.java | package com.ui;
import com.ui.TelemetryListener;
import java.awt.*;
import javax.imageio.*;
import javax.swing.*;
import java.awt.FontMetrics;
public class DataLabel extends JLabel implements TelemetryListener{
private String label;
private String suffix;
private double data;
private int maxWidth;
private ... | package com.ui;
import com.ui.TelemetryListener;
import java.awt.*;
import javax.imageio.*;
import javax.swing.*;
import java.awt.FontMetrics;
public class DataLabel extends JLabel implements TelemetryListener{
private String label;
private String suffix;
private double data;
private int maxWidth;
private ... | Fix error in previous commit | Fix error in previous commit
| Java | apache-2.0 | MINDS-i/Dashboard,MINDS-i/Dashboard,MINDS-i/Dashboard |
0afbd19a7750d5b8dd45a8aeed0e5be0df88b26e | src/main/java/net/shadowfacts/foodies/recipe/FRecipes.java | src/main/java/net/shadowfacts/foodies/recipe/FRecipes.java | package net.shadowfacts.foodies.recipe;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.shadowfacts.foodies.item.FItems;
/**
* A helper class for registering recipes.
* @author shadowfacts
*/
public class FRecipes {
public static v... | package net.shadowfacts.foodies.recipe;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.shadowfacts.foodies.item.FItems;
/**
* A helper class for registering recipes.
* @author shadowfacts
*/
public class FRecipes {
public static v... | Add recipes for new things | Add recipes for new things
| Java | lgpl-2.1 | shadowfacts/Foodies |
90fe366aff1531c6c613e99d018afee6650a000f | src/java/com/threerings/whirled/server/SceneManager.java | src/java/com/threerings/whirled/server/SceneManager.java | //
// $Id: SceneManager.java,v 1.2 2001/08/21 01:07:19 mdb Exp $
package com.threerings.whirled.server;
import com.threerings.cocktail.party.server.PlaceManager;
import com.threerings.whirled.data.Scene;
public class SceneManager extends PlaceManager
{
public Scene getScene ()
{
return _scene;
}
... | //
// $Id: SceneManager.java,v 1.3 2001/08/22 00:09:52 mdb Exp $
package com.threerings.whirled.server;
import com.threerings.cocktail.party.chat.ChatMessageHandler;
import com.threerings.cocktail.party.chat.ChatService;
import com.threerings.cocktail.party.server.PlaceManager;
import com.threerings.whirled.data.Sce... | Add chat support by default into the Whirled scene manager. This will probably come out again because it should really be added by the manager used by the target application. They may not want exactly the same kind of chat support. | Add chat support by default into the Whirled scene manager. This will
probably come out again because it should really be added by the manager
used by the target application. They may not want exactly the same kind of
chat support.
git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@307 542714f4-19e9-0310-aa3c-eee0f... | Java | lgpl-2.1 | threerings/narya,threerings/narya,threerings/narya,threerings/narya,threerings/narya |
6a75e95d3a6d4ad9487b83b36d89a96ace5daa5c | src/main/java/fr/vergne/taskmanager/history/DefaultHistorizable.java | src/main/java/fr/vergne/taskmanager/history/DefaultHistorizable.java | package fr.vergne.taskmanager.history;
public class DefaultHistorizable<T> implements Historizable<T> {
private final boolean isNullForbiden;
public DefaultHistorizable(boolean forbidNull) {
isNullForbiden = forbidNull;
}
public DefaultHistorizable() {
this(false);
}
public T get() {
return history.get... | package fr.vergne.taskmanager.history;
public class DefaultHistorizable<T> implements Historizable<T> {
private final boolean isNullForbiden;
public DefaultHistorizable(T initialValue, boolean forbidNull) {
this(forbidNull);
set(initialValue);
}
public DefaultHistorizable(T initialValue) {
this(initialVal... | Add constructors with initial value. | Add constructors with initial value. | Java | bsd-3-clause | matthieu-vergne/Task-Manager |
ad613eec448f9aae867ce1c4448a373b1c9be0e1 | src/GeeksforGeeksPractice/_0016PrintAncestorsOfANode.java | src/GeeksforGeeksPractice/_0016PrintAncestorsOfANode.java | package GeeksforGeeksPractice;
public class _0016PrintAncestorsOfANode {
public static class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) { val = x; }
}
public static void main(String args[]){
TreeNode tn=new TreeNode(50);
tn.left=new TreeNode(8);
tn.right=new TreeNod... | package GeeksforGeeksPractice;
import java.util.Arrays;
public class _0016PrintAncestorsOfANode {
static int[] path;
public static class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) { val = x; }
}
public static void main(String args[]){
path=new int[1000];
TreeNode ... | Print ancestors of a node completed | Print ancestors of a node completed | Java | mit | darshanhs90/Java-Coding,darshanhs90/Java-InterviewPrep |
b69fc5e6691386d80e9784528daa953424d6536f | app/src/main/java/com/genymobile/pr/model/PullRequest.java | app/src/main/java/com/genymobile/pr/model/PullRequest.java | package com.genymobile.pr.model;
import com.google.gson.annotations.SerializedName;
public class PullRequest {
private String title;
private Head head;
private String body;
private User user;
@SerializedName("html_url")
private String htmlUrl;
public String getTitle() {
return tit... | package com.genymobile.pr.model;
import com.google.gson.annotations.SerializedName;
public class PullRequest {
private String title;
private Head head;
private String body;
private User user;
@SerializedName("html_url")
private String htmlUrl;
private int number;
public String getTitl... | Add the number field to the PR model object | Add the number field to the PR model object
| Java | apache-2.0 | amasciulli/GmPR-Android |
58c9955515a0a70be0d19264b5cfa60e84204869 | src/main/java/mnm/mods/tabbychat/filters/MessageFilter.java | src/main/java/mnm/mods/tabbychat/filters/MessageFilter.java | package mnm.mods.tabbychat.filters;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
import mnm.mods.tabbychat.TabbyChat;
import mnm.mods.tabbychat.api.Channel;
import mnm.mods.tabbychat.api.TabbyAPI;
import mnm.mods.tabbychat.api.filters.Filter;
import mnm.mods.tabbychat.api.filters.Fil... | package mnm.mods.tabbychat.filters;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
import mnm.mods.tabbychat.TabbyChat;
import mnm.mods.tabbychat.api.Channel;
import mnm.mods.tabbychat.api.TabbyAPI;
import mnm.mods.tabbychat.api.filters.Filter;
import mnm.mods.tabbychat.api.filters.Fil... | Fix for incoming PM matches always being null. | Fix for incoming PM matches always being null.
| Java | apache-2.0 | killjoy1221/TabbyChat-2 |
e34f0202f23329ed3b73db41237d36ae41f3fb7c | src/test/java/info/u_team/u_team_test/init/TestScreens.java | src/test/java/info/u_team/u_team_test/init/TestScreens.java | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.util.registry.MainThreadWorker;
import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.screen.*;
import net.minecraft.client.gui.ScreenManager;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.eventbus.api.Subs... | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.util.registry.*;
import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.screen.*;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod.EventBusS... | Use the ClientRegistry Method in screen register to make it allow the registry object supplier | Use the ClientRegistry Method in screen register to make it allow the
registry object supplier | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
06540939946648cff2428e5c5ff4d2ac69c8be19 | src/main/java/org/jabref/gui/remote/JabRefMessageHandler.java | src/main/java/org/jabref/gui/remote/JabRefMessageHandler.java | package org.jabref.gui.remote;
import java.util.Arrays;
import java.util.List;
import org.jabref.JabRefGUI;
import org.jabref.cli.ArgumentProcessor;
import org.jabref.logic.importer.ParserResult;
import org.jabref.logic.remote.server.MessageHandler;
public class JabRefMessageHandler implements MessageHandler {
... | package org.jabref.gui.remote;
import java.util.Arrays;
import java.util.List;
import javafx.application.Platform;
import org.jabref.JabRefGUI;
import org.jabref.cli.ArgumentProcessor;
import org.jabref.logic.importer.ParserResult;
import org.jabref.logic.remote.server.MessageHandler;
public class JabRefMessageHand... | Fix NotOnJavaFXThread exception for remote import | Fix NotOnJavaFXThread exception for remote import
| Java | mit | sauliusg/jabref,JabRef/jabref,zellerdev/jabref,JabRef/jabref,sauliusg/jabref,Siedlerchr/jabref,zellerdev/jabref,sauliusg/jabref,Siedlerchr/jabref,zellerdev/jabref,JabRef/jabref,Siedlerchr/jabref,zellerdev/jabref,JabRef/jabref,zellerdev/jabref,Siedlerchr/jabref,sauliusg/jabref |
c96694bbccfda3dfa05b1efd6504c7b65d949ff6 | Minter/src/main/java/com/hida/model/NotEnoughPermutationsException.java | Minter/src/main/java/com/hida/model/NotEnoughPermutationsException.java | package com.hida.model;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
/**
* An exception used to display how many permutations actually remain and the requested amount
* that caused an error.
* @au... | package com.hida.model;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
/**
* An exception used to display how many permutations actually remain and the requested amount
* that caused an error.
* @author lruffin
*/
@ResponseStatus(value = HttpStatus.BAD_R... | Remove all instances of Logger and its imports | Remove all instances of Logger and its imports
| Java | apache-2.0 | Khyzad/PID-webservice,HawaiiStateDigitalArchives/PID-webservice,HawaiiStateDigitalArchives/PID-webservice,Khyzad/PID-webservice |
fd6bead303f4a491a051bff68289f2cd677cd936 | src/test/java/examples/ssl/SSLExample.java | src/test/java/examples/ssl/SSLExample.java | package examples.ssl;
import com.vtence.molecule.WebServer;
import java.io.IOException;
import java.security.GeneralSecurityException;
import static com.vtence.molecule.testing.ResourceLocator.locateOnClasspath;
public class SSLExample {
public void run(WebServer server) throws IOException, GeneralSecurityExce... | package examples.ssl;
import com.vtence.molecule.WebServer;
import java.io.File;
import java.io.IOException;
import java.security.GeneralSecurityException;
import static com.vtence.molecule.testing.ResourceLocator.locateOnClasspath;
/**
* <p>
* In this example we show how to create an start an HTTPS server. We us... | Add javadoc to the ssl example | Add javadoc to the ssl example
| Java | mit | testinfected/molecule,testinfected/molecule,testinfected/molecule,testinfected/molecule,testinfected/molecule |
c0fa827fe4875839b3857a310b2a5435383008ae | src/main/java/Test/App.java | src/main/java/Test/App.java | package Test;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
| package Test;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
System.out.println( "Hi!" );
}
}
| Test commit to branch 1.0.0 | Test commit to branch 1.0.0
| Java | apache-2.0 | Hronom/Test_repo |
79de3ce7a4d7df282751b6184b33359f31b3aba7 | src/main/java/com/github/dakusui/scriptunit/core/Config.java | src/main/java/com/github/dakusui/scriptunit/core/Config.java | package com.github.dakusui.scriptunit.core;
import com.github.dakusui.scriptunit.annotations.Load;
import java.util.Properties;
import static com.github.dakusui.scriptunit.exceptions.ConfigurationException.scriptNotSpecified;
import static java.util.Objects.requireNonNull;
public interface Config {
String getScri... | package com.github.dakusui.scriptunit.core;
import com.github.dakusui.scriptunit.annotations.Load;
import java.util.Properties;
import static com.github.dakusui.scriptunit.exceptions.ConfigurationException.scriptNotSpecified;
import static java.util.Objects.requireNonNull;
public interface Config {
String getScri... | Fix a bug to specify a script resource name. | Fix a bug to specify a script resource name.
| Java | apache-2.0 | dakusui/scriptunit |
6836e6e353274e1809742ecb9fd362215d542521 | platform/pc/src/main/java/com/intuso/housemate/platform/pc/Logback.java | platform/pc/src/main/java/com/intuso/housemate/platform/pc/Logback.java | package com.intuso.housemate.platform.pc;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.classic.joran.JoranConfigurator;
import ch.qos.logback.core.joran.spi.JoranException;
import ch.qos.logback.core.util.StatusPrinter;
import com.google.common.base.Preconditions;
import org.slf4j.LoggerFactory;
... | package com.intuso.housemate.platform.pc;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.classic.joran.JoranConfigurator;
import ch.qos.logback.core.joran.spi.JoranException;
import ch.qos.logback.core.util.StatusPrinter;
import com.intuso.housemate.client.v1_0.api.HousemateException;
import org.sl... | Fix issue with guava preconditions check in logback setup | Fix issue with guava preconditions check in logback setup
| Java | apache-2.0 | Intuso/housemate,Intuso/housemate,Intuso/housemate |
9fd407db916e92560a960ba5a8d1267a9c723782 | src/test/java/com/boundary/metrics/vmware/poller/MetricCreatorTest.java | src/test/java/com/boundary/metrics/vmware/poller/MetricCreatorTest.java | // Copyright 2014 Boundary, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | // Copyright 2014 Boundary, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | Add test for creation of a metric client | Add test for creation of a metric client
| Java | apache-2.0 | boundary/boundary-vmware |
7864b745aec39bad57af68d2d38d6d361539a931 | src/test/java/com/google/tests/web/SearchTest.java | src/test/java/com/google/tests/web/SearchTest.java | package com.google.tests.web;
import static com.google.common.truth.Truth.assertThat;
import org.testng.annotations.Test;
import ru.yandex.qatools.allure.annotations.Issue;
import com.frameworkium.tests.internal.BaseTest;
import com.google.pages.web.HomePage;
import com.google.pages.web.ResultsPage;
public class Se... | package com.google.tests.web;
import static com.google.common.truth.Truth.assertThat;
import org.testng.annotations.Test;
import ru.yandex.qatools.allure.annotations.TestCaseId;
import com.frameworkium.tests.internal.BaseTest;
import com.google.pages.web.HomePage;
import com.google.pages.web.ResultsPage;
public cla... | Update as results have changed. Also using @TestCaseId instead of @Issue | Update as results have changed. Also using @TestCaseId instead of @Issue
| Java | apache-2.0 | robertgates55/frameworkium,Frameworkium/frameworkium,robertgates55/frameworkium-core,Frameworkium/frameworkium-core |
b6f38ca17165cbb732b4de353bebd3e9e0106cd2 | src/main/java/hello/entities/Greeting.java | src/main/java/hello/entities/Greeting.java | package hello.entities;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.NotEmpty;
@Entity
public class Greeting {
@Id
@GeneratedV... | package hello.entities;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.hateoas.core.Relation;
... | Set the relation name for the list of greetings. | Set the relation name for the list of greetings.
| Java | bsd-3-clause | hainesr/mvc-dev,hainesr/mvc-dev |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.